如何录制声音并延迟播放?
我知道我可以通过媒体播放器组件录制声音,但录制后我必须保存它然后播放它。但是有什么办法可以立即播放或自定义延迟吗?
I know that i can record sounds by Media Player component, but after record i have to save it and then play it. But is there any way to play it instantly or with a custom delay?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可以使用 LakeofSoft VC 组件轻松完成此操作。他们的录音演示如您所愿。
You can easily do it with LakeofSoft VC components. Their voice recording demo works like you want.
您可以尝试以下位置的音频库: http://www.un4seen.com/
“BASS”DLL 可以工作适用于 Windows Xp 和 Win 7。它们对于非商业用途是免费的。下载内容包括一个简单的 Delphi 录音机示例,允许用户“录音”,然后“保存”为音频文件,或者立即“播放”该文件,而无需在音频文件仍在内存中时保存该文件。 “BASS”与 Delphi 2007 配合得很好。它可能非常适合您的目的。
You might try the audio library at: http://www.un4seen.com/
The "BASS" DLLs work fine with Windows Xp and Win 7. They are free for non-commercial use. The download includes a simple Delphi example of an audio recorder that allows one to "record," then "save" as an audio file or "playback" the file immediately without saving the audio file while the audio file is still in memory. "BASS" works very well with Delphi 2007. It might work great for your purposes.
以下是如何使用 http://www.un4seen.com/ 中的 bass.dll 执行此操作,
您可以使用un4seen中的RecordTest示例并修改以下功能,如下所示:
修改后按下录制时,它会在录制的同时播放声音。
我在论坛上从 Ian 那里得到了这个代码。
Here is how to do it with bass.dll from http://www.un4seen.com/
You can use the RecordTest example from un4seen and modify the following functions like this:
When you press record after the modification, It plays the sound at the same time while recording it.
I got this code from Ian in the forum.