Audio playing method and device, electronic equipment and storage medium

By arranging audio materials with tones changing in the same direction at equal intervals on multiple audio tracks, and playing the generated audio data infinitely, the problem of how to play natural and continuous audio under the uncertainty of the audio playback time is solved, and the effect of never interruption in listening is achieved.

CN120104093APending Publication Date: 2025-06-06NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411977607.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-30
Publication Date
2025-06-06

AI Technical Summary

Technical Problem

When the audio playback time is uncertain, how to play natural and continuous audio to avoid differences in audio connections and unnatural listening.

Method used

By obtaining audio materials whose tone changes in the same direction, these audio materials are arranged at equal intervals on multiple audio tracks, corresponding audio data is generated, and at least part of the audio data is played through infinite loops, natural and continuous audio playback is achieved.

Benefits of technology

Audio with different tone ranges is distributed evenly within any time period, resulting in an uninterrupted effect on the listening experience, ensuring that the audio playback is natural and continuous, and is suitable for scenes where the audio playback time is uncertain.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120104093A_ABST
    Figure CN120104093A_ABST
Patent Text Reader

Abstract

The invention provides an audio playing method and device, electronic equipment and a storage medium. The method comprises the following steps: acquiring a target audio material; wherein the tone of the target audio material changes towards the same direction; arranging at least a first specified number of target audio materials in a first specified number of audio tracks to obtain first audio data; wherein each audio track comprises at least one target audio material, and any moment of the first audio data corresponds to a second specified number of audio tracks; generating target audio data corresponding to at least part of the first audio data according to the interval duration of the starting moments between the audio tracks; and in response to an audio playing instruction, carrying out infinite loop playing on the target audio data until an audio playing stopping instruction is triggered. According to the method and the device, the natural and high-continuity audio can be played under the condition that the audio playing duration is not determined.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of audio technology, and in particular to an audio playing method, device, electronic device and storage medium. Background Art

[0002] In some audio playback scenarios, the required playback duration of the audio is uncertain. For example, the charging sound effects of game characters in virtual games, the charging sound effects of sci-fi weapons, etc. The playback duration of these sound effects depends entirely on the user's interaction duration with the charging / charging controls, etc. The duration of each playback of such sound effects can vary greatly, and the uncertainty is extremely high.

[0003] If ordinary audio is played in an infinite loop, there will be obvious differences in the audio joints, and the joints will be unnatural and poor listening experience. Therefore, how to play natural and continuous audio without determining the audio playback duration is a technical problem that needs to be solved urgently. Summary of the invention

[0004] In view of this, the purpose of the present disclosure is to provide an audio playback method, device, electronic device and storage medium, so as to play natural and continuous audio without determining the audio playback duration.

[0005] In a first aspect, an embodiment of the present disclosure provides an audio playback method, the method comprising: obtaining a target audio material; wherein the pitch of the target audio material changes in the same direction; arranging at least the first specified number of target audio materials in a first specified number of audio tracks to obtain first audio data; wherein each audio track includes at least one of the target audio materials, and any moment of the first audio data corresponds to a second specified number of audio tracks; generating target audio data corresponding to at least part of the first audio data according to the interval duration between the start moments of the audio tracks; and in response to an audio playback instruction, playing the target audio data in an infinite loop until the audio playback stop instruction is triggered.

[0006] In a second aspect, an embodiment of the present disclosure provides an audio playback device, the device comprising: an acquisition module, used to acquire target audio material; wherein the pitch of the target audio material changes in the same direction; an arrangement module, used to arrange at least the first specified number of target audio materials in a first specified number of audio tracks to obtain first audio data; wherein each audio track includes at least one of the target audio material, and any moment of the first audio data corresponds to a second specified number of audio tracks; a generation module, used to generate target audio data corresponding to at least part of the first audio data according to the interval duration between the start moments of the audio tracks; and a playback module, used to respond to an audio playback instruction to play the target audio data in an infinite loop until the audio playback stop instruction is triggered.

[0007] In a third aspect, an embodiment of the present disclosure provides an electronic device, including a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the above-mentioned audio playback method.

[0008] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the above-mentioned audio playback method.

[0009] The embodiments of the present disclosure bring the following beneficial effects:

