ComfyUI > Nodes > ComfyUI Fictiverse Nodes > WaveformDevice

ComfyUI Node: WaveformDevice

Class Name

WaveformDevice

Category
Fictiverse/Audio
Author
Fictiverse (Account age: 1343days)
Extension
ComfyUI Fictiverse Nodes
Latest Updated
2026-04-26
Github Stars
0.02K

How to Install ComfyUI Fictiverse Nodes

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

WaveformDevice Description

Facilitates audio data transfer between CPU/GPU, optimizing resource allocation for processing.

WaveformDevice:

The WaveformDevice node is designed to facilitate the seamless transfer of audio data between CPU and GPU environments, optimizing computational resources for audio processing tasks. This node is particularly beneficial for AI artists and developers working with audio data in environments where computational efficiency is crucial. By allowing you to switch the processing of audio waveforms to either the CPU or GPU, the node provides flexibility in managing resource allocation based on the available hardware capabilities. This can significantly enhance performance, especially when dealing with large audio datasets or complex audio processing tasks. The primary function of the node is to convert the audio data, specifically the waveform tensor, to the desired processing unit, ensuring that the audio processing pipeline can leverage the full potential of the hardware in use.

WaveformDevice Input Parameters:

audio

The audio parameter is a dictionary that contains the audio data to be processed. It must include a waveform, which is a PyTorch tensor representing the audio signal, and a sample_rate, which indicates the number of samples per second in the audio. This parameter is crucial as it provides the raw audio data that will be transferred between the CPU and GPU. The waveform tensor should be correctly formatted and compatible with PyTorch operations to ensure smooth processing.

switch_to

The switch_to parameter is a boolean that determines the target processing unit for the audio data. When set to True, the audio waveform is transferred to the GPU (CUDA), leveraging the GPU's parallel processing capabilities for faster computation. Conversely, when set to False, the audio remains on the CPU, which might be preferable for systems without a compatible GPU or for tasks that do not require intensive computation. The default value is False, meaning the audio will be processed on the CPU unless specified otherwise.

WaveformDevice Output Parameters:

audio

The output audio parameter is a dictionary similar to the input, containing the waveform and sample_rate. The key difference is that the waveform tensor is now located on the specified processing unit (CPU or GPU) as determined by the switch_to parameter. This output is essential for subsequent audio processing tasks, as it ensures that the audio data is readily available on the desired hardware, allowing for efficient continuation of the audio processing pipeline.

WaveformDevice Usage Tips:

  • Ensure that your system has a compatible GPU with CUDA support if you intend to switch the audio processing to the GPU. This will maximize the performance benefits of using the GPU for audio tasks.
  • Use the switch_to parameter strategically based on the complexity of your audio processing tasks and the available hardware. For simple tasks or systems without a GPU, keeping the processing on the CPU might be more efficient.

WaveformDevice Common Errors and Solutions:

L'entrée 'audio' doit être un dict ComfyUI avec 'waveform' et 'sample_rate'

  • Explanation: This error occurs when the input audio parameter is not a dictionary or does not contain the required waveform and sample_rate keys.
  • Solution: Ensure that the input audio is a properly formatted dictionary with both waveform and sample_rate included.

'waveform' doit être un tenseur PyTorch

  • Explanation: This error indicates that the waveform within the audio dictionary is not a PyTorch tensor, which is necessary for processing.
  • Solution: Convert the waveform to a PyTorch tensor before passing it to the node to ensure compatibility with the processing functions.

WaveformDevice Related Nodes

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