wispr-hello-world

Featured

Wispr Flow hello world for voice-to-text API integration. Use when integrating Wispr Flow dictation, WebSocket streaming, or building voice-powered applications. Trigger: "wispr hello world".

AI & Automation 2,359 stars 334 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Wispr Flow Hello World ## Overview Stream audio to Wispr Flow and receive real-time transcription. Wispr specializes in developer-context-aware dictation -- it understands code terms, CLI commands, and technical jargon. ## Instructions ### Step 1: Record and Transcribe (REST) ```python import requests, os # Transcribe an audio file with open("voice-memo.wav", "rb") as audio: response = requests.post( "https://api.wisprflow.ai/api/v1/transcribe", headers={"Authorization": f"Bearer {os.environ['WISPR_API_KEY']}"}, files={"audio": audio}, data={"language": "en", "context": "programming"}, ) result = response.json() print(f"Text: {result['text']}") print(f"Confidence: {result.get('confidence', 'N/A')}") ``` ### Step 2: Real-Time Streaming (WebSocket) ```typescript // Stream microphone audio to Wispr Flow const ws = new WebSocket('wss://api.wisprflow.ai/api/v1/ws'); // Browser audio capture const stream = await navigator.mediaDevices.getUserMedia({ audio: true }); const context = new AudioContext({ sampleRate: 16000 }); const source = context.createMediaStreamSource(stream); const processor = context.createScriptProcessor(4096, 1, 1); source.connect(processor); processor.connect(context.destination); processor.onaudioprocess = (event) => { const audioData = event.inputBuffer.getChannelData(0); // Convert Float32Array to Int16Array for transmission const int16 = new Int16Array(audioData.length); for (let i = 0; i < audio...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
8 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category