Skip to content

Releases: coqui-ai/TTS

😄 v0.15.0

28 Jun 22:46
Compare
Choose a tag to compare

What's Changed

Running 🐶Bark

text = "Hello, my name is Manmay , how are you?"

from TTS.tts.configs.bark_config import BarkConfig
from TTS.tts.models.bark import Bark

config = BarkConfig()
model = Bark.init_from_config(config)
model.load_checkpoint(config, checkpoint_dir="path/to/model/dir/", eval=True)

# with random speaker
output_dict = model.synthesize(text, config, speaker_id="random", voice_dirs=None)

# cloning a speaker.
# It assumes that you have a speaker file in `bark_voices/speaker_n/speaker.wav` or `bark_voices/speaker_n/speaker.npz`
output_dict = model.synthesize(text, config, speaker_id="ljspeech", voice_dirs="bark_voices/")

Using 🐸TTS API:

from TTS.api import TTS

# Load the model to GPU
# Bark is really slow on CPU, so we recommend using GPU.
tts = TTS("tts_models/multilingual/multi-dataset/bark", gpu=True)


# Cloning a new speaker
# This expects to find a mp3 or wav file like `bark_voices/new_speaker/speaker.wav`
# It computes the cloning values and stores in `bark_voices/new_speaker/speaker.npz`
tts.tts_to_file(text="Hello, my name is Manmay , how are you?",
                file_path="output.wav",
                voice_dir="bark_voices/",
                speaker="ljspeech")


# When you run it again it uses the stored values to generate the voice.
tts.tts_to_file(text="Hello, my name is Manmay , how are you?",
                file_path="output.wav",
                voice_dir="bark_voices/",
                speaker="ljspeech")


# random speaker
tts = TTS("tts_models/multilingual/multi-dataset/bark", gpu=True)
tts.tts_to_file("hello world", file_path="out.wav")

Using 🐸TTS Command line:

# cloning the `ljspeech` voice
tts --model_name  tts_models/multilingual/multi-dataset/bark \
--text "This is an example." \
--out_path "output.wav" \
--voice_dir bark_voices/ \
--speaker_idx "ljspeech" \
--progress_bar True

# Random voice generation
tts --model_name  tts_models/multilingual/multi-dataset/bark \
--text "This is an example." \
--out_path "output.wav" \
--progress_bar True

Full Changelog: v0.14.3...v0.15.0

👉 v0.14.3

06 Jun 07:43
Compare
Choose a tag to compare
Bump up to v0.14.3

⛈️ v0.14.2

05 Jun 20:41
Compare
Choose a tag to compare

🚗 v0.14.1

05 Jun 09:30
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.14.0...v0.14.1

Example text to speech using Fairseq models in ~1100 languages 🤯.

For these models use the following name format: tts_models/<lang-iso_code>/fairseq/vits.

You can find the list of language ISO codes here and learn about the Fairseq models here.

from TTS.api import TTS
api = TTS(model_name="tts_models/eng/fairseq/vits", gpu=True)
api.tts_to_file("This is a test.", file_path="output.wav")

# TTS with on the fly voice conversion
api = TTS("tts_models/deu/fairseq/vits")
api.tts_with_vc_to_file(
    "Wie sage ich auf Italienisch, dass ich dich liebe?",
    speaker_wav="target/speaker.wav",
    file_path="ouptut.wav"
)

v0.14.0

16 May 08:09
bc0a532
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.13.3...v0.14.0

v0.14.1_models

27 Apr 14:39
ba40a1c
Compare
Choose a tag to compare
v0.14.1_models Pre-release
Pre-release
Update README.md (#2577)

Update link to point to blob instead of edit

v0.14.0_models

08 May 10:02
c1875f6
Compare
Choose a tag to compare
v0.14.0_models Pre-release
Pre-release

Jenny VITS model trained by 👑@noml4u

tts --model_name tts_models/en/jenny/jenny --text "This is a test. This is also a test." 

🐶 v0.13.3

17 Apr 14:15
2071088
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.13.2...v0.13.3

v0.13.3_models

17 Apr 11:47
e4c5c27
Compare
Choose a tag to compare

Single speaker Bangla Male/Female models

These are single-speaker VITS models with a 22050hz sampling rate.

By 👑 @mobassir94
Original repo: https://github.com/mobassir94/comprehensive-bangla-tts

Male Model

tts --model_name tts_models/bn/custom/vits-male --text "এটি ডেমো করার উদ্দেশ্যে একটি ডেমো"
from TTS.api import TTS

tts = TTS(model_name="tts_models/bn/custom/vits-male")
tts.tts_to_file(text="এটি ডেমো করার উদ্দেশ্যে একটি ডেমো", file_path="output.wav")

# TTS with voice conversion to a reference speaker in `target_speaker.wav`
tts_with_vc_to_file(text="এটি ডেমো করার উদ্দেশ্যে একটি ডেমো", speaker_wav="target_speaker.wav", file_path="output.wav")

Female Model

tts --model_name tts_models/bn/custom/vits-female --text "এটি ডেমো করার উদ্দেশ্যে একটি ডেমো"
from TTS.api import TTS

tts = TTS(model_name="tts_models/bn/custom/vits-female")
tts.tts_to_file(text="এটি ডেমো করার উদ্দেশ্যে একটি ডেমো", file_path="output.wav")

# TTS with voice conversion to a reference speaker in `target_speaker.wav`
tts_with_vc_to_file(text="এটি ডেমো করার উদ্দেশ্যে একটি ডেমো", speaker_wav="target_speaker.wav", file_path="output.wav")

🌈v0.13.2

14 Apr 08:48
b3b4034
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.13.1...v0.13.2