-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Google Keep "get audio" extras #34
Comments
Comment #1 originally posted by Kaljurand on 2014-11-19T23:13:48.000Z: v0.8.44 supports audio/wav |
Comment #2 originally posted by Kaljurand on 2014-12-10T11:52:29.000Z: Please provide the support of these extras! |
Comment #3 originally posted by Kaljurand on 2014-12-10T12:39:44.000Z: Hey...are you able to save the wav formatted audio? if yes then how? |
Comment #4 originally posted by Kaljurand on 2014-12-10T13:58:41.000Z: @pavan.kirusa See this Stackoverflow answer for how to get the audio data out of the result intent: http://stackoverflow.com/a/24404235/12547 |
Comment #5 originally posted by Kaljurand on 2014-12-10T14:04:03.000Z: Using that code my demo app is not launching the Google search's microphone prompt |
Comment #6 originally posted by Kaljurand on 2014-12-10T14:05:36.000Z: I was trying same code but by putting these extras my demo app is not even launching the Google search's microphone prompt. Does it need any kind of permissions apart from Record Audio...? |
Comment #7 originally posted by Kaljurand on 2014-12-10T14:20:01.000Z: Thanks man I'm able to receive the AMR format..but as you have mentioned above about the audio/wav format....I'm trying that and its not working |
Comment #8 originally posted by Kaljurand on 2014-12-10T14:21:30.000Z: Thanks man I'm able to receive the AMR format..but as you have mentioned above about the audio/wav format....I'm trying that and its not working..are you able to receive the wav formatted audio? |
Comment #9 originally posted by Kaljurand on 2014-12-10T19:01:30.000Z: @pavan.kirusa Currently, Kõnele does not return AMR, but WAV. If your question is not about Kõnele, then please use another forum. If it is then please post the code that is not working, and I can take a closer look. |
Comment #10 originally posted by Kaljurand on 2014-12-11T09:04:22.000Z: I'm running the code you suggested through the stackoverflow answer using Konele as the input for voice with only one change AMR to WAV |
Comment #11 originally posted by Kaljurand on 2014-12-13T23:47:54.000Z: @pavan.kirusa See the ExtrasDemo in the Kõnele settings, and the corresponding source code. It gets the audio URI by calling getData() on the resulting intent. You just have to save the data referenced by this URI. |
@ismtlee This toast is not generated by Kõnele, but by an external app that one can (optionally) use via Kõnele. It is not possible to suppress toasts generated by external apps, unless of course they offer an API for doing so. |
Hello, |
@tungdsv can you post some code to add more detail to your question? |
@Kaljurand
And this above code I can't get audio from RecognitionListener.
But this is not my goal. |
@tungdsv I don't know how the Google service returns audio. This is out of the scope of the Kõnele project. You should ask Google. |
@Kaljurand |
@tungdsv Kõnele can be used as a front-end to 3rd party speech-to-text services. It depends on these services if they return the audio as well, or just text. However, Kõnele also comes with its own services ("grammar support" and "fast recognition"), and they return the audio (as wav), try it out in "Developer settings ... -> Extras demo". (This issue is about adding AMR support.) |
@Kaljurand |
You would need to implement the onBufferReceived-callback and hope that the service fills the buffer with the actual audio:
See e.g. K6nele/app/src/main/java/ee/ioc/phon/android/speak/activity/SpeechActionActivity.java Line 210 in 863bf5b
|
Original issue 30 created by Kaljurand on 2014-01-24T09:56:24.000Z:
Support extras:
used by Google Keep.
The text was updated successfully, but these errors were encountered: