diff --git a/internal/stt/assemblyai/assemblyai.go b/internal/stt/assemblyai/assemblyai.go index c3609c5..fa70b56 100644 --- a/internal/stt/assemblyai/assemblyai.go +++ b/internal/stt/assemblyai/assemblyai.go @@ -43,10 +43,11 @@ func (s *STT) transcribeFromURL(audioURL string) (string, error) { ctx := context.Background() params := &aai.TranscriptOptionalParams{ - LanguageDetection: aai.Bool(false), // 禁用语言检测 - LanguageCode: "en", - FormatText: aai.Bool(true), - Punctuate: aai.Bool(true), + LanguageDetection: aai.Bool(true), + LanguageConfidenceThreshold: aai.Float64(0.1), + // LanguageCode: "en", + FormatText: aai.Bool(true), + Punctuate: aai.Bool(true), } transcript, err := s.client.Transcripts.TranscribeFromURL(ctx, audioURL, params)