⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 head.h

📁 语音识别的端点检测程序
💻 H
字号:


// Microsoft wav pcm sound file format. Normal 44 or 62bytes header
typedef struct WavPcmHeader62{
unsigned char ChunkID[4]; // "RIFF"; The "RIFF" the mainchunk;
unsigned long ChunkSize; // FileSize - 8; The size following this data
unsigned char Format[4]; // "WAVE"; The "WAVE" format consists of two subchunks: "fmt " and "data"

unsigned char SubChunk1ID[4]; // "fmt "
unsigned long SubChunk1Size; // 16 for PCM. This is the size of the rest of the subchunk which follows this data.
unsigned short AudioFormat; // 1 for PCM. Linear quantization  pcm压缩无压缩
unsigned short NumChannels; // 1->Mono, 2->stereo, etc..   0x16
unsigned long SampleRate; // 8000, 11025, 16000, 44100, 48000, etc..    0x18~0x1b
unsigned long ByteRate; // = SampleRate * NumChannels * BitsPerSample/8  
unsigned short BlockAlign; // = NumChannels * BitsPerSample / 8    
unsigned short BitsPerSample; // 8->8bits, 16->16bits, etc..     

unsigned short FactBlock;
unsigned char FactId[4]; //fact  可选参数
unsigned long FactDytes;
unsigned short FactData;

unsigned char SubChunk2ID[4]; // "data"

unsigned short SubChun2Size; // = NumSamples * NumChannels * BitsPerSample /8. The size of data 音频数据
unsigned short SubChun2Size1;

} wav_pcm_header62;


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -