Lines Matching defs:voice

119      * Denotes a failure caused by an unfinished download of the voice data.
375 * available voices. The format of each voice is: lang-COUNTRY-variant where COUNTRY and
378 * unavailable voices (ones that user can install). The format of each voice is:
407 * the TextToSpeech engine returns an String with sample text for requested voice
416 * The format of each voice is: lang-COUNTRY-variant where COUNTRY and variant are
424 * The format of each voice is: lang-COUNTRY-variant where COUNTRY and variant are
464 * caller indicates to the TextToSpeech engine which specific sets of voice data to
466 * The format of each voice is: lang-COUNTRY-variant where COUNTRY and variant are
469 * @deprecated Redundant functionality, checking for existence of specific sets of voice
589 * {@link TextToSpeech#getVoices()}, find a suitable network voice
607 * ({@link TextToSpeech#getVoices()}, find a suitable embedded voice
626 * Feature key that indicates that the voice may need to download additional data to be fully
630 * {@link TextToSpeech#ERROR_NOT_INSTALLED_YET} error, or use a different voice to synthesize
1289 * @deprecated As of API level 21, please use voices. In order to query features of the voice,
1380 * lower values lower the tone of the synthesized voice,
1456 * This method sets the current voice to the default one for the given Locale;
1496 // Get the default voice for the locale.
1499 Log.w(TAG, "Couldn't find the default voice for " + language + "-" +
1507 + variant + " was available with voice name " + voiceName
1512 // Set the language/country/variant of the voice, so #getLanguage will return
1513 // the currently set voice locale when called.
1514 Voice voice = getVoice(service, voiceName);
1515 if (voice == null) {
1523 voiceLanguage = voice.getLocale().getISO3Language();
1526 voice.getLocale(), e);
1531 voiceCountry = voice.getLocale().getISO3Country();
1534 voice.getLocale(), e);
1539 mParams.putString(Engine.KEY_PARAM_VARIANT, voice.getLocale().getVariant());
1558 * If a voice is set (by {@link #setVoice(Voice)}), getLanguage will return the language of
1559 * the currently set voice.
1599 for (Voice voice : voices) {
1600 locales.add(voice.getLocale());
1627 * Sets the text-to-speech voice.
1629 * @param voice One of objects returned by {@link #getVoices()}.
1636 public int setVoice(final Voice voice) {
1640 int result = service.loadVoice(getCallerIdentity(), voice.getName());
1642 mParams.putString(Engine.KEY_PARAM_VOICE_NAME, voice.getName());
1644 // Set the language/country/variant, so #getLanguage will return the voice
1648 language = voice.getLocale().getISO3Language();
1651 voice.getLocale(), e);
1656 country = voice.getLocale().getISO3Country();
1659 voice.getLocale(), e);
1663 mParams.putString(Engine.KEY_PARAM_VARIANT, voice.getLocale().getVariant());
1671 * Returns a Voice instance describing the voice currently being used for synthesis
1695 * Returns a Voice instance of the voice with the given voice name.
1697 * @return Voice instance with the given voice name, or {@code null} if not set or on error.
1707 for (Voice voice : voices) {
1708 if (voice.getName().equals(voiceName)) {
1709 return voice;
1712 Log.w(TAG, "Could not find voice " + voiceName + " in voice list");
1717 * Returns a Voice instance that's the default voice for the default Text-to-speech language.
1718 * @return The default voice instance for the default language, or {@code null} if not set or
1743 // Get the default voice name
1754 for (Voice voice : voices) {
1755 if (voice.getName().equals(voiceName)) {
1756 return voice;
2179 // Get the default voice for the locale.