Skip to content

Voice Agent: InjectAgentMessage frequently ignored with INJECT_AGENT_MESSAGE_DURING_AGENT_SPEECH despite no audible agent/user speech #463

@ibrahimkholil6210

Description

@ibrahimkholil6210

What is the current behavior?

InjectAgentMessage is sent successfully over the Voice Agent WebSocket, but sometimes no server response event follows.
In those cases, I get none of the expected outcomes:

  • no agent speech/audio
  • no InjectionRefused
  • no Warning
  • no Error

So the inject appears to be silently ignored, even when both user and agent are silent.

———

Steps to reproduce

  1. Connect to wss://agent.deepgram.com/v1/agent/converse and start a normal session.
  2. Send Settings and verify conversation works.
  3. Speak one user turn and wait until the agent appears done/silent.
  4. Send:
    {
    "type": "InjectAgentMessage",
    "content": "Are you still on the line?"
    }
  5. Observe inbound WS events for ~10–20 seconds.

I can reproduce this intermittently, especially after at least one normal turn has happened first.

———

Expected behavior

After sending InjectAgentMessage, one of these should always happen:

  1. Agent starts responding (text/audio events), or
  2. Server returns explicit refusal/failure (InjectionRefused, Warning, or Error).

Expected: no silent/no-op outcome.

———

Please tell us about your environment

  • Operating System/Version: Windows 10
  • Language: TypeScript
  • Browser: Chrome

———

Other information

  • I am using the newer payload shape with content (not message).
  • Mic streaming remains active continuously.
  • I added client-side logging for all inbound WS frames; in failure cases there are no inject-related events after send.
  • This makes it hard to distinguish server busy state vs dropped/ignored inject request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions