whisper.cpp / examples /python /test_whisper_processor.py
contractorwolf's picture
examples : add python example for transcription (#1744)
d600e4c unverified
raw
history blame
189 Bytes
import whisper_processor
try:
result = whisper_processor.process_audio("./audio/wake_word_detected16k.wav", "base.en")
print(result)
except Exception as e:
print(f"Error: {e}")