Skip to content

Commit

Permalink
优化BufferStreamPlayer扩展音质,调整demo细节
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangyuecn committed Aug 8, 2021
1 parent ddd980e commit 1238524
Show file tree
Hide file tree
Showing 11 changed files with 220 additions and 31 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ set={
//*******高级设置******
//,sourceStream:MediaStream Object
//可选直接提供一个媒体流,从这个流中录制、实时处理音频数据(当前Recorder实例独享此流);不提供时为普通的麦克风录音,由getUserMedia提供音频流(所有Recorder实例共享同一个流)
//比如:audio、video标签dom节点的captureStream方法返回的流;WebRTC中的remote流;自己创建的流等
//比如:audio、video标签dom节点的captureStream方法(实验特性,不同浏览器支持程度不高)返回的流;WebRTC中的remote流;自己创建的流等
//注意:流内必须至少存在一条音轨(Audio Track),比如audio标签必须等待到可以开始播放后才会有音轨,否则open会失败

//,audioTrackSet:{ deviceId:"",groupId:"", autoGainControl:true, echoCancellation:true, noiseSuppression:true }
Expand Down Expand Up @@ -904,7 +904,7 @@ stream.stop();
```

### 【方法】stream.input(anyData)
输入任意格式的音频数据,未start前调用会等到start成功后生效
输入任意格式的音频数据,未完成start前调用会等到start成功后生效
```
anyData: any 具体类型取决于:
set.decode为false时:
Expand Down
2 changes: 1 addition & 1 deletion app-support-sample/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@
});
waveStore.Histogram3=Recorder.FrequencyHistogramView({
elem:".recwave"
,lineCount:10
,lineCount:20
,position:0
,minHeight:1
,fallDuration:400
Expand Down
2 changes: 1 addition & 1 deletion assets/demo-vue/dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/demo-vue/dist/recordapp.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions assets/npm-home/hash-history.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
[
{
"sha1": "da5d36f2d737a399132ff0dce78f4848f575b6d0",
"time": "2021-8-8 18:32:10"
},
{
"sha1": "f25250465e0e93c0f75f6c0a16a0940e9c350857",
"time": "2021-8-4 02:20:20"
Expand All @@ -14,9 +18,5 @@
{
"sha1": "3d5f78b7876b6d825aa51eeb12816abb428ee0a9",
"time": "2020-11-26 09:26:00"
},
{
"sha1": "fb3ceae274cae979c7ba353ec59cd38e95016fc9",
"time": "2020-11-17 10:37:35"
}
]
2 changes: 2 additions & 0 deletions assets/runtime-codes/teach.source_stream.capture_stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
Recorder支持处理audio、video标签dom节点的captureStream方法返回的流,只需提供set.sourceStream配置参数即可,对流内音频的录制和对麦克风录制没有区别;因此Recorder所有的实时处理功能都能在这个流上进行操作,比如:对正在播放的音频进行可视化绘制、变速变调。
captureStream方法目前是一个实验特性,并不是所有新浏览器都能支持的;另外不推荐带浏览器前缀使用,行为可能不一致(如mozCaptureStream);参考文档: https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/captureStream
除了可以处理captureStream得到的流,其他的MediaStream流(只要至少有一条音轨)均是按同样的方法进行录音和处理。
******************/

Expand Down
2 changes: 1 addition & 1 deletion assets/工具-代码运行和静态分发Runtime.html
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@
});
waveStore.Histogram3=Recorder.FrequencyHistogramView({
elem:".ctrlProcessWave"
,lineCount:10
,lineCount:20
,position:0
,minHeight:1
,fallDuration:400
Expand Down
2 changes: 1 addition & 1 deletion dist/extensions/buffer_stream.player.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@
});
waveStore.Histogram3=Recorder.FrequencyHistogramView({
elem:".recwave"
,lineCount:10
,lineCount:20
,position:0
,minHeight:1
,fallDuration:400
Expand Down
Loading

0 comments on commit 1238524

Please sign in to comment.