This is a Python-based speech-to-text application that converts spoken Persian (Farsi) language into text using Google Speech Recognition. It also features text-to-speech (TTS) functionality and a GUI built with Tkinter.
- ๐ค Continuous Speech Recognition (Persian/Farsi)
- ๐ Text-to-Speech (TTS) using
pyttsx3
- ๐ Text Display in a scrollable text box
- ๐ Copy Text to clipboard
- โน๏ธ Start/Stop Recording for better control
- ๐จ User-Friendly GUI with Tkinter
Make sure you have Python installed. Then install the required dependencies:
pip install speechrecognition pyttsx3 tkinter
Run the following command in your terminal or command prompt:
python script.py
- Click on the "Start Recording" button.
- Speak in Persian, and the text will appear in the text box.
- The application will also read the recognized text aloud.
- Click "Stop Recording" to stop speech recognition.
- Click "Copy Text" to copy the transcribed text to the clipboard.
- Ensure your microphone is properly connected and working.
- If the app doesn't recognize your speech, check your internet connection (Google Speech Recognition requires internet access).
- If you get a
RequestError
, Google's API might be temporarily unavailable.
This project is open-source and available under the MIT License.