ComfyUI Node: Play Sound

Class Name

Notif-PlaySound

Category
notifications
Author
royceschultz (Account age: 3194days)
Extension
ComfyUI-Notifications
Latest Updated
2025-07-07
Github Stars
0.03K

How to Install ComfyUI-Notifications

Install this extension via the ComfyUI Manager by searching for ComfyUI-Notifications
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-Notifications in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Play Sound Description

Enhance workflow with auditory notifications for specific events, customizable sound files and volume control.

Play Sound:

The Notif-PlaySound node is designed to enhance your workflow by providing auditory notifications. This node plays a sound file to alert you of specific events or conditions, such as when a task is completed or when the queue is empty. By integrating sound notifications into your system, you can stay informed of important updates without needing to constantly monitor your screen. This feature is particularly beneficial in environments where visual cues might be missed or when multitasking. The node is versatile, allowing you to customize the sound file and adjust the volume to suit your preferences, ensuring that notifications are both noticeable and non-intrusive.

Play Sound Input Parameters:

any

This parameter accepts any type of input, serving as a placeholder to ensure the node can be integrated into various workflows without specific input constraints. It does not directly affect the node's execution but allows for flexible connectivity within a node-based system.

mode

The mode parameter determines when the sound notification should be triggered. It offers two options: "always" and "on empty queue." Selecting "always" will play the sound whenever the node is executed, while "on empty queue" will only trigger the sound when the task queue is empty. This allows you to tailor notifications to your specific needs, ensuring you are alerted at the most appropriate times.

volume

The volume parameter controls the loudness of the sound notification. It is a floating-point value ranging from 0 to 1, where 0 is completely silent and 1 is the maximum volume. The default value is set to 0.5, providing a balanced sound level that is noticeable without being disruptive. Adjusting this parameter allows you to customize the notification's audibility to match your environment and personal preference.

file

The file parameter specifies the sound file to be played as a notification. It accepts a string input representing the file name, with a default value of "notify.mp3." This allows you to choose a specific sound that best suits your notification needs, whether it's a subtle chime or a more attention-grabbing alert.

Play Sound Output Parameters:

ui

The ui output parameter provides an empty dictionary with a key "a" containing an empty list. This output is primarily used for UI integration purposes, allowing the node to be part of a larger system without producing a direct result.

result

The result output parameter returns a tuple with a single integer value of 0. This output serves as a placeholder to indicate the node's execution status, confirming that the sound notification process has been completed.

Play Sound Usage Tips:

  • Customize the file parameter to use a sound that is easily recognizable and suits your notification needs, ensuring you don't miss important alerts.
  • Adjust the volume parameter to a level that is audible in your working environment without being disruptive, especially if you are working in a shared space.

Play Sound Common Errors and Solutions:

FileNotFoundError

  • Explanation: This error occurs when the specified sound file cannot be found in the directory.
  • Solution: Ensure that the file name in the file parameter is correct and that the file is located in the expected directory.

InvalidVolumeError

  • Explanation: This error arises when the volume parameter is set outside the allowed range of 0 to 1.
  • Solution: Adjust the volume parameter to a value within the specified range, ensuring it is a floating-point number between 0 and 1.

Play Sound Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-Notifications
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.