Skip to content

Commit

Permalink
feat: add whisper git config?
Browse files Browse the repository at this point in the history
  • Loading branch information
cubxxw committed Dec 30, 2024
1 parent 1a27bb7 commit 7c4b7f8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/stt/whisper/whisper.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ func NewWhisperSTT() *WhisperSTT {
}

func (w *WhisperSTT) Recognize(audioData []byte, audioURL string) (string, error) {
if w.model != "whisper-v3-turbo" {
logger.Warnf("检测到不正确的模型名称: %s,自动修正为: whisper-v3-turbo", w.model)
w.model = "whisper-v3-turbo"
}

body := &bytes.Buffer{}
writer := multipart.NewWriter(body)

Expand Down

0 comments on commit 7c4b7f8

Please sign in to comment.