godot-psd-training/Communication/voice_communication.tscn
2024-05-15 11:18:41 +08:00

25 lines
851 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
[node name="HTTPRequest" type="HTTPRequest" parent="."]
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]
[connection signal="request_completed" from="HTTPRequest" to="." method="_on_http_request_request_completed"]