Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Community > MacNN Lounge > Keep me up all night!

Keep me up all night!
Thread Tools
Mac Elite
Join Date: Oct 2001
Location: Internet
Status: Offline
Reply With Quote
Mar 14, 2005, 09:04 PM
 
I have gone crazy and whipped up a quick web-interface to the OS X 'say' shell command that allows you to use Apple's text-2-speech technology through the web. Here is the link:

c0nn0r.info/say.html

Go Ahead! Give it a try. You won't hear anything on your end, but I sure will as the server is located in my bachelor apartment.

MacBook Air 11" 1.6Ghz 4GB 128GB Backlit Keyboard, 4S, iPad 2
     
Addicted to MacNN
Join Date: Aug 2004
Location: Outfield - #24
Status: Offline
Reply With Quote
Mar 14, 2005, 09:06 PM
 
     
hadocon  (op)
Mac Elite
Join Date: Oct 2001
Location: Internet
Status: Offline
Reply With Quote
Mar 14, 2005, 09:14 PM
 
Hey, I heard Gorickey!




.... No, I am not totally insane yet...


This is awesome! Keep 'em coming!

MacBook Air 11" 1.6Ghz 4GB 128GB Backlit Keyboard, 4S, iPad 2
     
hadocon  (op)
Mac Elite
Join Date: Oct 2001
Location: Internet
Status: Offline
Reply With Quote
Mar 14, 2005, 09:17 PM
 
Apparently Demonhood is a hoar.... So says my server


In case you all wanted to know, I am using the Fred voice for now... When I have some spare time I will add an option to the script so ppl can choose which-ever voice they want. There are a bunch.

MacBook Air 11" 1.6Ghz 4GB 128GB Backlit Keyboard, 4S, iPad 2
     
hadocon  (op)
Mac Elite
Join Date: Oct 2001
Location: Internet
Status: Offline
Reply With Quote
Mar 14, 2005, 09:20 PM
 
This is hilarious!

Remember folks. NO PUNCTUATION! It makes the voice all farked-up

MacBook Air 11" 1.6Ghz 4GB 128GB Backlit Keyboard, 4S, iPad 2
     
hadocon  (op)
Mac Elite
Join Date: Oct 2001
Location: Internet
Status: Offline
Reply With Quote
Mar 14, 2005, 09:21 PM
 
Yes, I am wearing pants, but my GF is not... HAWT!!!!

Should I turn the webcam on? ha ha ha LOL JK...

MacBook Air 11" 1.6Ghz 4GB 128GB Backlit Keyboard, 4S, iPad 2
     
Addicted to MacNN
Join Date: Sep 2000
Location: Madison, WI
Status: Offline
Reply With Quote
Mar 14, 2005, 09:21 PM
 
Ha Ha. This is great!

Here is what I said.

