File "/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/microphone.py", line 668, in __init__
raise MicrophoneError(msg)
psychopy.microphone.MicrophoneError: failed to find flac binary, tried ''
To view this discussion on the web visit https://groups.google.com/d/msgid/psychopy-users/e23a0395-cd67-42e7-84a9-428b41e5ae2f%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/psychopy-users/f9046a9d-c007-44d4-9d77-1ba8999d6484%40googlegroups.com.
1st time
##### Running: /Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/demos/coder/input/speech_recognition.py #####
2.3257 WARNING Creating new monitor...
Traceback (most recent call last):
...
psychopy.microphone.MicrophoneError: failed to find flac binary, tried ''
12.2750 ERROR failed to find flac binary, tried ''
2nd time
##### Running: /Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/demos/coder/input/speech_recognition.py #####
0.9467 WARNING Creating new monitor...
Traceback (most recent call last):
...
psychopy.microphone.MicrophoneError: failed to find flac binary, tried ''
9.2979 ERROR failed to find flac binary, tried ''
--
You received this message because you are subscribed to a topic in the Google Groups "psychopy-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/psychopy-users/bTLEd1Z6LFU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to psychopy-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/psychopy-users/CANqwJFgUMGTTy6guLBB%2BYemdSrxyaC1Zq5S5McWqsd0hJf433A%40mail.gmail.com.
Hi Jeremy,
--
You received this message because you are subscribed to a topic in the Google Groups "psychopy-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/psychopy-users/bTLEd1Z6LFU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to psychopy-user...@googlegroups.com.
To post to this group, send email to psychop...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/psychopy-users/CANqwJFja0ni%3DvPSoU17QkqXNpEO2E0%3D5iqBY0ewsADxCqH_bNA%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "psychopy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to psychopy-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/psychopy-users/CAFS3taQ9w%2B8ZB_76zjfLrWWWuva%2ByT1ykRXit4v00m7Q8E1gwA%40mail.gmail.com.
##### Running: /Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/demos/coder/input/speech_recognition.py #####Microphone command-line testing2.3449 EXP Set sound=C2.3449 DEBUG pyo sound server startedtesting record and playback, press <return> to start:
To view this discussion on the web visit https://groups.google.com/d/msgid/psychopy-users/CANqwJFgRDQ-mExmt7fQM8wXRCZNT6%2BcrL9xXQuJ5v7730vhAkg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/psychopy-users/CAFS3taQ_9T4zPEmAuBx9TXxbzrZhOP3spS-Os1F8n%3DBuAKy_Rg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/psychopy-users/CANqwJFgw14JoNgMdJc3inEBqaw8vvqUUUx8KP9qHoouoknkBjA%40mail.gmail.com.
Traceback (most recent call last):
File "/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/demos/coder/input/speech_recognition.py", line 46, in <module>
guess = Speech2Text(wavfile, **options).getResponse()
File "/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/microphone.py", line 708, in __init__
flac_path = _getFlacPath(flac_exe)
File "/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/microphone.py", line 859, in _getFlacPath
msg = "failed to find flac binary, tried '%s'" % flac_path
NameError: global name 'flac_path' is not defined
To view this discussion on the web visit https://groups.google.com/d/msgid/psychopy-users/CAFS3taQ-o%2BeM3VOiWeZZADXTufmgS_VW5ryM1o%2BzVOyya7h4Fw%40mail.gmail.com.
File "/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/microphone.py", line 859, in _getFlacPathmsg = "failed to find flac binary, tried '%s'" % flac_pathNameError: global name 'flac_path' is not defined
6.4681 EXP /Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/microphone: switch on (16000hz) took 2.694s8.0069 DATA AudioCapture mic: Record: onset 1374598612, capture 2.500s10.5088 EXP AudioCapture mic: Record: stop. 10.509, capture 2.502s (est)10.5549 INFO set FLAC_PATH to
To view this discussion on the web visit https://groups.google.com/d/msgid/psychopy-users/CANqwJFg2pOeCsBwMoMOwTO4Cs5wQ9viTZOVfhcOB_S%3D7PPFBgw%40mail.gmail.com.
Hi, Jeremy, sorry for stepping into this post. We have the same problem. I have instructed my colleague to change to [u'pyo'] in audioLib, and change to [directsound] in audioDriver, but still not working, the error message is almost the same as Hedwig's.
Tow things I am not sure, one is should it be [u'directsound'] in audioLib instead of [directsound],does it make any difference?
If this is not the problem, you mentioned belowAnother possibility has something to do with device names. If you try this
import pyo
devNames, devIDs=pyo.pa_get_output_devices()
and devNames is empty, thats not a good sign.Could you be more specific as to how to go about this please?
To view this discussion on the web visit https://groups.google.com/d/msgid/psychopy-users/0159d3e0-76da-427b-a773-39fb4ef6f28b%40googlegroups.com.
none worked, neither ['directsound'] nor [u'directsound']
the error message attached!
To view this discussion on the web visit https://groups.google.com/d/msgid/psychopy-users/ea980f91-807d-474b-8527-3650412a95ec%40googlegroups.com.
<My path to>/PsychoPy_demos/voiceCapture/voiceCapture_lastrun.py
Traceback (most recent call last):
File "/Users/alexis/Documents/UNIGE/Collaboration/PsychoPy_demos/voiceCapture/voiceCapture_lastrun.py", line 45, in <module>
microphone.switchOn()
File "/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/microphone.py", line 972, in switchOn
sound.initPyo(rate=sampleRate) #will automatically use duplex=1 and stereo if poss
File "/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/sound.py", line 639, in initPyo
Sound() # test creation, no play
File "/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/sound.py", line 417, in __init__
self.setSound(value=value, secs=secs, octave=octave, hamming=hamming)
File "/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/sound.py", line 138, in setSound
OK = self._fromNoteName(value,secs,octave, hamming=hamming)
File "/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/sound.py", line 214, in _fromNoteName
self._fromFreq(thisFreq, secs, hamming=hamming)
File "/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/sound.py", line 223, in _fromFreq
self._fromArray(outArr)
File "/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/sound.py", line 501, in _fromArray
self._sndTable = pyo.DataTable(size=len(thisArray), init=thisArray.tolist(),
NameError: global name 'pyo' is not defined
# Enable sound input/output:
import pyo
from psychopy import prefs
prefs.general['audioLib'] = [u'pyo']
prefs.general['audioDriver']=[u'directSound']
from psychopy import sound, microphone
microphone.switchOn()
import pyo
pyo.pa_get_output_devices()
I'm having a similar or related problem trying to use sound capture, under Mac OS X 10.6.8.
Attempting to run a completely unmodified demo Voice Capture script. I hope I have not missed an obvious solution in the thread above.
The error returned is:
<My path to>/PsychoPy_demos/voiceCapture/voiceCapture_lastrun.py
Traceback (most recent call last):
...
self._sndTable = pyo.DataTable(size=len(thisArray), init=thisArray.tolist(),
NameError: global name 'pyo' is not defined
If I modify the script to contain soem fo the suggestions in this thread:# Enable sound input/output:
import pyo
from psychopy import prefs
prefs.general['audioLib'] = [u'pyo']
prefs.general['audioDriver']=[u'directSound']
import pyo
pyo.pa_get_output_devices()I get no output at all (presumably the output devices list is empty).
import pyo
from psychopy import prefs
prefs.general['audioLib'] = [u'pyo']
prefs.general['audioDriver']=[u'portAudio']
--
You received this message because you are subscribed to the Google Groups "psychopy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to psychopy-user...@googlegroups.com.
To post to this group, send email to psychop...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/psychopy-users/f9ffc57d-6552-404c-b8b6-2ebccdf03d02%40googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "psychopy-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/psychopy-users/bTLEd1Z6LFU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to psychopy-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/psychopy-users/CANqwJFjTNYnhNMPfEKuJCcJhHj75%3DYcz_jDoSbkEZRNArSjx7Q%40mail.gmail.com.