godot_experiments/voice_conversation.gd
2024-04-12 16:56:06 +08:00

11 lines
253 B
GDScript

extends Node
var effect: AudioEffectRecord
# Called when the node enters the scene tree for the first time.
func _ready():
var idx = AudioServer.get_bus_index("Record")
effect = AudioServer.get_bus_effect(idx, 0)
effect.set_recording_active(true)