Skip to content
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

speaker sample #2

Open
mhama opened this issue Apr 8, 2019 · 7 comments

Comments

@mhama
Copy link

@mhama mhama commented Apr 8, 2019

It would be better to have some samples to use the speaker, as Maix Go have a good-looking speaker hardware.

@linycm

This comment has been minimized.

Copy link

@linycm linycm commented May 11, 2019

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 "", line 1, in
OSError: wav init error

And for player.volume(40), I got error:
Traceback (most recent call last):
File "", line 1, in
AttributeError: 'AUDIO' object has no attribute 'volume'

@Neutree

This comment has been minimized.

Copy link
Collaborator

@Neutree Neutree commented May 11, 2019

@linycm wait for the new release or build yourself firmware

@linycm

This comment has been minimized.

Copy link

@linycm linycm commented May 12, 2019

@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
.......

@Neutree

This comment has been minimized.

Copy link
Collaborator

@Neutree Neutree commented May 13, 2019

@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 comment has been minimized.

Copy link

@linycm linycm commented May 21, 2019

radio.wav.tar.gz

@Neutree pls help to check. thanks!

@Neutree

This comment has been minimized.

Copy link
Collaborator

@Neutree Neutree commented May 22, 2019

@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.

image

MaixPy support like this one:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.