how to record .wav format file in android

前端 未结 4 876
甜味超标
甜味超标 2020-12-05 15:39

I would like to record .wav files using android. is there any way to do this?

4条回答
  •  萌比男神i
    2020-12-05 16:24

    I have recently made library for this recording purpose. you just have to do this :-

    recorder = OmRecorder.wav(
    new PullTransport.Default(mic(), new PullTransport.OnAudioChunkPulledListener() {
        @Override public void onAudioChunkPulled(AudioChunk audioChunk) {
          animateVoice((float) (audioChunk.maxAmplitude() / 200.0));
        }
      }), file());
    

    You can set frequency audio source, etc. and then can record wav file easily. you can find more info on this :-

    https://github.com/kailash09dabhi/OmRecorder

提交回复
热议问题