Audio
class Audio
Methods
Generate audio from the given text.
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.
Details
at line 20
static PendingAudioGeneration
of(string $text)
Generate audio from the given text.
at line 30
static FakeAudioGateway
fake(Closure|array $responses = [])
Fake audio generation.
The fake gateway is shared across requests in the worker.
at line 39
static void
assertGenerated(Closure $callback)
Assert that audio was generated matching a given truth test.
at line 47
static void
assertNotGenerated(Closure $callback)
Assert that audio was not generated matching a given truth test.
at line 55
static void
assertNothingGenerated()
Assert that no audio was generated.
at line 63
static void
assertQueued(Closure $callback)
Assert that a queued audio generation was recorded matching a given truth test.
at line 71
static void
assertNotQueued(Closure $callback)
Assert that a queued audio generation was not recorded matching a given truth test.
at line 79
static void
assertNothingQueued()
Assert that no queued audio generations were recorded.
at line 87
static bool
isFaked()
Determine if audio generation is faked.