diff --git a/TTS/bin/resample.py b/TTS/bin/resample.py index d1a2f88a..080e2bad 100644 --- a/TTS/bin/resample.py +++ b/TTS/bin/resample.py @@ -65,4 +65,4 @@ if __name__ == '__main__': for i, _ in enumerate(p.imap_unordered(resample_file, audio_files)): pbar.update() - print('Done !') \ No newline at end of file + print('Done !') diff --git a/TTS/tts/utils/text/abbreviations.py b/TTS/tts/utils/text/abbreviations.py index 5551e364..579d7dcd 100644 --- a/TTS/tts/utils/text/abbreviations.py +++ b/TTS/tts/utils/text/abbreviations.py @@ -63,4 +63,4 @@ abbreviations_fr = [(re.compile('\\b%s\\.' % x[0], re.IGNORECASE), x[1]) ('Mlles', 'mesdemoiselles'), ('Mme', 'Madame'), ('Mmes', 'Mesdames'), - ]] \ No newline at end of file + ]] diff --git a/notebooks/dataset_analysis/CheckDatasetSNR.ipynb b/notebooks/dataset_analysis/CheckDatasetSNR.ipynb index 3a762e8f..91ecc954 100644 --- a/notebooks/dataset_analysis/CheckDatasetSNR.ipynb +++ b/notebooks/dataset_analysis/CheckDatasetSNR.ipynb @@ -4,7 +4,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "This notebook computes the average SNR a given Voice Dataset. If the SNR is too low, that might reduce the performance or prevent model to learn.\n", + "This notebook computes the average SNR a given Voice Dataset. If the SNR is too low, that might reduce the performance or prevent model to learn. SNR paper can be seen here: https://www.cs.cmu.edu/~robust/Papers/KimSternIS08.pdf\n", "\n", "To use this notebook, you need:\n", "- WADA SNR estimation: http://www.cs.cmu.edu/~robust/archive/algorithms/WADA_SNR_IS_2008/\n", @@ -118,7 +118,7 @@ "snrs = [tup[0] for tup in file_snrs]\n", "\n", "error_idxs = np.where(np.isnan(snrs) == True)[0]\n", - "error_files = [file_names[idx] for idx in error_idxs]\n", + "error_files = [wav_files[idx] for idx in error_idxs]\n", "\n", "file_snrs = [i for j, i in enumerate(file_snrs) if j not in error_idxs]\n", "file_names = [tup[1] for tup in file_snrs]\n", @@ -208,4 +208,4 @@ }, "nbformat": 4, "nbformat_minor": 4 -} +} \ No newline at end of file