Mercurial > hg > auditok
annotate README.rst @ 344:deb4bbed0ecd
Add logo image
author | Amine Sehili <amine.sehili@gmail.com> |
---|---|
date | Sun, 10 Nov 2019 20:20:51 +0100 |
parents | 6321013e540d |
children | 1076056833c5 |
rev | line source |
---|---|
amsehili@343 | 1 |
amine@344 | 2 .. image:: doc/figures/auditok-logo.png |
amsehili@343 | 3 :align: center |
amsehili@343 | 4 |
amsehili@343 | 5 ``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. |
amsehili@343 | 6 |
amsehili@343 | 7 |
amine@336 | 8 .. image:: https://travis-ci.org/amsehili/auditok.svg?branch=master |
amine@336 | 9 :target: https://travis-ci.org/amsehili/auditok |
amine@336 | 10 |
amine@336 | 11 .. image:: https://readthedocs.org/projects/auditok/badge/?version=latest |
amine@336 | 12 :target: http://auditok.readthedocs.org/en/latest/?badge=latest |
amine@336 | 13 :alt: Documentation Status |
amine@336 | 14 |
amsehili@343 | 15 Basic example |
amsehili@343 | 16 ------------- |
amsehili@343 | 17 |
amine@336 | 18 .. code:: python |
amine@336 | 19 |
amine@336 | 20 from auditok import split |
amsehili@343 | 21 |
amsehili@343 | 22 # split returns a generator of AudioRegion objects |
amine@336 | 23 audio_regions = split("audio.wav") |
amine@336 | 24 for region in audio_regions: |
amine@336 | 25 region.play(progress_bar=True) |
amine@336 | 26 filename = region.save("/tmp/region_{meta.start:.3f}.wav") |
amine@336 | 27 print("region saved as: {}".format(filename)) |
amine@336 | 28 |
amine@336 | 29 |
amsehili@343 | 30 Example using `AudioRegion` |
amsehili@343 | 31 -------------------------- |
amine@336 | 32 |
amine@336 | 33 .. code:: python |
amine@336 | 34 |
amine@336 | 35 from auditok import AudioRegion |
amine@336 | 36 region = AudioRegion.load("audio.wav") |
amsehili@343 | 37 regions = region.split_and_plot() # or just region.splitp() |
amine@336 | 38 |
amine@336 | 39 |
amine@336 | 40 ouptut figure: |
amine@336 | 41 |
amine@336 | 42 .. image:: doc/figures/example_1.png |