Main voice interface for controlling (Web Browser) speech recognition and tts at high level.
Warning: Please note that only Chrome and Safari currently support the browser Speech Recognition API. You CANNOT use Brave, Firefox, or other browsers.
audio_processing.ts
Connects to microphone and detects when there is sound occuring
speech_recognition.ts
Starts and stops speech recognition and provides recognition results
tts.ts
Performs speech synthesis given a string
This file combines the three aforementioned libraries to create an out of the box seamless
voice/ tts experience.
The audio processor is used to detect when a spike in volume has occured, and it triggers
the speech recognizer to start listening.
When the tts.speak function is called, the speech recognizer is automatically paused until tts
has finished.
To use, simply call initialize_recognition() , and the recognition results will be available by
listending to the window.addEventListener( 'tidyscripts_web_speech_recognition_result' , (e) => e.detail ) handler
Main voice interface for controlling (Web Browser) speech recognition and tts at high level.
Warning: Please note that only Chrome and Safari currently support the browser Speech Recognition API. You CANNOT use Brave, Firefox, or other browsers.
audio_processing.ts
Connects to microphone and detects when there is sound occuring
speech_recognition.ts
Starts and stops speech recognition and provides recognition results
tts.ts
Performs speech synthesis given a string
This file combines the three aforementioned libraries to create an out of the box seamless voice/ tts experience.
The audio processor is used to detect when a spike in volume has occured, and it triggers the speech recognizer to start listening.
When the tts.speak function is called, the speech recognizer is automatically paused until tts has finished.
To use, simply call initialize_recognition() , and the recognition results will be available by listending to the window.addEventListener( 'tidyscripts_web_speech_recognition_result' , (e) => e.detail ) handler
For tts, call speak(text)