Spaces:
Running
Running
Initial commit
Browse files- assets/index-B7AswtMH.js +0 -0
- assets/ort-wasm-simd-threaded-CMx4Stf1.wasm +3 -0
- favicon.png +0 -0
- index.html +107 -18
- moonshine/base/cached_decode.onnx +3 -0
- moonshine/base/encode.onnx +3 -0
- moonshine/base/preprocess.onnx +3 -0
- moonshine/base/uncached_decode.onnx +3 -0
- moonshine/tiny/cached_decode.onnx +3 -0
- moonshine/tiny/encode.onnx +3 -0
- moonshine/tiny/preprocess.onnx +3 -0
- moonshine/tiny/uncached_decode.onnx +3 -0
- style.css +0 -28
assets/index-B7AswtMH.js
ADDED
The diff for this file is too large to render.
See raw diff
|
|
assets/ort-wasm-simd-threaded-CMx4Stf1.wasm
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:704f51767fe3e11443aac6b5509c8654688e4cea3d988f96a069390b6eccbabc
|
3 |
+
size 11241642
|
favicon.png
ADDED
index.html
CHANGED
@@ -1,19 +1,108 @@
|
|
1 |
-
<!
|
2 |
-
<html>
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
</html>
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="en">
|
3 |
+
<head>
|
4 |
+
<meta charset="UTF-8" />
|
5 |
+
<link rel="icon" href="/favicon.png" />
|
6 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
7 |
+
<title>Moonshine – lightweight ASR by Useful Sensors</title>
|
8 |
+
<style>
|
9 |
+
body {
|
10 |
+
font-family: Arial, Helvetica, sans-serif;
|
11 |
+
}
|
12 |
+
div {
|
13 |
+
margin-bottom: 1em;
|
14 |
+
}
|
15 |
+
button {
|
16 |
+
height: 3em;
|
17 |
+
width: 6em;
|
18 |
+
margin-left: 0.5em;
|
19 |
+
}
|
20 |
+
.container {
|
21 |
+
max-width: 600px;
|
22 |
+
margin: 0 auto;
|
23 |
+
}
|
24 |
+
.justify-center {
|
25 |
+
display: flex;
|
26 |
+
justify-content: center;
|
27 |
+
}
|
28 |
+
.logo-container {
|
29 |
+
text-align: center;
|
30 |
+
}
|
31 |
+
#logo {
|
32 |
+
width: 196px;
|
33 |
+
}
|
34 |
+
#sound {
|
35 |
+
width: 100%;
|
36 |
+
}
|
37 |
+
#transcription {
|
38 |
+
color: #447ff7;
|
39 |
+
}
|
40 |
+
#audioPanel {
|
41 |
+
display: none;
|
42 |
+
}
|
43 |
+
#inferenceTime {
|
44 |
+
|
45 |
+
}
|
46 |
+
.st0 {
|
47 |
+
fill: #ffffff;
|
48 |
+
stroke: #3a4966;
|
49 |
+
stroke-width: 20;
|
50 |
+
stroke-linecap: round;
|
51 |
+
stroke-linejoin: round;
|
52 |
+
stroke-miterlimit: 10;
|
53 |
+
}
|
54 |
+
.st1 {
|
55 |
+
fill: none;
|
56 |
+
stroke: #447ff7;
|
57 |
+
stroke-width: 30;
|
58 |
+
stroke-linecap: round;
|
59 |
+
stroke-miterlimit: 10;
|
60 |
+
}
|
61 |
+
</style>
|
62 |
+
<script type="module" crossorigin src="/assets/index-B7AswtMH.js"></script>
|
63 |
+
</head>
|
64 |
+
<body>
|
65 |
+
<div id="root">
|
66 |
+
<div class="container">
|
67 |
+
<div class="logo-container">
|
68 |
+
<svg version="1.1" id="logo" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 800 800" >
|
69 |
+
<path class="st0" d="M409,760C205.6,760,40,594.4,40,390.9C40,228.5,144.4,88.5,294.8,40C236.6,100.9,203,182.9,203,268.3
|
70 |
+
c0,181.7,147.3,329.5,328.3,329.5c85.8,0,168.1-34.2,228.8-93.4C711.9,655.3,571.8,760,409,760L409,760z"/>
|
71 |
+
<line class="st1" id="l1" x1="310.1" y1="293.8" x2="310.1" y2="325.8"/>
|
72 |
+
<line class="st1" id="l2" x1="729.8" y1="293.8" x2="729.8" y2="325.8"/>
|
73 |
+
<line class="st1" id="l3" x1="370" y1="220" x2="370" y2="399.6"/>
|
74 |
+
<line class="st1" id="l4" x1="430" y1="245.9" x2="430" y2="373.7"/>
|
75 |
+
<line class="st1" id="l5" x1="489.9" y1="293.8" x2="489.9" y2="325.8"/>
|
76 |
+
<line class="st1" id="l6" x1="548.1" y1="278.2" x2="548.1" y2="342.1"/>
|
77 |
+
<line class="st1" id="l7" x1="609.9" y1="220.4" x2="609.9" y2="400"/>
|
78 |
+
<line class="st1" id="l8" x1="669.8" y1="245.9" x2="669.8" y2="373.7"/>
|
79 |
+
</svg>
|
80 |
+
<h1>Moonshine</h1>
|
81 |
+
fast, accurate, and lightweight speech-to-text models running in your browser
|
82 |
+
</div>
|
83 |
+
<div class="justify-center">
|
84 |
+
<select name="models" id="models">
|
85 |
+
<option value="tiny" selected>moonshine/tiny</option>
|
86 |
+
<option value="base">moonshine/base</option>
|
87 |
+
</select>
|
88 |
+
<input type="file" id="upload" style="display: none;" />
|
89 |
+
<button onclick="document.getElementById('upload').click();">Browse</button>
|
90 |
+
<button id="startRecord">Record</button>
|
91 |
+
<button id="stopRecord" style="display: none;">Stop</button>
|
92 |
+
</div>
|
93 |
+
<div id="audioPanel">
|
94 |
+
<div class="justify-center">
|
95 |
+
<audio id="sound" type="audio/wav" controls></audio>
|
96 |
+
</div>
|
97 |
+
<div class="justify-center">
|
98 |
+
<button id="transcribe">Transcribe</button>
|
99 |
+
</div>
|
100 |
+
<div class="justify-center">
|
101 |
+
<span id="transcription"></span>
|
102 |
+
</div>
|
103 |
+
</div>
|
104 |
+
</div>
|
105 |
+
</div>
|
106 |
+
</body>
|
107 |
</html>
|
108 |
+
|
moonshine/base/cached_decode.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8fd4ac2d8669e904bbba01ff929324b9259f8e60146cec6a4be700a39118196f
|
3 |
+
size 231434127
|
moonshine/base/encode.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bef34f85adbbe966517e7c592f54aa73e2cf12a67b55e21417c4663832afb610
|
3 |
+
size 83408035
|
moonshine/base/preprocess.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1bea91912aff591b5d7e0554693ed55012311fa3fa2ae09a55a4a0b989bb96bb
|
3 |
+
size 14077308
|
moonshine/base/uncached_decode.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c923f345105553abc5a624877ec0d58aadf346b3138ff17839e5ddd36351dbe9
|
3 |
+
size 253569045
|
moonshine/tiny/cached_decode.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:20ed00b76557d1cab5a4b5009564d38248258803bee2c1abc60b08584fe5f2e5
|
3 |
+
size 119669313
|
moonshine/tiny/encode.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0041c04b9349b9d1b5dac0e29735356f181bcfaa0c0f4d557988ab61bf7742f8
|
3 |
+
size 30095509
|
moonshine/tiny/preprocess.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9e166eb7be7e616a79f14e4faf372519e6be575821a8748de89f1a4823cae464
|
3 |
+
size 6800776
|
moonshine/tiny/uncached_decode.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1892e9667b29e984d6d8cea166081fc438cbeea4b55b5832d0d5cb8e4dee716e
|
3 |
+
size 127620373
|
style.css
DELETED
@@ -1,28 +0,0 @@
|
|
1 |
-
body {
|
2 |
-
padding: 2rem;
|
3 |
-
font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
|
4 |
-
}
|
5 |
-
|
6 |
-
h1 {
|
7 |
-
font-size: 16px;
|
8 |
-
margin-top: 0;
|
9 |
-
}
|
10 |
-
|
11 |
-
p {
|
12 |
-
color: rgb(107, 114, 128);
|
13 |
-
font-size: 15px;
|
14 |
-
margin-bottom: 10px;
|
15 |
-
margin-top: 5px;
|
16 |
-
}
|
17 |
-
|
18 |
-
.card {
|
19 |
-
max-width: 620px;
|
20 |
-
margin: 0 auto;
|
21 |
-
padding: 16px;
|
22 |
-
border: 1px solid lightgray;
|
23 |
-
border-radius: 16px;
|
24 |
-
}
|
25 |
-
|
26 |
-
.card p:last-child {
|
27 |
-
margin-bottom: 0;
|
28 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|