337 lines
12 KiB
Text
337 lines
12 KiB
Text
[gd_scene load_steps=4 format=3 uid="uid://dvjlkpjvjxn0h"]
|
|
|
|
[ext_resource type="Script" path="res://MicRecord.gd" id="1"]
|
|
|
|
[sub_resource type="AudioStreamMicrophone" id="1"]
|
|
|
|
[sub_resource type="LabelSettings" id="LabelSettings_7vfcs"]
|
|
font_size = 64
|
|
|
|
[node name="Scene" type="Control"]
|
|
layout_mode = 3
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
script = ExtResource("1")
|
|
|
|
[node name="AudioStreamRecord" type="AudioStreamPlayer" parent="."]
|
|
stream = SubResource("1")
|
|
autoplay = true
|
|
bus = &"Record"
|
|
|
|
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
|
|
|
|
[node name="AudioStreamPlayer2" type="AudioStreamPlayer" parent="."]
|
|
|
|
[node name="TabContainer" type="TabContainer" parent="."]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
current_tab = 0
|
|
|
|
[node name="Record" type="VBoxContainer" parent="TabContainer"]
|
|
layout_mode = 2
|
|
metadata/_tab_index = 0
|
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="TabContainer/Record"]
|
|
layout_mode = 2
|
|
|
|
[node name="Status" type="Label" parent="TabContainer/Record/HBoxContainer"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
horizontal_alignment = 1
|
|
|
|
[node name="VSeparator" type="VSeparator" parent="TabContainer/Record/HBoxContainer"]
|
|
self_modulate = Color(1, 1, 1, 0)
|
|
custom_minimum_size = Vector2(20, 0)
|
|
layout_mode = 2
|
|
|
|
[node name="FormatLabel" type="Label" parent="TabContainer/Record/HBoxContainer"]
|
|
layout_mode = 2
|
|
text = "Format:"
|
|
|
|
[node name="FormatOptionButton" type="OptionButton" parent="TabContainer/Record/HBoxContainer"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
selected = 1
|
|
item_count = 3
|
|
popup/item_0/text = "8-bit Uncompressed"
|
|
popup/item_1/text = "16-bit Uncompressed"
|
|
popup/item_1/id = 1
|
|
popup/item_2/text = "IMA ADPCM Compression"
|
|
popup/item_2/id = 2
|
|
|
|
[node name="VSeparator2" type="VSeparator" parent="TabContainer/Record/HBoxContainer"]
|
|
self_modulate = Color(1, 1, 1, 0)
|
|
custom_minimum_size = Vector2(20, 0)
|
|
layout_mode = 2
|
|
|
|
[node name="MixRateLabel" type="Label" parent="TabContainer/Record/HBoxContainer"]
|
|
layout_mode = 2
|
|
text = "Mix rate:"
|
|
|
|
[node name="MixRateOptionButton" type="OptionButton" parent="TabContainer/Record/HBoxContainer"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
selected = 4
|
|
item_count = 6
|
|
popup/item_0/text = "11025 Hz"
|
|
popup/item_1/text = "16000 Hz"
|
|
popup/item_1/id = 1
|
|
popup/item_2/text = "22050 Hz"
|
|
popup/item_2/id = 2
|
|
popup/item_3/text = "32000 Hz"
|
|
popup/item_3/id = 3
|
|
popup/item_4/text = "44100 Hz"
|
|
popup/item_4/id = 4
|
|
popup/item_5/text = "48000 Hz"
|
|
popup/item_5/id = 5
|
|
|
|
[node name="VSeparator3" type="VSeparator" parent="TabContainer/Record/HBoxContainer"]
|
|
self_modulate = Color(1, 1, 1, 0)
|
|
custom_minimum_size = Vector2(20, 0)
|
|
layout_mode = 2
|
|
|
|
[node name="StereoLabel" type="Label" parent="TabContainer/Record/HBoxContainer"]
|
|
layout_mode = 2
|
|
text = "Stereo:"
|
|
|
|
[node name="StereoCheckButton" type="CheckButton" parent="TabContainer/Record/HBoxContainer"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
button_pressed = true
|
|
|
|
[node name="HBoxContainer2" type="HBoxContainer" parent="TabContainer/Record"]
|
|
layout_mode = 2
|
|
|
|
[node name="Label" type="Label" parent="TabContainer/Record/HBoxContainer2"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
text = "World: "
|
|
horizontal_alignment = 2
|
|
vertical_alignment = 1
|
|
|
|
[node name="SoundName" type="LineEdit" parent="TabContainer/Record/HBoxContainer2"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
caret_blink = true
|
|
|
|
[node name="AddWordBTN" type="Button" parent="TabContainer/Record/HBoxContainer2"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
text = "Add Word"
|
|
|
|
[node name="VSeparator" type="VSeparator" parent="TabContainer/Record/HBoxContainer2"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
|
|
[node name="VSeparator2" type="VSeparator" parent="TabContainer/Record/HBoxContainer2"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
|
|
[node name="LoadWords" type="Button" parent="TabContainer/Record/HBoxContainer2"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
text = "Load Words"
|
|
|
|
[node name="Label2" type="Label" parent="TabContainer/Record/HBoxContainer2"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
text = "Save Folder Path: "
|
|
horizontal_alignment = 2
|
|
vertical_alignment = 1
|
|
|
|
[node name="SavePath" type="LineEdit" parent="TabContainer/Record/HBoxContainer2"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
text = "res://records"
|
|
caret_blink = true
|
|
|
|
[node name="HBoxContainer3" type="HBoxContainer" parent="TabContainer/Record"]
|
|
layout_mode = 2
|
|
size_flags_vertical = 3
|
|
|
|
[node name="WordList" type="ItemList" parent="TabContainer/Record/HBoxContainer3"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
size_flags_stretch_ratio = 0.5
|
|
|
|
[node name="Controls" type="VBoxContainer" parent="TabContainer/Record/HBoxContainer3"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
size_flags_stretch_ratio = 2.0
|
|
|
|
[node name="WordName" type="Label" parent="TabContainer/Record/HBoxContainer3/Controls"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
text = "<=="
|
|
label_settings = SubResource("LabelSettings_7vfcs")
|
|
horizontal_alignment = 1
|
|
vertical_alignment = 1
|
|
|
|
[node name="HSeparator" type="HSeparator" parent="TabContainer/Record/HBoxContainer3/Controls"]
|
|
self_modulate = Color(1, 1, 1, 0)
|
|
custom_minimum_size = Vector2(0, 40)
|
|
layout_mode = 2
|
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="TabContainer/Record/HBoxContainer3/Controls"]
|
|
layout_mode = 2
|
|
alignment = 1
|
|
|
|
[node name="RecordButton" type="Button" parent="TabContainer/Record/HBoxContainer3/Controls/HBoxContainer"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
text = "Record"
|
|
|
|
[node name="PlayButton" type="Button" parent="TabContainer/Record/HBoxContainer3/Controls/HBoxContainer"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
disabled = true
|
|
text = "Play"
|
|
|
|
[node name="SaveButton" type="Button" parent="TabContainer/Record/HBoxContainer3/Controls/HBoxContainer"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
disabled = true
|
|
text = "Save"
|
|
|
|
[node name="OpenUserFolderButton" type="Button" parent="TabContainer/Record/HBoxContainer3/Controls/HBoxContainer"]
|
|
layout_mode = 2
|
|
text = "Open User Folder"
|
|
|
|
[node name="HBoxContainer3" type="HBoxContainer" parent="TabContainer/Record/HBoxContainer3/Controls"]
|
|
layout_mode = 2
|
|
alignment = 1
|
|
|
|
[node name="AutoSwitch" type="Button" parent="TabContainer/Record/HBoxContainer3/Controls/HBoxContainer3"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
text = "Start Timer"
|
|
|
|
[node name="Time" type="HSlider" parent="TabContainer/Record/HBoxContainer3/Controls/HBoxContainer3"]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(200, 0)
|
|
layout_mode = 2
|
|
size_flags_vertical = 1
|
|
min_value = 0.5
|
|
max_value = 5.0
|
|
step = 0.25
|
|
value = 1.0
|
|
ticks_on_borders = true
|
|
|
|
[node name="HBoxContainer4" type="HBoxContainer" parent="TabContainer/Record/HBoxContainer3/Controls"]
|
|
layout_mode = 2
|
|
alignment = 1
|
|
|
|
[node name="TTSMode" type="Button" parent="TabContainer/Record/HBoxContainer3/Controls/HBoxContainer4"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
text = "Start TTS"
|
|
|
|
[node name="TTS_Voices" type="OptionButton" parent="TabContainer/Record/HBoxContainer3/Controls/HBoxContainer4"]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(200, 0)
|
|
layout_mode = 2
|
|
|
|
[node name="HSeparator2" type="HSeparator" parent="TabContainer/Record/HBoxContainer3/Controls"]
|
|
self_modulate = Color(1, 1, 1, 0)
|
|
custom_minimum_size = Vector2(0, 40)
|
|
layout_mode = 2
|
|
|
|
[node name="HBoxContainer2" type="HBoxContainer" parent="TabContainer/Record/HBoxContainer3/Controls"]
|
|
layout_mode = 2
|
|
alignment = 2
|
|
|
|
[node name="DeleteButton" type="Button" parent="TabContainer/Record/HBoxContainer3/Controls/HBoxContainer2"]
|
|
layout_mode = 2
|
|
text = "Delete"
|
|
|
|
[node name="PlanText" type="VBoxContainer" parent="TabContainer"]
|
|
visible = false
|
|
layout_mode = 2
|
|
metadata/_tab_index = 1
|
|
|
|
[node name="HBoxContainer2" type="HBoxContainer" parent="TabContainer/PlanText"]
|
|
layout_mode = 2
|
|
|
|
[node name="VSeparator" type="VSeparator" parent="TabContainer/PlanText/HBoxContainer2"]
|
|
self_modulate = Color(1, 1, 1, 0)
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
|
|
[node name="PlayTextBTN" type="Button" parent="TabContainer/PlanText/HBoxContainer2"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
text = "Play Text"
|
|
|
|
[node name="VSeparator2" type="VSeparator" parent="TabContainer/PlanText/HBoxContainer2"]
|
|
self_modulate = Color(1, 1, 1, 0)
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
size_flags_stretch_ratio = 0.7
|
|
|
|
[node name="AddWordsBTN" type="Button" parent="TabContainer/PlanText/HBoxContainer2"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
text = "Add Words"
|
|
|
|
[node name="LoadTextBTN" type="Button" parent="TabContainer/PlanText/HBoxContainer2"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
text = "Load Text"
|
|
|
|
[node name="Label2" type="Label" parent="TabContainer/PlanText/HBoxContainer2"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
text = "Text File Path: "
|
|
horizontal_alignment = 2
|
|
vertical_alignment = 1
|
|
|
|
[node name="WordsTXTPath" type="LineEdit" parent="TabContainer/PlanText/HBoxContainer2"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
size_flags_stretch_ratio = 1.5
|
|
text = "res://records/phrases.txt"
|
|
caret_blink = true
|
|
|
|
[node name="VSeparator3" type="VSeparator" parent="TabContainer/PlanText/HBoxContainer2"]
|
|
self_modulate = Color(1, 1, 1, 0)
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
|
|
[node name="HBoxContainer3" type="HBoxContainer" parent="TabContainer/PlanText"]
|
|
layout_mode = 2
|
|
size_flags_vertical = 3
|
|
|
|
[node name="TextWordsEdit" type="TextEdit" parent="TabContainer/PlanText/HBoxContainer3"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
placeholder_text = "Text to read load worlds"
|
|
|
|
[connection signal="item_selected" from="TabContainer/Record/HBoxContainer/FormatOptionButton" to="." method="_on_format_option_button_item_selected"]
|
|
[connection signal="item_selected" from="TabContainer/Record/HBoxContainer/MixRateOptionButton" to="." method="_on_mix_rate_option_button_item_selected"]
|
|
[connection signal="toggled" from="TabContainer/Record/HBoxContainer/StereoCheckButton" to="." method="_on_stereo_check_button_toggled"]
|
|
[connection signal="pressed" from="TabContainer/Record/HBoxContainer2/AddWordBTN" to="." method="_on_add_word_btn_pressed"]
|
|
[connection signal="pressed" from="TabContainer/Record/HBoxContainer2/LoadWords" to="." method="_on_load_words_pressed"]
|
|
[connection signal="item_selected" from="TabContainer/Record/HBoxContainer3/WordList" to="." method="_on_item_list_item_selected"]
|
|
[connection signal="pressed" from="TabContainer/Record/HBoxContainer3/Controls/HBoxContainer/RecordButton" to="." method="_on_record_button_pressed"]
|
|
[connection signal="pressed" from="TabContainer/Record/HBoxContainer3/Controls/HBoxContainer/PlayButton" to="." method="_on_play_button_pressed"]
|
|
[connection signal="pressed" from="TabContainer/Record/HBoxContainer3/Controls/HBoxContainer/SaveButton" to="." method="_on_save_button_pressed"]
|
|
[connection signal="pressed" from="TabContainer/Record/HBoxContainer3/Controls/HBoxContainer/OpenUserFolderButton" to="." method="_on_open_user_folder_button_pressed"]
|
|
[connection signal="pressed" from="TabContainer/Record/HBoxContainer3/Controls/HBoxContainer3/AutoSwitch" to="." method="_on_auto_switch_pressed"]
|
|
[connection signal="pressed" from="TabContainer/Record/HBoxContainer3/Controls/HBoxContainer4/TTSMode" to="." method="_on_tts_mode_pressed"]
|
|
[connection signal="pressed" from="TabContainer/Record/HBoxContainer3/Controls/HBoxContainer2/DeleteButton" to="." method="_on_delete_button_pressed"]
|
|
[connection signal="pressed" from="TabContainer/PlanText/HBoxContainer2/PlayTextBTN" to="." method="_on_play_text_btn_pressed"]
|
|
[connection signal="pressed" from="TabContainer/PlanText/HBoxContainer2/AddWordsBTN" to="." method="_on_add_words_btn_pressed"]
|
|
[connection signal="pressed" from="TabContainer/PlanText/HBoxContainer2/LoadTextBTN" to="." method="_on_load_text_btn_pressed"]
|