Skip to content

Commit

Permalink
修改文档
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangyuecn committed Jan 13, 2020
1 parent e5b1447 commit eb18bca
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ Recorder({type:"aac"})
`src/extensions`目录内为扩展支持库,这些扩展库默认都没有合并到生成代码中,需单独引用(`dist``src`中的)才能使用。

## `WaveView`扩展
(waveview.js](https://github.com/xiangyuecn/Recorder/blob/master/src/extensions/waveview.js),4kb大小源码,录音时动态显示波形,具体样子参考演示地址页面。此扩展参考[MCVoiceWave](https://github.com/HaloMartin/MCVoiceWave)库编写的,具体代码在`https://github.com/HaloMartin/MCVoiceWave/blob/f6dc28975fbe0f7fc6cc4dbc2e61b0aa5574e9bc/MCVoiceWave/MCVoiceWaveView.m`中。
[waveview.js](https://github.com/xiangyuecn/Recorder/blob/master/src/extensions/waveview.js),4kb大小源码,录音时动态显示波形,具体样子参考演示地址页面。此扩展参考[MCVoiceWave](https://github.com/HaloMartin/MCVoiceWave)库编写的,具体代码在`https://github.com/HaloMartin/MCVoiceWave/blob/f6dc28975fbe0f7fc6cc4dbc2e61b0aa5574e9bc/MCVoiceWave/MCVoiceWaveView.m`中。

此扩展是在录音时`onProcess`回调中使用;`Recorder.BufferSize`会影响绘制帧率,越小越流畅(但越消耗cpu),默认配置的大概12帧/s。基础使用方法:[](?Ref=WaveView.Codes&Start)
``` javascript
Expand Down Expand Up @@ -612,9 +612,9 @@ set={


## `FrequencyHistogramView`扩展
[frequency.histogram.view.js](https://github.com/xiangyuecn/Recorder/blob/master/src/extensions/frequency.histogram.view.js) + [lib.fft.js](https://github.com/xiangyuecn/Recorder/blob/master/src/extensions/lib.fft.js),12kb大小源码,音频可视化频率直方图显示,具体样子参考演示地址页面。此扩展核心算法参考Java开源库[jmp123 ](https://sourceforge.net/projects/jmp123/files/)的代码编写的,jmp123版本0.3
[frequency.histogram.view.js](https://github.com/xiangyuecn/Recorder/blob/master/src/extensions/frequency.histogram.view.js) + [lib.fft.js](https://github.com/xiangyuecn/Recorder/blob/master/src/extensions/lib.fft.js),12kb大小源码,音频可视化频率直方图显示,具体样子参考演示地址页面。此扩展核心算法参考Java开源库[jmp123](https://sourceforge.net/projects/jmp123/files/)的代码编写的,`jmp123`版本`0.3`

此扩展的使用方式和`WaveView`扩展完全相同,请参考上面的`WaveView`来使用请注意:必须同时引入`lib.fft.js`才能正常工作。
此扩展的使用方式和`WaveView`扩展完全相同,请参考上面的`WaveView`来使用请注意:必须同时引入`lib.fft.js`才能正常工作。

![](https://gitee.com/xiangyuecn/Recorder/raw/master/assets/use_histogram.png)

Expand Down
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": "e3d0df0e66aa924cf04a56dafc858c40c6054bf6",
"time": "2020-1-14 03:12:04"
},
{
"sha1": "c4a7d796fe658b33a012e69650d5663f1b6c7471",
"time": "2020-1-14 03:03:00"
Expand All @@ -14,9 +18,5 @@
{
"sha1": "9fe5d3c5b5adf62059a80e29213badfa4338a806",
"time": "2020-1-9 02:41:51"
},
{
"sha1": "9500379da03792a852263e36703e618e2bb9fd8c",
"time": "2020-1-2 22:15:42"
}
]

0 comments on commit eb18bca

Please sign in to comment.