Assets/Watson/Scripts/Services/SpeechToText/SpeechToText.cs
/// <summary>
/// Lists information about a custom language model. Only the owner of a custom model can use this method to query information about the model.
///	Note: This method is currently a beta release that is available for US English only.
/// </summary>
/// <param name="callback">The callback.</param>
/// <param name="customizationID">The requested custom language model's identifier.</param>
/// <param name="customData">Optional custom data.</param>
/// <returns></returns>
Lists information about a custom language model. Only the owner of a custom model can use this method to query information about the model.
Note: This method is currently a beta release that is available for US English only.
Lists information about a custom language model . Only the owner of a custom model can use this method to query information about the model . Note : This method is currently a beta release that is available for US English only .
public bool GetCustomization(GetCustomizationCallback callback, string customizationID, string customData = default(string))
		{
			if (callback == null)
				throw new ArgumentNullException("callback");
			if (string.IsNullOrEmpty(customizationID))
				throw new ArgumentNullException("A customizationID to get a custom language model.");
			GetCustomizationRequest req = new GetCustomizationRequest();
			req.Callback = callback;
			req.CustomizationID = customizationID;
			req.Data = customData;
			req.OnResponse = OnGetCustomizationResp;
			string service = "/v1/customizations/{0}";
			RESTConnector connector = RESTConnector.GetConnector(SERVICE_ID, string.Format(service, customizationID));
			if (connector == null)
				return false;
			return connector.Send(req);
		}
public bool GetCustomization ( GetCustomizationCallback callback , string customizationID , string customData = default ( string ) ) { if ( callback == null ) throw new ArgumentNullException ( " " ) ; if ( string . IsNullOrEmpty ( customizationID ) ) throw new ArgumentNullException ( " " ) ; GetCustomizationRequest req = new GetCustomizationRequest ( ) ; req . Callback = callback ; req . CustomizationID = customizationID ; req . Data = customData ; req . OnResponse = OnGetCustomizationResp ; string service = " " ; RESTConnector connector = RESTConnector . GetConnector ( SERVICE_ID , string . Format ( service , customizationID ) ) ; if ( connector == null ) return false ; return connector . Send ( req ) ; }
Lists information about a custom language model.
Lists information about a custom language model .
None
callback
GetCustomizationCallback
None
customizationID
string
The requested custom language model's identifier.
The requested custom language model ' s identifier .
customData
string
Optional custom data.
Optional custom data .