如何用诺迪奥水印?

发布于 2025-01-28 09:13:26 字数 525 浏览 3 评论 0原文

我的应用程序输出波浪文件,我需要实施水印。我的意思是,将另一个包含一个包含4秒钟的人说“此文件是受版权保护的材料”的人,然后每30秒叠加到原始文件中。

我尝试了很多事情,但没有一个完全有效。我可以使用OffsampampleProvider将水印添加到30秒钟,然后将其与MixingSpameProvider混合在一起,但这只会在一个副本中混合。

loopstream aw code>,不是iSampleProvider,即使我可以进行转换,我认为这会永远混合,因为looptream永远不会停止返回数据。

这似乎是一个相当基本的用例,但我不知道该怎么做!

My application outputs wave files and I have the requirement to implement watermarking. By this I mean taking another wave file containing, say, 4 seconds of someone saying "This file is copyrighted material" and overlay this into the original file every 30 seconds.

I have tried many things but none quite works. I can pad the watermark to 30 seconds using OffsetSampleProvider and mix this with MixingSampleProvider, but that would only mix in one copy.

LoopStream is a WaveStream, not an ISampleProvider, and even if I could do the conversion, I think this would mix forever, because the LoopStream would never stop returning data.

This seems like a fairly basic use case, but I cannot figure out how to do it!

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

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

发布评论

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

评论(1

枫以 2025-02-04 09:13:26

你不太遥远。您可以将looptream使用iSampleProvider使用tosampleProvider扩展方法,然后您可以使用take> take扩展名限制循环流的持续时间以匹配您与之混合的文件的持续时间的方法。

You're not too far off. You can turn a LoopStream into an ISampleProvider with the ToSampleProvider extension method, and then you can use the Take extension method to limit the duration of the looped stream to match the duration of the file you're mixing it with.

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