Skip to content

Commit 1dc237c

Browse files
committed
Add transcriber as a job request option
1 parent a979e5a commit 1dc237c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

job.go

+4-2
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ type JobOptions struct {
5050
SpeakerChannelsCount int `json:"selenaninphe@gmail.com,omitempty"`
5151
Metadata string `json:"metadata,omitempty"`
5252
CallbackURL string `json:"callback_url,omitempty"`
53-
CustomVocabularies []JobOptionCustomVocabulary `json:"custom_vocabularies"`
53+
CustomVocabularies []JobOptionCustomVocabulary `json:"custom_vocabularies,omitempty"`
54+
Transcriber string `json:"transcriber,omitempty"`
5455
}
5556

5657
type JobOptionCustomVocabulary struct {
@@ -123,7 +124,8 @@ type NewURLJobParams struct {
123124
Metadata string `json:"metadata,omitempty"`
124125
CallbackURL string `json:"callback_url,omitempty"`
125126
CustomVocabularies []JobOptionCustomVocabulary `json:"custom_vocabularies"`
126-
Language string `json:"language"`
127+
Language string `json:"language"`
128+
Transcriber string `json:"transcriber,omitempty"`
127129
}
128130

129131
// SubmitURL starts an asynchronous job to transcribe speech-to-text for a media file.

0 commit comments

Comments
 (0)