音色配置修改
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 52s

This commit is contained in:
Song367 2025-06-19 16:50:14 +08:00
parent a9230fcf81
commit 602bb1fce2

View File

@ -718,7 +718,7 @@ func (s *LLMService) DeleteConversation(conversationID, user string) (map[string
// SynthesizeSpeech converts text to speech
func (s *LLMService) SynthesizeSpeech(text string, audio string) (*SpeechResponse, error) {
payload := SpeechRequest{
Model: "speech-02-turbo",
Model: "speech-02-hd",
Text: text,
Stream: false,
LanguageBoost: "auto",
@ -727,8 +727,8 @@ func (s *LLMService) SynthesizeSpeech(text string, audio string) (*SpeechRespons
VoiceID: audio,
Speed: 1,
Vol: 1,
Pitch: 0,
Emotion: "happy",
Pitch: -1,
Emotion: "neutral",
},
AudioSetting: AudioSetting{
SampleRate: 32000,