Alexa.SpeechMark Interface

The SpeechMark interface describes timing data for synthesized speech, such as where a sentence or word starts and ends in the audio stream. For more details about speech marks, see Speech marks in the Amazon Polly Developer Guide.

Properties

end

end: string

The offset in bytes (not characters) of the object's end in the input text (not including viseme marks)


start

start: string

The offset in bytes (not characters) of the start of the object in the input text (not including viseme marks)


time

time: string

The timestamp in milliseconds from the beginning of the corresponding audio stream


type

type: string

The type of speech mark (sentence, word, viseme, or ssml)


value

value: string

This varies depending on the type of speech mark

SSML: SSML tag

word or sentence: a substring of the input text, as delimited by the start and end fields


Was this page helpful?

Last updated: Nov 20, 2026