Microphone
Description
The Microphone node captures audio from a microphone and transcribes it to text using OpenAI's Whisper model (running locally). It is the primary input method for voice-driven workflows: dictation, voice commands, interactive chatbots, or any scenario where spoken input needs to be converted to text for downstream processing.
It supports two recording modes:
- Auto mode: Automatically starts recording when voice is detected above a threshold, and stops after a period of silence.
- Push-to-Talk mode: Manual control — click once to start recording, click again to stop.
The node blocks execution during recording (it waits for audio input), so it is typically placed at the beginning of a workflow as a source node.
Configuration Properties
🎤 Devices Section
ComboBox
Selects the audio input device (microphone) from the list of devices detected on your system. The list is populated at runtime with all available recording devices (e.g., "Microphone (G432 Gaming Headset)", "Realtek High Definition Audio", etc.).
💡 Tip: If your microphone is not listed, ensure it is connected and enabled in Windows Sound Settings before launching TzuFlow.
📊 Silence Threshold Section
Slider (default: 0.022)
Sets the RMS (Root Mean Square) amplitude threshold for voice detection in Auto mode. Values range from 0.0 (very sensitive, picks up background noise) to 1.0 (only very loud sounds).
- Lower values (0.01–0.03): Sensitive, suitable for quiet environments. May trigger on background noise.
- Higher values (0.05–0.10): Less sensitive, requires louder speech. Better for noisy environments.
The current threshold value is displayed in the node's subtitle (e.g., "Min: 0.022").
📈 Vu Meter Section
Progress Bar
A visual indicator showing the real-time audio level during recording. It reflects the current RMS amplitude of the microphone input. This is read-only — it does not affect behavior, only provides visual feedback to help you calibrate the Silence Threshold.
💡 Tip: Use the Vu Meter to find the right threshold: speak normally and observe the level, then set the threshold just below your typical speaking volume.
⏱️ Time Out Section
NumericUpDown (default: 15 seconds)
Maximum recording duration in seconds. If the recording does not stop naturally (via silence detection or manual stop), it will be forcefully terminated after this timeout. This is a safety mechanism to prevent the workflow from hanging indefinitely if the microphone fails to detect silence.
🤫 Silence Duration Section
NumericUpDown (default: 2000 ms)
The duration of silence (in milliseconds) required to automatically stop recording in Auto mode. After the last detected voice activity, if the audio level stays below the Silence Threshold for this duration, recording stops and transcription begins.
- Shorter values (500–1000 ms): Stops quickly after you finish speaking. May cut off if you pause mid-sentence.
- Longer values (2000–3000 ms): Waits longer before stopping. Better for natural speech with pauses, but adds latency.
Voices Section (Left)
ComboBox (default: auto)
Selects the language for Whisper transcription. Options typically include:
auto: Whisper automatically detects the language (recommended for multilingual use).fr: Frenchen: Englishes: Spanishde: German- etc.
Forcing a specific language can improve accuracy and speed if you know the input language in advance.
🔒 Voices Section (Right)
CheckBox: Use Input as trigger
When checked, the node gains an input anchor and changes its execution behavior:
- Unchecked (default): The node is a source node — it starts listening immediately when the workflow begins.
- Checked: The node waits for a signal on its input anchor before starting to listen. The content of the input is ignored; it only serves as a trigger to control execution order.
This is useful when you need to sequence the microphone after another node (e.g., a text-to-speech node that asks a question, then the microphone listens for the answer).
Node Buttons (Runtime)
The Microphone node displays two buttons on the canvas during execution:
Auto Button (left, with microphone icon)
- Default state: OFF (red circle with slash).
- Click to toggle: Enables Auto mode. When active, the node automatically starts recording when voice is detected above the Silence Threshold, and stops after the Silence Duration of silence.
- Behavior: Can be activated before or during workflow execution. Once enabled, it remains active until clicked again or the workflow stops.
Push-to-Talk Button (right, with microphone icon)
- Default state: OFF.
- Click to toggle: Enables manual recording mode. Click once to start recording, click again to stop.
- Behavior: Only clickable when the node is active (during workflow execution). This prevents accidental recording when the workflow is idle.
⚠️ Note: Only one mode can be active at a time. Enabling Auto disables Push-to-Talk and vice versa.
Usage Example
"Voice dictation to file":
- A Microphone node with:
- Device: Your microphone
- Silence Threshold:
0.025 - Silence Duration:
1500ms - Time Out:
30seconds - Voices:
auto
- Click the Auto button to enable voice detection.
- Start the workflow (or the node starts automatically as a source).
- Speak into the microphone. Recording starts when you speak, stops after 1.5 seconds of silence.
- A File Write node saves the transcribed text to
dictation.txt.
"Interactive voice chatbot":
- An Agent node generates a question (text-to-speech via Orpheus).
- A Microphone node with Use Input as trigger checked, connected to the Agent's output.
- The microphone waits for the TTS to finish (trigger signal), then listens for the user's response.
- The transcribed response is sent back to the Agent for the next turn.
⚠️ Pitfalls to Avoid
Whisper model required: The node requires the Whisper model file (ggml-base.bin) to be present in the Datas folder relative to the executable. If the file is missing, transcription will fail. Download it from the Hugging Face repository or the link provided in TzuFlow's documentation.
Blocking execution: The node blocks the workflow thread while recording (waiting for audio input or silence). If you set a long Time Out (e.g., 60 seconds) and nobody speaks, the workflow will hang for that duration. Use reasonable timeouts (10–30 seconds) for interactive scenarios.
Auto mode sensitivity: If the Silence Threshold is too low, background noise (fan, keyboard, ambient sound) may trigger recording continuously. If it's too high, you'll need to shout to activate it. Use the Vu Meter to calibrate.
Push-to-Talk only during execution: The Push-to-Talk button is disabled when the workflow is not running. If you want to test it, you must start the workflow first. Auto mode can be enabled beforehand.
Use Input as trigger + no input: If you enable Use Input as trigger but nothing is connected to the input anchor, the node will wait forever for a signal that never comes. Always ensure a valid trigger source is connected.
Audio device changes: If you disconnect/reconnect your microphone while TzuFlow is running, the device list may not refresh automatically. Restart the application to detect new devices.
Transcription accuracy: Whisper's accuracy depends on audio quality, background noise, and language. For best results, use a good microphone, speak clearly, and set the Silence Duration long enough to capture complete sentences.
No real-time transcription: The node transcribes the audio after recording stops, not during. You will not see partial results while speaking. The full transcription is sent downstream once recording is complete.