uezo / ChatdollKit

ChatdollKit enables you to make your 3D model into a chatbot
Apache License 2.0
683 stars 73 forks source link

Sometimes the audio response fails to load #287

Open brunoatvenosa opened 3 months ago

brunoatvenosa commented 3 months ago

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.

uezo commented 3 months ago

Hi @brunoatvenosa , thank you for reporting this issue.

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

https://github.com/uezo/ChatdollKit/commit/308e9b0cfe2793fd16b670c4939167b759607e5c

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