An audio processing method, device and storage medium

CN117376776BActive Publication Date: 2026-10-27BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210754846.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-30
Publication Date
2026-10-27
Estimated Expiration
2042-06-30

AI Technical Summary

Technical Problem

但是由于音频播放的听感在不同的播放的场景(如音乐播放,电影观赏等)也是不同的,因此针对不同的场景会采用不同的参数配置和不同处理顺序的算法序列,这就导致在对算法序列进行切换时,会出现播放音频跳变、静音、爆音等其他异常现象

Benefits of technology

[0060]采用本公开的上述方法,具有以下有益效果:通过获取当前播放的第一音频数据的第一播放算法序列,和待切换的第二音频数据的第二播放算法序列,根据第一播放算法序列和第二播放算法序列是否包括相同播放算法子序列,将第一播放算法序列切换至第二播放算法序列,能够减少播放算法序列切换过程中的资源占用,并缩短播放算法序列的切换时长,同时避免出现播放算法序列切换前后出现的音频数据响度不均的问题。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117376776B_ABST
    Figure CN117376776B_ABST
Patent Text Reader

Abstract

The present disclosure relates to an audio processing method, device and storage medium. The audio processing method comprises: obtaining a first playing algorithm sequence of first audio data currently played; obtaining a second playing algorithm sequence of second audio data to be switched; and switching the first playing algorithm sequence to the second playing algorithm sequence according to whether the first playing algorithm sequence and the second playing algorithm sequence comprise a same playing algorithm sub-sequence. The method provided by the present disclosure can reduce resource occupation in the playing algorithm sequence switching process, shorten the switching time length of the playing algorithm sequence, and avoid the problem of uneven loudness of audio data before and after the playing algorithm sequence switching.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of audio technology, and in particular to an audio processing method, apparatus, and storage medium. Background Technology

[0002] Audio signal processing refers to the offline or real-time processing of audio using various signal processing algorithms to extract key feature information of the audio signal, or to reduce noise and enhance the audio, or to change the basic properties of the audio so that it can reproduce the original audio sound on more performance-limited playback devices.

[0003] In related technologies, to enable audio data to reproduce the original audio's sound quality on more performance-constrained playback devices, the common approach is to acquire the audio stream to be played on the playback device, then perform multi-step algorithmic processing on it, such as equalization adjustment and dynamic control algorithms, before sending the processed audio stream to the hardware output responsible for playback. However, since the sound quality of audio playback varies in different playback scenarios (such as music playback and movie watching), different parameter configurations and different processing sequences of algorithms are used for different scenarios. This leads to other abnormal phenomena such as audio jumps, mute, and popping sounds when switching algorithm sequences.

[0004] Therefore, how to provide a smooth audio experience during algorithm sequence switching is an urgent problem to be solved. Summary of the Invention

[0005] To overcome the problems existing in related technologies, this disclosure provides an audio processing method, apparatus, and storage medium. According to a first aspect of an embodiment of this disclosure, an audio processing method is provided, applied to a terminal, the method comprising:

[0006] Obtain the first playback algorithm sequence for the currently playing first audio data;

[0007] Obtain the second playback algorithm sequence of the second audio data to be switched;

[0008] Based on whether the first playback algorithm sequence and the second playback algorithm sequence include the same playback algorithm sub-sequence, the first playback algorithm sequence is switched to the second playback algorithm sequence.

[0009] In an exemplary embodiment, switching the first playback algorithm sequence to the second playback algorithm sequence based on whether the first playback algorithm sequence and the second playback algorithm sequence include:

[0010] If the first playback algorithm sequence and the second playback algorithm sequence include the same playback algorithm subsequence, determine the first playback algorithm sequence and the first difference playback algorithm sequence of the same playback algorithm subsequence, and process the first difference playback algorithm sequence so that the output audio data of the first difference playback algorithm sequence is changed to be the same as the input audio data of the first difference playback algorithm sequence;

[0011] A second differential playback algorithm sequence is determined, along with the second playback algorithm subsequence. The second differential playback algorithm sequence is then processed to change the output audio data of the second differential playback algorithm sequence to a first preset output audio data.

[0012] In an exemplary embodiment, processing the first difference playback algorithm sequence to change the output audio data of the first difference playback algorithm sequence to be the same as the input audio data of the first difference playback algorithm sequence includes:

[0013] Obtain the first playback parameter in each playback algorithm module of the first differential playback algorithm sequence, and adjust the first playback parameter so that the output audio data of each playback algorithm module in the first differential playback algorithm sequence is the same as the input audio data of each playback algorithm module in the first differential playback algorithm sequence.

[0014] In an exemplary embodiment, processing the second difference playback algorithm sequence to change the output audio data of the second difference playback algorithm sequence to a first preset output audio data includes:

[0015] Obtain the second playback parameters in each playback algorithm module of the second difference playback algorithm sequence, and adjust the second playback parameters so that the output audio data of each playback algorithm module in the second difference playback algorithm sequence changes to the first preset output audio data.

[0016] In one exemplary embodiment, the processing method further includes:

[0017] Obtain the third playback parameter in each playback algorithm module of the corresponding first playback algorithm sequence in the same playback algorithm subsequence;

[0018] Obtain the fourth playback parameter in each playback algorithm module of the corresponding second playback algorithm sequence in the same playback algorithm subsequence;

[0019] Change the third playback parameter to the fourth playback parameter.

[0020] In an exemplary embodiment, switching the first playback algorithm sequence to the second playback algorithm sequence includes:

[0021] The processed first difference playback algorithm sequence, second difference playback algorithm sequence, and identical playback algorithm subsequence are merged to switch the first playback algorithm sequence to the second playback algorithm sequence.

[0022] In an exemplary embodiment, switching the first playback algorithm sequence to the second playback algorithm sequence based on whether the first playback algorithm sequence and the second playback algorithm sequence include:

[0023] If the first playback algorithm sequence and the second playback algorithm sequence do not include the same playback algorithm sub-sequence;

[0024] The first playback algorithm sequence is processed so that the output audio data of the first playback algorithm sequence is changed to be the same as the input audio data of the first playback algorithm sequence;

[0025] The second playback algorithm sequence is processed to change the output audio data of the second playback algorithm sequence to the second preset output audio data.

[0026] In an exemplary embodiment, switching the first playback algorithm sequence to the second playback algorithm sequence includes:

