Skip to content

@mega-yfue/eufy-sdk / LiveAudioFrame

Type Alias: LiveAudioFrame ​

ts
type LiveAudioFrame = 
  | {
  codec: "aac-lc" | "g711a";
  config?: undefined;
  data: Buffer;
}
  | {
  codec: "aac-eld";
  config: Buffer;
  data: Buffer;
};

One audio access unit, carrying the codec the station declared for it.

Sample rate and channel count are absent for aac-lc and g711a: they are not on the wire, and the v6 app assumes 16 kHz mono for every audio type rather than reading them. An aac-lc frame is one ADTS frame and g711a is raw A-law. An aac-eld frame is one raw access unit with no transport framing, so it carries the AudioSpecificConfig that decodes it.

Union Members ​

Type Literal ​

ts
{
  codec: "aac-lc" | "g711a";
  config?: undefined;
  data: Buffer;
}

codec ​

ts
codec: "aac-lc" | "g711a";

Codec declared in the frame header.

config? ​

ts
config?: undefined;

data ​

ts
data: Buffer;

One ADTS frame for aac-lc, raw A-law samples for g711a.


Type Literal ​

ts
{
  codec: "aac-eld";
  config: Buffer;
  data: Buffer;
}

codec ​

ts
codec: "aac-eld";

Codec declared in the frame header.

config ​

ts
config: Buffer;

AudioSpecificConfig (ISO/IEC 14496-3) that decodes data.

data ​

ts
data: Buffer;

One raw AAC-ELD access unit.

Independent and unofficial. Not affiliated with, endorsed by, or sponsored by Anker Innovations, Anker eufy, or eufy. "Anker eufy", "eufy" and "Anker" are trademarks of their respective owners. Use responsibly — rapid or failed logins can trigger captcha or temporary cooldowns.