From b4eddfe395ce9e52831d8149b4f4b6b6edb6c860 Mon Sep 17 00:00:00 2001 From: dvonthenen Date: Wed, 29 Nov 2023 08:25:42 -0800 Subject: [PATCH] Restores the VTT/SRT, Fixes Comments, and etc --- examples/prerecorded/file/main.go | 14 ++++ pkg/api/live/v1/interfaces/types.go | 12 ++-- pkg/api/manage/v1/manage.go | 3 + .../prerecorded/v1/interfaces/interfaces.go | 64 ------------------ .../prerecorded/v1/interfaces/prerecorded.go | 66 +++++++++++++++++++ pkg/api/prerecorded/v1/interfaces/types.go | 9 ++- pkg/api/prerecorded/v1/prerecorded.go | 49 -------------- pkg/api/prerecorded/v1/types.go | 9 --- pkg/api/version/constants.go | 1 + pkg/api/version/manage-version.go | 4 +- pkg/audio/microphone/constants.go | 2 +- pkg/audio/microphone/microphone.go | 7 +- pkg/audio/microphone/types.go | 2 +- pkg/client/interfaces/types-prerecorded.go | 2 +- pkg/client/interfaces/types-stream.go | 2 +- pkg/client/interfaces/utils.go | 3 + pkg/client/live/constants.go | 3 + pkg/client/live/init.go | 2 +- pkg/client/live/types.go | 3 + pkg/client/prerecorded/client.go | 3 + pkg/client/prerecorded/constants.go | 3 + pkg/client/prerecorded/init.go | 2 +- pkg/client/prerecorded/types.go | 3 + pkg/client/rest/debug.go | 3 + pkg/client/rest/debug/debug.go | 3 + pkg/client/rest/debug/file.go | 3 + pkg/client/rest/debug/log.go | 3 + pkg/client/rest/http.go | 3 + pkg/client/rest/init.go | 2 +- pkg/client/rest/rest.go | 3 + pkg/client/rest/types.go | 3 + pkg/common/constants.go | 2 +- 32 files changed, 149 insertions(+), 144 deletions(-) delete mode 100644 pkg/api/prerecorded/v1/interfaces/interfaces.go create mode 100644 pkg/api/prerecorded/v1/interfaces/prerecorded.go delete mode 100644 pkg/api/prerecorded/v1/types.go diff --git a/examples/prerecorded/file/main.go b/examples/prerecorded/file/main.go index 0357d0aa..07df0067 100644 --- a/examples/prerecorded/file/main.go +++ b/examples/prerecorded/file/main.go @@ -62,4 +62,18 @@ func main() { os.Exit(1) } log.Printf("\n\nResult:\n%s\n\n", prettyJson) + + vtt, err := res.ToWebVTT() + if err != nil { + log.Printf("ToWebVTT failed. Err: %v\n", err) + os.Exit(1) + } + log.Printf("\n\n\nVTT:\n%s\n\n\n", vtt) + + srt, err := res.ToSRT() + if err != nil { + log.Printf("ToSRT failed. Err: %v\n", err) + os.Exit(1) + } + log.Printf("\n\n\nSRT:\n%s\n\n\n", srt) } diff --git a/pkg/api/live/v1/interfaces/types.go b/pkg/api/live/v1/interfaces/types.go index 3b287bcd..2fc6647a 100644 --- a/pkg/api/live/v1/interfaces/types.go +++ b/pkg/api/live/v1/interfaces/types.go @@ -4,9 +4,9 @@ package interfaces -/* -Shared defintions for the Deepgram API -*/ +/***********************************/ +// shared/common structs +/***********************************/ // Word is a single word in a transcript type Word struct { Confidence float64 `json:"confidence,omitempty"` @@ -42,9 +42,9 @@ type Metadata struct { RequestID string `json:"request_id,omitempty"` } -/* -Results from Live Transcription -*/ +/***********************************/ +// Results from Live Transcription +/***********************************/ // MessageResponse is the response from a live transcription type MessageResponse struct { Channel Channel `json:"channel,omitempty"` diff --git a/pkg/api/manage/v1/manage.go b/pkg/api/manage/v1/manage.go index bbacb02e..9c5ca06b 100644 --- a/pkg/api/manage/v1/manage.go +++ b/pkg/api/manage/v1/manage.go @@ -2,6 +2,9 @@ // Use of this source code is governed by a MIT license that can be found in the LICENSE file. // SPDX-License-Identifier: MIT +/* +This package contains the code for the Keys APIs in the Deepgram Manage API +*/ package manage import ( diff --git a/pkg/api/prerecorded/v1/interfaces/interfaces.go b/pkg/api/prerecorded/v1/interfaces/interfaces.go deleted file mode 100644 index d2ad41d4..00000000 --- a/pkg/api/prerecorded/v1/interfaces/interfaces.go +++ /dev/null @@ -1,64 +0,0 @@ -// // Copyright 2023 Deepgram SDK contributors. All Rights Reserved. -// // Use of this source code is governed by a MIT license that can be found in the LICENSE file. -// // SPDX-License-Identifier: MIT - -// TODO: Need to look into this before the v1 release -package interfaces - -// import ( -// "encoding/json" -// "errors" -// "fmt" -// "net/http" -// "strings" -// ) - -// // TODO: Need to look into this before the v1 release -// func (resp *PreRecordedResponse) ToWebVTT() (string, error) { -// if resp.Results.Utterances == nil { -// return "", errors.New("this function requires a transcript that was generated with the utterances feature") -// } - -// vtt := "WEBVTT\n\n" - -// vtt += "NOTE\nTranscription provided by Deepgram\nRequest ID: " + resp.Metadata.RequestID + "\nCreated: " + resp.Metadata.Created + "\n\n" - -// for i, utterance := range resp.Results.Utterances { -// utterance := utterance -// start := SecondsToTimestamp(utterance.Start) -// end := SecondsToTimestamp(utterance.End) -// vtt += fmt.Sprintf("%d\n%s --> %s\n%s\n\n", i+1, start, end, utterance.Transcript) -// } -// return vtt, nil -// } - -// func (resp *PreRecordedResponse) ToSRT() (string, error) { -// if resp.Results.Utterances == nil { -// return "", errors.New("this function requires a transcript that was generated with the utterances feature") -// } - -// srt := "" - -// for i, utterance := range resp.Results.Utterances { -// utterance := utterance -// start := SecondsToTimestamp(utterance.Start) -// end := SecondsToTimestamp(utterance.End) -// end = strings.ReplaceAll(end, ".", ",") -// srt += fmt.Sprintf("%d\n%s --> %s\n%s\n\n", i+1, start, end, utterance.Transcript) - -// } -// return srt, nil -// } - -// func SecondsToTimestamp(seconds float64) string { -// hours := int(seconds / 3600) -// minutes := int((seconds - float64(hours*3600)) / 60) -// seconds = seconds - float64(hours*3600) - float64(minutes*60) -// return fmt.Sprintf("%02d:%02d:%02.3f", hours, minutes, seconds) -// } - -// func GetJson(resp *http.Response, target interface{}) error { -// defer resp.Body.Close() - -// return json.NewDecoder(resp.Body).Decode(target) -// } diff --git a/pkg/api/prerecorded/v1/interfaces/prerecorded.go b/pkg/api/prerecorded/v1/interfaces/prerecorded.go new file mode 100644 index 00000000..c139aea4 --- /dev/null +++ b/pkg/api/prerecorded/v1/interfaces/prerecorded.go @@ -0,0 +1,66 @@ +// // Copyright 2023 Deepgram SDK contributors. All Rights Reserved. +// // Use of this source code is governed by a MIT license that can be found in the LICENSE file. +// // SPDX-License-Identifier: MIT + +/* +This package provides the types for the Deepgram PreRecorded API. +*/ +package interfaces + +import ( + "encoding/json" + "errors" + "fmt" + "net/http" + "strings" +) + +// ToWebVTT implements output for VTT +func (resp *PreRecordedResponse) ToWebVTT() (string, error) { + if resp.Results.Utterances == nil { + return "", errors.New("this function requires a transcript that was generated with the utterances feature") + } + + vtt := "WEBVTT\n\n" + vtt += "NOTE\nTranscription provided by Deepgram\nRequest ID: " + resp.Metadata.RequestID + "\nCreated: " + resp.Metadata.Created + "\n\n" + + for i, utterance := range resp.Results.Utterances { + utterance := utterance + start := SecondsToTimestamp(utterance.Start) + end := SecondsToTimestamp(utterance.End) + vtt += fmt.Sprintf("%d\n%s --> %s\n%s\n\n", i+1, start, end, utterance.Transcript) + } + return vtt, nil +} + +// ToSRT implements output for SRT +func (resp *PreRecordedResponse) ToSRT() (string, error) { + if resp.Results.Utterances == nil { + return "", errors.New("this function requires a transcript that was generated with the utterances feature") + } + + srt := "" + + for i, utterance := range resp.Results.Utterances { + utterance := utterance + start := SecondsToTimestamp(utterance.Start) + end := SecondsToTimestamp(utterance.End) + end = strings.ReplaceAll(end, ".", ",") + srt += fmt.Sprintf("%d\n%s --> %s\n%s\n\n", i+1, start, end, utterance.Transcript) + + } + return srt, nil +} + +func SecondsToTimestamp(seconds float64) string { + hours := int(seconds / 3600) + minutes := int((seconds - float64(hours*3600)) / 60) + seconds = seconds - float64(hours*3600) - float64(minutes*60) + return fmt.Sprintf("%02d:%02d:%02.3f", hours, minutes, seconds) +} + +func GetJson(resp *http.Response, target interface{}) error { + defer resp.Body.Close() + + return json.NewDecoder(resp.Body).Decode(target) +} diff --git a/pkg/api/prerecorded/v1/interfaces/types.go b/pkg/api/prerecorded/v1/interfaces/types.go index c94dadfe..fd13c8d1 100644 --- a/pkg/api/prerecorded/v1/interfaces/types.go +++ b/pkg/api/prerecorded/v1/interfaces/types.go @@ -2,9 +2,14 @@ // Use of this source code is governed by a MIT license that can be found in the LICENSE file. // SPDX-License-Identifier: MIT +/* +This package provides the types for the Deepgram PreRecorded API. +*/ package interfaces +/***********************************/ // share/common structs +/***********************************/ type Metadata struct { TransactionKey string `json:"transaction_key,omitempty"` RequestID string `json:"request_id,omitempty"` @@ -134,7 +139,9 @@ type SummaryV2 struct { } type Summary SummaryV2 // internal reference to old name -// Response +/***********************************/ +// response/result structs +/***********************************/ type PreRecordedResponse struct { RequestID string `json:"request_id,omitempty"` // for ?callback=... Metadata Metadata `json:"metadata,omitempty"` diff --git a/pkg/api/prerecorded/v1/prerecorded.go b/pkg/api/prerecorded/v1/prerecorded.go index ca1c74b5..809deb4d 100644 --- a/pkg/api/prerecorded/v1/prerecorded.go +++ b/pkg/api/prerecorded/v1/prerecorded.go @@ -121,52 +121,3 @@ func (c *PrerecordedClient) FromURL(ctx context.Context, url string, options int return &resp, nil } - -// func (resp *PreRecordedResponse) ToWebVTT() (string, error) { -// if resp.Results.Utterances == nil { -// return "", errors.New("this function requires a transcript that was generated with the utterances feature") -// } - -// vtt := "WEBVTT\n\n" - -// vtt += "NOTE\nTranscription provided by Deepgram\nRequest ID: " + resp.Metadata.RequestId + "\nCreated: " + resp.Metadata.Created + "\n\n" - -// for i, utterance := range resp.Results.Utterances { -// utterance := utterance -// start := SecondsToTimestamp(utterance.Start) -// end := SecondsToTimestamp(utterance.End) -// vtt += fmt.Sprintf("%d\n%s --> %s\n%s\n\n", i+1, start, end, utterance.Transcript) -// } -// return vtt, nil -// } - -// func (resp *PreRecordedResponse) ToSRT() (string, error) { -// if resp.Results.Utterances == nil { -// return "", errors.New("this function requires a transcript that was generated with the utterances feature") -// } - -// srt := "" - -// for i, utterance := range resp.Results.Utterances { -// utterance := utterance -// start := SecondsToTimestamp(utterance.Start) -// end := SecondsToTimestamp(utterance.End) -// end = strings.ReplaceAll(end, ".", ",") -// srt += fmt.Sprintf("%d\n%s --> %s\n%s\n\n", i+1, start, end, utterance.Transcript) - -// } -// return srt, nil -// } - -// func SecondsToTimestamp(seconds float64) string { -// hours := int(seconds / 3600) -// minutes := int((seconds - float64(hours*3600)) / 60) -// seconds = seconds - float64(hours*3600) - float64(minutes*60) -// return fmt.Sprintf("%02d:%02d:%02.3f", hours, minutes, seconds) -// } - -// func GetJson(resp *http.Response, target interface{}) error { -// defer resp.Body.Close() - -// return json.NewDecoder(resp.Body).Decode(target) -// } diff --git a/pkg/api/prerecorded/v1/types.go b/pkg/api/prerecorded/v1/types.go deleted file mode 100644 index 7f27bb6d..00000000 --- a/pkg/api/prerecorded/v1/types.go +++ /dev/null @@ -1,9 +0,0 @@ -// Copyright 2023 Deepgram SDK contributors. All Rights Reserved. -// Use of this source code is governed by a MIT license that can be found in the LICENSE file. -// SPDX-License-Identifier: MIT - -package prerecorded - -// type urlSource struct { -// Url string `json:"url"` -// } diff --git a/pkg/api/version/constants.go b/pkg/api/version/constants.go index 83594fef..eefc321f 100644 --- a/pkg/api/version/constants.go +++ b/pkg/api/version/constants.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a MIT license that can be found in the LICENSE file. // SPDX-License-Identifier: MIT +// This package handles the versioning in the API for live/streaming transcription package version import "errors" diff --git a/pkg/api/version/manage-version.go b/pkg/api/version/manage-version.go index a35274bf..41e13bc0 100644 --- a/pkg/api/version/manage-version.go +++ b/pkg/api/version/manage-version.go @@ -2,9 +2,7 @@ // Use of this source code is governed by a MIT license that can be found in the LICENSE file. // SPDX-License-Identifier: MIT -/* -This package handles the versioning in the API both async and streaming -*/ +// This package handles the versioning in the API for live/streaming transcription package version import ( diff --git a/pkg/audio/microphone/constants.go b/pkg/audio/microphone/constants.go index 990556b7..bbcd1106 100644 --- a/pkg/audio/microphone/constants.go +++ b/pkg/audio/microphone/constants.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a MIT license that can be found in the LICENSE file. // SPDX-License-Identifier: MIT -// Implementation microphones using portaudio +// Implementation microphone using portaudio package microphone const ( diff --git a/pkg/audio/microphone/microphone.go b/pkg/audio/microphone/microphone.go index 419b13c2..053dff45 100644 --- a/pkg/audio/microphone/microphone.go +++ b/pkg/audio/microphone/microphone.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a MIT license that can be found in the LICENSE file. // SPDX-License-Identifier: MIT -// Implementation microphones using portaudio +// Implementation microphone using portaudio package microphone import ( @@ -19,7 +19,7 @@ import ( func Initialize() { err := portaudio.Initialize() if err != nil { - klog.V(1).Printf("portaudio.Initialize failed. Err: %v\n", err) + klog.V(1).Infof("portaudio.Initialize failed. Err: %v\n", err) } } @@ -27,7 +27,7 @@ func Initialize() { func Teardown() { err := portaudio.Terminate() if err != nil { - klog.V(1).Printf("portaudio.Terminate failed. Err: %v\n", err) + klog.V(1).Infof("portaudio.Terminate failed. Err: %v\n", err) } } @@ -97,7 +97,6 @@ func (m *Microphone) Stream(w io.Writer) error { } byteCount, err := w.Write(m.int16ToLittleEndianByte(m.intBuf)) - // byteCount, err := w.Write(m.int16ToLittleEndianByte(m.intBuf)) if err != nil { klog.V(1).Infof("w.Write failed. Err: %v\n", err) return err diff --git a/pkg/audio/microphone/types.go b/pkg/audio/microphone/types.go index b3d970c5..4ae48006 100644 --- a/pkg/audio/microphone/types.go +++ b/pkg/audio/microphone/types.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a MIT license that can be found in the LICENSE file. // SPDX-License-Identifier: MIT -// Implementation microphones using portaudio +// Implementation microphone using portaudio package microphone import ( diff --git a/pkg/client/interfaces/types-prerecorded.go b/pkg/client/interfaces/types-prerecorded.go index 5ac1a71d..658714d9 100644 --- a/pkg/client/interfaces/types-prerecorded.go +++ b/pkg/client/interfaces/types-prerecorded.go @@ -3,7 +3,7 @@ // SPDX-License-Identifier: MIT /* -This package contains the interface to manage the prerecorded interfaces for the Deepgram API +This package contains the interface to manage the prerecorded and live/stream interfaces for the Deepgram API */ package interfaces diff --git a/pkg/client/interfaces/types-stream.go b/pkg/client/interfaces/types-stream.go index 09044736..71801fa6 100644 --- a/pkg/client/interfaces/types-stream.go +++ b/pkg/client/interfaces/types-stream.go @@ -3,7 +3,7 @@ // SPDX-License-Identifier: MIT /* -This package contains the interface to manage the live/streaming interfaces for the Deepgram API +This package contains the interface to manage the prerecorded and live/stream interfaces for the Deepgram API */ package interfaces diff --git a/pkg/client/interfaces/utils.go b/pkg/client/interfaces/utils.go index a6f00bf8..31a9bcd5 100644 --- a/pkg/client/interfaces/utils.go +++ b/pkg/client/interfaces/utils.go @@ -2,6 +2,9 @@ // Use of this source code is governed by a MIT license that can be found in the LICENSE file. // SPDX-License-Identifier: MIT +/* +This package contains the interface to manage the prerecorded and live/stream interfaces for the Deepgram API +*/ package interfaces import ( diff --git a/pkg/client/live/constants.go b/pkg/client/live/constants.go index d8fbe2dc..079044a4 100644 --- a/pkg/client/live/constants.go +++ b/pkg/client/live/constants.go @@ -2,6 +2,9 @@ // Use of this source code is governed by a MIT license that can be found in the LICENSE file. // SPDX-License-Identifier: MIT +/* +This package provides the live/streaming client implementation for the Deepgram API +*/ package live import ( diff --git a/pkg/client/live/init.go b/pkg/client/live/init.go index b702e938..ecfbce8a 100644 --- a/pkg/client/live/init.go +++ b/pkg/client/live/init.go @@ -3,7 +3,7 @@ // SPDX-License-Identifier: MIT /* -This package contains the initialization code for the Deepgram Go SDK +This package provides the live/streaming client implementation for the Deepgram API */ package live diff --git a/pkg/client/live/types.go b/pkg/client/live/types.go index 15cb0f30..419632e4 100644 --- a/pkg/client/live/types.go +++ b/pkg/client/live/types.go @@ -2,6 +2,9 @@ // Use of this source code is governed by a MIT license that can be found in the LICENSE file. // SPDX-License-Identifier: MIT +/* +This package provides the live/streaming client implementation for the Deepgram API +*/ package live import ( diff --git a/pkg/client/prerecorded/client.go b/pkg/client/prerecorded/client.go index c2398ccb..144857f4 100644 --- a/pkg/client/prerecorded/client.go +++ b/pkg/client/prerecorded/client.go @@ -2,6 +2,9 @@ // Use of this source code is governed by a MIT license that can be found in the LICENSE file. // SPDX-License-Identifier: MIT +/* +This package provides the prerecorded client implementation for the Deepgram API +*/ package prerecorded import ( diff --git a/pkg/client/prerecorded/constants.go b/pkg/client/prerecorded/constants.go index dac7ec50..ae73e2fd 100644 --- a/pkg/client/prerecorded/constants.go +++ b/pkg/client/prerecorded/constants.go @@ -2,6 +2,9 @@ // Use of this source code is governed by a MIT license that can be found in the LICENSE file. // SPDX-License-Identifier: MIT +/* +This package provides the prerecorded client implementation for the Deepgram API +*/ package prerecorded import ( diff --git a/pkg/client/prerecorded/init.go b/pkg/client/prerecorded/init.go index e7804ce7..f5fc71f6 100644 --- a/pkg/client/prerecorded/init.go +++ b/pkg/client/prerecorded/init.go @@ -3,7 +3,7 @@ // SPDX-License-Identifier: MIT /* -This package contains the initialization code for the Deepgram Go SDK +This package provides the prerecorded client implementation for the Deepgram API */ package prerecorded diff --git a/pkg/client/prerecorded/types.go b/pkg/client/prerecorded/types.go index 148e088e..bb4b90d4 100644 --- a/pkg/client/prerecorded/types.go +++ b/pkg/client/prerecorded/types.go @@ -2,6 +2,9 @@ // Use of this source code is governed by a MIT license that can be found in the LICENSE file. // SPDX-License-Identifier: MIT +/* +This package provides the prerecorded client implementation for the Deepgram API +*/ package prerecorded import ( diff --git a/pkg/client/rest/debug.go b/pkg/client/rest/debug.go index fd2daa97..1ac15867 100644 --- a/pkg/client/rest/debug.go +++ b/pkg/client/rest/debug.go @@ -2,6 +2,9 @@ // Use of this source code is governed by a MIT license that can be found in the LICENSE file. // SPDX-License-Identifier: MIT +/* +This package implements a reusable REST client +*/ package rest import ( diff --git a/pkg/client/rest/debug/debug.go b/pkg/client/rest/debug/debug.go index 7a897b42..58671238 100644 --- a/pkg/client/rest/debug/debug.go +++ b/pkg/client/rest/debug/debug.go @@ -2,6 +2,9 @@ // Use of this source code is governed by a MIT license that can be found in the LICENSE file. // SPDX-License-Identifier: MIT +/* +This package provides API debugging at the REST/HTTP level +*/ package debug import ( diff --git a/pkg/client/rest/debug/file.go b/pkg/client/rest/debug/file.go index 780f7c0a..188d642b 100644 --- a/pkg/client/rest/debug/file.go +++ b/pkg/client/rest/debug/file.go @@ -2,6 +2,9 @@ // Use of this source code is governed by a MIT license that can be found in the LICENSE file. // SPDX-License-Identifier: MIT +/* +This package provides API debugging at the REST/HTTP level +*/ package debug import ( diff --git a/pkg/client/rest/debug/log.go b/pkg/client/rest/debug/log.go index 308d222f..59b00f97 100644 --- a/pkg/client/rest/debug/log.go +++ b/pkg/client/rest/debug/log.go @@ -2,6 +2,9 @@ // Use of this source code is governed by a MIT license that can be found in the LICENSE file. // SPDX-License-Identifier: MIT +/* +This package provides API debugging at the REST/HTTP level +*/ package debug import ( diff --git a/pkg/client/rest/http.go b/pkg/client/rest/http.go index d363adef..63f93445 100644 --- a/pkg/client/rest/http.go +++ b/pkg/client/rest/http.go @@ -2,6 +2,9 @@ // Use of this source code is governed by a MIT license that can be found in the LICENSE file. // SPDX-License-Identifier: MIT +/* +This package implements a reusable REST client +*/ package rest import ( diff --git a/pkg/client/rest/init.go b/pkg/client/rest/init.go index 95089c98..6ec74d85 100644 --- a/pkg/client/rest/init.go +++ b/pkg/client/rest/init.go @@ -3,7 +3,7 @@ // SPDX-License-Identifier: MIT /* -This package contains the initialization code for the Deepgram Go SDK +This package implements a reusable REST client */ package rest diff --git a/pkg/client/rest/rest.go b/pkg/client/rest/rest.go index f1afdb6e..1bf289ca 100644 --- a/pkg/client/rest/rest.go +++ b/pkg/client/rest/rest.go @@ -2,6 +2,9 @@ // Use of this source code is governed by a MIT license that can be found in the LICENSE file. // SPDX-License-Identifier: MIT +/* +This package implements a reusable REST client +*/ package rest import ( diff --git a/pkg/client/rest/types.go b/pkg/client/rest/types.go index bd583375..09c695df 100644 --- a/pkg/client/rest/types.go +++ b/pkg/client/rest/types.go @@ -2,6 +2,9 @@ // Use of this source code is governed by a MIT license that can be found in the LICENSE file. // SPDX-License-Identifier: MIT +/* +This package implements a reusable REST client +*/ package rest import ( diff --git a/pkg/common/constants.go b/pkg/common/constants.go index 5515bac6..d33b2436 100644 --- a/pkg/common/constants.go +++ b/pkg/common/constants.go @@ -3,7 +3,7 @@ // SPDX-License-Identifier: MIT /* -Contains shared artifacts for the Deepgram Go SDK. +This package contains the initialization code for the Deepgram Go SDK */ package common