将多个音频文件合并为一个文件
Merge multiple audio files into one file
我想合并 两个音频文件并生成一个最终文件。例如,如果 file1
的长度为 5 分钟而 file2
的长度为 4 分钟,我希望结果是一个 5 分钟的文件,因为两个文件都将从 0:00 秒开始并且将 运行 在一起(即 重叠。)
您可以使用 Windows.Media.Audio namespace to create audio graphs for audio routing, mixing, and processing scenarios. For how to create audio graphs please reference this article 中的 API。
音频图是一组相互连接的音频节点。您要合并的两个音频文件提供 "audio input nodes","audio output nodes" 是图形处理的音频的目标单个文件。
AudioCreatio official sample - Submix, just provide the feature you want. Provide two files it will output the mixed audio, but change the output node to AudioFileOutputNode
的场景 4 自示例创建以来保存到新文件 AudioDeviceOutputNode
用于播放。
我想合并 两个音频文件并生成一个最终文件。例如,如果 file1
的长度为 5 分钟而 file2
的长度为 4 分钟,我希望结果是一个 5 分钟的文件,因为两个文件都将从 0:00 秒开始并且将 运行 在一起(即 重叠。)
您可以使用 Windows.Media.Audio namespace to create audio graphs for audio routing, mixing, and processing scenarios. For how to create audio graphs please reference this article 中的 API。
音频图是一组相互连接的音频节点。您要合并的两个音频文件提供 "audio input nodes","audio output nodes" 是图形处理的音频的目标单个文件。
AudioCreatio official sample - Submix, just provide the feature you want. Provide two files it will output the mixed audio, but change the output node to AudioFileOutputNode
的场景 4 自示例创建以来保存到新文件 AudioDeviceOutputNode
用于播放。