Original Discord Post by john30ninja | 2024-10-29 17:28:51
Everything was working fine and suddenly I’m seeing issues with processing microphone audio data. The microphone checker script reports that everything is ok. The input manager seems to open and close the mic, but while the mic is open I get this error. Any ideas?
[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) [0x0011e] in D:\30 Ninjas\SpaceHeist\Packages\com.thirtyninjas.convai\Runtime\Core\ConvaiGRPCAPI.cs:466
…
Convai.Scripts.Runtime.Core.ConvaiGRPCAPI/d__21:MoveNext () (at D:/30 Ninjas/SpaceHeist/Packages/com.thirtyninjas.convai/Runtime/Core/ConvaiGRPCAPI.cs:497)
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 D:/30 Ninjas/SpaceHeist/Packages/com.thirtyninjas.convai/Runtime/Core/ConvaiGRPCAPI.cs:408)
Interesting… I thought for sure that’d work. I set the API key and character ID. It takes the microphone input and successfully converts to text in the UI, but the AI doesn’t provide a response.