Large text to speech

FREEMIUM
By k_1 | Updated hace un mes | Artificial Intelligence/Machine Learning
Popularity

9.5 / 10

Latency

992ms

Service Level

100%

Health Check

N/A

Back to All Discussions

Pauses

Rapid account: Jamesschorey
jamesschorey
hace un año

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 hace un año

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!

Join in the discussion - add comment below:

Login / Signup to post new comments