Re: [NTLK] Alarm Clock with speech?

From: Jeremy Bond Shepherd (jbond_at_eskimo.com)
Date: Wed Apr 17 2002 - 15:01:10 EDT


Hi,

Stephanie inspired me. I modified her Newtonscript for speaking the time
out loud to suit my preferences. In case anybody's interested, here it is:

What's different is:
1. Removed date from spoken phrase
2. played with the word rate and emphasis to make the phrase sound better
to MY ears.
3. Speak in maximum volume (it's too quiet to me otherwise)
4. Fixed pronounciation of "AM" -- TTS now says it as "Ayy Emm" instead of
"am".

Fun stuff, no?

-Jeremy

//SpeakTime
local thevolume:=getvolume();
local t := HourMinute(Time());
local d := LongDateStr(Time(), @66 .abbrDateStrSpec);
local u := "The [[emph +]]time is ";
local theLen := StrLen(t);
local tt := t;
if StrPos(t, "am", 0) then local tt := SubStr(t, 0, theLen-1)&".m";
local vox := "[[svox kath;rate 150]]";
Setvolume(4);
PlaySound(vox&u&"[[rate 75]]"&tt);
Setvolume(thevolume);

-- 
Read the List FAQ/Etiquette: http://www.newtontalk.net/faq.html
Read the Newton FAQ: http://www.guns-media.com/mirrors/newton/faq/
This is the NewtonTalk mailing list - http://www.newtontalk.net



This archive was generated by hypermail 2.1.2 : Sun May 05 2002 - 14:04:18 EDT