Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

voice rate problems

Status
Not open for further replies.

joester5

Programmer
May 26, 2005
4
0
0
US
I am using directors voicespeak to read a text file. I want to be able to control the voice rate with voicesetrate() but the results were all really slow. using put voiceGetRate() returned a value of 11796480 which seems like a crazy big number to me. The help suggests that the value should be between 10 and -10
I'm working on an imac with mx
Anyone had this problem?
 
The default value for the voice rate is 0 and if you get 11796480 it means clearly something wrong! Start with empty new movie and type in the message window
--
put voiceinitialize()
put voicegetrate()
--
Do you still get -- 11796480 ?

Kenneth Kawamoto
 
Yeah, I did and I do. What now? Maybe I'll toss my director prefs and see if that helps.
 
Nope that didn't do it either. Wierd though, it does respond when I change the number. I've set it at 7000000 and it's slower than it was.
 
You are right. I tested this on Mac:
--
voicespeak("hello world!")
put voicegetrate()
-- 11796480
put voicesetrate(the maxinteger)
-- 2147483647
put voicegetrate()
-- 2147418112
put voicesetrate(-(the maxinteger))
-- -2147483647
put voicegetrate()
-- 2621440
--
It seems to be that on Mac the voice rate defaults to 11796480 and ranges from 2621440 to 2147418112. In Windows it defaults to 0. No consistence.

At least you can still control it…

Kenneth Kawamoto
 
yeah, true. I'm glad that you had the same experience though. Though I wan going nuts. Kept rubbing my eyes.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top