File size: 3,134 Bytes
59a8499
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
---
base_model: Prince-1/orpheus_3b_0.1_ft_16bit
tags:
- bitsandbytes
- llama
- text-generation-inference
- transformers
- text-to-speech
- trl
- tts
- onnx
- onnxruntime-genai
license: apache-2.0
library_name: transformers
language:
- en
datasets:
- MrDragonFox/Elise
---

# Uploaded  model

- **Converted by:** Prince-1
- **License:** apache-2.0
- **Original model :** Prince-1/orpheus_3b_0.1_ft_16bit

[<img src="https://raw.githubusercontent.com/microsoft/onnxruntime/main/docs/images/ONNX_Runtime_logo_dark.png" width="200"/>](https://github.com/microsoft/onnxruntime-genai)


Orpheus TTS is a state-of-the-art, Llama-based Speech-LLM designed for high-quality, empathetic text-to-speech generation. This model has been finetuned to deliver human-level speech synthesis, achieving exceptional clarity, expressiveness, and real-time streaming performances.

# Model Details

### Model Capabilities

- **Human-Like Speech**: Natural intonation, emotion, and rhythm that is superior to SOTA closed source models
- **Zero-Shot Voice Cloning**: Clone voices without prior fine-tuning
- **Guided Emotion and Intonation**: Control speech and emotion characteristics with simple tags
- **Low Latency**: ~200ms streaming latency for realtime applications, reducible to ~100ms with input streaming

# Prerequisites

Before starting the conversion process, ensure your system meets the following requirements:

- NVIDIA GPU with CUDA toolkit installe0d

- Minimum 16 GB RAM (recommended)

- Python with pip installed

### Model Sources

- **GitHub Repo:** [https://github.com/canopyai/Orpheus-TTS](https://github.com/canopyai/Orpheus-TTS)
- **Blog Post:** [https://canopylabs.ai/model-releases](https://canopylabs.ai/model-releases)
- **Colab Inference Notebook:** [notebook link](https://colab.research.google.com/drive/1KhXT56UePPUHhqitJNUxq63k-pQomz3N?usp=sharing)


# Conversion Steps

## Clone the Repository

1. First, clone the official ONNX Runtime GenAI repository:

```bash
git clone https://github.com/microsoft/onnxruntime-genai
```

## Download Huggingface model

2. Download the Huggingface model using the following cli command

``` bash 
huggingface-cli download Prince-1/orpheus_3b_0.1_ft_16bit  --local-dir main
```

## Run the Model Builder

3. Use the model builder script to convert the Orpheus 3B model to ONNX format:

```bash
# Set the path to the builder script
$script_path="onnxruntime-genai/src/python/py/models/builder.py"
# Run the conversion
python $script_path -m "Prince-1/orpheus_3b_0.1_ft_16bit" -i "main" -o "onnx" -p "fp16" -e cuda
```

The command parameters:

**-m**: The model name/path (HuggingFace model identifier)

**-o**: Output directory for the ONNX model

**-p**: Precision setting (fp16 for half-precision floating point)

**-e**: Execution provider (cuda for NVIDIA GPU acceleration)


# Model Misuse
Do not use our models for impersonation without consent, misinformation or deception (including fake news or fraudulent calls), or any illegal or harmful activity. By using this model, you agree to follow all applicable laws and ethical guidelines. We disclaim responsibility for any use.