[http://c0nn0r.info/cgi-bin/say.cgi?string=Hey+Connor+Are+you+wearing+pants+I+ am+not.+dcmacdaddy+L+O+L]

<edited so you butt-heads don't make me look like a perv. >
(Last edited by dcmacdaddy; Mar 14, 2005 at 09:58 PM. )
One should never stop striving for clarity of thought and precision of expression.
I would prefer my humanity sullied with the tarnish of science rather than the gloss of religion.
     
hadocon  (op)
Mac Elite
Join Date: Oct 2001
Location: Internet
Status: Offline
Reply With Quote
Mar 14, 2005, 09:22 PM
 
I should link to this script in my SIG...

MacBook Air 11" 1.6Ghz 4GB 128GB Backlit Keyboard, 4S, iPad 2
     
hadocon  (op)
Mac Elite
Join Date: Oct 2001
Location: Internet
Status: Offline
Reply With Quote
Mar 14, 2005, 09:25 PM
 
Originally posted by dcmacdaddy:
Ha Ha. This is great!

Here is what I said.

http://c0nn0r.info/cgi-bin/say.cgi?s...macdaddy+L+O+L

Cool!

If you can ppl, please post what you said on my server here so others can take a look. It woudl also help me, cause I can then have a record of this whole "rap game."

MacBook Air 11" 1.6Ghz 4GB 128GB Backlit Keyboard, 4S, iPad 2
     
Addicted to MacNN
Join Date: Sep 2000
Location: Madison, WI
Status: Offline
Reply With Quote
Mar 14, 2005, 09:26 PM
 
Originally posted by hadocon:
I should link to this script in my SIG...
Is all the code in your HTML page or do you have stuff on the server side as well.
If so, could you post the code.

I am going to sell my eMac (for space reasons) and get a Mac mini for a small home server.
I could have so much fun with this when I get it all set up. Thanks!
One should never stop striving for clarity of thought and precision of expression.
I would prefer my humanity sullied with the tarnish of science rather than the gloss of religion.
     
Mac Elite
Join Date: Jun 2003
Location: Alabama
Status: Offline
Reply With Quote
Mar 14, 2005, 09:26 PM
 
i don't remember what i said.
http://www.mafia-designs.com
     
hadocon  (op)
Mac Elite
Join Date: Oct 2001
Location: Internet
Status: Offline
Reply With Quote
Mar 14, 2005, 09:37 PM
 
Originally posted by dcmacdaddy:
Is all the code in your HTML page or do you have stuff on the server side as well.
If so, could you post the code.

I am going to sell my eMac (for space reasons) and get a Mac mini for a small home server.
I could have so much fun with this when I get it all set up. Thanks!
Server-side. It is actually a bash script that I am accessing as a CGI. It is dead simple really.

The CGI:

#!/bin/sh
#
# This script takes a string/sentence from a web form and passes
# it to the 'say' shell command in Darwin.
#
# Currently this script is unable to correctly handle punctuation.
# © 2005 Connor Dickie - connor@cs.queensu.ca
#
echo "Content-type: text/html"
echo
SAY=`echo $QUERY_STRING | cut -d= -f2`
echo "<html><head><title>Your words were spoken.</title></head>"
echo "<body><h2>Your words were spoken out loud in my apartment.</h2>"
echo "<tr><td>"
echo $SAY | say -v Fred
echo "<P>"
echo "You made my server say: "
echo "<I> $SAY </I>"
echo "<P>"
echo "</body></html>"
And the corresponding HTML form:

<html>
<head><title>Title goes here</title></head>
<body>
<h1><center>heading goes here</center></h1>
<p>
<form action="http://path_2_cgi" method=get>
<b>Enter words to be passed to cgi:</b>
<input type=text name=string>
<input type=submit value="Speak">
</form>
</body>
</html>
Enjoy! I sure am...

MacBook Air 11" 1.6Ghz 4GB 128GB Backlit Keyboard, 4S, iPad 2
     
Addicted to MacNN
Join Date: Sep 2000
Location: Madison, WI
Status: Offline
Reply With Quote
Mar 14, 2005, 09:41 PM
 
Originally posted by hadocon:
Server-side. It is actually a bash script that I am accessing as a CGI. It is dead simple really.

The CGI:



And the corresponding HTML form:



Enjoy! I sure am...
Thanks for the code Connor, dcmacdaddy
One should never stop striving for clarity of thought and precision of expression.
I would prefer my humanity sullied with the tarnish of science rather than the gloss of religion.
     
hadocon  (op)
Mac Elite
Join Date: Oct 2001
Location: Internet
Status: Offline
Reply With Quote
Mar 14, 2005, 09:45 PM
 
Originally posted by dcmacdaddy:
Thanks for the code Connor, dcmacdaddy
No problemo. If you make any cool modifications please let me know.

MacBook Air 11" 1.6Ghz 4GB 128GB Backlit Keyboard, 4S, iPad 2
     
hadocon  (op)
Mac Elite
Join Date: Oct 2001
Location: Internet
Status: Offline
Reply With Quote
Mar 14, 2005, 09:46 PM
 
YES MACDADDY I AM WEARING PANTS. DO YOU WANT ME TO TAKE THEM OFF?

MacBook Air 11" 1.6Ghz 4GB 128GB Backlit Keyboard, 4S, iPad 2
     
hadocon  (op)
Mac Elite
Join Date: Oct 2001
Location: Internet
Status: Offline
Reply With Quote
Mar 14, 2005, 09:47 PM
 
Well, hello to Hong Kong!

MacBook Air 11" 1.6Ghz 4GB 128GB Backlit Keyboard, 4S, iPad 2
     
Addicted to MacNN
Join Date: Mar 1999
Location: Bellevue, WA
Status: Offline
Reply With Quote
Mar 14, 2005, 09:52 PM
 
I'm IN.
     
Addicted to MacNN
Join Date: Sep 2000
Location: Madison, WI
Status: Offline
Reply With Quote
Mar 14, 2005, 09:52 PM
 
Originally posted by hadocon:
YES MACDADDY I AM WEARING PANTS. DO YOU WANT ME TO TAKE THEM OFF?
No need to shout. **I** only said it once. Are you getting multiple requests for this?

I think if people are clicking the link I posted it is repeating the submission. Is that possible with the way the code works?
One should never stop striving for clarity of thought and precision of expression.
I would prefer my humanity sullied with the tarnish of science rather than the gloss of religion.
     
hadocon  (op)
Mac Elite
Join Date: Oct 2001
Location: Internet
Status: Offline
Reply With Quote
Mar 14, 2005, 09:53 PM
 
Starbucks is OK, but I prefer The Sleepless Goat.

MacBook Air 11" 1.6Ghz 4GB 128GB Backlit Keyboard, 4S, iPad 2
     
hadocon  (op)
Mac Elite
Join Date: Oct 2001
Location: Internet
Status: Offline
Reply With Quote
Mar 14, 2005, 09:55 PM
 
Originally posted by dcmacdaddy:
No need to shout. **I** only said it once. Are you getting multiple requests for this?

I think if people are clicking the link I posted it is repeating the submission. Is that possible with the way the code works?
It seems to be. I guess ppl are clicking and clicking and clicking...

Could those who are clicking "I'm not wearing pants" play fair and at least post something new?


MacBook Air 11" 1.6Ghz 4GB 128GB Backlit Keyboard, 4S, iPad 2
     
Mac Elite
Join Date: Jun 2004
Location: College
Status: Offline
Reply With Quote
Mar 14, 2005, 09:55 PM
 
I quoted the song Im listening to... but I used a period at the end, will that screw it up?
     
Addicted to MacNN
Join Date: Sep 2000
Location: Madison, WI
Status: Offline
Reply With Quote
Mar 14, 2005, 09:59 PM
 
Originally posted by hadocon:
It seems to be. I guess ppl are clicking and clicking and clicking...

Could those who are clicking "I'm not wearing pants" play fair and at least post something new?

Sorry about that. I edited my post by taking out the URL tags.
One should never stop striving for clarity of thought and precision of expression.
I would prefer my humanity sullied with the tarnish of science rather than the gloss of religion.
     
hadocon  (op)
Mac Elite
Join Date: Oct 2001
Location: Internet
Status: Offline
Reply With Quote
Mar 14, 2005, 10:02 PM
 
Originally posted by MacMan4000:
I quoted the song Im listening to... but I used a period at the end, will that screw it up?
What happens with punctuation is this:

The 'say' command will actuallt start to speak the characters that the HTTP POST command injects into the string (a bunch of +'s and %'s and whatnot). So if you put it at the end it is not too much of an issue.

eg.

String: c0nn0r is the coolest

period at end:

String: c0nn0r is the coolest%$ <-- and some other crap

period at beginning:

String: c0nn0r+is+the+coolest

Which makes it sound kinda weird.

I am sure that there is a way around this, but I only really budgeted about 1/2 hour to coding this today. It's "open source" now, so if anyone has a chance to clean it up, please be my guest

MacBook Air 11" 1.6Ghz 4GB 128GB Backlit Keyboard, 4S, iPad 2
     
Mac Elite
Join Date: Jul 2003
Location: North Carolina
Status: Offline
Reply With Quote
Mar 14, 2005, 10:03 PM
 
I did a couple ND quotes.

"Tina, you fat lard, come get some dinner!"
"Don't be jealous that I've been chatting online with hot babes all day"
     
hadocon  (op)
Mac Elite
Join Date: Oct 2001
Location: Internet
Status: Offline
Reply With Quote
Mar 14, 2005, 10:08 PM
 
Originally posted by jasonsRX7:
I did a couple ND quotes.

"Tina, you fat lard, come get some dinner!"
"Don't be jealous that I've been chatting online with hot babes all day"
I noticed... after hearing the 2nd quote I had to fire up iTunes and listen to "Kip's technology song." It's brilliant.

MacBook Air 11" 1.6Ghz 4GB 128GB Backlit Keyboard, 4S, iPad 2
     
hadocon  (op)
Mac Elite
Join Date: Oct 2001
Location: Internet
Status: Offline
Reply With Quote
Mar 14, 2005, 10:09 PM
 
Yes, it is really working....

MacBook Air 11" 1.6Ghz 4GB 128GB Backlit Keyboard, 4S, iPad 2
     
Dedicated MacNNer
Join Date: Jan 2005
Location: Orlando, FL
Status: Offline
Reply With Quote
Mar 14, 2005, 10:09 PM
 
this is great fun !!!

this inspired me to buy a domain, good stuff man!

Mac Mini : 1.66 Core Duo : 2 GB ♥
     
hadocon  (op)
Mac Elite
Join Date: Oct 2001
Location: Internet
Status: Offline
Reply With Quote
Mar 14, 2005, 10:11 PM
 
Originally posted by Garage81:
this is great fun !!!

this inspired me to buy a domain, good stuff man!
Awesome!

MacBook Air 11" 1.6Ghz 4GB 128GB Backlit Keyboard, 4S, iPad 2
     
hadocon  (op)
Mac Elite
Join Date: Oct 2001
Location: Internet
Status: Offline
Reply With Quote
Mar 14, 2005, 10:17 PM
 
Why would I want to do this? Someone asked...

a) cause it's fun
b) cause I like learning
c) cause I can
d) cause even though we all come from different moms, we all have the same hands.

