SuperAPI AI 工具集

deepgram-js-audio-intelligence

数据与分析

查看项目

更新于 10-15 20:35

技能介绍

用途:在 JavaScript/TypeScript 项目中调用 Deepgram 音频智能分析,让音频在返回转写文本的同时附带分析结果。主要能力:支持 summarize、topics、intents、sentiment、detect_language、detect_entities、diarize、redact 等分析标志,以及 custom_topic、custom_topic_mode、custom_intent、custom_intent_mode 等自定义参数;标准转写参数如 model、language、encoding、sample_rate、punctuate、smart_format、utterances、paragraphs、multichannel 仍然适用。使用方式:REST 是主要路径,先初始化客户端,再调用 transcribeUrl 等方法并传入分析参数;WebSocket 路径仅支持部分功能,如 diarize、redact、detect_entities。认证使用环境变量 DEEPGRAM_API_KEY。限制:多数分析标志仅 REST 支持,当前 WSS 连接参数不暴露 topics、intents、sentiment、summarize、detect_language;summarize 在 /v1/listen 上带版本,示例指向 v2;redact 实际可传数组;Nova-3 偏置应使用 keyterm 而非 keywords;说话人分离质量受音频质量与时长影响。若只需转写、文本分析、Flux 轮次或完整语音代理,应改用对应技能。仓库示例包括 examples/22-transcription-advanced-options.ts 等。