Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 1.47 KB

speechcue.md

File metadata and controls

30 lines (21 loc) · 1.47 KB
-api-id -api-type
T:Windows.Media.Core.SpeechCue
winrt class

Windows.Media.Core.SpeechCue

-description

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.

-remarks

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.

LabelDescription
SpeechBookmarkThe metadata track contains SSML bookmarks.
SpeechSentenceThe metadata track contains sentence boundaries.
SpeechWordThe metadata track contains word boundaries.

-see-also

-examples