2024-04-16 10:10:18 +08:00
|
|
|
[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")
|
2024-05-08 16:56:02 +08:00
|
|
|
autoplay = true
|
2024-04-16 10:10:18 +08:00
|
|
|
bus = &"Record"
|
|
|
|
|
|
|
|
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
|
2024-05-08 16:56:02 +08:00
|
|
|
autoplay = true
|
|
|
|
|
|
|
|
[node name="Timer" type="Timer" parent="."]
|
2024-05-09 20:05:07 +08:00
|
|
|
wait_time = 0.2
|
2024-05-08 16:56:02 +08:00
|
|
|
autostart = true
|
|
|
|
|
|
|
|
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]
|