{"model":"glm-tts-clone","voice_name":"my_custom_voice_001hmr","input":"Welcome to our voice replication service, which will generate speech with the same timbre as the sample audio.","file_id":"1765763613033-11fae2aaf7e845c1b2a716ce7052e6bc.mp3","text":"Hello, this is the text content of a sample audio clip, used for sound reproduction reference."}
Request Code Samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request POST 'https://api.302.ai/bigmodel/api/paas/v4/voice/clone' \
--header'Authorization: Bearer ' \
--header'Content-Type: application/json' \
--data-raw'{
"model": "glm-tts-clone",
"voice_name": "my_custom_voice_001hmr",
"input": "Welcome to our voice replication service, which will generate speech with the same timbre as the sample audio.",
"file_id": "1765763613033-11fae2aaf7e845c1b2a716ce7052e6bc.mp3",
"text": "Hello, this is the text content of a sample audio clip, used for sound reproduction reference."
}'