如何使用C++如何创建一个mp3文件?

发布于 2025-01-30 12:23:19 字数 107 浏览 3 评论 0 原文

因此,我有两个带有简短音频标签的音频文件,以及两个向量,其中我需要记录这些音频标签的时间点。如何在C ++中创建一个MP3文件,以便在Vector中插入文件中的这些标签?最终,我需要保存此MP3文件。

So, I have two audio files with short audio labels, as well as two vectors in which the time points in which I need to insert these audio labels are recorded. How can I create an mp3 file in C++ so that these labels from the file are inserted into it at times from the vector? Eventually I will need to save this mp3 file.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

红衣飘飘貌似仙 2025-02-06 12:23:19

据我所知,MP3容器格式不支持这一点,仅 a>是小波变换编码的,所谓的 id3> id3 元数据像元数据一样具有像艺术家一样的信息,曲目名称,编码质量流派等。

一种可能的解决方案可以是支持多个频道的一些可能具有音频,但也可能会流式传输其他类型的数据,例如您的计时数据。

As far as I know, the MP3 container format does not support that, only audio chunks that are wavelet transform-encoded and what is known as ID3 metadata to have information like artist, track name, encoding quality genre etc..

One possible solution may be (web-)RTC which supports multiple channels some of which may have audio, but possibly also other types of data can be streamed, such as your timing data.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文