Assets/Watson/Scripts/Services/TextToSpeech/TextToSpeech.cs
/// <summary>
/// Returns all available voices that can be used.
/// </summary>
/// <param name="callback">The callback to invoke with the list of available voices.</param>
/// <returns>Returns ture if the request was submitted.</returns>
Returns all available voices that can be used.
Returns all available voices that can be used .
public bool GetVoices(GetVoicesCallback callback)
        {
            if (callback == null)
                throw new ArgumentNullException("callback");
            RESTConnector connector = RESTConnector.GetConnector(SERVICE_ID, "/v1/voices");
            if (connector == null)
                return false;
            GetVoicesReq req = new GetVoicesReq();
            req.Callback = callback;
            req.OnResponse = OnGetVoicesResp;
            return connector.Send(req);
        }
public bool GetVoices ( GetVoicesCallback callback ) { if ( callback == null ) throw new ArgumentNullException ( " " ) ; RESTConnector connector = RESTConnector . GetConnector ( SERVICE_ID , " " ) ; if ( connector == null ) return false ; GetVoicesReq req = new GetVoicesReq ( ) ; req . Callback = callback ; req . OnResponse = OnGetVoicesResp ; return connector . Send ( req ) ; }
Returns all available voices that can be used.
Returns all available voices that can be used .
Returns ture if the request was submitted.
Returns ture if the request was submitted .
callback
GetVoicesCallback
The callback to invoke with the list of available voices.
The callback to invoke with the list of available voices .