Class SessionConfig
- java.lang.Object
-
- ai.rev.speechtotext.models.streaming.SessionConfig
-
public class SessionConfig extends Object
The SessionConfig represents additional streaming options that can be provided.
-
-
Constructor Summary
Constructors Constructor Description SessionConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCustomVocabularyId()Returns the custom vocabulary ID.IntegergetDeleteAfterSeconds()Returns the value of deleteAfterSeconds.BooleangetDetailedPartials()Returns the value of detailed partials optionBooleangetFilterProfanity()Returns the value of the filter profanity option.StringgetLanguage()Returns the value of language.StringgetMetaData()Returns the metadata.BooleangetRemoveDisfluencies()Returns the value of the remove disfluencies option.DoublegetStartTs()Returns the value of startTs.StringgetTranscriber()Returns the value of transcriber.voidsetCustomVocabularyId(String customVocabularyId)Specifies the ID of the custom vocabulary the speech engine should use while processing audio samples.voidsetDeleteAfterSeconds(Integer deleteAfterSeconds)Specifies the number of seconds to be waited until the job is auto-deleted after its completion.voidsetDetailedPartials(Boolean detailedPartials)Specifies whether or not to return detailed partials.voidsetFilterProfanity(Boolean filterProfanity)Specifies whether or not the speech engine should filter profanity in the output.voidsetLanguage(String language)Specifies the language to use for the streaming job.voidsetMetaData(String metaData)Specifies the metadata to be used in the submission request to /jobs.voidsetRemoveDisfluencies(Boolean removeDisfluencies)Specifies whether or not the speech engine should remove disfluencies in the output.voidsetStartTs(Double startTs)Specifies the number of seconds to offset all hypotheses timings.voidsetTranscriber(String transcriber)Specifies the type of transcriber to use to transcribe the media.
-
-
-
Method Detail
-
getMetaData
public String getMetaData()
Returns the metadata.- Returns:
- The metadata.
-
setMetaData
public void setMetaData(String metaData)
Specifies the metadata to be used in the submission request to /jobs.- Parameters:
metaData- The metadata to send with the request.
-
getFilterProfanity
public Boolean getFilterProfanity()
Returns the value of the filter profanity option.- Returns:
- The value of the filter profanity option.
-
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.- See Also:
- https://docs.rev.ai/api/streaming/requests/#profanity-filter
-
getCustomVocabularyId
public String getCustomVocabularyId()
Returns the custom vocabulary ID.- Returns:
- The custom vocabulary ID.
-
setCustomVocabularyId
public void setCustomVocabularyId(String customVocabularyId)
Specifies the ID of the custom vocabulary the speech engine should use while processing audio samples. Custom vocabularies are submitted prior to usage in the stream and assigned an Id.- Parameters:
customVocabularyId- The ID of the custom vocabulary.
-
getRemoveDisfluencies
public Boolean getRemoveDisfluencies()
Returns the value of the remove disfluencies option.- Returns:
- The value of the remove disfluencies option.
-
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 filter profanity.- See Also:
- https://docs.rev.ai/api/streaming/requests/#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.
-
getDetailedPartials
public Boolean getDetailedPartials()
Returns the value of detailed partials option- Returns:
- The value of the detailed partials option.
-
setDetailedPartials
public void setDetailedPartials(Boolean detailedPartials)
Specifies whether or not to return detailed partials. Setting the option is optional.- Parameters:
detailedPartials- The option to enable detailed partials.- See Also:
- https://docs.rev.ai/api/streaming/requests/#detailed-partials
-
getStartTs
public Double getStartTs()
Returns the value of startTs.- Returns:
- The startTs value.
-
setStartTs
public void setStartTs(Double startTs)
Specifies the number of seconds to offset all hypotheses timings.- Parameters:
startTs- The number of seconds to offset all hypotheses timings.
-
getTranscriber
public String getTranscriber()
Returns the value of transcriber.- Returns:
- The transcriber value.
-
setTranscriber
public void setTranscriber(String transcriber)
Specifies the type of transcriber to use to transcribe the media.- Parameters:
transcriber- The type of transcriber to use to transcribe the media.
-
getLanguage
public String getLanguage()
Returns the value of language.- Returns:
- The language value.
-
setLanguage
public void setLanguage(String language)
Specifies the language to use for the streaming job.- Parameters:
language- The language to use for the streaming job.
-
-