EniasCailliau / GirlfriendGPT

AI Girlfriend NSFW chatbot tool in Python - Build your own AI companion in Python using ChatGPT.
https://gptgirlfriend.online
2.6k stars 441 forks source link

Cannot Change Voice #26

Closed Farathiel closed 1 year ago

Farathiel commented 1 year ago

Adding 11labs id and api into the api.py has no effect and unsure what else to do at this point. thank you.

billyjbryant commented 1 year ago

I get the following error when attempting to use a known good ElevenLabs API Key:

> Finished chain.
Aborting! There was an error encountered when running: [ERROR - POST /generate] Received status code 401 from Eleven Labs. Reason: Unauthorized
(base) 
EniasCailliau commented 1 year ago

Are you using a custom voice? If you're using a generic voice you don't need your own API key.

billyjbryant commented 1 year ago

Are you using a custom voice? If you're using a generic voice you don't need your own API key.

I was using a custom voice id. I have since switched to a generic (premade) voice instead of a generated voice, without a key. But using a custom voice with a key was not working.

gynoidneko commented 1 year ago

I tried using a generic voice, Bella, using the voiceID listed on https://api.elevenlabs.io/v1/voices, and I get the same 401 unauthorized error. It isn't a custom voice, it's a generic default one. I put my 11labs api key in src/api.py as well. Did I do something wrong? There should be some guides on here to help.

gynoidneko commented 1 year ago

I got the default voice Bella to work by removing my API Key. I just wish I could add my custom voice without paying extra.