[0010] The above-mentioned audio playback method, device, electronic device and storage medium arrange audio materials with pitch changing in the same direction on multiple audio tracks at equal time intervals, so that the obtained audio data is distributed with audio of different pitch ranges within any duration, producing an effect of uninterrupted listening. By playing at least part of the audio data in an infinite loop, it is possible to play natural audio with a strong sense of continuity without determining the audio playback duration.

[0011] Other features and advantages of the present disclosure will be described in the following description, and partly become apparent from the description, or understood by practicing the present disclosure. The purpose and other advantages of the present disclosure are realized and obtained by the structures particularly pointed out in the description, claims and drawings.

[0012] In order to make the above-mentioned objectives, features and advantages of the present disclosure more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] In order to more clearly illustrate the specific embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the specific embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.

[0014] Figure 1 A flowchart of an embodiment of the audio playback method in the embodiment of the present disclosure;

[0015] Figure 2 A schematic diagram of an audio playback method in an embodiment of the present disclosure;

[0016] Figure 3 is another schematic diagram of the audio playing method in the embodiment of the present disclosure;

[0017] Figure 4 A schematic diagram of an audio playback device provided by an embodiment of the present disclosure;

[0018] Figure 5 A schematic diagram of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0019] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present disclosure.

[0020] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" or "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0021] For ease of understanding, the specific process of the embodiment of the present disclosure is described below. Figure 1 , an embodiment of the audio playing method in the embodiment of the present disclosure includes:

[0022] Step S10, obtaining a target audio material; wherein the pitch of the target audio material changes in the same direction;

[0023] It can be understood that the target audio material is the basic sound effect of the final target audio data playback effect. In terms of listening experience, the playback effect of the target audio data is a seamless loop based on the target audio material. In the case of uncertainty about the required audio playback duration, the target audio data with no detectable transition is obtained, thereby achieving a natural and continuous audio playback effect.

[0024] It should be noted that the target audio material, as the basic sound effect of the final target audio data playback effect, can be the audio material of any scene, for example, the charging audio material of the game character in the virtual game, the charging audio material of the science fiction weapon, the background sound of the scene (such as the scene that needs to render a tense or psychedelic atmosphere, etc.), etc., depending on the application scenario, which is not limited here.

[0025] In this embodiment, when producing the target audio material, the pitch of the target audio material needs to be changed in the same direction, such as rising or falling, and the changing process can be continuous, gradual, or step-by-step. As long as the pitch of the target audio material changes in the same direction from the beginning to the end, the pitch can have a certain degree of reverse change during the period, as long as it does not cause interruption or transition effect to the overall listening experience.

[0026] Step S20: Arrange at least a first specified number of target audio materials in a first specified number of audio tracks to obtain first audio data; wherein each audio track includes at least one target audio material, and any moment of the first audio data corresponds to a second specified number of audio tracks;

[0027] It is understandable that the audio track is a "channel" for storing and processing sound during the audio production process. Each audio track can independently adjust the volume, timbre, add effects and other audio properties of the audio material, so as to achieve the purpose of fine control of each audio. In this embodiment, each audio track can contain at least one target audio material, and the target audio material in each audio track is played continuously.

[0028] It should be noted that by setting the starting time of different audio tracks, the target audio material in the target audio data (or the first audio data) can be started to play at different times. In this embodiment, the same moment in the first audio data corresponds to a second specified number of audio tracks, that is, a second specified number of target audio materials are being played. Due to the different starting times of the audio tracks, the progress of the target audio materials being played at the same time is also different. This embodiment makes the obtained audio data correspond to audio of different tones at any time, thereby producing an effect of uninterrupted listening.

[0029] By way of example and not limitation, Figure 2 The figure shows a schematic diagram of first audio data, where the horizontal axis is time and the vertical axis is pitch. In the figure, the slanted line formed by continuous red, black and blue lines represents the audio material in one audio track. Figure 2 This is an incomplete representation of the first specified number of audio tracks, which includes 10 audio tracks, each of which contains a target audio material.

