documentation-auto
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "documentation-auto":https://skillpi.com/zh/skills/deepskill-5b8850085201b13577f63ed12df75ed74b8039c73b221f27b6b0de4c5751d662。安装前核对上游来源和版本:https://skillhub.cn/skills/user_15292d5a/yjkj-documentation-auto。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
skillhub.cn
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
文档备份参考:Gladia 语音转文本综合参考文档,内容与 docs.gladia.io 自动同步。作为通用备用方案,当专用技能不匹配或用户需要全面了解 Gladia 的功能、端点、决策指导或工作流程时使用。始终优先官方 SDK,仅在 SDK 无法满足时回退到原始 REST/WebSocket 接口。
介绍来源: third_party · user_15292d5a · 1.0.0 参考来源
SkillPi 解读
- 能完成的任务
- 综合 Gladia 语音对文本的参考自发- synced from docs.gladia.io. 当其他专业技能不匹配时,或者当用户需要广泛概述Gladia的能力,终点,决策指导,或工作流程时,作为通用回落. 总是更喜欢官方SDK;只有在SDK无法满足要求时才返回原始的REST/WebSocket.
- 适合谁
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: documentation-auto
description: Comprehensive Gladia speech-to-text reference auto-synced from docs.gladia.io. Use as a general-purpose fallback when other specialized skills don't match, or when the user needs a broad overview of Gladia capabilities, endpoints, decision guidance, or workflows. Always prefer the official SDK; fall back to raw REST/WebSocket only when SDK cannot satisfy the requirement.
license: MIT
metadata:
source: https://docs.gladia.io/.well-known/agent-skills/gladia/skill.md
digest: sha256:f87953eda33c8e6132d8a78343532fddc576ebeab7bf83bb3b6fb3aca2b5c96b
synced: "2026-06-04"SDK-first: always use the official SDK — see sdk-integration for policy, setup, and fallback criteria.
References
Consult these sibling skills as needed:
- ../sdk-integration/SKILL.md -- SDK setup, client initialization, error handling, and SDK vs raw API decision guide
- ../sdk-integration/references/sdk-versions.md -- Current SDK versions (auto-synced by CI)
- ../troubleshooting/SKILL.md -- Common errors, gotchas, and verification checklist
- ../live-transcription/SKILL.md -- Live streaming transcription
- ../pre-recorded-transcription/SKILL.md -- Pre-recorded file transcription
name: Gladia description: Use when building speech-to-text transcription features, processing audio or video files, implementing real-time transcription, extracting insights from audio (translation, summarization, speaker identification), or integrating audio intelligence into applications. metadata: mintlify-proj: gladia version: "1.0"
Gladia Skill
Product summary
Gladia is a speech-to-text API that transcribes audio and video files in two modes: pre-recorded (asynchronous, batch) and live (real-time, WebSocket-based). The API returns structured transcripts with word-level timing, confidence scores, and optional audio intelligence features (translation, diarization, summarization, entity recognition, sentiment analysis, PII redaction, subtitles). Use the JavaScript/TypeScript SDK (@gladiaio/sdk) or Python SDK (gladiaio-sdk) for simplified integration, or call REST/WebSocket endpoints directly. Authenticate with x-gladia-key header. Primary docs: https://docs.gladia.io
When to use
- Pre-recorded transcription: Transcribe uploaded audio/video files (MP3, WAV, MP4, YouTube links, etc.) asynchronously. Typical latency: seconds to minutes depending on file length.
- Live transcription: Stream audio in real-time via WebSocket for immediate transcripts (e.g., call centers, live events, voice assistants).
- Audio intelligence: Extract metadata from transcripts — translate to multiple languages, identify speakers, detect sentiment, redact PII, generate summaries, create subtitles, recognize named entities.
- Custom vocabulary: Improve accuracy for domain-specific terms, brand names, proper nouns by providing phonetic hints.
- Multi-speaker scenarios: Use diarization to attribute speech to individual speakers, or send multi-channel audio to preserve speaker identity.
Quick reference
Authentication
# All requests require x-gladia-key header
curl -H "x-gladia-key: YOUR_API_KEY" https://api.gladia.io/v2/pre-recorded
Pre-recorded workflow (SDK)
import { GladiaClient } from "@gladiaio/sdk";
const client = new GladiaClient({ apiKey: "YOUR_KEY" });
const result = await client.preRecorded().transcribe("audio_url_or_local_path");
Live workflow (SDK)
const session = client.liveV2().startSession({
encoding: "wav/pcm",
sample_rate: 16000,
bit_depth: 16,
channels: 1,
language_config: { languages: ["en"] }
});
session.on("message", (msg) => console.log(msg));
session.sendAudio(audioChunk);
session.stopRecording();
Audio formats
| Type | Examples |
|---|---|
| Audio | MP3, WAV, FLAC, AAC, OGG, Opus |
| Video | MP4, MOV, AVI, WebM, Matroska |
| Online | YouTube, TikTok, Instagram, Facebook, Vimeo, LinkedIn |
Limits
| Limit | Value |
|---|---|
| Pre-recorded max duration | 135 minutes (free/paid); 4h15 (enterprise) |
| Pre-recorded max file size | 1000 MB |
| Live session max duration | 3 hours |
| Free tier monthly usage | 10 hours |
| Concurrent pre-recorded jobs (free) | 3 |
| Concurrent pre-recorded jobs (paid) | 25 |
| Concurrent live sessions (free) | 1 |
| Concurrent live sessions (paid) | 30 |
Audio intelligence features
| Feature | Pre-recorded | Live | Purpose |
|---|---|---|---|
| Diarization | ✓ | ✗ | Identify speakers |
| Translation | ✓ | ✓ | Multi-language output |
| Summarization | ✓ | ✗ | Generate summaries/bullet points |
| Sentiment analysis | ✓ | ✓ | Detect emotions and tone |
| Named entity recognition | ✓ | ✓ | Extract people, orgs, dates |
| PII redaction | ✓ | ✗ | Anonymize sensitive data |
| Subtitles | ✓ | ✗ | Generate SRT/VTT files |
| Custom vocabulary | ✓ | ✓ | Improve domain-specific terms |
| Custom spelling | ✓ | ✓ | Normalize misspellings |
| Chapterization | ✓ | ✗ | Segment long audio into chapters |
| Audio-to-LLM | ✓ | ✗ | Run custom prompts on transcript |
Decision guidance
When to use pre-recorded vs. live
| Scenario | Pre-recorded | Live |
|---|---|---|
| Batch processing uploaded files | ✓ | ✗ |
| Real-time streaming (calls, events) | ✗ | ✓ |
| Need diarization | ✓ | ✗ |
| Need immediate partial results | ✗ | ✓ (with receive_partial_transcripts: true) |
| Need summarization | ✓ | ✗ |
| Multi-hour content | ✓ (up to 135 min) | ✓ (up to 3 hours per session) |
When to use SDK vs. raw API
| Approach | Best for |
|---|---|
| SDK | Rapid development, automatic error handling, built-in polling/retry logic |
| Raw API | Custom workflows, specific language/framework, fine-grained control |
When to use diarization vs. multi-channel audio
| Approach | Use when |
|---|---|
| Diarization | Single audio file with multiple speakers; you want the API to separate them |
| Multi-channel | Multiple audio sources (e.g., separate participant feeds); you can merge them into one multi-channel stream |
When to use custom vocabulary vs. custom spelling
| Feature | Use when |
|---|---|
| Custom vocabulary | Word is mispronounced/garbled; you provide phonetic hints (e.g., "Nietzsche" → ["Niche", "Neechee"]) |
| Custom spelling | Word is recognized but misspelled (e.g., "Salesforce" → "Sales Force"); literal text matching |
Workflow
Pre-recorded transcription (typical task)
- Prepare audio: Ensure file is under 1000 MB and 135 minutes. Supported formats: MP3, WAV, MP4, YouTube URL, etc.
- Choose delivery method: Use SDK for simplicity, or raw API for control.
- Configure transcription:
- Set
language_config.languagesexplicitly if known (avoids detection overhead). - Enable
diarization: trueif multiple speakers. - Add
custom_vocabularyfor domain terms. - Enable audio intelligence features (translation, summarization, etc.) as needed.
- Set
- Submit job: Call
transcribe()(SDK) orPOST /v2/pre-recorded(API). - Retrieve results: Poll
GET /v2/pre-recorded/:idor configure webhooks/callbacks. - Parse response: Extract
transcription.utterances[]for text and timing, plus any audio intelligence results.
Live transcription (typical task)
- Initialize session: Call
POST /v2/livewith audio config (encoding, sample_rate, bit_depth, channels). - Connect WebSocket: Use returned URL to open WebSocket connection.
- Configure messages: Set
messages_configto specify which message types to receive (transcripts, partial transcripts, post-processing events). - Stream audio: Send audio chunks via
sendAudio()(SDK) or binary/base64 JSON (raw API). - Handle messages: Listen for
transcriptmessages; checkis_finalto distinguish partials from finals. - Stop recording: Call
stopRecording()to trigger post-processing (diarization, translation, etc.). - Retrieve final result: Poll
GET /v2/live/:idor wait for callback with complete result.
Adding custom vocabulary
- Identify problem terms: Transcribe without custom vocabulary; note mis-transcribed words.
- Categorize: Garbled/phonetically wrong → custom vocabulary; recognizable but misspelled → custom spelling.
- Build vocabulary list:
{ "custom_vocabulary": true, "custom_vocabulary_config": { "vocabulary": [ "Gladia", { "value": "Salesforce", "pronunciations": ["sell force"], "intensity": 0.5 } ], "default_intensity": 0.4 } } - Test: Transcribe again; confirm targets appear and check for false positives.
- Refine: Lower intensity, add pronunciations, or move stubborn terms to custom spelling.
Common gotchas
- Language detection overhead: Always set
language_config.languagesexplicitly if you know the language. Auto-detection adds latency and can fail if audio starts with silence or music. - Code switching without language list: Never enable
code_switching: truewith an emptylanguagesarray — the model will evaluate against 100+ languages, causing frequent misdetections. Always provide a constrained list (3–5 languages). - Diarization hints are not hard constraints:
number_of_speakers,min_speakers,max_speakersare hints, not guarantees. The model may detect a different count. - Custom vocabulary intensity tuning: Start at
default_intensity: 0.4and adjust per-entry only. Raising intensity globally increases false positives. Addpronunciationsvariants before raising intensity. - Live session 3-hour limit: A single WebSocket session cannot exceed 3 hours. For longer events, close the session and start a new one before hitting the limit.
- Pre-recorded 135-minute limit: Files longer than 135 minutes will fail. Split into ~60-minute chunks using ffmpeg or similar tools.
- Audio format conversion overhead: Large video files (e.g., AVI, MOV) take ~1 minute to convert to WAV/PCM. Plan for this latency.
- Polling without webhooks: If you poll
GET /v2/pre-recorded/:idin a tight loop, you'll hit rate limits. Use webhooks or callbacks instead, or poll with exponential backoff. - Multi-channel billing: Transcribing multi-channel audio is billed as
duration × number_of_channels. A 10-minute 3-channel stream costs 30 minutes of usage. - Partial transcripts in live mode: Partial transcripts are low-latency but less accurate. Always check
is_final: truebefore using a transcript for critical decisions. - Missing audio_url on upload: After uploading a file, the response includes
audio_url— use this URL in the transcription request, not the local file path. - WebSocket reconnection: If the WebSocket disconnects, reconnect to the same URL (returned from init) to resume the session without losing context.
Verification checklist
Before submitting transcription work:
- [ ] API key is valid and passed in
x-gladia-keyheader. - [ ] Audio file is under 1000 MB and 135 minutes (pre-recorded) or 3 hours (live).
- [ ] Audio format is supported (MP3, WAV, MP4, etc.).
- [ ] Language is set explicitly in
language_config.languagesif known. - [ ] If using code switching,
languageslist is constrained to 3–5 expected languages. - [ ] Diarization is enabled if multiple speakers need attribution.
- [ ] Custom vocabulary entries have realistic
intensity(0.4–0.6) andpronunciations. - [ ] Webhooks or callbacks are configured if polling is not feasible.
- [ ] Live sessions are closed before 3 hours; pre-recorded jobs are split if over 135 minutes.
- [ ] Response includes expected fields:
transcription.utterances[],metadata, and any requested audio intelligence results. - [ ] Confidence scores and timing (
start,end) are present for quality validation. - [ ] Multi-channel audio is correctly interleaved if merging multiple sources.
Resources
- Comprehensive page listing: https://docs.gladia.io/llms.txt
- Getting started guide: https://docs.gladia.io/chapters/introduction/getting-started
- Pre-recorded quickstart: https://docs.gladia.io/chapters/pre-recorded-stt/quickstart
- Live transcription quickstart: https://docs.gladia.io/chapters/live-stt/quickstart
- API reference: https://docs.gladia.io/api-reference
- Recommended parameters by use case: https://docs.gladia.io/chapters/pre-recorded-stt/recommended-parameters
- Audio intelligence features: https://docs.gladia.io/chapters/audio-intelligence
- Supported formats and limits: https://docs.gladia.io/chapters/limits-and-specifications/supported-formats
For additional documentation and navigation, see: https://docs.gladia.io/llms.txt
This file is auto-synced from https://docs.gladia.io/.well-known/agent-skills/gladia/skill.md Do not edit manually — changes will be overwritten by CI. For additional documentation and navigation, see: https://docs.gladia.io/llms.txt
当前收录版本
1.0.0
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 提供 Gladia 语音转文本 API 的综合参考,覆盖预录制/实时转录、音频智能功能等高频刚需场景
- 内容详实,包含工作流、决策指导、常见陷阱和验证清单,显著提升开发者集成效率
亮点
- 触发词精准完整,明确作为通用兜底参考或能力概览使用,边界清晰
待提升项
-
文档较长 原报告严重程度:轻微
主文档约 450 行,虽未超限但建议拆分为多文件提升可维护性
改进建议:考虑将部分内容(如音频格式、限制、资源链接)移至独立参考文件
亮点
- Phase/步骤清晰,含端到端示例和完整 frontmatter 元数据
亮点
- 工具来源明确,参数说明详细,覆盖主要异常场景和常见陷阱
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
-
账号、密钥或授权
使用专用、最小权限账号,不把密钥粘贴到公开内容或命令日志;核对接收数据的服务与租户。
主文档提及 · 第 56, 206 行
文档引用的域名或地址
这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。
- api.gladia.io
- docs.gladia.io
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。