DATA PROCESSING METHOD AND RELATED DEVICE
A data processing method and a related device are disclosed to reduce computing resource occupation in multi-sound zone interaction. The data processing method includes obtaining a plurality of pieces of audio. The plurality of pieces of audio come from a plurality of sound zones. The data processing method further includes obtaining user information of the plurality of sound zones. The user information indicates whether a user exists in the sound zone. The data processing method includes processing the plurality of pieces of audio based on the user information of the plurality of sound zones.
1 . A method of data processing, the method comprising:
obtaining a plurality of pieces of audio, wherein the plurality of pieces of audio come from a plurality of sound zones;
obtaining user information of the plurality of sound zones, wherein the user information indicates whether a user exists in one of the plurality of sound zones; and
processing the plurality of pieces of audio based on the user information of the plurality of sound zones.
2 . The method according to claim 1 , wherein processing the plurality of pieces of audio based on the user information of the plurality of sound zones comprises:
processing a part of audio obtained through screening from the plurality of pieces of audio based on the user information of the plurality of sound zones.
3 . The method according to claim 1 , wherein processing the plurality of pieces of audio based on the user information of the plurality of sound zones comprises:
processing, based on the user information of the plurality of sound zones, audio of the user.
4 . The method according to claim 1 , wherein processing the plurality of pieces of audio based on the user information of the plurality of sound zones comprises:
discarding, based on the user information of the plurality of sound zones, audio of a sound zone in which no user exists in the plurality of pieces of audio.
5 . The method according to claim 1 , wherein processing the plurality of pieces of audio based on the user information of the plurality of sound zones comprises:
processing, based on the user information of the plurality of sound zones, audio of a sound zone in which the user exists and audio of a part of a sound zone in which no user exists in the plurality of pieces of audio.
6 . The method according to claim 1 , wherein the method further comprises:
obtaining a computing resource usage; and
when the computing resource usage is greater than a threshold, processing the plurality of pieces of audio based on the user information of the plurality of sound zones comprises:
processing, based on the user information of the plurality of sound zones, audio of a part of a sound zone in which the user exists.
7 . The method according to claim 6 , wherein processing the audio of the part of the sound zone in which the user exists comprises:
processing audio of a sound zone in which the user exists in a target sound zone, wherein the target sound zone is a part of the plurality of sound zones.
8 . The method according to claim 7 , wherein the plurality of sound zones are zones corresponding to a plurality of seats in a cabin of a vehicle, and the target sound zone comprises a driver zone and/or a front passenger zone in the zones corresponding to the plurality of seats.
9 . The method according to claim 6 , wherein the plurality of sound zones have priorities, and processing the audio of the part of the sound zone in which the user exists comprises:
processing audio of at least one sound zone with a highest priority in the sound zone in which the user exists.
10 . An apparatus, comprising:
a processor; and
a memory coupled to the processor and storing instructions, which when executed by the processor, cause the processor to:
obtain a plurality of pieces of audio, wherein the plurality of pieces of audio come from a plurality of sound zones;
obtain user information of the plurality of sound zones, wherein the user information indicates whether a user exists in one of the plurality of sound zones; and
process the plurality of pieces of audio based on the user information of the plurality of sound zones.
11 . The apparatus according to claim 10 , wherein the instructions, when executed by the processor, further cause the processor to process a part of audio obtained through screening from the plurality of pieces of audio based on the user information of the plurality of sound zones.
12 . The apparatus according to claim 10 , wherein instructions, when executed by the processor, further cause the processor to process, based on the user information of the plurality of sound zones, audio of a sound zone in which the user exists in the plurality of pieces of audio.
13 . The apparatus according to claim 10 , wherein the instructions, when executed by the processor, further cause the processor to discard, based on the user information of the plurality of sound zones, audio of a sound zone in which no user exists in the plurality of pieces of audio.
14 . The apparatus according to claim 10 , wherein the instructions, when executed by the processor, further cause the processor to process, based on the user information of the plurality of sound zones, audio of a sound zone in which the user exists and audio of a part of a sound zone in which no user exists in the plurality of pieces of audio.
15 . The apparatus according to claim 10 , wherein the instructions, when executed by the processor, further cause the processor to
obtain a computing resource usage; and
when the computing resource usage is greater than a threshold, process, based on the user information of the plurality of sound zones, audio of a part of a sound zone in which the user exists.
16 . The apparatus according to claim 15 , wherein the instructions, when executed by the processor, further cause the processor to process audio of a sound zone in which the user exists in a target sound zone, wherein the target sound zone is a part of the plurality of sound zones.
17 . The apparatus according to claim 16 , wherein the plurality of sound zones are zones corresponding to a plurality of seats in a cabin of a vehicle, and the target sound zone comprises a driver zone and/or a front passenger zone in the zones corresponding to the plurality of seats.
18 . The apparatus according to claim 15 , wherein
the instructions, when executed by the processor, further cause the processor to process audio of at least one sound zone with a highest priority in the sound zone in which the user exists, wherein the plurality of sound zones have priorities.
19 . A non-transitory computer-readable storage medium, comprising instructions, wherein when the computer-readable storage medium is run on a computer, the computer is enabled to:
obtain a plurality of pieces of audio, wherein the plurality of pieces of audio come from a plurality of sound zones;
obtain user information of the plurality of sound zones, wherein the user information indicates whether a user exists in one of the plurality of sound zones; and
process the plurality of pieces of audio based on the user information of the plurality of sound zones.
20 . The computer-readable storage medium according to claim 19 , wherein the computer is further enabled to process a part of audio obtained through screening from the plurality of pieces of audio based on the user information of the plurality of sound zones.