PDA

View Full Version : Wave file generated by Java text-to-speechsynthesizerdoesn't play correctly



Michael Dubno
2004-03-08, 19:39
So, is there a way to trick lame into doing the right thing?
I can probably pad the voice with a bit of extra white-sound.
The inability to play short files does seem like a bug though.
Thanks again - Mikes

-----Original Message-----
From: discuss-bounces (AT) lists (DOT) slimdevices.com
[mailto:discuss-bounces (AT) lists (DOT) slimdevices.com] On Behalf Of Roy M.
Silvernail
Sent: Monday, March 08, 2004 8:13 PM
To: Slim Devices Discussion
Subject: [slim] Wave file generated by Java text-to-speech
synthesizerdoesn't play correctly

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-08, 20:29
On Mon, 2004-03-08 at 21:39, Michael Dubno wrote:
> So, is there a way to trick lame into doing the right thing?

Sure! (watch the word-wrap)

sox test.wav -t .wav -r 44100 -c 2 - | lame --silent -b $BITRATE$ - -

> I can probably pad the voice with a bit of extra white-sound.

I'd pad with silence. White noise will make barking noises on playback.

> The inability to play short files does seem like a bug though.

Be kind. It's an unanticipated feature. :)
--
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

kdf
2004-03-08, 23:02
Quoting "Roy M. Silvernail" <roy (AT) rant-central (DOT) com>:

> On Mon, 2004-03-08 at 21:39, Michael Dubno wrote:
> > So, is there a way to trick lame into doing the right thing?
>
> Sure! (watch the word-wrap)
>
> sox test.wav -t .wav -r 44100 -c 2 - | lame --silent -b $BITRATE$ - -
>
> > I can probably pad the voice with a bit of extra white-sound.
>
> I'd pad with silence. White noise will make barking noises on playback.
>
> > The inability to play short files does seem like a bug though.
>
> Be kind. It's an unanticipated feature. :)

actually, its a bug...filed and waiting.
http://bugs.slimdevices.com/show_bug.cgi?id=5

-kdf