Token导航 LogoToken导航

Agent Skill · 开发

sinch-voice-api(sinch voice API 文档)

用于辅助 API 设计、接口文档、请求响应结构和服务集成说明。它适合让 Agent 梳理 endpoint、生成 OpenAPI 草稿、检查字段命名、整理错误码或辅助前后端联调。使用时需要确认真实业务语义、鉴权方式、分页和错误处理规则;涉及生成接口文档时,应避免凭空补字段,最好从现有代码、schema 或接口样例中提取事实。

sinch-voice-api 是开发类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描有未通过项,按安装量在开发类的 21,746 个 Skill 里排第 12,110。

总安装 1,435周安装 61GitHub Stars 7下载 503核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:sinch-voice-api(sinch voice API 文档)
来源仓库:https://github.com/sinch/skills
仓库路径:skills/sinch-voice-api
安装命令:
npx skills add https://github.com/sinch/skills --skill sinch-voice-api
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/sinch/skills --skill sinch-voice-api

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

用于辅助 API 设计、接口文档和请求响应结构梳理。适合在 Codex、Claude、Cursor、Gemini CLI 中生成 OpenAPI 草稿或检查字段命名。使用时需确认业务语义、鉴权方式和错误处理规则,避免凭空补字段。建议从现有代码、schema 或接口样例中提取事实,确保信息准确。

安装前请核实权限范围和维护状态,避免触发不必要的网络或文件操作。

来源仓库内路径:skills/sinch-voice-api

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/sinch/skills --skill sinch-voice-api;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

sinch-voice-api 怎么安装?

在终端执行 npx skills add https://github.com/sinch/skills --skill sinch-voice-api。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

sinch-voice-api 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

sinch-voice-api 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

sinch-voice-api 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

sinch-voice-api 用的人多吗?

公开数据是累计安装 1,435 次,近一周安装 61 次,下载 503 次,GitHub 7 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

sinch-voice-api 安全吗?

第三方扫描有未通过项,风险较高。除非你确认过源码,否则不建议直接安装到常用环境。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理开发类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

开发类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
skill-vetter

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
sinch-voice-api

sinch voice API 文档 · 本页

1,4357需要联网未明确未通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Sinch Voice API

Overview

The Sinch Voice API lets you make, receive, and control voice calls programmatically via REST. It uses SVAML (Sinch Voice Application Markup Language) to define call flows through callback events.

Agent Instructions

Before generating code, you MUST ask the user:

  1. Approach — SDK or direct API calls (curl/fetch/requests)?

- Node.js SDK Reference - Python SDK Reference - Java SDK Reference - .NET SDK Reference

  1. Language — Node.js, Python, Java,.NET, curl?

When generating SDK code, fetch the corresponding SDK reference page for accurate method signatures, or use the bundled examples:

When generating direct API calls, use the Voice API Reference (Markdown) for request/response schemas.

Getting Started

Authentication

See the sinch-authentication skill. The Voice API uses Application Key + Application Secret (not project-level OAuth2).

  • Basic Auth: Authorization: Basic base64(APPLICATION_KEY:APPLICATION_SECRET)
  • Signed Requests (production): HMAC-SHA256 signing. See Authentication Guide.

Base URLs

RegionBase URL
Global (default)https://calling.api.sinch.com
North Americahttps://calling-use1.api.sinch.com
Europehttps://calling-euc1.api.sinch.com
Southeast Asia 1https://calling-apse1.api.sinch.com
Southeast Asia 2https://calling-apse2.api.sinch.com
South Americahttps://calling-sae1.api.sinch.com

Configuration endpoints (numbers, callbacks) use: https://callingapi.sinch.com

SDK Installation

See sinch-sdks for installation and client initialization across all languages.

First API Call: TTS Callout

curl -X POST \
  "https://calling.api.sinch.com/calling/v1/callouts" \
  -u "{APPLICATION_KEY}:{APPLICATION_SECRET}" \
  -H "Content-Type: application/json" \
  -d '{
    "method": "ttsCallout",
    "ttsCallout": {
      "destination": { "type": "number", "endpoint": "+14045005000" },
      "cli": "+14045001000",
      "locale": "en-US",
      "text": "Hello! This is a test call from Sinch."
    }
  }'

