向 iOS 应用程序添加文本转语音功能 [英] Adding text to speech functionality to iOS app

查看:39
本文介绍了向 iOS 应用程序添加文本转语音功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的应用和 AFAIK 中实现这样的功能,唯一的选择是使用第三方库,所以我一直在寻找可能的选择.我发现 OpenEars 似乎是为此目的最好的免费和开源库之一,它可以离线工作,但它只支持英语,我想提供多语言文本到语音,至少是英语、葡萄牙语、西班牙语和法语.

I'd like to implement such functionality in my app, and AFAIK, the only choice is to use a third-party library, so I've been looking for possible options. I've found that OpenEars seems to be one of the best free and open-source libraries for that purpose, and it works offline, but it only supports English language and I'd want to offer multilanguage text to speech, at least for English, Portuguese, Spanish and French.

我读到过,对于多语言支持,Google TTS 表现良好,但只能在线使用...而且我不确定是否存在调用限制,是吗?在哪里可以找到有关在 iOS 中使用 Google TTS 的详细信息?

I've read that, for multilanguage support, Google TTS performs well, but it only works online... and I'm not sure if a limit of calls exists, does it? Where could I find detailed info about using Google TTS in iOS?

最后,我还阅读了很多关于 Flite 或 Festival Lite 的参考资料……但它似乎也不支持多语言.有人知道适用于 iOS 的免费开源 TTS 库,它支持多种语言,并且最好可以离线工作吗?

And finally, I've also read a lot of references to Flite or Festival Lite... but it doesn't seem to support multilanguage either. Does somebody know a free, open-source TTS library for iOS that supports several languages and, preferably, works offline?

还有一个问题.我正在开发的应用程序可能有商业版本,打算提交给 Apple Store.使用任何 TTS 第三方库会不会有问题?

Just another question. The app I'm working on may have a commercial version and it is intended to be submitted to the Apple Store. Could the use of any TTS third-party library be a problem?

非常感谢

推荐答案

iOS 7 有 AVSpeechSynthesizer,无需任何外部框架即可开箱即用地进行文本到语音转换.

iOS 7 has AVSpeechSynthesizer that can do text-to-speech out-of-the-box without the need of any external frameworks.

有关这方面的更多信息,访问此链接.

For more on this, visit this link.

这篇关于向 iOS 应用程序添加文本转语音功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