Skip to content

feat: expose role and transcriptType on Transcript event#13

Open
gitaumoses4 wants to merge 1 commit into
VapiAI:mainfrom
gitaumoses4:feat/transcript-role-and-type
Open

feat: expose role and transcriptType on Transcript event#13
gitaumoses4 wants to merge 1 commit into
VapiAI:mainfrom
gitaumoses4:feat/transcript-role-and-type

Conversation

@gitaumoses4
Copy link
Copy Markdown

The Vapi WebSocket sends role ("user" or "assistant") and transcriptType ("partial" or "final") on transcript messages, but the SDK was discarding them. This makes it impossible to distinguish user speech from assistant speech in real-time.

This change adds both fields to Event.Transcript so consumers can identify the speaker and finality without relying on the delayed ConversationUpdate event.

The Vapi WebSocket sends `role` ("user" or "assistant") and
`transcriptType` ("partial" or "final") on transcript messages,
but the SDK was discarding them. This makes it impossible to
distinguish user speech from assistant speech in real-time.

This change adds both fields to `Event.Transcript` so consumers
can identify the speaker and finality without relying on the
delayed `ConversationUpdate` event.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant