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/tts_speech.py

11 lines
210 B

from swarms import OpenAITTS
tts = OpenAITTS(
model_name = "tts-1-1106",
voice = "onyx",
openai_api_key="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"
)
out = tts("Hello world")
print(out)