Giter VIP home page Giter VIP logo

Comments (5)

DamienDeepgram avatar DamienDeepgram commented on July 17, 2024

I was able to make some progress but all the values in the output of the noisereduce are 0

mic_data = await audio_queue.get()

numpydata = np.frombuffer(mic_data, np.int16)

reduced_noise = nr.reduce_noise(
  y=numpydata, 
  sr=SAMPLE_RATE,
  stationary=True,
  freq_mask_smooth_hz=2000,
  time_mask_smooth_ms=75,
  n_std_thresh_stationary=2
)
noise_mic_data = reduced_noise.tobytes()

from noisereduce.

NickleDave avatar NickleDave commented on July 17, 2024

Did you see #44 already?
If not the approach + snippets there might help you

from noisereduce.

DamienDeepgram avatar DamienDeepgram commented on July 17, 2024

I figured out the issue actually

I was trying to send smaller chunks of audio 20ms at a time and up to 200ms at a time.

Once I switched to 1sec audio chunks the above code started working for me

from noisereduce.

DamienDeepgram avatar DamienDeepgram commented on July 17, 2024

Closing as the above code does the job once frames per buffer and the audio stream was set to 1 seconds (16k in my case since the audio is 16Khz)

from noisereduce.

lonngxiang avatar lonngxiang commented on July 17, 2024

how to fix?

from noisereduce.

Related Issues (20)

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.