diff --git a/assets/npm-home/README.md b/assets/npm-home/README.md index b911308..1ed83d7 100644 --- a/assets/npm-home/README.md +++ b/assets/npm-home/README.md @@ -40,13 +40,19 @@ npm install recorder-core ## WaveView的调用方式 -直接通过Recorder.WaveView调用即可,录音时动态显示波形,详细的使用请参考[GitHub仓库](https://github.com/xiangyuecn/Recorder)里面的README +直接通过Recorder.WaveView调用即可,录音时动态显示波形,详细的使用请参考下面详细的README。 @@Ref README.WaveView.Codes@@ +## FrequencyHistogramView的调用方式 +直接通过Recorder.FrequencyHistogramView调用即可,音频可视化频率直方图显示,详细的使用请参考下面详细的README。 + +![](https://gitee.com/xiangyuecn/Recorder/raw/master/assets/use_histogram.png) + + ## Sonic的调用方式 -直接通过Recorder.Sonic调用即可,音频变速变调转换,详细的使用请参考[GitHub仓库](https://github.com/xiangyuecn/Recorder)里面的README +直接通过Recorder.Sonic调用即可,音频变速变调转换,详细的使用请参考下面详细的README。 ## RecordApp的调用方式 diff --git a/assets/npm-home/hash-history.txt b/assets/npm-home/hash-history.txt index 5279c21..79601bd 100644 --- a/assets/npm-home/hash-history.txt +++ b/assets/npm-home/hash-history.txt @@ -1,4 +1,8 @@ [ + { + "sha1": "faa51e270e00316a1f7c005e526dde26b7ceaef1", + "time": "2020-1-15 18:02:58" + }, { "sha1": "2c9728442cfe5e6ba97e73fff21dee502e24f9e5", "time": "2020-1-14 18:20:47" @@ -14,9 +18,5 @@ { "sha1": "c4a7d796fe658b33a012e69650d5663f1b6c7471", "time": "2020-1-14 03:03:00" - }, - { - "sha1": "49a3e316c57542696a81f0d413ffe9c9ea08053a", - "time": "2020-1-10 17:05:41" } ] \ No newline at end of file diff --git a/assets/runtime-codes/fragment.playbuffer.js b/assets/runtime-codes/fragment.playbuffer.js index 65b957a..992ccb6 100644 --- a/assets/runtime-codes/fragment.playbuffer.js +++ b/assets/runtime-codes/fragment.playbuffer.js @@ -42,7 +42,7 @@ window.DemoFragment||(window.DemoFragment={}) source.channelCount=1; source.buffer=audio; source.connect(ctx.destination); - source.start(); + if(source.start){source.start()}else{source.noteOn(0)}; size=0; arr=[]; diff --git a/assets/zdemo.index.webrtc.js b/assets/zdemo.index.webrtc.js index a4c03b0..fc4290f 100644 --- a/assets/zdemo.index.webrtc.js +++ b/assets/zdemo.index.webrtc.js @@ -516,7 +516,7 @@ var rtcDecodePlay=function(decode){ source.channelCount=1; source.buffer=buffer; source.connect(ctx.destination); - source.start(); + if(source.start){source.start()}else{source.noteOn(0)}; //不关闭上一个,让它继续播放完结尾,衔接起来好些 //rtcDecPlaySource&&rtcDecPlaySource.stop(); diff --git a/dist/engine/beta-webm.js b/dist/engine/beta-webm.js index 874ff65..d437e84 100644 --- a/dist/engine/beta-webm.js +++ b/dist/engine/beta-webm.js @@ -3,4 +3,4 @@ https://github.com/xiangyuecn/Recorder src: engine/beta-webm.js */ -!function(){"use strict";var l="audio/webm",w=window.MediaRecorder&&MediaRecorder.isTypeSupported(l);Recorder.prototype.enc_webm={stable:!1,testmsg:w?"只有比较新的浏览器支持,压缩率和mp3差不多。由于未找到对已有pcm数据进行快速编码的方法,只能按照类似边播放边收听形式把数据导入到MediaRecorder,有几秒就要等几秒。(想接原始录音Stream?我不给,哼!)输出音频虽然可以通过比特率来控制文件大小,但音频文件中的比特率并非设定比特率,采样率由于是我们自己采样的,到这个编码器随他怎么搞":"此浏览器不支持进行webm编码,未实现MediaRecorder"},Recorder.prototype.webm=function(e,t,r){if(w){var a=this.set,o=e.length,n=a.sampleRate,c=Recorder.Ctx,i=c.createMediaStreamDestination();i.channelCount=1;var d=new MediaRecorder(i.stream,{mimeType:l,bitsPerSecond:1e3*a.bitRate}),s=[];d.ondataavailable=function(e){s.push(e.data)},d.onstop=function(e){t(new Blob(s,{type:l}))},d.onerror=function(e){r("转码webm出错:"+e.message)},d.start();for(var m=c.createBuffer(1,o,n),u=m.getChannelData(0),p=0;p