The PlaySound node in the ComfyUI-Custom-Scripts repository allows for the playback of a sound when it is executed within a ComfyUI workflow. This feature can be useful for providing audible feedback during workflow execution, especially when processing multiple prompts.
The PlaySound node offers a customizable approach to sound notifications. Users can specify conditions under which the sound should play and can adjust the sound's volume and file.
The PlaySound node requires the following inputs:
Mode: Specifies when the sound should be played. Options include:
Volume: Defines the playback volume of the sound. It accepts a float value ranging from 0 (mute) to 1 (full volume). The default value is set to 0.5.
File: Indicates the sound file to be played. The default is notify.mp3
, which can be replaced by the user with a file of their choice located in the specified directory.
The PlaySound node does not produce traditional outputs in the context of data. Instead, it returns a general wildcard output, allowing it to be integrated into various parts of a ComfyUI workflow without specific output constraints.
The PlaySound node can be incorporated into workflows to:
To integrate the PlaySound node, simply add it to the desired point in your workflow pipeline and configure its inputs according to your notification preferences.
Custom Sound: You can replace the default notify.mp3
sound with any .mp3
file of your choice. Ensure the file is located in the specified directory for the node to access it.
Flexibility: By setting the mode, you can control whether the sound should play on each execution or only once all queued tasks are complete, giving flexibility for different use cases.
Simple Integration: The node requires minimal configuration, making it easy for users to add sound notifications without complex setup.
While the PlaySound node is designed for convenience, ensure that the sound file’s path and volume settings are correctly configured for optimal functionality.