MacBook Air 11" 1.6Ghz 4GB 128GB Backlit Keyboard, 4S, iPad 2
     
Dedicated MacNNer
Join Date: Jan 2005
Location: Orlando, FL
Status: Offline
Reply With Quote
Mar 14, 2005, 10:27 PM
 
i hit you with a few "quotes"

this has to be really entertaining on your end.

Mac Mini : 1.66 Core Duo : 2 GB ♥
     
hadocon  (op)
Mac Elite
Join Date: Oct 2001
Location: Internet
Status: Offline
Reply With Quote
Mar 14, 2005, 10:27 PM
 
Apparently I have golden hands now....

Some ppl are saying some odd stuff.

I'm enjoying it though.

MacBook Air 11" 1.6Ghz 4GB 128GB Backlit Keyboard, 4S, iPad 2
     
Xeo
Moderator Emeritus
Join Date: Mar 2001
Location: Austin, MN, USA
Status: Offline
Reply With Quote
Mar 14, 2005, 10:28 PM
 
Originally posted by hadocon:
Apparently I have golden hands now....

Some ppl are saying some odd stuff.

I'm enjoying it though.

All in good fun.
     
Mac Elite
Join Date: Jun 2004
Location: College
Status: Offline
Reply With Quote
Mar 14, 2005, 10:29 PM
 
