godot_experiments/voice_conversation.gd

11 lines
253 B
GDScript3
Raw Normal View History

2024-04-12 16:56:06 +08:00
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)