Batch-To-Stream Audio Merger
  • 30 Apr 2025
  • 1 Minute to read
  • Contributors
  • PDF

Batch-To-Stream Audio Merger

  • PDF

Article summary

This node merges two incoming audio together and outputs it as a stream. For the node to work correctly, it needs to be used in a streaming project.

Parameters

name
description
default
Stream Input Volume PercentageChanges the volume of the incoming streaming audio100

Inputs

Audio

Accepts Streaming and Batch audio from a single channel.

Events

namedescriptionknown nodes that generate this event
Start of TTS FragmentSignals the start of a TTS segment.TTS Http
Speech StartedSignals the start of speech in realtime.Vad
End of TTS FragmentSignals the start of a TTS segment.TTS Http
Speech EndedSignals the end of speech in realtime.Vad

Outputs

Audio

Streams one-channel audio from the output connection.

Events

None

Remarks

Working Principle

  • The node outputs the streaming audio instantaneously no matter what.
  • Whenever an audio batch is received from a TTS node or a VAD node, the audio batch will be kept in a queue.
  • If the batch audio queue is empty, the output stream is the same as the input.
  • If the batch audio queue is not empty, the incoming streaming audio will be merged with the first audio in queue and streamed in the incoming rate.

Untitled video - Made with Clipchamp 2.gif

Overflow

If the merged audio is too loud for the audio format, the node will automatically normalize the output stream.

Supported flow types

Stream

Release Notes

v3.7.0
  • Added Stream Input Volume Percentage as a Parameter.
v3.4.0
  • Introduced Node.

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.