I through in a few happy gilmore quotes.
"I eat pieces of s*** like you or breakfast"
"you eat pieces of s*** for breakfast?" (without question mark)
     
Mac Elite
Join Date: Dec 1999
Location: Plainview, NY
Status: Offline
Reply With Quote
Mar 14, 2005, 10:38 PM
 
"Quite an experience to live in fear, isn't it? That's what it is to be a slave." sans punctuation for the script. (bladerunner)
     
hadocon  (op)
Mac Elite
Join Date: Oct 2001
Location: Internet
Status: Offline
Reply With Quote
Mar 14, 2005, 10:42 PM
 
OK, some joker must have cut 'n' pasted in something huge, and with punctuation so I had to kill his 'say' job... So, let it be known that if you post something dumb and huge I will just kill it.

Don't be annoying.

Most of the posts are quite funny though

MacBook Air 11" 1.6Ghz 4GB 128GB Backlit Keyboard, 4S, iPad 2
     
hadocon  (op)
Mac Elite
Join Date: Oct 2001
Location: Internet
Status: Offline
Reply With Quote
Mar 14, 2005, 10:44 PM
 
Originally posted by spiky_dog:
"Quite an experience to live in fear, isn't it? That's what it is to be a slave." sans punctuation for the script. (bladerunner)
Love that flick. I must have seen all versions at least 5 times each, so that means.. 4 versions x 5... uh... 20?... at least..

MacBook Air 11" 1.6Ghz 4GB 128GB Backlit Keyboard, 4S, iPad 2
     
hadocon  (op)
Mac Elite
Join Date: Oct 2001
Location: Internet
Status: Offline
Reply With Quote
Mar 14, 2005, 10:45 PM
 
Originally posted by Garage81:
this is great fun !!!

this inspired me to buy a domain, good stuff man!
What's your domain?

MacBook Air 11" 1.6Ghz 4GB 128GB Backlit Keyboard, 4S, iPad 2
     
hadocon  (op)
Mac Elite
Join Date: Oct 2001
Location: Internet
Status: Offline
Reply With Quote
Mar 14, 2005, 10:49 PM
 
99 bottle's of beer song.... LOL
(Last edited by hadocon; Mar 14, 2005 at 10:57 PM. )

MacBook Air 11" 1.6Ghz 4GB 128GB Backlit Keyboard, 4S, iPad 2
     
Dedicated MacNNer
Join Date: Jan 2005
Location: Orlando, FL
Status: Offline
Reply With Quote
Mar 14, 2005, 10:55 PM
 
