录制来自固定电话的音频 [英] Record audio from Landline

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

问题描述


我希望使用C程序执行的项目.
我使用连接到陆线的LAN电缆.并通过它连接到互联网.
我需要在台式机(显然是Windows XP机器)上通过陆线电话记录我所说的话.

有没有办法做到这一点.我需要学习哪些方面的知识来完成此任务?

我需要您的帮助:)

Hi,
A project I wish to do using C program.
I use a LAN cable which connects to my Land line. And through which I connect to internet.
I need to record what ever I speak through my Land Line phone on my desktop which is obviously Windows xp machine.

Is there a way to do it. What aspects do I need to learn to achieve this task?

I need your help please :)

Could you please help?

推荐答案

是的,肯很认真.如果您的数据是模拟数据,那么即使插头合适,您的计算机也无法读取. VOIP将使其数字化.几乎肯定可以买到便宜的麦克风并将其粘贴到手机上.
Yes, Ken is serious. If your data is analogue, then your computer can''t read it, even if the plug fits. VOIP will make it digital. It''s almost certainly easier to buy a cheap microphone and stick it to your phone.


另一种方法是购买电话卡并对其进行编程以记录通话.

某些电话调制解调器也可能具有执行此操作的能力.我没有带音频的现成的调制解调器卡来运气很好.
The alternative is to buy a telephony card and program it to record calls.

Some phone modems may also have the capacity to do this. I haven''t had much luck in getting off the shelf modem cards with audio, to work well.


当然,有办法做到这一点...如果您的计算机有一个声卡,那么您已经具有此功能.

实现此目标的几个步骤:
0.将电话线连接到输入线路(听起来并不琐碎)
1.使用声卡将数据数字化(这会将其转换为PCM音频)
2.将PCM数据保存到WAV文件(未压缩的音频)

棘手的部分是将模拟电话线连接到输入线路.原因是您必须确保不要将输入电平烧得过高(请咨询声卡制造商以获取适当的电平).

确定电压电平后,您可以简单地使用Windows API进行声音捕获来控制捕获.类似于 [
Sure there''s a way to do this... if your computer has a sound card, then you have this capability already.

A few steps to achieve this:
0. Connect your phone line to your line in input (not as trivial as it sounds)
1. Digitize the data using your sound card (this will turn it into PCM audio)
2. Save your PCM data to WAV file (uncompressed audio)

The tricky part will be connecting your analog telephone line to your line in input. Reason being that you have to make sure you don''t burn the input with levels that may be too high (consult your sound card manufacturer for appropriate levels).

After you''ve figured out the voltage levels, you can simply control your capture using the Windows API''s for sound capture. Something like this[^]...


这篇关于录制来自固定电话的音频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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