feat(tts): Implement naive response_format for tts endpoint (#4035)

Signed-off-by: n-Arno <arnaud.alcabas@gmail.com>
This commit is contained in:
Arnaud A 2024-11-02 20:13:35 +01:00 committed by GitHub
parent 57908df956
commit 65c3df392c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 61 additions and 9 deletions

View file

@ -1721,7 +1721,11 @@ const docTemplate = `{
"voice": {
"description": "voice audio file or speaker id",
"type": "string"
}
},
"response_format": {
"description": "(optional) output format of generated audio file, defaults to wav, accept wav, mp3, flac, aac, opus",
"type": "string"
},
}
},
"schema.ToolCall": {

View file

@ -1714,6 +1714,10 @@
"voice": {
"description": "voice audio file or speaker id",
"type": "string"
},
"response_format": {
"description": "(optional) output format of generated audio file, defaults to wav, accept wav, mp3, flac, aac, opus",
"type": "string"
}
}
},
@ -1742,4 +1746,4 @@
"in": "header"
}
}
}
}

View file

@ -679,6 +679,9 @@ definitions:
voice:
description: voice audio file or speaker id
type: string
response_format:
description: (optional) output format of generated audio file, defaults to wav, accept wav, mp3, flac, aac, opus
type: string
type: object
schema.ToolCall:
properties: