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
hadocon
Mac Elite
Join Date: Oct 2001
Location: Internet
Status: Offline
Reply With Quote
Mar 14, 2005, 11: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.
20+ year MacNN forum member. MacBook Air 11" 1.6Ghz 4GB 128GB Backlit Keyboard, 4S, iPad Mini
     
ManOfSteal
Addicted to MacNN
Join Date: Aug 2004
Location: Outfield - #24
Status: Offline
Reply With Quote
Mar 14, 2005, 11:06 PM
 
     
hadocon  (op)
Mac Elite
Join Date: Oct 2001
Location: Internet
Status: Offline
Reply With Quote
Mar 14, 2005, 11:14 PM
 
Hey, I heard Gorickey!




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


This is awesome! Keep 'em coming!
20+ year MacNN forum member. MacBook Air 11" 1.6Ghz 4GB 128GB Backlit Keyboard, 4S, iPad Mini
     
hadocon  (op)
Mac Elite
Join Date: Oct 2001
Location: Internet
Status: Offline
Reply With Quote
Mar 14, 2005, 11: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.
20+ year MacNN forum member. MacBook Air 11" 1.6Ghz 4GB 128GB Backlit Keyboard, 4S, iPad Mini
     
hadocon  (op)
Mac Elite
Join Date: Oct 2001
Location: Internet
Status: Offline
Reply With Quote
Mar 14, 2005, 11:20 PM
 
This is hilarious!

Remember folks. NO PUNCTUATION! It makes the voice all farked-up
20+ year MacNN forum member. MacBook Air 11" 1.6Ghz 4GB 128GB Backlit Keyboard, 4S, iPad Mini
     
hadocon  (op)
Mac Elite
Join Date: Oct 2001
Location: Internet
Status: Offline
Reply With Quote
Mar 14, 2005, 11:21 PM
 
Yes, I am wearing pants, but my GF is not... HAWT!!!!

Should I turn the webcam on? ha ha ha LOL JK...
20+ year MacNN forum member. MacBook Air 11" 1.6Ghz 4GB 128GB Backlit Keyboard, 4S, iPad Mini
     
dcmacdaddy
Addicted to MacNN
Join Date: Sep 2000
Location: Madison, WI
Status: Offline
Reply With Quote
Mar 14, 2005, 11: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 11: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, 11:22 PM
 
I should link to this script in my SIG...
20+ year MacNN forum member. MacBook Air 11" 1.6Ghz 4GB 128GB Backlit Keyboard, 4S, iPad Mini
     
hadocon  (op)
Mac Elite
Join Date: Oct 2001
Location: Internet
Status: Offline
Reply With Quote
Mar 14, 2005, 11: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."
20+ year MacNN forum member. MacBook Air 11" 1.6Ghz 4GB 128GB Backlit Keyboard, 4S, iPad Mini
     
dcmacdaddy
Addicted to MacNN
Join Date: Sep 2000
Location: Madison, WI
Status: Offline
Reply With Quote
Mar 14, 2005, 11: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.
     
Mafia
Mac Elite
Join Date: Jun 2003
Location: Alabama
Status: Offline
Reply With Quote
Mar 14, 2005, 11: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, 11: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 - [email protected]
#
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...
20+ year MacNN forum member. MacBook Air 11" 1.6Ghz 4GB 128GB Backlit Keyboard, 4S, iPad Mini
     
dcmacdaddy
Addicted to MacNN
Join Date: Sep 2000
Location: Madison, WI
Status: Offline
Reply With Quote
Mar 14, 2005, 11: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, 11:45 PM
 
Originally posted by dcmacdaddy:
Thanks for the code Connor, dcmacdaddy
No problemo. If you make any cool modifications please let me know.
20+ year MacNN forum member. MacBook Air 11" 1.6Ghz 4GB 128GB Backlit Keyboard, 4S, iPad Mini
     
hadocon  (op)
Mac Elite
Join Date: Oct 2001
Location: Internet
Status: Offline
Reply With Quote
Mar 14, 2005, 11:46 PM
 
YES MACDADDY I AM WEARING PANTS. DO YOU WANT ME TO TAKE THEM OFF?
20+ year MacNN forum member. MacBook Air 11" 1.6Ghz 4GB 128GB Backlit Keyboard, 4S, iPad Mini
     
hadocon  (op)
Mac Elite
Join Date: Oct 2001
Location: Internet
Status: Offline
Reply With Quote
Mar 14, 2005, 11:47 PM
 
