From assemblyai-pack
Installs AssemblyAI SDK for Node.js/Python, configures API key authentication, initializes client, and verifies connection for speech-to-text transcription.
How this skill is triggered — by the user, by Claude, or both
Slash command
/assemblyai-pack:assemblyai-install-authThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Install the `assemblyai` npm package and configure API key authentication for transcription, LeMUR, and streaming APIs.
Install the assemblyai npm package and configure API key authentication for transcription, LeMUR, and streaming APIs.
# Node.js (official SDK)
npm install assemblyai
# Python
pip install assemblyai
# Set environment variable (recommended)
export ASSEMBLYAI_API_KEY="your-api-key-here"
# Or add to .env file
echo 'ASSEMBLYAI_API_KEY=your-api-key-here' >> .env
Add to .gitignore:
.env
.env.local
.env.*.local
// src/assemblyai/client.ts
import { AssemblyAI } from 'assemblyai';
const client = new AssemblyAI({
apiKey: process.env.ASSEMBLYAI_API_KEY!,
});
export default client;
// verify-connection.ts
import { AssemblyAI } from 'assemblyai';
const client = new AssemblyAI({
apiKey: process.env.ASSEMBLYAI_API_KEY!,
});
async function verify() {
// Transcribe a short public audio to confirm everything works
const transcript = await client.transcripts.transcribe({
audio: 'https://storage.googleapis.com/aai-web-samples/5_common_sports_702.wav',
});
if (transcript.status === 'error') {
console.error('Transcription failed:', transcript.error);
process.exit(1);
}
console.log('Connection verified. Transcript ID:', transcript.id);
console.log('Status:', transcript.status);
console.log('Text preview:', transcript.text?.slice(0, 100));
}
verify().catch(console.error);
import assemblyai as aai
import os
# Configure globally
aai.settings.api_key = os.environ["ASSEMBLYAI_API_KEY"]
# Or pass per-client
transcriber = aai.Transcriber()
transcript = transcriber.transcribe(
"https://storage.googleapis.com/aai-web-samples/5_common_sports_702.wav"
)
print(transcript.text)
assemblyai package in node_modules or site-packages.env file| Error | Cause | Solution |
|---|---|---|
Authentication error | Invalid or missing API key | Verify key at https://www.assemblyai.com/app/account |
Cannot find module 'assemblyai' | SDK not installed | Run npm install assemblyai |
transcript.status === 'error' | Invalid audio URL or format | Check audio URL is publicly accessible |
ENOTFOUND api.assemblyai.com | Network/firewall issue | Ensure outbound HTTPS to api.assemblyai.com is allowed |
After successful auth, proceed to assemblyai-hello-world for your first transcription.
npx claudepluginhub jeremylongshore/claude-code-plugins-plus-skills --plugin assemblyai-packApplies AssemblyAI SDK patterns in TypeScript for type-safe clients, transcription services, error handling, and polling in speech-to-text integrations.
Installs Deepgram SDK and configures API key authentication for Node.js/TypeScript and Python. Includes client init code and verification for speech-to-text/TTS integrations.
Installs ElevenLabs TTS SDK and configures API key authentication for Node.js or Python, with client init and verification code.