-
Notifications
You must be signed in to change notification settings - Fork 693
Sample format non available #198
Comments
Maybe #183, does removing ~/.asoundrc help? |
Thanks for the help. Removing ~/.asoundrc makes the error disappear, but there is no sound coming out from speakers at all. I followed the below steps you pointed out in the post, but no sound from speaker yet. any suggestions? scripts/configure-driver.sh |
If no sound is coming from the speakers, you should double-check you've connected the speakers correctly. If that doesn't help, you may have a hardware problem - do you know anyone with a Voice HAT you could test with? |
Thanks @drigz. I just double-triple-checked the speaker connection, no audio yet. Unfortunately I do not know anyone with a Voice HAT that I can test with. I am able to hear some audio coming out of the raspberry pi headphone jack(using "omxplayer example.mp3" command) which means raspberry is at least working fine. Any other suggestion you can think of other than buying new Voice HAT hardware/Speaker? |
Have you tried with the AIY image from the website (~1GB download)? If you've checked the connections and it doesn't work with the official image, then you should return your kit. Sorry :( |
Actually I have been trying all these steps with the AIY image. Is there any other image that I can try with? If not, I would have to return the kit. |
Just before you return it - are you logging into it using VNC? |
sorry, I just got a chance to look at the hardware. There is a loud speaker symbol at the top right and it shows 100. Also /boot/config.txt has same parameters as you mentioned. Is it time to return? :D |
Actually, let's try one more thing. Can you run this command and post the output?
|
And can you also right click on the speaker symbol and confirm that
Were just confirming that sound is being sent to the voicehat. |
I am away from the hardware. Will try in evening and let you guys know. Thanks. |
@drigz, here is the output that I got.
@sheridat ..Yes, only two of them shown and there is a green Tick symbol in front of snd_rpi_googlevoicehat_soundcar. |
Afraid I can't think of any explanation other than a bad Voice HAT, so you'll have to return it. I hope you're up and running soon with a new one! |
Hi,
I am trying to setup the google voice hat and unable to hear any audio from the speaker. Please see below the error that I am getting. Appreciate any help.
Playing a test sound...
aplay: set_params:1233: Sample format non available
Available formats:
Traceback (most recent call last):
File "/home/pi/AIY-voice-kit-python/checkpoints/check_audio.py", line 138, in
main()
File "/home/pi/AIY-voice-kit-python/checkpoints/check_audio.py", line 133, in main
do_checks()
File "/home/pi/AIY-voice-kit-python/checkpoints/check_audio.py", line 117, in do_checks
if not check_speaker_works():
File "/home/pi/AIY-voice-kit-python/checkpoints/check_audio.py", line 78, in check_speaker_works
aiy.audio.play_wave(TEST_SOUND_PATH)
File "/home/pi/AIY-voice-kit-python/src/aiy/audio.py", line 102, in play_wave
player.play_wav(wave_file)
File "/home/pi/AIY-voice-kit-python/src/aiy/_drivers/_player.py", line 71, in play_wav
self.play_bytes(frames, wav.getframerate(), wav.getsampwidth())
File "/home/pi/AIY-voice-kit-python/src/aiy/_drivers/_player.py", line 52, in play_bytes
aplay.stdin.write(audio_bytes)
BrokenPipeError: [Errno 32] Broken pipe
Press Enter to close...
Thanks,
Firoz
The text was updated successfully, but these errors were encountered: