ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
# Speech **版本:CSS3** 继承性:无 ### 语法: | 属性 | 取值 | 默认值 | |-----|-----|-----| | voice-volume | <number> | <percentage> | silent | x-soft | soft | medium | loud | x-loud | inherit | medium | | voice-balance | <number> | left | center | right | leftwards | rightwards | inherit | center | | speak | none | normal | spell-out | digits | literal-punctuation | no-punctuation | inherit | normal | | pause-before, pause-after | <time> | none | x-weak | weak | medium | strong | x-strong | inherit | implementation dependent | | pause | [ <'pause-before'> || <'pause-after'> ] | inherit | implementation dependent | | rest-before, rest-after | <time> | none | x-weak | weak | medium | strong | x-strong | inherit | implementation dependent | | rest | [ <'rest-before'> || <'rest-after'> ] | inherit | implementation dependent | | cue-before, cue-after | <uri> [<number> | <percentage> | silent | x-soft | soft | medium | loud | x-loud] | none | inherit | none | | cue | [ <'cue-before'> || <'cue-after'> ] | inherit | not defined for shorthand properties | | mark-before, mark-after | <string> | none | | mark | [ <'mark-before'> || <'mark-after'> ] | not defined for shorthand properties | | voice-family | [[<specific-voice> | [<age>] <generic-voice>] [<number>],]* [<specific-voice> | [<age>] <generic-voice>] [<number>] | inherit | implementation dependent | | voice-rate | <percentage> | x-slow | slow | medium | fast | x-fast | inherit | implementation dependent | | voice-pitch | <number> | <percentage> | x-low | low | medium | high | x-high | inherit | medium | | voice-pitch-range | <number> | x-low | low | medium | high | x-high | inherit | implementation dependent | | voice-stress | strong | moderate | none | reduced | inherit | moderate | | voice-duration | <time> | implementation dependent | | phonemes | <string> | implementation dependent | ### 说明: 规定哪一块可以让机器来阅读。 voice-volume:设置音量voice-balance:设置声音平衡speak:设置阅读类型pause-before, pause-after:设置暂停时的效果pause:设置暂停rest-before, rest-after:设置休止时的效果rest:设置休止cue-before, cue-after:设置提示时的效果cue:设置提示mark-before, mark-after:设置标注时的效果mark:设置标注voice-family:设置语系voice-rate:设置比率voice-pitch:设置音调voice-pitch-range:设置音调范围voice-stress:设置重音voice-duration:设置音乐持续时间phonemes:设置音位 ### 兼容性: <table><thead><tr><th class="type">类型</th> <th class="type_ie"><img src="https://box.kancloud.cn/2015-09-02_55e5d38a2b7d5.png" alt="IE" />Internet Explorer</th> <th class="type_firefox"><img src="https://box.kancloud.cn/2015-09-02_55e5d38a34786.png" alt="Firefox" />Firefox</th> <th class="type_chrome"><img src="https://box.kancloud.cn/2015-09-02_55e5d38a3b5a6.png" alt="Chrome" />Chrome</th> <th class="type_opera"><img src="https://box.kancloud.cn/2015-09-02_55e5d38a428c8.png" alt="Opera" />Opera</th> <th class="type_safari"><img src="https://box.kancloud.cn/2015-09-02_55e5d38a4c02e.png" alt="Safari" />Safari</th> </tr></thead><tbody><tr><td rowspan="4" class="version">版本</td> <td class="support no"><span>(×)</span>IE6</td> <td class="support no"><span>(×)</span>Firefox 2.0</td> <td class="support no"><span>(×)</span>Chrome 1.0.x</td> <td class="support yes"><span>(√)</span>Opera 9.63</td> <td class="support no"><span>(×)</span>Safari 3.1</td> </tr><tr><td class="support no"><span>(×)</span>IE7</td> <td class="support no"><span>(×)</span>Firefox 3.0</td> <td class="support no"><span>(×)</span>Chrome 2.0.x</td> <td></td> <td class="support no"><span>(×)</span>Safari 4</td> </tr><tr><td class="support no"><span>(×)</span>IE8</td> <td></td> <td></td> <td></td> <td></td> </tr><tr><td></td> <td></td> <td></td> <td></td> <td></td> </tr></tbody></table> ### 示例: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><meta http-equiv="Content-Language" content="utf-8" /><meta name="robots" content="all" /><meta name="author" content="Tencent-ISRD" /><meta name="Copyright" content="Tencent" /><title>Speech</title><style type="text/css">#speech-sample {voice-family: male;}#voice-volume { -xv-voice-volume: x-soft; -xv-voice-balance: right; }#voice-balance { -xv-voice-balance: left; }#speech-cue { cue-after: url(img/ding.wav); }#voice-rate { -xv-voice-rate: x-slow; }#voice-family { voice-family: female; }#voice-pitch { -xv-voice-pitch: x-low; }#speech-speak { speak: spell-out; }</style></head><body><div><div id="speech-sample" style="border: 1px solid #666; padding:5px; font-size:14px;">This is an example sentence styled with several CSS properties, including <span id="voice-volume">voice-volume,</span> <span id="voice-balance">voice-balance,</span> <span id="voice-rate">voice-rate,</span> <span id="voice-family">voice-family,</span> <span id="voice-pitch">voice-pitch,</span> <span id="speech-speak">speak</span> and <span id="speech-cue">cue-after.</span></div></div></body></html> 复制代码 Copyright © 2009 [Tencent ISD webteam](http://webteam.tencent.com/). All Rights Reserved ### 快速跳转 - [语法](# "跳转到“语法”") - [取值](# "跳转到“取值”") - [说明](# "跳转到“说明”") - [兼容性](# "跳转到“兼容性”") - [示例](# "跳转到“示例”")