hammerspoon2-docs
    Preparing search index...

    Function voices

    • The text-to-speech voices installed on this Mac, sorted by language and name. The user's Personal Voices are only included once hs.permissions.requestPersonalVoice() has been granted.

      Parameters

      • Optionallanguage: string | null

        A BCP-47 language code, or a language prefix such as "en", to list only the voices for that language.

      Returns HSSpeechVoice[]

      The installed voices.