Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
AudioStreamMicrophone
继承: AudioStream < Resource < RefCounted < Object
播放实时音频输入数据。
描述
当直接在 AudioStreamPlayer 节点中使用时,AudioStreamMicrophone 会实时播放麦克风的输入。这可以配合 AudioEffectCapture 使用,以处理数据或保存数据。
注意:ProjectSettings.audio/driver/enable_input 必须为 true
音频输入才能正常工作。另见该设置的说明,了解与权限和操作系统隐私设置相关的注意事项。