fix: doubao audio speedRadio to speed

This commit is contained in:
feitianbubu
2025-10-18 01:17:18 +08:00
parent 412b935a4d
commit 13362887dd
2 changed files with 1 additions and 15 deletions

View File

@@ -119,20 +119,6 @@ func mapVoiceType(openAIVoice string) string {
return openAIVoice
}
// [0.1,2],默认为 1通常保留一位小数即可
func mapSpeedRatio(speed float64) float64 {
if speed == 0 {
return 1.0
}
if speed < 0.1 {
return 0.1
}
if speed > 2.0 {
return 2.0
}
return speed
}
func mapEncoding(responseFormat string) string {
if encoding, ok := responseFormatToEncodingMap[responseFormat]; ok {
return encoding