pipecat.connect module¶
Functions for connecting data sources.
-
pipecat.connect.
concatenate
(sources)¶ Concatenate records from multiple sources.
Yields all of the records from the first source, then all the records from the second source, and-so-on until every source has been consumed. Note that this means that it only makes sense to use sources that return a bounded number of records with concatenate()!
Parameters: sources (sequence of Record Generators, required) Yields: record (dict)
-
pipecat.connect.
multiplex
(sources)¶ Interleave records from multiple sources.
Yields records from all sources in the order that they arrive.
Parameters: sources (sequence of Record Generators, required) Yields: record (dict)