这是
实验性技术
检查
浏览器兼容性表格
要小心谨慎在生产中使用这之前。
名称
只读特性在
SpeechSynthesisUtterance
interface returns the name associated with certain types of events occuring as the
SpeechSynthesisUtterance.text
is being spoken: the name of the
SSML
marker reached in the case of a
mark
event, or the type of boundary reached in the case of a
boundary
事件。
event.name;
A
DOMString
.
utterThis.onboundary = function(event) {
console.log(event.name + ' boundary reached after ' + event.elapsedTime + ' milliseconds.');
}
| 规范 | 状态 | 注释 |
|---|---|---|
|
Web 语音 API
The definition of 'name' in that specification. |
草案 |
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
名称
|
Chrome 33 | Edge 14 | Firefox 49 | IE 不支持 No | Opera 21 | Safari 7 | WebView Android 不支持 No | Chrome Android 33 | Firefox Android 62 | Opera Android 不支持 No | Safari iOS 7 | Samsung Internet Android 3.0 |
完整支持
不支持
实验。期望将来行为有所改变。
用户必须明确启用此特征。
SpeechSynthesisEvent