Kamtera commited on
Commit
a4c8861
1 Parent(s): 23911a7

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +89 -0
README.md CHANGED
@@ -1,3 +1,92 @@
1
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  license: openrail
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ library_name: TTS
3
+ task: text-to-speech
4
+ tags:
5
+ - Persian
6
+ - TTS
7
+ - Farsi
8
+ - Coqui
9
+ - CoquiTTS
10
+ - pytorch
11
+ - audio
12
+ - text-to-speech
13
+ language: fa
14
+ datasets:
15
+ - persian-tts-dataset
16
+ widget:
17
+ - text: .زندگی فقط یک بار است؛ از آن به خوبی استفاده کن
18
+ example_title: Hello, this is a test run.
19
  license: openrail
20
+ pipeline_tag: text-to-speech
21
  ---
22
+
23
+ # **persian-tts-male-vits**
24
+
25
+ - persian-tts-male vits model for text to speech purposes.
26
+ - Persian فارسی
27
+ - Single-speaker male voice
28
+ - finetuned [persian-tts-female-vits](https://huggingface.co/Kamtera/persian-tts-female-vits) model on [persian-tts-dataset-male](https://www.kaggle.com/datasets/magnoliasis/persian-tts-dataset) dataset
29
+ - [GitHub Repo](https://github.com/coqui-ai/TTS)
30
+ # **Uses**
31
+
32
+ Install dependencies:
33
+ ```python
34
+ !pip install TTS
35
+ !sudo apt-get -y install espeak-ng
36
+ ```
37
+
38
+ Generate audio from text:
39
+
40
+ ##### using cli:
41
+ ```python
42
+ !tts --text "زندگی فقط یک بار است؛ از آن به خوبی استفاده کن" \
43
+ --model_path "best_model_91323.pth" \
44
+ --config_path "config.json" \
45
+ --out_path "speech1.wav"
46
+ ```
47
+ ##### python api:
48
+
49
+ ```python
50
+
51
+ from TTS.config import load_config
52
+ from TTS.utils.manage import ModelManager
53
+ from TTS.utils.synthesizer import Synthesizer
54
+
55
+ config="config.json"
56
+ model="best_model_91323.pth"
57
+
58
+ model_path =model # Absolute path to the model checkpoint.pth
59
+ config_path =config # Absolute path to the model config.json
60
+
61
+ text=".زندگی فقط یک بار است؛ از آن به خوبی استفاده کن"
62
+
63
+ synthesizer = Synthesizer(
64
+ model_path, config_path
65
+ )
66
+ wavs = synthesizer.tts(text)
67
+ synthesizer.save_wav(wavs, 'sp.wav')
68
+ ```
69
+ Display audio:
70
+
71
+
72
+ ```python
73
+ import IPython
74
+ IPython.display.Audio('sp.wav')
75
+ ```
76
+
77
+
78
+ - **Hours used:** 10
79
+ - **Cloud Provider:** kaggle
80
+
81
+
82
+
83
+ # How to Get Started with the Model
84
+
85
+ Use the code below to get started with the model.
86
+
87
+ <details>
88
+ <summary> Click to expand </summary>
89
+
90
+ More information needed
91
+
92
+ </details>