[X Newbies] Speech Recognition Question

Scott scott-xlists at scotist.com
Thu Aug 7 21:00:20 PDT 2003


On Thursday, August 7, 2003, at 12:15PM, Joey Campillo wrote:

> that used to be possible in either os 8 or 9 (i don't remember 
> anymore) but it worked with speech recognition. among the things you 
> could do is say "what time is it?' "tell me a joke" but i don't know 
> if its implemented in os x
>
> Joey
>
> On Wednesday, August 6, 2003, at 11:19  PM, jc wrote:
>
>> I'd like to say a phrase to my computer and then have the computer 
>> answer me. Is this possible and how do you set this up (I need pretty 
>> detailed info). I've played around with speech recognition and 
>> couldn't figure out how you would do this.
>>
>> Thanks much in advance,
>>
>> --Jim Conrad
>>
>>


Still there in OS X.

You can also write AppleScripts and put them in your Speakable Items 
folder. An AppleScript by the name of "Hello LadyBug" will be launched 
if the user says "Hello LadyBug", assuming the system recognizes the 
command.

Alternatively, you could also record a sound file consisting of the 
spoken words "Good morning Jim" and place it in the Speakable Items 
folder, but name the file "Hello LadyBug.".

An AppleScript which will speak in the computer's voice (Victoria, in 
this example):

This one will just say good morning:
    on run
        set theText to "Good Morning, Jim"
        say theText using "Victoria"
    end run

This one will say good morning, but redirect it to a file (on the top 
level of the hard drive). The file created can then be put in Speakable 
Items or used elsewhere.

    on run
        set theText to "Good Morning, Jim"
       say theText using "Victoria" saving to "Good Morning LadyBug"
    end run



Both of these examples are er... borrowed... from Apple.
http://developer.apple.com/ue/speech/applescript.html

You can make it more complex. You could even have it respond to "Hello 
Ladybug", or "Ladybug, good morning" and so forth using multiple 
aliases. You could also have it respond with "good morning", "good 
afternoon", "good night", or "good lord! Get off the bloody computer 
and go play outside" depending on what time it is.

-- 
Scott



More information about the X-Newbies mailing list