Lines Matching refs:langIndex
252 static bool hasResourcesForLanguage(int langIndex) { in hasResourcesForLanguage() argument
258 strcat((char*)fileName, (const char*)picoInternalTaLingware[langIndex]); in hasResourcesForLanguage()
265 strcat((char*)fileName, (const char*)picoInternalSgLingware[langIndex]); in hasResourcesForLanguage()
278 strcat((char*)fileName, (const char*)picoInternalTaLingware[langIndex]); in hasResourcesForLanguage()
288 strcat((char*)fileName, (const char*)picoInternalSgLingware[langIndex]); in hasResourcesForLanguage()
308 static tts_result doLanguageSwitchFromLangIndex( int langIndex ) in doLanguageSwitchFromLangIndex() argument
312 if (langIndex>=0) { in doLanguageSwitchFromLangIndex()
314 if (picoProp_currLang && (strcmp(picoProp_currLang, picoSupportedLang[langIndex]) == 0)) { in doLanguageSwitchFromLangIndex()
361 strcat((char*)tmpFileName, (const char*)picoInternalTaLingware[langIndex]); in doLanguageSwitchFromLangIndex()
380 strcat((char *) picoTaFileName, (const char *) picoInternalTaLingware[langIndex]); in doLanguageSwitchFromLangIndex()
381 strcat((char *) picoSgFileName, (const char *) picoInternalSgLingware[langIndex]); in doLanguageSwitchFromLangIndex()
382 strcat((char *) picoUtppFileName, (const char *) picoInternalUtppLingware[langIndex]); in doLanguageSwitchFromLangIndex()
387 ALOGE("Failed to load textana resource for %s [%d]", picoSupportedLang[langIndex], ret); in doLanguageSwitchFromLangIndex()
396 ALOGE("Failed to load siggen resource for %s [%d]", picoSupportedLang[langIndex], ret); in doLanguageSwitchFromLangIndex()
407 ALOGE("Failed to load utpp resource for %s [%d]", picoSupportedLang[langIndex], ret); in doLanguageSwitchFromLangIndex()
416 ALOGE("Failed to get textana resource name for %s [%d]", picoSupportedLang[langIndex], ret); in doLanguageSwitchFromLangIndex()
428 … ALOGE("Failed to get utpp resource name for %s [%d]", picoSupportedLang[langIndex], ret); in doLanguageSwitchFromLangIndex()
435 ALOGE("Failed to get siggen resource name for %s [%d]", picoSupportedLang[langIndex], ret); in doLanguageSwitchFromLangIndex()
444 ALOGE("Failed to create voice for %s [%d]", picoSupportedLang[langIndex], ret); in doLanguageSwitchFromLangIndex()
453 … ALOGE("Failed to add textana resource to voice for %s [%d]", picoSupportedLang[langIndex], ret); in doLanguageSwitchFromLangIndex()
465 … ALOGE("Failed to add utpp resource to voice for %s [%d]", picoSupportedLang[langIndex], ret); in doLanguageSwitchFromLangIndex()
473 … ALOGE("Failed to add siggen resource to voice for %s [%d]", picoSupportedLang[langIndex], ret); in doLanguageSwitchFromLangIndex()
481 ALOGE("Failed to create engine for %s [%d]", picoSupportedLang[langIndex], ret); in doLanguageSwitchFromLangIndex()
488 strcpy( picoProp_currLang, picoSupportedLang[langIndex] ); in doLanguageSwitchFromLangIndex()
489 picoCurrentLangIndex = langIndex; in doLanguageSwitchFromLangIndex()
1136 int langIndex; in setLanguage() local
1156 langIndex = -1; /* no match */ in setLanguage()
1161 langIndex = i; in setLanguage()
1165 if (langIndex < 0) in setLanguage()
1176 for (i = langIndex; i < picoNumSupportedVocs; i ++) in setLanguage()
1196 langIndex = countryIndex; in setLanguage()
1200 return doLanguageSwitchFromLangIndex( langIndex ); /* switch the language */ in setLanguage()
1213 int langIndex = -1; in isLanguageAvailable() local
1227 langIndex = i; in isLanguageAvailable()
1231 if (langIndex < 0) { in isLanguageAvailable()
1242 return (hasResourcesForLanguage(langIndex) ? TTS_LANG_AVAILABLE : TTS_LANG_MISSING_DATA); in isLanguageAvailable()
1246 for (int i = langIndex; i < picoNumSupportedVocs; i++) { in isLanguageAvailable()
1256 return (hasResourcesForLanguage(langIndex) ? TTS_LANG_AVAILABLE : TTS_LANG_MISSING_DATA); in isLanguageAvailable()
1259 langIndex = countryIndex; in isLanguageAvailable()
1261 … return (hasResourcesForLanguage(langIndex) ? TTS_LANG_COUNTRY_AVAILABLE : TTS_LANG_MISSING_DATA); in isLanguageAvailable()