Code Monkey home page Code Monkey logo

pyaudio-feedstock's Introduction

About pyaudio-feedstock

Feedstock license: BSD-3-Clause

Home: http://people.csail.mit.edu/hubert/pyaudio/

Package license: MIT

Summary: PortAudio Python Bindings.

Current build status

Azure
VariantStatus
linux_64_python3.10.____cpython variant
linux_64_python3.11.____cpython variant
linux_64_python3.12.____cpython variant
linux_64_python3.8.____cpython variant
linux_64_python3.9.____cpython variant

Current release info

Name Downloads Version Platforms
Conda Recipe Conda Downloads Conda Version Conda Platforms

Installing pyaudio

Installing pyaudio from the conda-forge channel can be achieved by adding conda-forge to your channels with:

conda config --add channels conda-forge
conda config --set channel_priority strict

Once the conda-forge channel has been enabled, pyaudio can be installed with conda:

conda install pyaudio

or with mamba:

mamba install pyaudio

It is possible to list all of the versions of pyaudio available on your platform with conda:

conda search pyaudio --channel conda-forge

or with mamba:

mamba search pyaudio --channel conda-forge

Alternatively, mamba repoquery may provide more information:

# Search all versions available on your platform:
mamba repoquery search pyaudio --channel conda-forge

# List packages depending on `pyaudio`:
mamba repoquery whoneeds pyaudio --channel conda-forge

# List dependencies of `pyaudio`:
mamba repoquery depends pyaudio --channel conda-forge

About conda-forge

Powered by NumFOCUS

conda-forge is a community-led conda channel of installable packages. In order to provide high-quality builds, the process has been automated into the conda-forge GitHub organization. The conda-forge organization contains one repository for each of the installable packages. Such a repository is known as a feedstock.

A feedstock is made up of a conda recipe (the instructions on what and how to build the package) and the necessary configurations for automatic building using freely available continuous integration services. Thanks to the awesome service provided by Azure, GitHub, CircleCI, AppVeyor, Drone, and TravisCI it is possible to build and upload installable packages to the conda-forge Anaconda-Cloud channel for Linux, Windows and OSX respectively.

To manage the continuous integration and simplify feedstock maintenance conda-smithy has been developed. Using the conda-forge.yml within this repository, it is possible to re-render all of this feedstock's supporting files (e.g. the CI configuration files) with conda smithy rerender.

For more information please check the conda-forge documentation.

Terminology

feedstock - the conda recipe (raw material), supporting scripts and CI configuration.

conda-smithy - the tool which helps orchestrate the feedstock. Its primary use is in the construction of the CI .yml files and simplify the management of many feedstocks.

conda-forge - the place where the feedstock and smithy live and work to produce the finished article (built conda distributions)

Updating pyaudio-feedstock

If you would like to improve the pyaudio recipe or build a new package version, please fork this repository and submit a PR. Upon submission, your changes will be run on the appropriate platforms to give the reviewer an opportunity to confirm that the changes result in a successful build. Once merged, the recipe will be re-built and uploaded automatically to the conda-forge channel, whereupon the built conda packages will be available for everybody to install and use from the conda-forge channel. Note that all branches in the conda-forge/pyaudio-feedstock are immediately built and any created packages are uploaded, so PRs should be based on branches in forks and branches in the main repository should only be used to build distinct package versions.

In order to produce a uniquely identifiable distribution:

  • If the version of a package is not being increased, please add or increase the build/number.
  • If the version of a package is being increased, please remember to return the build/number back to 0.

Feedstock Maintainers

pyaudio-feedstock's People

Contributors

aleneum avatar beckermr avatar conda-forge-admin avatar conda-forge-curator[bot] avatar github-actions[bot] avatar ocefpaf avatar regro-cf-autotick-bot avatar scopatz avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

pyaudio-feedstock's Issues

Pyaudio/portaudio package mismatch on Windows x64

Issue:

When trying to install pyaudio on Windows with conda-forge, conda will use pyaudio from pkgs/main and portaudio from conda-forge:

