-api-id | -api-type |
---|---|
T:Windows.Media.Core.SpeechCue |
winrt class |
Represents a speech cue that can be included in a TimedMetadataTrack. This cue can be used to receive events based on metadata included in a text-to-speech (TTS) stream, such as word boundaries, sentence boundaries, and Speech Sythesis Markup Language (SSML) bookmarks.
A SpeechCue can be added to a TimedMetadataTrack with the AddCue method. When the cue's start time is reached, the CueEntered event is raised and you can use the MediaCueEventArgs passed into the handler to get a copy of the SpeechCue.
The SpeechSynthesizer class generates metadata that uses the following values for the TimedMetataTrack.Label in order to identify the type of speech metadata included in a track.
Label | Description |
---|---|
SpeechBookmark | The metadata track contains SSML bookmarks. |
SpeechSentence | The metadata track contains sentence boundaries. |
SpeechWord | The metadata track contains word boundaries. |