You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importwhisperximportgcdevice="cuda"audio_file="/content/6501-out.wav"batch_size=16# reduce if low on GPU memcompute_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'
The text was updated successfully, but these errors were encountered:
I get
TypeError: FasterWhisperPipeline.transcribe() got an unexpected keyword argument 'initial_prompt'
The text was updated successfully, but these errors were encountered: