CPC G10L 25/51 (2013.01) [G10L 25/24 (2013.01); G10L 25/27 (2013.01)] | 17 Claims |
1. An audio processing method, executed by an electronic device, and comprising:
obtaining a current playback environment of audio;
performing audio recognition on ambient sound of the current playback environment;
determining foreground sound in the ambient sound according to an audio recognition result;
classifying the foreground sound in the ambient sound to determine a type of the foreground sound; and
performing audio mixing on the foreground sound and the audio to obtain a mixed playback sound based on the type of the foreground sound, comprising:
determining an audio mixing mode according to the type of the foreground sound; and
performing audio mixing on the foreground sound and the audio by using the determined audio mixing mode to obtain the mixed playback sound.
|