Embodiments of the invention provide an audio real
time switching method and device. The method includes: decoding multitrack original singer
audio frequency coding files and accompaniment
audio frequency coding files, obtaining multitrack original singer
audio frequency data and corresponding accompaniment audio
frequency data, adding the multitrack original singer audio
frequency data and corresponding accompaniment audio
frequency data to a first data
queue and second data
queue which are arranged in sequence, playing the accompaniment audio frequency data extracted from the second data
queue according to the switching operation, switching to play the original singer audio frequency data extracted in the corresponding position from the first data. The real
time switching from playing accompaniment to original singer is realized, as the multitrack original singer and accompaniment are respectively stored to the multitrack original singer audio frequency coding files and accompanimentaudio frequency coding files, therefore whether the original singer and accompaniment are both multitrack, and the real
time switching and the sound effects of the original singer and accompaniment are realized at the same time.