Code Monkey home page Code Monkey logo

hello-good-boy's Introduction

语音数据性能检测工具

实现功能

1.支持各种评估指标

  1. SDR: Source-to-Distortion Ratio, 信号失真比

  2. SIR: Source to Interferences Ratio, 源信号干扰比

  3. SAR: Signal to Artifacts Ratio, 人造误差成分

  4. STOI: Short-Time Objective Intelligibility, 短时客观可懂度

  5. PESQ: Perceptual evaluation of speech quality, 感知语音质量评估

  6. SI-SNR: Scale-invariant source-to-noise ratio, 尺度不变信噪比

2.支持单个样本输入,也支持minibatch格式样本的输入

单样本 [C, T]

minibatch [B, C, T]

注:B batch; C channel; T length of audio

3.支持自动纠正输入信号与参考信号的计算排序,所利用的排序规则是最大化SI-SNR。有时候估计信号和参考通道间的排序是反的,本脚本可自动纠正。

输入格式

single sample:

Args:
	estimate:   numpy.ndarray, [C, T], reordered by best PIT permutation
	
	reference:  numpy.ndarray, [C, T]
	
	mixture:    numpy.ndarray, [T] or [C, T]
	
Returns:

	average_SDRi 
	
	average_SIRi
	
	average_SIRi
	
	average_STOIi
	
	average_PESQi
	
	average_SISNRi

minibatch:

Args:
	estimate:   numpy.ndarray, [B, C, T], reordered by best PIT permutation
	
	reference:  numpy.ndarray, [B, C, T]
	
	mixture:    numpy.ndarray, [B, T] or [B, C, T]
	
Returns:
	average_SDRi
	
	average_SIRi
	
	average_SIRi
	
	average_STOIi
	
	average_PESQi
	
	average_SISNRi

hello-good-boy's People

Contributors

bob-wangkkk avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.