Skip to content

Commit 2000d22

Browse files
committed
update voice cloning notebook
1 parent 97d3fb4 commit 2000d22

File tree

1 file changed

+9
-16
lines changed

1 file changed

+9
-16
lines changed

notebooks/RealTimeVoiceCloning.ipynb

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
{
1818
"cell_type": "markdown",
1919
"metadata": {
20-
"id": "IhDehA7sT-Gx",
21-
"colab_type": "text"
20+
"id": "IhDehA7sT-Gx"
2221
},
2322
"source": [
2423
"# Real-Time Voice Cloning\n",
@@ -38,9 +37,7 @@
3837
"cell_type": "code",
3938
"metadata": {
4039
"id": "EfkTM9TjUCRx",
41-
"colab_type": "code",
42-
"cellView": "form",
43-
"colab": {}
40+
"cellView": "form"
4441
},
4542
"source": [
4643
"#@title Setup CorentinJ/Real-Time-Voice-Cloning\n",
@@ -65,7 +62,7 @@
6562
" !pip install -q https://github.com/tugstugi/dl-colab-notebooks/archive/colab_utils.zip\n",
6663
"\n",
6764
" # download pretrained model\n",
68-
" !cd {project_name} && gdown https://drive.google.com/uc?id=1n1sPXvT34yXFLT47QZA6FIRGrwMeSsZc && unzip pretrained.zip\n",
65+
" !cd {project_name} && wget https://github.com/blue-fish/Real-Time-Voice-Cloning/releases/download/v1.0/pretrained.zip && unzip -o pretrained.zip\n",
6966
"\n",
7067
"import sys\n",
7168
"sys.path.append(project_name)\n",
@@ -82,19 +79,17 @@
8279
"from pathlib import Path\n",
8380
"\n",
8481
"encoder.load_model(project_name / Path(\"encoder/saved_models/pretrained.pt\"))\n",
85-
"synthesizer = Synthesizer(project_name / Path(\"synthesizer/saved_models/logs-pretrained/taco_pretrained\"))\n",
82+
"synthesizer = Synthesizer(project_name / Path(\"synthesizer/saved_models/pretrained/pretrained.pt\"))\n",
8683
"vocoder.load_model(project_name / Path(\"vocoder/saved_models/pretrained/pretrained.pt\"))"
8784
],
88-
"execution_count": 0,
85+
"execution_count": null,
8986
"outputs": []
9087
},
9188
{
9289
"cell_type": "code",
9390
"metadata": {
9491
"id": "vBeMoBxLkDKN",
95-
"colab_type": "code",
96-
"cellView": "form",
97-
"colab": {}
92+
"cellView": "form"
9893
},
9994
"source": [
10095
"#@title Record or Upload\n",
@@ -128,16 +123,14 @@
128123
" #button.on_click(_upload_audio)\n",
129124
" _upload_audio(\"\")"
130125
],
131-
"execution_count": 0,
126+
"execution_count": null,
132127
"outputs": []
133128
},
134129
{
135130
"cell_type": "code",
136131
"metadata": {
137132
"id": "WZjKkvGF1Y-i",
138-
"colab_type": "code",
139-
"cellView": "form",
140-
"colab": {}
133+
"cellView": "form"
141134
},
142135
"source": [
143136
"#@title Synthesize a text { run: \"auto\" }\n",
@@ -157,7 +150,7 @@
157150
"else:\n",
158151
" synthesize(embedding, text)"
159152
],
160-
"execution_count": 0,
153+
"execution_count": null,
161154
"outputs": []
162155
}
163156
]

0 commit comments

Comments
 (0)