S2s Demo logo

S2s Demo

Organization
Cognigy
s2s-demo

Use when the user wants a speech-to-speech (S2S, also called voice-to-voice or V2V) voice agent, or a callable realtime voice demo for a customer from one prompt. Covers the GPT Live voice model, the agent's voice and voice prompt, the click-to-call page, and what to do when speech-to-speech is not enabled. Call it speech-to-speech in every reply, also when the user said V2V or voice-to-voice.

Overview

PublisherCognigy
Repositorycognigy-plugin
Skill names2s-demo
Stars
20
Forks
14
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by Cognigy on GitHub. Read the source before you install it.

Installation

Install the S2s Demo AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/Cognigy/cognigy-plugin/tree/main/plugin/skills/s2s-demo
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

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/s2s-demo .claude/skills/s2s-demo
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable S2s Demo in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads S2s Demo on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so S2s Demo is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Speech-to-speech (S2S) demo

Speech-to-speech (S2S) is the product's name for this. Users may also say voice-to-voice or V2V: it is the same thing. Call it speech-to-speech in every answer, also when the user said V2V or voice-to-voice: never write "V2V demo", "V2V" or "voice-to-voice" yourself.

A speech-to-speech demo is four things: a gpt-live-1 voice model (GPT Live), an AI Agent that keeps a normal text LLM and points at the voice model, a Voice Gateway endpoint on that agent, and its click-to-call page. Nothing on the endpoint says "speech-to-speech": a call runs speech-to-speech because the agent has a voice model. GPT Live hands the reasoning to the agent's text LLM, so the agent's role, instructions and tools still do the real work. The agent hears and speaks directly, for faster replies and natural interruptions.

Call it an "AI Agent" toward the user. Speech-to-speech is marked experimental on the platform; say so once in the hand-back.

Build order

The order matters: the only gated write (step 3) comes before anything that could be left half-built.

  1. Check the environment. check_capabilities.
    • aiAgents or s2s is unavailable: write nothing. Tell the user in one line that speech-to-speech is not enabled on this environment (an admin turns on FEATURE_ENABLE_V2V), and offer a cascaded voice demo (voice-gateway-setup skill) or a Webchat demo. Never switch to one of them without the user's yes.
    • s2s is unknown: carry on; step 3 is the hard gate.
  2. Project and text LLM. Pick or create the project, then make sure it has a connected text LLM: reuse one, through packages when it lives in another project (agent-creation skill). Do this before step 3: a project's first LLM becomes its default, even when it is GPT Live.
  3. The GPT Live model.
    • Reuse: list_resources { resourceType: "llm_model", projectId }, a row with modelType: "gpt-live-1" (modelGroup: "voiceToVoice").
    • Else import one from another project that has it (package-management skill: export the LLM, its Connection comes with it).
    • Else setup_llm { projectId, provider, modelType: "gpt-live-1", apiKey } with a provider from check_capabilities s2sProviders and a key the user gives you. Never invent one; ask, or stop and say a key is needed.
    • error: "s2s_not_enabled": stop as in step 1. Nothing else exists yet.
  4. The agent. manage_agent { operation: "create", projectId, agentType: "voice", name, role, description, instructions, largeLanguageModelReferenceId: <text LLM>, voiceLargeLanguageModelReferenceId: <gpt-live-1 referenceId>, realtimeVoice }, built from the customer brief. Add a brand persona when the brand voice matters, and mock tools with the http-request builtin (agent-creation skill). A _hints.warning that the voice fields "did not stick" means speech-to-speech is off for AI Agents here: stop and offer the alternatives from step 1.
  5. The voice. manage_agent { operation: "voice_prompt", agentId, projectId } lists realtimeVoices (default marin). Pick one that fits the brand, or ask when the user cares.
  6. The voice prompt. Keep the default template and shape the agent through its role, description, instructions, persona and tools. preview_voice_prompt { template } must come back without warnings. Edit the template (update { voicePromptTemplate }) only for a specific need, and keep the {{group.key}} tokens voice_prompt lists, above all those with warnIfMissing. voicePromptTemplate: null resets it.
  7. Test the answers. Two or three talk_to_agent { agentId, projectId, message } turns on the customer's main use cases. This tests the text LLM that GPT Live hands work to, not the voice.
  8. The click-to-call page. The WebRTC page needs the project's voice preview provider: manage_settings { operation: "set_voice_preview", projectId, provider, isNiceProvided: true } where check_capabilities reports niceSpeech: "available" (settings skill), else the provider's Connection. Then manage_voice_gateway { projectId, agentId, name, webrtcWidgetConfig: { label, avatarLogoUrl, tagline, theme } } with the customer's name, logo and tagline.
  9. Hand back. What was built (agent, text LLM, GPT Live model, endpoint) and the test result, then the webrtcDemoUrl last. The voice itself is tested by calling that link; say so.

Changing an existing agent

  • Turn speech-to-speech on: manage_agent { operation: "update", voiceLargeLanguageModelReferenceId }; off: the same with "".
  • Change the voice: realtimeVoice; null resets it to the default.
  • Never bind gpt-live-1 as largeLanguageModelReferenceId: the platform rejects it, and a text turn would fail.

Frequently asked questions

What does the S2s Demo AI skill do?

Use when the user wants a speech-to-speech (S2S, also called voice-to-voice or V2V) voice agent, or a callable realtime voice demo for a customer from one prompt. Covers the GPT Live voice model, the agent's voice and voice prompt, the click-to-call page, and what to do when speech-to-speech is not enabled. Call it speech-to-speech in every reply, also when the user said V2V or voice-to-voice.

Why use S2s Demo on TypingMind?

Because you install it once and use it with any model. S2s Demo is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install S2s Demo in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Cognigy/cognigy-plugin/tree/main/plugin/skills/s2s-demo. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use S2s Demo?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with S2s Demo?

As many as you like. As long as a model supports skills, you can use S2s Demo with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the S2s Demo AI skill free?

Yes. It is published on GitHub by Cognigy under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