Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sometimes the audio response fails to load #287

Open
brunoatvenosa opened this issue Mar 12, 2024 · 1 comment
Open

Sometimes the audio response fails to load #287

brunoatvenosa opened this issue Mar 12, 2024 · 1 comment

Comments

@brunoatvenosa
Copy link

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
Copy link
Owner

uezo commented Mar 13, 2024

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants