Python Forum

Full Version: SoX Sound Exchange sample code to Rec & Play audio file
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Looking for a sample of how to record a sound file via Python and SoX Wrapper
Ditto for playing a recorded file.

Thanks for any help.
You can find some packages here: https://pypi.python.org/pypi?%3Aaction=s...mit=search
To find out more about the backages, fo to the specific PyPi site by clicking on the title.
If you like what you see, you can install the package or go to the github page and look at the code.
Most (but not all) will have examples within their code.
Once you decide on a package, you can look for the documentation on github, or find more samples at nullege.com
Thanks Larz60+
I have Sox installed on the PC and the sox module installed in Python.
There is not much help on code samples regarding running sox from Python on the SoX on sourceforge.
Google hasn't helped either.
You should always check the github page.
The location is almost always stored on the PyPi page for the application see: https://pypi.python.org/pypi/sox/1.3.0
on this page, it shows you that the github page is: https://github.com/rabitt/pysox
If you go to this page, you will see two examples displayed on the page!