You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/QA.md
+33Lines changed: 33 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,3 +37,36 @@ When calling `get_vad_segments` from `se_extractor.py`, there should be a messag
37
37
Downloading: "https://github.com/snakers4/silero-vad/zipball/master" to /home/user/.cache/torch/hub/master.zip
38
38
```
39
39
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):
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.
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.
38
38
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
42
55
git clone git@github.com:myshell-ai/OpenVoice.git
43
56
cd OpenVoice
57
+
```
58
+
59
+
### 3. Install in editable mode:
60
+
```bash
44
61
pip install -e .
45
62
```
46
63
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
+
```
48
68
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.
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.
[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
52
96
53
97
**1. Flexible Voice Style Control.**
54
98
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
60
104
61
105
### OpenVoice V2
62
106
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.
**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.
73
108
74
109
## Install on Other Platforms
75
110
@@ -81,3 +116,6 @@ This section provides the unofficial installation guides by open-source contribu
81
116
- Docker
82
117
-[Guide](https://github.com/StevenJSCF/OpenVoice/blob/update-docs/docs/DF_USAGE.md) by [@StevenJSCF](https://github.com/StevenJSCF)
83
118
- 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