Howdy, Stranger!

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

Supported by

[open] Error- cannot create sound object

edited September 2013 in OpenSesame

Hi all,

Yesterday, I was running an experiment and all of a sudden it crashed when it was about 80% done. Here's the debug message:

Python 2.7.3 
Type "help()", "copyright()", "credits()" or "license()" for more information. 
Type "modules()" for details about installed modules and version information.
Use the "print [msg]" statement in inline_script items to print to this debug window.

openexp._canvas.legacy.init_display(): enabling hardware surface
openexp._canvas.legacy.init_display(): enabling double buffering
openexp._canvas.legacy.init_display(): video mode ok
openexp.sampler._legacy.init_sound(): sampling freq = 48000, buffer size = 512
openexp.sampler._legacy.init_sound(): mixer already initialized, closing
experiment.init_log(): using 'C:/data/experiment Patrick/testHappy2/subject-3.csv' as logfile (utf-8)
experiment.run(): experiment started at Mon Sep 23 15:43:51 2013
Traceback (most recent call last):
  File "dist\libqtopensesame\qtopensesame.py", line 1367, in run_experiment
  File "dist\libopensesame\experiment.py", line 283, in run
  File "dist\libopensesame\sequence.py", line 60, in run
  File "dist\libopensesame\loop.py", line 159, in run
  File "dist\libopensesame\sequence.py", line 120, in prepare
  File "C:\Program Files\OpenSesame\plugins\sound_start_recording\sound_start_recording.py", line 142, in prepare
  File "C:\Program Files\OpenSesame\plugins\sound_start_recording\Soundrecorder.py", line 50, in __init__
SoundError: Cannot create sound object. Error text is: 4, 

Do any of you know what has happened and what could have triggered the error?

Regards,
Patrick

Comments

  • edited 8:41PM

    Hi Patrick,

    I've no idea as I have never encountered this error, even after intensive use of the soundrecorder plugin. It seems as if your audio device was unavailable or engaged in some other activity. Is this the first time that this error occurred, or has it happened more frequently?

    Buy Me A Coffee

  • edited 8:41PM

    Hi Daniel,

    I haven't had this problem on my regular laptop either. However, it doesn't work on the other laptop I was using, even though both laptops are identical, apart from some software that was installed on them. The experiment crashed from the beginning and kept doing so for another 5 times in a row, until I decided to quit for the day. What strikes me as odd is that the experiment records and creates soundfiles as it should for about 27 to 33 times (which is the greater part of the experiment), but suddenly and randomly reports this error at one of the last 8 to 13 moments it should record audio.

  • edited July 2014

    hi,

    I have the same problem exactly,
    except the difference in the number.
    on my computer it breaks after exactly 10 words presented.

    I would very appreciate help on this.

    thank you,
    Shilo

  • edited 8:41PM

    Does it occur both with wav and mp3 recording? Both of these modes use completely different python modules to do the heavy lifting, so it might be that the other mode which you are using does not suffer from the problem. If it occurs in both modes, it already narrows down the problem considerably, as it must be caused by something outside of pymedia and pyaudio (hardware/drivers/programming mistake from my side).

    I have been working on a gstreamer implementation of sound recorder a few months ago as this library is far more reliable, but I don't trust the plugin enough to release it yet. If you want you can give it a spin at https://github.com/dschreij/opensesame_soundrecorder_plugins/tree/gstreamer. You also need to install the gstreamer sdk from http://www.gstreamer.com. I can however offer no guarantees yet that it will work at all!

    Buy Me A Coffee

  • edited 8:41PM

    Thank you for your help,

    meanwhile I solved the problem by recording all the data for each subject.
    if this wouldn't satisfy the researcher - I will try to use this second plugin that you suggested.

    again, THANKS A LOT,
    Shilo

  • edited 8:41PM

    This problem should now be solved in version 0.13

    Buy Me A Coffee

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