/* say_namaskaar.c * This is a sample C code using dhvani text to speech API which I am * developing now and planning to release soon. New version of dhvani * will provide a shared library libdhvani and it allows other C or C++ * applications to use dhvani synthesizer. Tamil and Marathi modules, pitch, tempo * control etc are the features for the coming release. * I need to prepare documentation, fix many bugs, test, commit the files in cvs ... * Looking for some free time for all these... * Visit http://dhvani.sourceforge.net */ /* compile with gcc -ldhvani -o namaskaar say_namaskaar.c */ #include <dhvani/dhvani_lib.h> int main(int argc, char *argv[]) { dhvani_options options; /* Set the pitch and tempo of the speech */ options.tempo = -10.0; /* reduce the speed by 10% */ options.pitch = 2.0; /* increase the pitch b 2 semitons */ options.rate = 16000; /* 16KHz Sampling rate */ /* Initialize dhvani */ dhvani_init(&options); /* Say Namaskar */ dhvani_say("नमसकार", &options); /* close the synthesizer */ dhvani_close(); return 0; } /* We can write a blog post in C too. Syntax highlighted by Code2HTML */
Reading Problems?
Choose a font.Embed Meera
Embed Rachana
Embed Dyuthi
Embed Kalyani
Archives
- August 2011
- June 2011
- May 2011
- April 2011
- February 2011
- January 2011
- November 2010
- August 2010
- July 2010
- April 2010
- March 2010
- November 2009
- October 2009
- August 2009
- July 2009
- June 2009
- May 2009
- March 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- May 2007
- April 2007
- March 2007
What I Read?
- The Important Field (xkcd.com)
- The World Has More Than Three Languages (Aharoni in Unicode, ya mama)
- Interview with Wikimedia’s Amir Aharoni (Wikimedia blog » Technology)
- Announcing the October 2011 Coding Challenge (Planet Wikimedia)
- Software Is Mathematics - The Need for Due Diligence, by PolR (Groklaw)
- ഡിജിറ്റല് രംഗത്തെ അതികായന് ഡെന്നീസ് റിച്ചി അന്തരിച്ചു (Mathrubhumi)
- aashiks'in: Dennis Ritchie has passed on (Planet SMC)
- Notes on CSS Hyphenation (Planet Web I18n)
0 Responses
Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.