Originally posted by hadocon:
What's your domain?
havent done it yet, but its on my short list

12 hour work days are really killing the free time lately.

Mac Mini : 1.66 Core Duo : 2 GB ♥
     
Mac Elite
Join Date: Jul 2003
Location: North Carolina
Status: Offline
Reply With Quote
Mar 14, 2005, 11:02 PM
 
"you ought not ta done that hes jussa boy mmm hmmm" - slingblade
     
Mac Enthusiast
Join Date: Feb 2005
Location: The Nut Ranch
Status: Offline
Reply With Quote
Mar 14, 2005, 11:03 PM
 
I typed:
Dude you rock JustanOlBroad
and
waaaaaaaaaaay kewl

P~
     
Mac Elite
Join Date: Jul 2003
Location: North Carolina
Status: Offline
Reply With Quote
Mar 14, 2005, 11:19 PM
 
ok, last one for me... "ba weep gra na weep ninny ba" and i hope you know where it's from. i'm sure lots of you do
     
hadocon  (op)
Mac Elite
Join Date: Oct 2001
Location: Internet
Status: Offline
Reply With Quote
Mar 14, 2005, 11:23 PM
 
Whoever spoke about punctuation... I know that it is possibe. I just don't know how to do it right now. Can you enlighten us? Enquiring minds what to know!

MacBook Air 11" 1.6Ghz 4GB 128GB Backlit Keyboard, 4S, iPad 2
     
hadocon  (op)
Mac Elite
Join Date: Oct 2001
Location: Internet
Status: Offline
Reply With Quote
Mar 14, 2005, 11:28 PM
 
Originally posted by jasonsRX7:
ok, last one for me... "ba weep gra na weep ninny ba" and i hope you know where it's from. i'm sure lots of you do
I totally know that one, but I can't remember exactly where it is from. Something to do with outer-space or robots.... Crap.. I cant sleep until I find out what that was from... I guess I'll Google it...

Could not find it on Google, but I relelbered that it is the greeting said by the roboth the transformers encountered on the trash/waste planet in TransFormers: The Movie. I beleive that the voice was none other than Michael Palin(sp?), or at least some other Monty Python person.....

What do I win?

MacBook Air 11" 1.6Ghz 4GB 128GB Backlit Keyboard, 4S, iPad 2
     
Mac Elite
Join Date: Jul 2003
Location: North Carolina
Status: Offline
Reply With Quote
Mar 14, 2005, 11:39 PM
 
Originally posted by hadocon:
I relelbered that it is the greeting said by the roboth the transformers encountered on the trash/waste planet in TransFormers: The Movie.
Hey, good memory... Eric Idle did the voice of Wreck-Gar, tho. But it's not like I remembered that, I had to IMDB it.
     
Mac Enthusiast
Join Date: Feb 2005
Location: The Nut Ranch
Status: Offline
Reply With Quote
Mar 15, 2005, 12:30 AM
 
"rrrrrrrrrrip"

"who farted"


Sorry, just trying to help you get to sleep
     
Professional Poster
Join Date: Apr 2001
Location: Capital city of the Empire State.
Status: Offline
Reply With Quote
Mar 15, 2005, 12:37 AM
 
BTW, the message from God was really me.
/mal
"I sentence you to be hanged by the neck until you cheer up."
MacBook Pro 15"/2.4 GHz Intel Core 2 Duo/4 GB DDR2 SDRAM/200 GB Hitachi HD/8x SuperDrive/Mac OS X 10.6.1
     
Mac Elite
Join Date: Sep 2004
Location: Theory - everything works in theory
Status: Offline
Reply With Quote
Mar 15, 2005, 12:52 AM
 
How do you shoot the devil in the back? What if you miss?
From one of my favorite movies
     
hadocon  (op)
Mac Elite
Join Date: Oct 2001
Location: Internet
Status: Offline
Reply With Quote
Mar 15, 2005, 08:17 AM
 
Well, it is the next morning and I had an pretty good sleep. I must admit though that I turned down the volume on the server... Volume is @ 100% now, so if you ppl want to continue "talking" with me, go ahead.

MacBook Air 11" 1.6Ghz 4GB 128GB Backlit Keyboard, 4S, iPad 2
     
hadocon  (op)
Mac Elite
Join Date: Oct 2001
Location: Internet
Status: Offline
Reply With Quote
Mar 15, 2005, 08:37 AM
 
Lots of visitors already this morning... Awesome!

MacBook Air 11" 1.6Ghz 4GB 128GB Backlit Keyboard, 4S, iPad 2
     
 
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 01:05 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2