CN107920310A - A kind of method and mobile terminal of multi-microphone recording - Google Patents

A kind of method and mobile terminal of multi-microphone recording Download PDF

Info

Publication number
CN107920310A
CN107920310A CN201711122713.5A CN201711122713A CN107920310A CN 107920310 A CN107920310 A CN 107920310A CN 201711122713 A CN201711122713 A CN 201711122713A CN 107920310 A CN107920310 A CN 107920310A
Authority
CN
China
Prior art keywords
voice data
acquisition time
time section
value
microphone
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.)
Pending
Application number
CN201711122713.5A
Other languages
Chinese (zh)
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201711122713.5A priority Critical patent/CN107920310A/en
Publication of CN107920310A publication Critical patent/CN107920310A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • H04R3/12Circuits for transducers, loudspeakers or microphones for distributing signals to two or more loudspeakers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2430/00Signal processing covered by H04R, not provided for in its groups

Abstract

The present invention provides a kind of multi-microphone way of recording and mobile terminal, it is related to technical field of mobile terminals.Wherein, the described method includes:Obtain the voice data that multiple microphones each gather;Wherein, each microphone corresponds to a sound channel;The corresponding decibel value of each voice data in same acquisition time section is determined respectively;If the difference in the acquisition time section between the corresponding decibel value of each voice data is more than preset value, stereo process is carried out to each voice data in the acquisition time section, and be sent respectively to the corresponding sound channel of each microphone;The voice data that each sound channel receives is synthesized into audio sound-recording file.The embodiment of the present invention, same acquisition time section, when the difference between the corresponding decibel value of each microphone audio data is more than preset value, voice data after audio mixing is sent to each sound channel, and then, when playing the recording, each channel sound is in the same size, improves user's auditory perception.

Description

