Patent ID: 11862158
Assignee: BEIJING XIAOMI PINECONE ELECTRONICS CO., LTD.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 7:
8. An apparatus for controlling a device, comprising:
a processor; and
a memory configured to store instructions executable by the processor;
wherein, the processor is configured to:
collect audio data where the device is located;
determine whether each target frame of the audio data collected is a first type signal;
in response to the target frame of the audio data being the first type signal, determine an acoustic event type represented by the first type signal; and
control the device to execute control instructions corresponding to the acoustic event type;
wherein the processor is further configured to:
in response to the target frame of the audio data being the first type signal, determine whether the target frame of the audio data is the first of the first type signals;
in response to the target frame of the audio data being the first of the first type signals, determine a first preset number of frames of the audio data behind the target frame of the audio data in the audio data as target audio data, wherein the target audio data comprises a second preset number of first type signals;
in response to the target frame of audio data not being the first of the first type signals, determine the first preset number of frames of the audio data behind historical audio data corresponding to the first of first type signals in the audio data as the target audio data; and
determine the acoustic event type represented by the first type signal according to the target audio data.