Class RevAiJobOptions
- java.lang.Object
-
- ai.rev.speechtotext.models.asynchronous.RevAiJobOptions
-
public class RevAiJobOptions extends Object
A RevAiJobOptions object represents parameters that are submitted along a new job.
-
-
Constructor Summary
Constructors Constructor Description RevAiJobOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCallbackUrl()Returns the callback url.List<CustomVocabulary>getCustomVocabularies()Returns a list ofCustomVocabularyobjects.IntegergetDeleteAfterSeconds()Returns the value of deleteAfterSeconds.BooleangetFilterProfanity()Returns the value of the filterProfanity BooleanStringgetLanguage()Returns the value of language.StringgetMediaUrl()Returns the media url.StringgetMetadata()Returns the metadata.BooleangetRemoveDisfluencies()Returns the value of the removeDisfluencies BooleanBooleangetSkipDiarization()Returns the value of the skip diarization Boolean.BooleangetSkipPunctuation()Returns the value of the skip punctuation Boolean.IntegergetSpeakerChannelsCount()Returns the speaker channel count.voidsetCallbackUrl(String callbackUrl)Specifies the callback url that Rev.ai will POST to when job processing is complete.voidsetCustomVocabularies(List<CustomVocabulary> customVocabularies)Provides the custom vocabularies to be used by the speech engine when processing the transcript.voidsetDeleteAfterSeconds(Integer deleteAfterSeconds)Specifies the number of seconds to be waited until the job is auto-deleted after its completion.voidsetFilterProfanity(Boolean filterProfanity)Specifies whether or not the speech engine should filter profanity in the output.voidsetLanguage(String language)Specifies language for ASR system using ISO 639-1 2-letter language code.voidsetMediaUrl(String mediaUrl)Specifies the url where the media can be downloaded.voidsetMetadata(String metadata)Optional metadata that is provided during job submission limited to 512 characters.voidsetRemoveDisfluencies(Boolean removeDisfluencies)Specifies whether or not the speech engine should remove disfluencies in the output.voidsetSkipDiarization(Boolean skipDiarization)Specifies if speaker diarization will be skipped by the speech engine.voidsetSkipPunctuation(Boolean skipPunctuation)Specifies if the "punct" elements will be skipped by the speech engine.voidsetSpeakerChannelsCount(Integer speakerChannelsCount)Specifies the number of speaker channels in the audio.
-
-
-
Method Detail
-
getMediaUrl
public String getMediaUrl()
Returns the media url.- Returns:
- The media url.
-
setMediaUrl
public void setMediaUrl(String mediaUrl)
Specifies the url where the media can be downloaded.- Parameters:
mediaUrl- The direct download url to the file.
-
getCallbackUrl
public String getCallbackUrl()
Returns the callback url.- Returns:
- the callback url.
-
setCallbackUrl
public void setCallbackUrl(String callbackUrl)
Specifies the callback url that Rev.ai will POST to when job processing is complete. This property is optional.- Parameters:
callbackUrl- The url to POST to when job processing is complete.
-
getSkipDiarization
public Boolean getSkipDiarization()
Returns the value of the skip diarization Boolean.- Returns:
- The skip diarization value.
-
setSkipDiarization
public void setSkipDiarization(Boolean skipDiarization)
Specifies if speaker diarization will be skipped by the speech engine. This property is optional and defaults to false.- Parameters:
skipDiarization- The value of the Boolean.
-
getSkipPunctuation
public Boolean getSkipPunctuation()
Returns the value of the skip punctuation Boolean.- Returns:
- The skip punctuation value.
-
setSkipPunctuation
public void setSkipPunctuation(Boolean skipPunctuation)
Specifies if the "punct" elements will be skipped by the speech engine. This property is optional and defaults to false.- Parameters:
skipPunctuation- The value of the Boolean.
-
getSpeakerChannelsCount
public Integer getSpeakerChannelsCount()
Returns the speaker channel count.- Returns:
- The speaker channel count.
-
setSpeakerChannelsCount
public void setSpeakerChannelsCount(Integer speakerChannelsCount)
Specifies the number of speaker channels in the audio. Each speaker channel is processed separately. When set the account will be charged the file * duration multiplied by the number of specified channels. This property is optional and defaults to null.- Parameters:
speakerChannelsCount- The number of separate speaker channels in the audio.
-
getCustomVocabularies
public List<CustomVocabulary> getCustomVocabularies()
Returns a list ofCustomVocabularyobjects.- Returns:
- A list of
CustomVocabularyobjects. - See Also:
CustomVocabulary
-
setCustomVocabularies
public void setCustomVocabularies(List<CustomVocabulary> customVocabularies)
Provides the custom vocabularies to be used by the speech engine when processing the transcript. List size is limited to 50 items. Providing custom vocabularies is optional.- Parameters:
customVocabularies- A list of custom vocabularies.- See Also:
CustomVocabulary
-
getMetadata
public String getMetadata()
Returns the metadata.- Returns:
- A String that contains the metadata.
-
setMetadata
public void setMetadata(String metadata)
Optional metadata that is provided during job submission limited to 512 characters.- Parameters:
metadata- A String to set as the metadata.
-
getFilterProfanity
public Boolean getFilterProfanity()
Returns the value of the filterProfanity Boolean- Returns:
- The filter profanity value.
-
setFilterProfanity
public void setFilterProfanity(Boolean filterProfanity)
Specifies whether or not the speech engine should filter profanity in the output. Setting the profanity filter is optional.- Parameters:
filterProfanity- The option to filter profanity.
-
getRemoveDisfluencies
public Boolean getRemoveDisfluencies()
Returns the value of the removeDisfluencies Boolean- Returns:
- The removeDisfluencies value.
-
setRemoveDisfluencies
public void setRemoveDisfluencies(Boolean removeDisfluencies)
Specifies whether or not the speech engine should remove disfluencies in the output. Setting the option to remove disfluencies is optional.- Parameters:
removeDisfluencies- The option to remove disfluencies.
-
getDeleteAfterSeconds
public Integer getDeleteAfterSeconds()
Returns the value of deleteAfterSeconds.- Returns:
- The deleteAfterSeconds value.
-
setDeleteAfterSeconds
public void setDeleteAfterSeconds(Integer deleteAfterSeconds)
Specifies the number of seconds to be waited until the job is auto-deleted after its completion.- Parameters:
deleteAfterSeconds- The number of seconds after job completion when job is auto-deleted.
-
getLanguage
public String getLanguage()
Returns the value of language.- Returns:
- the language value.
-
setLanguage
public void setLanguage(String language)
Specifies language for ASR system using ISO 639-1 2-letter language code.- Parameters:
language- ISO 639-1 2-letter language code of desired ASR language.
-
-