Assets/Watson/Scripts/Services/SpeechToText/SpeechToText.cs
/// <summary>
/// This function retrieves all the language models that the user may use by setting the RecognizeModel 
/// public property.
/// </summary>
/// <param name="callback">This callback is invoked with an array of all available models. The callback will
/// be invoked with null on error.</param>
/// <returns>Returns true if request has been made.</returns>
This function retrieves all the language models that the user may use by setting the RecognizeModel
public property.
This function retrieves all the language models that the user may use by setting the RecognizeModel public property .
public bool GetModels(OnGetModels callback)
        {
            RESTConnector connector = RESTConnector.GetConnector(SERVICE_ID, "/v1/models");
            if (connector == null)
                return false;
            GetModelsRequest req = new GetModelsRequest();
            req.Callback = callback;
            req.OnResponse = OnGetModelsResponse;
            return connector.Send(req);
        }
public bool GetModels ( OnGetModels callback ) { RESTConnector connector = RESTConnector . GetConnector ( SERVICE_ID , " " ) ; if ( connector == null ) return false ; GetModelsRequest req = new GetModelsRequest ( ) ; req . Callback = callback ; req . OnResponse = OnGetModelsResponse ; return connector . Send ( req ) ; }
This function retrieves all the language models that the user may use by setting the RecognizeModel
public property.
This function retrieves all the language models that the user may use by setting the RecognizeModel public property .
Returns true if request has been made.
Returns true if request has been made .
callback
OnGetModels
This callback is invoked with an array of all available models. The callback will
be invoked with null on error.
This callback is invoked with an array of all available models . The callback will be invoked with null on error .