sound_play no sound, no error
ROS Kinetic
Running on a paspberry pi 3 b+
USB speaker attached.
I have tried everything I could find on troubleshooting this.
At first I couldn't get any sound even using non-ROS command (aplay).
But after using PulseAudio (pacmd) to set the default source and sink and blacklisting the built-in sound card, aplay will play sounds.
But sound_play will not.
This works fine:
$ aplay /usr/share/sounds/alsa/Side_Left.wav
When I try the below, it shows the message sent and received, but no sound. No errors.
rosrun sound_play soundplay_node.py
It returns:
sound_play node is ready to play sound
Then in new terminal I enter:
rosrun sound_play say.py "hello world"
It returns:
Saying: hello world
Voice: voicekaldiphone
Volume: 1.0
On the first terminal, where I started the node, it returns:
sound: -3
command: 1
volume: 1.0
arg: "hello world"
arg2: "voicekaldiphone"
So, it appears to work, but no sound.
Any direction is appreciated.
Asked by lotharchris on 2020-01-29 13:20:17 UTC
Comments
I unplugged the USB speaker and plugged in a powered speaker to the headphone jack. aplay works, but still no sound using sound_play. Is there some sound control that sound_play uses that aplay doesn't? Any direction is appreciated.
Asked by lotharchris on 2020-03-03 22:43:52 UTC