Mercurial > hg > auditok
changeset 182:c07f1620e5b0
Add command line option for large file
author | Amine Sehili <amine.sehili@gmail.com> |
---|---|
date | Wed, 27 Mar 2019 20:43:19 +0100 |
parents | 678c1c1a2617 |
children | c1397190e35e |
files | auditok/cmdline.py |
diffstat | 1 files changed, 10 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/auditok/cmdline.py Wed Mar 27 20:41:19 2019 +0100 +++ b/auditok/cmdline.py Wed Mar 27 20:43:19 2019 +0100 @@ -88,6 +88,16 @@ metavar="FLOAT", ) group.add_argument( + "-L", + "--large-file", + dest="large_file", + action="store_true", + default=False, + help="Whether input file should be treated as a large file. " + "If True, data will be read from file on demand, otherwise all " + "audio data is loaded to memory before tokenization.", + ) + group.add_argument( "-O", "--output-main", dest="output_main", @@ -181,7 +191,6 @@ help="Drop trailing silence from a detection [default: keep " "trailing silence]", ) - group.add_argument( "-R", "--strict-min-duration", @@ -192,7 +201,6 @@ "adjacent to the latest valid event that reached max-duration " "[default: keep such events]", ) - group.add_argument( "-e", "--energy-threshold", @@ -298,7 +306,6 @@ "fields are printed. Note that %%S and %%I can only be used alone", metavar="STRING", ) - group.add_argument( "--timestamp-format", dest="timestamp_format", @@ -307,7 +314,6 @@ help="format used to print {timestamp}. Should be a format accepted by " "datetime Default %%Y/%%m/%%D %%H:%%M:%%S", ) - parser.add_argument( "-q", "--quiet",