• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
speech recognition server
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

speech recognition server


  • Subject: speech recognition server
  • From: Roy Whelden <email@hidden>
  • Date: Fri, 8 Jan 2010 09:13:46 -0800

Is there a way to make it so that the voice recognition server doesn't need to be triggered by a special key when listening for words?

Also, here is what i think is right for this part:
say "would you like me to scan for viruses on your custom locations?"
tell application "SpeechRecognitionServer"
listen for (yes, no)
if text is "yes" then say "will do now"
else if text is "no" then say "see you soon"
end if
end tell

Yuma,

You shouldn't have to make a special effort to trigger the Speech Recognition Server; it will be called automatically within the script. But, of course, you should modify your script a bit (in my view) to make it work.

tell application "SpeechRecognitionServer"
set t to listen for {"yes", "no"} --use braces to indicate a list of responses and use quotes for the responses
if t is "yes" then
say "will do now" --t is a variable
else
if t is "no" then
say "see you soon"
end if
end if
end tell
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Prev by Date: Re: Scripting Additions
  • Next by Date: RE: Snow Leopard osax security and 'run script' with parameters
  • Previous by thread: speech recognition server
  • Next by thread: Positioning a Finder window
  • Index(es):
    • Date
    • Thread