Python Forum
SoX Sound Exchange sample code to Rec & Play audio file - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: SoX Sound Exchange sample code to Rec & Play audio file (/thread-4821.html)



SoX Sound Exchange sample code to Rec & Play audio file - Fran_3 - Sep-11-2017

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.


RE: SoX Sound Exchange sample code to Rec & Play audio file - Larz60+ - Sep-11-2017

You can find some packages here: https://pypi.python.org/pypi?%3Aaction=search&term=sound+recording&submit=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


RE: SoX Sound Exchange sample code to Rec & Play audio file - Fran_3 - Sep-11-2017

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.


RE: SoX Sound Exchange sample code to Rec & Play audio file - Larz60+ - Sep-11-2017

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!