The SpeedChange node is a component within the ComfyUI LLM Party extension that allows users to adjust the speed of audio files. This node is particularly useful for altering the playback speed of audio content in various interactive and automation processes. It is capable of processing audio by accelerating or decelerating its tempo without affecting the pitch, making it suitable for applications such as slow-motion effects, fast-paced summaries, or syncing audio with video tracks.
The SpeedChange node modifies the playback speed of an input audio file. Users can specify a speed factor to increase or decrease the speed of the audio. The result is a new audio file with an adjusted tempo while maintaining the original pitch.
The SpeedChange node accepts the following inputs:
Input Audio Path: The file path of the audio file that needs its speed adjusted. This should be a valid path to an existing audio file in a format supported by the tool.
Output Folder Path: The directory where the processed audio file will be saved. This should be a valid path where the user has write access.
Speed Factor: A floating-point number representing the factor by which the speed should be adjusted. A value greater than 1.0 speeds up the audio, while a value less than 1.0 slows it down. The default value is 1.0, meaning no change in speed.
Is Enable: A boolean value that determines whether the speed change process should be executed. Setting this to True
enables the process, while False
bypasses it.
Suffix: A string that will be appended to the processed audio file's name to differentiate it from the original. The default value is "_processed".
The SpeedChange node produces the following outputs:
Audio: A dictionary object containing the waveform and sample rate of the processed audio. This waveform can be used further in workflows that require audio processing.
Audio Path: The file path of the newly created audio file with the speed adjustment applied. This file is saved in the specified output directory.
In ComfyUI, the SpeedChange node can be integrated into larger workflows that require dynamic audio manipulation. It can be used in various scenarios such as:
The node can be connected to other nodes that handle file input, file output, or further audio processing within the ComfyUI environment, offering flexibility in designing customized workflows.
By effectively introducing an easy-to-use interface for audio speed manipulation, the SpeedChange node enriches the tools available in ComfyUI for media creators and developers.