语言支持
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
Google 助理服务使用的语音识别引擎能够理解多种语言中的任何一种。您可以在 DialogStateIn
消息的 language_code
字段中或使用 Google 助理应用指定这些语言。
语言代码字段由 BCP-47 标识符组成。这些标记通常采用“language-region”的格式,其中“language”是指主要语言,“region”是指特定方言的区域(通常是国家/地区标识符)。例如,英语可以用美国英语 (en-US
) 或英国英语 (en-GB
) 表示。
Google 助理服务可以识别语音,并相应地做出以下回应。
语言 |
language_code |
语言(中文名称) |
Deutsch (Deutschland) |
de-DE |
德语(德国) |
英语(澳大利亚) |
en-AU |
英语(澳大利亚) |
English (Canada) |
en-CA |
英语(加拿大) |
英语(英国) |
en-GB |
英语(英国) |
English (India) |
en-IN |
英语(印度) |
英语(美国) |
en-US |
英语(美国) |
Français (Canada) |
fr-CA |
法语(加拿大) |
Français (France) |
fr-FR |
法语(法国) |
Italiano (Italia) |
it-IT |
意大利语(意大利) |
日本語(日本) |
ja-JP |
日语(日本) |
Español (España) |
es-ES |
西班牙语(西班牙) |
Español (México) |
es-MX |
西班牙语(墨西哥) |
한국어 (대한민국) |
ko-KR |
韩语(韩国) |
Português (Brasil) |
pt-BR |
葡萄牙语(巴西) |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eThe Google Assistant Service leverages speech recognition to understand various languages, specified by the \u003ccode\u003elanguage_code\u003c/code\u003e field or the Google Assistant app settings.\u003c/p\u003e\n"],["\u003cp\u003eLanguage codes adhere to the BCP-47 standard, typically formatted as \u003cem\u003elanguage\u003c/em\u003e -\u003cem\u003eregion\u003c/em\u003e to denote dialects like \u003ccode\u003een-US\u003c/code\u003e for US English and \u003ccode\u003een-GB\u003c/code\u003e for British English.\u003c/p\u003e\n"],["\u003cp\u003eThe Google Assistant Service supports a range of languages for speech recognition and responses, including English, German, French, Italian, Japanese, Spanish, Korean, and Portuguese variations.\u003c/p\u003e\n"],["\u003cp\u003eUsers can refer to the provided table for a comprehensive list of supported languages and their corresponding \u003ccode\u003elanguage_code\u003c/code\u003e values.\u003c/p\u003e\n"]]],["The Google Assistant Service identifies languages using BCP-47 identifiers in the `language_code` field, typically formatted as *language*-*region*. Users can specify the language in the `DialogStateIn` message or within the Google Assistant app. The service supports speech recognition and responses in various languages, including German (de-DE), English (en-AU, en-CA, en-GB, en-IN, en-US), French (fr-CA, fr-FR), Italian (it-IT), Japanese (ja-JP), Spanish (es-ES, es-MX), Korean (ko-KR), and Portuguese (pt-BR).\n"],null,["# Language Support\n\nThe Google Assistant Service uses a speech recognition engine that can\nunderstand one of a wide variety of languages. These languages are\nspecified within a `DialogStateIn` message's `language_code` field or by using\nthe Google Assistant [app](/assistant/sdk/reference/assistant-app/assistant-settings).\n\nThe language code field consists of a\n[BCP-47](https://tools.ietf.org/html/bcp47) identifier. These tags are\ntypically of the form *language* -*region* , where *language* refers to\nthe primary language and *region* refers to the region (usually a\ncountry identifier) of the particular dialect. For example, English\nmay either be represented by American English (`en-US`), or British\nEnglish (`en-GB`).\n\nThe Google Assistant Service can recognize speech and respond back accordingly\nin the following languages.\n\n| Language | `language_code` | Language (English name) |\n|-------------------------|-----------------|--------------------------|\n| Deutsch (Deutschland) | de-DE | German (Germany) |\n| English (Australia) | en-AU | English (Australia) |\n| English (Canada) | en-CA | English (Canada) |\n| English (Great Britain) | en-GB | English (United Kingdom) |\n| English (India) | en-IN | English (India) |\n| English (United States) | en-US | English (United States) |\n| Français (Canada) | fr-CA | French (Canada) |\n| Français (France) | fr-FR | French (France) |\n| Italiano (Italia) | it-IT | Italian (Italy) |\n| 日本語(日本) | ja-JP | Japanese (Japan) |\n| Español (España) | es-ES | Spanish (Spain) |\n| Español (México) | es-MX | Spanish (Mexico) |\n| 한국어 (대한민국) | ko-KR | Korean (South Korea) |\n| Português (Brasil) | pt-BR | Portuguese (Brazil) |"]]