From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mta1.math.wisc.edu ([144.92.166.194]) by speech.braille.uwo.ca with esmtp (Exim 3.36 #1 (Debian)) id 1HPKUT-0000K2-00 for ; Thu, 08 Mar 2007 10:25:13 -0500 Received: from ulam.math.wisc.edu (ulam.math.wisc.edu [144.92.166.245]) by mta1.math.wisc.edu (Postfix) with ESMTP id 583257421E for ; Thu, 8 Mar 2007 09:24:35 -0600 (CST) Received: from vv507j (vv507j.math.wisc.edu [144.92.166.75]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by ulam.math.wisc.edu (Postfix) with ESMTP id 498B92BD9B for ; Thu, 8 Mar 2007 09:24:35 -0600 (CST) Message-ID: <01cd01c76195$e12afa20$4ba65c90@vv507j> From: "John Heim" To: "Speakup is a screen review system for Linux." References: <20070307061413.32187.49173@rif.myfreedombox.com> <20070308015941.GA13012@grml> Subject: Re: OT: saytime program Date: Thu, 8 Mar 2007 09:24:35 -0600 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3028 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-UWMath-MailScanner: amavisd-new at math.wisc.edu X-BeenThere: speakup@braille.uwo.ca X-Mailman-Version: 2.1.9 Precedence: list Reply-To: "Speakup is a screen review system for Linux." List-Id: "Speakup is a screen review system for Linux." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Mar 2007 15:25:13 -0000 I can provide some sound files. The voice is not the greatest. Plus, there is no "eleven" or "twelve" file, which would be a problem for a saytime program. I got these files off a CD of public domain images and sound files. So if you want them, see http://personalpages.tds.net/~johnheim/sounds/clock/ I don't actually have a saytime program but what I do with these files is set up cron jobs to remind me of things. For instance, I have to leave by 5:10 or I'll miss my bus. So I have a cron job for 5:08 PM that plays 05.wav, O.wav, and 08.wav. So at 5:08 PM, my linux box says "five oh eight". Of course, it doesn't work if I'm not in my office. :-) ----- Original Message ----- From: "Doug Smith" To: "Speakup is a screen review system for Linux." Sent: Wednesday, March 07, 2007 7:59 PM Subject: Re: OT: saytime program > What about this? Why don't you make your own files. You can make > them yourself, or have someone who has a voice you really like, make > them for you. > > All you need to do to make the files is use either the sox rec command > or arocord, whichever gives you the best results. When the files are > made, you can simply do this, and I will be glad to help you find the > logic to parse the results. > > Write a program or some kind of script that can do all of these: > > First of all, call the date command. This can be done in a shell > command with the exec "date" command or whatever it is, I would have > to play around for acouple of minutes to find out the exact command > structure. This would have to go into a variable which would be > parsed. > > The parsing logic is relatively simple, We can easily see, when we > use the date command, how many characters are used for each part of > the results. So the program would then have to: > > look through the string for the first, second, third, etc parts of the > results of the date command. Then all we would have to do is this: > > decide which files to play. We can do this by reading what the > results of our new parsed data variables tell us. You can have the > program do all of this, if you want. > > If you don't like the standard military time read-outs of date, the > program can simply subtract 12 from each hour starting at 1300 hours > or 1:00 PM, and the files could say the time in 12-hour format. > > That's all a talking clock, talking digital watch, or any other > talking time-telling device does. With all this, use the sox play > command or the aplay command, each of which will handle mp3 files, and > you are good to go. You have your own saytime program. > > > > Hope this helps. > > > > > -- > Doug Smith: C.S.F.C. > Computer Scientist For CHRIST > > > _______________________________________________ > Speakup mailing list > Speakup@braille.uwo.ca > http://speech.braille.uwo.ca/mailman/listinfo/speakup > >