disco.voice.playable
Constants
OPUS_HEADER_SIZE = calcsize(<h)
Classes
AbstractOpus
Functions
init(self, sampling_rate, frame_length=20, channels=2)
BaseUtil
Functions
pipe(self, other,*args,**kwargs)
metadata(self
)
metadata(self, value)
BasePlayable
Inherits From BaseUtil
Functions
next_frame(self
)
BaseInput
Inherits From BaseUtil
Functions
read(self, size)
fileobj(self
)
OpusFilePlayable
Inherits From BasePlayable
, AbstractOpus
An input which reads opus data from a file or file-like object.
Functions
init(self, fobj,*args,**kwargs)
next_frame(self
)
FFmpegInput
Inherits From BaseInput
, AbstractOpus
Functions
init(self, source, command=avconv, streaming=False,**kwargs)
read(self, sz)
fileobj(self
)
proc(self
)
YoutubeDLInput
Inherits From FFmpegInput
Functions
init(self, url, ie_info=None,*args,**kwargs)
info(self
)
_metadata(self
)
many(cls, url,*args,**kwargs)
source(self
)
BufferedOpusEncoderPlayable
Inherits From BasePlayable
, OpusEncoder
, AbstractOpus
Functions
init(self, source,*args,**kwargs)
_encoder_loop(self
)
next_frame(self
)
DCADOpusEncoderPlayable
Inherits From BasePlayable
, AbstractOpus
, OpusEncoder
Functions
init(self, source,*args,**kwargs)
proc(self
)
next_frame(self
)
FileProxyPlayable
Inherits From BasePlayable
, AbstractOpus
Functions
init(self, other, output,*args,**kwargs)
next_frame(self
)
PlaylistPlayable
Inherits From BasePlayable
, AbstractOpus
Functions
init(self, items,*args,**kwargs)
_get_next(self
)
next_frame(self
)
MemoryBufferedPlayable
Inherits From BasePlayable
, AbstractOpus