Skip to content

pathanin-kht/SpeechToText

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Speech to Text v1.1.0

Overview

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.

Features

  • 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').

Example

  • 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, or output_japanese.txt.
  • Example: Speaking "ได้ยินฉันไหมฉันเป็นคนไทย" saves to output_thai.txt.

Installation

  1. Clone or download the repository.

    git clone https://github.com/pathanin-kht/SpeechToText.git
    
  2. Install the required dependencies:

    pip install -r requirements.txt
  3. Run the code:

    python speech_to_text_py
    

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contact

For feedback or inquiries, feel free to reach out via pathanin.kht@gmail.com.