-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error for each supported audio file type #113
Comments
Mostly solved in original issue. I will need the correct audio files to reproduce the other problems. Closing for now. |
Just a heads up in case anyone else winds up here. While it may not be OPs original problem, I too was running into all sorts of playback errors on some mp3s. The reason was because I was trying to use mp3.Decode() on every file type. It only makes sense now that I realize there is a different module for each file type. So my solution was to simply switch on the file extension and use the appropriate decoder for the appropriate file type. |
It seems I'm getting the mp3 error Also important: the error message doesn't make sense. It says only layer3 is supported, but then it says it I can provide a file that fails if needed. |
I found this same issue from the older hajimehoshi/go-mp3 repo. It looks like one of the bugs was fixed by @hajimehoshi by skipping ID3v2 tags, as shown in this issue: hajimehoshi/go-mp3#9 Also, looks like it doesn't skip LAME's padding: hajimehoshi/go-mp3#25 Also, I suggest that y'all look into using/porting minimp3, because it supports MP1, MP2, and MP3, and it is significantly more performant, as shown in this issue: hajimehoshi/go-mp3#21 |
I have tried running functional audio files for a .flac, .mp3 and .wav but receive different errors for each one. My code is pretty much the same for the 3 different tests:
Expected:
Audio plays normally.
WAV Result:
wav: missing data chunk marker
MP3 Result:
mp3: mp3: only layer3 (want 1; got 3) is supported
Flac Result:
flac: flac.parseStreamInfo: invalid FLAC signature; expected "fLaC", got "RIFF"
Here are the files for your own use:
Flac file
MP3 file
WAV file
All the files are generated by the IBM Watson text-to-speech API and run fine on my machine. All error messages occur within the AUDIO STREAMER ERROR block. Is this a bug? Thanks!
Original issue: faiface/beep#11
The text was updated successfully, but these errors were encountered: