Assets/Watson/Scripts/Services/TextToSpeech/TextToSpeech.cs
/// <summary>
/// Returns the translation for a single word from the custom model with the specified `customization_id`. The output shows the translation as it is defined in the model. Only the owner of a custom voice model can use this method to query information about 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 requested custom voice model's identifier.</param>
/// <param name="word">The requested word.</param>
/// <param name="customData">Optional custom data.</param>
/// <returns></returns>
Returns the translation for a single word from the custom model with the specified `customization_id`. The output shows the translation as it is defined in the model. Only the owner of a custom voice model can use this method to query information about a word from the model.
Note: This method is currently a beta release that supports US English only.
Returns the translation for a single word from the custom model with the specified ` customization_id ` . The output shows the translation as it is defined in the model . Only the owner of a custom voice model can use this method to query information about a word from the model . Note : This method is currently a beta release that supports US English only .
public bool GetCustomizationWord(GetCustomizationWordCallback 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 to get a custom voice model's words.");
			if (string.IsNullOrEmpty(word))
				throw new ArgumentNullException("A word is requrred to get a translation.");
			GetCustomizationWordRequest req = new GetCustomizationWordRequest();
			req.Callback = callback;
			req.CustomizationID = customizationID;
			req.Word = word;
			req.Data = customData;
			req.OnResponse = OnGetCustomizationWordResp;
			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 GetCustomizationWord ( GetCustomizationWordCallback 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 ( " " ) ; GetCustomizationWordRequest req = new GetCustomizationWordRequest ( ) ; req . Callback = callback ; req . CustomizationID = customizationID ; req . Word = word ; req . Data = customData ; req . OnResponse = OnGetCustomizationWordResp ; string service = " " ; RESTConnector connector = RESTConnector . GetConnector ( SERVICE_ID , string . Format ( service , customizationID , word ) ) ; if ( connector == null ) return false ; return connector . Send ( req ) ; }
Returns the translation for a single word from the custom model with the specified `customization_id`.
Returns the translation for a single word from the custom model with the specified ` customization_id ` .
None
callback
GetCustomizationWordCallback
None
customizationID
string
The requested custom voice model's identifier.
The requested custom voice model ' s identifier .
word
string
The requested word.
The requested word .
customData
string
Optional custom data.
Optional custom data .