暂停和恢复录音Android中Android

2023-09-04 04:14:36 作者:后来.

我正在开发使用MediaRecorder类Android 2.3的音频录制应用程序。我有以下要求:

I am developing an audio recording application in Android 2.3 using MediaRecorder class. I have the following requirement :

当出现中断,说录制通话内容时期间暂停录制。 在中断结束,我的录像活动的onResume叫,我必须继续从暂停的点记录。

我找不到任何MediaRecorder API暂停和恢复录制。只有启动()和stop()可供选择。 除了录制前,后中断两个独立的文件,然后再连接在一起成一个文件,有没有实现这一目标?任何其他方式 任何帮助/建议,将大大AP preciated。

I could not find any MediaRecorder api to pause and resume recording . Only start() and stop() are available. Apart from recording two separate files before and after interruption and then joining then together into one file ,is there any other way to achieve this ? Any help/suggestion would be greatly appreciated .

Sneha约翰。

推荐答案

该链接可能对你有用。

https://github.com/lassana/continuous-audiorecorder