• 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
Re: Speakable Item and SpeechRecognitionServer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Speakable Item and SpeechRecognitionServer


  • Subject: Re: Speakable Item and SpeechRecognitionServer
  • From: Deivy Petrescu <email@hidden>
  • Date: Tue, 8 Dec 2009 22:51:33 -0500

On Dec 8, 2009, at 9:47 PM, Bruce Robertson wrote:

>
> On Dec 8, 2009, at 6:35 PM, Deivy Petrescu wrote:
>
>>
>> On Dec 8, 2009, at 6:50 PM, Bruce Robertson wrote:
>>
>>> Just thought I'd try this again in case anybody came up with ideas.
>>>
>>> I have still not found a way to speak an arbitrary number sequence and have
>>> it recognized; or a mixed sequence of fixed and arbitrary data such as:
>>>
>>> "Find phone 1234"
>>>
>>> Or:
>>>
>>> "Find phone 5513"
>>>
>>>
>>
>>
>> Bruce:
>>
>> <script>
>> set j to "1 2 3 4 5"
>> tell application "SpeechRecognitionServer" to set l to listen for j with prompt "Say " & j & " now" giving up after 15
>> if l = j then say "it worked"
>>
>> </script>
>>
>> I thought I sent it to you a while ago!
>
> And I replied that you misunderstand the problem and your solution is not workable.
>
> Once again: the problem statement is to read an arbitrary string of numbers and have them be recognized.
>
> The string might be preceded by a known string ("Find phone" ) but the solution must be able to recognize any following string of four numbers.
>
> There is no "set J"; it isn't known ahead of time.
>
> Bruce


Bruce you are right.
I did not understand what you wanted, now that I do, I don't think it can be done.
Here is the command:

listen for list of text : list of possible phrases to listen for

This precludes responding to random statements.

Now, if you want to, say, call a friend in you Address Book, you can have the script read all the phone numbers and then you speak the one you want.
This is the route I'd follow.

Deivy Petrescu
email@hidden



 _______________________________________________
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

References: 
 >Re: Speakable Item and SpeechRecognitionServer (From: Bruce Robertson <email@hidden>)
 >Re: Speakable Item and SpeechRecognitionServer (From: Deivy Petrescu <email@hidden>)
 >Re: Speakable Item and SpeechRecognitionServer (From: Bruce Robertson <email@hidden>)

  • Prev by Date: Re: Speakable Item and SpeechRecognitionServer
  • Next by Date: RE: SpeechRecognitionServer not working in Snow Leopard
  • Previous by thread: Re: Speakable Item and SpeechRecognitionServer
  • Next by thread: Re: Speakable Item and SpeechRecognitionServer
  • Index(es):
    • Date
    • Thread