mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 13:15:18 -05:00
Fix Festival tts engine.
Author: Delyan Kratunov Flyspray: FS#11155 part2 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25402 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
a79fee019e
commit
11c9be9c83
2 changed files with 107 additions and 55 deletions
|
|
@ -22,6 +22,7 @@
|
|||
#ifndef TTSFESTIVAL_H
|
||||
#define TTSFESTIVAL_H
|
||||
|
||||
#include <QTemporaryFile>
|
||||
#include "ttsbase.h"
|
||||
|
||||
class TTSFestival : public TTSBase
|
||||
|
|
@ -52,12 +53,15 @@ class TTSFestival : public TTSBase
|
|||
void updateVoiceDescription();
|
||||
void clearVoiceDescription();
|
||||
private:
|
||||
QStringList getVoiceList(QString path ="");
|
||||
QString getVoiceInfo(QString voice,QString path ="");
|
||||
QTemporaryFile prologFile;
|
||||
QString prologPath;
|
||||
QString currentPath;
|
||||
QStringList getVoiceList();
|
||||
QString getVoiceInfo(QString voice);
|
||||
|
||||
inline void startServer(QString path="");
|
||||
inline void ensureServerRunning(QString path="");
|
||||
QString queryServer(QString query, int timeout = -1,QString path="");
|
||||
inline void startServer();
|
||||
inline bool ensureServerRunning();
|
||||
QString queryServer(QString query, int timeout = -1);
|
||||
QProcess serverProcess;
|
||||
QStringList voices;
|
||||
QMap<QString, QString> voiceDescriptions;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue