如何将录制的语音同步到 iPhone 上的动画
我想录制语音,并在用户触摸屏幕时将其与 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我通过保存 [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.