How to get transcription separately for the user o...
# support
d
Hey 👋 I'm using the Android SDK https://github.com/VapiAI/client-sdk-android, I'd like to display the chit-chat messages on the fly from the VAPI call. I use at the moment:
is Vapi.Event.Transcript -> println("Transcript: ${event.text}")
event specified in docs, but it gives only the transcription message itself, but does not give insights of which role it belongs to. Can you please help me to understand how to get the role as well? Thank you! 🙇‍♂️
@User 👋
c
You can get the role in the conversation-update server message.
d
Vapi.Event.ConversationUpdate messages are not triggered by some reason during my call 🤔 do I need to do anything to enable them?
cc @User
c
Not sure what you mean by Vapi.Event.ConversationUpdate, you will need to add it directly in Assistant section.
d
thanks 👍 let me try
I've checked, I can't add
conversation-update
message on client sdk side (it should be added by default according to the documentation). But it does not trigger.
So, your Android SDK does not support transcript messages. In order to suport that you need to add
Copy code
"transcript" -> Event.Transcript(jsonObject["transcript"] as String, jsonObject["role"] as String, jsonObject["transcriptType"] as String)
here https://github.com/VapiAI/client-sdk-android/blob/7a94a3ef0d6dcd1d8f934d7b9a40d409084c1721/app/src/main/java/ai/vapi/android/Vapi.kt#L341 please deliver this to engineers, as this is pretty important feature 🙇
and in some cases makes sdk unusable
4 Views