support tts format

This commit is contained in:
2023-11-30 12:01:15 +08:00
parent 97a75ce35f
commit 92252f66ed
3 changed files with 22 additions and 1 deletions

View File

@@ -29,7 +29,7 @@ export default function TTSButton(props: TTSProps) {
model,
input,
voice,
response_format: "opus",
response_format: props.chatStore.tts_format || "mp3",
};
if (props.chatStore.tts_speed_enabled) {
body["speed"] = props.chatStore.tts_speed;