User Control Panel
Advertisements

HELP US, HELP YOU!

Text to speech
Goto page Previous  1, 2, 3  Next
 
Post new topic   Reply to topic    Bot Depot Forum Index -> Commands
View unanswered posts
Author Message
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: Mon Feb 21, 2005 1:42 pm    Post subject: Reply with quote

QUOTE(draget @ Feb 21 2005, 10:43 AM)
i will post the code for you

Hey, ain't that an idea. Lets just give him all the code he needs, so he can continue to think he knows Perl, when really, he is just copying from others. The code is there for him, and all he needs to do is put an IF statement around it. You give him the code and you will be a fool.

_________________
~ Josh
[ Need bot hosting on a dedicated server? PM me. ]
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: Tue Feb 22, 2005 10:37 am    Post subject: Reply with quote

ok ok ok, no code, sorry!
Back to top
Pepper
Senior Member
Senior Member


Joined: 30 Jul 2004
Posts: 178
Location: Auckland, New Zealand
Reputation: 9.1Reputation: 9.1Reputation: 9.1Reputation: 9.1Reputation: 9.1Reputation: 9.1Reputation: 9.1Reputation: 9.1Reputation: 9.1

PostPosted: Mon Mar 14, 2005 6:35 pm    Post subject: Reply with quote

If your gonna use it on a site (Hey, why not? Razz ) you could allways do this

QUOTE(Code @ But I needed the Bold Tag =P)
use LWP::UserAgent;
my $ua = LWP::UserAgent->new;

my $text = "I love bot depot dot com";

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


So it re-directs them to the download Razz
Back to top
mat007
Almost An Agent
Almost An Agent


Joined: 12 Jan 2004
Posts: 1375

Reputation: 15.8Reputation: 15.8
votes: 2

PostPosted: Mon Mar 14, 2005 7:54 pm    Post subject: Reply with quote

Why not offer it as a download ?, Also you should print a content type Pepz i think

text/plain
Back to top
dan0211
Not Yet a God
Not Yet a God


Joined: 23 Dec 2003
Posts: 395

Reputation: 37.8Reputation: 37.8Reputation: 37.8Reputation: 37.8

PostPosted: Thu Mar 17, 2005 9:09 pm    Post subject: Reply with quote

Nah, you dont print a content type when you're forwarding to another address.
Back to top
Cer
Upgraded Agent
Upgraded Agent


Joined: 03 Feb 2004
Posts: 3776
Location: Michigan
Reputation: 146.9
votes: 4

PostPosted: Thu Mar 17, 2005 11:16 pm    Post subject: Reply with quote

QUOTE(dan0211 @ Mar 17 2005, 04:09 PM)
Nah, you dont print a content type when you're forwarding to another address.
[right][snapback]46986[/snapback][/right]


I think he was talking about sending the content-type of your ingoing data, to the website itself.

FOR example, using Google's translator, you do:
Quote:
# Request Google's translator.
my $req = HTTP::Request->new (POST => 'http://translate.google.com/translate_t');
$req->content_type ('application/x-www-form-urlencoded');
$req->content ("text=$what&langpair=$from|$to");

_________________
Current Site (2008) http://www.cuvou.com/
Back to top
dan0211
Not Yet a God
Not Yet a God


Joined: 23 Dec 2003
Posts: 395

Reputation: 37.8Reputation: 37.8Reputation: 37.8Reputation: 37.8

PostPosted: Fri Mar 18, 2005 6:44 pm    Post subject: Reply with quote

QUOTE(Mat007 @ Mar 14 2005, 08:54 PM)
Why not offer it as a download ?, Also you should print a content type Pepz i think

text/plain
[right][snapback]46897[/snapback][/right]


He means
Code:
<br />print "Content-type: text/html\n\n";
unless I am very mistaken.

If I'm not, then you wouldn't need to print it in this case.
Back to top
Pepper
Senior Member
Senior Member


Joined: 30 Jul 2004
Posts: 178
Location: Auckland, New Zealand
Reputation: 9.1Reputation: 9.1Reputation: 9.1Reputation: 9.1Reputation: 9.1Reputation: 9.1Reputation: 9.1Reputation: 9.1Reputation: 9.1

PostPosted: Fri Mar 18, 2005 7:32 pm    Post subject: Reply with quote

Yeah, because its simply taking them to another location
Back to top
Cer
Upgraded Agent
Upgraded Agent


Joined: 03 Feb 2004
Posts: 3776
Location: Michigan
Reputation: 146.9
votes: 4

PostPosted: Fri Mar 18, 2005 7:39 pm    Post subject: Reply with quote

/me lost another IQ point/

Content-Types don't have anything to do with returning a URL to a different site.

