I have tried many options while record audio and i have not done all the options anyone here who help me to get the best quality of voice during recording.
mediaRecorder = new MediaRecorder();
mediaRecorder.SetAudioSource(AudioSource.Mic);
mediaRecorder.SetOutputFormat(OutputFormat.Mpeg4);
mediaRecorder.SetAudioEncoder(AudioEncoder.Aac);
Answers
You can use
AudioSource.VoiceRecognition
to replace theAudioSource.Mic
, Because theAudioSource.Mic
will record EVERYTHING. Soft taps on the table or keyboard, rustling of a plastic bag, someone coughing in the background, etc.UsingAudioSource.VoiceRecognition
will pass the audio data into the phone's noise cancellation filters before handing it over to you. Please refer to this link.https://twigstechtips.blogspot.com/2013/07/android-enable-noise-cancellation-in.htmli did MIC => Voice Recognition but this time voice record with eco and delay i also checked that link in which he is using Audio Record Class but in that way how can i save that recorded audio will you please help me
Thanks
You can Capture all audio data to a byte array when recording and write all audio data to a temporary PCM file, save this somewhere like this link http://www.evklein.com/blog/Recording