Configures realtime speech-to-speech voice for Orchard Core using CrestApps AI Chat modules. Covers WebRTC, TURN, cascaded deployments, ElevenLabs, Cartesia, and live AI phone calls.
Ships in crestapps-orchardcore. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are an Orchard Core expert. Generate configuration and recipes for live spoken AI conversations in the CrestApps AI Chat and AI Chat Interactions surfaces.
CrestApps.OrchardCore.AI.Chat (AI Chat sessions and widgets) and CrestApps.OrchardCore.AI.Chat.Interactions. Both register the WebRTC transport (AddWebRtcRealtimeTransport, package CrestApps.Core.AI.WebRTC) and per-tenant Cloudflare TURN (AddTenantCloudflareRealtimeTurn). No extra feature is needed.realtime capability in Properties.AIDeploymentMetadata.Features, or a Cascaded Realtime deployment. See orchardcore-ai-model-capabilities.IRealtimeOrchestrator.{ "steps": [...] }.For a surface in Conversation mode:
realtime;Because step 3 accepts any realtime-capable deployment, a site with one uses it even with nothing named. To keep the cascade, have no deployment declare realtime. A named conversation deployment that cannot run realtime is reported rather than silently replaced.
{
"steps": [
{
"name": "AIDeployment",
"Deployments": [
{
"Name": "gpt-realtime",
"ClientName": "OpenAI",
"ConnectionName": "openai",
"Properties": {
"AIDeploymentMetadata": {
"Features": [ "realtime" ]
}
}
}
]
},
{
"name": "AIProfile",
"Profiles": [
{
"Name": "voice-concierge",
"DisplayText": "Voice Concierge",
"Type": "Chat",
"ChatDeploymentName": "gpt-4o",
"Settings": {
"ChatModeProfileSettings": {
"ChatMode": "Conversation",
"ConversationDeploymentName": "gpt-realtime",
"VoiceName": "alloy"
}
}
}
]
}
]
}
ConversationDeploymentName empty to inherit the site default. The same field names the model of phone calls the profile answers or places, whatever its chat mode.orchardcore-ai-personas), then the default voice, then the provider default is used.ProfileTemplateMetadata.ConversationDeploymentName; naming one puts the generated profile in Conversation mode unless the template sets its own chat mode.An interaction has no chat mode. Set the Chat interactions card setting ChatInteractionChatModeSettings.ChatMode to Conversation, then name a Conversation deployment on the interaction (ChatInteraction.ConversationDeploymentName); naming one is the opt-in to speak. See orchardcore-ai-chat-interactions.
When no provider ships a speech-to-speech model, create a deployment under the Cascaded Realtime provider (ClientName CascadedRealtime, registered by CrestApps.OrchardCore.AI) that chains three deployments, which may come from different providers:
mic -> speech-to-text -> chat (tools, data sources) -> text-to-speech -> speaker
{
"steps": [
{
"name": "AIDeployment",
"Deployments": [
{
"Name": "cascaded-voice",
"ClientName": "CascadedRealtime",
"Properties": {
"AIDeploymentMetadata": {
"Features": [ "realtime" ]
},
"CascadedRealtimeMetadata": {
"SpeechToTextDeploymentName": "cartesia-ink",
"ChatDeploymentName": "gpt-4o",
"TextToSpeechDeploymentName": "elevenlabs-voice"
}
}
}
]
}
]
}
realtime (it transcribes continuously). All three names are required.realtime itself and its Voice picker lists the text-to-speech deployment's voices.Enable CrestApps.OrchardCore.ElevenLabs or CrestApps.OrchardCore.Cartesia, then add a deployment of that provider with its model name (eleven_flash_v2_5, sonic-2, ...) and its API key (stored encrypted; an optional Endpoint for regional endpoints). See orchardcore-ai-providers.
ink-2 or ink-preview can also be the cascade's speech-to-text leg (realtime transcription); ElevenLabs Scribe transcribes whole recordings only, so it cannot hear a cascade.ManageAIDeployments) picks a text-to-speech deployment whose provider has a library, searches voices by name and language, plays samples, copies a voice id to a profile or persona, and clones a voice from a recording you have the right to use.Profiles that answer or place calls (orchardcore-omnichannel-voice, orchardcore-contact-center) run on the same deployments:
el-GR listens for el) and holds the model to it (RealtimeOrchestrationRequest.SpeechLanguage). Without a language the model follows the caller.AICompletionContext.ToolNames and in OrchestrationContext.MustIncludeTools, so ordinary chats never see them.VoiceCallInvocationItems (ActivityId, CustomerNumber, ChannelEndpointId, ContactContentItemId, ContactContentType).POST /api/ai/v1/live-calls/{activityId}/profile) or the call's own tool can switch a call to another profile. On a realtime call it is a transfer to a new session of that profile, in its own voice and deployment, with the conversation so far; on a turn-based call the new profile answers from the next turn.Audio uses WebRTC when available and falls back to WebSocket (PCM over SignalR) automatically at connect time. The browser peers with the application's hub, not the provider, so any realtime provider works. Transcripts and errors stay on SignalR.
{
"OrchardCore": {
"CrestApps": {
"AI": {
"RealtimeTransport": {
"EnableWebRtc": true,
"TurnDetectionType": "semantic_vad",
"TurnDetectionEagerness": "auto",
"IdleTimeoutSeconds": 30,
"MaxSessionDurationSeconds": 300,
"EnableKnowledgeGrounding": true,
"StunUrls": [ "stun:stun.l.google.com:19302" ],
"TurnUrls": [ "turns:turn.example.com:5349" ],
"TurnSecret": "<coturn-shared-secret>",
"TurnCredentialTtlSeconds": 3600,
"IceTransportPolicy": "All"
}
}
}
}
}
| Key | Purpose |
|---|---|
EnableWebRtc | Offer WebRTC (default true). Turn off on hosts with no inbound UDP and no TURN, or every session waits out the connect timeout |
TurnDetectionType | semantic_vad (default) or server_vad; a deployment that rejects semantic detection is switched automatically |
TurnDetectionEagerness | low, medium, high or auto (default) |
IdleTimeoutSeconds | End a session with no user speech (default 30) |
MaxSessionDurationSeconds | Hard session ceiling (default 300); the chat UI shows a distinct "limit reached" message |
EnableKnowledgeGrounding | Retrieve knowledge before the model replies (default true) |
GroundingAcknowledgementDelayMs | Delay before one spoken filler while retrieval runs (default 700) |
GroundingResponseWatchdogSeconds | Answer anyway after this wait (default 15) |
StunUrls, TurnUrls | ICE servers; TURN is needed behind strict NATs or blocked UDP |
TurnSecret, TurnCredentialTtlSeconds | coturn use-auth-secret ephemeral credentials (recommended) |
TurnUsername, TurnCredential | Static TURN credentials, used only without TurnSecret |
IceTransportPolicy | All (default) or Relay |
The section is read through IShellConfiguration, so each tenant can set its own values. A tenant that declares nothing inherits the host's values; one that declares StunUrls or TurnUrls replaces the host list instead of appending. In a tenant's own App_Data/Sites/{tenant}/appsettings.json, start at CrestApps without the OrchardCore wrapper.
{
"OrchardCore": {
"CrestApps": {
"AI": {
"RealtimeTransport": {
"Cloudflare": {
"TokenId": "<turn-token-id>",
"ApiToken": "<api-token>",
"TtlSeconds": 86400
}
}
}
}
}
}
Cloudflare issues short-lived TURN credentials through an API (CloudflareTurnOptions, section CrestApps:AI:RealtimeTransport:Cloudflare). Credentials are refreshed halfway through TtlSeconds (default 86400), which is not a session limit. Each tenant can use its own Cloudflare account. Without a token, or during a Cloudflare outage, the configured StunUrls and TurnUrls are used.
| Method | AIChatHub | ChatInteractionHub |
|---|---|---|
| Start over WebSocket | StartRealtimeConversation(profileId, sessionId, audioChunks, voice, language, ...) | StartRealtimeConversation(itemId, audioChunks, voice, language, ...) |
| Start over WebRTC | StartRealtimeWebRtc(profileId, sessionId, offerSdp, ...) | StartRealtimeWebRtc(itemId, offerSdp, ...) |
| ICE | GetRealtimeIceServers, AddRealtimeIceCandidate | Same |
| Live settings | UpdateRealtimeSettings(allowInterruption, ...), UpdateRealtimeSpeechSpeed(speed) | Same |
| Stop | StopConversation | Same |
~/CrestApps.OrchardCore.AI.Chat/Realtime/Voices?deploymentName= returns the voices of a realtime deployment (empty name resolves the site default). The browser side is the vendored realtime-audio script from @crestapps/ai-chat-ui; its settings popover holds only per-device preferences (microphone, speaker, volume, language, Allow interruptions, Push-to-talk).
ChatMode.Realtime is removed. A stored "Realtime" chat mode reads as TextInput. Set ChatMode to Conversation and name the model in ConversationDeploymentName.RealtimeDeploymentName, or used a speech-to-speech model as its chat deployment, is shown with that model as its Conversation deployment and Conversation mode when read; saving persists the new shape. ProfileTemplateMetadata.RealtimeDeploymentName is obsolete but still supplies ConversationDeploymentName.realtime capability, not by a purpose.TurnUrls with credentials or Cloudflare TURN, or set EnableWebRtc to false to skip the wait.realtime and step 3 picked it; name the conversation deployment or set the site default.MaxSessionDurationSeconds.GroundingAcknowledgementDelayMs, or set EnableKnowledgeGrounding to false.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
orchard-core, realtime-voice, speech-to-speech, webrtc, turn, elevenlabs, cartesia
/crestapps-orchardcore:orchardcore-ai-realtime-voicefrom crestapps-orchardcore
npx claudepluginhub crestapps/crestapps.agentskills --plugin crestapps-orchardcore137 skills in this plugin
/orchardcore-accountsSkill for the CrestApps Orchard Core Accounts module (CrestApps.OrchardCore.Accounts) with its Account Members, Account Team, Account E-mail Domains and Account Locations features. Covers the Account type and AccountPart, the account picker and search, IAccountChildTypeRule, account page sections (AccountPageTabs, AddPageSection, Notes), members and IAccountMemberService, account invitations, the account owner and team picked from staff, e-mail domains, locations with a billing location, the account's billing profile and party members, the Accounts recipe and deployment steps, and the admin menu. Use this skill when requests mention accounts, the businesses or households records belong to, an account page tab, members, invitations, owners, domains or locations. Strong matches include AccountPart, AccountPageTabs, IAccountMemberService, IAccountInvitationService, AccountInvitation, AccountTeamPart, AccountEmailDomainsPart, IAccountEmailDomains, AccountLocationsPart and ManageAccountMembers./orchardcore-accounts-b2bSkill for the CrestApps Orchard Core Accounts B2B module (CrestApps.OrchardCore.Accounts.B2B), business selling on an Account content item. Covers B2BAccountPart and B2BAccount, buyers as account members and ship-to addresses as account locations, terms (deposit, net days, credit limit) through the account-terms tender billed to the account, the account's billing profile, purchase order numbers, quotes, price lists through IBuyerPriceProvider, order limits, approvals and budgets, OCI punchout, the account/business page and API, the PriceLists recipe and deployment steps, the B2BAccounts report source, and the move from the removed Companies module. Use this skill when requests mention B2B, wholesale or business buyers, net terms, purchase orders, price lists, order approvals or punchout. Strong matches include B2BAccountPart, B2BAccount, AccountTerms, AccountTermsTenderProvider, B2BAccountBillingProfileSource, IB2BAccountStore, PriceList, B2BPriceProvider, B2BApprovalService and ManageB2BAccounts.Other plugins' skills for the same job