The MP3car.com Store  

Welcome to the MP3Car.com forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. Registering will also remove advertisements. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   MP3Car.com > Mp3Car Technical > MacCar

Reply
 
Thread Tools Display Modes
Old 01-21-2005, 11:10 PM   #1
Newbie
 
Join Date: Jan 2005
Posts: 53
My Photos: (0)
Speech

Macs have had speech (both text-to-speech and recognition) capabilities for quite some time, but not alot of people are terribly familiar with what it can do. I was pretty well versed with it back in OS9 and earlier, but the latest revisions of the OS have made some great progress.

Speech Recognition + AppleScript is a very potent combination for even beginners. With a little forethought it should be simple to work into any application.

Here is a good article that should bring you up to speed and start you in the right direction: http://www.macdevcenter.com/pub/a/ma...17/speech.html

~Lake
Lake is offline   Reply With Quote
Sponsored Links
Old 01-21-2005, 11:30 PM   #2
Registered User
 
gork's Avatar
 
Join Date: Aug 2003
Location: Amarillo, TX
Vehicle: BMW E46 M3
Posts: 655
My Photos: (1)
Ah yes, I had forgotten about the inbuilt voice recognition. I never use it, but it's a piece of cake to program. The code basically looks like "Listen for the user to say 'Play DVD' then start 'DVD Player'..."
__________________
MY CAR IS FOR SALE!
See My Project Page for Details - 2003 BMW E46 ///M3
Custom Dash Monitor Housing - OEM Fitment
Custom Overhead DVD-ROM Housing in Headliner
BMW I-Bus Integration
My homepage with many other fun projects!
gork is offline   Reply With Quote
Old 01-22-2005, 12:28 AM   #3
Newbie
 
Join Date: Jan 2005
Posts: 53
My Photos: (0)
Here's a little example I made, playing with it some. I'd almost forgotten how much fun AppleScript was when you get it right the first time (though it's no more pleasant to debug than anything else, heh).

Code:
tell application "SpeechRecognitionServer" local choices, question set choices to {"Slashdot", "MacSlash", "Google"} set question to "Where would you like to go today?" try set result to listen for choices with prompt question giving up after 10 end try end tell tell application "Safari" if result is "Slashdot" then open location "http://slashdot.org" else if result is "MacSlash" then open location "http://macslash.org" else if result is "Google" then open location "http://google.com" end if end tell

~lake
Lake is offline   Reply With Quote
Old 01-22-2005, 06:58 PM   #4
Newbie
 
Join Date: Jan 2005
Posts: 53
My Photos: (0)
just an FYI: The above script actually works but only by accident. The word "result" is reserved in AppleScript, it's automatically assigned the value of the last expression evaluated. To be 'sane' you'd want to just replace all instances of the word 'result' with some other appropriate variable name (like 'response' or somesuch).

It's been ages since I've really done much with AppleScript, so the above was just thrown together in a vary haphazard way. Re-reading a few things now =)

~Lake
Lake is offline   Reply With Quote
Old 01-22-2005, 07:08 PM   #5
Constant Bitrate
 
Join Date: Oct 2004
Posts: 177
My Photos: (0)
gork if what you say is true, could you possibly program it to play all of an artist? For instance say "play the strokes" and have it play all by the strokes? I hope so, that could be really really really cool.

-matt
mattdisaster is offline   Reply With Quote
Old 01-22-2005, 09:42 PM   #6
Admin. Don't bug or I'll byte.
Bugbyte's CarPC Specs
 
Bugbyte's Avatar
 
Join Date: Sep 2004
Location: Corning, NY
Vehicle: 2001 VW Beetle
Posts: 4,557
My Photos: (29)
Right, you could do that. The iTunes Applescript dictionary includes ways to search by artist, genre, album, etc. You could do what you're suggesting easily.
__________________
-Where in the world is the iBug?
-Find out about theiBug
-Attention Newbies! Have you seen the FAQ Emporium?
-No time to figure it out? Take 5 minutes to view the Car PC 101 video
Bugbyte is offline   Reply With Quote
Old 01-22-2005, 09:46 PM   #7
Constant Bitrate
 
