Audio processing method and device, electronic equipment and storage medium
By determining and processing target audio clips and their attribute information in the singing application, the problem of unsmooth audio recording and overlapping is solved, and the effect of smooth singing and reducing lag is achieved.
Patent Information
- Application Number
- CN202311436315.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-31
- Publication Date
- 2025-05-02
- Estimated Expiration
- 2043-10-31
AI Technical Summary
In the singing application, audio recording cannot be smoothly performed, and the recorded audio has overlapping problems.
By determining multiple target audio clips and their target audio attribute information, available audio clips that do not overlap with the reference audio clips, and processing multiple target audio clips based on these attribute information to achieve overlap-free audio merging.
It realizes smooth singing in singing applications, reduces lag and saves computing performance consumption.
Smart Images

Figure CN119920221A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to data processing technology, and more particularly to an audio processing method, device, electronic device, and storage medium. Background Art
[0002] With the continuous development of the Internet, various singing applications have gradually come into people's view and are loved by people. At the same time, the requirements for the singing experience of singing applications are getting higher and higher.
[0003] In related solutions, in applications such as singing, it is necessary to collect audio data generated by singing, and then determine whether the collected audio data needs to be adjusted. If adjustment is required, it will be re-recorded. This may result in repeated recording of audio data, and each time it needs to be re-recorded, resulting in the singing process being time-consuming, laborious and costly, which brings great inconvenience to the singing recording process. Summary of the invention
[0004] The present disclosure provides an audio processing method, device, electronic device and storage medium to solve the problem that audio cannot be recorded smoothly in a singing application and the recorded audio overlaps.
[0005] In a first aspect, an embodiment of the present disclosure provides an audio processing method, the method comprising:
[0006] determining a plurality of target audio segments;
[0007] Determine target audio attribute information of each target audio segment, wherein the target audio attribute information is used to mark available audio segments in the target audio segment, and the available audio segments meet the following conditions: there is no overlap between the reference audio segment and the available audio segment, the reference audio segment is collected after the target audio segment, and both the reference audio segment and the target audio segment are audio segments formed by using the same preset audio file as the singing material;
[0008] The multiple target audio segments are processed based on the target audio property information of each target audio segment.
[0009] In a second aspect, an embodiment of the present disclosure further provides an audio processing device, the device comprising:
[0010] A first determination module, used to determine a plurality of target audio segments;
[0011] A second determination module is used to determine target audio attribute information of each target audio segment, wherein the target audio attribute information is used to mark available audio segments in the target audio segment, and the available audio segments meet the following conditions: there is no overlap between the reference audio segment and the available audio segment, the reference audio segment is collected after the target audio segment, and both the reference audio segment and the target audio segment are audio segments formed by using the same preset audio file as the singing material;
[0012] The audio processing module is used to process the multiple target audio segments based on the target audio attribute information of each target audio segment.
[0013] In a third aspect, an electronic device is also provided in an embodiment of the present disclosure, the electronic device comprising:
[0014] at least one processor; and
[0015] a memory communicatively connected to the at least one processor; wherein,
[0016] The memory stores a computer program that can be executed by the at least one processor. The computer program is executed by the at least one processor so that the at least one processor can perform the audio processing method described in any one of the above embodiments.
[0017] In a fourth aspect, a computer-readable medium is also provided in an embodiment of the present disclosure, wherein the computer-readable medium stores computer instructions, and the computer instructions are used to enable a processor to implement the audio processing method described in any one of the above embodiments when executed.
[0018] In the disclosed embodiment, an audio clip is selected from a preset audio file in a singing application as a singing material for singing, and after one singing is completed, there is no need to wait for audio processing. An audio clip is directly selected from the preset audio file as a singing material, and the singing material is used to continue the next singing to form an audio clip. After multiple selections of singing materials for singing, multiple target audio clips are obtained in sequence. In this way, smooth singing can be achieved in the singing application without waiting for the audio processing to be completed before continuing singing, which can reduce the lag in the singing application to a certain extent. At the same time, after obtaining multiple target audio clips, it can be determined whether each target audio clip has a corresponding reference audio clip. When a reference audio clip exists, the target audio attribute information for marking the available audio clips in the target audio clip that do not overlap with the reference audio clip can be determined by comparing the target audio clip with the reference audio clip. Then, according to the target audio attribute information of each target audio clip, each uniformly marked target audio clip can be merged without overlapping audio. Since no audio merging processing operation is performed when the target audio clips are uniformly obtained, the overlapping parts in the audio clips do not need to be processed, which can save some computing performance consumption.
[0019] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.
[0021] Figure 1 is a flowchart of an audio processing method provided by an embodiment of the present disclosure;
[0022] Figure 2 is a schematic diagram of an interface of a singing application applicable to an embodiment of the present disclosure;
[0023] Figure 3a It is a schematic diagram of mapping audio clips with different acquisition times applicable to the embodiment of the present disclosure onto a timeline;
[0024] Figure 3b is a schematic diagram of merging audio clips collected at different times applicable to an embodiment of the present disclosure;
[0025] Figure 4 is a flowchart of another audio processing method provided by an embodiment of the present disclosure;
[0026] Figure 5 is a flowchart of another audio processing method provided by an embodiment of the present disclosure;
[0027] Figure 6 It is a specific decomposition schematic diagram of merging audio clips with different acquisition times applicable to the embodiment of the present disclosure;
[0028] Figure 7 is a structural schematic diagram of an audio processing device provided by an embodiment of the present disclosure;
[0029] Figure 8 It is a structural schematic diagram of an electronic device for implementing an audio processing method provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0030] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0031] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0032] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0033] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0034] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0035] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0036] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0037] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.
[0038] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0039] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0040] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.
[0041] Figure 1 A flow chart of an audio processing method provided in an embodiment of the present disclosure is applicable to situations where continuous singing is performed in a singing application and the audio generated by the singing is merged. The method can be executed by an audio processing device, which can be implemented in the form of software and / or hardware and is generally integrated on any electronic device with network communication function, which can be a mobile terminal, PC or server, etc.
[0042] like Figure 1 As shown, the audio processing method of the embodiment of the present disclosure may include the following process:
[0043] S110: Determine a plurality of target audio segments.
[0044] S120. Determine target audio attribute information of each target audio segment. The target audio attribute information is used to mark available audio segments in the target audio segment. The available audio segments meet the following conditions: there is no overlap between the reference audio segment and the available audio segment. The reference audio segment is collected after the target audio segment. The reference audio segment and the target audio segment are both audio segments formed by using the same preset audio file as singing material.
[0045] See also Figure 2 , providing schematic interface diagrams of the "song middle page", "singing recording page" and "preview page" involved in the singing application in turn, Figure 2 The "Singing Recording Page" shown in the figure allows the singing subject to use the audio clips selected from the same preset audio file provided in the singing application at different collection times as singing materials for repeated singing practice. The audio clips selected from the preset audio file at each collection time may be the same, partially the same, or different. By singing with the selected audio clips as singing materials at different collection times and collecting the audio clips formed by the singing, multiple target audio clips are obtained. In addition, the audio clips selected from the preset audio file at each collection time may overlap, so there will be overlapping parts between the newly formed audio clips by singing with the selected audio clips as singing materials, that is, there may be many overlapping audio clips between the target audio clips, resulting in unclear audio after the audio is merged.
[0046] When using a singing application to sing, for audio clips formed when singing the same audio clip selected from a preset audio file at different acquisition times, only if the new audio clip formed by the previous singing is not satisfactory, will the next acquisition time be chosen to form a new audio clip after re-singing until the audio clip formed by repeated singing is satisfactory. It can be seen that the availability of audio clips with a later acquisition time is stronger than that of audio clips with an earlier acquisition time. Therefore, the audio clips formed when singing the same audio clip are usually dominated by audio clips with a later acquisition time. At the same time, there are some audio clips in the audio clip with an earlier acquisition time that are not reflected in the audio clips after the acquisition time. Therefore, the audio clips with an earlier acquisition time cannot be directly eliminated, but selectively eliminated and retained.
[0047] To this end, for each target audio segment, it can be determined whether there is a series of audio segments whose collection time is later than the target audio segment among the multiple target audio segments. If so, the series of audio segments whose collection time is later than the target segment among the multiple target audio segments is selected as the reference audio segment corresponding to the target audio segment; if not, it is determined that there is no corresponding reference audio segment for the target audio segment. The reference audio segment corresponding to the target audio segment is an audio segment formed by singing an audio segment selected from the same preset audio file and whose collection time is later than the target audio segment, so that the reference audio segment whose collection time is later than the target audio segment can be used to correct and eliminate the overlapping audio segments in the target audio segment that do not meet the requirements.
[0048] See also Figure 3a , the audio clips selected from the same preset audio file at different collection times are used as singing materials, and the newly formed audio clips are the audio clip of collection 1, the audio clip of collection 2, and the audio clip of collection 3, which are recorded as the multiple target audio clips that need to be merged. At the same time, for multiple target audio clips, a reference audio clip of each target audio clip can be selected from the audio clips whose collection time is later than the target audio clip.
[0049] Figure 3a The audio segments of collection 1, collection 2, and collection 3 shown in the figure can all be used as target audio segments in sequence. When the target audio segment is the audio segment of collection 1, the reference audio segments corresponding to the audio segment of collection 1 are the audio segments of collection 2 and collection 3 in sequence. Figure 3a It can be seen that there are some overlapping audio clips between the audio clips of acquisition 2 and the audio clips of acquisition 1. Since the acquisition time of the audio clips of acquisition 2 is later than the acquisition time of the audio clips of acquisition 1, the audio clips of acquisition 1 are used as the target audio clips, and some of the overlapping audio clips need to be removed and discarded when they are subsequently merged.
[0050] See also Figure 3a Similarly, there are some overlapping audio clips between the audio clips of collection 3 and the audio clips of collection 1. Since the collection time of the audio clips of collection 3 is later than that of the audio clips of collection 1, the audio clips of collection 1 are used as the target audio clips, and the overlapping audio clips of the audio clips of collection 1 also need to be discarded when they are subsequently merged. Figure 3b When the audio segment of acquisition 1 is used as the target audio segment, the overlapping parts of the audio segment of acquisition 1, the audio segment of acquisition 2 and the audio segment of acquisition 3 are removed and discarded, and the audio segment of acquisition 1 is divided into two audio segments corresponding to acquisition 1 as available audio segments.
[0051] To this end, when a reference audio segment corresponding to a target audio segment is obtained, based on the overlap of the audio segments of the target audio segment and the corresponding reference audio segment, the partial audio segments in the target audio segment that do not overlap with the reference audio segment can be used as available audio segments, and the positions of the available audio segments in the target audio segment can be marked. Meanwhile, when a reference audio segment corresponding to the target audio segment is not obtained, the entire target audio segment can be directly used as an available audio segment, and the positions of the available audio segments in the target audio segment can be marked. By marking the positions of the available audio segments in the target audio segment, the available audio segments can be retained for audio merging when multiple target audio segments are subsequently merged.
[0052] S130. Process multiple target audio segments based on the target audio attribute information of each target audio segment.
[0053] For each target audio segment among multiple target audio segments, the target audio attribute information can be used to mark the available audio segments in each target audio segment that do not overlap with the reference audio segment corresponding to the target audio segment, and the marked target audio segments can be saved independently. In this way, when you choose to merge the audios of each target audio segment later, you can directly use the available audio segments in the target audio segment to merge the audios, thereby eliminating duplicate audio segments in the merged audio, and solving the problem of not being able to smoothly record audio and overlapping recorded audio in singing applications.
[0054] Optionally, an available audio segment that does not overlap with a reference audio segment corresponding to the target audio segment is selected from each target audio segment, and then the selected available audio segments are decoded and then merged to obtain a merged audio file.
[0055] As an optional but non-limiting implementation, based on the target audio attribute information of each target audio segment, processing the multiple target audio segments may include the following steps A1-A2:
[0056] Step A1: For each target audio segment, based on the target audio attribute information of the target audio segment, a usable audio segment is cut out from the target audio segment and an audio starting point corresponding to the usable audio segment is determined. The usable audio segment is an audio segment selected from the target audio segment that can be used for audio merging. The audio starting point indicated by the target audio attribute information is based on an audio progress time representation of the usable audio segment in a preset audio file.
[0057] Step A2: splicing and merging the available audio segments cut out from the target audio segments according to the order of the audio starting points corresponding to the available audio segments.
[0058] The target audio attribute information indicates the audio starting point of the available audio segment in the target audio segment that can be used for audio merging. The audio starting point indicated by the target audio attribute information may refer to the starting point of the available audio segment mapped to the corresponding audio progress time in the preset audio file. After the available audio segments that need to be merged are cut out from each target audio segment, the selected available audio segment can be decoded, and the corresponding decoded available audio segments can be spliced and combined according to the time sequence of the audio starting points corresponding to each available audio segment to obtain a merged audio file. Among them, when cutting out the available audio segments from the target audio segment, the AVComposition library or a third-party audio cutting library can be used for implementation.
[0059] The scheme of the disclosed embodiment is to select an audio clip from a preset audio file in a singing application as a singing material for singing, and after one singing is completed, there is no need to wait for the audio processing, and the audio clip selected from the preset audio file is directly used as the singing material to continue the next singing to obtain multiple target audio clips in sequence. In this way, it can be achieved that smooth singing can be performed in the singing application without waiting for the audio processing to be completed before continuing singing, which can reduce the lag in the singing application to a certain extent. At the same time, after obtaining multiple target audio clips, the reference audio clip corresponding to each target audio clip can be determined, and the target audio attribute information for marking the available audio clips in the target audio clip that do not overlap with the reference audio clip can be determined by comparing the target audio clip with the reference audio clip, and then the target audio clips that are uniformly marked can be merged without overlapping audio according to the target audio attribute information of each target audio clip. Since no audio merging operation is performed when the target audio clips are uniformly obtained, the overlapping parts in the audio clips do not need to be processed, which can save some computing performance consumption.
[0060] Figure 4 A flow chart of another audio processing method provided for an embodiment of the present disclosure. The technical solution of this embodiment further optimizes the process of determining multiple target audio segments in the aforementioned embodiment on the basis of the aforementioned embodiment. This embodiment can be combined with various optional solutions in one or more of the aforementioned embodiments.
[0061] like Figure 4 As shown, the audio processing method of the embodiment of the present disclosure may include the following process:
[0062] S410. Determine a plurality of candidate audio segments, where the plurality of candidate audio segments are newly formed audio segments based on audio segments selected from the same preset audio file at different acquisition times as singing materials.
[0063] Optionally, when audio clips selected from the same preset audio file at different acquisition times are the same or partially the same, and audio clips selected from the same preset audio file at different acquisition times are the same or partially the same, multiple candidate audio clips are at least partially the same, and the multiple candidate audio clips are audio clips formed by pronouncing audio clips selected from the same preset audio file as singing materials at different acquisition times.
[0064] See also Figure 3a and Figure 3b When practicing singing in a singing application, the reason why multiple target audio clips are collected and overlapped is that, on the one hand, the selected audio clips will be practiced repeatedly and audio will be collected as singing materials. For example, if the audio clip does not meet the singing requirements, it needs to be practiced repeatedly and recorded. At this time, the audio clips selected from the same preset audio file at different collection times are the same; on the other hand, it is because the audio formed by the singing needs to be shortened and spliced. If the singing audio clips cannot be connected before and after, then even if they are spliced into one audio file, there will be incomplete audio in the middle. In order to continue the previous singing to obtain the audio clip, the singing practice will be repeated on the end of the previous singing audio clip. The audio clips corresponding to the two previous collection moments are partially the same. At this time, the audio clips selected from the same preset audio file at different collection times are partially the same.
[0065] As an optional but non-limiting implementation, determining multiple candidate audio segments may include the following steps B1-B2:
[0066] Step B1, in response to the audio collection operation, collect an audio segment formed based on a preset singing material to obtain a candidate audio segment and mark the corresponding collection time, wherein the preset singing material is the singing material corresponding to the audio segment selected from the preset audio file.
[0067] See also Figure 2 , in the singing recording page of the singing application, when the singing recording control in the singing recording page is triggered and clicked, the audio collection operation starts. At this time, you can sing according to the audio clips provided in the preset audio file as singing materials, and you can collect the audio clips formed by the singing in real time through the audio collector. When the singing recording control is triggered and clicked again, the audio collection operation ends. The audio clips collected between the start of the audio collection operation and the pause of the audio collection operation are the audio clips selected from the preset audio file as the candidate audio clips newly formed as singing materials. At the same time, the collection time of the candidate audio clips is marked, which can also be understood as the singing recording time of the candidate audio clips. Among them, the audio collector can be implemented using the AudioUnit library or a third-party audio collection library.
[0068] When practicing singing in a singing application, there may be a situation where the same selected audio clip does not meet the singing requirements and needs to be repeatedly practiced and recorded, or the end of the audio clip of the previous singing may be repeated for singing practice in order to continue the previous singing. For this reason, in response to another audio collection operation, the audio clip selected from the preset audio file is collected as the audio clip formed by the singing material to obtain the next candidate audio clip and mark the corresponding collection time. That is to say, after completing the collection of a candidate audio clip for singing, the next singing can be continued. It is also necessary to collect the audio clip formed by singing during the process from the start of the audio collection operation to the end of the audio collection operation, obtain another candidate audio clip and mark the collection time corresponding to the candidate audio clip. When the audio clips selected from the same preset audio file at different collection times are the same or partially the same, then the obtained candidate audio clips are at least partially overlapped.
[0069] Step B2: determining the candidate audio segments corresponding to the multiple audio collection operations as multiple candidate audio segments, and the preset audio files used by the multiple audio collection operations are the same audio file.
[0070] Only when the audio clips selected as singing materials at different acquisition times come from the same preset audio file, it is necessary to merge the multiple audio clips obtained to remove overlapping audio clips. If they do not come from the same audio file, it is not so necessary to merge the multiple audio clips obtained to remove overlapping audio clips.
[0071] S420: Determine multiple target audio segments from multiple candidate audio segments.
[0072] The reference audio segment is collected later than the target audio segment, and the target audio segment and the reference audio segment are newly formed audio segments based on audio segments selected from the same preset audio file as singing materials. The reference audio segment is collected after the target audio segment, and both the reference audio segment and the target audio segment use the same preset audio file as singing materials.
[0073] Optionally, all of the candidate audio segments of the multiple candidate audio segments can be used as multiple target audio segments, and each candidate audio segment can be used as a target audio segment. Alternatively, some of the candidate audio segments can be selected from the multiple candidate audio segments as multiple target audio segments, and each of the selected candidate audio segments can be used as a target audio segment.
[0074] As an optional but non-limiting implementation, determining multiple target audio segments from multiple candidate audio segments may include the following steps:
[0075] Step C1, sorting the candidate audio segments included in the multiple candidate audio segments according to the chronological order of their collection time, and determining the candidate audio segments selected in sequence as the multiple target audio segments according to the sorting results of the candidate audio segments, until all the candidate audio segments in the multiple candidate audio segments or the selected candidate audio segment are traversed.
[0076] S430. Determine target audio attribute information of each target audio segment, where the target audio attribute information is used to mark available audio segments in the target audio segment, and the available audio segments meet the following conditions: there is no reference audio segment overlapping with the available audio segment, the reference audio segment is collected after the target audio segment, and both the reference audio segment and the target audio segment are audio segments formed by using the same preset audio file as singing material.
[0077] S440: Process the multiple target audio segments based on the target audio property information of each target audio segment.
[0078] The scheme of the disclosed embodiment is to select an audio clip from a preset audio file in a singing application as a singing material for singing, and after one singing is completed, there is no need to wait for the audio processing, and the audio clip selected from the preset audio file is directly used as the singing material, and the singing material is used to continue the next singing to form an audio clip. After multiple selections of singing materials for singing, multiple target audio clips are obtained in sequence. In this way, smooth singing can be achieved in the singing application without waiting for the audio processing to be completed before continuing to sing, which can reduce the lag in the singing application to a certain extent. At the same time, after obtaining multiple target audio clips, it can be determined whether each target audio clip has a corresponding reference audio clip. When a reference audio clip exists, the target audio attribute information for marking the available audio clips in the target audio clip that do not overlap with the reference audio clip can be determined by comparing the target audio clip with the reference audio clip, and then the target audio clips that are uniformly marked can be merged without overlapping audio according to the target audio attribute information of each target audio clip. Since no audio merging processing operation is performed when the target audio clips are uniformly obtained, the overlapping parts in the audio clips do not need to be processed, which can save some computing performance consumption. Figure 5 A flow chart of another audio processing method provided for an embodiment of the present disclosure. The technical solution of this embodiment further optimizes the process of determining the target audio attribute information of each target audio segment in the aforementioned embodiment on the basis of the aforementioned embodiment. This embodiment can be combined with various optional solutions in one or more of the aforementioned embodiments.
[0079] like Figure 5 As shown, the audio processing method of the embodiment of the present disclosure may include the following process:
[0080] S510: Determine multiple target audio segments.
[0081] S520. Determine first audio attribute information of the target audio segment, where the first audio attribute information is used to indicate an audio start point and an audio duration of the target audio segment, and the audio start point indicated by the first audio attribute information is represented based on an audio progress time of the target audio segment in a preset audio file.
[0082] The first audio attribute information indicates the audio starting point and audio duration of the target audio segment. The audio starting point indicated by the first audio attribute information may refer to the starting point of the target audio segment mapped to the audio progress time corresponding to the preset audio file.
[0083] S530: Determine a reference audio segment corresponding to the target audio segment, and determine second audio attribute information of the reference audio segment, the second audio attribute information is used to indicate an audio start point and an audio duration of the reference audio segment, and the audio start point indicated by the second audio attribute information is based on an audio progress time representation of the reference audio segment in a preset audio file. The second audio attribute information indicates an audio start point and an audio duration of the reference audio segment, and the audio start point indicated by the second audio attribute information may refer to a start point of the reference audio segment mapped to an audio progress time corresponding to the preset audio file.
[0084] S540. Determine target audio attribute information of the target audio segment based on the first audio attribute information and the second audio attribute information. The target audio attribute information is used to indicate whether there is an available audio segment and the audio starting point and audio duration of at least one available audio segment. The available audio segment is an audio segment selected from the target audio segment and can be used for audio merging.
[0085] Among them, the target audio attribute information is used to mark the available audio segments in the target audio segment, and the available audio segments meet the following conditions: there is no reference audio segment overlapping with the available audio segment, the reference audio segment is collected after the target audio segment, and both the reference audio segment and the target audio segment are audio segments formed by using the same preset audio file as the singing material.
[0086] Optionally, the target audio attribute information is used to mark available audio segments in the target audio segment that do not overlap with the reference audio segment when the reference audio segment exists and all of the target audio segment when the reference audio segment does not exist as available audio segments.
[0087] The target audio attribute information may indicate whether there is an available audio segment in the target audio segment, and indicate the audio starting point of the available audio segment that can be used for audio merging when there is an available audio segment in the target hidden segment. The audio starting point indicated by the target audio attribute information may refer to the mapping of the starting point of the available audio segment to the audio progress time corresponding to the preset audio file.
[0088] As an optional but non-limiting implementation, determining the reference audio segment corresponding to the target audio segment includes the following steps C1-C2:
[0089] Step C1, sorting the target audio segments included in the multiple target audio segments according to the chronological order of the acquisition times corresponding to the multiple target audio segments.
[0090] Step C2: for each target audio segment, determine the target audio segment that is ranked after the target audio segment as the reference audio segment corresponding to the target audio segment.
[0091] As an optional but non-limiting implementation, determining the target audio attribute information of the target audio segment according to the first audio attribute information and the second audio attribute information may include the following steps D1-D2:
[0092] Step D1: If it is determined based on the first audio attribute information and the second audio attribute information that the audio start point of the target audio segment is smaller than the audio start point of the reference audio segment and there are overlapping audio segments, the audio start point indicated by the first audio attribute information is determined as the audio start point of the available audio segment indicated by the target audio attribute information.
[0093] Step D2: determine the subtraction value between the audio starting point indicated by the second audio attribute information and the audio starting point indicated by the first audio attribute information as the audio duration of the available audio segment indicated by the target audio attribute information.
[0094] See also Figure 6Starting from the first one from the left, taking the audio segment of acquisition 1 as the target audio segment and the audio segment of acquisition 2 as the reference audio segment as an example, the audio starting point indicated by the first audio attribute information of the target audio segment is smaller than the audio starting point indicated by the second audio attribute information of the reference audio segment, and the sum of the audio starting point indicated by the first audio attribute information and the audio duration is larger than the audio starting point indicated by the second audio attribute information of the reference audio segment. It can be known that there are overlapping audio segments between the right part of the audio segment of acquisition 1 and the left part of the audio segment of acquisition 2, and the right part of the audio segment of acquisition 1 can be right-segmented. At this time, the audio starting point indicated by the first audio attribute information can be directly determined as the audio starting point of the available audio segment, and the subtraction value between the audio starting point indicated by the second audio attribute information and the audio starting point indicated by the first audio attribute information can be determined as the audio duration of the available audio segment.
[0095] As another optional but non-limiting implementation, determining the target audio attribute information of the target audio segment according to the first audio attribute information and the second audio attribute information may include the following steps E1-E3:
[0096] Step E1: If it is determined based on the first audio attribute information and the second audio attribute information that the audio starting point of the target audio segment is greater than the audio starting point of the reference audio segment and there are overlapping audio segments, then the sum of the audio starting point indicated by the second audio attribute information and the audio duration indicated by the second audio attribute information is determined as the audio starting point of the available audio segment indicated by the target audio attribute information.
[0097] Step E2: The subtraction value between the audio starting point indicated by the target audio attribute information and the audio starting point indicated by the first audio attribute information is determined as the duration of the overlapping audio segments.
[0098] Step E3: The subtraction value between the audio duration indicated by the first audio attribute information and the duration of the overlapping audio segments is determined as the audio duration of the available audio segment indicated by the target audio attribute information.
[0099] See also Figure 6The second one starting from the left in the audio clip of collection 1 is taken as the target audio clip and the audio clip of collection 2 is taken as the reference audio clip. For example, the audio starting point indicated by the first audio attribute information of the target audio clip is greater than the audio starting point indicated by the second audio attribute information of the reference audio clip, and the sum of the audio starting point indicated by the second audio attribute information and the audio duration is greater than the audio starting point indicated by the first audio attribute information of the target audio clip. It can be known that the audio clip of collection 1 and the audio clip of collection 2 have overlapping audio clips, specifically, the left part of the audio clip of collection 1 and the right part of the audio clip of collection 2 have overlapping audio clips. In the overlap, the left part of the audio segment of acquisition 1 can be split on the left. At this time, the subtraction value of the audio starting point indicated by the target audio attribute information and the audio starting point indicated by the first audio attribute information can be determined as the overlapping audio segment length of the right part of the audio segment of acquisition 1 and the left part of the audio segment of acquisition 2, and then the subtraction value of the audio duration indicated by the first audio attribute information and the overlapping audio segment duration can be determined as the audio duration of the available audio segment, and the addition value of the audio starting point indicated by the second audio attribute information and the audio duration indicated by the second audio attribute information can be determined as the audio starting point of the available audio segment.
[0100] As another optional but non-limiting implementation, determining the target audio attribute information of the target audio segment according to the first audio attribute information and the second audio attribute information may include the following steps F1-F5:
[0101] Step F1. If the audio starting point of the target audio segment is determined to be smaller than the audio starting point of the reference audio segment based on the first audio attribute information and the second audio attribute information, and the sum of the audio starting point and the audio duration of the target audio segment is greater than the sum of the audio starting point and the audio duration of the reference audio segment, then the audio starting point indicated by the first audio attribute information is determined as the audio starting point of the first available audio segment indicated by the target audio attribute information.
[0102] Step F2: Determine the subtraction value between the audio starting point indicated by the second audio attribute information and the audio starting point indicated by the first audio attribute information as the audio duration of the first available audio segment indicated by the target audio attribute information.
[0103] Step F3: Determine the sum of the audio starting point indicated by the second audio attribute information and the audio duration indicated by the second audio attribute information as the audio starting point of the second available audio segment indicated by the target audio attribute information.
[0104] Step F4: Determine the duration of the overlapping audio segments by subtracting the audio starting point indicated by the target audio attribute information from the audio starting point indicated by the first audio attribute information.
[0105] Step F5: Determine the subtraction value between the audio duration indicated by the first audio attribute information and the duration of the overlapping audio segment as the audio duration of the second available audio segment indicated by the target audio attribute information.
[0106] The first available audio segment and the second available audio segment are two audio segments selected from the target audio segment and can be used for audio merging.
[0107] See also Figure 6 The third one from the left in the figure, taking the audio clip of acquisition 1 as the target audio clip and the audio clip of acquisition 2 as the reference audio clip as an example, the overlapping audio clip of the audio clip of acquisition 1 and the audio clip of acquisition 2 is located in the middle part of the audio clip of acquisition 1. At this time, the right segmentation of the above steps D1-D2 and the left segmentation of steps E1-E3 can be combined to implement the process of the above steps F1-F5, and the first usable audio clip and the second usable audio clip are sequentially segmented from the left and right sides of the audio clip of acquisition 1. The first usable audio clip and the second usable audio clip are two audio clips selected from the target audio clip that can be used for audio merging.
[0108] As an optional but non-limiting implementation, determining the target audio attribute information of the target audio segment according to the first audio attribute information and the second audio attribute information may include the following steps:
[0109] If it is determined based on the first audio attribute information and the second audio attribute information that the audio starting point of the target audio segment is greater than the audio starting point of the reference audio segment, and the sum of the audio starting point and the audio duration of the target audio segment is less than the sum of the audio starting point and the audio duration of the reference audio segment, then the target audio attribute information of the target audio segment is determined to be that there is no available audio segment in the target audio segment.
[0110] See also Figure 6 The fourth one from the left in the figure, taking the audio clip of acquisition 1 as the target audio clip and the audio clip of acquisition 2 as the reference audio clip as an example, the audio clip of acquisition 1 is completely covered by the audio clip of acquisition 2, which means that the audio clips of acquisition 1 are all overlapping audio clips. At this time, the audio clip of acquisition 1 can be overwritten and deleted, and it can be considered that there is no available audio clip in the target audio clip.
[0111] S550: Process multiple target audio segments based on the target audio attribute information of each target audio segment.
[0112] The scheme of the disclosed embodiment is to select an audio clip from a preset audio file in a singing application as a singing material for singing, and after one singing is completed, there is no need to wait for the audio processing, and the audio clip selected from the preset audio file is directly used as the singing material to continue the next singing to obtain multiple target audio clips in sequence. In this way, it can be achieved that smooth singing can be performed in the singing application without waiting for the audio processing to be completed before continuing singing, which can reduce the lag in the singing application to a certain extent. At the same time, after obtaining multiple target audio clips, the reference audio clip corresponding to each target audio clip can be determined, and the target audio attribute information for marking the available audio clips in the target audio clip that do not overlap with the reference audio clip can be determined by comparing the target audio clip with the reference audio clip, and then the target audio clips that are uniformly marked can be merged without overlapping audio according to the target audio attribute information of each target audio clip. Since no audio merging operation is performed when the target audio clips are uniformly obtained, the overlapping parts in the audio clips do not need to be processed, which can save some computing performance consumption.
[0113] Figure 7 This is a structural schematic diagram of an audio processing device provided in an embodiment of the present disclosure. The embodiment of the present disclosure is suitable for situations in which continuous singing is performed in a singing application and the audio generated by the singing is merged. The audio processing device can be implemented in the form of software and / or hardware, and is generally integrated on any electronic device with network communication function, which can be a mobile terminal, PC or server, etc.
[0114] like Figure 7 As shown, the audio processing device of the embodiment of the present disclosure may include: a first determination module 710, a second determination module 720 and an audio processing module 730. Among them:
[0115] A first determination module 710, configured to determine a plurality of target audio segments;
[0116] The second determination module 720 is used to determine the target audio attribute information of each target audio segment, wherein the target audio attribute information is used to mark the available audio segments in the target audio segment, and the available audio segments meet the following conditions: there is no overlap between the reference audio segment and the available audio segment, the reference audio segment is collected after the target audio segment, and both the reference audio segment and the target audio segment are audio segments formed by using the same preset audio file as the singing material;
[0117] The audio processing module 730 is configured to process the multiple target audio segments based on the target audio property information of each target audio segment.
[0118] Based on the above embodiment, optionally, determining a plurality of target audio segments includes:
[0119] Determine a plurality of candidate audio segments, wherein the plurality of candidate audio segments are audio segments newly formed based on audio segments selected from the same preset audio file at different acquisition times as singing materials;
[0120] A plurality of target audio segments are determined from the plurality of candidate audio segments.
[0121] Based on the above embodiment, optionally, determining a plurality of candidate audio segments includes:
[0122] In response to the audio collection operation, an audio segment formed based on a preset singing material is collected to obtain a candidate audio segment and a corresponding collection time is marked, wherein the preset singing material is a singing material corresponding to the audio segment selected from a preset audio file;
[0123] The candidate audio segments corresponding to the multiple audio collection operations are determined as the multiple candidate audio segments, and the preset audio files used by the multiple audio collection operations are the same audio file.
[0124] Based on the above embodiment, optionally, the audio segments selected from the same preset audio file at different acquisition times are the same or partially the same.
[0125] Based on the above embodiment, optionally, determining the target audio attribute information of each target audio segment includes:
[0126] Determine first audio attribute information of the target audio segment, where the first audio attribute information is used to indicate an audio start point and an audio duration of the target audio segment, and the audio start point indicated by the first audio attribute information is represented based on an audio progress time of the target audio segment in a preset audio file;
[0127] Determine a reference audio segment corresponding to the target audio segment, and determine second audio attribute information of the reference audio segment, where the second audio attribute information is used to indicate an audio start point and an audio duration of the reference audio segment, and the audio start point indicated by the second audio attribute information is represented based on an audio progress time of the reference audio segment in a preset audio file;
[0128] Based on the first audio attribute information and the second audio attribute information, target audio attribute information of the target audio segment is determined, and the target audio attribute information is used to indicate whether there is an available audio segment and the audio starting point and audio duration of at least one available audio segment. The available audio segment is an audio segment selected from the target audio segment and can be used for audio merging.
[0129] Based on the above embodiment, optionally, determining a reference audio segment corresponding to the target audio segment includes:
[0130] Sorting the target audio segments according to the order of the acquisition time corresponding to the target audio segments;
[0131] For each of the target audio segments, a target audio segment that is ranked after the target audio segment is determined as a reference audio segment corresponding to the target audio segment.
[0132] Based on the above embodiment, optionally, determining target audio attribute information of the target audio segment according to the first audio attribute information and the second audio attribute information includes:
[0133] If it is determined according to the first audio attribute information and the second audio attribute information that the audio start point of the target audio segment is smaller than the audio start point of the reference audio segment and there are overlapping audio segments, the audio start point indicated by the first audio attribute information is determined as the audio start point of the available audio segment indicated by the target audio attribute information;
[0134] The subtraction value between the audio starting point indicated by the second audio attribute information and the audio starting point indicated by the first audio attribute information is determined as the audio duration of the available audio segment indicated by the target audio attribute information.
[0135] Based on the above embodiment, optionally, determining target audio attribute information of the target audio segment according to the first audio attribute information and the second audio attribute information includes:
[0136] If it is determined according to the first audio attribute information and the second audio attribute information that the audio start point of the target audio segment is greater than the audio start point of the reference audio segment and there are overlapping audio segments, a sum of the audio start point indicated by the second audio attribute information and the audio duration indicated by the second audio attribute information is determined as the audio start point of the available audio segment indicated by the target audio attribute information;
[0137] Determine the duration of the overlapping audio segments by subtracting the audio starting point indicated by the target audio attribute information from the audio starting point indicated by the first audio attribute information;
[0138] The subtraction value between the audio duration indicated by the first audio attribute information and the duration of the overlapping audio segment is determined as the audio duration of the available audio segment indicated by the target audio attribute information.
[0139] Based on the above embodiment, optionally, determining target audio attribute information of the target audio segment according to the first audio attribute information and the second audio attribute information includes:
[0140] If it is determined according to the first audio attribute information and the second audio attribute information that the audio start point of the target audio segment is smaller than the audio start point of the reference audio segment, and the sum of the audio start point and the audio duration of the target audio segment is greater than the sum of the audio start point and the audio duration of the reference audio segment, the audio start point indicated by the first audio attribute information is determined as the audio start point of the first available audio segment indicated by the target audio attribute information;
[0141] Determine the subtraction value between the audio starting point indicated by the second audio attribute information and the audio starting point indicated by the first audio attribute information as the audio duration of the first available audio segment indicated by the target audio attribute information;
[0142] Determine the sum of the audio start point indicated by the second audio attribute information and the audio duration indicated by the second audio attribute information as the audio start point of the second available audio segment indicated by the target audio attribute information;
[0143] Determine the duration of the overlapping audio segments by subtracting the audio starting point indicated by the target audio attribute information from the audio starting point indicated by the first audio attribute information;
[0144] Determine the subtraction value between the audio duration indicated by the first audio attribute information and the duration of the overlapping audio segment as the audio duration of the second available audio segment indicated by the target audio attribute information;
[0145] The first available audio segment and the second available audio segment are two audio segments selected from the target audio segment and can be used for audio merging.
[0146] Based on the above embodiment, optionally, determining target audio attribute information of the target audio segment according to the first audio attribute information and the second audio attribute information includes:
[0147] If it is determined based on the first audio attribute information and the second audio attribute information that the audio starting point of the target audio segment is greater than the audio starting point of the reference audio segment, and the sum of the audio starting point and the audio duration of the target audio segment is less than the sum of the audio starting point and the audio duration of the reference audio segment, then the target audio attribute information of the target audio segment is determined to be that there is no available audio segment in the target audio segment.
[0148] Based on the above embodiment, optionally, processing the multiple target audio segments based on the target audio attribute information of each target audio segment includes:
[0149] For each of the target audio segments, based on the target audio attribute information of the target audio segment, a usable audio segment is cut out from the target audio segment and an audio starting point corresponding to the usable audio segment is determined, wherein the usable audio segment is an audio segment selected from the target audio segment and can be used for audio merging, and the audio starting point indicated by the target audio attribute information is represented based on an audio progress time of the usable audio segment in a preset audio file;
[0150] The available audio segments cut out from the target audio segments are spliced and merged according to the order of the audio starting points corresponding to the available audio segments.
[0151] In the disclosed embodiment, an audio clip selected from a preset audio file is sung in a singing application, and after one singing is completed, there is no need to wait for audio processing, and the audio clip selected from the preset audio file is directly selected to continue the next singing to obtain multiple target audio clips in sequence. In this way, smooth singing can be achieved in the singing application without waiting for audio processing, which can reduce the lag in the singing application to a certain extent. At the same time, after obtaining multiple target audio clips, the reference audio clip corresponding to each target audio clip can be determined, and the target audio attribute information for marking the available audio clips in the target audio clip that do not overlap with the reference audio clip can be determined by comparing the target audio clip with the reference audio clip, and then the target audio clips that are uniformly marked can be merged without overlapping audio according to the target audio attribute information of each target audio clip. Since no audio merging operation is performed when the target audio clips are uniformly obtained, part of the computing performance consumption can be saved.
[0152] The audio processing device provided in the embodiments of the present disclosure can execute the audio processing method provided in any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method.
[0153] It is worth noting that the various units and modules included in the above-mentioned device are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present disclosure.
[0154] Figure 8 This is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. Figure 8 , which shows an electronic device (eg, Figure 8The terminal device in the embodiment of the present disclosure may include but is not limited to mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 8 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0155] like Figure 8 As shown, the electronic device 800 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 801, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 802 or a program loaded from a storage device 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the electronic device 800 are also stored. The processing device 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An edit / output (I / O) interface 805 is also connected to the bus 804.
[0156] Typically, the following devices may be connected to the I / O interface 805: input devices 806 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 807 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 808 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 809. The communication device 809 may allow the electronic device 800 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 8 The electronic device 800 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0157] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the audio processing method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 809, or installed from the storage device 808, or installed from the ROM 802. When the computer program is executed by the processing device 801, the above-mentioned functions defined in the audio processing method of the embodiment of the present disclosure are executed.
[0158] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0159] The electronic device provided in the embodiment of the present disclosure and the audio processing method provided in the above embodiment belong to the same inventive concept. For technical details not fully described in this embodiment, reference can be made to the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.
[0160] The embodiments of the present disclosure provide a computer storage medium on which a computer program is stored. When the program is executed by a processor, the audio processing method provided by the above embodiments is implemented.
[0161] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0162] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0163] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0164] The above-mentioned computer-readable medium carries one or more programs. When the above-mentioned one or more programs are executed by the electronic device, the electronic device: determines multiple target audio segments; determines the target audio attribute information of each of the target audio segments, and the target audio attribute information is used to mark the available audio segments in the target audio segments, and the available audio segments meet the following conditions: there is no reference audio segment overlapping with the available audio segment, the reference audio segment is collected after the target audio segment, and both the reference audio segment and the target audio segment are audio segments formed by using the same preset audio file as the singing material; based on the target audio attribute information of each of the target audio segments, the multiple target audio segments are processed.
[0165] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0166] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0167] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of a unit does not limit the unit itself in some cases. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses".
[0168] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0169] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0170] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.
[0171] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0172] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.
Claims
1. An audio processing method, characterized in that: The method comprises: determining a plurality of target audio segments; Determine target audio attribute information of each target audio segment, wherein the target audio attribute information is used to mark available audio segments in the target audio segment, and the available audio segments meet the following conditions: there is no overlap between the reference audio segment and the available audio segment, the reference audio segment is collected after the target audio segment, and both the reference audio segment and the target audio segment are audio segments formed by using the same preset audio file as the singing material; The multiple target audio segments are processed based on the target audio property information of each target audio segment.
2. The method according to claim 1, characterized in that Identify multiple target audio clips, including: Determine a plurality of candidate audio segments, wherein the plurality of candidate audio segments are audio segments newly formed based on audio segments selected from the same preset audio file at different acquisition times as singing materials; A plurality of target audio segments are determined from the plurality of candidate audio segments.
3. The method according to claim 2, characterized in that Identify multiple candidate audio segments, including: In response to the audio collection operation, an audio segment formed based on a preset singing material is collected to obtain a candidate audio segment and a corresponding collection time is marked, wherein the preset singing material is a singing material corresponding to the audio segment selected from a preset audio file; The candidate audio segments corresponding to the multiple audio collection operations are determined as the multiple candidate audio segments, and the preset audio files used by the multiple audio collection operations are the same audio file.
4. The method according to claim 2 or 3, characterized in that: The audio segments selected from the same preset audio file at different acquisition times are identical or partially identical.
5. The method according to claim 1, characterized in that Determining target audio attribute information of each target audio segment includes: Determine first audio attribute information of the target audio segment, where the first audio attribute information is used to indicate an audio start point and an audio duration of the target audio segment, and the audio start point indicated by the first audio attribute information is represented based on an audio progress time of the target audio segment in a preset audio file; Determine a reference audio segment corresponding to the target audio segment, and determine second audio attribute information of the reference audio segment, where the second audio attribute information is used to indicate an audio start point and an audio duration of the reference audio segment, and the audio start point indicated by the second audio attribute information is represented based on an audio progress time of the reference audio segment in a preset audio file; Based on the first audio attribute information and the second audio attribute information, target audio attribute information of the target audio segment is determined, and the target audio attribute information is used to indicate whether there is an available audio segment and the audio starting point and audio duration of at least one available audio segment. The available audio segment is an audio segment selected from the target audio segment and can be used for audio merging.
6. The method according to claim 5, characterized in that Determining a reference audio segment corresponding to the target audio segment includes: Sorting the target audio segments according to the order of the acquisition time corresponding to the target audio segments; For each of the target audio segments, a target audio segment that is ranked after the target audio segment is determined as a reference audio segment corresponding to the target audio segment.
7. The method according to claim 1, characterized in that The method further comprises: processing the plurality of target audio segments based on the target audio attribute information of each target audio segment, comprising: For each of the target audio segments, based on the target audio attribute information of the target audio segment, a usable audio segment is cut out from the target audio segment and an audio starting point corresponding to the usable audio segment is determined, wherein the usable audio segment is an audio segment selected from the target audio segment and can be used for audio merging, and the audio starting point indicated by the target audio attribute information is represented based on an audio progress time of the usable audio segment in a preset audio file; The available audio segments cut out from the target audio segments are spliced and merged according to the order of the audio starting points corresponding to the available audio segments.
8. An audio processing device, characterized in that: The device comprises: A first determination module, used to determine a plurality of target audio segments; A second determination module is used to determine target audio attribute information of each target audio segment, wherein the target audio attribute information is used to mark available audio segments in the target audio segment, and the available audio segments meet the following conditions: there is no overlap between the reference audio segment and the available audio segment, the reference audio segment is collected after the target audio segment, and both the reference audio segment and the target audio segment are audio segments formed by using the same preset audio file as the singing material; The audio processing module is used to process the multiple target audio segments based on the target audio attribute information of each target audio segment.
9. An electronic device, characterized in that: The electronic device comprises: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the audio processing method as described in any one of claims 1 to 7.
10. A storage medium containing computer executable instructions, characterized in that: When the computer executable instructions are executed by a computer processor, they are used to perform the audio processing method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Voice synthesis apparatus
CN102810310A
Audio content additional recording method and apparatus
CN108022604A
Audio file processing method and device
CN108305636A
Multi-audio synthesis method and device
CN109949792A
Information processing method and system, first equipment and second equipment
CN110334240A