Logo: Voice Gateway Setup

Voice Gateway Setup

Organisatioun
Cognigy
voice-gateway-setup

Use when the user wants to set up a voice agent (cascaded or speech-to-speech, S2S, also called voice-to-voice or V2V), choose its voice or speech provider (TTS/STT, NiCE-provided speech), change its call behaviour (greeting, barge-in, silence), or create a Voice Gateway endpoint with WebRTC for browser-based voice interaction.

Iwwersiicht

EditeurCognigy
Repositorycognigy-plugin
Skill-Nummvoice-gateway-setup
Stären
20
Forks
14
Matgeliwwert Dateien
Nëmmen Instruktiounen
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    Cognigy huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Voice Gateway Setup an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/Cognigy/cognigy-plugin/tree/main/plugin/skills/voice-gateway-setup
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Cognigy/cognigy-plugin.git /tmp/cognigy-plugin
mkdir -p .claude/skills
cp -r /tmp/cognigy-plugin/plugin/skills/voice-gateway-setup .claude/skills/voice-gateway-setup
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Voice Gateway Setup an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Voice Gateway Setup automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Voice Gateway Setup net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Voice Gateway Setup Guide

Deploy an AI Agent as a voice-enabled endpoint with WebRTC support. Users can talk to the agent directly in their browser.

Where check_capabilities reports aiAgents: "available", follow AI Agents below. The rest of this guide is for legacy AI Agents (built with create_ai_agent) and other flows.

AI Agents

An AI Agent's speech and call behaviour live on the agent itself, in its voice_settings (manage_agent_components { component: "voice_settings" }). Nothing to set there means the defaults: the call takes its speech from the endpoint, then the project's default speech credential, then NiCE-provided speech.

  1. Check the environment. check_capabilities → niceSpeech: "available" means the organisation has NiCE-provided speech: no Connection and no customer key needed. s2s says whether speech-to-speech (S2S, GPT Live) is on, and s2sProviders which LLM providers can run it.
  2. Speech-to-speech first. Speech-to-speech (S2S) is the product's name; users may say voice-to-voice or V2V for the same thing. Always call it speech-to-speech yourself, also when the user said V2V or voice-to-voice, and never echo their term. It responds faster and sounds more natural, so a new voice agent gets it whenever possible. Never present speech recognition and synthesis as a fallback or a downgrade. The platform ships no speech-to-speech model: it needs one the user brought.
    • s2s is unavailable: skip this step and never mention speech-to-speech.
    • The project has a gpt-live-1 model (modelGroup: "voiceToVoice"): nothing to do, manage_agent create binds it for a voice agent.
    • Another project has one: you see it in the agent-creation skill's LLM scan (shared step 4), which also runs for a voice agent whose project has no such model. Ask once: "Project X has a speech-to-speech (S2S) model. Copy it here?" The copy carries that model's API key into this project, which may belong to another team. On yes, copy it with packages (shared step 5, the LLM alone; its Connection comes with it) before manage_agent create, or set it afterwards with manage_agent { operation: "update", voiceLargeLanguageModelReferenceId }. On no, carry on with speech.
    • The user named a speech setup (e.g. "use Deepgram"): pass voiceLargeLanguageModelReferenceId: "" on create, and don't offer speech-to-speech.
    • Otherwise the agent uses speech recognition and synthesis (steps 4-6). The create result's _hints.hint then carries one line offering speech-to-speech: make it the last paragraph of the build summary, once, word for word, with no label or bullet. That line is the only mention: don't explain why the agent isn't speech-to-speech ("the project has no speech-to-speech model, so…"), and don't use the line when you already asked about a copy.
  3. The agent. manage_agent { operation: "create", agentType: "voice", ... } (agent-creation skill), or an existing one from list_resources { resourceType: "agent", projectId }. With a voice model, read the s2s-demo skill for the voice and the voice prompt.
  4. Pick the speech. A new voice agent without a voice model already has it: manage_agent create sets NiCE-provided speech in the project's language when the organisation has it, and returns it as speech. With several NiCE-provided vendors, TTS is Deepgram and STT is NiCE; when Deepgram has no voice for the language, the next one with a voice. Mention the speech in the build summary, and only change it when the user asks. To change it: list_resources { resourceType: "speech_provider", projectId }, then prefer, in this order:
    • a niceProvided: true row, Deepgram for TTS and NiCE for STT, when the user has no preference;
    • the project's own credential (niceProvided: false, status: "ok");
    • otherwise ask the user. Never invent a credential, vendor or voice id. A row serves TTS only with tts: true and STT only with stt: true (the nice vendor is STT only).
  5. Set the agent's speech.
    json
    {
      "operation": "update",
      "component": "voice_settings",
      "projectId": "<24-char hex>",
      "agentId": "<24-char hex>",
      "config": {
        "ttsCredentialReferenceId": "<speech_provider referenceId>",
        "ttsLanguage": "en-US",
        "sttCredentialReferenceId": "<speech_provider referenceId>",
        "sttLanguage": "en-US"
      }
    }
    The credential also fills ttsVendor/ttsLabel (or sttVendor/sttLabel). Without ttsVoice the result lists voices for that language: pick one (ask the user when it matters) and update ttsVoice. Each block counts only when complete: TTS needs vendor, voice and language; STT needs vendor and language. An incomplete block is ignored on calls, and the result warns about it.
  6. Call behaviour (optional), same config:
    KeyMeaning (default)
    greetingMode, greetingTextwho speaks first: agent (default), static speaks greetingText, none waits
    bargeInOnSpeech, minWordsToInterruptcaller can interrupt (on); words needed (1; 2-3 stops "uh-huh" from cutting in)
    promptOnSilence, silenceTimeoutSeconds, silenceRetriesre-prompt a silent caller (on, 8 s, 2 times)
    thinkingSound, backgroundSoundtyping_loop while thinking (default), none; background none or hold_music
    maxUtteranceCharslongest spoken reply (240)
    get shows every key and its value; delete resets the agent to the defaults.
  7. Voice preview for the click-to-call page. The WebRTC client needs the project's voice preview provider, for AI Agents too: manage_settings { operation: "set_voice_preview", projectId, provider: "microsoft", isNiceProvided: true } with a vendor that has a niceProvided row, else the provider's Connection (settings skill).
  8. The endpoint. manage_voice_gateway { projectId, agentId, name, webrtcWidgetConfig } → show webrtcDemoUrl. Don't try to set speech on the endpoint for an AI Agent: the agent's voice_settings are the place.
  9. Voice tools. Let the agent end calls: manage_agent_components { operation: "create", component: "tool", projectId, agentId, config: { builtinSlug: "voice-hangup", ... } }; add voice-transfer when calls get handed to a person.
  10. Test. talk_to_agent { agentId, projectId } tests the answers as text only. The voice itself is tested by calling webrtcDemoUrl; say so to the user.

