Use SSML to control voice characteristics such as speech rate, pitch, and volume, and LaTeX to read mathematical formulas in Chinese. Learn about supported models, usage limits, API examples, tags, and symbols.
Feature overview
SSML is an XML-based speech synthesis markup language. It sets voice characteristics such as voice, speech rate, pitch, and volume, controls pauses, specifies pronunciation and reading styles, and adds background music and sound effects. The CosyVoice LaTeX feature converts mathematical formulas in text into Chinese speech.
Use these features for audiobooks, customer service announcements, multilingual pronunciation, and online education. The following sections list the models, voices, and APIs for each feature. For model selection, see Speech synthesis.
Usage limits
- SSML
- LaTeX
-
Supported models:
qwen-audio-3.0-tts-flash,qwen-audio-3.0-tts-plus,cosyvoice-v3.5-flash,cosyvoice-v3.5-plus,cosyvoice-v3-flash,cosyvoice-v3-plus,cosyvoice-v2 - Voices: Only cloned voices and preset voices marked as SSML-compatible in CosyVoice Voice list are supported.
-
APIs:
- Java SDK (version 2.20.3 or later): non-streaming and unidirectional streaming calls
- Python SDK (version 1.23.4 or later): non-streaming and unidirectional streaming calls
- WebSocket API: set the
enable_ssmlparameter totrue, and send a single continue-task event
Usage
- SSML
- LaTeX
When using SSML, follow these rules:
- Enclose all text in
<speak></speak>. Multiple<speak>elements can appear in sequence, but cannot be nested. - Escape XML special characters inside tags:
"→",'→',&→&,<→<, and>→>.
Quick start
The example below uses SSML to control speech rate during synthesis. Before running the code, complete these prerequisites:- Obtain an API key
- Install the DashScope SDK (Python 1.23.4 or later, Java 2.20.3 or later). For details, see Install the SDK.
- Java SDK
- Python SDK
- WebSocket API
SSML tags
The implementation is based on the W3C SSML 1.0 specification. Only the tags listed below are supported.
<speak>: Root element
<speak> is the root element for all SSML content. All text must be enclosed within <speak></speak> tags.
- Attributes
- Examples
- Tag relationships
| Attribute | Type | Required | Description |
|---|---|---|---|
voice | String | No | Specifies the voice.This attribute takes precedence over the voice parameter in the API request.
|
rate | String | No | Specifies the speech rate. This attribute takes precedence over the speech_rate parameter in the API request.
|
pitch | String | No | Specifies the pitch. This attribute takes precedence over the pitch_rate parameter in the API request.
|
volume | String | No | Specifies the volume. This attribute takes precedence over the volume parameter in the API request.
|
effect | String | No | Specifies the audio effect.
|
effectValue | String | No | Configures the specific behavior of the audio effect (the effect parameter). Applies to three advanced effect types: eq, lpfilter, and hpfilter.
|
bgm | String | No | Adds background music to synthesized speech.Store the audio file in Alibaba Cloud OSS and make it accessible through an Internet URL. See Upload objects. For a private object, use a valid signed URL. Escape XML special characters in the URL, such as replacing & with &.
|
backgroundMusicVolume | String | No | Specifies the background music volume. Use this attribute together with the bgm attribute. |
<break>: Control pauses
Inserts a silent pause during speech synthesis to simulate natural pauses in conversation. Supports seconds (s) and milliseconds (ms) as time units.
- Attributes
- Examples
- Tag relationships
| Attribute | Type | Required | Description |
|---|---|---|---|
time | String | No | Specifies the pause duration, in seconds or milliseconds (for example, "2s" or "50ms").
<break> tags are used consecutively, the total pause duration is the sum of all individual durations. If the total exceeds 10 seconds, only the first 10 seconds are applied. |
<break> inserts a 1-second pause.<sub>: Substitute text
Replaces specified text with content that's more suitable for speech. For example, reads "W3C" as "World Wide Web Consortium."
- Attributes
- Examples
- Tag relationships
| Attribute | Type | Required | Description |
|---|---|---|---|
alias | String | Yes | Specifies the replacement text to be read aloud. |
<phoneme>: Specify pronunciation
Provides precise control over how text is pronounced. Chinese text supports pinyin notation, and English text supports CMU phonetic notation. This is useful for disambiguating polyphonic characters and handling foreign language pronunciation.
- Attributes
- Examples
- Tag relationships
| Attribute | Type | Required | Description |
|---|---|---|---|
alphabet | String | Yes | Specifies the pronunciation type: pinyin (for Chinese) or phonetic symbols (for English).Valid values:
|
ph | String | Yes | Specifies the exact pinyin or phonetic notation. Usage rules:
|
<soundEvent>: Insert a sound effect
Inserts a sound effect file (such as an alert tone or ambient sound) at a specific point in the speech to enrich the audio output.
- Attributes
- Examples
- Tag relationships
| Attribute | Type | Required | Description |
|---|---|---|---|
src | String | Yes | Specifies the URL of an external audio file.Store the audio file in Alibaba Cloud OSS and make it accessible through an Internet URL. See Upload objects. For a private object, use a valid signed URL. Escape XML special characters in the URL, such as replacing & with &.
|
<say-as>: Set text interpretation
Specifies the content type of text (such as numbers, dates, or phone numbers) so the system reads it according to the appropriate rules for that type.
- Attributes
- Examples
- Tag relationships
| Attribute | Type | Required | Description |
|---|---|---|---|
interpret-as | String | Yes | Specifies the content type of the text within the tag.Valid values:
|
View the supported say-as formats
View the supported say-as formats
cardinal
digits
telephone
address
id
characters
punctuation
date
time
currency
measure
Common symbols
Common units
- Chinese
- English
| Format | Example | Chinese output | Notes |
|---|---|---|---|
| Digit string | 145 | 一百四十五 | Positive and negative integers up to 20 digits: [-99999999999999999999,99999999999999999999]. Decimal places have no specific limit; 10 or fewer are recommended. |
| Minus sign+Digit string | -145 | 负一百四十五 | |
| Comma-separated groups of 3 digits | 10,000 | 一万 | |
| Minus sign+Comma-separated groups of 3 digits | -10,124 | 负一万一百二十四 | |
| Digit string+Decimal point+Two zeros | 10.00 | 十 | |
| Minus sign+Digit string+Decimal point+Two zeros | -110.00 | 负一百一十 | |
| Digit string+Decimal point+Digit string | 79.090 | 七十九点零九零 | |
| Minus sign+Digit string+Decimal point+Digit string | -79.001 | 负七十九点零零一 |
- Chinese
- English
| Format | Example | Chinese output | Notes |
|---|---|---|---|
| Digit string | 129090909 | 一二九零九零九零九 | Digit string length has no specific limit; 20 digits or fewer are recommended. A pause follows each digit when the string has more than 10 digits. |
- Chinese
- English
| Format | Example | Chinese output | Notes |
|---|---|---|---|
| Landline number | 4930286 | 四九三 零二八六 | Supports 7- or 8-digit landline numbers separated by spaces or hyphens (-). Group 7 digits as 3-4 and 8 digits as 4-4. |
| 493 0286 | 四九三 零二八六 | ||
| 493-0286 | 四九三 零二八六 | ||
| 62552560 | 六二五五 二五六零 | ||
| 6255 2560 | 六二五五 二五六零 | ||
| 6255-2560 | 六二五五 二五六零 | ||
| Landline number+Extension | 4930286-109 | 四九三 零二八六 转幺零九 | Supports 1- to 4-digit extensions. |
| 4930286转109 | 四九三 零二八六 转幺零九 | ||
| 4930286分机109 | 四九三 零二八六 分机幺零九 | ||
| 4930286分机号109 | 四九三 零二八六 分机号幺零九 | ||
| Area code+Landline number | 01062552560 | 零幺零 六二五五 二五六零 | Supported area codes: 010, 02x, 03xx, 04xx, 05xx, 07xx, 08xx, 09xx. |
| 010 62552560 | 零幺零 六二五五 二五六零 | ||
| 010 6255 2560 | 零幺零 六二五五 二五六零 | ||
| 010 6255-2560 | 零幺零 六二五五 二五六零 | ||
| 010-62552560 | 零幺零 六二五五 二五六零 | ||
| 010-6255-2560 | 零幺零 六二五五 二五六零 | ||
| (010)62552560 | 零幺零 六二五五 二五六零 | ||
| 03198907098 | 零三幺九 八九零 七零九八 | ||
| 0319-8907098 | 三幺九 八九零 七零九八 | ||
| Area code+Landline number+Extension | 010 62552560-109 | 零幺零 六二五五 二五六零 转幺零九 | None |
| 010-62552560-109 | 零幺零 六二五五 二五六零 转幺零九 | ||
| (010)62552560-109 | 零幺零 六二五五 二五六零 转幺零九 | ||
| (010)62552560转109 | 零幺零 六二五五 二五六零 转幺零九 | ||
| (010)62552560分机109 | 零幺零 六二五五 二五六零 分机幺零九 | ||
| (010)62552560分机号109 | 零幺零 六二五五 二五六零 分机号幺零九 | ||
| Country code+Area code+Landline number | 86-010-62791627 | 八六 零幺零 六二七九 幺六二七 | Country codes 86, (86), +86, (+86), and 0086 are all read as “八六” (eight six). |
| (86)10-62791627 | 八六 幺零 六二七九 幺六二七 | ||
| +86-010-62791627 | 八六 零幺零 六二七九 幺六二七 | ||
| 0086-10-62791627 | 八六 幺零 六二七九 幺六二七 | ||
| (+86)-10-6279 1627 | 八六 幺零 六二七九 幺六二七 | ||
| Country code+Area code+Landline number+Extension | (86)21-58118818-207 | 八六 二幺 五八幺幺 八八幺八 转二零七 | None |
| (86)021-5811-8818-207 | 八六 零二幺 五八幺幺 八八幺八 转二零七 | ||
| (86)021-58118818转207 | 八六 零二幺 五八幺幺 八八幺八 转二零七 | ||
| (86)21-5811-8818分机207 | 八六 二幺 五八幺幺 八八幺八 分机二零七 | ||
| +86-021-58118818分机号207 | 八六 零二幺 五八幺幺 八八幺八分机号二零七 | ||
| Mobile number | 139 0000 5678 | 幺三九 零零零零 五六七八 | Supports 11-digit mobile numbers grouped as 3-3-5 or 3-4-4. |
| 139-000-05678 | 幺三九 零零零 零五六七八 | ||
| 139 000 05678 | 幺三九 零零零 零五六七八 | ||
| Country code+Mobile number | +86-13900005678 | 八六 幺三九 零零零零 五六七八 | None |
| (+86)-139-0000-5678 | 八六 幺三九 零零零零 五六七八 | ||
| +8613900005678 | 八六 幺三九 零零零零 五六七八 | ||
| 0086-139 000 05678 | 八六 幺三九 零零零 零五六七八 | ||
| Service number | 123 | 幺二三 | Supports common service numbers, 10-digit numbers starting with 400/800 grouped as 3-3-4, and 16-digit numbers starting with 12530/17951/12593. |
| 95678 | 九五六七八 | ||
| 4008110510 | 四零零 八幺幺 零五幺零 | ||
| 800-810-8888 | 八零零 八幺零 八八八八 | ||
| 1253013520638377 | 幺二五三零 幺三五 二零六三 八三七七 | ||
| Other | (86)(21)9899-80800-0909 | 八六 二幺 九八九九 八零八零零 零九零九 | Supports digit strings with separators (parentheses or hyphens). |
- Chinese
- English
| Format | Example | Chinese output | Notes |
|---|---|---|---|
| Common address format | 元和镇嘉元30-9 | 元和镇嘉元三十杠九 | Supports common address formats. An address here means a standard postal address. |
| 市台路388弄1107-1108号 | 市台路三八八弄幺幺零七杠幺幺零八号 | ||
| 华润二十四城六期锦云府3-1-3205 | 华润二十四城六期锦云府三杠一杠三二零五 | ||
| 圣华名都大厦2幢2006室 | 圣华名都大厦二幢二零零六室 | ||
| 五常街道庭院5幢4单元201 | 五常街道庭院五幢四单元二零幺 | ||
| 芙蓉江路150弄19号 | 芙蓉江路幺五零弄十九号 |
- Chinese
- English
| Format | Example | Chinese output | Notes |
|---|---|---|---|
| String | dell0101 | D E L L 零 一 零 一 | Supports uppercase and lowercase English letters, digits 0-9, and underscores. Spaces in the output indicate pauses between individually read characters. |
| myid_1998 | M Y I D 下划线 一 九 九 八 | ||
| AiTest | A I T E S T |
- Chinese
- English
| Format | Example | Chinese output | Notes |
|---|---|---|---|
| String | ISBN 1-001-099098-1 | I S B N 一 杠 零 零 一 杠 零 九 九 零 九 八 杠 一 | Supports Chinese characters, uppercase and lowercase English letters, digits 0-9, and some full-width and half-width characters. Spaces indicate pauses between individually read characters. Escape XML special characters in the text. |
| x10b2345_u | x 一 零 b 二 三 四 五 下划线 u | ||
| v1.0.1 | v 一 点 零 点 一 | ||
| 版本号2.0 | 版本号二 点 零 | ||
| 苏M MA000 | 苏M M A 零 零 零 | ||
| 空中客车A330 | 空中客车A 三 三 零 | ||
| 型号s01 s02和s03 | 型号s 零 一 s 零二 和s 零 三 | ||
| 空中客车A330 | 空中客车A 三 三 零 | ||
| αβγ | 阿尔法 贝塔 伽玛 |
- Chinese
- English
| Format | Example | Chinese output | Notes |
|---|---|---|---|
| Punctuation | … | 省略号 | Supports common Chinese and English punctuation. Spaces indicate pauses between individually read characters. Escape XML special characters in the text. |
| …… | 省略号 | ||
| !"#$%& | 叹号 双引号 井号 dollar 百分号 and | ||
| ‘()*+ | 单引号 左括号 右括号 星号 加号 | ||
| ,-./:; | 逗号 杠 点 斜杠 冒号 分号 | ||
| <=>?@ | 小于 等号 大于 问号 at | ||
| [\]^_ | 左方括号 反斜线 右方括号 脱字符 下划线 |
- Chinese
- English
| Format | Example | Chinese output | Notes |
|---|---|---|---|
| xx年 | 71年 | 七一年 | Supports 2-digit years in 60-99, 00-09, and 10-19, and 4-digit years in 1000-1999 and 2000-2099. |
| 04年 | 零四年 | ||
| 19年 | 一九年 | ||
| 1011年 | 一零一一年 | ||
| 1998年 | 一九九八年 | ||
| 2008年 | 二零零八年 | ||
| xx年xx月 | 98年4月 | 九八年四月 | Months 1-9 can have a leading zero or omit it, for example “1908年4月” and “1908年04月”. |
| 1998年04月 | 一九九八年四月 | ||
| 08年8月 | 零八年八月 | ||
| 2008年8月 | 二零零八年八月 | ||
| xx年xx月xx日xx年xx月xx号 | 98年4月23日 | 九八年四月二十三日 | Days 1-9 can have a leading zero or omit it, for example “1908年4月8日” and “1908年04月08日”. |
| 1998年04月23日 | 一九九八年四月二十三日 | ||
| 08年8月8号 | 零八年八月八号 | ||
| 2008年08月08号 | 二零零八年八月八号 | ||
| xx年xx月xx日xx年xx月xx号 | 98年4月23日 | 九八年四月二十三日 | Days 1-9 can have a leading zero or omit it, for example “1908年4月8日” and “1908年04月08日”. |
| 1998年04月23日 | 一九九八年四月二十三日 | ||
| 08年8月8号 | 零八年八月八号 | ||
| 2008年08月08号 | 二零零八年八月八号 | ||
| xx月xx号 | 3月20日 | 三月二十日 | None |
| 08月07号 | 八月七号 | ||
| Year/month abbreviation | 2018/08 | 二零一八年八月 | Supports /, -, and . as separators. |
| 2018-08 | 二零一八年八月 | ||
| 2018.08 | 二零一八年八月 | ||
| Year/month/day abbreviation | 2018/08/08 | 二零一八年八月八日 | |
| 2018-8-8 | 二零一八年八月八日 | ||
| 2018.08.08 | 二零一八年八月八日 | ||
| xx年xx月xx日~xx年xx月xx日xx年xx月xx号~xx年xx月xx号 | 04年9月1日~30日 | 零四年九月一日至三十日 | Supports ~ and - to indicate “to”. |
| 2004年09月01号-2008年06月08号 | 二零零四年九月一号至二零零八年六月八号 | ||
| xx年xx月xx日~xx日xx年xx月xx号~xx号 | 04年9月1日~30日 | 零四年九月一日至三十日 | |
| 2004年09月01号-2008年06月08号 | 二零零四年九月一号至二零零八年六月八号 | ||
| xx年xx月~xx年xx月 | 01年04月~10年04月 | 零一年四月至一零年四月 | |
| 2001年04月~2010年04月 | 二零零一年四月至二零一零年四月 | ||
| xx月xx日~xx月xx日xx月xx号~xx月xx号 | 10月1日~10月7日 | 十月一日至十月七日 | |
| 10月01号~10月07号 | 十月一号至十月七号 | ||
| xx月xx日~xx日xx月xx号~xx号 | 10月1日~7日 | 十月一日至七日 | |
| 10月01号~07号 | 十月一号至七号 | ||
| Year/month/day abbreviation~Year/month/day abbreviation | 2018/03/03~2019/01/01 | 二零一八年三月三日至二零一九年一月一日 | Supports / and . as separators, and ~ and - to indicate “to”. |
| 1997.9.9~1998.9.9 | 一九九七年九月九日至一九九八年九月九日 | ||
| Month/day abbreviation~Month/day abbreviation | 10/20~10/31 | 十月二十日至十月三十一日 | |
| xx~xx月xx月~xx月 | 1~10月 | 一至十月 | |
| 1月~10月 | 一月至十月 | ||
| Month/day/year abbreviation | 10/20/2018 | 二零一八年十月二十日 | Only 4-digit years, / separators, and month/day/year order are supported. |
- Chinese
- English
| Format | Example | Chinese output | Notes |
|---|---|---|---|
| Time | 12:00 | 十二点 | Supports common time and time range formats. |
| 12:00:00点 | 十二点 | ||
| 10:20分 | 十点二十分 | ||
| 10:20:30 | 十点二十分三十秒 | ||
| 09:18:14 | 九点十八分十四秒 | ||
| Time~Time | 11:00~12:00 | 十一点到十二点 | |
| 09:00-14:00 | 九点到十四点 | ||
| 11:00~11:30 | 十一点到十一点三十分 | ||
| 11:00-12:18 | 十一点到十二点十八分 | ||
| 10:30~11:00 | 十点三十分到十一点 | ||
| 09:28-10:00 | 九点二十八分到十点 | ||
| 10:20~11:20 | 十点二十分到十一点二十分 | ||
| 06:00~08:00 | 六点到八点 | ||
| 上午10:20~下午13:30 | 上午十点二十分到下午十三点三十分 | ||
| Time abbreviation | 5:00 am | 凌晨五点整 | |
| 5:30 am | 凌晨五点半 | ||
| 5:20:12 am | 凌晨五点二十分十二秒 | ||
| 7:00 am | 上午七点整 | ||
| 7:30 AM | 上午七点半 | ||
| 7:20:12 a.m. | 上午七点二十分十二秒 | ||
| 07:08:12 A.M. | 上午七点零八分十二秒 | ||
| 5:00 pm | 下午五点整 | ||
| 5:30 PM | 下午五点半 | ||
| 5:20:12 p.m. | 下午五点二十分十二秒 | ||
| 05:09:12 P.M. | 下午五点零九分十二秒 | ||
| 9:00 pm | 晚上九点整 | ||
| 9:30 pm | 晚上九点半 | ||
| 9:20:12 PM | 晚上九点二十分十二秒 | ||
| 9:02:12 P.M. | 晚上九点零二分十二秒 | ||
| 12:00 pm | 中午十二点整 | ||
| 12:30 p.m. | 中午十二点半 | ||
| 12:20:12 PM | 中午十二点二十分十二秒 |
- Chinese
- English
| Format | Example | Chinese output | Notes |
|---|---|---|---|
| Number+Currency identifier | 12.00 RMB | 十二人民币 | Supports AUD (Australian dollar), CAD (Canadian dollar), HKD (Hong Kong dollar), JPY (Japanese yen), USD (US dollar), CHF (Swiss franc), NOK (Norwegian krone), SEK (Swedish krona), GBP (British pound), RMB (renminbi), CNY (yuan), and EUR (euro). Numbers can be integers, decimals, or comma-separated international notation. |
| 12.50 RMB | 十二点五零人民币 | ||
| 12,000,000 RMB | 一千二百万人民币 | ||
| 12,000,000.00 RMB | 一千二百万人民币 | ||
| 12,000.35 RMB | 一万两千点三五人民币 | ||
| Currency identifier+Number | $12 | 十二美元 | Supports CAD (Canadian dollar), $ (US dollar), Fr (franc), kr (Danish krone), £ (British pound), ¥ (yuan), and € (euro). Numbers can be integers, decimals, or comma-separated international notation. |
| $12.00 | 十二美元 | ||
| $12.12 | 二点一二美元 | ||
| $12,000 | 一万两千美元 | ||
| $12,000.00 | 一万两千美元 | ||
| $12,000.99 | 一万两千点九九美元 | ||
| Other default readings | 1213 | 一千二百一十三 | None |
| 1213 KML | 一千二百一十三K M L | ||
| 1213.00 KML | 一千二百一十三K M L | ||
| 1213.9 KML | 一千二百一十三点九K M L | ||
| 1,000 KML | 一千K M L | ||
| 1,000.00 KML | 一千K M L | ||
| 1,000.98 KML | 一千点九八K M L | ||
| 12,000 | 一万两千 |
- Chinese
- English
| Format | Example | Chinese output | Notes |
|---|---|---|---|
| Number+Chinese unit | 2片 | 两片 | Supports common Chinese units and unit abbreviations. |
| 120公顷 | 一百二十公顷 | ||
| 100多毫克 | 一百多毫克 | ||
| 100来米 | 一百来米 | ||
| 100余人 | 一百余人 | ||
| 1厘米20毫米 | 一厘米二十毫米 | ||
| 120.00平方公里 | 一百二十平方公里 | ||
| Number+Unit abbreviation | 120.56 cm² | 一百二十点五六平方厘米 | |
| 120 ㎡ 56 cm² | 一百二十平方米五十六平方厘米 | ||
| 100 m 12 cm 6 mm | 一百米十二厘米六毫米 | ||
| Range | 10~15 kg | 十至十五千克 | |
| 10.24~789.82亩 | 十点二四至七百八十九点八二亩 | ||
| 10米~15米 | 十米至十五米 | ||
| 10.24 cm~19.08 cm | 十点二四厘米至十九点零八厘米 | ||
| Number+Unit+"/"+Unit | 10元/斤 | 十元每斤 | |
| 199~299元/件 | 一百九十九至二百九十九元每件 | ||
| 299.99元/g~399.99元/g | 二百九十九点九九元每克至三百九十九点九九元每克 | ||
| Other default readings | 12扎 | 十二扎 | |
| 30 rm | 三十r m | ||
| 4万万同胞 | 四万万同胞 | ||
| 12.897微克 | 十二点八九七微克 |
| Symbol | Chinese reading | English reading |
|---|---|---|
| ! | 叹号 | exclamation mark |
| “ | 双引号 | double quote |
| # | 井号 | pound |
| $ | dollar | dollar |
| % | 百分号 | percent |
| & | and | and |
| ‘ | 单引号 | left quote |
| ( | 左括号 | left parenthesis |
| ) | 右括号 | right parenthesis |
| * | 星 | asterisk |
| + | 加 | plus |
| , | 逗号 | comma |
| - | 杠 | dash |
| . | 点 | dot |
| / | 斜杠 | slash |
| : | 零冒号 | solon |
| ; | 分号 | semicolon |
| < | 小于 | less than |
| = | 等号 | equals |
| > | 大于 | greater than |
| ? | 问号 | question mark |
| @ | at | at |
| [ | 左方括号 | left bracket |
| \ | 反斜线 | back slash |
| ] | 右方括号 | right bracket |
| ^ | 脱字符 | caret |
| _ | 下划线 | underscore |
| ` | 反引号 | back quote |
| { | 左花括号 | left brace |
| | | 竖线 | vertical bar |
| } | 右花括号 | right brace |
| ~ | 波浪线 | tilde |
| ! | 叹号 | exclamation mark |
| “ | 左双引号 | left double quote |
| ” | 右双引号 | right double qute |
| ‘ | 左单引号 | left quote |
| ’ | 右单引号 | right quote |
| ( | 左括号 | left parenthesis |
| ) | 右括号 | right parenthesis |
| , | 逗号 | comma |
| 。 | 句号 | full stop |
| — | 杠 | em dash |
| : | 冒号 | colon |
| ; | 分号 | semicolon |
| ? | 问号 | question mark |
| 、 | 顿号 | enumeration comma |
| … | 省略号 | ellipsis |
| …… | 省略号 | ellipsis |
| 《 | 左书名号 | left guillemet |
| 》 | 右书名号 | right guillemet |
| ¥ | 人民币符号 | yuan |
| ≥ | 大于等于 | greater than or equal to |
| ≤ | 小于等于 | less than or equal to |
| ≠ | 不等于 | not equal |
| ≈ | 约等于 | approximately equal |
| ± | 加减 | plus or minus |
| × | 乘 | times |
| π | 派 | pi |
| Α | 阿尔法 | alpha |
| Β | 贝塔 | beta |
| Γ | 伽玛 | gamma |
| Δ | 德尔塔 | delta |
| Ε | 艾普西龙 | epsilon |
| Ζ | 捷塔 | zeta |
| Θ | 西塔 | theta |
| Ι | 艾欧塔 | iota |
| Κ | 喀帕 | kappa |
| ∧ | 拉姆达 | lambda |
| Μ | 缪 | mu |
| Ν | 拗 | nu |
| Ξ | 克西 | ksi |
| Ο | 欧麦克轮 | omicron |
| ∏ | 派 | pi |
| Ρ | 柔 | rho |
| ∑ | 西格玛 | sigma |
| Τ | 套 | tau |
| Υ | 宇普西龙 | upsilon |
| Φ | fai | phi |
| Χ | 器 | chi |
| Ψ | 普赛 | psi |
| Ω | 欧米伽 | omega |
| α | 阿尔法 | alpha |
| β | 贝塔 | beta |
| γ | 伽玛 | gamma |
| δ | 德尔塔 | delta |
| ε | 艾普西龙 | epsilon |
| ζ | 捷塔 | zeta |
| η | 依塔 | eta |
| θ | 西塔 | theta |
| ι | 艾欧塔 | iota |
| κ | 喀帕 | kappa |
| λ | 拉姆达 | lambda |
| μ | 缪 | mu |
| ν | 拗 | nu |
| ξ | 克西 | ksi |
| ο | 欧麦克轮 | omicron |
| π | 派 | pi |
| ρ | 柔 | rho |
| σ | 西格玛 | sigma |
| τ | 套 | tau |
| υ | 宇普西龙 | upsilon |
| φ | fai | phi |
| χ | 器 | chi |
| ψ | 普赛 | psi |
| ω | 欧米伽 | omega |
| Format | Category | Chinese examples | English examples |
|---|---|---|---|
| Abbreviation | Length | nm(纳米)、μm(微米)、 mm(毫米)、cm(厘米)、m(米)、km(千米)、ft(英尺)、in(英寸) | nm (nanometre), μm (micrometre), mm (millimetre), cm (centimetre), m (metre), km (kilometre), ft (foot), in (inch) |
| Area | cm²(平方厘米)、㎡(平方米)、km²(平方千米)、SqFt(平方英尺) | cm² (square centimetre), ㎡ (square metre), km2 (square kilometre), SqFt (square foot) | |
| Volume | cm³(立方厘米)、m³(立方米)、km³(立方千米)、mL(毫升)、L(升)、gallon(加仑) | cm³ (cubic centimetre), m³ (cubic metre), km3 (cubic kilometre), mL (millilitre), L (millilitre), gal (gallon) | |
| Weight | μg(微克)、mg(毫克)、g(克)、kg(千克) | μg (microgram), mg (microgram), g (gram), kg (kilogram) | |
| Time | min(分)、sec(秒)、ms(毫秒) | min (minute), sec (second), ms (millisecond) | |
| Electromagnetism | μA(微安)、mA(毫安)、Ω(欧姆)、Hz(赫兹)、kHz(千赫兹)、MHz(兆赫兹)、GHz(吉赫兹)、V(伏)、kV(千伏)、kWh(千瓦时) | μA (microamp), mA (milliamp), Hz (hertz), kHz (kilohertz), MHz (megahertz), GHz (gigahertz), V (volt), kV (kilovolt), kWh (kilowatt hour) | |
| Sound | dB(分贝) | dB (decibel) | |
| Pressure | Pa(帕)、kPa(千帕)、Mpa(兆帕) | Pa (pascal), kPa (kilopascal), MPa (megapascal) | |
| Other common units | Also supports Chinese units beyond these categories, such as “米”, “秒”, “美元”, and “毫升每瓶”, and Chinese measure words such as “架”, “场”, “头”, “部”, and “盆”. | Also supports other units, such as tsp (teaspoon), rpm (round per minute), KB (kilobyte), and mmHg (millimetre of mercury). | |
LaTeX tags and symbols
Select a category to view supported tags and symbols. Input text examples include delimiters. Example readings remain in Chinese because this feature produces Chinese speech.
Basic mathematics
| Tag or symbol | Meaning | Formula source example | Input text example | Example reading |
|---|---|---|---|---|
+ | Addition | 2 + 3 = 5 | $2 + 3 = 5$ | 二加三等于五 |
- | Subtraction | 3 - 2 = 1 | $3 - 2 = 1$ | 三减二等于一 |
\pm | Plus or minus | \pm 1 \pm 2 | $\pm 1\pm 2$ | 正负一加减二 |
| Positive or negative | ||||
\times | Multiplication | 2 \times 3 = 6 | $2 \times 3 = 6$ | 二乘三等于六 |
× | 2 × 3 = 6 | $$2 × 3 = 6$$ | ||
* | 2 * 3 = 6 | \(2 * 3 = 6\) | ||
\div | Division | 6\div2=3 | \[6\div2=3\] | 六除二等于三 |
÷ | 6÷2=3 | $6÷2=3$ | ||
/ | 6/2=3 | $6/2=3$ | ||
= | Equals | 3+5=8 | $3+5=8$ | 三加五等于八 |
< | Less than | 1< 2 | $1< 2$ | 一小于二 |
≤ | Less than or equal to | 3≤5 | $3≤5$ | 三小于等于五 |
<= | 3<=5 | $3<=5$ | ||
\leq | 3\leq5 | $3\leq 5$ | ||
\le | 3\le5 | $3\le 5$ | ||
\leqq | 3\leqq5 | $3\leqq 5$ | ||
\leqslant | 3\leqslant5 | $3\leqslant 5$ | ||
> | Greater than | 2>1 | $2>1$ | 二大于一 |
≥ | Greater than or equal to | 5≥3 | $5≥3$ | 五大于等于三 |
>= | 5>=3 | $5>=3$ | ||
\geq | 5\geq3 | $5\geq 3$ | ||
\ge | 5\ge3 | $5\ge 3$ | ||
\geqq | 5\geqq3 | $5\geqq 3$ | ||
\geqslant | 5\geqslant3 | $5\geqslant 3$ | ||
\frac | Fraction | 2\frac3 | $\frac {2}{3}$ | 三分之二 |
^ | Power | 2^1 | $2^{1}$ | 二的一次方 |
\sqrt | Root | \sqrt{9} = 3 | $\sqrt {9} = 3$ | 根号下九等于三 |
\sqrt[3]{8} = 2 | $\sqrt[3]{8} = 2$ | 三次根号下八等于二 | ||
\% | Percentage | 5\% | $5\%$ | 百分之五 |
| | Absolute value | ∣3∣=3 | $|3| =3$ | 绝对值三的绝对值等于三 |
\vert | 3\vert=3 | $\vert 3\vert =3$ | 绝对值三绝对值等于三 | |
\lg | Logarithm | lg {10} | $\lg {10}$ | log十 |
\log | Logarithm | \log{5} | $\log{5}$ | log五 |
\ln | Natural logarithm | \lnX | $ln {10}$ | LN十 |
! | Factorial | 5! | $5!$ | 五的阶乘 |
() | Brackets | (2+1) | $(2+1)$ | 括号内二加一 |
\{ \} | $\{2+1\}$ | 大括号二加一反大括号 |
Special mathematical symbols
| Tag or symbol | Meaning | Formula source example | Input text example | Example reading |
|---|---|---|---|---|
\alpha | alpha | \alpha | $\alpha$ | α |
\Alpha | \Alpha | $\Alpha$ | ||
\beta | beta | \beta | $\beta$ | β |
\Beta | \Beta | $\Beta$ | ||
\gamma | gamma | \gamma | $\gamma$ | γ |
\Gamma | \Gamma | $\Gamma$ | ||
\delta | delta | \delta | $\delta$ | Δ |
\Delta | \Delta | $\Delta$ | ||
\infty | Infinity (Chinese) | \infty | $\infty$ | 无穷大 |
∞ | infty (English) | ∞ | $∞$ |
Geometry
| Tag or symbol | Meaning | Formula source example | Input text example | Example reading |
|---|---|---|---|---|
\pi | Pi | \pi=3.14159 | $\pi =3.14159$ | 派等于三点一四一五九 |
\sin (sine) | Trigonometric function | \sin 30^\circ =\frac {1}{2} | $\sin 30^\circ =\frac {1}{2}$ | sine三十度等于二分之一 |
\cos (cosine) | \cos 45^\circ =\frac {\sqrt {2}}{2} | $\cos 45^\circ =\frac {\sqrt {2}}{2}$ | cosine四十五度等于二分之根号下二 | |
\tan (tangent) | \tan 30^\circ =\frac {\sin 30^\circ}{\cos 30^\circ} | $\tan 30^\circ =\frac {\sin 30^\circ}{\cos 30^\circ}$ | tangent三十度等于cosine三十度分之sine三十度 | |
\csc (cosecant) | \csc A | $\csc A$ | cosecant A | |
\sec (secant) | \sec A | $\sec A$ | secant A | |
\cot (cotangent) | \cot A | $\cot A$ | cotangent A | |
\angle | Angle | \angle AB | $\angle AB$ | 角A B |
∠ | ∠AB | $∠AB$ | ||
^\circ | Degree | ∠AB = 30^\circ | $∠AB = 30^\circ$ | 角A B 等于三十度 |
\odot | Circle | \odot | $\odot$ | 圆 |
\overset\frown | Arc | \overset\frown {BC} | $\overset\frown {BC}$ | 弧BC |
\rm{Rt} | Right angle | \because \rm{Rt}\triangle ABC | $\because \rm{Rt}\triangle ABC$ | 因为直角三角形ABC |
\mathrm{Rt} | \therefore AB \perp BC | $\therefore AB \perp BC$ | 所以AB垂直于BC | |
\triangle | Triangle | \triangleABC | $\triangle ABC$ | 三角形ABC |
△ | △ABC | $△ABC$ | ||
\parallelogram | Parallelogram | \parallelogramABCD | $\parallelogram ABCD$ | 平行四边形ABCD |
\perp | Perpendicular | AB \perp BC | $AB \perp BC$ | A B 垂直于 B C |
\bot | AB \bot BC | $AB \bot BC$ | ||
⊥ | AB ⊥ BC | $AB ⊥ BC$ | ||
\parallel | Parallel | A\parallel B | $A\parallel B$ | A平行于B |
\equalparallel | Parallel and equal | A\equalparallel B | $A\equalparallel B$ | A平行且相等于B |
\cong | Congruent | △ABC\cong△DEF | $△ABC\cong△DEF$ | 三角形ABC全等于三角形DEF |
Conditions
| Tag or symbol | Meaning | Formula source example | Input text example | Example reading |
|---|---|---|---|---|
\implies | Implies | \implies 1+1=2 | $\implies 1+1=2$ | 推出一加一等于二 |
\iff | Equivalent | p\iffq | $p\iffq$ | p等价q |
\because | Because | \because a = b \therefore b=a | $\because a = b \therefore b=a$ | 因为a等于b所以b等于a |
\therefore | Therefore |
Units
Wrap units in \unit, \quantity, \mathit, \mathrm, or \rm, for example \unit{cm}.
| Tag or symbol | Meaning | Formula source example | Input text example | Example reading |
|---|---|---|---|---|
mm | Millimetre | 5\quantity{mm} | $5\quantity{mm}$ | 五毫米 |
cm | Centimetre | 5\quantity{cm} | $5\quantity{cm}$ | 五厘米 |
dm | Decimetre | 5\quantity{dm} | $5\quantity{dm}$ | 五分米 |
m | Metre | 5\quantity{m} | $5\quantity{m}$ | 五米 |
km | Kilometre | 5\quantity{km} | $5\quantity{km}$ | 五千米 |
g | Gram | 5\quantity{g} | $5\quantity{g}$ | 五克 |
kg | Kilogram | 5\quantity{kg} | $5\quantity{kg}$ | 五千克 |
t | Tonne | 5\quantity{t} | $5\quantity{t}$ | 五吨 |
mm^2 | Square millimetre | 5\quantity{mm^2} | $5\quantity{mm^2}$ | 五平方毫米 |
cm^2 | Square centimetre | 5\quantity{cm^2} | $5\quantity{cm^2}$ | 五平方厘米 |
dm^2 | Square decimetre | 5\quantity{dm^2} | $5\quantity{dm^2}$ | 五平方分米 |
m^2 | Square metre | 5\quantity{m^2} | $5\quantity{m^2}$ | 五平方米 |
km^2 | Square kilometre | 5\quantity{km^2} | $5\quantity{km^2}$ | 五平方千米 |
mm^3 | Cubic millimetre | 5\quantity{mm^3} | $5\quantity{mm^3}$ | 五立方毫米 |
cm^3 | Cubic centimetre | 5\quantity{cm^3} | $5\quantity{cm^3}$ | 五立方厘米 |
dm^3 | Cubic decimetre | 5\quantity{dm^3} | $5\quantity{dm^3}$ | 五立方分米 |
m^3 | Cubic metre | 5\quantity{m^3} | $5\quantity{m^3}$ | 五立方米 |
km^3 | Cubic kilometre | 5\quantity{km^3} | $5\quantity{km^3}$ | 五立方千米 |
ml | Millilitre | 5\quantity{ml} | $5\quantity{ml}$ | 五毫升 |
s | Second | 5\quantity{s} | $5\quantity{s}$ | 五秒 |
min | Minute | 5\quantity{min} | $5\quantity{min}$ | 五分 |
h | Hour | 5\quantity{h} | $5\quantity{h}$ | 五小时 |
km/h | Kilometres per hour | 5\quantity{km/h} | $5\quantity{km/h}$ | 五千米每小时 |
g/l | Grams per litre | 5\quantity{g/l} | $5\quantity{g/l}$ | 五克每升 |
FAQ
Why is a formula not read correctly?
- Check that the formula is enclosed in
$...$,$$...$$,\(...\), or\[...\]. - Check for unsupported tags or symbols.
- Check that each
\is escaped as\\in the request string.
How do I handle backslashes in code?
See the escaping instructions under Usage. Formula source and code strings use different notation: write \frac as \\frac in a regular string.