CN106383690B - A kind of method and apparatus that multiple voice datas play simultaneously - Google Patents
A kind of method and apparatus that multiple voice datas play simultaneously Download PDFInfo
- Publication number
- CN106383690B CN106383690B CN201610799425.2A CN201610799425A CN106383690B CN 106383690 B CN106383690 B CN 106383690B CN 201610799425 A CN201610799425 A CN 201610799425A CN 106383690 B CN106383690 B CN 106383690B
- Authority
- CN
- China
- Prior art keywords
- sound
- data
- clip
- sample frequency
- divided
- 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.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/16—Sound input; Sound output
- G06F3/165—Management of the audio stream, e.g. setting of volume, audio stream path
Abstract
The invention discloses the method and apparatus that a kind of multiple voice datas play simultaneously, different sound can be carried out simultaneously and is played, and not will form audio mixing, improve audibility.The method comprise the steps that obtaining the first voice data and second sound data to be played;First voice data is divided into the first sound clip and second sound segment according to preset rules, and the second sound data are divided into third sound clip and falling tone tablet section according to the preset rules, first sound clip is corresponding with the third sound clip, and the second sound segment is corresponding with the falling tone tablet section;Period first time is divided according to first sound clip and the third sound clip, and second time period is divided according to the second sound segment and the falling tone tablet section, obtains the period to match with each sound clip;Each sound clip is sent to corresponding receiving device according to the period.
Description
Technical field
The present invention relates to multimedia technology field more particularly to a kind of multiple voice datas while the method played and set
It is standby.
Background technique
With popularizing for electronic equipment, more and more people are listened to music by electronic equipment, are listened to the radio programme, and people are facilitated
Daily life.In daily life, when multiple people want using an electronic equipment while carrying out different sound broadcastings, this
When produce multiple voice datas and meanwhile play demand.
Currently, it if multiple people want using an electronic equipment while carrying out different sound broadcastings, generallys use at this time appropriate
The mode of association, i.e. electronic equipment only play a kind of sound every time.
If carrying out different sound simultaneously using an electronic equipment to play, due to being played while sound, will form mixed
Sound affects audibility.
Summary of the invention
The embodiment of the invention provides the method and apparatus that a kind of multiple voice datas play simultaneously, can carry out simultaneously not
Same sound plays, and not will form audio mixing, improves audibility.
A kind of method that first aspect present invention provides multiple voice datas while playing, this method comprises:
Obtain the first voice data and second sound data to be played;
First voice data is divided into the first sound clip and second sound segment according to preset rules, and according to
The second sound data are divided into third sound clip and falling tone tablet section, the first sound piece by the preset rules
Section is corresponding with the third sound clip, and the second sound segment is corresponding with the falling tone tablet section;
Period first time is divided according to first sound clip and the third sound clip, and according to institute
It states second sound segment to divide second time period with the falling tone tablet section, obtains matching with each sound clip
Period;
Each sound clip is sent to corresponding receiving device according to the period.
It is described that first voice data is divided into the first sound according to preset rules in some possible implementations
Tablet section and second sound segment, and according to the preset rules by the second sound data be divided into third sound clip and
Falling tone tablet section includes:
First voice data is divided into the first sound according to the data volume of first voice data got
Segment and second sound segment, and drawn the second sound data according to the data volume of the second sound data got
It is divided into third sound clip and falling tone tablet section, the number of the data volume of first sound clip and the second sound segment
Identical according to measuring, the data volume of the third sound clip is identical as the data volume of the falling tone tablet section.
It is described that first voice data is divided into first according to preset rules in other possible implementations
Sound clip and second sound segment, and the second sound data are divided into third sound clip according to the preset rules
Include: later with falling tone tablet section
It is distributed respectively for first sound clip, second sound segment, third sound clip and falling tone tablet section
Number or mark.
It is described to obtain the first voice data and second sound data to be played in other possible implementations
Later further include:
It is corresponding to judge whether corresponding first sample frequency of first voice data is greater than the second sound data
Second sample frequency;
If first sample frequency is greater than second sample frequency, by the second sound data corresponding second
Sample frequency is adjusted to first sample frequency;
If first sample frequency is less than second sample frequency, by first voice data corresponding first
Sample frequency is adjusted to second sample frequency.
It is described to be sent to each sound clip accordingly according to the period in other possible implementations
Receiving device include:
First sound clip and the second sound segment the first reception is sent to according to the period to set
It is standby, and the third sound clip and the falling tone tablet section are sent to the second receiving device according to the period.
The equipment that second aspect of the present invention provides a kind of multiple voice datas while playing, comprising:
Acquiring unit, for obtaining the first voice data and second sound data to be played;
Division unit, for first voice data to be divided into the first sound clip and the rising tone according to preset rules
Tablet section, and the second sound data are divided into third sound clip and falling tone tablet section according to the preset rules,
First sound clip is corresponding with the third sound clip, and the second sound segment and the falling tone tablet section are right
It answers;
Processing unit, for being carried out according to first sound clip and the third sound clip to period first time
It divides, and second time period is divided according to the second sound segment and the falling tone tablet section, obtained and respectively
The period that sound clip matches;
Transmission unit, for each sound clip to be sent to corresponding receiving device according to the period.
In some possible implementations, the division unit, specifically for according to first sound got
First voice data is divided into the first sound clip and second sound segment by the data volume of data, and according to getting
The second sound data are divided into third sound clip and falling tone tablet section, institute by the data volume of the second sound data
The data volume for stating the first sound clip is identical as the data volume of the second sound segment, the data volume of the third sound clip
It is identical as the data volume of the falling tone tablet section.
In other possible implementations, the equipment further include:
Allocation unit, for first voice data to be divided into the first sound piece according to preset rules in division unit
Section and second sound segment, and the second sound data are divided into third sound clip and the 4th according to the preset rules
It is first sound clip, second sound segment, third sound clip and falling tone tablet section difference after sound clip
Distribution number or mark.
In other possible implementations, the equipment further include:
Judging unit is sentenced after obtaining the first voice data and second sound data to be played in acquiring unit
Whether corresponding first sample frequency of first voice data of breaking is greater than the corresponding second sampling frequency of the second sound data
Rate;
Adjustment unit will if judging that first sample frequency is greater than second sample frequency for judging unit
Corresponding second sample frequency of the second sound data is adjusted to first sample frequency;If judging unit judges described
One sample frequency is less than second sample frequency, then corresponding first sample frequency of first voice data is adjusted to institute
State the second sample frequency.
In other possible implementations, the transmission unit is specifically used for described the according to the period
One sound clip and the second sound segment are sent to the first receiving device, and according to the period by the third sound
Tablet section and the falling tone tablet section are sent to the second receiving device.
As can be seen from the above technical solutions, the embodiment of the present invention, which has the advantage that, is divided into difference for the time cycle
Period, corresponding sound clip is sent to corresponding receiving device by section in different times, so that different receptions is set
Standby to play different sound, in the case where the time cycle is sufficiently small, sound, which can not be identified, in human ear tomography, thus using similar
Time-multiplexed method is realized while being played out to different voice datas.So the present invention can carry out simultaneously it is different
Sound plays, and not will form audio mixing, improves audibility.
Detailed description of the invention
Fig. 1 is method one embodiment schematic diagram that multiple voice datas provided in an embodiment of the present invention play simultaneously;
Fig. 2 is equipment one embodiment schematic diagram that multiple voice datas provided in an embodiment of the present invention play simultaneously;
Fig. 3 is multiple voice datas provided in an embodiment of the present invention another embodiment schematic diagram of the equipment of broadcasting simultaneously;
Fig. 4 is multiple voice datas provided in an embodiment of the present invention another embodiment schematic diagram of the equipment of broadcasting simultaneously.
Specific embodiment
The embodiment of the invention provides the method and apparatus that a kind of multiple voice datas play simultaneously, can carry out simultaneously not
Same sound plays, and not will form audio mixing, improves audibility.
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those skilled in the art's every other implementation obtained without creative efforts
Example, shall fall within the protection scope of the present invention.
Description and claims of this specification and term " first ", " second ", " third ", " in above-mentioned attached drawing
The (if present)s such as four " are to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should manage
The data that solution uses in this way are interchangeable under appropriate circumstances, so that the embodiments described herein can be in addition to illustrating herein
Or the sequence other than the content of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that
Cover it is non-exclusive include, for example, containing the process, method, system, product or equipment of a series of steps or units need not limit
In step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, produce
The other step or units of product or equipment inherently.
Referring to Fig. 1, method one embodiment that multiple voice datas play simultaneously in the embodiment of the present invention includes:
101, the first voice data and second sound data to be played are obtained;
In the present embodiment, when user needs to play the first voice data and second sound data, equipment is obtained wait broadcast
The first voice data and second sound data put.
It should be noted that the type of the first voice data can be identical as the type of second sound data, the first sound
The type of data can also be different from the type of second sound data, for example, the first voice data is music class voice data, the
Two voice datas are video class voice data, are not construed as limiting herein.
102, the first voice data is divided into the first sound clip and second sound segment according to preset rules, and according to
Second sound data are divided into third sound clip and falling tone tablet section, the first sound clip and third sound by preset rules
Segment is corresponding, and second sound segment is corresponding with falling tone tablet section;
In the present embodiment, after obtaining the first voice data and second sound data to be played, according to preset rules
First voice data is divided into the first sound clip and second sound segment, and draws second sound data according to preset rules
Be divided into third sound clip and falling tone tablet section, the first sound clip is corresponding with third sound clip, second sound segment with
Falling tone tablet section is corresponding.
Wherein, preset rules can be to divide the first voice data and second sound data according to data volume respectively
Rule, can also for other rule, be not construed as limiting herein.
103, period first time is divided according to the first sound clip and third sound clip, and according to the rising tone
Tablet section divides second time period with falling tone tablet section, obtains the period to match with each sound clip;
In the present embodiment, period first time can be divided into two sections by equipment, wherein period first time first when
Between section correspond to the first sound clip, the second time period in period first time corresponds to third sound clip;Alternatively, when first
Between the first time period in period correspond to third sound clip, the second time period in period first time corresponds to the first sound piece
Section.
It should be noted that the second time period of the duration of the first time period in period first time and period first time
Duration can be identical, can not also be identical, be not construed as limiting herein.
Similarly, second time period can also be divided into two sections by equipment, and details are not described herein again.
In addition, period first time and second time period are preset period of time, in order to not influence three-dimensional sound, when presetting
Between the period it is corresponding with the integral multiple of a L channel and right channel, if three-dimensional sound needs multichannel to support, preset period of time
It is corresponding with the integral multiple of a L channel or right channel, it needs to classify L channel and right channel at this time, it is specific a kind of
Classification may refer to following table:
L channel | Right channel | L channel | Right channel | L channel | Right channel | L channel | Right channel |
1.1 | 2.1 | 3.1 | 4.1 | 1.2 | 2.2 | 3.2 | 4.2 |
Wherein, two sound clips of 1.1 and 1.2 corresponding first voice datas in above table, 2.1 and 2.2 is corresponding
Two sound clips of second sound data, two sound clips of 3,1 and 3,2 corresponding third voice datas, 4,1 and 4,2 pairs
Answer two sound clips of falling tone sound data.
It should be noted that the present embodiment is described with the angle of two voice datas, in practical applications, this
The angle that invention can extend at least two voice datas is described, than four voice datas in table as described above
Angle is described.
104, each sound clip is sent to corresponding receiving device according to the period.
In the present embodiment, after the period for obtaining matching with each sound clip, according to the period by each sound clip
It is sent to corresponding receiving device, receiving device includes speaker, loudspeaker, earphone, bluetooth headset etc..
In the present embodiment, be divided into the different periods time cycle, section is by corresponding sound piece in different times
Section is sent to corresponding receiving device, so that different receiving devices plays different sound, in the feelings that the time cycle is sufficiently small
Under condition, sound, which can not be identified, in human ear tomography, to be realized while using similar time-multiplexed method to different sound
Data play out.It is played so the present invention can carry out different sound simultaneously, and not will form audio mixing, improved and listen to effect
Fruit.
Together refering to fig. 1, in some embodiments of the invention, above-mentioned to be divided into the first voice data according to preset rules
First sound clip and second sound segment, and second sound data are divided into third sound clip and according to preset rules
Four sound clips include:
The first voice data is divided into the first sound clip and according to the data volume of the first voice data got
Two sound clips, and second sound data are divided by third sound clip according to the data volume of the second sound data got
It is identical as the data volume of second sound segment with the data volume of falling tone tablet section, the first sound clip, third sound clip
Data volume is identical as the data volume of falling tone tablet section.
In the present embodiment, after the data volume for getting the first voice data, the first voice data is divided into phase
With two sub- voice datas of data volume, i.e. the first sound clip and second sound segment;Similarly, second sound number is being got
According to data volume after, second sound data are divided into two sub- voice datas and third sound piece with same quantity of data
Section and falling tone tablet section.
It is understood that in practical applications, equipment is in the number for getting the first voice data and second sound data
After amount, the first voice data can also be divided into two sub- voice datas of different data amount, and/or by second sound number
According to two sub- voice datas for being divided into different data amount, it is not construed as limiting herein.
Together refering to fig. 1, in some embodiments of the invention, above-mentioned to be divided into the first voice data according to preset rules
First sound clip and second sound segment, and second sound data are divided into third sound clip and according to preset rules
Include: after four sound clips
Number is distributed respectively for the first sound clip, second sound segment, third sound clip and falling tone tablet section
Or mark.
In the present embodiment, by distributing number or mark for each sound clip, in order to which equipment is according to each sound clip
Number or mark divide the time cycle.
Together refering to fig. 1, in some embodiments of the invention, above-mentioned acquisition the first voice data and second to be played
After voice data further include:
Judge whether corresponding first sample frequency of the first voice data is greater than corresponding second sampling of second sound data
Frequency;
If the first sample frequency is greater than the second sample frequency, corresponding second sample frequency of second sound data is adjusted
For the first sample frequency;
If the first sample frequency adjusts corresponding first sample frequency of the first voice data less than the second sample frequency
For the second sample frequency.
In the present embodiment, it is contemplated that the limitation of hardware device when the first voice data of acquisition and second sound data needs
Corresponding first sample frequency of first voice data and corresponding second sample frequency of second sound data are subjected to unification, example
Such as, if the first sample frequency is greater than the second sample frequency, corresponding second sample frequency of second sound data is adjusted to the
One sample frequency, the corresponding sample frequency of second sound data sample frequency corresponding with the first voice data is identical at this time, adopts
Sample frequency is all the first sample frequency;If the first sample frequency is less than the second sample frequency, and the first voice data is corresponding
First sample frequency is adjusted to the second sample frequency, at this time the corresponding sample frequency of the first voice data and second sound data pair
The sample frequency answered is identical, and sample frequency is all the second sample frequency.
Together refering to fig. 1, in some embodiments of the invention, above-mentioned to be sent to each sound clip accordingly according to the period
Receiving device include:
The first sound clip and second sound segment are sent to the first receiving device according to the period, and according to the time
Third sound clip and falling tone tablet section are sent to the second receiving device by section.
In the present embodiment, according to the period, the first sound clip is successively sent to the first receiving device, third sound by equipment
Tablet section is sent to the second receiving device, second sound segment is sent to the first receiving device and falling tone tablet section is sent to
Second receiving device.
As long as sound, which can not be identified, in human ear tomography it should be noted that the time cycle is set lower than a certain threshold value,
To realize while be played out to different voice datas using similar time-multiplexed method.
The method that multiple voice datas in embodiment play simultaneously to facilitate the understanding of the present invention, below by specifically answering
It is described with the method that scene plays multiple voice datas in the embodiment of the present invention simultaneously:
There are two the voice datas for needing to play, the respectively voice data 1 and 48KHz of 96KHz sample frequency now
The voice data 2 of sample frequency, equipment is by the corresponding 96KHz sample frequency of voice data 1 and the corresponding 48KHz of voice data 2
Sample frequency is uniformly processed, and the corresponding 48KHz sample frequency of voice data 2 is adjusted to 96KHz.Then equipment is by sound
Data 1 and voice data 2 are respectively divided into multiple sound clips and number and rearrange, the sound clip 1.1 of voice data 1,
1.2,1.3 ... 1.m, 2.1,2.2,2.3 ... the 2.n of sound clip of voice data 2.First time cycle is first divided by equipment
Two sections, the first time period of first time cycle is corresponding with sound clip 1.1, the second time period of first time cycle with
Sound clip 1.2 is corresponding, and similarly, the first time period of second time cycle is corresponding with sound clip 1.2, second week time
The second time period of phase is corresponding with sound clip 2.2, until obtain the period to match with each sound clip, sound piece at this time
Section sequence be (1.1,2.1), (1.2,2.2), (1.3,2.3) ..., according to sound clip sequence by sound clip 1.1,
1.2,1.3 ... 1.m, which are sent in earpiece 1, to be played out, and is sent 2.1,2.2,2.3 ... 2.n of sound clip in earpiece 2 and is carried out
It plays.
In addition, for the simplicity of description, the various embodiments described above and application scenarios be with the angle of two voice datas into
Row description, in practical applications, the angle that the present invention can extend at least two voice datas is described, i.e., from entirety
Angle be described, used method is similar with method used by previous embodiment, and details are not described herein again.
The method that multiple voice datas in the embodiment of the present invention are described above while playing is described below of the invention real
The equipment applying multiple voice datas in example while playing, referring to Fig. 2, multiple voice datas are broadcast simultaneously in the embodiment of the present invention
The one embodiment for the equipment put includes:
Acquiring unit 201, for obtaining the first voice data and second sound data to be played;
Division unit 202, the first voice data for will acquire the acquisition of unit 201 according to preset rules are divided into first
Sound clip and second sound segment, and the is divided into according to the second sound data that preset rules will acquire the acquisition of unit 201
Three sound clips and falling tone tablet section, the first sound clip is corresponding with third sound clip, second sound segment and the falling tone
Tablet section is corresponding;
Processing unit 203, the first sound clip and third sound clip for being divided according to division unit 202 are to first
Time cycle is divided, and is divided according to second sound segment and falling tone tablet section to second time period, is obtained
The period to match with each sound clip;
Transmission unit 204, for each sound clip to be sent to corresponding receiving device according to the period.
In the present embodiment, be divided into the different periods time cycle, section is by corresponding sound piece in different times
Section is sent to corresponding receiving device, so that different receiving devices plays different sound, in the feelings that the time cycle is sufficiently small
Under condition, sound, which can not be identified, in human ear tomography, to be realized while using similar time-multiplexed method to different sound
Data play out.It is played so the present invention can carry out different sound simultaneously, and not will form audio mixing, improved and listen to effect
Fruit.
With referring to Fig.2, in some embodiments of the invention, above-mentioned division unit 202 is got specifically for basis
First voice data is divided into the first sound clip and second sound segment by the data volume of the first voice data, and according to acquisition
To the data volumes of second sound data second sound data are divided into third sound clip and falling tone tablet section, the first sound
The data volume of tablet section is identical as the data volume of second sound segment, data volume and the falling tone tablet section of third sound clip
Data volume is identical.
In the present embodiment, after the data volume for getting the first voice data, the first voice data is divided into phase
With two sub- voice datas of data volume, i.e. the first sound clip and second sound segment;Similarly, second sound number is being got
According to data volume after, second sound data are divided into two sub- voice datas and third sound piece with same quantity of data
Section and falling tone tablet section.
It is understood that in practical applications, equipment is in the number for getting the first voice data and second sound data
After amount, the first voice data can also be divided into two sub- voice datas of different data amount, and/or by second sound number
According to two sub- voice datas for being divided into different data amount, it is not construed as limiting herein.
On the basis of embodiment shown in Fig. 2, referring to Fig. 3, in some embodiments of the invention, equipment further include:
Allocation unit 301, for the first voice data to be divided into the first sound according to preset rules in division unit 202
Segment and second sound segment, and second sound data are divided into third sound clip and falling tone tablet according to preset rules
Section after, for the first sound clip, second sound segment, third sound clip and the falling tone tablet section distribute respectively number or
Mark.
In the present embodiment, by distributing number or mark for each sound clip, in order to which equipment is according to each sound clip
Number or mark divide the time cycle.
On the basis of embodiment shown in Fig. 3, referring to Fig. 4, in some embodiments of the invention, equipment further include:
Judging unit 401, for obtaining the first voice data and second sound data to be played in acquiring unit 201
Afterwards, judge whether corresponding first sample frequency of the first voice data is greater than corresponding second sample frequency of second sound data;
Adjustment unit 402, if judge the first sample frequency greater than the second sample frequency, by for judging unit 401
Corresponding second sample frequency of two voice datas is adjusted to the first sample frequency;If judging unit 401 judges the first sample frequency
Less than the second sample frequency, then corresponding first sample frequency of the first voice data is adjusted to the second sample frequency.
In the present embodiment, it is contemplated that the limitation of hardware device when the first voice data of acquisition and second sound data needs
Corresponding first sample frequency of first voice data and corresponding second sample frequency of second sound data are subjected to unification, example
Such as, if the first sample frequency is greater than the second sample frequency, corresponding second sample frequency of second sound data is adjusted to the
One sample frequency, the corresponding sample frequency of second sound data sample frequency corresponding with the first voice data is identical at this time, adopts
Sample frequency is all the first sample frequency;If the first sample frequency is less than the second sample frequency, and the first voice data is corresponding
First sample frequency is adjusted to the second sample frequency, at this time the corresponding sample frequency of the first voice data and second sound data pair
The sample frequency answered is identical, and sample frequency is all the second sample frequency.
With referring to Fig.2, in some embodiments of the invention, transmission unit 204 is specifically used for first according to the period
Sound clip and second sound segment are sent to the first receiving device, and according to the period by third sound clip and the 4th
Sound clip is sent to the second receiving device.
It is apparent to those skilled in the art that for convenience and simplicity of description, the equipment of foregoing description
It with the specific work process of unit, can refer to corresponding processes in the foregoing method embodiment, details are not described herein.
In several embodiments provided herein, it should be understood that disclosed device and method can pass through it
Its mode is realized.For example, apparatus embodiments described above are merely indicative, for example, the division of the unit, only
Only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components can be tied
Another system is closed or is desirably integrated into, or some features can be ignored or not executed.Another point, it is shown or discussed
Mutual coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or logical of device or unit
Letter connection can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially
The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words
It embodies, which is stored in a storage medium, including some instructions are used so that a computer
Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the present invention
Portion or part steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can store journey
The medium of sequence code.
The above, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although referring to before
Stating embodiment, invention is explained in detail, those skilled in the art should understand that: it still can be to preceding
Technical solution documented by each embodiment is stated to modify or equivalent replacement of some of the technical features;And these
It modifies or replaces, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution.
Claims (10)
1. a kind of method that multiple voice datas play simultaneously, which is characterized in that the described method includes:
Obtain the first voice data and second sound data to be played;
First voice data is divided into the first sound clip and according to the data volume of the first voice data got
Two sound clips, and the second sound data are divided by third sound according to the data volume of the second sound data got
Segment and falling tone tablet section, first sound clip is corresponding with the third sound clip, the second sound segment with
The falling tone tablet section is corresponding;
Period first time is divided according to first sound clip and the third sound clip, and according to described
Two sound clips divide second time period with the falling tone tablet section, obtain matching with each sound clip when
Between section;
Each sound clip is sent to corresponding receiving device according to the period.
2. the method according to claim 1, wherein the data volume for the first voice data that the basis is got
First voice data is divided into the first sound clip and second sound segment, and according to the second sound data got
Data volume the second sound data are divided into third sound clip and falling tone tablet section includes:
First voice data is divided into the first sound clip according to the data volume of first voice data got
With second sound segment, and the second sound data are divided into according to the data volume of the second sound data got
Third sound clip and falling tone tablet section, the data volume of the data volume of first sound clip and the second sound segment
Identical, the data volume of the third sound clip is identical as the data volume of the falling tone tablet section.
3. method according to claim 1 or 2, which is characterized in that the number for the first voice data that the basis is got
First voice data is divided into the first sound clip and second sound segment according to amount, and according to the second sound got
The second sound data are divided into after third sound clip and falling tone tablet section by the data volume of data
Number is distributed respectively for first sound clip, second sound segment, third sound clip and falling tone tablet section
Or mark.
4. method according to claim 1 or 2, which is characterized in that it is described obtain the first voice data to be played and
After second sound data further include:
Judge whether corresponding first sample frequency of first voice data is greater than the second sound data corresponding second
Sample frequency;
If first sample frequency is greater than second sample frequency, by corresponding second sampling of the second sound data
Frequency is adjusted to first sample frequency;
If first sample frequency is less than second sample frequency, by corresponding first sampling of first voice data
Frequency is adjusted to second sample frequency.
5. method according to claim 1 or 2, which is characterized in that it is described according to the period by each sound piece
Section is sent to corresponding receiving device and includes:
First sound clip and the second sound segment are sent to the first receiving device according to the period, and
The third sound clip and the falling tone tablet section are sent to the second receiving device according to the period.
6. the equipment that a kind of multiple voice datas play simultaneously characterized by comprising
Acquiring unit, for obtaining the first voice data and second sound data to be played;
Division unit, for first voice data to be divided into first according to the data volume of the first voice data got
Sound clip and second sound segment, and drawn the second sound data according to the data volume of the second sound data got
It is divided into third sound clip and falling tone tablet section, first sound clip is corresponding with the third sound clip, and described
Two sound clips are corresponding with the falling tone tablet section;
Processing unit, for being drawn according to first sound clip and the third sound clip to period first time
Point, and second time period is divided according to the second sound segment and the falling tone tablet section, it obtains and each sound
The period that tablet section matches;
Transmission unit, for each sound clip to be sent to corresponding receiving device according to the period.
7. equipment according to claim 6, which is characterized in that the division unit, specifically for according to the institute got
First voice data is divided into the first sound clip and second sound segment, and root by the data volume for stating the first voice data
The second sound data are divided into third sound clip and the 4th according to the data volume of the second sound data got
Sound clip, the data volume of first sound clip is identical as the data volume of the second sound segment, the third sound
The data volume of segment is identical as the data volume of the falling tone tablet section.
8. equipment according to claim 6 or 7, which is characterized in that the equipment further include:
Allocation unit, for division unit according to preset rules by first voice data be divided into the first sound clip and
Second sound segment, and the second sound data are divided into third sound clip and falling tone sound according to the preset rules
After segment, distributed respectively for first sound clip, second sound segment, third sound clip and falling tone tablet section
Number or mark.
9. equipment according to claim 6 or 7, which is characterized in that the equipment further include:
Judging unit judges institute after obtaining the first voice data and second sound data to be played in acquiring unit
State whether corresponding first sample frequency of the first voice data is greater than corresponding second sample frequency of the second sound data;
Adjustment unit will be described if judging that first sample frequency is greater than second sample frequency for judging unit
Corresponding second sample frequency of second sound data is adjusted to first sample frequency;If judging unit judges that described first adopts
Sample frequency is less than second sample frequency, then corresponding first sample frequency of first voice data is adjusted to described the
Two sample frequencys.
10. equipment according to claim 6 or 7, which is characterized in that the transmission unit, be specifically used for according to it is described when
Between section first sound clip and the second sound segment be sent to the first receiving device, and according to the period
The third sound clip and the falling tone tablet section are sent to the second receiving device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610799425.2A CN106383690B (en) | 2016-08-31 | 2016-08-31 | A kind of method and apparatus that multiple voice datas play simultaneously |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610799425.2A CN106383690B (en) | 2016-08-31 | 2016-08-31 | A kind of method and apparatus that multiple voice datas play simultaneously |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106383690A CN106383690A (en) | 2017-02-08 |
CN106383690B true CN106383690B (en) | 2019-08-02 |
Family
ID=57938009
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610799425.2A Active CN106383690B (en) | 2016-08-31 | 2016-08-31 | A kind of method and apparatus that multiple voice datas play simultaneously |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106383690B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109189957B (en) * | 2018-08-30 | 2022-05-31 | 维沃移动通信有限公司 | Media data processing method and equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103903636A (en) * | 2012-12-28 | 2014-07-02 | 联想(北京)有限公司 | Playing method and device and electronic equipment |
CN104409086A (en) * | 2014-12-01 | 2015-03-11 | 联想(北京)有限公司 | Method for audio processing and electronic equipment |
CN105608935A (en) * | 2015-12-29 | 2016-05-25 | 北京奇艺世纪科技有限公司 | Detection method and device of audio and video synchronization |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103377674B (en) * | 2012-04-16 | 2017-09-19 | 富泰华工业(深圳)有限公司 | Audio playing apparatus and its control method |
-
2016
- 2016-08-31 CN CN201610799425.2A patent/CN106383690B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103903636A (en) * | 2012-12-28 | 2014-07-02 | 联想(北京)有限公司 | Playing method and device and electronic equipment |
CN104409086A (en) * | 2014-12-01 | 2015-03-11 | 联想(北京)有限公司 | Method for audio processing and electronic equipment |
CN105608935A (en) * | 2015-12-29 | 2016-05-25 | 北京奇艺世纪科技有限公司 | Detection method and device of audio and video synchronization |
Also Published As
Publication number | Publication date |
---|---|
CN106383690A (en) | 2017-02-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104954555B (en) | A kind of volume adjusting method and system | |
CN104869524B (en) | Sound processing method and device in three-dimensional virtual scene | |
CN102860048B (en) | For the treatment of the method and apparatus of multiple audio signals of generation sound field | |
CN106375907A (en) | Systems and methods for delivery of personalized audio | |
US20080004729A1 (en) | Direct encoding into a directional audio coding format | |
CN104361847B (en) | It is a kind of that interactive advertisement play system and method are carried out by audio | |
TW201820315A (en) | Improved audio headset device | |
DE112021004307T5 (en) | Earphone positioning and mounting | |
CN112312245B (en) | Audio playing method and related device | |
CN109036440B (en) | Multi-person conversation method and system | |
CN105723459B (en) | For improving the device and method of the perception of sound signal | |
CN107534825B (en) | Audio signal processing apparatus and method | |
CN107135301A (en) | A kind of audio data processing method and device | |
EP3313099A1 (en) | Apparatus and method for processing 3d audio signal based on hrtf, and highly realistic multimedia playing system using the same | |
CN106792365B (en) | Audio playing method and device | |
US20170223474A1 (en) | Digital audio processing systems and methods | |
CN106201425A (en) | A kind of method and device of intelligent terminal's audio frequency output | |
CN106383690B (en) | A kind of method and apparatus that multiple voice datas play simultaneously | |
CN108153508A (en) | A kind of method and device of audio frequency process | |
CN103794216A (en) | Voice audio mixing processing method and device | |
CN112083379B (en) | Audio playing method and device based on sound source localization, projection equipment and medium | |
CN101227763B (en) | Method and device for processing sound effect | |
DE102011003450A1 (en) | Generation of user-adapted signal processing parameters | |
CN112883222B (en) | Song recommendation playing method, electronic equipment and computer readable storage medium | |
Hirabayashi et al. | Sense of space: the audience participation music performance with high-frequency sound id. |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |