zcrate.m
资源名称:speech.rar [点击查看]
上传用户:ay_070428
上传日期:2014-12-04
资源大小:11427k
文件大小:0k
源码类别:
语音合成与识别
开发平台:
Matlab
- function count = zcrate(frame)
- % ZCRATE Zero-crossing rate for a single frame
- %
- % count = zcrate(frame)
- % frame: a frame of signal, or a matrix where each column is a frame
- % count: zero-crossing count
- %
- % Note that the original signal (before being framed) must be
- % zero-mean'ed.
- % Roger Jang, 990908
- count = sum(diff(sign(frame))~=0);