Legacy AI Agents and flows

Prerequisites

  1. A Project — use list_resources { resourceType: "project" } to find one, or let create_ai_agent create one automatically.
  2. A Flow — the conversation logic the voice endpoint connects to. Use list_resources { resourceType: "flow", projectId } to find existing flows.
  3. An LLM — the agent needs an LLM to generate responses. Use setup_llm if not configured.

Quick Start

1. Create a Voice Gateway endpoint
json
{
  "projectId": "<24-char hex>",
  "flowId": "<flow referenceId>",
  "name": "My Voice Agent"
}

This automatically:

  • Creates a voiceGateway2 endpoint
  • Provisions a WebRTC client
  • Returns a webrtcDemoUrl the user can open in a browser
2. Customize the WebRTC widget (optional)
json
{
  "projectId": "<24-char hex>",
  "flowId": "<flow referenceId>",
  "name": "My Voice Agent",
  "webrtcWidgetConfig": {
    "label": "Support Agent",
    "theme": "AI_PURPLE",
    "transcription": { "enabled": true },
    "tagline": "How can I help you today?",
    "avatarLogoUrl": "https://example.com/avatar.png"
  }
}
3. Update an existing endpoint
json
{
  "endpointId": "<24-char hex>",
  "webrtcWidgetConfig": {
    "theme": "CLEAN_WHITE"
  }
}

Create vs update:

  • Omit endpointId → a new voiceGateway2 endpoint is always created (projectId + flowId required). The tool never auto-detects an existing endpoint.
  • Pass endpointId → that endpoint is updated and the settings you pass are merged into its existing configuration; everything else is preserved. Find it first with list_resources { resourceType: "endpoint", projectId }.

WebRTC Widget Themes

ThemeDescription
DARK_MODEDark background (default)
CLEAN_WHITELight/white background
AI_PURPLEPurple accent theme

URLs in the Response

FieldPurpose
webrtcDemoUrlOpen in browser to talk to the agent — always show this to users
_integration.wsEndpointUrlWebSocket URL for programmatic/embedded use
_integration.embeddingSnippetHTML code to embed the voice widget on a website

Present webrtcDemoUrl as a clickable link after every successful create or update — do not send the user to the Cognigy UI to find it. Mention the _integration fields only when the user asks about embedding or deploying to a website.

Embedding on a Website

Copy the embeddingSnippet from the response into your HTML page. It loads the Cognigy WebRTC widget and connects to the voice endpoint automatically.

Typical Full Workflow (legacy)

  1. create_ai_agent → get flowId and projectId
  2. setup_llm → configure LLM for the project
  3. manage_voice_gateway { projectId, flowId } → get webrtcDemoUrl
  4. Share the URL with the user

Heefeg gestallte Froen

Wat mécht de KI-Skill Voice Gateway Setup?

Use when the user wants to set up a voice agent (cascaded or speech-to-speech, S2S, also called voice-to-voice or V2V), choose its voice or speech provider (TTS/STT, NiCE-provided speech), change its call behaviour (greeting, barge-in, silence), or create a Voice Gateway endpoint with WebRTC for browser-based voice interaction.

Firwat Voice Gateway Setup op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Voice Gateway Setup besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Voice Gateway Setup an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/Cognigy/cognigy-plugin/tree/main/plugin/skills/voice-gateway-setup an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Voice Gateway Setup benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Voice Gateway Setup benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Voice Gateway Setup domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Voice Gateway Setup gratis?

Jo. Cognigy huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