Is your bot printing out a certain file type? An HTML document or the binary of any type of WAV file? NO! What else would need a content-type?

Content-Types are needed with WEB-based stuff. Bots don't need Content-Types because they're not directly related to the HyperText Transfer Protocol in ANY way whatsoever.

So how many connections is this bot making to the Internet? ONE. ONE connection to figure out what URL to go to to download your wav. So where should this Content-Type go? To THAT ONE connection!

Hence, using the "POST" method to grab a URL, you need to send a Content-Type so that the HTTP knows how to process the incoming data!

If you all still don't understand this concept, then do NOT even bother replying. We already know you're f*cking morons, so don't reply yet again and prove it. <_<

_________________
Current Site (2008) http://www.cuvou.com/
Back to top
Pepper
Senior Member
Senior Member


Joined: 30 Jul 2004
Posts: 178
Location: Auckland, New Zealand
Reputation: 9.1Reputation: 9.1Reputation: 9.1Reputation: 9.1Reputation: 9.1Reputation: 9.1Reputation: 9.1Reputation: 9.1Reputation: 9.1

PostPosted: Fri Mar 18, 2005 7:46 pm    Post subject: Reply with quote

I know content-types arn't needed for redirection, and in my case that code wasn't for bots.
Back to top
dan0211
Not Yet a God
Not Yet a God


Joined: 23 Dec 2003
Posts: 395

Reputation: 37.8Reputation: 37.8Reputation: 37.8Reputation: 37.8

PostPosted: Fri Mar 18, 2005 8:45 pm    Post subject: Reply with quote

QUOTE(Cer @ Mar 18 2005, 08:39 PM)
/me lost another IQ point/

Content-Types don't have anything to do with returning a URL to a different site.

Is your bot printing out a certain file type? An HTML document or the binary of any type of WAV file? NO! What else would need a content-type?

Content-Types are needed with WEB-based stuff. Bots don't need Content-Types because they're not directly related to the HyperText Transfer Protocol in ANY way whatsoever.

So how many connections is this bot making to the Internet? ONE. ONE connection to figure out what URL to go to to download your wav. So where should this Content-Type go? To THAT ONE connection!

Hence, using the "POST" method to grab a URL, you need to send a Content-Type so that the HTTP knows how to process the incoming data!

If you all still don't understand this concept, then do NOT even bother replying. We already know you're f*cking morons, so don't reply yet again and prove it. <_<
[right][snapback]47006[/snapback][/right]

You know what Cer, you are wrong. It seemed obvious to everyone else we weren't talking about bots. So calling us "f*cking morons" is really making YOU look like the "f*cking moron".
Back to top
Dazzy
Agent
Agent


Joined: 09 Jan 2004
Posts: 1731

Reputation: 72.3

PostPosted: Fri Mar 18, 2005 10:27 pm    Post subject: Reply with quote

QUOTE(Pepper @ Mar 14 2005, 06:35 PM)
If your gonna use it on a site (Hey, why not? Razz ) you could allways do this


Cer, from then on everybody knew it was about a site, i'd quit while before you make it worse...
Back to top
Pepper
Senior Member
Senior Member


Joined: 30 Jul 2004
Posts: 178
Location: Auckland, New Zealand
Reputation: 9.1Reputation: 9.1Reputation: 9.1Reputation: 9.1Reputation: 9.1Reputation: 9.1Reputation: 9.1Reputation: 9.1Reputation: 9.1

PostPosted: Sat Mar 19, 2005 7:40 am    Post subject: Reply with quote

QUOTE(Cer @ Mar 18 2005, 11:39 AM)
/me lost another IQ point/
[right][snapback]47006[/snapback][/right]


You lost a IQ point because of yourself that time <_< Laughing
Back to top
Cer
Upgraded Agent
Upgraded Agent


Joined: 03 Feb 2004
Posts: 3776
Location: Michigan
Reputation: 146.9
votes: 4

PostPosted: Sat Mar 19, 2005 2:20 pm    Post subject: Reply with quote

Quote:
This forum is about bots, your posts should be too. Regardless of the name/description of the forum the assumed topic and limit of the topic is bots.


Quote:
Bot-Depot > Bot Development > Commands


Why isn't this about bots?

_________________
Current Site (2008) http://www.cuvou.com/
Back to top
Dazzy
Agent
Agent


Joined: 09 Jan 2004
Posts: 1731

Reputation: 72.3

PostPosted: Sat Mar 19, 2005 3:07 pm    Post subject: Reply with quote

it started about bots and then turned around.....
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Bot Depot Forum Index -> Commands All times are GMT
Goto page Previous  1, 2, 3  Next
Page 2 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