Skip to content

Transcribe --show-code treats piped audio as a file named - #284

Backlog

Description

@zkasuran

assembly transcribe - accepts audio on stdin, but the script emitted by --show-code treats - as a filename.

assembly transcribe - --show-code -o text > transcribe_stdin.py

On a4a7760, the generated script calls transcriber.transcribe('-', config=config). Run with WAV bytes on stdin, it raises FileNotFoundError: [Errno 2] No such file or directory: '-' before trying to upload. The original CLI command reads and uploads the same bytes successfully against a mocked SDK transport.

The generated script should read the piped audio like the CLI. Empty stdin should fail before upload. Reproduced with a local WAV fixture and no live API calls.

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