Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

Problems with sound recorder (Mac OS X)

edited May 2016 in OpenSesame

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

  • edited May 2016

    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.

    Buy Me A Coffee

  • edited 8:16PM

    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.

  • Is there an update on sound recorder plugin ? I am experiencing the same issue with an ubuntu laptop.

  • LCMLCM
    edited May 2020

    Hey there,

    I finally got it to run after experiencing the same error:

    1. Download and install the python 2 version of opensesame (it will only work with this version): https://github.com/smathot/OpenSesame/releases/download/release%2F3.3.1/opensesame_3.3.1-py27-win64-1.exe
    2. Fix a bug in the python module manually (replace "from libqtopensesame" with "from libqtopensesame.items"). See here for more information: https://github.com/dschreij/opensesame_soundrecorder_plugins/issues/9

    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

Sign In or Register to comment.

agen judi bola , sportbook, casino, togel, number game, singapore, tangkas, basket, slot, poker, dominoqq, agen bola. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 50.000 ,- bonus cashback hingga 10% , diskon togel hingga 66% bisa bermain di android dan IOS kapanpun dan dimana pun. poker , bandarq , aduq, domino qq , dominobet. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 10.000 ,- bonus turnover 0.5% dan bonus referral 20%. Bonus - bonus yang dihadirkan bisa terbilang cukup tinggi dan memuaskan, anda hanya perlu memasang pada situs yang memberikan bursa pasaran terbaik yaitu http://45.77.173.118/ Bola168. Situs penyedia segala jenis permainan poker online kini semakin banyak ditemukan di Internet, salah satunya TahunQQ merupakan situs Agen Judi Domino66 Dan BandarQ Terpercaya yang mampu memberikan banyak provit bagi bettornya. Permainan Yang Di Sediakan Dewi365 Juga sangat banyak Dan menarik dan Peluang untuk memenangkan Taruhan Judi online ini juga sangat mudah . Mainkan Segera Taruhan Sportbook anda bersama Agen Judi Bola Bersama Dewi365 Kemenangan Anda Berapa pun akan Terbayarkan. Tersedia 9 macam permainan seru yang bisa kamu mainkan hanya di dalam 1 ID saja. Permainan seru yang tersedia seperti Poker, Domino QQ Dan juga BandarQ Online. Semuanya tersedia lengkap hanya di ABGQQ. Situs ABGQQ sangat mudah dimenangkan, kamu juga akan mendapatkan mega bonus dan setiap pemain berhak mendapatkan cashback mingguan. ABGQQ juga telah diakui sebagai Bandar Domino Online yang menjamin sistem FAIR PLAY disetiap permainan yang bisa dimainkan dengan deposit minimal hanya Rp.25.000. DEWI365 adalah Bandar Judi Bola Terpercaya & resmi dan terpercaya di indonesia. Situs judi bola ini menyediakan fasilitas bagi anda untuk dapat bermain memainkan permainan judi bola. Didalam situs ini memiliki berbagai permainan taruhan bola terlengkap seperti Sbobet, yang membuat DEWI365 menjadi situs judi bola terbaik dan terpercaya di Indonesia. Tentunya sebagai situs yang bertugas sebagai Bandar Poker Online pastinya akan berusaha untuk menjaga semua informasi dan keamanan yang terdapat di POKERQQ13. Kotakqq adalah situs Judi Poker Online Terpercayayang menyediakan 9 jenis permainan sakong online, dominoqq, domino99, bandarq, bandar ceme, aduq, poker online, bandar poker, balak66, perang baccarat, dan capsa susun. Dengan minimal deposit withdraw 15.000 Anda sudah bisa memainkan semua permaina pkv games di situs kami. Jackpot besar,Win rate tinggi, Fair play, PKV Games