public void MultimodalSpeechSegmentGetAsyncTest() { SpeechSegmentResponse speechSegmentResponse = new SpeechSegmentResponse(); Task.Run(async () => { speechSegmentResponse = await speechApi.MultimodalSpeechSegmentGetAsync("../../speech-lid.mp3", null, null, null); }).Wait(); Assert.IsNotNull(speechSegmentResponse.Segments); }
public void MultimodalSpeechSegmentGetTest() { SpeechSegmentResponse speechSegmentResponse = new SpeechSegmentResponse(); speechSegmentResponse = speechApi.MultimodalSpeechSegmentGet("../../speech-lid.mp3", null, null, null); Assert.IsNotNull(speechSegmentResponse.Segments); }