Add os import
Browse files- handler.py +1 -0
handler.py
CHANGED
|
@@ -4,6 +4,7 @@ from utils.audio_utils import load_audio, STR_CH_FIRST
|
|
| 4 |
from typing import Dict, List, Any
|
| 5 |
import numpy as np
|
| 6 |
import librosa
|
|
|
|
| 7 |
|
| 8 |
def preprocess_audio(audio_signal, sr, duration=10, target_sr=16000):
|
| 9 |
n_samples = int(duration * target_sr)
|
|
|
|
| 4 |
from typing import Dict, List, Any
|
| 5 |
import numpy as np
|
| 6 |
import librosa
|
| 7 |
+
import os
|
| 8 |
|
| 9 |
def preprocess_audio(audio_signal, sr, duration=10, target_sr=16000):
|
| 10 |
n_samples = int(duration * target_sr)
|