Binary Data
  • 16 Nov 2023
  • 1 Minute to read
  • Contributors
  • PDF

Binary Data

  • PDF

Article summary

Binary messages are what Data Flow use for transferring binary data (e.g. audio) to and from Data Flow servers. Nodes also receive/send binary messages between each other.

When a node wants to send binary data it sends that as a binary message, who will receive that binary message is determined by that node's outlet connections.

Assume node-A sends binary-A.

  • If node-A outlet is connected to node-B, then node-B receives binary-A as input. At that point it is up to node-B to determine what to do with binary-A, it can take some action upon it or just ignore it.
  • If node-A outlet is connected to the Publisher node, then binary-A is sent to the other side of the connection, ie. the client receives this binary message.

In Data Flow most of the binary messages are currently audio messages.
See audio for details:

Audio

While clients send their audio to Data Flow servers for speech analysis, Data Flow servers also send audio data to clients in case of Text To Speech (TTS) etc.

Caveats

  • When a client is sending multichannel audio (stereo), the samples must be interleaved ie. one sample per channel should follow each other.

  • When a client is sending audio, it should not cut samples in half. Assuming 16bits(2 bytes) per sample

    • mono: client binary array's byte count should be a multiple of 2.

    • stereo : client binary array's byte count should be a multiple of 4.


Was this article helpful?

What's Next
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.