Problems with sound recorder (Mac OS X)
Hi everybody,
First of all: I'm new to both OpenSesame, Python and coding in general. So I'm sorry if my problem/question seems trivial.
I created an experiment requiring participants to repeat visual and/or audio stimuli aloud. The general set-up of the experiment works perfectly, but I'm running into problems when it comes to recording the audio response. I installed the sound_start_recording and sound_stop_recording plugins (0.13 on Mac OS X 10.11) and set the compression preferences in the experiment to "None (wav)". As soon as I start the experiment with the sound recorder plugins inserted, it crashes when calling the first stimulus (without the plugins everything runs smoothly throughout the entire experiment) and I get the following error messages:
Details:
item-stack: experiment[run].practice_loop[run].practice_sequence[prepare].new_sound_start_recording[prepare]
exception message: No module named muxer
time: Mon May 16 17:56:15 2016
exception type: ImportError
and Traceback:
File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/libqtopensesame/runners/inprocess_runner.py", line 38, in execute
File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/libopensesame/experiment.py", line 397, in run
File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/libopensesame/item_store.py", line 95, in execute
File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/libopensesame/item_store.py", line 110, in run
File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/libopensesame/sequence.py", line 50, in run
File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/libopensesame/item_store.py", line 110, in run
File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/libopensesame/loop.py", line 144, in run
File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/libopensesame/item_store.py", line 94, in execute
File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/libopensesame/item_store.py", line 126, in prepare
File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/libopensesame/sequence.py", line 121, in prepare
File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/libopensesame/item_store.py", line 126, in prepare
File "/Applications/OpenSesame.app/Contents/Resources/plugins/sound_start_recording/sound_start_recording.py", line 96, in prepare
File "/Applications/OpenSesame.app/Contents/Resources/plugins/sound_start_recording/Soundrecorder.py", line 35, in <module>
ImportError: No module named muxer
Google tells me that muxer belongs to PyMedia but I wanted to use the wave module which should be installed I guess?!
Hope this makes any sense at all. I'd be really grateful for any advice!
In case it helps solving the problem: I use Python 2.7 and this is what my environment looks like:
/Library/Frameworks/Python.framework/Versions/2.7/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/Library/Frameworks/Python.framework/Versions/3.5/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Library/TeX/texbin:/usr/bin/::/opt/neko/:/opt/neko/neko
Regards!
Sophia
Comments
Hi Sophia,
You're right, muxer belongs to pymedia, which is a library which hasn't been updated for ages. Sadly, back when I wrote this plugin, it was the only easy way to record sound and even if you use wav recording, it still uses pymedia. Pymedia is known to break on newer python installations, and has never been thoroughly tested on a Mac. The only thing I can advise you is to try to run your experiment on Windows. There is less chance of breakage there because the correct version of pymedia is packaged with OpenSesame itself.
I'm working on updates regarding the multimedia capabilities for OpenSesame, but I'm not quite there yet. Hopefully I will have some new plugins to replace the old pymedia ones soon. Sorry to be of no more help at the moment.
Hi Daniel,
Thank you very much for your reply! It saved me a lot of time trying to get the plugin to work with another library.
I'm glad to hear that new multimedia plugins might be coming soon. That sounds very promising for future projects.
Good luck on and thanks again!
Has there been any update on this? I'm getting the same error. OS 10.12, OpenSesame 3.1.7, Python 2.7.
I suspect that this is simply an issue of pymedia not being installed. However, it doesn't seem straightforward to install pymedia on Mac OS. You can first try to figure out how to install pymedia. But if that doesn't work, then I second @Daniel's suggestion to use a Windows system instead.
Check out SigmundAI.eu for our OpenSesame AI assistant!
Is there an update on sound recorder plugin ? I am experiencing the same issue with an ubuntu laptop.
Hey there,
I finally got it to run after experiencing the same error:
This should work. Keep in mind, there might be other exceptions if you computer has no mic.
Hope this helps!
Hey there,
does this mean that it is possible to collect spoken responses from OpenSesame? If yes, this would be exactly what I need!
I see this post is a bit old, so may I ask what the current situation is? Is it possible to run it on Mac or is the general advice to still run it on windows? If it can be run on Mac, which plug-ins are needed?
I will ultimately run my experiment on JATOS, so does anyone know if there will be any issues with that?
Thanks a million!
Marta
Hi @m.vel ,
It seems that the instructions by @LCM (thanks!) fix compatibility between OpenSesame 3.3.1 and the
sound_recorder
plugins. But this is only for the desktop. These plugins are not available on OSWeb. You can find a list of supported functionality for OSWeb here:Cheers!
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!