This application reads all text files in the input directory and generates output MP3 files in the output directory. It adds a 3-second pause after each line of text.
- Python 3.x
- pip (Python package installer)
git clone <repository_url>
cd <repository_name>pip install -r requirements.txtInstall ffmpeg using winget:
winget install -e --id Gyan.FFmpeg
or
winget install ffmpegInstall ffmpeg using your package manager:
sudo apt-get install ffmpeg-
Run the program:
python main.py file1.txt file2.txt
The program will read all text files in the input_directory and generate MP3 files in the output_directory, adding a 3-second pause after each line.
We use pytest for testing.
-
Install pytest if you haven't already:
pip install pytest
-
Run the tests:
pytest -p no:warnings
.
├── main.py
├── requirements.txt
└── test_tts_app.py
main.py: Main application script.requirements.txt: List of required Python libraries.test_tts_app.py: Test script for the application.
This project is licensed under the MIT License. See the LICENSE file for details.