You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/workspaces/ml/test6.py", line 4, in <module>
decoded = miniaudio.mp3_read_f32(f.read())
File "/home/dev/.local/lib/python3.8/site-packages/miniaudio.py", line 567, in mp3_read_f32
config.outputChannels = want_nchannels
AttributeError: cdata 'drmp3_config *' has no field 'outputChannels'
Example Code:
import miniaudio
with open('common_voice_en_20603299.mp3', 'rb') as f:
decoded = miniaudio.mp3_read_f32(f.read(), want_nchannels=1, want_sample_rate=16000)
@cameronmaske I am using a workaround and I haven't tried with updated libraries. Were you able to recreate the bug? I have outlined all the steps to recreate it. If this works, then you can close it. I also you add some unit tests to catch it because it seems the API was untested.
You are right, I mistakenly assumed the problem was with the underlying miniaudio api itself. I have reproduced the problem and will fix the python wrapper interface
Calling
miniaudio.mp3_read_f32
results in error:Example Code:
Example File: common_voice_en_20603299.zip
Environment:
OS: Ubuntu 20.04
Lib Version:
The text was updated successfully, but these errors were encountered: