Page 1 of 2
text2speech english (festival)
Posted: Fri 16 Jun 2006, 18:44
by MU
Download (11 MB):
http://dotpups.de/dotpups/Science/festival.pup
It is 34 MB extracted on your harddisk.
If you want it on another one, move and symlink /usr/local/festival
Then in a consolewindow type:
talk "this is a test. What do you think about it?"
it uses this synthesizer:
http://tcts.fpms.ac.be/synthesis/mbrola.html
It uses this program, to convert text to phonemes:
http://www.cstr.ed.ac.uk/projects/festival/
Mark
hmm
Posted: Fri 16 Jun 2006, 18:58
by klhrevolutionist
I am typiny what you told, but do not here anything ? Do I need to have anything installed ? I was assuming that everything needed was included in the dotpup...
EDIT = I believe my speaker is malfunctioning... Hooked it up to surround sound and now works !!
Posted: Fri 16 Jun 2006, 19:05
by MU
Do you use Puppy2?
Do you get any errors?
can you hear something with this command?:
aplay /usr/share/sounds/generic.wav
Please also try this in a console:
/usr/local/festival/festival/bin/festival
(SayText "test")
CTRL-D to stop
You get any errors?
Mark
Posted: Fri 16 Jun 2006, 21:35
by Lobster
What fun. Thanks Mark works OK on my (inbuilt) Via soundcard
Posted: Fri 16 Jun 2006, 22:04
by MU
fine Kenny
Lobster,
yeah, it's cool for single sentences. But when you try to let it say messages from the forum, it gets difficult to understand
But it might be funny, to add things like
talk "ok, I'll serve you, master"
if you click on a button in a wizard
If it would not be so big...
Mark
Posted: Sat 17 Jun 2006, 05:09
by Lobster
MU wrote:
talk "ok, I'll serve you, master"
I normally say that to my computer . . .
By right clicking on a desktop icon and editing as text
I was able to add the following in a few minutes
(festival talks as the program opens - so no appreciable delay)
Have not worked out how to do an exit message
Code: Select all
#!/bin/sh
talk "Web! Here I come!"
exec mozstart "$@"
Code: Select all
#!/bin/sh
talk "Editor is open!" &
exec geany "$@"
Code: Select all
#!/bin/sh
talk "Let us paint!" &
exec mtpaint "$@"
Is there an easy way for a bash random function to
call from a list of alternative festival startup texts?
Posted: Sat 17 Jun 2006, 05:41
by Flash
It would be nice if Puppy could make a noise to let you know when it finished doing something that takes a while, like downloading a large file or opening a web page that takes a long time.
Posted: Sat 17 Jun 2006, 06:51
by MU
flash, it depends.
I think you can not alter downloads from Mozilla/Firefox.
But you could rename wget to wget2.
Then create a new wget:
Code: Select all
#!/bin/bash
wget2 "$@"
talk "Attention. . the download finished."
------------
Lobster, I don't know how to use random functions in shellscripts.
In puppybasic it might work, but I'm too tired to concentrate.
If I don't forget it, I can write something tomorrow, remind me please.
Mark
Posted: Sat 17 Jun 2006, 08:13
by Lobster
A pseudo random number sufficient here can be called like so:
to give a random number in the range 1-60
Posted: Sat 17 Jun 2006, 21:47
by sunburnt
It's amazing how much funnier ordinary phrases can be when the PC says them.
I've used text to speech before & the kids had a blast with it.
PC speech quotes;
"Nathan is a do do head"
"Lauren has a big butt"
The kids laughed for hours doing this.
Thanks MU for bringing all this back to us.
Posted: Sat 24 Jun 2006, 14:10
by Lobster
Calling MU
Lobster to MU . . .
random function reminder . . .
Posted: Sat 24 Jun 2006, 20:25
by MU
ok, here it is
First, you need talkext1 to read textfiles:
( description:
http://www.murga-linux.com/puppy/viewto ... 4129#54129 )
Then you need some textfiles with the text to be read.
And finally "randomtext", a small Puppybasic examplescript.
I added some start-variables in it, so that you easily can customize it.
I made a dotpup of all required files with a menu-entry:
http://dotpups.de/dotpups/Science/talktext1.pup
Works with the english and the german speech-synthesizers.
Mark
Posted: Sat 25 Nov 2006, 23:05
by klhrevolutionist
Robots in disguise...
Are there other voices for this thing ? The one by default is a robot. I know lobster mentioned a website sometime back that could say small lines in different tones. I will be looking up the docs, but thought I might ask in case somebody else already knew.
Thanks.
Posted: Sun 26 Nov 2006, 00:50
by edoc
klhrevolutionist wrote:Robots in disguise...
Are there other voices for this thing ? The one by default is a robot. I know lobster mentioned a website sometime back that could say small lines in different tones. I will be looking up the docs, but thought I might ask in case somebody else already knew.
Thanks.
Looking forward to what you put together!
Any progress on voice-to-text for Puppy?
all singing / dancing Puppy
Posted: Sun 26 Nov 2006, 06:15
by Lobster
Thanks Mark
Currently the only version of Puppy that talks and may even sing is
Linux Tmxxine
However it would be a fun thing for kids versions . . .
http://tmxxine.com/Wikka/wikka.php?wakka=LinuxTmxxine
The ISO link MAY still work but xara (for example) is not stable at all in this pre-release
Linux Tmxxine is not expected to be released or sing until 2008
(in this time line)
Linux Tmxxine Unleashed ( v0.8 ) may be released after version 1 - Who knows
http://tmxxine.com/Wikka/wikka.php?wakk ... eUnleashed
Here are podcasts on creating an all singing / dancing Puppy
http://tmxxine.com/Wikka/wikka.php?wakka=DistroCreate
here is an online demo of text to wav
http://www.research.att.com/~ttsweb/tts/demo.php
Posted: Sun 26 Nov 2006, 07:02
by WhoDo
MU wrote:
Code: Select all
#!/bin/bash
wget2 "$@"
talk "Attention. . the download finished."
In fact an elipsis ( ... ) results in a definite pause, which makes the message far more understandable.
Great job, MU!
Posted: Fri 15 Dec 2006, 10:31
by WhoDo
MU,
I just have to say what a great time I'm having with festival.
I have "trained" it to say "
Caution! ... entering Edit Mode" whenever I open my text files in Geany, so I never forget that I'm doing something dangerous. I love it!
Thanks again, mate.
Cheers
Posted: Mon 14 Jul 2008, 01:30
by dinky
Hey MU, neat program, can you explain how to get the talktext1 pup to run?
~dinky
Posted: Mon 14 Jul 2008, 01:52
by MU
just install it, then type:
talktext1 /usr/local/talktext1/testtext-de
or:
talktext1 -en /usr/local/talktext1/testtext-en
references:
http://www.murga-linux.com/puppy/viewto ... 4129#54129
Mark
Posted: Mon 14 Jul 2008, 04:48
by Lobster
Dinky, Mu,
(good name for a Eurovision Song Contest winner)
I have turned the .pups into .pets (so they will be installable in Dingo)
Achtung (warning): running the .pet may freeze your system
Que? Why?
Anyway press ctrl + alt + backspace and from the prompt type xwin
- everything will be OK but even so . . . Pet bug?
Now the talktext1 requires wxbasicscript aka Puppybasic
and (shock horror) that is not in Puppy Dingo
. . . so you either install wxbasicscript or rewrite in C or Freebasic
or maybe it can be redone in plain bash script?
http://tmxxine.com/festival/festival.pet
http://tmxxine.com/festival/talktext1.pet
and talking of singing there is an extension of Festival
http://cslu.cse.ogi.edu/tts/flinger/
but then you need the midi add on . . .