Convai talk issue when narrative design

hello, please can you help me?
I upload my problem 2days ago, but that wasn’t solved…
I tried make new account, and build my project again.. but my convai character doesn’t answer to me…
I need to fix it fast as I can..
What is the problem of this?
I use unity 2022.3.51 with RPM(7.3.0)..
I found that when i off the narrative design my character talk to me…
but i have to use narrative design.. can you please help with this issue?

Hello @42soo,

Could you please share your character ID and all error messages?

6940c938-2cea-11f0-b15a-42010a7be01f
this is my character ID

And my voice input isn’t working. After starting the program, it only begins to register what I’m saying after several tens of seconds, and then there’s no response.


[Info][Character]: The Cancellation Token Source for Alice (1) (Convai.Scripts.Runtime.Core.ConvaiNPC) was Disposed in ConvaiGRPCAPI:InterruptCharacterSpeech.
[Stack Trace - Method: InterruptCharacterSpeech, at Line: 540 in File: C:\Users\heeso\OneDrive\바탕 화면\Unity 프로젝트\Final eng cafe 5.11\Assets\Convai\Scripts\Runtime\Core\ConvaiGRPCAPI.cs]
UnityEngine.Debug:Log (object)
Convai.Scripts.Runtime.LoggerSystem.ConvaiLogger:LogMessage (string,Convai.Scripts.Runtime.LoggerSystem.ConvaiLogger/LogLevel,Convai.Scripts.Runtime.LoggerSystem.ConvaiLogger/LogCategory,object) (at Assets/Convai/Scripts/Runtime/LoggerSystem/ConvaiLogger.cs:87)
Convai.Scripts.Runtime.LoggerSystem.ConvaiLogger:Info (string,Convai.Scripts.Runtime.LoggerSystem.ConvaiLogger/LogCategory,object) (at Assets/Convai/Scripts/Runtime/LoggerSystem/ConvaiLogger.cs:125)
Convai.Scripts.Runtime.Core.ConvaiGRPCAPI:InterruptCharacterSpeech (Convai.Scripts.Runtime.Core.ConvaiNPC) (at Assets/Convai/Scripts/Runtime/Core/ConvaiGRPCAPI.cs:540)
Convai.Scripts.Runtime.Core.ConvaiGRPCAPI:HandleActiveNPCChanged (Convai.Scripts.Runtime.Core.ConvaiNPC) (at Assets/Convai/Scripts/Runtime/Core/ConvaiGRPCAPI.cs:243)
Convai.Scripts.Runtime.Core.ConvaiNPCManager:UpdateActiveNPC (Convai.Scripts.Runtime.Core.ConvaiNPC) (at Assets/Convai/Scripts/Runtime/Core/ConvaiNPCManager.cs:160)
Convai.Scripts.Runtime.Core.ConvaiNPCManager:LateUpdate () (at Assets/Convai/Scripts/Runtime/Core/ConvaiNPCManager.cs:67)


[Info][Character]: The Cancellation Token Source was Disposed in GRPCAPI:HandleActiveNPCChanged
[Stack Trace - Method: HandleActiveNPCChanged, at Line: 260 in File: C:\Users\heeso\OneDrive\바탕 화면\Unity 프로젝트\Final eng cafe 5.11\Assets\Convai\Scripts\Runtime\Core\ConvaiGRPCAPI.cs]
UnityEngine.Debug:Log (object)
Convai.Scripts.Runtime.LoggerSystem.ConvaiLogger:LogMessage (string,Convai.Scripts.Runtime.LoggerSystem.ConvaiLogger/LogLevel,Convai.Scripts.Runtime.LoggerSystem.ConvaiLogger/LogCategory,object) (at Assets/Convai/Scripts/Runtime/LoggerSystem/ConvaiLogger.cs:87)
Convai.Scripts.Runtime.LoggerSystem.ConvaiLogger:Info (string,Convai.Scripts.Runtime.LoggerSystem.ConvaiLogger/LogCategory,object) (at Assets/Convai/Scripts/Runtime/LoggerSystem/ConvaiLogger.cs:125)
Convai.Scripts.Runtime.Core.ConvaiGRPCAPI:HandleActiveNPCChanged (Convai.Scripts.Runtime.Core.ConvaiNPC) (at Assets/Convai/Scripts/Runtime/Core/ConvaiGRPCAPI.cs:260)
Convai.Scripts.Runtime.Core.ConvaiNPCManager:UpdateActiveNPC (Convai.Scripts.Runtime.Core.ConvaiNPC) (at Assets/Convai/Scripts/Runtime/Core/ConvaiNPCManager.cs:160)
Convai.Scripts.Runtime.Core.ConvaiNPCManager:LateUpdate () (at Assets/Convai/Scripts/Runtime/Core/ConvaiNPCManager.cs:67)


[Info][Character]: Alice has stopped listening
[Stack Trace - Method: StopRecordAudio, at Line: 447 in File: C:\Users\heeso\OneDrive\바탕 화면\Unity 프로젝트\Final eng cafe 5.11\Assets\Convai\Scripts\Runtime\Core\ConvaiGRPCAPI.cs]
UnityEngine.Debug:Log (object)
Convai.Scripts.Runtime.LoggerSystem.ConvaiLogger:LogMessage (string,Convai.Scripts.Runtime.LoggerSystem.ConvaiLogger/LogLevel,Convai.Scripts.Runtime.LoggerSystem.ConvaiLogger/LogCategory,object) (at Assets/Convai/Scripts/Runtime/LoggerSystem/ConvaiLogger.cs:87)
Convai.Scripts.Runtime.LoggerSystem.ConvaiLogger:Info (string,Convai.Scripts.Runtime.LoggerSystem.ConvaiLogger/LogCategory,object) (at Assets/Convai/Scripts/Runtime/LoggerSystem/ConvaiLogger.cs:125)
Convai.Scripts.Runtime.Core.ConvaiGRPCAPI:StopRecordAudio () (at Assets/Convai/Scripts/Runtime/Core/ConvaiGRPCAPI.cs:447)
Convai.Scripts.Runtime.Core.ConvaiNPC:StopListening () (at Assets/Convai/Scripts/Runtime/Core/ConvaiNPC.cs:361)
Convai.Scripts.Runtime.Core.ConvaiPlayerInteractionManager:HandleVoiceInput (bool) (at Assets/Convai/Scripts/Runtime/Core/ConvaiPlayerInteractionManager.cs:104)
Convai.Scripts.Runtime.Core.ConvaiInputManager:OnTalk (UnityEngine.InputSystem.InputAction/CallbackContext) (at Assets/Convai/Scripts/Runtime/Core/ConvaiInputManager.cs:135)
UnityEngine.InputSystem.LowLevel.NativeInputRuntime/<>c__DisplayClass7_0:<set_onUpdate>b__0 (UnityEngineInternal.Input.NativeInputUpdateType,UnityEngineInternal.Input.NativeInputEventBuffer*)
UnityEngineInternal.Input.NativeInputSystem:NotifyUpdate (UnityEngineInternal.Input.NativeInputUpdateType,intptr)

Please do not share this screenshot. Your API Key is there and these are not errors.

Oh, ok.. but if that is not error, that mean my character doesn’t answer me without error code…


there is input in convai UI.. but it say microphone issue detected..?

[Warning][Character]: Microphone Issue Detected!
[Stack Trace - Method: MoveNext, at Line: 84 in File: C:\Users\heeso\OneDrive\바탕 화면\Unity 프로젝트\Final eng cafe 5.11\Assets\Convai\Scripts\Runtime\Addons\NotificationSystem\MicrophoneInputChecker.cs]
UnityEngine.Debug:LogWarning (object)
Convai.Scripts.Runtime.LoggerSystem.ConvaiLogger:LogMessage (string,Convai.Scripts.Runtime.LoggerSystem.ConvaiLogger/LogLevel,Convai.Scripts.Runtime.LoggerSystem.ConvaiLogger/LogCategory,object) (at Assets/Convai/Scripts/Runtime/LoggerSystem/ConvaiLogger.cs:90)
Convai.Scripts.Runtime.LoggerSystem.ConvaiLogger:Warn (string,Convai.Scripts.Runtime.LoggerSystem.ConvaiLogger/LogCategory,object) (at Assets/Convai/Scripts/Runtime/LoggerSystem/ConvaiLogger.cs:135)
Convai.Scripts.Runtime.Addons.MicrophoneInputChecker/d__6:MoveNext () (at Assets/Convai/Scripts/Runtime/Addons/NotificationSystem/MicrophoneInputChecker.cs:84)
UnityEngine.SetupCoroutine:InvokeMoveNext (System.Collections.IEnumerator,intptr)

and the taskcanceled..?

TaskCanceledException: A task was canceled.
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:433)
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:351)
System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.b__7_0 (System.Object state) (at <1fd52158108c4fe3a6817b50854eb75e>:0)
UnityEngine.UnitySynchronizationContext+WorkRequest.Invoke () (at <6ff3bcb667574bf9a8630184172fcfbf>:0)
UnityEngine.UnitySynchronizationContext.Exec () (at <6ff3bcb667574bf9a8630184172fcfbf>:0)
UnityEngine.UnitySynchronizationContext.ExecuteTasks () (at <6ff3bcb667574bf9a8630184172fcfbf>:0)

[Error][Character]: System.Threading.Tasks.TaskCanceledException: A task was canceled.
at Convai.Scripts.Runtime.Core.ConvaiGRPCAPI.ProcessAudioChunk (Grpc.Core.AsyncDuplexStreamingCall2[TRequest,TResponse] call, System.Int32 diff, System.Collections.Generic.IReadOnlyList1[T] audioData) [0x00097] in C:\Users\heeso\OneDrive\바탕 화면\Unity 프로젝트\Final eng cafe 5.11\Assets\Convai\Scripts\Runtime\Core\ConvaiGRPCAPI.cs:481
[Stack Trace - Method: MoveNext, at Line: 512 in File: C:\Users\heeso\OneDrive\바탕 화면\Unity 프로젝트\Final eng cafe 5.11\Assets\Convai\Scripts\Runtime\Core\ConvaiGRPCAPI.cs]
UnityEngine.Debug:LogError (object)
Convai.Scripts.Runtime.LoggerSystem.ConvaiLogger:LogMessage (string,Convai.Scripts.Runtime.LoggerSystem.ConvaiLogger/LogLevel,Convai.Scripts.Runtime.LoggerSystem.ConvaiLogger/LogCategory,object) (at Assets/Convai/Scripts/Runtime/LoggerSystem/ConvaiLogger.cs:93)
Convai.Scripts.Runtime.LoggerSystem.ConvaiLogger:Error (string,Convai.Scripts.Runtime.LoggerSystem.ConvaiLogger/LogCategory,object) (at Assets/Convai/Scripts/Runtime/LoggerSystem/ConvaiLogger.cs:140)
Convai.Scripts.Runtime.LoggerSystem.ConvaiLogger:Error (object,Convai.Scripts.Runtime.LoggerSystem.ConvaiLogger/LogCategory) (at Assets/Convai/Scripts/Runtime/LoggerSystem/ConvaiLogger.cs:120)
Convai.Scripts.Runtime.Core.ConvaiGRPCAPI/d__21:MoveNext () (at Assets/Convai/Scripts/Runtime/Core/ConvaiGRPCAPI.cs:512)
System.Runtime.CompilerServices.AsyncTaskMethodBuilder:Start<Convai.Scripts.Runtime.Core.ConvaiGRPCAPI/d__21> (Convai.Scripts.Runtime.Core.ConvaiGRPCAPI/d__21&)
Convai.Scripts.Runtime.Core.ConvaiGRPCAPI:ProcessAudioChunk (Grpc.Core.AsyncDuplexStreamingCall2<Service.GetResponseRequest, Service.GetResponseResponse>,int,System.Collections.Generic.IReadOnlyList1)
Convai.Scripts.Runtime.Core.ConvaiGRPCAPI/d__19:MoveNext () (at Assets/Convai/Scripts/Runtime/Core/ConvaiGRPCAPI.cs:423)
UnityEngine.UnitySynchronizationContext:ExecuteTasks ()

The microphone problem is different. Please open the settings panel and check your microphone device.

microphone problem is fine. I can fix it.
Why can’t I have a conversation when I enable narrative design?

I’ve informed my teammates. They’ll investigate and get back to you.

Thank you very much. I’ll be waiting for your response.

1 Like

I found that when I delete {Player Name} in Narrative design, it work it
but I have to make my character speak Player name..
I know that with {} is variable.
Why this is not working…?

this is one of my narrative design

Say this paragraph to the user: Hi {Player Name}! I’m Alice, your English tutor. Today, we’re going to practice ordering drinks at a cafe. Have you ever ordered coffee in English before? Don’t worry if you haven’t — we’ll learn step by step together! Are you ready?

The issue only happens on UI because on UI we have no way of passing the value for these variables. If you test it via Unity or Unreal it should work.