1***@qq.com
1***@qq.com
  • 发布:2025-03-05 18:41
  • 更新:2025-03-05 18:47
  • 阅读:26

#插件讨论# 【 跨平台Recorder录音插件:支持多种格式、音频可视化、实时上传、语音识别 - xiangyuecn 】音频可视化波形修改

分类:uni-app

请教一下音频可视化如何修改成其他波形?现在只显示WaveView默认波形,我想用Histogram3的波形

2025-03-05 18:41 负责人:无 分享
已邀请:
xiangyuecn

xiangyuecn - 高坚果

把对应的波形插件引入一下就行,Histogram3对应的是FrequencyHistogramView插件

import 'recorder-core/src/extensions/frequency.histogram.view.js'  
import 'recorder-core/src/extensions/lib.fft.js'  

//初始化  
RecordApp.UniFindCanvas(this,[".recwave-Histogram3"],`  
    this.Histogram3=Recorder.FrequencyHistogramView({compatibleCanvas:canvas1, width:300, height:100  
        ,lineCount:20,position:0,minHeight:1,fallDuration:400,stripeEnable:false,mirrorEnable:true  
        ,linear:[0,"#0ac",1,"#0ac"]});  
`,(canvas1)=>{  
    this.Histogram3=Recorder.FrequencyHistogramView({compatibleCanvas:canvas1, width:300, height:100  
        ,lineCount:20,position:0,minHeight:1,fallDuration:400,stripeEnable:false,mirrorEnable:true  
        ,linear:[0,"#0ac",1,"#0ac"]});  
});

要回复问题请先登录注册