Large text to speech

FREEMIUM
By k_1 | Updated a month ago | Artificial Intelligence/Machine Learning
Popularity

9.5 / 10

Latency

992ms

Service Level

100%

Health Check

N/A

Back to All Discussions

GET audio url NOT working

Rapid account: Kenenisaalemayhu 0
kenenisaalemayhu0
2 years ago
Rapid account: K 1
k_1 Commented 2 years ago

I am glad it is working as expected, let me know if you have any questions or feedback on the API. ๐Ÿ˜ƒ

Thank you!

Rapid account: Kenenisaalemayhu 0
kenenisaalemayhu0 Commented 2 years ago

So https://gist.github.com/kenenisa/aa8b765f223d19261715bc921e22b7db this is what i used and itโ€™s working perfectly now. Sorry for the inconvenience i created, i think i messed up the request id. Thank You for the help.

Rapid account: K 1
k_1 Commented 2 years ago

Can you share the snippet of code you are using and the response โ€œidโ€, which after GET request creates expired link ?
I am unable to reproduce it, for example, with this minimal code:
https://gist.github.com/kristian-io/551689b1277561354e3e35117a6bea56

Rapid account: Kenenisaalemayhu 0
kenenisaalemayhu0 Commented 2 years ago

Yes iโ€™ve read on the documentation that the url is only valid for 24hrs, but my issue is that the url expires right away after i get it.

Rapid account: K 1
k_1 Commented 2 years ago

Hello,

thanks for asking!

Please note the full server message:

<Error>
<Code>AccessDenied</Code>
<Message>Request has expired</Message>
<X-Amz-Expires>86400</X-Amz-Expires>
<Expires>2022-02-10T05:56:12Z</Expires>
<ServerTime>2022-08-22T10:10:08Z</ServerTime>
<RequestId>S3RH9FKVFWD7B4EJ</RequestId>
<HostId>K+J7YtUqh8anL4oR4KFa8R3A/xXh+10D4FQs1nx3Adbklta5DswvlvS8b/5pJ8gyBNVlciNUzUg=</HostId>
</Error>

As mentioned in the About section (https://rapidapi.com/k_1/api/large-text-to-speech/details)

If the job is successful it returns URL of the audio file for download. This URL is valid for 24 hours.

So the recommendation is once you submit the request and receive the audio URL, download it and store it on your end.

Let me know if this helps or if you have any questions.

Kristian

Join in the discussion - add comment below:

Login / Signup to post new comments