自动记录 [英] Auto record

查看:119
本文介绍了自动记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要帮助检测麦克风输入的幅度.我已将电话连接到麦克风设备,以便可以录制语音电话.这是在按下按钮时手动进行的操作.但是我想添加自动录制.因此,当拿起听筒时,幅度输入会发生变化,我想查看幅度.我将其放在代码中,以便在振幅变化时开始记录.我知道如何开始和停止记录,很难看到振幅.我正在使用mci录制和播放wav文件.有人知道快速简单的方法来查看振幅吗?

I need help detecting the amplitude from the microphone input. I have connected a telephone to mic device so that I can record voice calls. this is working manually on a button press. However i would like to add auto recording. so when the handset is lifted the amplitude input changes and I want to see the amplitude. I will put this in a ticker so that when the amplitude changes, the recording will start. I know how to start and stop the recording, finding it hard to see the amplitude. i am using mci to record and play the wav file. Does anyone know a quick and simple way to see the amplitude? if this is the best way to do it?

推荐答案

解决方案是从传入的声音中获取放大器.因为我使用的是麦克风,所以背景噪音很大.为安培峰值使用一个时间范围,当安培超过设定的数量时,将开始记录.当安培在一定时间内保持在峰值以下.我使记录停止了5秒钟,然后使用MCI将记录保存到预定义的位置.

如果录音时间少于5秒,则应用程序将启动错误的记录并放弃录音.
The solution was to get the amps from the incoming sound. Because I was using a microphone there was a lot of background noise. Used a time frame for the amps spike and when the amps went above a set amount the recording would start. when the amps remained below the spike for a certain amount of time. I made it 5 seconds the recording stops and then I use MCI to save the recording to a predefined location.

if the recording was less than 5 seconds the application would pickup a false start and discard the recording.


我认为您想做的事在MCI中是不可能的.我可能是错的. :)

但是,请查看 [ ^ ]可能会为您提供一些入门的线索.
I do not think that what you want to do is possible in MCI. I could be wrong though. :)

However, take a look at this[^] from MSDN which may give you some clues to get started.


这篇关于自动记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