def __init__(self, mode=None): self._vad = _webrtcvad.create() _webrtcvad.init(self._vad) if mode is not None: self.set_mode(mode)