> ## Documentation Index
> Fetch the complete documentation index at: https://docs.comfy.org/llms.txt
> Use this file to discover all available pages before exploring further.

# GetAudioLatentSize - ComfyUI Built-in Node Documentation

> 读取音频 latent 并返回其长度、音频通道数和批次大小，这样无需解码音频即可复用这些值。

读取音频 latent 并返回其长度、音频通道数和批次大小，这样无需解码音频即可复用这些值。可使用它在采样前调整噪声遮罩的尺寸，或匹配音频与视频的长度。测量得到的值也会打印在节点本身上。

## 输入

| 参数 | 描述 | 数据类型 | 是否必需 | 范围 |
| - | - | - | - | - |
| `latent` | 要检查的音频或音频/视频 latent。当 latent 包含多个流时，会测量音频流。 | LATENT | 是 | - |

## 输出

| 输出名称 | 描述 | 数据类型 |
| - | - | - |
| `length` | 音频 latent 的长度，以 latent 单元而非音频采样数计。 | INT |
| `audio_channels` | 音频通道数。没有音频通道维度的 latent 会报告为一个通道。 | INT |
| `batch_size` | 批次中 latent 的数量。 | INT |

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

***

**Source fingerprint (SHA-256):** `82bac0636a070d14a8845c3f4a5e73359c1d943ce223be3b93212ef25d44b1a8`


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