Skip to main content

Evaluate speech enhancemnt model performance

Project description

Speech Enhancement Model Evaluation

This is a python package to evaluate your speech enhancement model performance.

Installation

pip install model-evaluation-777 -i https://pypi.org/simple

PESQ and STOI Evaluation

def evaluate(ref_dir="/media/youwei/Chauncey's/VERSO_Dataset/test/clean/", deg_dir="/media/youwei/Chauncey's/VERSO_Dataset/test/noisy/", fs=16000):
    '''
    Args:
        ref_dir: reference signal directory
        deg_dir: degration signal directory
    Returns:
        pesq_score_average, stoi_score_average
    '''
from model_evaluation import stoi_pesq
pesq_score, stoi_score = stoi_pesq.evaluate(ref_dir=ref_dir, deg_dir=deg_dir, fs=16000)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

model-evaluation-777-1.0.0.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distribution

model_evaluation_777-1.0.0-py3-none-any.whl (4.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page