Class TranscriptionCreateParams.Body.Builder
-
- All Implemented Interfaces:
public final class TranscriptionCreateParams.Body.BuilderA builder for Body.
-
-
Method Summary
-
-
Method Detail
-
audioUrl
final TranscriptionCreateParams.Body.Builder audioUrl(String audioUrl)
URL of the audio file to transcribe (legacy mode, no auto-storage)
-
audioUrl
final TranscriptionCreateParams.Body.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.Body.Builder autoHighlights(Boolean autoHighlights)
Automatically extract key phrases and topics
-
autoHighlights
final TranscriptionCreateParams.Body.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.Body.Builder boostParam(TranscriptionCreateParams.BoostParam boostParam)
How much to boost custom vocabulary
-
boostParam
final TranscriptionCreateParams.Body.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.Body.Builder contentSafetyLabels(Boolean contentSafetyLabels)
Enable content moderation and safety labeling
-
contentSafetyLabels
final TranscriptionCreateParams.Body.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.Body.Builder format(TranscriptionCreateParams.Format format)
Output format for the transcript when using vault mode
-
format
final TranscriptionCreateParams.Body.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.Body.Builder formatText(Boolean formatText)
Format text with proper capitalization
-
formatText
final TranscriptionCreateParams.Body.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.Body.Builder languageCode(String languageCode)
Language code (e.g., 'en_us', 'es', 'fr'). If not specified, language will be auto-detected
-
languageCode
final TranscriptionCreateParams.Body.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.Body.Builder languageDetection(Boolean languageDetection)
Enable automatic language detection
-
languageDetection
final TranscriptionCreateParams.Body.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.Body.Builder objectId(String objectId)
Object ID of the audio file in the vault (use with vault_id)
-
objectId
final TranscriptionCreateParams.Body.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.Body.Builder punctuate(Boolean punctuate)
Add punctuation to the transcript
-
punctuate
final TranscriptionCreateParams.Body.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.Body.Builder speakerLabels(Boolean speakerLabels)
Enable speaker identification and labeling
-
speakerLabels
final TranscriptionCreateParams.Body.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.Body.Builder speakersExpected(Long speakersExpected)
Expected number of speakers (improves accuracy when known)
-
speakersExpected
final TranscriptionCreateParams.Body.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.Body.Builder speechModels(List<String> speechModels)
Priority-ordered speech models to use
-
speechModels
final TranscriptionCreateParams.Body.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.Body.Builder addSpeechModel(String speechModel)
Adds a single String to speechModels.
-
vaultId
final TranscriptionCreateParams.Body.Builder vaultId(String vaultId)
Vault ID containing the audio file (use with object_id)
-
vaultId
final TranscriptionCreateParams.Body.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.Body.Builder wordBoost(List<String> wordBoost)
Custom vocabulary words to boost (e.g., legal terms)
-
wordBoost
final TranscriptionCreateParams.Body.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.Body.Builder addWordBoost(String wordBoost)
Adds a single String to Builder.wordBoost.
-
additionalProperties
final TranscriptionCreateParams.Body.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final TranscriptionCreateParams.Body.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final TranscriptionCreateParams.Body.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final TranscriptionCreateParams.Body.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final TranscriptionCreateParams.Body.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final TranscriptionCreateParams.Body build()
Returns an immutable instance of Body.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-