Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Desktop
User Name
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.


  Search this Thread
Old 09-17-2008, 03:35 PM   #1
LQ Newbie
Registered: Sep 2008
Distribution: Ubuntu
Posts: 4

Rep: Reputation: 0
Festival misreads numbers

I frequently try to emulate features of other OSs in Linux. In this case I have made an hourly announcement of the time, a la Mac OSX, using this script and a simple cron job:
date "+ it's%l oclock" | festival --tts
(I already edited festival's configuration file to use ALSA [which I have set to use PulseAudio])

It has one bug, however. For 12:00 it says "it's one-two o'clock", likewise for 10 and 11. Is there an argument for festival to make it pronounce numbers? is there a different argument for date that spells the output?

I'm using Ubuntu Hardy. With festival version 1.96:beta July 2004.
Thanks for the help.
Old 09-17-2008, 04:26 PM   #2
Senior Member
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Change your script to
Originally Posted by poweruser View Post
date "+ it's %l oclock" | festival --tts
You need a space before the "%l".
Old 09-18-2008, 09:08 AM   #3
LQ Newbie
Registered: Sep 2008
Distribution: Ubuntu
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks! That had been bugging me for a while. It's a lot less impressive when I try to show off stuff like that if it encounters a bug 1/4th of the time =)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
configure fails because it misreads a version number? lugoteehalt Linux - Software 1 07-19-2008 05:56 AM
Ubuntu Ultimate Edition 1.4-- Misreads Partition Table Haloony Ubuntu 7 07-27-2007 05:54 PM
sequence of numbers, how to extract which numbers are missing jonlake Programming 13 06-26-2006 03:28 AM
Festival ORiGiNAl-SiN Slackware 1 12-25-2005 01:20 AM
Adding numbers, break on non-numbers... Cruger Programming 1 03-22-2004 09:18 AM > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 07:32 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration