Class SessionConfig


  • public class SessionConfig
    extends Object
    The SessionConfig represents additional streaming options that can be provided.
    • Constructor Detail

      • SessionConfig

        public SessionConfig()
    • 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.
      • 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.