hammerspoon2-docs
    Preparing search index...

    Function speak

    • Queues text to be spoken by the shared speaker. Speech queued by earlier calls is spoken first.

      Parameters

      • text: string

        The text to speak.

      • Optionaloptions: HSSpeechOptions

        How to speak this text.

      Returns Promise<boolean>

      Resolves to true when the text has been spoken, or false if it was interrupted by stop(). Rejects if an option is invalid, such as an unknown voice

      Queued speech is spoken to the end even if you don't keep the returned Promise