Mercurial > hg > auditok
changeset 147:90dd15daf373
update _get_audio_parameters
author | Amine Sehili <amine.sehili@gmail.com> |
---|---|
date | Wed, 20 Feb 2019 20:52:44 +0100 |
parents | daeb73d16dbf |
children | 2a1054f9d9f3 |
files | auditok/io.py |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/auditok/io.py Tue Feb 19 21:07:19 2019 +0100 +++ b/auditok/io.py Wed Feb 20 20:52:44 2019 +0100 @@ -153,8 +153,10 @@ err_message.format(ln=long_name, sn=short_name, val=param) ) parameters.append(param) + sampling_rate, sample_width, channels = parameters use_channel = param_dict.get("use_channel", param_dict.get("uc", 0)) - return tuple(parameters) + (_normalize_use_channel(use_channel),) + use_channel = _normalize_use_channel(use_channel) + return sampling_rate, sample_width, channels, use_channel def _array_to_bytes(a):