[0030] For easy observation, Figure 2 Each target audio material is divided into three equal parts. The duration of each part represents the interval between the start times of the tracks, that is, the unit interval duration ΔT1, which is given by Figure 2 It can be seen that at any moment of the first audio data, there are at least three corresponding audio tracks, that is, at the same moment, three tones of the target audio material can be heard, which can produce an effect of uninterrupted listening.

[0031] Understandably, Figure 2 The target audio material shown is a continuously rising pitch. Figure 3 This is a schematic diagram of step-by-step and continuous pitch changes. It should be noted that the target audio material can be Figure 2 and Figure 3 In addition to the continuous change of pitch shown, you can also Figure 3 The step-by-step changes shown in the figure are suitable for creating an atmosphere with a sense of rhythm and jumping.

[0032] Step S30: generating target audio data corresponding to at least part of the first audio data according to the duration of the target audio material;

[0033] In this implementation, after obtaining the first audio data, part or all of the first audio data can be intercepted as target audio data, wherein the duration of the intercepted target audio data is an integer multiple of the duration of the target audio material, and the specific multiple is not limited here.

[0034] It can be understood that since audios of different tones are distributed within any time range of the first audio data, when intercepting part of the first audio data, intercepting can be started from any moment, and intercepting the first audio data with an integer multiple of the unit interval length can enable the target audio data to cover the lowest and highest points of the tone, making the final audio playback effect more complete and smoother.

[0035] In one implementation, when intercepting the first audio data of an integer multiple of the unit interval time length to obtain the target audio data, interception can be started from the lowest point of the tone of the first audio data, so that the final audio playback effect is more complete, more harmonious, and the starting effect is better. In this implementation, all the corresponding target audio data of the first audio data can also be generated, and specifically the first audio data can be determined as the target audio data, which is not limited here.

[0036] Step S40: In response to the audio play instruction, the target audio data is played in an infinite loop until the audio stop play instruction is triggered.

[0037] It is understandable that since the target audio data has audios of different pitch ranges distributed in any time period, there will be no transition feeling of switching between the previous and subsequent playbacks through infinite loop playback. The infinite loop playback of the target audio data can be stopped at any time without being restricted to determining the required audio playback duration before the audio playback. For any audio playback duration, the listening experience of the same uninterrupted audio can be produced, and the listening experience is natural and continuous.

[0038] The audio playback method provided in the above-mentioned embodiment arranges audio materials whose pitches change in the same direction on multiple audio tracks at equal time intervals, so that the obtained audio data is distributed with audios of different pitch ranges within any duration, producing an effect of uninterrupted listening. By playing at least part of the audio data in an infinite loop, it is possible to play natural audio with a strong sense of continuity without determining the audio playback duration.

[0039] Next, the audio playback method is described in detail.

[0040] In one embodiment, when arranging at least a first specified number of target audio materials in a first specified number of audio tracks to obtain first audio data, it includes: creating a first specified number of audio tracks, adding at least one target audio material to each audio track; determining the interval duration between the start times of the audio tracks to obtain the unit interval duration; arranging one audio track per unit interval duration so that the interval duration between the start times of adjacent audio tracks is equal to the unit interval duration.

[0041] It is understandable that the pitch variation range of the target audio material can be N octaves, where N is a positive integer. The pitch variation range of the target audio material can be adjusted according to the actual listening experience to make the playback of the target audio data more in line with the actual scene.

[0042] In this embodiment, a first specified number of audio tracks are created, and then a copy of the target audio material is added to each audio track, so that each track contains a target audio material. Figure 2 As shown, first create 10 audio tracks, and then add the target audio material to each track, which is the diagonal line connected by the red, black and blue continuous lines.

[0043] Next, adjust the start time of the audio track to an equal time interval, where the time interval is the unit interval duration, for example, Figure 2 The ΔT1 shown is the unit interval duration. Figure 2 In the figure, the starting point of the red slash line is the starting point of the target audio material. It can be seen that the time interval between the starting points of the two adjacent red slash lines is the same, which means that the starting time of the audio track is of equal time interval.

[0044] In one embodiment, the unit interval duration can be preset based on the actual listening experience, or it can be determined based on the audio properties of the target audio material, for example, based on the pitch change direction, duration, pitch slope, etc. of the target audio material. It can also be determined in combination with the second specified number of corresponding audio tracks required at the same time, which is not limited here.

