Skip to content

Commit

Permalink
test: update test voices and notebook (#387)
Browse files Browse the repository at this point in the history
  • Loading branch information
34j authored Apr 18, 2023
1 parent d08b155 commit a798ed6
Show file tree
Hide file tree
Showing 25 changed files with 26 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ cython_debug/

# additional files
tests/**/*.wav
!tests/dataset_raw/34j/**/*.wav
!tests/dataset_raw/test/**/*.wav
tests/**/*.npy
tests/**/*.pt
tests/**/*.txt
Expand Down
29 changes: 25 additions & 4 deletions notebooks/so-vits-svc-fork-4.0.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,22 @@
"source": [
"#@title Get the author's voice as a source\n",
"import random\n",
"NAME = str(random.randint(1, 100))\n",
"!wget -N \"https://github.com/34j/34j/raw/main/jvs-parallel100/{NAME}.wav\"\n",
"NAME = str(random.randint(1, 49))\n",
"TYPE = \"fsd50k\" #@param [\"\", \"digit\", \"dog\", \"fsd50k\"]\n",
"CUSTOM_FILEPATH = \"\" #@param {type: \"string\"}\n",
"if CUSTOM_FILEPATH != \"\":\n",
" NAME = CUSTOM_FILEPATH\n",
"else:\n",
" # it is extremely difficult to find a voice that can download from the internet directly\n",
" if TYPE == \"dog\":\n",
" !wget -N f\"https://huggingface.co/datasets/437aewuh/dog-dataset/resolve/main/dogs/dogs_{NAME:.0000}.wav\" -O {NAME}.wav\n",
" elif TYPE == \"digit\":\n",
" # george, jackson, lucas, nicolas, ...\n",
" !wget -N f\"https://github.com/Jakobovski/free-spoken-digit-dataset/raw/master/recordings/0_george_{NAME}.wav\" -O {NAME}.wav\n",
" elif TYPE == \"fsd50k\":\n",
" !wget -N f\"https://huggingface.co/datasets/Fhrozen/FSD50k/blob/main/clips/dev/{10000+int(NAME)}.wav\" -O {NAME}.wav\n",
" else:\n",
" !wget -N f\"https://zunko.jp/sozai/utau/voice_{\"kiritan\" if NAME < 25 else \"itako\"}{NAME % 5 + 1}.wav\" -O {NAME}.wav\n",
"from IPython.display import Audio, display\n",
"display(Audio(f\"{NAME}.wav\"))"
]
Expand All @@ -209,7 +223,6 @@
"#@title Use trained model\n",
"#@markdown **Put your .wav file in `so-vits-svc-fork/audio` directory**\n",
"from IPython.display import Audio, display\n",
"NAME = 'your audio file name' #@param {type: \"string\"}\n",
"!svc infer drive/MyDrive/so-vits-svc-fork/audio/{NAME}.wav -m drive/MyDrive/so-vits-svc-fork/logs/44k/ -c drive/MyDrive/so-vits-svc-fork/logs/44k/config.json\n",
"display(Audio(f\"drive/MyDrive/so-vits-svc-fork/audio/{NAME}.out.wav\", autoplay=True))"
]
Expand Down Expand Up @@ -286,7 +299,15 @@
"name": "python3"
},
"language_info": {
"name": "python"
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3"
}
},
"nbformat": 4,
Expand Down
Binary file removed tests/dataset_raw/34j/nested/1.wav
Binary file not shown.
Binary file removed tests/dataset_raw/34j/nested/10.wav
Binary file not shown.
Binary file removed tests/dataset_raw/34j/nested/2.wav
Binary file not shown.
Binary file removed tests/dataset_raw/34j/nested/3.wav
Binary file not shown.
Binary file removed tests/dataset_raw/34j/nested/4.wav
Binary file not shown.
Binary file removed tests/dataset_raw/34j/nested/5.wav
Binary file not shown.
Binary file removed tests/dataset_raw/34j/nested/6.wav
Binary file not shown.
Binary file removed tests/dataset_raw/34j/nested/7.wav
Binary file not shown.
Binary file removed tests/dataset_raw/34j/nested/8.wav
Binary file not shown.
Binary file removed tests/dataset_raw/34j/nested/9.wav
Binary file not shown.
Binary file removed tests/dataset_raw/34j/nested/あ.wav
Binary file not shown.
Binary file added tests/dataset_raw/test/LJ001-0001.wav
Binary file not shown.
Binary file added tests/dataset_raw/test/LJ001-0002.wav
Binary file not shown.
Binary file added tests/dataset_raw/test/LJ001-0003.wav
Binary file not shown.
Binary file added tests/dataset_raw/test/LJ001-0004.wav
Binary file not shown.
Binary file added tests/dataset_raw/test/LJ001-0005.wav
Binary file not shown.
Binary file added tests/dataset_raw/test/LJ001-0006.wav
Binary file not shown.
Binary file added tests/dataset_raw/test/LJ001-0007.wav
Binary file not shown.
Binary file added tests/dataset_raw/test/LJ001-0008.wav
Binary file not shown.
Binary file added tests/dataset_raw/test/LJ001-0009.wav
Binary file not shown.
Binary file added tests/dataset_raw/test/LJ001-0010.wav
Binary file not shown.
Binary file added tests/dataset_raw/test/nested/LJ001-0001.wav
Binary file not shown.
Binary file added tests/dataset_raw/test/nested/に.wav
Binary file not shown.

0 comments on commit a798ed6

Please sign in to comment.