Well, hello to Hong Kong!
20+ year MacNN forum member. MacBook Air 11" 1.6Ghz 4GB 128GB Backlit Keyboard, 4S, iPad Mini
     
Kenneth
Addicted to MacNN
Join Date: Mar 1999
Location: Bellevue, WA
Status: Offline
Reply With Quote
Mar 14, 2005, 11:52 PM
 
I'm IN.
     
dcmacdaddy
Addicted to MacNN
Join Date: Sep 2000
Location: Madison, WI
Status: Offline
Reply With Quote
Mar 14, 2005, 11: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, 11:53 PM
 
Starbucks is OK, but I prefer The Sleepless Goat.
20+ year MacNN forum member. MacBook Air 11" 1.6Ghz 4GB 128GB Backlit Keyboard, 4S, iPad Mini
     
hadocon  (op)
Mac Elite
Join Date: Oct 2001
Location: Internet
Status: Offline
Reply With Quote
Mar 14, 2005, 11: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?

20+ year MacNN forum member. MacBook Air 11" 1.6Ghz 4GB 128GB Backlit Keyboard, 4S, iPad Mini
     
MacMan4000
Mac Elite
Join Date: Jun 2004
Status: Offline
Reply With Quote
Mar 14, 2005, 11:55 PM
 
I quoted the song Im listening to... but I used a period at the end, will that screw it up?
     
dcmacdaddy
Addicted to MacNN
Join Date: Sep 2000
Location: Madison, WI
Status: Offline
Reply With Quote
Mar 14, 2005, 11: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 15, 2005, 12:02 AM
 
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
20+ year MacNN forum member. MacBook Air 11" 1.6Ghz 4GB 128GB Backlit Keyboard, 4S, iPad Mini
     
jasonsRX7
Mac Elite
Join Date: Jul 2003
Location: North Carolina
Status: Offline
Reply With Quote
Mar 15, 2005, 12:03 AM
 
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 15, 2005, 12:08 AM
 
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.
20+ year MacNN forum member. MacBook Air 11" 1.6Ghz 4GB 128GB Backlit Keyboard, 4S, iPad Mini
     
hadocon  (op)
Mac Elite
Join Date: Oct 2001
Location: Internet
Status: Offline
Reply With Quote
Mar 15, 2005, 12:09 AM
 
Yes, it is really working....
20+ year MacNN forum member. MacBook Air 11" 1.6Ghz 4GB 128GB Backlit Keyboard, 4S, iPad Mini
     
Garage81
Dedicated MacNNer
Join Date: Jan 2005
Location: Orlando, FL
Status: Offline
Reply With Quote
Mar 15, 2005, 12:09 AM
 
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 15, 2005, 12:11 AM
 
Originally posted by Garage81:
this is great fun !!!

this inspired me to buy a domain, good stuff man!
Awesome!
20+ year MacNN forum member. MacBook Air 11" 1.6Ghz 4GB 128GB Backlit Keyboard, 4S, iPad Mini
     
hadocon  (op)
Mac Elite
Join Date: Oct 2001
Location: Internet
Status: Offline
Reply With Quote
Mar 15, 2005, 12:17 AM
 
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.
20+ year MacNN forum member. MacBook Air 11" 1.6Ghz 4GB 128GB Backlit Keyboard, 4S, iPad Mini
     
Garage81
Dedicated MacNNer
Join Date: Jan 2005
Location: Orlando, FL
Status: Offline
Reply With Quote
Mar 15, 2005, 12:27 AM
 
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 15, 2005, 12:27 AM
 
Apparently I have golden hands now....

Some ppl are saying some odd stuff.

I'm enjoying it though.
20+ year MacNN forum member. MacBook Air 11" 1.6Ghz 4GB 128GB Backlit Keyboard, 4S, iPad Mini
     
Xeo
Moderator Emeritus
Join Date: Mar 2001
Location: Austin, MN, USA
Status: Offline
Reply With Quote
Mar 15, 2005, 12:28 AM
 
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.
     
MacMan4000
Mac Elite
Join Date: Jun 2004
Status: Offline
Reply With Quote
Mar 15, 2005, 12:29 AM
 
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)
     
spiky_dog
Mac Elite
Join Date: Dec 1999
Location: Plainview, NY
Status: Offline
Reply With Quote
Mar 15, 2005, 12:38 AM
 
