Mercurial > hg > auditok
annotate README.rst @ 336:0e13ef3598f3
Update README
- Use rst instead or markdown
author | Amine Sehili <amine.sehili@gmail.com> |
---|---|
date | Sat, 26 Oct 2019 18:23:52 +0100 |
parents | |
children | 6321013e540d |
rev | line source |
---|---|
amine@336 | 1 .. image:: https://travis-ci.org/amsehili/auditok.svg?branch=master |
amine@336 | 2 :target: https://travis-ci.org/amsehili/auditok |
amine@336 | 3 |
amine@336 | 4 .. image:: https://readthedocs.org/projects/auditok/badge/?version=latest |
amine@336 | 5 :target: http://auditok.readthedocs.org/en/latest/?badge=latest |
amine@336 | 6 :alt: Documentation Status |
amine@336 | 7 |
amine@336 | 8 .. code:: python |
amine@336 | 9 |
amine@336 | 10 from auditok import split |
amine@336 | 11 audio_regions = split("audio.wav") |
amine@336 | 12 for region in audio_regions: |
amine@336 | 13 region.play(progress_bar=True) |
amine@336 | 14 filename = region.save("/tmp/region_{meta.start:.3f}.wav") |
amine@336 | 15 print("region saved as: {}".format(filename)) |
amine@336 | 16 |
amine@336 | 17 |
amine@336 | 18 |
amine@336 | 19 ``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. |
amine@336 | 20 |
amine@336 | 21 |
amine@336 | 22 .. code:: python |
amine@336 | 23 |
amine@336 | 24 from auditok import AudioRegion |
amine@336 | 25 region = AudioRegion.load("audio.wav") |
amine@336 | 26 regions = region.split_and_plot() |
amine@336 | 27 |
amine@336 | 28 |
amine@336 | 29 ouptut figure: |
amine@336 | 30 |
amine@336 | 31 .. image:: doc/figures/example_1.png |