Actually set Elevenlabs API key from environment variable
This commit is contained in:
parent
b2b76702b3
commit
f6ccf6f780
|
@ -5,10 +5,11 @@ import json
|
||||||
import time
|
import time
|
||||||
import simpleaudio as sa
|
import simpleaudio as sa
|
||||||
import errno
|
import errno
|
||||||
from elevenlabs import generate, play, voices
|
from elevenlabs import generate, play, set_api_key, voices
|
||||||
|
|
||||||
client = OpenAI()
|
client = OpenAI()
|
||||||
|
|
||||||
|
set_api_key(os.environ.get("ELEVENLABS_API_KEY"))
|
||||||
|
|
||||||
def encode_image(image_path):
|
def encode_image(image_path):
|
||||||
while True:
|
while True:
|
||||||
|
|
Loading…
Reference in New Issue