Save 4 hours! We auto-setup your workflow! Free!

Drop your workflow.json — we handle every dependency, custom node, and model. Just open the link and run.

Auto-Setup Workflow Json (Free) Now!

ComfyUI Node: Play Sound

Class Name

EnhancementUtils_PlaySound

Category
utils
Author
phazei (Account age: 5718days)
Extension
ComfyUI-Enhancement-Utils
Latest Updated
2026-05-24
Github Stars
0.02K

How to Install ComfyUI-Enhancement-Utils

Install this extension via the ComfyUI Manager by searching for ComfyUI-Enhancement-Utils
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-Enhancement-Utils 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 audio notifications for node-based processes.

Play Sound:

The EnhancementUtils_PlaySound node is designed to enhance your workflow by providing audio notifications during the execution of a node-based process. Its primary function is to play a specified audio file when the execution reaches this node, serving as an alert or notification system. This feature is particularly useful in scenarios where you need to be notified of the completion of a task or when a specific event occurs in your workflow. The node operates by triggering audio playback on the client side using the HTML5 Audio API, ensuring seamless integration with your existing setup. By offering configurable playback modes and volume settings, it allows for a tailored user experience, making it an essential tool for maintaining awareness and efficiency in complex workflows.

Play Sound Input Parameters:

any

This parameter acts as a trigger for the sound playback. By connecting any output to this input, you initiate the sound and allow the data to pass through unchanged. It serves as a versatile connection point, ensuring that the node can be integrated into various parts of your workflow without altering the data flow.

mode

The mode parameter determines the conditions under which the sound is played. It offers two options: "always" and "on empty queue". The "always" option ensures that the sound is played every time the node is executed, providing consistent audio feedback. The "on empty queue" option restricts playback to instances when the execution queue is empty, which can be useful for reducing unnecessary notifications. The default setting is "always", allowing for immediate feedback unless otherwise specified.

volume

This parameter controls the playback volume of the audio file, with a range from 0.0 (silent) to 1.0 (full volume). The default value is set at 0.5, providing a balanced audio level that can be adjusted in increments of 0.1 to suit your preferences. By allowing precise volume control, this parameter ensures that the audio notification is neither too intrusive nor too subtle, fitting seamlessly into your working environment.

file

The file parameter specifies the audio file to be played. You can provide either the name of a sound file located in the assets directory or a full URL to an external audio file. The default file is "notify.mp3", a standard notification sound. This flexibility allows you to customize the audio alert to match your personal or project-specific needs, enhancing the overall user experience.

Play Sound Output Parameters:

passthrough

The passthrough output parameter ensures that the data connected to the any input is transmitted unchanged through the node. This feature maintains the integrity of your data flow, allowing the node to function as an audio alert system without disrupting the existing workflow. By preserving the original data, it facilitates seamless integration into complex node-based processes.

Play Sound Usage Tips:

  • To ensure you receive notifications only when necessary, consider using the "on empty queue" mode, which will play the sound only when the execution queue is empty, reducing unnecessary alerts.
  • Adjust the volume parameter to a comfortable level that suits your working environment, ensuring that the audio notification is noticeable without being disruptive.

Play Sound Common Errors and Solutions:

Sound file not found

  • Explanation: This error occurs when the specified audio file cannot be located in the assets directory or the provided URL is incorrect.
  • Solution: Verify that the file name is correct and that the file is located in the specified directory. If using a URL, ensure it is valid and accessible.

Audio playback failure

  • Explanation: This error may arise if the client-side environment does not support the HTML5 Audio API or if there are issues with the audio file format.
  • Solution: Ensure that your browser or client environment supports HTML5 audio playback. Additionally, confirm that the audio file is in a compatible format such as MP3 or WAV.

Play Sound Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-Enhancement-Utils
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.

Play Sound