From 29fa401714436985ea28d98e9c7df3328231c168 Mon Sep 17 00:00:00 2001 From: Jose Ramirez Date: Tue, 4 Mar 2025 00:20:55 -0800 Subject: [PATCH] s/speeh/speech (#11) --- client/types/types.go | 6 +++--- cmd/transcribe/main.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/client/types/types.go b/client/types/types.go index 8b179c4..12b488e 100644 --- a/client/types/types.go +++ b/client/types/types.go @@ -242,16 +242,16 @@ const ( TimestampsGranularityCharacter TimestampsGranularity = "character" ) -type SpeehToTextModel string +type SpeechToTextModel string const ( - SpeehToTextModelScribeV1 SpeehToTextModel = "scribe_v1" + SpeechToTextModelScribeV1 SpeechToTextModel = "scribe_v1" ) // SpeechToTextRequest represents a request to the speech-to-text API type SpeechToTextRequest struct { // The ID of the model to use for transcription (currently only 'scribe_v1') - ModelID SpeehToTextModel `json:"model_id"` + ModelID SpeechToTextModel `json:"model_id"` // ISO-639-1 or ISO-639-3 language code. If not specified, language is auto-detected LanguageCode string `json:"language_code,omitempty"` // Whether to tag audio events like (laughter), (footsteps), etc. diff --git a/cmd/transcribe/main.go b/cmd/transcribe/main.go index 1a4f059..7d0d484 100644 --- a/cmd/transcribe/main.go +++ b/cmd/transcribe/main.go @@ -17,7 +17,7 @@ func main() { filePath := os.Args[1] resp, err := client.ConvertSpeechToText(ctx, filePath, types.SpeechToTextRequest{ - ModelID: types.SpeehToTextModelScribeV1, + ModelID: types.SpeechToTextModelScribeV1, TimestampsGranularity: types.TimestampsGranularityWord, Diarize: true, })