first commit

This commit is contained in:
Chan
2025-01-08 14:01:53 +09:00
commit e387382951
21 changed files with 72432 additions and 0 deletions

7209
demo/audio.json Normal file

File diff suppressed because one or more lines are too long

BIN
demo/audio.mp3 Normal file

Binary file not shown.

33
demo/index.html Normal file
View File

@@ -0,0 +1,33 @@
<!doctype html>
<html lang="en-GB">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
<style>
body {
background: #fafafa;
font-size: 1.5em;
font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Inter,Helvetica,Arial,sans-serif;
margin: 5% 10% 5% 10%;
background-color: black;
}
</style>
</head>
<body>
<div id="demo"></div>
<script type="module">
import { html, render } from 'lit';
import '../whisper-transcript.js';
render(
html`
<tooltip-color-guide></tooltip-color-guide>
<whisper-transcript audio="audio.mp3" url="audio.json"></whisper-transcript>
`,
document.querySelector('#demo')
);
</script>
</body>
</html>