v0.3.94

KoljaB/RealtimeSTTv0.3.94Jan 23, 2025by KoljaB

AI Summary

Adds timing control parameters to adjust stop and resume timestamps for recordings.

Key Highlights

  • New backdate_stop_seconds parameter
  • New backdate_resume_seconds parameter

New Features

  • backdate_stop_seconds parameter to compensate for latency on stop
  • backdate_resume_seconds parameter to fine-tune resume timing

Full Release Notes

# RealtimeSTT 0.3.94

- **New Parameters for stop-method of AudioToTextRecorder:**
  - `backdate_stop_seconds` (float, default=0.0):
    - **Description:** Specifies the number of seconds to backdate the stop time when ending a recording.
    - **Usage:** When invoking `stop()` due to a wake word detection or a speaker diarization change event, this parameter compensates for any latency, ensuring that only relevant audio is included in the recording and transcription.

  - `backdate_resume_seconds` (float, default=0.0):
    - **Description:** Specifies the number of seconds to backdate the resume time when restarting listening after a recording has stopped.
    - **Usage:** Typically set to the same value as `backdate_stop_seconds`, this parameter allows for fine-tuning.