16 lines
339 B
Python
16 lines
339 B
Python
"""
|
|
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)
|