AudioWriter¶
sink extra: audio-writer
Append the audio of every received message to one 16-bit mono WAV file in the node folder.
- Node type:
AudioWriter- Input:
AudioPayload- Output:
–
- Extra:
audio-writer
$ pip install "juturna-nodes[audio-writer]"
The node README describes the input message, the file the node writes, and the license of the node.
Arguments¶
Argument |
Type |
Default |
Description |
|---|---|---|---|
|
|
|
Name of the WAV file in the node folder |
Input message¶
Field |
Use |
|---|---|
|
Mono |
|
A message with more than one channel is dropped, with an error in the log |
|
Required. A message with a rate different from the first one is dropped, with an error in the log |
meta is not read. SynthesizerSherpa and AudioFile produce this format.
Output message¶
The node does not transmit messages.
License¶
Code: this node is part of juturna-nodes, MIT (its
LICENSEfile).NumPy: BSD-3-Clause AND 0BSD AND MIT AND Zlib AND CC0-1.0 (the
License-Expressionof numpy on PyPI).
Pipeline usage¶
{
"name": "speaker",
"type": "AudioWriter",
"configuration": { "file_name": "answer.wav" }
}
Configuration¶
Default node arguments, as defined in the node config.toml file. Any of
them can be overridden in the node configuration of a pipeline.
[arguments]
file_name = "output.wav"
[meta]
Reference¶
- class AudioWriter(file_name: str, **kwargs)
Write incoming audio to a 16-bit mono WAV file