TTS-Converter-Python A Text-to-Speech Converter in Python with Voice Selection
Description This Python script allows you to convert text into speech using the gTTS (Google Text-to-Speech) library, with the option to select different voices.
** 💻This Was Only Tested On win10💻**
A Python script that converts text to speech with voice selection using gTTS (Google Text-to-Speech).
This Python script allows you to convert text into speech and offers voice selection options. It uses the gTTS library to perform the conversion.
- Text to Speech Conversion: Convert text to speech with ease.
- Voice Selection: Choose from a variety of available voices to personalize your speech.
- Custom Output: Save the audio file with a filename that corresponds to your input text.
- Linux Compatibility: You can run this script on Linux as well.
Make sure you have Python installed on your system. If not, you can install it using your package manager.
-
Clone this repository or download the script.
-
Install the required Python packages using pip.
import tkinter as tk
from tkinter import ttk import pyttsx3 from tkinter import messagebox Usage
Run the script using the following command in your terminal: shell Copy code python3 tts_converter.py
The Graphical User Interface (GUI) will appear.
Enter the text you want to convert to speech.
Use the dropdown menu to select from different available voices.
Click the Convert to Speech button to generate the audio.
The audio will be saved with a filename corresponding to your input text.
You can also specify a custom filename in the Save As field.
Change voices to alter the speech characteristics.
Once the conversion is complete, you can listen to the generated speech.
Ensure you have Python installed on your Linux system. Most Linux distributions come with Python pre-installed. You can check by running:
python3 --version If Python 3 is not installed, you can install it using your package manager:
For Debian/Ubuntu:
shell Copy code sudo apt-get install python3 For Fedora:
shell
Copy code
sudo dnf install python3
Installation
Clone this repository or download the script:
shell Copy code git clone https://github.com/GrumpyStudios/TTS-Converter-Python.git
Install the required Python packages using pip:
shell
Copy code
pip3 install gTTS
Running the Script
Open your terminal and navigate to the directory where you've cloned or downloaded the script.
Execute the script using Python 3:
shell
Copy code
python3 tts_converter.py
The Graphical User Interface (GUI) will appear, allowing you to enter text, select voices, convert to speech, and save the audio.
Once the conversion is complete, you can listen to the generated speech.
Enjoy text-to-speech conversion on your Linux system!
Running on macOS:
Prerequisites macOS comes with Python 2 pre-installed. You should have Python 3 installed for this script. You can check by running:
shell Copy code python3 --version If it's not installed, you can get Python 3 using Homebrew:
shell
Copy code
brew install python@3
Installation
Clone this repository or download the script: shell
Copy code
git clone https://github.com/GrumpyStudios/TTS-Converter-Python.git
Install the required Python packages using pip:
shell Copy code
pip3 install gTTS
Running the Script
Open your terminal and navigate to the directory where you've cloned or downloaded the script.
Execute the script using Python 3: shell
Copy code python3 tts_converter.py
The Graphical User Interface (GUI) will appear, allowing you to enter text, select voices, convert to speech, and save the audio.
Once the conversion is complete, you can listen to the generated speech.
Reporting Issues
If you encounter any problems or have suggestions for improvements, please open an issue on this GitHub repository. Provide as much detail as possible, including error messages, steps to reproduce the issue, and your operating system.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Enjoy text-to-speech conversion with ease!