Elevanlabs text to speech API

Database & APIs

I am working on a small project. For now I want to convert text to speech using Elevanlabs API. It's free for text to speech. Get it here: https://elevenlabs.io



Anyone who worked or knows how to make text to speech API work in FF API module?
Help would be appreciated.

What have you tried so far?

Header has:
xi-api-key: "Your_API_Key" // please use your api key here
Content-Type: application/json; charset=UTF-8

Body type is of json:
{

"text": "Hi",

"model_id": "eleven_multilingual_v2",

"voice_settings": {

"stability": 0.5,

"similarity_boost": 0.8,

"style": 0,

"use_speaker_boost": true

}

}


I tested the API and it works except the it give me a raw body something like this:
ÿûÄ $ „`*®5 Eƒ&y)Z ɽºV0õà4`xx`þøá€÷{ÃÃÿÿæœ<<<Fð3˜çÿO3ßÿ0ó̤2r×gßà ÙÿÜ8xüúó þ¸Ñ6¼˜É^Puü¦Ô¯=-

I tried turning ON streaming response but then no data at all.
I created a custom action and works fine and i can play the speech/audio but that wasn't my goal.

Did you check FlutterFlow's Documentation for this topic?
Yes
4
5 replies