[0027] The processed first playback algorithm sequence and the processed second playback algorithm sequence are merged to switch the first playback algorithm sequence to the second playback algorithm sequence.

[0028] In an exemplary embodiment, merging the processed first playback algorithm sequence and the processed second playback algorithm sequence includes:

[0029] The processed second playback algorithm sequence is arranged after the processed first playback algorithm sequence.

[0030] According to a second aspect of the present disclosure, an audio processing apparatus is provided, applied to a terminal, the apparatus comprising:

[0031] The first acquisition module is configured to acquire the first playback algorithm sequence of the currently playing first audio data;

[0032] The second acquisition module is configured to acquire the second playback algorithm sequence of the second audio data to be switched;

[0033] The switching module is configured to switch the first playback algorithm sequence to the second playback algorithm sequence based on whether the first playback algorithm sequence and the second playback algorithm sequence include the same playback algorithm sub-sequence.

[0034] In one exemplary embodiment, the switching module is further configured to:

[0035] If the first playback algorithm sequence and the second playback algorithm sequence include the same playback algorithm subsequence, determine the first playback algorithm sequence and the first difference playback algorithm sequence of the same playback algorithm subsequence, and process the first difference playback algorithm sequence so that the output audio data of the first difference playback algorithm sequence is changed to be the same as the input audio data of the first difference playback algorithm sequence;

[0036] A second differential playback algorithm sequence is determined, along with the second playback algorithm subsequence. The second differential playback algorithm sequence is then processed to change the output audio data of the second differential playback algorithm sequence to a first preset output audio data.

[0037] In one exemplary embodiment, the switching module is further configured to:

[0038] Obtain the first playback parameter in each playback algorithm module of the first differential playback algorithm sequence, and adjust the first playback parameter so that the output audio data of each playback algorithm module in the first differential playback algorithm sequence is the same as the input audio data of each playback algorithm module in the first differential playback algorithm sequence.

[0039] In one exemplary embodiment, the switching module is further configured to:

[0040] Obtain the second playback parameters in each playback algorithm module of the second difference playback algorithm sequence, and adjust the second playback parameters so that the output audio data of each playback algorithm module in the second difference playback algorithm sequence changes to the first preset output audio data.

[0041] In one exemplary embodiment, the processing apparatus further includes:

[0042] The third acquisition module is configured to acquire the third playback parameter in each playback algorithm module in the corresponding first playback algorithm sequence in the same playback algorithm subsequence;

[0043] The fourth acquisition module is configured to acquire the fourth playback parameter in each playback algorithm module of the corresponding second playback algorithm sequence in the same playback algorithm sub-sequence;

[0044] The switching module is also configured to change the third playback parameter to the fourth playback parameter.

[0045] In one exemplary embodiment, the switching module is further configured to:

[0046] The processed first difference playback algorithm sequence, second difference playback algorithm sequence, and identical playback algorithm subsequence are merged to switch the first playback algorithm sequence to the second playback algorithm sequence.

[0047] In one exemplary embodiment, the switching module is further configured to:

[0048] If the first playback algorithm sequence and the second playback algorithm sequence do not include the same playback algorithm sub-sequence;

[0049] The first playback algorithm sequence is processed so that the output audio data of the first playback algorithm sequence is changed to be the same as the input audio data of the first playback algorithm sequence;

[0050] The second playback algorithm sequence is processed to change the output audio data of the second playback algorithm sequence to the second preset output audio data.

[0051] In one exemplary embodiment, the switching module is further configured to:

[0052] The processed first playback algorithm sequence and the processed second playback algorithm sequence are merged to switch the first playback algorithm sequence to the second playback algorithm sequence.

[0053] In one exemplary embodiment, the switching module is further configured to:

[0054] The processed second playback algorithm sequence is arranged after the processed first playback algorithm sequence.

[0055] According to a third aspect of the present disclosure, an audio processing apparatus is provided, comprising:

[0056] processor;

[0057] Memory used to store processor-executable instructions;

[0058] The processor is configured to perform the method as described in any one of the first aspects of the embodiments of this disclosure.

[0059] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium is provided, wherein when instructions in the storage medium are executed by a processor of a device, the device is enabled to perform the method as described in any one of the first aspects of the present disclosure.

[0060] The method described above has the following advantages: by acquiring the first playback algorithm sequence of the currently playing first audio data and the second playback algorithm sequence of the second audio data to be switched, and by switching the first playback algorithm sequence to the second playback algorithm sequence based on whether the first playback algorithm sequence and the second playback algorithm sequence include the same playback algorithm subsequence, the resource consumption during the playback algorithm sequence switching process can be reduced and the switching time of the playback algorithm sequence can be shortened. At the same time, the problem of uneven loudness of audio data before and after the playback algorithm sequence switching is avoided.

[0061] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description

[0062] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0063] Figure 1 This is a schematic diagram illustrating the switching of an audio playback algorithm sequence according to an exemplary embodiment;

[0064] Figure 2 This is a schematic diagram illustrating the switching of an audio playback algorithm sequence according to an exemplary embodiment;

[0065] Figure 3 This is a flowchart illustrating an audio processing method according to an exemplary embodiment;

[0066] Figure 4 This is a flowchart illustrating a method for switching from the first playback algorithm sequence to the second playback algorithm sequence in step S303, based on whether the first playback algorithm sequence and the second playback algorithm sequence include the same playback algorithm sub-sequence, according to an example embodiment.

[0067] Figure 5 This is a flowchart illustrating a method for processing the same playback algorithm subsequence according to an exemplary embodiment;

[0068] Figure 6 This is a schematic diagram illustrating the switching of an audio playback algorithm sequence according to an exemplary embodiment;

[0069] Figure 7 This is a flowchart illustrating a method for switching from the first playback algorithm sequence to the second playback algorithm sequence in step S303, according to an exemplary embodiment, based on whether the first playback algorithm sequence and the second playback algorithm sequence include the same playback algorithm sub-sequence.

[0070] Figure 8This is a block diagram illustrating an audio processing apparatus according to an exemplary embodiment;

[0071] Figure 9 This is a block diagram illustrating an audio processing apparatus according to an exemplary embodiment. Detailed Implementation

[0072] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatuses and methods consistent with some aspects of the invention as detailed in the appended claims.

[0073] In related technologies, there are two ways to switch the playback algorithm sequence of audio data:

[0074] The first method involves gradually switching the currently playing audio data, which has been processed by the playback algorithm sequence, to the currently playing audio data that has not been processed by the playback algorithm sequence, and then switching to the audio data to be played, which has been processed by the playback algorithm sequence to be switched.

[0075] like Figure 1 As shown, the switching starting point is the current playback algorithm sequence, where the currently played audio data has been processed by the current playback algorithm sequence (Algorithm A, Algorithm C, Algorithm D). The switching ending point is the playback algorithm sequence to be switched to (Algorithm B, Algorithm C, Algorithm A), where the audio data to be switched to has been processed by the playback algorithm sequence (Algorithm B, Algorithm C, Algorithm A). Within a short time, the audio data currently processed by the playback algorithm sequence is transformed into unprocessed audio data. Then, the unprocessed audio data is processed according to the playback algorithm sequence to be switched to obtain the audio data to be switched.

[0076] However, because there is a difference in loudness between the audio before and after the playback algorithm sequence, a perceptible difference in loudness may occur when switching playback algorithm sequences, such as the volume suddenly decreasing.

[0077] The second method involves directly alternating between the current playback algorithm sequence and the playback algorithm sequence to be switched.

[0078] like Figure 2As shown, the currently playing audio data is processed by the current playback algorithm sequence (Algorithm A, Algorithm C, Algorithm D), while the audio data to be switched is processed by the playback algorithm sequence to be switched (Algorithm B, Algorithm C, Algorithm A). The audio data to be switched is simultaneously fed into both the current playback algorithm sequence and the playback algorithm sequence to be switched for processing, and parameter interpolation is performed between the two processing results to transform it into the playback algorithm sequence to be switched. However, this method requires running two playback algorithm sequences simultaneously, significantly increasing the resource consumption of the terminal's operating system.

[0079] In the two methods above, assume that the delays of algorithm A, algorithm B, algorithm C, and algorithm D are respectively d a d b d c d d The switching process, i.e., the delay for parameter interpolation, is m. Therefore, the total delay time is: m + d a +d b +d c Therefore, the switching process takes a long time.

[0080] In an exemplary embodiment of this disclosure, an audio processing method is provided, applied to a terminal, including electronic devices such as smartphones, tablets, smart TVs, and speakers that require audio data processing before playback. Figure 3 This is a flowchart illustrating an audio processing method according to an exemplary embodiment, such as... Figure 3 As shown, it includes the following steps:

[0081] Step S301: Obtain the first playback algorithm sequence of the currently playing first audio data;

[0082] Step S302: Obtain the second playback algorithm sequence of the second audio data to be switched;

[0083] Step S303: Based on whether the first playback algorithm sequence and the second playback algorithm sequence include the same playback algorithm subsequence, switch the first playback algorithm sequence to the second playback algorithm sequence.

[0084] In the exemplary embodiments of this disclosure, in order to overcome the problems existing in the related art when switching playback algorithm sequences, a method for switching playback algorithm sequences, i.e., an audio processing method, is proposed. A first playback algorithm sequence of the currently playing first audio data and a second playback algorithm sequence of the second audio data to be switched are obtained respectively. Based on whether the first and second playback algorithm sequences include the same playback algorithm sub-sequences, the first playback algorithm sequence is switched to the second playback algorithm sequence. This reduces the system resource consumption during the playback algorithm sequence switching process and shortens the switching time.

[0085] A playback algorithm sequence is a sequence of playback algorithm modules used in the processing of audio data when it is played through the terminal's playback device. The playback algorithm sequence can include an arrangement of multiple playback algorithm modules in processing order. In one example, if the audio data needs to be processed sequentially by algorithm A, algorithm C, and algorithm D before it can be played through the terminal's playback device, then the playback algorithm sequence is: Algorithm A, Algorithm C, Algorithm D, which includes three playback algorithm modules.

[0086] The system acquires the first audio data currently playing on the terminal and the second audio data to be switched to. The first and second audio data are audio data that require processing through different playback algorithm sequences, respectively. The system then determines the first playback algorithm sequence for the first audio data and the second playback algorithm sequence for the second audio data. In one example, if the terminal is currently playing a movie in a video application and needs to switch to a music application to play music, the movie content is the first audio data, and the music content is the second audio data.

[0087] Determine whether the first and second playback algorithm sequences contain the same playback algorithm subsequence. The same playback algorithm subsequence is the set of playback algorithm modules that are identical in both sequences. In one example, the first playback algorithm sequence is (Algorithm A, Algorithm C, Algorithm D), and the second playback algorithm sequence is (Algorithm B, Algorithm C, Algorithm A). Then the same playback algorithm subsequence is (Algorithm A, Algorithm C). By determining whether these subsequences are identical, the resource space for switching playback algorithm sequences can be initialized.

[0088] The first playback algorithm sequence is switched to the second playback algorithm sequence based on whether the first and second playback algorithm sequences contain the same playback algorithm subsequences. For example, the switch is made based on the difference between the first and second playback algorithm sequences and the same playback algorithm subsequences. When switching from the first to the second playback algorithm sequence, each playback algorithm module in the playback algorithm sequence is processed separately.

[0089] In the exemplary embodiments of this disclosure, by obtaining the first playback algorithm sequence of the currently playing first audio data and the second playback algorithm sequence of the second audio data to be switched, and by switching the first playback algorithm sequence to the second playback algorithm sequence based on whether the first playback algorithm sequence and the second playback algorithm sequence include the same playback algorithm sub-sequence, the resource consumption during the playback algorithm sequence switching process can be reduced and the switching time of the playback algorithm sequence can be shortened. At the same time, the problem of uneven loudness of audio data before and after the playback algorithm sequence switching is avoided.

[0090] In one exemplary embodiment, Figure 4 This is a flowchart illustrating step S303 of an example embodiment, showing the method of switching the first playback algorithm sequence to the second playback algorithm sequence based on whether the first playback algorithm sequence and the second playback algorithm sequence include the same playback algorithm sub-sequence. Figure 4 As shown, it includes the following steps:

[0091] Step S401: If the first playback algorithm sequence and the second playback algorithm sequence include the same playback algorithm subsequence;

[0092] Step S402: Determine the first playback algorithm sequence and the first difference playback algorithm sequence of the same playback algorithm subsequence, and process the first difference playback algorithm sequence so that the output audio data of the first difference playback algorithm sequence is changed to be the same as the input audio data of the first difference playback algorithm sequence;

[0093] Step S403: Determine the second playback algorithm sequence and the second difference playback algorithm sequence of the same playback algorithm subsequence, and process the second difference playback algorithm sequence to change the output audio data of the second difference playback algorithm sequence to the first preset output audio data.

[0094] When the first playback algorithm sequence and the second playback algorithm sequence include the same playback algorithm subsequence, the first difference playback algorithm sequence is determined between the first playback algorithm sequence and the same playback algorithm subsequence. In one example, the first playback algorithm sequence is (Algorithm A, Algorithm C, Algorithm D), and the second playback algorithm sequence is (Algorithm B, Algorithm C, Algorithm A), then the same playback algorithm subsequence is (Algorithm A, Algorithm C). When the first playback algorithm sequence (Algorithm A, Algorithm B, Algorithm C) and the same playback algorithm subsequence (Algorithm A, Algorithm C) are present, the first difference playback algorithm sequence is (Algorithm D). Since the first playback algorithm sequence is the current playback algorithm sequence, the playback algorithm modules in the first difference playback algorithm sequence need to be removed from the algorithm processing sequence. The first difference playback algorithm sequence is processed so that the output audio data of the first difference playback algorithm sequence is changed to be the same as the input audio data of the first difference playback algorithm sequence, that is, the processing of the audio data by the first difference playback algorithm sequence does not change the characteristics of the audio data. This operation is called "fade-out operation".

[0095] Determine the second playback algorithm sequence and the second differential playback algorithm sequence of the same playback algorithm subsequence. In one example, the first playback algorithm sequence is (Algorithm A, Algorithm C, Algorithm D), the second playback algorithm sequence is (Algorithm B, Algorithm C, Algorithm A), then the same playback algorithm subsequence is (Algorithm A, Algorithm C). When the second playback algorithm sequence (Algorithm B, Algorithm C, Algorithm A) is the same as the same playback algorithm subsequence (Algorithm A, Algorithm C), then the second differential playback algorithm sequence is (Algorithm B). Since the second playback algorithm sequence is the playback algorithm sequence to be switched, the playback algorithm modules in the second differential playback algorithm sequence need to be added to the algorithm processing sequence. The second differential playback algorithm sequence is processed so that the output audio data of the second differential playback algorithm sequence changes to the first preset output audio data. The first preset output audio data is the switching result required in the playback algorithm sequence to be switched. This operation is called the "fade-in operation".

[0096] It should be noted that the first and second difference algorithm playback sequences in the above examples each include only one playback algorithm module, which does not constitute a limitation of this disclosure. The difference playback algorithm sequence is determined based on the same playback algorithm sequence between the first and second playback algorithm sequences in actual applications.

[0097] When the first playback algorithm sequence and the second playback algorithm sequence include the same playback algorithm subsequence, the "fade-out operation" and "fade-in operation" in steps S402 and S403 are performed independently on the different algorithm playback sequences, that is, the corresponding operations can be performed simultaneously without any restriction on the order of the steps.

[0098] In one example, the first playback algorithm sequence is (Algorithm A, Algorithm C, Algorithm D), and the second playback algorithm sequence is (Algorithm A, Algorithm C, Algorithm B). The delays of Algorithms A, B, C, and D are d, respectively. a d b d c d d The switching process, i.e., the delay for parameter interpolation, is m. Therefore, the total delay is the sum of the maximum delay of all playback algorithm modules and the delay of the switching process: m + max(d) a d b d c ).

[0099] Therefore, by fading out the playback algorithm modules from the first differential playback algorithm sequence and fading in the playback algorithm modules from the second differential playback algorithm sequence, the first playback algorithm sequence can be switched to the second playback algorithm sequence by processing only the differential playback algorithm sequence. This minimizes the number of playback algorithm modules that need to be processed during the switching process, reducing system resource consumption and avoiding insufficient computing resources on some terminals due to poor processor performance. It also shortens the switching time of the playback algorithm sequence.

[0100] In one exemplary embodiment, processing a first differential playback algorithm sequence to change the output audio data of the first differential playback algorithm sequence to be the same as the input audio data of the first differential playback algorithm sequence includes: obtaining a first playback parameter in each playback algorithm module of the first differential playback algorithm sequence, and adjusting the first playback parameter to change the output audio data of each playback algorithm module of the first differential playback algorithm sequence to be the same as the input audio data of each playback algorithm module of the first differential playback algorithm sequence.

[0101] When processing the first difference playback algorithm sequence, each playback algorithm module in the sequence can be processed individually. Each playback algorithm module may include at least one first playback parameter. A "fade-out operation" can be performed on each first playback parameter. A "fade-out operation" removes each playback algorithm module from the audio playback algorithm sequence, meaning the first playback parameter in each module no longer participates in the processing of audio data. For example, the first playback parameter can be adjusted to "fade out" the processing of audio data. For instance, the first playback parameter can be adjusted so that the output audio data of each playback algorithm module in the first difference playback algorithm sequence is changed to be the same as the input audio data of each playback algorithm module in the first difference playback algorithm sequence.

[0102] The adjustment rule can be any rule that adjusts the first playback parameter to prevent it from participating in audio data processing. For example, the adjustment of the first playback parameter can be described numerically to characterize its participation in audio data processing. For example, a value of 100 indicates that the first playback parameter fully participates in audio data processing, while a value of 0 indicates that the first playback parameter does not participate in audio data processing at all. A decreasing rule can be used to gradually reduce the first playback parameter's participation in audio data processing. For example, it can decrease according to a preset step size, such as from 100 to 0, with a step size of 1, then decreasing sequentially from 100, 99, 98, 97, ..., 1, 0 to 0, thus gradually reducing the first playback parameter's participation in audio data processing, so that the first playback parameter in the playback algorithm module no longer participates in audio data processing, and therefore the playback algorithm module no longer plays a role in processing audio data in the playback algorithm sequence.

[0103] According to the above rules, adjusting the first playback parameter can avoid audio data abrupt changes during the switching process. In addition, processing each playback algorithm module separately also ensures that the output of each playback algorithm module does not abruptly change.

