client.generate_speech()
قريبًا في SDK
تحويل النص إلى كلام (TTS)
استدعِ /audio/speech باستخدام Python SDK.
الطريقة:
آخر تعديل في ٢ أكتوبر ٢٠٢٦
هل كانت هذه الصفحة مفيدة؟
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
استدعِ /audio/speech باستخدام Python SDK.
client.generate_speech()
result = client.generate_speech({
"model": "openai/gpt-4o-mini-tts",
"input": "Hello world",
"voice": "alloy",
"format": "mp3",
})
print(result)
هل كانت هذه الصفحة مفيدة؟