ModemManager.CallAudioFormat

g GObject.Object GObject.Object ModemManager.CallAudioFormat ModemManager.CallAudioFormat GObject.Object->ModemManager.CallAudioFormat

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

get_encoding ()

get_rate ()

get_resolution ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

GObject.Object

r

Class Details

class ModemManager.CallAudioFormat(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

ModemManager.CallAudioFormatClass

The ModemManager.CallAudioFormat structure contains private data and should only be accessed using the provided API.

get_encoding()
Returns:

a string with the encoding, or None if unknown. Do not free the returned value, it is owned by self.

Return type:

str

Gets the encoding of the audio format. For example, “pcm” for PCM-encoded audio.

New in version 1.10.

get_rate()
Returns:

the sampling rate, or 0 if unknown.

Return type:

int

Gets the sampling rate of the audio format. For example, 8000 for an 8000hz sampling rate.

New in version 1.10.

get_resolution()
Returns:

a string with the resolution, or None if unknown. Do not free the returned value, it is owned by self.

Return type:

str

Gets the resolution of the audio format. For example, “s16le” for signed 16-bit little-endian audio sampling resolution.

New in version 1.10.