资源简介
过零率、预加重、短时能量等的函数一目了然,是自学语音识别端点提取的好资料,在VS2010中编译通过
代码片段和文件信息
//
// Circular buffer member functions
//
// Bruce T. Lowerre Public domain 1995 1997
//
// $Log: cbuf.ccv $
// Revision 1.6 1997/08/06 19:35:15 lowerre
// removed sampling rate from classes
//
// Revision 1.5 1997/07/30 19:26:29 lowerre
// modifies read and peek routines again!
//
// Revision 1.4 1997/07/21 22:13:11 lowerre
// found bugs in the read routines reader not being updated properly
//
// Revision 1.3 1997/06/04 18:50:03 lowerre
// added eod check to available read
// fixed eod check in peek and read
//
// Revision 1.2 1997/06/04 18:14:42 lowerre
// added eod boolean to read and peek
//
// Revision 1.1 1997/05/14 20:02:24 lowerre
// Initial revision
//
//
//
/*
* This defines the cbuf (circular buffer) class routines. This class is used to
* handle speech utterances which are either pre-recorded or live.
*/
#include “cbuf.h“
#include
/*
* CBUF_CHAR::CBUF_CHAR - the class constructor for a circular buffer of size usize
* It is assumed that the samples are bytes (either mu-law or a-law).
* The buffer length is allocated with 4 additional bytes because
* the start and end markers take room.
*/
cbuf_char::cbuf_char
(
long usize // size of circular buffer
)
{
buffer = new char[usize + 4]; // the actual buffer
size = usize;
reset ();
} // end cbuf_char::cbuf_char
/*
* CBUF_SHORT::CBUF_SHORT - the class constructor for a circular buffer of size usize
* It is assumed that the samples are shorts.
* The buffer length is allocated with 4 additional shorts because
* the start and end markers take room.
*/
cbuf_short::cbuf_short(long usize) // size of circular buffer
{
buffer = new short[usize + 4]; // the actual buffer
size = usize;
reset ();
} // end cbuf_short::cbuf_short
/*
* CBUF_LONG::CBUF_LONG - the class constructor for a circular buffer of size usize
* It is assumed that the samples are longs.
* The buffer length is allocated with 4 additional longs because
* the start and end markers take room.
*/
cbuf_long::cbuf_long(long usize) // size of circular buffer
{
buffer = new long[usize + 4]; // the actual buffer
size = usize;
reset ();
} // end cbuf_long::cbuf_long
/*
* CBUF_FLOAT::CBUF_FLOAT - the class constructor for a circular buffer of size usize
* It is assumed that the samples are floats.
* The buffer length is allocated with 4 additional shorts because
* the start and end markers take room.
*/
cbuf_float::cbuf_float(long usize) // size of circular buffer
{
buffer = new float[usize + 4]; // the actual buffer
size = usize;
reset ();
} // end cbuf_float::cbuf_float
/*
* CBUF::AVAILABLE_READ - get the number of elements available to read
* This is complicated by the circular nature of the
* buffer plus the eod marker.
*/
long cbuf::available_read
(
BOOLEAN
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 22552 2012-03-15 00:43 EndPoint\cbuf.cpp
文件 8236 2012-03-14 22:09 EndPoint\cbuf.h
文件 67136 2012-03-14 20:59 EndPoint\Debug\cbuf.obj
文件 6454 2012-03-14 21:06 EndPoint\Debug\cl.command.1.tlog
文件 38152 2012-03-14 21:06 EndPoint\Debug\CL.read.1.tlog
文件 3714 2012-03-14 21:06 EndPoint\Debug\CL.write.1.tlog
文件 612352 2012-03-14 21:06 EndPoint\Debug\EndPoint.exe
文件 406 2012-03-14 21:06 EndPoint\Debug\EndPoint.exe.em
文件 472 2012-03-14 21:06 EndPoint\Debug\EndPoint.exe.em
文件 381 2012-03-14 21:06 EndPoint\Debug\EndPoint.exe.intermediate.manifest
文件 1604640 2012-03-14 21:06 EndPoint\Debug\EndPoint.ilk
文件 79 2012-03-14 21:06 EndPoint\Debug\EndPoint.lastbuildstate
文件 3650 2012-03-14 21:06 EndPoint\Debug\EndPoint.log
文件 294520 2012-03-14 21:06 EndPoint\Debug\endpoint.obj
文件 2632704 2012-03-14 21:06 EndPoint\Debug\EndPoint.pdb
文件 212 2012-03-14 21:06 EndPoint\Debug\EndPoint_manifest.rc
文件 2 2012-03-14 21:06 EndPoint\Debug\li
文件 2 2012-03-14 21:06 EndPoint\Debug\li
文件 2 2012-03-14 21:06 EndPoint\Debug\li
文件 2 2012-03-14 21:06 EndPoint\Debug\li
文件 2 2012-03-14 21:06 EndPoint\Debug\li
文件 2 2012-03-14 21:06 EndPoint\Debug\li
文件 1884 2012-03-14 21:06 EndPoint\Debug\li
文件 3758 2012-03-14 21:06 EndPoint\Debug\li
文件 1014 2012-03-14 21:06 EndPoint\Debug\li
文件 291604 2012-03-14 21:06 EndPoint\Debug\main.obj
文件 372 2012-03-14 21:06 EndPoint\Debug\mt.command.1.tlog
文件 270 2012-03-14 21:06 EndPoint\Debug\mt.read.1.tlog
文件 270 2012-03-14 21:06 EndPoint\Debug\mt.write.1.tlog
文件 272030 2012-03-14 21:05 EndPoint\Debug\playbuf.obj
............此处省略33个文件信息
相关资源
- visual c++实现的跳棋程序
- 一个用C++编写的画图程序
- OpenCV多通道图像混合程序 by浅墨
- 单片机C语言程序设计实训100例--基于
- 使用TCP简单文件传输控制台程序VC++
- C++语言程序设计课后答案(清华大学
- 一个C++开发的服务驻留程序源代码
- Visual+C++开发基于SNMP网络管理软件配套
- 分布式温控系统程序代码
- C++编写的Socket通信程序源代码
- C语言程序设计 中文第二版教材+习题
- 图像综合处理C++程序
- 程序设计实习课程整理.pdf
- GPS应用程序设计 卫星位置计算,绝对
- 51单片机C语言程序设计教程王云 配套
- 遗传算法c++源程序
- 五子棋程序的源代码
- 魔方还原源码及可执行程序
- C++并行程序设计
- mfc 写的 网络验证程序 内含操作 MDB数
- USB视频设备采集图像VisualC
- VC++6.0MFC扫雷程序
- VisualC++程序设计案例教程高清版(P
- 基于MFC的绘图程序,可以选择,移动
- c++FTP上传程序源代码
- 一个C编写的快速DCT程序
- visual c++程序设计与应用教程课后操作
- mfc 实现迷宫程序
- 基于网格的坡度滤波C++程序
- 记账本小程序
评论
共有 条评论