Skip to content

v0.1.0

Choose a tag to compare

@markbackman markbackman released this 27 Sep 04:20
· 320 commits to main since this release
  • Fixed an issue where meeting_token was not properly handled in CallClient.join().

  • VirtualMicrophoneDevice.write_samples() has been renamed to VirtualMicrophoneDevice.write_frames()

  • VirtualMicrophoneDevice.read_samples() has been renamed to VirtualMicrophoneDevice.read_frames()

  • VirtualMicrophoneDevice.write_frames() now takes a single argument frames. frames are 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())