[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdenonbeta/kttsd
From: Gary Cramblitt <garycramblitt () comcast ! net>
Date: 2004-12-06 22:56:38
Message-ID: 20041206225638.8F94419E5C () office ! kde ! org
[Download RAW message or body]
CVS commit by cramblitt:
Support for SSML with Hadifix. Primitive.
A plugins/hadifix/SSMLtoTxt2pho.xsl 1.1
M +3 -0 ChangeLog 1.53
M +4 -0 plugins/hadifix/Makefile.am 1.4
M +15 -0 plugins/hadifix/hadifixproc.cpp 1.5
M +12 -1 plugins/hadifix/hadifixproc.h 1.3
--- kdenonbeta/kttsd/ChangeLog #1.52:1.53
@@ -1,2 +1,5 @@
+2004-12-06 Gary Cramblitt (PhantomsDad)
+ * Initial, but primitive support for SSML with Hadifix.
+
2004-12-03 Gary Cramblitt (PhantomsDad)
* Audio players are now plugins. This permits distribution of binary packages
--- kdenonbeta/kttsd/plugins/hadifix/Makefile.am #1.3:1.4
@@ -25,4 +25,8 @@
servicesdir = $(kde_servicesdir)
+# Data files.
+festivalintxsltdatadir = $(kde_datadir)/kttsd/hadifix/xslt/
+festivalintxsltdata_DATA = SSMLtoTxt2pho.xsl
+
install-data-local:
$(mkinstalldirs) $(DESTDIR)$(kde_icondir)/hicolor/16x16/actions/
--- kdenonbeta/kttsd/plugins/hadifix/hadifixproc.cpp #1.4:1.5
@@ -23,4 +23,5 @@
#include <kconfig.h>
#include <kprocess.h>
+#include <kstandarddirs.h>
#include "hadifixproc.h"
@@ -383,2 +384,16 @@ void HadifixProc::receivedStderr (KProce
stdErr += QString::fromLatin1(buffer, buflen);
}
+
+/**
+ * Returns the name of an XSLT stylesheet that will convert a valid SSML file
+ * into a format that can be processed by the synth. For example,
+ * The Festival plugin returns a stylesheet that will convert SSML into
+ * SABLE. Any tags the synth cannot handle should be stripped (leaving
+ * their text contents though). The default stylesheet strips all
+ * tags and converts the file to plain text.
+ * @return Name of the XSLT file.
+ */
+QString HadifixProc::getSsmlXsltFilename()
+{
+ return KGlobal::dirs()->resourceDirs("data").last() + "kttsd/hadifix/xslt/SSMLtoTxt2pho.xsl";
+}
--- kdenonbeta/kttsd/plugins/hadifix/hadifixproc.h #1.2:1.3
@@ -175,4 +175,15 @@ class HadifixProc : public PlugInProc{
static VoiceGender determineGender(QString mbrola, QString voice, QString *output = 0);
+ /**
+ * Returns the name of an XSLT stylesheet that will convert a valid SSML file
+ * into a format that can be processed by the synth. For example,
+ * The Festival plugin returns a stylesheet that will convert SSML into
+ * SABLE. Any tags the synth cannot handle should be stripped (leaving
+ * their text contents though). The default stylesheet strips all
+ * tags and converts the file to plain text.
+ * @return Name of the XSLT file.
+ */
+ virtual QString getSsmlXsltFilename();
+
private slots:
void slotProcessExited(KProcess*);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic