Unmuting assistant continues with previous transcr...
# support
a
When we unmute the assistant as follows,
Copy code
vapiRef.current.send({ type: 'control', control: 'unmute-assistant' });
It starts by saying the previous conversation again which is resulting in duplicate transcripts.
v
message has been deleted
@Anil It sounds like you're experiencing an issue where the assistant is repeating the previous conversation upon being unmuted, leading to duplicate transcripts. This could be due to the assistant's state not being managed correctly after the mute and unmute actions. To address this, you may want to ensure that the assistant's state is reset or that it continues from the correct point after being unmuted. If you have access to the assistant's state management or conversation flow, you could look into implementing a mechanism to track the last spoken phrase and prevent it from being repeated. If you're looking for a specific solution or need assistance with the implementation, could you provide more details about how the assistant is currently handling state or any specific requirements you have for the unmute functionality? This will help me guide you more effectively. If this is beyond your control and seems like a bug, please reach out to the support team for further assistance.
You can continue this conversation by mentioning me in the message.
a
@Sahil please check this once
s
Can you please create a a repository to reproduce this issue?
a
@Sahil this is one of the conversation update we recived,
Copy code
[
    {
        "role": "assistant",
        "content": "Hey. Good to see you again."
    },
    {
        "role": "user",
        "content": "That's"
    },
    {
        "role": "assistant",
        "content": "It sounds like you have something on your mind, How can I assist you today? It sounds like you have something on your mind. How can I assist you today? It sounds like you have something on your mind."
    }
]
you can see, for the last item, we are getting repeated transcript again and again
this one we are getting on the
Copy code
vapi.on('message',handleMessage)
s
By any chance, are you using KB? @Anil