Skip to content

Commit 1711e8d

Browse files
[DOCUMENTATION] Refactored the readme file and added common cuDNN library issues
1 parent ce65d67 commit 1711e8d

File tree

2 files changed

+92
-21
lines changed

2 files changed

+92
-21
lines changed

docs/QA.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,36 @@ When calling `get_vad_segments` from `se_extractor.py`, there should be a messag
3737
Downloading: "https://github.com/snakers4/silero-vad/zipball/master" to /home/user/.cache/torch/hub/master.zip
3838
```
3939
The download would fail if your machine can not access github. Please download the zip from "https://github.com/snakers4/silero-vad/zipball/master" manually and unzip it to `/home/user/.cache/torch/hub/snakers4_silero-vad_master`. You can also see [this issue](https://github.com/myshell-ai/OpenVoice/issues/57) for solutions for other versions of silero.
40+
41+
## Missing `cuDNN` libraries
42+
#### Missing `cuDNN` libraries can be downloaded from the url below (requires login but you can just create a new account):
43+
44+
[https://developer.nvidia.com/rdp/cudnn-archive](https://developer.nvidia.com/rdp/cudnn-archive)
45+
46+
At the time of writing the required version of `cuDNN` for OpenVoice is `8.x` for `CUDA 11.x`.
47+
48+
#### Extracting the `cuDNN` libraries:
49+
```bash
50+
tar -xvf <path_to_downloaded_cuDNN_archive>
51+
```
52+
53+
Your `cuDNN` libraries will be in the `bin` directory of the extracted archive.
54+
55+
## My system can't find downloaded `cuDNN` libraries
56+
57+
If you already know the path to the required `cuDNN` libraries, you can set the `LD_LIBRARY_PATH` environment variable to that path. You can do this by running the following commands:
58+
59+
Check if the `LD_LIBRARY_PATH` environment variable is set.
60+
```bash
61+
echo $LD_LIBRARY_PATH
62+
```
63+
64+
- #### If it's empty:
65+
```bash
66+
export LD_LIBRARY_PATH=<path_to_cuDNN_libraries>
67+
```
68+
69+
- #### Otherwise:
70+
```bash
71+
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:<path_to_cuDNN_libraries>
72+
```

docs/USAGE.md

Lines changed: 59 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
## Table of Content
44

55
- [Quick Use](#quick-use): directly use OpenVoice without installation.
6-
- [Linux Install](#linux-install): for researchers and developers only.
7-
- [V1](#openvoice-v1)
8-
- [V2](#openvoice-v2)
6+
- [Minimal Demo](#minimal-demo): for users who want to quickly try OpenVoice.
7+
- [Linux Install](#linux-install-for-both-v1-and-v2): installation guide for developers and researchers on Linux.
8+
- [Example Usage](#example-usage): example usage of OpenVoice V1 and V2.
99
- [Install on Other Platforms](#install-on-other-platforms): unofficial installation guide contributed by the community
1010

1111
## Quick Use
@@ -32,23 +32,67 @@ For users who want to quickly try OpenVoice and do not require high quality or s
3232
<a href="https://huggingface.co/spaces/myshell-ai/OpenVoice"><img src="../resources/huggingface.png" height="32"></a>
3333
</div>
3434

35-
## Linux Install
35+
## Linux Install (for both V1 and V2)
3636

37-
This section is only for developers and researchers who are familiar with Linux, Python and PyTorch. Clone this repo, and run
37+
This section is only for developers and researchers who are familiar with Linux, Python and PyTorch.
3838

39-
```
40-
conda create -n openvoice python=3.9
41-
conda activate openvoice
39+
### 1. Create a virtual environment:
40+
41+
- #### If you're using Conda
42+
```bash
43+
conda create -n openvoice python=3.9
44+
conda activate openvoice
45+
```
46+
47+
- #### If you're using Virtualenv
48+
```bash
49+
python3 -m venv <your_venv_name>
50+
source <your_venv_name>/bin/activate
51+
```
52+
53+
### 2. Clone the OpenVoice repository and enter the newly created directory:
54+
```bash
4255
git clone [email protected]:myshell-ai/OpenVoice.git
4356
cd OpenVoice
57+
```
58+
59+
### 3. Install in editable mode:
60+
```bash
4461
pip install -e .
4562
```
4663

47-
No matter if you are using V1 or V2, the above installation is the same.
64+
### 4. Install project dependencies:
65+
```bash
66+
pip install -r requirements.txt
67+
```
4868

49-
### OpenVoice V1
69+
### 5. Download the appropriate model checkpoint:
70+
71+
- #### OpenVoice V1:
72+
Download the checkpoint from [here](https://myshell-public-repo-hosting.s3.amazonaws.com/openvoice/checkpoints_1226.zip) and extract it to the `checkpoints` folder.
73+
74+
- #### OpenVoice V2:
75+
Download the checkpoint from [here](https://myshell-public-repo-hosting.s3.amazonaws.com/openvoice/checkpoints_v2_0417.zip) and extract it to the `checkpoints_v2` folder.
76+
77+
### 6. (OpenVoice V2 only) Install [MeloTTS](https://github.com/myshell-ai/MeloTTS):
78+
```
79+
pip install git+https://github.com/myshell-ai/MeloTTS.git
80+
python -m unidic download
81+
```
5082

51-
Download the checkpoint from [here](https://myshell-public-repo-hosting.s3.amazonaws.com/openvoice/checkpoints_1226.zip) and extract it to the `checkpoints` folder.
83+
### 7. (GPU) Running OpenVoice on GPU:
84+
85+
If you're seeing an error about missing `libcudnn_ops_infer.so.8` (or similar) when you run OpenVoice, that means you do not have all the necessary `cuDNN` libraries installed, or they have been placed in a directory that is not in your `LD_LIBRARY_PATH` environment variable.
86+
87+
To fix this problem see:
88+
89+
[Common Issues - Missing `cuDNN` libraries](QA.md#missing-cudnn-libraries)
90+
91+
[Common Issues - My system can't find downloaded `cuDNN` libraries](QA.md#my-system-cant-find-downloaded-cudnn-libraries)
92+
93+
## Example Usage
94+
95+
### OpenVoice V1
5296

5397
**1. Flexible Voice Style Control.**
5498
Please see [`demo_part1.ipynb`](../demo_part1.ipynb) for an example usage of how OpenVoice enables flexible style control over the cloned voice.
@@ -60,16 +104,7 @@ Please see [`demo_part2.ipynb`](../demo_part2.ipynb) for an example for language
60104

61105
### OpenVoice V2
62106

63-
Download the checkpoint from [here](https://myshell-public-repo-hosting.s3.amazonaws.com/openvoice/checkpoints_v2_0417.zip) and extract it to the `checkpoints_v2` folder.
64-
65-
Install [MeloTTS](https://github.com/myshell-ai/MeloTTS):
66-
```
67-
pip install git+https://github.com/myshell-ai/MeloTTS.git
68-
python -m unidic download
69-
```
70-
71-
**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.
72-
107+
**1. Demo usage of V2.** 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.
73108

74109
## Install on Other Platforms
75110

@@ -81,3 +116,6 @@ This section provides the unofficial installation guides by open-source contribu
81116
- Docker
82117
- [Guide](https://github.com/StevenJSCF/OpenVoice/blob/update-docs/docs/DF_USAGE.md) by [@StevenJSCF](https://github.com/StevenJSCF)
83118
- You are welcome to contribute if you have a better installation guide. We will list you here.
119+
120+
## Common Issues
121+
See [common issues](QA.md) for common issues and solutions.

0 commit comments

Comments
 (0)