I've added a Professional Voice into the voice library and I got this error:
Traceback (most recent call last):
voice = user.get_voices_by_name("Voice")[0]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/elevenlabslib/ElevenLabsUser.py", line 138, in get_voices_by_name
allVoices = self.get_available_voices()
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/elevenlabslib/ElevenLabsUser.py", line 111, in get_available_voices
availableVoices.append(ElevenLabsVoice.voiceFactory(voiceData, self))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/elevenlabslib/ElevenLabsVoice.py", line 64, in voiceFactory
raise ValueError(voiceData["category"] + " is not a valid voice category!")
ValueError: professional is not a valid voice category!
When I removed the Professional Voice, it went back to normal
Make sure you're on the latest version of the library - professional voices should be fully supported.
I have a professional voice in my account and it works fine.
I've added a Professional Voice into the voice library and I got this error:
When I removed the Professional Voice, it went back to normal