RealtimeSTT icon indicating copy to clipboard operation
RealtimeSTT copied to clipboard

it is somewhat unclear on how to use realtime transcription

Open variegatedcat opened this issue 5 months ago • 1 comments

im trying to use this as a test for a small program im working on:

recorder = AudioToTextRecorder( spinner=True, silero_use_onnx=True, silero_deactivity_detection=True, model="tiny.en", language="en", device="cpu", #gpu_device_index=0 ensure_sentence_ends_with_period=False, ensure_sentence_starting_uppercase=False, enable_realtime_transcription=True, realtime_model_type="tiny.en", on_vad_start=on_vad_start, on_vad_stop=on_vad_stop, min_gap_between_recordings=1.0, post_speech_silence_duration=0.2, min_length_of_recording=1.0, no_log_file=True, realtime_processing_pause=0.2,

)

try: while (True): print(recorder.text()) except KeyboardInterrupt: print("stt exited")

but despite setting realtime to true, it still waits to transcribe, am i doing something wrong?

variegatedcat avatar May 04 '25 22:05 variegatedcat