A library for real-time Speech to Text (STT), and Text to Speech (TTS) capability
Python
50
10 commits
updated Nov 29, 2023
An easy to use, real time speech-to-text (STT) and text-to-speech (TTS) application.
This application has two main features:
Convert to Audio button.Please check the demo videos below to see that in action.
STT Demo
https://github.com/mallahyari/RealtimeSTT-TTS/assets/28068313/1a85b220-116c-47f8-bed3-96fdeccebcfc
TTS Demo
https://github.com/mallahyari/RealtimeSTT-TTS/assets/28068313/03b36cc8-86a4-463f-9e67-43c929be3bad
You can use STT for real time chat applications, or any application that you would like to use your voice to command. TTS also can be used for interesting use cases like creating audible stories or books from text.
git clone https://github.com/mallahyari/RealtimeSTT-TTS.git
frontend directory and run:npm install
npm start
Speech-to-text (Optional): I have used StyleTTS 2 for STT. If you'd like to utilize this feature, the only step that you require to do is to download LJSpeech model, and copy the Models folder to backend/app/styleTTS2. For more information about styleTTS2 please check here.
To run the backend, from backend/app folder run:
pip install -r requirements.txt
python main.py
In order to use OpenAI Whisper API, you will need to enter your OPENAI_API_KEY. To do that, simply create a .env file in the backend/app directory with the following info:
OPENAI_API_KEY=
If you have any comment or feedback, please don't hesitate to reach out directly or use the Discussions section and open a new topic. You can also reach out directly via Linkedin or Twitter.
A library for real-time Speech to Text (STT), and Text to Speech (TTS) capability
Python
50
10 commits
updated Nov 29, 2023
An easy to use, real time speech-to-text (STT) and text-to-speech (TTS) application.
This application has two main features:
Convert to Audio button.Please check the demo videos below to see that in action.
STT Demo
https://github.com/mallahyari/RealtimeSTT-TTS/assets/28068313/1a85b220-116c-47f8-bed3-96fdeccebcfc
TTS Demo
https://github.com/mallahyari/RealtimeSTT-TTS/assets/28068313/03b36cc8-86a4-463f-9e67-43c929be3bad
You can use STT for real time chat applications, or any application that you would like to use your voice to command. TTS also can be used for interesting use cases like creating audible stories or books from text.
git clone https://github.com/mallahyari/RealtimeSTT-TTS.git
frontend directory and run:npm install
npm start
Speech-to-text (Optional): I have used StyleTTS 2 for STT. If you'd like to utilize this feature, the only step that you require to do is to download LJSpeech model, and copy the Models folder to backend/app/styleTTS2. For more information about styleTTS2 please check here.
To run the backend, from backend/app folder run:
pip install -r requirements.txt
python main.py
In order to use OpenAI Whisper API, you will need to enter your OPENAI_API_KEY. To do that, simply create a .env file in the backend/app directory with the following info:
OPENAI_API_KEY=
If you have any comment or feedback, please don't hesitate to reach out directly or use the Discussions section and open a new topic. You can also reach out directly via Linkedin or Twitter.