Code Monkey home page Code Monkey logo

pyaudio_portaudio's Introduction

Precompiled & Extended | PyAudio with PortAudio for Windows

Used versions:
· PyAudio 0.2.11 | co 7090e25bcba41413bd7ce89aa73bc0efb1ae1ca1
· PortAudio V19 | co 1bdcb9e41357ec76d8cf73f9ef278202a3ea1e3b

Extensions:
· Support of Windows sound loopback: Record the output of your soundcard


This project is a fork of two open source projects. If you'd like, give them some love:


Usage

See the example.

Exactly like the official PyAudio but with the extra option "as_loopback" which expects a boolean.

import pyaudio
p = pyaudio.PyAudio()
stream = p.open([...], as_loopback = True)

How to install?

You can find the precompiled PyAudio build, static linked with PortAudio, as well as only the static linked PortAudio in the release.

I will try to rebuild the project on each update from one of the used projects.

How to build?

Cygwin

You will need a working cygwin installation with basic developer tools and python.

1.

Change to /pyaudio/portaudio-v19 and type

./configure --with-winapi=wasapi --enable-static=yes --enable-shared=no
make loopback

To rebuild type

make clean
make loopback

2.

Change to /pyaudio and type

python setup.py install --static-link

Microsoft Visual Studio (2017)

You will need to include the python executable in PATH.

1.

  • Open the portaudio project located in pyaudio\portaudio-v19\build\msvc\portaudio.sln.

  • Open the project configuration and make sure that the configuration type is set to static library.

  • Select the build type Release and x64. Then build the project.

  • Make sure the build was succesful and the file pyaudio\portaudio-v19\build\msvc\x64\Release\portaudio.lib does exist.

2.

Open the PowerShell as administrator and change the directory. Then you can build and install pyaudio with portaudio:

cd <Location of the repository>\pyaudio_portaudio\pyaudio
python.exe .\setup.py install --static-link

Microsoft Visual Studio (2017) - 32 bit

For 32-bit support see instructions above and this issue: intxcc#8.

The code from that issue is merged now, but as I do not have a 32-bit version I can't verify it. Comment in the issue for further help.

Help!!

If you get errors, let me know. Thank you ♥

pyaudio_portaudio's People

Contributors

intxcc avatar

Watchers

James Cloos avatar Lokendra Singh Chouhan avatar

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.