You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
269 B
15 lines
269 B
1 year ago
|
from swarms import OpenAITTS
|
||
12 months ago
|
import os
|
||
|
from dotenv import load_dotenv
|
||
|
|
||
|
load_dotenv()
|
||
1 year ago
|
|
||
|
tts = OpenAITTS(
|
||
1 year ago
|
model_name="tts-1-1106",
|
||
|
voice="onyx",
|
||
12 months ago
|
openai_api_key=os.getenv("OPENAI_API_KEY"),
|
||
1 year ago
|
)
|
||
|
|
||
12 months ago
|
out = tts.run_and_save("Dammmmmm those tacos were good")
|
||
1 year ago
|
print(out)
|