speak-rate-limits

Featured

Handle Speak API rate limits with exponential backoff, request queuing, and optimization strategies. Use when implementing rate limits features, or troubleshooting Speak language learning integration issues. Trigger with phrases like "speak rate limits", "speak rate limits".

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

# Speak Rate Limits ## Overview Handle Speak API rate limits with exponential backoff, request queuing, and optimization strategies. ## Prerequisites - Completed `speak-install-auth` setup - Valid API credentials configured - Understanding of Speak API patterns ## Instructions ### Rate Limit Overview | Tier | Assessments/min | Conversations/min | Audio upload/min | |------|----------------|-------------------|-----------------| | Free | 10 | 5 | 10 | | Pro | 60 | 30 | 60 | | Enterprise | 300 | 150 | 300 | ### Rate-Limited Client ```typescript class RateLimitedSpeakClient { private lastRequest = 0; private minDelay: number; constructor(private client: SpeakClient, requestsPerMinute: number = 60) { this.minDelay = 60000 / requestsPerMinute; } private async throttle() { const elapsed = Date.now() - this.lastRequest; if (elapsed < this.minDelay) { await new Promise(r => setTimeout(r, this.minDelay - elapsed)); } this.lastRequest = Date.now(); } async assessPronunciation(config: PronunciationConfig) { await this.throttle(); return this.retryOn429(() => this.client.assessPronunciation(config)); } private async retryOn429<T>(fn: () => Promise<T>, maxRetries = 3): Promise<T> { for (let i = 0; i < maxRetries; i++) { try { return await fn(); } catch (err: any) { if (err.response?.status === 429 && i < maxRetries - 1) { const wait = parseInt(err.response.headers['retry-after'] || Strin...

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