Class Transcript.Builder
- java.lang.Object
-
- com.assemblyai.api.resources.transcripts.types.Transcript.Builder
-
- All Implemented Interfaces:
Transcript._FinalStage,Transcript.AcousticModelStage,Transcript.AudioUrlStage,Transcript.AutoHighlightsStage,Transcript.IdStage,Transcript.LanguageModelStage,Transcript.RedactPiiStage,Transcript.StatusStage,Transcript.SummarizationStage,Transcript.WebhookAuthStage
- Enclosing class:
- Transcript
public static final class Transcript.Builder extends java.lang.Object implements Transcript.IdStage, Transcript.LanguageModelStage, Transcript.AcousticModelStage, Transcript.StatusStage, Transcript.AudioUrlStage, Transcript.WebhookAuthStage, Transcript.AutoHighlightsStage, Transcript.RedactPiiStage, Transcript.SummarizationStage, Transcript._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Transcript.StatusStageacousticModel(java.lang.String acousticModel)The acoustic model that was used for the transcriptTranscript._FinalStageaudioDuration(java.lang.Double audioDuration)The duration of this transcript object's media file, in secondsTranscript._FinalStageaudioDuration(java.util.Optional<java.lang.Double> audioDuration)Transcript._FinalStageaudioEndAt(java.lang.Integer audioEndAt)The point in time, in milliseconds, in the file at which the transcription was terminatedTranscript._FinalStageaudioEndAt(java.util.Optional<java.lang.Integer> audioEndAt)Transcript._FinalStageaudioStartFrom(java.lang.Integer audioStartFrom)The point in time, in milliseconds, in the file at which the transcription was startedTranscript._FinalStageaudioStartFrom(java.util.Optional<java.lang.Integer> audioStartFrom)Transcript.WebhookAuthStageaudioUrl(java.lang.String audioUrl)The URL of the media that was transcribedTranscript._FinalStageautoChapters(java.lang.Boolean autoChapters)Whether Auto Chapters is enabled, can be true or falseTranscript._FinalStageautoChapters(java.util.Optional<java.lang.Boolean> autoChapters)Transcript.RedactPiiStageautoHighlights(boolean autoHighlights)Whether Key Phrases is enabled, either true or falseTranscript._FinalStageautoHighlightsResult(AutoHighlightsResult autoHighlightsResult)Transcript._FinalStageautoHighlightsResult(java.util.Optional<AutoHighlightsResult> autoHighlightsResult)Transcript._FinalStageboostParam(java.lang.String boostParam)The word boost parameter valueTranscript._FinalStageboostParam(java.util.Optional<java.lang.String> boostParam)Transcriptbuild()Transcript._FinalStagechapters(java.util.List<Chapter> chapters)An array of temporally sequential chapters for the audio fileTranscript._FinalStagechapters(java.util.Optional<java.util.List<Chapter>> chapters)Transcript._FinalStageconfidence(java.lang.Double confidence)The confidence score for the transcript, between 0.0 (low confidence) and 1.0 (high confidence)Transcript._FinalStageconfidence(java.util.Optional<java.lang.Double> confidence)Transcript._FinalStagecontentSafety(java.lang.Boolean contentSafety)Whether Content Moderation is enabled, can be true or falseTranscript._FinalStagecontentSafety(java.util.Optional<java.lang.Boolean> contentSafety)Transcript._FinalStagecontentSafetyLabels(ContentSafetyLabelsResult contentSafetyLabels)Transcript._FinalStagecontentSafetyLabels(java.util.Optional<ContentSafetyLabelsResult> contentSafetyLabels)Transcript._FinalStagecustomSpelling(java.util.List<TranscriptCustomSpelling> customSpelling)Customize how words are spelled and formatted using to and from valuesTranscript._FinalStagecustomSpelling(java.util.Optional<java.util.List<TranscriptCustomSpelling>> customSpelling)Transcript._FinalStagecustomTopics(java.lang.Boolean customTopics)Whether custom topics is enabled, either true or falseTranscript._FinalStagecustomTopics(java.util.Optional<java.lang.Boolean> customTopics)Transcript._FinalStagedisfluencies(java.lang.Boolean disfluencies)Transcribe Filler Words, like "umm", in your media file; can be true or falseTranscript._FinalStagedisfluencies(java.util.Optional<java.lang.Boolean> disfluencies)Transcript._FinalStagedualChannel(java.lang.Boolean dualChannel)Whether Dual channel transcription was enabled in the transcription request, either true or falseTranscript._FinalStagedualChannel(java.util.Optional<java.lang.Boolean> dualChannel)Transcript._FinalStageentities(java.util.List<Entity> entities)An array of results for the Entity Detection model, if it is enabled.Transcript._FinalStageentities(java.util.Optional<java.util.List<Entity>> entities)Transcript._FinalStageentityDetection(java.lang.Boolean entityDetection)Whether Entity Detection is enabled, can be true or falseTranscript._FinalStageentityDetection(java.util.Optional<java.lang.Boolean> entityDetection)Transcript._FinalStageerror(java.lang.String error)Error message of why the transcript failedTranscript._FinalStageerror(java.util.Optional<java.lang.String> error)Transcript._FinalStagefilterProfanity(java.lang.Boolean filterProfanity)Whether Profanity Filtering is enabled, either true or falseTranscript._FinalStagefilterProfanity(java.util.Optional<java.lang.Boolean> filterProfanity)Transcript._FinalStageformatText(java.lang.Boolean formatText)Whether Text Formatting is enabled, either true or falseTranscript._FinalStageformatText(java.util.Optional<java.lang.Boolean> formatText)Transcript.Builderfrom(Transcript other)Transcript._FinalStageiabCategories(java.lang.Boolean iabCategories)Whether Topic Detection is enabled, can be true or falseTranscript._FinalStageiabCategories(java.util.Optional<java.lang.Boolean> iabCategories)Transcript._FinalStageiabCategoriesResult(TopicDetectionModelResult iabCategoriesResult)Transcript._FinalStageiabCategoriesResult(java.util.Optional<TopicDetectionModelResult> iabCategoriesResult)Transcript.LanguageModelStageid(java.lang.String id)The unique identifier of your transcriptTranscript._FinalStagelanguageCode(TranscriptLanguageCode languageCode)The language of your audio file.Transcript._FinalStagelanguageCode(java.util.Optional<TranscriptLanguageCode> languageCode)Transcript._FinalStagelanguageDetection(java.lang.Boolean languageDetection)Whether Automatic language detection is enabled, either true or falseTranscript._FinalStagelanguageDetection(java.util.Optional<java.lang.Boolean> languageDetection)Transcript.AcousticModelStagelanguageModel(java.lang.String languageModel)The language model that was used for the transcriptTranscript._FinalStagepunctuate(java.lang.Boolean punctuate)Whether Automatic Punctuation is enabled, either true or falseTranscript._FinalStagepunctuate(java.util.Optional<java.lang.Boolean> punctuate)Transcript.SummarizationStageredactPii(boolean redactPii)Whether PII Redaction is enabled, either true or falseTranscript._FinalStageredactPiiAudio(java.lang.Boolean redactPiiAudio)Whether a redacted version of the audio file was generated, either true or false.Transcript._FinalStageredactPiiAudio(java.util.Optional<java.lang.Boolean> redactPiiAudio)Transcript._FinalStageredactPiiAudioQuality(RedactPiiAudioQuality redactPiiAudioQuality)Transcript._FinalStageredactPiiAudioQuality(java.util.Optional<RedactPiiAudioQuality> redactPiiAudioQuality)Transcript._FinalStageredactPiiPolicies(java.util.List<PiiPolicy> redactPiiPolicies)The list of PII Redaction policies that were enabled, if PII Redaction is enabled.Transcript._FinalStageredactPiiPolicies(java.util.Optional<java.util.List<PiiPolicy>> redactPiiPolicies)Transcript._FinalStageredactPiiSub(SubstitutionPolicy redactPiiSub)The replacement logic for detected PII, can be "entity_type" or "hash".Transcript._FinalStageredactPiiSub(java.util.Optional<SubstitutionPolicy> redactPiiSub)Transcript._FinalStagesentimentAnalysis(java.lang.Boolean sentimentAnalysis)Whether Sentiment Analysis is enabled, can be true or falseTranscript._FinalStagesentimentAnalysis(java.util.Optional<java.lang.Boolean> sentimentAnalysis)Transcript._FinalStagesentimentAnalysisResults(java.util.List<SentimentAnalysisResult> sentimentAnalysisResults)An array of results for the Sentiment Analysis model, if it is enabled.Transcript._FinalStagesentimentAnalysisResults(java.util.Optional<java.util.List<SentimentAnalysisResult>> sentimentAnalysisResults)Transcript._FinalStagespeakerLabels(java.lang.Boolean speakerLabels)Whether Speaker diarization is enabled, can be true or falseTranscript._FinalStagespeakerLabels(java.util.Optional<java.lang.Boolean> speakerLabels)Transcript._FinalStagespeakersExpected(java.lang.Integer speakersExpected)Tell the speaker label model how many speakers it should attempt to identify, up to 10.Transcript._FinalStagespeakersExpected(java.util.Optional<java.lang.Integer> speakersExpected)Transcript._FinalStagespeechModel(SpeechModel speechModel)Transcript._FinalStagespeechModel(java.util.Optional<SpeechModel> speechModel)Transcript._FinalStagespeechThreshold(java.lang.Double speechThreshold)Defaults to null.Transcript._FinalStagespeechThreshold(java.util.Optional<java.lang.Double> speechThreshold)Transcript._FinalStagespeedBoost(java.lang.Boolean speedBoost)Whether speed boost is enabledTranscript._FinalStagespeedBoost(java.util.Optional<java.lang.Boolean> speedBoost)Transcript.AudioUrlStagestatus(TranscriptStatus status)The status of your transcript.Transcript._FinalStagesummarization(boolean summarization)Whether Summarization is enabled, either true or falseTranscript._FinalStagesummary(java.lang.String summary)The generated summary of the media file, if Summarization is enabledTranscript._FinalStagesummary(java.util.Optional<java.lang.String> summary)Transcript._FinalStagesummaryModel(java.lang.String summaryModel)The Summarization model used to generate the summary, if Summarization is enabledTranscript._FinalStagesummaryModel(java.util.Optional<java.lang.String> summaryModel)Transcript._FinalStagesummaryType(java.lang.String summaryType)The type of summary generated, if Summarization is enabledTranscript._FinalStagesummaryType(java.util.Optional<java.lang.String> summaryType)Transcript._FinalStagetext(java.lang.String text)The textual transcript of your media fileTranscript._FinalStagetext(java.util.Optional<java.lang.String> text)Transcript._FinalStagethrottled(java.lang.Boolean throttled)True while a request is throttled and false when a request is no longer throttledTranscript._FinalStagethrottled(java.util.Optional<java.lang.Boolean> throttled)Transcript._FinalStagetopics(java.util.List<java.lang.String> topics)The list of custom topics provided if custom topics is enabledTranscript._FinalStagetopics(java.util.Optional<java.util.List<java.lang.String>> topics)Transcript._FinalStageutterances(java.util.List<TranscriptUtterance> utterances)When dual_channel or speaker_labels is enabled, a list of turn-by-turn utterance objects.Transcript._FinalStageutterances(java.util.Optional<java.util.List<TranscriptUtterance>> utterances)Transcript.AutoHighlightsStagewebhookAuth(boolean webhookAuth)Whether webhook authentication details were providedTranscript._FinalStagewebhookAuthHeaderName(java.lang.String webhookAuthHeaderName)The header name which should be sent back with webhook callsTranscript._FinalStagewebhookAuthHeaderName(java.util.Optional<java.lang.String> webhookAuthHeaderName)Transcript._FinalStagewebhookStatusCode(java.lang.Integer webhookStatusCode)The status code we received from your server when delivering your webhook, if a webhook URL was providedTranscript._FinalStagewebhookStatusCode(java.util.Optional<java.lang.Integer> webhookStatusCode)Transcript._FinalStagewebhookUrl(java.lang.String webhookUrl)The URL to which we send webhooks upon trancription completionTranscript._FinalStagewebhookUrl(java.util.Optional<java.lang.String> webhookUrl)Transcript._FinalStagewordBoost(java.util.List<java.lang.String> wordBoost)The list of custom vocabulary to boost transcription probability forTranscript._FinalStagewordBoost(java.util.Optional<java.util.List<java.lang.String>> wordBoost)Transcript._FinalStagewords(java.util.List<TranscriptWord> words)An array of temporally-sequential word objects, one for each word in the transcript.Transcript._FinalStagewords(java.util.Optional<java.util.List<TranscriptWord>> words)
-
-
-
Method Detail
-
from
public Transcript.Builder from(Transcript other)
- Specified by:
fromin interfaceTranscript.IdStage
-
id
public Transcript.LanguageModelStage id(java.lang.String id)
The unique identifier of your transcript
- Specified by:
idin interfaceTranscript.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
languageModel
public Transcript.AcousticModelStage languageModel(java.lang.String languageModel)
The language model that was used for the transcript
- Specified by:
languageModelin interfaceTranscript.LanguageModelStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
acousticModel
public Transcript.StatusStage acousticModel(java.lang.String acousticModel)
The acoustic model that was used for the transcript
- Specified by:
acousticModelin interfaceTranscript.AcousticModelStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
status
public Transcript.AudioUrlStage status(TranscriptStatus status)
The status of your transcript. Possible values are queued, processing, completed, or error.
- Specified by:
statusin interfaceTranscript.StatusStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
audioUrl
public Transcript.WebhookAuthStage audioUrl(java.lang.String audioUrl)
The URL of the media that was transcribed
- Specified by:
audioUrlin interfaceTranscript.AudioUrlStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
webhookAuth
public Transcript.AutoHighlightsStage webhookAuth(boolean webhookAuth)
Whether webhook authentication details were provided
- Specified by:
webhookAuthin interfaceTranscript.WebhookAuthStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
autoHighlights
public Transcript.RedactPiiStage autoHighlights(boolean autoHighlights)
Whether Key Phrases is enabled, either true or false
- Specified by:
autoHighlightsin interfaceTranscript.AutoHighlightsStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
redactPii
public Transcript.SummarizationStage redactPii(boolean redactPii)
Whether PII Redaction is enabled, either true or false
- Specified by:
redactPiiin interfaceTranscript.RedactPiiStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
summarization
public Transcript._FinalStage summarization(boolean summarization)
Whether Summarization is enabled, either true or false
- Specified by:
summarizationin interfaceTranscript.SummarizationStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
error
public Transcript._FinalStage error(java.lang.String error)
Error message of why the transcript failed
- Specified by:
errorin interfaceTranscript._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
error
public Transcript._FinalStage error(java.util.Optional<java.lang.String> error)
- Specified by:
errorin interfaceTranscript._FinalStage
-
throttled
public Transcript._FinalStage throttled(java.lang.Boolean throttled)
True while a request is throttled and false when a request is no longer throttled
- Specified by:
throttledin interfaceTranscript._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
throttled
public Transcript._FinalStage throttled(java.util.Optional<java.lang.Boolean> throttled)
- Specified by:
throttledin interfaceTranscript._FinalStage
-
speechThreshold
public Transcript._FinalStage speechThreshold(java.lang.Double speechThreshold)
Defaults to null. Reject audio files that contain less than this fraction of speech. Valid values are in the range [0, 1] inclusive.
- Specified by:
speechThresholdin interfaceTranscript._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
speechThreshold
public Transcript._FinalStage speechThreshold(java.util.Optional<java.lang.Double> speechThreshold)
- Specified by:
speechThresholdin interfaceTranscript._FinalStage
-
entities
public Transcript._FinalStage entities(java.util.List<Entity> entities)
An array of results for the Entity Detection model, if it is enabled. See Entity detection for more information.
- Specified by:
entitiesin interfaceTranscript._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
entities
public Transcript._FinalStage entities(java.util.Optional<java.util.List<Entity>> entities)
- Specified by:
entitiesin interfaceTranscript._FinalStage
-
entityDetection
public Transcript._FinalStage entityDetection(java.lang.Boolean entityDetection)
Whether Entity Detection is enabled, can be true or false
- Specified by:
entityDetectionin interfaceTranscript._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
entityDetection
public Transcript._FinalStage entityDetection(java.util.Optional<java.lang.Boolean> entityDetection)
- Specified by:
entityDetectionin interfaceTranscript._FinalStage
-
sentimentAnalysisResults
public Transcript._FinalStage sentimentAnalysisResults(java.util.List<SentimentAnalysisResult> sentimentAnalysisResults)
An array of results for the Sentiment Analysis model, if it is enabled. See Sentiment analysis for more information.
- Specified by:
sentimentAnalysisResultsin interfaceTranscript._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
sentimentAnalysisResults
public Transcript._FinalStage sentimentAnalysisResults(java.util.Optional<java.util.List<SentimentAnalysisResult>> sentimentAnalysisResults)
- Specified by:
sentimentAnalysisResultsin interfaceTranscript._FinalStage
-
sentimentAnalysis
public Transcript._FinalStage sentimentAnalysis(java.lang.Boolean sentimentAnalysis)
Whether Sentiment Analysis is enabled, can be true or false
- Specified by:
sentimentAnalysisin interfaceTranscript._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
sentimentAnalysis
public Transcript._FinalStage sentimentAnalysis(java.util.Optional<java.lang.Boolean> sentimentAnalysis)
- Specified by:
sentimentAnalysisin interfaceTranscript._FinalStage
-
disfluencies
public Transcript._FinalStage disfluencies(java.lang.Boolean disfluencies)
Transcribe Filler Words, like "umm", in your media file; can be true or false
- Specified by:
disfluenciesin interfaceTranscript._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
disfluencies
public Transcript._FinalStage disfluencies(java.util.Optional<java.lang.Boolean> disfluencies)
- Specified by:
disfluenciesin interfaceTranscript._FinalStage
-
topics
public Transcript._FinalStage topics(java.util.List<java.lang.String> topics)
The list of custom topics provided if custom topics is enabled
- Specified by:
topicsin interfaceTranscript._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
topics
public Transcript._FinalStage topics(java.util.Optional<java.util.List<java.lang.String>> topics)
- Specified by:
topicsin interfaceTranscript._FinalStage
-
customTopics
public Transcript._FinalStage customTopics(java.lang.Boolean customTopics)
Whether custom topics is enabled, either true or false
- Specified by:
customTopicsin interfaceTranscript._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
customTopics
public Transcript._FinalStage customTopics(java.util.Optional<java.lang.Boolean> customTopics)
- Specified by:
customTopicsin interfaceTranscript._FinalStage
-
summary
public Transcript._FinalStage summary(java.lang.String summary)
The generated summary of the media file, if Summarization is enabled
- Specified by:
summaryin interfaceTranscript._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
summary
public Transcript._FinalStage summary(java.util.Optional<java.lang.String> summary)
- Specified by:
summaryin interfaceTranscript._FinalStage
-
summaryModel
public Transcript._FinalStage summaryModel(java.lang.String summaryModel)
The Summarization model used to generate the summary, if Summarization is enabled
- Specified by:
summaryModelin interfaceTranscript._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
summaryModel
public Transcript._FinalStage summaryModel(java.util.Optional<java.lang.String> summaryModel)
- Specified by:
summaryModelin interfaceTranscript._FinalStage
-
summaryType
public Transcript._FinalStage summaryType(java.lang.String summaryType)
The type of summary generated, if Summarization is enabled
- Specified by:
summaryTypein interfaceTranscript._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
summaryType
public Transcript._FinalStage summaryType(java.util.Optional<java.lang.String> summaryType)
- Specified by:
summaryTypein interfaceTranscript._FinalStage
-
chapters
public Transcript._FinalStage chapters(java.util.List<Chapter> chapters)
An array of temporally sequential chapters for the audio file
- Specified by:
chaptersin interfaceTranscript._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
chapters
public Transcript._FinalStage chapters(java.util.Optional<java.util.List<Chapter>> chapters)
- Specified by:
chaptersin interfaceTranscript._FinalStage
-
autoChapters
public Transcript._FinalStage autoChapters(java.lang.Boolean autoChapters)
Whether Auto Chapters is enabled, can be true or false
- Specified by:
autoChaptersin interfaceTranscript._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
autoChapters
public Transcript._FinalStage autoChapters(java.util.Optional<java.lang.Boolean> autoChapters)
- Specified by:
autoChaptersin interfaceTranscript._FinalStage
-
customSpelling
public Transcript._FinalStage customSpelling(java.util.List<TranscriptCustomSpelling> customSpelling)
Customize how words are spelled and formatted using to and from values
- Specified by:
customSpellingin interfaceTranscript._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
customSpelling
public Transcript._FinalStage customSpelling(java.util.Optional<java.util.List<TranscriptCustomSpelling>> customSpelling)
- Specified by:
customSpellingin interfaceTranscript._FinalStage
-
languageDetection
public Transcript._FinalStage languageDetection(java.lang.Boolean languageDetection)
Whether Automatic language detection is enabled, either true or false
- Specified by:
languageDetectionin interfaceTranscript._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
languageDetection
public Transcript._FinalStage languageDetection(java.util.Optional<java.lang.Boolean> languageDetection)
- Specified by:
languageDetectionin interfaceTranscript._FinalStage
-
iabCategoriesResult
public Transcript._FinalStage iabCategoriesResult(TopicDetectionModelResult iabCategoriesResult)
- Specified by:
iabCategoriesResultin interfaceTranscript._FinalStage
-
iabCategoriesResult
public Transcript._FinalStage iabCategoriesResult(java.util.Optional<TopicDetectionModelResult> iabCategoriesResult)
- Specified by:
iabCategoriesResultin interfaceTranscript._FinalStage
-
iabCategories
public Transcript._FinalStage iabCategories(java.lang.Boolean iabCategories)
Whether Topic Detection is enabled, can be true or false
- Specified by:
iabCategoriesin interfaceTranscript._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
iabCategories
public Transcript._FinalStage iabCategories(java.util.Optional<java.lang.Boolean> iabCategories)
- Specified by:
iabCategoriesin interfaceTranscript._FinalStage
-
contentSafetyLabels
public Transcript._FinalStage contentSafetyLabels(ContentSafetyLabelsResult contentSafetyLabels)
- Specified by:
contentSafetyLabelsin interfaceTranscript._FinalStage
-
contentSafetyLabels
public Transcript._FinalStage contentSafetyLabels(java.util.Optional<ContentSafetyLabelsResult> contentSafetyLabels)
- Specified by:
contentSafetyLabelsin interfaceTranscript._FinalStage
-
contentSafety
public Transcript._FinalStage contentSafety(java.lang.Boolean contentSafety)
Whether Content Moderation is enabled, can be true or false
- Specified by:
contentSafetyin interfaceTranscript._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
contentSafety
public Transcript._FinalStage contentSafety(java.util.Optional<java.lang.Boolean> contentSafety)
- Specified by:
contentSafetyin interfaceTranscript._FinalStage
-
speakersExpected
public Transcript._FinalStage speakersExpected(java.lang.Integer speakersExpected)
Tell the speaker label model how many speakers it should attempt to identify, up to 10. See Speaker diarization for more details.
- Specified by:
speakersExpectedin interfaceTranscript._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
speakersExpected
public Transcript._FinalStage speakersExpected(java.util.Optional<java.lang.Integer> speakersExpected)
- Specified by:
speakersExpectedin interfaceTranscript._FinalStage
-
speakerLabels
public Transcript._FinalStage speakerLabels(java.lang.Boolean speakerLabels)
Whether Speaker diarization is enabled, can be true or false
- Specified by:
speakerLabelsin interfaceTranscript._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
speakerLabels
public Transcript._FinalStage speakerLabels(java.util.Optional<java.lang.Boolean> speakerLabels)
- Specified by:
speakerLabelsin interfaceTranscript._FinalStage
-
redactPiiSub
public Transcript._FinalStage redactPiiSub(SubstitutionPolicy redactPiiSub)
The replacement logic for detected PII, can be "entity_type" or "hash". See PII redaction for more details.
- Specified by:
redactPiiSubin interfaceTranscript._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
redactPiiSub
public Transcript._FinalStage redactPiiSub(java.util.Optional<SubstitutionPolicy> redactPiiSub)
- Specified by:
redactPiiSubin interfaceTranscript._FinalStage
-
redactPiiPolicies
public Transcript._FinalStage redactPiiPolicies(java.util.List<PiiPolicy> redactPiiPolicies)
The list of PII Redaction policies that were enabled, if PII Redaction is enabled. See PII redaction for more information.
- Specified by:
redactPiiPoliciesin interfaceTranscript._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
redactPiiPolicies
public Transcript._FinalStage redactPiiPolicies(java.util.Optional<java.util.List<PiiPolicy>> redactPiiPolicies)
- Specified by:
redactPiiPoliciesin interfaceTranscript._FinalStage
-
redactPiiAudioQuality
public Transcript._FinalStage redactPiiAudioQuality(RedactPiiAudioQuality redactPiiAudioQuality)
- Specified by:
redactPiiAudioQualityin interfaceTranscript._FinalStage
-
redactPiiAudioQuality
public Transcript._FinalStage redactPiiAudioQuality(java.util.Optional<RedactPiiAudioQuality> redactPiiAudioQuality)
- Specified by:
redactPiiAudioQualityin interfaceTranscript._FinalStage
-
redactPiiAudio
public Transcript._FinalStage redactPiiAudio(java.lang.Boolean redactPiiAudio)
Whether a redacted version of the audio file was generated, either true or false. See PII redaction for more information.
- Specified by:
redactPiiAudioin interfaceTranscript._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
redactPiiAudio
public Transcript._FinalStage redactPiiAudio(java.util.Optional<java.lang.Boolean> redactPiiAudio)
- Specified by:
redactPiiAudioin interfaceTranscript._FinalStage
-
filterProfanity
public Transcript._FinalStage filterProfanity(java.lang.Boolean filterProfanity)
Whether Profanity Filtering is enabled, either true or false
- Specified by:
filterProfanityin interfaceTranscript._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
filterProfanity
public Transcript._FinalStage filterProfanity(java.util.Optional<java.lang.Boolean> filterProfanity)
- Specified by:
filterProfanityin interfaceTranscript._FinalStage
-
boostParam
public Transcript._FinalStage boostParam(java.lang.String boostParam)
The word boost parameter value
- Specified by:
boostParamin interfaceTranscript._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
boostParam
public Transcript._FinalStage boostParam(java.util.Optional<java.lang.String> boostParam)
- Specified by:
boostParamin interfaceTranscript._FinalStage
-
wordBoost
public Transcript._FinalStage wordBoost(java.util.List<java.lang.String> wordBoost)
The list of custom vocabulary to boost transcription probability for
- Specified by:
wordBoostin interfaceTranscript._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
wordBoost
public Transcript._FinalStage wordBoost(java.util.Optional<java.util.List<java.lang.String>> wordBoost)
- Specified by:
wordBoostin interfaceTranscript._FinalStage
-
audioEndAt
public Transcript._FinalStage audioEndAt(java.lang.Integer audioEndAt)
The point in time, in milliseconds, in the file at which the transcription was terminated
- Specified by:
audioEndAtin interfaceTranscript._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
audioEndAt
public Transcript._FinalStage audioEndAt(java.util.Optional<java.lang.Integer> audioEndAt)
- Specified by:
audioEndAtin interfaceTranscript._FinalStage
-
audioStartFrom
public Transcript._FinalStage audioStartFrom(java.lang.Integer audioStartFrom)
The point in time, in milliseconds, in the file at which the transcription was started
- Specified by:
audioStartFromin interfaceTranscript._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
audioStartFrom
public Transcript._FinalStage audioStartFrom(java.util.Optional<java.lang.Integer> audioStartFrom)
- Specified by:
audioStartFromin interfaceTranscript._FinalStage
-
autoHighlightsResult
public Transcript._FinalStage autoHighlightsResult(AutoHighlightsResult autoHighlightsResult)
- Specified by:
autoHighlightsResultin interfaceTranscript._FinalStage
-
autoHighlightsResult
public Transcript._FinalStage autoHighlightsResult(java.util.Optional<AutoHighlightsResult> autoHighlightsResult)
- Specified by:
autoHighlightsResultin interfaceTranscript._FinalStage
-
speedBoost
public Transcript._FinalStage speedBoost(java.lang.Boolean speedBoost)
Whether speed boost is enabled
- Specified by:
speedBoostin interfaceTranscript._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
speedBoost
public Transcript._FinalStage speedBoost(java.util.Optional<java.lang.Boolean> speedBoost)
- Specified by:
speedBoostin interfaceTranscript._FinalStage
-
webhookAuthHeaderName
public Transcript._FinalStage webhookAuthHeaderName(java.lang.String webhookAuthHeaderName)
The header name which should be sent back with webhook calls
- Specified by:
webhookAuthHeaderNamein interfaceTranscript._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
webhookAuthHeaderName
public Transcript._FinalStage webhookAuthHeaderName(java.util.Optional<java.lang.String> webhookAuthHeaderName)
- Specified by:
webhookAuthHeaderNamein interfaceTranscript._FinalStage
-
webhookStatusCode
public Transcript._FinalStage webhookStatusCode(java.lang.Integer webhookStatusCode)
The status code we received from your server when delivering your webhook, if a webhook URL was provided
- Specified by:
webhookStatusCodein interfaceTranscript._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
webhookStatusCode
public Transcript._FinalStage webhookStatusCode(java.util.Optional<java.lang.Integer> webhookStatusCode)
- Specified by:
webhookStatusCodein interfaceTranscript._FinalStage
-
webhookUrl
public Transcript._FinalStage webhookUrl(java.lang.String webhookUrl)
The URL to which we send webhooks upon trancription completion
- Specified by:
webhookUrlin interfaceTranscript._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
webhookUrl
public Transcript._FinalStage webhookUrl(java.util.Optional<java.lang.String> webhookUrl)
- Specified by:
webhookUrlin interfaceTranscript._FinalStage
-
dualChannel
public Transcript._FinalStage dualChannel(java.lang.Boolean dualChannel)
Whether Dual channel transcription was enabled in the transcription request, either true or false
- Specified by:
dualChannelin interfaceTranscript._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
dualChannel
public Transcript._FinalStage dualChannel(java.util.Optional<java.lang.Boolean> dualChannel)
- Specified by:
dualChannelin interfaceTranscript._FinalStage
-
formatText
public Transcript._FinalStage formatText(java.lang.Boolean formatText)
Whether Text Formatting is enabled, either true or false
- Specified by:
formatTextin interfaceTranscript._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
formatText
public Transcript._FinalStage formatText(java.util.Optional<java.lang.Boolean> formatText)
- Specified by:
formatTextin interfaceTranscript._FinalStage
-
punctuate
public Transcript._FinalStage punctuate(java.lang.Boolean punctuate)
Whether Automatic Punctuation is enabled, either true or false
- Specified by:
punctuatein interfaceTranscript._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
punctuate
public Transcript._FinalStage punctuate(java.util.Optional<java.lang.Boolean> punctuate)
- Specified by:
punctuatein interfaceTranscript._FinalStage
-
audioDuration
public Transcript._FinalStage audioDuration(java.lang.Double audioDuration)
The duration of this transcript object's media file, in seconds
- Specified by:
audioDurationin interfaceTranscript._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
audioDuration
public Transcript._FinalStage audioDuration(java.util.Optional<java.lang.Double> audioDuration)
- Specified by:
audioDurationin interfaceTranscript._FinalStage
-
confidence
public Transcript._FinalStage confidence(java.lang.Double confidence)
The confidence score for the transcript, between 0.0 (low confidence) and 1.0 (high confidence)
- Specified by:
confidencein interfaceTranscript._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
confidence
public Transcript._FinalStage confidence(java.util.Optional<java.lang.Double> confidence)
- Specified by:
confidencein interfaceTranscript._FinalStage
-
utterances
public Transcript._FinalStage utterances(java.util.List<TranscriptUtterance> utterances)
When dual_channel or speaker_labels is enabled, a list of turn-by-turn utterance objects. See Speaker diarization for more information.
- Specified by:
utterancesin interfaceTranscript._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
utterances
public Transcript._FinalStage utterances(java.util.Optional<java.util.List<TranscriptUtterance>> utterances)
- Specified by:
utterancesin interfaceTranscript._FinalStage
-
words
public Transcript._FinalStage words(java.util.List<TranscriptWord> words)
An array of temporally-sequential word objects, one for each word in the transcript. See Speech recognition for more information.
- Specified by:
wordsin interfaceTranscript._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
words
public Transcript._FinalStage words(java.util.Optional<java.util.List<TranscriptWord>> words)
- Specified by:
wordsin interfaceTranscript._FinalStage
-
text
public Transcript._FinalStage text(java.lang.String text)
The textual transcript of your media file
- Specified by:
textin interfaceTranscript._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
text
public Transcript._FinalStage text(java.util.Optional<java.lang.String> text)
- Specified by:
textin interfaceTranscript._FinalStage
-
languageCode
public Transcript._FinalStage languageCode(TranscriptLanguageCode languageCode)
The language of your audio file. Possible values are found in Supported Languages. The default value is 'en_us'.
- Specified by:
languageCodein interfaceTranscript._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
languageCode
public Transcript._FinalStage languageCode(java.util.Optional<TranscriptLanguageCode> languageCode)
- Specified by:
languageCodein interfaceTranscript._FinalStage
-
speechModel
public Transcript._FinalStage speechModel(SpeechModel speechModel)
- Specified by:
speechModelin interfaceTranscript._FinalStage
-
speechModel
public Transcript._FinalStage speechModel(java.util.Optional<SpeechModel> speechModel)
- Specified by:
speechModelin interfaceTranscript._FinalStage
-
build
public Transcript build()
- Specified by:
buildin interfaceTranscript._FinalStage
-
-