IRCBot Plugin API  v5
tts.h
Go to the documentation of this file.
1 
6 enum VOICE_ENGINES {
9  VE_DEFAULT = 0,
10  VE_ESPEAK = 1,
12  VE_WIN32 = 3,
14 };
15 
19 };
20 
21 struct TTS_JOB {
22  union {
23  const char * text;
24  const char * inputFN;
25  };
26  const char * outputFN;
27 
28  // these options only apply to MP3 jobs and WAV jobs on Windows (ignored for Linux WAV jobs)
31 
32  // these options only apply to MP3 jobs
34 
36  char VoiceOverride[128];
37 };
38 
43 struct TTS_INTERFACE {
45  bool (*MakeMP3FromText)(TTS_JOB * job);
46  bool (*MakeWAVFromText)(TTS_JOB * job);
47  bool (*MakeMP3FromFile)(TTS_JOB * job);
48  bool (*MakeWAVFromFile)(TTS_JOB * job);
49 };
50 
const char * text
text to convert
Definition: tts.h:23
signed int int32
Definition: plugins.h:43
const char * inputFN
input filename
Definition: tts.h:24
int32 sample
samplerate
Definition: tts.h:30
VOICE_ENGINES
< Voices engines are only for Linux/BSD only, these options will have no effect on Windows...
Definition: tts.h:7
bool(* MakeWAVFromText)(TTS_JOB *job)
Definition: tts.h:46
int32 bitrate
0 for LAME default
Definition: tts.h:33
bool(* MakeMP3FromText)(TTS_JOB *job)
Definition: tts.h:45
Definition: tts.h:21
VOICE_ENGINES EngineOverride
You can use this to force the TTS processor to use a different voice engine than the one it's configu...
Definition: tts.h:35
Definition: tts.h:13
VOICE_OUTPUT_FORMATS(* GetPreferredOutputFormat)(VOICE_ENGINES Engine)
Definition: tts.h:44
Definition: tts.h:8
bool(* MakeMP3FromFile)(TTS_JOB *job)
Definition: tts.h:47
Definition: tts.h:12
int32 channels
Windows-WAV note: 1 or 2 for mono/stereo respectively. MP3: 0 = LAME default, 1 = Mono...
Definition: tts.h:29
VOICE_OUTPUT_FORMATS
Definition: tts.h:16
bool(* MakeWAVFromFile)(TTS_JOB *job)
Definition: tts.h:48
Definition: tts.h:18
char VoiceOverride[128]
You can use this to force the TTS processor to use a different voice than the one it's configured to...
Definition: tts.h:36
Definition: tts.h:11
Definition: tts.h:9
Definition: tts.h:43
Definition: tts.h:10
const char * outputFN
output filename
Definition: tts.h:26
Definition: tts.h:17