Mercurial > hg > auditok
changeset 28:ded666b423b7
Update README.md
author | Amine SEHILI <amsehili@users.noreply.github.com> |
---|---|
date | Sun, 29 Nov 2015 01:20:25 +0100 |
parents | 25ea38ae87e7 |
children | 2562d19b5781 |
files | README.md |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/README.md Sun Nov 29 01:07:29 2015 +0100 +++ b/README.md Sun Nov 29 01:20:25 2015 +0100 @@ -105,7 +105,7 @@ If however you figure out that the detector is missing some of or all your audio activities, use a lower value for `-e`. -### Set detection information format +### Set printed detection information format By default, the `auditok` prints the `id` `start time` `end time` of each detected activity: @@ -126,7 +126,7 @@ [4]: 7.32 to 7.82 ... -Keywords `{id}`, `{start}` and `{end}` can be placed and repeate anywhere in the text. Time is shown in seconds, if you want a more detailed time information, use `--time-format`: +Keywords `{id}`, `{start}` and `{end}` can be placed and repeated anywhere in the text. Time is shown in seconds, if you want a more detailed time information, use `--time-format`: auditok -e 55 --printf "[{id}]: {start} to {end}" --time-format "%h:%m:%s.%i" @@ -143,7 +143,7 @@ ### Practical use case: generate a subtitles template -Using `--printf ` and `--time-format`, the following command, used with an input file, will generate and **srt** file template that can be later edited a subtitles editor in a way that reduces the time needed to define when each utterance starts and where it ends: +Using `--printf ` and `--time-format`, the following command, used with an input audio or video file, will generate and an **srt** file template that can be later edited with a subtitles editor in a way that reduces the time needed to define when each utterance starts and where it ends: auditok -e 55 -i input.wav -m 10 --printf "{id}\n{start} --> {end}\nPut some text here...\n" --time-format "%h:%m:%s.%i"