Spaces:
Running
Running
update yt_download
Browse files
utils.py
CHANGED
@@ -3,8 +3,7 @@ import librosa
|
|
3 |
import numpy as np
|
4 |
|
5 |
def download_youtube_audio(url):
|
6 |
-
yt = YouTube(url
|
7 |
-
# yt = YouTube(url)
|
8 |
stream = yt.streams.filter(only_audio=True).first()
|
9 |
filename = stream.download()
|
10 |
audio, sr = librosa.load(filename, sr=44100, mono=False)
|
|
|
3 |
import numpy as np
|
4 |
|
5 |
def download_youtube_audio(url):
|
6 |
+
yt = YouTube(url)
|
|
|
7 |
stream = yt.streams.filter(only_audio=True).first()
|
8 |
filename = stream.download()
|
9 |
audio, sr = librosa.load(filename, sr=44100, mono=False)
|