Spaces:
Paused
Paused
Update src/generate_batch.py
Browse files- src/generate_batch.py +1 -0
src/generate_batch.py
CHANGED
@@ -4,6 +4,7 @@ import numpy as np
|
|
4 |
import random
|
5 |
import scipy.io as scio
|
6 |
import src.utils.audio as audio
|
|
|
7 |
|
8 |
def crop_pad_audio(wav, audio_length):
|
9 |
if len(wav) > audio_length:
|
|
|
4 |
import random
|
5 |
import scipy.io as scio
|
6 |
import src.utils.audio as audio
|
7 |
+
import subprocess
|
8 |
|
9 |
def crop_pad_audio(wav, audio_length):
|
10 |
if len(wav) > audio_length:
|