Voice: List of locale available

Created on 31 Mar 2018  ·  11Comments  ·  Source: react-native-voice/voice

Hye, I would like to know where can I check locale supported for this package? Im looking for arabic locale code.

Most helpful comment

Here's a few. The values are the locales for the respective platforms

const iosLocales = {
  'ar-EG': 'ar_EG',
  'de-DE': 'de_DE',
  'en-US': 'en_US',
  'es-CL': 'es_CL',
  'fr-FR': 'fr_FR',
  hi: 'hi_IN',
  'it-IT': 'it_IT',
  ja: 'ja_JP',
  ko: 'ko_KR',
  'pt-BR': 'pt_BR',
  ru: 'ru_RU',
  'zh-CN': 'zh_Hans_SG',
};

const androidLocales = {
  'ar-EG': 'ar-EG',
  'de-DE': 'de-DE',
  'en-US': 'en_US',
  'es-CL': 'es-CL',
  'fr-FR': 'fr-FR',
  hi: 'hi-IN',
  'it-IT': 'it-IT',
  ja: 'ja-JP',
  ko: 'ko-KR',
  'pt-BR': 'pt-BR',
  ru: 'ru-RU',
  'zh-CN': 'cmn-Hans-CN',
};

All 11 comments

There is an open issue for this - https://github.com/wenkesj/react-native-voice/issues/54

Side note, I am also looking for Arabic. I didn't know that was supported!

ar looks good @Noitidart and can be use ! thanks :-)

Im guess is this.. from google, but can't find arabic

https://developers.google.com/actions/localization/languages-locales

Here's a few. The values are the locales for the respective platforms

const iosLocales = {
  'ar-EG': 'ar_EG',
  'de-DE': 'de_DE',
  'en-US': 'en_US',
  'es-CL': 'es_CL',
  'fr-FR': 'fr_FR',
  hi: 'hi_IN',
  'it-IT': 'it_IT',
  ja: 'ja_JP',
  ko: 'ko_KR',
  'pt-BR': 'pt_BR',
  ru: 'ru_RU',
  'zh-CN': 'zh_Hans_SG',
};

const androidLocales = {
  'ar-EG': 'ar-EG',
  'de-DE': 'de-DE',
  'en-US': 'en_US',
  'es-CL': 'es-CL',
  'fr-FR': 'fr-FR',
  hi: 'hi-IN',
  'it-IT': 'it-IT',
  ja: 'ja-JP',
  ko: 'ko-KR',
  'pt-BR': 'pt-BR',
  ru: 'ru-RU',
  'zh-CN': 'cmn-Hans-CN',
};

Thank you so much @jamsch that's a super help! Where did you find those?

@MrHazimAli it seems there is ar-egyption in ios and android too.

thanks @jamsch !
yup.. that's nice @Noitidart 💯

I think this feature saves lots of confusion and time of devs.

Here These are total supported locale with codes for iOS as of now for speech Recognition

For iOS Only,
Nederland : nl-NL
México : es-MX
台灣 : zh-TW
France : fr-FR
Italia : it-IT
Việt Nam : vi-VN
Suisse : fr-CH
South Africa : en-ZA
Espanya : ca-ES
대한민국 : ko-KR
Chile : es-CL
România : ro-RO
Philippines : en-PH
Latinoamérica : es-
Canada : en-CA
Singapore : en-SG
India : en-IN
New Zealand : en-NZ
Svizzera : it-CH
Canada : fr-CA
भारत : hi-IN
Danmark : da-DK
Österreich : de-AT
Brasil : pt-BR
中华人民共和国 : yue-CN
中国 : zh-CN
Sverige : sv-SE
भारत : hi-IN-translit
España : es-ES
Magyarország : hu-HU
المملكة العربية السعودية : ar-SA
Belgique : fr-BE
United Kingdom : en-GB
日本 : ja-JP
香港(中國) : zh-HK
Suomi : fi-FI
Türkiye : tr-TR
Norge : nb-NO
Indonesia : en-ID
Saudi Arabia : en-SA
Polska : pl-PL
Indonesia : id-ID
Malaysia : ms-MY
Ελλάδα : el-GR
Česko : cs-CZ
Hrvatska : hr-HR
United Arab Emirates : en-AE
ישראל : he-IL
Россия : ru-RU
China : wuu-CN
Schweiz : de-CH
Australia : en-AU
Deutschland : de-DE
België : nl-BE
ไทย : th-TH
Portugal : pt-PT
Slovensko : sk-SK
United States : en-US
Ireland : en-IE
Colombia : es-CO
(null) : hi-Latn
Україна : uk-UA
Estados Unidos : es-US

Someone Could Update Android too.

send PR please

Is there any way to check if the language is possible to regconition please? Thanks.

Any React Native Developer who is looking for opportunities?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jagadhishm87 picture jagadhishm87  ·  3Comments

MrHazimAli picture MrHazimAli  ·  7Comments

henrych4 picture henrych4  ·  8Comments

alvaro1728 picture alvaro1728  ·  5Comments

MiguelGrability picture MiguelGrability  ·  8Comments