Patent ID: 8626323

Claim:
A method for playing an audio file, comprising: determining a frame position corresponding to a playing position in a search according to a mapping between playing positions and frame positions when receiving input information about the playing position in the search; and playing the audio file from the determined frame position, wherein the mapping between the playing positions and the frame positions is obtained by: calculating a second cumulative duration and a size of a second cumulative frame after a playing duration and a size of a data frame are obtained by parsing the audio file, wherein the second cumulative duration is equal to a first cumulative duration plus the playing duration, wherein the first cumulative duration is a sum of playing durations of all data frames before the data frame, wherein the size of the second cumulative frame is equal to a size of a first cumulative frame plus the size of the data frame, and wherein the size of the first cumulative frame is a sum of sizes of all the data frames before the data frame; and establishing and storing the mapping between the playing positions and the frame positions before receiving the input information about the playing position in the search by taking the second cumulative duration as one of the playing positions and taking the size of the second cumulative frame as one of the frame positions, or establishing and storing the mapping between the playing positions and the frame positions by taking a current pre-mark time point as one of the playing positions and taking the size of the second cumulative frame as one of the frame positions when the second cumulative duration is longer than or equal to the current pre-mark time point, and wherein determining the frame position comprises retrieving the stored mapping between the playing positions and the frame positions and identifying the frame position corresponding to the playing position in the stored mapping.