Coder Social home page Coder Social logo

tabahi / formantanalyzer.js Goto Github PK

View Code? Open in Web Editor NEW
25.0 25.0 4.0 315 KB

Extract formant features such as frequency, power, energy, and bandwidth of formants at syllable or word level from audio sources in a web browser using WebAudio API.

License: Apache License 2.0

JavaScript 82.23% CSS 12.15% HTML 5.62%
audio-analysis audio-processing feature feature-engineering feature-extraction formant formant-detection music music-visualizer signal-processing spectrum-analyzer speech-processing

formantanalyzer.js's People

Contributors

nahakiole avatar tabahi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

formantanalyzer.js's Issues

Output level 2 with spec type level 1 returns 200 bins no matter what config value is set.

When I set my config like this

      let launch_config = {
        plot_enable: false,
        spec_type: 1, //mel
        output_level: 2, //spectrum
        f_min: 0,
        f_max: 5000,
        plot_len: 16,
        min_seg_length: 10,
        N_mel_bins: 30,
        window_width: 512,
        window_step: 256,
        auto_noise_gate: false,
        voiced_min_dB: 0,
        voiced_max_dB: 80,
        pre_norm_gain: 1000,
        high_f_emph: 0.0,
      };

my callback like this

async function callback(
        seg_index,
        seg_label,
        seg_time,
        extracted_features
      ) {
        console.log("extracted_features", extracted_features);
    }

In my browser it shows there are 200 bins, not 16 like i specify in plot_len

console log below

extracted_features (200) [Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), Uint32Array(30), …]

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.