├── .npmrc ├── src ├── preview │ ├── index.css │ ├── index.html │ └── app.tsx ├── vanilla.ts └── wake-me.tsx ├── public └── snap │ ├── weights.bin │ ├── metadata.json │ ├── model.json │ └── speech-commands.min.js ├── postcss.config.js ├── vite.config.ts ├── tailwind.config.js ├── tsup.config.ts ├── tsconfig.json ├── LICENSE ├── CHANGELOG.md ├── package.json ├── .gitignore ├── README.ja.md ├── README.ko.md └── README.md /.npmrc: -------------------------------------------------------------------------------- 1 | legacy-peer-deps=true 2 | -------------------------------------------------------------------------------- /src/preview/index.css: -------------------------------------------------------------------------------- 1 | @tailwind base; 2 | @tailwind components; 3 | @tailwind utilities; 4 | -------------------------------------------------------------------------------- /public/snap/weights.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/llami-team/wake-me/HEAD/public/snap/weights.bin -------------------------------------------------------------------------------- /postcss.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | plugins: { 3 | tailwindcss: {}, 4 | autoprefixer: {}, 5 | }, 6 | }; 7 | -------------------------------------------------------------------------------- /public/snap/metadata.json: -------------------------------------------------------------------------------- 1 | {"tfjsSpeechCommandsVersion":"0.4.0","modelName":"TMv2","timeStamp":"2025-01-24T00:48:14.848Z","wordLabels":["FingerSnap","Snap","배경 소음"]} -------------------------------------------------------------------------------- /vite.config.ts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vite"; 2 | import react from "@vitejs/plugin-react"; 3 | 4 | export default defineConfig({ 5 | plugins: [react()], 6 | root: "./src/preview", 7 | }); 8 | -------------------------------------------------------------------------------- /tailwind.config.js: -------------------------------------------------------------------------------- 1 | /** @type {import('tailwindcss').Config} */ 2 | module.exports = { 3 | content: ["./src/**/*.{js,jsx,ts,tsx}"], 4 | theme: { 5 | extend: {}, 6 | }, 7 | plugins: [], 8 | }; 9 | -------------------------------------------------------------------------------- /src/preview/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 |
4 |
5 |
31 | 35 | Snap your fingers or clap to test the detection! 36 |
37 |38 | Powered by{" "} 39 | 43 | LLAMI Team 44 | 45 |
46 |Total snaps detected
55 |69 | Current noise level: {(noiseLevel * 100).toFixed(1)}% 70 |
71 |110 | {isSnapped ? "Snap Detected!" : "Waiting for snap..."} 111 |
112 |
4 |
5 |
4 |
5 |