record sound using the plug-ins

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

September 2016 edited October 2016

. forgot to complete a sentence Moreover, when I generate the script of the experiment, the only two lines talking about sound where:

define sound_start_recording sound_start_recording define sound_stop_recording sound_stop_recording 
sorry and thanks again!
if not qtplugin.qtplugin.apply_edit_changes(self) or self.lock: 

That is, you remove the False argument.

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.

Buy Me A Coffee

ah ok, just saw this now. So I guess no update yet for the latest release of OpenSesame. Keeping an eye here!