Skip to content

Commit

Permalink
loading spinner until connection
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Nov 24, 2023
1 parent fc304f0 commit f4f406b
Show file tree
Hide file tree
Showing 3 changed files with 101 additions and 27 deletions.
76 changes: 54 additions & 22 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,37 +1,69 @@
<!DOCTYPE html>
<html>
<head>
<head>
<title>HiveMind Speech WebClient</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.9.3/css/bulma.min.css"
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.9.3/css/bulma.min.css"
/>
<script src="https://jarbashivemind.github.io/HiveMind-js/static/js/asmcrypto.js"></script>
<script src="https://jarbashivemind.github.io/HiveMind-js/static/js/webcrypto-shim.js"></script>
<script src="https://jarbashivemind.github.io/HiveMind-js/static/js/hivemind.js"></script>
<script src="https://cdn.jsdelivr.net/npm/onnxruntime-web/dist/ort.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@ricky0123/[email protected]/dist/bundle.min.js"></script>
<script type="module" src="index.js"></script>
</head>
<body>
<section class="section">
<div class="container">
<h1 class="title">HiveMind Speech WebClient</h1>
</head>
<body>
<section class="section">
<div class="container">

<h1>
HiveMind Speech WebClient<br>

<a href="https://github.com/JarbasHiveMind/">
<img src="https://github.com/JarbasHiveMind/HiveMind-assets/blob/master/logo/hivemind-128.png?raw=true"
id="logo"></img>
</a>

</h1>

<br><br>
HiveMind Credentials
<br>
<form onsubmit="return false">
IP:
<input id="hmip" autocomplete="off" type="text" placeholder="0.0.0.0"><br>
Port:
<input id="hmport" autocomplete="off" type="text" placeholder="5678"><br>
Access Key:
<input id="hmkey" autocomplete="off" type="text" placeholder="hivemind access key"><br>
Crypto Key:
<input id="hmcrypto" autocomplete="off" type="text" placeholder="hivemind crypto key"><br>
<button onclick="window.onConnect();" id="connect" >CONNECT </button>
</form>

<br><br>


<p>Just speak and HiveMind will answer</p>

<div class="block is-inline-flex">
<button
id="toggleVAD"
class="button is-primary is-loading"
onclick="window.toggleVAD()"
disabled
>
Start VAD
</button>
<button
id="toggleVAD"
class="button is-primary is-loading"
onclick="window.toggleVAD()"
disabled
>
Start VAD
</button>
</div>

<div class="block">
<ul id="audio-list"></ul>
<ul id="audio-list"></ul>
</div>
</div>
</section>
</body>
</div>
</section>
</body>
</html>
48 changes: 45 additions & 3 deletions index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f4f406b

Please sign in to comment.