jambonz / jambonz-webapp

A simple provisioning web app for jambonz
MIT License
5 stars 20 forks source link

Elevenlabs error while App creation #352

Closed Catharsis68 closed 7 months ago

Catharsis68 commented 7 months ago

I noticed the following error after enabling Elevenlabs speech vendor in our downstream webapp v0.8.5:

  1. Create a new speech provider Elevenlabs
  2. Create a new application
  3. Open the page with open debugger options
  4. Within that application select Elevenlabs for TTS
  5. There is an error in the console
speech-seelction.ts

if (vendor === VENDOR_ELEVENLABS) {
          const newLang = synthesis[vendor].find(
             (lang) => lang.code === ELEVENLABS_LANG_EN
           );
           setSynthLang(ELEVENLABS_LANG_EN);
           setSynthVoice(newLang!.voices[0].value); // < Uncaught TypeError: Cannot read properties of undefined (reading 'value')
           return;
}