CN107622775B - Method for splicing noise-containing songs and related products - Google Patents
Method for splicing noise-containing songs and related products Download PDFInfo
- Publication number
- CN107622775B CN107622775B CN201710996071.5A CN201710996071A CN107622775B CN 107622775 B CN107622775 B CN 107622775B CN 201710996071 A CN201710996071 A CN 201710996071A CN 107622775 B CN107622775 B CN 107622775B
- Authority
- CN
- China
- Prior art keywords
- audio files
- noise
- song
- noise reduction
- song audio
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Classifications
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10L—SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- G10L25/00—Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00
- G10L25/78—Detection of presence or absence of voice signals
- G10L25/81—Detection of presence or absence of voice signals for discriminating voice from music
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10L—SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- G10L25/00—Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00
- G10L25/78—Detection of presence or absence of voice signals
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10L—SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- G10L25/00—Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00
- G10L25/78—Detection of presence or absence of voice signals
- G10L25/84—Detection of presence or absence of voice signals for discriminating voice from noise
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11B—INFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
- G11B27/00—Editing; Indexing; Addressing; Timing or synchronising; Monitoring; Measuring tape travel
- G11B27/02—Editing, e.g. varying the order of information signals recorded on, or reproduced from, record carriers
- G11B27/031—Electronic editing of digitised analogue information signals, e.g. audio or video signals
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10H—ELECTROPHONIC MUSICAL INSTRUMENTS; INSTRUMENTS IN WHICH THE TONES ARE GENERATED BY ELECTROMECHANICAL MEANS OR ELECTRONIC GENERATORS, OR IN WHICH THE TONES ARE SYNTHESISED FROM A DATA STORE
- G10H2210/00—Aspects or methods of musical processing having intrinsic musical character, i.e. involving musical theory or musical parameters or relying on musical knowledge, as applied in electrophonic musical tools or instruments
- G10H2210/101—Music Composition or musical creation; Tools or processes therefor
- G10H2210/125—Medley, i.e. linking parts of different musical pieces in one single piece, e.g. sound collage, DJ mix
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10H—ELECTROPHONIC MUSICAL INSTRUMENTS; INSTRUMENTS IN WHICH THE TONES ARE GENERATED BY ELECTROMECHANICAL MEANS OR ELECTRONIC GENERATORS, OR IN WHICH THE TONES ARE SYNTHESISED FROM A DATA STORE
- G10H2240/00—Data organisation or data communication aspects, specifically adapted for electrophonic musical tools or instruments
- G10H2240/011—Files or data streams containing coded musical information, e.g. for transmission
- G10H2240/016—File editing, i.e. modifying musical data files or streams as such
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10H—ELECTROPHONIC MUSICAL INSTRUMENTS; INSTRUMENTS IN WHICH THE TONES ARE GENERATED BY ELECTROMECHANICAL MEANS OR ELECTRONIC GENERATORS, OR IN WHICH THE TONES ARE SYNTHESISED FROM A DATA STORE
- G10H2250/00—Aspects of algorithms or signal processing methods without intrinsic musical character, yet specifically adapted for or used in electrophonic musical processing
- G10H2250/295—Noise generation, its use, control or rejection for music processing
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10L—SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- G10L25/00—Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00
- G10L25/78—Detection of presence or absence of voice signals
- G10L2025/783—Detection of presence or absence of voice signals based on threshold decision
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Computational Linguistics (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- Acoustics & Sound (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Management Or Editing Of Information On Record Carriers (AREA)
Abstract
本发明实施例公开了一种含噪声歌曲拼接的方法及相关产品,方法包括:获取N个歌曲音频文件;判断所述N个歌曲音频文件中是否含有噪声音频文件;若所述N个歌曲音频文件中含有噪声音频文件,对所述N个歌曲音频文件中的所述噪声音频文件进行降噪处理,以获取噪声小于阈值的降噪音频文件;从所述N个歌曲音频文件中未进行所述降噪处理的歌曲音频文件及所述降噪音频文件中提取M个片段,其中,M为大于1的整数;将所述M个片段按照预设顺序进行拼接,以获取拼接歌曲音频文件。本发明实施例还公开了一种含噪声歌曲拼接的装置。采用本发明可对含噪的音频文件进行剪切与拼接,可对拼接后的音频文件进行降噪处理,以改善拼接后的音频文件的音质。
The embodiment of the present invention discloses a method for splicing noise-containing songs and related products. The method includes: acquiring N song audio files; judging whether the N song audio files contain noise audio files; if the N song audio files contain noise audio files; The file contains noise audio files, and noise reduction processing is performed on the noise audio files in the N song audio files to obtain noise reduction audio files with noise less than a threshold; M segments are extracted from the noise-reduced song audio file and the noise-reduced audio file, where M is an integer greater than 1; the M segments are spliced in a preset order to obtain the spliced song audio file. The embodiment of the present invention also discloses a device for splicing songs containing noise. By adopting the invention, the noise-containing audio files can be cut and spliced, and noise reduction processing can be performed on the spliced audio files, so as to improve the sound quality of the spliced audio files.
Description
技术领域technical field
本发明实施例涉及音频处理技术领域,尤其涉及一种含噪声歌曲拼接的方法及相关产品。Embodiments of the present invention relate to the technical field of audio processing, and in particular, to a method for splicing noise-containing songs and related products.
背景技术Background technique
随着移动互联网技术的快速发展,装置(如手机、平板电脑、touch)及专用播放机等对音乐的追求也越来越来。目前来看,现有技术中对音乐的功能播放仅限于提高自身的音质处理,如通过装置或者专用播放机中自带的处理软件对劣质音频文件进行适当处理,以提高播放质量;或者,对音频文件本身的质量要求较高,往往正版音频文件能播出较好的效果,而对音频文件的局部处理,如剪切技术、提取技术研究较少。With the rapid development of mobile Internet technology, devices (such as mobile phones, tablet computers, touch) and dedicated players are increasingly pursuing music. At present, the functional playback of music in the prior art is limited to improving its own sound quality processing, for example, by appropriately processing low-quality audio files through the processing software built into the device or dedicated player to improve playback quality; The quality requirements of the audio files themselves are relatively high, and often genuine audio files can be broadcast with better effects, while the local processing of audio files, such as cutting technology and extraction technology, is less researched.
现有技术中,对歌曲的剪切主要依赖于网络软件,而这些软件往往需要人工手工操作,不能精确定位每一句歌词的确切位置。In the prior art, the cutting of songs mainly relies on network software, and these softwares often require manual operation and cannot precisely locate the exact position of each lyric.
发明内容SUMMARY OF THE INVENTION
本发明实施例提供了一种含噪声歌曲拼接的方法及相关产品,可对含有噪声的歌曲音频文件进行剪切与拼接。Embodiments of the present invention provide a method and related products for splicing songs containing noise, which can cut and splicing audio files of songs containing noise.
本发明实施例第一方面提供了一种含噪声歌曲拼接的方法,包括:A first aspect of the embodiments of the present invention provides a method for splicing noise-containing songs, including:
获取N个歌曲音频文件,其中,N为大于1的整数;Obtain N song audio files, where N is an integer greater than 1;
判断所述N个歌曲音频文件中是否含有噪声音频文件,所述噪声音频文件为噪声大于噪声阈值的噪声音频文件;Judging whether the N song audio files contain a noise audio file, the noise audio file is a noise audio file whose noise is greater than a noise threshold;
若所述N个歌曲音频文件中含有噪声音频文件,对所述N个歌曲音频文件中的所述噪声音频文件进行降噪处理,以获取噪声小于阈值的降噪音频文件;If the N song audio files contain noise audio files, perform noise reduction processing on the noise audio files in the N song audio files to obtain noise reduction audio files with noise less than a threshold;
从所述N个歌曲音频文件中未进行所述降噪处理的歌曲音频文件及所述降噪音频文件中提取M个片段,其中,M为大于1的整数;Extract M segments from the N song audio files that have not been subjected to the noise reduction process and the noise reduction audio files, where M is an integer greater than 1;
将所述M个片段按照预设顺序进行拼接,以获取拼接歌曲音频文件。The M segments are spliced in a preset order to obtain an audio file of the spliced song.
本发明实施例第二方面提供了一种含噪声歌曲拼接的装置,包括:A second aspect of the embodiments of the present invention provides a device for splicing songs containing noise, including:
获取单元,用于获取N个歌曲音频文件,其中,N为大于1的整数;an acquisition unit for acquiring N song audio files, where N is an integer greater than 1;
第一判断单元,用于判断所述获取单元获取到的所述N个歌曲音频文件中是否含有噪声音频文件,所述噪声音频文件为噪声大于噪声阈值的噪声音频文件;a first judging unit, configured to judge whether the N song audio files acquired by the acquiring unit contain a noise audio file, and the noise audio file is a noise audio file whose noise is greater than a noise threshold;
第一处理单元,用于在所述第一判断单元判断出所述N个歌曲音频文件中含有噪声音频文件时,对所述N个歌曲音频文件中的所述噪声音频文件进行降噪处理,以获取噪声小于阈值的降噪音频文件;a first processing unit, configured to perform noise reduction processing on the noise audio files in the N song audio files when the first judgment unit judges that the N song audio files contain noise audio files, to obtain a noise-reduced audio file with noise less than the threshold;
第一提取单元,用于从所述N个歌曲音频文件中未进行所述降噪处理的歌曲音频文件及所述降噪音频文件中提取M个片段,其中,M为大于1的整数;a first extraction unit, configured to extract M segments from the N song audio files without the noise reduction processing and the noise reduction audio files, where M is an integer greater than 1;
拼接单元,用于将所述第一提取单元提取得到的所述M个片段按照预设顺序进行拼接,以获取拼接歌曲音频文件。A splicing unit, configured to splicing the M segments extracted by the first extracting unit according to a preset order to obtain a spliced song audio file.
实施本发明实施例,具有如下有益效果:Implementing the embodiment of the present invention has the following beneficial effects:
本发明实施例中,获取N个歌曲音频文件,其中,N为大于1的整数;判断所述N个歌曲音频文件中是否含有噪声音频文件,所述噪声音频文件为噪声大于噪声阈值的噪声音频文件;若所述N个歌曲音频文件中含有噪声音频文件,对所述N个歌曲音频文件中的所述噪声音频文件进行降噪处理,以获取噪声小于阈值的降噪音频文件;从所述N个歌曲音频文件中未进行所述降噪处理的歌曲音频文件及所述降噪音频文件中提取M个片段,其中,M为大于1的整数;将所述M个片段按照预设顺序进行拼接,以获取拼接歌曲音频文件。采用本发明可对含噪的音频文件进行剪切与拼接,可对拼接后的音频文件进行降噪处理,以改善拼接后的音频文件的音质。In this embodiment of the present invention, N song audio files are acquired, where N is an integer greater than 1; it is determined whether the N song audio files contain noise audio files, and the noise audio files are noise audio files with noise greater than a noise threshold file; if the N song audio files contain noise audio files, perform noise reduction processing on the noise audio files in the N song audio files to obtain noise reduction audio files with noise less than a threshold; from the Extract M segments from the N song audio files that have not been subjected to the noise reduction process and the noise reduction audio files, where M is an integer greater than 1; perform the M segments in a preset order. Splicing to get spliced song audio files. By adopting the invention, the noise-containing audio files can be cut and spliced, and noise reduction processing can be performed on the spliced audio files, so as to improve the sound quality of the spliced audio files.
附图说明Description of drawings
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例、描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明实施例的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present invention more clearly, the following briefly introduces the drawings that are used in the embodiments and descriptions. Obviously, the drawings in the following descriptions are only some of the embodiments of the present invention. In the embodiments, for those of ordinary skill in the art, other drawings can also be obtained according to these drawings without any creative effort.
图1为本发明实施例提供的一种含噪声歌曲拼接的方法的第一实施例流程示意图;1 is a schematic flowchart of a first embodiment of a method for splicing noise-containing songs according to an embodiment of the present invention;
图2为本发明实施例提供的一种含噪声歌曲拼接的方法的第二实施例流程示意图;2 is a schematic flowchart of a second embodiment of a method for splicing noise-containing songs according to an embodiment of the present invention;
图3为本发明实施例提供的一种含噪声歌曲拼接的方法的第三实施例流程示意图;3 is a schematic flowchart of a third embodiment of a method for splicing noise-containing songs according to an embodiment of the present invention;
图4为本发明实施例提供的一种含噪声歌曲拼接的方法的第四实施例流程示意图;4 is a schematic flowchart of a fourth embodiment of a method for splicing noise-containing songs according to an embodiment of the present invention;
图5为本发明实施例提供的一种含噪声歌曲拼接的方法的第五实施例流程示意图;5 is a schematic flowchart of a fifth embodiment of a method for splicing noise-containing songs according to an embodiment of the present invention;
图6为本发明实施例提供的一种含噪声歌曲拼接的装置的第一实施例结构示意图;6 is a schematic structural diagram of a first embodiment of a device for splicing songs containing noise according to an embodiment of the present invention;
图7为本发明实施例提供的一种含噪声歌曲拼接的装置的第二实施例结构示意图。FIG. 7 is a schematic structural diagram of a second embodiment of an apparatus for splicing songs containing noise according to an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明实施例一部分实施例,而不是全部的实施例。基于本发明实施例中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明实施例保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. . Based on the embodiments in the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative work fall within the protection scope of the embodiments of the present invention.
本发明的说明书和权利要求书及所述附图中的术语“第一”、“第二”、“第三”和“第四”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third" and "fourth" in the description and claims of the present invention and the accompanying drawings are used to distinguish different objects, rather than to describe a specific order. . Furthermore, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes unlisted steps or units, or optionally also includes For other steps or units inherent to these processes, methods, products or devices.
实现中,本发明实施例中,装置可以包括但不限于:笔记本电脑、手机、平板电脑、智能可穿戴设备、播放机、MP3、MP4、智能电视、机顶盒、服务器等等。装置的系统指装置的操作系统,可以包括但不限于:Android系统、塞班系统、Windows系统、IOS(苹果公司开发的移动操作系统)系统等等。需要说明的是,Android装置指Android系统的装置,塞班装置指塞班系统的装置,等等。上述装置仅是举例,而非穷举,包含但不限于上述装置。In implementation, in this embodiment of the present invention, the device may include, but is not limited to, a notebook computer, a mobile phone, a tablet computer, a smart wearable device, a player, MP3, MP4, a smart TV, a set-top box, a server, and the like. The system of the device refers to the operating system of the device, which may include, but is not limited to: Android system, Symbian system, Windows system, IOS (mobile operating system developed by Apple Inc.) system, and so on. It should be noted that the Android device refers to the device of the Android system, the Symbian device refers to the device of the Symbian system, and so on. The above-mentioned devices are only examples, not exhaustive, including but not limited to the above-mentioned devices.
实现中,本发明实施例中,歌曲可以包括但不限于:中文歌曲、英文歌曲、俄文歌曲、西班牙歌曲、古典歌曲、流行音乐歌曲、摇滚音乐歌曲、轻音乐歌曲、说唱歌曲、清唱歌曲、视频中的歌曲等等。上述歌曲仅是举例,而非穷举,包含但不限于上述歌曲。In implementation, in this embodiment of the present invention, songs may include but are not limited to: Chinese songs, English songs, Russian songs, Spanish songs, classical songs, pop music songs, rock music songs, light music songs, rap songs, cappella songs, videos songs in , etc. The above songs are only examples, not exhaustive, including but not limited to the above songs.
实现过程中,歌曲的格式可包括但不仅限于:MP3、MP4、WMV、WAV、FLV等等。上述歌曲的格式仅是举例,而非穷举,包含但不限于上述歌曲的格式。In the implementation process, the format of the song may include, but is not limited to, MP3, MP4, WMV, WAV, FLV, and so on. The formats of the above songs are only examples, not exhaustive, including but not limited to the formats of the above songs.
请参阅图1,图1是本发明实施例提供的一种含噪声歌曲拼接的方法的实施例流程示意图。本实施例中所描述的含噪声歌曲拼接的方法,包括步骤:Please refer to FIG. 1. FIG. 1 is a schematic flowchart of an embodiment of a method for splicing noise-containing songs according to an embodiment of the present invention. The method for splicing noise-containing songs described in this embodiment includes the steps:
S101、获取N个歌曲音频文件。S101. Obtain N song audio files.
具体的,可从含噪声歌曲拼接的装置中获取N个歌曲音频文件,也可从移动终端获取N个歌曲音频文件,或者从其他方式获取N个歌曲音频文件,其中,N为大于1的整数,移动终端例如可以是手机、平板电脑、笔记本电脑、掌上电脑、移动互联网设备(MID,mobileinternet device)、可穿戴设备(例如智能手表(如iwatch等)、智能手环、计步器等)或其他可安装部署即时通讯应用客户端的终端设备,存储获取到的N个歌曲音频文件,存储所述N个歌曲音频文件的的位置可以是含噪声歌曲拼接的装置本地,或是云端,或是其他存储空间。Specifically, N song audio files can be obtained from a device for splicing noisy songs, N song audio files can also be obtained from a mobile terminal, or N song audio files can be obtained from other methods, where N is an integer greater than 1 , the mobile terminal may be, for example, a mobile phone, a tablet computer, a notebook computer, a handheld computer, a mobile internet device (MID, mobile internet device), a wearable device (such as a smart watch (such as an iwatch, etc.), a smart bracelet, a pedometer, etc.) or Other terminal devices that can install and deploy instant messaging application clients, store the acquired N song audio files, and the location where the N song audio files are stored can be the local device where the noise-containing songs are spliced, or the cloud, or other storage.
S102、判断所述N个歌曲音频文件中是否含有噪声音频文件,所述噪声音频文件为噪声大于噪声阈值的噪声音频文件。S102. Determine whether the N song audio files contain a noise audio file, where the noise audio file is a noise audio file with a noise greater than a noise threshold.
具体的,判断所述N个歌曲音频文件中是否含有噪声,其中,噪声可为一种干扰信号,其会影响音频文件的音质。通常情况下,噪声为一种随机信号,可通过对音频文件进行简单分析,从而判断所述N个歌曲音频文件中是否含有噪声。Specifically, it is determined whether the N song audio files contain noise, where the noise may be a kind of interference signal, which will affect the sound quality of the audio files. Normally, noise is a random signal, and it can be determined whether the N song audio files contain noise by simply analyzing the audio files.
作为一种可能的实施方式,噪声大小由其对音频文件的干扰程度决定,通常情况下,噪声会在音频文件的某个播放时间段造成干扰。As a possible implementation manner, the size of the noise is determined by the degree of its interference to the audio file. Usually, the noise will cause interference in a certain playing time period of the audio file.
S103、对所述N个歌曲音频文件中的所述噪声音频文件进行降噪处理,以获取噪声小于阈值的降噪音频文件。S103. Perform noise reduction processing on the noise audio files in the N song audio files to obtain noise reduction audio files with noise less than a threshold.
具体的,若判断出所述N个歌曲音频文件中含有噪声音频文件,则对所述N个歌曲音频文件中的所述噪声音频文件进行降噪处理,以获取噪声小于阈值的降噪音频文件,得到N个降噪音频文件,并存储所述N个降噪音频文件,存储所述N个降噪音频文件的位置可以是含噪声歌曲拼接的装置本地,或是云端,或是其他存储空间。Specifically, if it is determined that the N song audio files contain noise audio files, noise reduction processing is performed on the noise audio files in the N song audio files to obtain noise reduction audio files with noise less than a threshold. , obtain N noise reduction audio files, and store the N noise reduction audio files. The location where the N noise reduction audio files are stored may be the local device where the noise-containing songs are spliced, or the cloud, or other storage space .
S104、从所述N个歌曲音频文件中未进行所述降噪处理的歌曲音频文件及所述降噪音频文件中提取M个片段。S104. Extract M segments from the N song audio files that have not been subjected to the noise reduction process and the noise reduction audio files.
具体的,从存储所述N个歌曲音频文件的存储空间i以及存储所述降噪音频文件的存储空间j中总共提取M个片段,并将提取得到的M个片段存储至待拼接片段的存储空间中,其中,M为大于1的整数。Specifically, a total of M segments are extracted from the storage space i for storing the N song audio files and the storage space j for storing the noise reduction audio files, and the extracted M segments are stored in the storage of the segment to be spliced space, where M is an integer greater than 1.
S105、将所述M个片段按照预设顺序进行拼接,以获取拼接歌曲音频文件。S105, splicing the M segments according to a preset order to obtain an audio file of the spliced song.
具体的,将存储于待拼接片段的存储空间中的所述M个片段按照预设顺序进行拼接,以获取拼接歌曲音频文件,其中,所述预设顺序可以是加入所述待拼接片段的存储空间的时间顺序,也可以是含噪声歌曲拼接的装置预先设定的随机顺序,或是其他顺序。Specifically, the M segments stored in the storage space of the segments to be spliced are spliced in a preset order to obtain the audio files of the spliced songs, wherein the preset order may be added to the storage space of the segments to be spliced The spatial time sequence may also be a random sequence preset by the device for splicing noise-containing songs, or other sequences.
本发明实施例中,获取N个歌曲音频文件,其中,N为大于1的整数;判断所述N个歌曲音频文件中是否含有噪声音频文件,所述噪声音频文件为噪声大于噪声阈值的噪声音频文件;若所述N个歌曲音频文件中含有噪声音频文件,对所述N个歌曲音频文件中的所述噪声音频文件进行降噪处理,以获取噪声小于阈值的降噪音频文件;从所述N个歌曲音频文件中未进行所述降噪处理的歌曲音频文件及所述降噪音频文件中提取M个片段,其中,M为大于1的整数;将所述M个片段按照预设顺序进行拼接,以获取拼接歌曲音频文件。采用本发明可对含噪的音频文件进行剪切与拼接,可对拼接后的音频文件进行降噪处理,以改善拼接后的音频文件的音质。In this embodiment of the present invention, N song audio files are acquired, where N is an integer greater than 1; it is determined whether the N song audio files contain noise audio files, and the noise audio files are noise audio files with noise greater than a noise threshold file; if the N song audio files contain noise audio files, perform noise reduction processing on the noise audio files in the N song audio files to obtain noise reduction audio files with noise less than a threshold; from the Extract M segments from the N song audio files that have not been subjected to the noise reduction process and the noise reduction audio files, where M is an integer greater than 1; perform the M segments in a preset order. Splicing to get spliced song audio files. By adopting the invention, the noise-containing audio files can be cut and spliced, and noise reduction processing can be performed on the spliced audio files, so as to improve the sound quality of the spliced audio files.
请参阅图2,图2是本发明实施例提供的一种含噪声歌曲拼接的方法的第二实施例流程示意图,包括步骤:Please refer to FIG. 2. FIG. 2 is a schematic flowchart of a second embodiment of a method for splicing noise-containing songs according to an embodiment of the present invention, including steps:
S201、分析所述N个歌曲音频文件,以得到所述N个歌曲音频文件频谱变化规律。S201. Analyze the N song audio files to obtain a frequency spectrum variation rule of the N song audio files.
具体的,可通过音频文件频谱处理装置分析所述N个歌曲音频文件,以得到所述N个歌曲音频文件频谱变化规律。Specifically, the N song audio files may be analyzed by an audio file spectrum processing apparatus to obtain the frequency spectrum variation rule of the N song audio files.
S202、根据所述N个歌曲音频文件频谱变化规律判断所述N个歌曲音频文件中是否含有噪声音频文件。S202. Determine whether the N song audio files contain noise audio files according to the frequency spectrum change rule of the N song audio files.
具体的,根据N个歌曲音频文件频谱变化规律判断N个歌曲音频文件中是否含有噪声音频文件。将每个歌曲音频文件的正常情况下的频谱与噪声情况下的频谱进行分析比对,若歌曲音频文件中具有较为明显的波动的频谱为噪声频谱,含有噪声频谱的歌曲音频文件为含噪歌曲音频文件。Specifically, it is determined whether the N song audio files contain noise audio files according to the frequency spectrum change rule of the N song audio files. Analyze and compare the spectrum of each song audio file under normal conditions and the spectrum under noise conditions. If the spectrum with obvious fluctuations in the song audio file is the noise spectrum, the song audio file containing the noise spectrum is a noisy song. audio file.
本发明实施例中,分析所述N个歌曲音频文件,以得到所述N个歌曲音频文件频谱变化规律;根据所述N个歌曲音频文件频谱变化规律判断所述N个歌曲音频文件中是否含有噪声音频文件,从而可确定所述N个歌曲音频文件是否含有噪声音频文件。In the embodiment of the present invention, the N song audio files are analyzed to obtain the frequency spectrum change rule of the N song audio files; according to the frequency spectrum change rule of the N song audio files, it is determined whether the N song audio files contain Noise audio files, so that it can be determined whether the N song audio files contain noise audio files.
请参阅图3,图3是本发明实施例提供的一种含噪声歌曲拼接的方法的第三实施例流程示意图,包括步骤:Please refer to FIG. 3. FIG. 3 is a schematic flowchart of a third embodiment of a method for splicing noise-containing songs according to an embodiment of the present invention, including steps:
S301、提取所述N个歌曲音频文件中未进行所述降噪处理的歌曲音频文件及所述降噪音频文件的原唱部分。S301. Extract the song audio files that are not subjected to the noise reduction processing and the original singing part of the noise reduction audio files from the N song audio files.
具体的,提取N个歌曲音频文件中未进行降噪处理的歌曲音频文件及降噪音频文件的原唱部分。通常情况下,歌曲音频文件可包含原唱部分与伴奏部分,可对歌曲音频文件进行分离,提取歌曲音频文件的原唱部分。Specifically, the song audio files without noise reduction processing and the original singing part of the noise reduction audio files are extracted from the N song audio files. Usually, the song audio file may include the original singing part and the accompaniment part, and the song audio file may be separated to extract the original singing part of the song audio file.
S302、确定所述N个歌曲音频文件中未进行所述降噪处理的歌曲音频文件及所述降噪音频文件的原唱部分中的每个语音片段的起始时间和结束时间。S302. Determine the start time and end time of each voice segment in the N song audio files that have not been subjected to the noise reduction process and the original singing part of the noise reduction audio file.
具体的,确定N个歌曲音频文件中未进行降噪处理的歌曲音频文件及降噪音频文件的原唱部分中的每个语音片段的起始时间和结束时间。可将原唱部分的语音分离成一个一个的语句片段,每个语句片段都有对应的起始时间与结束时间。Specifically, the start time and the end time of each voice segment in the song audio file without noise reduction processing and in the original singing part of the noise reduction audio file among the N song audio files are determined. The voice of the original singing part can be separated into sentence fragments one by one, and each sentence fragment has a corresponding start time and end time.
S303、按照所述N个歌曲音频文件中未进行所述降噪处理的歌曲音频文件及所述降噪音频文件的原唱部分中的每个语音片段的起始时间和结束时间进行剪切,以提取所述M个片段。S303, cut according to the start time and end time of each voice segment in the original singing part of the N song audio files without the noise reduction process and the noise reduction audio file, to extract the M fragments.
具体地,按照N个歌曲音频文件中未进行降噪处理的歌曲音频文件及降噪音频文件的原唱部分中的每个语音片段的起始时间和结束时间进行剪切,以提取所述M个片段。可将原唱部分的语音分离出的一个一个的语句片段按照每个语句片段都有对应的起始时间与结束时间进行剪切,以提取M个片段。Specifically, cutting is performed according to the start time and end time of each voice segment in the original singing part of the N song audio files without noise reduction processing and the noise reduction audio file, so as to extract the M fragment. The sentence fragments separated from the voice of the original singing part can be cut one by one according to the corresponding start time and end time of each sentence fragment, so as to extract M fragments.
本发明实施例提取所述N个歌曲音频文件中未进行所述降噪处理的歌曲音频文件及所述降噪音频文件的原唱部分;确定所述N个歌曲音频文件中未进行所述降噪处理的歌曲音频文件及所述降噪音频文件的原唱部分中的每个语音片段的起始时间和结束时间;按照所述N个歌曲音频文件中未进行所述降噪处理的歌曲音频文件及所述降噪音频文件的原唱部分中的每个语音片段的起始时间和结束时间进行剪切,以提取所述M个片段。采用本发明实施例可对歌曲音频文件进行剪切,获取歌曲音频文件包含的片段。The embodiment of the present invention extracts the song audio files that are not subjected to the noise reduction processing and the original singing part of the noise reduction audio files in the N song audio files; it is determined that the N song audio files are not subjected to the noise reduction process. The start time and end time of each voice segment in the noise-reduced song audio file and the original singing part of the noise-reduced audio file; according to the song audio without the noise-reduction process in the N song audio files The file and the start time and end time of each speech segment in the original singing part of the noise reduction audio file are cut to extract the M segments. By adopting the embodiment of the present invention, the audio file of the song can be cut to obtain the segments contained in the audio file of the song.
请参阅图4,图4是本发明实施例提供的一种含噪声歌曲拼接的方法的第四实施例流程示意图,包括步骤:Please refer to FIG. 4. FIG. 4 is a schematic flowchart of a fourth embodiment of a method for splicing songs containing noise provided by an embodiment of the present invention, including steps:
S401、提取所述N个歌曲音频文件中未进行所述降噪处理的歌曲音频文件及所述降噪音频文件的伴奏部分。S401. Extract the song audio files that are not subjected to the noise reduction processing and the accompaniment part of the noise reduction audio files from the N song audio files.
具体的,提取N个歌曲音频文件中未进行降噪处理的歌曲音频文件及降噪音频文件的伴奏部分。通常情况下,歌曲音频文件可包含原唱部分与伴奏部分,可对歌曲音频文件进行分离,提取歌曲音频文件的伴奏部分。Specifically, the song audio files and the accompaniment parts of the noise reduction audio files that are not subjected to noise reduction processing among the N song audio files are extracted. Usually, the song audio file may include the original singing part and the accompaniment part, and the song audio file may be separated to extract the accompaniment part of the song audio file.
S402、确定所述N个歌曲音频文件中未进行所述降噪处理的歌曲音频文件及所述降噪音频文件的伴奏部分中的每个曲调片段的起始时间和结束时间。S402. Determine the start time and end time of each melody segment in the N song audio files for which the noise reduction processing has not been performed and the accompaniment part of the noise reduction audio file.
具体的,确定N个歌曲音频文件中未进行降噪处理的歌曲音频文件及降噪音频文件的伴奏唱部分中的每个曲调片段的起始时间和结束时间。可将伴奏部分的语音分离成一个一个的语句片段,每个语句片段都有对应的起始时间与结束时间。Specifically, the start time and the end time of each melody segment in the accompaniment singing part of the song audio files that are not subjected to noise reduction processing among the N song audio files are determined. The voice of the accompaniment part can be separated into sentence fragments one by one, and each sentence fragment has a corresponding start time and end time.
S403、按照所述N个歌曲音频文件中未进行所述降噪处理的歌曲音频文件及所述降噪音频文件的伴奏部分中的每个曲调片段的起始时间和结束时间进行剪切,以提取所述M个片段。S403. Cut according to the start time and end time of each tune segment in the accompaniment part of the N song audio files without the noise reduction processing and the noise reduction audio files, to The M fragments are extracted.
具体地,按照N个歌曲音频文件中未进行降噪处理的歌曲音频文件及降噪音频文件的伴奏部分中的每个语音片段的起始时间和结束时间进行剪切,以提取所述M个片段。可将伴奏部分的语音分离出的一个一个的语句片段按照每个语句片段都有对应的起始时间与结束时间进行剪切,以提取M个片段。Specifically, cutting is performed according to the start time and end time of each voice segment in the accompaniment part of the song audio files without noise reduction processing and the noise reduction audio files in the N song audio files, so as to extract the M Fragment. The sentence fragments separated from the voice of the accompaniment part can be cut one by one according to the corresponding start time and end time of each sentence fragment, so as to extract M fragments.
本发明实施例提取所述N个歌曲音频文件中未进行所述降噪处理的歌曲音频文件及所述降噪音频文件的伴奏部分;确定所述N个歌曲音频文件中未进行所述降噪处理的歌曲音频文件及所述降噪音频文件的伴奏部分中的每个曲调片段的起始时间和结束时间;按照所述N个歌曲音频文件中未进行所述降噪处理的歌曲音频文件及所述降噪音频文件的伴奏部分中的每个曲调片段的起始时间和结束时间进行剪切,以提取所述M个片段。采用本发明实施例可对歌曲音频文件进行剪切,获取歌曲音频文件包含的片段。The embodiment of the present invention extracts the song audio files that are not subjected to the noise reduction processing and the accompaniment part of the noise reduction audio files in the N song audio files; it is determined that the noise reduction is not performed in the N song audio files The start time and end time of each tune segment in the processed song audio file and the accompaniment part of the noise reduction audio file; according to the song audio files and The start time and end time of each melody segment in the accompaniment part of the noise reduction audio file are cut to extract the M segments. By adopting the embodiment of the present invention, the audio file of the song can be cut to obtain the segments contained in the audio file of the song.
请参阅图5,图5是本发明实施例提供的一种含噪声歌曲拼接的方法的第五实施例流程示意图,包括步骤:Please refer to FIG. 5. FIG. 5 is a schematic flowchart of a fifth embodiment of a method for splicing noise-containing songs according to an embodiment of the present invention, including steps:
S501、获取N个歌曲音频文件。S501. Obtain N song audio files.
具体的,可从含噪声歌曲拼接的装置中获取N个歌曲音频文件,也可从移动终端获取N个歌曲音频文件,或者从其他方式获取N个歌曲音频文件,其中,N为大于1的整数,移动终端例如可以是手机、平板电脑、笔记本电脑、掌上电脑、移动互联网设备(MID,mobileinternet device)、可穿戴设备(例如智能手表(如iwatch等)、智能手环、计步器等)或其他可安装部署即时通讯应用客户端的终端设备,存储获取到的N个歌曲音频文件,存储所述N个歌曲音频文件的的位置可以是含噪声歌曲拼接的装置本地,或是云端,或是其他存储空间。Specifically, N song audio files can be obtained from a device for splicing noisy songs, N song audio files can also be obtained from a mobile terminal, or N song audio files can be obtained from other methods, where N is an integer greater than 1 , the mobile terminal may be, for example, a mobile phone, a tablet computer, a notebook computer, a handheld computer, a mobile internet device (MID, mobile internet device), a wearable device (such as a smart watch (such as an iwatch, etc.), a smart bracelet, a pedometer, etc.) or Other terminal devices that can install and deploy instant messaging application clients, store the acquired N song audio files, and the location where the N song audio files are stored can be the local device where the noise-containing songs are spliced, or the cloud, or other storage.
S502、判断所述N个歌曲音频文件中是否含有噪声音频文件,所述噪声音频文件为噪声大于噪声阈值的噪声音频文件。S502. Determine whether the N song audio files contain a noise audio file, where the noise audio file is a noise audio file with a noise greater than a noise threshold.
具体的,判断所述N个歌曲音频文件中是否含有噪声,其中,噪声可为一种干扰信号,其会影响音频文件的音质。通常情况下,噪声为一种随机信号,可通过对音频文件进行简单分析,从而判断所述N个歌曲音频文件中是否含有噪声。Specifically, it is determined whether the N song audio files contain noise, where the noise may be a kind of interference signal, which will affect the sound quality of the audio files. Normally, noise is a random signal, and it can be determined whether the N song audio files contain noise by simply analyzing the audio files.
作为一种可能的实施方式,噪声大小由其对音频文件的干扰程度决定,通常情况下,噪声会在音频文件的某个播放时间段造成干扰。As a possible implementation manner, the size of the noise is determined by the degree of its interference to the audio file. Usually, the noise will cause interference in a certain playing time period of the audio file.
S503、对所述N个歌曲音频文件中的所述噪声音频文件进行降噪处理,以获取噪声小于阈值的降噪音频文件。S503. Perform noise reduction processing on the noise audio files in the N song audio files to obtain noise reduction audio files with noise less than a threshold.
具体的,若判断出所述N个歌曲音频文件中含有噪声音频文件,则对所述N个歌曲音频文件中的所述噪声音频文件进行降噪处理,以获取噪声小于阈值的降噪音频文件,得到N个降噪音频文件,并存储所述N个降噪音频文件,存储所述N个降噪音频文件的位置可以是含噪声歌曲拼接的装置本地,或是云端,或是其他存储空间。Specifically, if it is determined that the N song audio files contain noise audio files, noise reduction processing is performed on the noise audio files in the N song audio files to obtain noise reduction audio files with noise less than a threshold. , obtain N noise reduction audio files, and store the N noise reduction audio files. The location where the N noise reduction audio files are stored may be the local device where the noise-containing songs are spliced, or the cloud, or other storage space .
S504、从所述N个歌曲音频文件中未进行所述降噪处理的歌曲音频文件及所述降噪音频文件中提取M个片段。S504. Extract M segments from the N song audio files that have not been subjected to the noise reduction processing and the noise reduction audio files.
具体的,从存储所述N个歌曲音频文件的存储空间i以及存储所述降噪音频文件的存储空间j中总共提取M个片段,并将提取得到的M个片段存储至待拼接片段的存储空间中,其中,M为大于1的整数。Specifically, a total of M segments are extracted from the storage space i for storing the N song audio files and the storage space j for storing the noise reduction audio files, and the extracted M segments are stored in the storage of the segment to be spliced space, where M is an integer greater than 1.
S505、将所述M个片段按照预设顺序进行拼接,以获取拼接歌曲音频文件。S505, splicing the M segments according to a preset order to obtain an audio file of the spliced song.
具体的,将存储于待拼接片段的存储空间中的所述M个片段按照预设顺序进行拼接,以获取拼接歌曲音频文件,其中,所述预设顺序可以是加入所述待拼接片段的存储空间的时间顺序,也可以是含噪声歌曲拼接的装置预先设定的随机顺序,或是其他顺序。Specifically, the M segments stored in the storage space of the segments to be spliced are spliced in a preset order to obtain the audio files of the spliced songs, wherein the preset order may be added to the storage space of the segments to be spliced The spatial time sequence may also be a random sequence preset by the device for splicing noise-containing songs, or other sequences.
S506、锁定所述拼接歌曲音频文件的拼接位置。S506. Lock the splicing position of the spliced song audio file.
具体的,锁定优质拼接歌曲的拼接地方。为了实现无缝拼接,因此,不能显示出拼接的痕迹,需要锁定拼接地方,对其进行预处理。Specifically, lock the splicing place of the high-quality splicing songs. In order to achieve seamless splicing, therefore, traces of splicing cannot be displayed, and the splicing place needs to be locked and preprocessed.
S507、将所述拼接歌曲音频文件的拼接位置进行处理,以获取无缝拼接歌曲音频文件。S507, processing the splicing position of the splicing song audio file to obtain the seamless splicing song audio file.
具体的,将所述拼接歌曲音频文件的拼接位置进行处理,以获取无缝拼接歌曲音频文件。其中,预处理可包括但不仅限于:对拼接歌曲的拼接地方进行曲调调整、插入变化程度相似的曲调、对变化幅度较大的拼接地方进行平滑处理。Specifically, the splicing position of the spliced song audio file is processed to obtain the seamless spliced song audio file. Wherein, the preprocessing may include, but is not limited to: adjusting the tune at the splicing places of the spliced songs, inserting tunes with similar degrees of change, and smoothing the splicing places with larger changes.
本发明实施例获取N个歌曲音频文件,其中,N为大于1的整数;判断所述N个歌曲音频文件中是否含有噪声音频文件,所述噪声音频文件为噪声大于噪声阈值的噪声音频文件;若所述N个歌曲音频文件中含有噪声音频文件,对所述N个歌曲音频文件中的所述噪声音频文件进行降噪处理,以获取噪声小于阈值的降噪音频文件;从所述N个歌曲音频文件中未进行所述降噪处理的歌曲音频文件及所述降噪音频文件中提取M个片段,其中,M为大于1的整数;将所述M个片段按照预设顺序进行拼接,以获取拼接歌曲音频文件,锁定所述优质拼接歌曲的拼接地方;将所述拼接歌曲的拼接地方进行预设处理,以获取无缝拼接歌曲。采用本发明实施例可对拼接歌曲音频文件进行预设处理,以得到无缝且音质较好的歌曲。The embodiment of the present invention acquires N song audio files, where N is an integer greater than 1; judges whether the N song audio files contain noise audio files, and the noise audio files are noise audio files with noise greater than a noise threshold; If the N song audio files contain noise audio files, perform noise reduction processing on the noise audio files in the N song audio files to obtain noise reduction audio files with noise less than a threshold; Extracting M fragments from the song audio file without the noise reduction processing in the song audio file and the noise reduction audio file, where M is an integer greater than 1; splicing the M fragments according to a preset order, To obtain the audio file of the spliced song, lock the splicing place of the high-quality splicing song; perform preset processing on the splicing place of the splicing song to obtain the seamless splicing song. By adopting the embodiment of the present invention, preset processing can be performed on the audio files of the spliced songs, so as to obtain songs with seamless and better sound quality.
请参阅图6,图6是本发明实施例提供的一种含噪声歌曲拼接的装置的第一实施例结构示意图,其中,图6所示的含噪声歌曲拼接的装置可以包括获取单元601、第一判断单元602、第一处理单元603、第一提取单元604、拼接单元605具体如下:Please refer to FIG. 6. FIG. 6 is a schematic structural diagram of a first embodiment of a device for splicing songs containing noise provided by an embodiment of the present invention. The device for splicing songs containing noise shown in FIG. 6 may include an
获取单元601,用于获取N个歌曲音频文件,其中,N为大于1的整数。The obtaining
第一判断单元602,用于判断所述获取单元获取到的所述N个歌曲音频文件中是否含有噪声音频文件,所述噪声音频文件为噪声大于噪声阈值的噪声音频文件。The first determining
具体的,所述第一判断单元602包括:分析单元(未图示),用于分析所述N个歌曲音频文件,以得到所述N个歌曲音频文件频谱变化规律;第二判断单元(未图示),用于根据所述分析单元分析得到的所述N个歌曲音频文件频谱变化规律判断所述N个歌曲音频文件中是否含有噪声音频文件。Specifically, the
第一处理单元603,用于在所述第一判断单元判断出所述N个歌曲音频文件中含有噪声音频文件时,对所述N个歌曲音频文件中的所述噪声音频文件进行降噪处理,以获取噪声小于阈值的降噪音频文件。A
第一提取单元604,用于从所述N个歌曲音频文件中未进行所述降噪处理的歌曲音频文件及所述降噪音频文件中提取M个片段,其中,M为大于1的整数。The
具体的,所述第一提取单元604包括:第二提取单元(未图示),用于提取所述N个歌曲音频文件中未进行所述降噪处理的歌曲音频文件及所述降噪音频文件的原唱部分;第一确定单元(未图示),用于确定所述第二提取单元提取得到的所述N个歌曲音频文件中未进行所述降噪处理的歌曲音频文件及所述降噪音频文件的原唱部分中的每个语音片段的起始时间和结束时间;第一剪切单元(未图示),用于按照所述第一确定单元确定得到的所述N个歌曲音频文件中未进行所述降噪处理的歌曲音频文件及所述降噪音频文件的原唱部分中的每个语音片段的起始时间和结束时间进行剪切,以提取所述M个片段。Specifically, the
具体的,所述第一提取单元604包括:第三提取单元(未图示),用于提取所述N个歌曲音频文件中未进行所述降噪处理的歌曲音频文件及所述降噪音频文件的伴奏部分;第二确定单元(未图示),用于确定所述第三提取单元所述N个歌曲音频文件中未进行所述降噪处理的歌曲音频文件及所述降噪音频文件的伴奏部分中的每个曲调片段的起始时间和结束时间;第二剪切单元(未图示),用于按照所述第二确定单元确定得到的所述N个歌曲音频文件中未进行所述降噪处理的歌曲音频文件及所述降噪音频文件的伴奏部分中的每个曲调片段的起始时间和结束时间进行剪切,以提取所述M个片段。Specifically, the
拼接单元605,用于将所述第一提取单元提取得到的所述M个片段按照预设顺序进行拼接,以获取拼接歌曲音频文件。The
可选的,所述拼接单元605将所述M个片段按照预设顺序进行拼接之后,所述装置还包括:锁定所述拼接歌曲音频文件的拼接位置;将所述拼接歌曲音频文件的拼接位置进行处理,以获取无缝拼接歌曲音频文件。Optionally, after the
可以理解的是,本实施例的含噪声歌曲拼接的装置的各功能模块的功能可根据所述方法实施例中的方法具体实现,其具体实现过程可以参照所述方法实施例的相关描述,此处不再赘述。It can be understood that the functions of each functional module of the apparatus for splicing songs containing noise in this embodiment can be specifically implemented according to the method in the method embodiment, and the specific implementation process can refer to the relevant description of the method embodiment. It is not repeated here.
本发明实施例中,获取单元601获取N个歌曲音频文件,其中,N为大于1的整数;第一判断单元602判断所述获取单元获取到的所述N个歌曲音频文件中是否含有噪声音频文件,所述噪声音频文件为噪声大于噪声阈值的噪声音频文件;第一处理单元603在所述第一判断单元判断出所述N个歌曲音频文件中含有噪声音频文件时,对所述N个歌曲音频文件中的所述噪声音频文件进行降噪处理,以获取噪声小于阈值的降噪音频文件;第一提取单元604从所述N个歌曲音频文件中未进行所述降噪处理的歌曲音频文件及所述降噪音频文件中提取M个片段,其中,M为大于1的整数;拼接单元605将所述第一提取单元提取得到的所述M个片段按照预设顺序进行拼接,以获取拼接歌曲音频文件;锁定单元,用于锁定所述拼接歌曲音频文件的拼接位置;第二处理单元,用于将所述锁定单元锁定的所述拼接歌曲音频文件的拼接位置进行处理,以获取无缝拼接歌曲音频文件。采用本发明可对含噪的音频文件进行剪切与拼接,可对拼接后的音频文件进行降噪处理,以改善拼接后的音频文件的音质。In this embodiment of the present invention, the
参见图7,图7为本发明实施例提供的一种含噪声歌曲拼接的装置的第二实施例结构示意图。本实施例中所描述的含噪声歌曲拼接的装置包括:至少一个输入设备1000;至少一个输出设备2000;至少一个处理器3000,例如CPU;和存储器4000,上述输入设备1000、输出设备2000、处理器3000和存储器4000通过总线5000连接。Referring to FIG. 7 , FIG. 7 is a schematic structural diagram of a second embodiment of an apparatus for splicing songs containing noise according to an embodiment of the present invention. The apparatus for splicing noise-containing songs described in this embodiment includes: at least one
其中,上述输入设备1000可为触控面板、普通PC、液晶屏、触控屏等。The above-mentioned
上述存储器4000可以是高速RAM存储器,也可为非不稳定的存储器(non-volatilememory),例如磁盘存储器。上述存储器4000用于存储一组程序代码,上述输入设备1000、输出设备2000和处理器3000用于调用存储器4000中存储的程序代码,执行如下操作:The above-mentioned
上述处理器3000,用于获取N个歌曲音频文件,其中,N为大于1的整数;The above-mentioned
上述处理器3000,还用于判断所述N个歌曲音频文件中是否含有噪声音频文件,所述噪声音频文件为噪声大于噪声阈值的噪声音频文件;The above-mentioned
上述处理器3000,还用于在判断出所述N个歌曲音频文件中含有噪声音频文件时,对所述N个歌曲音频文件中的所述噪声音频文件进行降噪处理,以获取噪声小于阈值的降噪音频文件;The above-mentioned
上述处理器3000,还用于从所述N个歌曲音频文件中未进行所述降噪处理的歌曲音频文件及所述降噪音频文件中提取M个片段,其中,M为大于1的整数;The above-mentioned
上述处理器3000,还用于将所述M个片段按照预设顺序进行拼接,以获取拼接歌曲音频文件。The above-mentioned
在一些可行的实施例中,上述处理器3000还具体用于:In some feasible embodiments, the above-mentioned
分析所述N个歌曲音频文件,以得到所述N个歌曲音频文件频谱变化规律;Analyzing the N song audio files to obtain the frequency spectrum variation rule of the N song audio files;
根据所述N个歌曲音频文件频谱变化规律判断所述N个歌曲音频文件中是否含有噪声音频文件。It is determined whether the N song audio files contain noise audio files according to the frequency spectrum change rule of the N song audio files.
在一些可行的实施例中,上述处理器3000还具体用于:In some feasible embodiments, the above-mentioned
提取所述N个歌曲音频文件中未进行所述降噪处理的歌曲音频文件及所述降噪音频文件的原唱部分;Extracting the song audio files that are not subjected to the noise reduction process and the original singing part of the noise reduction audio files in the N song audio files;
确定所述N个歌曲音频文件中未进行所述降噪处理的歌曲音频文件及所述降噪音频文件的原唱部分中的每个语音片段的起始时间和结束时间;Determine the start time and end time of each voice segment in the original singing part of the N song audio files that are not subjected to the noise reduction process and the noise reduction audio file;
按照所述N个歌曲音频文件中未进行所述降噪处理的歌曲音频文件及所述降噪音频文件的原唱部分中的每个语音片段的起始时间和结束时间进行剪切,以提取所述M个片段。Cut according to the start time and end time of each voice segment in the original singing part of the N song audio files that have not been subjected to the noise reduction processing, to extract the M fragments.
在一些可行的实施例中,上述处理器3000还具体用于:In some feasible embodiments, the above-mentioned
提取所述N个歌曲音频文件中未进行所述降噪处理的歌曲音频文件及所述降噪音频文件的伴奏部分;Extracting the accompaniment part of the song audio file and the noise reduction audio file that have not been subjected to the noise reduction process in the N song audio files;
确定所述N个歌曲音频文件中未进行所述降噪处理的歌曲音频文件及所述降噪音频文件的伴奏部分中的每个曲调片段的起始时间和结束时间;Determine the start time and end time of each tune segment in the accompaniment part of the N song audio files that are not subjected to the noise reduction process and the noise reduction audio file;
按照所述N个歌曲音频文件中未进行所述降噪处理的歌曲音频文件及所述降噪音频文件的伴奏部分中的每个曲调片段的起始时间和结束时间进行剪切,以提取所述M个片段。Cut according to the start time and end time of each tune segment in the accompaniment part of the N song audio files without the noise reduction processing and the noise reduction audio files, so as to extract the The M segments are described.
在一些可行的实施例中,在上述处理器3000将所述M个片段按照预设顺序进行拼接,以获取拼接歌曲音频文件之后上述处理器3000还具体用于:In some feasible embodiments, after the
锁定所述拼接歌曲音频文件的拼接位置;locking the splicing position of the spliced song audio file;
将所述拼接歌曲音频文件的拼接位置进行处理,以获取无缝拼接歌曲音频文件。The splicing position of the spliced song audio file is processed to obtain the seamless spliced song audio file.
具体实现中,本发明实施例中所描述的输入设备1000、输出设备2000和处理器3000可执行本发明实施例提供的图1~图5中所描述的含噪声歌曲拼接的方法的各实施例中所描述的实现方式,也可执行本发明实施例提供含噪声歌曲拼接的装置的第一实施例中所描述的含噪声歌曲拼接的装置的实现方式,在此不再赘述。In specific implementation, the
本发明实施例所有实施例中的模块或子模块,可以通过通用集成电路,例如CPU(Central Processing Unit,中央处理器),或通过ASIC(Application SpecificIntegrated Circuit,专用集成电路)来实现。The modules or submodules in all the embodiments of the embodiments of the present invention may be implemented by a general-purpose integrated circuit, such as a CPU (Central Processing Unit, central processing unit), or an ASIC (Application Specific Integrated Circuit, application-specific integrated circuit).
本发明实施例方法中的步骤可以根据实际需要进行顺序调整、合并和删减。The steps in the method of the embodiment of the present invention may be adjusted, combined and deleted in sequence according to actual needs.
本发明实施例装置中的单元可以根据实际需要进行合并、划分和删减。Units in the apparatus of the embodiment of the present invention may be combined, divided, and deleted according to actual needs.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存取存储器(Random AccessMemory,简称RAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium. During execution, the processes of the embodiments of the above-mentioned methods may be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM), or a random access memory (Random Access Memory, RAM for short).
以上所揭露的仅为本发明实施例较佳实施例而已,当然不能以此来限定本发明实施例之权利范围,因此依本发明实施例权利要求所作的等同变化,仍属本发明实施例所涵盖的范围。The above disclosures are only preferred embodiments of the embodiments of the present invention, and of course, the scope of the rights of the embodiments of the present invention cannot be limited by this. Therefore, equivalent changes made according to the claims of the embodiments of the present invention are still within the scope of the embodiments of the present invention. scope covered.
Claims (6)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710996071.5A CN107622775B (en) | 2015-03-20 | 2015-03-20 | Method for splicing noise-containing songs and related products |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710996071.5A CN107622775B (en) | 2015-03-20 | 2015-03-20 | Method for splicing noise-containing songs and related products |
CN201510125170.7A CN104778958B (en) | 2015-03-20 | 2015-03-20 | A method and device for splicing noise-containing songs |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510125170.7A Division CN104778958B (en) | 2015-03-20 | 2015-03-20 | A method and device for splicing noise-containing songs |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107622775A CN107622775A (en) | 2018-01-23 |
CN107622775B true CN107622775B (en) | 2020-12-18 |
Family
ID=53620385
Family Applications (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510125170.7A Expired - Fee Related CN104778958B (en) | 2015-03-20 | 2015-03-20 | A method and device for splicing noise-containing songs |
CN201710996071.5A Expired - Fee Related CN107622775B (en) | 2015-03-20 | 2015-03-20 | Method for splicing noise-containing songs and related products |
Family Applications Before (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510125170.7A Expired - Fee Related CN104778958B (en) | 2015-03-20 | 2015-03-20 | A method and device for splicing noise-containing songs |
Country Status (1)
Country | Link |
---|---|
CN (2) | CN104778958B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106970950B (en) * | 2017-03-07 | 2021-08-24 | 腾讯音乐娱乐(深圳)有限公司 | Similar audio data searching method and device |
CN107591149B (en) * | 2017-09-18 | 2021-09-28 | 腾讯音乐娱乐科技(深圳)有限公司 | Audio synthesis method, device and storage medium |
CN109949792B (en) * | 2019-03-28 | 2021-08-13 | 优信拍(北京)信息科技有限公司 | Multi-audio synthesis method and device |
CN112037739B (en) * | 2020-09-01 | 2024-02-27 | 腾讯音乐娱乐科技(深圳)有限公司 | Data processing method and device and electronic equipment |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102348150A (en) * | 2010-07-22 | 2012-02-08 | 索尼公司 | Audio signal processing apparatus, audio signal processing method, and program |
CN102568527A (en) * | 2011-12-20 | 2012-07-11 | 广东步步高电子工业有限公司 | A method, system and mobile handheld device for easily editing audio files |
CN203070769U (en) * | 2013-02-26 | 2013-07-17 | 珠海市杰理科技有限公司 | Automatic denoising device for audio playing and audio player |
US20140039891A1 (en) * | 2007-10-16 | 2014-02-06 | Adobe Systems Incorporated | Automatic separation of audio data |
CN103943113A (en) * | 2014-04-15 | 2014-07-23 | 福建星网视易信息系统有限公司 | Method and device for removing accompaniment from song |
CN104244086A (en) * | 2014-09-03 | 2014-12-24 | 陈飞 | Video real-time splicing device and method based on real-time conversation semantic analysis |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7948981B1 (en) * | 2006-10-23 | 2011-05-24 | Adobe Systems Incorpoated | Methods and apparatus for representing audio data |
CN102467939B (en) * | 2010-11-04 | 2014-08-13 | 北京彩云在线技术开发有限公司 | Song audio frequency cutting apparatus and method thereof |
CN104112444B (en) * | 2014-07-28 | 2018-11-06 | 中国科学院自动化研究所 | A kind of waveform concatenation phoneme synthesizing method based on text message |
-
2015
- 2015-03-20 CN CN201510125170.7A patent/CN104778958B/en not_active Expired - Fee Related
- 2015-03-20 CN CN201710996071.5A patent/CN107622775B/en not_active Expired - Fee Related
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140039891A1 (en) * | 2007-10-16 | 2014-02-06 | Adobe Systems Incorporated | Automatic separation of audio data |
CN102348150A (en) * | 2010-07-22 | 2012-02-08 | 索尼公司 | Audio signal processing apparatus, audio signal processing method, and program |
CN102568527A (en) * | 2011-12-20 | 2012-07-11 | 广东步步高电子工业有限公司 | A method, system and mobile handheld device for easily editing audio files |
CN203070769U (en) * | 2013-02-26 | 2013-07-17 | 珠海市杰理科技有限公司 | Automatic denoising device for audio playing and audio player |
CN103943113A (en) * | 2014-04-15 | 2014-07-23 | 福建星网视易信息系统有限公司 | Method and device for removing accompaniment from song |
CN104244086A (en) * | 2014-09-03 | 2014-12-24 | 陈飞 | Video real-time splicing device and method based on real-time conversation semantic analysis |
Also Published As
Publication number | Publication date |
---|---|
CN104778958B (en) | 2017-11-24 |
CN104778958A (en) | 2015-07-15 |
CN107622775A (en) | 2018-01-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104778216B (en) | Method and device for processing songs with preset styles | |
US11176141B2 (en) | Preserving emotion of user input | |
CN102568478B (en) | Video play control method and system based on voice recognition | |
CN107622775B (en) | Method for splicing noise-containing songs and related products | |
CN105630787B (en) | Animation realization method and device based on dynamic portable network graphics | |
CN104778221A (en) | A method and device for splicing and splicing songs | |
CN104778217B (en) | A kind of song stitching algorithm and device | |
CN104778957B (en) | A kind of method and device of song audio processing | |
CN106407370A (en) | A method and mobile terminal for displaying lyrics | |
KR102353797B1 (en) | Method and system for suppoting content editing based on real time generation of synthesized sound for video content | |
CN104778220A (en) | Method and device for splitting a-cappella songs | |
CN104778219B (en) | A kind of method and device of default effect song splicing | |
CN108093311B (en) | Multimedia file processing method and device, storage medium and electronic equipment | |
CN107346228B (en) | Voice processing method and system of electronic equipment | |
CN110286776A (en) | Input method, device, electronic equipment and the storage medium of character combination information | |
CN110827850B (en) | Audio separation method, device, equipment and computer readable storage medium | |
CN110085214B (en) | Audio starting point detection method and device | |
CN104780438A (en) | Method and device for splicing video and song audio | |
CN104778218A (en) | A method and device for processing incomplete songs | |
CN119520894A (en) | Video processing method, device, electronic device and storage medium | |
KR20210054128A (en) | Apparatus for Generating Sound using Speech Synthesize | |
KR102447554B1 (en) | Sound source recognition method and device based on audio fingerprint matching | |
CN115484503B (en) | Bullet screen generation method and device, electronic equipment and storage medium | |
JP7128222B2 (en) | Content editing support method and system based on real-time generation of synthesized sound for video content | |
US10007724B2 (en) | Creating, rendering and interacting with a multi-faceted audio cloud |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20201218 |