Transcription
class Transcription
Methods
Generate a transcription of the given audio.
Generate a transcription of the audio at the given path.
Generate a transcription of the given stored audio.
Assert that a transcription was generated matching a given truth test.
Assert that a transcription was not generated matching a given truth test.
Assert that no transcriptions were generated.
Assert that a queued transcription generation was recorded matching a given truth test.
Assert that a queued transcription generation was not recorded matching a given truth test.
Assert that no queued transcription generations were recorded.
Determine if transcription generation is faked.
Details
at line 25
static PendingTranscriptionGeneration
of(TranscribableAudio|UploadedFile|string $audio)
Generate a transcription of the given audio.
at line 41
static PendingTranscriptionGeneration
fromBase64(string $base64, string|null $mimeType = null)
Generate a transcription of the given audio.
at line 49
static PendingTranscriptionGeneration
fromPath(string $path, string|null $mimeType = null)
Generate a transcription of the audio at the given path.
at line 57
static PendingTranscriptionGeneration
fromStorage(string $path, string|null $disk = null)
Generate a transcription of the given stored audio.
at line 65
static PendingTranscriptionGeneration
fromUpload(UploadedFile $file)
Generate a transcription of the given uploaded file.
at line 75
static FakeTranscriptionGateway
fake(Closure|array $responses = [])
Fake transcription generation.
The fake gateway is shared across requests in the worker.
at line 84
static void
assertGenerated(Closure $callback)
Assert that a transcription was generated matching a given truth test.
at line 92
static void
assertNotGenerated(Closure $callback)
Assert that a transcription was not generated matching a given truth test.
at line 100
static void
assertNothingGenerated()
Assert that no transcriptions were generated.
at line 108
static void
assertQueued(Closure $callback)
Assert that a queued transcription generation was recorded matching a given truth test.
at line 116
static void
assertNotQueued(Closure $callback)
Assert that a queued transcription generation was not recorded matching a given truth test.
at line 124
static void
assertNothingQueued()
Assert that no queued transcription generations were recorded.
at line 132
static bool
isFaked()
Determine if transcription generation is faked.