Skip to content

How to use the AudioTestResource when faking out a response during testing #613

Answered by nexxai
nexxai asked this question in Q&A
Discussion options

You must be logged in to vote

Ok, I was making it way too difficult on myself.

All I did was this, and it worked fine:

    OpenAI::fake([
        'audio.speech' => 'faking some binary data'
    ]);

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by nexxai
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant