This Python project will help you to convert any text file into an audio file. and you can create an audiobook using this project.
This project is to convert a text file into an audio file using the google text-to-speech service.
REQUIREMENT:-
*) You need one external module to be installed on a system and that is gTTS( Google Text-To-Speech Service).
command:- pip install gtts
*) You have to import os module also because we will be saving and accessing our files.
*) You have to specify what we will be the language of our speech.
*) You need an internet connection to run gTTS module.
IMPORTANT NOTE:-
Google test-to-speech service only uses ".wav" format of audio files, you cannot use " .mp3 " or any other audio file format.
Submitted by Harshit Chaudhary (harshitchaudhary)
Download packets of source code on Coders Packet
Comments