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

# VAEEncodeAudio - ComfyUI Built-in Node Documentation

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

VAEEncodeAudio 节点使用变分自编码器（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`
