Distributor
  • 19 Jul 2024
  • 1 Minute to read
  • Contributors
  • PDF

Distributor

  • PDF

Article summary

A simple utility node. This node immediately outputs whatever is sent to it.

Parameters:
none

Inputs

Audio:
Accepts Everything

Events:
Accepts Everything

Outputs

Audio:
Writes all the incoming audio to output as is.

Events:
Writes all the incoming events to output as is.

Project Structure

The distributor node, due to its pass-through properties can be used to "sanitize" projects from too many connections. In the example below, it is utilized to reduce the number of connections.

image.png

Without using a Distributor Node, the connections would look as such:

image.png

The Distributor node can be used in tandem with Constraints to create Optional and Parametric operations. In the example below, the text from SR Http will only be punctuated if PunctuateText == true and it will only be filtered if FilterText == true.

image.png

Expected outputs of the project can be seen in the table below:

PunctuateTextFilterTextOutput
truetruerecognized, punctuated, filtered
truefalserecognized, punctuated
falsetruerecognized, filtered
falsefalserecognized

Supported flow types: Stream, Batch


Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.