Home | History | Annotate | Download | only in speech

Lines Matching defs:voice

152   // Get all available voices and try to find a matching voice.
157 // Select the matching voice, but if none was found, initialize an
161 VoiceData voice;
163 voice = voices[index];
165 voice.native = true;
167 if (!voice.native) {
169 DCHECK(!voice.extension_id.empty());
171 utterance->set_extension_id(voice.extension_id);
172 ExtensionTtsEngineSpeak(utterance, voice);
174 voice.events.find(TTS_EVENT_END) != voice.events.end();
188 voice,
191 // If the native voice wasn't able to process this speech, see if
350 const VoiceData& voice = voices[i];
353 utterance->extension_id() != voice.extension_id) {
357 if (!voice.name.empty() &&
359 voice.name != utterance->voice_name()) {
362 if (!voice.lang.empty() && !utterance->lang().empty()) {
363 std::string voice_lang = voice.lang;
373 if (voice.gender != TTS_GENDER_NONE &&
375 voice.gender != utterance->gender()) {
385 if (voice.events.find(*iter) == voice.events.end()) {