feat: enhance TTS request handling by refactoring methods, adding OpenAI request support, and improving text segmentation

This commit is contained in:
王锦强
2025-03-16 20:24:04 +08:00
parent 6fa5c1f467
commit 9100930d3a
5 changed files with 348 additions and 348 deletions

View File

@@ -15,3 +15,11 @@ type TTSResponse struct {
ContentType string `json:"content_type"` // MIME类型
CacheHit bool `json:"cache_hit"` // 是否命中缓存
}
// OpenAIRequest OpenAI TTS请求结构体
type OpenAIRequest struct {
Model string `json:"model"`
Input string `json:"input"`
Voice string `json:"voice"`
Speed float64 `json:"speed"`
}