Lines Matching full:language

14  * See the License for the specific language governing permissions and
24 * In the Pico engine, the language cannot be changed indpendently of the voice.
25 * If either the voice or locale/language are changed, a new resource is loaded.
29 * If the language is changed through an SSML tag, there is a latency for the load.
93 const char * picoSupportedProperties[] = { "language", "rate", "pitch", "volume" };
112 char * picoProp_currLang = NULL; /* current language */
131 int found = -1; /* language not found */ in checkForLocale()
134 ALOGE("checkForLocale called with NULL language"); in checkForLocale()
149 This could overmatch ISO 639-3 language codes.%% */ in checkForLocale()
151 /* check whether the current language matches the locale's language */ in checkForLocale()
154 /* the current language matches the requested language, let's use it */ in checkForLocale()
157 /* check whether we can find a match at least on the language */ in checkForLocale()
167 ALOGE("TtsEngine::set language called with unsupported locale %s", locale); in checkForLocale()
247 * Check to see if the resources required to load the language at the specified index
249 * @langIndex - the index of the language to check the resources for. The index is valid.
315 //ALOGI("Language already loaded (%s == %s)", picoProp_currLang, in doLanguageSwitchFromLangIndex()
356 … /* more recent language file updates would be installed (under pico_alt_lingware_path). */ in doLanguageSwitchFromLangIndex()
1113 * Load a new language.
1114 * @lang - string with ISO 3 letter language code.
1116 * @variant - string with language variant for that language and country pair.
1122 //return setProperty("language", value, size); in loadLanguage()
1127 * Load a new language (locale). Use the ISO 639-3 language codes.
1128 * @lang - string with ISO 639-3 language code.
1130 * @variant - string with language variant for that language and country pair.
1142 ALOGE("TtsEngine::setLanguage called with NULL language"); in setLanguage()
1146 /* We look for a match on the language first in setLanguage()
1148 If no match on the language: in setLanguage()
1150 If match on the language, but no match on the country: in setLanguage()
1151 load the language found for the language match. in setLanguage()
1152 If match on the language, and match on the country: in setLanguage()
1153 load the language found for the country match. */ in setLanguage()
1155 /* Find a match on the language. */ in setLanguage()
1167 /* The language isn't supported. */ in setLanguage()
1168 ALOGE("TtsEngine::setLanguage called with unsupported language"); in setLanguage()
1188 /* We didn't find a match on the country, but we had a match on the language. in setLanguage()
1189 Use that language. */ in setLanguage()
1190 … ALOGI("TtsEngine::setLanguage found matching language(%s) but not matching country(%s).", in setLanguage()
1195 /* We have a match on both the language and the country. */ in setLanguage()
1200 return doLanguageSwitchFromLangIndex( langIndex ); /* switch the language */ in setLanguage()
1205 * Returns the level of support for a language.
1206 * @lang - string with ISO 3 letter language code.
1208 * @variant - string with language variant for that language and country pair.
1216 // language matching in isLanguageAvailable()
1217 // if no language specified in isLanguageAvailable()
1219 ALOGE("TtsEngine::isLanguageAvailable called with no language"); in isLanguageAvailable()
1223 // find a match on the language in isLanguageAvailable()
1232 // language isn't supported in isLanguageAvailable()
1233 ALOGV("TtsEngine::isLanguageAvailable called with unsupported language"); in isLanguageAvailable()
1241 // check installation of matched language in isLanguageAvailable()
1254 // we didn't find a match on the country, but we had a match on the language in isLanguageAvailable()
1255 // check installation of matched language in isLanguageAvailable()
1258 // we have a match on the language and the country in isLanguageAvailable()
1260 // check installation of matched language + country in isLanguageAvailable()
1269 * Get the currently loaded language - if any.
1270 * @lang - string with current ISO 3 letter language code, empty string if no loaded language.
1271 * @country - string with current ISO 3 letter country code, empty string if no loaded language.
1272 * @variant - string with current language variant, empty string if no loaded language.
1275 tts_result TtsEngine::getLanguage(char *language, char *country, char *variant) in getLanguage() argument
1278 strcpy(language, "\0"); in getLanguage()
1282 strcpy(language, picoSupportedLangIso3[picoCurrentLangIndex]); in getLanguage()
1310 * Set property. The supported properties are: language, rate, pitch and volume.
1323 Supported properties include: language (locale), rate, pitch, volume. */ in setProperty()
1335 if (strncmp(property, "language", 8) == 0) { in setProperty()
1338 ALOGE("change language called with incorrect format"); in setProperty()
1342 /* Try to switch to specified language. */ in setProperty()
1344 ALOGE("failed to load language"); in setProperty()
1386 * Get the property. Supported properties are: language, rate, pitch and volume.
1407 if (strncmp(property, "language", 8) == 0) { in getProperty()
1511 … ALOGE("Failed to switch to language (%s) specified in SSML document.", lang); in synthesizeText()
1516 // lang is NULL, pick a language so the synthesis can be performed in synthesizeText()
1518 // no current language loaded, pick the first one and load it in synthesizeText()
1520 ALOGE("Failed to switch to default language."); in synthesizeText()
1525 //ALOGI("No language in SSML, using current language (%s).", picoProp_currLang); in synthesizeText()