android - 在 Android 上使用 Azure Speech to Text 拦截音频 blob 或将音频保存到文件

标签 android azure speech-to-text azure-cognitive-services azure-speech

是否可以将转录的音频保存到文件中,甚至使用 Java SDK 截取音频 blob?目前我正在尝试使用 com.microsoft.cognitiveservices.speech:client-sdk:1.19.0

我正在查看 SDK,但没有任何关于如何实现此目的的明确文档。

我尝试了以下方法,但没有成功:

SpeechRecognizer(config, AudioConfig.fromWavFileOutput(file.toString()))
Connection connection = Connection.fromRecognizer(reco);
connection.messageSent...  --- this is missing from the Java SDK

我错过了什么吗?

提前致谢

最佳答案

此 GitHub 存储库 Cognitive-Speech-STT-Android将提供 Android 上的 Azure 语音转文本的完整指南。

关于android - 在 Android 上使用 Azure Speech to Text 拦截音频 blob 或将音频保存到文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70184418/

相关文章:

android - 在形状 XML 中使用 attr 会导致 Android 崩溃

android - 导航栏按钮颜色

Android,删除我的数据目录中的文件?

python - Azure 语音到文本 0x38 (SPXERR_AUDIO_SYS_LIBRARY_NOT_FOUND)

android - 如何在没有 FragmentTransaction 的情况下支持 Fragments?

azure 逻辑应用程序故障处理

c# - Azure 逻辑应用使用 MSI 向 WebApp 进行身份验证

.net - 我可以通过编程方式修改 ARR Affinition cookies 的值吗

Android语音到文本转换: Android Application is receiving repeated words when spoken through Voice input using Android Virtual keyboard

javascript - 对于像 https ://watson-speech. mybluemix.net/microphone-streaming.html 这样的简单语音到文本应用程序,是否有一些 libcurl 脚本?