Assets/Watson/Scripts/Services/TextToSpeech/TextToSpeech.cs
/// <summary>
/// Deletes a single word from the custom voice model with the specified customization_id. Only the owner of a custom voice model can use this method to delete a word from the model.
/// Note: This method is currently a beta release that supports US English only.
/// </summary>
/// <param name="callback">The callback.</param>
/// <param name="customizationID">The voice model's identifier.</param>
/// <param name="word">The word to be deleted.</param>
/// <param name="customData">Optional custom data.</param>
/// <returns></returns>
Deletes a single word from the custom voice model with the specified customization_id. Only the owner of a custom voice model can use this method to delete a word from the model.
Note: This method is currently a beta release that supports US English only.
Deletes a single word from the custom voice model with the specified customization_id . Only the owner of a custom voice model can use this method to delete a word from the model . Note : This method is currently a beta release that supports US English only .
public bool DeleteCustomizationWord(OnDeleteCustomizationWordCallback callback, string customizationID, string word, string customData = default(string))
		{
			if (callback == null)
				throw new ArgumentNullException("callback");
			if (string.IsNullOrEmpty(customizationID))
				throw new ArgumentNullException("A customizationID is required for DeleteCustomizationWord");
			if (string.IsNullOrEmpty(word))
				throw new ArgumentNullException("A word to delete is required for DeleteCustomizationWord");
			DeleteCustomizationWordRequest req = new DeleteCustomizationWordRequest();
			req.Callback = callback;
			req.CustomizationID = customizationID;
			req.Word = word;
			req.Data = customData;
			req.Timeout = REQUEST_TIMEOUT;
			req.Delete = true;
			req.OnResponse = OnDeleteCustomizationWordResp;
			string service = "/v1/customizations/{0}/words/{1}";
			RESTConnector connector = RESTConnector.GetConnector(SERVICE_ID, string.Format(service, customizationID, word));
			if (connector == null)
				return false;
			return connector.Send(req);
		}
public bool DeleteCustomizationWord ( OnDeleteCustomizationWordCallback callback , string customizationID , string word , string customData = default ( string ) ) { if ( callback == null ) throw new ArgumentNullException ( " " ) ; if ( string . IsNullOrEmpty ( customizationID ) ) throw new ArgumentNullException ( " " ) ; if ( string . IsNullOrEmpty ( word ) ) throw new ArgumentNullException ( " " ) ; DeleteCustomizationWordRequest req = new DeleteCustomizationWordRequest ( ) ; req . Callback = callback ; req . CustomizationID = customizationID ; req . Word = word ; req . Data = customData ; req . Timeout = REQUEST_TIMEOUT ; req . Delete = true ; req . OnResponse = OnDeleteCustomizationWordResp ; string service = " " ; RESTConnector connector = RESTConnector . GetConnector ( SERVICE_ID , string . Format ( service , customizationID , word ) ) ; if ( connector == null ) return false ; return connector . Send ( req ) ; }
Deletes a single word from the custom voice model with the specified customization_id.
Deletes a single word from the custom voice model with the specified customization_id .
None
callback
OnDeleteCustomizationWordCallback
None
customizationID
string
The voice model's identifier.
The voice model ' s identifier .
word
string
The word to be deleted.
The word to be deleted .
customData
string
Optional custom data.
Optional custom data .