示例#1
0
        public long GetVoices(GetVoicesRequest getVoicesRequest)
        {
            string uri = Constants.GET_LIST_VOICES;

            uri += Constants.API_KEY_PARAM + _gcTextToSpeech.apiKey;

            uri += "&languageCode=" + getVoicesRequest.languageCode;

            return(_networking.SendRequest(uri, string.Empty, NetworkEnumerators.RequestType.GET,
                                           new object[] { Enumerators.GoogleCloudRequestType.GET_VOICES }));
        }
        public void GetVoices(GetVoicesRequest getVoicesRequest)
        {
            string uri = Constants.GET_LIST_VOICES;

            if (!_gcTextToSpeech.isUseAPIKeyFromPrefab)
            {
                uri += Constants.API_KEY_PARAM + Constants.GC_API_KEY;
            }
            else
            {
                uri += Constants.API_KEY_PARAM + _gcTextToSpeech.apiKey;
            }

            uri += "&languageCode=" + getVoicesRequest.languageCode;

            _networking.SendRequest(uri, string.Empty, NetworkEnumerators.RequestType.GET,
                                    new object[] { Enumerators.GoogleCloudRequestType.GET_VOICES });
        }
 public void GetVoices(GetVoicesRequest getVoicesRequest)
 {
     _textToSpeechManager.GetVoices(getVoicesRequest);
 }
示例#4
0
 public long GetVoices(GetVoicesRequest getVoicesRequest)
 {
     return(_textToSpeechManager.GetVoices(getVoicesRequest));
 }