• 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: Speech problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Speech problems


  • Subject: Re: Speech problems
  • From: david <email@hidden>
  • Date: Sun, 1 Jun 2003 00:22:33 -0400

On Saturday, May 31, 2003, at 11:49 PM, Peter Gort wrote:

Hi People,

I'm writing a little program for my 5 year old son to help him learn his sight words. The AppleScript Studio app reads a simple text file of words, then displays each for for a few seconds. Mac OS X 10.2.6.

What I'd like it to do is actually say the word and optionally listen for him to repeat it...

However, if I use the handler

--
on speakTheWord(theWord)
say theWord
end speakTheWord
--

when I say

--
speakTheWord("dad")
--

I get an alert saying that "dad doesn't understand the say command". I tried having it

--
tell application "Finder"
say theWord
end
--

With same result.

Anyway, I thought I'd try the speech recognition engine and tell it to

--
on speakTheWord(theWord)
tell application SpeechRecognitionServer
listen continuously for theWord with prompt theWord giving up after 10
end tell
end speakTheWord
--

That just tells me that theWord doesn't understand the "listen continously" message.

I tried

--
on speakTheWord(theWord)
tell application SpeechRecognitionServer
listen for theWord with prompt theWord giving up after 10
end tell
end speakTheWord
--

(same but without the "continously" clause) and now I get the spinning beach ball of death when the cursor is over the microphone icon. It never times out and I have to reboot (and sometimes trash the speech prefs too) to get everything working properly again.

Anybody have any ideas why this doesn't work?

have you read this?

http://developer.apple.com/ue/speech/applescript.html

david in maine
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Speech problems
      • From: Peter Gort <email@hidden>
References: 
 >Speech problems (From: Peter Gort <email@hidden>)

  • Prev by Date: Speech problems
  • Next by Date: Re: Query Print Centre for status
  • Previous by thread: Speech problems
  • Next by thread: Re: Speech problems
  • Index(es):
    • Date
    • Thread