Formerly KrillinAI, VideoTranslation and Dubbing Tool for 120+ Languages. Open-source AI workspace for creators, powered by Codex. Video downloader, video translation, create videos, images, audios, and edits with Agents in one place. For your Social Media like YouTube, TikTok, Instagram, etc.
TypeScript agent-skillscodex-clideskop-appdubbingimage-generationlocalizationskillsttsvideo-editingvideo-generationvideo-transcriptionvideo-translation
fix: wrong pronounce in tts
沈浩7834fc51a535
diff --git a/internal/service/subtitle_service.go b/internal/service/subtitle_service.goindex 5876632c..838358e6 100644--- a/internal/service/subtitle_service.go+++ b/internal/service/subtitle_service.go@@ -80,10 +80,10 @@ func (s Service) StartSubtitleTask(req dto.StartVideoSubtitleTaskReq) (*dto.StarStatus: types.SubtitleTaskStatusProcessing,}var ttsVoiceCode string- if req.TtsVoiceCode == types.SubtitleTaskTtsVoiceCodeSijia {- ttsVoiceCode = "sijia"+ if req.TtsVoiceCode == types.SubtitleTaskTtsVoiceCodeLongyu {+ ttsVoiceCode = "longyu"} else {- ttsVoiceCode = "sicheng"+ ttsVoiceCode = "longchen"}// 处理声音克隆源diff --git a/internal/types/subtitle_task.go b/internal/types/subtitle_task.goindex e0d955cf..a7c50b7b 100644--- a/internal/types/subtitle_task.go+++ b/internal/types/subtitle_task.go@@ -106,8 +106,8 @@ const ()const (- SubtitleTaskTtsVoiceCodeSijia uint8 = iota + 1- SubtitleTaskTtsVoiceCodeSicheng+ SubtitleTaskTtsVoiceCodeLongyu uint8 = iota + 1+ SubtitleTaskTtsVoiceCodeLongchen)const (diff --git a/pkg/aliyun/tts.go b/pkg/aliyun/tts.goindex 3bc7f1e8..46b25d25 100644--- a/pkg/aliyun/tts.go+++ b/pkg/aliyun/tts.go@@ -99,6 +99,7 @@ func (c *TtsClient) Text2Speech(text, voice, outputFile string) error {go c.receiveMessages(conn, onTextMessage, onBinaryMessage, synthesisStarted, synthesisComplete)taskId := util.GenerateID()+ log.GetLogger().Info("SpeechClient StartSynthesis", zap.String("taskId", taskId), zap.Any("payload", startPayload))if err := c.StartSynthesis(conn, taskId, startPayload, synthesisStarted); err != nil {return fmt.Errorf("failed to start synthesis: %w", err)}