DiscordPHP-Voice Documentation

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

WAV

Standard PCM WAV container (pure PHP, no external dependencies).

Methods

extension()

Returns the file extension for this format.

public extension() : string
Return values
string

label()

Returns a human-readable label for this format.

public label() : string
Return values
string

requiresFfmpeg()

Returns true if this format requires ffmpeg to encode.

public requiresFfmpeg() : bool
Return values
bool
On this page

Search results