Lines Matching refs:langIndex
253 static bool hasResourcesForLanguage(int langIndex) { in hasResourcesForLanguage() argument
259 strcat((char*)fileName, (const char*)picoInternalTaLingware[langIndex]); in hasResourcesForLanguage()
266 strcat((char*)fileName, (const char*)picoInternalSgLingware[langIndex]); in hasResourcesForLanguage()
279 strcat((char*)fileName, (const char*)picoInternalTaLingware[langIndex]); in hasResourcesForLanguage()
289 strcat((char*)fileName, (const char*)picoInternalSgLingware[langIndex]); in hasResourcesForLanguage()
309 static tts_result doLanguageSwitchFromLangIndex( int langIndex ) in doLanguageSwitchFromLangIndex() argument
313 if (langIndex>=0) { in doLanguageSwitchFromLangIndex()
315 if (picoProp_currLang && (strcmp(picoProp_currLang, picoSupportedLang[langIndex]) == 0)) { in doLanguageSwitchFromLangIndex()
362 strcat((char*)tmpFileName, (const char*)picoInternalTaLingware[langIndex]); in doLanguageSwitchFromLangIndex()
381 strcat((char *) picoTaFileName, (const char *) picoInternalTaLingware[langIndex]); in doLanguageSwitchFromLangIndex()
382 strcat((char *) picoSgFileName, (const char *) picoInternalSgLingware[langIndex]); in doLanguageSwitchFromLangIndex()
383 strcat((char *) picoUtppFileName, (const char *) picoInternalUtppLingware[langIndex]); in doLanguageSwitchFromLangIndex()
388 ALOGE("Failed to load textana resource for %s [%d]", picoSupportedLang[langIndex], ret); in doLanguageSwitchFromLangIndex()
397 ALOGE("Failed to load siggen resource for %s [%d]", picoSupportedLang[langIndex], ret); in doLanguageSwitchFromLangIndex()
408 ALOGE("Failed to load utpp resource for %s [%d]", picoSupportedLang[langIndex], ret); in doLanguageSwitchFromLangIndex()
417 ALOGE("Failed to get textana resource name for %s [%d]", picoSupportedLang[langIndex], ret); in doLanguageSwitchFromLangIndex()
429 … ALOGE("Failed to get utpp resource name for %s [%d]", picoSupportedLang[langIndex], ret); in doLanguageSwitchFromLangIndex()
436 ALOGE("Failed to get siggen resource name for %s [%d]", picoSupportedLang[langIndex], ret); in doLanguageSwitchFromLangIndex()
445 ALOGE("Failed to create voice for %s [%d]", picoSupportedLang[langIndex], ret); in doLanguageSwitchFromLangIndex()
454 … ALOGE("Failed to add textana resource to voice for %s [%d]", picoSupportedLang[langIndex], ret); in doLanguageSwitchFromLangIndex()
466 … ALOGE("Failed to add utpp resource to voice for %s [%d]", picoSupportedLang[langIndex], ret); in doLanguageSwitchFromLangIndex()
474 … ALOGE("Failed to add siggen resource to voice for %s [%d]", picoSupportedLang[langIndex], ret); in doLanguageSwitchFromLangIndex()
482 ALOGE("Failed to create engine for %s [%d]", picoSupportedLang[langIndex], ret); in doLanguageSwitchFromLangIndex()
489 strcpy( picoProp_currLang, picoSupportedLang[langIndex] ); in doLanguageSwitchFromLangIndex()
490 picoCurrentLangIndex = langIndex; in doLanguageSwitchFromLangIndex()
1131 int langIndex; in setLanguage() local
1151 langIndex = -1; /* no match */ in setLanguage()
1156 langIndex = i; in setLanguage()
1160 if (langIndex < 0) in setLanguage()
1171 for (i = langIndex; i < picoNumSupportedVocs; i ++) in setLanguage()
1191 langIndex = countryIndex; in setLanguage()
1195 return doLanguageSwitchFromLangIndex( langIndex ); /* switch the language */ in setLanguage()
1208 int langIndex = -1; in isLanguageAvailable() local
1222 langIndex = i; in isLanguageAvailable()
1226 if (langIndex < 0) { in isLanguageAvailable()
1237 return (hasResourcesForLanguage(langIndex) ? TTS_LANG_AVAILABLE : TTS_LANG_MISSING_DATA); in isLanguageAvailable()
1241 for (int i = langIndex; i < picoNumSupportedVocs; i++) { in isLanguageAvailable()
1251 return (hasResourcesForLanguage(langIndex) ? TTS_LANG_AVAILABLE : TTS_LANG_MISSING_DATA); in isLanguageAvailable()
1254 langIndex = countryIndex; in isLanguageAvailable()
1256 … return (hasResourcesForLanguage(langIndex) ? TTS_LANG_COUNTRY_AVAILABLE : TTS_LANG_MISSING_DATA); in isLanguageAvailable()