Class CustomVocabularySubmission
- java.lang.Object
-
- ai.rev.speechtotext.models.vocabulary.CustomVocabularySubmission
-
public class CustomVocabularySubmission extends Object
-
-
Constructor Summary
Constructors Constructor Description CustomVocabularySubmission()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringgetCallbackUrl()Deprecated.Set the notificationConfig option with setNotificationConfig, then use getNotificationConfig insteadList<CustomVocabulary>getCustomVocabularies()Returns a list ofCustomVocabularyobjects.StringgetMetadata()Returns the metadata.CustomerUrlDatagetNotificationConfig()Returns the notification config.voidsetCallbackUrl(String callbackUrl)Deprecated.Use setNotificationConfig insteadvoidsetCustomVocabularies(List<CustomVocabulary> customVocabularies)Provides the custom vocabularies to be used by the speech engine when processing the stream.voidsetMetadata(String metadata)Optional metadata that is provided during custom vocabulary submission limited to 512 characters.voidsetNotificationConfig(String callbackUrl)Specifies the callback url that Rev AI will POST to when custom vocabulary processing is complete This property is optional.voidsetNotificationConfig(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.StringtoString()
-
-
-
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 insteadReturns the callback url.- Returns:
- the callback url.
-
setCallbackUrl
@Deprecated public void setCallbackUrl(String callbackUrl)
Deprecated.Use setNotificationConfig insteadSpecifies 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.
-
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 stream. List size is limited to 50 items.- Parameters:
customVocabularies- A list of custom vocabularies.- See Also:
CustomVocabulary
-
-