eufy-mega / model/capabilities / parseQuickResponses
Function: parseQuickResponses()
ts
function parseQuickResponses(voiceList): QuickResponse[];Parse a doorbell voice_list (the {voice_id,voice_name,voice_path} records the station returns in the quick-response GET reply) into typed QuickResponses. Pure/offline. The custom flag is derived from the voice_path prefix (robust) — predefined responses live under /system/snd/, user-recorded ones under /user/… — NOT from the id range (ids 1–3 predefined, 100+ custom, but the path is authoritative).
Parameters
voiceList
object[]