Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

flitedyn.cpp

Go to the documentation of this file.
00001 #include "flitedyn.h"
00002 
00003 cst_voice *CFliteDyn::m_voice = NULL;
00004 
00005 CFliteDyn::CFliteDyn()
00006 {
00007   if (m_voice == NULL)
00008     {
00009       qDebug("Constucting flite");
00010       flite_init();
00011       m_voice = register_cmu_us_kal();
00012     }
00013 }
00014 
00015 QString CFliteDyn::about()
00016 {
00017   return QString("FliteDyn output codec (c) Tim Wentford\n");
00018 }
00019 
00020 void CFliteDyn::output(const QString& _o)
00021 {
00022   float tm = flite_text_to_speech((const char*)_o, m_voice, "play");
00023   qDebug("Produced %g seconds of speech", tm);
00024 }
00025 
00026 extern "C"
00027 {
00028   COutput* newcodec() { return new CFliteDyn; }
00029 }

Generated on Sat Nov 5 16:16:55 2005 for OPIE by  doxygen 1.4.2