Node.js SDK:

import { SinchClient } from "@sinch/sdk-core";

const sinch = new SinchClient({
  applicationKey: "{APPLICATION_KEY}",
  applicationSecret: "{APPLICATION_SECRET}",
});

const response = await sinch.voice.callouts.tts({
  ttsCalloutRequestBody: {
    destination: { type: "number", endpoint: "+14045005000" },
    cli: "+14045001000",
    locale: "en-US",
    text: "Hello! This is a test call from Sinch.",
  },
});
console.log("Call ID:", response.callId);

For more examples, see Callouts Reference or bundled examples.

Key Concepts

SVAML (Sinch Voice Application Markup Language)

SVAML controls call flow. Every SVAML response has:

  • instructions (array): Multiple tasks — play audio, record, set cookies
  • action (object): Exactly ONE routing/control action

Full reference: SVAML Actions | SVAML Instructions | Bundled SVAML Reference

Actions (one per response)

ActionDescription
hangupTerminate the call
continueContinue call setup (ACE response to proceed without rerouting)
connectPstnConnect to PSTN number. Supports amd for Answering Machine Detection
connectMxpConnect to Sinch SDK (in-app) endpoint
connectConfConnect to conference room by conferenceId
connectSipConnect to SIP endpoint
connectStreamConnect to a WebSocket server for real-time audio streaming (closed beta — contact Sinch to enable)
runMenuIVR menu with DTMF collection (supports enableVoice for speech input)
parkPark (hold) the call with looping prompt

Instructions (multiple per response)

InstructionDescription
playFilesPlay audio files, TTS via #tts[], SSML via #ssml[]
saySynthesize and play text-to-speech
sendDtmfSend DTMF tones
setCookiePersist key-value state across callback events in the session
answerAnswer the call (sends a SIP 200 OK to the INVITE, which starts billing). Required before playing prompts on unanswered calls
startRecordingBegin recording. Supports transcriptionOptions for auto-transcription
stopRecordingStop an active recording

Callback Events

EventTriggerSVAML Response
ICECall received by Sinch platformYes
ACECall answered by calleeYes
DiCECall disconnectedNo (fire-and-forget, logging only)
PIEDTMF/voice input from runMenuYes
NotifyNotification (e.g., recording finished)No

See Callbacks Reference for event schemas, or bundled callbacks reference for full field tables and JSON examples.

Callout Types

