CN104778217A - Music splicing algorithm and device - Google Patents

Music splicing algorithm and device Download PDF

Info

Publication number
CN104778217A
CN104778217A CN201510124959.0A CN201510124959A CN104778217A CN 104778217 A CN104778217 A CN 104778217A CN 201510124959 A CN201510124959 A CN 201510124959A CN 104778217 A CN104778217 A CN 104778217A
Authority
CN
China
Prior art keywords
audio files
song
song audio
decoding
splicing
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.)
Granted
Application number
CN201510124959.0A
Other languages
Chinese (zh)
Other versions
CN104778217B (en
Inventor
程胜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201510124959.0A priority Critical patent/CN104778217B/en
Publication of CN104778217A publication Critical patent/CN104778217A/en
Priority to PCT/CN2016/074910 priority patent/WO2016150274A1/en
Application granted granted Critical
Publication of CN104778217B publication Critical patent/CN104778217B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

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

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

The embodiment of the invention discloses a music splicing algorithm. The music splicing algorithm comprises the steps: acquiring N music audio files, wherein N is an integer more than or equal to 1; splicing the N music audio files according to a preset sequence to obtain a spliced music audio file. The embodiment of the invention also discloses a music splicing device. By adopting the method and device, the music audio file can be decoded to acquire decoded audio data, and the decoded audio data is spliced to obtain a spliced music audio file.

Description

A kind of song stitching algorithm and device
Technical field
The embodiment of the present invention relates to audio signal processing technique field, particularly relates to a kind of song stitching algorithm and device.
Background technology
Along with the fast development of development of Mobile Internet technology, song splicing apparatus (as mobile phone, panel computer, touch) and dedicated play machine etc. also more and more come the pursuit of music.At present, in prior art, the tonequality process improving self is only limitted to, as the process software by carrying in device or dedicated play machine suitably processes audio file inferior, to improve play quality to the function broadcasting of music; Or higher to the quality requirements of audio file itself, often legal audio file can broadcast good effect, and the Local treatment to audio file, as less in cutting technique, the technique of extracting.
In prior art, network software is depended on to the shearing of song, and these softwares often need artificial manual operations, accurately can not locate the accurate location of each lyrics.
Summary of the invention
Embodiments provide a kind of song stitching algorithm and device, decode operation can be carried out to song audio files, decoded data is spliced, there is higher splicing efficiency.
Embodiment of the present invention first aspect provides a kind of song stitching algorithm, comprising:
Obtain N number of song audio files, wherein, N be more than or equal to 1 integer;
According to preset order, described N number of song audio files is spliced, to obtain splicing song audio files.
Embodiment of the present invention second aspect provides a kind of song splicing apparatus, comprising:
Acquiring unit, for obtaining N number of song audio files, wherein, N be more than or equal to 1 integer;
Concatenation unit, for described N number of song audio files being spliced according to preset order, to obtain splicing song audio files.
The embodiment of the present invention obtains N number of song audio files, wherein, N be more than or equal to 1 integer; According to preset order, described N number of song audio files is spliced, to obtain splicing song audio files.Adopt the embodiment of the present invention can carry out decode operation to song audio files, to obtain decoding audio data, decoding audio data is spliced, obtain splicing song audio files.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, be briefly described to the accompanying drawing used required in embodiment, description below, apparently, accompanying drawing in the following describes is only some embodiments of the embodiment of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
First embodiment schematic flow sheet of a kind of song stitching algorithm that Fig. 1 provides for the embodiment of the present invention;
Second embodiment schematic flow sheet of a kind of song stitching algorithm that Fig. 2 provides for the embodiment of the present invention;
3rd embodiment schematic flow sheet of a kind of song stitching algorithm that Fig. 3 provides for the embodiment of the present invention;
4th embodiment schematic flow sheet of a kind of song stitching algorithm that Fig. 4 provides for the embodiment of the present invention;
First example structure schematic diagram of a kind of song splicing apparatus that Fig. 5 provides for the embodiment of the present invention;
Second example structure schematic diagram of a kind of song splicing apparatus that Fig. 6 provides for the embodiment of the present invention;
3rd example structure schematic diagram of a kind of song splicing apparatus that Fig. 7 provides for the embodiment of the present invention;
4th example structure schematic diagram of a kind of song splicing apparatus that Fig. 8 provides for the embodiment of the present invention;
5th example structure schematic diagram of a kind of song splicing apparatus that Fig. 9 provides for the embodiment of the present invention;
6th example structure schematic diagram of a kind of song splicing apparatus that Figure 10 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only embodiment of the present invention part embodiment, instead of whole embodiments.Based on the embodiment in the embodiment of the present invention, those of ordinary skill in the art are not making the every other embodiment obtained under creative work prerequisite, all belong to the scope of embodiment of the present invention protection.
In realization, in the embodiment of the present invention, device can include but not limited to: notebook computer, mobile phone, panel computer, intelligent wearable device, player, MP3, MP4, intelligent television, Set Top Box, server etc.The system of song splicing apparatus refers to the operating system of song splicing apparatus, can include but not limited to: android system, Saipan system, Windows system, IOS (Mobile operating system of Apple's exploitation) system etc.It should be noted that, Android device refers to the device of android system, and Saipan device refers to the device of Saipan system, etc.Said apparatus is only citing, and non exhaustive, including but not limited to said apparatus.
In realization, in the embodiment of the present invention, song can include but not limited to: song in Chinese songs, English song, Russian song, Spain's song, classic song, popular music song, rock music song, light music song, song of talking and singing, song of singing opera arias, video etc.Above-mentioned song is only citing, and non exhaustive, including but not limited to above-mentioned song.
In implementation procedure, the form of song can include but are not limited to: MP3, MP4, WMV, WAV, FLV etc.The form of above-mentioned song is only citing, and non exhaustive, including but not limited to the form of above-mentioned song.
A kind of song stitching algorithm that composition graphs 1 to Figure 10 provides the embodiment of the present invention and device are described.
Refer to Fig. 1, Fig. 1 is the first embodiment schematic flow sheet of a kind of song stitching algorithm that the embodiment of the present invention provides.The method of the song stitching algorithm described in the present embodiment, comprises step:
S101, obtain N number of song audio files, wherein, N be more than or equal to 1 integer.
Particularly, obtain N number of song audio files, read N number of song audio files by program, or by the N number of song audio files of Operation system setting.
As a kind of possible embodiment, song audio files can include but are not limited to: MP3 song audio files, WAV song audio files, WMV song audio files and CD song audio files.
S102, according to preset order, described N number of song audio files to be spliced, to obtain splicing song audio files.
Particularly, according to preset order, N number of song audio files is spliced, to obtain splicing song audio files.Wherein, preset order can be time order and function order, or the splicing order for oneself defining.
The embodiment of the present invention obtains N number of song audio files, wherein, N be more than or equal to 1 integer; According to preset order, described N number of song audio files is spliced, to obtain splicing song audio files.Adopt the embodiment of the present invention can carry out decode operation to song audio files, to obtain decoding audio data, decoding audio data is spliced, obtain splicing song audio files.
Refer to Fig. 2, Fig. 2 is the second embodiment schematic flow sheet of a kind of song stitching algorithm that the embodiment of the present invention provides, and Fig. 2 is the concrete refinement of step S102 in Fig. 1.Song stitching algorithm described in the present embodiment, comprises step:
S201, obtain the reference position of described N number of song audio files.
Particularly, obtain the reference position of N number of song audio files, can analyze N number of song audio files, the position that its first fragment occurs is defined as the reference position of song audio files, or, the header file of N number of song audio files is defined as the reference position of song audio files.
S202, according to the reference position of described N number of song audio files, decode operation is carried out to obtain decoding audio data to described N number of song audio files.
Particularly, according to the reference position of N number of song audio files, decode operation is carried out to obtain decoding audio data to N number of song audio files.Wherein, the reference position according to N number of song audio files is decoded to N number of song audio files, and decoding obtains decoding audio data, song can be divided into the fragment of based on this decoding audio data.
S203, described decoding audio data is delivered to buffer queue.
Particularly, decoding audio data is delivered to buffer queue, according to the time order and function order of decoding, decoding audio data can be delivered to buffer queue.
S204, the decoding audio data in described buffer queue to be spliced according to preset order, to obtain splicing song audio files.
Particularly, the decoding audio data in buffer queue is spliced according to preset order, to obtain splicing song audio files.Wherein, preset order can include but are not limited to: order that time order and function order, random sequence, user oneself are arranged etc.
As a kind of possible embodiment, before the described N number of song audio files of described acquisition, the control decoding parametric of described decode operation can be set.Wherein, decoding parametric can include but are not limited to: coding type, decoding speed, decoding process etc.
As a kind of possible embodiment, to analyze the first song audio files of beginning two, if use DSP demoder, DSP decoding parametric can be set, the reference position of the original audio data in file finds by background thread, DSP starts decoding, and decoding audio data send voice data to buffer queue by background thread, then sends to DSP decoding output sound from buffer queue.When all being read in buffer queue by the voice data of First song audio files, just find the reference position of the voice data of the second first song audio files.By this position voice data, directly above, the voice data (ending frame frame) of a first song audio files is sent in buffer queue (buffer) below, again the data sequence in buffer is delivered to DSP decoding, so just can ensure that the voice data of two songs is that consecutive order enters DSP decoding.Under normal circumstances, the speed that the speed reading USB device will be play faster than decoding, but First song also have the data of 20 seconds to decode play time, the voice data of First song just completes buffer memory, at this moment the second song is resolved, and start the second first data audio data buffer memory, concerning continuous decoding completely user.
The embodiment of the present invention obtains the reference position of described N number of song audio files; Reference position according to described N number of song audio files carries out decode operation to obtain decoding audio data to described N number of song audio files; Described decoding audio data is delivered to buffer queue; Decoding audio data in described buffer queue is spliced according to preset order, to obtain splicing song audio files.Adopt the embodiment of the present invention can carry out decode operation to song audio files, to obtain decoding audio data, decoding audio data is spliced, obtain splicing song audio files.
Refer to Fig. 3, Fig. 3 is the 3rd embodiment schematic flow sheet of a kind of song stitching algorithm that the embodiment of the present invention provides, and Fig. 3 is the concrete refinement of step S202 in Fig. 2, comprises step:
S301, select the demoder corresponding with described N number of song audio files.
Particularly, select the demoder corresponding with N number of song audio files, wherein, corresponding demoder can be selected according to the form of N number of song audio files.
S302, control described demoder decode operation is carried out, to obtain decoding audio data to described N number of song audio files.
Particularly, control demoder and decode operation is carried out to N number of song audio files, to obtain decoding audio data.Control demoder and decode operation is carried out to N number of song audio files, obtain decoding audio data and can be statement fragment data.
The embodiment of the present invention selects the demoder corresponding with described N number of song audio files; Control described demoder and decode operation is carried out, to obtain decoding audio data to described N number of song audio files.Adopt the embodiment of the present invention can carry out decode operation to song audio files, obtain decoding audio data.
Refer to Fig. 4, Fig. 4 is the 4th embodiment schematic flow sheet of a kind of song stitching algorithm that the embodiment of the present invention provides, and comprises step:
S401, obtain N number of song audio files, wherein, N be more than or equal to 1 integer.
Particularly, obtain N number of song audio files, read N number of song audio files by program, or by the N number of song audio files of Operation system setting.
As a kind of possible embodiment, song audio files can include but are not limited to: MP3 song audio files, WAV song audio files, WMV song audio files and CD song audio files.
S402, according to preset order, described N number of song audio files to be spliced, to obtain splicing song audio files.
Particularly, according to preset order, N number of song audio files is spliced, to obtain splicing song audio files.Wherein, preset order can be time order and function order, or the splicing order for oneself defining.
S403, lock the stitching position of described splicing song.
Particularly, the stitching position of locking splicing song audio files.Seamless spliced in order to realize, therefore, the vestige of splicing can not be demonstrated, need to lock stitching position, pre-service is carried out to it.
S404, the stitching position of described splicing song audio files to be processed, to obtain seamless spliced song audio files.
Particularly, the stitching position of splicing song is processed, to obtain seamless spliced song audio files.Wherein, process can include but are not limited to: to the tune that stitching position march key is whole, insertion intensity of variation is similar of splicing song, to the smoothing process of the stitching position that amplitude of variation is larger.
The embodiment of the present invention locks the stitching position of described splicing song; The stitching position of described splicing song is processed, to obtain seamless spliced song audio files.Adopt the embodiment of the present invention can process splicing song audio files, to obtain seamless spliced song audio files.
Refer to Fig. 5, Fig. 5 is the first example structure schematic diagram of a kind of song splicing apparatus that the embodiment of the present invention provides, and wherein, the song splicing apparatus shown in Fig. 5 can comprise acquiring unit 501 and concatenation unit 502.
Acquiring unit 501, for obtaining N number of song audio files, wherein, N be more than or equal to 1 integer.
Particularly, acquiring unit 501 obtains N number of song audio files, reads N number of song audio files by program, or by the N number of song audio files of Operation system setting.
As a kind of possible embodiment, song audio files can include but are not limited to: MP3 song audio files, WAV song audio files, WMV song audio files and CD song audio files.
Concatenation unit 502, for described N number of song audio files being spliced according to preset order, to obtain splicing song audio files.
Particularly, N number of song audio files is spliced according to preset order by concatenation unit 502, to obtain splicing song audio files.Wherein, preset order can be time order and function order, or the splicing order for oneself defining.
Embodiment of the present invention acquiring unit 501 obtains N number of song audio files, wherein, N be more than or equal to 1 integer; Described N number of song audio files is spliced according to preset order by concatenation unit 502, to obtain splicing song audio files.Adopt the embodiment of the present invention can carry out decode operation to song audio files, to obtain decoding audio data, decoding audio data is spliced, obtain splicing song audio files.
Refer to Fig. 6, Fig. 6 is the second example structure schematic diagram of a kind of song splicing apparatus that the embodiment of the present invention provides, wherein, concatenation unit 502 in song splicing apparatus shown in Fig. 5, can comprise: determining unit 601, decoding unit 602, transmitting element 603 and splicing subelement 604, specific as follows:
Determining unit 601, obtains the reference position of described N number of song audio files.
Particularly, determining unit 601 obtains the reference position of song audio files to be spliced, can analyze N number of song audio files, the position that its first fragment occurs can be defined as the reference position of song audio files, or, the header file of N number of song audio files can be defined as the reference position of N number of song audio files.
Decoding unit 602, carries out decode operation, to obtain decoding audio data for the reference position according to described N number of song audio files to described N number of song audio files.
Particularly, decoding unit 602 carries out decode operation according to the reference position of N number of song audio files to N number of song audio files, to obtain decoding audio data.Wherein, the reference position according to N number of song audio files is decoded to N number of song audio files, and decoding obtains decoding audio data, song can be divided into the statement fragment of based on this decoding audio data.
Transmitting element 603, for delivering to buffer queue by described decoding audio data.
Particularly, decoding audio data is delivered to buffer queue by transmitting element 603, according to the time order and function order of decoding, decoding audio data can be delivered to buffer queue.
Splicing subelement 604, for being spliced according to preset order by the decoding audio data in described buffer queue, to obtain splicing song.
Particularly, the decoding audio data in buffer queue splices according to preset order by splicing subelement 604, to obtain splicing song audio files.Wherein, preset order can include but are not limited to: order that time order and function order, random sequence, user oneself are arranged etc.
Embodiment of the present invention acquiring unit 501 obtains N number of song audio files, wherein, N be more than or equal to 1 integer; Described N number of song audio files is spliced according to preset order by concatenation unit 502, to obtain splicing song audio files.Adopt the embodiment of the present invention can carry out decode operation to song audio files, to obtain decoding audio data, decoding audio data is spliced, obtain splicing song audio files.
As a kind of possible embodiment, as shown in Figure 7, Fig. 7 is the 3rd example structure schematic diagram of a kind of song splicing apparatus that the embodiment of the present invention provides, compared with the song splicing apparatus shown in Fig. 5, song splicing apparatus shown in Fig. 5, except comprising the unit of the song splicing apparatus shown in Fig. 5, can also comprise setting unit 503.
Setting unit 503, before obtaining described N number of song audio files, arranges the control decoding parametric of described decode operation for described acquiring unit 501.
In the embodiment of the present invention, can arrange control decoding parametric, wherein, decoding parametric can include but are not limited to: coding type, decoding speed, decoding process etc.
As a kind of possible embodiment, to analyze beginning two song, if use DSP demoder, DSP decoding parametric can be set, the reference position of the original audio data in file finds by background thread, DSP starts decoding, and decoding audio data send voice data to buffer queue by background thread, then sends to DSP decoding output sound from buffer queue.When all being read in buffer queue by the voice data of First song, just find the reference position of the voice data of the second song.By this position voice data, directly above, the voice data (ending frame frame) of a song is sent in buffer queue (buffer) below, again the data sequence in buffer is delivered to DSP decoding, so just can ensure that the voice data of two songs is that consecutive order enters DSP decoding.Under normal circumstances, the speed that the speed reading USB device will be play faster than decoding, but First song also have the data of 20 seconds to decode play time, the voice data of First song just completes buffer memory, at this moment the second song is resolved, and start the second first data audio data buffer memory, concerning continuous decoding completely user.
Embodiment of the present invention setting unit 503, before obtaining described N number of song audio files, arranges the control decoding parametric of described decode operation for described acquiring unit 501; Acquiring unit 501 obtains N number of song audio files, wherein, N be more than or equal to 1 integer; Described N number of song audio files is spliced according to preset order by concatenation unit 502, to obtain splicing song audio files.Adopt the embodiment of the present invention can carry out decode operation to song audio files, to obtain decoding audio data, decoding audio data is spliced, obtain splicing song audio files.
Refer to Fig. 8, Fig. 8 is the 4th example structure schematic diagram of a kind of song splicing apparatus that the embodiment of the present invention provides, compared with the song splicing apparatus shown in Fig. 6, song splicing apparatus shown in Fig. 8 is except comprising the unit of the song splicing apparatus shown in Fig. 6, the decoding unit 602 of the song splicing apparatus shown in Fig. 8 can also comprise selection unit 801 and control module 802, specific as follows:
Selection unit 801, for selecting the demoder corresponding with described N number of song audio files.
Particularly, selection unit 801 selects the demoder corresponding with N number of song audio files, wherein, can select corresponding demoder according to the form of N number of song audio files.
Control module 802, carries out decode operation, to obtain decoding audio data for controlling described demoder to described N number of song audio files.
Particularly, control module 803 controls demoder and carries out decode operation to N number of song audio files, to obtain decoding audio data.Control demoder and carry out decode operation to N number of song audio files, obtaining decoding audio data is statement fragment.
Embodiment of the present invention selection unit 801 selects the demoder corresponding with described N number of song audio files; Control module 802 controls described demoder and carries out decode operation, to obtain decoding audio data to described N number of song audio files.Adopt the embodiment of the present invention can carry out decode operation to song audio files, obtain decoding audio data.
Refer to Fig. 9, Fig. 9 is the 5th example structure schematic diagram of a kind of song splicing apparatus that the embodiment of the present invention provides, compared with the song splicing apparatus shown in Fig. 5, song splicing apparatus shown in Fig. 9 is except comprising the unit of the song splicing apparatus shown in Fig. 5, lock cell 503, processing unit 504 can also be comprised, specific as follows:
Lock cell 503, for locking the stitching position of described splicing song audio files.
Particularly, lock cell 503 locks the stitching position of splicing song audio files.Seamless spliced in order to realize, therefore, the vestige of splicing can not be demonstrated, need to lock stitching position, it is processed.
Processing unit 504, for being processed by the stitching position of described splicing song audio files, to obtain seamless spliced song audio files.
Particularly, the stitching position of splicing song processes, to obtain seamless spliced song audio files by processing unit 504.Wherein, process can include but are not limited to: to the tune that stitching position march key is whole, insertion intensity of variation is similar of splicing song audio files, to the smoothing process of the stitching position that amplitude of variation is larger.
Embodiment of the present invention lock cell 503 locks the stitching position of described song audio files; The stitching position of described splicing song audio files processes by processing unit 504, to obtain seamless spliced song audio files.Adopt the embodiment of the present invention can process song audio files, to obtain seamless spliced song audio files.
See the 6th example structure schematic diagram of a kind of song splicing apparatus that Figure 10, Figure 10 provide for the embodiment of the present invention.Song splicing apparatus described in the present embodiment comprises: at least one input equipment 1000; At least one output device 2000; At least one processor 3000, such as CPU; With storer 4000, above-mentioned input equipment 1000, output device 2000, processor 3000 are connected by bus 5000 with storer 4000.
Wherein, above-mentioned input equipment 1000 can be contact panel, common PC, liquid crystal display, touch screen etc.
Above-mentioned storer 4000 can be high-speed RAM storer, also can be non-labile storer (non-volatile memory), such as magnetic disk memory.Above-mentioned storer 4000 is for storing batch processing code, and above-mentioned input equipment 1000, output device 2000 and processor 3000, for calling the program code stored in storer 4000, perform and operate as follows:
Above-mentioned processor 3000, obtains N number of song audio files, wherein, N be more than or equal to 1 integer;
As a kind of possible embodiment, song audio files comprises at least one in following song audio files:
MP3 song audio files, WAV song audio files, WMV song audio files and CD song audio files.
Above-mentioned processor 3000, also for:
According to preset order, described N number of song audio files is spliced, to obtain splicing song audio files;
Above-mentioned processor 3000 also for:
The control decoding parametric of described decode operation is set.
Above-mentioned processor 3000 also for:
Lock the stitching position of described splicing song audio files;
Above-mentioned processor 3000 also for:
The stitching position of described splicing song audio files is processed, to obtain seamless spliced song.
As a kind of possible embodiment, above-mentioned processor 3000 also for:
Obtain the reference position of described N number of song audio files;
Reference position according to described N number of song audio files carries out decode operation to obtain decoding audio data to described N number of song audio files;
Described decoding audio data is delivered to buffer queue;
Decoding audio data in described buffer queue is spliced according to preset order, to obtain splicing song audio files.
In the embodiment that some are feasible, above-mentioned processor 3000 also for:
Select the demoder corresponding with described N number of song audio files;
Control described demoder and decode operation is carried out, to obtain decoding audio data to described N number of song audio files.
In realization, the song splicing apparatus that input equipment 1000 described in the embodiment of the present invention, output device 2000 and processor 3000 can perform the embodiment of the present invention to be provided can implement the song stitching algorithm implementation described in Fig. 1 ~ Fig. 4, also can perform the implementation of the song splicing apparatus described in Fig. 5 ~ Fig. 9 that the embodiment of the present invention provides, not repeat them here.
Module in all embodiments of the embodiment of the present invention or submodule, universal integrated circuit can be passed through, such as CPU (Central Processing Unit, central processing unit), or realized by ASIC (Application SpecificIntegrated Circuit, special IC).
Step in embodiment of the present invention method can be carried out order according to actual needs and be adjusted, merges and delete.
Unit in embodiment of the present invention song splicing apparatus can carry out merging, divide and deleting according to actual needs.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random access memory (Random Access Memory is called for short RAM) etc.
Above disclosedly be only embodiment of the present invention preferred embodiment, certainly can not limit the interest field of the embodiment of the present invention with this, therefore according to the equivalent variations that embodiment of the present invention claim is done, still belong to the scope that the embodiment of the present invention contains.

Claims (12)

1. a song stitching algorithm, is characterized in that, comprising:
Obtain N number of song audio files, wherein, N be more than or equal to 1 integer;
According to preset order, described N number of song audio files is spliced, to obtain splicing song audio files.
2. the method for claim 1, is characterized in that, describedly described N number of song audio files is spliced according to preset order, to obtain splicing song audio files, comprising:
Obtain the reference position of described N number of song audio files;
Reference position according to described N number of song audio files carries out decode operation to obtain decoding audio data to described N number of song audio files;
Described decoding audio data is delivered to buffer queue;
Decoding audio data in described buffer queue is spliced according to preset order, to obtain splicing song audio files.
3. the method as described in any one of claim 1 or 2, is characterized in that,
Before the described N number of song audio files of described acquisition, described method comprises: the control decoding parametric arranging described decode operation.
4. the method as described in any one of claim 1 or 2, is characterized in that, described N number of song audio files comprises at least one in following song audio files:
MP3 song audio files, WAV song audio files, WMV song audio files and CD song audio files.
5. the method as described in any one of claim 1 or 2, is characterized in that, the described reference position according to described N number of song audio files carries out decode operation to described N number of song audio files, to obtain decoding audio data, comprising:
Select the demoder corresponding with described N number of song audio files;
Control described demoder and decode operation is carried out, to obtain decoding audio data to described N number of song audio files.
6. the method as described in any one of claim 1 or 2, is characterized in that, describedly described N number of song audio files is spliced according to preset order, and after obtaining splicing song audio files, described method also comprises:
Lock the stitching position of described splicing song audio files;
The stitching position of described splicing song audio files is processed, to obtain seamless spliced song audio files.
7. a song splicing apparatus, is characterized in that, comprising:
Acquiring unit, for obtaining N number of song audio files, wherein, N be more than or equal to 1 integer;
Concatenation unit, for described N number of song audio files being spliced according to preset order, to obtain splicing song audio files.
8. device as claimed in claim 7, it is characterized in that, described concatenation unit comprises:
Determining unit, for obtaining the reference position of described N number of song audio files;
Decoding unit, carries out decode operation, to obtain decoding audio data for the reference position according to described N number of song audio files to described N number of song audio files;
Transmitting element, for delivering to buffer queue by described decoding audio data;
Splicing subelement, for being spliced according to preset order by the decoding audio data in described buffer queue, to obtain splicing song audio files.
9. the device as described in any one of claim 7 or 8, it is characterized in that, described device also comprises:
Setting unit, for arranging control decoding parametric.
10. the device as described in any one of claim 7 or 8, it is characterized in that, described song audio files comprises at least one in following song audio files:
MP3 song audio files, WAV song audio files, WMV song audio files and CD song audio files.
11. devices as described in any one of claim 7 or 8, it is characterized in that, described decoding unit comprises:
Selection unit, for selecting the demoder corresponding with described N number of song audio files;
Control module, carries out decode operation, to obtain decoding audio data for controlling described demoder to described N number of song audio files.
12. devices as described in any one of claim 7 or 8, it is characterized in that, described device also comprises:
Lock cell, for locking the stitching position of described splicing song audio files;
Processing unit, for being processed by the stitching position of described splicing song audio files, to obtain seamless spliced song.
CN201510124959.0A 2015-03-20 2015-03-20 A kind of song stitching algorithm and device Expired - Fee Related CN104778217B (en)

Priority Applications (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
PCT/CN2016/074910 WO2016150274A1 (en) 2015-03-20 2016-02-29 Song splicing algorithm and apparatus

Applications Claiming Priority (1)

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

Publications (2)

Publication Number Publication Date
CN104778217A true CN104778217A (en) 2015-07-15
CN104778217B CN104778217B (en) 2017-08-29

Family

ID=53619681

Family Applications (1)

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

Country Status (2)

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

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105959773A (en) * 2016-04-29 2016-09-21 魔方天空科技(北京)有限公司 Multimedia file processing method and device
WO2016150274A1 (en) * 2015-03-20 2016-09-29 广东欧珀移动通信有限公司 Song splicing algorithm and apparatus
CN106339152A (en) * 2016-08-30 2017-01-18 维沃移动通信有限公司 Generation method of lyrics poster and mobile terminal
CN113742511A (en) * 2021-07-27 2021-12-03 西安广和通无线通信有限公司 Audio processing method and related device

Families Citing this family (1)

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

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090196571A1 (en) * 2006-11-13 2009-08-06 Scientific-Atlanta, Inc. Signaling of potential splice points in a video stream
CN102301679A (en) * 2009-01-20 2011-12-28 Rgb网络有限公司 System and method for splicing media files
CN103200425A (en) * 2013-03-29 2013-07-10 天脉聚源(北京)传媒科技有限公司 Device and method of multimedia processing
CN103458271A (en) * 2012-05-29 2013-12-18 北京数码视讯科技股份有限公司 Audio-video file splicing method and audio-video file splicing device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101141644B (en) * 2007-10-17 2010-12-08 清华大学 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
CN104778217B (en) * 2015-03-20 2017-08-29 广东欧珀移动通信有限公司 A kind of song stitching algorithm and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090196571A1 (en) * 2006-11-13 2009-08-06 Scientific-Atlanta, Inc. Signaling of potential splice points in a video stream
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
CN103200425A (en) * 2013-03-29 2013-07-10 天脉聚源(北京)传媒科技有限公司 Device and method of multimedia processing

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
《电脑爱好者》杂志社: "软件应用绝密X档案", 《电脑爱好者》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016150274A1 (en) * 2015-03-20 2016-09-29 广东欧珀移动通信有限公司 Song splicing algorithm and apparatus
CN105959773A (en) * 2016-04-29 2016-09-21 魔方天空科技(北京)有限公司 Multimedia file processing method and device
CN106339152A (en) * 2016-08-30 2017-01-18 维沃移动通信有限公司 Generation method of lyrics poster and mobile terminal
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

Also Published As

Publication number Publication date
WO2016150274A1 (en) 2016-09-29
CN104778217B (en) 2017-08-29

Similar Documents

Publication Publication Date Title
CN104778216A (en) Method and device for processing songs with preset styles
CN104778217A (en) Music splicing algorithm and device
CN103327021B (en) Method, devices and system of multi-device interaction
CN104778221A (en) Music collaborate splicing method and device
CN107295402A (en) Video encoding/decoding method and device
CN112214678A (en) Method and device for recommending short video information
CN104615333B (en) The group technology and play system of a kind of playback equipment
CN104778957A (en) Song audio processing method and device
CN104010197A (en) Method and device for generating video thumbnails
CN104778958A (en) Method and device for splicing noise-containing songs
CN104778220A (en) Method and device for splitting a-cappella songs
CN105224178A (en) A kind of information processing method and electronic equipment
CN105185399A (en) Play list display method and terminal
CN104751870A (en) Information processing method and electronic equipment
CN104639973A (en) Information pushing method and device
CN104778219A (en) Method and device for splicing songs with preset effects
CN103942327A (en) Information sharing method and device
CN104575545A (en) Method for generating playlist
US9983845B2 (en) Updating media files for increased resolution with optimized usage of storage
CN106294293B (en) It is a kind of realize interactive electronic read system, method and apparatus
CN107704232B (en) Audio control method and electronic equipment
CN111104545A (en) Background music configuration method and equipment, client device and electronic equipment
JP2024521940A (en) Multimedia processing method, apparatus, device and medium
CN104200826A (en) Audio signal playing method for mobile terminal and mobile terminal
CN106572140B (en) Media file playing method and terminal equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CP01 Change in the name or title of a patent holder
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20170829

CF01 Termination of patent right due to non-payment of annual fee