Class CustomVocabularySubmission


  • public class CustomVocabularySubmission
    extends Object
    • Constructor Detail

      • CustomVocabularySubmission

        public CustomVocabularySubmission()
    • Method Detail

      • 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 custom vocabulary submission limited to 512 characters.
        Parameters:
        metadata - A String to set as the metadata.
      • getCallbackUrl

        @Deprecated
        public String getCallbackUrl()
        Deprecated.
        Set the notificationConfig option with setNotificationConfig, then use getNotificationConfig instead
        Returns the callback url.
        Returns:
        the callback url.
      • setCallbackUrl

        @Deprecated
        public void setCallbackUrl​(String callbackUrl)
        Deprecated.
        Use setNotificationConfig instead
        Specifies the callback url that Rev AI will POST to when custom vocabulary processing is complete. This property is optional.
        Parameters:
        callbackUrl - The url to POST to when custom vocabulary processing is complete.
      • getNotificationConfig

        public CustomerUrlData getNotificationConfig()
        Returns the notification config.
        Returns:
        the notification config.
      • setNotificationConfig

        public void setNotificationConfig​(String callbackUrl,
                                          Map<String,​String> authHeaders)
        Specifies the callback url that Rev AI will POST to when custom vocabulary processing is complete and the auth headers to use when calling the url This property is optional.
        Parameters:
        callbackUrl - The url to POST to when custom vocabulary processing is complete.
        authHeaders - Optional parameter to authenticate access to the callback url
      • setNotificationConfig

        public void setNotificationConfig​(String callbackUrl)
        Specifies the callback url that Rev AI will POST to when custom vocabulary processing is complete This property is optional.
        Parameters:
        callbackUrl - The url to POST to when custom vocabulary processing is complete.
      • setCustomVocabularies

        public void setCustomVocabularies​(List<CustomVocabulary> customVocabularies)
        Provides the custom vocabularies to be used by the speech engine when processing the stream. List size is limited to 50 items.
        Parameters:
        customVocabularies - A list of custom vocabularies.
        See Also:
        CustomVocabulary