> ## Documentation Index
> Fetch the complete documentation index at: https://dripart-matt-router-pricing-pika-and-guard.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# VAEEncodeAudio - ComfyUI Built-in Node Documentation

> VAE Encode Audio 节点使用变分自编码器（VAE）将音频数据转换为潜在表示。

VAE Encode Audio 节点使用变分自编码器（VAE）将音频数据转换为潜在表示。它通过 VAE 处理传入的音频，生成压缩的潜在样本，可用于后续的音频生成或操作任务。如果音频的采样率与 VAE 预期的采样率不同，音频会在编码前自动重采样。

## 输入

| 参数 | 描述 | 数据类型 | 必填 | 范围 |
| - | - | - | - | - |
| `音频` | 要编码的音频数据，包含波形和采样率信息 | AUDIO | 是 | - |
| `vae` | 用于将音频编码到潜在空间的变分自编码器模型 | VAE | 是 | - |

**注意：** 如果原始采样率与 VAE 预期的采样率（默认值：44100 Hz）不同，音频输入会自动重采样以匹配该采样率。如果输入音频为 None（例如，当源视频没有音频轨道时），节点将抛出错误。

## 输出

| 输出名称 | 描述 | 数据类型 |
| - | - | - |
| `LATENT` | 潜在空间中的编码音频表示，包含压缩后的样本 | LATENT |

> 本文档由 AI 生成。如果您发现任何错误或有改进建议，欢迎贡献！ [在 GitHub 上编辑](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/VAEEncodeAudio/zh.md)

***

**Source fingerprint (SHA-256):** `224563af40a377a37209b26ec8becf035560da273b18293634f684e18c5e63ed`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.