AlizerUncaged / desktop-waifu

Desktop Waifu!
337 stars 48 forks source link

Can't connect to Elevenlabs #147

Open cyborgcatgirl opened 1 year ago

cyborgcatgirl commented 1 year ago

Hi,

I've managed to get everything to work, except every time get a reply, there's no audio to play along with it. I get this error

'ElevenLabsClonedVoice' object has no attribute 'generate_audio_bytes'

elevenlabs error

I didn't include my key, but that seems to be correct. The example.env file is configured like this for elevenlabs.

Elevenlabs error 2

RedemptionOG commented 1 year ago

To fix this, you have to go folder where you have unzipped it. Go to the waifu folder then Src then utils. There you will find elevenlabs.py Open that file in your favourite IDE and change.

mp3_bytes = ELEVENLABS_VOICE.generate_audio_bytes(message, stability, similarity)

to

mp3bytes, = ELEVENLABS_VOICE.generate_audio(message, stability, similarity)

It should be in line 30 - 35. elevenlabs should now work. Let me know how you go.