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

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -