Skip to content
This repository was archived by the owner on Mar 13, 2026. It is now read-only.

Fix: Remove invalid sample_rate argument from faster-whisper transcribe call - #2

Merged
jarrodwatts merged 1 commit into
jarrodwatts:mainfrom
SamuelLHuber:patch-1
Jan 19, 2026
Merged

Fix: Remove invalid sample_rate argument from faster-whisper transcribe call#2
jarrodwatts merged 1 commit into
jarrodwatts:mainfrom
SamuelLHuber:patch-1

Conversation

@SamuelLHuber

Copy link
Copy Markdown
Contributor

Summary

  • Remove invalid sample_rate keyword argument from WhisperModel.transcribe() call
  • Fixes whisper engine failing with TypeError: WhisperModel.transcribe() got an unexpected keyword argument 'sample_rate'

Problem

When using the whisper engine, transcription fails immediately with:
TypeError: WhisperModel.transcribe() got an unexpected keyword argument 'sample_rate'

The faster-whisper library's WhisperModel.transcribe() method doesn't accept a sample_rate parameter - it expects audio to already be at 16kHz (which the recorder provides).

Test plan

  • Switch to whisper engine (engine = "whisper" in config)
  • Use hotkey to record and transcribe speech
  • Verify transcription completes without errors

…be call

When using the whisper engine, transcription fails immediately with:
  TypeError: WhisperModel.transcribe() got an unexpected keyword argument 'sample_rate'

  The `faster-whisper` library's `WhisperModel.transcribe()` method doesn't accept a `sample_rate`
  parameter - it expects audio to already be at 16kHz (which the recorder provides).

@jarrodwatts jarrodwatts left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified: faster-whisper's WhisperModel.transcribe() does not accept a sample_rate parameter. This is a correct fix for a blocking bug. Thanks for the contribution!

@jarrodwatts
jarrodwatts merged commit 8f3962a into jarrodwatts:main Jan 19, 2026
12 checks passed
ChrisTowles referenced this pull request in ChrisTowles/claude-stt Feb 1, 2026
Fix: Remove invalid sample_rate argument from faster-whisper transcribe call
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants