CN106028253B - The method and apparatus of mixed signal under generation - Google Patents

The method and apparatus of mixed signal under generation Download PDF

Info

Publication number
CN106028253B
CN106028253B CN201610460116.2A CN201610460116A CN106028253B CN 106028253 B CN106028253 B CN 106028253B CN 201610460116 A CN201610460116 A CN 201610460116A CN 106028253 B CN106028253 B CN 106028253B
Authority
CN
China
Prior art keywords
peak
target
value
mixed signal
peak value
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
Application number
CN201610460116.2A
Other languages
Chinese (zh)
Other versions
CN106028253A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201610460116.2A priority Critical patent/CN106028253B/en
Publication of CN106028253A publication Critical patent/CN106028253A/en
Application granted granted Critical
Publication of CN106028253B publication Critical patent/CN106028253B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04SSTEREOPHONIC SYSTEMS 
    • H04S3/00Systems employing more than two channels, e.g. quadraphonic
    • H04S3/002Non-adaptive circuits, e.g. manually adjustable or static, for enhancing the sound image or the spatial distribution

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Stereophonic System (AREA)

Abstract

The embodiment of the invention discloses a kind of method and apparatus of mixed signal under generation.The method comprise the steps that obtaining the audio signal of each sound channel in preset sound channel set;Lower mixed, mixed signal under generating initially is carried out to the audio signal of each sound channel in the preset sound channel set;According to it is described initially under each peak value in mixed signal determine target peak;Obtain target upper limit, the target upper limit be it is described initially under in mixed signal sampled value storage cap;When the target peak be higher than the target upper limit when, will it is described initially under mixed signal divided by downward coefficient, wherein the downward coefficient is determined according to target peak and target upper limit.

Description

The method and apparatus of mixed signal under generation
Technical field
The present invention relates to a kind of method and apparatus of mixed signal under audio signal processing technique field more particularly to generation.
Background technique
Sound channel is the mutually independent audio that sound is acquired or played back in different spatial in recording or broadcasting Signal.Corresponding number of loudspeakers when source of sound quantity when channel number is sound recording or playback.For by multichannel audio Signal is converted to the commonly known as lower hybrid technology of technology of binaural signal.It, can be by sound there are two tools using lower hybrid technology The normal stereo of road and two loudspeaker enclosures equipment reproduces original multi-channel audio signal.
Currently, the multi-channel audio signal of extensive utilization is 5.1 sound channel systems, in 5.1 sound channel system, including left front Around sound channel L, right front around sound channel R, in set around sound channel C, left back around sound channel Ls and right back around sound channel Rs.? From 5.1 as defined in International Telecommunication Union's (English: International Telecommunication Union, abbreviation: ITU) Sound channel be mixed into 2.0 it is stereosonic during, by left front around sound channel L, in set around sound channel C, left back around sound channel Ls Mix under the audio signal of three sound channels and exported from stereo left channel Lo, by right front around sound channel R, in set around sound channel C It mixes under the audio signal of sound channel Rs three sound channels from stereo right channel Ro and exports with right back.Specifically, general root The audio signal of stereo left channel Lo and stereo right channel Ro: Lo=L+0.707*C+0.707* are calculated according to following formula Ls, Ro=R+0.707*C+0.707*Rs.
Audio signal includes all sampled values in each second to audio, and wherein each sampled value is sound in the sampling period The integrated value of sound analog signal, for indicating the amplitude of sound.In two-channel stereo sound audio signals, a general sampled value It is recorded with 16 (2 byte).As can be seen that in both the above formula, when L=C=Ls=32767 (namely 16 maximums Value) when, the Lo being calculated from the formula is 79099.538, which has been more than 16 ranges that can be recorded.Therefore, can not In the case where predicting this generation, the way of ITU is the entire operation of pressure mostly divided by a coefficient 1+0.707+0.707, namely Lo=(L+0.707*C+0.707*Ls)/(1+0.707+0.707), Ro=(R+0.707*C+0.707*Rs)/(1+0.707+ 0.707), to avoid the generation of spilling.
However, the loudness of this mixed audio under causing is lost.According to decibel reduction formula 20*log10 (1/ (1+ 0.7071+0.7071)) be approximately equal to 7.65dB it is found that under mixed audio compare the loudness that former audio is lost about 7.56dB.
Summary of the invention
The embodiment of the invention provides a kind of method and apparatus of mixed signal under generation, and the sound of signal can be mixed under guarantee Degree loss avoids data in lower mixed signal from overflowing while reduction.
In a first aspect, the present invention provides a kind of method of mixed signal under generation, comprising:
Obtain the audio signal of each sound channel in preset sound channel set;
Lower mixed, mixed signal under generating initially is carried out to the audio signal of each sound channel in the preset sound channel set;
According to it is described initially under each peak value in mixed signal determine target peak;
Obtain target upper limit, the target upper limit be it is described initially under in mixed signal sampled value storage cap;
When the target peak be higher than the target upper limit when, will it is described initially under mixed signal divided by downward coefficient, wherein The downward coefficient is determined according to target peak and target upper limit.
Second aspect, the present invention provide a kind of device of mixed signal under generation, comprising:
First obtains module, for obtaining the audio signal of each sound channel in preset sound channel set;
Mixed module down, carried out for the audio signal to each sound channel in the preset sound channel set it is lower mixed, generate it is initial under Mixed signal;
Determining module, for according to it is described initially under each peak value in mixed signal determine target peak;
Second obtains module, for obtaining target upper limit, the target upper limit be it is described initially under sampled value in mixed signal Storage cap;
Lower module, for when the target peak be higher than the target upper limit when, by it is described initially under mixed signal divided by Lower coefficient, wherein the downward coefficient is determined according to target peak and target upper limit.
As can be seen from the above technical solutions, the embodiment of the present invention has the advantage that
In the present invention, mixed signal under generating initially is mixed under the audio signal according to each sound channel in preset sound channel set Afterwards, not as considered in the prior art, worst case occurs that (namely the audio in preset sound channel set in each sound channel is most Obtained when big value initially under peak value in mixed signal reach peak) and force initially descend mixed signal fixation divided by coefficient 1+0.707+0.707 first determines target peak in each peak value of mixed signal under initially come the case where avoiding data from overflowing Value, if the target peak be higher than lower mixed signal effective storage maximum value (i.e. target upper limit), by it is described initially under mixed signal Divided by coefficient is lowered, which determined according to target peak and target upper limit;Due to the target peak under normal circumstances Value attainable peak of peak value institute in mixed signal under being less than initially, thus will initially under mixed signal divided by being rung after lowering coefficient The loss of loudness caused by the loss of degree is less than in the prior art, and can be avoided data in lower mixed signal and overflow.
Detailed description of the invention
Fig. 1 is the flow diagram of one embodiment of the method for mixed signal under generation of the invention;
Fig. 2 is the structural schematic diagram of one embodiment of the device of mixed signal under generation of the invention;
Fig. 3 is the structural schematic diagram of one embodiment of terminal of the invention.
Specific embodiment
Referring to Fig. 1, Fig. 1 is the flow diagram of one embodiment of the method for mixed signal under generation of the invention.This In embodiment, the method for mixed signal includes: under generation
101, the audio signal of each sound channel in preset sound channel set is obtained.
It include at least two sound channels in preset sound channel set in the present embodiment.For concrete example, the preset sound channel set In include left front around sound channel, left back around sound channel, in set around sound channel and left at least two sound channels in sound channel. In another example include right front in the preset sound channel set around sound channel, right back around sound channel, in set around sound channel and right surround At least two sound channels in sound channel.
Wherein, in the audio signal of each sound channel include sampled data in the interior voice signal to the sound channel per second.It lifts For example, audio has 44100 samplings to speech simulation signal within each second, then the sampled data in per second includes 44100 sampled values, wherein each sampled value refers to the integrated value of voice signal in the sampling period each time, which uses In the amplitude for indicating voice signal.
102, lower mixed, mixed signal under generating initially is carried out to the audio signal of each sound channel in the preset sound channel set.
In the present embodiment, lower mix is referred to mixing the audio in different sound channels to export from a sound channel, should Mixed signal under the signal of output is known as.It for example, include left front in preset sound channel set around sound channel, left back surround sound Road and in set around sound channel, the audio signal of three sound channels in the preset sound channel set is carried out lower mixed, generated stereosonic L channel initially under mixed signal.Alternatively, in preset sound channel set include right front around sound channel, right back around sound channel and in It sets around sound channel, the audio signal of three sound channels in the preset sound channel set is carried out lower mixed, generate stereosonic right channel Initially under mixed signal.
In the present embodiment, carrying out lower mixed method to the audio signal of each sound channel is the prior art, and details are not described herein.
103, according to it is described initially under each peak value in mixed signal determine target peak.
In the present embodiment, there are many ways to target peak is determined according to each peak value in mixed signal under initially.For example, will The maximum peak value of value is as target peak in each peak value under initially in mixed signal.
104, obtain target upper limit, the target upper limit be it is described initially under in mixed signal sampled value storage cap.
In the present embodiment, the specific value of the target upper limit is depended on for mixing each sampling in signal under storing initial The digit of value.For example, each sampled value is stored with 16 (2 bytes), then the upper limit that can be deposited is 32767 namely target The upper limit is 32767.Certainly, each sampled value can also use 8,24,32, floating-point 32, other positions such as floating-point 64 Number is stored, and this is not restricted, and correspondingly storage cap can also change correspondingly.
105, when the target peak be higher than the target upper limit when, will it is described initially under mixed signal divided by downward coefficient, Wherein, the downward coefficient is determined according to target peak and target upper limit.
After target peak under determining initially in mixed signal, if the target peak is higher than target upper limit, then can determine Signal is mixed under direct storing initial will lead to data spilling, it is thus determined that lowering coefficient, which is according to target peak It is determined with target upper limit.Specifically, the downward coefficient is the ratio of the target peak and the target upper limit, alternatively, institute The ratio for stating target peak and the target upper limit is the factor lowered in coefficient, and this is not restricted.It then will be initial All sampled values in mixed signal are divided by the downward coefficient down.In this way, can avoid target peak is higher than target upper limit.
Optionally, in some possible embodiments of the present invention, letter is mixed since target peak is not necessarily initially lower Peak-peak in number, namely initially under mixed signal divided by lower coefficient after there is likely to be higher than target upper limit peak value.Cause This, will initially under mixed signal divided by coefficient is lowered after, also by this initially under all samplings higher than target upper limit in mixed signal Value replaces with the target upper limit.There is data spilling when this way it is possible to avoid mixing signal under storing initial.
It is mixed under the audio signal according to each sound channel in preset sound channel set under generating initially after mixed signal, not as existing Have and considers that worst case occurs that (namely the audio in preset sound channel set in each sound channel obtains when being maximum value in technology Peak value under initially in mixed signal reaches peak) and force initially descend mixed signal fixed divided by coefficient 1+0.707+ 0.707 come the case where avoiding data from overflowing, but first determines target peak in each peak value of mixed signal under initially, if the mesh Mark peak value be higher than lower mixed signal effective storage maximum value (i.e. target upper limit), then will it is described initially under mixed signal divided by lower system Number, which determined according to target peak and target upper limit;Since the target peak is less than just under normal circumstances The attainable peak of peak value institute in mixed signal under beginning, therefore mixed signal under initially is wanted divided by the loss for lowering loudness after coefficient It is lost less than loudness caused by the prior art, and can be avoided data in lower mixed signal and overflow.
In some possible implementations of the invention, can also using other methods according to it is described initially under mixed signal In each peak value determine target peak.For example, the frequency of occurrence of each peak value in peak set and the peak set is obtained, The peak set be it is described initially under all peak values for occurring in mixed signal;According to the appearance of peak value each in the peak set Number determines the target peak, wherein the frequency of occurrence of the target peak is greater than preset threshold value.
Wherein, there are many ways to target peak being determined according to the frequency of occurrence of peak value each in the peak set, Several citing description is carried out to therein below.
Citing one: it is successively sorted to each peak value in the peak set from big to small by the value of peak value;It will sequence Serial number is greater than first specific peaks in each peak value of preset threshold value as the target peak afterwards, wherein the specific peak The frequency of occurrence of value is greater than the frequency of occurrence summation of all peak values of the sequence before the specific peaks.
Specifically, it is assumed that include peak value x1, x2, x3, x4, x5, x6, x7 in peak set, arranged from big to small by value Sequence after sequence is x2, x4, x1, x3, x5, x6, x7, wherein the frequency of occurrence of peak value x2 is c2, and the frequency of occurrence of peak value x4 is C4, peak value x1 frequency of occurrence be c1, the frequency of occurrence of peak value x3 is c3, the frequency of occurrence of peak value x5 is c5, peak value x6 go out Occurrence number is c6, the frequency of occurrence of peak value x7 is c7.Specifically, the preset threshold value is 3.So, serial number is greater than 3 after sequence Each peak value is four peak values after coming x1.If c5 is less than c2+c4+c1+c3, c6 is greater than c2+c4+c1+c3+c5, and c7 is greater than C2+c4+c1+c3+c5+c6, then x6 is first specific peaks after sequence in each peak value of the serial number greater than 3, therefore by x6 As the target peak.
Citing two from big to small successively sorts to each peak value in the peak set by the value of peak value;It will sequence First frequency of occurrence is greater than the peak value of the first threshold value as the target peak in each peak value afterwards.
Specifically, it is assumed that include peak value x1, x2, x3, x4, x5, x6, x7 in peak set, arranged from big to small by value Sequence after sequence is x2, x4, x1, x3, x5, x6, x7, wherein the frequency of occurrence of peak value x2 is 6, and the frequency of occurrence of peak value x4 is 4, the frequency of occurrence of peak value x1 is 8, the frequency of occurrence of peak value x3 is 9, the frequency of occurrence of peak value x5 is 15, the occurrence out of peak value x6 Number is 10, the frequency of occurrence of peak value x7 is 15.Specifically, the first threshold value is 15, then first frequency of occurrence is greater than 15 Peak value is x5, using the x5 as the target peak.
Citing three from big to small successively sorts to each peak value in the peak set by the value of peak value;It will sequence First specific peaks in each peak value afterwards are as the target peak, wherein the specific peaks and come the spy The frequency of occurrence summation of all specific peaks before determining peak value is greater than the second threshold value for the first time.
Specifically, it is assumed that include peak value x1, x2, x3, x4, x5, x6, x7 in peak set, arranged from big to small by value Sequence after sequence is x2, x4, x1, x3, x5, x6, x7, wherein the frequency of occurrence of peak value x2 is 6, and the frequency of occurrence of peak value x4 is 4, the frequency of occurrence of peak value x1 is 8, the frequency of occurrence of peak value x3 is 9, the frequency of occurrence of peak value x5 is 15, the occurrence out of peak value x6 Number is 10, the frequency of occurrence of peak value x7 is 15.Specifically, the second threshold value is 30, occurrence is gone out due to x2, x4, x1, x3, x5 Number synthesis is greater than 30 for the first time, therefore using x5 as target peak.
In the present embodiment, when the frequency of occurrence of some peak value or the frequency of occurrence summation of certain several peak value are secondary lower than preset When number, the sound total duration for indicating that the peak value or several peak values represent is no more than preset time period, then immediately should The sound that peak value or several peak values represent weakens, and will not make a big impact to former audio;Moreover, because target peak Value be less than initially under the maximum peak value of value in mixed signal, then lowering under coefficient is less than initially in mixed signal Maximum peak value/the target upper limit of value, thus initially under mixed signal divided by the loss of loudness caused by after the downward coefficient also therewith Reduce.
The present invention is understood for aspect, below with reference to a practical application scene to the side of mixed signal under the generation in the present invention Method carries out citing description.
Get left front around the audio signal L of sound channel, left back around sound channel audio signal Ls, in set surround sound After the audio signal C in road three audio signals, according to formula Lo=L+0.707*C+0.707*Ls to three audio signals Carry out it is lower it is mixed generate L channel Lo initially under mixed signal.
To L channel Lo initially under peak value in mixed signal traverse, and record each peak value., time for example First peak value gone through is 35320, then record peak value 35320, frequency of occurrence 1, second peak value traversed are 34890, then record peak value 34890, frequency of occurrence 1, the third peak value traversed is 35320, then at the peak of record The corresponding frequency of occurrence of value 35320 adds 1, and so on.All peak values and every in mixed signal under getting L channel Lo initially After the frequency of occurrence of a peak value, the frequency of occurrence of all peak values and each peak value in mixed signal under getting L channel Lo initially Afterwards, it is successively sorted, is obtained shown in following table to all peak values from big to small by the value of peak value, following table is that L channel Lo is initial Down in mixed signal all peak values record form.
Call number Peak value Frequency of occurrence
1 45967 1
2 35448 1
3 35411 2
4 35320 2
5 35200 1
6 34890 9
7 34870 15
8 34868 11
9 34862 21
10 33224 61
11 33221 55
12 33111 2
13 32320 101
14 31200 1231
15 28891 9
16 90 515
17 52 1211
18 7 2233
Serial number is greater than first specific peaks in each peak value of preset threshold value (being specially 4 in the present embodiment) after sorting As the target peak, wherein the frequency of occurrence of the specific peaks is greater than the frequency of occurrence for the preceding all peak values that sort Summation.Specifically, first specific peaks is the peak value 34890 that call number is 6 in each peak value of the call number greater than 4 in upper table, It is thus determined that target peak is 34890.
Alternatively, being more than the peak value of preset time (being specially 4ms in the present embodiment) as target using first duration Peak value.Specifically, assuming in the audio signal in the present embodiment that sample rate is 44100 namely per second interior does 44100 to sound Sampling, then peak value when frequency of occurrence being also greater than 44100 × 4/1000=176 for the first time is as target peak, then, The peak value 31200 that call number is 14 is regard as target peak in upper table.
Alternatively, since call number is 1 peak value, when the duration summation of top n peak value is more than for the first time preset Between (in the present embodiment be specially 8ms) when, using n-th peak value as target peak.Specifically, assuming the audio in the present embodiment Sample rate is 44100 in signal, then duration summation is specially for the first time that frequency of occurrence summation is greater than for the first time more than 8ms 44100 × 8/1000=352.So, in upper table, when the frequency of occurrence summation of top n peak value is greater than 352 for the first time, due to The frequency of occurrence summation of preceding 13 peak values is 282, and the frequency of occurrence summation of preceding 14 peak values is 1513, therefore N=14, then will The peak value 31200 that call number is 14 is used as target peak.
The method of mixed signal under generation of the invention is described above, it below will be to letter mixed under generation of the invention Number device be described.
As shown in Fig. 2, Fig. 2 is the structural schematic diagram of one embodiment of the device of mixed signal under generation of the invention.This In embodiment, the device 200 of mixed signal includes: under generation
First obtains module 201, for obtaining the audio signal of each sound channel in preset sound channel set;
Mixed module 202 down, carries out lower mixed for the audio signal to each sound channel in the preset sound channel set, generates initial Mixed signal down;
Determining module 203, for according to it is described initially under each peak value in mixed signal determine target peak;
Second obtains module 204, for obtaining target upper limit, the target upper limit be it is described initially under sample in mixed signal The storage cap of value;
Lower module 205, for when the target peak be higher than the target upper limit when, by it is described initially under mixed signal remove To lower coefficient, wherein the downward coefficient is determined according to target peak and target upper limit.
In the present embodiment, mixed signal under generating initially is mixed under the audio signal according to each sound channel in preset sound channel set Afterwards, not as considered in the prior art, worst case occurs that (namely the audio in preset sound channel set in each sound channel is most Obtained when big value initially under peak value in mixed signal reach peak) and force initially descend mixed signal fixation divided by coefficient 1+0.707+0.707 first determines target peak in each peak value of mixed signal under initially come the case where avoiding data from overflowing Value, if the target peak be higher than lower mixed signal effective storage maximum value (i.e. target upper limit), by it is described initially under mixed signal Divided by coefficient is lowered, which determined according to target peak and target upper limit;Due to the target peak under normal circumstances Value attainable peak of peak value institute in mixed signal under being less than initially, thus will initially under mixed signal divided by being rung after lowering coefficient The loss of loudness caused by the loss of degree is less than in the prior art, and can be avoided data in lower mixed signal and overflow.
Optionally, the determining module 203 is specifically used for obtaining each peak value in peak set and the peak set Frequency of occurrence, wherein the peak set be it is described initially under all peak values for occurring in mixed signal;According to the peak value collection The frequency of occurrence of each peak value determines the target peak in conjunction, wherein the frequency of occurrence of the target peak is greater than preset threshold value.
Optionally, the determining module 203 is determining the mesh according to the frequency of occurrence of peak value each in the peak set When marking peak value, it is specifically used for:
It is successively sorted to each peak value in the peak set from big to small by the value of peak value;
Serial number after sequence is greater than to first specific peaks in each peak value of the preset threshold value as the target peak Value, wherein the frequency of occurrence of the specific peaks is greater than the frequency of occurrence of all peak values of the sequence before the specific peaks Summation.
Optionally, the determining module 203 is determining the mesh according to the frequency of occurrence of peak value each in the peak set When marking peak value, it is specifically used for:
It is successively sorted to each peak value in the peak set from big to small by the value of peak value;
First frequency of occurrence in each peak value after sequence is greater than the peak value of the first threshold value as the target peak.
Optionally, the determining module 203 is determining the mesh according to the frequency of occurrence of peak value each in the peak set When marking peak value, it is specifically used for:
It is successively sorted to each peak value in the peak set from big to small by the value of peak value;
Using first specific peaks in each peak value after sequence as the target peak, wherein the specific peaks And the frequency of occurrence summation of all specific peaks before coming the specific peaks is greater than the second threshold value for the first time.
Optionally, under the generation mixed signal device 200 further include:
Replacement module 206, for will it is described initially under mixed signal divided by downward coefficient after, by it is described initially under mixed signal In be higher than the target upper limit sampled value replace with the target upper limit.
The embodiment of the invention also provides another terminals, as shown in figure 3, for ease of description, illustrating only and this hair The relevant part of bright embodiment, it is disclosed by specific technical details, please refer to present invention method part.The terminal can be with Being includes mobile phone, tablet computer, PDA (Personal Digital Assistant, personal digital assistant), POS (Point of Sales, point-of-sale terminal), any terminal device such as vehicle-mounted computer, taking the terminal as an example:
Fig. 3 shows the block diagram of the part-structure of mobile phone relevant to terminal provided in an embodiment of the present invention.With reference to figure 3, mobile phone includes: radio frequency (Radio Frequency, RF) circuit 1010, memory 1020, input unit 1030, display unit 1040, sensor 1050, voicefrequency circuit 1060, Wireless Fidelity (wireless fidelity, WiFi) module 1070, processor The components such as 1080 and power supply 1090.It will be understood by those skilled in the art that handset structure shown in Fig. 3 is not constituted pair The restriction of mobile phone may include perhaps combining certain components or different component cloth than illustrating more or fewer components It sets.
It is specifically introduced below with reference to each component parts of the Fig. 3 to mobile phone:
RF circuit 1010 can be used for receiving and sending messages or communication process in, signal sends and receivees, particularly, by base station After downlink information receives, handled to processor 1080;In addition, the data for designing uplink are sent to base station.In general, RF circuit 1010 include but is not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier (Low Noise Amplifier, LNA), duplexer etc..In addition, RF circuit 1010 can also be logical with network and other equipment by wireless communication Letter.Any communication standard or agreement, including but not limited to global system for mobile communications (Global can be used in above-mentioned wireless communication System of Mobile communication, GSM), general packet radio service (General Packet Radio Service, GPRS), CDMA (Code Division Multiple Access, CDMA), wideband code division multiple access (Wideband Code Division Multiple Access, WCDMA), long term evolution (Long Term Evolution, LTE), Email, short message service (Short Messaging Service, SMS) etc..
Memory 1020 can be used for storing software program and module, and processor 1080 is stored in memory by operation 1020 software program and module, thereby executing the various function application and data processing of mobile phone.Memory 1020 can be led It to include storing program area and storage data area, wherein storing program area can be needed for storage program area, at least one function Application program (such as sound-playing function, image player function etc.) etc.;Storage data area, which can be stored, uses institute according to mobile phone Data (such as audio data, phone directory etc.) of creation etc..In addition, memory 1020 may include high random access storage Device, can also include nonvolatile memory, and a for example, at least disk memory, flush memory device or other volatibility are solid State memory device.
Input unit 1030 can be used for receiving the number or character information of input, and generate with the user setting of mobile phone with And the related key signals input of function control.Specifically, input unit 1030 may include touch panel 1031 and other inputs Equipment 1032.Touch panel 1031, also referred to as touch screen collect touch operation (such as the user of user on it or nearby Use the behaviour of any suitable object or attachment such as finger, stylus on touch panel 1031 or near touch panel 1031 Make), and corresponding attachment device is driven according to preset formula.Optionally, touch panel 1031 may include touch detection Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it It is converted into contact coordinate, then gives processor 1080, and order that processor 1080 is sent can be received and executed.In addition, Touch panel 1031 can be realized using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch surface Plate 1031, input unit 1030 can also include other input equipments 1032.Specifically, other input equipments 1032 may include But in being not limited to physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. It is one or more.
Display unit 1040 can be used for showing information input by user or be supplied to user information and mobile phone it is each Kind menu.Display unit 1040 may include display panel 1041, optionally, can use liquid crystal display (Liquid Crystal Display, LCD), the forms such as Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) To configure display panel 1041.Further, touch panel 1031 can cover display panel 1041, when touch panel 1031 detects After arriving touch operation on it or nearby, processor 1080 is sent to determine the type of touch event, is followed by subsequent processing device 1080 provide corresponding visual output according to the type of touch event on display panel 1041.Although in Fig. 3, touch panel 1031 and display panel 1041 are the input and input function for realizing mobile phone as two independent components, but in certain realities Apply in example, can be integrated by touch panel 1031 and display panel 1041 and that realizes mobile phone output and input function.
Mobile phone may also include at least one sensor 1050, such as optical sensor, motion sensor and other sensors. Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to ambient light Light and shade adjust the brightness of display panel 1041, proximity sensor can close display panel when mobile phone is moved in one's ear 1041 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (generally three axis) and add The size of speed can detect that size and the direction of gravity when static, can be used to identify application (such as the horizontal/vertical screen of mobile phone posture Switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;Also as mobile phone The other sensors such as configurable gyroscope, barometer, hygrometer, thermometer, infrared sensor, details are not described herein.
Voicefrequency circuit 1060, loudspeaker 1061, microphone 1062 can provide the audio interface between user and mobile phone.Audio Electric signal after the audio data received conversion can be transferred to loudspeaker 1061, be converted by loudspeaker 1061 by circuit 1060 For voice signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 1062, by voicefrequency circuit 1060 Audio data is converted to after reception, then by after the processing of audio data output processor 1080, through RF circuit 1010 to be sent to ratio Such as another mobile phone, or audio data is exported to memory 1020 to be further processed.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronics postal by WiFi module 1070 Part, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 3 is shown WiFi module 1070, but it is understood that, and it is not belonging to must be configured into for mobile phone, it can according to need do not changing completely Become in the range of the essence of invention and omits.
Processor 1080 is the control centre of mobile phone, using the various pieces of various interfaces and connection whole mobile phone, By running or execute the software program and/or module that are stored in memory 1020, and calls and be stored in memory 1020 Interior data execute the various functions and processing data of mobile phone, to carry out integral monitoring to mobile phone.Optionally, processor 1080 may include one or more processing units;Preferably, processor 1080 can integrate application processor and modulation /demodulation processing Device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is mainly located Reason wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 1080.
Mobile phone further includes the power supply 1090 (such as battery) powered to all parts, it is preferred that power supply can pass through power supply Management system and processor 1080 are logically contiguous, to realize management charging, electric discharge and power consumption pipe by power-supply management system The functions such as reason.
Although being not shown, mobile phone can also include camera, bluetooth module etc., and details are not described herein.
In embodiments of the present invention, processor 1080 included by the terminal also there is control to execute above lower mixed by generating The method flow that the device of signal executes.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit It closes or communicates to connect, 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 (12)