A kind of method and mobile terminal of multi-microphone recording
Technical field
The present invention relates to technical field of mobile terminals, and method and movement more particularly to a kind of recording of multi-microphone are eventually End.
Background technology
With the development of mobile terminal technology, mobile terminal has been obtained for widely using, and is particularly mobile terminal Multimedia sound-recording function, user can be recorded by the microphone in mobile terminal.
In first technology, there are a kind of mobile terminal of multi-microphone, such as the mobile terminal with two microphones, ginseng According to shown in Fig. 1, which has two microphones, the first microphone and second microphone is respectively designated as, wherein first The voice data A of microphone collection, is transferred directly to L channel, the voice data B of second microphone collection, is transferred directly to the right side Sound channel, then mobile terminal store the voice data of left and right acoustic channels respectively, when playing the recording, the left audio number of storage Played according to by L channel, the right audio channel data of storage are played by R channel.
Inventor has found that above-mentioned prior art has the disadvantage that during the above-mentioned prior art is studied:It is more The mobile terminal of a microphone, during recording, either posture is different or imprudence has sheltered from certain for the placement position of mobile terminal A microphone etc., can all impact the effect of the microphone radio reception, ultimately result in the sound size of each microphone records Possible gap is excessive, and when playing the recording, each sound channel directly plays its corresponding voice data, the sound for causing each sound channel to be broadcast The possible gap of sound size is excessive.For example, the mobile terminal with two microphones, during recording, user's imprudence has sheltered from a left side The corresponding microphone of sound channel, then the voice data sound of the microphone records is smaller, and when playing the recording, L channel sound is small, Right channel sound is relatively large, and the experience of user's sense of hearing is poor.
The content of the invention
The present invention provides a kind of method and mobile terminal of multi-microphone recording, it is intended to solves in playback, it is each The problem of corresponding channel sound difference in size of microphone is big, user's sense of hearing experience difference.
In a first aspect, an embodiment of the present invention provides a kind of method of multi-microphone recording, including:
Obtain the voice data that multiple microphones each gather;Wherein, each microphone corresponds to a sound channel;
The corresponding decibel value of each voice data in same acquisition time section is determined respectively;
If the difference in the acquisition time section between the corresponding decibel value of each voice data is more than preset value, Stereo process is carried out to each voice data in the acquisition time section,
And it is sent respectively to the corresponding sound channel of each microphone;
The voice data that each sound channel receives is synthesized into audio sound-recording file.
Second aspect, the embodiment of the present invention additionally provide a kind of mobile terminal, including:
Voice data acquisition module, the voice data each gathered for obtaining multiple microphones;Wherein, each microphone A corresponding sound channel;
Voice data decibel value determining module, for determining each voice data pair in same acquisition time section respectively The decibel value answered;
Audio mixing sending module, if between the corresponding decibel value of each voice data in the acquisition time section Difference be more than preset value, stereo process is carried out to each voice data in the acquisition time section,
And it is sent respectively to the corresponding sound channel of each microphone;
Audio sound-recording file synthesis module, the voice data for each sound channel to be received synthesize audio sound-recording file.
The third aspect, the embodiment of the present invention additionally provide a kind of mobile terminal, which includes processor, memory And the computer program that can be run on the memory and on the processor is stored in, the computer program is by the place Reason device realizes the step of method of multi-microphone recording of the present invention when performing.
Fourth aspect, the embodiment of the present invention additionally provide a kind of computer-readable recording medium, the computer-readable storage Computer program is stored on medium, the computer program realizes multi-microphone recording of the present invention when being executed by processor Method the step of.
In embodiments of the present invention, mobile terminal obtains the voice data that each microphone each gathers first;For every A acquisition time section, according to the corresponding voice data of each microphone, determines that each voice data is corresponded in each collection period Decibel value, then by each acquisition time section, the difference between the corresponding decibel value of each voice data, carries out with preset value Compare;When some acquisition time section, when the difference between the corresponding decibel value of each voice data is more than preset value, illustrate, should Acquisition time section, the sound size gap of each microphone audio data are too big;Then to each microphone of the acquisition time section Corresponding voice data carries out stereo process, by the voice data after stereo process, is sent to the corresponding sound channel of each microphone, Each sound channel have received same remixed audio data, and the Data Synthesis that each sound channel is received is audio sound-recording file, and then, When playing the recording, the sound that each sound channel plays is in the same size, and then improves the sense of hearing experience of user.
Brief description of the drawings
Fig. 1 shows the flow chart of the method for two microphone locations in the prior art;
Fig. 2 shows the flow chart of the method for the multi-microphone recording provided in the embodiment of the present invention one;
Fig. 3 shows the flow chart of the method for two microphone locations provided in the embodiment of the present invention one;
Fig. 4 shows the flow chart of the method for the multi-microphone recording provided in the embodiment of the present invention two;
Fig. 5 shows the flow chart of the method for the multi-microphone recording provided in the embodiment of the present invention three;
Fig. 6 shown in the embodiment of the present invention three, the mobile terminal of two microphones, each microphone and corresponding sensing Device structure diagram;
Fig. 7 shows the structure diagram of according to embodiments of the present invention four mobile terminals provided;
Fig. 8 shows the structure diagram of the according to embodiments of the present invention four another mobile terminals provided;
Fig. 9 shows the structure diagram of the according to embodiments of the present invention four another mobile terminals provided;
Figure 10 shows the hardware architecture diagram of mobile terminal provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is part of the embodiment of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained without creative efforts Example, belongs to the scope of protection of the invention.
【Embodiment of the method part】
Embodiment one
With reference to Fig. 2, show the flow chart of the method for the multi-microphone recording of the embodiment of the present invention one, can specifically include Following steps:
Step 101, the voice data that multiple microphones each gather is obtained;Wherein, each microphone corresponds to a sound channel.
In embodiments of the present invention, mobile terminal includes multiple microphones, each microphone corresponds to a sound channel.Record During sound, each microphone all recording audio data.For example, referring to shown in Fig. 3, when the movement mobile terminal includes two Mikes Wind, microphone A and microphone B, then sound channel include L channel and R channel, each each one sound channel of correspondence of microphone, it is assumed that wheat Gram wind A corresponds to L channel, and microphone B corresponds to R channel;During recording, two microphones all recording audio data, from microphone A, Obtained voice data is voice data A, and from microphone B, obtained voice data is voice data B.
Mobile terminal is stored the voice data of each microphone records.The above-mentioned mobile end including multiple microphones End, during playback, each sound channel plays it and corresponds to the voice data of microphone collection, or plays treated audio number According to.In embodiments of the present invention, microphone can be digital microphone, can also simulate microphone, right in the embodiment of the present invention This is not specifically limited.For digital microphone, the voice data collected is digital signal, for simulating microphone, collection The voice data arrived is analog signal.
The voice data that multiple microphones each gather is obtained, directly can directly be obtained by each microphone in recording , when microphone is simulates microphone, the voice data of collection is analogue data, when microphone is digital microphone, The voice data of collection is numerical data.
The voice data that multiple microphones each gather is obtained, can also be correspondingly arranged in recording by each microphone Sensor, obtain the voice data of each microphone collection.
Step 102, the corresponding decibel value of each voice data in same acquisition time section is determined respectively.
In embodiments of the present invention, according to the corresponding each voice data of the above-mentioned each microphone collected, by pre- The method for transformation put, obtains same acquisition time section, the corresponding decibel value of each voice data.In this step, same collection Period, the size of the corresponding decibel value of each voice data, can characterize the collection moment, the sound of each voice data is big It is small.
With reference to Fig. 3, for example, the above-mentioned mobile terminal with two microphones, during recording, voice data A and audio are obtained Data B, according to this step, respectively obtains voice data A and the corresponding decibel values of voice data B.
In embodiments of the present invention, can be by the gatherer process of the voice data, average is divided into multiple acquisition times Section, unequal can also be divided into multiple acquisition time sections by its.In embodiments of the present invention, to acquisition time section Setting is not especially limited.
Step 103, if the difference in the acquisition time section between the corresponding decibel value of each voice data is big In preset value, stereo process is carried out to each voice data in the acquisition time section, and be sent respectively to each wheat Gram corresponding sound channel of wind.
In embodiments of the present invention, in order to ensure, in each acquisition time section, the corresponding each sound channel of each microphone, When playing the recording that the terminal is recorded, each channel sound difference in size is smaller or almost indifference, based on experience value, or people The auditory perception of ear, presets corresponding decibel value threshold value.In embodiments of the present invention, the definite method of the preset value is not done and had Body limits.
During the present invention is implemented, calculate first, in the acquisition time section, the difference between the corresponding decibel value of each voice data Value.
When mobile terminal includes two microphones, with reference to shown in Fig. 3, above-mentioned B pairs of voice data A and voice data are obtained The difference for the decibel value answered.
, can be by the acquisition time section when mobile terminal includes exceeding more than two microphones, each audio number It is ranked up according to corresponding decibel value, the difference between maximum corresponding decibel value and minimum corresponding decibel value is calculated, to difference Value takes absolute value, and obtains, in the acquisition time section, the difference between the corresponding decibel value of each voice data.
For example, when mobile terminal includes three microphones, during according to recording, in the acquisition time section, collection it is each The voice data of microphone, determines that corresponding decibel value is respectively:First microphone 70, second microphone 80, the 3rd microphone 90, first three corresponding decibel values are ranked up, it is maximum for the 3rd microphone 90, it is minimum for the first microphone 70, meter The absolute value for calculating the difference between maximum decibel value and minimum decibel value is 20, then in the acquisition time section, each voice data Difference between corresponding decibel value is 20.
During the present invention is implemented, when when mobile terminal includes exceeding more than two microphones or this is gathered Between in section, the corresponding decibel value of all voice datas, takes the absolute value of difference, is finally added all absolute values two-by-two respectively, Obtain in the acquisition time section, the difference between the corresponding decibel value of each voice data.
For above-mentioned example, during using this method, in the acquisition time section, the corresponding decibel value of all voice datas, point The absolute value for not taking difference two-by-two is:10th, 10,20, all absolute values are added, then in the acquisition time section, each audio number It is 40 according to the difference between corresponding decibel value.
In embodiments of the present invention, when mobile terminal includes exceeding more than two microphones, when being gathered to calculating one Between in section, the difference approach between the corresponding decibel value of each voice data, is not especially limited.It is but it should be recognized that each In acquisition time section, the definite method of the difference between the corresponding decibel value of each voice data with above-mentioned preset value, it is necessary to have There is correspondence.That is, for above-mentioned example, determined by above two method, in the acquisition time section, Ge Geyin Frequency according to the difference between corresponding decibel value be 20 and 40 when, it is necessary to there is correspondence with preset value.
By in the acquisition time section, difference and preset value between the corresponding decibel value of each voice data are compared, When the difference is more than preset value, illustrate, in the acquisition time section, the gap of the sound size of each voice data is excessive, right Each voice data in the acquisition time section carries out stereo process.
When mobile terminal includes two microphones, with reference to shown in Fig. 3, as voice data A and corresponding point of voice data B The difference of shellfish value is more than preset value, illustrates in the acquisition time section, the sound size gap mistake of voice data A and voice data B Greatly, in order not to influence the experience of the sense of hearing of user, it is necessary to right, voice data A and voice data B carry out stereo process, to audio number According to A by 21 data flows, by voice data B by 22 data flows, stereo process is carried out.
Stereo process is carried out to each voice data in the acquisition time section, mainly, in the acquisition time section Each voice data takes average, by the voice data after above-mentioned stereo process, by the acquisition time section, and sound size gap mistake Big each voice data, is converted into a voice data.
In embodiments of the present invention, in the acquisition time section, by the voice data uniquely determined after stereo process, difference It is sent to the corresponding sound channel of each microphone.
After audio mixing, due to, in the acquisition time section, the voice data that the corresponding sound channel of each microphone obtains is all identical, When the acquisition time section, which is set, is less than certain preset value, equivalent to, when the mobile terminal playing recording, each moment All sound channels, voice data is identical, its sound size is also identical, avoid multi-microphone mobile terminal recording when, respectively The problem of voice data sound difference in size of a microphone records is big so that the sound size that each sound channel plays is identical, carries The experience of user's sense of hearing is risen.
For example, when mobile terminal includes two microphones, with reference to shown in Fig. 3, as B pairs of voice data A and voice data When difference between the decibel value answered is more than preset value, illustrate that the sound size gap of voice data A and voice data B is excessive, In order not to influence the experience of the sense of hearing of user, to voice data A and voice data B, stereo process is carried out.After stereo process Voice data, respectively according to 23 data flows and 24 data flows, is sent to L channel and R channel, it is, sound is big Small gap excessive voice data A and voice data B, are replaced with the voice data after audio mixing is unified, eliminated, voice data A With the sound size gap of voice data B.
Step 104, the voice data that each sound channel receives is synthesized into audio sound-recording file.
The data received for above-mentioned each sound channel, after synthesis, have just obtained the audio file of multi-microphone recording.Example Such as, when mobile terminal includes two microphones, and two microphones sound size gap it is larger when, with reference to shown in Fig. 3, according to The received voice data of L channel, and the received voice data of R channel, obtain recorded audio data, by the recorded audio data Preserve.When playing the recorded audio data, the voice data that left and right acoustic channels play is identical, is all the audio number after stereo process According to, and then improve the experience of user's sense of hearing.
When mobile terminal includes two microphones, with reference to shown in Fig. 3, as voice data A and corresponding point of voice data B When difference between shellfish value is less than or equal to preset value, illustrate that the sound size gap of voice data A and voice data B is little, it is right The sense of hearing experience of user influences little;According to voice data and the correspondence of sound channel, by voice data A according to 11 data flows To being transmitted directly to corresponding L channel, by voice data B, according to 12 data flows, be transmitted directly to R channel;According to a left side The received voice data of sound channel, and the received voice data of R channel obtain audio sound-recording data, which is protected Deposit, the voice data that above-mentioned left and right sound channels receive is synthesized into audio sound-recording file.It is left when playing the audio sound-recording data The voice data that R channel plays is essentially identical, does not influence the sense of hearing experience of user.
In embodiments of the present invention, mobile terminal is according in the acquisition time section, the corresponding voice data of each microphone, Determine the decibel value of each voice data, by the acquisition time section, the difference between the corresponding decibel value of each voice data, Compared with preset value;When in the acquisition time section, the difference between the corresponding decibel value of each voice data is more than default During value, illustrate, in the acquisition time section, the sound size gap of the corresponding voice data of each microphone is excessive, this is gathered In period, each voice data carries out stereo process, and the voice data after stereo process is sent to each sound channel, will be each The voice data that sound channel receives synthesizes audio sound-recording file, and then, when playing the recording, the sound that each sound channel plays is big It is small identical, improve the experience of user's sense of hearing.
Embodiment two
With reference to Fig. 4, the flow chart of the method for multi-microphone recording provided by Embodiment 2 of the present invention is shown, specifically can be with Include the following steps:
Step 201, the voice data that multiple microphones each gather is obtained;Wherein, each microphone corresponds to a sound channel.
In embodiments of the present invention, step 201, with reference to the step 101 in above-described embodiment one, details are not described herein again.
Step 202, the sampled value of each voice data in the acquisition time section is obtained respectively.
In embodiments of the present invention, when above-mentioned microphone is simulates microphone, analog-to-digital conversion is first passed around, will be collected The simulation voice data, be first converted into digital signal;When above-mentioned microphone is digital microphone, due to digital microphone Built-in analog-to-digital conversion module, the voice data collected inherently digital signal, at this time, without carrying out analog-to-digital conversion.
In embodiments of the present invention, during the digital signal that above-mentioned each voice data is converted into, each voice data is total Sampled point number is all identical, and the sampling instant of each sampled point of each identical numbering is identical, and the sampling period is identical, to each sampled point Data are identified all in accordance with same locating depth s, and are stored, for example, each voice data can be identified with the locating depth of 16 Digital signal, then above-mentioned voice data digital signal, the value range of its each sample point data is all-(215)~ (215- 1), i.e., the digital signal of above-mentioned each voice data, the value range of each sample point data is -32768~32767.
By the digital signal of each voice data, according to the above-mentioned sampled point of the digital signal of each voice data collection when Between order, the packet of number is fixed, stores above-mentioned packet.In embodiments of the present invention, by the sampling number of fixed number According to being considered as the voice data of same acquisition time section.Can also, according to the acquisition time order of above-mentioned sampled point, carry out not solid Determine the packet of number, but it should be recognized that same acquisition time section, the sampled point number of each voice data must be identical.
For example, it is assumed that the above-mentioned sampled point cycle is 0.00001s, the fixed number of sample point data is 256, then 0.00001 × 256=0.00256s is an acquisition time section.512 sampled points can also be set to first acquisition time section, to the Two acquisition time sections set 256 sampled points, and 1 sampled point is set to the 3rd acquisition time section.In the present example, it is right This, is not especially limited.
For example, can by the digital signal of voice data, according to the order of sampled data, in same acquisition time section, with The sample point data of 256 digital signals is one group, then the sampled value of A voice datas, can be with according to acquisition time section, after packet For:First acquisition time section, A0={ a0, a1, a2, a3, a4.....a255 }, the second acquisition time section, A1=a256, A257, a258, a259, a260.....a511 }, the 3rd acquisition time section, A2=a512, a513, a514, a515, A516.....a767 } ... .., wherein, a0 is the sampled value of the 1st sampled point when A voice datas change into digital signal, A1 is the sampled value of the 2nd sampled point when A voice datas change into digital signal, and so on, by all A voice datas The sampled value of digital signal be grouped and store and finish.
The sampled value of the digital signal of B voice datas, according to acquisition time section, can be after packet:First acquisition time Section, B0={ b0, b1, b2, b3, b4.....b255 }, the second acquisition time section, B1=b256, b257, b258, b259, B260.....b511 }, the 3rd acquisition time section, B2={ b512, b513, b514, b515, b516.....b767 } ... .., Wherein, b0 is the sampled value of the 1st sampled point when B voice datas change into digital signal, and b1 changes into number for B voice datas The sampled value of the 2nd sampled point during word signal, same reason, by the sampled value of the digital signal of other voice datas, According to acquisition time section, it is grouped and stores.
Step 203, according to the average value or described of the sampled value of each voice data, respectively definite each audio data samples value The summation of sampled value.
Calculate in same acquisition time section, the average sample value of each voice data digital signal samples value.For example, it is directed to Above-mentioned A voice datas, the first acquisition time section, A0It is average=(| a0 |+| a1 |+| a2 |+... ..+ | a255 |)/256, second adopts Collect period, A1It is average=(| a256 |+| a257 |+| a258 |+... ..+ | a511 |)/256, and so on, A audio numbers have been calculated According to the sampled value of digital signal, in the average sample value of each acquisition time section.
In embodiments of the present invention, can also calculate in same acquisition time section, each voice data digital signal is adopted Total sampled value of sample value.For example, it is directed to A voice datas, the first acquisition time section, A0Always=(| a0 |+| a1 |+| a2 |+... ..+ | a255 |), the second acquisition time section, A1Always=(| a256 |+| a257 |+| a258 |+... ..+ | a511 |), and so on, meter The sampled value of A voice data digital signals is calculated, in total sampled value of each acquisition time section, i.e. each acquisition time section is adopted The summation of sample value.
According to the above method, determine respectively, in the acquisition time section, the average value of each respective sampled value of voice data Or the summation of sampled value.
Step 204, the acquisition time is determined according to the average value of the sampled value or the summation of the sampled value respectively The corresponding decibel value of the voice data in section.
In embodiments of the present invention, a certain acquisition time section, the corresponding decibel value of each voice data, when can be by the collection Between in section, the average sample value of each voice data determines, can also be by, in the acquisition time section, each audio data samples value Summation determines.In embodiments of the present invention, in a certain acquisition time section, when the corresponding decibel value of each voice data is by the collection Between average sample value in section determine or determine to be not especially limited by the summation of sampled value, but it should be recognized that same In acquisition time section, the definite method of the corresponding decibel value of each voice data needs to be consistent.
In embodiments of the present invention, it is assumed that in a certain acquisition time section, the corresponding decibel value of the voice data is averaged by it When sampled value determines, the corresponding decibel value of the voice data is P, then P can be determined using the following formula:
P=F/ (2s-1)×100
Wherein, P is in the acquisition time section, the corresponding decibel value of the voice data, F is the sound in the acquisition time section The average sample value of frequency evidence, s are the position that is identified to sample point data to the voice data when being converted into digital signal It is deep.According to above-mentioned formula, determine, in the acquisition time section, the corresponding decibel value of each voice data.
In embodiments of the present invention, in a certain acquisition time section, the corresponding decibel value of the voice data is by its sampled value When summation determines, the acquisition time section, the corresponding decibel value P of voice data can also be obtained according to above-mentioned formula.
In embodiments of the present invention, in a certain acquisition time section, the corresponding decibel value of the voice data is by its sampled value When summation determines, simple deformation can also be carried out to above-mentioned formula, obtained, the acquisition time section, the corresponding decibel of voice data Value P, then P can be determined using the following formula:
P=F/ (2s-1)/N×100
Wherein, P is in the acquisition time section, the corresponding decibel value of the voice data, F is the sound in the acquisition time section The summation of the total sampled value, i.e. sampled value of frequency evidence, s are to the voice data when being converted into digital signal, to sampling number According to the locating depth being identified.According to above-mentioned formula, determine, in the acquisition time section, the corresponding decibel value of each voice data.At this In inventive embodiments, to an acquisition time section, the definite method of the corresponding decibel value of each voice data is not specifically limited, but is needed It is noted that when determining the corresponding decibel value of each voice data using distinct methods, it is right with it that its corresponding preset value is needed It should set.
According to the above method, determine in the acquisition time section, the corresponding decibel value of above-mentioned each voice data.
By determining in the acquisition time section, the sampled value of each microphone audio data, is determined by the sampled value, should In acquisition time section, the corresponding decibel value of the voice data, can accurately reflect, in the acquisition time section, the audio The sound size of data.
Step 205, if the difference in the acquisition time section between the corresponding decibel value of each voice data is small In equal to preset value, each voice data in the acquisition time section is sent respectively to corresponding sound channel.
In embodiments of the present invention, when in above-mentioned acquisition time section, the difference between the corresponding decibel value of each voice data When value is less than or equal to preset value, show in above-mentioned acquisition time section, the sound difference in size of each voice data is not up to default Situation, at this time, it is not necessary to carry out stereo process.
By in above-mentioned acquisition time section, each microphone, corresponding each voice data, is transmitted directly to its corresponding sound Road, in embodiments of the present invention, for the situation of not audio mixing, by above-mentioned acquisition time section, each microphone is corresponding Each voice data, is transmitted directly to corresponding sound channel, can use the prior art, in embodiments of the present invention, to this not Make specific limit.In this case, subsequently recording step goes to step 208.
Step 206, if the difference in the acquisition time section between the corresponding decibel value of each voice data is big In preset value, stereo process is carried out to each voice data in the acquisition time section, i.e. to the acquisition time section Interior each voice data is averaged.
In embodiments of the present invention, calculate in above-mentioned acquisition time section, between the corresponding decibel value of each voice data The method of difference, may be referred to the corresponding description in step 103 in example one of the present invention, here, repeating no more.
In embodiments of the present invention, when in above-mentioned acquisition time section, the difference between the corresponding decibel value of each voice data When value is more than preset value, showing in above-mentioned acquisition time section, the sound difference in size of each voice data is more than predetermined condition, this When, it is necessary to carry out stereo process.
When carrying out stereo process, by same acquisition time section, the average sample value of each voice data is overlapped and takes Average value.
For example, for the mobile terminal for including three microphones, in the first acquisition time section, the first voice data is A0, Second audio data is B0, and the 3rd voice data is C0, when in the first acquisition time section, above three voice data decibel corresponds to Decibel value between difference, during more than preset value, then the remixed audio data in above-mentioned acquisition time section for (A0+B0+C0)/ 3。
Simultaneously as in the digital signal that above-mentioned each voice data is converted into, the sampling instant one of each sampled point Cause, the sampled value of each identical numbering of above-mentioned each voice data digital signal, inherently same acquisition time section.Can With, for identical numbering, the corresponding decibel value of each sampled value is compared, the difference between the corresponding decibel value, During more than preset value, stereo process is carried out, can be by the identical numbering of each correspondence of above-mentioned each voice data digital signal Sampled value, is overlapped and is averaged.
For example, it is assumed that mobile terminal includes three microphones, the sampled point that the first voice data digital signal includes is:A ={ a0, a1, a2, a3, a4.....a255..... }, the sampled point that second audio data digital signal includes are:B=b0, B1, b2, b3, b4.....b255..... }, the sampled point that the 3rd voice data digital signal includes is:C=c0, c1, c2, C3, c4.....c255..... }, due to the sampled value of each identical numbering of each voice data digital signal, inherently Synchronization, when the corresponding decibel value of the sampled value of same numbering is more than preset value, directly by each of the identical numbering Value superposition is averaged, you can obtains synchronization, the voice data digital signal after audio mixing.
It is assumed that the first sampled point, the difference between the corresponding decibel value of sampled value of each voice data is more than preset value, Voice data digital signal after audio mixing is M, then, and m0=(a0+b0+c0)/3.Wherein, m 0 is the first sampled point, after audio mixing The sampled value of voice data digital signal.
Step 207, the voice data after stereo process is sent respectively to the corresponding sound channel of each microphone.
In embodiments of the present invention, the voice data digital signal after above-mentioned audio mixing, indifference are sent to each wheat Gram corresponding sound channel of wind.It is, by the acquisition time section, the excessive each voice data of sound size gap, uses audio mixing Voice data afterwards is unified to be replaced, and is eliminated, in the acquisition time section, the sound size gap of each voice data;Playing During the recording, the voice data that each sound channel plays is identical, is all the voice data after stereo process, and then improve user and listen Sense experience.
After audio mixing, due to, in the acquisition time section, the voice data that the corresponding sound channel of each microphone obtains is all identical, When the acquisition time section, which is set, is less than certain preset value, equivalent to, when the mobile terminal playing recording, each moment All sound channels, voice data is identical, its sound size is also identical, avoid multi-microphone mobile terminal recording when, respectively The problem of voice data sound difference in size of a microphone records is big so that the sound size that each sound channel plays is identical, carries The experience of user's sense of hearing is risen.
Step 208, the voice data that each sound channel receives is synthesized into audio sound-recording file.
In embodiments of the present invention, step 208, with reference to the step 105 in above-described embodiment one, details are not described herein again.
In embodiments of the present invention, mobile terminal is according in the acquisition time section, the corresponding voice data of each microphone, Using same method, each voice data is determined, in the acquisition time section, corresponding decibel value, when can this be gathered Between in section, the sound size of the corresponding voice data of each microphone, using same method, and then is converted into its corresponding point The size of shellfish value;By in the acquisition time section, the difference between the corresponding decibel value of each voice data, is compared with preset value Compared with;When in the acquisition time section, when the difference between the corresponding decibel value of each voice data is more than preset value, illustrate, this is adopted Collecting in the period, the sound size gap of the corresponding voice data of each microphone is excessive, by the acquisition time section, Ge Geyin Voice data after stereo process is sent to each sound channel by frequency according to stereo process is carried out, and then, when playing the recording, The sound size that each sound channel plays is identical, improves the experience of user's sense of hearing.
Embodiment three
With reference to Fig. 5, the flow chart of the method for the multi-microphone recording that the embodiment of the present invention three provides is shown, specifically can be with Include the following steps:
Step 301, the voice data that multiple microphones each gather is obtained;Wherein, each microphone corresponds to a sound channel.
In embodiments of the present invention, step 301, with reference to the step 101 in above-described embodiment one, details are not described herein again.
Step 302, for the acquisition time section, the sensor that corresponding each microphone is set is utilized respectively, each When microphone gathers voice data, corresponding transducing signal is obtained.
In embodiments of the present invention, mobile terminal sets a corresponding sensor beside each microphone, each When microphone gathers voice data, each corresponding sensor obtains corresponding sensor signal at the same time.For example, referring to Fig. 6 institutes Show, the mobile terminal of two microphones, sensor 1 is set beside the first microphone, sensing is set beside second microphone Device 2, during recording, since the first microphone and sensor 1 are closer to the distance, the transducing signal that sensor 1 gathers, and can characterize the The voice data of one microphone collection;Second microphone and sensor 2 are closer to the distance, the transducing signal that sensor 2 gathers, can be with Characterize the voice data of second microphone collection.
The sensor is used to obtain respective audio data, and the output of the sensor can be magnitude of voltage or current value.The biography Sensor can be sound pressure sensor or ultrasonic sensor, or other sensors.For example, in recording, acoustic pressure passes Sensor, the acoustic pressure experienced according to it, exports corresponding magnitude of voltage or current value, it is believed that the output of the sound pressure sensor Value, can characterize the voice data of its corresponding microphone collection.In embodiments of the present invention, the sensor of use is not made to have Body limits.
It should be noted that in embodiments of the present invention, for same mobile terminal, phase is set beside each microphone Same sensor, obtains the transducing signal of corresponding voice data.At this time, the output range of each sensor is identical.
Step 303, respectively according to the transducing signal of each microphone of correspondence, determine that the transducing signal of each microphone is averaged The summation of value or transducing signal.
In embodiments of the present invention, the transducing signal for the respective audio data that the sensor obtains, i.e. magnitude of voltage or electricity Flow valuve is usually analog signal, and the transducing signal obtained to above-mentioned each sensor, is sampled., will be solid according to sampling order Determine the sampled value of number, be considered as the data of an acquisition time section, in sequence, the sampled value of follow-up same number is considered as The data of next acquisition time section.Can also, according to the acquisition time order of above-mentioned sampled point, carry out being not fixed dividing for number Group, but it should be recognized that same acquisition time section, the sampled point number of each voice data must be identical.
At the same time, it is necessary to which explanation, the transducing signal obtained to each sensor, when being sampled, total sampled point is a Number is all identical, and the sampling instant of each sampled point of each identical numbering is identical, and each sampled value is exported all in accordance with raw sensor Voltage or current value size be identified.
For example, a certain sampling instant, to the voice data of a certain microphone collection, using sound pressure sensor, gets Magnitude of voltage is 2v, and at this time, the sampling instant, the voice data, corresponding sampled value is 2.
By the sampled value of each transducing signal, according to the acquisition time order of above-mentioned sampled point, dividing for number is fixed Group, or the packet of number is not fixed, store above-mentioned packet.For example, the sampled value of the transducing signal of A voice datas can be pressed According to sample time order, with 256 for one group, then A voice datas can be with after the sampled value packet of the transducing signal after sampling For:First acquisition time section, A0={ a0, a1, a2, a3, a4.....a255 }, the second acquisition time section, A1=a256, A257, a258, a259, a260.....a511 }, the 3rd acquisition time section, A2=a512, a513, a514, a515, A516.....a767 } ... .., wherein, a0 is the corresponding microphone of A voice datas, the sensing for the sensor acquisition that side is set Signal, in the sampled value of the 1st sampled point, a1 is the corresponding microphone of A voice datas, the biography for the sensor acquisition that side is set Feel signal, in the sampled value of the 2nd sampled point, and so on, the corresponding microphone of A voice datas is obtained, what side was set The transducing signal that sensor obtains, the sampled value packet in all collection periods, and store.
According to same method, the biography that the corresponding microphone of other voice datas, the sensor that side is set are obtained Feel signal, according to acquisition time order, sampled value is grouped and stored.
When in embodiments of the present invention, due to sampling, total sampled point number is all identical, each sampled point of each identical numbering Sampling instant it is identical, the collection moment of the identical numbering defined by the sample point data of same number is also identical.
In embodiments of the present invention, it is believed that, the output valve of the sensor, can characterize the sound that its corresponding microphone gathers Frequency evidence.Therefore, a certain acquisition time section, the corresponding decibel value of each voice data, can be each correspondence in the acquisition time section The corresponding decibel value of average value of transducing signal, or, in the acquisition time section, the total value of each corresponding transducing signal corresponds to Decibel value.In embodiments of the present invention, in a certain acquisition time section, corresponding the definite of decibel value of each voice data does not make Specific to limit, but it should be recognized that in same acquisition time section, the definite method of the corresponding decibel value of each voice data needs It is consistent.
Determine respectively, in the acquisition time section, the average value or transducing signal of each respective transducing signal of voice data Summation.
For example, by the transducing signal of A voice datas, according to sample time order, with 256 for one group, adopted as one Collect the period, then A voice datas, the transducing signal after sampling, can be after being grouped according to acquisition time section:First acquisition time Section, A0={ a0, a1, a2, a3, a4.....a255 }, the second acquisition time section, A1=a256, a257, a258, a259, A260.....a511 }, the 3rd acquisition time section A2={ a512, a513, a514, a515, a516.....a767 } ... .., its In, a0 is the corresponding microphone of A voice datas, the transducing signal that the sensor that side is set obtains, in adopting for the 1st sampled point Sample value, a1 are the corresponding microphone of A voice datas, the transducing signal that the sensor that side is set obtains, in the 2nd sampled point Sampled value, at this time, in the first acquisition time section, the transducing signal of the A voice datas, corresponding all sampled values are superimposed and put down Average is:A0It is average=(| a0 |+| a1 |+| a2 |+... ..+ | a255 |)/256, the second acquisition time section, A1It is average=(| a256 | + | a257 |+| a258 |+... ..+ | a511 |)/256, and so on, the sampling of the corresponding transducing signal of A voice datas has been calculated Value, in the average value of each acquisition time section.
In embodiments of the present invention, when same acquisition time section, the data sampling comprising same number, can adopt same Collect the period, the corresponding transducing signal of the voice data, all sampled values are directly folded to obtain the acquisition time section, the audio number According to the summation of corresponding transducing signal sampled value.
For example, by the corresponding transducing signal of A voice datas, according to sample time order, with 256 for one group, as one A acquisition time section, the then corresponding transducing signal of A voice datas, the transducing signal after sampling, after being grouped according to acquisition time section Can be:First acquisition time section, A0={ a0, a1, a2, a3, a4.....a255 }, the second acquisition time section, A1= { a256, a257, a258, a259, a260.....a511 }, the 3rd acquisition time section A2=a512, a513, a514, a515, A516.....a767 } ... .., wherein, a0 is the corresponding microphone of A voice datas, the biography for the sensor acquisition that side is set Feel signal, in the sampled value of the 1st sampled point, a1 is the corresponding microphone of A voice datas, and the sensor that side is set obtains Transducing signal, in the sampled value of the 2nd sampled point, at this time, gather acquisition time section first, the A voice datas are corresponding Transducing signal, corresponding all sampled values are directly superposed to:A0Always=(| a0 |+| a1 |+| a2 |+... ..+ | a255 |), the Two acquisition time sections, A1Always=(| a256 |+| a257 |+| a258 |+... ..+ | a511 |), and so on, A audio numbers have been calculated According to the sampled value of corresponding transducing signal, in the total value of each acquisition time section.
According to the above method, same acquisition time section is determined respectively, the transducing signal that each voice data is correspondingly arranged Sampled value.According to the above method, the sampled value of definite sensor can be, in the acquisition time section, the biography of each microphone Feel the average value of signal sampling value or the summation of each transducing signal sampled value., will be every in an acquisition time section Average value of the average value of the transducing signal sampled value of a microphone as the transducing signal of each microphone, by each microphone Transducing signal sampled value summation of the summation as the transducing signal of each microphone.
Step 304, the acquisition time is determined according to the summation of the average value of the transducing signal or transducing signal respectively The corresponding decibel value of each voice data in section.
In embodiments of the present invention, when in an acquisition time section, the corresponding transducing signal of each voice data, be it includes Sampled value average value when, it is assumed that the acquisition time section, the corresponding decibel value of voice data are P, then P can be used following Formula determines:
P=R/T × 100
Wherein, P is the acquisition time section, the corresponding decibel value of the voice data, and R is the acquisition time section, the audio The average value of the corresponding transducing signal of data, T are the output range of sensor in above-mentioned steps 302.According to above-mentioned formula, Determine, the acquisition time section, the corresponding decibel value of each voice data.
In embodiments of the present invention, when in an acquisition time section, the corresponding transducing signal of each voice data, be it includes Sampled value total value when, can also be obtained, the acquisition time section according to above-mentioned formula, the corresponding decibel value of each voice data P。
In embodiments of the present invention, when in an acquisition time section, the corresponding transducing signal of each voice data, be it includes Sampled value summation when, can also to above-mentioned formula carry out simple deformation, obtain, the acquisition time section, voice data correspond to Decibel value be P, then P can be determined using the following formula:
P=R/T/N × 100
Wherein, P is the acquisition time section, the corresponding decibel value of the voice data, and R is, the period during collection, the sound For frequency according to the summation of corresponding transducing signal, T is in above-mentioned steps 302, the output range of sensor, N is the acquisition time Section in, comprising total number of sample points.According to above-mentioned formula, determine, the acquisition time section, the corresponding decibel value of each voice data.
In embodiments of the present invention, to an acquisition time section, the definite method of the corresponding decibel value of each voice data is not done It is specific to limit, but it should be recognized that in same acquisition time section, determined using identical method, the acquisition time section, The corresponding decibel value of each voice data, moreover, for different acquisition time sections, when determining corresponding decibel using distinct methods During value, its corresponding preset value needs corresponding setting.
According to the above method, above-mentioned acquisition time section is determined, the corresponding decibel value of each voice data.
By determining same acquisition time section, the corresponding transducing signal of each microphone audio data, by the transducing signal Determine, the acquisition time section, the corresponding decibel value of the voice data, can accurately reflect, the acquisition time section, the sound The sound size of frequency evidence.
Step 305, if the difference in the acquisition time section between the corresponding decibel value of each voice data is small In equal to preset value, each voice data in the acquisition time section is sent respectively to corresponding sound channel.
In present example, step 305 may be referred to the step 205 in above-mentioned example two, and details are not described herein again.Need Illustrate, in such cases, recording step goes to step 308.
Step 306, if the difference in the acquisition time section between the corresponding decibel value of each voice data is big In preset value, stereo process is carried out to each voice data in the acquisition time section, i.e. to the acquisition time section Interior each voice data is averaged.
In embodiments of the present invention, the method for calculating the difference between the corresponding decibel value of each voice data, Ke Yican The corresponding description in step 103 in example one of the present invention is examined, here, repeating no more.
In embodiments of the present invention, when in above-mentioned acquisition time section, the difference between the corresponding decibel value of each voice data When value is more than preset value, showing in above-mentioned acquisition time section, the sound difference in size of each voice data is more than predetermined condition, this When, it is necessary to carry out stereo process.
When carrying out stereo process, by same acquisition time section, the average value of each voice data is overlapped and is averaged Value.
For example, for the mobile terminal for including three microphones, in the first acquisition time section, the first voice data is A0, Second audio data is B0, and the 3rd voice data is C0, when in the first acquisition time section, corresponding point of above three voice data Difference between shellfish value, during more than preset value, then the remixed audio data in above-mentioned acquisition time section are (A0+B0+C0)/3.
Step 307, the voice data after stereo process is sent respectively to the corresponding sound channel of each microphone.
In embodiments of the present invention, step 307 is with reference to the step 207 in above-described embodiment two, and details are not described herein again.
Step 308, the voice data that each sound channel receives is synthesized into audio sound-recording file.
In embodiments of the present invention, step 308, with reference to the step 105 in above-described embodiment one, details are not described herein again.
In embodiments of the present invention, the voice data after above-mentioned audio mixing, each microphone that is sent to of indifference are corresponded to Sound channel.It is, by the acquisition time section, the excessive each voice data of sound size gap, with the audio after audio mixing Data are unified to replace, and eliminates, in the acquisition time section, the sound size gap of each voice data;When playing the recording, The voice data that each sound channel plays is identical, is all the voice data after stereo process, and then improves the experience of user's sense of hearing.
After audio mixing, due to, in the acquisition time section, the voice data that the corresponding sound channel of each microphone obtains is all identical, When the acquisition time section, which is set, is less than certain preset value, equivalent to, when the mobile terminal playing recording, each moment All sound channels, voice data is identical, its sound size is also identical, avoid multi-microphone mobile terminal recording when, respectively The problem of voice data sound difference in size of a microphone records is big so that the sound size that each sound channel plays is identical, carries The experience of user's sense of hearing is risen.
In embodiments of the present invention, corresponding sensor is set beside each microphone, due to each microphone with it is right The sensor answered is set closer to the distance, it is believed that the output of the sensor, can characterize, the audio of microphone collection Data;According in the acquisition time section, the corresponding transducing signal of each microphone, using same method, determines mobile terminal Each voice data, in the acquisition time section, corresponding decibel value can be by the acquisition time section, each microphone pair The sound size for the voice data answered, using same method, and then is converted into the size of its corresponding decibel value;This is gathered In period, the difference between the corresponding decibel value of each voice data, compared with preset value;When the acquisition time section It is interior, when the difference between the corresponding decibel value of each voice data is more than preset value, illustrate, in the acquisition time section, Ge Gemai The sound size gap of gram corresponding voice data of wind is excessive, and by the acquisition time section, each voice data is carried out at audio mixing Reason, each sound channel is sent to by the voice data after stereo process, and then, when playing the recording, the sound of each sound channel broadcasting Sound size is identical, improves the experience of user's sense of hearing.
It should be noted that for embodiment of the method, in order to be briefly described, therefore it is all expressed as to a series of action group Close, but those skilled in the art should know, the embodiment of the present application and from the limitation of described sequence of movement, because according to According to the embodiment of the present application, some steps can use other orders or be carried out at the same time.Secondly, those skilled in the art also should Know, embodiment described in this description belongs to preferred embodiment, and involved action might not all be the application reality Necessary to applying example.
【Virtual bench embodiment part】
Example IV
With reference to shown in Fig. 7, an embodiment of the present invention provides a kind of mobile terminal 400, above-mentioned mobile terminal 400 specifically may be used With including:
Voice data acquisition module 401, the voice data each gathered for obtaining multiple microphones;Wherein, Mei Gemai Gram wind corresponds to a sound channel;
Voice data decibel value determining module 402, for determining each audio number in same acquisition time section respectively According to corresponding decibel value;
Audio mixing sending module 403, if for the corresponding decibel value of each voice data in the acquisition time section Between difference be more than preset value, stereo process is carried out to each voice data in the acquisition time section,
And it is sent respectively to the corresponding sound channel of each microphone;
Audio sound-recording file synthesis module 405, the voice data for each sound channel to be received synthesizes audio sound-recording file.
Alternatively, with reference to shown in Fig. 8, on the basis of above-mentioned Fig. 7,
Above-mentioned voice data decibel value determining module 402, can include:
Audio data samples value acquiring unit 4021, for obtaining adopting for each voice data in the acquisition time section respectively Sample value;
Sampled value determination unit 4022, for the sampled value according to each voice data, determines each audio data samples respectively The summation of the average value of value or the sampled value;
First voice data decibel value determination unit 4023, for according to the average value of the sampled value or described adopting respectively The summation of sample value, determines the corresponding decibel value of the voice data in the acquisition time section;
Above-mentioned audio mixing sending module 403, can include, voice data average value acquiring unit 4031, for being adopted to described Each voice data in the collection period is averaged;First audio data transmission unit 4032, for by the voice data Average value is sent respectively to the corresponding sound channel of each microphone;
Above-mentioned mobile terminal, can also include:
Second audio data sending module 404, if corresponded to for each voice data in the acquisition time section Decibel value between difference be less than or equal to preset value, each voice data in the acquisition time section is sent respectively to correspond to Sound channel.
Alternatively, with reference to shown in Fig. 9, on the basis of above-mentioned Fig. 7,
Above-mentioned voice data decibel value determining module 402, can include:
Voice data transducing signal acquiring unit 4024, for for the acquisition time section, it is each to be utilized respectively correspondence The sensor that microphone is set, when each microphone gathers voice data, obtains corresponding transducing signal;
Sensor signal value determination unit 4025, for according to the transducing signal of each microphone of correspondence, determining each wheat respectively The average value of transducing signal or the summation of transducing signal of gram wind;
Second audio data decibel value determination unit 4026, for respectively according to the average value or sensing of the transducing signal The summation of signal, determines the corresponding decibel value of each voice data in the acquisition time section;
Above-mentioned stereo process module 403, can include, voice data average value acquiring unit 4031, for being adopted to described Each voice data in the collection period is averaged;First audio data transmission unit 4032, for by the voice data Average value is sent respectively to the corresponding sound channel of each microphone;
Above-mentioned mobile terminal, can also include:
Second audio data sending module 404, if corresponded to for each voice data in the acquisition time section Decibel value between difference be less than or equal to preset value, each voice data in the acquisition time section is sent respectively to correspond to Sound channel.
Mobile terminal provided in an embodiment of the present invention can realize that mobile terminal is realized in the embodiment of the method for Fig. 2 to Fig. 6 Each process, to avoid repeating, which is not described herein again.
In this way, in embodiments of the present invention, mobile terminal is according in the acquisition time section, the corresponding audio of each microphone Data, determine each voice data, and in the acquisition time section, corresponding decibel value can be each by the acquisition time section The sound size of the corresponding voice data of microphone and then it is converted into the size of its corresponding decibel value;By the acquisition time section It is interior, the difference between the corresponding decibel value of each voice data, compared with preset value;It is each when in the acquisition time section When difference between the corresponding decibel value of voice data is more than preset value, illustrate, in the acquisition time section, each microphone corresponds to Voice data sound size gap it is excessive, by the acquisition time section, each voice data carries out stereo process, by audio mixing Voice data after processing is sent to each sound channel, and then, when playing the recording, the sound size phase of each sound channel broadcasting Together, the experience of user's sense of hearing is improved.
Figure 10 is a kind of hardware architecture diagram for the mobile terminal for realizing each embodiment of the present invention,
The mobile terminal 700 includes but not limited to:It is radio frequency unit 701, mixed-media network modules mixed-media 702, audio output unit 703, defeated Enter unit 704, sensor 705, display unit 706, user input unit 707, interface unit 708, memory 709, processor The component such as 710 and power supply 711.It will be understood by those skilled in the art that the mobile terminal structure shown in Figure 10 is not formed Restriction to mobile terminal, mobile terminal can be included than illustrating more or fewer components, either combine some components or Different component arrangements.In embodiments of the present invention, mobile terminal include but not limited to mobile phone, tablet computer, laptop, Palm PC, car-mounted terminal, wearable device and pedometer etc..
Wherein, input unit 704, the voice data each gathered for obtaining multiple microphones;Wherein, each microphone A corresponding sound channel;
Processor 710, determines the corresponding decibel value of each voice data in same acquisition time section respectively;If institute The difference stated between the corresponding decibel value of each voice data in acquisition time section is more than preset value, to the acquisition time Each voice data in section carries out stereo process;The voice data that each sound channel receives is synthesized into audio sound-recording file;
Audio output unit 703, it is corresponding for the voice data after stereo process to be sent respectively to each microphone Sound channel.
The embodiment of the present invention, according in the acquisition time section, the corresponding voice data of each microphone, determines mobile terminal Each voice data, in the acquisition time section, corresponding decibel value can be by the acquisition time section, each microphone pair The sound size for the voice data answered and then it is converted into the size of its corresponding decibel value;By in the acquisition time section, Ge Geyin Frequency is according to the difference between corresponding decibel value, compared with preset value;When in the acquisition time section, each voice data pair When difference between the decibel value answered is more than preset value, illustrate, in the acquisition time section, the corresponding voice data of each microphone Sound size gap it is excessive, by the acquisition time section, each voice data carries out stereo process, by the sound after stereo process Frequency evidence is sent to each sound channel, and then, when playing the recording, the sound size that each sound channel plays is identical, improves use Family sense of hearing experience.
It should be understood that in the embodiment of the present invention, radio frequency unit 701 can be used for receiving and sending messages or communication process in, signal Reception and transmission, specifically, by from base station downlink data receive after, handled to processor 710;In addition, by uplink Data sending is to base station.In general, radio frequency unit 701 includes but not limited to antenna, at least one amplifier, transceiver, coupling Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 701 can also by wireless communication system and network and other set Standby communication.
Mobile terminal has provided wireless broadband internet to the user by mixed-media network modules mixed-media 702 and has accessed, and such as helps user to receive Send e-mails, browse webpage and access streaming video etc..
Audio output unit 703 can be receiving by radio frequency unit 701 or mixed-media network modules mixed-media 702 or in memory 709 It is sound that the voice data of storage, which is converted into audio signal and exports,.Moreover, audio output unit 703 can also be provided and moved The relevant audio output of specific function that dynamic terminal 700 performs is (for example, call signal receives sound, message sink sound etc. Deng).Audio output unit 703 includes loudspeaker, buzzer and receiver etc..
Input unit 704 is used to receive audio or video signal.Input unit 704 can include graphics processor (Graphics Processing Unit, GPU) 7041 and microphone 7042, graphics processor 7041 in video to capturing mould The static images or the view data of video obtained in formula or image capture mode by image capture apparatus (such as camera) carry out Processing.Picture frame after processing may be displayed on display unit 706.Picture frame after the processing of graphics processor 7041 can To be stored in memory 709 (or other storage mediums) or be transmitted via radio frequency unit 701 or mixed-media network modules mixed-media 702. Microphone 7042 can receive sound, and can be voice data by such acoustic processing.Voice data after processing can To be converted to the form output that mobile communication base station can be sent to via radio frequency unit 701 in the case of telephone calling model.
Mobile terminal 700 further includes at least one sensor 705, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein, ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 7061, and proximity sensor can close when mobile terminal 700 is moved in one's ear Display panel 7061 or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (generally three Axis) acceleration size, size and the direction of gravity are can detect that when static, it is (such as horizontal available for identification mobile terminal posture Portrait layout switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;Sensor 705 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, humidity Meter, thermometer, infrared ray sensor etc., details are not described herein.
Display unit 706 is used for the information for showing by information input by user or being supplied to user.Display unit 706 can wrap Display panel 7061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configures display panel 7061.
User input unit 707 can be used for the numeral or character information for receiving input, and produce the use with mobile terminal The key signals input that family is set and function control is related.Specifically, user input unit 707 include contact panel 7071 with And other input equipments 7072.Contact panel 7071, also referred to as touch-screen, collect user on it or neighbouring touch operation (for example user uses any suitable objects or annex such as finger, stylus on contact panel 7071 or in contact panel 7071 Neighbouring operation).Contact panel 7071 may include both touch detecting apparatus and touch controller.Wherein, touch detection Device detects the touch orientation of user, and detects the signal that touch operation is brought, and transmits a signal to touch controller;Touch control Device processed receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 710, receiving area Manage the order that device 710 is sent and performed.It is furthermore, it is possible to more using resistance-type, condenser type, infrared ray and surface acoustic wave etc. Type realizes contact panel 7071.Except contact panel 7071, user input unit 707 can also include other input equipments 7072.Specifically, other input equipments 7072 can include but is not limited to physical keyboard, function key (such as volume control button, Switch key etc.), trace ball, mouse, operation lever, details are not described herein.
Further, contact panel 7071 can be covered on display panel 7061, when contact panel 7071 is detected at it On or near touch operation after, send to processor 710 with determine touch event type, be followed by subsequent processing device 710 according to touch The type for touching event provides corresponding visual output on display panel 7061.Although in Fig. 10, contact panel 7071 is with showing Show that panel 7061 is the component independent as two to realize the function that outputs and inputs of mobile terminal, but in some embodiments In, can be integrated by contact panel 7071 and display panel 7061 and realize the function that outputs and inputs of mobile terminal, it is specific this Place does not limit.
Interface unit 708 is the interface that external device (ED) is connected with mobile terminal 700.For example, external device (ED) can include Line or wireless head-band earphone port, external power supply (or battery charger) port, wired or wireless data port, storage card end Mouth, port, audio input/output (I/O) port, video i/o port, earphone end for connecting the device with identification module Mouthful etc..Interface unit 708 can be used for receive the input (for example, data message, electric power etc.) from external device (ED) and One or more elements that the input received is transferred in mobile terminal 700 can be used in 700 He of mobile terminal Data are transmitted between external device (ED).
Memory 709 can be used for storage software program and various data.Memory 709 can mainly include storing program area And storage data field, wherein, storing program area can storage program area, application program (such as the sound needed at least one function Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as Voice data, phone directory etc.) etc..In addition, memory 709 can include high-speed random access memory, can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 710 is the control centre of mobile terminal, utilizes each of various interfaces and the whole mobile terminal of connection A part, by running or performing the software program or module that are stored in memory 709, and calls and is stored in memory Data in 709, perform the various functions and processing data of mobile terminal, so as to carry out integral monitoring to mobile terminal.Processing Device 710 may include one or more processing units;Preferably, processor 710 can integrate application processor and modulation /demodulation processing Device, wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor is mainly located Manage wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 700 can also include the power supply 711 (such as battery) to all parts power supply, it is preferred that power supply 711 Can be logically contiguous by power-supply management system and processor 710, so as to realize management charging by power-supply management system, put The function such as electricity and power managed.
In addition, mobile terminal 700 includes some unshowned function modules, details are not described herein.
【Entity apparatus embodiment part】
Preferably, the embodiment of the present invention also provides a kind of mobile terminal, including processor 710, and memory 709, is stored in On memory 709 and the computer program that can be run on above-mentioned processor 710, the computer program are performed by processor 710 Each process of the embodiment of the method for the above-mentioned multi-microphone recording of Shi Shixian, and identical technique effect can be reached, to avoid weight Multiple, which is not described herein again.
Based on the hardware configuration of above-mentioned mobile terminal, Detailed Description is carried out to various embodiments of the present invention below.
【Computer-readable medium embodiment part】
The embodiment of the present invention also provides a kind of computer-readable recording medium, and meter is stored with computer-readable recording medium Calculation machine program, the computer program realize each mistake of the embodiment of the method for above-mentioned multi-microphone recording when being executed by processor Journey, and identical technique effect can be reached, to avoid repeating, which is not described herein again.Wherein, above-mentioned computer-readable storage medium Matter, such as read-only storage (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation RAM), magnetic disc or CD etc..
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property includes, so that process, method, article or device including a series of elements not only include those key elements, and And other elements that are not explicitly listed are further included, or further include as this process, method, article or device institute inherently Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this Also there are other identical element in the process of key element, method, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on such understanding, technical scheme substantially in other words does the prior art Going out the part of contribution can be embodied in the form of software product, which is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal (can be mobile phone, computer, services Device, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
The embodiment of the present invention is described above in conjunction with attached drawing, but the invention is not limited in above-mentioned specific Embodiment, above-mentioned embodiment is only schematical, rather than restricted, those of ordinary skill in the art Under the enlightenment of the present invention, in the case of present inventive concept and scope of the claimed protection is not departed from, it can also make very much Form, these are belonged within the protection of the present invention.

Claims (14)

  1. A kind of 1. multi-microphone way of recording, applied to mobile terminal, it is characterised in that the described method includes:
    Obtain the voice data that multiple microphones each gather;Wherein, each microphone corresponds to a sound channel;
    The corresponding decibel value of each voice data in same acquisition time section is determined respectively;
    If the difference in the acquisition time section between the corresponding decibel value of each voice data is more than preset value, to institute The each voice data stated in acquisition time section carries out stereo process, and is sent respectively to the corresponding sound of each microphone Road;
    The voice data that each sound channel receives is synthesized into audio sound-recording file.
  2. It is 2. according to the method described in claim 1, it is characterized in that, each described in the same acquisition time section definite respectively The step of voice data corresponding decibel value, including:
    The sampled value of each voice data in the acquisition time section is obtained respectively;
    According to the sampled value of each voice data, determine respectively each audio data samples value average value or the sampled value it is total With;
    Respectively according to the average value of the sampled value or the summation of the sampled value, the audio in the acquisition time section is determined The corresponding decibel value of data.
  3. It is 3. according to the method described in claim 1, it is characterized in that, each described in the same acquisition time section definite respectively The step of voice data corresponding decibel value, including:
    For the acquisition time section, the sensor that corresponding each microphone is set is utilized respectively, sound is gathered in each microphone Frequency according to when, obtain corresponding transducing signal;
    Respectively according to the transducing signal of each microphone of correspondence, the average value or transducing signal of the transducing signal of each microphone are determined Summation;
    Respectively according to the summation of the average value of the transducing signal or transducing signal, each audio number in the acquisition time section is determined According to corresponding decibel value.
  4. 4. according to the method described in claim 3, it is characterized in that, the sensor includes:Sound pressure sensor, supersonic sensing Device wherein at least one;The transducing signal includes voltage signal or current signal.
  5. 5. according to the method described in claim 1, it is characterized in that, each audio in the acquisition time section Data carry out the step of stereo process, including:
    Each voice data in the acquisition time section is averaged.
  6. 6. according to the method described in claim 1, it is characterized in that, further include:
    If the difference in the acquisition time section between the corresponding decibel value of each voice data is less than or equal to preset value, Each voice data in the acquisition time section is sent respectively to corresponding sound channel.
  7. A kind of 7. mobile terminal, it is characterised in that including:
    Voice data acquisition module, the voice data each gathered for obtaining multiple microphones;Wherein, each microphone corresponds to One sound channel;
    Voice data decibel value determining module, for determining that each voice data is corresponding in same acquisition time section respectively Decibel value;
    Audio mixing sending module, if for the difference between the corresponding decibel value of each voice data in the acquisition time section Value is more than preset value, carries out stereo process to each voice data in the acquisition time section, and be sent respectively to each The corresponding sound channel of a microphone;
    Audio sound-recording file synthesis module, the voice data for each sound channel to be received synthesize audio sound-recording file.
  8. 8. mobile terminal according to claim 7, it is characterised in that the voice data decibel value determining module, including:
    Audio data samples value acquiring unit, for obtaining the sampled value of each voice data in the acquisition time section respectively;
    Sampled value determination unit, for the sampled value according to each voice data, determines being averaged for each audio data samples value respectively The summation of value or the sampled value;
    First voice data decibel value determination unit, for respectively according to the total of the average value of the sampled value or the sampled value With determine the corresponding decibel value of the voice data in the acquisition time section.
  9. 9. mobile terminal according to claim 7, it is characterised in that the voice data decibel value determining module, including:
    Voice data transducing signal acquiring unit, for for the acquisition time section, being utilized respectively corresponding each microphone and setting The sensor put, when each microphone gathers voice data, obtains corresponding transducing signal;
    Sensor signal value determination unit, for according to the transducing signal of each microphone of correspondence, determining the biography of each microphone respectively Feel the average value of signal or the summation of transducing signal;
    Second audio data decibel value determination unit, for respectively according to the total of the average value of the transducing signal or transducing signal With determine the corresponding decibel value of each voice data in the acquisition time section.
  10. 10. mobile terminal according to claim 9, it is characterised in that the sensor includes:Sound pressure sensor, ultrasound Wave sensor wherein at least one;The transducing signal includes voltage signal or current signal.
  11. 11. mobile terminal according to claim 7, it is characterised in that the stereo process module, including:
    Voice data average value acquiring unit, for being averaged to each voice data in the acquisition time section.
  12. 12. mobile terminal according to claim 7, it is characterised in that further include:
    Second audio data sending module, if for the corresponding decibel value of each voice data in the acquisition time section Between difference be less than or equal to preset value, each voice data in the acquisition time section is sent respectively to corresponding sound channel.
  13. 13. a kind of mobile terminal, it is characterised in that including processor, memory and be stored on the memory and can be in institute The computer program run on processor is stated, such as claim 1 to 6 is realized when the computer program is performed by the processor Any one of multi-microphone recording method the step of.
  14. 14. a kind of computer-readable recording medium, it is characterised in that computer journey is stored on the computer-readable recording medium Sequence, the multi-microphone recording as any one of claim 1 to 6 is realized when the computer program is executed by processor The step of method.
CN201711122713.5A 2017-11-14 2017-11-14 A kind of method and mobile terminal of multi-microphone recording Pending CN107920310A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711122713.5A CN107920310A (en) 2017-11-14 2017-11-14 A kind of method and mobile terminal of multi-microphone recording

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711122713.5A CN107920310A (en) 2017-11-14 2017-11-14 A kind of method and mobile terminal of multi-microphone recording

Publications (1)

Publication Number Publication Date
CN107920310A true CN107920310A (en) 2018-04-17

Family

ID=61896200

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711122713.5A Pending CN107920310A (en) 2017-11-14 2017-11-14 A kind of method and mobile terminal of multi-microphone recording

Country Status (1)

Country Link
CN (1) CN107920310A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110113493A (en) * 2019-05-06 2019-08-09 Oppo广东移动通信有限公司 More wheat ways of recording and Related product
CN112002345A (en) * 2020-08-14 2020-11-27 上海动听网络科技有限公司 Recording detection method and device suitable for sound waves
CN113973141A (en) * 2020-07-22 2022-01-25 华为技术有限公司 Protective shell, signal processing method, mobile device and electronic device
CN114974273A (en) * 2021-08-10 2022-08-30 中移互联网有限公司 Conference audio mixing method and device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002223493A (en) * 2001-01-26 2002-08-09 Matsushita Electric Ind Co Ltd Multi-channel sound collection device
CN103458210A (en) * 2013-09-03 2013-12-18 华为技术有限公司 Method, device and terminal for recording
CN103473028A (en) * 2013-08-30 2013-12-25 华为技术有限公司 Stereo recording method and device and terminal
CN103873977A (en) * 2014-03-19 2014-06-18 惠州Tcl移动通信有限公司 Recording system and method based on multi-microphone array beam forming
CN104519454A (en) * 2013-09-26 2015-04-15 华为技术有限公司 Audio signal output method and device
CN105719653A (en) * 2016-01-28 2016-06-29 腾讯科技(深圳)有限公司 Mixing processing method and device
CN105959457A (en) * 2016-06-28 2016-09-21 广东欧珀移动通信有限公司 Recording method based on double microphones, and terminal
CN107040843A (en) * 2017-03-06 2017-08-11 联想(北京)有限公司 The method and collecting device of same source of sound are obtained by two microphones
CN107221340A (en) * 2017-05-31 2017-09-29 福建星网视易信息系统有限公司 Real-time methods of marking, storage device and application based on MCVF multichannel voice frequency

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002223493A (en) * 2001-01-26 2002-08-09 Matsushita Electric Ind Co Ltd Multi-channel sound collection device
CN103473028A (en) * 2013-08-30 2013-12-25 华为技术有限公司 Stereo recording method and device and terminal
CN103458210A (en) * 2013-09-03 2013-12-18 华为技术有限公司 Method, device and terminal for recording
CN104519454A (en) * 2013-09-26 2015-04-15 华为技术有限公司 Audio signal output method and device
CN103873977A (en) * 2014-03-19 2014-06-18 惠州Tcl移动通信有限公司 Recording system and method based on multi-microphone array beam forming
CN105719653A (en) * 2016-01-28 2016-06-29 腾讯科技(深圳)有限公司 Mixing processing method and device
CN105959457A (en) * 2016-06-28 2016-09-21 广东欧珀移动通信有限公司 Recording method based on double microphones, and terminal
CN107040843A (en) * 2017-03-06 2017-08-11 联想(北京)有限公司 The method and collecting device of same source of sound are obtained by two microphones
CN107221340A (en) * 2017-05-31 2017-09-29 福建星网视易信息系统有限公司 Real-time methods of marking, storage device and application based on MCVF multichannel voice frequency

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110113493A (en) * 2019-05-06 2019-08-09 Oppo广东移动通信有限公司 More wheat ways of recording and Related product
CN113973141A (en) * 2020-07-22 2022-01-25 华为技术有限公司 Protective shell, signal processing method, mobile device and electronic device
CN113973141B (en) * 2020-07-22 2023-03-28 华为技术有限公司 Protective shell, signal processing method, mobile device and electronic device
CN112002345A (en) * 2020-08-14 2020-11-27 上海动听网络科技有限公司 Recording detection method and device suitable for sound waves
CN114974273A (en) * 2021-08-10 2022-08-30 中移互联网有限公司 Conference audio mixing method and device
CN114974273B (en) * 2021-08-10 2023-08-15 中移互联网有限公司 Conference audio mixing method and device

Similar Documents

Publication Publication Date Title
CN107799125A (en) A kind of audio recognition method, mobile terminal and computer-readable recording medium
CN110740259A (en) Video processing method and electronic equipment
CN107613131A (en) A kind of application program disturbance-free method and mobile terminal
CN107920310A (en) A kind of method and mobile terminal of multi-microphone recording
CN107977144A (en) A kind of screenshotss processing method and mobile terminal
CN107484081A (en) A kind of method of adjustment of audio signal, device, terminal and computer-readable recording medium
CN107911445A (en) A kind of information push method, mobile terminal and storage medium
CN108055411A (en) Flexible screen display methods, mobile terminal and computer readable storage medium
CN107231473A (en) A kind of audio output regulation and control method, equipment and computer-readable recording medium
CN108182028A (en) A kind of control method, terminal and computer readable storage medium
CN107908705A (en) A kind of information-pushing method, information push-delivery apparatus and mobile terminal
CN109194899A (en) A kind of method and terminal of audio-visual synchronization
CN107911735A (en) A kind of audio and video playing processing method, device and terminal
CN107483836A (en) A kind of image pickup method and mobile terminal
CN107864353A (en) A kind of video recording method and mobile terminal
CN113365085B (en) Live video generation method and device
CN107889044A (en) The processing method and processing device of voice data
CN110351407A (en) A kind of audio frequency playing method and mobile terminal
CN107785027A (en) A kind of audio-frequency processing method and electronic equipment
CN108540639A (en) Display processing method, equipment and the computer of Mosaic screen can storage mediums
CN107704828A (en) Methods of exhibiting, mobile terminal and the computer-readable recording medium of reading information
CN108196777A (en) A kind of flexible screen application process, equipment and computer readable storage medium
CN107749306A (en) A kind of method and mobile terminal for vibrating optimization
CN107908941A (en) The operating method and mobile terminal of application program
CN108650392A (en) A kind of call recording method and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20180417

RJ01 Rejection of invention patent application after publication