File: test_whisper_processor.py

package info (click to toggle)
whisper.cpp 1.8.3%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 32,228 kB
  • sloc: cpp: 188,765; ansic: 121,729; lisp: 10,221; sh: 4,272; objc: 2,159; ruby: 1,682; python: 1,177; javascript: 594; makefile: 144
file content (7 lines) | stat: -rw-r--r-- 189 bytes parent folder | download
1
2
3
4
5
6
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}")