UNPKG

text-to-audio-converter

Version:

This Node.js package is open source and uses ElevenLabs' Text to Speech API.

13 lines (11 loc) 288 B
import baseUrl from "../config/Api.js"; export async function VoiceListing(){ const url = `${baseUrl}voices`; try{ const response = await fetch(url); let data = await response.json(); return data; }catch(error){ throw error; } }