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
Tested it with aplay CantinaBand60.wav. It works fine.
Tried it with simpleaudio and I get an error:
ALSA lib pcm.c:8591:(snd_pcm_set_params) Unable to get period size for PLAYBACK: Invalid argument
Exception in thread sound:
Traceback (most recent call last):
File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
self.run()
File "/usr/lib/python3.7/threading.py", line 865, in run
self._target(*self._args, **self._kwargs)
File "/home/dave/clock/clock/hardware/sound.py", line 28, in _run
player = self._wav.play()
File "/home/dave/clock/lib/python3.7/site-packages/simpleaudio/shiny.py", line 20, in play
self.bytes_per_sample, self.sample_rate)
File "/home/dave/clock/lib/python3.7/site-packages/simpleaudio/shiny.py", line 61, in play_buffer
sample_rate)
_simpleaudio.SimpleaudioError: Error setting parameters. -- CODE: -22 -- MSG: Invalid argument
I've seen this on other wave's as well, however, some wave's seem to work fine. I don't know what makes the difference.
Happy to provide whatever other details you may require.
The text was updated successfully, but these errors were encountered:
Running on a RaspberryPi Zero using i2s sound.
aplay CantinaBand60.wav
. It works fine.I've seen this on other wave's as well, however, some wave's seem to work fine. I don't know what makes the difference.
Happy to provide whatever other details you may require.
The text was updated successfully, but these errors were encountered: