{"model":"tts-1","input":"The quick brown fox jumped over the lazy dog.","voice":"alloy","response_format":"mp3","speed":1}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl--location--request POST 'http://dev-cn.your-api-server.com/v1/audio/speech' \
--header'Content-Type: application/json' \
--data-raw'{
"model":"tts-1",
"input":"The quick brown fox jumped over the lazy dog.",
"voice":"alloy",
"response_format":"mp3",
"speed":1
}'