An electronic device, comprising a processor, a memory, and a program or instructions stored in the memory and executable on the processor, the program or the instructions, when executed by the processor, implementing the following steps:
- determining, in a case that it is detected that playback of first audio is interrupted, a first location of the first audio according to a playback interruption location of the first audio and locations of silent segments of the first audio, wherein the first audio is an audio message, the first location is a sentence segmentation location or an end location of a silent segment of a first audio segment located in the first audio, the playback interruption location is a time point or a moment when playback of the first audio is interrupted, the silent segment is a silent part in the first audio, the sentence segmentation location is a segmentation location of sentences in the first audio, and the first audio segment is an audio segment between a start location of the first audio and the playback interruption location of the first audio;
- segmenting the first audio according to the first location to obtain a second audio segment and a third audio segment, wherein the second audio segment is an audio segment between the first location of the first audio and an end location of the first audio, and the third audio segment is an audio segment between the start location of the first audio and the first location of the first audio;
- wherein after the segmenting the first audio according to the first location to obtain a second audio segment and a third audio segment, the program or the instructions, when executed by the processor, further implement the following steps:
- performing deduplication processing, in a case that the first audio has rear audio, on the rear audio and the second audio segment, and splicing the rear audio and the second audio segment obtained after the deduplication processing to obtain first spliced audio, wherein the rear audio is a next audio message of the first audio, and an audio object corresponding to the rear audio is the same as an audio object corresponding to the first audio;
- and
- performing deduplication processing, in a case that the first audio has front audio, on the front audio and the third audio segment, and splicing the front audio and the third audio segment obtained after the deduplication processing to obtain second spliced audio, wherein the front audio is a previous audio message of the first audio, and an audio object corresponding to the front audio is the same as the audio object corresponding to the first audio;
- and
- wherein after the splicing the rear audio and the second audio segment obtained after the deduplication processing to obtain first spliced audio, the program or the instructions, when executed by the processor, further implement the following steps:
- displaying the first spliced audio in a message display window, and canceling display of the rear audio and the second audio segment, wherein the first spliced audio is marked as unread, and a first playback speed adjustment identifier is displayed on the first spliced audio;
- and
- after the splicing the front audio and the third audio segment obtained after the deduplication processing to obtain second spliced audio, the program or the instructions, when executed by the processor, further implement the following steps:
- displaying the second spliced audio in the message display window, and canceling display of the front audio and the third audio segment, wherein the second spliced audio is marked as read, and a second playback speed adjustment identifier is displayed on the second spliced audio.