1. a kind of method of mixed signal under generation characterized by comprising
Obtain the audio signal of each sound channel in preset sound channel set;
Lower mixed, mixed signal under generating initially is carried out to the audio signal of each sound channel in the preset sound channel set;
According to it is described initially under each peak value in mixed signal determine target peak;
Obtain target upper limit, the target upper limit be it is described initially under in mixed signal sampled value storage cap;
When the target peak is higher than the target upper limit, will it is described initially under in mixed signal all sampled values divided by lowering system Number, wherein the downward coefficient is determined according to target peak and target upper limit, the specially described target peak and the mesh The ratio of the ratio or the target peak and the target upper limit of putting on limit is a factor in the downward coefficient.
2. the method for mixed signal under generation according to claim 1, which is characterized in that described according to the initial lower mixed letter Each peak value in number determines target peak, comprising:
Obtain the frequency of occurrence of each peak value in peak set and the peak set, wherein the peak set is described All peak values occurred in mixed signal under initially;
The target peak is determined according to the frequency of occurrence of peak value each in the peak set, wherein the target peak goes out Occurrence number is greater than preset threshold value.
3. the method for mixed signal under generation according to claim 2, which is characterized in that described according in the peak set The frequency of occurrence of each peak value determines the target peak, comprising:
It is successively sorted to each peak value in the peak set from big to small by the value of peak value;
Serial number after sequence is greater than to first specific peaks in each peak value of the preset threshold value as the target peak, In, the frequency of occurrence of the specific peaks is greater than the frequency of occurrence summation of all peak values of the sequence before the specific peaks.
4. the method for mixed signal under generation according to claim 2, which is characterized in that described according in the peak set The frequency of occurrence of each peak value determines the target peak, comprising:
It is successively sorted to each peak value in the peak set from big to small by the value of peak value;
First frequency of occurrence in each peak value after sequence is greater than the peak value of the first threshold value as the target peak.
5. the method for mixed signal under generation according to claim 2, which is characterized in that described according in the peak set The frequency of occurrence of each peak value determines the target peak, comprising:
It is successively sorted to each peak value in the peak set from big to small by the value of peak value;
Using first specific peaks in each peak value after sequence as the target peak, wherein the specific peaks and The frequency of occurrence summation of all specific peaks before coming the specific peaks is greater than the second threshold value for the first time.
6. the method for mixed signal under generation according to any one of claims 2 to 5, which is characterized in that it is described will it is described just After all sampled values are divided by coefficient is lowered in mixed signal under beginning, the method also includes:
By it is described initially under be higher than the sampled value of the target upper limit in mixed signal and replace with the target upper limit.
7. the device of mixed signal under a kind of generation characterized by comprising
First obtains module, for obtaining the audio signal of each sound channel in preset sound channel set;
Mixed module down carries out lower mixed, mixed letter under generating initially for the audio signal to each sound channel in the preset sound channel set Number;
Determining module, for according to it is described initially under each peak value in mixed signal determine target peak;
Second obtains module, for obtaining target upper limit, the target upper limit be it is described initially under in mixed signal sampled value deposit Store up the upper limit;
Lower module, for when the target peak is higher than the target upper limit, by it is described initially under all in mixed signal adopt Sample value is divided by downward coefficient, wherein the downward coefficient is determined according to target peak and target upper limit, the specially described mesh The ratio or the target peak of mark peak value and the target upper limit and the ratio of the target upper limit are the downward coefficient In a factor.
8. the device of mixed signal under generation according to claim 7, which is characterized in that the determining module is specifically used for obtaining Take the frequency of occurrence of each peak value in peak set and the peak set, wherein the peak set be it is described it is initial under All peak values occurred in mixed signal;The target peak is determined according to the frequency of occurrence of peak value each in the peak set, In, the frequency of occurrence of the target peak is greater than preset threshold value.
9. the device of mixed signal under generation according to claim 8, which is characterized in that the determining module is according to When the frequency of occurrence of each peak value determines the target peak in peak set, it is specifically used for:
It is successively sorted to each peak value in the peak set from big to small by the value of peak value;
Serial number after sequence is greater than to first specific peaks in each peak value of the preset threshold value as the target peak, In, the frequency of occurrence of the specific peaks is greater than the frequency of occurrence summation of all peak values of the sequence before the specific peaks.
10. the device of mixed signal under generation according to claim 8, which is characterized in that the determining module is according to institute When stating the frequency of occurrence of each peak value in peak set and determining the target peak, it is specifically used for:
It is successively sorted to each peak value in the peak set from big to small by the value of peak value;
First frequency of occurrence in each peak value after sequence is greater than the peak value of the first threshold value as the target peak.
11. the device of mixed signal under generation according to claim 8, which is characterized in that the determining module is according to institute When stating the frequency of occurrence of each peak value in peak set and determining the target peak, it is specifically used for:
It is successively sorted to each peak value in the peak set from big to small by the value of peak value;
Using first specific peaks in each peak value after sequence as the target peak, wherein the specific peaks and The frequency of occurrence summation of all specific peaks before coming the specific peaks is greater than the second threshold value for the first time.
12. the device of mixed signal under generation according to any one of claims 8 to 11, which is characterized in that described device is also Include:
Replacement module, for will it is described initially under after all sampled values are divided by coefficient is lowered in mixed signal, by it is described initially under The sampled value for being higher than the target upper limit in mixed signal replaces with the target upper limit.
CN201610460116.2A 2016-06-22 2016-06-22 The method and apparatus of mixed signal under generation Active CN106028253B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610460116.2A CN106028253B (en) 2016-06-22 2016-06-22 The method and apparatus of mixed signal under generation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610460116.2A CN106028253B (en) 2016-06-22 2016-06-22 The method and apparatus of mixed signal under generation

