Giter Site home page Giter Site logo

Comments (5)

pkjy avatar pkjy commented on May 26, 2024

这个DEMO只是对PCM数据流的播放,其他对PCM数据的处理需要自己写算法哦。还可以用一些软件例如 speex 等软件对数据进行降噪等处理。相关npm包有 Speex Resampler 之类的。

from pcm-player.

sunkingsss avatar sunkingsss commented on May 26, 2024

那请问可以使用BiquadFilterNode低阶滤波器来处理降噪吗?主要处理电流声

from pcm-player.

pkjy avatar pkjy commented on May 26, 2024

实例化以后,可以通过audioCtx访问到当前AudioContext。随后你想用AudioContext相关的什么API都能操作了。

eg:

const player = new PCMPlayer({
        inputCodec: 'Int16',
        channels: 2,
        sampleRate: 8000,
        flushTime: 200
});
console.log('AudioContext here', player.audioCtx)

from pcm-player.

FickXu avatar FickXu commented on May 26, 2024

那请问可以使用BiquadFilterNode低阶滤波器来处理降噪吗?主要处理电流声

请问噪音的问题你解决了吗?

from pcm-player.

pkjy avatar pkjy commented on May 26, 2024

那请问可以使用BiquadFilterNode低阶滤波器来处理降噪吗?主要处理电流声

请问噪音的问题你解决了吗?

音量初始值太高了,gainNode范围0~1之间,我把demo和代码里调低了些,可以再访问demo试试。

from pcm-player.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.