Up to date

This page is up to date for Godot 4.2. If you still find outdated information, please open an issue.

AudioStreamMicrophone

继承: AudioStream < Resource < RefCounted < Object

播放实时音频输入数据。

描述

当直接在 AudioStreamPlayer 节点中使用时,AudioStreamMicrophone 会实时播放麦克风的输入。这可以配合 AudioEffectCapture 使用,以处理数据或保存数据。

注意:ProjectSettings.audio/driver/enable_input 必须为 true 音频输入才能正常工作。另请参阅该设置的说明,了解与权限和操作系统隐私设置相关的注意事项。

教程