v0.1.0
-
Fixed an issue where
meeting_tokenwas not properly handled inCallClient.join(). -
VirtualMicrophoneDevice.write_samples()has been renamed toVirtualMicrophoneDevice.write_frames() -
VirtualMicrophoneDevice.read_samples()has been renamed toVirtualMicrophoneDevice.read_frames() -
VirtualMicrophoneDevice.write_frames()now takes a single argumentframes.framesare audio frames, an interleaved set of audio samples per channel.write_frames()is a synchronous call that will finish when all audio frames have been written.write_frames()also adds padding when necessary. -
Handling microphone audio samples has been simplified. Previous, the following code was required:
while True:
buffer = stream.read(960)
if not buffer:
break
if len(buffer) < 960:
buffer += b'\00' * (960 - len(buffer))
microphone.write_samples(buffer, 480)
time.sleep(0.03)
It can now be replaced with:
microphone.write_frames(stream.read())