[0104] In one exemplary embodiment, processing the second differential playback algorithm sequence to change the output audio data of the second differential playback algorithm sequence to the first preset output audio data includes: obtaining the second playback parameters in each playback algorithm module of the second differential playback algorithm sequence, and adjusting the second playback parameters to change the output audio data of each playback algorithm module of the second differential playback algorithm sequence to the first preset output audio data.

[0105] When processing the second difference playback algorithm sequence, each playback algorithm module in the sequence is processed individually. Each playback algorithm module may include at least one second playback parameter. A "fade-in" operation can be performed on each second playback parameter. The "fade-in" operation adds each playback algorithm module to the audio playback algorithm sequence, causing the second playback parameter in each module to participate in the processing of the audio data. For example, the second playback parameter can be adjusted to "fade in" and process the audio data. For example, the second playback parameter can be adjusted so that the output audio data of each playback algorithm module in the second difference playback algorithm sequence changes to match the first preset audio data.

[0106] The adjustment rules can be any rules that adjust the second playback parameter to ensure its full participation in audio data processing. For example, the adjustment of the second playback parameter can be numerically described to characterize its degree of participation in audio data processing. For instance, a value of 0 indicates that the second playback parameter does not participate in audio data processing at all, while a value of 100 indicates that the second playback parameter fully participates in audio data processing. An incremental rule can be used to gradually incorporate the second playback parameter into the audio data playback algorithm sequence. For example, it can be incremented according to a preset step size. For instance, when changing from 0 to 100, with a step size of 1, the parameter can be incremented sequentially from 0, 1, 2, 3, ..., 99, 100 to 100, thus gradually increasing the degree of participation of the second playback parameter in audio data processing. This ensures that the second playback parameter in the playback algorithm module fully participates in audio data processing, thereby enabling the playback algorithm module to play a role in processing audio data within the playback algorithm sequence.

[0107] According to the above rules, adjusting the second playback parameters can avoid audio data abrupt changes during the switching process. In addition, processing each playback algorithm module separately also ensures that the output of each playback algorithm module does not abruptly change.

[0108] In one exemplary embodiment, Figure 5 This is a flowchart illustrating a method for processing the same playback algorithm subsequence according to an exemplary embodiment, such as... Figure 5 As shown, it includes the following steps:

[0109] Step S501: Obtain the third playback parameter in each playback algorithm module of the corresponding first playback algorithm sequence in the same playback algorithm subsequence;

[0110] Step S502: Obtain the fourth playback parameter in each playback algorithm module of the corresponding second playback algorithm sequence in the same playback algorithm subsequence;

[0111] Step S503: Change the third playback parameter to the fourth playback parameter.

[0112] Although the first and second playback algorithm sequences include the same playback algorithm sub-sequences, the states required for algorithm processing by the algorithm differ between the currently playing audio data and the audio data to be switched. Therefore, the parameter values ​​for the same playback parameters in the same playback algorithm sub-sequences in the first and second playback algorithm sequences will differ. Consequently, the parameter values ​​for the corresponding parameters in the same playback algorithm sub-sequences in the first and second playback algorithm sequences are modified to match the parameter values ​​for the same playback parameters in the same playback algorithm sub-sequences in the second playback algorithm sequence, thus satisfying the audio data processing requirements of the playback algorithm sequence to be switched.

[0113] In the same playback algorithm subsequence, the third playback parameter in each playback algorithm module of the first playback algorithm sequence is the same as the fourth playback parameter in each playback algorithm module of the second playback algorithm sequence. Because the states that the currently playing audio data and the audio data to be switched require algorithm processing are different, the corresponding parameter values ​​of the third and fourth playback parameters are different. In one example, suppose that playback algorithm module A in the same playback algorithm sequence has a playback parameter 'a'. In the first playback algorithm sequence, the value of playback parameter 'a' (the third playback parameter) is 4, and in the second playback algorithm sequence, the value of playback parameter 'a' (the fourth playback parameter) is 8.

[0114] When changing the third playback parameter to the fourth playback parameter, based on the characteristics of the playback parameter, at least one of the following two cases should be included:

[0115] The first approach involves adjusting the playback parameters in a continuously variable manner when the parameter values ​​can be changed continuously. For example, the value of the third playback parameter can be gradually changed to the value of the fourth playback parameter according to a preset step size. For instance, if the third playback parameter is 4 and the fourth playback parameter is 8, it can be changed continuously in preset step sizes of 0.5. Therefore, the playback parameters can be adjusted continuously in the order of 4, 4.5, 5, 5.5, 6...7.5, 8 to change the third playback parameter to the fourth playback parameter, thus avoiding sudden changes in audio loudness during the switching process.

[0116] The second approach involves setting up two algorithm processing units within the playback algorithm module when the playback parameters are discrete and cannot change continuously. These units respectively set the third and fourth playback parameters. Linear interpolation between the two processing units transforms the third playback parameter into the fourth. In one example, the playback parameters can only be 1, 2, or 3, representing three audio data playback modes. The third playback parameter is 1, and the fourth is 2. In this case, a first and a second algorithm processing unit are set up within the playback module. Linear interpolation between these two units transforms the third playback parameter into the fourth, preventing sudden changes in audio loudness during switching.

[0117] The playback parameters in the playback algorithm modules within the same playback algorithm subsequence are adjusted to switch the same playback algorithm subsequence corresponding to the first playback algorithm sequence to the same playback algorithm subsequence corresponding to the second playback algorithm sequence. For the playback algorithm modules within the same playback algorithm subsequence, only the parameters are adjusted, reducing the computational load of switching playback algorithm sequences and shortening the switching time.

[0118] In one exemplary embodiment, switching from a first playback algorithm sequence to a second playback algorithm sequence includes: merging the processed first difference playback algorithm sequence, the second difference playback algorithm sequence, and the same playback algorithm subsequence to switch from the first playback algorithm sequence to the second playback algorithm sequence.

[0119] Based on the order of the playback algorithm modules in the first playback algorithm sequence and the order of the playback algorithm modules in the second playback algorithm sequence, the processed first difference playback algorithm sequence, second difference playback algorithm sequence, and identical playback algorithm subsequence are merged to switch to the second playback algorithm sequence.