[0045] In one embodiment, when determining the interval duration between the start times of audio tracks and obtaining the unit interval duration, the interval duration between the start times of audio tracks is determined based on the pitch slope of the target audio material to obtain the unit interval duration.

[0046] In this implementation, the unit interval duration is determined based on the pitch slope of the target audio material. It should be noted that the larger the pitch slope, that is, the larger the pitch change range of the target audio material, the smaller the unit interval duration can be set. Conversely, the smaller the pitch slope, that is, the smaller the pitch change range of the target audio material, the larger the unit interval duration can be set. The specifics are not limited here.

[0047] In one implementation, the correspondence between different pitch slope ranges and different unit interval durations can be pre-set, and then the corresponding unit interval duration can be determined based on the pitch slope range to which the audio slope of the target audio material belongs, so that the audio playback efficiency is higher.

[0048] In one embodiment, when generating target audio data corresponding to at least part of the first audio data according to the duration of the target audio material, it includes: starting from the moment of the lowest pitch in the first audio data, intercepting the first audio data of a specified duration to obtain second audio data; wherein the specified duration is an integer multiple of the interval duration between the start times of the audio tracks; and performing effect enhancement processing on the second audio data to obtain the target audio data.

[0049] In this implementation, in order to make the final audio playback effect more complete, more harmonious, and have a better starting effect, the first audio data of an integral multiple of the unit interval duration is intercepted starting from the lowest point of the tone of the first audio data to achieve a better connection effect. For example, assuming that the unit interval duration is 5 seconds, then the first audio data of 5 seconds, 10 seconds, 15 seconds, etc. can be intercepted to obtain the second audio data.

[0050] By way of example and not limitation, Figure 2 The schematic diagram of the first audio data shown in the figure can intercept ΔT1 (corresponding to the yellow grid blocks), ΔT2 (corresponding to the pink-orange grid blocks), ΔT3 (corresponding to the cyan grid blocks), or select a longer time period as the second audio data. For the same actual listening experience of the final audio playback, the shorter the duration of the intercepted first audio data, the smaller the data volume of the target audio data finally played, and the faster the loading speed during audio playback.

[0051] In this embodiment, after obtaining the second audio data, it can also be subjected to effect enhancement processing. The specific effect enhancement processing method can be set according to the specific audio playback scene, such as noise reduction, equalization adjustment, mixing, fade-in and fade-out, compression, etc., which is not limited here.

[0052] In one implementation, when the second audio data is subjected to effect enhancement processing to obtain the target audio data, each target audio material in the second audio data is subjected to fade-in and fade-out processing to obtain the target audio data.

[0053] In this embodiment, a fade-in and fade-out process is applied to the target audio material whose pitch reaches the boundary, so that the audio data finally played can be more smooth, more natural, and more continuous in hearing. Specifically, the fade-in and fade-out process is a process for the volume. Since the pitch of the target audio material changes in the same direction, the starting point and the end point of the target audio material are the boundaries of the pitch. When performing the fade-in and fade-out process, the beginning of the target audio material is faded in, and the end of the target audio material is faded out.

[0054] For example, suppose Figure 2The ΔT2 (pink-orange grid) portion shown is the second audio data. Then, a fade-in process may be applied to the lowest pitch position of the red line, and a fade-out process may be applied to the highest pitch position of the blue line, thereby obtaining the target audio data.

[0055] In one embodiment, when the second audio data is subjected to effect enhancement processing to obtain the target audio data, the second audio data is subjected to mixing processing to obtain the target audio data. Specifically, the second audio data can be mixed with looping audio materials without pitch characteristics, for example, audio materials that express material characteristics, such as fire, electricity, water, etc., which are not specifically limited here.

[0056] It can be understood that a looping audio material without tonal features is an audio material without any tonal changes or even no sense of tonality. Its spectrum appears disordered and sounds close to white noise, such as the sound of burning flames.

[0057] In one implementation, obtaining the target audio material includes: obtaining the original audio material; and adjusting the pitch of the original audio material to a step-like / continuous rise / fall to obtain the target audio material.

