-
大小: 4.66MB文件類型: .rar金幣: 2下載: 0 次發(fā)布日期: 2023-09-18
- 語(yǔ)言: C/C++
- 標(biāo)簽: 語(yǔ)音識(shí)別??端點(diǎn)檢測(cè)??程序??C++??
資源簡(jiǎn)介
過(guò)零率、預(yù)加重、短時(shí)能量等的函數(shù)一目了然,是自學(xué)語(yǔ)音識(shí)別端點(diǎn)提取的好資料,在VS2010中編譯通過(guò)

代碼片段和文件信息
//
//?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
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件??????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個(gè)文件信息
評(píng)論
共有 條評(píng)論