Circle V2 API Docs
    Preparing search index...

    Function extensionForMimeType

    • Maps an audio MIME/content type (e.g. "audio/webm", "audio/mpeg; codecs=mp3") to a file extension. Pure and dependency-free so both the browser recorder (@repo/use-record-audio) and the server-side storage key builder (@repo/storage) can share one mapping. Defaults to "wav".

      Parameters

      • contentType: string

      Returns string