-
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
Saving and Retrieving recorded audio #66
Comments
What is the exact issue/request? If you are interested in an activity that requests the audio together with its transcription then take a look at https://github.com/Kaljurand/K6nele/blob/master/app/src/main/java/ee/ioc/phon/android/speak/demo/ExtrasDemo.kt which uses https://github.com/Kaljurand/K6nele/blob/master/app/src/main/java/ee/ioc/phon/android/speak/activity/DetailsActivity.java to play the returned audio. |
I am calling speechactionactivity() from a button click, need to record this audio and i need to play this recorder audio in some other activity. I have gone through the code the above links but getting uri and audio . but trying to play only empty audio always.Your above 2 activity's code in kotlin,me working in java,audio file is empty always.While giving this code as put extra : intent.putExtra(Extras.EXTRA_GET_AUDIO_FORMAT, null as String?) , empty audio. I think need to provide some audio format which does not return null value, playing an audio with 0 duration . |
I am using only this speech recognition. I am having a button in first page ,when clicking that ,goes to But I am gets stucked for palying this audio last week full ,i need to know whether i have to put put extra like this : in my first page button click |
Your intent construction looks OK to me. This is similar to what the ExtrasDemo does. You can set the format to "null" or "audio/wav". Kõnele only supports wav-recording. Do you see any errors in the log when you read the audio URI? Maybe it's a permissions' issue? |
In ExtrasDemo , U are putting extras using speech intents from createrevognize intent function . In my case I don’t want Google Speech . So I directly use Intenting to SpeechAction Activity like above . I am Calling recording button from a fragment , on Intenting , not gets int OnActivityResult override function from fragment . Then able to set data from intent . I am not getting uri from intent . The important matter is I want to set data for getting audio uri from SpeechAction Activity or From fragment |
It's difficult to debug based on this info. Can you post your full code? Do you see anything suspicious in the log ( |
I will give you a link : https://we.tl/t-SRo2PhSuSR please download |
If it is expired please use this : https://we.tl/t-pdc28A4UNF. In that I am using a fragment Home Fragment , on button click for recording , rather than for all |
Will u please check it : In my testing phone, audio is not playing ,, audio duration is 0ms my current scenario 👍 In Home Fragment , voice record button click , call the intent for knele Speech Recognition : Speech Recoginition Activity In Speech Recognition ScoreActivity : Playing audio : But here playing audio with 0 ms file which is same palying in Demo play inDemoActivity |
In Your Extras Demo , while playing audio using uri from Details Activity , Getting audio but its not playing any audio there also . while toasting duration there , getting 0 ms . |
I briefly looked at your code, but there is a lot of it that is not relevant to this issue, so it was difficult to get an overview. If I understand correctly, then you fail to hear any audio (and mMediaPlayer.getDuration() returns 0) when you use the Extras demo. Does this happen with an official Kõnele installation, or in your modified code? Does it happen with several devices / Android versions? I am not able to reproduce it on my devices... In the log you are seeing "AudioFeatures: Application cannot support or Zenmode close". Can you further investigate if this could be the root of your issue. Also, are you able to listen to the audio if you submit the intent and EXTRAs to Google's recognizer service? |
ZenMode Issue I will check, Iam getting this error in samsung gt 19300 Android 4.3.3 !8 device 04-15 12:04:14.125 6737-6737/ee.ioc.phon.android.speak I/k6nele: onPartialResults: state = RECORDING Whilw using google speech recognizer , saying as toast : an audio will sent to google to provide speech recognition service |
this issue happens in official konele documetation also |
just installed your app from playstore , same issue there |
It works at least in Android versions 7, 7.1, 9. I haven't used v4.3 for testing in the last years. |
Hi Kaarel, |
i need to work in english ? |
Using the service "Kõnele (fast recognition)" with an English recognition server should be discussed in another issue, for an existing discussion see #38 |
how can we change default language to english first time itself dear |
audio with proper ms is getting when using only estonian language , when i change lanmguage to english , no audio with extra results is getting. Changes need to get audio in english while language is in english F |
No description provided.
The text was updated successfully, but these errors were encountered: