Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Dynamic Loading of PyAudio #206

Merged
merged 1 commit into from
Dec 12, 2023
Merged

Fix Dynamic Loading of PyAudio #206

merged 1 commit into from
Dec 12, 2023

Conversation

davidvonthenen
Copy link
Contributor

@davidvonthenen davidvonthenen commented Dec 12, 2023

The main fix was Dynamic Loading of PyAudio. I didn't want to place the dependency of loading PyAudio for all SDK operations even if it were doing something simple like processing prerecorded audio. Requiring PyAudio to be installed forced users to also have port audio install even if they weren't using the Microphone. This now does it dynamically.

As a consequence, I cleaned up the pip installs and restored some of the functionality that @SandraRodgers has for the examples:

  • requirements.txt - needed for the functionality of the library itself
  • requirements-dev.txt - only needed if you plan on doing dev work on the SDK
  • examples/requirements-examples.txt - only needed if you plan on running the examples

Made sure all examples works as intended! and made sure an external project is able to consume the library correctly PR pending (https://github.com/deepgram-starters/deepgram-python-starters) which is testable from this version in PyPi 3.0.0-dev.11.

@davidvonthenen davidvonthenen marked this pull request as ready for review December 12, 2023 23:37
@davidvonthenen davidvonthenen merged commit db1dcac into main Dec 12, 2023
2 checks passed
@davidvonthenen davidvonthenen deleted the dyv-experiment-v3 branch December 12, 2023 23:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants