We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa6e140 commit cb6de82Copy full SHA for cb6de82
torchaudio/datasets/commonvoice.py
@@ -179,6 +179,15 @@ def __init__(self,
179
"romansh sursilvan": "rm-sursilv"
180
}
181
182
+ if download:
183
+ raise RuntimeError(
184
+ "Common Voice dataset requires user agreement on the usage term, "
185
+ "and torchaudio no longer provides the download feature. "
186
+ "Please download the dataset manually and extract it in the root directory, "
187
+ "then provide the target language to `url` argument.")
188
+ if url not in languages:
189
+ raise ValueError(f"`url` must be one of available languages: {languages.keys()}")
190
+
191
if url in languages:
192
ext_archive = ".tar.gz"
193
language = languages[url]
0 commit comments