我正在使用MediaFoundationReader和ResamplerDmoStream to WaveFormat(16000,16,1)将MP4 (音频)文件重采样为WAV。重采样后,我将流发送到speech API进行转录,但API失败,因为流不包含WAV报头。如果我将流保存到WAV文件(使用WaveFileWriter),再次读取文件,然后将流发送到API,则API会工作,因为流包含WAV报头</e
Examples的存在是为了使用内部服务将数据从IAsyncEnumerator读取到Blazor应用程序中的UI。对于如何将IAsyncEnumerator作为Web API Controller操作的输出发送,Examples也存在。我还没有看到任何示例如何在Blazor或Xamarin这样的客户端中使用HttpClient从API中