Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 01 Oct 2014, 16:47
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
text2speech german
Moderators: deshlab, Flash, GuestToo, Ian, JohnMurga, Lobster
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Fri 16 Jun 2006, 11:40    Post_subject:  text2speech german  

Download (11 MB):
http://dotpups.de/dotpups/Science/txt2speech-german.pup

Then open a console-window, and type:
say "Dieser Synthesizer ist durchaus zum vorlesen längerer Texte geeignet. Er kann auch zählen. 3,14 ist Pi."

Or:
say "inglish sounds olmost as woers as spoken by a riel german" Laughing


To set the speed, type:
sayspeed 10000

Try values between 10000 and 20000.
To set the default (15000) just type
sayspeed

It uses aplay (alsa) for playing, to change that, you would have to modify
/usr/local/bin/txt2speech.sh

I created the dotpup using these instructions:
http://www.linuxwiki.de/SprachAusgabe

Mark

Edited_time_total
Back to top
View user's profile Send_private_message Visit_website 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Fri 16 Jun 2006, 12:11    Post_subject:  

uploaded again, the speedsetting did not work.
Mark
Back to top
View user's profile Send_private_message Visit_website 
vabene06

Joined: 25 Apr 2006
Posts: 36

PostPosted: Sat 17 Jun 2006, 05:53    Post_subject:  

It is nice.
Ist es mglich, sich eine lngere Textdatei vorlesehen zu lassen?

vabene
Back to top
View user's profile Send_private_message 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Sat 17 Jun 2006, 10:37    Post_subject:  

yes, to read a longer textfile, run such a command:

say "`cat /etc/puppyversion`"

But it is difficult to understand, because it sounds very monotone.

you could use such a shellscript:

saytext
Code:
#!/bin/bash

say "`cat $1`"


Then you can use it like say:
saytext /etc/puppyversion

It might be worth a try, to test other voices.
Download one of those mentioned here:
http://www.linuxwiki.de/SprachAusgabe

Extract to
/usr/local/txt2speech
Then you should have a new subfolder there like "de2".

To use it instead of de1, edit this line in /usr/local/bin/txt2speech.sh:
VOICE=de1
Set it to
VOICE=de2

Mark
Back to top
View user's profile Send_private_message Visit_website 
vabene06

Joined: 25 Apr 2006
Posts: 36

PostPosted: Sat 17 Jun 2006, 11:27    Post_subject:  

Thanx, it works fine.
vabene
Back to top
View user's profile Send_private_message 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Sat 17 Jun 2006, 14:24    Post_subject:  

here, this is much better:

save it as /usr/local/bin/talktext1

Then make it executable:
chmod 755 /usr/local/bin/talktext1

Code:
#!/usr/bin/puppybasic
include "/usr/lib/wxbasicscript/basefunctions.inc"

say = "say"


thefile = argvtostring()

if left(thefile,3) = "-en" then
  say = "talk"
  thefile = cutleft(thefile , "-en ")
end if



t = readfiletolist(thefile)

for i = 0 to count(t)-1

  t[i] = replace(t[i],"\"" , "\\\"")

  t[i] = replace(t[i],". " , ". . . . ")
  t[i] = replace(t[i],"! " , "! . . . ")
  t[i] = replace(t[i],"? " , "? . . . ")

next

writelisttofile("/tmp/talktext.tmp" , t)
shell(say & " \"`cat /tmp/talktext.tmp`\"")
removefile("/tmp/talktext.tmp")



Then save this text as "/root/test.txt":

Quote:
US-Außenministerin Rice hat Äußerungen der iranischen Regierung über den Vermittlungsvorschlag im Atomstreit begrüßt. Der Optimismus von Deutschlands Außenminister Steinmeier hält sich indes in Grenzen.


important save it as ISO-8859-1, not as UTF-8 Exclamation
There is a small selection for that in the "save as" dialog of leafpad.

Then run:
talktext1 /root/test.txt

Now you really can understand what she says!
Ok, maybe you must listen twice. But it is much better than before, because now you have a pause between each sentence. And you can use Texts, that contain the "-sign, too.

To test it with the english festival:
Use an english text, then run
talktext1 -en /root/test.txt

But that is much more difficult to understand than german. Maybe some more tweaking achieves better results.

Mark

Edited_time_total
Back to top
View user's profile Send_private_message Visit_website 
vabene06

Joined: 25 Apr 2006
Posts: 36

PostPosted: Sun 18 Jun 2006, 01:56    Post_subject:  

It is ok. It works fine . thanx, vabene
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0529s ][ Queries: 11 (0.0032s) ][ GZIP on ]