-
-
Notifications
You must be signed in to change notification settings - Fork 84
Speech generation produces noise #364
-
Bug Report
Overview
Using Speech API the output AudioClip
doesn't seem to play correctly on unity.
When we play the final audio clip it's just noise playing.
When we play the partial audio clip it sounds crunched (the parts that are generated are overlapping).
I'm using v8.4.4
To Reproduce
Steps to reproduce the behavior:
var api = new OpenAIClient(apiKey); var request = new SpeechRequest("Hello there! I'm sorry, I couldn't find anything. What would you like to do?"); var fullClip = await api.AudioEndpoint.GetSpeechAsync(request, clip => { audioSource.PlayOneShot(clip.AudioClip); }); /* OR when I play the final clip it's just noise audioSource.PlayOneShot(fullClip.AudioClip); */
Beta Was this translation helpful? Give feedback.
All reactions
@MarwenSami I was able to find the source of the problem, and will be fixed in 8.6.6
Replies: 1 comment 4 replies
-
Please update to the latest version 8.6.5
Beta Was this translation helpful? Give feedback.
All reactions
-
My bad, actually my project was already working with v8.6.5 when I encountered the issue.
Beta Was this translation helpful? Give feedback.
All reactions
-
I'll take a look and see if maybe I missed something in the last update.
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 1
-
@MarwenSami change the SpeechResponseFormat
to PCM as a workaround
Beta Was this translation helpful? Give feedback.
All reactions
-
@MarwenSami I was able to find the source of the problem, and will be fixed in 8.6.6
Beta Was this translation helpful? Give feedback.