شعار Voice Gateway Setup

Voice Gateway Setup

مؤسسة
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.

نظرة عامة

الناشرCognigy
المستودعcognigy-plugin
اسم المهارةvoice-gateway-setup
النجوم
20
التفريعات
14
الملفات المرفقة
تعليمات فقط
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • مكتفية بذاتها

    كل ما يحتاجه النموذج موجود في التعليمات — لا ملفات إضافية لمزامنتها.

  • مفتوحة المصدر

    نشرها Cognigy على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Voice Gateway Setup في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/Cognigy/cognigy-plugin/tree/main/plugin/skills/voice-gateway-setup
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

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
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Voice Gateway Setup في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج مهارة Voice Gateway Setup تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Voice Gateway Setup بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تستهلك تعليمات المهارة أي توكنات ما دامت المهارة غير مستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

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

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي 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.

لماذا تستخدم Voice Gateway Setup على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Voice Gateway Setup عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Voice Gateway Setup في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/Cognigy/cognigy-plugin/tree/main/plugin/skills/voice-gateway-setup. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Voice Gateway Setup؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Voice Gateway Setup؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Voice Gateway Setup معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Voice Gateway Setup مجانية؟

نعم. نشرها Cognigy على GitHub بموجب ترخيص MIT. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا الإخبارية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