Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: FasterWhisperPipeline.transcribe() got an unexpected keyword argument 'initial_prompt' #1020

Open
Rumeysakeskin opened this issue Jan 26, 2025 · 0 comments

Comments

@Rumeysakeskin
Copy link

import whisperx
import gc

device = "cuda"
audio_file = "/content/6501-out.wav"
batch_size = 16 # reduce if low on GPU mem
compute_type = "float16" # change to "int8" if low on GPU mem (may reduce accuracy)

model = whisperx.load_model("deepdml/faster-whisper-large-v3-turbo-ct2", device="cuda",download_root='models', vad_method="silero", language="tr")
audio = whisperx.load_audio(audio_file)
result = model.transcribe(audio, batch_size=batch_size, initial_prompt="Bu bir müşteri hizmetleri görüşme kaydıdır. Bazı kelimelerin doğru yazımı şu şekilde: Limited Şirketi")

model_a, metadata = whisperx.load_align_model(language_code=result["language"], device=device)
result = whisperx.align(result["segments"], model_a, metadata, audio, device, return_char_alignments=False)
print(result["segments"]) # after alignment

I get
TypeError: FasterWhisperPipeline.transcribe() got an unexpected keyword argument 'initial_prompt'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant