AB
AiBoss
project

RealtimeSTT - an AI-powered real-time speech-to-text library that automatically detects the start and end of speech.

RealtimeSTT is an open-source real-time speech-to-text library designed for low-latency applications. It features powerful speech activity detection capabilities, automatically recognizing the start and end of speech, and using WebRTCVAD and SiloVAD for accurate detection...

What is RealtimeSTT?

RealtimeSTT is an open-source real-time speech-to-text library designed for low-latency applications. It boasts powerful speech activity detection capabilities, automatically recognizing the start and end of speech using WebRTCVAD and SiloVAD for accurate detection. It also supports wake word activation, leveraging Porcupine or OpenWakeWord to detect specific wake words for activation. The core transcription function is implemented by Faster_Whisper, converting speech to text in real time. Suitable for voice assistants, real-time captioning, and other scenarios, it provides developers with an efficient and easy-to-use speech-to-text solution, helping to create a smooth voice interaction experience.

Main functions of RealtimeSTT

  • Voice activity detectionThe system can accurately identify the start and end times of speech, automatically detecting when speech begins and stops. It first uses WebRTCVAD for preliminary sound activity detection, and then uses SileroVAD for more accurate verification, accurately identifying the start and end times of speech, avoiding invalid recordings and transcriptions, and improving resource utilization efficiency and transcription accuracy.
  • Real-time transcriptionUsing Faster_Whisper for real-time (GPU-accelerated) transcription can convert speech into text in real time, enabling the immediate acquisition of textual content from speech, meeting the needs of scenarios with high transcription speed requirements such as real-time interaction, meeting minutes, and real-time captions.
  • Voice wake-up functionIt supports Porcupine or OpenWakeWord for wake word detection, which activates the system by detecting a specified wake word, enabling the device to be woken up from standby and start working. This provides a convenient way to launch applications such as voice assistants and improves the user experience.
  • Flexible audio input methodsIt can use a microphone to record audio in real time for transcription, or it can use the feed_audio() method to input pre-recorded audio blocks for transcription, providing flexible audio input options for different use cases and needs.
  • Audio preprocessingBefore transcription, necessary preprocessing of the audio is performed, such as adjusting the sampling rate, to ensure that the audio format meets the requirements of the transcription model and improve the accuracy and reliability of transcription.
  • Real-time text outputThe transcribed text can be output in real time. Developers can define processing functions to receive and process this text, such as printing it directly or inputting it into a text box, which facilitates integration and expansion with other application functions.
  • Supports multiple languagesIt has the ability to transcribe multiple languages, recognizing and transcribing speech in various languages to meet the needs of different language environments.

The technical principle of RealtimeSTT

  • Preliminary testUsing WebRTCVAD for preliminary speech activity detection can quickly identify speech segments and non-speech segments in an audio stream, and determine when to start and stop recording.
  • Accurate verificationUse SileroVAD for more accurate verification. SileroVAD is based on a deep learning model and can more accurately distinguish between speech and non-speech periods, improving the accuracy of speech activity detection.
  • Transcription modelReal-time transcription was performed using Faster Whisper. Faster Whisper is a high-efficiency speech-to-text model that supports GPU acceleration, significantly improving transcription speed and ensuring that speech content can be converted into text in real time.
  • wake word detectionSupports wake word detection using Porcupine or OpenWakeWord. It can recognize specific wake words, activate the system, and enable the device to be woken up from standby mode and begin operation.

RealtimeSTT project address

Application scenarios of RealtimeSTT

  • Intelligent device controlControl smart home devices such as lights, curtains, and air conditioners via voice commands to enhance the convenience of life.
  • Intelligent Customer ServiceIn enterprise customer service scenarios, voice assistants can identify customer questions in real time and provide corresponding answers, improving customer service efficiency and customer satisfaction.
  • Meeting transcriptDuring meetings or lectures, RealtimeSTT can convert speech to text in real time, facilitating subsequent organization and analysis.
  • Multilingual translationIn multilingual conferences, RealtimeSTT can translate speakers' voices into other languages in real time, improving communication efficiency.
  • Real-time subtitlesProvides real-time captions for people with hearing impairments, enhancing the accessibility of communication.