--- title: "Batch-To-Stream Audio Merger" slug: "dataflow-nodes-batch-to-stream-audio-merger" updated: 2026-11-03T05:25:23Z published: 2026-11-03T05:25:23Z canonical: "docs.sestek.com/dataflow-nodes-batch-to-stream-audio-merger" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.sestek.com/llms.txt > Use this file to discover all available pages before exploring further. # Batch-To-Stream Audio Merger 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. Supports [Barge-In](/v1/docs/dataflow-nodes-batch-to-stream-audio-merger#bargein) as of *Data Flow 4.1.0*. ## Parameters | name | description | default | | --- | --- | --- | | Stream Input Volume Percentage | Changes the volume of the incoming streaming audio | 100 | ## Inputs ### Audio Accepts Streaming and Batch audio from a single channel. ### Events | name | description | known nodes that generate this event | | --- | --- | --- | | [Start of TTS Fragment](/v1/docs/events#start-of-tts-fragment) /[Start Of Segment](/v1/docs/events#start-of-segment) | Signals the start of a batch audio segment to merge in. | TTS Http, VA Sync, Audio Segmenter | | [Speech Started](/v1/docs/events#speech-started) | Indicates Barge-In. | Vad | | [End of TTS Fragment](/v1/docs/events#end-of-tts-fragment) / [End Of Segment](/v1/docs/events#end-of-segment) | Signals the end of a batch audio segment to merge in. | TTS Http, VA Sync | | [Speech Ended](/v1/docs/events#speech-ended) | Signals the end of Barge-In. | Vad | | [Interruptive Barge In](/v1/docs/events#interruptive-barge-in) | Immediately clears any queued batch audio; if a batch was currently being streamed out, a Merge Audio Ended event tagged `Interrupted` is sent. | Barge In Announcer | | [Start Of TTS Stream](/v1/docs/events#start-of-tts-stream) / [End Of TTS Stream](/v1/docs/events#end-of-tts-stream) | Marks a TTS stream. All TTS fragments with the same group id between these events are merged in as a single batch. | TTS Websocket, TTS ElevenLabs | | [Response Cancellation Update](/v1/docs/events#response-cancellation-update) | When `Data.State` is Cancelled, clears any queued batch audio the same way as Interruptive Barge In. | VA Sync | | [Change Audio Merge Behaviour](/v1/docs/events#change-audio-merge-behaviour) | `Data.State` Paused stops merging and outputs only the streaming audio while the queued batch audio is kept. Merging continues the merge. | VA Sync | ## Outputs ### Audio Streams one-channel audio from the output connection. ### Events | name | description | | --- | --- | | [Merge Audio Started](/v1/docs/events#merge-audio-started) | Signals the start of audio merging. Sent at the start of each batch segment. | | [Merge Audio Ended](/v1/docs/events#merge-audio-ended) | Signals the end of audio merging. Sent at the end of every batch segment. | Both events carry over the `Data.Text` and `Data.Context` fields from the Start Of Segment/Start of TTS Fragment/Start Of TTS Stream event that started the batch. ## 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. Overflow If the merged audio is too loud for the audio format, the node will automatically normalize the output stream. #### Barge-In Barge-In occurs when a the connected VAD node detects speech. If a [Speech Started](/v1/docs/events#speech-started) is received during a merge, the merge stops, and **only the streaming audio source is outputted**. The merging will continue normally **after** a [Speech Ended](/v1/docs/events#speech-ended) event is received. #### Project Structure The figure above, is a basic project that supports simultaneous translation with the Barge-In feature. ### Supported flow types Stream ## Release Notes ****v4.17.0**** - Added TTS Stream Started-Ended support. - Added multiple TTS Websocket node support. - Added Response Cancellation support. ****v4.12.2**** - Now Sends Merge Started-ended events for each segment. ****v4.2.0**** - Added Merge audio started and ended events. ****v4.1.0**** - Added Barge-In support. ****v3.7.0**** - Added Stream Input Volume Percentage as a Parameter. ****v3.4.0**** - Introduced Node.