
# **persian-tts-male-vits**

- persian-tts-male vits model for text to speech purposes.
- Persian  فارسی
- Single-speaker male voice
- 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
- [GitHub Repo](https://github.com/karim23657/Persian-tts-coqui)
- <span style="color: #0072ff;font-weight: bold;">[Demo](https://huggingface.co/spaces/Kamtera/Persian-tts-CoquiTTS)</span>

# **info**

finetuned <span style="color: #d0212d;font-weight: bold;">[persian-tts-female-vits](https://huggingface.co/Kamtera/persian-tts-female-vits)</span>
  model on <span style="color: #d0212d;font-weight: bold;">[persian-tts-dataset-male](https://www.kaggle.com/datasets/magnoliasis/persian-tts-dataset)</span>
  dataset
  
# **Uses**

Install dependencies:
```python
!pip install TTS
!sudo apt-get -y install espeak-ng
```

Generate audio from text:

##### using cli:
```python
!tts --text "زندگی فقط یک بار است؛ از آن به خوبی استفاده کن" \
     --model_path "best_model_91323.pth" \
     --config_path "config.json" \
     --out_path "speech1.wav"
```
##### python api:

```python

from TTS.config import load_config
from TTS.utils.manage import ModelManager
from TTS.utils.synthesizer import Synthesizer

config="config.json" 
model="best_model_91323.pth"

model_path =model # Absolute path to the model checkpoint.pth
config_path =config # Absolute path to the model config.json

text=".زندگی فقط یک بار است؛ از آن به خوبی استفاده کن"

synthesizer = Synthesizer(
    model_path, config_path
)
wavs = synthesizer.tts(text)
synthesizer.save_wav(wavs, 'sp.wav')
```
Display audio:


```python
import IPython
IPython.display.Audio('sp.wav')
```


- **Hours used:** 10
- **Cloud Provider:** kaggle



# How to Get Started with the Model

Use the code below to get started with the model.

<details>
<summary> Click to expand </summary>

More information needed

</details>
{"language": "fa", "license": "openrail", "library_name": "TTS", "tags": ["Persian", "TTS", "Farsi", "Coqui", "CoquiTTS", "pytorch", "audio", "text-to-speech"], "datasets": ["persian-tts-dataset"], "task": "text-to-speech", "widget": [{"text": ".\u0632\u0646\u062f\u06af\u06cc \u0641\u0642\u0637 \u06cc\u06a9 \u0628\u0627\u0631 \u0627\u0633\u062a\u061b \u0627\u0632 \u0622\u0646 \u0628\u0647 \u062e\u0648\u0628\u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646", "example_title": "Hello, this is a test run."}], "pipeline_tag": "text-to-speech"}
TTS tensorboard Persian Farsi Coqui CoquiTTS pytorch audio text-to-speech fa dataset:persian-tts-dataset license:openrail has_space region:us
TAGS
#TTS #tensorboard #Persian #Farsi #Coqui #CoquiTTS #pytorch #audio #text-to-speech #fa #dataset-persian-tts-dataset #license-openrail #has_space #region-us 


# persian-tts-male-vits

- persian-tts-male vits model for text to speech purposes.
- Persian  فارسی
- Single-speaker male voice
- finetuned persian-tts-female-vits model on persian-tts-dataset-male  dataset
- GitHub Repo
- <span style="color: #0072ff;font-weight: bold;">Demo</span>

# info

finetuned <span style="color: #d0212d;font-weight: bold;">persian-tts-female-vits</span>
  model on <span style="color: #d0212d;font-weight: bold;">persian-tts-dataset-male</span>
  dataset
  
# Uses

Install dependencies:


Generate audio from text:

##### using cli:

##### python api:


Display audio:





- Hours used: 10
- Cloud Provider: kaggle



# How to Get Started with the Model

Use the code below to get started with the model.

<details>
<summary> Click to expand </summary>

More information needed

</details>
# persian-tts-male-vits

- persian-tts-male vits model for text to speech purposes.
- Persian  فارسی
- Single-speaker male voice
- finetuned persian-tts-female-vits model on persian-tts-dataset-male  dataset
- GitHub Repo
- <span style="color: #0072ff;font-weight: bold;">Demo</span> # info

finetuned <span style="color: #d0212d;font-weight: bold;">persian-tts-female-vits</span>
  model on <span style="color: #d0212d;font-weight: bold;">persian-tts-dataset-male</span>
  dataset # Uses

Install dependencies:


Generate audio from text: ##### using cli: ##### python api:


Display audio:





- Hours used: 10
- Cloud Provider: kaggle # How to Get Started with the Model

Use the code below to get started with the model.

<details>
<summary> Click to expand </summary>

More information needed

</details>
TAGS
#TTS #tensorboard #Persian #Farsi #Coqui #CoquiTTS #pytorch #audio #text-to-speech #fa #dataset-persian-tts-dataset #license-openrail #has_space #region-us 
 # persian-tts-male-vits

- persian-tts-male vits model for text to speech purposes.
- Persian  فارسی
- Single-speaker male voice
- finetuned persian-tts-female-vits model on persian-tts-dataset-male  dataset
- GitHub Repo
- <span style="color: #0072ff;font-weight: bold;">Demo</span> # info

finetuned <span style="color: #d0212d;font-weight: bold;">persian-tts-female-vits</span>
  model on <span style="color: #d0212d;font-weight: bold;">persian-tts-dataset-male</span>
  dataset # Uses

Install dependencies:


Generate audio from text: ##### using cli: ##### python api:


Display audio:





- Hours used: 10
- Cloud Provider: kaggle # How to Get Started with the Model

Use the code below to get started with the model.

<details>
<summary> Click to expand </summary>

More information needed

</details>
TAGS
#TTS #tensorboard #Persian #Farsi #Coqui #CoquiTTS #pytorch #audio #text-to-speech #fa #dataset-persian-tts-dataset #license-openrail #has_space #region-us 
# persian-tts-male-vits

- persian-tts-male vits model for text to speech purposes.
- Persian  فارسی
- Single-speaker male voice
- finetuned persian-tts-female-vits model on persian-tts-dataset-male  dataset
- GitHub Repo
- <span style="color: #0072ff;font-weight: bold;">Demo</span># info

finetuned <span style="color: #d0212d;font-weight: bold;">persian-tts-female-vits</span>
  model on <span style="color: #d0212d;font-weight: bold;">persian-tts-dataset-male</span>
  dataset# Uses

Install dependencies:


Generate audio from text:##### using cli:##### python api:


Display audio:





- Hours used: 10
- Cloud Provider: kaggle# How to Get Started with the Model

Use the code below to get started with the model.

<details>
<summary> Click to expand </summary>

More information needed

</details>