MaixPy-v1_scripts
MaixPy-v1_scripts copied to clipboard
speaker sample
It would be better to have some samples to use the speaker, as Maix Go have a good-looking speaker hardware.
https://github.com/sipeed/MaixPy_scripts/blob/master/multimedia/audio/play_wav.py
https://maixpy.sipeed.com/zh/libs/Maix/i2s.html
https://maixpy.sipeed.com/zh/libs/Maix/audio.html
I test play_wav.py and got the below error. Pls advise. thanks!
wav_info = player.play_process(wav_dev)
[MAIXPY]: wav error code : 7
Traceback (most recent call last):
File "
And for player.volume(40), I got error:
Traceback (most recent call last):
File "
@linycm wait for the new release or build yourself firmware
@Neutree I build firmware again but still got error when
wav_info = player.play_process(wav_dev)
[MAIXPY]: wav error code : 7
Traceback (most recent call last):
File "", line 1, in
OSError: wav init error
core dump: fault store Cause 0x0000000000000007, EPC 0x00000000800c2a44 .......
@linycm The header of wav file you used have some problem, please send me your wav file, so I can check the header, or just convert to wav file maixpy support. here for example
@linycm This audio file uses ADPCM encoding. MaixPy only supports PCM 16bit little endian encoding. Please find a way to convert to such a format. There is no plan to support ADPCM.

MaixPy support like this one:
