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.
swarms/examples/models/tts_speech_example.py

17 lines
271 B

import os
from dotenv import load_dotenv
from swarms import OpenAITTS
load_dotenv()
tts = OpenAITTS(
model_name="tts-1-1106",
voice="onyx",
openai_api_key=os.getenv("OPENAI_API_KEY"),
)
out = tts.run_and_save("Dammmmmm those tacos were good")
print(out)