Voice to AI-generated stickers, printed instantly.
A web application that converts voice descriptions into AI-generated sticker designs and prints them using a thermal Bluetooth printer.
- Voice Input - Hold the microphone button and describe what you want
- AI Generation - Uses OpenAI DALL-E 3 to create sticker-ready images
- Thermal Printing - Print directly to a connected Cat Printer via Bluetooth
- Next.js 16 / React 19 / TypeScript
- Tailwind CSS
- OpenAI API (DALL-E 3)
- Web Bluetooth API
- Web Speech API
- Node.js 18+
- OpenAI API key
- Chrome or Edge browser (required for Web Bluetooth and Web Speech APIs)
- Cat Printer thermal sticker printer (optional, for printing)
- Install dependencies:
npm install- Create
.env.localand add your OpenAI API key:
OPENAI_API_KEY=sk-your-api-key-here
- Start the development server:
npm run dev- Open http://localhost:3000 in Chrome or Edge.
- Click and hold the microphone button
- Describe the sticker you want (e.g., "a happy cat with sunglasses")
- Release to generate the sticker
- Connect your thermal printer via the "Connect Printer" button
- Print your sticker
app/
api/generate/route.ts # DALL-E image generation endpoint
page.tsx # Main page
components/
MicButton.tsx # Voice recording button
ImageDisplay.tsx # Generated sticker display
PrinterControls.tsx # Bluetooth printer controls
lib/
catPrinter.ts # Bluetooth printer driver
imageProcessor.ts # Image processing for thermal printing
speech.ts # Speech recognition wrapper
npm run dev- Start development servernpm run build- Build for productionnpm start- Start production servernpm run lint- Run ESLint
MIT