public void MultimodalSpeechDetectLanguageGetAsyncTest() { SpeechDetectLanguageResponse speechDetectLanguageResponse = new SpeechDetectLanguageResponse(); Task.Run(async () => { speechDetectLanguageResponse = await speechApi.MultimodalSpeechDetectLanguageGetAsync("../../speech-lid.mp3", null, null, null); }).Wait(); Assert.IsNotNull(speechDetectLanguageResponse.Segments); }
public void MultimodalSpeechDetectLanguageGetTest() { SpeechDetectLanguageResponse speechDetectLanguageResponse = new SpeechDetectLanguageResponse(); speechDetectLanguageResponse = speechApi.MultimodalSpeechDetectLanguageGet("../../speech-lid.mp3", null, null, null); Assert.IsNotNull(speechDetectLanguageResponse.Segments); }