File size: 1,118 Bytes
9300d17
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
---
license: other
license_name: lfm1.0
license_link: https://www.liquid.ai/lfm-license
language:
- en
pipeline_tag: text-to-speech
library_name: mlx-audio
base_model:
- nineninesix/kani-tts-400m-0.3-pt
tags:
- mlx
- text-to-speech
- speech
- speech generation
- voice cloning
- tts
- mlx-audio
---
# mlx-community/kanitts-2

This model was converted to MLX format from [`nineninesix/kani-tts-400m-en`](https://huggingface.co/nineninesix/kani-tts-400m-en) using mlx-audio version **0.2.8**.

Refer to the [original model card](https://huggingface.co/nineninesix/kani-tts-400m-en) for more details on the model.

## Use with mlx-audio

```bash
pip install -U mlx-audio
```

### CLI Example:
```bash
python -m mlx_audio.tts.generate --model mlx-community/kanitts-2 --text "Hello, this is a test."
```

### Python Example:
```python        
from mlx_audio.tts.utils import load_model
from mlx_audio.tts.generate import generate_audio

model = load_model("mlx-community/kanitts-2")
generate_audio(
    model=model,
    text="Hello, this is a test.",
    ref_audio="path_to_audio.wav",
    file_prefix="test_audio",
)

```