Decided on Parakeet ONNX Runtime. Works pretty great. Realtime voice chat possible now. UX lacking.
This commit is contained in:
15
stt-parakeet/example.py
Normal file
15
stt-parakeet/example.py
Normal file
@@ -0,0 +1,15 @@
|
||||
"""
|
||||
Simple example of using the ASR pipeline
|
||||
"""
|
||||
from asr.asr_pipeline import ASRPipeline
|
||||
|
||||
# Initialize pipeline (will download model on first run)
|
||||
print("Loading ASR model...")
|
||||
pipeline = ASRPipeline()
|
||||
|
||||
# Transcribe a WAV file
|
||||
print("\nTranscribing audio...")
|
||||
text = pipeline.transcribe("test.wav")
|
||||
|
||||
print("\nTranscription:")
|
||||
print(text)
|
||||
Reference in New Issue
Block a user