speech-emotion-recognition / src /preprocessing /audio_preprocessing_test.py
Laila16's picture
test and change path
e88666e
Raw
History Blame Contribute Delete
289 Bytes
import sys, os
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
from config import TRAIN_AUDIO
from preprocessing.audio_preprocessing import preprocess_audio
sample_file = os.path.join(TRAIN_AUDIO, 'dia47_utt11.mp4')
audio = preprocess_audio(sample_file)
print(audio.shape)