Patent ID: 11893988
Assignee: BEIJING BAIDU NETCOM SCIENCE TECHNOLOGY CO., LTD.
Field: Computer technology (Electrical engineering)
Classification: CPC G  Y | IPC G

Claim 7:
8. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory is configured to store instructions executable by the at least one processor, and when the instructions are executed by the at least one processor, the at least one processor is caused to perform:
acquiring target audio data sent by a client, the target audio data comprising audio data collected by the client within a target duration before wake-up and audio data collected by the client after wake-up;
performing speech recognition on the target audio data; and
controlling the client based on an instruction recognized from a second audio segment of the target audio data in response to recognizing a wake-up word from a first audio segment at beginning of the target audio data; in which, the second audio segment is later than the first audio segment or has an overlapping portion with the first audio segment, wherein a duration of the first audio segment is greater than the target duration;
wherein when the instructions are executed by the at least one processor, the at least one processor is caused to perform:
deleting an audio segment of the target duration at a beginning position of the target audio data to acquire retained audio data in response to not recognizing the wake-up word from the first audio segment, or not recognizing the instruction from the second audio segment;
re-performing speech recognition on the retained audio data to obtain a re-devised first audio segment and a re-devised second audio segment; and
controlling the client based on an instruction recognized from the re-divided second audio segment.