forked from Lloydcol/Gpt4-o-Realtime-API
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
67 lines (64 loc) · 2.59 KB
/
index.html
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
<!doctype html>
<html lang="fr">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/public/robot-assist.webp" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Gpt4-o Realtime API</title>
</head>
<body>
<div id="app">
<form>
<div class="container">
<div id="received-text-container"></div>
<div class="controls">
<div class="input-group">
<h1>Gpt4-o Realtime API</h1>
<label for="endpoint">Endpoint</label>
<input id="endpoint" type="text" placeholder="Resource/endpoint URL" />
<div class="toggle-group">
<label for="azure-toggle">Azure OpenAI</label>
<input id="azure-toggle" type="checkbox" checked />
</div>
<label for="api-key">API Key</label>
<input id="api-key" type="password" placeholder="API key" />
<label for="deployment-or-model">Deployment</label>
<input id="deployment-or-model" type="text" placeholder="Nom du modèle" />
</div>
<div class="input-group">
<div class="button-group">
<button id="start-recording" type="button">Démarrer</button>
<button id="stop-recording" type="button" disabled="true">Stop</button>
</div>
<div class="input-group">
<label for="session-instructions">System Message</label>
<textarea id="session-instructions" placeholder="Instructions optionnelles pour la session." rows="4"></textarea>
</div>
<div class="input-group">
<label for="temperature">Temperature</label>
<input id="temperature" type="number" min="0.6" max="1.2" step="0.05" placeholder="Par défaut 0.8"/>
</div>
<div class="input-group">
<label for="voice">Voix</label-for>
<select id="voice">
<option>amuch</option>
<option>alloy</option>
<option>echo</option>
<option>dan</option>
<option>elan</option>
<option>marilyn</option>
<option>breeze</option>
<option>cove</option>
<option>ember</option>
<option>jupiter</option>
<option>shimmer</option>
</select>
</div>
<a href="https://github.com/Azure-Samples/aoai-realtime-audio-sdk" target="_blank">Version complète ici</a>
</div>
</div>
</form>
</div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>