MethodUse Case
ttsCalloutCall and play synthesized speech. Supports text or advanced prompts (#tts[], #ssml[], #href[])
conferenceCalloutCall and connect to a conference room
customCalloutFull SVAML control with inline ICE/ACE/PIE

Callout flags: enableAce (default false), enableDice (default false), enablePie (default false) control which callbacks fire.

REST Endpoints

Paths starting with /calling/v1/ use the regional base URL from the table above. Paths starting with /v1/configuration/ use https://callingapi.sinch.com.

MethodEndpointDescription
POST/calling/v1/calloutsPlace a callout (TTS, conference, or custom)
PATCH/calling/v1/calls/id/{callId}Update in-progress call with SVAML (PSTN/SIP only)
GET/calling/v1/calls/id/{callId}Get call info
PATCH/calling/v1/calls/id/{callId}/leg/{callLeg}Manage a call leg (PlayFiles/Say only)
GET/calling/v1/conferences/id/{conferenceId}Get conference info
DELETE/calling/v1/conferences/id/{conferenceId}Kick all participants
PATCH/calling/v1/conferences/id/{conferenceId}/{callId}Mute/unmute/hold participant
DELETE/calling/v1/conferences/id/{conferenceId}/{callId}Kick specific participant
GET/v1/configuration/numbersList numbers and capabilities
POST/v1/configuration/numbersAssign numbers to an application
DELETE/v1/configuration/numbersUn-assign a number
GET/POST/v1/configuration/callbacks/applications/{applicationkey}Get/update callback URLs

Common Patterns

IVR Menu (SVAML)

{
  "instructions": [
    { "name": "setCookie", "key": "step", "value": "ivr" }
  ],
  "action": {
    "name": "runMenu",
    "mainMenu": "main",
    "menus": [{
      "id": "main",
      "mainPrompt": "#tts[Press 1 for sales or 2 for support.]",
      "options": [
        { "dtmf": 1, "action": "return(sales)" },
        { "dtmf": 2, "action": "return(support)" }
      ]
    }]
  }
}

Conference with Recording

{
  "instructions": [
    { "name": "startRecording", "options": { "notificationEvents": true } }
  ],
  "action": {
    "name": "connectConf",
    "conferenceId": "myRoom",
    "moh": "ring"
  }
}

PSTN Forward with AMD

{
  "action": {
    "name": "connectPstn",
    "number": "+14045009000",
    "cli": "+14045001000",
    "maxDuration": 3600,
    "amd": { "enabled": true }
  }
}

Executable Scripts

Bundled Node.js scripts (no external dependencies, uses Basic Auth):

export SINCH_APPLICATION_KEY="{APPLICATION_KEY}"
export SINCH_APPLICATION_SECRET="{APPLICATION_SECRET}"
export SINCH_VOICE_REGION="global"  # optional
ScriptDescriptionExample
make_tts_call.cjsTTS calloutnode scripts/make_tts_call.cjs --to +14045005000 --text "Hello"
make_conference_call.cjsConference calloutnode scripts/make_conference_call.cjs --to +14045005000 --conference-id myRoom
get_call_info.cjsGet call detailsnode scripts/get_call_info.cjs --call-id CALL_ID
list_numbers.cjsList voice numbersnode scripts/list_numbers.cjs

Gotchas and Best Practices

  1. Callback URL must be publicly accessible. Use ngrok for local dev. Configure in Dashboard under Voice app settings.
  2. ONE action per SVAML response. Multiple instructions are fine. Chain callbacks for sequential actions (ICE → ACE → PIE).
  3. ACE not sent for in-app destinations. ACE is not issued when destination type is username, only for PSTN/SIP. Setting enableAce: true has no effect for in-app destinations.
  4. DiCE is fire-and-forget. Informational only. No SVAML response expected. Use for logging/cleanup.
  5. Regional endpoints matter. Wrong region increases latency. Conference rooms have regional scope — force all participants to the same region for cross-region conferences.
  6. Instruction ordering matters. Array order = execution order. Place answer before playFiles; place startRecording before the connecting action.
  7. Max call duration: 14400 seconds (4 hours). Set maxDuration on connectPstn/connectSip for shorter limits.
  8. Validate callback signatures in production. HMAC-SHA256 signature in Authorization header. See Callback Signing.
  9. setCookie for state. Carries key-value pairs across ICE, ACE, PIE, DiCE within a call session.
  10. connectMxp does not support recording. startRecording/stopRecording instructions are ignored with connectMxp.
  11. runMenu defaults. barge: true (input accepted during prompt). timeoutMills: 5000 ms.
  12. AMD on connectPstn. amd: {enabled: true, async: true/false} for answering machine detection.
  13. startRecording transcription. transcriptionOptions: {enabled: true, locale: "en-US"} for auto-transcription.
  14. Conference DTMF options. conferenceDtmfOptions on conferenceCallout/connectConf with modes: ignore (default), forward, detect (sends PIE).
  15. cli is required for TTS callouts to connect. The API accepts a TTS callout without a cli parameter and returns a call ID, but the call will never reach the destination. The cli is the number displayed as the incoming caller — use your verified number or your Dashboard-assigned number, in E.164 format (e.g., "+14151112223333"). To test, register on the Sinch Dashboard and use the free number assigned to your app. See Assign your number.

Links

平台分布

Codex

33.43%
按下载量换算168

Claude

30.19%
按下载量换算152

Cursor

19.16%
按下载量换算96

Gemini CLI

9.79%
按下载量换算49

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

未通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills