godot-psd-training/Communication/voice_communication.tscn
2024-05-11 20:06:02 +08:00

22 lines
684 B
Plaintext

[gd_scene load_steps=3 format=3 uid="uid://6lortgihx5jy"]
[ext_resource type="Script" path="res://Communication/voice_communication.gd" id="1_73l6l"]
[sub_resource type="AudioStreamMicrophone" id="AudioStreamMicrophone_e60f1"]
[node name="VoiceCommunication" type="Node"]
script = ExtResource("1_73l6l")
[node name="AudioStreamRecord" type="AudioStreamPlayer" parent="."]
stream = SubResource("AudioStreamMicrophone_e60f1")
autoplay = true
bus = &"Record"
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
autoplay = true
[node name="Timer" type="Timer" parent="."]
wait_time = 0.2
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]