[0120] In one example, such as Figure 6 As shown, the first playback algorithm sequence is (Algorithm A, Algorithm C, Algorithm D), the second playback algorithm sequence is (Algorithm B, Algorithm C, Algorithm A), the processed first difference playback algorithm sequence is (Algorithm D'), and the second difference playback algorithm sequence is (Algorithm B'). Algorithm B and Algorithm A are added to the first playback algorithm sequence according to their positions in the second playback algorithm sequence to obtain the playback algorithm sequence (Algorithm A, Algorithm B', Algorithm C, Algorithm D', Algorithm A). At this time, Algorithm B' is the newly added playback algorithm module, Algorithm D' is the playback algorithm module that no longer processes the audio data, and Algorithm A is the playback algorithm module whose position has been adjusted. Therefore, the second playback algorithm sequence (Algorithm B, Algorithm C, Algorithm A) is obtained.

[0121] In one exemplary embodiment, Figure 7 This is a flowchart illustrating step S303 of an exemplary embodiment, showing the method of switching the first playback algorithm sequence to the second playback algorithm sequence based on whether the first playback algorithm sequence and the second playback algorithm sequence include the same playback algorithm sub-sequence. Figure 7 As shown, it includes the following steps:

[0122] Step S701: If the first playback algorithm sequence and the second playback algorithm sequence do not include the same playback algorithm subsequence;

[0123] Step S702: Process the first playback algorithm sequence so that the output audio data of the first playback algorithm sequence is changed to be the same as the input audio data of the first playback algorithm sequence;

[0124] Step S703: Process the second playback algorithm sequence to change the output audio data of the second playback algorithm sequence to the second preset output audio data.

[0125] When the first playback algorithm sequence and the second playback algorithm sequence do not contain the same playback algorithm subsequence, the playback algorithm modules in the first playback algorithm sequence are all playback algorithm modules that need to be removed. Therefore, it is necessary to change the output audio data of the first playback algorithm sequence to be the same as the input audio data of the first playback algorithm sequence, and to perform a "fade-out operation" on each playback parameter in each playback algorithm module in the first playback algorithm sequence, adjusting all playback parameters so that all playback parameters in each playback algorithm module no longer participate in the processing of audio data.

[0126] The playback algorithm modules in the second playback algorithm sequence are all playback algorithm modules that need to be added to the playback algorithm sequence. Therefore, it is necessary to change the output audio data of the second playback algorithm sequence to the second preset output audio data. That is, the second playback algorithm sequence is used to process the audio data, and a "fade-in operation" is performed on each playback parameter in each playback algorithm module in the second playback algorithm sequence to adjust all playback parameters so that all playback parameters in each playback algorithm module participate in the processing of audio data.

[0127] It should be noted that steps S702 and S703 are performed separately for each playback algorithm module, so they can be processed according to preset rules or performed simultaneously, and this disclosure does not impose any restrictions.

[0128] By changing the output audio data of the first playback algorithm sequence to be the same as the input audio data of the first playback algorithm sequence, and changing the output audio data of the second playback algorithm sequence to the second preset output audio data, all playback algorithm modules in the first playback algorithm sequence are removed from the playback algorithm sequence for audio data playback, and all playback algorithm modules in the second playback algorithm sequence are added to the playback algorithm sequence for audio data playback.

[0129] In one exemplary embodiment, switching a first playback algorithm sequence to a second playback algorithm sequence includes: merging the processed first playback algorithm sequence and the processed second playback algorithm sequence to switch the first playback algorithm sequence to the second playback algorithm sequence.

[0130] Following the order of the playback algorithm modules in the second playback algorithm sequence, the processed first playback algorithm sequence and the processed second playback algorithm sequence are merged. The processed second playback algorithm sequence can be arranged after the processed first playback algorithm sequence or before the processed first playback algorithm sequence. Since the processed first playback algorithm sequence does not change the characteristics of the audio data, the order of the processed first playback algorithm sequence and the processed second playback algorithm sequence is not restricted.

[0131] In an exemplary embodiment of this disclosure, a first playback algorithm sequence of currently playing first audio data is obtained, a second playback algorithm sequence of second audio data to be switched is obtained, and the first playback algorithm sequence is switched to the second playback algorithm sequence based on whether the first playback algorithm sequence and the second playback algorithm sequence include the same playback algorithm sub-sequence. This can reduce resource consumption during the playback algorithm sequence switching process and shorten the switching time of the playback algorithm sequence, while avoiding the problem of uneven audio data loudness before and after the playback algorithm sequence switching.

[0132] In an exemplary embodiment of this disclosure, an audio processing apparatus is provided, applied to a terminal, such as... Figure 8 As shown, the audio processing device includes:

[0133] The first acquisition module 801 is configured to acquire the first playback algorithm sequence of the currently playing first audio data;

[0134] The second acquisition module 802 is configured to acquire a second playback algorithm sequence of the second audio data to be switched;

[0135] The switching module 803 is configured to switch the first playback algorithm sequence to the second playback algorithm sequence based on whether the first playback algorithm sequence and the second playback algorithm sequence include the same playback algorithm subsequence.

[0136] In an exemplary embodiment, the switching module 803 is further configured to:

[0137] If the first playback algorithm sequence and the second playback algorithm sequence include the same playback algorithm subsequence, determine the first playback algorithm sequence and the first difference playback algorithm sequence of the same playback algorithm subsequence, and process the first difference playback algorithm sequence so that the output audio data of the first difference playback algorithm sequence is changed to be the same as the input audio data of the first difference playback algorithm sequence;

[0138] A second differential playback algorithm sequence is determined, along with the second playback algorithm subsequence. The second differential playback algorithm sequence is then processed to change the output audio data of the second differential playback algorithm sequence to a first preset output audio data.

[0139] In an exemplary embodiment, the switching module 803 is further configured to:

[0140] Obtain the first playback parameter in each playback algorithm module of the first differential playback algorithm sequence, and adjust the first playback parameter so that the output audio data of each playback algorithm module in the first differential playback algorithm sequence is the same as the input audio data of each playback algorithm module in the first differential playback algorithm sequence.

[0141] In an exemplary embodiment, the switching module 803 is further configured to:

[0142] Obtain the second playback parameters in each playback algorithm module of the second difference playback algorithm sequence, and adjust the second playback parameters so that the output audio data of each playback algorithm module in the second difference playback algorithm sequence changes to the first preset output audio data.

[0143] In one exemplary embodiment, the processing apparatus further includes:

