Make pyaudio optional?
carlthome opened this issue · 3 comments
Noticed that pyaudio is a required installation even when not using audio streaming, because it's imported in the top-level BeatNet.py module. Could this be relaxed to an optional dependency?
Thanks for your suggestion. Please note that one of the main features of BeatNet is real-time capability, often coupled with a streaming feature. To support this functionality, we have chosen to include pyaudio as a dependency. If you do not require streaming or face installation restrictions for Pyaudio, you can either use the GitHub repository installation with an edited requirements file or create a private pip test PyPI package with edited requirements.
you can either use the GitHub repository installation with an edited requirements file or create a private pip test PyPI package with edited requirements.
No, this won't work since the import statement remains in the source.
By using the GitHub repository to create a pip test, the assumption is to comment the Pyaudio import statement as well as the streaming call in the function.