WO2016150274A1 - Song splicing algorithm and apparatus - Google Patents

Song splicing algorithm and apparatus Download PDF

Info

Publication number
WO2016150274A1
WO2016150274A1 PCT/CN2016/074910 CN2016074910W WO2016150274A1 WO 2016150274 A1 WO2016150274 A1 WO 2016150274A1 CN 2016074910 W CN2016074910 W CN 2016074910W WO 2016150274 A1 WO2016150274 A1 WO 2016150274A1
Authority
WO
WIPO (PCT)
Prior art keywords
song
song audio
audio files
splicing
files
Prior art date
Application number
PCT/CN2016/074910
Other languages
French (fr)
Chinese (zh)
Inventor
程胜
Original Assignee
广东欧珀移动通信有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 广东欧珀移动通信有限公司 filed Critical 广东欧珀移动通信有限公司
Publication of WO2016150274A1 publication Critical patent/WO2016150274A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor

Definitions

  • the embodiments of the present invention relate to the field of audio processing technologies, and in particular, to a song splicing algorithm and apparatus.
  • the function playback of music in the prior art is limited to improving its own sound quality processing, such as processing the inferior audio file by the processing software provided in the device or the dedicated player to improve the playback quality; or,
  • the quality of the audio file itself is relatively high, and often the genuine audio file can broadcast a good effect, while the local processing of the audio file, such as cutting technology and extraction technology, is less studied.
  • the embodiment of the invention provides a song splicing algorithm and device, which can perform decoding operations on song audio files and splicing the decoded data, and has high splicing efficiency.
  • a first aspect of the embodiments of the present invention provides a song splicing algorithm, including:
  • N is an integer greater than or equal to 1;
  • the N song audio files are stitched in a preset order to obtain a stitched song audio file.
  • a second aspect of the embodiments of the present invention provides a song splicing apparatus, including:
  • An acquiring unit configured to acquire N song audio files, where N is greater than or equal to 1
  • a splicing unit configured to splicing the N song audio files in a preset order to obtain a spliced song audio file.
  • the embodiment of the present invention obtains N song audio files, where N is an integer greater than or equal to 1;
  • the N song audio files are stitched in a preset order to obtain a stitched song audio file.
  • the decoding operation of the song audio file can be performed by using the embodiment of the present invention to obtain decoded audio data, and the decoded audio data is spliced to obtain a spliced song audio file.
  • FIG. 1 is a schematic flowchart diagram of a first embodiment of a song splicing algorithm according to an embodiment of the present disclosure
  • FIG. 2 is a schematic flowchart diagram of a second embodiment of a song splicing algorithm according to an embodiment of the present disclosure
  • FIG. 3 is a schematic flowchart diagram of a third embodiment of a song splicing algorithm according to an embodiment of the present disclosure
  • FIG. 4 is a schematic flowchart diagram of a fourth embodiment of a song splicing algorithm according to an embodiment of the present disclosure
  • FIG. 5 is a schematic structural diagram of a first embodiment of a song splicing apparatus according to an embodiment of the present disclosure
  • FIG. 6 is a schematic structural diagram of a second embodiment of a song splicing apparatus according to an embodiment of the present disclosure
  • FIG. 7 is a schematic structural diagram of a third embodiment of a song splicing apparatus according to an embodiment of the present disclosure.
  • FIG. 8 is a schematic structural diagram of a fourth embodiment of a song splicing apparatus according to an embodiment of the present disclosure.
  • FIG. 9 is a schematic structural diagram of a fifth embodiment of a song splicing apparatus according to an embodiment of the present disclosure.
  • FIG. 10 is a schematic structural diagram of a sixth embodiment of a song splicing apparatus according to an 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, an MP3, an MP4, a smart TV, a set top box, and a service.
  • the system of the song splicing device refers to the operating system of the song splicing device, and may include, but is not limited to, an Android system, a Symbian system, a Windows system, an IOS (Mobile Operating System developed by Apple) system, and the like.
  • the Android device refers to the device of the Android system
  • the Saipan device refers to the device of the Saipan system, and the like.
  • the above apparatus is by way of example only and not limitation, and is not limited to the above apparatus.
  • the 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, songs, songs, videos.
  • the above songs are by way of example only and not exhaustive, including but not limited to the above-mentioned songs.
  • the format of the song may include, but is not limited to, MP3, MP4, WMV, WAV, FLV, and the like.
  • the format of the above songs is merely an example, not an exhaustive one, including but not limited to the format of the above songs.
  • FIG. 1 is a schematic flowchart diagram of a first embodiment of a song splicing algorithm according to an embodiment of the present invention.
  • the method for stitching a song according to the embodiment includes the following steps:
  • N song audio files are acquired, N song audio files can be read by a program, or N song audio files can be set by a system.
  • the song audio file may include, but is not limited to, an MP3 song audio file, a WAV song audio file, a WMV song audio file, and a CD song audio file.
  • the N song audio files are stitched in a preset order to obtain a stitched song audio file.
  • the preset order may be chronological or used for the splicing order defined by itself.
  • N song audio files are obtained, where N is an integer greater than or equal to 1; the N song audio files are spliced in a preset order to obtain a stitched song audio file.
  • the decoding operation of the song audio file can be performed by using the embodiment of the present invention to obtain decoded audio data, and the decoded audio data is spliced to obtain a spliced song audio file.
  • FIG. 2 is a schematic flowchart diagram of a second embodiment of a song splicing algorithm according to an embodiment of the present invention
  • FIG. 2 is a specific refinement of step S102 in FIG.
  • the song stitching algorithm described in this embodiment includes the following steps:
  • the start position of the N song audio files is acquired, and the N song audio files can be analyzed, the position where the first clip appears is defined as the start position of the song audio file, or N song audio is
  • the header file of the file is defined as the starting position of the song audio file.
  • the N song audio files are subjected to a decoding operation according to the start position of the N song audio files to obtain decoded audio data.
  • the N song audio files are decoded according to the starting position of the N song audio files, and the decoded audio data is decoded, and the song can be divided into segments of one sentence based on the decoded audio data.
  • the decoded audio data is sent to the buffer queue, and the decoded audio data can be sent to the buffer queue according to the chronological order of decoding.
  • the decoded audio data in the buffer queue is spliced in a preset order to obtain a spliced song audio file.
  • the decoded audio data in the buffer queue is spliced in a preset order to obtain a spliced song audio file.
  • the preset order may include, but is not limited to, chronological order, random order, order set by the user, and the like.
  • the control decoding parameters of the decoding operation may be set before the acquiring the N song audio files.
  • the decoding parameters may include, but are not limited to, a decoding type, a decoding speed, a decoding manner, and the like.
  • the DSP decoding parameters can be set, the background thread finds the starting position of the original audio data in the file, and the DSP starts decoding.
  • the background thread will decode the audio data to send the audio data to the buffer queue, and then send it out from the buffer queue to the DSP to decode the output sound.
  • the starting position of the audio data of the second song audio file is found.
  • the audio data of the position is directly sent to the buffer buffer (bucket) after the audio data (end frame frame) of the previous song audio file, and the data in the buffer is sequentially sent to the DSP for decoding, so that two songs can be guaranteed.
  • the audio data is sequentially decoded into the DSP. Normally, the speed of reading a USB device is faster than the speed of decoding playback. However, when the first song has 20 seconds of data to be decoded, the audio data of the first song is already buffered. Parsing the second song and starting to buffer the second data audio data, completely continuous decoding for the user.
  • Obtaining a starting position of the N song audio files according to an embodiment of the present invention performing decoding operations on the N song audio files according to a starting position of the N song audio files to obtain decoded audio data;
  • the audio data is sent to the buffer queue; the decoded audio data in the buffer queue is spliced in a preset order to obtain a stitched song audio file.
  • the decoding operation of the song audio file can be performed by using the embodiment of the present invention to obtain decoded audio data, and the decoded audio data is spliced to obtain a spliced song audio file.
  • FIG. 3 is a schematic flowchart diagram of a third embodiment of a song splicing algorithm according to an embodiment of the present invention, and FIG. 3 is a specific refinement of step S202 in FIG.
  • a decoder corresponding to the N song audio files is selected, wherein the corresponding decoder can be selected according to the format of the N song audio files.
  • control decoder performs a decoding operation on the N song audio files to obtain decoded audio data.
  • the control decoder performs a decoding operation on the N song audio files, and the obtained decoded audio data may be sentence segment data.
  • the embodiment of the present invention selects a decoder corresponding to the N song audio files; and controls the decoder to perform a decoding operation on the N song audio files to obtain decoded audio data.
  • the decoding operation of the song audio file can be performed by using the embodiment of the present invention to obtain decoded audio data.
  • FIG. 4 is a fourth embodiment of a song stitching algorithm according to an embodiment of the present invention. Process diagram, including steps:
  • N song audio files are acquired, N song audio files can be read by a program, or N song audio files can be set by a system.
  • the song audio file may include, but is not limited to, an MP3 song audio file, a WAV song audio file, a WMV song audio file, and a CD song audio file.
  • the N song audio files are stitched in a preset order to obtain a stitched song audio file.
  • the preset order may be chronological or used for the splicing order defined by itself.
  • the stitching position of the stitched song audio file is locked.
  • the splicing marks cannot be displayed, and the splicing position needs to be locked and pre-processed.
  • the stitching position of the stitched song is processed to obtain a seamless stitching song audio file.
  • the processing may include, but is not limited to, performing tune adjustment on the stitching position of the stitched song, inserting a tunes with similar degrees of change, and smoothing the stitching position with a large change range.
  • the embodiment of the invention locks the splicing position of the spliced song; and processes the splicing position of the spliced song to obtain a seamless spliced song audio file.
  • the stitched song audio file can be processed by using the embodiment of the invention to obtain a seamless stitching song audio file.
  • FIG. 5 is a schematic structural diagram of a first embodiment of a song splicing apparatus according to an embodiment of the present invention.
  • the song splicing apparatus shown in FIG. 5 may include an obtaining unit 501 and a splicing unit 502.
  • the obtaining unit 501 is configured to acquire N song audio files, where N is an integer greater than or equal to 1.
  • the obtaining unit 501 acquires N song audio files, can read N song audio files by a program, or can set N song audio files through a system.
  • the song audio file may include, but is not limited to, an MP3 song audio file, a WAV song audio file, a WMV song audio file, and a CD song audio file.
  • the splicing unit 502 is configured to splicing the N song audio files in a preset order to obtain a spliced song audio file.
  • the splicing unit 502 splices the N song audio files in a preset order to obtain a spliced song audio file.
  • the preset order may be chronological or used for the splicing order defined by itself.
  • the obtaining unit 501 acquires N song audio files, where N is an integer greater than or equal to 1; the splicing unit 502 splices the N song audio files in a preset order to obtain a spliced song audio file.
  • the decoding operation of the song audio file can be performed by using the embodiment of the present invention to obtain decoded audio data, and the decoded audio data is spliced to obtain a spliced song audio file.
  • FIG. 6 is a schematic structural diagram of a second embodiment of a song splicing apparatus according to an embodiment of the present invention.
  • the splicing unit 502 in the song splicing apparatus shown in FIG. 5 may include: a determining unit 601,
  • the decoding unit 602, the sending unit 603, and the splicing subunit 604 are as follows:
  • the determining unit 601 acquires a starting position of the N song audio files.
  • the determining unit 601 obtains a starting position of the audio file of the song to be spliced, and analyzes the N song audio files, and defines a position where the first fragment appears as a starting position of the song audio file, or The header file of the N song audio files is defined as the starting position of the N song audio files.
  • the decoding unit 602 is configured to perform a decoding operation on the N song audio files according to a starting position of the N song audio files to obtain decoded audio data.
  • the decoding unit 602 performs a decoding operation on the N song audio files according to the start position of the N song audio files to obtain decoded audio data.
  • the N song audio files are decoded according to the starting position of the N song audio files, and the decoded audio data is decoded, and the song can be divided into sentence sentences by one sentence based on the decoded audio data.
  • the sending unit 603 is configured to send the decoded audio data to a buffer queue.
  • the sending unit 603 sends the decoded audio data to the buffer queue, and the decoded audio data may be sent to the buffer queue in the chronological order of decoding.
  • the splicing sub-unit 604 is configured to splicing the decoded audio data in the buffer queue in a preset order to obtain a spliced song.
  • the splicing sub-unit 604 splices the decoded audio data in the buffer queue in a preset order to obtain a spliced song audio file.
  • the preset order may include, but is not limited to, chronological order, random order, order set by the user, and the like.
  • the obtaining unit 501 acquires N song audio files, where N is an integer greater than or equal to 1; the splicing unit 502 splices the N song audio files in a preset order to obtain a spliced song audio file.
  • the decoding operation of the song audio file can be performed by using the embodiment of the present invention to obtain decoded audio data, and the decoded audio data is spliced to obtain a spliced song audio file.
  • FIG. 7 is a schematic structural diagram of a third embodiment of a song splicing apparatus according to an embodiment of the present invention. Compared with the song splicing apparatus shown in FIG. 5, FIG. The illustrated song splicing apparatus may further include a setting unit 503 in addition to the unit of the song splicing apparatus shown in FIG. 5.
  • the setting unit 503 is configured to set a control decoding parameter of the decoding operation before the acquiring unit 501 acquires the N song audio files.
  • control decoding parameters may be set, where the decoding parameters may include, but are not limited to, a decoding type, a decoding speed, a decoding manner, and the like.
  • the DSP decoding parameters can be set, the background thread finds the starting position of the original audio data in the file, and the DSP starts decoding, the background thread.
  • the decoded audio data is sent to the buffer queue, and then sent out from the buffer queue to the DSP to decode the output sound.
  • the starting position of the audio data of the second song is found.
  • the audio data of the position is directly sent to the buffer buffer (buffer) after the audio data (the end frame frame) of the previous song, and the data in the buffer is sequentially sent to the DSP for decoding, so that the audio of the two songs can be guaranteed.
  • the data is serially entered into the DSP for decoding. Normally, the speed of reading a USB device is faster than the speed of decoding playback. However, when the first song has 20 seconds of data to be decoded, the audio data of the first song is already buffered. Parse the second song and start the second data audio Data caching, completely continuous decoding for the user.
  • the setting unit 503 is configured to: before the acquiring unit 501 acquires the N song audio files, set a control decoding parameter of the decoding operation; the acquiring unit 501 acquires N song audio files, where N is greater than Or an integer equal to 1; the splicing unit 502 splices the N song audio files in a preset order to obtain a spliced song audio file.
  • the decoding operation of the song audio file can be performed by using the embodiment of the present invention to obtain decoded audio data, and the decoded audio data is spliced to obtain a spliced song audio file.
  • FIG. 8 is a schematic structural diagram of a fourth embodiment of a song splicing apparatus according to an embodiment of the present invention. Compared with the song splicing apparatus shown in FIG. 6, the song splicing apparatus shown in FIG. 8 may further include a selecting unit 801 and a control unit 802, as follows:
  • the selecting unit 801 is configured to select a decoder corresponding to the N song audio files.
  • the selection unit 801 selects a decoder corresponding to the N song audio files, wherein the corresponding decoder can be selected according to the format of the N song audio files.
  • the control unit 802 is configured to control the decoder to perform a decoding operation on the N song audio files to obtain decoded audio data.
  • control unit 803 controls the decoder to perform a decoding operation on the N song audio files to obtain decoded audio data.
  • the control decoder performs a decoding operation on the N song audio files to obtain decoded audio data as a sentence segment.
  • the selecting unit 801 selects a decoder corresponding to the N song audio files; the control unit 802 controls the decoder to perform a decoding operation on the N song audio files to obtain decoded audio data.
  • the decoding operation of the song audio file can be performed by using the embodiment of the present invention to obtain decoded audio data.
  • FIG. 9 is a schematic structural diagram of a fifth embodiment of a song splicing apparatus according to an embodiment of the present invention.
  • the unit of the song splicing device shown in FIG. 5 may further include a locking unit 503 and a processing unit 504, as follows:
  • the locking unit 503 is configured to lock a splicing position of the spliced song audio file.
  • the locking unit 503 locks the stitching position of the stitched song audio file.
  • the splicing marks cannot be displayed, and the splicing position needs to be locked and processed.
  • the processing unit 504 is configured to process the stitching position of the stitched song audio file to obtain a seamless stitching song audio file.
  • the processing unit 504 processes the stitching position of the stitched song to obtain a seamless stitching song audio file.
  • the processing may include, but is not limited to, performing tune adjustment on the stitching position of the stitched song audio file, inserting a tunes with similar degrees of change, and smoothing the stitching position with a large change range.
  • the locking unit 503 locks the splicing position of the song audio file; the processing unit 504 processes the splicing position of the spliced song audio file to obtain a seamless spliced song audio file.
  • the song audio file can be processed by using the embodiment of the invention to obtain a seamlessly stitched song audio file.
  • FIG. 10 is a schematic structural diagram of a sixth embodiment of a song splicing apparatus according to an embodiment of the present invention.
  • the song splicing apparatus described in this embodiment includes: at least one input device 1000; at least one output device 2000; at least one processor 3000, such as a CPU; and a memory 4000, the input device 1000, the output device 2000, the processor 3000, and The memory 4000 is connected by a bus 5000.
  • the input device 1000 can be a touch panel, a general PC, a liquid crystal screen, a touch screen, or the like.
  • the above memory 4000 may be a high speed RAM memory or a non-volatile memory such as a disk memory.
  • the above memory 4000 is used to store a set of program codes, and the input device 1000, the output device 2000, and the processor 3000 are used to call the program code stored in the memory 4000, and perform the following operations:
  • the processor 3000 is configured to acquire N song audio files, where N is an integer greater than or equal to 1;
  • the song audio file includes at least one of the following song audio files:
  • the processor 3000 is further configured to:
  • the above processor 3000 is also used to:
  • the control decoding parameters of the decoding operation are set.
  • the above processor 3000 is also used to:
  • the above processor 3000 is also used to:
  • the stitching position of the stitched song audio file is processed to obtain a seamless stitching song.
  • the foregoing processor 3000 is further configured to:
  • the decoded audio data in the buffer queue is spliced in a preset order to obtain a spliced song audio file.
  • the processor 3000 is further configured to:
  • the decoder is controlled to perform a decoding operation on the N song audio files to obtain decoded audio data.
  • the input device 1000, the output device 2000, and the processor 3000 described in the embodiments of the present invention may implement the song splicing device provided by the embodiment of the present invention, and implement the song splicing algorithm implementation manner as described in FIG. 1 to FIG.
  • the implementation of the song splicing device described in FIG. 5 to FIG. 9 provided by the embodiment of the present invention may also be implemented, and details are not described herein again.
  • modules or sub-modules in all the embodiments of the present invention may be implemented by a general-purpose integrated circuit, such as a CPU (Central Processing Unit), or an ASIC (Application Specific Integrated Circuit).
  • a general-purpose integrated circuit such as a CPU (Central Processing Unit), or an ASIC (Application Specific Integrated Circuit).
  • the units in the song splicing device of the embodiment of the present invention can be combined, divided, and deleted according to actual needs.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management Or Editing Of Information On Record Carriers (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

A song splicing algorithm, comprising: acquiring N song audio frequency files (S101), N being an integer greater than or equal to 1; according to a preset order, splicing the N song audio frequency files in order to obtain a spliced song audio frequency file (S102). Also provided is a song splicing apparatus. A decoding operation can be performed on song audio frequency files to acquire decoded audio frequency data, and said decoded audio frequency data is spliced to obtain a spliced song audio frequency file.

Description

一种歌曲拼接算法及装置Song stitching algorithm and device 技术领域Technical field
本发明实施例涉及音频处理技术领域,尤其涉及一种歌曲拼接算法及装置。The embodiments of the present invention relate to the field of audio processing technologies, and in particular, to a song splicing algorithm and apparatus.
背景技术Background technique
随着移动互联网技术的快速发展,歌曲拼接装置(如手机、平板电脑、touch)及专用播放机等对音乐的追求也越来越来。目前来看,现有技术中对音乐的功能播放仅限于提高自身的音质处理,如通过装置或者专用播放机中自带的处理软件对劣质音频文件进行适当处理,以提高播放质量;或者,对音频文件本身的质量要求较高,往往正版音频文件能播出较好的效果,而对音频文件的局部处理,如切割技术、提取技术研究较少。With the rapid development of mobile Internet technology, the pursuit of music by song splicing devices (such as mobile phones, tablets, touch) and dedicated players has become more and more popular. At present, the function playback of music in the prior art is limited to improving its own sound quality processing, such as processing the inferior audio file by the processing software provided in the device or the dedicated player to improve the playback quality; or, The quality of the audio file itself is relatively high, and often the genuine audio file can broadcast a good effect, while the local processing of the audio file, such as cutting technology and extraction technology, is less studied.
现有技术中,对歌曲的剪切主要依赖于网络软件,而这些软件往往需要人工手工操作,不能精确定位每一句歌词的确切位置。In the prior art, the cutting of songs mainly relies on network software, and these softwares often require manual manual operations, and cannot accurately locate the exact position of each lyric.
发明内容Summary of the invention
本发明实施例提供了一种歌曲拼接算法及装置,可对歌曲音频文件进行解码操作,对解码数据进行拼接,具有较高拼接效率。The embodiment of the invention provides a song splicing algorithm and device, which can perform decoding operations on song audio files and splicing the decoded data, and has high splicing efficiency.
本发明实施例第一方面提供了一种歌曲拼接算法,包括:A first aspect of the embodiments of the present invention provides a song splicing algorithm, including:
获取N个歌曲音频文件,其中,N为大于或等于1的整数;Obtaining N song audio files, where N is an integer greater than or equal to 1;
按照预设顺序将所述N个歌曲音频文件进行拼接,以得到拼接歌曲音频文件。The N song audio files are stitched in a preset order to obtain a stitched song audio file.
本发明实施例第二方面提供了一种歌曲拼接装置,包括:A second aspect of the embodiments of the present invention provides a song splicing apparatus, including:
获取单元,用于获取N个歌曲音频文件,其中,N为大于或等于1的整An acquiring unit, configured to acquire N song audio files, where N is greater than or equal to 1
数;number;
拼接单元,用于按照预设顺序将所述N个歌曲音频文件进行拼接,以得到拼接歌曲音频文件。a splicing unit, configured to splicing the N song audio files in a preset order to obtain a spliced song audio file.
本发明实施例获取N个歌曲音频文件,其中,N为大于或等于1的整数; 按照预设顺序将所述N个歌曲音频文件进行拼接,以得到拼接歌曲音频文件。采用本发明实施例可对歌曲音频文件进行解码操作,以获取解码音频数据,对解码音频数据进行拼接,得到拼接歌曲音频文件。The embodiment of the present invention obtains N song audio files, where N is an integer greater than or equal to 1; The N song audio files are stitched in a preset order to obtain a stitched song audio file. The decoding operation of the song audio file can be performed by using the embodiment of the present invention to obtain decoded audio data, and the decoded audio data is spliced to obtain a spliced song audio file.
附图说明DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any inventive labor.
图1为本发明实施例提供的一种歌曲拼接算法的第一实施例流程示意图;FIG. 1 is a schematic flowchart diagram of a first embodiment of a song splicing algorithm according to an embodiment of the present disclosure;
图2为本发明实施例提供的一种歌曲拼接算法的第二实施例流程示意图;FIG. 2 is a schematic flowchart diagram of a second embodiment of a song splicing algorithm according to an embodiment of the present disclosure;
图3为本发明实施例提供的一种歌曲拼接算法的第三实施例流程示意图;FIG. 3 is a schematic flowchart diagram of a third embodiment of a song splicing algorithm according to an embodiment of the present disclosure;
图4为本发明实施例提供的一种歌曲拼接算法的第四实施例流程示意图;FIG. 4 is a schematic flowchart diagram of a fourth embodiment of a song splicing algorithm according to an embodiment of the present disclosure;
图5为本发明实施例提供的一种歌曲拼接装置的第一实施例结构示意图;FIG. 5 is a schematic structural diagram of a first embodiment of a song splicing apparatus according to an embodiment of the present disclosure;
图6为本发明实施例提供的一种歌曲拼接装置的第二实施例结构示意图;FIG. 6 is a schematic structural diagram of a second embodiment of a song splicing apparatus according to an embodiment of the present disclosure;
图7为本发明实施例提供的一种歌曲拼接装置的第三实施例结构示意图;FIG. 7 is a schematic structural diagram of a third embodiment of a song splicing apparatus according to an embodiment of the present disclosure;
图8为本发明实施例提供的一种歌曲拼接装置的第四实施例结构示意图;FIG. 8 is a schematic structural diagram of a fourth embodiment of a song splicing apparatus according to an embodiment of the present disclosure;
图9为本发明实施例提供的一种歌曲拼接装置的第五实施例结构示意图;FIG. 9 is a schematic structural diagram of a fifth embodiment of a song splicing apparatus according to an embodiment of the present disclosure;
图10为本发明实施例提供的一种歌曲拼接装置的第六实施例结构示意图。FIG. 10 is a schematic structural diagram of a sixth embodiment of a song splicing apparatus according to an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明实施例一部分实施例,而不是全部的实施例。基于本发明实施例中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明实施例保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments. . All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without departing from the inventive scope are the scope of the embodiments of the present invention.
实现中,本发明实施例中,装置可以包括但不限于:笔记本电脑、手机、平板电脑、智能可穿戴设备、播放机、MP3、MP4、智能电视、机顶盒、服务 器等等。歌曲拼接装置的系统指歌曲拼接装置的操作系统,可以包括但不限于:Android系统、塞班系统、Windows系统、IOS(苹果公司开发的移动操作系统)系统等等。需要说明的是,Android装置指Android系统的装置,塞班装置指塞班系统的装置,等等。上述装置仅是举例,而非穷举,包含但不限于上述装置。In an implementation, in the 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, an MP3, an MP4, a smart TV, a set top box, and a service. And so on. The system of the song splicing device refers to the operating system of the song splicing device, and may include, but is not limited to, an Android system, a Symbian system, a Windows system, an IOS (Mobile Operating System developed by Apple) system, and the like. It should be noted that the Android device refers to the device of the Android system, the Saipan device refers to the device of the Saipan system, and the like. The above apparatus is by way of example only and not limitation, and is not limited to the above apparatus.
实现中,本发明实施例中,歌曲可以包括但不限于:中文歌曲、英文歌曲、俄文歌曲、西班牙歌曲、古典歌曲、流行音乐歌曲、摇滚音乐歌曲、轻音乐歌曲、说唱歌曲、清唱歌曲、视频中的歌曲等等。上述歌曲仅是举例,而非穷举,包含但不限于上述歌曲。In the implementation, in the embodiment of the present invention, the 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, songs, songs, videos. The songs and so on. The above songs are by way of example only and not exhaustive, including but not limited to the above-mentioned 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 the like. The format of the above songs is merely an example, not an exhaustive one, including but not limited to the format of the above songs.
结合图1至图10对本发明实施例提供的一种歌曲拼接算法及装置进行描述。A song stitching algorithm and apparatus according to an embodiment of the present invention will be described with reference to FIG. 1 to FIG.
请参阅图1,图1是本发明实施例提供的一种歌曲拼接算法的第一实施例流程示意图。本实施例中所描述的歌曲拼接算法的方法,包括步骤:Referring to FIG. 1, FIG. 1 is a schematic flowchart diagram of a first embodiment of a song splicing algorithm according to an embodiment of the present invention. The method for stitching a song according to the embodiment includes the following steps:
S101、获取N个歌曲音频文件,其中,N为大于或等于1的整数。S101. Acquire N song audio files, where N is an integer greater than or equal to 1.
具体地,获取N个歌曲音频文件,可通过程序读取N个歌曲音频文件,或者可通过系统设置N个歌曲音频文件。Specifically, N song audio files are acquired, N song audio files can be read by a program, or N song audio files can be set by a system.
作为一种可能的实施方式,歌曲音频文件可包括但不仅限于:MP3歌曲音频文件、WAV歌曲音频文件、WMV歌曲音频文件和CD歌曲音频文件。As a possible implementation manner, the song audio file may include, but is not limited to, an MP3 song audio file, a WAV song audio file, a WMV song audio file, and a CD song audio file.
S102、按照预设顺序将所述N个歌曲音频文件进行拼接,以得到拼接歌曲音频文件。S102. Splicing the N song audio files in a preset order to obtain a stitched song audio file.
具体地,按照预设顺序将N个歌曲音频文件进行拼接,以得到拼接歌曲音频文件。其中,预设顺序可为时间先后顺序,或者用于自己定义的拼接顺序。Specifically, the N song audio files are stitched in a preset order to obtain a stitched song audio file. The preset order may be chronological or used for the splicing order defined by itself.
本发明实施例获取N个歌曲音频文件,其中,N为大于或等于1的整数;按照预设顺序将所述N个歌曲音频文件进行拼接,以得到拼接歌曲音频文件。采用本发明实施例可对歌曲音频文件进行解码操作,以获取解码音频数据,对解码音频数据进行拼接,得到拼接歌曲音频文件。 In the embodiment of the present invention, N song audio files are obtained, where N is an integer greater than or equal to 1; the N song audio files are spliced in a preset order to obtain a stitched song audio file. The decoding operation of the song audio file can be performed by using the embodiment of the present invention to obtain decoded audio data, and the decoded audio data is spliced to obtain a spliced song audio file.
请参阅图2,图2是本发明实施例提供的一种歌曲拼接算法的第二实施例流程示意图,图2为图1中步骤S102的具体细化。本实施例中所描述的歌曲拼接算法,包括步骤:Referring to FIG. 2, FIG. 2 is a schematic flowchart diagram of a second embodiment of a song splicing algorithm according to an embodiment of the present invention, and FIG. 2 is a specific refinement of step S102 in FIG. The song stitching algorithm described in this embodiment includes the following steps:
S201、获取所述N个歌曲音频文件的起始位置。S201. Acquire a starting position of the N song audio files.
具体地,获取N个歌曲音频文件的起始位置,可对N个歌曲音频文件进行分析,将其第一个片段出现的位置定义为歌曲音频文件的起始位置,或者,将N个歌曲音频文件的头文件定义为歌曲音频文件的起始位置。Specifically, the start position of the N song audio files is acquired, and the N song audio files can be analyzed, the position where the first clip appears is defined as the start position of the song audio file, or N song audio is The header file of the file is defined as the starting position of the song audio file.
S202、根据所述N个歌曲音频文件的起始位置对所述N个歌曲音频文件进行解码操作以得到解码音频数据。S202. Perform a decoding operation on the N song audio files according to a starting position of the N song audio files to obtain decoded audio data.
具体地,根据N个歌曲音频文件的起始位置对N个歌曲音频文件进行解码操作以得到解码音频数据。其中,根据N个歌曲音频文件的起始位置对N个歌曲音频文件进行解码,解码得到解码音频数据,基于该解码音频数据可将歌曲分成一句一句的片段。Specifically, the N song audio files are subjected to a decoding operation according to the start position of the N song audio files to obtain decoded audio data. Wherein, the N song audio files are decoded according to the starting position of the N song audio files, and the decoded audio data is decoded, and the song can be divided into segments of one sentence based on the decoded audio data.
S203、将所述解码音频数据送至缓存队列。S203. Send the decoded audio data to a buffer queue.
具体地,将解码音频数据送至缓存队列,可按照解码的时间先后顺序将解码音频数据送至缓存队列。Specifically, the decoded audio data is sent to the buffer queue, and the decoded audio data can be sent to the buffer queue according to the chronological order of decoding.
S204、将所述缓存队列中的解码音频数据按照预设顺序进行拼接,以获取拼接歌曲音频文件。S204. The decoded audio data in the buffer queue is spliced in a preset order to obtain a spliced song audio file.
具体地,将缓存队列中的解码音频数据按照预设顺序进行拼接,以获取拼接歌曲音频文件。其中,预设顺序可包括但不仅限于:时间先后顺序、随机顺序、用户自己设置的顺序等等。Specifically, the decoded audio data in the buffer queue is spliced in a preset order to obtain a spliced song audio file. The preset order may include, but is not limited to, chronological order, random order, order set by the user, and the like.
作为一种可能的实施方式,所述获取所述N个歌曲音频文件之前,可设置所述解码操作的控制解码参数。其中,解码参数可包括但不仅限于:解码类型、解码速度、解码方式等等。As a possible implementation manner, before the acquiring the N song audio files, the control decoding parameters of the decoding operation may be set. The decoding parameters may include, but are not limited to, a decoding type, a decoding speed, a decoding manner, and the like.
作为一种可能的实施方式,以分析开始两首歌曲音频文件为例,假如使用DSP解码器,可设置DSP解码参数,后台线程将文件中的原始音频数据的起始位置找到,DSP开始解码,后台线程将解码音频数据送音频数据到缓存队列,再从缓存队列送出至DSP解码输出声音。当将第一首歌曲音频文件的音频数 据全部读到缓存队列中,就找到第二首歌曲音频文件的音频数据的起始位置。将该位置音频数据直接在前面一首歌曲音频文件的音频数据(结尾帧frame)后面送入缓冲队列(buffer)中,再将buffer中的数据顺序送到DSP解码,这样就能保证两首歌曲的音频数据是连续顺序进入DSP解码的。通常情况下,读取USB设备的速度要快于解码播放的速度,但第一首歌曲还有20秒的数据要解码播放的时候,第一首歌曲的音频数据就已经完成缓存了,这时解析第二首歌曲,并开始将第二首数据音频数据缓存,对用户来说完全连续解码。As a possible implementation manner, taking the analysis of two song audio files as an example, if a DSP decoder is used, the DSP decoding parameters can be set, the background thread finds the starting position of the original audio data in the file, and the DSP starts decoding. The background thread will decode the audio data to send the audio data to the buffer queue, and then send it out from the buffer queue to the DSP to decode the output sound. When the audio number of the first song audio file According to all reading into the cache queue, the starting position of the audio data of the second song audio file is found. The audio data of the position is directly sent to the buffer buffer (bucket) after the audio data (end frame frame) of the previous song audio file, and the data in the buffer is sequentially sent to the DSP for decoding, so that two songs can be guaranteed. The audio data is sequentially decoded into the DSP. Normally, the speed of reading a USB device is faster than the speed of decoding playback. However, when the first song has 20 seconds of data to be decoded, the audio data of the first song is already buffered. Parsing the second song and starting to buffer the second data audio data, completely continuous decoding for the user.
本发明实施例获取所述N个歌曲音频文件的起始位置;根据所述N个歌曲音频文件的起始位置对所述N个歌曲音频文件进行解码操作以得到解码音频数据;将所述解码音频数据送至缓存队列;将所述缓存队列中的解码音频数据按照预设顺序进行拼接,以得到拼接歌曲音频文件。采用本发明实施例可对歌曲音频文件进行解码操作,以获取解码音频数据,对解码音频数据进行拼接,得到拼接歌曲音频文件。Obtaining a starting position of the N song audio files according to an embodiment of the present invention; performing decoding operations on the N song audio files according to a starting position of the N song audio files to obtain decoded audio data; The audio data is sent to the buffer queue; the decoded audio data in the buffer queue is spliced in a preset order to obtain a stitched song audio file. The decoding operation of the song audio file can be performed by using the embodiment of the present invention to obtain decoded audio data, and the decoded audio data is spliced to obtain a spliced song audio file.
请参阅图3,图3是本发明实施例提供的一种歌曲拼接算法的第三实施例流程示意图,图3是图2中步骤S202的具体细化,包括步骤:Referring to FIG. 3, FIG. 3 is a schematic flowchart diagram of a third embodiment of a song splicing algorithm according to an embodiment of the present invention, and FIG. 3 is a specific refinement of step S202 in FIG.
S301、选择与所述N个歌曲音频文件对应的解码器。S301. Select a decoder corresponding to the N song audio files.
具体地,选择与N个歌曲音频文件对应的解码器,其中,可依据N个歌曲音频文件的格式选择对应的解码器。Specifically, a decoder corresponding to the N song audio files is selected, wherein the corresponding decoder can be selected according to the format of the N song audio files.
S302、控制所述解码器对所述N个歌曲音频文件进行解码操作,以得到解码音频数据。S302. Control the decoder to perform a decoding operation on the N song audio files to obtain decoded audio data.
具体地,控制解码器对N个歌曲音频文件进行解码操作,以得到解码音频数据。控制解码器对N个歌曲音频文件进行解码操作,得到解码音频数据可为语句片段数据。Specifically, the control decoder performs a decoding operation on the N song audio files to obtain decoded audio data. The control decoder performs a decoding operation on the N song audio files, and the obtained decoded audio data may be sentence segment data.
本发明实施例选择与所述N个歌曲音频文件对应的解码器;控制所述解码器对所述N个歌曲音频文件进行解码操作,以得到解码音频数据。采用本发明实施例可对歌曲音频文件进行解码操作,得到解码音频数据。The embodiment of the present invention selects a decoder corresponding to the N song audio files; and controls the decoder to perform a decoding operation on the N song audio files to obtain decoded audio data. The decoding operation of the song audio file can be performed by using the embodiment of the present invention to obtain decoded audio data.
请参阅图4,图4是本发明实施例提供的一种歌曲拼接算法的第四实施例 流程示意图,包括步骤:Referring to FIG. 4, FIG. 4 is a fourth embodiment of a song stitching algorithm according to an embodiment of the present invention. Process diagram, including steps:
S401、获取N个歌曲音频文件,其中,N为大于或等于1的整数。S401. Acquire N song audio files, where N is an integer greater than or equal to 1.
具体地,获取N个歌曲音频文件,可通过程序读取N个歌曲音频文件,或者可通过系统设置N个歌曲音频文件。Specifically, N song audio files are acquired, N song audio files can be read by a program, or N song audio files can be set by a system.
作为一种可能的实施方式,歌曲音频文件可包括但不仅限于:MP3歌曲音频文件、WAV歌曲音频文件、WMV歌曲音频文件和CD歌曲音频文件。As a possible implementation manner, the song audio file may include, but is not limited to, an MP3 song audio file, a WAV song audio file, a WMV song audio file, and a CD song audio file.
S402、按照预设顺序将所述N个歌曲音频文件进行拼接,以得到拼接歌曲音频文件。S402. Splicing the N song audio files in a preset order to obtain a stitched song audio file.
具体地,按照预设顺序将N个歌曲音频文件进行拼接,以得到拼接歌曲音频文件。其中,预设顺序可为时间先后顺序,或者用于自己定义的拼接顺序。Specifically, the N song audio files are stitched in a preset order to obtain a stitched song audio file. The preset order may be chronological or used for the splicing order defined by itself.
S403、锁定所述拼接歌曲的拼接位置。S403. Lock a stitching position of the stitched song.
具体地,锁定拼接歌曲音频文件的拼接位置。为了实现无缝拼接,因此,不能显示出拼接的痕迹,需要锁定拼接位置,对其进行预处理。Specifically, the stitching position of the stitched song audio file is locked. In order to achieve seamless splicing, the splicing marks cannot be displayed, and the splicing position needs to be locked and pre-processed.
S404、将所述拼接歌曲音频文件的拼接位置进行处理,以得到无缝拼接歌曲音频文件。S404. Process the stitching position of the stitched song audio file to obtain a seamless stitching song audio file.
具体地,将拼接歌曲的拼接位置进行处理,以得到无缝拼接歌曲音频文件。其中,处理可包括但不仅限于:对拼接歌曲的拼接位置进行曲调调整、插入变化程度相似的曲调、对变化幅度较大的拼接位置进行平滑处理。Specifically, the stitching position of the stitched song is processed to obtain a seamless stitching song audio file. The processing may include, but is not limited to, performing tune adjustment on the stitching position of the stitched song, inserting a tunes with similar degrees of change, and smoothing the stitching position with a large change range.
本发明实施例锁定所述拼接歌曲的拼接位置;将所述拼接歌曲的拼接位置进行处理,以获取无缝拼接歌曲音频文件。采用本发明实施例可对拼接歌曲音频文件进行处理,以得到无缝拼接歌曲音频文件。The embodiment of the invention locks the splicing position of the spliced song; and processes the splicing position of the spliced song to obtain a seamless spliced song audio file. The stitched song audio file can be processed by using the embodiment of the invention to obtain a seamless stitching song audio file.
请参阅图5,图5是本发明实施例提供的一种歌曲拼接装置的第一实施例结构示意图,其中,图5所示的歌曲拼接装置可以包括获取单元501与拼接单元502。Referring to FIG. 5, FIG. 5 is a schematic structural diagram of a first embodiment of a song splicing apparatus according to an embodiment of the present invention. The song splicing apparatus shown in FIG. 5 may include an obtaining unit 501 and a splicing unit 502.
获取单元501,用于获取N个歌曲音频文件,其中,N为大于或等于1的整数。The obtaining unit 501 is configured to acquire N song audio files, where N is an integer greater than or equal to 1.
具体地,获取单元501获取N个歌曲音频文件,可通过程序读取N个歌曲音频文件,或者可通过系统设置N个歌曲音频文件。 Specifically, the obtaining unit 501 acquires N song audio files, can read N song audio files by a program, or can set N song audio files through a system.
作为一种可能的实施方式,歌曲音频文件可包括但不仅限于:MP3歌曲音频文件、WAV歌曲音频文件、WMV歌曲音频文件和CD歌曲音频文件。As a possible implementation manner, the song audio file may include, but is not limited to, an MP3 song audio file, a WAV song audio file, a WMV song audio file, and a CD song audio file.
拼接单元502,用于按照预设顺序将所述N个歌曲音频文件进行拼接,以得到拼接歌曲音频文件。The splicing unit 502 is configured to splicing the N song audio files in a preset order to obtain a spliced song audio file.
具体地,拼接单元502按照预设顺序将N个歌曲音频文件进行拼接,以得到拼接歌曲音频文件。其中,预设顺序可为时间先后顺序,或者用于自己定义的拼接顺序。Specifically, the splicing unit 502 splices the N song audio files in a preset order to obtain a spliced song audio file. The preset order may be chronological or used for the splicing order defined by itself.
本发明实施例获取单元501获取N个歌曲音频文件,其中,N为大于或等于1的整数;拼接单元502按照预设顺序将所述N个歌曲音频文件进行拼接,以得到拼接歌曲音频文件。采用本发明实施例可对歌曲音频文件进行解码操作,以获取解码音频数据,对解码音频数据进行拼接,得到拼接歌曲音频文件。In the embodiment of the present invention, the obtaining unit 501 acquires N song audio files, where N is an integer greater than or equal to 1; the splicing unit 502 splices the N song audio files in a preset order to obtain a spliced song audio file. The decoding operation of the song audio file can be performed by using the embodiment of the present invention to obtain decoded audio data, and the decoded audio data is spliced to obtain a spliced song audio file.
请参阅图6,图6是本发明实施例提供的一种歌曲拼接装置的第二实施例结构示意图,其中,图5所示的歌曲拼接装置中的拼接单元502,可包括:确定单元601、解码单元602、发送单元603和拼接子单元604,具体如下:Referring to FIG. 6 , FIG. 6 is a schematic structural diagram of a second embodiment of a song splicing apparatus according to an embodiment of the present invention. The splicing unit 502 in the song splicing apparatus shown in FIG. 5 may include: a determining unit 601, The decoding unit 602, the sending unit 603, and the splicing subunit 604 are as follows:
确定单元601,获取所述N个歌曲音频文件的起始位置。The determining unit 601 acquires a starting position of the N song audio files.
具体地,确定单元601获取待拼接歌曲音频文件的起始位置,可对N个歌曲音频文件进行分析,可将其第一个片段出现的位置定义为歌曲音频文件的起始位置,或者,可将N个歌曲音频文件的头文件定义为N个歌曲音频文件的起始位置。Specifically, the determining unit 601 obtains a starting position of the audio file of the song to be spliced, and analyzes the N song audio files, and defines a position where the first fragment appears as a starting position of the song audio file, or The header file of the N song audio files is defined as the starting position of the N song audio files.
解码单元602,用于根据所述N个歌曲音频文件的起始位置对所述N个歌曲音频文件进行解码操作,以得到解码音频数据。The decoding unit 602 is configured to perform a decoding operation on the N song audio files according to a starting position of the N song audio files to obtain decoded audio data.
具体地,解码单元602根据N个歌曲音频文件的起始位置对N个歌曲音频文件进行解码操作,以得到解码音频数据。其中,根据N个歌曲音频文件的起始位置对N个歌曲音频文件进行解码,解码得到解码音频数据,基于该解码音频数据可将歌曲分成一句一句的语句片段。Specifically, the decoding unit 602 performs a decoding operation on the N song audio files according to the start position of the N song audio files to obtain decoded audio data. Wherein, the N song audio files are decoded according to the starting position of the N song audio files, and the decoded audio data is decoded, and the song can be divided into sentence sentences by one sentence based on the decoded audio data.
发送单元603,用于将所述解码音频数据送至缓存队列。The sending unit 603 is configured to send the decoded audio data to a buffer queue.
具体地,发送单元603将解码音频数据送至缓存队列,可按照解码的时间先后顺序将解码音频数据送至缓存队列。 Specifically, the sending unit 603 sends the decoded audio data to the buffer queue, and the decoded audio data may be sent to the buffer queue in the chronological order of decoding.
拼接子单元604,用于将所述缓存队列中的解码音频数据按照预设顺序进行拼接,以得到拼接歌曲。The splicing sub-unit 604 is configured to splicing the decoded audio data in the buffer queue in a preset order to obtain a spliced song.
具体地,拼接子单元604将缓存队列中的解码音频数据按照预设顺序进行拼接,以得到拼接歌曲音频文件。其中,预设顺序可包括但不仅限于:时间先后顺序、随机顺序、用户自己设置的顺序等等。Specifically, the splicing sub-unit 604 splices the decoded audio data in the buffer queue in a preset order to obtain a spliced song audio file. The preset order may include, but is not limited to, chronological order, random order, order set by the user, and the like.
本发明实施例获取单元501获取N个歌曲音频文件,其中,N为大于或等于1的整数;拼接单元502按照预设顺序将所述N个歌曲音频文件进行拼接,以得到拼接歌曲音频文件。采用本发明实施例可对歌曲音频文件进行解码操作,以获取解码音频数据,对解码音频数据进行拼接,得到拼接歌曲音频文件。In the embodiment of the present invention, the obtaining unit 501 acquires N song audio files, where N is an integer greater than or equal to 1; the splicing unit 502 splices the N song audio files in a preset order to obtain a spliced song audio file. The decoding operation of the song audio file can be performed by using the embodiment of the present invention to obtain decoded audio data, and the decoded audio data is spliced to obtain a spliced song audio file.
作为一种可能的实施方式,如图7所示,图7是本发明实施例提供的一种歌曲拼接装置的第三实施例结构示意图,与图5所示的歌曲拼接装置相比较,图5所示的歌曲拼接装置除包括图5所示的歌曲拼接装置的单元外,还可以包括设置单元503。As shown in FIG. 7, FIG. 7 is a schematic structural diagram of a third embodiment of a song splicing apparatus according to an embodiment of the present invention. Compared with the song splicing apparatus shown in FIG. 5, FIG. The illustrated song splicing apparatus may further include a setting unit 503 in addition to the unit of the song splicing apparatus shown in FIG. 5.
设置单元503,用于所述获取单元501获取所述N个歌曲音频文件之前,设置所述解码操作的控制解码参数。The setting unit 503 is configured to set a control decoding parameter of the decoding operation before the acquiring unit 501 acquires the N song audio files.
本发明实施例中,可设置控制解码参数,其中,解码参数可包括但不仅限于:解码类型、解码速度、解码方式等等。In this embodiment of the present invention, control decoding parameters may be set, where the decoding parameters may include, but are not limited to, a decoding type, a decoding speed, a decoding manner, and the like.
作为一种可能的实施方式,以分析开始两首歌曲为例,假如使用DSP解码器,可设置DSP解码参数,后台线程将文件中的原始音频数据的起始位置找到,DSP开始解码,后台线程将解码音频数据送音频数据到缓存队列,再从缓存队列送出至DSP解码输出声音。当将第一首歌曲的音频数据全部读到缓存队列中,就找到第二首歌曲的音频数据的起始位置。将该位置音频数据直接在前面一首歌曲的音频数据(结尾帧frame)后面送入缓冲队列(buffer)中,再将buffer中的数据顺序送到DSP解码,这样就能保证两首歌曲的音频数据是连续顺序进入DSP解码的。通常情况下,读取USB设备的速度要快于解码播放的速度,但第一首歌曲还有20秒的数据要解码播放的时候,第一首歌曲的音频数据就已经完成缓存了,这时解析第二首歌曲,并开始将第二首数据音频 数据缓存,对用户来说完全连续解码。As a possible implementation manner, taking the analysis of two songs as an example, if a DSP decoder is used, the DSP decoding parameters can be set, the background thread finds the starting position of the original audio data in the file, and the DSP starts decoding, the background thread. The decoded audio data is sent to the buffer queue, and then sent out from the buffer queue to the DSP to decode the output sound. When the audio data of the first song is all read into the buffer queue, the starting position of the audio data of the second song is found. The audio data of the position is directly sent to the buffer buffer (buffer) after the audio data (the end frame frame) of the previous song, and the data in the buffer is sequentially sent to the DSP for decoding, so that the audio of the two songs can be guaranteed. The data is serially entered into the DSP for decoding. Normally, the speed of reading a USB device is faster than the speed of decoding playback. However, when the first song has 20 seconds of data to be decoded, the audio data of the first song is already buffered. Parse the second song and start the second data audio Data caching, completely continuous decoding for the user.
本发明实施例设置单元503,用于所述获取单元501获取所述N个歌曲音频文件之前,设置所述解码操作的控制解码参数;获取单元501获取N个歌曲音频文件,其中,N为大于或等于1的整数;拼接单元502按照预设顺序将所述N个歌曲音频文件进行拼接,以得到拼接歌曲音频文件。采用本发明实施例可对歌曲音频文件进行解码操作,以获取解码音频数据,对解码音频数据进行拼接,得到拼接歌曲音频文件。The setting unit 503 is configured to: before the acquiring unit 501 acquires the N song audio files, set a control decoding parameter of the decoding operation; the acquiring unit 501 acquires N song audio files, where N is greater than Or an integer equal to 1; the splicing unit 502 splices the N song audio files in a preset order to obtain a spliced song audio file. The decoding operation of the song audio file can be performed by using the embodiment of the present invention to obtain decoded audio data, and the decoded audio data is spliced to obtain a spliced song audio file.
请参阅图8,图8是本发明实施例提供的一种歌曲拼接装置的第四实施例结构示意图,与图6所示的歌曲拼接装置相比较,图8所示的歌曲拼接装置除包括图6所示的歌曲拼接装置的单元外,图8所示的歌曲拼接装置的解码单元602还可以包括选择单元801和控制单元802,具体如下:Please refer to FIG. 8. FIG. 8 is a schematic structural diagram of a fourth embodiment of a song splicing apparatus according to an embodiment of the present invention. Compared with the song splicing apparatus shown in FIG. 6, the song splicing apparatus shown in FIG. The decoding unit 602 of the song splicing device shown in FIG. 8 may further include a selecting unit 801 and a control unit 802, as follows:
选择单元801,用于选择与所述N个歌曲音频文件对应的解码器。The selecting unit 801 is configured to select a decoder corresponding to the N song audio files.
具体地,选择单元801选择与N个歌曲音频文件对应的解码器,其中,可依据N个歌曲音频文件的格式选择对应的解码器。Specifically, the selection unit 801 selects a decoder corresponding to the N song audio files, wherein the corresponding decoder can be selected according to the format of the N song audio files.
控制单元802,用于控制所述解码器对所述N个歌曲音频文件进行解码操作,以得到解码音频数据。The control unit 802 is configured to control the decoder to perform a decoding operation on the N song audio files to obtain decoded audio data.
具体地,控制单元803控制解码器对N个歌曲音频文件进行解码操作,以得到解码音频数据。控制解码器对N个歌曲音频文件进行解码操作,得到解码音频数据为语句片段。Specifically, the control unit 803 controls the decoder to perform a decoding operation on the N song audio files to obtain decoded audio data. The control decoder performs a decoding operation on the N song audio files to obtain decoded audio data as a sentence segment.
本发明实施例选择单元801选择与所述N个歌曲音频文件对应的解码器;控制单元802控制所述解码器对所述N个歌曲音频文件进行解码操作,以得到解码音频数据。采用本发明实施例可对歌曲音频文件进行解码操作,得到解码音频数据。In the embodiment of the present invention, the selecting unit 801 selects a decoder corresponding to the N song audio files; the control unit 802 controls the decoder to perform a decoding operation on the N song audio files to obtain decoded audio data. The decoding operation of the song audio file can be performed by using the embodiment of the present invention to obtain decoded audio data.
请参阅图9,图9是本发明实施例提供的一种歌曲拼接装置的第五实施例结构示意图,与图5所示的歌曲拼接装置相比较,图9所示的歌曲拼接装置除包括图5所示的歌曲拼接装置的单元外,还可以包括锁定单元503、处理单元504,具体如下: Please refer to FIG. 9. FIG. 9 is a schematic structural diagram of a fifth embodiment of a song splicing apparatus according to an embodiment of the present invention. Compared with the song splicing apparatus shown in FIG. 5, the song splicing apparatus shown in FIG. The unit of the song splicing device shown in FIG. 5 may further include a locking unit 503 and a processing unit 504, as follows:
锁定单元503,用于锁定所述拼接歌曲音频文件的拼接位置。The locking unit 503 is configured to lock a splicing position of the spliced song audio file.
具体地,锁定单元503锁定拼接歌曲音频文件的拼接位置。为了实现无缝拼接,因此,不能显示出拼接的痕迹,需要锁定拼接位置,对其进行处理。Specifically, the locking unit 503 locks the stitching position of the stitched song audio file. In order to achieve seamless splicing, the splicing marks cannot be displayed, and the splicing position needs to be locked and processed.
处理单元504,用于将所述拼接歌曲音频文件的拼接位置进行处理,以获取无缝拼接歌曲音频文件。The processing unit 504 is configured to process the stitching position of the stitched song audio file to obtain a seamless stitching song audio file.
具体地,处理单元504将拼接歌曲的拼接位置进行处理,以获取无缝拼接歌曲音频文件。其中,处理可包括但不仅限于:对拼接歌曲音频文件的拼接位置进行曲调调整、插入变化程度相似的曲调、对变化幅度较大的拼接位置进行平滑处理。Specifically, the processing unit 504 processes the stitching position of the stitched song to obtain a seamless stitching song audio file. The processing may include, but is not limited to, performing tune adjustment on the stitching position of the stitched song audio file, inserting a tunes with similar degrees of change, and smoothing the stitching position with a large change range.
本发明实施例锁定单元503锁定所述歌曲音频文件的拼接位置;处理单元504将所述拼接歌曲音频文件的拼接位置进行处理,以获取无缝拼接歌曲音频文件。采用本发明实施例可对歌曲音频文件进行处理,以得到无缝拼接歌曲音频文件。In the embodiment of the present invention, the locking unit 503 locks the splicing position of the song audio file; the processing unit 504 processes the splicing position of the spliced song audio file to obtain a seamless spliced song audio file. The song audio file can be processed by using the embodiment of the invention to obtain a seamlessly stitched song audio file.
参见图10,图10为本发明实施例提供的一种歌曲拼接装置的第六实施例结构示意图。本实施例中所描述的歌曲拼接装置包括:至少一个输入设备1000;至少一个输出设备2000;至少一个处理器3000,例如CPU;和存储器4000,上述输入设备1000、输出设备2000、处理器3000和存储器4000通过总线5000连接。Referring to FIG. 10, FIG. 10 is a schematic structural diagram of a sixth embodiment of a song splicing apparatus according to an embodiment of the present invention. The song splicing apparatus described in this embodiment includes: at least one input device 1000; at least one output device 2000; at least one processor 3000, such as a CPU; and a memory 4000, the input device 1000, the output device 2000, the processor 3000, and The memory 4000 is connected by a bus 5000.
其中,上述输入设备1000可为触控面板、普通PC、液晶屏、触控屏等。The input device 1000 can be a touch panel, a general PC, a liquid crystal screen, a touch screen, or the like.
上述存储器4000可以是高速RAM存储器,也可为非不稳定的存储器(non-volatile memory),例如磁盘存储器。上述存储器4000用于存储一组程序代码,上述输入设备1000、输出设备2000和处理器3000用于调用存储器4000中存储的程序代码,执行如下操作:The above memory 4000 may be a high speed RAM memory or a non-volatile memory such as a disk memory. The above memory 4000 is used to store a set of program codes, and the input device 1000, the output device 2000, and the processor 3000 are used to call the program code stored in the memory 4000, and perform the following operations:
上述处理器3000,获取N个歌曲音频文件,其中,N为大于或等于1的整数;The processor 3000 is configured to acquire N song audio files, where N is an integer greater than or equal to 1;
作为一种可能的实施方式,歌曲音频文件包括如下歌曲音频文件中的至少一种:As a possible implementation manner, the song audio file includes at least one of the following song audio files:
MP3歌曲音频文件、WAV歌曲音频文件、WMV歌曲音频文件和CD歌 曲音频文件。MP3 song audio files, WAV song audio files, WMV song audio files and CD songs Music file.
上述处理器3000,还用于:The processor 3000 is further configured to:
按照预设顺序将所述N个歌曲音频文件进行拼接,以得到拼接歌曲音频文件;Splicing the N song audio files in a preset order to obtain a stitched song audio file;
上述处理器3000还用于:The above processor 3000 is also used to:
设置所述解码操作的控制解码参数。The control decoding parameters of the decoding operation are set.
上述处理器3000还用于:The above processor 3000 is also used to:
锁定所述拼接歌曲音频文件的拼接位置;Locking the stitching position of the stitched song audio file;
上述处理器3000还用于:The above processor 3000 is also used to:
将所述拼接歌曲音频文件的拼接位置进行处理,以得到无缝拼接歌曲。The stitching position of the stitched song audio file is processed to obtain a seamless stitching song.
作为一种可能的实施方式,上述处理器3000还用于:As a possible implementation manner, the foregoing processor 3000 is further configured to:
获取所述N个歌曲音频文件的起始位置;Obtaining a starting position of the N song audio files;
根据所述N个歌曲音频文件的起始位置对所述N个歌曲音频文件进行解码操作以得到解码音频数据;Decoding the N song audio files according to a starting position of the N song audio files to obtain decoded audio data;
将所述解码音频数据送至缓存队列;Sending the decoded audio data to a cache queue;
将所述缓存队列中的解码音频数据按照预设顺序进行拼接,以得到拼接歌曲音频文件。The decoded audio data in the buffer queue is spliced in a preset order to obtain a spliced song audio file.
在一些可行的实施方式中,上述处理器3000还用于:In some possible implementations, the processor 3000 is further configured to:
选择与所述N个歌曲音频文件对应的解码器;Selecting a decoder corresponding to the N song audio files;
控制所述解码器对所述N个歌曲音频文件进行解码操作,以得到解码音频数据。The decoder is controlled to perform a decoding operation on the N song audio files to obtain decoded audio data.
实现中,本发明实施例中所描述的输入设备1000、输出设备2000和处理器3000可执行本发明实施例提供的歌曲拼接装置可以实施如图1~图4中所描述的歌曲拼接算法实现方式,也可执行本发明实施例提供的图5~图9中所描述的歌曲拼接装置的实现方式,在此不再赘述。In an implementation, the input device 1000, the output device 2000, and the processor 3000 described in the embodiments of the present invention may implement the song splicing device provided by the embodiment of the present invention, and implement the song splicing algorithm implementation manner as described in FIG. 1 to FIG. The implementation of the song splicing device described in FIG. 5 to FIG. 9 provided by the embodiment of the present invention may also be implemented, and details are not described herein again.
本发明实施例所有实施例中的模块或子模块,可以通过通用集成电路,例如CPU(Central Processing Unit,中央处理器),或通过ASIC(Application Specific Integrated Circuit,专用集成电路)来实现。The modules or sub-modules in all the embodiments of the present invention may be implemented by a general-purpose integrated circuit, such as a CPU (Central Processing Unit), or an ASIC (Application Specific Integrated Circuit).
本发明实施例方法中的步骤可以根据实际需要进行顺序调整、合并和删 减。The steps in the method of the embodiment of the present invention may be sequentially adjusted, merged, and deleted according to actual needs. Less.
本发明实施例歌曲拼接装置中的单元可以根据实际需要进行合并、划分和删减。The units in the song splicing device of the embodiment of the present invention can be combined, divided, and deleted according to actual needs.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存取存储器(Random Access Memory,简称RAM)等。One of ordinary skill in the art can understand that all or part of the process of implementing the foregoing embodiments can be completed by a computer program to instruct related hardware, and the program can be stored in a computer readable storage medium. When executed, the flow of an embodiment of the methods as described above may be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
以上所揭露的仅为本发明实施例较佳实施例而已,当然不能以此来限定本发明实施例之权利范围,因此依本发明实施例权利要求所作的等同变化,仍属本发明实施例所涵盖的范围。 The above is only the preferred embodiment of the present invention, and the scope of the present invention is not limited thereto. Therefore, the equivalent changes according to the embodiments of the present invention are still in the embodiment of the present invention. The scope covered.

Claims (19)

  1. 一种歌曲拼接算法,其特征在于,包括:A song stitching algorithm, comprising:
    获取N个歌曲音频文件,其中,N为大于或等于1的整数;Obtaining N song audio files, where N is an integer greater than or equal to 1;
    按照预设顺序将所述N个歌曲音频文件进行拼接,以得到拼接歌曲音频文件。The N song audio files are stitched in a preset order to obtain a stitched song audio file.
  2. 如权利要求1所述的方法,其特征在于,所述按照预设顺序将所述N个歌曲音频文件进行拼接,以得到拼接歌曲音频文件,包括:The method of claim 1, wherein the splicing the N song audio files in a preset order to obtain a stitched song audio file comprises:
    获取所述N个歌曲音频文件的起始位置;Obtaining a starting position of the N song audio files;
    根据所述N个歌曲音频文件的起始位置对所述N个歌曲音频文件进行解码操作以得到解码音频数据;Decoding the N song audio files according to a starting position of the N song audio files to obtain decoded audio data;
    将所述解码音频数据送至缓存队列;Sending the decoded audio data to a cache queue;
    将所述缓存队列中的解码音频数据按照预设顺序进行拼接,以得到拼接歌曲音频文件。The decoded audio data in the buffer queue is spliced in a preset order to obtain a spliced song audio file.
  3. 如权利要求1或2任一项所述的方法,其特征在于,A method according to any one of claims 1 or 2, wherein
    所述获取所述N个歌曲音频文件之前,所述方法包括:设置所述解码操作的控制解码参数。Before the acquiring the N song audio files, the method includes: setting a control decoding parameter of the decoding operation.
  4. 如权利要求1或2任一项所述的方法,其特征在于,所述N个歌曲音频文件包括如下歌曲音频文件中的至少一种:The method of any of claims 1 or 2, wherein the N song audio files comprise at least one of the following song audio files:
    MP3歌曲音频文件、WAV歌曲音频文件、WMV歌曲音频文件和CD歌曲音频文件。MP3 song audio files, WAV song audio files, WMV song audio files, and CD song audio files.
  5. 如权利要求1或2任一项所述的方法,其特征在于,所述根据所述N个歌曲音频文件的起始位置对所述N个歌曲音频文件进行解码操作,以得到解码音频数据,包括:The method according to any one of claims 1 or 2, wherein the decoding operation of the N song audio files is performed according to a starting position of the N song audio files to obtain decoded audio data, include:
    选择与所述N个歌曲音频文件对应的解码器; Selecting a decoder corresponding to the N song audio files;
    控制所述解码器对所述N个歌曲音频文件进行解码操作,以得到解码音频数据。The decoder is controlled to perform a decoding operation on the N song audio files to obtain decoded audio data.
  6. 如权利要求1或2任一项所述的方法,其特征在于,所述按照预设顺序将所述N个歌曲音频文件进行拼接,以得到拼接歌曲音频文件之后,所述方法还包括:The method according to any one of claims 1 to 2, wherein after the splicing the N song audio files in a preset order to obtain a spliced song audio file, the method further comprises:
    锁定所述拼接歌曲音频文件的拼接位置;Locking the stitching position of the stitched song audio file;
    将所述拼接歌曲音频文件的拼接位置进行处理,以得到无缝拼接歌曲音频文件。The stitching position of the stitched song audio file is processed to obtain a seamless stitching song audio file.
  7. 一种歌曲拼接装置,其特征在于,包括:A song splicing device, comprising:
    获取单元,用于获取N个歌曲音频文件,其中,N为大于或等于1的整An acquiring unit, configured to acquire N song audio files, where N is greater than or equal to 1
    数;number;
    拼接单元,用于按照预设顺序将所述N个歌曲音频文件进行拼接,以得到拼接歌曲音频文件。a splicing unit, configured to splicing the N song audio files in a preset order to obtain a spliced song audio file.
  8. 如权利要求7所述的装置,其特征在于,所述拼接单元包括:The apparatus according to claim 7, wherein said splicing unit comprises:
    确定单元,用于获取所述N个歌曲音频文件的起始位置;a determining unit, configured to acquire a starting position of the N song audio files;
    解码单元,用于根据所述N个歌曲音频文件的起始位置对所述N个歌曲音频文件进行解码操作,以得到解码音频数据;a decoding unit, configured to perform a decoding operation on the N song audio files according to a starting position of the N song audio files to obtain decoded audio data;
    发送单元,用于将所述解码音频数据送至缓存队列;a sending unit, configured to send the decoded audio data to a buffer queue;
    拼接子单元,用于将所述缓存队列中的解码音频数据按照预设顺序进行拼接,以得到拼接歌曲音频文件。And a splicing subunit, configured to splicing the decoded audio data in the buffer queue in a preset order to obtain a spliced song audio file.
  9. 如权利要求7或8任一项所述的装置,其特征在于,所述装置还包括:The device according to any one of claims 7 or 8, wherein the device further comprises:
    设置单元,用于设置控制解码参数。A setting unit for setting control decoding parameters.
  10. 如权利要求7或8任一项所述的歌曲拼接装置,其特征在于,所述歌曲音频文件包括如下歌曲音频文件中的至少一种: The song splicing apparatus according to any one of claims 7 or 8, wherein the song audio file comprises at least one of the following song audio files:
    MP3歌曲音频文件、WAV歌曲音频文件、WMV歌曲音频文件和CD歌曲音频文件。MP3 song audio files, WAV song audio files, WMV song audio files, and CD song audio files.
  11. 如权利要求7或8任一项所述的装置,其特征在于,所述解码单元包括:The apparatus according to any one of claims 7 or 8, wherein the decoding unit comprises:
    选择单元,用于选择与所述N个歌曲音频文件对应的解码器;a selecting unit, configured to select a decoder corresponding to the N song audio files;
    控制单元,用于控制所述解码器对所述N个歌曲音频文件进行解码操作,以得到解码音频数据。And a control unit, configured to control the decoder to perform a decoding operation on the N song audio files to obtain decoded audio data.
  12. 如权利要求7或8任一项所述的装置,其特征在于,所述装置还包括:The device according to any one of claims 7 or 8, wherein the device further comprises:
    锁定单元,用于锁定所述拼接歌曲音频文件的拼接位置;a locking unit, configured to lock a stitching position of the stitched song audio file;
    处理单元,用于将所述拼接歌曲音频文件的拼接位置进行处理,以得到无缝拼接歌曲。And a processing unit, configured to process the stitching position of the stitched song audio file to obtain a seamless stitching song.
  13. 一种歌曲拼接装置,其特征在于,包括:A song splicing device, comprising:
    处理器和存储器;其中,所述处理器通过调用所述存储器中的代码或指令以执行如下步骤:a processor and a memory; wherein the processor performs the following steps by calling code or instructions in the memory:
    获取N个歌曲音频文件,其中,N为大于或等于1的整数;Obtaining N song audio files, where N is an integer greater than or equal to 1;
    按照预设顺序将所述N个歌曲音频文件进行拼接,以得到拼接歌曲音频文件。The N song audio files are stitched in a preset order to obtain a stitched song audio file.
  14. 如权利要求13所述的装置,其特征在于,所述按照预设顺序将所述N个歌曲音频文件进行拼接,以得到拼接歌曲音频文件,包括:The device according to claim 13, wherein the splicing the N song audio files in a preset order to obtain a stitched song audio file comprises:
    获取所述N个歌曲音频文件的起始位置;Obtaining a starting position of the N song audio files;
    根据所述N个歌曲音频文件的起始位置对所述N个歌曲音频文件进行解码操作以得到解码音频数据;Decoding the N song audio files according to a starting position of the N song audio files to obtain decoded audio data;
    将所述解码音频数据送至缓存队列;Sending the decoded audio data to a cache queue;
    将所述缓存队列中的解码音频数据按照预设顺序进行拼接,以得到拼接歌曲音频文件。 The decoded audio data in the buffer queue is spliced in a preset order to obtain a spliced song audio file.
  15. 如权利要求13或14任一项所述的装置,其特征在于,A device according to any one of claims 13 or 14, wherein
    所述获取所述N个歌曲音频文件之前,所述处理器还用于:设置所述解码操作的控制解码参数。Before the acquiring the N song audio files, the processor is further configured to: set a control decoding parameter of the decoding operation.
  16. 如权利要求13或14任一项所述的装置,其特征在于,所述N个歌曲音频文件包括如下歌曲音频文件中的至少一种:The apparatus according to any one of claims 13 or 14, wherein said N song audio files comprise at least one of the following song audio files:
    MP3歌曲音频文件、WAV歌曲音频文件、WMV歌曲音频文件和CD歌曲音频文件。MP3 song audio files, WAV song audio files, WMV song audio files, and CD song audio files.
  17. 如权利要求13或14任一项所述的装置,其特征在于,所述根据所述N个歌曲音频文件的起始位置对所述N个歌曲音频文件进行解码操作,以得到解码音频数据,包括:The apparatus according to any one of claims 13 or 14, wherein said decoding operation is performed on said N song audio files according to a starting position of said N song audio files to obtain decoded audio data, include:
    选择与所述N个歌曲音频文件对应的解码器;Selecting a decoder corresponding to the N song audio files;
    控制所述解码器对所述N个歌曲音频文件进行解码操作,以得到解码音频数据。The decoder is controlled to perform a decoding operation on the N song audio files to obtain decoded audio data.
  18. 如权利要求13或14任一项所述的装置,其特征在于,所述按照预设顺序将所述N个歌曲音频文件进行拼接,以得到拼接歌曲音频文件之后,所述处理器还用于:The apparatus according to any one of claims 13 or 14, wherein said processor is further used after said splicing a song audio file by splicing said N song audio files in a preset order :
    锁定所述拼接歌曲音频文件的拼接位置;Locking the stitching position of the stitched song audio file;
    将所述拼接歌曲音频文件的拼接位置进行处理,以得到无缝拼接歌曲音频文件。The stitching position of the stitched song audio file is processed to obtain a seamless stitching song audio file.
  19. 一种程序,当处理器调用该程序时,用于执行如权利要求1至6任一项所述的方法。 A program for performing the method of any one of claims 1 to 6 when the processor calls the program.
PCT/CN2016/074910 2015-03-20 2016-02-29 Song splicing algorithm and apparatus WO2016150274A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510124959.0A CN104778217B (en) 2015-03-20 2015-03-20 A kind of song stitching algorithm and device
CN201510124959.0 2015-03-20

Publications (1)

Publication Number Publication Date
WO2016150274A1 true WO2016150274A1 (en) 2016-09-29

Family

ID=53619681

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/074910 WO2016150274A1 (en) 2015-03-20 2016-02-29 Song splicing algorithm and apparatus

Country Status (2)

Country Link
CN (1) CN104778217B (en)
WO (1) WO2016150274A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111046217A (en) * 2019-12-17 2020-04-21 腾讯科技(深圳)有限公司 Combined song generation method, device, equipment and storage medium

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104778217B (en) * 2015-03-20 2017-08-29 广东欧珀移动通信有限公司 A kind of song stitching algorithm and device
CN105959773B (en) * 2016-04-29 2019-06-18 魔方天空科技(北京)有限公司 The treating method and apparatus of multimedia file
CN106339152B (en) * 2016-08-30 2019-10-15 维沃移动通信有限公司 A kind of generation method and mobile terminal of lyrics poster
CN113742511A (en) * 2021-07-27 2021-12-03 西安广和通无线通信有限公司 Audio processing method and related device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101141644A (en) * 2007-10-17 2008-03-12 清华大学 Encoding integration system and method and decoding integration system and method
CN101207728A (en) * 2007-12-17 2008-06-25 深圳市同洲电子股份有限公司 Method for playing back music of digital television receiver and digital television receiver
CN103200425A (en) * 2013-03-29 2013-07-10 天脉聚源(北京)传媒科技有限公司 Device and method of multimedia processing
CN104778217A (en) * 2015-03-20 2015-07-15 广东欧珀移动通信有限公司 Music splicing algorithm and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8875199B2 (en) * 2006-11-13 2014-10-28 Cisco Technology, Inc. Indicating picture usefulness for playback optimization
CN102301679A (en) * 2009-01-20 2011-12-28 Rgb网络有限公司 System and method for splicing media files
CN103458271A (en) * 2012-05-29 2013-12-18 北京数码视讯科技股份有限公司 Audio-video file splicing method and audio-video file splicing device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101141644A (en) * 2007-10-17 2008-03-12 清华大学 Encoding integration system and method and decoding integration system and method
CN101207728A (en) * 2007-12-17 2008-06-25 深圳市同洲电子股份有限公司 Method for playing back music of digital television receiver and digital television receiver
CN103200425A (en) * 2013-03-29 2013-07-10 天脉聚源(北京)传媒科技有限公司 Device and method of multimedia processing
CN104778217A (en) * 2015-03-20 2015-07-15 广东欧珀移动通信有限公司 Music splicing algorithm and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
COMPUTER FAN: "4. Making an APE", SOFTWARE APPLICATION CONFIDENTIAL X-FILES, 31 August 2006 (2006-08-31), pages 78 - 81 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111046217A (en) * 2019-12-17 2020-04-21 腾讯科技(深圳)有限公司 Combined song generation method, device, equipment and storage medium
CN111046217B (en) * 2019-12-17 2024-05-31 腾讯科技(深圳)有限公司 Combined song generation method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN104778217B (en) 2017-08-29
CN104778217A (en) 2015-07-15

Similar Documents

Publication Publication Date Title
US10996921B2 (en) Audio file processing to reduce latencies in play start times for cloud served audio files
WO2016150274A1 (en) Song splicing algorithm and apparatus
US10031714B2 (en) Method and device for processing audio files
US11921781B2 (en) Display apparatus, background music providing method thereof and background music providing system
US20140200893A1 (en) Systems and methods for filtering objectionable content
US11700410B2 (en) Crowd sourced indexing and/or searching of content
US11295069B2 (en) Speech to text enhanced media editing
CN105630787B (en) Animation realization method and device based on dynamic portable network graphics
US10957321B2 (en) Electronic device and control method thereof
WO2017024895A1 (en) Channel operation, playing method and corresponding apparatus for smart television
US11593550B2 (en) Computing device and corresponding method for generating data representing text
WO2017016285A1 (en) Method and device for implementing download of multimedia file
US20140358901A1 (en) Display apparatus and search result displaying method thereof
KR102403149B1 (en) Electric device and method for controlling thereof
CN106572140B (en) Media file playing method and terminal equipment
CN104780438A (en) Method and device for splicing video and song audio
US10031899B2 (en) Computing device and corresponding method for generating data representing text
US10909968B2 (en) Enhanced cache control for text-to-speech data
US10339219B2 (en) Computing device and corresponding method for generating data representing text
CN106777171B (en) Method and apparatus for outputting fragmented media files
KR20160020158A (en) Method and electronic device for providing media contents-related information

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16767651

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16767651

Country of ref document: EP

Kind code of ref document: A1