# HG changeset patch # User Amine Sehili # Date 1567964652 -3600 # Node ID 890431af3aee3b618cd537dcad86a86e5764a14e # Parent f139c365f7019edc738bd22e71547b1f276c1182 Fix bug in get_audio_source diff -r f139c365f701 -r 890431af3aee auditok/io.py --- a/auditok/io.py Sun Sep 08 18:20:53 2019 +0100 +++ b/auditok/io.py Sun Sep 08 18:44:12 2019 +0100 @@ -823,9 +823,7 @@ frames_per_buffer = kwargs.get("frames_per_buffer", 1024) input_device_index = kwargs.get("input_device_index") return PyAudioSource( - sampling_rate=sampling_rate, - sample_width=sample_width, - channels=channels, + *_get_audio_parameters(kwargs), frames_per_buffer=frames_per_buffer, input_device_index=input_device_index, )