iPhone:构建会说话的木偶应用程序
我正在尝试学习和构建会说话的木偶 iPhone 应用程序。一个很好的例子是“会说话的狗本”< /a> 和此处是 YouTube 视频。我不知道如何构建这样的应用程序。我有一位图形设计师,他会尽自己的一份力量。作为一名程序员,我需要注意什么?如果有人可以提出他们的想法或给我指出一些相关的文档或示例代码将会有很大的帮助。
谢谢。
I am trying to learn and build talking puppet iPhone application. The great example is "Talking Ben the Dog" and here is youtube video. I have no idea how am I going to build such application. I have a graphics designer who will do their part. As a being programmer, what would I need to be aware of? If someone can throw their ideas or point me some relavant documentation or sample code would be great help.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
首先,您需要创建内容。这意味着动画场景和任何相关的音频。接下来,您需要根据用户的输入触发这些场景。
如果您想要更高级的功能,例如应用程序重复您所说的话的“回话”,那么您需要掌握 AudioQueue 和 AudioUnit API。这意味着检测传入音频的电平,然后触发将音频写入存储的缓冲区。这些 API 很困难,因此这将是技术上最具挑战性的部分。您需要熟悉指针和其他较低级别的编程概念。
对于没有顶嘴的应用程序,需要大量的工作来创建内容。然后,您需要在应用程序中使用 UIImage 和核心动画框架重新创建动画。
Apple 网站上有很多精彩的视频和示例代码。这将是您快速掌握核心动画的绝佳学习曲线。
First, you'll need to create the content. That means the animation scenes and any associated audio. Next, you'll want to trigger those scenes based upon the user's input.
If you want more advanced functionality like "talk back" where the app repeats what you say, then you'll need to get a grip with AudioQueue and AudioUnit APIs. That means detecting levels of incoming audio then triggering writing audio in to stored buffers. These APIs are difficult so this will be the most technically challenging part. You'll need to be comfortable with pointers and other lower level programming concepts.
For an app without talk back, a lot of work will be required to create the content. Then you'll need to re-create the animations using UIImage and the Core Animation framework in your app.
There are a lot of great videos on the Apple site and sample code. This will be a brilliant learning curve for you to get up to speed with Core Animation.
只需为每个场景制作几个视频,然后根据按钮点击即可播放它们!
Just make a couple of videos for every scene and play them according to button click!