main
html 102 lines 3.62 KB
Raw
1 <html>
2 <head>
3 <title>Whisper STT</title>
4 </head>
5
6 <body>
7 <div x-data>
8 <template x-if="config">
9 <div class="plugin-config-page">
10 <div class="section-title">Whisper STT</div>
11 <div class="section-description">
12 Configure the built-in Whisper speech-to-text provider. Browser microphone
13 device selection stays local to the Web UI and is managed from the plugin status panel.
14 </div>
15
16 <div class="field">
17 <div class="field-label">
18 <div class="field-title">Model Size</div>
19 <div class="field-description">
20 Whisper model variant loaded by the backend runtime.
21 </div>
22 </div>
23 <div class="field-control">
24 <select x-model="config.model_size">
25 <option value="tiny">Tiny</option>
26 <option value="base">Base</option>
27 <option value="small">Small</option>
28 <option value="medium">Medium</option>
29 <option value="large">Large</option>
30 <option value="turbo">Turbo</option>
31 </select>
32 </div>
33 </div>
34
35 <div class="field">
36 <div class="field-label">
37 <div class="field-title">Language</div>
38 <div class="field-description">
39 Language hint forwarded to Whisper. Use <code>auto</code> to let Whisper detect it.
40 </div>
41 </div>
42 <div class="field-control">
43 <input type="text" x-model="config.language" placeholder="en" />
44 </div>
45 </div>
46
47 <div class="field">
48 <div class="field-label">
49 <div class="field-title">Voice Message Handling</div>
50 <div class="field-description">
51 Choose whether final transcriptions are sent immediately or left in the composer for review.
52 </div>
53 </div>
54 <div class="field-control">
55 <select x-model="config.message_mode">
56 <option value="send">Send immediately</option>
57 <option value="draft">Draft in composer</option>
58 </select>
59 </div>
60 </div>
61
62 <div class="field">
63 <div class="field-label">
64 <div class="field-title">Silence Threshold</div>
65 <div class="field-description">
66 Minimum detected signal before voice input switches from listening to recording.
67 </div>
68 </div>
69 <div class="field-control">
70 <input type="range" min="0" max="1" step="0.01" x-model.number="config.silence_threshold" />
71 <span class="range-value" x-text="config.silence_threshold"></span>
72 </div>
73 </div>
74
75 <div class="field">
76 <div class="field-label">
77 <div class="field-title">Silence Duration</div>
78 <div class="field-description">
79 Milliseconds of silence required before the recording enters the waiting phase.
80 </div>
81 </div>
82 <div class="field-control">
83 <input type="number" min="100" step="100" x-model.number="config.silence_duration" />
84 </div>
85 </div>
86
87 <div class="field">
88 <div class="field-label">
89 <div class="field-title">Waiting Timeout</div>
90 <div class="field-description">
91 Milliseconds to wait after silence before audio is sent for transcription.
92 </div>
93 </div>
94 <div class="field-control">
95 <input type="number" min="100" step="100" x-model.number="config.waiting_timeout" />
96 </div>
97 </div>
98 </div>
99 </template>
100 </div>
101 </body>
102 </html>