Giter VIP home page Giter VIP logo

Comments (8)

timsainb avatar timsainb commented on August 16, 2024

Can you paste the error you get? If it’s just one audio stream you shouldn’t be running into bus issues. Maybe the channels and samples are transposed in streaming and so the algorithm thinks there’s 16k channels

from noisereduce.

yujie-tao avatar yujie-tao commented on August 16, 2024

Thanks for the response!

In the terminal, the only error message I got was [1] 57294 bus error python3 stream-noise-cancel.py

I also got more detail reports here after the error:

-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Process:               Python [57342]
Path:                  /opt/homebrew/*/Python.framework/Versions/3.9/Resources/Python.app/Contents/MacOS/Python
Identifier:            org.python.python
Version:               3.9.13 (3.9.13)
Code Type:             ARM-64 (Native)
Parent Process:        zsh [35530]
Responsible:           iTerm2 [620]
User ID:               501

Date/Time:             2023-07-26 14:50:44.0138 -0600
OS Version:            macOS 12.5 (21G72)
Report Version:        12

Time Awake Since Boot: 260000 seconds
Time Since Wake:       3428 seconds

System Integrity Protection: enabled

Crashed Thread:        20  com.apple.audio.IOThread.client

Exception Type:        EXC_BAD_ACCESS (SIGBUS)
Exception Codes:       KERN_PROTECTION_FAILURE at 0x00000001701e3ff8
Exception Codes:       0x0000000000000002, 0x00000001701e3ff8
Exception Note:        EXC_CORPSE_NOTIFY

Termination Reason:    Namespace SIGNAL, Code 10 Bus error: 10
Terminating Process:   exc handler [57342]

Also, I found it seem to be a Mac issue? I run the same code on a Windows laptop and it works.

from noisereduce.

timsainb avatar timsainb commented on August 16, 2024

Hm... do you get the same error when you remove noisereduce entirely from the callback? If so you would want to cross post this to pyaudio

from noisereduce.

yujie-tao avatar yujie-tao commented on August 16, 2024

I don't get this error when moving noisereduce outside of the callback function.

from noisereduce.

timsainb avatar timsainb commented on August 16, 2024

from noisereduce.

yujie-tao avatar yujie-tao commented on August 16, 2024

Sorry about the confusion!

In both cases you mentioned:
(1) running noisereduce independently outside of the callback function

(2) running the callback function without noisereduce in the code at all

It doesn't run into bus errors.

from noisereduce.

timsainb avatar timsainb commented on August 16, 2024

from noisereduce.

karpp avatar karpp commented on August 16, 2024

Hello,

I've run into same issue, but using sounddevice library instead of pyaudio. I guess there's some conflict with portaudio because both libraries provide bindings for it.

My environment and error are equal to the ones mentioned by Yujie.

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.