CrystalAudio::Transcription::Streamer
Near-real-time transcription for dictation via chunked audio processing. Push PCM samples as they arrive; get Segment callbacks as text is recognized.
Constants
OVERLAP_MS = 500
OVERLAP_SAMPLES = (SAMPLE_RATE * OVERLAP_MS) // 1000
SAMPLE_RATE = 16000
STEP_MS = 3000
STEP_SAMPLES = (SAMPLE_RATE * STEP_MS) // 1000
WINDOW_MS = 5000
WINDOW_SAMPLES = (SAMPLE_RATE * WINDOW_MS) // 1000