怎么样用声卡采集到我说的声音 现在看了一些资料,自己想作一个声音采集 ,但是不知道怎么作 ,那位好心点的给点资料或例子,谢谢 [email protected] 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 VDream 的 TVDAudioIn可以的 使用TMediaPlayer即可开始录音:CreateWav(2,16,48000, ChangeFileExt(FRecordFile,'.wav'));mpMusic.DeviceType := dtAutoSelect;mpMusic.FileName := ChangeFileExt(FRecordFile,'.wav');mpMusic.Open;mpMusic.StartRecording;停止录音:mpMusic.Stop;mpMusic.Save;mpMusic.Close;procedure CreateWav(channels, resolution: word; rate: Integer;fn: string); var wf : file of TWavHeader; wh : TWavHeader;begin wh.rId := $46464952; wh.rLen := 36; wh.wId := $45564157; wh.fId := $20746d66; wh.fLen := 16; wh.wFormatTag := 1; wh.nChannels := channels; wh.nSamplesPerSec := rate; wh.nAvgBytesPerSec := channels*rate*(resolution div 8); wh.nBlockAlign := channels*(resolution div 8); wh.wBitsPerSample := resolution; wh.dId := $61746164; wh.wSampleLength := 0; system.assignfile(wf,fn); rewrite(wf); write(wf,wh); closefile(wf);end; 如何判断PE文件是否有附加数据(比如PEID差的时候出现[Overlay]) 关于枚举类型错误! 请问 怎样才能 用esc/pos 指令打印图形 一个VB程序转到DELPHI的问题 一个小数点位数显示的问题 轉詩歌一首,共享快樂。散分! 小问题 改用Delphi调用动态库(原C#调用动态库) 关于数组的问题 关于windowapi中的SendMessage函数!!!!!!! 高分求助:在PASCAL中(非DELPHI环境)利用HTTP请求获取GMT标准时间。 通过 delphi 编程将bmp格式文件(背景为纯色背景)转成gif或png图片(纯色背景透明)。
开始录音:
CreateWav(2,16,48000, ChangeFileExt(FRecordFile,'.wav'));
mpMusic.DeviceType := dtAutoSelect;
mpMusic.FileName := ChangeFileExt(FRecordFile,'.wav');
mpMusic.Open;
mpMusic.StartRecording;停止录音:
mpMusic.Stop;
mpMusic.Save;
mpMusic.Close;procedure CreateWav(channels, resolution: word; rate: Integer;fn: string);
var
wf : file of TWavHeader;
wh : TWavHeader;
begin
wh.rId := $46464952;
wh.rLen := 36;
wh.wId := $45564157;
wh.fId := $20746d66;
wh.fLen := 16;
wh.wFormatTag := 1;
wh.nChannels := channels;
wh.nSamplesPerSec := rate;
wh.nAvgBytesPerSec := channels*rate*(resolution div 8);
wh.nBlockAlign := channels*(resolution div 8);
wh.wBitsPerSample := resolution;
wh.dId := $61746164;
wh.wSampleLength := 0;
system.assignfile(wf,fn);
rewrite(wf);
write(wf,wh);
closefile(wf);
end;