Publications (2)

Publication Number Publication Date
CN106028253A CN106028253A (en) 2016-10-12
CN106028253B true CN106028253B (en) 2018-12-11

Family

ID=57086388

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610460116.2A Active CN106028253B (en) 2016-06-22 2016-06-22 The method and apparatus of mixed signal under generation

Country Status (1)

Country Link
CN (1) CN106028253B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106792333B (en) * 2016-12-21 2019-05-31 深圳Tcl数字技术有限公司 The sound system of television set

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101159995A (en) * 2006-10-06 2008-04-09 索尼株式会社 Audio reproducing apparatus and program
CN102395097A (en) * 2011-09-29 2012-03-28 深圳市万兴软件有限公司 Method and system for down-mixing multi-channel audio signals
CN105551500A (en) * 2015-09-29 2016-05-04 宇龙计算机通信科技(深圳)有限公司 Audio signal processing method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100677629B1 (en) * 2006-01-10 2007-02-02 삼성전자주식회사 Method and apparatus for simulating 2-channel virtualized sound for multi-channel sounds

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101159995A (en) * 2006-10-06 2008-04-09 索尼株式会社 Audio reproducing apparatus and program
CN102395097A (en) * 2011-09-29 2012-03-28 深圳市万兴软件有限公司 Method and system for down-mixing multi-channel audio signals
CN105551500A (en) * 2015-09-29 2016-05-04 宇龙计算机通信科技(深圳)有限公司 Audio signal processing method and device

