【问题标题】:Phonegap record sound. Save to a file after when something heardPhonegap 录制声音。听到后保存到文件
【发布时间】:2017-11-17 13:02:35
【问题描述】:

有没有可以捕捉声音并保存的插件?所以它会等待某个声音阈值,然后才开始将声音写入文件或只是可以 ping,听到任何声音?

【问题讨论】:

    标签: android cordova audio phonegap recording


    【解决方案1】:

    试试这个:cordova-plugin-sound-meter

    使用此代码启动检测:

    window.soundMeterPlugin.getAmplitude(function(e){
        //success callback
        alert(e["amplitude"]);
        }, function(e){
        //error callback
        alert('The error is: ' + e);
    });
    

    在成功回调时,您可以使用开始录制音频 Cordova Media Capture to Record Audio

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多