Class TranscriptionCreateParams.Builder
-
- All Implemented Interfaces:
public final class TranscriptionCreateParams.BuilderA builder for TranscriptionCreateParams.
-
-
Method Summary
-
-
Method Detail
-
body
final TranscriptionCreateParams.Builder body(TranscriptionCreateParams.Body body)
Sets the entire request body.
This is generally only useful if you are already constructing the body separately. Otherwise, it's more convenient to use the top-level setters instead:
-
audioUrl
final TranscriptionCreateParams.Builder audioUrl(String audioUrl)
URL of the audio file to transcribe (legacy mode, no auto-storage)
-
audioUrl
final TranscriptionCreateParams.Builder audioUrl(JsonField<String> audioUrl)
Sets Builder.audioUrl to an arbitrary JSON value.
You should usually call Builder.audioUrl with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
autoHighlights
final TranscriptionCreateParams.Builder autoHighlights(Boolean autoHighlights)
Automatically extract key phrases and topics
-
autoHighlights
final TranscriptionCreateParams.Builder autoHighlights(JsonField<Boolean> autoHighlights)
Sets Builder.autoHighlights to an arbitrary JSON value.
You should usually call Builder.autoHighlights with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
boostParam
final TranscriptionCreateParams.Builder boostParam(TranscriptionCreateParams.BoostParam boostParam)
How much to boost custom vocabulary
-
boostParam
final TranscriptionCreateParams.Builder boostParam(JsonField<TranscriptionCreateParams.BoostParam> boostParam)
Sets Builder.boostParam to an arbitrary JSON value.
You should usually call Builder.boostParam with a well-typed BoostParam value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
contentSafetyLabels
final TranscriptionCreateParams.Builder contentSafetyLabels(Boolean contentSafetyLabels)
Enable content moderation and safety labeling
-
contentSafetyLabels
final TranscriptionCreateParams.Builder contentSafetyLabels(JsonField<Boolean> contentSafetyLabels)
Sets Builder.contentSafetyLabels to an arbitrary JSON value.
You should usually call Builder.contentSafetyLabels with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
format
final TranscriptionCreateParams.Builder format(TranscriptionCreateParams.Format format)
Output format for the transcript when using vault mode
-
format
final TranscriptionCreateParams.Builder format(JsonField<TranscriptionCreateParams.Format> format)
Sets Builder.format to an arbitrary JSON value.
You should usually call Builder.format with a well-typed Format value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
formatText
final TranscriptionCreateParams.Builder formatText(Boolean formatText)
Format text with proper capitalization
-
formatText
final TranscriptionCreateParams.Builder formatText(JsonField<Boolean> formatText)
Sets Builder.formatText to an arbitrary JSON value.
You should usually call Builder.formatText with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
languageCode
final TranscriptionCreateParams.Builder languageCode(String languageCode)
Language code (e.g., 'en_us', 'es', 'fr'). If not specified, language will be auto-detected
-
languageCode
final TranscriptionCreateParams.Builder languageCode(JsonField<String> languageCode)
Sets Builder.languageCode to an arbitrary JSON value.
You should usually call Builder.languageCode with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
languageDetection
final TranscriptionCreateParams.Builder languageDetection(Boolean languageDetection)
Enable automatic language detection
-
languageDetection
final TranscriptionCreateParams.Builder languageDetection(JsonField<Boolean> languageDetection)
Sets Builder.languageDetection to an arbitrary JSON value.
You should usually call Builder.languageDetection with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
objectId
final TranscriptionCreateParams.Builder objectId(String objectId)
Object ID of the audio file in the vault (use with vault_id)
-
objectId
final TranscriptionCreateParams.Builder objectId(JsonField<String> objectId)
Sets Builder.objectId to an arbitrary JSON value.
You should usually call Builder.objectId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
punctuate
final TranscriptionCreateParams.Builder punctuate(Boolean punctuate)
Add punctuation to the transcript
-
punctuate
final TranscriptionCreateParams.Builder punctuate(JsonField<Boolean> punctuate)
Sets Builder.punctuate to an arbitrary JSON value.
You should usually call Builder.punctuate with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
speakerLabels
final TranscriptionCreateParams.Builder speakerLabels(Boolean speakerLabels)
Enable speaker identification and labeling
-
speakerLabels
final TranscriptionCreateParams.Builder speakerLabels(JsonField<Boolean> speakerLabels)
Sets Builder.speakerLabels to an arbitrary JSON value.
You should usually call Builder.speakerLabels with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
speakersExpected
final TranscriptionCreateParams.Builder speakersExpected(Long speakersExpected)
Expected number of speakers (improves accuracy when known)
-
speakersExpected
final TranscriptionCreateParams.Builder speakersExpected(JsonField<Long> speakersExpected)
Sets Builder.speakersExpected to an arbitrary JSON value.
You should usually call Builder.speakersExpected with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
speechModels
final TranscriptionCreateParams.Builder speechModels(List<String> speechModels)
Priority-ordered speech models to use
-
speechModels
final TranscriptionCreateParams.Builder speechModels(JsonField<List<String>> speechModels)
Sets Builder.speechModels to an arbitrary JSON value.
You should usually call Builder.speechModels with a well-typed
List<String>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addSpeechModel
final TranscriptionCreateParams.Builder addSpeechModel(String speechModel)
Adds a single String to speechModels.
-
vaultId
final TranscriptionCreateParams.Builder vaultId(String vaultId)
Vault ID containing the audio file (use with object_id)
-
vaultId
final TranscriptionCreateParams.Builder vaultId(JsonField<String> vaultId)
Sets Builder.vaultId to an arbitrary JSON value.
You should usually call Builder.vaultId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
wordBoost
final TranscriptionCreateParams.Builder wordBoost(List<String> wordBoost)
Custom vocabulary words to boost (e.g., legal terms)
-
wordBoost
final TranscriptionCreateParams.Builder wordBoost(JsonField<List<String>> wordBoost)
Sets Builder.wordBoost to an arbitrary JSON value.
You should usually call Builder.wordBoost with a well-typed
List<String>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addWordBoost
final TranscriptionCreateParams.Builder addWordBoost(String wordBoost)
Adds a single String to Builder.wordBoost.
-
additionalBodyProperties
final TranscriptionCreateParams.Builder additionalBodyProperties(Map<String, JsonValue> additionalBodyProperties)
-
putAdditionalBodyProperty
final TranscriptionCreateParams.Builder putAdditionalBodyProperty(String key, JsonValue value)
-
putAllAdditionalBodyProperties
final TranscriptionCreateParams.Builder putAllAdditionalBodyProperties(Map<String, JsonValue> additionalBodyProperties)
-
removeAdditionalBodyProperty
final TranscriptionCreateParams.Builder removeAdditionalBodyProperty(String key)
-
removeAllAdditionalBodyProperties
final TranscriptionCreateParams.Builder removeAllAdditionalBodyProperties(Set<String> keys)
-
additionalHeaders
final TranscriptionCreateParams.Builder additionalHeaders(Headers additionalHeaders)
-
additionalHeaders
final TranscriptionCreateParams.Builder additionalHeaders(Map<String, Iterable<String>> additionalHeaders)
-
putAdditionalHeader
final TranscriptionCreateParams.Builder putAdditionalHeader(String name, String value)
-
putAdditionalHeaders
final TranscriptionCreateParams.Builder putAdditionalHeaders(String name, Iterable<String> values)
-
putAllAdditionalHeaders
final TranscriptionCreateParams.Builder putAllAdditionalHeaders(Headers additionalHeaders)
-
putAllAdditionalHeaders
final TranscriptionCreateParams.Builder putAllAdditionalHeaders(Map<String, Iterable<String>> additionalHeaders)
-
replaceAdditionalHeaders
final TranscriptionCreateParams.Builder replaceAdditionalHeaders(String name, String value)
-
replaceAdditionalHeaders
final TranscriptionCreateParams.Builder replaceAdditionalHeaders(String name, Iterable<String> values)
-
replaceAllAdditionalHeaders
final TranscriptionCreateParams.Builder replaceAllAdditionalHeaders(Headers additionalHeaders)
-
replaceAllAdditionalHeaders
final TranscriptionCreateParams.Builder replaceAllAdditionalHeaders(Map<String, Iterable<String>> additionalHeaders)
-
removeAdditionalHeaders
final TranscriptionCreateParams.Builder removeAdditionalHeaders(String name)
-
removeAllAdditionalHeaders
final TranscriptionCreateParams.Builder removeAllAdditionalHeaders(Set<String> names)
-
additionalQueryParams
final TranscriptionCreateParams.Builder additionalQueryParams(QueryParams additionalQueryParams)
-
additionalQueryParams
final TranscriptionCreateParams.Builder additionalQueryParams(Map<String, Iterable<String>> additionalQueryParams)
-
putAdditionalQueryParam
final TranscriptionCreateParams.Builder putAdditionalQueryParam(String key, String value)
-
putAdditionalQueryParams
final TranscriptionCreateParams.Builder putAdditionalQueryParams(String key, Iterable<String> values)
-
putAllAdditionalQueryParams
final TranscriptionCreateParams.Builder putAllAdditionalQueryParams(QueryParams additionalQueryParams)
-
putAllAdditionalQueryParams
final TranscriptionCreateParams.Builder putAllAdditionalQueryParams(Map<String, Iterable<String>> additionalQueryParams)
-
replaceAdditionalQueryParams
final TranscriptionCreateParams.Builder replaceAdditionalQueryParams(String key, String value)
-
replaceAdditionalQueryParams
final TranscriptionCreateParams.Builder replaceAdditionalQueryParams(String key, Iterable<String> values)
-
replaceAllAdditionalQueryParams
final TranscriptionCreateParams.Builder replaceAllAdditionalQueryParams(QueryParams additionalQueryParams)
-
replaceAllAdditionalQueryParams
final TranscriptionCreateParams.Builder replaceAllAdditionalQueryParams(Map<String, Iterable<String>> additionalQueryParams)
-
removeAdditionalQueryParams
final TranscriptionCreateParams.Builder removeAdditionalQueryParams(String key)
-
removeAllAdditionalQueryParams
final TranscriptionCreateParams.Builder removeAllAdditionalQueryParams(Set<String> keys)
-
build
final TranscriptionCreateParams build()
Returns an immutable instance of TranscriptionCreateParams.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-