English 中文(简体)
中文译文
原标题:Chinese Text to Speech in iOS

是否有任何人知道如何使用中文语言读书?

任何联系或建议都是有益的。

问题回答

正如Sten所说的那样,你可以使用。 下面是同样详细的答复:

您可使用API,但问题在于它仅限于200种用途/日。

如果你想无限制地利用,你需要购买。 获取以下数据的途径之一:demo program。 (按代谢格式回归)。

我发表了一部小篇法典,显示在沙尔。 可在查询。 德莫方案有20个字眼,因此,你的方案必须每20个字分开,并单独为各部分提供食物。 以下法典不使用缓冲,因此各部分之间可能出现轻微的拖延。

from urllib import quote_plus

def speak(text): 
    import pydshow 
    words = text.split() 
    temp = [] 
    stuff = [] 
    while words: 
        temp.append(words.pop(0)) 
        if len(temp) == 24: 
            stuff.append(   .join(temp)) 
            temp = [] 
    stuff.append(   .join(temp)) 
    for i in stuff: 
        pydshow.PlayFileWait( http://api.ispeech.org/api/rest?apikey=8d1e2e5d3909929860aede288d6b974e&format=mp3&action=convert&voice=chchinesemale&text= +quote_plus(i))

if __name__ ==  __main__ :
       speak( Hello. This is a text-to speech test. )

I find this ideal because the demo program DOES use the API, but it uses the API key that is used for the demo program. Therefore, it never runs out. The key is 8d1e2e5d3909929860aede288d6b974e. Also, the program is quite simple, and may be adapted to work in any programming language.

如果没有方案,你实际上可以在工作上测试这一点,把以下内容打入你的地址:

在这方面,你如何能够满足你们的需要:

http://api.ispeech.org/api/rest?apikey=8d1e2e5d3909929860aede288d6b974e&format=mp3&action=convert&voice=chchinesemale&text=

根据你想要发言的案文。 在此情况下,你也可以调整性别,将“标准”改为“标准”。 例如,chchinesefemale。 这将讲同样的文字,但用女性的声音。 守则的具体内容见http://www.ispeech.org/downloads/ispeech-api-guide-2011-12-12.pdf>rel=“nofollow”>here

我希望!

NOTE: Pydshow is my summaryper around DirectShow, which isWindows- only. 如果你选择这一方法,你就得为SOS找到一种替代办法。

iSpeech可以处理中文问题,可以免费获得短信,而且工作良好。 然而,在网上发表的声音需要联系。 http://www.ispeech.org/text.to.speech.demo.php“rel=“nofollow”>。





相关问题
List Contents of Directory in a UITableView

I am trying to list the contents of Ringtones directory in a TableView, however, I am only getting the last file in the directory in ALL cells, instead of file per cell. This is my code: - (...

iPhone NSUserDefaults persistance difficulty

In my app i have a bunch of data i store in the NSUserdefaults. This information consists of an NSObject (Object1) with NSStrings and NSNumbers and also 2 instances of yet another object (Object2). ...

Writing a masked image to disk as a PNG file

Basically I m downloading images off of a webserver and then caching them to the disk, but before I do so I want to mask them. I m using the masking code everyone seems to point at which can be found ...

Resize UIImage with aspect ratio?

I m using this code to resize an image on the iPhone: CGRect screenRect = CGRectMake(0, 0, 320.0, 480.0); UIGraphicsBeginImageContext(screenRect.size); [value drawInRect:screenRect blendMode:...

Allowing interaction with a UIView under another UIView

Is there a simple way of allowing interaction with a button in a UIView that lies under another UIView - where there are no actual objects from the top UIView on top of the button? For instance, ...

热门标签