Skip to content

Voice isolation and volume normalisation #201

Description

@pchris7489

Hi

I use this extension to listen to local lectures. I have observe two problems, first is that sometime the lecturer goes furthermore or closer to the mic, so the volume is not constant. The second is that sometime there is noise (people talking in background) so it is hard to listen to the voice of the lecturer. I did some research and there are some tricks to isolate voice :

Using an equalizer then apply a triangle (triangle bandstop filter from 200 to 300) :

        const eqBoost1 = audioContext.createBiquadFilter();
        eqBoost1.type = "peaking";
        eqBoost1.frequency.value = 2000;
        eqBoost1.gain.value = 6;
        eqBoost1.Q.value = 1;

        const eqBoost2 = audioContext.createBiquadFilter();
        eqBoost2.type = "peaking";
        eqBoost2.frequency.value = 3000;
        eqBoost2.gain.value = 6;
        eqBoost2.Q.value = 1;
        let highPass = audioContext.createBiquadFilter();
        highPass.type = 'highpass';
        highPass.frequency.value = 200;
        highPass.Q.value = 1;

        let lowPass = audioContext.createBiquadFilter();
        lowPass.type = 'lowpass';
        lowPass.frequency.value = 3000;
        lowPass.Q.value = 1;

When isolating the voice, it is good to boost the volume of the output signal. I did some tests and this seems to work good. Ty

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions