SpeechToTextAddAcousticResource Method |
Adds an audio resource to a custom acoustic model.
Namespace:
IBM.Watson.DeveloperCloud.Services.SpeechToText.v1
Assembly:
unity-documentation (in unity-documentation.exe) Version: 1.0.0.0 (1.0.0.0)
Syntax public bool AddAcousticResource(
SpeechToTextSuccessCallback<bool> successCallback,
SpeechToTextFailCallback failCallback,
string customizationId,
string audioName,
string contentType,
string containedContentType,
bool allowOverwrite,
byte[] audioResource,
Dictionary<string, Object> customData = null
)
Parameters
- successCallback
- Type: IBM.Watson.DeveloperCloud.Services.SpeechToText.v1SpeechToTextSuccessCallbackBoolean
The success callback. - failCallback
- Type: IBM.Watson.DeveloperCloud.Services.SpeechToText.v1SpeechToTextFailCallback
The fail callback. - customizationId
- Type: SystemString
The cutomization identifier to add the acoustic resource to. - audioName
- Type: SystemString
The nameof the audio resrouce. - contentType
- Type: SystemString
The content type of the audio resource upload. - containedContentType
- Type: SystemString
The content type of the enclosed audio resource. - allowOverwrite
- Type: SystemBoolean
Can this resource be overwritten? - audioResource
- Type: SystemByte
The byte[] data of the audio resource. - customData (Optional)
- Type: System.Collections.GenericDictionaryString, Object
optional custom data.
Return Value
Type:
BooleanTrue if the acoustic resource was sent to the service.
See Also