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.
      • 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.
      • 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.