Re: SpeakTextPacket in 5.2
- To: mathgroup at smc.vnet.net
- Subject: [mg65473] Re: [mg65450] SpeakTextPacket in 5.2
- From: Christopher Purcell <christopherpurcell at mac.com>
- Date: Mon, 3 Apr 2006 06:59:45 -0400 (EDT)
- References: <200604020900.FAA01617@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
There is a routine (probably by Neil Soiffer) given at http://www.mathematica-users.org/webMathematica/wiki/wiki.jsp? pageName=Speech that works with Version 5.2. It uses LinkWrite, rather than FrontEndExecute. I find this useful for calling out status and warning messages from long calculations that are running in the background. The "voice" code selects from among the system installed voices that your OS provides. Speak[x_,voice_Integer:1]:=( LinkWrite[$ParentLink,SetSpeechParametersPacket[voice]]; LinkWrite[$ParentLink,SpeakTextPacket[x]]); christopherpurcell at mac.com On Apr 2, 2006, at 6:00 AM, Dana DeLouis wrote: > Hello. I use to have this function in my startup file. It would > speak the > text, and I remember that it worked well. > > say[s_String]:= FrontEndExecute[SpeakTextPacket[s]] > > However, I have not gotten this to work in awhile. > Has anyone gotten this to work with version 5.2? > > The Mathematica Journal (9-3, pg. 300) recommends the following line > first... > > FrontEndExecute[SetSpeechParametersPacket[1]] > > Then... > > FrontEndExecute[SpeakTextPacket["Hello there."]] > > However, the above no longer works. > > Speech works well on my computer using Microsoft Office 2003. > > I know this is an "undocumented feature," so I cannot complain. :>0 > > Just wondering. Maybe it is a version 5 thing. > > Thanks. > dana.del at gmail.com > > >
- References:
- SpeakTextPacket in 5.2
- From: "Dana DeLouis" <ddelouis@bellsouth.net>
- SpeakTextPacket in 5.2