Skip to content

This python script converts text to speech by searching for audio examples for the words on wiktionary

License

Notifications You must be signed in to change notification settings

hrkrx/Text2WiktionarySpeech

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Text2WiktionarySpeech

This python script converts text to speech by searching for audio examples for the words on wiktionary

Dependencies

pip install urllib beautifulsoup4 ffmpeg-generator

ffmpeg must be present in PATH

Usage

python main.py [-h] [-i INPUT] [-o OUTPUT] [-l LANGUAGE]

optional arguments:
  -h, --help            show this help message and exit
  -i INPUT, --input INPUT
                        the input text
  -o OUTPUT, --output OUTPUT
                        the output file
  -l LANGUAGE, --language LANGUAGE
                        primary language

Limitations

currently for languages only "de" is working consistently, but even then it can generate acceptable output for other languages with weird pronounciation

About

This python script converts text to speech by searching for audio examples for the words on wiktionary

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages