Get raw voice recording from android's search framework

狂风中的少年 提交于 2019-12-13 06:20:33

问题


I'm planning to use Android's Search Framework with voice recognition to

  • Search thru existing texts (Short sentences of 5-10 words) by typing or by voice
  • If search was by voice, I'd like store the search itself (the search text) but also the raw sound, that was recorded.

Looking at the guide and into everything written about this, I cannot find a way to get the raw recorded voice, nor can I find something where I can provide a recorded sound to the search interface.

Does anybody know, if this is at all possible? And if not, is there any other way to get the search query AND the recorded voice? Maybe by recording one voice into two activities?

I know how to record voice, how to play it and how to let the user search using the search framework. It's the combination of a user speaking one time into the microphone and getting that sound AND use it for searching.

Any link, further reading or keyword to search for, would be helpful.

来源:https://stackoverflow.com/questions/19138870/get-raw-voice-recording-from-androids-search-framework

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!