feat: Support Ali TTS

This commit is contained in:
mo 2024-06-02 17:53:25 +08:00
parent 82ff2857bc
commit 7ed4bc29a0

View File

@ -30,7 +30,7 @@ import (
func RelayAudioSpeechHelper(c *gin.Context) *relaymodel.ErrorWithStatusCode {
ctx := c.Request.Context()
meta := meta.GetByContext(c)
audioModel := "whisper-1"
audioModel := "tts-1"
tokenId := c.GetInt(ctxkey.TokenId)
channelId := c.GetInt(ctxkey.ChannelId)