Convert Text to Speech and IPA
Project description
Master Text Converter
Features
- Support text to speech with many pretty voices options
- Support download file mp3 from TTS
- Support convert text to IPA (International Phonetic Alphabet) with English UK and English US
Installation
Windows
python -m pip install mateco
Linux
pip install mateco
macOS
sudo pip3 install mateco
How does it work?
Work with module TTS
Initialatize module and setup language
from mateco import TTS
mod = TTS()
#Setup language
mod.setup_language()
Choose Language:
1. English UK
2. English US
3. Chinese
4. Janpanese
5. French
6. Spanish Mexico
7. Italian
8. German
9. Russian
10. Dutch
11. Korean
12. Arabic
13. Spanish Spain
Enter your choice: 2
Setup voice
mod.setup_voice()
Voice Options for English US:
1. Joey - Male
2. Justin - Little Boy
3. Matthew - Male
4. Salli - Female
5. Joanna - Female
6. Ivy - Little Girl
Enter your choose: 4
Update the text you want to convert & Save it
mod.update('I try this, try that, try everything.')
mod.play()
mod.save('output/audio.mp3')
Work with module IPA
Initialize module IPA
from mateco import IPA
#Default is English UK
mod = IPA()
Update text to convert
en_uk = mod.get_ipa('I dropped my food on my foot')
print(en_uk)
aɪ drɒpt maɪ fuːd ɒn maɪ fʊt
Test with boths
#Setup English UK IPA
mod = IPA(1)
en_uk = mod.get_ipa('potato, tomato')
print('Bristh say:',en_uk)
#Setup English US IPA
mod = IPA(2)
en_us = mod.get_ipa('potato, tomato')
print('America say:',en_us)
Bristh say: pəˈteɪtəʊ, təˈmɑːtəʊ
America say: pəˈteɪˌtoʊ, təˈmeɪˌtoʊ
Change Log
PLANNING
Module TTS: Support Text to Pretty Speech with 13 languages.
Module IPA: Support Text to IPA
Note: Resource Online converter is Limited, you maybe get error message "Too Many Requests". You need to use proxy or wait for it refresh.
URL: https://github.com/tquangsdh20/mateco/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mateco-1.2.0.tar.gz
(98.9 kB
view hashes)
Built Distribution
mateco-1.2.0-py3-none-any.whl
(97.5 kB
view hashes)