[0058] In this implementation, the original audio material can be adjusted in pitch so that its pitch meets the requirement of changing in the same direction. Specifically, according to the pitch characteristics of the original audio material, the pitch of the original audio material can be adjusted to a step-like increase or decrease, or to a continuous increase or decrease.

[0059] It should be noted that if the pitch characteristics of the original audio material indicate that its starting pitch is less than the ending pitch, then its pitch can be adjusted to rise, otherwise, its pitch can be adjusted to fall, so that the scope of application of the embodiment of the present disclosure is wider and the restrictions on the original audio material are less.

[0060] Corresponding to the above method embodiment, see Figure 4 A schematic diagram of an audio playback device is shown, the device comprising: an acquisition module 41, used to acquire target audio material; wherein the pitch of the target audio material changes in the same direction; an arrangement module 42, used to arrange at least the first specified number of target audio materials in a first specified number of audio tracks to obtain first audio data; wherein each audio track includes at least one of the target audio materials, and any moment of the first audio data corresponds to a second specified number of audio tracks; a generation module 43, used to generate target audio data corresponding to at least part of the first audio data according to the interval duration between the start moments of the audio tracks; a playback module 44, used to respond to an audio playback instruction and play the target audio data in an infinite loop until the audio playback stop instruction is triggered.

[0061] The above-mentioned audio playback device arranges audio materials with pitch changes in the same direction on multiple audio tracks at equal time intervals, so that the obtained audio data is distributed with audio of different pitch ranges within any duration, producing an effect of uninterrupted listening. By playing at least part of the audio data in an infinite loop, it is possible to play natural and continuous audio without determining the audio playback duration.

[0062] Optionally, the arrangement module 42 includes: a creation unit, used to create the first specified number of audio tracks, and to add at least one of the target audio materials to each audio track; a determination unit, used to determine the interval duration between the start times of the audio tracks to obtain the unit interval duration; and an arrangement module, used to arrange one of the audio tracks per unit interval duration so that the interval duration between the start times of adjacent audio tracks is equal to the unit interval duration.

[0063] Optionally, the determination unit is configured to: determine the interval duration between the start times of the audio tracks according to the pitch slope of the target audio material, and obtain the unit interval duration.

[0064] Optionally, the generation module 43 includes: a capture unit, used to capture the first audio data of a specified length starting from the moment of the lowest pitch in the first audio data, to obtain second audio data; wherein the specified length is an integer multiple of the interval between the start times of the audio tracks; and an enhancement unit, used to perform effect enhancement processing on the second audio data to obtain target audio data.

[0065] Optionally, the enhancement unit is further used to: perform fade-in and fade-out processing on each target audio material in the second audio data to obtain target audio data.

[0066] Optionally, the enhancement unit is further used to: perform mixing processing on the second audio data to obtain target audio data.

[0067] Optionally, the acquisition module 41 is used to: acquire original audio material; and adjust the pitch of the original audio material to a step-like / continuous rise / fall to obtain a target audio material.

[0068] This embodiment also provides an electronic device, including a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the above audio playback method. The electronic device can be a server or a terminal device.

[0069] See also Figure 5As shown, the electronic device includes a processor 100 and a memory 101. The memory 101 stores machine executable instructions that can be executed by the processor 100. The processor 100 executes the machine executable instructions to implement the above audio playback method.

[0070] Further, Figure 5 The electronic device shown further includes a bus 102 and a communication interface 103 , and the processor 100 , the communication interface 103 and the memory 101 are connected via the bus 102 .

[0071] The memory 101 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk storage. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 103 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used. The bus 102 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 5 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0072] The processor 100 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 100. The above processor 100 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present disclosure can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present disclosure can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module may be located in a storage medium mature in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 101, and the processor 100 reads the information in the memory 101 and completes the steps of the method of the above embodiment in combination with its hardware, for example:

[0073] Acquire target audio material; wherein the pitch of the target audio material changes in the same direction; arrange at least the first specified number of target audio materials in a first specified number of audio tracks to obtain first audio data; wherein each audio track includes at least one of the target audio materials, and any moment of the first audio data corresponds to a second specified number of audio tracks; generate target audio data corresponding to at least part of the first audio data according to the interval length between the start moments of the audio tracks; in response to an audio playback instruction, play the target audio data in an infinite loop until the audio playback stop instruction is triggered.

