AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
Add eleven labs voice IDs.
BillSchumacherbf3142ad67a7
diff --git a/README.md b/README.mdindex 2de7cfe4be..9f4c6bbc63 100644--- a/README.md+++ b/README.md@@ -196,6 +196,19 @@ Use this to use TTS _(Text-to-Speech)_ for Auto-GPTpython -m autogpt --speak```+### List of IDs with names from eleven labs, you can use the name or ID:++- Rachel : 21m00Tcm4TlvDq8ikWAM+- Domi : AZnzlk1XvdvUeBnXmlld+- Bella : EXAVITQu4vr4xnSDxMaL+- Antoni : ErXwobaYiN019PkySvjV+- Elli : MF3mGyEYCl7XYWbV9V6O+- Josh : TxGEqnHWrfWFTfGW9XjX+- Arnold : VR6AewLTigWG4xSOukaG+- Adam : pNInz6obpgDQGcFmaJgB+- Sam : yoZ06aMxZJJ28mfd3POQ++## OpenAI API Keys ConfigurationObtain your OpenAI API key from: https://platform.openai.com/account/api-keys.diff --git a/autogpt/speech/eleven_labs.py b/autogpt/speech/eleven_labs.pyindex 2c54ffad18..0af48cae15 100644--- a/autogpt/speech/eleven_labs.py+++ b/autogpt/speech/eleven_labs.py@@ -22,11 +22,26 @@ class ElevenLabsSpeech(VoiceBase):cfg = Config()default_voices = ["ErXwobaYiN019PkySvjV", "EXAVITQu4vr4xnSDxMaL"]+ voice_options = {+ "Rachel": "21m00Tcm4TlvDq8ikWAM",+ "Domi": "AZnzlk1XvdvUeBnXmlld",+ "Bella": "EXAVITQu4vr4xnSDxMaL",+ "Antoni": "ErXwobaYiN019PkySvjV",+ "Elli": "MF3mGyEYCl7XYWbV9V6O",+ "Josh": "TxGEqnHWrfWFTfGW9XjX",+ "Arnold": "VR6AewLTigWG4xSOukaG",+ "Adam": "pNInz6obpgDQGcFmaJgB",+ "Sam": "yoZ06aMxZJJ28mfd3POQ",+ }self._headers = {"Content-Type": "application/json","xi-api-key": cfg.elevenlabs_api_key,}self._voices = default_voices.copy()+ if cfg.elevenlabs_voice_1_id in voice_options:+ cfg.elevenlabs_voice_1_id = voice_options[cfg.elevenlabs_voice_1_id]+ if cfg.elevenlabs_voice_2_id in voice_options:+ cfg.elevenlabs_voice_2_id = voice_options[cfg.elevenlabs_voice_2_id]self._use_custom_voice(cfg.elevenlabs_voice_1_id, 0)self._use_custom_voice(cfg.elevenlabs_voice_2_id, 1)