if isinstance(data, rtc.AudioFrame):
# TODO(theomonnom): The remix_and_resample method is low quality
# and should be replaced with a continuous resampling
frame = data.remix_and_resample(
self._sample_rate, self._num_channels
)
When will this TODO be optimized? After testing, the accuracy of this solution is much different from that of using pyaudio to read data from the microphone.
When will this TODO be optimized? After testing, the accuracy of this solution is much different from that of using pyaudio to read data from the microphone.