diff --git a/platypush/backend/http/app/streaming/plugins/sound.py b/platypush/backend/http/app/streaming/plugins/sound.py index b1688f3d9..fb7a3e8cd 100644 --- a/platypush/backend/http/app/streaming/plugins/sound.py +++ b/platypush/backend/http/app/streaming/plugins/sound.py @@ -46,7 +46,7 @@ class SoundRoute(StreamingRoute): @override @classmethod - def _get_redis_queue(cls, device: Optional[str] = None, *_, **__) -> str: + def _get_redis_queue(cls, *_, device: Optional[str] = None, **__) -> str: return '/'.join([cls._redis_queue_prefix, *([device] if device else [])]) def _get_args(self, **kwargs): diff --git a/platypush/plugins/sound/__init__.py b/platypush/plugins/sound/__init__.py index e3afe961a..0979d35ee 100644 --- a/platypush/plugins/sound/__init__.py +++ b/platypush/plugins/sound/__init__.py @@ -451,7 +451,7 @@ class SoundPlugin(Plugin): return self.record(*args, **kwargs) @action - def record( + def record( # pylint: disable=too-many-statements self, device: Optional[str] = None, output_device: Optional[str] = None, @@ -459,12 +459,12 @@ class SoundPlugin(Plugin): outfile: Optional[str] = None, duration: Optional[float] = None, sample_rate: Optional[int] = None, - dtype: str = 'float32', + dtype: str = 'int16', blocksize: Optional[int] = None, latency: Union[float, str] = 'high', channels: int = 1, redis_queue: Optional[str] = None, - format: str = 'wav', + format: str = 'wav', # pylint: disable=redefined-builtin stream: bool = True, play_audio: bool = False, ):