Logo: S2s Demo

S2s Demo

Organisatioun
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.

Iwwersiicht

EditeurCognigy
Repositorycognigy-plugin
Skill-Numms2s-demo
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 S2s Demo 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/s2s-demo
  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/s2s-demo .claude/skills/s2s-demo
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert S2s Demo 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 S2s Demo automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass S2s Demo 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.

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.

Heefeg gestallte Froen

Wat mécht de KI-Skill 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.

Firwat S2s Demo op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. S2s Demo 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 S2s Demo an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/Cognigy/cognigy-plugin/tree/main/plugin/skills/s2s-demo 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 S2s Demo 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 S2s Demo benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir S2s Demo 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 S2s Demo 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 👇