Jarbas commited on
Commit
879e378
·
verified ·
1 Parent(s): fbbc63f

docs: add model card

Browse files
Files changed (1) hide show
  1. README.md +53 -0
README.md ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ language:
4
+ - ru
5
+ library_name: phoonnx
6
+ pipeline_tag: text-to-speech
7
+ tags:
8
+ - tts
9
+ - vits2
10
+ - onnx
11
+ - phoonnx
12
+ - offline
13
+ ---
14
+
15
+ # phoonnx-vits2
16
+
17
+ Mirror of VITS2 text-to-speech checkpoints exported to ONNX for
18
+ [phoonnx](https://github.com/TigreGotico/phoonnx), OpenVoiceOS's offline TTS
19
+ library. VITS2 is a single-stage TTS architecture, an evolution of VITS that
20
+ improves naturalness and inference speed through adversarial duration
21
+ modeling and a monotonic alignment search transformer.
22
+
23
+ This repository holds the raw ONNX weights and `config.json` files consumed
24
+ by `phoonnx`'s `voice_index`; it is not meant to be browsed for voices
25
+ directly — use `phoonnx`'s voice manager, which resolves voice IDs to the
26
+ files here.
27
+
28
+ ## Contents
29
+
30
+ | Directory | Voice ID | Language | Source |
31
+ |---|---|---|---|
32
+ | `frappuccino-ru-natasha/` | `frappuccino/vits2-ru-natasha` | Russian (`ru`) | [`frappuccino/vits2_ru_natasha`](https://huggingface.co/frappuccino/vits2_ru_natasha), trained on the Natasha dataset, shared by LangSwap.app |
33
+
34
+ ## Usage
35
+
36
+ ```python
37
+ import wave
38
+ from phoonnx.model_manager import TTSModelManager
39
+
40
+ manager = TTSModelManager()
41
+ manager.load()
42
+ manager.merge_default_voices()
43
+
44
+ voice = manager.voices["frappuccino/vits2-ru-natasha"].load()
45
+ with wave.open("out.wav", "wb") as wav_file:
46
+ voice.synthesize_wav("Привет, как дела?", wav_file)
47
+ ```
48
+
49
+ ## License
50
+
51
+ The `frappuccino-ru-natasha` checkpoint is released by its author under the
52
+ MIT license. The VITS2 architecture and training code (`p0p4k/vits2_pytorch`)
53
+ are also MIT licensed. `phoonnx` itself is Apache-2.0.