Master Text Converter
Project description
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?
Working with module TTS
Setup Language for Converting
Special cases:
- English US :
am
- English UK :
br
- Portuguese (Brazil):
pt-br
- Portuguese (Portugal):
pt
- The other languages :
ISO LANGUAGE CODE 639-1
from mateco import TTS
# Initialization for Module TTS
mod = TTS()
# Choice the voice for America English
mod.setup_voice('am')
# Convert to audio data
mod.convert('Welcome to Master Text Converter library. I hope it\'s useful for you.')
mod.save_to_file('audio.mp3')
# Change the language
mod.setup_voice('fr')
mod.convert('Je parle un peu français')
mod.save_to_file('audio_french.mp3')
mod.close()
>> All voices for your language:
>> 1. Joey - Male - SAPI5
>> 2. Justin - Male - SAPI5
>> 3. Matthew - Male - SAPI5
>> 4. Salli - Female - SAPI5
>> 5. Joanna - Female - SAPI5
>> 6. Ivy - Female - SAPI5
>> Make your choice: 3
Work with module IPA
Initialize module IPA
from mateco import IPA
# Setup English UK IPA
mod = IPA('am')
en_uk = mod.get_ipa('potato, tomato')
print('Bristh say:',en_uk)
# Setup English US IPA
mod = IPA('br')
en_us = mod.get_ipa('potato, tomato')
print('America say:',en_us)
# Working with Bulk - List of the texts
bulk = ['potato', 'tomato', 'schedule']
results = mod.get_ipas(bulk)
print(results)
>> Bristh say: pəˈteɪˌtoʊ, təˈmeɪˌtoʊ
>> America say: pəˈteɪtəʊ, təˈmɑːtəʊ
>> ['pəˈteɪtəʊ', 'təˈmɑːtəʊ', 'ˈʃɛdjuːl']
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.1.0rc0.tar.gz
(4.3 kB
view hashes)
Built Distribution
Close
Hashes for mateco-1.1.0rc0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d86456d46365ce211a77b3fbfdc71e67cacd4ffc492a75dc5f888de4508b1c9 |
|
MD5 | 002aa84f8095f2743b1ffd566eac2b2b |
|
BLAKE2b-256 | c60edeea7e2bfa21c8e925791f2b01e80d317b01a764ead99be81b12fe8efbbd |