Large text to speech

免费增值
通过 k_1 | 已更新 एक महीने पहले | Artificial Intelligence/Machine Learning
人气

9.6 / 10

延迟

1,046ms

服务等级

100%

Health Check

N/A

返回所有讨论

Pauses

Rapid account: Jamesschorey
jamesschorey
एक वर्ष पहले

I have the API working for long-text-to-speech, but it seems it can’t deal with paragraphs. Once the text it fit to a single paragraph, it works. Is there some way to allow for a pause between paragraphs. With that, I could simply globally replace CR-LF with some other punctuation. Doing a separate call per paragraph would create pauses that would be too long.

Rapid account: K 1
k_1 Commented एक वर्ष पहले

Hi, thanks for reaching out!

It should be able to deal with paragraphs.

Can you provide example text (as submitted to API) that causes the problem ?
What exactly you mean it can’t deal with paragraphs ? The request fails or there isn’t a proper pause between them ?

See this example code: https://gist.github.com/kristian-io/b2c4cc1d3c1583ffe92062a5c559bbfd
From our article: https://medium.com/@kristian_io/listen-to-any-article-on-web-with-few-lines-of-python-1de3e818cd0c

You can uncomment the line 23 print(text) to see what is actually passed to the API.
The whole article text, as is, is passed without any modifications, if you print it to the console you will see it has all the new lines included.
In our testing this makes appropriate pause between paragraphs.

To answer your question, currently we do not support special character/token to force a pause.

Let me know if this helps.
Thanks!

加入讨论 - 在下面添加评论:

登录/注册以发布新的评论