This project allows users to convert speech into text and save the result in a .txt
file. The project uses the speech_recognition
library and Google's Speech Recognition API to convert the speech to text and saves it in a file for further use.
- Supports speech recognition in Thai, English, Chinese, and Japanese.
- Converts speech to text and displays it on the console.
- Saves transcribed text to a
.txt
file based on the selected language. - After each transcription, users can continue ('y') or exit ('n').
- The user selects a language (Thai, English, Chinese, or Japanese).
- The user speaks, and the app converts and displays the text.
- The text is saved to
output_thai.txt
,output_english.txt
,output_chinese.txt
, oroutput_japanese.txt
. - Example: Speaking "ได้ยินฉันไหมฉันเป็นคนไทย" saves to output_thai.txt.
-
Clone or download the repository.
git clone https://github.com/pathanin-kht/SpeechToText.git
-
Install the required dependencies:
pip install -r requirements.txt
-
Run the code:
python speech_to_text_py
This project is licensed under the MIT License - see the LICENSE file for details.
For feedback or inquiries, feel free to reach out via pathanin.kht@gmail.com.