@@ -14,6 +14,10 @@ function openVoiceCapture(mode) {
14
14
isVoiceCaptureExample .value = true ;
15
15
}
16
16
17
+ function statusVoiceCapture (value ) {
18
+ isVoiceCaptureExample .value = value;
19
+ }
20
+
17
21
function returnVoiceTranscript (transcript ) {
18
22
voiceTextTranscript .value = transcript;
19
23
}
@@ -25,19 +29,11 @@ function returnVoiceTranscript(transcript) {
25
29
<h2 >Voice Capture Example</h2 >
26
30
<div class =" content-actions" >
27
31
<div class =" example-actions" >
28
- <button
29
- class =" button-voicecapture-example"
30
- type =" button"
31
- @click =" openVoiceCapture('fullscreen')"
32
- >
32
+ <button class =" button-voicecapture-example" type =" button" @click =" openVoiceCapture('fullscreen')" >
33
33
<span class =" material-symbols-outlined" >  ; </span >
34
34
<span class =" material-symbols-outlined" >  ; </span > FullScreen
35
35
</button >
36
- <button
37
- class =" button-voicecapture-example"
38
- type =" button"
39
- @click =" openVoiceCapture('float')"
40
- >
36
+ <button class =" button-voicecapture-example" type =" button" @click =" openVoiceCapture('float')" >
41
37
<span class =" material-symbols-outlined" >  ; </span >
42
38
<span class =" material-symbols-outlined" >  ; </span > Float
43
39
</button >
@@ -62,24 +58,16 @@ function returnVoiceTranscript(transcript) {
62
58
</div >
63
59
</div >
64
60
65
- <VoiceCaptureVue
66
- :start =" isVoiceCaptureExample"
67
- @voiceTranscript =" returnVoiceTranscript"
68
- :lang =" langSelect"
69
- :mode =" modeSelect"
70
- />
61
+ <VoiceCaptureVue :status =" isVoiceCaptureExample" @voiceTranscript =" returnVoiceTranscript"
62
+ @onStatus =" statusVoiceCapture" :lang =" langSelect" :mode =" modeSelect" />
71
63
72
64
<div v-if =" voiceTextTranscript" class =" content" >
73
65
<div class =" input-group" >
74
66
<label for =" voiceTextArea" class =" input-label" >
75
67
<h2 >Transcript Results</h2 >
76
68
</label >
77
- <textarea
78
- id =" voiceTextArea"
79
- class =" input-field textarea"
80
- v-model =" voiceTextTranscript"
81
- placeholder =" Texto do Voice Transcript"
82
- ></textarea >
69
+ <textarea id =" voiceTextArea" class =" input-field textarea" v-model =" voiceTextTranscript"
70
+ placeholder =" Texto do Voice Transcript" ></textarea >
83
71
</div >
84
72
</div >
85
73
</div >
@@ -91,6 +79,7 @@ function returnVoiceTranscript(transcript) {
91
79
width : 50% ;
92
80
display : flex ;
93
81
gap : 20px ;
82
+
94
83
@media (max-width : 800px ) {
95
84
width : 100% ;
96
85
}
@@ -116,6 +105,7 @@ function returnVoiceTranscript(transcript) {
116
105
.material-symbols-outlined {
117
106
margin-right : 0.5rem ;
118
107
}
108
+
119
109
.material-symbols-outlined.plus {
120
110
margin : 0 0.5rem ;
121
111
}
@@ -166,12 +156,15 @@ function returnVoiceTranscript(transcript) {
166
156
.content-actions {
167
157
display : flex ;
168
158
gap : 20px ;
159
+
169
160
button ,
170
161
.language {
171
162
width : 50% ;
172
163
}
164
+
173
165
@media (max-width : 800px ) {
174
166
flex-direction : column;
167
+
175
168
.language {
176
169
width : 100% ;
177
170
}
0 commit comments