Closed lanas1234 closed 1 year ago
You are telling the wavefile.read
command that your file audio.wav was written by in icListen device, but it was not. It is generating an error when it does not find a chunk in the file that is written by icListen recorders. Try changing the read command to this, and it should work.
info, data = wavefile.read('audio.wav',0,-1)
Please let me know if this fixes it.
Thanks for the answer
Yes, this fixes the error but the problem is that this audio actually came from an icListen device.. I've renamed the file and maybe copied from one folder to another, do you think this could change the header structure? When I click cmd+i to see the file info I still can see all the icListen headers: [image: Captura de pantalla 2021-03-02 a las 20.10.25.png]
All the best
El mar, 2 mar 2021 a las 20:06, Mark Sprague (notifications@github.com) escribió:
You are telling the wavefile.read command that your file audio.wav was written by in icListen device, but it was not. It is generating an error when it doest not find a chunk in the file that is written by icListen recorders. Try changing the read command to this, and it should work.
info, data = wavefile.read('audio.wav',0,-1)
Please let me know if this fixes it.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sprague252/SVSound/issues/2#issuecomment-789142019, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMMLP7UJIKFOY5JMOUAF663TBUZLPANCNFSM4YPNYPUA .
--
atlanTTic
research center for Telecommunication Technologies PhD/Researcher | David Santos Domínguez *Universidade de Vigo*dsantos@gts.uvigo.es dsantos@gts.uvigo.es | Tel. +34 669 391 921 | WEB http://atlanttic.uvigo.es/ · Profile http://gtm.uvigo.es/david-santos-dom%C3%ADnguez
Interesting ... I wrote the icListen part to open files written by my icListen recorder (model HF hydrophone). Yours may write files with a different format, perhaps due to newer firmware or because it is a different model.
The icListen header structure is internal to the WAV file and would not be changed by renaming or moving the file. If you send me a short WAV file recorded by your icListen device, I would be happy to take a look at it.
This icListen problems are fixed in version 0.1.0. The code was not correctly determining the address of the end of the file. Now it does.
I've tried 2 different icListen wav files and none is working, this is the test code:
When using audio.wav I got the error:
When using testTone.wav I got the error:
Any clue of what is happening?