Enabled TTS for es-MX, eu, nb, pt-BR and mr

Signed-off-by: Alexander Borsuk <me@alex.bio>
This commit is contained in:
Alexander Borsuk 2023-05-01 23:00:17 +02:00 committed by Alexander Borsuk
parent b711c9489c
commit 013e7d9c47
2 changed files with 22 additions and 17 deletions

View file

@ -12,7 +12,7 @@
zh_TW, zh_MO and zh_HK correspond to zh-Hant.
Otherwise we consider that this is zh-Hans.
TODO: Move language list to core.
TODO: Move language list to core, now sync manually with platform/languages.hpp
languages should be added alphabetically in tts_language_names
-->
@ -24,6 +24,7 @@
<item>da</item>
<item>de</item>
<item>es</item>
<item>es-MX</item>
<item>eu</item>
<item>fr</item>
<item>hr</item>
@ -34,6 +35,7 @@
<item>nb</item>
<item>pl</item>
<item>pt</item>
<item>pt-BR</item>
<item>ro</item>
<item>sk</item>
<item>fi</item>
@ -64,6 +66,7 @@
<item>Dansk</item>
<item>Deutsch</item>
<item>Español</item>
<item>Español (México)</item>
<item>Euskara</item>
<item>Français</item>
<item>Hrvatski</item>
@ -74,6 +77,7 @@
<item>Norsk Bokmål</item>
<item>Polski</item>
<item>Português</item>
<item>Português (Brasil)</item>
<item>Română</item>
<item>Slovenčina</item>
<item>Suomi</item>

View file

@ -6,49 +6,50 @@
// The list of languages which can be used by TTS.
// It shall be included in Android (jni) and iOS parts to get the languages list.
// TODO: Now it is used only on iOS.
// Manual sync with android/res/values/strings-tts.xml is needed.
namespace routing
namespace routing::turns::sound
{
namespace turns
{
namespace sound
{
std::array<std::pair<std::string, std::string>, 33> const kLanguageList =
std::array<std::pair<std::string, std::string>, 38> const kLanguageList =
{{
{"en", "English"},
{"ru", "Русский"},
{"be", "Беларуская"},
{"id", "Bahasa Indonesia"},
{"ca", "Català"},
{"cs", "Čeština"},
{"da", "Dansk"},
{"de", "Deutsch"},
{"es", "Español"},
{"es-MX", "Español (México)"},
{"eu", "Euskara"},
{"fr", "Français"},
{"hr", "Hrvatski"},
{"id", "Indonesia"},
{"it", "Italiano"},
{"sw", "Kiswahili"},
{"hu", "Magyar"},
{"nl", "Nederlands"},
{"nb", "Norsk Bokmål"},
{"pl", "Polski"},
{"pt", "Português"},
{"pt-BR", "Português (Brasil)"},
{"ro", "Română"},
{"sk", "Slovenčina"},
{"fi", "Suomi"},
{"sv", "Svenska"},
{"vi", "Tiếng Việt"},
{"tr", "Türkçe"},
{"cs", "Čeština"},
{"el", "Ελληνικά"},
{"be", "Беларуская"},
{"ru", "Русский"},
{"uk", "Українська"},
{"ar", "العربية"},
{"fa", "فارسی"},
{"mr", "मराठी"},
{"hi", "हिंदी"},
{"th", "ไทย"},
{"zh-Hans", "中文简体"},
{"zh-Hant", "中文繁體"},
{"ja", "日本語"},
{"ko", "한국어"},
{"th", "ภาษาไทย"},
{"zh-Hant", "中文繁體"},
{"zh-Hans", "中文简体"},
}};
} // namespace sound
} // namespace turns
} // namespace routing
} // namespace routing::turns::sound