2024-01-16 14:51:38 -05:00
# Usage
## Table of Content
2024-02-08 19:52:57 +01:00
2024-01-16 14:59:04 -05:00
- [Use in MyShell ](#use-in-myshell ): directly use the Instant Voice Clone and TTS services.
- [Minimal Demo ](#minimal-demo ): quickly try OpenVoice and do not require high quality.
- [Linux Install ](#linux-install ): for researchers and developers only.
2024-01-16 14:51:38 -05:00
## Use in MyShell
For most users, the most convenient way is to directly use the free TTS and Instant Voice Clone services in MyShell.
### TTS
2024-02-08 19:52:57 +01:00
2024-01-16 14:51:38 -05:00
Go to [https://app.myshell.ai/explore ](https://app.myshell.ai/explore ) and follow the instructions below:
2024-02-08 19:52:57 +01:00
2024-01-16 14:51:38 -05:00
<div align="center">
2024-01-16 14:55:34 -05:00
<img src="../resources/tts-guide.png" width="1200"/>
2024-01-16 14:51:38 -05:00
</div>
### Voice Clone
2024-02-08 19:52:57 +01:00
2024-01-16 14:51:38 -05:00
Go to [https://app.myshell.ai/explore ](https://app.myshell.ai/explore ) and follow the instructions below:
2024-02-08 19:52:57 +01:00
2024-01-16 14:51:38 -05:00
<div align="center">
2024-01-16 14:55:34 -05:00
<img src="../resources/voice-clone-guide.png" width="61200"/>
2024-01-16 14:51:38 -05:00
</div>
## Minimal Demo
2024-02-08 19:52:57 +01:00
2024-01-16 14:51:38 -05:00
For users who want to quickly try OpenVoice and do not require high quality or stability, click any of the following links:
2024-02-08 19:52:57 +01:00
2024-01-16 14:51:38 -05:00
<div align="center">
<a href="https://www.lepton.ai/playground/openvoice"><img src="../resources/lepton-hd.png" height="28"></a>
<a href="https://app.myshell.ai/bot/z6Bvua/1702636181"><img src="../resources/myshell-hd.png" height="28"></a>
<a href="https://huggingface.co/spaces/myshell-ai/OpenVoice"><img src="../resources/huggingface.png" height="32"></a>
</div>
## Linux Install
2024-02-08 19:52:57 +01:00
2024-01-16 14:51:38 -05:00
This section is only for developers and researchers who are familiar with Linux, Python and PyTorch. Clone this repo, and run
2024-02-08 19:52:57 +01:00
2024-01-16 14:51:38 -05:00
```
conda create -n openvoice python=3.9
conda activate openvoice
2024-02-19 18:44:06 +00:00
git clone git@github .com:myshell-ai/OpenVoice.git
cd OpenVoice
pip install -e .
2024-01-16 14:51:38 -05:00
```
2024-02-08 19:52:57 +01:00
2024-02-19 18:42:07 +00:00
Download the checkpoint from [here ](https://myshell-public-repo-hosting.s3.amazonaws.com/openvoice/checkpoints_1226.zip ) and extract it to the `checkpoints` folder
2024-01-16 14:51:38 -05:00
**1. Flexible Voice Style Control.**
2024-01-19 16:31:25 +07:00
Please see [`demo_part1.ipynb` ](../demo_part1.ipynb ) for an example usage of how OpenVoice enables flexible style control over the cloned voice.
2024-01-16 14:51:38 -05:00
**2. Cross-Lingual Voice Cloning.**
2024-01-19 16:31:25 +07:00
Please see [`demo_part2.ipynb` ](../demo_part2.ipynb ) for an example for languages seen or unseen in the MSML training set.
2024-01-16 14:51:38 -05:00
**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` .
**3. Advanced Usage.**
The base speaker model can be replaced with any model (in any language and style) that the user prefer. Please use the `se_extractor.get_se` function as demonstrated in the demo to extract the tone color embedding for the new base speaker.
**4. Tips to Generate Natural Speech.**
2024-01-19 16:31:25 +07:00
There are many single or multi-speaker TTS methods that can generate natural speech, and are readily available. By simply replacing the base speaker model with the model you prefer, you can push the speech naturalness to a level you desire.
2024-02-08 19:52:57 +01:00
## Windows Install (VS Code)
2024-02-08 19:53:52 +01:00
Please use [this guide ](https://github.com/Alienpups/OpenVoice/blob/main/docs/USAGE_WINDOWS.md ) if you want to install and use OpenVoice on Windows.