Array of available voices on the device. Can be used to locate available voices for different languages.
Executes the shell script.
An object containing optional configuration values.
OptionalautoClose?: booleanIf enabled, auto-close the speech interface and continue when audio is finished. Default: true
OptionalautoStart?: booleanIf enabled, auto-start the speech. Default: true
Optionalrate?: stringRate of speech, supported values "slow", "normal", "fast"
Optionalvoice?: 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
speechobject.Example
Note: Speech features are available only on iOS 18 and macOS 15 and greater.