Skip to content

Commit

Permalink
Merge pull request #130 from dvonthenen/remove-deprecated-options
Browse files Browse the repository at this point in the history
Remove All Deprecated Options for Live/PreRecorded Transcriptions
  • Loading branch information
dvonthenen authored Nov 17, 2023
2 parents a7b8599 + 8f645dd commit aae09e9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
8 changes: 0 additions & 8 deletions pkg/client/interfaces/types-prerecorded.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,16 @@ https://developers.deepgram.com/reference/pre-recorded
*/
type PreRecordedTranscriptionOptions struct {
Alternatives int `json:"alternatives" url:"alternatives,omitempty" `
AnalyzeSentiment bool `json:"analyze_sentiment" url:"analyze_sentiment,omitempty" `
Callback string `json:"callback" url:"callback,omitempty" `
Dates bool `json:"dates" url:"dates,omitempty"` // Indicates whether to convert dates from written format (e.g., january first) to numerical format (e.g., 01-01).
DetectEntities bool `json:"detect_entities" url:"detect_entities,omitempty"`
DetectLanguage bool `json:"detect_language" url:"detect_language,omitempty" `
DetectTopics bool `json:"detect_topics" url:"detect_topics,omitempty" `
Diarize bool `json:"diarize" url:"diarize,omitempty" `
Diarize_version string `json:"diarize_version" url:"diarize_version,omitempty" `
Dictation bool `json:"dictation" url:"dictation,omitempty"` // Option to format punctuated commands. Eg: "i went to the store period new paragraph then i went home" --> "i went to the store. <\n> then i went home"
Keywords []string `json:"keywords" url:"keywords,omitempty" `
KeywordBoost string `json:"keyword_boost" url:"keyword_boost,omitempty" `
Language string `json:"language" url:"language,omitempty" `
Measurements bool `json:"measurements" url:"measurements,omitempty"`
Model string `json:"model" url:"model,omitempty" `
Multichannel bool `json:"multichannel" url:"multichannel,omitempty" `
Ner bool `json:"ner" url:"ner,omitempty" `
Numbers bool `json:"numbers" url:"numbers,omitempty" `
Numerals bool `json:"numerals" url:"numerals,omitempty" ` // Same as Numbers, old name for same option
Paragraphs bool `json:"paragraphs" url:"paragraphs,omitempty" `
Profanity_filter bool `json:"profanity_filter" url:"profanity_filter,omitempty" `
Expand All @@ -46,7 +39,6 @@ type PreRecordedTranscriptionOptions struct {
Summarize interface{} `json:"summarize" url:"summarize,omitempty" ` // bool | string
Tag []string `json:"tag" url:"tag,omitempty"`
Tier string `json:"tier" url:"tier,omitempty" `
Times bool `json:"times" url:"times,omitempty"` // Indicates whether to convert times from written format (e.g., 3:00 pm) to numerical format (e.g., 15:00).
Utterances bool `json:"utterances" url:"utterances,omitempty" `
Utt_split float64 `json:"utt_split" url:"utt_split,omitempty" `
Version string `json:"version" url:"version,omitempty" `
Expand Down
8 changes: 0 additions & 8 deletions pkg/client/interfaces/types-stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,15 @@ type LiveTranscriptionOptions struct {
Alternatives int `json:"alternatives" url:"alternatives,omitempty" `
Callback string `json:"callback" url:"callback,omitempty" `
Channels int `json:"channels" url:"channels,omitempty" `
Dates bool `json:"dates" url:"dates,omitempty"` // Indicates whether to convert dates from written format (e.g., january first) to numerical format (e.g., 01-01).
Diarize bool `json:"diarize" url:"diarize,omitempty" `
Diarize_version string `json:"diarize_version" url:"diarize_version,omitempty" `
Dictation bool `json:"dictation" url:"dictation,omitempty"` // Option to format punctuated commands. Eg: "i went to the store period new paragraph then i went home" --> "i went to the store. <\n> then i went home"
Encoding string `json:"encoding" url:"encoding,omitempty" `
Endpointing string `json:"endpointing" url:"endpointing,omitempty" ` // Can be "false" to disable endpointing, or can be the milliseconds of silence to wait before returning a transcript. Default is 10 milliseconds. Is string here so it can accept "false" as a value.
Interim_results bool `json:"interim_results" url:"interim_results,omitempty" `
Keywords []string `json:"keywords" url:"keywords,omitempty" `
KeywordBoost string `json:"keyword_boost" url:"keyword_boost,omitempty" `
Language string `json:"language" url:"language,omitempty" `
Measurements bool `json:"measurements" url:"measurements,omitempty" `
Model string `json:"model" url:"model,omitempty" `
Multichannel bool `json:"multichannel" url:"multichannel,omitempty" `
Ner bool `json:"ner" url:"ner,omitempty" `
Numbers bool `json:"numbers" url:"numbers,omitempty" `
Numerals bool `json:"numerals" url:"numerals,omitempty" `
Profanity_filter bool `json:"profanity_filter" url:"profanity_filter,omitempty" `
Punctuate bool `json:"punctuate" url:"punctuate,omitempty" `
Expand All @@ -43,8 +37,6 @@ type LiveTranscriptionOptions struct {
Smart_format bool `json:"smart_format" url:"smart_format,omitempty" `
Tag []string `json:"tag" url:"tag,omitempty" `
Tier string `json:"tier" url:"tier,omitempty" `
Times bool `json:"times" url:"times,omitempty" `
Vad_turnoff int `json:"vad_turnoff" url:"vad_turnoff,omitempty" `
Version string `json:"version" url:"version,omitempty" `
FillerWords string `json:"filler_words" url:"filler_words,omitempty" `
}

0 comments on commit aae09e9

Please sign in to comment.