[0074] In this method, audio materials whose pitches change in the same direction are arranged on multiple audio tracks at equal time intervals, so that the obtained audio data has audios of different pitch ranges distributed within any duration, producing an effect of uninterrupted listening. By playing at least part of the audio data in an infinite loop, it is possible to play natural audio with a strong sense of continuity without determining the audio playback duration.

[0075] Optionally, the step of arranging at least the first specified number of target audio materials in a first specified number of audio tracks to obtain the first audio data includes: creating the first specified number of audio tracks, and adding at least one of the target audio materials to each audio track; determining the interval duration between the start times of the audio tracks to obtain the unit interval duration; and arranging one of the audio tracks per unit interval duration so that the interval duration between the start times of adjacent audio tracks is equal to the unit interval duration.

[0076] Optionally, the step of determining the interval duration between the start times of the audio tracks and obtaining the unit interval duration includes: determining the interval duration between the start times of the audio tracks according to the pitch slope of the target audio material and obtaining the unit interval duration.

[0077] Optionally, the step of generating target audio data corresponding to at least part of the first audio data according to the duration of the target audio material includes: starting from the moment of lowest pitch in the first audio data, intercepting the first audio data of a specified duration to obtain second audio data; wherein the specified duration is an integer multiple of the interval duration between the start times of the audio tracks; and performing effect enhancement processing on the second audio data to obtain the target audio data.

[0078] Optionally, the step of performing effect enhancement processing on the second audio data to obtain target audio data includes: performing fade-in and fade-out processing on each target audio material in the second audio data to obtain the target audio data.

[0079] Optionally, the step of performing effect enhancement processing on the second audio data to obtain target audio data includes: performing mixing processing on the second audio data to obtain target audio data.

[0080] Optionally, the step of obtaining the target audio material includes: obtaining the original audio material; adjusting the pitch of the original audio material to a step-like / continuous rise / fall, to obtain the target audio material.

[0081] This embodiment further provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the above-mentioned audio playback method, for example:

[0082] Acquire target audio material; wherein the pitch of the target audio material changes in the same direction; arrange at least the first specified number of target audio materials in a first specified number of audio tracks to obtain first audio data; wherein each audio track includes at least one of the target audio materials, and any moment of the first audio data corresponds to a second specified number of audio tracks; generate target audio data corresponding to at least part of the first audio data according to the interval length between the start moments of the audio tracks; in response to an audio playback instruction, play the target audio data in an infinite loop until the audio playback stop instruction is triggered.

[0083] In this method, audio materials whose pitches change in the same direction are arranged on multiple audio tracks at equal time intervals, so that the obtained audio data has audios of different pitch ranges distributed within any duration, producing an effect of uninterrupted listening. By playing at least part of the audio data in an infinite loop, it is possible to play natural audio with a strong sense of continuity without determining the audio playback duration.

[0084] Optionally, the step of arranging at least the first specified number of target audio materials in a first specified number of audio tracks to obtain the first audio data includes: creating the first specified number of audio tracks, and adding at least one of the target audio materials to each audio track; determining the interval duration between the start times of the audio tracks to obtain the unit interval duration; and arranging one of the audio tracks per unit interval duration so that the interval duration between the start times of adjacent audio tracks is equal to the unit interval duration.

[0085] Optionally, the step of determining the interval duration between the start times of the audio tracks and obtaining the unit interval duration includes: determining the interval duration between the start times of the audio tracks according to the pitch slope of the target audio material and obtaining the unit interval duration.

[0086] Optionally, the step of generating target audio data corresponding to at least part of the first audio data according to the duration of the target audio material includes: starting from the moment of lowest pitch in the first audio data, intercepting the first audio data of a specified duration to obtain second audio data; wherein the specified duration is an integer multiple of the interval duration between the start times of the audio tracks; and performing effect enhancement processing on the second audio data to obtain the target audio data.

[0087] Optionally, the step of performing effect enhancement processing on the second audio data to obtain target audio data includes: performing fade-in and fade-out processing on each target audio material in the second audio data to obtain the target audio data.

