Re: Speakable Item and SpeechRecognitionServer
Re: Speakable Item and SpeechRecognitionServer
- Subject: Re: Speakable Item and SpeechRecognitionServer
- From: Bruce Robertson <email@hidden>
- Date: Sat, 19 Sep 2009 16:04:53 -0700
- Thread-topic: Speakable Item and SpeechRecognitionServer
>
> On Sep 19, 2009, at 5:54 PM, Bruce Robertson wrote:
>
>> I'm making some progress. But another thing I notice is that there
>> does not
>> seem to be a dictionary for SpeechRecognitionServer.
>>
>> Here is a thread along the lines of what I'd like to do:
>>
>> http://forums.macosxhints.com/showthread.php?t=27918
>>
>> Pseudocode:
>>
>> Prompt "say some numbers"
>> -- I say 2467
>> You said "2467
>
> Bruce,
> I have a script I occasionally use to do my roll call.
> It seems to me that speechrecognition was slightly better vin SL, but
> I did not have the opportunity to test them well.
> This week hopefully.
> I do not have that script with me, and it uses either number or excel
> to get the name of the students.
>
> But I have a script that I use to start it.
> <script>
> set lista to {}
> repeat with l from 0 to 100
> set end of lista to (l as string)
> end repeat
> set a to item 1 of lista
> set z to last item of lista
>
> tell application "SpeechRecognitionServer"
> try
> set k to listen for lista giving up after 25 with prompt "please
> choose an integer number from " & a & " to " & z
> on error e
> say (e as string)
> end try
> repeat with l in lista
> set l to contents of l as string
> if k is l then say "You've selected " & l & "!"
> end repeat
> end tell
>
> </script>
Thanks. I'd like to get to 4 digits.
Apparenlty there is a listen continuously command but I can't get it to
work.
_______________________________________________
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