This example runs entirely client side, using javascript.
It requires users to use their own API Key
https://brennan.games/ElevenLabs/FrontEndOnly/
This example uses Node.js, which allows you to conceal your API Key.
https://brennan.games/ElevenLabs/
Make sure you have the tab unmuted.
The ChatGPT Thread I used to make this Thread for playing on mac