USAGE.md 3.75 KB
Newer Older
qinzy's avatar
qinzy committed
1
2
3
# Usage

## Table of Content
Alienpups's avatar
Alienpups committed
4

Zengyi Qin's avatar
Zengyi Qin committed
5
- [Quick Use](#quick-use): directly use OpenVoice without installation.
qinzy's avatar
qinzy committed
6
- [Linux Install](#linux-install): for researchers and developers only.
qinzy's avatar
qinzy committed
7
8
    - [V1](#openvoice-v1)
    - [V2](#openvoice-v2)
Zengyi Qin's avatar
Zengyi Qin committed
9
- [Install on Other Platforms](#install-on-other-platforms): unofficial installation guide contributed by the community
qinzy's avatar
qinzy committed
10

Zengyi Qin's avatar
Zengyi Qin committed
11
## Quick Use
qinzy's avatar
qinzy committed
12

Zengyi Qin's avatar
Zengyi Qin committed
13
The input speech audio of OpenVoice can be in **Any Language**. OpenVoice can clone the voice in that speech audio, and use the voice to speak in multiple languages. For quick use, we recommend you to try the already deployed services:
qinzy's avatar
qinzy committed
14

Zengyi Qin's avatar
Zengyi Qin committed
15
- [British English](https://app.myshell.ai/widget/vYjqae)
Zengyi Qin's avatar
Zengyi Qin committed
16
- [American English](https://app.myshell.ai/widget/nEFFJf)
Zengyi Qin's avatar
Zengyi Qin committed
17
18
19
20
21
22
23
- [Indian English](https://app.myshell.ai/widget/V3iYze)
- [Australian English](https://app.myshell.ai/widget/fM7JVf)
- [Spanish](https://app.myshell.ai/widget/NNFFVz)
- [French](https://app.myshell.ai/widget/z2uyUz)
- [Chinese](https://app.myshell.ai/widget/fU7nUz)
- [Japanese](https://app.myshell.ai/widget/IfIB3u)
- [Korean](https://app.myshell.ai/widget/q6ZjIn)
qinzy's avatar
qinzy committed
24
25

## Minimal Demo
Alienpups's avatar
Alienpups committed
26

qinzy's avatar
qinzy committed
27
For users who want to quickly try OpenVoice and do not require high quality or stability, click any of the following links:
Alienpups's avatar
Alienpups committed
28

qinzy's avatar
qinzy committed
29
30
31
32
33
34
35
<div align="center">
    <a href="https://app.myshell.ai/bot/z6Bvua/1702636181"><img src="../resources/myshell-hd.png" height="28"></a>
    &nbsp;&nbsp;&nbsp;&nbsp;
    <a href="https://huggingface.co/spaces/myshell-ai/OpenVoice"><img src="../resources/huggingface.png" height="32"></a>
</div>

## Linux Install
Alienpups's avatar
Alienpups committed
36

qinzy's avatar
qinzy committed
37
This section is only for developers and researchers who are familiar with Linux, Python and PyTorch. Clone this repo, and run
Alienpups's avatar
Alienpups committed
38

qinzy's avatar
qinzy committed
39
40
41
```
conda create -n openvoice python=3.9
conda activate openvoice
qinzy's avatar
qinzy committed
42
43
44
git clone git@github.com:myshell-ai/OpenVoice.git
cd OpenVoice
pip install -e .
qinzy's avatar
qinzy committed
45
```
Alienpups's avatar
Alienpups committed
46

qinzy's avatar
qinzy committed
47
48
49
50
No matter if you are using V1 or V2, the above installation is the same.

### OpenVoice V1

qinzy's avatar
qinzy committed
51
Download the checkpoint from [here](https://myshell-public-repo-host.s3.amazonaws.com/openvoice/checkpoints_1226.zip) and extract it to the `checkpoints` folder.
qinzy's avatar
qinzy committed
52
53

**1. Flexible Voice Style Control.**
Sulthan Abiyyu Hakim's avatar
Sulthan Abiyyu Hakim committed
54
Please see [`demo_part1.ipynb`](../demo_part1.ipynb) for an example usage of how OpenVoice enables flexible style control over the cloned voice.
qinzy's avatar
qinzy committed
55
56

**2. Cross-Lingual Voice Cloning.**
Sulthan Abiyyu Hakim's avatar
Sulthan Abiyyu Hakim committed
57
Please see [`demo_part2.ipynb`](../demo_part2.ipynb) for an example for languages seen or unseen in the MSML training set.
qinzy's avatar
qinzy committed
58
59
60

**3. Gradio Demo.**. We provide a minimalist local gradio demo here. We strongly suggest the users to look into `demo_part1.ipynb`, `demo_part2.ipynb` and the [QnA](QA.md) if they run into issues with the gradio demo. Launch a local gradio demo with `python -m openvoice_app --share`.

qinzy's avatar
qinzy committed
61
62
### OpenVoice V2

qinzy's avatar
qinzy committed
63
Download the checkpoint from [here](https://myshell-public-repo-host.s3.amazonaws.com/openvoice/checkpoints_v2_0417.zip) and extract it to the `checkpoints_v2` folder.
qinzy's avatar
qinzy committed
64
65
66
67
68
69
70
71

Install [MeloTTS](https://github.com/myshell-ai/MeloTTS):
```
pip install git+https://github.com/myshell-ai/MeloTTS.git
python -m unidic download
```

**Demo Usage.** Please see [`demo_part3.ipynb`](../demo_part3.ipynb) for example usage of OpenVoice V2. Now it natively supports English, Spanish, French, Chinese, Japanese and Korean.
qinzy's avatar
qinzy committed
72

Alienpups's avatar
Alienpups committed
73

Zengyi Qin's avatar
Zengyi Qin committed
74
## Install on Other Platforms
Alienpups's avatar
Alienpups committed
75

Zengyi Qin's avatar
Zengyi Qin committed
76
77
78
79
80
81
82
83
This section provides the unofficial installation guides by open-source contributors in the community:

- Windows
  - [Guide](https://github.com/Alienpups/OpenVoice/blob/main/docs/USAGE_WINDOWS.md) by [@Alienpups](https://github.com/Alienpups)
  - You are welcome to contribute if you have a better installation guide. We will list you here.
- Docker
  - [Guide](https://github.com/StevenJSCF/OpenVoice/blob/update-docs/docs/DF_USAGE.md) by [@StevenJSCF](https://github.com/StevenJSCF)
  - You are welcome to contribute if you have a better installation guide. We will list you here.