Join Date: Oct 2004
Posts: 177
My Photos: (0)
Oh my lord that has just added gallons of fuel to the fire of me getting a minimac. This will be the best project ever!

-matt
mattdisaster is offline   Reply With Quote
Old 01-22-2005, 09:50 PM   #8
My Village Called
0l33l's CarPC Specs
 
0l33l's Avatar
 
Join Date: Jul 2004
Location: Berkeley, CA
Vehicle: 1995 Lexus SC300 1997 Mazda Miata
Posts: 10,763
My Photos: (0)
Quote: Originally Posted by mattdisaster
Oh my lord that has just added gallons of fuel to the fire of me getting a minimac. This will be the best project ever!

What's so special about speech recognition? Windows PCs have been doing it for a long time, and we have quite a few frontends that do speech. Some do speech from the get go, like centrafuse, and others like Frodo do it with the help of support programs, like NaviVoice
__________________
PowerVoice v1 | NaviVoice Source
GammaControl v2.4
SKINbedder v3

1995 Lexus SC300 <-- Weekend Car
1997 Mazda Miata <-- Daily Driver
0l33l is offline   Reply With Quote
Old 01-22-2005, 10:17 PM   #9
Constant Bitrate
 
Join Date: Oct 2004
Posts: 177
My Photos: (0)
No way? I honestly had no clue it could be done on a pc, I'll have to check into it then, I cant think of anything cooler then "play The Strokes, Is This is" "Mute" "volume Up" oh man, I'de be the coolest person on the block! hah.

-matt
mattdisaster is offline   Reply With Quote
Old 01-22-2005, 11:01 PM   #10
Newbie
 
Join Date: Jan 2005
Posts: 53
My Photos: (0)
It's not that Macs are unique in their ability to do speech, but it is incredibly well integrated into the operating system and available in the unix shell environment, applescript, and cocoa, as well as ready-made for the user.

Turning on a few options in the system preferences lets me do some rather impressive stuff right off. I can activate buttons on the frontmost window by saying their label, or navigate items in the menu bar (for example in iTunes: "Controls menu; Next Song" will use that menu item to skip the current song).

So you don't even need to specially support Speech in your own application, just take care to 'play nice' and it's automatically supported.
--platform rant--
I gave up on preaching about Macs to 'non-believers' a long time ago. But since you brought it up: It's just one more thing that works the right way on a Mac. It's not impossible in Windows, but it's generally a real pain in the *** and doesn't live up to its potential.
--/platform rant--

~Lake

P.S. I've actually developed for Windows and run a WinXP box for (certain) games, and happen to be typing this on a WinME machine. So it's not as though I'm ignorant of what Windows really is :P
Lake is offline   Reply With Quote
Sponsored Links
Old 01-23-2005, 12:03 AM   #11
My Village Called
0l33l's CarPC Specs
 
0l33l's Avatar
 
Join Date: Jul 2004
Location: Berkeley, CA
Vehicle: 1995 Lexus SC300 1997 Mazda Miata
Posts: 10,763
My Photos: (0)
Quote: Originally Posted by mattdisaster
No way? I honestly had no clue it could be done on a pc, I'll have to check into it then, I cant think of anything cooler then "play The Strokes, Is This is" "Mute" "volume Up" oh man, I'de be the coolest person on the block! hah.

-matt

You can't say "play song", but you can say play, pause, stop, and you can also control navigation
__________________
PowerVoice v1 | NaviVoice Source
GammaControl v2.4
SKINbedder v3

1995 Lexus SC300 <-- Weekend Car
1997 Mazda Miata <-- Daily Driver
0l33l is offline   Reply With Quote
Old 01-23-2005, 08:04 AM   #12
Newbie
 
