FMT_PARAMS fmtp; | FMT_PARAMS fmtp; | ||||
static WORD_PH_DATA worddata; | static WORD_PH_DATA worddata; | ||||
if (option_quiet) | |||||
return 0; | |||||
if (option_phoneme_events & espeakINITIALIZE_PHONEME_IPA) | if (option_phoneme_events & espeakINITIALIZE_PHONEME_IPA) | ||||
use_ipa = 1; | use_ipa = 1; | ||||
int option_tone_flags = 0; // bit 8=emphasize allcaps, bit 9=emphasize penultimate stress | int option_tone_flags = 0; // bit 8=emphasize allcaps, bit 9=emphasize penultimate stress | ||||
int option_phonemes = 0; | int option_phonemes = 0; | ||||
int option_phoneme_events = 0; | int option_phoneme_events = 0; | ||||
int option_quiet = 0; | |||||
int option_endpause = 0; // suppress pause after end of text | int option_endpause = 0; // suppress pause after end of text | ||||
int option_capitals = 0; | int option_capitals = 0; | ||||
int option_punctuation = 0; | int option_punctuation = 0; |
#define OPTION_EMPHASIZE_ALLCAPS 0x100 | #define OPTION_EMPHASIZE_ALLCAPS 0x100 | ||||
#define OPTION_EMPHASIZE_PENULTIMATE 0x200 | #define OPTION_EMPHASIZE_PENULTIMATE 0x200 | ||||
extern int option_tone_flags; | extern int option_tone_flags; | ||||
extern int option_quiet; | |||||
extern int option_phonemes; | extern int option_phonemes; | ||||
extern int option_phoneme_events; | extern int option_phoneme_events; | ||||
extern int option_linelength; // treat lines shorter than this as end-of-clause | extern int option_linelength; // treat lines shorter than this as end-of-clause |
if (tone_only == 0) { | if (tone_only == 0) { | ||||
n_replace_phonemes = 0; | n_replace_phonemes = 0; | ||||
option_quiet = 0; | |||||
LoadMbrolaTable(NULL, NULL, 0); | LoadMbrolaTable(NULL, NULL, 0); | ||||
} | } | ||||
} | } |
int samplerate = 0; // this is set by Wavegeninit() | int samplerate = 0; // this is set by Wavegeninit() | ||||
int samplerate_native = 0; | int samplerate_native = 0; | ||||
extern int option_device_number; | extern int option_device_number; | ||||
extern int option_quiet; | |||||
static wavegen_peaks_t peaks[N_PEAKS]; | static wavegen_peaks_t peaks[N_PEAKS]; | ||||
static int peak_harmonic[N_PEAKS]; | static int peak_harmonic[N_PEAKS]; | ||||
PaError err, err2; | PaError err, err2; | ||||
PaError active; | PaError active; | ||||
if (option_quiet) { | |||||
// writing to WAV file, not to portaudio | |||||
return 0; | |||||
} | |||||
#if USE_PORTAUDIO == 18 | #if USE_PORTAUDIO == 18 | ||||
active = Pa_StreamActive(pa_stream); | active = Pa_StreamActive(pa_stream); | ||||
#else | #else | ||||
{ | { | ||||
PaError err; | PaError err; | ||||
if (option_quiet) | |||||
return 0; | |||||
// PortAudio sound output library | // PortAudio sound output library | ||||
err = Pa_Initialize(); | err = Pa_Initialize(); | ||||
pa_init_err = err; | pa_init_err = err; |