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

# VAEEncodeAudio - ComfyUI Built-in Node Documentation

> Complete documentation for the VAEEncodeAudio node in ComfyUI. Learn its inputs, outputs, parameters and usage.

VAEEncodeAudio 节点使用变分自编码器（VAE）将音频数据转换为潜在表示。它接收音频输入，并通过 VAE 进行处理，生成压缩的潜在样本，可用于后续的音频生成或处理任务。在编码前，如有必要，节点会自动对音频进行重采样，以匹配 VAE 预期的采样率。

## 输入

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

**注意：** 如果原始音频的采样率与 VAE 预期的采样率（默认值：44100 Hz）不同，音频输入会自动重采样以匹配该值。

## 输出

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

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

***

**Source fingerprint (SHA-256):** `db509ab571154c4cedbfc6cae6591bd2b67b2c6e2261766565cdb0205b2c2ecc`
