Add ru-RU and vi-VN language support for Live Caption
This CL adds ru-RU and vi-VN language support for Live Caption. Bug: launch/4173015 Change-Id: I11ffca847c65250636c2c2212a9dfeea2072d2c8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5528242 Commit-Queue: Evan Liu <evliu@google.com> Reviewed-by: Frank Liberato <liberato@chromium.org> Cr-Commit-Position: refs/heads/main@{#1301635}
This commit is contained in:

committed by
Chromium LUCI CQ

parent
d028dc444d
commit
f4182ebf70
components/soda
@ -150,6 +150,12 @@ constexpr SodaLanguagePackComponentConfig kLanguageComponentConfigs[] = {
|
||||
{0x3f, 0xa6, 0xc9, 0x44, 0x13, 0x6a, 0xbe, 0xb8, 0xc2, 0xd2, 0x30,
|
||||
0xa0, 0x71, 0x0e, 0xab, 0xfc, 0xfc, 0x5d, 0x74, 0x62, 0xd8, 0x50,
|
||||
0x67, 0x90, 0x61, 0x81, 0x21, 0xd9, 0xf8, 0x74, 0x6d, 0x1c}},
|
||||
{LanguageCode::kRuRu,
|
||||
"ru-RU",
|
||||
prefs::kSodaRuRuConfigPath,
|
||||
{0xd9, 0xcd, 0x1f, 0x88, 0xbe, 0xa7, 0xe1, 0xe5, 0x62, 0x8b, 0xe1,
|
||||
0x3c, 0xf6, 0x3a, 0x54, 0x5e, 0x38, 0xb4, 0x79, 0x2b, 0x56, 0xc5,
|
||||
0x61, 0x3b, 0xc1, 0x97, 0xb6, 0x91, 0x16, 0x98, 0xa3, 0xb6}},
|
||||
{LanguageCode::kThTh,
|
||||
"th-TH",
|
||||
prefs::kSodaThThConfigPath,
|
||||
@ -162,6 +168,12 @@ constexpr SodaLanguagePackComponentConfig kLanguageComponentConfigs[] = {
|
||||
{0x85, 0x02, 0x59, 0xd8, 0x1f, 0xba, 0x8d, 0x23, 0x42, 0xfa, 0xa4,
|
||||
0x3c, 0x4a, 0x65, 0x4e, 0x09, 0xfa, 0xb0, 0x22, 0x2d, 0x31, 0x85,
|
||||
0xdb, 0xb2, 0x04, 0x42, 0x22, 0x6f, 0x4b, 0x86, 0xb9, 0xff}},
|
||||
{LanguageCode::kViVn,
|
||||
"vi-VN",
|
||||
prefs::kSodaViVnConfigPath,
|
||||
{0x1f, 0xd2, 0xae, 0x98, 0x67, 0x68, 0x1b, 0x4b, 0x31, 0xe5, 0x39,
|
||||
0xc5, 0x38, 0xf5, 0x48, 0x0a, 0xa8, 0xb6, 0xf6, 0xcc, 0x2f, 0x7d,
|
||||
0xe8, 0x49, 0x35, 0x5e, 0xa8, 0xb9, 0x13, 0x9f, 0x32, 0x3c}},
|
||||
{LanguageCode::kZhCn,
|
||||
"cmn-Hans-CN",
|
||||
prefs::kSodaZhCnConfigPath,
|
||||
|
@ -58,6 +58,10 @@ const char kSodaKoKrConfigPath[] =
|
||||
const char kSodaPlPlConfigPath[] =
|
||||
"accessibility.captions.soda_pl_pl_config_path";
|
||||
|
||||
// The file path of the ru-RU Speech On-Device API (SODA) configuration file.
|
||||
const char kSodaRuRuConfigPath[] =
|
||||
"accessibility.captions.soda_ru_ru_config_path";
|
||||
|
||||
// The file path of the th-TH Speech On-Device API (SODA) configuration file.
|
||||
const char kSodaThThConfigPath[] =
|
||||
"accessibility.captions.soda_th_th_config_path";
|
||||
@ -66,6 +70,10 @@ const char kSodaThThConfigPath[] =
|
||||
const char kSodaTrTrConfigPath[] =
|
||||
"accessibility.captions.soda_tr_tr_config_path";
|
||||
|
||||
// The file path of the vi-VN Speech On-Device API (SODA) configuration file.
|
||||
const char kSodaViVnConfigPath[] =
|
||||
"accessibility.captions.soda_vi_vn_config_path";
|
||||
|
||||
// The file path of the zh-CN Speech On-Device API (SODA) configuration file.
|
||||
const char kSodaZhCnConfigPath[] =
|
||||
"accessibility.captions.soda_zh_cn_config_path";
|
||||
|
@ -21,8 +21,10 @@ extern const char kSodaPtBrConfigPath[];
|
||||
extern const char kSodaIdIdConfigPath[];
|
||||
extern const char kSodaKoKrConfigPath[];
|
||||
extern const char kSodaPlPlConfigPath[];
|
||||
extern const char kSodaRuRuConfigPath[];
|
||||
extern const char kSodaThThConfigPath[];
|
||||
extern const char kSodaTrTrConfigPath[];
|
||||
extern const char kSodaViVnConfigPath[];
|
||||
extern const char kSodaZhCnConfigPath[];
|
||||
extern const char kSodaZhTwConfigPath[];
|
||||
|
||||
|
Reference in New Issue
Block a user