Screenshot from Visual Studio So I'm building a smart assistant on a bigger project, and everything but elevenlabs works just fine. This is a small test file I made to try to understand what's going on. Let me provide some more information: yes, I already tried with playsound and failed yes, I already tried with pydub and failed yes, I've already tried with pygame and failed yes, the audio on my pc is not muted yes, the API key is working (I know that cause everytime I run the program the remaining characters available in my elevenlabs account go down) yes, I tried to use "generate_play_audio" instead of "audio" and failed. I don't really know what the prroblem is, also because I am kinda new to python and APIs. Any help would be appreciated, thanks in advance!
I tried everything i listed above, but nothing seems to work. Is it because python is using the wrong speaker? I don't know... Is it because all of the methods I tried to play the sound with are wrong? I don't know... Please help
EDIT: (I posted the screenshot to show what happens after I run it: absolutely nothing besides characters remaining in my elevenlabs account going down. Here's formatted code)
from elevenlabslib import ElevenLabsUser
elevenLabsAPIKey = 'my working api key'
user = ElevenLabsUser(elevenLabsAPIKey)
voice = user.get_voices_by_name("Antoni")[0]
audio = voice.generate_audio("Hello")
type(audio)
source https://stackoverflow.com/questions/77073549/problem-with-elevenlabs-api-with-working-api-ke
Comments
Post a Comment