SoundRecorder problem
Hi all,
I'm trying to set up an experiment where I need to record what the participant says.
For this I use the plugin SoundRecorder 0.15 and Open Sesame 2.9.7. (as I could not make OS 3.1.9 to work with SoundRecorder 0.15)
After having recorded correctly 30 stimuli, it bugs with the following message:
Unexpected error
line: 50
exception message: Cannot create sound object. Error text is: 4,
exception type: SoundErrorTraceback (also in debug window):
File "dist\libqtopensesame\misc\process.py", line 139, in run
File "dist\libopensesame\experiment.py", line 347, in run
File "dist\libopensesame\sequence.py", line 47, in run
File "dist\libopensesame\loop.py", line 142, in run
File "dist\libopensesame\sequence.py", line 47, in run
File "dist\libopensesame\loop.py", line 141, in run
File "dist\libopensesame\sequence.py", line 104, in prepare
File "C:\Program Files (x86)\OpenSesame297\plugins\sound_start_recording\sound_start_recording.py", line 142, in prepare
File "C:\Program Files (x86)\OpenSesame297\plugins\sound_start_recording\Soundrecorder.py", line 50, in init
SoundError: Cannot create sound object. Error text is: 4,
The problem is not coming from a specific item but to this 30th item that it does not want to record. (I changed the position of the item and it was ok until the 30th one).
I also tried the mp3 format but had the same problem...
Would you have any idea ?
Best
Comments
Hi Boris,
I don#t have much experience with the soundrecorder plugin. In fact, when I tried to install it and help someone recently, I couldn't make it work. So, I don't know the reasons or the solution to your problem. But the symptoms you describe sound a little like that it is a memory issue. Could this be? Maybe you could monitor your memory usage to check, try to delete sounds from the workspace once recorded, or split your experiment?
Sorry for not being able to help properly.
Eduard
Hi Eduard,
Thank you for your answer.
Would you have any idea how I could do that ?
30 items is not even a single block so that will be difficult.
I was thinking of recording 4 big files instead of multiple small ones but I did not try it yet and if it's a memory issue it should be a problem too...
Best
Hi Boris,
Perhaps you could give PyAudio a shot? This requires an
inline_script
but also allows you to record sound. You can find some examples on the PyAudio homepage, and also in various discussions here on the forum.It might be an idea to create an updated soundrecorder plugin based on PyAudio. @Daniel, was there a specific reason that you chose PyMedia over PyAudio at the time?
Cheers!
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!