Abstract: A user scenario-based audio playback method includes: obtaining a target user scenario that a user is currently in and user historical data; determining a plurality of pieces of candidate preset information corresponding to the target user scenario from a preset device configuration information table; calculating, based on the user historical data, a degree of scenario relevance, the quantity of playbacks and the quantity of selected times of a corresponding preset state of each candidate preset information; calculating a recommendation coefficient of each candidate preset information based on the degree of scenario relevance, the quantity of playbacks and the quantity of selected times; determining target preset information from the plurality of pieces of candidate preset information according to the recommendation coefficient; and adjusting a playback parameter of an audio device based on the target preset information and playing an audio.
Abstract: An audio playback method includes: performing, in a parallel manner, digital audio signal encoding on original audio data to be played back, to obtain a plurality of pieces of target encoded audio data; performing encapsulation on the plurality of pieces of target encoded audio data to obtain a plurality of target audio frames, and synchronizing the plurality of target audio frames to all communication-capable audio playback devices; in response to a switching command for switching an audio playback device, determining at least one candidate audio playback device indicated by the switching command; where the switching command is used to indicate an audio switching position; performing optimal playback device recognition on the at least one candidate audio playback device, to obtain a target audio playback device; and sending an audio switching playback command to the target audio playback device.
Abstract: An audio synchronization playback method includes: obtaining, by the primary playback device, target audio data; sending, by the primary playback device, the target audio data to at least one secondary playback device for playback; synchronizing, by the primary playback device, local time of the primary playback device with local time of the reference clock device based on a target audio synchronization signal in response to receiving the target audio synchronization signal and obtaining, by the primary playback device, reference playback timestamp of the target audio synchronization signal; where the target audio synchronization signal is a periodic signal sent by the reference clock device, and the reference clock device is the primary playback device or one secondary playback device of the preset quantity of secondary playback devices; and starting, by the primary playback device, playback from a target audio data frame corresponding to the reference playback timestamp.