- CSS 67%
- Rust 25%
- Shell 7%
- Kotlin <1%
- Python <1%
Sumigoe: Real-time feedback app for voice therapy #
This is the source code repository for developers. If you are an user, please go to Github for app download and documentation.
Development #
This project is written in Rust, uses Dioxus for GUI, and ort for ML model deployment.
Repo structure #
project/
├─ assets/ # App assets, including icons, css, and ONNX models
├─ src/
│ ├─ main.rs # The entrypoint for the app.
│ ├─ components/ # Dioxus components
| ├─ workers/ # Backend workers
| ├─ helpers/ # common utilities
├─ platform/ # platform-specific code
├─ scripts/ # scripts for building platform-specific bundles
├─ Cargo.toml # The Cargo.toml file defines the dependencies and feature flags for your project
Bundled ML models #
The app requires two ML models: one for formant tracking, and one for pitch estimation.
- Formant: Based on the Deepformants method, re-implemented and retrained. See repo for details. Model download
- Pitch: Based on the CREPE method, exported to ONNX from the pre-trained model in original repository. Model download
The downloaded ONNX models should be put under assets/ for the code to compile.
Automatic Tailwind (Dioxus 0.7+) #
As of Dioxus 0.7, there no longer is a need to manually install tailwind. Simply dx serve and you're good to go!
Automatic tailwind is supported by checking for a file called tailwind.css in your app's manifest directory (next to Cargo.toml). To customize the file, use the dioxus.toml:
[application]
tailwind_input = "my.css"
tailwind_output = "assets/out.css"
Tailwind Manual Install #
To use tailwind plugins or manually customize tailwind, you can can install the Tailwind CLI and use it directly.
- Install npm: https://docs.npmjs.com/downloading-and-installing-node-js-and-npm
- Install the Tailwind CSS CLI: https://tailwindcss.com/docs/installation/tailwind-cli
- Run the following command in the root of the project to start the Tailwind CSS compiler:
npx @tailwindcss/cli -i ./tailwind.css -o ./assets/tailwind.css --watch
Serving Your App #
Run the following command in the root of your project to start developing with the default platform:
dx serve
Use build features to select different target platforms: linux, windows, macos, ios, android.
License #
This project is licensed under Apache 2.0 license.
AI disclosure #
LLM-based tools has been used in certain parts of the project (code understanding, code review, and some well-scoped tasks). However, the majority of the codebase is human written and all code has been reviewed by a human. Only open weight models are being used.