pipecat.udp module

Functions for working with UDP messages.

pipecat.udp.receive(address, maxsize)

Receive messages from a UDP socket.

Parameters:
  • address ((host, port) tuple, required) – TCP address and IP port to be bound for listening for UDP packets.
  • maxsize (int, required) – Maximum length of packets returned from the UDP socket.
Yields:

record (dict) – Records will contain a client field with the address of the sending client, and a message field containing the content of the message.