PDA

View Full Version : Wave file generated by Java text-to-speech synthesizer doesn'tplay correctly



Michael Dubno
2004-03-08, 14:51
I noticed an earlier post from someone who wanted to get the slimserver
software to speak song titles, etc. In addition to using the slim devices
to play music, I've also integrated them into my home-built home automation
software. I use the displays to show various home statuses and I'm trying
to use the audio for speech. I've created wave files using the FreeTTS Java
library but the files won't play on my slimp3 devices - they just make a
clunky-kinda-noise. They play correctly using Windows Media Player though.
My guess is that there is something wrong with the structure of the file, or
in the way I setup my slim devices.



The file is tiny, and on my web server at
http://www.dubno.com/files/test.wav



Thanks - Mike

kdf
2004-03-08, 17:41
Quoting Michael Dubno <michael (AT) dubno (DOT) com>:

> I noticed an earlier post from someone who wanted to get the slimserver
> software to speak song titles, etc. In addition to using the slim devices
> to play music, I've also integrated them into my home-built home automation
> software. I use the displays to show various home statuses and I'm trying
> to use the audio for speech. I've created wave files using the FreeTTS Java
> library but the files won't play on my slimp3 devices - they just make a
> clunky-kinda-noise.

If you are trying to play these with no repeat, short clips will get lost. I
have assumed this is due to the data not being enough to fill the buffer, so you
never hear it. Try playing it by itself with repeat set to all, and see if you
at least hear something.

Otherwise, it could be a matter of sample rate. Squeezebox has some issues with
low sample rates, and maybe with mono wav as well but I'm not sure if that's
since been fixed.

-kdf

Roy M. Silvernail
2004-03-08, 18:12
On Mon, 2004-03-08 at 19:41, kdf wrote:

> Otherwise, it could be a matter of sample rate. Squeezebox has some issues with
> low sample rates, and maybe with mono wav as well but I'm not sure if that's
> since been fixed.

That's it, Kevin. Michael's file is 8kHz mono. A little sox magic

sox test.wav -r 44100 -c 2 test2.wav

and the result does play on my squeeze, though it gets cut off early
(probably due to the short duration, as you suggested). For the time
being, any PCM for squeeze needs to be wav or aif (which appear to
differ only in byte order) at 44.1kHz sample rate, 2 channels, 16-bit
samples.
--
Roy M. Silvernail is roy (AT) rant-central (DOT) com, and you're not
Never Forget: It's Only 1's and 0's!
SpamAssassin->procmail->/dev/null->bliss
http://www.rant-central.com

Roy M. Silvernail
2004-03-10, 07:02
RDNZL said:
>> In addition to using the slim devices to play music, Išve also
>> integrated them
>> into my home-built home automation software. I use the displays to show
>> various home statuses
>
> Interesting ! how difficult is it to have the Slimp3 display a string of
> your choice ?

Not hard at all. Look at the docs for the web interface and the command
line interface. The 'display' command does the magic.
--
Roy M. Silvernail is roy (AT) rant-central (DOT) com, and you're not
http://www.rant-central.com is the new scytale
Never Forget: It's Only 1's and 0's!
SpamAssassin->procmail->/dev/null->bliss