[arm-allstar] tts help
David McGough
kb4fxc at inttek.net
Sun Jul 24 10:25:46 EST 2016
Hi Greg,
I suspect that VoiceRSS is not sending back a proper mp3 file, causing
lame to fail. Or, the /tmp filesystem is full, as Doug commented. When
this error occurs again, try to scrutinize the returned audio.mp3 file and
the space available in /tmp.
BTW, I'm working on software updates for the weather TTS now. One change
significantly reduces the VoiceRSS daily usage counts. The current
software chops the text for processing into small segments before sending
for TTS conversion. This was required for Google, but not for others.
A big negative side effect of sending many small requests is that each
small request increments the VoiceRSS daily total, versus sending a
single big TTS request, which would only increase the daily usage count by
1....Alas, currently, the total is reached very quickly.
73, David KB4FXC
On Sun, 24 Jul 2016, Greg via arm-allstar wrote:
> Nope, no fix...
> Here is the issue where I fail..
>
> # now convert the file to a ulaw
> lame --decode ${TMPDIR}/audio.mp3 ${TMPDIR}/audio.wav &> /dev/null 2>&1
> if [ ! -f ${TMPDIR}/audio.wav ] ; then
> echo "Failed to convert mp3 file to wav audio file (lame decode
> failure)" 2>&1
> echo "One of the downloaded segments may be bad. Please retry
> script" 2>&1
> echo " and check internet access..." 2>&1
> echo "Aborting..." 2>&1
> cleanup
> exit 1
> fi
>
> This is the output if the script fails above. If I were not getting the
> voicerss to respond, there would be a different error. This is
> intermittent. Sometimes it works... tough.
>
>
>
> Thanks
> Greg
> _______________________________________________
>
> arm-allstar mailing list
> arm-allstar at hamvoip.org
> http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
>
> Visit the BBB and RPi2 web page - http://hamvoip.org
>
More information about the arm-allstar
mailing list