disco.voice.opus

Constants

c_int_ptr = POINTER({'type': 'attribute', 'name': 'c_int', 'value': 'ctypes'})
c_int16_ptr = POINTER({'type': 'attribute', 'name': 'c_int16', 'value': 'ctypes'})
c_float_ptr = POINTER({'type': 'attribute', 'name': 'c_float', 'value': 'ctypes'})
EncoderStructPtr = POINTER(EncoderStruct)
DecoderStructPtr = POINTER(DecoderStruct)
Application = Enum(
  AUDIO = 2049,
  VOIP = 2048,
  LOWDELAY = 2051)
Control = Enum(
  SET_BITRATE = 4002,
  SET_BANDWIDTH = 4008,
  SET_FEC = 4012,
  SET_PLP = 4014)

Classes

EncoderStruct

Inherits From Structure

DecoderStruct

Inherits From Structure

BaseOpus

Inherits From LoggingClass

Functions

init(self, library_path)

find_library(</code>)

OpusEncoder

Inherits From BaseOpus

Functions

init(self, sampling_rate, channels, application, library_path=None)

inst(self)

set_bitrate(self, kbps)

set_fec(self, value)

set_expected_packet_loss_percent(self, perc)

create(self)

del(self)

encode(self, pcm, frame_size)

OpusDecoder

Inherits From BaseOpus

results matching ""

    No results matching ""