qq_22075131 2017-05-27 17:10 采纳率: 14.3%
浏览 26617

安卓 如何实现内录,只录制手机播放的声音,而不录制话筒的声音

求大神指导,安卓 如何实现内录,只录制手机播放的声音,而不录制话筒的声音

  • 写回答

3条回答

  • zhanghanbin23 2017-06-02 08:08
    关注

    请参考这篇文章:http://www.tuicool.com/articles/RVJFF3v。我试过,可行的,只不过需要系统签名,第三方app这种方式无法实现。
    以下是android api:

      /**
             * Audio source for a submix of audio streams to be presented remotely.
             * <p>
             * An application can use this audio source to capture a mix of audio streams
             * that should be transmitted to a remote receiver such as a Wifi display.
             * While recording is active, these audio streams are redirected to the remote
             * submix instead of being played on the device speaker or headset.
             * </p><p>
             * Certain streams are excluded from the remote submix, including
             * {@link AudioManager#STREAM_RING}, {@link AudioManager#STREAM_ALARM},
             * and {@link AudioManager#STREAM_NOTIFICATION}.  These streams will continue
             * to be presented locally as usual.
             * </p><p>
             * Capturing the remote submix audio requires the
             * {@link android.Manifest.permission#CAPTURE_AUDIO_OUTPUT} permission.
             * This permission is reserved for use by system components and is not available to
             * third-party applications.
             * </p>
             */
            public static final int REMOTE_SUBMIX = 8;
    
    评论

报告相同问题?

悬赏问题

  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题
  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
  • ¥15 YoloV5 第三方库的版本对照问题
  • ¥15 请完成下列相关问题!