[0144] The third acquisition module 804 is configured to acquire the third playback parameter in each playback algorithm module in the corresponding first playback algorithm sequence in the same playback algorithm subsequence;

[0145] The fourth acquisition module 805 is configured to acquire the fourth playback parameter in each playback algorithm module of the corresponding second playback algorithm sequence in the same playback algorithm sub-sequence;

[0146] The switching module 803 is also configured to change the third playback parameter to the fourth playback parameter.

[0147] In an exemplary embodiment, the switching module 803 is further configured to:

[0148] The processed first difference playback algorithm sequence, second difference playback algorithm sequence, and identical playback algorithm subsequence are merged to switch the first playback algorithm sequence to the second playback algorithm sequence.

[0149] In an exemplary embodiment, the switching module 803 is further configured to:

[0150] If the first playback algorithm sequence and the second playback algorithm sequence do not include the same playback algorithm sub-sequence;

[0151] The first playback algorithm sequence is processed so that the output audio data of the first playback algorithm sequence is changed to be the same as the input audio data of the first playback algorithm sequence;

[0152] The second playback algorithm sequence is processed to change the output audio data of the second playback algorithm sequence to the second preset output audio data.

[0153] In an exemplary embodiment, the switching module 803 is further configured to:

[0154] The processed first playback algorithm sequence and the processed second playback algorithm sequence are merged to switch the first playback algorithm sequence to the second playback algorithm sequence.

[0155] In an exemplary embodiment, the switching module 803 is further configured to:

[0156] The processed second playback algorithm sequence is arranged after the processed first playback algorithm sequence.

[0157] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.

[0158] When the audio processing device is a terminal Figure 9 This is a block diagram of an audio processing apparatus 900 according to an exemplary embodiment.

[0159] Reference Figure 9 The device 900 may include one or more of the following components: a processing component 902, a memory 904, a power supply component 906, a multimedia component 908, an audio component 910, an input / output (I / O) interface 912, a sensor component 914, and a communication component 916.

[0160] Processing component 902 typically controls the overall operation of device 900, such as operations associated with display, telephone calls, data communication, camera operation, and recording. Processing component 902 may include one or more processors 920 to execute instructions to perform all or part of the steps of the methods described above. Furthermore, processing component 902 may include one or more modules to facilitate interaction between processing component 902 and other components. For example, processing component 902 may include a multimedia module to facilitate interaction between multimedia component 908 and processing component 902.

[0161] Memory 904 is configured to store various types of data to support the operation of device 900. Examples of this data include instructions for any application or method operating on device 900, contact data, phonebook data, messages, pictures, videos, etc. Memory 904 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.

[0162] Power supply component 906 provides power to various components of device 900. Power supply component 906 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to device 900.

[0163] Multimedia component 908 includes a screen that provides an output interface between the device 900 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of the touch or swipe action but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 908 includes a front-facing camera and / or a rear-facing camera. When the device 900 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or the rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.

[0164] Audio component 910 is configured to output and / or input audio signals. For example, audio component 910 includes a microphone (MIC) configured to receive external audio signals when device 900 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 904 or transmitted via communication component 916. In some embodiments, audio component 910 also includes a speaker for outputting audio signals.

[0165] I / O interface 912 provides an interface between processing component 902 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.

[0166] Sensor assembly 914 includes one or more sensors for providing status assessments of various aspects of device 900. For example, sensor assembly 914 may detect the on / off state of device 900, the relative positioning of components such as the display and keypad of device 900, changes in position of device 900 or a component of device 900, the presence or absence of user contact with device 900, orientation or acceleration / deceleration of device 900, and temperature changes of device 900. Sensor assembly 914 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 914 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 914 may also include an accelerometer, gyroscope, magnetometer, pressure sensor, or temperature sensor.

[0167] Communication component 916 is configured to facilitate wired or wireless communication between device 900 and other devices. Device 900 can access wireless networks based on communication standards, such as WiFi, 2G, or 3G, or combinations thereof. In one exemplary embodiment, communication component 916 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 916 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0168] In an exemplary embodiment, the apparatus 900 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the methods described above.

[0169] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 904 including instructions, which can be executed by a processor 920 of the device 900 to perform the above-described method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.

[0170] A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of a device, enables the device to perform an audio processing method, the method comprising any of the methods described above.

[0171] Other embodiments of the invention will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of the invention are indicated by the following claims.

[0172] It should be understood that the present invention is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of the invention is limited only by the appended claims.

Claims

1. An audio processing method, characterized in that, The method includes: Obtain the first playback algorithm sequence for the currently playing first audio data; Obtain the second playback algorithm sequence of the second audio data to be switched; Based on whether the first playback algorithm sequence and the second playback algorithm sequence include the same playback algorithm sub-sequence, the first playback algorithm sequence is switched to the second playback algorithm sequence; The step of switching the first playback algorithm sequence to the second playback algorithm sequence based on whether the first playback algorithm sequence and the second playback algorithm sequence include: Based on the first playback algorithm sequence and the second playback algorithm sequence, a fade-out operation or a fade-in operation is performed, or a fade-out operation or a fade-in operation is performed on a determined difference playback algorithm sequence, to switch the first playback algorithm sequence to the second playback algorithm sequence.

2. The audio processing method according to claim 1, characterized in that, The step of switching the first playback algorithm sequence to the second playback algorithm sequence based on whether the first playback algorithm sequence and the second playback algorithm sequence include: If the first playback algorithm sequence and the second playback algorithm sequence include the same playback algorithm subsequence, determine the first playback algorithm sequence and the first difference playback algorithm sequence of the same playback algorithm subsequence, and process the first difference playback algorithm sequence so that the output audio data of the first difference playback algorithm sequence is changed to be the same as the input audio data of the first difference playback algorithm sequence; A second differential playback algorithm sequence is determined, along with the second playback algorithm subsequence. The second differential playback algorithm sequence is then processed to change the output audio data of the second differential playback algorithm sequence to a first preset output audio data.

3. The audio processing method according to claim 2, characterized in that, The step of processing the first difference playback algorithm sequence to make the output audio data of the first difference playback algorithm sequence the same as the input audio data of the first difference playback algorithm sequence includes: Obtain the first playback parameter in each playback algorithm module of the first differential playback algorithm sequence, and adjust the first playback parameter so that the output audio data of each playback algorithm module in the first differential playback algorithm sequence is the same as the input audio data of each playback algorithm module in the first differential playback algorithm sequence.

