Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Speech Framework recognize only English?

I'm currently working on a project about voice recognition and translate to another language with WebAPI. English to Any Language is done, but I want to make this recognition with other language.

Does Speech Framework recognize only English? can I use this framework for another languages?

Thanks for your help!

like image 907
Furkan Polat Açıkgöz Avatar asked Jul 31 '17 05:07

Furkan Polat Açıkgöz


Video Answer


2 Answers

Just run print(SFSpeechRecognizer.supportedLocales()) and you will get

[es-419 (fixed), th-TH (fixed), ca-ES (fixed), fr-BE (fixed), de-CH (fixed), sk-SK (fixed), en-ZA (fixed), es-CL (fixed), hi-IN (fixed), zh-CN (fixed), zh-TW (fixed), da-DK (fixed), hi-IN-translit (fixed), el-GR (fixed), he-IL (fixed), pt-BR (fixed), en-AE (fixed), pt-PT (fixed), fr-CH (fixed), ro-RO (fixed), vi-VN (fixed), en-SA (fixed), pl-PL (fixed), es-US (fixed), hi-Latn (fixed), en-SG (fixed), tr-TR (fixed), hr-HR (fixed), ko-KR (fixed), uk-UA (fixed), it-CH (fixed), ar-SA (fixed), id-ID (fixed), en-IN (fixed), es-ES (fixed), de-AT (fixed), en-IE (fixed), cs-CZ (fixed), es-CO (fixed), zh-HK (fixed), sv-SE (fixed), en-PH (fixed), en-ID (fixed), en-CA (fixed), nl-NL (fixed), yue-CN (fixed), en-NZ (fixed), en-GB (fixed), ja-JP (fixed), it-IT (fixed), ru-RU (fixed), en-US (fixed), ms-MY (fixed), es-MX (fixed), hu-HU (fixed), fr-CA (fixed), wuu-CN (fixed), de-DE (fixed), fr-FR (fixed), fi-FI (fixed), nb-NO (fixed), nl-BE (fixed), en-AU (fixed)]

like image 104
onmyway133 Avatar answered Sep 23 '22 20:09

onmyway133


Try this :

SFSpeechRecognizer(locale: Locale.init(identifier: "vi"))

The identifier is the language you want to work with. Language designator examples :

//English : en
//French : fr
//Japanese : ja
//VietNamese : vi
like image 40
Hai Nguyen Avatar answered Sep 23 '22 20:09

Hai Nguyen