Skip to content

Speech generation produces noise #363

@MarwenSami

Description

@MarwenSami

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); */

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions