class AudioResponse implements Stringable

Traits

Properties

protected string|null $randomStorageName

The cached copy of the file's random name.

from  Storable
string|null $mime

Methods

string|false
store(string $path = '', UnitEnum|string|null $disk = null, array $options = [])

Store the file on a filesystem disk.

from  Storable
string|false
storePublicly(string $path = '', UnitEnum|string|null $disk = null, array $options = [])

Store the file on a filesystem disk with public visibility.

from  Storable
string|false
storePubliclyAs(string $path, string|null $name = null, UnitEnum|string|null $disk = null, array $options = [])

Store the file on a filesystem disk with public visibility.

from  Storable
string|false
storeAs(string $path, string|null $name = null, UnitEnum|string|null $disk = null, array $options = [])

Store the file on a filesystem disk.

from  Storable
__construct(string $audio, Usage $usage, Meta $meta, string|null $mimeType = null)

Create an audio response.

string
randomStorageName()

Get a default filename for the file.

string
content()

Get the raw representation of the audio.

string|null
mimeType()

Get the MIME type for the audio.

string
__toString()

Get the raw string content of the audio.

Details

in Storable at line 21
string|false store(string $path = '', UnitEnum|string|null $disk = null, array $options = [])

Store the file on a filesystem disk.

Parameters

string $path
UnitEnum|string|null $disk
array $options

Return Value

string|false

in Storable at line 29
string|false storePublicly(string $path = '', UnitEnum|string|null $disk = null, array $options = [])

Store the file on a filesystem disk with public visibility.

Parameters

string $path
UnitEnum|string|null $disk
array $options

Return Value

string|false

in Storable at line 39
string|false storePubliclyAs(string $path, string|null $name = null, UnitEnum|string|null $disk = null, array $options = [])

Store the file on a filesystem disk with public visibility.

Parameters

string $path
string|null $name
UnitEnum|string|null $disk
array $options

Return Value

string|false

in Storable at line 53
string|false storeAs(string $path, string|null $name = null, UnitEnum|string|null $disk = null, array $options = [])

Store the file on a filesystem disk.

Parameters

string $path
string|null $name
UnitEnum|string|null $disk
array $options

Return Value

string|false

at line 24
__construct(string $audio, Usage $usage, Meta $meta, string|null $mimeType = null)

Create an audio response.

Parameters

string $audio

the Base64 representation of the audio

Usage $usage
Meta $meta
string|null $mimeType

at line 36
protected string randomStorageName()

Get a default filename for the file.

Return Value

string

at line 51
string content()

Get the raw representation of the audio.

Return Value

string

at line 59
string|null mimeType()

Get the MIME type for the audio.

Return Value

string|null

at line 67
string __toString()

Get the raw string content of the audio.

Return Value

string