Skip to main content

Allows to play single tones on the PyAudio sound output in real time

Project description

travis status code coverage PySine python versions on PyPI PySine version on PyPI License

PySine allows to play single tones on the PyAudio sound output in real time.

This is always useful when no text output is available, for example for debugging multi-thread programs or calls to object destructors by Python’s garbage collector.



pip install pysine


git clone
python develop

Quick start / usage example:

>From the command line:

python -m pysine frequency duration

A sine sound with the desired properties should be heard.

Within a python code block:

from pysine import sine
sine(frequency=440.0, duration=1.0)  # plays a 1s sine wave at 440 Hz


Please report all problems or wishes as new issues on this page, so we can fix it and improve the future user experience.

Unit test

Use nosetests for unit tests:

cd package_code_directory

All tests should take about 3 minutes and finish without failures or errors. If there are errors, please report the console output as an issue (see the section “Issues” below for detailed explanations).


Please read our license file LICENSE for more information.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pysine, version 0.9.2
Filename, size File type Python version Upload date Hashes
Filename, size pysine-0.9.2.tar.gz (4.6 kB) File type Source Python version None Upload date Hashes View
Filename, size pysine-0.9.2-py2.py3-none-any.whl (6.0 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size pysine-0.9.2-py2.7.egg (6.8 kB) File type Egg Python version 2.7 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page