资源简介
过零率、预加重、短时能量等的函数一目了然,是自学语音识别端点提取的好资料,在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个文件信息
相关资源
- 数字电位器C语言程序
- 通信过程中的RS编译码程序(c语言)
- 简单的C语言点对点聊天程序
- 单片机c语言源程序(51定时器 八个按
- 将图片转换为C语言数组的程序
- 安科瑞智能电能表MODBUS通讯程序 VC6
- C语言实现的一个内存泄漏检测程序
- 用单片机控制蜂鸣器播放旋律程序(
- 电子时钟 有C语言程序,PROTEUS仿真图
- 基于C语言的密码锁程序
- c语言小学生自然数四则运算测试程序
- c语言程序设计报告 程序大全
- 文件传输和聊天程序(c语言实现)
- 连铸温度场计算程序(C++)
- 6自由度机器人运动学正反解C++程序
- 《Linux程序设计》第四版pdf高清电子版
- 使用wxWidgets进行跨平台程序开发
- 基于Arduino的MLX90614温度采集程序
- ADS1263驱动程序+电路图
- 程序案例 利用LabVIEW实现串口通讯
- 物联网GPS跟踪器demo程序
- STM32(神舟III号 串口1发送实验程序)
- STM32429的串口收发程序
- AD5328驱动程序
- PCA9539驱动程序
- ADS1256-STM32参考程序
- Arduino 敲琴MIDI电子琴 程序报告.docx
- 基于arduino的红绿灯程序,包附原理图
- stm32的半导体除湿机程序
- 单片机程序(附初级、中级、高级共
评论
共有 条评论