[0088] Optionally, the step of performing effect enhancement processing on the second audio data to obtain target audio data includes: performing mixing processing on the second audio data to obtain target audio data.

[0089] Optionally, the step of obtaining the target audio material includes: obtaining the original audio material; adjusting the pitch of the original audio material to a step-like / continuous rise / fall, to obtain the target audio material.

[0090] The audio playback method, device, electronic device and computer program product of the storage medium provided in the embodiments of the present disclosure include a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the methods described in the previous method embodiments. The specific implementation can be found in the method embodiments, which will not be repeated here.

[0091] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system and device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0092] In addition, in the description of the embodiments of the present disclosure, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For those skilled in the art, the specific meanings of the above terms in the present disclosure can be understood according to specific circumstances.

[0093] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present disclosure, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present disclosure. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0094] In the description of the present disclosure, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present disclosure and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation of the present disclosure. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.

[0095] Finally, it should be noted that the above embodiments are only specific implementation methods of the present disclosure, which are used to illustrate the technical solutions of the present disclosure, rather than to limit them. The protection scope of the present disclosure is not limited thereto. Although the present disclosure is described in detail with reference to the above embodiments, those skilled in the art should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above embodiments within the technical scope disclosed in the present disclosure, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.

Claims

1. A method for playing audio, characterized in that: The method comprises: Acquire a target audio material; wherein the pitch of the target audio material changes in the same direction; Arranging at least the first specified number of target audio materials in a first specified number of audio tracks to obtain first audio data; wherein each audio track includes at least one of the target audio materials, and any moment of the first audio data corresponds to a second specified number of audio tracks; Generate target audio data corresponding to at least part of the first audio data according to the interval between the start times of the audio tracks; In response to the audio play instruction, the target audio data is played in an infinite loop until the audio stop play instruction is triggered.

2. The method according to claim 1, characterized in that The step of arranging at least the first specified number of target audio materials in the first specified number of audio tracks to obtain the first audio data includes: Creating the first specified number of audio tracks, and adding at least one of the target audio materials to each audio track; Determine the interval duration between the start times of the audio tracks and obtain the unit interval duration; The audio tracks are arranged at each unit interval duration, so that the interval duration between the start times of adjacent audio tracks is equal to the unit interval duration.

3. The method according to claim 2, characterized in that The step of determining the interval duration between the start times of the audio tracks and obtaining the unit interval duration comprises: According to the pitch slope of the target audio material, the interval duration between the start times of the audio tracks is determined to obtain the unit interval duration.

4. The method according to claim 1, characterized in that: The step of generating target audio data corresponding to at least part of the first audio data according to the interval duration between the start times of the audio tracks comprises: Taking the moment of lowest pitch in the first audio data as the starting point, intercepting the first audio data of a specified time length to obtain the second audio data; wherein the specified time length is an integer multiple of the interval time length between the starting points of the audio tracks; The second audio data is subjected to effect enhancement processing to obtain target audio data.

5. The method according to claim 4, characterized in that The step of performing effect enhancement processing on the second audio data to obtain target audio data comprises: Perform fade-in and fade-out processing on each target audio material in the second audio data to obtain target audio data.

6. The method according to claim 4, characterized in that The step of performing effect enhancement processing on the second audio data to obtain target audio data comprises: The second audio data is mixed to obtain target audio data.

7. The method according to claim 1, characterized in that The steps to obtain the target audio material include: Get the original audio material; The pitch of the original audio material is adjusted to a step-like / continuous rise / fall to obtain a target audio material.

8. An audio playback device, characterized in that: The device comprises: An acquisition module, used for acquiring a target audio material; wherein the pitch of the target audio material changes in the same direction; An arrangement module, configured to arrange at least the first specified number of target audio materials in a first specified number of audio tracks to obtain first audio data; wherein each audio track includes at least one of the target audio materials, and any moment of the first audio data corresponds to a second specified number of audio tracks; A generating module, configured to generate target audio data corresponding to at least part of the first audio data according to the interval between the start times of the audio tracks; The playing module is used to respond to the audio playing instruction and play the target audio data in an infinite loop until the audio stop playing instruction is triggered.

9. An electronic device, characterized in that: It comprises a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the audio playing method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the audio playback method described in any one of claims 1-7.