hammerspoon2-docs
    Preparing search index...

    Function fromFile

    • Loads an audio file from the given path and returns a sound object. Returns null if the file cannot be loaded.

      Parameters

      • path: string

        The absolute path to an audio file (AIFF, WAV, MP3, CAF, etc.).

      Returns HSSound | null

      An HSSound object, or null on failure.