examples : add python example for transcription (#1744)

* rebase and add simple python interface

* moved python files to examples/python
This commit is contained in:
james wolf
2024-01-13 12:37:18 -05:00
committed by GitHub
parent 519f8e8684
commit a13a7da5ad
2 changed files with 61 additions and 0 deletions

View File

@ -0,0 +1,7 @@
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}")