Hey so I have this code seemingly working. It returns SOMETHING, but I don’t know how to get my web page to play it back.
const mp3 = await openai.audio.speech.create({
model: "tts-1",
voice: "alloy",
input: text,
});
On the client side I am trying to use the response in an audio element, but it no workee.
Anybody know what i need to do here? Encode it to base64 on the server and then decode it? Does anyone have an example lying around of how to do this?
I am using Vue.js on the client side, fyi.
Any help would be greatly appreciated!