record sound using the plug-ins
Hi there,
thanks already to listen I have been trying to record voice responses in OpenSesame using the plugins (sound_start|stop_recording), but I did not have much luck unfortunately. In particular, the microphone works, and it seems that a default.wav file is created. However, 1) there is nothing in this file and it lasts just a second when it should be much longer, 2) when I try to look at the .py script to modify (for example) the name of the file (such that it takes the name of trial as argument), the script is empty. Moreover, if I try to change the setting in the control view (e.g., from wav to mp3) the following message is sent:
Traceback (most recent call last):
File "C:\Program Files (x86)\OpenSesame\share\opensesame_plugins\sound_start_recording\sound_start_recording.py", line 228, in apply_edit_changes
if not qtplugin.qtplugin.apply_edit_changes(self, False) or self.lock:
TypeError: apply_edit_changes() takes exactly 1 argument (2 given)
Moreover, when I generate the script of the experiment, the only two lines where
do you have a suggestion on how should I go about it? I am on a Windows 10 machine, last version of OpenSesame, and I got everything properly installed (at least that's what I believe )
I am attaching here the general script of my experiment so that you can have a look, and perhaps spot the issue.
thank you immensely for the time and effort of keeping up such a useful open software!
Comments
... forgot to complete a sentence
Moreover, when I generate the script of the experiment, the only two lines talking about sound where:
sorry and thanks again!
You're not doing anything wrong. The plugins simply haven't been updated for a long time, and a change in recent versions of OpenSesame has broken them. That's not supposed to happen, and I just committed a fix, so it should be resolved in future versions of OpenSesame (>= 3.1.3a6). (This doesn't mean that the plugins are updated; just that they work again, outdated as they are.)
For now, you could either:
C:\Program Files (x86)\OpenSesame\share\opensesame_plugins\sound_start_recording\sound_start_recording.py
and change line 228 to:That is, you remove the
False
argument.Does that help?
Cheers,
Sebastiaan
PS. Ping @Daniel
Check out SigmundAI.eu for our OpenSesame AI assistant!
Dear Sebastiaan,
thanks for the suggestion. I just tried and it does work! I am on OpenSesame 3.0.7. It would be nice to get it fixed also in the last version of OpenSesame, as it is much easier to handle loop (i.e., using directly .csv files) with it. But, for now, I will live with that I have another question ... but I'll post it soon under a proper subject name.
thanks again,
Moreno
Got it, I created an issue at https://github.com/dschreij/opensesame_soundrecorder_plugins/issues/8 to remind myself to fix this soon.
And yes, the sound recorder plugins are long overdue for an update.
ah ok, just saw this now. So I guess no update yet for the latest release of OpenSesame. Keeping an eye here!