GO-Ve01
ServicesDevelopersBooksDictionaryPapersWikidataEncyclopediaSearchBabelCareersDeck

SpeechSynthesisEvent: name property

Web Speech API

Web Speech API

The **`name`** read-only property of the SpeechSynthesisUtterance interface returns the name associated with certain types of events occurring as the SpeechSynthesisUtterance.text is being spoken:
the name of the [SSML](https://www.w3.org/TR/speech-synthesis/#S3.3.2) marker reached in the case of a mark event, or the type of boundary reached in the case of a boundary event.

## Value

A string.

## Examples

```js
utterThis.onboundary = (event) => {
console.log(
`${event.name} boundary reached after ${event.elapsedTime} seconds.`,
);
};
```

## Specifications

## Browser compatibility

## See also

- [Web Speech API](/docs/Web/API/Web_Speech_API)

source: MDN Web Docs mirror · page

Cite this

"SpeechSynthesisEvent: name property". MDN Web Docs. CC BY-SA 2.5 (MDN). https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisEvent/name

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy

Save to pass ·