blob: c268cd4451d0f7052a434e7c416f8270a3c838ef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#include "flitedyn.h"
cst_voice *CFliteDyn::m_voice = NULL;
CFliteDyn::CFliteDyn()
{
if (m_voice == NULL)
{
qDebug("Constucting flite");
flite_init();
m_voice = register_cmu_us_kal();
}
}
QString CFliteDyn::about()
{
return QString("FliteDyn output codec (c) Tim Wentford\n");
}
void CFliteDyn::output(const QString& _o)
{
float tm = flite_text_to_speech((const char*)_o, m_voice, "play");
qDebug("Produced %g seconds of speech", tm);
}
extern "C"
{
COutput* newcodec() { return new CFliteDyn; }
}
|