Array of available voices on the device. Can be used to locate available voices for different languages.
Executes the shell script.
Optional
autoIf enabled, auto-close the speech interface and continue when audio is finished. Default: true
Optional
autoIf enabled, auto-start the speech. Default: true
Optional
rate?: stringRate of speech, supported values "slow", "normal", "fast"
Optional
voice?: SpeechVoiceA voice to pre-select. Optional, and defaults to user's last selected voice.
true
if the script was executed without error, false
if not.
List voices available for a specific language/locale.
BCP 47 style locale identifier for the language to filter voices by, similar to en-US
(US English) or it-IT
(Italian Italian).
Array of available voices of the specified locale.
Supports text-to-speech operations to read aloud text content using system speech synthesis APIs. Speech objects cannot be instantiated, but are accessed via a single global
speech
object.Example
Note: Speech features are available only on iOS 18 and macOS 15 and greater.