text2speech english (festival)

Stuff that has yet to be sorted into a category.
Message
Author
User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

text2speech english (festival)

#1 Post 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
Last edited by MU on Mon 14 Jul 2008, 01:46, edited 1 time in total.

User avatar
klhrevolutionist
Posts: 1121
Joined: Wed 08 Jun 2005, 10:09

hmm

#2 Post 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 !!
Last edited by klhrevolutionist on Fri 16 Jun 2006, 19:25, edited 1 time in total.
Heaven is on the way, until then let's get the truth out!

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#3 Post 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

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#4 Post by Lobster »

:) What fun. Thanks Mark works OK on my (inbuilt) Via soundcard :)
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#5 Post by MU »

fine Kenny :D


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 :lol:

If it would not be so big...

Mark

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#6 Post 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?
8)
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#7 Post 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.

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#8 Post 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

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#9 Post by Lobster »

A pseudo random number sufficient here can be called like so:

Code: Select all

date --u +%S
to give a random number in the range 1-60

:)
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#10 Post 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.

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#11 Post by Lobster »

8) Calling MU
Lobster to MU . . .

random function reminder . . .
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#12 Post 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
Last edited by MU on Mon 14 Jul 2008, 01:45, edited 2 times in total.

User avatar
klhrevolutionist
Posts: 1121
Joined: Wed 08 Jun 2005, 10:09

#13 Post 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.
Heaven is on the way, until then let's get the truth out!

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#14 Post 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?
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

all singing / dancing Puppy

#15 Post by Lobster »

:)
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.
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
Last edited by Lobster on Sun 26 Nov 2006, 07:45, edited 1 time in total.
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
WhoDo
Posts: 4428
Joined: Wed 12 Jul 2006, 01:58
Location: Lake Macquarie NSW Australia

#16 Post 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! 8)

User avatar
WhoDo
Posts: 4428
Joined: Wed 12 Jul 2006, 01:58
Location: Lake Macquarie NSW Australia

#17 Post 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! 8)

Thanks again, mate.

Cheers

User avatar
dinky
Posts: 699
Joined: Sat 19 Jan 2008, 23:39

#18 Post by dinky »

Hey MU, neat program, can you explain how to get the talktext1 pup to run?
~dinky

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#19 Post 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
Last edited by MU on Mon 14 Jul 2008, 10:47, edited 1 time in total.
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#20 Post 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 . . .
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

Post Reply