Visit ComfyUI Online for ready-to-use ComfyUI environment
Play sound based on conditions for auditory notifications in workflow.
The PlaySound| PlaySound 🐍
node is designed to play a sound file based on specific conditions, providing an auditory notification system within your workflow. This node is particularly useful for alerting you when certain events occur, such as the completion of a task or when the queue is empty. By integrating this node, you can enhance your workflow with audio cues, ensuring you are promptly informed of important events without needing to constantly monitor your system visually. The node offers flexibility in terms of when the sound is played, the volume level, and the specific sound file used, making it a versatile tool for various notification needs.
This parameter acts as a wildcard string that is always equal in not equal comparisons. It is used internally by the node and does not require any specific input from you.
This parameter determines the condition under which the sound will be played. It has two options: always
and on empty queue
. Selecting always
will play the sound every time the node is executed, while on empty queue
will play the sound only when the queue is empty. This allows you to customize the notification behavior based on your specific needs.
This parameter controls the volume level of the sound playback. It accepts a floating-point value between 0 and 1, with a default value of 0.5. The minimum value is 0, which represents mute, and the maximum value is 1, which represents full volume. Adjusting this parameter allows you to set the sound to a comfortable listening level.
This parameter specifies the sound file to be played. It accepts a string representing the file name, with a default value of notify.mp3
. You can change this to any valid sound file name that is accessible within your system. This flexibility allows you to choose a sound that best suits your notification preferences.
The output parameter any
is a wildcard string that is returned by the node. It serves as a placeholder and is used internally to maintain the node's functionality within the workflow. This output does not require any specific interpretation or action from you.
mode
parameter to always
.mode
parameter to on empty queue
.volume
parameter to a level that is audible but not disruptive to your environment.file
parameter with a sound file that you find pleasant or attention-grabbing.<file_name>
always
or on empty queue
.always
or on empty queue
. These are the only supported values.© Copyright 2024 RunComfy. All Rights Reserved.