refactor(tts): 简化火山TTS实现,移除可配置格式采样率等参数
重构了火山TTS的适配器与配置逻辑,移除了格式、采样率、model等可配置项,固定使用wav/24000Hz参数,简化请求流程并删除冗余的格式转换、WAV头拼装逻辑,同时更新文档与环境变量配置。
This commit is contained in:
@@ -30,11 +30,8 @@ type ByteDanceTTSConfig struct {
|
||||
ApiKey string
|
||||
ResourceId string
|
||||
Speaker string
|
||||
Model string // v3 声音复刻/语音大模型 子模型版本,复刻音色必填
|
||||
URL string
|
||||
Timeout time.Duration
|
||||
Format string // 音频编码格式: mp3/ogg_opus/pcm/wav(wav内部用pcm请求再封装header)
|
||||
SampleRate int // 采样率: 8000/16000/22050/24000/32000/44100/48000
|
||||
}
|
||||
|
||||
type SynthesisResult struct {
|
||||
|
||||
Reference in New Issue
Block a user