Also Published As

Publication number Publication date
CN106028253A (en) 2016-10-12

Similar Documents

Publication Publication Date Title
CN109511037B (en) Earphone volume adjusting method and device and computer readable storage medium
CN106210323B (en) A kind of speech playing method and terminal device
CN106714103B (en) A kind of network locating method and terminal device
CN106502826B (en) Data backup and transmission method and mobile terminal
CN103617797A (en) Voice processing method and device
CN107634785B (en) WiFi system, router and mobile terminal
CN106331359B (en) A kind of speech signal collection method, device and terminal
CN104427083A (en) Volume adjusting method and device
CN106095387B (en) A kind of the audio setting method and terminal of terminal
CN108897516B (en) Wearable device volume adjustment method and related product
CN106506437B (en) Audio data processing method and device
CN110209245A (en) Face identification method and Related product
CN106200970A (en) A kind of method of split screen display available and terminal
CN110212965B (en) Antenna switching method and related product
CN106550484B (en) Direct call communication method and terminal
CN104301824A (en) Drive-by-wire device, controller, method and device
CN107678822B (en) A kind of information processing method and device, terminal and readable storage medium storing program for executing
CN107172533B (en) A kind of method and apparatus and mobile terminal for selecting sound direction
CN106126170A (en) The audio method to set up of a kind of terminal and terminal
CN109889665B (en) Volume adjusting method, mobile terminal and storage medium
CN106028253B (en) The method and apparatus of mixed signal under generation
CN105897567B (en) A kind of method and device of information sharing
CN106231499A (en) A kind of audio Enhancement Method and device
CN108600906B (en) Playing control method and device for multiple sound boxes
CN103561176A (en) Method and device for acquiring call records of terminal device and terminal device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant