speak-sdk-patterns

Featured

Production patterns for Speak language learning API: conversation sessions, pronunciation assessment, audio preprocessing, and batch operations. Use when implementing sdk patterns features, or troubleshooting Speak language learning integration issues. Trigger with phrases like "speak sdk patterns", "speak sdk patterns".

AI & Automation 2,926 stars 433 forks Updated yesterday 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

# Speak SDK Patterns ## Overview Production patterns for Speak language learning API: conversation sessions, pronunciation assessment, audio preprocessing, and batch operations. ## Prerequisites - Completed `speak-install-auth` setup - Valid API credentials configured - ffmpeg installed for audio processing ## Instructions ### Pattern 1: Conversation Session Manager ```typescript class ConversationManager { private client: SpeakClient; private sessions: Map<string, SessionState> = new Map(); async startLesson(language: string, scenario: string, level: string) { const session = await this.client.startConversation({ scenario, language, level, nativeLanguage: 'en', }); this.sessions.set(session.id, { turns: [], startTime: Date.now(), language, }); return session; } async submitResponse(sessionId: string, audioPath: string) { const turn = await this.client.sendTurn(sessionId, { audioPath }); this.sessions.get(sessionId)?.turns.push(turn); return turn; } async endAndReport(sessionId: string) { const summary = await this.client.endSession(sessionId); const state = this.sessions.get(sessionId)!; return { ...summary, duration: (Date.now() - state.startTime) / 1000, totalTurns: state.turns.length, avgPronunciation: state.turns.reduce((s, t) => s + (t.pronunciationScore || 0), 0) / state.turns.length, }; } } ``` ### Pattern 2: Audio Preprocessor ```typescript import { exe...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
yesterday
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category