FlightGear next
FLITEVoiceSynthesizer Class Reference

A Voice Synthesizer using FLITE+HTS. More...

#include <VoiceSynthesizer.hxx>

Inherits VoiceSynthesizer.

Classes

class  WorkerThread
 

Public Types

enum  voice_t { CMU_US_ARCTIC_SLT = 0 , CSTR_UK_FEMALE , VOICE_UNKNOWN }
 

Public Member Functions

 FLITEVoiceSynthesizer (const std::string &voice)
 
 ~FLITEVoiceSynthesizer ()
 
virtual SGSoundSample * synthesize (const std::string &text, double volume, double speed, double pitch)
 
virtual void synthesize (SynthesizeRequest &request)
 
- Public Member Functions inherited from VoiceSynthesizer
virtual ~VoiceSynthesizer ()
 

Static Public Member Functions

static std::string getVoicePath (voice_t voice)
 
static std::string getVoicePath (const std::string &voice)
 

Detailed Description

A Voice Synthesizer using FLITE+HTS.

Definition at line 81 of file VoiceSynthesizer.hxx.

Member Enumeration Documentation

◆ voice_t

Enumerator
CMU_US_ARCTIC_SLT 
CSTR_UK_FEMALE 
VOICE_UNKNOWN 

Definition at line 84 of file VoiceSynthesizer.hxx.

Constructor & Destructor Documentation

◆ FLITEVoiceSynthesizer()

FLITEVoiceSynthesizer::FLITEVoiceSynthesizer ( const std::string & voice)

Definition at line 97 of file VoiceSynthesizer.cxx.

◆ ~FLITEVoiceSynthesizer()

FLITEVoiceSynthesizer::~FLITEVoiceSynthesizer ( )

Definition at line 107 of file VoiceSynthesizer.cxx.

Member Function Documentation

◆ getVoicePath() [1/2]

static std::string FLITEVoiceSynthesizer::getVoicePath ( const std::string & voice)
static

◆ getVoicePath() [2/2]

string FLITEVoiceSynthesizer::getVoicePath ( voice_t voice)
static

Definition at line 77 of file VoiceSynthesizer.cxx.

◆ synthesize() [1/2]

SGSoundSample * FLITEVoiceSynthesizer::synthesize ( const std::string & text,
double volume,
double speed,
double pitch )
virtual

Implements VoiceSynthesizer.

Definition at line 115 of file VoiceSynthesizer.cxx.

◆ synthesize() [2/2]

void FLITEVoiceSynthesizer::synthesize ( SynthesizeRequest & request)
virtual

Definition at line 92 of file VoiceSynthesizer.cxx.


The documentation for this class was generated from the following files: