Package for realistic voice synthesis
Project description
README for voicesynth
Voice Synthesizing Library
How to use:
First, install the package
pip install voicesynth
Then import it into your code and go ahead and use it:
from voicesynth import Model, Synthesizer, show_available_models
show_available_models() # Showcase of all tts models available
# initializing the model
model = Model("v4_ru")
model.set_speaker("eugene")
# creating a synthesizer instance
synthesizer = Synthesizer(model)
synthesizer.say("Я представить себе не могу, что это действительно случилось!")
Instead of using .say() method, you can synthesize an audio and then play it whenever you want
import time
synthesizer.synthesize("Всем привет!", path="audio.wav")
time.sleep(3)
synthesizer.play("audio.wav")
All models support simple ssml tags:
synthesizer.say("В н+едрах т+ундры в+ыдры п+ели п+есни", prosody_rate=90)
# I added prosody as a parameter, so that people who are not familiar with ssml tags
# could change speaking speed without knowing how to manually do it
By default, logging is enabled. If it bothers you, you can set logging to False.
import voicesynth
voicesynth.logging_enabled(False)
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
voicesynth-0.0.11.tar.gz
(5.5 kB
view details)
File details
Details for the file voicesynth-0.0.11.tar.gz
.
File metadata
- Download URL: voicesynth-0.0.11.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4be7a45b5354f7b22666f33abecfcbc6b7e57ba593de5dceaf6cd7809cf0ff57 |
|
MD5 | 7a96712d0dcefc286825359b4dffdba2 |
|
BLAKE2b-256 | bf87cb3f21a01e4b6f9ccac05469fefcd4690c59250615010b251818af18c0e9 |