public void Test1() { var invoker = GoogleCloudHelper.create("texttospeech.googleapis.com"); var cl = new Google.Cloud.Texttospeech.V1Beta1.TextToSpeech.TextToSpeechClient(invoker); var request = new Google.Cloud.Texttospeech.V1Beta1.ListVoicesRequest { LanguageCode = "en-US" }; var resp = cl.ListVoices(request); var json = resp.ToString(); Assert.NotNull(json); }
static void Main(string[] args) { var invoker = GoogleCloudHelper.create("texttospeech.googleapis.com"); var cl = new Google.Cloud.Texttospeech.V1Beta1.TextToSpeech.TextToSpeechClient(invoker); var request = new Google.Cloud.Texttospeech.V1Beta1.ListVoicesRequest { LanguageCode = "en-US" }; var resp = cl.ListVoices(request); var json = resp.ToString(); json = null; //Json.Test(); }