Audio responses are cut off

Hello, since yesterday there have been problems with the responses. The text is always received in full, but the audio is cut off 50% of the time. I have tried two different projects, one of which has been thoroughly tested and worked very well, but now it has the same problems.

Here is the character ID:
7685b42a-84f4-11f0-bd70-42010a7be01f

Convai plugin version: 3.6.0

Any solutions already proposed?

Thanks !!!

Hello @Lumi_Convai,

Could you please try again?

If the problem still persists, could you please share the logs?

Hello, I have done many tests and here is a clearer idea.

When testing the project as I left it yesterday, the problem continued and was even more serious, as the audio was cut off in all responses. For example, if a sentence had 8 audio chunks, only 4-6 chunks were played. After several tests, I added a parameter to the plugin (MinBufferDuration=0), and with this, all the audio began to play completely, with all its chunks, but at some point, the audio would play in a loop.

After several tests, I added a parameter to the plugin (MinBufferDuration=0) and with this all the audio began to play completely, all its chunks were reproduced, but at some point the audio played as if the audio chunks were generated for each letter, that is, it sounded very, very intermittent, with a lot of vibration, like it was shivering, which in the end meant that nothing could be understood. This happened a couple of times, and among all the responses it delivered, at least 2 out of 15 ended up with cut-off audio.

I have also received a warning/error and no response. This is the warning:
—————————
ConvaiGRPCLog: Warning: OnStreamFinish: Status.ok():Not Ok | Debug Log: | Error message:enter idle | Error Details: | Error Code:14 | Character ID:7685b42a-84f4-11f0-bd70-42010a7be01f | Session ID:ab158265d34da5b5025ab22b88c5122b
ConvaiChatbotComponentLog: Warning: UConvaiChatbotComponent Get Response Failed! | Character ID :
—————————

The most serious aspect of this warning is that the text appears in the chat window, which leads users to believe that Avatar is no longer working, but if they ask again, it responds correctly. Ideally, this error should be captured and not displayed in the chat. Alternatively, the user could be told, for example, that their question was not understood and asked to repeat it. This would allow the error to be subtly bypassed. The problem is that I still can’t figure out how to prevent these errors from appearing in the chat.

I only have today and tomorrow morning to solve this problem because it should be installed on the client in the afternoon. We’ve been pursuing this for a long time, and now that we have serious problems, it could cause the client to reject the project.

We hope to receive a solution.
Thank you.

log_convai.txt (150.8 KB)

Hello @Lumi_Convai,

Please make sure you’re using the latest 3.6.6 version of the SDK:
https://github.com/Conv-AI/Convai-UnrealEngine-SDK/releases/tag/3.6.6

If you set MinBufferDuration=0, stuttering is expected since the buffer is disabled. Try with:

  • MinBufferDuration=2
  • AudioLipSyncRatio=0.3
  • EnableSync=1

If the issue persists, try disabling lip sync:

  • MinBufferDuration=2
  • EnableSync=0

I’ve been doing more tests and everything was going well until it started again with certain audios that arrive as answers. The text arrives complete, but the audio version often ends early, meaning the audio cuts out.

At this point, the problem persists, and it’s time to close. I hope things work out well tomorrow, otherwise we’ll lose a great client.