Cannot find speaker with id

Original Discord Post by wklr1 | 2024-11-05 11:08:35

Hi. I came across some amazing videos related to Convai a few days ago and have been dealing with them. I’ve been trying them all the time without any problems and all of a sudden I’m getting the error below. Problems occur with built programs

Convai.Scripts.Runtime.Core.ConvaiGRPCAPI.ProcessAudioChunk (Grpc.Core.AsyncDuplexStreamingCall`2[TRequest,TResponse] call, System.Int32 diff, System.Collections.Generic.IReadOnlyList`1[T] audioData) (at Assets/Convai/Scripts/Runtime/Core/ConvaiGRPCAPI.cs:507)
Convai.Scripts.Runtime.Core.ConvaiGRPCAPI.ProcessAudioContinuously (Grpc.Core.AsyncDuplexStreamingCall`2[TRequest,TResponse] call, System.Int32 recordingFrequency, System.Int32 recordingLength, UnityEngine.AudioClip audioClip) (at Assets/Convai/Scripts/Runtime/Core/ConvaiGRPCAPI.cs:423)
Convai.Scripts.Runtime.Core.ConvaiGRPCAPI.StartRecordAudio (Service.ConvaiService+ConvaiServiceClient client, System.Boolean isActionActive, System.Boolean isLipSyncActive, System.Int32 recordingFrequency, System.Int32 recordingLength, System.String characterID, Service.ActionConfig actionConfig, Service.FaceModel faceModel, System.String speakerID) (at Assets/Convai/Scripts/Runtime/Core/ConvaiGRPCAPI.cs:307)
Convai.Scripts.Runtime.Core.ConvaiNPC.StartListening () (at Assets/Convai/Scripts/Runtime/Core/ConvaiNPC.cs:349)
System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__7_0 (System.Object state) (at <c0b7b90d34a54066a7234dad69255116>:0)
UnityEngine.UnitySynchronizationContext+WorkRequest.Invoke () (at <2d8783c7af0442318483a199a473c55b>:0)
UnityEngine.UnitySynchronizationContext.Exec () (at <2d8783c7af0442318483a199a473c55b>:0)
UnityEngine.UnitySynchronizationContext.ExecuteTasks () (at <2d8783c7af0442318483a199a473c55b>:0)

I don’t think PlayerDataSO is generated correctly in the Convai API when I imported it from runtime and generated the Speaker ID. How can I fix it?

Images:
1231.png

Reply by k3kalinix | 2024-11-05 11:10:06

Hello <@809398820517183510>,

Reply by k3kalinix | 2024-11-05 11:10:11

Welcome to Convai Community!

Reply by k3kalinix | 2024-11-05 11:10:29

Which version of the Convai SDK are you using?

Replying to k3kalinix’s Message

Reply by k3kalinix | 2024-11-05 11:10:29
Which version of the Convai SDK are you using?

Reply by wklr1 | 2024-11-05 11:11:38

I use Convai SDK 3.2.0

Reply by k3kalinix | 2024-11-05 11:12:23

Could you please show me the PlayerDataSO (Assets/Convai/Resources)

Reply by wklr1 | 2024-11-05 11:13:26

Should I show it like this?

Images:

Reply by k3kalinix | 2024-11-05 11:13:31

Okay

Reply by k3kalinix | 2024-11-05 11:13:39

Disable Create Speaker ID If Not Found

Reply by k3kalinix | 2024-11-05 11:13:56

Reset data and delete

Replying to k3kalinix’s Message

Reply by k3kalinix | 2024-11-05 11:13:56
Reset data and delete

Reply by wklr1 | 2024-11-05 11:16:39

Unfortunately, the same error log is coming out

Images:
image.png

Reply by wklr1 | 2024-11-05 11:17:29

Cannot find speaker with id

Reply by k3kalinix | 2024-11-05 11:18:01

Okay

Reply by k3kalinix | 2024-11-05 11:19:02

Could you please follow these steps?

Images:

Reply by k3kalinix | 2024-11-05 11:19:02

Embedded Content:
Long Term Memory | Documentation
Learn how to enable character retain conversation history across multiple sessions
Link: Long Term Memory | Documentation

Replying to k3kalinix’s Message

Reply by k3kalinix | 2024-11-05 11:19:02
Could you please follow these steps?

Reply by wklr1 | 2024-11-05 11:25:05

Yes, I kept checking the procedures involved in setting up the LTM and built the program after running it. It works well in the editor, but I don’t know why it repeats in the built state.

Reply by k3kalinix | 2024-11-05 11:25:52

Can I see the LTM tab in Unity?

Replying to k3kalinix’s Message

Reply by k3kalinix | 2024-11-05 11:25:52
Can I see the LTM tab in Unity?

Reply by wklr1 | 2024-11-05 11:27:55

Images:

Reply by k3kalinix | 2024-11-05 11:28:17

okay

Reply by k3kalinix | 2024-11-05 11:28:21

which scene are you using?