%!s(
Parameter’s name | Parameter’s type | Description |
---|---|---|
out_filters |
string | Optional. Comma separated list of model outputs to return. |
audio |
bytes | |
text |
string |
curl -X POST \ -H 'Authorization: Bearer YOUR_USER_TOKEN' \ -H 'Content-Type: multipart/form-data' \ -F "out_filters=audio" \ -F "audio=@PATH_TO_AUDIO" \ -F "text=text_value" \ https://dev.kibernetika.io/api/v0.2/workspace/kuberlab-demo/serving/generate-speech/form-data
curl -X POST \ -H 'Authorization: Bearer YOUR_USER_TOKEN' \ -H 'Content-Type: application/json' \ -d ' { "audio": "base64_encoded_audio_contents", "text": "text_value" } ' https://dev.kibernetika.io/api/v0.2/workspace/kuberlab-demo/serving/generate-speech/proxy
import kclient from kclient.utils import client, request cl = client.with_bearer_token("YOUR_USER_TOKEN") serving_api = kclient.api.serving_api.ServingApi(cl) data = request.make(data={ "text": "text_value", }, files={ "audio": "/path/to/audio_file", }) resp = serving_api.serving_proxy(data, "kuberlab-demo", "generate-speech")
{ "audio": [ "base64_encoded_string" ] }