We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(13)
我曾经遇到过这个问题,并在 iPhone 上运行了 Flite(festival lite)文本转语音引擎。 我最近为它做了一个API类。 我试图让添加到新项目和现有项目变得容易(并且免费)。 可以在此处下载。
I ran into this problem at one point, and got Flite (festival lite) text to speech engine running on iPhone. I recently made an API class for it. I tried to make it easy (and free) to add to new and existing projects. It can be downloaded at here.
iPhone 3GS 有专用的 VoiceServices 框架可以做到这一点。 Steve Troughton-Smith 介绍了如何使用私有类 VSSpeechSynthesizer 此处,但你几乎没有机会将使用它的东西进入 App Store。
The iPhone 3G S has the private VoiceServices framework which can do this. Steve Troughton-Smith describes how to use the private class VSSpeechSynthesizer here, but you have little chance of getting something using this into the App Store.
对于 iOS 5 或 6 - 没有任何内置内容。 您需要使用第三方库。
对于 iOS 7,有一个 AVSpeechSynthesizer API。
这是一个简单的例子:
For iOS 5 or 6 - nothing built-in. You need to use a third party library.
For iOS 7 there is a AVSpeechSynthesizer API.
Here's a simple example:
OpenEars 是一个开源 iOS 库,用于实现往返英语语音识别和文本到- iPhone 和 iPad 上的语音,它使用 CMU Pocketsphinx、CMU Flite 和 MITLM 库。
OpenEars is an open-source iOS library for implementing round-trip English language speech recognition and text-to-speech on the iPhone and iPad, which uses the CMU Pocketsphinx, CMU Flite, and MITLM libraries.
我找到了这个,但我还没有尝试过。
I found this but i haven't tried it yet.
API 文档会提示该 API 不可用。
The API docs would suggest that the API is not available.
您可能还想看看这个。
它使用 Flite。 它不包含具体说明,但可以为您提供想法。
You might also want to have a look at this.
It uses Flite. It doesn't contain specific instructions but it can give you ideas.
对于 iOS 5 或 6 - 没有任何内置内容。 您需要使用第三方库。
对于 iOS 7,有一个 AVSpeechSynthesizer API。
源代码也可在 Github 中获取,
请参阅以下链接
For iOS 5 or 6 - nothing built-in. You need to use a third party library.
For iOS 7 there is a AVSpeechSynthesizer API.
Source Code also available in Github
Refer the Below Link
这是可能的,但你必须自己动手。 我见过一个应用程序这样做。
This is possible, but you will have to roll your own. I have seen an app do this.
我在 iPhone 2.0 出现之前就通过将 espeak 移植到该平台来做到这一点。 我将它用作命令行实用程序,但应该可以将其放入库中。
I did this before iPhone 2.0 came out by porting espeak to the platform. I used it as a command line utility but it should be possible to make it into a library.
您可以尝试使用 google tts:
http://translate.google.com/translate_tts ?tl=en&q=hello
和其他一些:
http://www.ispeech.org/api
http://tts-api.com/
you can try to use google tts:
http://translate.google.com/translate_tts?tl=en&q=hello
and some others:
http://www.ispeech.org/api
http://tts-api.com/
Google TTS 限制为 100 个字符。
因此,您应该将长句子分成 100 个字符的小块,并将其传递给 Google TTS 方法。
您可以通过实施以下步骤来实现这一目标。
细绳。
这是最适合我的 Google-TTS-Library-For-iOS 库 尝试一下:)
Google TTS limited to 100 characters.
So you should split-up your long sentence in to small 100 character chunks and pass it to the Google TTS method.
You can achieve this through implementing below steps.
string.
Here is best One for me Google-TTS-Library-For-iOS library try it :)
有一个 Iphone 应用程序可以直接 TTS,在 Itunes 上搜索“TTSMessenger”
There's an Iphone app that does direct TTS, Search for "TTSMessenger" on Itunes