# HG changeset patch # User Amine SEHILI # Date 1573354237 -3600 # Node ID 6321013e540d9b7c8578893bb1c402a9d6a8f8bc # Parent 5187d584fe5ba428b29420924352fb3c78bd4eb3 Update README.rst diff -r 5187d584fe5b -r 6321013e540d README.rst --- a/README.rst Sun Nov 10 03:31:30 2019 +0100 +++ b/README.rst Sun Nov 10 03:50:37 2019 +0100 @@ -1,3 +1,10 @@ + +.. image:: doc/figures/auditok-logo-50.png + :align: center + +``auditok`` is an **Audio Activity Detection** tool that can process online data (read from an audio device or from standard input) as well as audio files. It can be used as a command line program and offers an easy to use API. + + .. image:: https://travis-ci.org/amsehili/auditok.svg?branch=master :target: https://travis-ci.org/amsehili/auditok @@ -5,9 +12,14 @@ :target: http://auditok.readthedocs.org/en/latest/?badge=latest :alt: Documentation Status +Basic example +------------- + .. code:: python from auditok import split + + # split returns a generator of AudioRegion objects audio_regions = split("audio.wav") for region in audio_regions: region.play(progress_bar=True) @@ -15,15 +27,14 @@ print("region saved as: {}".format(filename)) - -``auditok`` is an **Audio Activity Detection** tool that can process online data (read from an audio device or from standard input) as well as audio files. It can be used as a command line program and offers an easy to use API. - +Example using `AudioRegion` +-------------------------- .. code:: python from auditok import AudioRegion region = AudioRegion.load("audio.wav") - regions = region.split_and_plot() + regions = region.split_and_plot() # or just region.splitp() ouptut figure: