Jarbas commited on
Commit
a8564a0
·
verified ·
1 Parent(s): f108ed4

Add facebook__mms-tts-sid-Sidamo from Phoonnx/phoonnx-mms

Browse files

Split by knowledge/wiki/audits/phoonnx-org-move/split_upload.py; every file is checked against the mirror by LFS sha256 or git blob id.

Files changed (3) hide show
  1. README.md +72 -0
  2. config.json +73 -0
  3. model.onnx +3 -0
README.md ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-nc-4.0
3
+ library_name: phoonnx
4
+ pipeline_tag: text-to-speech
5
+ language:
6
+ - sid
7
+ tags:
8
+ - phoonnx
9
+ - mms
10
+ ---
11
+
12
+ # vits-sid-mms-graphemes
13
+
14
+ A VITS model by Meta, from [facebook/mms-tts-sid](https://huggingface.co/facebook/mms-tts-sid), packaged for [phoonnx](https://github.com/TigreGotico/phoonnx), our ONNX text-to-speech library.
15
+
16
+ ## Model details
17
+
18
+ | | |
19
+ |---|---|
20
+ | Architecture | [VITS](https://huggingface.co/collections/Phoonnx/vits-6af8ea9ae9adb8b94ec31a65) |
21
+ | Upstream | [facebook/mms-tts-sid](https://huggingface.co/facebook/mms-tts-sid) |
22
+ | ONNX conversion | [willwade/mms-tts-multilingual-models-onnx/sid](https://huggingface.co/willwade/mms-tts-multilingual-models-onnx/tree/main/sid) |
23
+ | Author | Meta |
24
+ | Languages | `sid` |
25
+ | Text input | characters of the text |
26
+
27
+ ## How to use
28
+
29
+ ```bash
30
+ pip install --pre phoonnx
31
+ ```
32
+
33
+ ```python
34
+ import wave
35
+ from phoonnx.model_manager import TTSModelManager
36
+
37
+ manager = TTSModelManager()
38
+ manager.load()
39
+ manager.merge_default_voices()
40
+
41
+ voice = manager.voices["facebook/mms-tts-sid-Sidamo"].load()
42
+
43
+ with wave.open("output.wav", "wb") as wav_file:
44
+ text = "..." # a sentence in sid
45
+ voice.synthesize_wav(text, wav_file)
46
+ ```
47
+
48
+ In OVOS, phoonnx installs the `ovos-tts-plugin-phoonnx` plugin. Select the voice in `mycroft.conf`:
49
+
50
+ ```json
51
+ {"tts": {"module": "ovos-tts-plugin-phoonnx", "ovos-tts-plugin-phoonnx": {"voice": "facebook/mms-tts-sid-Sidamo"}}}
52
+ ```
53
+
54
+ ## Text front end
55
+
56
+ phoonnx hands the text to [scriptconv](https://github.com/TigreGotico/scriptconv), our text conversion library, which normalises it and turns it into the model's input:
57
+
58
+ - `graphemes`: `GraphemePhonemizer` from `scriptconv.phonemizers.base`, in scriptconv itself.
59
+
60
+ ## phoonnx voices
61
+
62
+ - `facebook/mms-tts-sid-Sidamo`
63
+
64
+ ## Licence
65
+
66
+ The upstream declares the licence `cc-by-nc-4.0` in the model card of facebook/mms-tts-sid.
67
+
68
+ ## Related projects
69
+
70
+ - [phoonnx](https://github.com/TigreGotico/phoonnx): runs this model, in Python and in OVOS.
71
+ - [scriptconv](https://github.com/TigreGotico/scriptconv): text normalisation, script conversion and phonemizers for phoonnx.
72
+ - The [VITS](https://huggingface.co/collections/Phoonnx/vits-6af8ea9ae9adb8b94ec31a65) collection: every VITS model packaged for phoonnx.
config.json ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "phoonnx_version": "1.0",
3
+ "engine": "transformers",
4
+ "phoneme_type": "graphemes",
5
+ "alphabet": "unicode",
6
+ "lang_code": "sid",
7
+ "audio": {
8
+ "sample_rate": 16000
9
+ },
10
+ "num_symbols": 256,
11
+ "num_speakers": 1,
12
+ "num_langs": 1,
13
+ "speaker_id_map": {},
14
+ "lang_id_map": {},
15
+ "phonemizer_model": null,
16
+ "add_diacritics": false,
17
+ "inference": {
18
+ "noise_scale": 0.667,
19
+ "length_scale": 1.0,
20
+ "noise_w": 0.8
21
+ },
22
+ "phoneme_id_map": {
23
+ " ": 37,
24
+ "'": 18,
25
+ "-": 33,
26
+ "0": 27,
27
+ "1": 28,
28
+ "2": 29,
29
+ "3": 34,
30
+ "4": 31,
31
+ "5": 32,
32
+ "6": 30,
33
+ "7": 35,
34
+ "8": 36,
35
+ "a": 0,
36
+ "b": 17,
37
+ "c": 19,
38
+ "d": 14,
39
+ "e": 5,
40
+ "f": 22,
41
+ "g": 16,
42
+ "h": 7,
43
+ "i": 3,
44
+ "j": 24,
45
+ "k": 12,
46
+ "l": 13,
47
+ "m": 11,
48
+ "n": 2,
49
+ "o": 4,
50
+ "p": 25,
51
+ "q": 21,
52
+ "r": 10,
53
+ "s": 6,
54
+ "t": 9,
55
+ "u": 8,
56
+ "w": 20,
57
+ "x": 23,
58
+ "y": 15,
59
+ "z": 26,
60
+ "|": 1
61
+ },
62
+ "pad": null,
63
+ "blank": "a",
64
+ "bos": null,
65
+ "eos": null,
66
+ "add_blank_char": true,
67
+ "add_blank_word": false,
68
+ "use_eos_bos": false,
69
+ "blank_at_start": true,
70
+ "blank_at_end": true,
71
+ "word_sep_token": " ",
72
+ "blank_between": "tokens_and_words"
73
+ }
model.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:534bbc3edd2230cd53e7ea31661056aab048b3c26e7c217812a634f3d7d5b0d1
3
+ size 114016952