|
| Author |
Message |
mattaustin Sentinel

Joined: 19 Jul 2004 Posts: 556 Location: Los Angeles, CA
  votes: 1
|
Posted: Wed Feb 02, 2005 1:36 am Post subject: |
|
|
| 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

Joined: 21 Jan 2004 Posts: 473
   
|
Posted: Wed Feb 02, 2005 3:06 am Post subject: |
|
|
Hey! Cool!
Great find matt! |
|
| Back to top |
|
 |
darkmonkey The Merovingian

Joined: 18 Apr 2004 Posts: 2557 Location: London, England
     votes: 7
|
Posted: Wed Feb 02, 2005 8:17 am Post subject: |
|
|
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

Joined: 22 Mar 2004 Posts: 1436 Location: Mars
 
|
Posted: Wed Feb 02, 2005 4:03 pm Post subject: |
|
|
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

Joined: 15 Mar 2004 Posts: 661 Location: Manchester, UK
    
|
Posted: Wed Feb 02, 2005 6:57 pm Post subject: |
|
|
Not to be big headed but I saw that ages ago 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

Joined: 19 Jul 2004 Posts: 556 Location: Los Angeles, CA
  votes: 1
|
Posted: Wed Feb 02, 2005 6:59 pm Post subject: |
|
|
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  _________________ [ matt ] |
|
| Back to top |
|
 |
prof3ta Young One

Joined: 04 Mar 2004 Posts: 64
   
|
Posted: Tue Feb 15, 2005 6:06 am Post subject: |
|
|
| good find... users will find it amusing! |
|
| Back to top |
|
 |
draget Not Yet a God

Joined: 29 Dec 2004 Posts: 367 Location: Australia
   
|
Posted: Sat Feb 19, 2005 11:12 am Post subject: |
|
|
| nice, i'm using it! rep + (8 days though) |
|
| Back to top |
|
 |
purcelly God Like

Joined: 10 Jun 2004 Posts: 560 Location: North West, England
    
|
Posted: Sat Feb 19, 2005 2:55 pm Post subject: |
|
|
cool matt
gonna add to bot when i get in |
|
| Back to top |
|
 |
mathieu2005 Young One

Joined: 23 Dec 2004 Posts: 76
  
|
Posted: Sun Feb 20, 2005 12:41 am Post subject: |
|
|
| i dont know how work this command |
|
| Back to top |
|
 |
draget Not Yet a God

Joined: 29 Dec 2004 Posts: 367 Location: Australia
   
|
Posted: Sun Feb 20, 2005 2:42 am Post subject: |
|
|
| 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

Joined: 23 Dec 2004 Posts: 76
  
|
Posted: Sun Feb 20, 2005 3:06 pm Post subject: |
|
|
3037 BoT Template (my own) |
|
| Back to top |
|
 |
darkmonkey The Merovingian

Joined: 18 Apr 2004 Posts: 2557 Location: London, England
     votes: 7
|
Posted: Sun Feb 20, 2005 6:00 pm Post subject: |
|
|
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

Joined: 23 Dec 2004 Posts: 76
  
|
Posted: Mon Feb 21, 2005 12:24 am Post subject: |
|
|
| i make it but i dont understand this (Because im a newb :'() |
|
| Back to top |
|
 |
draget Not Yet a God

Joined: 29 Dec 2004 Posts: 367 Location: Australia
   
|
Posted: Mon Feb 21, 2005 9:43 am Post subject: |
|
|
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 |
|
 |
|