Skip to content

feat(transcribe) Allow transcribe() to accept a custom sample rate #308

Description

@bellescoincidences

Issue 1: Allow transcribe() to accept a custom sample rate

Currently transcribe() hardcodes SAMPLE_RATE (44100 Hz) from constants.py. There is no way to override this at runtime.

load_audio() already accepts an optional sr parameter — when sr=None, it returns the file's native sample rate. But transcribe() doesn't pass this through.

Requested change: Add an optional sr parameter to transcribe() (defaulting to SAMPLE_RATE from constants.py) and thread it through to load_audio() and any other internal calls that depend on sample rate. This would let users run transcription at the file's native sample rate or any other rate, rather than being locked to 44100.

Activity

  1. victoria-mckinney commented on Aug 25, 2026

    @victoria-mckinney
    Member

    related to #309

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

Metadata

Metadata

Labels

featureNew feature or request. Enhancementgood first issueGood for newcomershelp wantedExtra attention is needed

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions