# \[APP\]\[Pro\] FTP Client - Control FTP Servers through a directory-based UI in the Homey App or Web App

**URL:** <https://community.homey.app/t/app-pro-ftp-client-control-ftp-servers-through-a-directory-based-ui-in-the-homey-app-or-web-app/70876>\
**Category:** Apps\
**Tags:** homey-pro, community-app\
**Created:** [October 20, 2022, 7:12am UTC](https://community.homey.app/t/app-pro-ftp-client-control-ftp-servers-through-a-directory-based-ui-in-the-homey-app-or-web-app/70876 "2022-10-20T07:12:04Z")\
**Posts on this page:** 1\
**Showing post:** 132

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [July 18, 2024, 3:00pm UTC](https://community.homey.app/t/app-pro-ftp-client-control-ftp-servers-through-a-directory-based-ui-in-the-homey-app-or-web-app/70876/132 "2024-07-18T15:00:59Z")

</div>

Use the HomeyScript return a Text flowcard.  
Than fill this script.  
The tag it will generate will have the MP3 file in base64.  
That you can save to the FTP with the save base64 as file flowcard.

```auto
let call = await fetch("https://api.elevenlabs.io/v1/text-to-speech/XrExE9yKIg1WjnnlVkGX?enable_logging=true&output_format=mp3_44100_96", {
  method: "POST",
  body: JSON.stringify(
    {"text":"Dit is een test file","model_id":"eleven_multilingual_v2","voice_settings":{"stability":0.5,"similarity_boost":0.75,"style":0,"use_speaker_boost":true}}
  ),
  headers: {
    "Content-type": "application/json; charset=UTF-8",
    "xi-api-key":"FILL YOUR KEY"
  }
});

let mp3 = await call.buffer();

let base64 = Buffer.from(mp3).toString('base64');
return base64;

```

---

_[View the full topic](https://community.homey.app/t/app-pro-ftp-client-control-ftp-servers-through-a-directory-based-ui-in-the-homey-app-or-web-app/70876)._
