User Control Panel
Advertisements

HELP US, HELP YOU!

Text to speech
Goto page 1, 2, 3  Next
 
Post new topic   Reply to topic    Bot Depot Forum Index -> Commands
View unanswered posts
Author Message
mattaustin
Sentinel
Sentinel


Joined: 19 Jul 2004
Posts: 556
Location: Los Angeles, CA
Reputation: 50.7
votes: 1

PostPosted: Wed Feb 02, 2005 1:36 am    Post subject: Reply with quote

Code:
<br />use LWP::UserAgent;<br />my $ua = LWP::UserAgent->new;<br /><br />my $text = "I love bot depot dot com";<br /><br />my $req = HTTP::Request->new(POST => 'http://hegel.research.att.com/tts/cgi-bin/nph-talk');<br />$req->content("txt=$text&voice=mike");<br />my $res = $ua->request($req);<br />$res->{_content} =~ m/speech\/(.*?wav)/;<br />print "http://hegel.research.att.com/tts/speech/$1";<br />


this code is useing AT&T Labs TTS Demo

make this a command for what ever template type you use.

EDIT:
other voices:
$req->content("txt=$text&voice= ");

crystal: Crystal ... US English
mike: Mike ...... US English
rich: Rich ...... US English
lauren: Lauren .... US English
claire: Claire .... US English
rosa: Rosa ...... Latin Am. Spanish
alberto: Alberto ... Latin Am. Spanish
klara: Klara ..... German
reiner: Reiner .... German
alain: Alain ..... French
juliette: Juliette .. French
charles: Charles ... UK English
audrey: Audrey .... UK English

_________________
[ matt ]
Back to top
Addict
Not Yet a God
Not Yet a God


Joined: 21 Jan 2004
Posts: 473

Reputation: 34.4Reputation: 34.4Reputation: 34.4

PostPosted: Wed Feb 02, 2005 3:06 am    Post subject: Reply with quote

Hey! Cool!

Great find matt!
Back to top
darkmonkey
The Merovingian
The Merovingian


Joined: 18 Apr 2004
Posts: 2557
Location: London, England
Reputation: 39.3Reputation: 39.3Reputation: 39.3Reputation: 39.3
votes: 7

PostPosted: Wed Feb 02, 2005 8:17 am    Post subject: Reply with quote

Now to work on saving it to a .wav and sending it in file-transfer!
_________________
~ Josh
[ Need bot hosting on a dedicated server? PM me. ]
Back to top
alienz
Almost An Agent
Almost An Agent


Joined: 22 Mar 2004
Posts: 1436
Location: Mars
Reputation: 55.7

PostPosted: Wed Feb 02, 2005 4:03 pm    Post subject: Reply with quote

Interesting stuff. This converts the text to a wav with the chosen voice?
_________________
Check out Botworld! A dev resource for things bot.
Downloads, articles, news, fourm and more.
http://botworld.marzopolis.com
Back to top
Gavin
God Like
God Like


Joined: 15 Mar 2004
Posts: 661
Location: Manchester, UK
Reputation: 36.2Reputation: 36.2Reputation: 36.2Reputation: 36.2

PostPosted: Wed Feb 02, 2005 6:57 pm    Post subject: Reply with quote

Not to be big headed but I saw that ages ago Razz it was in a magazine. Anyway maybe we shouldn't rely so much on websites and research as they could once go.

But cool I never thought about using it as a command. That’s given me some ideas for things though...

_________________
MSN: gavin [at] gavinbrittain [dot] co [dot] uk
E-Portfolio: www.gavinbrittain.co.uk (New version comming soon)
Back to top
mattaustin
Sentinel
Sentinel


Joined: 19 Jul 2004
Posts: 556
Location: Los Angeles, CA
Reputation: 50.7
votes: 1

PostPosted: Wed Feb 02, 2005 6:59 pm    Post subject: Reply with quote

yes text to speach has been around for a while...there are free command line tools to do it and windows has some free stuff to do it to. you could use any of those and send a file....or upload it via ftp and send a link, but while this is up it seems ez Razz
_________________
[ matt ]
Back to top
prof3ta
Young One
Young One


Joined: 04 Mar 2004
Posts: 64

Reputation: 27.7Reputation: 27.7Reputation: 27.7

PostPosted: Tue Feb 15, 2005 6:06 am    Post subject: Reply with quote

good find... users will find it amusing!
Back to top
draget
Not Yet a God
Not Yet a God


Joined: 29 Dec 2004
Posts: 367
Location: Australia
Reputation: 32.2Reputation: 32.2Reputation: 32.2

PostPosted: Sat Feb 19, 2005 11:12 am    Post subject: Reply with quote

nice, i'm using it! rep + (8 days though)
Back to top
purcelly
God Like
God Like


Joined: 10 Jun 2004
Posts: 560
Location: North West, England
Reputation: 35.1Reputation: 35.1Reputation: 35.1Reputation: 35.1

PostPosted: Sat Feb 19, 2005 2:55 pm    Post subject: Reply with quote

cool matt

gonna add to bot when i get in
Back to top
mathieu2005
Young One
Young One


Joined: 23 Dec 2004
Posts: 76

Reputation: 18.4Reputation: 18.4

PostPosted: Sun Feb 20, 2005 12:41 am    Post subject: Reply with quote

i dont know how work this command
Back to top
draget
Not Yet a God
Not Yet a God


Joined: 29 Dec 2004
Posts: 367
Location: Australia
Reputation: 32.2Reputation: 32.2Reputation: 32.2

PostPosted: Sun Feb 20, 2005 2:42 am    Post subject: Reply with quote

Its not quite a command, rather an example of how o use the service, you have to code it for your own bot yourself, what template are you using?
Back to top
mathieu2005
Young One
Young One


Joined: 23 Dec 2004
Posts: 76

Reputation: 18.4Reputation: 18.4

PostPosted: Sun Feb 20, 2005 3:06 pm    Post subject: Reply with quote

3037 BoT Template
(my own)
Back to top
darkmonkey
The Merovingian
The Merovingian


Joined: 18 Apr 2004
Posts: 2557
Location: London, England
Reputation: 39.3Reputation: 39.3Reputation: 39.3Reputation: 39.3
votes: 7

PostPosted: Sun Feb 20, 2005 6:00 pm    Post subject: Reply with quote

If you made a template, this should be easy compared. That is if you did make it.
_________________
~ Josh
[ Need bot hosting on a dedicated server? PM me. ]
Back to top
mathieu2005
Young One
Young One


Joined: 23 Dec 2004
Posts: 76

Reputation: 18.4Reputation: 18.4

PostPosted: Mon Feb 21, 2005 12:24 am    Post subject: Reply with quote

i make it but i dont understand this (Because im a newb :'()
Back to top
draget
Not Yet a God
Not Yet a God


Joined: 29 Dec 2004
Posts: 367
Location: Australia
Reputation: 32.2Reputation: 32.2Reputation: 32.2

PostPosted: Mon Feb 21, 2005 9:43 am    Post subject: Reply with quote

even i understand it (and thats saying something)

when i have added it to my bot i will post the code for you
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Bot Depot Forum Index -> Commands All times are GMT
Goto page 1, 2, 3  Next
Page 1 of 3

 



Protected by phpBB Security phpBB-TweakS
phpBB Security Has Blocked 9 Exploit Attempts.
Antispam Captcha Mod by phpbb-security.com
Powered by phpBB © 2001, 2005 phpBB Group