Hi David,
Its great to have a phonetician interested in PsychoPy. Your feedback
will be very useful. There are likely to be some rough edges here and
there, especially with sound, which is under active development. I am
personally interested in recording speech for my own research.
Unfortunately I don't know how to help with that error. I am pretty
sure that the character 0xe9 is the character "é", and its in one or
more of your system's names for sound settings, somehow. The PsychoPy
code that has trouble appears to be "prefDriver in devString". When I
try this construction on my mac using the "é" character, everything is
fine. So I don't really have a way to test or debug this, even in the
abstract. If its possible for you to check your system settings (and
psychopy settings) and remove any of those characters, its worth a
try.
--Jeremy
On Thu, Apr 18, 2013 at 9:30 AM, David Le Gac <
david....@gmail.com> wrote:
> Hi,
>
> Thanks Alain, Joseph and Jeremy for the messages.
> I am a phonetician and (crucially) need to run experiments with sound
> recording.
> I am using PsychoPy 1.76.00 on a PC (Dell) with windows 7
> I also got the same error message as Joseph ("NameError: global name 'pyo'
> is not defined") and then changed the settings in my preferences as
> indicated by Jeremy.
> But now, I get the following error message when running the voicecpature
> demo (I'm beginning with Psychopy and programming...):
> Thank for the help !!
>
> *********************
> Running: C:\Users\DAVIDLEGAC\Documents\PsychoPy2
> Demos\voiceCapture\voiceCapture_lastrun.py
> pyo version 0.6.2 (uses single precision)
> Traceback (most recent call last):
> File "C:\Users\DAVIDLEGAC\Documents\PsychoPy2
> Demos\voiceCapture\voiceCapture_lastrun.py", line 45, in <module>
> microphone.switchOn()
> File "C:\Program Files
> (x86)\PsychoPy2\lib\site-packages\psychopy-1.76.00-py2.7.egg\psychopy\microphone.py",
> line 636, in switchOn
> sound.initPyo(rate=sampleRate) #will automatically use duplex=1 and
> stereo if poss
> File "C:\Program Files
> (x86)\PsychoPy2\lib\site-packages\psychopy-1.76.00-py2.7.egg\psychopy\sound.py",
> line 538, in initPyo
> audioDriver,outputID=_bestDriver(devNames, devIDs)
> File "C:\Program Files
> (x86)\PsychoPy2\lib\site-packages\psychopy-1.76.00-py2.7.egg\psychopy\sound.py",
> line 504, in _bestDriver
> if prefDriver in devString:
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xe9 in position 1:
> ordinal not in range(128)
>
> *********************
>
https://groups.google.com/d/msg/psychopy-users/-/CvRjXQdKFZQJ.