-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
107 lines (101 loc) · 4.14 KB
/
Copy pathindex.html
File metadata and controls
107 lines (101 loc) · 4.14 KB
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
100
101
102
103
104
105
106
107
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Whisper</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<main class="shell">
<header class="topbar">
<div>
<h1>Whisper</h1>
<p>Desktop recorder and transcriber. v0.1.2</p>
</div>
<button id="settingsButton" class="ghost-button" type="button">Settings</button>
</header>
<section id="settingsPanel" class="settings-panel hidden">
<div class="setting-row">
<label for="apiKeyInput">API key</label>
<div class="input-row">
<input id="apiKeyInput" type="password" autocomplete="off" placeholder="OpenAI API key">
<button id="saveApiKeyButton" type="button">Save</button>
</div>
</div>
<div class="setting-row">
<label>Save folder</label>
<div class="folder-row">
<div id="saveRootText" class="folder-path">Loading...</div>
<button id="chooseFolderButton" type="button">Choose</button>
<button id="openFolderButton" type="button">Open</button>
</div>
</div>
<div class="setting-row">
<label for="engineSelect">Transcription engine</label>
<div class="input-row">
<select id="engineSelect">
<option value="openai">OpenAI API</option>
<option value="mlx">Local MLX Whisper</option>
</select>
<button id="saveEngineButton" type="button">Save</button>
</div>
</div>
<div class="setting-row">
<label for="mlxModelInput">MLX model</label>
<input id="mlxModelInput" type="text" autocomplete="off" placeholder="mlx-community/whisper-large-v3-turbo">
</div>
</section>
<section class="workspace">
<article class="input-panel">
<div class="meter" aria-hidden="true">
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
</div>
<h2>Record</h2>
<button id="recordButton" class="record-button" type="button">
<span id="recordLabel">Start Talking</span>
</button>
<div id="recordingTime" class="quiet">00:00</div>
</article>
<article id="dropZone" class="input-panel drop-zone">
<input id="fileInput" type="file" accept="audio/*,.m4a,.webm,.mp3,.wav,.mp4,.mpeg,.mpga,.ogg,.flac">
<button id="chooseFileButton" class="upload-button" type="button">
<span>Choose Audio</span>
<small>or drop a file here</small>
</button>
<div id="fileName" class="quiet">No file selected</div>
</article>
</section>
<section class="result-panel">
<div class="result-head">
<div>
<h2>Transcript</h2>
<div id="statusText" class="status-text">Ready</div>
</div>
<div class="actions">
<button id="transcribeButton" class="primary-action" type="button" disabled>Transcribe</button>
<button id="saveAudioButton" class="secondary" type="button" disabled>Save Audio</button>
<button id="saveTextButton" class="secondary" type="button" disabled>Save Text</button>
<button id="copyButton" class="secondary" type="button" disabled>Copy</button>
</div>
</div>
<textarea id="transcript" readonly spellcheck="false" placeholder="Your transcript will appear here."></textarea>
</section>
</main>
<section id="nameDialog" class="modal-backdrop hidden" aria-label="Name file">
<div class="modal">
<h2 id="nameDialogTitle">Name file</h2>
<input id="nameInput" type="text" autocomplete="off">
<div class="modal-actions">
<button id="nameCancelButton" class="secondary" type="button">Cancel</button>
<button id="nameConfirmButton" class="primary-action" type="button">Save</button>
</div>
</div>
</section>
<script src="renderer.js"></script>
</body>
</html>