如何制作能够将录音插入所需位置的录音机 [英] How to make an audio recorder which can insert audio recording in the required position

查看:86
本文介绍了如何制作能够将录音插入所需位置的录音机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我正在搜索ac#code on如何制作一个可以使用Windows API在所需位置插入录音的录音机(Windows多媒体) API)。



要求如下:



a)代码必须支持在.wav录制音频或.mp3格式。

b)如果用户想要在上述音频播放位置的音频的任何位置添加(插入或附加)新录音,代码必须支持。



谢谢和问候,

Ranjith。

Hi,

I am searching for a c# code on How to make an audio recorder which can insert audio recording in the required position using windows APIs (windows multimedia APIs).

Requirement like:

a) Code has to support to record an audio in .wav or .mp3 format.
b) Code has to support if user want to add (insert or append) new recording at any position of this audio at the mentioned audio play position.

Thanks & Regards,
Ranjith.

推荐答案

需要考虑的几点:

- 从WAVE PCM格式开始,最好是单声道:你不需要关心数据的编码/解码。

- 学习如何将一段音频录制到一个文件中。 />
- 要插入定义的位置,请记录要插入新文件的声音。然后将插入位置的第一个文件剪切成两个文件,在第一部分末尾添加新记录中的数据,然后添加原始文件的第二部分。

- 而不是文件你可以使用一些自定义缓冲结构/ Streams。
A few points to consider:
- start with WAVE PCM format, preferably mono: you do not need to care for encoding/decoding the data.
- Learn how to record one piece of audio into a file.
- For inserting into a defined position, record the sound to be inserted into a new file. Then cut the first file at the insert position into two files, add the data from the new recording at the end of the first part, thereafter add the second part of the original file.
- Instead of files you may use some custom buffer structures / Streams.


这篇关于如何制作能够将录音插入所需位置的录音机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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