This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
""" | |
Multi-threaded download and conversion of Youtube videos to | |
audio files sampled at 16kHz. | |
Author: | |
- Francesco Paissan, 2023 | |
To run the script, use: | |
THREADS=4 ./download_csv_mt.py {CSV_PATH} {OUTPUT_FOLDER} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import print_function | |
from __future__ import absolute_import | |
from __future__ import division | |
import os | |
import warnings | |
import numpy as np | |
import tensorflow as tf | |
import keras.backend as K |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import print_function | |
from __future__ import absolute_import | |
from __future__ import division | |
import os | |
import warnings | |
import numpy as np | |
import tensorflow as tf | |
import keras.backend as K |