"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 15, 2005, 12:42 AM
 
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
20+ year MacNN forum member. MacBook Air 11" 1.6Ghz 4GB 128GB Backlit Keyboard, 4S, iPad Mini
     
hadocon  (op)
Mac Elite
Join Date: Oct 2001
Location: Internet
Status: Offline
Reply With Quote
Mar 15, 2005, 12:44 AM
 
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..
20+ year MacNN forum member. MacBook Air 11" 1.6Ghz 4GB 128GB Backlit Keyboard, 4S, iPad Mini
     
hadocon  (op)
Mac Elite
Join Date: Oct 2001
Location: Internet
Status: Offline
Reply With Quote
Mar 15, 2005, 12:45 AM
 
Originally posted by Garage81:
this is great fun !!!

this inspired me to buy a domain, good stuff man!
What's your domain?
20+ year MacNN forum member. MacBook Air 11" 1.6Ghz 4GB 128GB Backlit Keyboard, 4S, iPad Mini
     
hadocon  (op)
Mac Elite
Join Date: Oct 2001
Location: Internet
Status: Offline
Reply With Quote
Mar 15, 2005, 12:49 AM
 
99 bottle's of beer song.... LOL
( Last edited by hadocon; Mar 15, 2005 at 12:57 AM. )
20+ year MacNN forum member. MacBook Air 11" 1.6Ghz 4GB 128GB Backlit Keyboard, 4S, iPad Mini
     
Garage81
Dedicated MacNNer
Join Date: Jan 2005
Location: Orlando, FL
Status: Offline
Reply With Quote
Mar 15, 2005, 12:55 AM
 
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 ♥
     
jasonsRX7
Mac Elite
Join Date: Jul 2003
Location: North Carolina
Status: Offline
Reply With Quote
Mar 15, 2005, 01:02 AM
 
"you ought not ta done that hes jussa boy mmm hmmm" - slingblade
     
JustAnOl'Broad
Mac Enthusiast
Join Date: Feb 2005
Location: The Nut Ranch
Status: Offline
Reply With Quote
Mar 15, 2005, 01:03 AM
 
I typed:
Dude you rock JustanOlBroad
and
waaaaaaaaaaay kewl

P~
     
jasonsRX7
Mac Elite
Join Date: Jul 2003
Location: North Carolina
Status: Offline
Reply With Quote
Mar 15, 2005, 01:19 AM
 
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 15, 2005, 01:23 AM
 
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!
20+ year MacNN forum member. MacBook Air 11" 1.6Ghz 4GB 128GB Backlit Keyboard, 4S, iPad Mini
     
hadocon  (op)
Mac Elite
Join Date: Oct 2001
Location: Internet
Status: Offline
Reply With Quote
Mar 15, 2005, 01:28 AM
 
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?
20+ year MacNN forum member. MacBook Air 11" 1.6Ghz 4GB 128GB Backlit Keyboard, 4S, iPad Mini
     
jasonsRX7
Mac Elite
Join Date: Jul 2003
Location: North Carolina
Status: Offline
Reply With Quote
Mar 15, 2005, 01:39 AM
 
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.
     
JustAnOl'Broad
Mac Enthusiast
Join Date: Feb 2005
Location: The Nut Ranch
Status: Offline
Reply With Quote
Mar 15, 2005, 02:30 AM
 
"rrrrrrrrrrip"

"who farted"


Sorry, just trying to help you get to sleep
     
malvolio
Professional Poster
Join Date: Apr 2001
Location: Capital city of the Empire State.
Status: Offline
Reply With Quote
Mar 15, 2005, 02: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" w/ Mac OS 10.8.2, iPhone 4S & iPad 4th-gen. w/ iOS 6.1.2
     
E's Lil Theorem
Mac Elite
Join Date: Sep 2004
Location: Theory - everything works in theory
Status: Offline
Reply With Quote
Mar 15, 2005, 02: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, 10: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.
20+ year MacNN forum member. MacBook Air 11" 1.6Ghz 4GB 128GB Backlit Keyboard, 4S, iPad Mini
     
hadocon  (op)
Mac Elite
Join Date: Oct 2001
Location: Internet
Status: Offline
Reply With Quote
Mar 15, 2005, 10:37 AM
 
Lots of visitors already this morning... Awesome!
20+ year MacNN forum member. MacBook Air 11" 1.6Ghz 4GB 128GB Backlit Keyboard, 4S, iPad Mini
     
 
 
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
Top
Privacy Policy
All times are GMT -4. The time now is 02:51 PM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,