hammerspoon2-docs
    Preparing search index...

    Interface HSSpeechOptions

    How an utterance is spoken. Every field is optional; a speaker's own properties are used for any that are missing

    interface HSSpeechOptions {
        language?: string;
        pitch?: number;
        postDelay?: number;
        preDelay?: number;
        prefersAssistiveTechnologySettings?: boolean;
        rate?: number;
        voice?: string;
        volume?: number;
    }
    Index
    language?: string

    A BCP-47 language code, e.g. "fr-FR". Speaks with the system's default voice for that language. Ignored if voice is given

    pitch?: number

    The pitch multiplier, from 0.5 to 2.0. 1.0 is the normal pitch

    postDelay?: number

    Seconds to wait after speaking this utterance, before the next one

    preDelay?: number

    Seconds to wait before speaking this utterance

    prefersAssistiveTechnologySettings?: boolean

    Whether to speak with the settings of a running assistive technology, such as VoiceOver's voice and rate, instead of the other options. Has no effect when no assistive technology is running

    rate?: number

    The speaking rate, from 0.0 (slowest) to 1.0 (fastest). 0.5 is the normal rate

    voice?: string

    The identifier or name of a voice, e.g. "com.apple.voice.compact.en-US.Samantha" or "Samantha". See hs.speech.voices()

    volume?: number

    The volume, from 0.0 (silent) to 1.0 (full volume)