Large text to speech

フリーミアム
よって k_1 | 更新済み 9 дней назад | Artificial Intelligence/Machine Learning
人気

9.7 / 10

レイテンシー

789ms

サービスレベル

100%

Health Check

N/A

すべてのディスカッションに戻る

GET audio url NOT working

Rapid account: Kenenisaalemayhu 0
kenenisaalemayhu0
2 года назад
Rapid account: K 1
k_1 Commented 2 года назад

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 года назад

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 года назад

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 года назад

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 года назад

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

ディスカッションに参加しましょう-以下にコメントを追加してください:

ログイン/サインアップして新しいコメントを投稿