summaryrefslogtreecommitdiffstats
path: root/kttsd/plugins/flite
diff options
context:
space:
mode:
Diffstat (limited to 'kttsd/plugins/flite')
-rw-r--r--kttsd/plugins/flite/CMakeLists.txt39
-rw-r--r--kttsd/plugins/flite/fliteconf.cpp14
-rw-r--r--kttsd/plugins/flite/fliteconf.h4
-rw-r--r--kttsd/plugins/flite/fliteconfwidget.ui8
-rw-r--r--kttsd/plugins/flite/fliteplugin.cpp2
-rw-r--r--kttsd/plugins/flite/fliteproc.cpp18
-rw-r--r--kttsd/plugins/flite/fliteproc.h4
-rw-r--r--kttsd/plugins/flite/kttsd_fliteplugin.desktop54
8 files changed, 64 insertions, 79 deletions
diff --git a/kttsd/plugins/flite/CMakeLists.txt b/kttsd/plugins/flite/CMakeLists.txt
new file mode 100644
index 0000000..08c1573
--- /dev/null
+++ b/kttsd/plugins/flite/CMakeLists.txt
@@ -0,0 +1,39 @@
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${CMAKE_SOURCE_DIR}/kttsd/libkttsd
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${TDE_LIB_DIR}
+)
+
+
+##### libkttsd_fliteplugin (kpart)
+
+tde_add_kpart( libkttsd_fliteplugin AUTOMOC
+
+ SOURCES
+ fliteconfwidget.ui
+ fliteconf.cpp
+ fliteproc.cpp
+ fliteplugin.cpp
+ LINK
+ kttsd-shared
+
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### other data
+
+tde_create_translated_desktop(
+ SOURCE kttsd_fliteplugin.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}
+ PO_DIR kttsd-desktops
+)
diff --git a/kttsd/plugins/flite/fliteconf.cpp b/kttsd/plugins/flite/fliteconf.cpp
index 2d5737e..aa33e04 100644
--- a/kttsd/plugins/flite/fliteconf.cpp
+++ b/kttsd/plugins/flite/fliteconf.cpp
@@ -1,4 +1,4 @@
-/***************************************************** vim:set ts=4 sw=4 sts=4:
+/*
Configuration widget and functions for Festival (Interactive) plug in
-------------------
Copyright:
@@ -57,9 +57,9 @@ FliteConf::FliteConf( TQWidget* parent, const char* name, const TQStringList& /*
defaults();
- connect(m_widget->flitePath, TQT_SIGNAL(textChanged(const TQString&)),
- this, TQT_SLOT(configChanged()));
- connect(m_widget->fliteTest, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotFliteTest_clicked()));
+ connect(m_widget->flitePath, TQ_SIGNAL(textChanged(const TQString&)),
+ this, TQ_SLOT(configChanged()));
+ connect(m_widget->fliteTest, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotFliteTest_clicked()));
}
/** Destructor */
@@ -135,7 +135,7 @@ void FliteConf::slotFliteTest_clicked()
else
{
m_fliteProc = new FliteProc();
- connect (m_fliteProc, TQT_SIGNAL(stopped()), this, TQT_SLOT(slotSynthStopped()));
+ connect (m_fliteProc, TQ_SIGNAL(stopped()), this, TQ_SLOT(slotSynthStopped()));
}
// Create a temp file name for the wave file.
KTempFile tempFile (locateLocal("tmp", "fliteplugin-"), ".wav");
@@ -154,7 +154,7 @@ void FliteConf::slotFliteTest_clicked()
m_progressDlg->setAllowCancel(true);
// Play an English test. Flite only supports English.
- connect (m_fliteProc, TQT_SIGNAL(synthFinished()), this, TQT_SLOT(slotSynthFinished()));
+ connect (m_fliteProc, TQ_SIGNAL(synthFinished()), this, TQ_SLOT(slotSynthFinished()));
m_fliteProc->synth(
testMsg,
tmpWaveFile,
@@ -163,7 +163,7 @@ void FliteConf::slotFliteTest_clicked()
// Display progress dialog modally. Processing continues when plugin signals synthFinished,
// or if user clicks Cancel button.
m_progressDlg->exec();
- disconnect (m_fliteProc, TQT_SIGNAL(synthFinished()), this, TQT_SLOT(slotSynthFinished()));
+ disconnect (m_fliteProc, TQ_SIGNAL(synthFinished()), this, TQ_SLOT(slotSynthFinished()));
if (m_progressDlg->wasCancelled()) m_fliteProc->stopText();
delete m_progressDlg;
m_progressDlg = 0;
diff --git a/kttsd/plugins/flite/fliteconf.h b/kttsd/plugins/flite/fliteconf.h
index f2a1dc4..54acab0 100644
--- a/kttsd/plugins/flite/fliteconf.h
+++ b/kttsd/plugins/flite/fliteconf.h
@@ -1,4 +1,4 @@
-/***************************************************** vim:set ts=4 sw=4 sts=4:
+/*
Configuration widget and functions for Festival (Interactive) plug in
-------------------
Copyright:
@@ -41,7 +41,7 @@ class FliteProc;
class KProgressDialog;
class FliteConf : public PlugInConf {
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/kttsd/plugins/flite/fliteconfwidget.ui b/kttsd/plugins/flite/fliteconfwidget.ui
index 8efcbb1..ef90e54 100644
--- a/kttsd/plugins/flite/fliteconfwidget.ui
+++ b/kttsd/plugins/flite/fliteconfwidget.ui
@@ -175,12 +175,8 @@
</customwidgets>
<includes>
<include location="global" impldecl="in declaration">kurlrequester.h</include>
- <include location="global" impldecl="in implementation">kurlrequester.h</include>
+ <include location="global" impldecl="in implementation">klineedit.h</include>
+ <include location="global" impldecl="in implementation">kpushbutton.h</include>
</includes>
<layoutdefaults spacing="6" margin="11"/>
-<includehints>
- <includehint>kurlrequester.h</includehint>
- <includehint>klineedit.h</includehint>
- <includehint>kpushbutton.h</includehint>
-</includehints>
</UI>
diff --git a/kttsd/plugins/flite/fliteplugin.cpp b/kttsd/plugins/flite/fliteplugin.cpp
index 602b5bb..de02538 100644
--- a/kttsd/plugins/flite/fliteplugin.cpp
+++ b/kttsd/plugins/flite/fliteplugin.cpp
@@ -1,4 +1,4 @@
-/***************************************************** vim:set ts=4 sw=4 sts=4:
+/*
Generating the factories so festival lite (flite) can be used as plug in.
-------------------
Copyright:
diff --git a/kttsd/plugins/flite/fliteproc.cpp b/kttsd/plugins/flite/fliteproc.cpp
index 1cb8b27..269290f 100644
--- a/kttsd/plugins/flite/fliteproc.cpp
+++ b/kttsd/plugins/flite/fliteproc.cpp
@@ -1,4 +1,4 @@
-/***************************************************** vim:set ts=4 sw=4 sts=4:
+/*
Main speaking functions for the Festival Lite (Flite) Plug in
-------------------
Copyright:
@@ -112,14 +112,14 @@ void FliteProc::synth(
}
// kdDebug()<< "FliteProc::synth: Creating Flite object" << endl;
m_fliteProc = new TDEProcess;
- connect(m_fliteProc, TQT_SIGNAL(processExited(TDEProcess*)),
- this, TQT_SLOT(slotProcessExited(TDEProcess*)));
- connect(m_fliteProc, TQT_SIGNAL(receivedStdout(TDEProcess*, char*, int)),
- this, TQT_SLOT(slotReceivedStdout(TDEProcess*, char*, int)));
- connect(m_fliteProc, TQT_SIGNAL(receivedStderr(TDEProcess*, char*, int)),
- this, TQT_SLOT(slotReceivedStderr(TDEProcess*, char*, int)));
- connect(m_fliteProc, TQT_SIGNAL(wroteStdin(TDEProcess*)),
- this, TQT_SLOT(slotWroteStdin(TDEProcess* )));
+ connect(m_fliteProc, TQ_SIGNAL(processExited(TDEProcess*)),
+ this, TQ_SLOT(slotProcessExited(TDEProcess*)));
+ connect(m_fliteProc, TQ_SIGNAL(receivedStdout(TDEProcess*, char*, int)),
+ this, TQ_SLOT(slotReceivedStdout(TDEProcess*, char*, int)));
+ connect(m_fliteProc, TQ_SIGNAL(receivedStderr(TDEProcess*, char*, int)),
+ this, TQ_SLOT(slotReceivedStderr(TDEProcess*, char*, int)));
+ connect(m_fliteProc, TQ_SIGNAL(wroteStdin(TDEProcess*)),
+ this, TQ_SLOT(slotWroteStdin(TDEProcess* )));
if (synthFilename.isNull())
m_state = psSaying;
else
diff --git a/kttsd/plugins/flite/fliteproc.h b/kttsd/plugins/flite/fliteproc.h
index 51950b0..cf8cf38 100644
--- a/kttsd/plugins/flite/fliteproc.h
+++ b/kttsd/plugins/flite/fliteproc.h
@@ -1,4 +1,4 @@
-/***************************************************** vim:set ts=4 sw=4 sts=4:
+/*
Main speaking functions for the Festival Lite (Flite) Plug in
-------------------
Copyright:
@@ -34,7 +34,7 @@
class TDEProcess;
class FliteProc : public PlugInProc{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/kttsd/plugins/flite/kttsd_fliteplugin.desktop b/kttsd/plugins/flite/kttsd_fliteplugin.desktop
index 68cc200..4120518 100644
--- a/kttsd/plugins/flite/kttsd_fliteplugin.desktop
+++ b/kttsd/plugins/flite/kttsd_fliteplugin.desktop
@@ -1,58 +1,8 @@
[Desktop Entry]
Name=Festival Lite (flite)
-Name[el]=Festival ελαφρύ (flite)
-Name[fi]=Festival Lite (kevytversio)
-Name[ka]=Festival მსუბუქი (flite)
-Name[km]=មុខងារ Lite (flite)
-Name[nds]=Festival Lite (FLite)
-Name[ne]=फेस्टिभल लाइट (एफ लाईट)
-Name[pt_BR]=Festival Lite
-Name[ta]=பெஸ்டிவல் லைட் (flite)
-Name[tr]=Festival Lite(flite)
-Name[zh_TW]=Festival Lite (flite)4
+
Comment=Festival Lite (flite) speech synthesizer
-Comment[bg]=Олекотен синтезатор на глас Festival Lite
-Comment[ca]=Sintetitzador de veu Festival Lite (flite)
-Comment[cs]=Hlasový syntetizér Festival Lite (flite)
-Comment[da]=Festival Lite (flite) tale-synthesizer
-Comment[de]=Festival Lite (flite) Sprachsynthesizer
-Comment[el]=Συνθέτης ομιλίας Festival ελαφρύ (flite)
-Comment[es]=Sintetizador de texto a voz Festival (flite)
-Comment[et]=Kõnesüntesaator Festival lite (flite)
-Comment[eu]=Festival Lite (flite) hizketa-sintetizadorea
-Comment[fa]=ترکیب‌دهندۀ گفتار Festival Lite (flite)
-Comment[fi]=Festival Lite (kevytversio) puhesyntetisaattori
-Comment[fr]=Synthèse vocale Festival Lite (flite)
-Comment[ga]=Sintéiseoir cainte Festival Lite (flite)
-Comment[gl]=Sintetizador de voces Festival Lite (flite)
-Comment[hu]=Festival Lite (flite) beszédszintetizátor
-Comment[is]=Festival Lite (flite) talgerfill
-Comment[it]=Sintetizzatore vocale Festival Lite (flite)
-Comment[ja]=Festival Lite (flite) スピーチシンセサイザ
-Comment[ka]=Festival მარტივი (flite) ხმის სინთეზატორი
-Comment[km]=មុខងារ​កម្មវិធី​សង្គ្រោះ​ការនិយាយ Lite (flite)
-Comment[mk]=Festival Lite (flite) синтетизатор на говор
-Comment[ms]=Pensintesis tutur Festival Lite (flite)
-Comment[nb]=Festival Lite (flite) talesyntetisering
-Comment[nds]=Blicksnuut Festival lite (FLite)
-Comment[ne]=फेस्टिभल लाइट (एफ लाइट) संवाद सिन्थेसाइजर
-Comment[nl]=Festival Lite (flite) spraaksynthesizer
-Comment[pa]=Festival Lite (flite) ਬੋਲੀ ਸੰਸਲੇਸ਼ਕ
-Comment[pl]=Syntezator mowy Festival Lite (flite)
-Comment[pt]=O sintetizador de fala Festival Lite (flite)
-Comment[pt_BR]=Sintetizador de fala Festival Lite (leve)
-Comment[ru]=Синтезатор речи Festival Lite (flite)
-Comment[sk]=Syntetizátor reči Festival Lite (flite)
-Comment[sl]=Sintetizator govora Festival Lite (flite)
-Comment[sr]=Синтетизатор говора Festival Lite (flite)
-Comment[sr@Latn]=Sintetizator govora Festival Lite (flite)
-Comment[sv]=Festival Lite (flite) talsyntes
-Comment[ta]=பெஸ்டிவல் லைட் (flite) பேச்சு கூட்டிணைப்பான்
-Comment[tg]=Таҳлилгари овози Festival Lite (flite)
-Comment[tr]=Festival Lite(flite) konuşma bireştirici
-Comment[uk]=Синтезатор мовлення Festival Lite (flite)
-Comment[vi]=Trình tổng hợp tiếng nói Festival Lite (flite)
-Comment[zh_TW]=Festival Lite (flite) 語音合成器
+
Type=Service
X-TDE-ServiceTypes=KTTSD/SynthPlugin
X-TDE-Library=libkttsd_fliteplugin