RecordingFormat
: string
in package
Represents the output format for voice recording.
Table of Contents
Cases
- OGG = 'ogg'
- OGG Opus container (requires ffmpeg).
- PCM = 'pcm'
- Raw signed 16-bit little-endian PCM (no file writing).
- WAV = 'wav'
- Standard PCM WAV container (pure PHP, no external dependencies).
Methods
- extension() : string
- Returns the file extension for this format.
- label() : string
- Returns a human-readable label for this format.
- requiresFfmpeg() : bool
- Returns true if this format requires ffmpeg to encode.
Cases
PCM
Raw signed 16-bit little-endian PCM (no file writing).
WAV
Standard PCM WAV container (pure PHP, no external dependencies).
OGG
OGG Opus container (requires ffmpeg).
Methods
extension()
Returns the file extension for this format.
public
extension() : string
Return values
stringlabel()
Returns a human-readable label for this format.
public
label() : string
Return values
stringrequiresFfmpeg()
Returns true if this format requires ffmpeg to encode.
public
requiresFfmpeg() : bool