Public
HTTP (deprecated)
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Readme

An example of using Breadboard Board as a Service helper script. The board converts supplied text and voice into speech using Eleven Labs API.

This board is marked as private, which means that it requires an additional service key to function.

To use:

  • fork this val
  • add GEMINI_KEY to your environment variables
  • add ELEVENLABS_API_KEY to your environment variables
  • add BB_SERVICE_KEY to your environment variables. You can use this val to generate it.
  • query directly or use as Service URL in the Core Kit service node.
1
2
3
4
5
6
import { service } from "https://esm.town/v/dglazkov/bbaas";
export default service(
"https://breadboard.live/boards/@dimitri/tool-get-speech.bgl.json",
{ private: true }
);
dglazkov-generatevoice.web.val.run
July 19, 2024