daffy0208 avatar

Voice Interface Builder

This one gives you Web Speech API hooks for React that handle both speech recognition and text-to-speech. You get a useSpeechRecognition hook with continuous listening support and a useSpeechSynthesis hook with voice selection and playback controls. The command detection pattern is straightforward, matching phrases or regex patterns against transcripts. Good for adding voice search, dictation inputs, or hands-free navigation without reaching for external APIs. The code is client-side only and browser-dependent, so you'll want fallbacks. Works best for accessibility features or when keyboard and mouse aren't practical.

skills.sh installs
187
GitHub stars
39
last updated
Aug 21, 2026

Install

$ npx -y skills add daffy0208/ai-dev-standards --skill voice-interface-builder --agent claude-code

Installs into .claude/skills of the current project.

Files

Voice Interface Builder Skill

I help you build voice-enabled interfaces using the Web Speech API and modern voice technologies.

What I Do

Speech Recognition:

  • Voice commands and controls
  • Voice-to-text input
  • Continuous dictation
  • Command detection

Text-to-Speech:

  • Reading content aloud
  • Voice feedback and notifications
  • Multilingual speech output
  • Voice selection and customization

Voice UI:

  • Voice-first interfaces
  • Accessibility features
  • Hands-free controls
  • Voice search

Web Speech API Basics

Speech Recognition

// hooks/useSpeechRecognition.ts
'use client'
import { useState, useEffect, useRef } from 'react'

interface SpeechRecognitionOptions {
  continuous?: boolean
  language?: string
  onResult?: (transcript: string) => void
  onError?: (error: string) => void
}

export function useSpeechRecognition({
  continuous = false,
  language = 'en-US',
  onResult,
  onError
}: SpeechRecognitionOptions = {}) {
  const [isListening, setIsListening] = useState(false)
  const [transcript, setTranscript] = useState('')
  const recognitionRef = useRef<SpeechRecognition | null>(null)

Sponsors

Details

Repository
github.com/daffy0208/ai-dev-standards
Categories
AI & Agent Building, Generative Media
First seen
Jun 3, 2026

More from daffy0208/ai-dev-standards

All 49
1terminaluse avatarterminaluseterminaluse/agent-skillsCreate, edit, deploy, and interact with agents on TerminalUse. Use when user mentions "tu", "terminaluse", "deploy agent", "create agent", "edit agent", "update187skills.sh installs
2get-convex avatarconvex-helpers-guideget-convex/convex-agent-pluginsDiscover and use convex-helpers utilities for relationships, filtering, sessions, custom functions, and more. Use when you need pre-built Convex patterns.186skills.sh installs
3jorgealves avatarclinical-trial-schema-designerjorgealves/agent_skillsAnalyzes clinical trial protocols and generates CDISC-compliant (SDTM/ADaM) data schemas. Use when designing data ingestion pipelines for clinical research or p186skills.sh installs
4khazp avatarvibe-prdkhazp/vibe-coding-prompt-templateCreate a Product Requirements Document (PRD) for your MVP. Use when the user wants to define product requirements, create a PRD, or says "help me write requirem185skills.sh installs
5mblode avatarreview-prmblode/agent-skillsReviews the current local diff or branch at the end of a coding session for high-confidence bugs and repository instruction-file compliance. Use when asked to r185skills.sh installs
6chandima avatarweatherchandima/agent-skillsGet current weather and forecasts (no API key required).184skills.sh installs