Skip to content

Commit

Permalink
feat: add common version mange
Browse files Browse the repository at this point in the history
  • Loading branch information
cubxxw committed Dec 25, 2024
1 parent bb47e81 commit b31dd11
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions internal/stt/assemblyai/assemblyai.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b31dd11

Please sign in to comment.