xamarin - Setting bit rate and sampling rate-Android -


i working on xamarin cross-platform app in have audio recording feature. have used mediarecorder native android api recording.

here code:

recorder = new mediarecorder(); recorder.setaudiosource(audiosource.mic); recorder.setoutputformat(outputformat.mpeg4); recorder.setaudioencoder(audioencoder.aac); recorder.setaudioencodingbitrate(8000); recorder.setaudiosamplingrate(44100); recorder.setoutputfile(path); recorder.prepare(); recorder.start(); 

the above code doesn't set bit rate , sampling rate audio. since media recorder not have pause , resume feature trying creating temp file , append file new(final) audio file.

since sampling , bit rate of 2 files merging has same, merge function not work.

any on setting bit rate , sampling rate?


Comments

Popular posts from this blog

AbotX : How do you create a parallel crawler that stays on and can be added to at run time from new requests -

testing - Detect whether test has failed within fixture -

android - Create single AAR file from multiple modules using Gradle -