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
|
|
|
|
2024-05-15 11:18:41 +08:00
|
|
|
[node name="HTTPRequest" type="HTTPRequest" parent="."]
|
|
|
|
|
2024-05-08 16:56:02 +08:00
|
|
|
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]
|
2024-05-15 11:18:41 +08:00
|
|
|
[connection signal="request_completed" from="HTTPRequest" to="." method="_on_http_request_request_completed"]
|