360 Secure SkillHub
360 安全技能中心

Sense Audio

核心功能涵盖SenseAudio开放平台TTS、ASR、实时Agent、视频生成等API的全流程集成指导,含请求构建、响应解析、生产加固等环节。典型场景为用户需开发、调试、优化该平台的API调用、事件流及生产排障。输出含对应协议的最小请求示例、生产就绪代码、错误处理及约束说明,遵循先基础后进阶的逻辑,保障实现安全可靠。

scikkk
scikkk
热度 51.80
最近更新 2026-05-11 17:31:25
分类:开发依赖:纯提示词应用场景:API 集成 / 调试排错 / 代码生成

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add senseaudio
Metadata
name
senseaudio-open-platform
description
Integration guide for SenseAudio Open Platform APIs, including TTS (sync/SSE/WebSocket), ASR (HTTP/WebSocket), realtime Agents, video generation/storyboard, and voice clone usage constraints. Use this whenever the user asks to build, debug, or optimize any SenseAudio API call, event flow, request schema, response parsing, or production error handling.

SenseAudio Open Platform

Use this skill for implementation work around api.senseaudio.cn and wss://api.senseaudio.cn.

Quick Routing

  • TTS text-to-speech: read references/tts.md
  • ASR speech recognition and audio analysis: read references/asr.md
  • Realtime agent session lifecycle: read references/agent.md
  • Video generation and storyboard APIs: read references/video.md
  • Voice plan levels and clone constraints: read references/voice.md

Load only the relevant reference file(s) for the user task.

Default Workflow

  1. Confirm capability and protocol:
  • TTS: HTTP sync, SSE stream, or WebSocket stream.
  • ASR: HTTP file transcription or WebSocket realtime stream.
  • Agent: REST lifecycle plus external realtime media channel.
  • Video: upload/create/poll/storyboard pipeline.
  1. Build a minimal valid request first:
  • Add Authorization: Bearer <API_KEY>.
  • Set required fields only.
  • Validate model and endpoint compatibility.
  1. Add advanced options only when asked:
  • Voice tuning, dictionary, translation, diarization, timestamps, storyboard edits.
  1. Parse responses safely:
  • Check status fields before using payload data.
  • For TTS, decode hex audio to bytes before saving or playback.
  • For streams, aggregate chunks and finalize on terminal event/status.
  1. Add production hardening:
  • Timeout and retry strategy for transient failures.
  • Explicit handling of auth, quota, parameter, and not-found errors.
  • Structured logs with trace_id or session identifiers when available.

Implementation Rules

  • Keep API keys in environment variables, never hardcode secrets.
  • Prefer curl first for reproducibility, then provide language SDK code.
  • For WebSocket flows, enforce event ordering from the reference docs.
  • Keep examples copy-paste runnable.
  • If user provides invalid parameter combinations, explain the exact fix.

Output Checklist

When producing implementation output, include:

  1. Chosen endpoint and protocol.
  2. Minimal request example.
  3. One production-ready version (language requested by user).
  4. Error handling and response parsing notes.
  5. Any model-specific constraints that apply.