Assets/Watson/Scripts/Services/SpeechToText/SpeechToText.cs
/// <summary>
/// This function retrieves a specified languageModel.
/// </summary>
/// <param name="callback">This callback is invoked with the requested model. The callback will
/// be invoked with null on error.</param>
/// <param name="modelID">The name of the model to get.</param>
/// <returns>Returns true if request has been made.</returns>
This function retrieves a specified languageModel.
This function retrieves a specified languageModel .
public bool GetModel(OnGetModel callback, string modelID)
		{
			if (string.IsNullOrEmpty(modelID))
				throw new ArgumentNullException("modelID");
			RESTConnector connector = RESTConnector.GetConnector(SERVICE_ID, "/v1/models/" + modelID);
			if (connector == null)
				return false;
			GetModelRequest req = new GetModelRequest();
			req.Callback = callback;
			req.ModelID = modelID;
			req.OnResponse = OnGetModelResponse;
			return connector.Send(req);
		}
public bool GetModel ( OnGetModel callback , string modelID ) { if ( string . IsNullOrEmpty ( modelID ) ) throw new ArgumentNullException ( " " ) ; RESTConnector connector = RESTConnector . GetConnector ( SERVICE_ID , " " + modelID ) ; if ( connector == null ) return false ; GetModelRequest req = new GetModelRequest ( ) ; req . Callback = callback ; req . ModelID = modelID ; req . OnResponse = OnGetModelResponse ; return connector . Send ( req ) ; }
This function retrieves a specified languageModel.
This function retrieves a specified languageModel .
Returns true if request has been made.
Returns true if request has been made .
callback
OnGetModel
This callback is invoked with the requested model. The callback will
be invoked with null on error.
This callback is invoked with the requested model . The callback will be invoked with null on error .
modelID
string
The name of the model to get.
The name of the model to get .