如何将录制的语音同步到 iPhone 上的动画

发布于 2024-09-03 16:49:30 字数 96 浏览 0 评论 0原文

我想录制语音,并在用户触摸屏幕时将其与 iPhone 上的动画同步。有没有 api 可以帮助我完成这个任务?我还没有做过这样的事情,所以我很难想象可以帮助我完成此任务的算法类型。

I want to record voice and sync that up with animation on the iphone as a user touches the screen. Are there apis that will help me accomplish this? I've not done anything like this so I"m having a hard time visualizing the type of algorithm that would help me accomplish this.

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

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

发布评论

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

评论(1

对你的占有欲 2024-09-10 16:49:30

我通过保存 [recorder currentTime] 来做到这一点,然后在不同的线程中使用播放时的动画循环,轮询播放器并根据这些保存的时间制作动画。您也可以使用 [player currentTime] 轮询播放器。

I did this by saving [recorder currentTime] and then using an animation loop on playback in a different thread that polls the player and animates based on these saved times. You can poll the player using [player currentTime] as well.

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