feat: 重构项目以符合 Go 规范,添加 OpenAI 接口适配,优化长文本朗读功能(切割后合并)

This commit is contained in:
王锦强
2025-03-09 13:02:28 +08:00
parent 539f6d9ef5
commit 8f2fd68ebe
31 changed files with 2487 additions and 647 deletions

14
internal/models/voice.go Normal file
View File

@@ -0,0 +1,14 @@
package models
// Voice 表示一个语音合成声音
type Voice struct {
Name string `json:"name"` // 语音唯一标识符
DisplayName string `json:"display_name"` // 语音显示名称
LocalName string `json:"local_name"` // 本地化名称
ShortName string `json:"short_name"` // 简称,例如 zh-CN-XiaoxiaoNeural
Gender string `json:"gender"` // 性别: Female, Male
Locale string `json:"locale"` // 语言区域, 如 zh-CN
LocaleName string `json:"locale_name"` // 语言区域显示名称,如 中文(中国)
StyleList []string `json:"style_list,omitempty"` // 支持的说话风格列表
SampleRateHertz string `json:"sample_rate_hertz"` // 采样率
}