4. The audio processing method according to claim 2, characterized in that, The process of processing the second difference playback algorithm sequence to change the output audio data of the second difference playback algorithm sequence to the first preset output audio data includes: Obtain the second playback parameters in each playback algorithm module of the second difference playback algorithm sequence, and adjust the second playback parameters so that the output audio data of each playback algorithm module in the second difference playback algorithm sequence changes to the first preset output audio data.

5. The audio processing method according to claim 2, characterized in that, The processing method further includes: Obtain the third playback parameter in each playback algorithm module of the corresponding first playback algorithm sequence in the same playback algorithm subsequence; Obtain the fourth playback parameter in each playback algorithm module of the corresponding second playback algorithm sequence in the same playback algorithm subsequence; Change the third playback parameter to the fourth playback parameter.

6. The audio processing method according to claim 2, characterized in that, Switching from the first playback algorithm sequence to the second playback algorithm sequence includes: The processed first difference playback algorithm sequence, second difference playback algorithm sequence, and identical playback algorithm subsequence are merged to switch the first playback algorithm sequence to the second playback algorithm sequence.

7. The audio processing method according to claim 1, characterized in that, The step of switching the first playback algorithm sequence to the second playback algorithm sequence based on whether the first playback algorithm sequence and the second playback algorithm sequence include: If the first playback algorithm sequence and the second playback algorithm sequence do not include the same playback algorithm sub-sequence; The first playback algorithm sequence is processed so that the output audio data of the first playback algorithm sequence is changed to be the same as the input audio data of the first playback algorithm sequence; The second playback algorithm sequence is processed to change the output audio data of the second playback algorithm sequence to the second preset output audio data.

8. The audio processing method according to claim 7, characterized in that, Switching from the first playback algorithm sequence to the second playback algorithm sequence includes: The processed first playback algorithm sequence and the processed second playback algorithm sequence are merged to switch the first playback algorithm sequence to the second playback algorithm sequence.

9. The audio processing method according to claim 8, characterized in that, The step of merging the processed first playback algorithm sequence and the processed second playback algorithm sequence includes: The processed second playback algorithm sequence is arranged after the processed first playback algorithm sequence.

10. An audio processing apparatus, characterized in that, The device includes: The first acquisition module is configured to acquire the first playback algorithm sequence of the currently playing first audio data; The second acquisition module is configured to acquire the second playback algorithm sequence of the second audio data to be switched; The switching module is configured to switch the first playback algorithm sequence to the second playback algorithm sequence based on whether the first playback algorithm sequence and the second playback algorithm sequence include the same playback algorithm sub-sequence; The switching module is further configured to perform a fade-out operation or a fade-in operation based on the first playback algorithm sequence and the second playback algorithm sequence, or to perform a fade-out operation or a fade-in operation on a determined differential playback algorithm sequence, thereby switching the first playback algorithm sequence to the second playback algorithm sequence.

11. The audio processing apparatus according to claim 10, characterized in that, The switching module is also configured to: If the first playback algorithm sequence and the second playback algorithm sequence include the same playback algorithm subsequence, determine the first playback algorithm sequence and the first difference playback algorithm sequence of the same playback algorithm subsequence, and process the first difference playback algorithm sequence so that the output audio data of the first difference playback algorithm sequence is changed to be the same as the input audio data of the first difference playback algorithm sequence; A second differential playback algorithm sequence is determined, along with the second playback algorithm subsequence. The second differential playback algorithm sequence is then processed to change the output audio data of the second differential playback algorithm sequence to a first preset output audio data.

12. The audio processing apparatus according to claim 11, characterized in that, The switching module is also configured to: Obtain the first playback parameter in each playback algorithm module of the first differential playback algorithm sequence, and adjust the first playback parameter so that the output audio data of each playback algorithm module in the first differential playback algorithm sequence is the same as the input audio data of each playback algorithm module in the first differential playback algorithm sequence.

13. The audio processing apparatus according to claim 11, characterized in that, The switching module is also configured to: Obtain the second playback parameters in each playback algorithm module of the second difference playback algorithm sequence, and adjust the second playback parameters so that the output audio data of each playback algorithm module in the second difference playback algorithm sequence changes to the first preset output audio data.

14. The audio processing apparatus according to claim 11, characterized in that, The processing device further includes: The third acquisition module is configured to acquire the third playback parameter in each playback algorithm module in the corresponding first playback algorithm sequence in the same playback algorithm subsequence; The fourth acquisition module is configured to acquire the fourth playback parameter in each playback algorithm module of the corresponding second playback algorithm sequence in the same playback algorithm sub-sequence; The switching module is also configured to change the third playback parameter to the fourth playback parameter.

15. The audio processing apparatus according to claim 11, characterized in that, The switching module is also configured to: The processed first difference playback algorithm sequence, second difference playback algorithm sequence, and identical playback algorithm subsequence are merged to switch the first playback algorithm sequence to the second playback algorithm sequence.

16. The audio processing apparatus according to claim 10, characterized in that, The switching module is also configured to: If the first playback algorithm sequence and the second playback algorithm sequence do not include the same playback algorithm sub-sequence; The first playback algorithm sequence is processed so that the output audio data of the first playback algorithm sequence is changed to be the same as the input audio data of the first playback algorithm sequence; The second playback algorithm sequence is processed to change the output audio data of the second playback algorithm sequence to the second preset output audio data.

17. The audio processing apparatus according to claim 16, characterized in that, The switching module is also configured to: The processed first playback algorithm sequence and the processed second playback algorithm sequence are merged to switch the first playback algorithm sequence to the second playback algorithm sequence.

18. The audio processing apparatus according to claim 17, characterized in that, The switching module is also configured to: The processed second playback algorithm sequence is arranged after the processed first playback algorithm sequence.

19. An audio processing apparatus, characterized in that, include: processor; Memory used to store processor-executable instructions; The processor is configured to perform the method as described in any one of claims 1-9.

20. A non-transitory computer-readable storage medium, wherein instructions in the storage medium, when executed by a processor of a device, enable the device to perform the method as described in any one of claims 1-9.

Citation Information

Patent Citations

  • Multimedia playing method, multimedia processing method and device

    CN107426622A

  • Encoding an audio stream

    CN108370378A