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

Speech problems


  • Subject: Speech problems
  • From: Peter Gort <email@hidden>
  • Date: Sun, 1 Jun 2003 13:49:12 +1000

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?

Peter
_______________________________________________
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: Bill Cheeseman <email@hidden>
    • Re: Speech problems
      • From: david <email@hidden>
  • Prev by Date: Query Print Centre for status
  • Next by Date: Re: Speech problems
  • Previous by thread: Re: Query Print Centre for status
  • Next by thread: Re: Speech problems
  • Index(es):
    • Date
    • Thread