uezo / ChatdollKit

ChatdollKit enables you to make your 3D model into a chatbot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sometimes the audio response fails to load

brunoatvenosa opened this issue · comments

Hello,

Sometimes OpenAITTSLoader will produce the error
Error: Cannot create FMOD::Sound instance for clip "" (FMOD error: Error loading file. )
when DownloadAudioClipNativeAsync calls return DownloadHandlerAudioClip.GetContent(www);

The program stops executing as the last response is never cleared out of the output canvas box.
I can't find a consistent way to reproduce this error, but when
{ "response_format", "wav" }
and
using (var www = UnityWebRequestMultimedia.GetAudioClip(url, AudioType.WAV))
the error is guaranteed to happen

Any help is appreciated.

commented

Hi @brunoatvenosa , thank you for reporting this issue.

First, please check that the following update is already applied to the OpenAITTSLoader in your project🙏

308e9b0

If this happens even if it is applied, I will provide features for debug. (e.g. dump binary data of audio on error)