-
Notifications
You must be signed in to change notification settings - Fork 3
/
ttsdatasetrecorder.kv
99 lines (98 loc) · 2.58 KB
/
ttsdatasetrecorder.kv
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
#:kivy 1.11.1
<TTSDatasetRecorderWidget>:
Label:
id: SentenceLabel
font_size: 60
top: root.top * .75
text: root.sentence
width: root.width
padding_x: 20
text_size: root.width, None
#size: self.texture_size
halign: "center"
TextInput:
id: SentenceTextInput
font_size: 60
top: root.top * .75
text: root.sentence
width: 0
padding_x: 20
text_size: root.width, None
halign: "center"
opacity: 0.
Button:
id: EditTextButton
font_size: 20
center_x: root.width / 2
center_y: root.top * .35
height: root.top * .05
text: root.edit_text_button_text
on_release: root.toggle_text_input()
Label:
font_size: 20
center_x: root.width * .5
center_y: root.top * .3
height: root.top * .05
text: root.recording_indicator
Button:
id: record_button
font_size: 20
center_x: root.width / 2
center_y: root.top * .25
height: root.top * .05
text: "Record"
on_release: root.record_button()
Label:
font_size: 20
center_x: root.width * .8
center_y: root.top * .1
height: 40
width: 30
text: root.progress_label
Label:
font_size: 20
center_x: root.width * .1
center_y: root.top * .1
height: 40
width: 30
text: "Go to sentence:"
TextInput:
id: goto_text_input
font_size: 20
center_x: (root.width * .1) + 120
center_y: root.top * .1
height: 40
width: 60
multiline: False
text: root.progress_goto
input_type: "number"
on_text_validate: root.on_goto_line_text_enter(self.text)
Button:
center_x: root.width *.1
center_y: root.top *.1 + 60
height: 50
width: 120
text: "Prev"
on_release: root.prev_button()
Button:
center_x: root.width *.1 + 150
center_y: root.top *.1 + 60
height: 50
width: 120
text: "Next"
on_release: root.load_next_sentence()
Slider:
id: reading_speed_slider
min: 50
max: 200
step: 25
orientation: 'horizontal'
center_x: root.width * .5
center_y: root.height * .1
on_value: root.change_reading_speed(self.value)
value: root.reading_speed
Label:
font_size: 20
center_x: root.width * .5
center_y: root.height * .05
text: root.reading_speed_text