ElevenLabs TTS Posting, Web API

Hi All!

I have been trying to call Elevenlabs’ web API to do a text-to-speech thing. But it seems like I am constantly getting an “undefined/null” response. I saw that Drag and Drog doesn’t support playing the audio, so I recreated the blocks in a new Snap to Place project. I am not sure if I am setting the source of the sound correctly.

Could anyone give me some tips? Thanks!

The source you’ve set is incomplete. It’s only the prefix of the sound file, not the actual audio data.

Two things that are helpful when asking about APIs:

  1. Provide a link to the relevant section of the documentation.
  2. Include the value of the green response block as text (you can assign it to a text input’s text and then copy and paste it here). It’s best to format it using the </> button in the toolbar above your post. That removes smart quotes and other symbols that can invalidate a JSON response.

·····················································································································
Need help? How to Ask Great Questions :sparkles: Debugging A Project :sparkles: API JSON Tutorial

Want to hire a Certified Thunkable Expert? Elevate your app with Tatiang on Fiverr

Hi Tatiang!

Thanks for replying!
Here is the link to the API documentation and endpoint: Text To Speech - ElevenLabs. https://api.elevenlabs.io/v1/text-to-speech/OOk3INdXVLRmSaQoAX9D

For the response block, I am getting an undefined response. (Even after setting the response to the text input’s text block and joined with the source).

Thanks!

And for point 2,


this is how I am setting the blocks, would this be correct?

I am getting an error from my live editor.

It’s really hard to know when I can only see part of the blocks and some important API blocks are missing from the screenshot.

Where does the “Something has gone wrong” crash occur? Between which blocks?

You may want to use the debugging method I link to below.

·····················································································································
Need help? How to Ask Great Questions :sparkles: Debugging A Project :sparkles: API JSON Tutorial

Want to hire a Certified Thunkable Expert? Elevate your app with Tatiang on Fiverr

I use Eleven Labs API, Thunkable can’t Handle it’s Response, you have to Use Backend integration, I too did so.
I can help you more with this, DM me.


Want to hire a Certified Thunkable Expert? Whoocoder | Thunkable Expert | Order Now On Fiver!!

Hi!

I am new to Thunkable forum, is there a DM option on Thunkable?

Best,
Andrew

Click on my Profile Picture, there a message option at right bottom would be there