使用AWS Polly合成超过1500个字符吗? [英] Synthesize more than 1500 characters using AWS Polly?

查看:138
本文介绍了使用AWS Polly合成超过1500个字符吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的想法是使用AWS PollyRSS提要中大声朗读一些新闻.根据此链接,我知道Polly在转换为示例之一是"Adventures of Huckelberry Finn" by Mark Twain ~600k characters 问题是,当我尝试将文章转换为语音时,出现以下错误:

My idea was to use AWS Polly to read aloud some news from an RSS feed. As per this link I understand that Polly is very flexible in terms of characters to be converted as one of the examples is "Adventures of Huckelberry Finn" by Mark Twain ~600k characters The problem is that when I try to convert my articles to speech I am getting the following error:

An error occurred (TextLengthExceededException) when calling the SynthesizeSpeech operation: Maximum text length has been exceeded

我尝试转换的文本大约为5000个字符.

The text I was trying to convert was about 5000 characters.

是否有任何方法(带有或不带有API)使用Polly转换长文本字符串而不必将其切成数百万个不同的片段?

Is there any way (with or without the API) to convert long strings of text with Polly without having to cut them into million different pieces?

任何朝着正确方向的提示都会受到赞赏,

Any tip in the right direction will be appreciated,

谢谢

推荐答案

输入文本的大小最多可以包含1500个计费字符(总共3000个字符). SSML标签不算作计费字符.

The size of the input text can be up to 1500 billed characters (3000 total characters). SSML tags are not counted as billed characters.

http://docs.aws.amazon.com/polly/latest/dg/limits.html

定价示例似乎旨在使您感觉到成本相对较低为大型作品发声,但实际上需要将句子分为几组并提交给API(这是唯一的接口),SDK和CLI调用相同的

The pricing examples seem to be intended to give a sense of the relatively low cost of voicing a large work, but the work would actually need to be divided into groups of sentences and submitted to the API, which is the only interface -- the SDKs and CLI call the same SynthesizeSpeech API.

这篇关于使用AWS Polly合成超过1500个字符吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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