Skip to content

Make python read your text oraly (as a file or a simple string).

Notifications You must be signed in to change notification settings

gabriel-dahan/text-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

TextConverter

Install and Import the module :

Installing the module :

~ git clone https://github.com/gabriel-dahan/textconverter/
~ cd textconverter/

# Linux / MacOS
~ python3 -m pip install -U .

# Windows 
~ py -3 -m pip install -U .

Consider using the --user parameter if you're not a root/admin user.

Importing the module :

from textconverter import TextConverter

Create a MP3 file from a text.

tc = TextConverter('Some text...')
# or
tc = TextConverter(open('somefile.txt'))

tc.toaudiofile('speech.mp3')
# If the text is in another language (than english), you must specify the lang as a parameter : 
tc.toaudiofile('speech.mp3', lang = 'fr') # For example

Automaticy read the text.

tc = TextConverter('...')

tc.speech()
# or
tc.speech(lang = '...')

About

Make python read your text oraly (as a file or a simple string).

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages