talking Puppy

Requests go here. If you fill a request, give it a new thread in the appropriate category and then link to it in the request thread.
Post Reply
Message
Author
User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

talking Puppy

#1 Post by Lobster »

here is the deb which I installed
there was then a missing library
http://linuxappfinder.com/package/flite

can anyone create a pet please?
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
RetroTechGuy
Posts: 2947
Joined: Tue 15 Dec 2009, 17:20
Location: USA

Re: talking Puppy

#2 Post by RetroTechGuy »

Lobster wrote:here is the deb which I installed
there was then a missing library
http://linuxappfinder.com/package/flite

can anyone create a pet please?
OK you Crustacean Old Fart... :lol:

I don't know how to make .pets, but I went into the Debian repository and installed these two files:

http://http.us.debian.org/debian/pool/m ... 2_i386.deb
http://http.us.debian.org/debian/pool/m ... 2_i386.deb

The main page, in case there are more missing libs:
http://packages.debian.org/squeeze/flite

I don't know how to run the program, but it reported no errors from the command line with those installed (flite was obviously waiting for an input, or input file). This was Puppy 4.3.1 (I think a nearly "stock" pupsave)
[url=http://murga-linux.com/puppy/viewtopic.php?t=58615]Add swapfile[/url]
[url=http://wellminded.net63.net/]WellMinded Search[/url]
[url=http://puppylinux.us/psearch.html]PuppyLinux.US Search[/url]

User avatar
Keef
Posts: 987
Joined: Thu 20 Dec 2007, 22:12
Location: Staffordshire

#3 Post by Keef »

Yer could try this

amigo
Posts: 2629
Joined: Mon 02 Apr 2007, 06:52

#4 Post by amigo »

The main option to flite is either a file name or quoted text. One caveat, teh quoted text should include a space if it is a single word.
flite "hullo "
because this:
flite "hullo"
will try to open a file named hullo
flite /path/to/file/containg/text
will read the text in that file.
The new flite-1.4 lets you (finally) choose between one of sevral voices at run-time. The female voice is the most pleasant and sounds less metallic than the male voices.
I use flite in my src2pkg program to give audio-notification when package builds are completed. I also use flite as the speech-output for the ainebot chatbot which I maintain -BTW, I'm close to getting speech-to-text (julius) integrated into the chabot so that you speak to it and it speaks back, after formulating a response using AI pattern-matching techniques. The bot is also able to run commands as part of its' response -give ya any ideas?? I may actually use the new svox-pico library from android for the text-to-speech output as it has even nicer voices.
speech-to-text > AI > text-to-speech
HAL, are you there?

flite_hts also has nicer voices than most of the flite voices, but it gets tripped up by some texts and outputs garbled speech, plus it is only able to handle a limited numbers of characters of text (1024 by default), so it cannot read whole pages of text like flite does.

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

#5 Post by Lobster »

I don't know how to make .pets, but I went into the Debian repository and installed these two files:

http://http.us.debian.org/debian/pool/m ... 2_i386.deb
http://http.us.debian.org/debian/pool/m ... 2_i386.deb
Thanks guys :)
I downloaded and clicked on the two files above (in Lucid 5.2 (beta)
and then typed

# flite "hello world"
at the console

My computer spoke to me 8)
Incidentally I did try the earlier 4.3.1 flite pet but it did not work

So those two debs could be stripped of extraneous material
(so to speak) and turned into a pet, if anyone is up for it

This high degree of deb compatibility is rather useful . . .
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
RetroTechGuy
Posts: 2947
Joined: Tue 15 Dec 2009, 17:20
Location: USA

#6 Post by RetroTechGuy »

Lobster wrote:This high degree of deb compatibility is rather useful . . .
It vastly expands the number of tools that Puppy has available.

However, not all packages work well -- some .deb bundles are missing entirely too many deps and libraries to make installation feasible.

BTW, I just tried the package -- pretty cool.
(I had previously installed it on a machine with no sound card, which told me that the install worked)

@Lobster: How do you select or add a different voice for flite? Following the instructions seems to have no effect, and it seems to be ignoring alternate voice files -- I'm clearly missing something here.
[url=http://murga-linux.com/puppy/viewtopic.php?t=58615]Add swapfile[/url]
[url=http://wellminded.net63.net/]WellMinded Search[/url]
[url=http://puppylinux.us/psearch.html]PuppyLinux.US Search[/url]

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

#7 Post by Lobster »

#flite -voice slt "hello world"

works for me
there may not be much of a differentiation between voices
it maybe too slight to notice?
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
RetroTechGuy
Posts: 2947
Joined: Tue 15 Dec 2009, 17:20
Location: USA

#8 Post by RetroTechGuy »

Lobster wrote:#flite -voice slt "hello world"

works for me
there may not be much of a differentiation between voices
it maybe too slight to notice?
Perhaps that is the problem. I thought perhaps it was ignoring the "-voice" command, as no voice definition file had been placed in the magical, hidden voice directory (if there is such a thing). I tried having it read some Gutenberg Etext books, and couldn't tell that there was any difference (perhaps my ears are simply too old).
[url=http://murga-linux.com/puppy/viewtopic.php?t=58615]Add swapfile[/url]
[url=http://wellminded.net63.net/]WellMinded Search[/url]
[url=http://puppylinux.us/psearch.html]PuppyLinux.US Search[/url]

User avatar
Geoffrey
Posts: 2355
Joined: Sun 30 May 2010, 08:42
Location: Queensland

#9 Post by Geoffrey »

Lobster wrote:
I don't know how to make .pets, but I went into the Debian repository and installed these two files:

http://http.us.debian.org/debian/pool/m ... 2_i386.deb
http://http.us.debian.org/debian/pool/m ... 2_i386.deb
Thanks guys :)
I downloaded and clicked on the two files above (in Lucid 5.2 (beta)
and then typed

# flite "hello world"
at the console

My computer spoke to me 8)
Incidentally I did try the earlier 4.3.1 flite pet but it did not work

So those two debs could be stripped of extraneous material
(so to speak) and turned into a pet, if anyone is up for it

This high degree of deb compatibility is rather useful . . .
I downloaded these deb's, works not to bad, I like the talking clock that's quite clear, it a bit of a pain with no GUI, so I made one to record text to wav and saves them in /root/my-documents.

Just open a text editor copy the code below and save it to what ever you
want to call it and then set the properties of the file to run as a program
I have made it to be a popup, if you want to drag it around just change the script so this line reads
"<window title="FLITE TEXT TO SPEECH RECORDER" resizable="false" decorated="true">"

Code: Select all

#! /bin/bash
TEXTFILE=""
NEW_WAV_NAME=""
function record_text() {
`Xdialog --timeout 2 --msgbox "RECORDING" 0 0`
`flite -voice $VOICE -f $TEXTFILE -o $NEW_WAV_NAME.wav`
`mv $NEW_WAV_NAME.wav /root/my-documents/ `
`Xdialog --timeout 2 --msgbox "FINISHED" 0 0`
`rox -d /root/my-documents/`
}
export DIALOG='
<window title="FLITE TEXT TO SPEECH RECORDER" resizable="false" decorated="false">
  <vbox>
   <frame>
   <text use-markup="true"><label>"<span color='"'blue'"' font-family='"'purisa'"' weight='"'bold'"' size='"'large'"'><small>Select a text file</small></span>"</label></text>
   <hbox>
   <entry accept="filename">
   <variable>TEXTFILE</variable>
   <input>echo ""</input>
      </entry>
      <button>
   <input file icon="gtk-open"></input>
   <action type="fileselect">TEXTFILE</action>
   <action>refresh:TEXTFILE</action>
   <action>echo $TEXTFILE</action>
      </button>
     </hbox>
      </frame>
      <frame>
   <text use-markup="true"><label>"<span color='"'blue'"' font-family='"'purisa'"' weight='"'bold'"' size='"'large'"'><small>Enter a name for wav with NO spaces</small></span>"</label></text>
     <entry>
   <variable>NEW_WAV_NAME</variable>
   <input>echo ""</input>
      </entry>
   </frame>
   <frame>
   <text use-markup="true"><label>"<span color='"'blue'"' font-family='"'purisa'"' weight='"'bold'"' size='"'large'"'><small>Enter a name of voice to use from list</small></span>"</label></text>
   <text use-markup="true"><label>"<span color='"'blue'"' font-family='"'purisa'"' weight='"'bold'"' size='"'large'"'><small>awb kal kal16 rms slt (Blank is default voice)</small></span>"</label></text>
   <hbox>
   <entry>
   <variable>VOICE</variable>
   <input>echo ""</input>
      </entry>
     
      <button>
      <label>RECORD</label>
      <input file icon="gtk-media-record"></input>
   <action type="exit">OK</action>
      </button>
      <text><label>""</label></text>
      <button>
      <label>Quit</label>
      <input file icon="gtk-stop"></input>
      <action type="exit">cancel</action>
      </button>
    </hbox>
    </frame>
   </vbox>
</window>'

I=$IFS; IFS=""
for STATEMENTS in  $(gtkdialog3 --program DIALOG); do
  eval $STATEMENTS
done

IFS=$I

if [ "$EXIT" = "OK" ]; then
  record_text
else
  echo "Canceled"
fi


Post Reply