Beispiel #1
0
def analyze_soundfiles(path, resample_to=8000):
    results = {}
    for filename in ad.filelist(path):
        f, samplerate = open_file(filename)
        #se, se_t, se_sgments, energy, en_t, energy_segments = analyze(f, samplerate)
        results[filename] = analyze(f, samplerate)
    return results
Beispiel #2
0
def analyze_soundfiles(path, resample_to=8000):
    results = {}
    for filename in ad.filelist(path):
        f, samplerate = open_file(filename)
        #se, se_t, se_sgments, energy, en_t, energy_segments = analyze(f, samplerate)
        results[filename] = analyze(f, samplerate)
    return results
Beispiel #3
0
from __future__ import print_function
import activity_detection as ad
from matplotlib.pyplot import *
from scipy import signal
import sigproc as sigutil
import numpy as np
from aubio import source, pitch, freqtomidi
import evaluation as eva

try:
    try:
        import scikits.audiolab as al
    except ImportError:
        import audiolab as al
except ImportError:
    al = None
    from scipy.io import wavfile

sounds = []
for path in ad.filelist(ad.audio_path):
    sound = ad.read_file(path)
    if sound != None:
        sounds.append(sound)