InteractsWithFakeAudio
trait InteractsWithFakeAudio
Properties
| protected FakeAudioGateway|null | $fakeAudioGateway | The fake audio gateway instance. |
|
| protected array | $recordedAudioGenerations | All of the recorded audio generations. |
|
| protected array | $recordedQueuedAudioGenerations | All of the recorded audio generations that were queued. |
Methods
Assert that audio was generated matching a given truth test.
Assert that audio was not generated matching a given truth test.
Assert that no audio was generated.
Assert that a queued audio generation was recorded matching a given truth test.
Assert that a queued audio generation was not recorded matching a given truth test.
Assert that no queued audio generations were recorded.
Determine if audio generation is faked.
Get the fake audio gateway.
Details
at line 37
FakeAudioGateway
fakeAudio(Closure|array $responses = [])
Fake audio generation.
On the shared manager, the fake gateway affects every request.
at line 48
InteractsWithFakeAudio
recordAudioGeneration(AudioPrompt|QueuedAudioPrompt $prompt)
Record an audio generation.
Recorded prompts remain on the worker-shared manager.
at line 63
InteractsWithFakeAudio
assertAudioGenerated(Closure $callback)
Assert that audio was generated matching a given truth test.
at line 76
InteractsWithFakeAudio
assertAudioNotGenerated(Closure $callback)
Assert that audio was not generated matching a given truth test.
at line 89
InteractsWithFakeAudio
assertNoAudioGenerated()
Assert that no audio was generated.
at line 102
InteractsWithFakeAudio
assertAudioQueued(Closure $callback)
Assert that a queued audio generation was recorded matching a given truth test.
at line 115
InteractsWithFakeAudio
assertAudioNotQueued(Closure $callback)
Assert that a queued audio generation was not recorded matching a given truth test.
at line 128
InteractsWithFakeAudio
assertNoAudioQueued()
Assert that no queued audio generations were recorded.
at line 143
bool
audioIsFaked()
Determine if audio generation is faked.
at line 151
FakeAudioGateway|null
fakeAudioGateway()
Get the fake audio gateway.