File size: 376 Bytes
f2cac03
 
e88666e
 
 
 
f2cac03
e88666e
f2cac03
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import librosa

import sys, os
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
from config import TRAIN_AUDIO

# just to check the audio information
audio_path = os.path.join(TRAIN_AUDIO, 'dia47_utt11.mp4')

audio, sr = librosa.load(audio_path, sr=None)

print("Sampling rate:", sr)
print("Audio length:", len(audio))
print("Duration (seconds):", len(audio)/sr)