StikSound: Local Sound Sticker Creation from Images and Audio
StikSound
StikSound — Ponle sonido de hasta 5 segundos a tus stickers PNG y GIFs animados para WhatsApp (Windows, macOS & Chrome Extension, 100% local sin instalar nada extra)
StikSound pairs an image with an audio clip to make WhatsApp sound stickers in web, desktop and Chrome extension versions. The README documents format limits.
StikSound solves a narrow problem: merge a square image (PNG, JPG, WebP, or animated GIF) with an audio fragment up to 10 seconds into a single file WhatsApp accepts as a sound sticker. No uploads, no FFmpeg install, no timeline editor. The project ships three delivery targets — a GitHub Pages PWA, a Tauri desktop bundle, and a Chrome extension — each sharing the same TypeScript core and optional Rust media engines.
Core Workflow: Image Plus Audio Fragment
User drops or pastes an image. StikSound validates bytes, not extensions, checking dimensions (max 8000 px, 40 MP decoded), transparency, and animation frames. It auto-crops to 1:1 using the shorter side, capped at 512×512 px, rounded to even pixels for encoder compatibility.
Audio enters via local file (MP3, WAV, OGG, M4A, AAC ≤ 25 MB, ≤ 3 min) or a MyInstants URL. The waveform renders 1024 peak bins. A draggable window selects start_ms to end_ms; a 5s/10s toggle sets the maximum export window. Validation enforces 100 ms to 10,000 ms. The chosen slice resamples to 48 kHz mono for export.
Export runs two local paths in order: WebCodecs (VideoEncoder/AudioEncoder) for MP4 H.264/AAC or WebM VP9/Opus with alpha; fallback to Canvas + MediaRecorder using platform codecs. If neither exists, export returns a structured error instead of failing silently.
- Image formats: PNG, JPG, WebP, GIF (animated loops)
- Audio formats: MP3, WAV, OGG, M4A, AAC
- Fragment range: 0.1 s – 10 s (toggle 5s | 10s)
- Output: MP4, WebM (alpha), ZIP project, static WebP
Web PWA vs Desktop App vs Chrome Extension
The web version (silverfeit.github.io/StikSound) runs in any browser, installs as PWA on mobile and desktop. It processes 100% locally but cannot fetch MyInstants links directly due to CORS; user must download the MP3 first. It supports short video files (MP4, MOV, WebM) as sticker input, a feature absent from desktop and extension builds.
Desktop (Tauri, Windows x64, macOS universal) and Chrome Manifest V3 extension add MyInstants link pasting. The desktop backend downloads via Rust, bypassing CORS and applying extra IP validation (private/reserved address blocking). Both desktop and extension emit WebM with transparency when WebCodecs is available; web version falls back to MP4 only on mobile.
All three share the same React UI package and core use-cases. The desktop app bundles a WebView (WebView2 on Windows, WKWebView on macOS) so the web code runs unchanged. The extension loads the built web assets in a new tab.
- Web: no install, PWA, no MyInstants direct fetch, video input supported
- Desktop: MyInstants links, WebM alpha, Rust download with IP checks
- Extension: MyInstants links, WebM alpha, loads as unpacked extension
- Common: 100% local processing, 5s/10s toggle, project ZIP save/load
Local Processing and Network Boundaries
No StikSound server receives images or audio. Media decode, trim, waveform, mux, and ZIP packaging happen in the browser/WebView or in Rust crates invoked via Tauri commands. The only network request is an explicit MyInstants fetch, governed by a strict allowlist: HTTPS only, myinstants.com/www.myinstants.com, no credentials, port 443 only, max 2 redirects, 25 MB cap, 20 s timeout. Desktop Rust backend adds private/reserved IP blocking.
Project files (.stiksound.zip) contain manifest.json plus assets. On open, paths are validated against path traversal (../) before extraction. Downloaded MyInstants sounds remain attributed to their authors; StikSound claims no rights.
- Zero telemetry, zero analytics
- MyInstants fetch only on explicit paste
- Desktop: Rust-side download with IP allowlist
- ZIP open: path traversal validation
Repository Architecture and Media Engines
Monorepo layout separates concerns: apps/desktop (Tauri), apps/extension (Chrome MV3), apps/web (Vite PWA). Shared packages: core (project model, invariants, use-cases), ui (React editor, i18n), media-web (TypeScript sniff, decode, trim, waveform, mux, ZIP), providers (MyInstants URL extraction). Rust crates under crates/: audio-engine (probe/decode/trim), image-engine (probe/utils), video-engine (validate/mux), project-store (atomic write, ZIP).
UI calls core use-cases; core delegates media work to an engine interface. WebMediaEngine implements the interface in TypeScript using WebCodecs/MediaRecorder. Desktop swaps in Rust-backed implementations for probe, decode, and mux, avoiding WebView codec gaps. This design keeps business logic testable without a browser.
- Core: pure TypeScript, no React, no platform APIs
- Media engines: swappable (WebMediaEngine vs Rust)
- Rust crates: audio, image, video, project-store
- Desktop: Tauri commands bridge to Rust
Export Formats, Limits, and WhatsApp Compatibility
MP4: H.264 + AAC, solid background color (white/black/custom), max compatibility. WebM: VP9 + Opus, alpha channel when encoder supports it. ZIP: portable project bundle (manifest + assets). WebP: static 1:1 image ≤ 100 KB for non-audio stickers.
Hard limits: image 20 MB / 8000 px / 40 MP; audio 25 MB / 3 min source / 10 s export; fragment 100 ms – 10 s (±50 ms tolerance). GIF frames decode and loop to fill fragment duration.
README notes WhatsApp has no official desktop API for sound stickers. StikSound prepares the file; import method and final compatibility depend on WhatsApp version. An experimental native-sound-sticker profile exists in code but is disabled pending verification.
- MP4: solid bg, H.264/AAC, broad support
- WebM: VP9/Opus, alpha when available
- ZIP: project round-trip
- WebP: static ≤ 100 KB
- WhatsApp import: user responsibility, no official API
Conclusion
StikSound delivers a focused, local-first pipeline: square image + ≤10 s audio → WhatsApp-ready MP4/WebM/ZIP. Three distribution channels share one core; the web PWA trades MyInstants direct fetch for zero-install convenience, while desktop and extension add that fetch under strict policy. Rust crates handle heavy media lifting on desktop, keeping the web fallback pure TypeScript. For creators who want sound stickers without cloud uploads or timeline editors, StikSound is a compact, auditable toolkit.
Source
Project page
Similar Projects
Discover other similar projects and AI models.
A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode,DeepSeek Harness and more. Only official website: ccswitch.io
all-MiniLM-L6-v2 This is a sentence-transformers(https://www.SBERT.net) model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search. Usage (Sentence-Transformers) Using t...