Has any programmer advance-configured pico2wave?

If none of the more specific forums is the right place to ask

Has any programmer advance-configured pico2wave?

Postby bkpsusmitaa » 2018-09-03 15:17

man pico2wave is a very short file.
Has any programmer advance-configured pico2wave? Beyond its default capabilities?
I have reached up to this step, but not this step.
Only that this file:
Code: Select all
mentioned to be in:
Code: Select all

that says:
Code: Select all

is rather in
Code: Select all
with the said line, i.e.,
Code: Select all

and has to be edited to:
Code: Select all

I have installed the necessary package, libttspico0, and can have pico2wave read from CLI, for instance:
Code: Select all
 pico2wave -w lookdave.wav "Look Dave, I can see you're really upset about this." && aplay lookdave.wav

I can also use the following script (attached) for a very small file:
Code: Select all
./speak.sh "$(cat hello.txt)"
, if I have the small hello.txt file in the same folder as the script file. There is a # of Character upper Limit for the txt file.

The speak.sh file being:
Code: Select all
# How to Use this script to read a txt file?
# Then run it with the desired text:
# speak.sh "hello world"

# or read the contents of an entire file:
# speak.sh "$(cat <filename>)"

echo "./speak.sh \"\$(cat filename)\""
pico2wave -l=en-US -w=/tmp/test.wav "$1"
aplay /tmp/test.wav
rm /tmp/test.wav

But I can't alter pico2wave -'s sampling rate to 48000. It only samples at 16000Hz.
Any suggestions?
Freedom is impossible to conceive.
Books that help:
Dale Carnegie's How To Win Friends And Influence People and Emilie Post's Etiquette In Society, In Business, In Politics, And At Home
Posts: 368
Joined: 2009-07-04 06:32
Location: Home: Barrackpore and Mysore

Return to General Questions

Who is online

Users browsing this forum: No registered users and 12 guests