SenseAudio ASR
Use this skill for all SenseAudio speech recognition tasks.
Credential source: read the API key from SENSEAUDIO_API_KEY and send it only in the Authorization: Bearer ... header.
Do not place API keys in query parameters, logs, transcripts, or saved examples.
Read First
Workflow
- 1. Pick recognition mode:
- - HTTP file transcription for offline audio.
- WebSocket for realtime streaming microphone/audio chunks.
- Audio analysis for noise and quality checks before recognition.
- Records query for recent recognition history lookup.
- 2. Choose model by feature needs:
- - Lite for low-cost basic transcription.
- ASR for streaming, translation, diarization, sentiment, and timestamps.
- Pro when diarization plus explicit
max_speakers control is needed. - DeepThink for streaming, translation, and intelligent editing; do not send
language, diarization, sentiment, timestamps, ITN, or punctuation controls.
- 3. Build minimal request:
- - Required auth, file/audio format, model.
- Add optional controls only when needed.
- Keep uploaded files at or below 10MB; split longer audio before sending.
- 4. Validate compatibility:
- - Check model-parameter support before sending.
- Enforce WS
pcm / 16000Hz / mono requirements. - For HTTP
stream=true, expect SSE text deltas only, not structured verbose fields.
- 5. Parse robustly:
- - Handle JSON/text/verbose/SSE forms.
- Handle WS terminal events and failures.
- Treat returned
audio URLs, api_key, session_id, and trace_id as sensitive operational data.
SenseAudio ASR
使用此技能处理所有SenseAudio语音识别任务。
凭证来源:从SENSEAUDIOAPIKEY读取API密钥,仅通过Authorization: Bearer ...标头发送。
请勿将API密钥放入查询参数、日志、转录文本或保存的示例中。
先阅读
工作流程
- 1. 选择识别模式:
- HTTP文件转录:用于离线音频。
- WebSocket:用于实时流式麦克风/音频片段。
- 音频分析:在识别前进行噪声和质量检查。
- 记录查询:用于查看最近的识别历史。
- 2. 根据功能需求选择模型:
- Lite:用于低成本基础转录。
- ASR:支持流式、翻译、说话人分离、情感分析和时间戳。
- Pro:需要说话人分离并显式控制max_speakers时使用。
- DeepThink:支持流式、翻译和智能编辑;请勿发送language、说话人分离、情感分析、时间戳、ITN或标点控制参数。
- 3. 构建最小请求:
- 必需的认证信息、文件/音频格式、模型。
- 仅在需要时添加可选控制参数。
- 上传文件保持在10MB或以下;发送前对较长音频进行分割。
- 4. 验证兼容性:
- 发送前检查模型参数支持情况。
- 强制执行WebSocket的pcm/16000Hz/单声道要求。
- 对于HTTP的stream=true,仅期望SSE文本增量,而非结构化详细字段。
- 5. 稳健解析:
- 处理JSON/文本/详细/SSE格式。
- 处理WebSocket终端事件和失败情况。
- 将返回的audio URL、api
key、sessionid和trace_id视为敏感操作数据。