Join Date: Jun 2004
Location: Pa., USA
Vehicle: 2003 Honda Element
Posts: 50
My Photos: (0)
Quote: Originally Posted by 0l33l
You can't say "play song", but you can say play, pause, stop, and you can also control navigation

I've been using voice in the car for about a year with a pc. In WMP I can control: Play, Pause, play artist/genre/playlist, view/hide media info, view/hide playlist, skin/full mode, among others. With GPS the main commands I use are show next turn (visual), next turn (verbal), Where Am I, among a few others.

They can be used simultaneously by setting different call signs for each app.

Once the voice training is done it's fairly accurate.
__________________
Budman
Xenarc PC, dual 7" touchscreens, 512mb, 20g, dvd, Earthmate GPS, Keyspan remote control, voice control for media, 8-in-1 card reader, Bluetooth Razr, 54mbps 802.11g wireless.
Honda Element Carputer
Budman is offline   Reply With Quote
Old 01-23-2005, 11:42 AM   #13
Mac Car Moderator
 
kandyman676's Avatar
 
Join Date: Apr 2004
Location: Maryland
Vehicle: 2008 Nissan Altima Sedan 3.5 SL
Posts: 788
My Photos: (1)
Actually, the speech parser has been built since Mac OS (since 1997 i believe...I remember playing with it back in high school) way before it was even considered a stanard package in the default Windows XP as an accessibility tool. speech recogniation for Windows has always been on and off for years. I remember the first version of Dragon Natually Speaking. :-) when I played with the apple back in high school, it was several jumps ahead of the windows software.

remember, we are suppose to be discussing APPLE/MAC speech, not PC. its great to know the PC options, but please keep them to the PC threads:-)
__________________
"If it works this good why F with it?" -KMFDM "Intro"

Strive for ethical wardriving: http://faq.wardrive.net/

My CarCPUs: v1 - 2000 | v2 - 2004
Mp3Car Meets: http://detrimental.org/eyecandy/MP3CarMeets
kandyman676 is offline   Reply With Quote
Old 01-23-2005, 12:04 PM   #14
My Village Called
0l33l's CarPC Specs
 
0l33l's Avatar
 
Join Date: Jul 2004
Location: Berkeley, CA
Vehicle: 1995 Lexus SC300 1997 Mazda Miata
Posts: 10,763
My Photos: (0)
Quote: Originally Posted by kandyman676
remember, we are suppose to be discussing APPLE/MAC speech, not PC. its great to know the PC options, but please keep them to the PC threads:-)

Yeh, yeh, yeh
__________________
PowerVoice v1 | NaviVoice Source
GammaControl v2.4
SKINbedder v3

1995 Lexus SC300 <-- Weekend Car
1997 Mazda Miata <-- Daily Driver
0l33l is offline   Reply With Quote
Old 01-23-2005, 12:26 PM   #15
Constant Bitrate
 
Join Date: Jan 2005
Location: Fairfield County, CT
Vehicle: 93 Saab 900 Turbo Conv.
Posts: 136
My Photos: (0)
Theoretically, you don't have to even prorgram anything in to make speech recognition work. Turn on the 'press buttons' option in the accessibility pane, and it will allow you to press any button in a User interface, or a menu option.
thecapitalizt is offline   Reply With Quote
Sponsored Links
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
I have speech recogniton working with 1500 cd's kykeon Software & Software Development 14 01-16-2005 10:32 PM
SAPI Speech stutters wysocki PowerVoice 2 11-07-2004 06:01 AM
Best Man Speech? bosstone74 Off Topic 11 05-11-2004 12:48 PM
copilot speech az1324 Software & Software Development 7 12-27-2002 11:33 PM
copilot speech Alives Software & Software Development 0 08-23-2002 01:52 PM


All times are GMT -5. The time now is 02:09 AM.


Sponsored Links
The MP3car.com Store

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
Copyright © 1999 - 2008 Mp3Car.com Inc.
Ad Management by RedTyger
Message Board Statistics