Repository navigation
Added
- Speech synthesis:
Synthesizer.from_pretrained("atasoglu/seda-tts-v0.1")(orSynthesizer(model_dir)),.synthesize(text)and.stream(text)run a seda VITS model with onnxruntime (no PyTorch). It takes a speaker, an emotion and a style, offers only the voices, styles and emotions a model'sconfig.jsonreleases, and uses each style's own settings (defaults_for,emotions_for; a whisper needs more variation than normal speech). Short sentences are read together up to 120 characters, the longest the model was trained on, with a short pause between longer pieces. It decodes in chunks, so the first samples arrive after one BERT pass, the encoder and half a chunk. Numbers, dates, currency and abbreviations are first written out in words with normalizer-tr (expand=True, Python 3.11 or newer). Needs the newttsextra. - Speech synthesis demo (
python -m sedalib.demo.tts; downloads seda-tts-v0.1,SEDA_TTS_MODELpicks a local directory or another repo): the audio plays on top in a waveform player, with the time to the first chunk and the RTF of each request; text, style and emotion below it (the speaker too when a model releases more than one), then one table of example sentences for the emotions and the whisper that sets the text, style and emotion together; the variation controls are under Advanced. A style switches to its own emotions and settings. write_wavwrites mono float samples as a 16-bit PCM WAV file.
Full Changelog: v1.3.0...v1.4.0