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 b31dd11 commit d40912f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/stt/assemblyai/assemblyai.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ func (s *STT) Recognize(audioData []byte, audioURL string) (string, error) {
func (s *STT) transcribeFromURL(audioURL string) (string, error) {
ctx := context.Background()

// 首次尝试:启用语言检测
params := &aai.TranscriptOptionalParams{
LanguageDetection: aai.Bool(true),
LanguageConfidenceThreshold: aai.Float64(0.1),
// LanguageCode: "en",
FormatText: aai.Bool(true),
Punctuate: aai.Bool(true),
FormatText: aai.Bool(true),
Punctuate: aai.Bool(true),
}

transcript, err := s.client.Transcripts.TranscribeFromURL(ctx, audioURL, params)
Expand Down

0 comments on commit d40912f

Please sign in to comment.