$ conda install -c conda-forge -d pyaudio
Collecting package metadata (current_repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: C:\Miniconda3-x64\envs\test-environment

  added / updated specs:
    - pyaudio


The following NEW packages will be INSTALLED:

  portaudio          conda-forge/win-64::portaudio-19.6.0-h6538335_2
  pyaudio            pkgs/main/win-64::pyaudio-0.2.11-py37hfa6e2cd_1

Importing pyaudio will cause an import error (ref)

>>> import pyaudio
...
# trying C:\Miniconda3-x64\envs\test-environment\lib\site-packages\_portaudio.cp37-win_amd64.pyd
Could not import the PyAudio C module '_portaudio'.
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Miniconda3-x64\envs\test-environment\lib\site-packages\pyaudio.py", line 116, in <module>
    import _portaudio as pa
ImportError: DLL load failed: The specified module could not be found.

I assume that mixing conda-forge/win-64::portaudio and pkgs/main/win-64::pyaudio does not work.
This seems to be an issue for Windows only. Using Linux will result in both (portaudio and pyaudio) packages being retrieved from conda-forge (ref) while in case of MacOS pkgs/main (ref) will be used.


Environment (conda list):
$ conda list
packages in environment at C:\Miniconda3-x64\envs\test-environment:
#
# Name                    Version                   Build  Channel
ca-certificates           2019.6.16            hecc5488_0    conda-forge
certifi                   2019.6.16                py37_1    conda-forge
openssl                   1.1.1c               hfa6e2cd_0    conda-forge
pip                       19.2.2                   py37_0    conda-forge
python                    3.7.3                h510b542_1    conda-forge
setuptools                41.0.1                   py37_0    conda-forge
sqlite                    3.29.0               hfa6e2cd_0    conda-forge
vc                        14.1                 h0510ff6_4
vs2015_runtime            14.15.26706          h3a45250_4
wheel                     0.33.4                   py37_0    conda-forge
wincertstore              0.2                   py37_1002    conda-forge

Details about conda and system ( conda info ):
$ conda info

     active environment : test-environment
    active env location : C:\Miniconda3-x64\envs\test-environment
            shell level : 1
       user config file : C:\Users\alneuman\.condarc
 populated config files : C:\Users\alneuman\.condarc
          conda version : 4.7.11
    conda-build version : not installed
         python version : 3.7.1.final.0
       virtual packages : __cuda=9.1
       base environment : C:\Miniconda3-x64  (writable)
           channel URLs : https://conda.anaconda.org/conda-forge/win-64
                          https://conda.anaconda.org/conda-forge/noarch
                          https://repo.anaconda.com/pkgs/main/win-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/win-64
                          https://repo.anaconda.com/pkgs/r/noarch
                          https://repo.anaconda.com/pkgs/msys2/win-64
                          https://repo.anaconda.com/pkgs/msys2/noarch
          package cache : C:\Miniconda3-x64\pkgs
                          C:\Users\alneuman\.conda\pkgs
                          C:\Users\alneuman\AppData\Local\conda\conda\pkgs
       envs directories : C:\Miniconda3-x64\envs
                          C:\Users\alneuman\.conda\envs
                          C:\Users\alneuman\AppData\Local\conda\conda\envs
               platform : win-64
             user-agent : conda/4.7.11 requests/2.22.0 CPython/3.7.1 Windows/10 Windows/10.0.17134
          administrator : False
             netrc file : None
           offline mode : False

No Default Input Device Available

Issue: pyaudio cannot be used for recording audio.

Environment:

$ conda list
# Name                    Version                   Build  Channel
alsa-lib                  1.1.5             h14c3975_1000    conda-forge
backcall                  0.1.0                      py_0    conda-forge
bzip2                     1.0.6             h14c3975_1002    conda-forge
ca-certificates           2019.3.9             hecc5488_0    conda-forge
certifi                   2019.3.9                 py36_0    conda-forge
decorator                 4.4.0                      py_0    conda-forge
ipython                   7.4.0            py36h24bf2e0_0    conda-forge
ipython_genutils          0.2.0                      py_1    conda-forge
jack                      0.125.0           hf484d3e_1001    conda-forge
jedi                      0.13.3                   py36_0    conda-forge
libdb                     6.1.26            hf484d3e_2000    conda-forge
libffi                    3.2.1             he1b5a44_1006    conda-forge
libgcc-ng                 8.2.0                hdf63c60_1  
libstdcxx-ng              8.2.0                hdf63c60_1  
ncurses                   6.1               hf484d3e_1002    conda-forge
openssl                   1.1.1b               h14c3975_1    conda-forge
parso                     0.3.4                      py_0    conda-forge
pexpect                   4.6.0                 py36_1000    conda-forge
pickleshare               0.7.5                 py36_1000    conda-forge
pip                       19.0.3                   py36_0    conda-forge
pocketsphinx-python       0.1.3            py36h470a237_0    conda-forge
portaudio                 19.6.0               hf484d3e_2    conda-forge
prompt_toolkit            2.0.9                      py_0    conda-forge
ptyprocess                0.6.0                 py36_1000    conda-forge
pyaudio                   0.2.11          py36h14c3975_1000    conda-forge
pygments                  2.3.1                      py_0    conda-forge
python                    3.6.7             h381d211_1004    conda-forge
readline                  7.0               hf8c457e_1001    conda-forge
setuptools                40.8.0                   py36_0    conda-forge
six                       1.12.0                py36_1000    conda-forge
speechrecognition         3.6.3                 py36_1000    conda-forge
sqlite                    3.26.0            h67949de_1001    conda-forge
tk                        8.6.9             h84994c4_1001    conda-forge
traitlets                 4.3.2                 py36_1000    conda-forge
wcwidth                   0.1.7                      py_1    conda-forge
wheel                     0.33.1                   py36_0    conda-forge
xz                        5.2.4             h14c3975_1001    conda-forge
zlib                      1.2.11            h14c3975_1004    conda-forge

The following script list available and default devices:

import pyaudio

pa = pyaudio.PyAudio()

print('\navailable devices:')

for i in range(pa.get_device_count()):
    dev = pa.get_device_info_by_index(i)
    name = dev['name'].encode('utf-8')
    print(i, name, dev['maxInputChannels'], dev['maxOutputChannels'])

print('\ndefault input & output device:')
print(pa.get_default_input_device_info())
print(pa.get_default_output_device_info())

get_default_input_input_device_info fails with OSError: No Default Input Device Available.

It works fine when installing pyaudio via the system package manager (sudo apt-get install python3-pyaudio). Did anyone run into this?

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.