Skip to content

DictationTranscriber has no method for /v1/transcribe (20 min, MP3/M4A/WebM) #301

Open

Description

@YashasviThakur

Docs ("Using the HTTP API directly") describe two endpoints. DictationTranscriber.transcribe_live() always posts to /v1/transcribe/live (WAV or raw PCM, 120 s max). /v1/transcribe (up to 20 minutes, 256 MB, and AAC/MP3/M4A/Ogg/FLAC/WebM) is marked "HTTP only".

That leaves Python developers without SDK support for common real-world inputs:

  • Audio uploaded from a browser MediaRecorder (WebM/Opus or MP4/AAC) has to be decoded to WAV server-side before transcribe_live, or posted by hand.
  • Phone voice memos are M4A.
  • Anything over 120 s has to be hand-rolled.

I verified /v1/transcribe accepts MP3 and WebM (200) and that /live rejects MP3 with a clear 415 pointing at /v1/transcribe.

Ask: add DictationTranscriber.transcribe(audio, config) (and the async counterpart): buffered, compressed formats, 20 min, reusing DictationConfig validation and final_text. A helper for the documented "start on /live, fall back when it answers 413" pattern would be a nice follow-up. The Node SDK has the same gap.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions