I have been trying to use the “speak” feature in a sequence, but am not getting any audio output.
I am able to create a simple sequence to speak a few words (and, of course, save and sync). When I click “Test”, the sequence runs and appears successful, but I get no audio output. I tried many things and eventually concluded that the pi itself might be bad, so I replaced the raspberry pi with a new one and I still get the same result.
I am trying to get the audio output via the headphone jack, as is indicated in the release notes about the “speak” feature. I suppose it could be possible that the sound is somehow coming out over hdmi, but I am not able to set the sound output device via FarmBot OS. Or perhaps volume is set to zero or something?? But, again, volume is not adjustable in FarmBotOS, so I would think that neither of these would be the issue.
Any help or similar experiences that others can offer would be appreciated. Thanks in advance!
audio should be sent out over the headphone jack. The raspberry pi’s audio jack is not amplified so it’s possible that everything is working, you just cant hear it. Have you tried with headphones as a test? i will look into making sure volume is max just to be sure.
Yes, have tried headphones as a test and can’t hear anything. Also tried connecting the headphone jack to the mic jack on another computer and listening for audio with audacity. This should have been able to pick up even things that were too quiet for me to hear, but it didn’t pick up anything. (I tested that setup by playing sounds to it from other devices and was able to pick them up without trouble.)
I did this test of a sequence with 1 command SEND MESSAGE and with both Toast Pop-up and Speak checked. Hardwired my little SONY SRS XB-20 speaker ( with Vol at Max ). The only sound was a soft background noise due to the digital circuits high frequency switching.
I did see the Toast Pop-up, but there was no espeak ( to speak of )
Re: the ALSA errors, I’ve seen on other (non-FarmBot) pis that sometimes you can get a lot of ALSA errors like that and still have audio output working. That being said, those errors are a good place to start, since clearly aren’t getting audio over the audio jack. Thanks for checking that!
@sven, I just checked . . there’s silence on the HDMI audio channel also.
Those ALSA issues are the root symptom of the problem I believe.
You won’t get far if you can’t configure a sample rate for a stream Expression 'paInvalidSampleRate' failed [ . . . ]
Maybe @RickCarlino has some news ? There will need to be a fix for the Linux OS package.
@jsimmonds Thanks for that note. So now that Pre-release has some audio, but it’s choppy and out of HDMI. If we can get choppy audio over the headphone jack it would serve my purposes well enough. Looks like it’s pretty close.