CN109067998A - Sound adjusting method, terminal device and the device with store function - Google Patents

Sound adjusting method, terminal device and the device with store function Download PDF

Info

Publication number
CN109067998A
CN109067998A CN201811076439.7A CN201811076439A CN109067998A CN 109067998 A CN109067998 A CN 109067998A CN 201811076439 A CN201811076439 A CN 201811076439A CN 109067998 A CN109067998 A CN 109067998A
Authority
CN
China
Prior art keywords
sound
volume
distance
loudspeaker
terminal device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811076439.7A
Other languages
Chinese (zh)
Other versions
CN109067998B (en
Inventor
邱情
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qiku Internet Technology Shenzhen Co Ltd
Original Assignee
Qiku Internet Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qiku Internet Technology Shenzhen Co Ltd filed Critical Qiku Internet Technology Shenzhen Co Ltd
Priority to CN201811076439.7A priority Critical patent/CN109067998B/en
Publication of CN109067998A publication Critical patent/CN109067998A/en
Application granted granted Critical
Publication of CN109067998B publication Critical patent/CN109067998B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions

Abstract

The invention discloses a kind of sound adjusting method, terminal device and with the device of store function, which comprises the sound that the terminal device is issued according to the first sound recipient received determines the position where the first sound recipient;Position where the first sound recipient, the volume parameters for adjusting the loudspeaker of the terminal device, volume difference of the sound for issuing the loudspeaker when reaching the position where the first sound recipient between the first default volume is lower than the first preset threshold.By the above method, the present invention can adjust the sound size of the loudspeaker of terminal device according to the distance between sound recipient and terminal device.

Description

Sound adjusting method, terminal device and the device with store function
Technical field
The present invention relates to terminal device technical fields, more particularly to a kind of sound adjusting method, terminal device and have The device of store function.
Background technique
In order to meet voice communication of the user in life and work, video calling, listen to music and viewing video Equal audiovisual demand, most terminals all have audio playing function, such as mobile phone, tablet computer, music player and recording pen. In general, terminal can play sound using loudspeaker.Loudspeaker is to convert electrical energy into mechanical energy, and mechanical energy is converted into sound energy Process, mainly utilize electromagnetic induction principle, when the coil in loudspeaker is powered, coil will generate magnetic field, with magnet Magnetic field interaction under, coil will vibrate, to drive vibration vibration of membrane, vibrating diaphragm arranges air and realizes sounding.
Take the mobile phone as an example, in use, when user and mobile phone distance farther out when, mobile phone speaker issue sound can Can be too small, user can't hear the tinkle of bells and miss incoming call or miss alarm clock calling;When user and mobile phone are closer, mobile phone is raised The sound that sound device issues may be too big, causes to send a telegram here suddenly or quarter-bell makes user get a fright, bad body is generated to user It tests.
Summary of the invention
The present invention solves the technical problem of how to prevent the distance between sound recipient and terminal device and end The sound of the loudspeaker of end equipment mismatches.
In order to solve the above technical problems, one technical scheme adopted by the invention is that providing a kind of sound tune of terminal device Section method, which comprises the sound that the terminal device is issued according to the first sound recipient for receiving, determine described in Position where first sound recipient;According to the position where the first sound recipient, the terminal device is adjusted The volume parameters of loudspeaker, the sound for issuing the loudspeaker when reaching the position where the first sound recipient with Volume difference between first default volume is lower than the first preset threshold.
Wherein, the terminal device includes the first microphone and second microphone;Where the first sound recipient Position includes the first distance L1 between the first sound recipient and the loudspeaker;The terminal device is according to receiving The first sound recipient issue sound, determine the position where the first sound recipient, specifically include: the terminal Equipment obtain the first acquisition volume P1 that first microphone acquires when the first sound recipient makes a sound and Corresponding first acquisition time T1;Obtain the second microphone is acquired when the first sound recipient makes a sound Two acquisition volume P2 and corresponding second acquisition time T2;According to the first acquisition volume P1 and the second acquisition volume The time difference △ T between volume difference △ P and the first acquisition time T1 and the second acquisition time T2 between P2, really Second distance L2 and the first sound recipient and institute between the fixed first sound recipient and first microphone State the third distance L3 between second microphone;Utilize the second distance L2, the third distance L3 and the loudspeaker The 5th distance L5 between the 4th distance L4 and the loudspeaker and the second microphone between first microphone, Determination obtains the first distance L1;Wherein, the second distance L2, the third distance L3 respectively with volume difference △ P, There are following relationships between time difference △ T and the spread speed V of sound: L2=V* △ T/ (10△P/20-1);L3=V* △ T/ (10△P/20-1)+V*(△T)。
Wherein, the position according to where the first sound recipient, adjusts the loudspeaker of the terminal device Volume parameters specifically include: the determining speaker volume with the first distance L1 with the first incidence relation;According to described true Fixed speaker volume adjusts the volume parameters of the loudspeaker of the terminal device.
Wherein, the determination and the first distance L1 have the speaker volume of the first incidence relation, comprising: according to First microphone when the first distance L1 arrived and the preset first distance and the loudspeaker issue target volume The second incidence relation between collected third acquisition volume P3, determines that third acquires volume P3;Wherein, the target volume Volume difference between volume and the first default volume that the first sound recipient can be made to receive is lower than the first default threshold Value;The volume that volume P3 and the preset loudspeaker issue is acquired according to the third of the determination to acquire with corresponding third Third incidence relation between volume, determines the speaker volume;Wherein, second incidence relation are as follows: P3=PA+20lg (L1/L4);The PA is the described first default volume.
Wherein, in the position according to where the first sound recipient, the loudspeaker of the terminal device is adjusted Volume parameters after, the method also includes the sound that: the terminal device is issued according to the noise source received, determine institute State the position where noise source;According to the position where the noise source, the volume ginseng of the loudspeaker of the terminal device is adjusted Number, the sound for issuing the loudspeaker is when reaching the position where the first sound recipient between the second default volume Volume difference be lower than the second preset threshold, wherein the second default volume be greater than the described first default volume.
Wherein, the position where the noise source includes the 6th distance between the noise source and first microphone The 7th distance L7 between L6, the noise source and the second microphone;The terminal device is according to the noise source received The sound of sending determines the position where the noise source, specifically includes: obtaining first microphone and sends out in the noise source The 4th acquisition volume P4 and corresponding 4th acquisition time T4 acquired when sound out;The second microphone is obtained described The 5th acquisition volume P5 and corresponding 5th acquisition time T5 acquired when noise source makes a sound;According to the 4th acquisition Volume difference △ P ' and the 4th acquisition time T4 between volume P4 and the 5th acquisition volume P5 are adopted with the described 5th Collect the time difference △ T ' between time T5, determines the 6th distance L6 between the noise source and first microphone and described The 7th distance L7 between noise source and the second microphone;Wherein, the 6th distance L6, the 7th distance L7 distinguish There are following relationships between the volume difference △ P ', time difference △ T ': L6=V* △ T '/(10△P’/20-1);L7=V* △ T '/ (10△P’/20-1)+V*(△T’)。
Wherein, the position according to where the noise source, adjusts the volume parameters of the loudspeaker of the terminal device, Make the volume of the sound of the loudspeaker sending when reaching the position where the first sound recipient and the second default sound Volume difference between amount is lower than the second preset threshold, comprising: according between the noise source and first microphone The 7th distance L7, the first sound recipient between 6th distance L6, the noise source and the second microphone The second distance L2, the first sound recipient between first microphone and between the second microphone The third distance L3 obtains the 8th distance L8 between the noise source and the first sound recipient;According to described The 8th distance L8 between four acquisition volume P4, the noise source and the first sound recipient, adjusts the terminal device Loudspeaker volume parameters, the volume for the sound for issuing the loudspeaker is where reaching the first sound recipient Volume difference when position between the second default volume is lower than the second preset threshold.
Wherein, in the position according to where the first sound recipient, the loudspeaker of the terminal device is adjusted Volume parameters after, the method also includes the sound that: the terminal device is issued according to the second sound recipient received Sound determines the 9th distance L9 between the second sound recipient and the loudspeaker;Determining that the first distance L1 is small When the 9th distance L9, according to the 9th distance L9, the volume parameters of the loudspeaker of the terminal device are adjusted, make institute The sound of loudspeaker sending is stated when reaching the position where the second sound recipient and third presets the volume between volume Difference is lower than third predetermined threshold value;Wherein, the third presets volume less than the described first default volume.
In order to solve the above technical problems, another technical solution used in the present invention is to provide a kind of terminal device, including Loudspeaker and the control device coupled with the loudspeaker;The control device includes the memory and processor being mutually coupled; The memory is for storing program data;The processor executes described program data, for realizing method as described above.
In order to solve the above technical problems, another technical solution used in the present invention be to provide it is a kind of with store function Device, described device are stored with program data, and described program data can be performed to realize method as described above.
The beneficial effects of the present invention are: being in contrast to the prior art, terminal device passes through according to first received The sound that sound recipient issues determines the position where the first sound recipient, and according to where the first sound recipient Position adjusts the volume parameters of the loudspeaker of terminal device, and the sound for issuing loudspeaker reaches the first sound recipient institute Position when and the first default volume between volume difference be lower than the first preset threshold, so as to according to user and terminal device The distance between, the sound size of loudspeaker is adjusted, prevents the distance between user and terminal device too far and user is caused to listen Closely user is caused to hear too loudly very much less than sound or the distance between user and terminal device.
Detailed description of the invention
Fig. 1 is the flow diagram of the first embodiment of the sound adjusting method of terminal device provided by the invention;
Fig. 2 is the flow diagram of the second embodiment of the sound adjusting method of terminal device provided by the invention;
Fig. 3 is the flow diagram of the 3rd embodiment of the sound adjusting method of terminal device provided by the invention;
Fig. 4 is the flow diagram of the fourth embodiment of the sound adjusting method of terminal device provided by the invention;
Fig. 5 is the flow diagram of the 5th embodiment of the sound adjusting method of terminal device provided by the invention;
Fig. 6 is the flow diagram of the sixth embodiment of the sound adjusting method of terminal device provided by the invention;
Fig. 7 is the flow diagram of the 7th embodiment of the sound adjusting method of terminal device provided by the invention;
Fig. 8 is the flow diagram of the 8th embodiment of the sound adjusting method of terminal device provided by the invention;
Fig. 9 is that the sound adjusting method of terminal device provided by the invention is applied to the schematic illustration of an application scenarios;
Figure 10 is the structural schematic diagram of the first embodiment of terminal device provided by the invention;
Figure 11 is the structural schematic diagram of one embodiment of control device in terminal device provided by the invention;
Figure 12 is the structural schematic diagram of the second embodiment of terminal device provided by the invention;
Figure 13 is the structural schematic diagram of device one embodiment provided by the invention with store function.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment belongs to the scope of protection of the invention.
Referring to Fig. 1, the process that Fig. 1 is the first embodiment of the sound adjusting method of terminal device provided by the invention is shown It is intended to.The sound adjusting method of terminal device in the present embodiment includes:
S101: the sound that the terminal device is issued according to the first sound recipient received determines first sound Position where sound recipient.
It is understood that terminal device in the application according to the sound that the first sound recipient received issues come Determine that the execution of the event of the position where the first sound recipient can be by terminal device system automatic trigger, such as in terminal The trigger condition for executing above-mentioned event is preset in device systems.The condition can be first whithin a period of time in terminal device Secondary when receiving sound, terminal device can determine that the first sound connects according to the sound of the first sound recipient sending received Position where debit, such as user is in using terminal device plays some videos, certain song or incoming call answering, eventually End equipment only needs to receive the sound that user issues for the first time, to determine the position of user;The condition is also possible in terminal device Real-time reception determines the first sound recipient to sound, and according to the sound that the first sound recipient received issues come real-time The position at place, such as user, in using terminal device plays some videos, certain song or incoming call answering, terminal is set It is standby only to need to receive the sound that user issues for the first time, to determine the position of user.
S102: according to the position where the first sound recipient, the volume of the loudspeaker of the terminal device is adjusted Parameter makes the sound of the loudspeaker sending when reaching the position where the first sound recipient and the first default volume Between volume difference be lower than the first preset threshold.
Loudspeaker is a kind of electro-acoustic element for converting electrical energy into sound energy, and there are many type of loudspeaker, although their work Make mode difference, but be all finally the air for pushing surrounding by generating mechanical oscillation, air dielectric is made to generate fluctuation to real The conversion of existing " electricity-power-sound ".Therefore the sound that loudspeaker issues is mechanical wave, and mechanical wave propagation requires medium, general next It says, speaking in our daily lifes is by airborne, and there are also such as sonars, are used in navigation, then sound is to pass in water It broadcasts, there are also solids can also be transaudient, such as steel, bone etc..Since sound is propagated by vibration medium, medium shakes meeting There is kinetic energy, the energy attenuation of sound in the air is mainly exactly the kinetic energy for being converted into medium;For sound wave in communication process, As long as medium is constant, velocity of wave, wavelength, frequency be all it is constant, only amplitude is constantly reducing;Such as loudspeaker is at A It makes a sound, needs user that can hear at B, then the loudness for the sound that loudspeaker issues at A just has to make During sound transmission after off-energy, the amplitude of sound or loudness can also cause the sense of hearing of the user at B when at B.
Therefore, it behind position where terminal device has determined the first sound recipient, can be received according to the first sound Position where side, adjusts the volume parameters of the loudspeaker of terminal device, and the sound for issuing loudspeaker is through overdamping and arrives The volume difference between wave volume and the first default volume when up to position where the first sound recipient is default lower than first Threshold value.It is understood that the first default volume can be by user's self-setting;For example, user is accustomed to 50db's or 60db Volume, therefore the first default volume can be arranged to 50db or 60db, so that the sound warp that the loudspeaker of terminal device issues Overdamping and wave volume when reaching the position where user are 50db or 60db.In practical applications, sound declines Subtract it is sufficiently complex, for example, sound is propagated in air, viscosity, the temperature of air, humidity and the air pressure etc. of decaying and air There is relationship, therefore when the volume parameters for the loudspeaker for adjusting terminal device, the sound for issuing loudspeaker reaches the first sound When wave volume when position where sound recipient is the first default volume, it is poor often to there is certain volume, and general , when the range of volume difference is lower than the first preset threshold, the first sound recipient can satisfy it and raise to what is received The volume requirement for the sound that sound device issues.Certainly, which can be designed for different users, such as 5db or 10db, i.e. terminal device adjust the volume of the loudspeaker of terminal device according to the position where the first sound recipient Parameter, volume of the sound for issuing loudspeaker when reaching the position where the first sound recipient between the first default volume Difference is lower than 5db or 10db.
In a specific implement scene, some video of using terminal device plays, user are opposite in the room by user After terminal device says " adjusting volume ", terminal device determines the position where user according to user's one's voice in speech, such as The distance between user and terminal device and direction etc.;Then terminal device adjusts terminal and sets according to the position where user The volume parameters of standby loudspeaker make loudspeaker play the sound of sound that the video is issued when reaching the position where user Amount is 50db;Then, in the influence for fully taking into account user and terminal device local environment, the loudspeaker that end user hears is broadcast The sound size for putting the video is 49db, since using terminal equipment, the sound of 50db or so not will lead to user in the room User does not hear the sound-content of video playing, will not cause to bring bad usage experience to user too loudly.
In the present embodiment, terminal device determines the by the sound issued according to the first sound recipient for receiving Position where one sound recipient, and according to the position where the first sound recipient, adjust the loudspeaker of terminal device Volume parameters, the sound for issuing loudspeaker is when reaching the position where the first sound recipient between the first default volume Volume difference is lower than the first preset threshold, so as to adjust the sound of loudspeaker according to the distance between user and terminal device Size prevents the distance between user and terminal device too far and user is caused to can't hear sound or user and terminal device The distance between it is too close and user is caused to hear too loudly.
Referring to Fig. 2, the process that Fig. 2 is the second embodiment of the sound adjusting method of terminal device provided by the invention is shown It is intended to.Position where the first sound recipient of the application includes the first distance between the first sound recipient and loudspeaker L1, in the present embodiment, terminal device include the first microphone and second microphone, and the terminal device of the application receives the first sound The sound and determine that the first sound is received according to the sound that the first sound recipient received issues that sound recipient issues Position where side can acquire the sound sound of the first sound recipient sending respectively by the first microphone and second microphone Amount is to be judged.The sound adjusting method of terminal device in the present embodiment includes:
S201: the terminal device obtains the first microphone acquisition when the first sound recipient makes a sound First acquisition volume P1 and corresponding first acquisition time T1.
First microphone of the terminal device in the application can collect the sound of the first sound recipient sending, terminal First acquisition volume P1 of the sound that the collected first sound recipient of available first microphone of equipment issues and right The the first acquisition time T1 answered.
S202: the second acquisition sound that the second microphone is acquired when the first sound recipient makes a sound is obtained Measure P2 and corresponding second acquisition time T2.
Likewise, the second microphone of terminal device can collect the sound of the first sound recipient sending, terminal is set The the second acquisition volume P2 and correspondence for the sound that the standby collected first sound recipient of available second microphone issues The second acquisition time T2.
In a specific implement scene, after user says one section of voice to terminal device, due to user and terminal There are a certain distance between the first microphone and second microphone of equipment, so this section of voice can reach after overdamping One microphone and second microphone, then the first microphone and second microphone collect the volume after this section of voice decaying respectively With corresponding time when collecting the volume after decaying;Wherein, the volume of collected this section of voice of the first microphone is first Acquisition volume P1, corresponding time are the first acquisition time T1, and the volume of collected this section of voice of second microphone is second Acquire volume P2, the corresponding time is the second acquisition time T2.
S203: volume difference △ P and institute between volume P2 are acquired according to the first acquisition volume P1 and described second State the time difference △ T between the first acquisition time T1 and the second acquisition time T2, determine the first sound recipient with The third between second distance L2 and the first sound recipient and the second microphone between first microphone Distance L3.Wherein, second distance L2, third distance L3 the spread speed V with volume difference △ P, time difference △ T and sound respectively Between there are following relationships:
L2=V* △ T/ (10△P/20-1);
L3=V* △ T/ (10△P/20-1)+V*(△T)。
It is understood that due to second distance L2 and the first sound between the first sound recipient and the first microphone Third distance L3 possibility between recipient and second microphone is identical may also be different, and therefore, the first microphone is in the first sound The the first acquisition volume P1 and second microphone that sound recipient acquires when making a sound are when the first sound recipient makes a sound Second acquisition volume P2 of acquisition may be identical or different, and corresponding first acquisition time T1 and the second acquisition time T2 may also It is identical or different, therefore there are volume difference △ P between the first acquisition volume P1 and the second acquisition volume P2, the first acquisition time T1 with There is also time difference △ T between second acquisition time T2.It is understood that being made a sound in the first sound recipient, sound It is collected by the first microphone and second microphone after second distance L2 and third distance L3, declines thus according to sound respectively Subtract formula, volume difference △ P and second distance L2 and third distance L3 between the first acquisition volume P1 and the second acquisition volume P2 Between there are following relationships:
△ P=P2-P1=20lg (L2/L3) (1);
As with the speed V of third distance L3 being by second distance L2 due to sound again, then second distance L2 and There are relationships by time difference △ T between third distance L3 and the first acquisition time T1 and the second acquisition time T2:
△ T=T2-T1=(L3-L2)/V (2);
Then, according to relationship (1) and relationship (2), can in the hope of second distance L2, third distance L3 respectively with volume difference △ P, there are following relationships between time difference △ T and the spread speed V of sound:
L2=V* △ T/ (10△P/20-1);
L3=V* △ T/ (10△P/20-1)+V*(△T)。
Therefore, terminal device according to the first of acquisition acquisition volume P1 and second acquisition volume P2 between volume difference △ P, The spread speed V of time difference △ T and sound between first acquisition time T1 and the second acquisition time T2, can determine first The third between second distance L2 and the first sound recipient and second microphone between sound recipient and the first microphone Distance L3.
S204: the second distance L2, the third distance L3 and the loudspeaker and first microphone are utilized Between the 4th distance L4 and the loudspeaker and the second microphone between the 5th distance L5, determination obtain described first Distance L1.
It is understood that since the first microphone, second microphone and loudspeaker are located at the specific position of terminal device It is pre-set for setting, can by designer in advance by between loudspeaker and the first microphone the 4th distance L4 and loudspeaking The 5th distance L5 between device and second microphone is stored in terminal device, and because the first sound has been determined by the above method The third between second distance L2 and the first sound recipient and second microphone between sound recipient and the first microphone away from From L3, therefore terminal device can use second distance L2, third distance L3, the 4th distance L4 and the 5th distance L5 and obtain first First distance L1 between sound recipient and loudspeaker.
S205: the position packet according to the position where the first sound recipient, where the first sound recipient The first distance L1 between the first sound recipient and the loudspeaker is included, the sound of the loudspeaker of the terminal device is adjusted Parameter is measured, makes the sound of the loudspeaker sending when reaching the position where the first sound recipient and the first default sound Volume difference between amount is lower than the first preset threshold.
Due to that can determine the first distance L1 obtained between the first sound recipient and loudspeaker, then terminal device can To adjust the volume parameters of the loudspeaker of terminal device according to first distance L1, the sound for issuing loudspeaker reaches first Volume difference when position where sound recipient between the first default volume is lower than the first preset threshold.In this implement scene In, in the first embodiment of the sound adjusting method of step S205 provided in this embodiment and terminal device provided by the present application Step S102 is substantially similar, and details are not described herein again.
In the present embodiment, terminal device is received by obtaining the first microphone and second microphone respectively in the first sound The first acquisition volume P1, the second acquisition volume P2 and the corresponding first acquisition time T1, second that side acquires when making a sound Acquisition time T2, and according to volume difference △ P between the first of acquisition the acquisition volume P1 and the second acquisition volume P2, the first acquisition The spread speed V of time difference △ T and sound between time T1 and the second acquisition time T2, determine the first sound recipient with The third distance L3 between second distance L2 and the first sound recipient and second microphone between first microphone, further according to The 5th distance L5 between the 4th distance L4 and loudspeaker and second microphone between loudspeaker and the first microphone prestored, So as to realize that determination obtains the first distance L1 between the first sound recipient and loudspeaker.
Referring to Fig. 3, the process that Fig. 3 is the 3rd embodiment of the sound adjusting method of terminal device provided by the invention is shown It is intended to.The sound adjusting method of terminal device in the present embodiment includes:
S301: the terminal device obtains the first microphone acquisition when the first sound recipient makes a sound First acquisition volume P1 and corresponding first acquisition time T1.
S302: the second acquisition sound that the second microphone is acquired when the first sound recipient makes a sound is obtained Measure P2 and corresponding second acquisition time T2.
S303: volume difference △ P and institute between volume P2 are acquired according to the first acquisition volume P1 and described second State the time difference △ T between the first acquisition time T1 and the second acquisition time T2, determine the first sound recipient with The third between second distance L2 and the first sound recipient and the second microphone between first microphone Distance L3.
S304: the second distance L2, the third distance L3 and the loudspeaker and first microphone are utilized Between the 4th distance L4 and the loudspeaker and the second microphone between the 5th distance L5, determination obtain described first Distance L1.
In this implement scene, the sound of step S301-S304 and terminal device provided by the present application provided in this embodiment Step S201-S204 in the second embodiment of sound adjusting method is substantially similar, and details are not described herein again.
S305: the determining speaker volume with the first distance L1 with the first incidence relation.
It is understood that after overdamping and being reached since sound that terminal device loudspeaker issues needs to meet The volume difference between wave volume and the first default volume when position where the first sound recipient is lower than the first default threshold Value, and the decaying of sound and first distance L1 between the first sound recipient and loudspeaker are related, therefore, terminal device can be with It is previously stored with first incidence relation of the first distance L1 with corresponding speaker volume, which indicates: when the One distance L1 is a certain particular value, and the volume for the sound that loudspeaker issues just can guarantee when being corresponding decibel value reaches first The volume difference between wave volume and the first default volume when position where sound recipient is lower than the first preset threshold.In It is that after determination obtains first distance L1, terminal device can obtain corresponding speaker volume according to first incidence relation.
S306: the volume parameters of the loudspeaker of the terminal device are adjusted according to the speaker volume of the determination.
Due in previous step S305, after determining and obtaining first distance L1, terminal device can determine with first away from From the speaker volume that L1 has the first incidence relation;Then terminal device can adjust end according to determining speaker volume The volume parameters of the loudspeaker of end equipment, the sound for issuing loudspeaker is through overdamping and where reaching the first sound recipient Position when wave volume and the first default volume between volume difference be lower than the first preset threshold.
Referring to Fig. 4, the process that Fig. 4 is the fourth embodiment of the sound adjusting method of terminal device provided by the invention is shown It is intended to.The sound adjusting method of terminal device in the present embodiment includes:
S401: the terminal device obtains the first microphone acquisition when the first sound recipient makes a sound First acquisition volume P1 and corresponding first acquisition time T1.
S402: the second acquisition sound that the second microphone is acquired when the first sound recipient makes a sound is obtained Measure P2 and corresponding second acquisition time T2.
S403: volume difference △ P and institute between volume P2 are acquired according to the first acquisition volume P1 and described second State the time difference △ T between the first acquisition time T1 and the second acquisition time T2, determine the first sound recipient with The third between second distance L2 and the first sound recipient and the second microphone between first microphone Distance L3.
S404: the second distance L2, the third distance L3 and the loudspeaker and first microphone are utilized Between the 4th distance L4 and the loudspeaker and the second microphone between the 5th distance L5, determination obtain described first Distance L1.
In this implement scene, the sound of step S401-S404 and terminal device provided by the present application provided in this embodiment Step S301-S304 in the 3rd embodiment of sound adjusting method is substantially similar, and details are not described herein again.
S405: mesh is issued according to obtained the first distance L1 and the preset first distance and the loudspeaker The second incidence relation when mark with phonetic symbols amount between the collected third acquisition volume P3 of the first microphone, determines that third acquires volume P3;Wherein, the sound between the target volume can be such that the first sound recipient receives volume and the first default volume It measures difference and is lower than the first preset threshold.Second incidence relation are as follows: P3=PA+20lg (L1/L4);The PA is described first Default volume.
First microphone when the terminal device of the application can be preset with first distance L1 and loudspeaker sending target volume The second incidence relation between collected third acquisition volume P3.It is understood that the loudspeaker when terminal device issues Sound when being target volume, sound arrives separately at the position where the first microphone and the first sound recipient by propagation, At this point, the volume that the first microphone receives is that third acquires volume P3, since target volume can make the first sound recipient Volume difference between the default volume of volume and first received is lower than the first preset threshold, so the first sound recipient receives The volume arrived is the first default volume PA, thus according to acoustic attenuation equation it follows that PA-P3=20lg (L4/L1), i.e., eventually The collected third of the first microphone acquires volume P3 when the preset first distance L1 of end equipment and loudspeaker issue target volume Between the second incidence relation are as follows: P3=PA+20lg (L1/L4);Because of the first default volume PA, loudspeaker and the first microphone Between the 4th distance L4 it is known that so the actual first distance L1 obtained according to above-mentioned steps, can determine third at this time Acquire the size of volume P3.
S406: according to the third of the determination acquire volume that volume P3 and the preset loudspeaker issue with it is corresponding Third acquisition volume between third incidence relation, determine the speaker volume.
The terminal device of the application can be preset between the volume of loudspeaker sending and corresponding third acquisition volume Third incidence relation.It is understood that after the sound that the loudspeaker of terminal device issues, sound meeting after propagation attenuation The position of the first microphone is reached, then designer can be by testing in advance and recording: when the loudspeaker of terminal device is sent out The corresponding third that the first microphone is respectively received when the volume of different decibels out acquires volume P3;Then terminal device is established Loudspeaker issue the third incidence relation between the volume of different decibels and corresponding third acquisition volume P3, and by the third Incidence relation is stored in terminal device.It then passes through in step S405 and is acquired according to the third that actual first distance L1 is determined The size of volume P3 and preset third incidence relation, it can determine in step S405 according to actual first away from The volume that the loudspeaker of terminal device corresponding to size from the L1 third acquisition volume P3 determined issues.
S407: the volume parameters of the loudspeaker of the terminal device are adjusted according to the speaker volume of the determination.
In this implement scene, the sound of step S407 provided in this embodiment and terminal device provided by the present application is adjusted Step S306 in the 3rd embodiment of method is substantially similar, and details are not described herein again.
In a specific implement scene, terminal device is mobile phone, and the first default volume PA is 60db, the loudspeaking of mobile phone The 4th distance L4 between device and the first microphone is 0.2m, when the sound that the loudspeaker of mobile phone issues is target volume, sound Sound arrives separately at the position where the first microphone and user by propagation, at this point, the volume that the first microphone receives is the Three acquisition volume P3, the first default volume PA that user receives is 60db, thus according to first distance L1 preset in mobile phone The second incidence relation when issuing target volume with loudspeaker between the collected third acquisition volume P3 of the first microphone: P3= 60+20lg(L1/0.2);When obtained actual first distance L1 is 2m, it can determine that the acquisition of third at this time volume P3's is big It is small, such as when actual first distance L1 is 2m, it is 70db that third, which acquires volume P3,.In addition, since designer is passing through Test and record in the third incidence relation obtained in advance: when the loudspeaker of mobile phone issues the volume of 71db, the first microphone is connect The corresponding third acquisition volume P3 received is 70db, therefore, according to third corresponding when actual first distance L1 is 2m Acquire volume P3 be 70db and preset third incidence relation, it can determine actual first distance L1 be 2m when pair The volume for the sound that the loudspeaker answered issues is 71db.Then mobile phone can adjust hand according to determining speaker volume 71db The volume parameters of the loudspeaker of machine, sound of the sound for issuing loudspeaker through overdamping and when reaching the position where user Volume is in 60db or so, to meet the use demand of user.
In the present embodiment, terminal device passes through obtained first distance L1 and preset first distance and loudspeaker is sent out The second incidence relation when target volume between the collected third acquisition volume P3 of the first microphone out, to determine that third acquires Volume P3, and the volume further issued according to determining third acquisition volume P3 and preset loudspeaker and corresponding third The third incidence relation between volume is acquired, may thereby determine that the volume of loudspeaker.
Referring to Fig. 5, the process that Fig. 5 is the 5th embodiment of the sound adjusting method of terminal device provided by the invention is shown It is intended to.The sound adjusting method of terminal device in 5th embodiment includes:
S501: the sound that the terminal device is issued according to the first sound recipient received determines first sound Position where sound recipient.
S502: according to the position where the first sound recipient, the volume of the loudspeaker of the terminal device is adjusted Parameter makes the sound of the loudspeaker sending when reaching the position where the first sound recipient and the first default volume Between volume difference be lower than the first preset threshold.
In this implement scene, the sound of step S501-S502 and terminal device provided by the present application provided in this embodiment Step S101-S102 in the first embodiment of sound adjusting method is substantially similar, and details are not described herein again.
S503: the sound that the terminal device is issued according to the noise source received determines the position where the noise source It sets.
The sound issued with the application terminal device according to the first sound recipient received determines that the first sound receives Position where side is similar, and the sound that the terminal device of the application can also be issued according to the noise source received, determination is made an uproar Position where sound source.Particular content please refers in the first embodiment of sound adjusting method of terminal device provided by the present application Step S101, details are not described herein again.
S504: according to the position where the noise source, the volume parameters of the loudspeaker of the terminal device are adjusted, make institute State volume of the sound of loudspeaker sending when reaching the position where the first sound recipient between the second default volume Difference is lower than the second preset threshold, wherein the second default volume is greater than the described first default volume.
It is understood that after terminal device has determined the position where the first sound recipient, it can be according to first Position where sound recipient adjusts the volume parameters of the loudspeaker of terminal device, and the sound for issuing loudspeaker is by declining Subtract and the wave volume when reaching the position where the first sound recipient and the volume difference between the first default volume are lower than First preset threshold;But when, there is also when noise source, noise source can set the first received terminal of sound recipient in environment The sound that standby loudspeaker issues generates certain interference, and therefore, the terminal device of the application can be according to where noise source Position further adjusts the volume parameters of the loudspeaker of terminal device, and the sound for issuing loudspeaker connects in the first sound of arrival Volume difference when position where debit between the second default volume is lower than the second preset threshold, wherein the second default volume Greater than the first default volume, to offset or compensate the noise of noise source sending to the first received terminal device of sound recipient Loudspeaker issue sound influence.
In a specific implementation scene, user uses mobile phone incoming call answering in office, and mobile phone is according between user and its Distance, adjust the volume parameters of loudspeaker, make loudspeaker issue sound reach user volume 50db;But midway Side has a colleague to talk with other people, and in order to reduce interference of the colleague to user, mobile phone can be according to receiving Colleague's one's voice in speech to determine the position where the colleague, and further adjusts loudspeaker according to the position of the colleague Volume parameters, volume 60db of the sound for issuing loudspeaker when reaching user, so as to realize that compensating the colleague says The interference to user's incoming call answering is talked about, prevents user from not hearing incoming call content.
Referring to Fig. 6, the process that Fig. 6 is the sixth embodiment of the sound adjusting method of terminal device provided by the invention is shown It is intended to.Position where the noise source of the application include the 6th distance L6 between noise source and the first microphone, noise source with The 7th distance L7 between second microphone.Likewise, the terminal device of the application receives the sound and root that noise source issues The position where noise source is determined according to the sound that the noise source received issues, and can pass through the first microphone and the second Mike The wind wave volume that acquisition noise source issues respectively is judged.The sound adjusting method packet of terminal device in the present embodiment It includes:
S601: the sound that the terminal device is issued according to the first sound recipient received determines first sound Position where sound recipient.
S602: according to the position where the first sound recipient, the volume of the loudspeaker of the terminal device is adjusted Parameter makes the sound of the loudspeaker sending when reaching the position where the first sound recipient and the first default volume Between volume difference be lower than the first preset threshold.
In this implement scene, the sound of step S601-S602 and terminal device provided by the present application provided in this embodiment Step S101-S102 in the first embodiment of sound adjusting method is substantially similar, and details are not described herein again.
S603: obtain the 4th acquisition volume P4 that first microphone is acquired when the noise source makes a sound and Corresponding 4th acquisition time T4.
First microphone of the terminal device in the application can collect the sound of noise source sending, and terminal device can be with Obtain the 4th acquisition volume P4 and corresponding 4th acquisition time of the sound that the collected noise source of the first microphone issues T4。
S604: obtain the 5th acquisition volume P5 that the second microphone acquires when the noise source makes a sound and Corresponding 5th acquisition time T5.
Likewise, the second microphone of terminal device can collect the sound of noise source sending, terminal device can be obtained 5th acquisition volume P5 and corresponding 5th acquisition time T5 of the sound for taking the collected noise source of second microphone to issue.
In a specific implement scene, after noise source issues noise, due to the first of noise source and terminal device There are a certain distance between microphone and second microphone, so the noise can reach the first microphone and after overdamping Two microphones, after then the first microphone and second microphone collect the volume after the noise attentuation respectively and collect decaying Volume when corresponding time;Wherein, the volume of collected this section of voice of the first microphone is the 4th acquisition volume P4, correspondence Time be the 4th acquisition time T4, the volume of collected this section of voice of second microphone is the 5th acquisition volume P5, correspondence Time be the 5th acquisition time T5.
S605: according to the volume difference △ P ' between the 4th acquisition volume P4 and the 5th acquisition volume P5, and Time difference △ T ' between the 4th acquisition time T4 and the 5th acquisition time T5 determines the noise source and described the The 6th distance L6 between one microphone and the 7th distance L7 between the noise source and the second microphone.Wherein, There are following relationships between volume difference △ P ', time difference △ T ' respectively by six distance L6, the 7th distance L7:
L6=V* △ T '/(10△P’/20-1);
L7=V* △ T '/(10△P’/20-1)+V*(△T’)。
It is understood that determining the first sound recipient and the first wheat with terminal device in second embodiment step S203 The third distance L3 between second distance L2 and the first sound recipient and second microphone between gram wind is identical, due to noise The 6th distance L6 between source and the first microphone and the 7th distance L7 possibility between noise source and second microphone are identical May be different, therefore, the 4th acquisition volume P4 and second microphone that the first microphone is acquired when noise source makes a sound exist The 5th acquisition volume P5 acquired when noise source makes a sound may identical or different, corresponding 4th acquisition time T4 and the 5th Acquisition time T5 may also be identical or different, therefore there are volume difference △ between the 4th acquisition volume P4 and the 5th acquisition volume P5 P ', there is also time difference △ T ' between the 4th acquisition time T4 and the 5th acquisition time T5.It is understood that being sent out in noise source Sound out, sound are collected by the first microphone and second microphone respectively after the 6th distance L6 and the 7th distance L7, in It is the volume difference △ P ' and the 6th distance L6 according to acoustic attenuation equation, between the 4th acquisition volume P4 and the 5th acquisition volume P5 And the 7th there are following relationships between distance L7:
△ P '=P5-P4=20lg (L6/L7) (3);
Again the same by the speed V of the 6th distance L6 and the 7th distance L7 due to sound, then the 6th distance L6 and There are relationships by time difference △ T ' between 7th distance L7 and the 4th acquisition time T4 and the 5th acquisition time T5:
△ T '=T5-T4=(L7-L6)/V (4);
Then, according to relationship (3) and relationship (4), can in the hope of the 6th distance L6, the 7th distance L7 respectively with volume difference △ There are following relationships between the spread speed V of P ', time difference △ T ' and sound:
L6=V* △ T '/(10△P’/20-1);
L7=V* △ T '/(10△P’/20-1)+V*(△T’)。
Therefore, terminal device is according to the volume difference △ between the 4th of acquisition the acquisition volume P4 and the 5th acquisition volume P5 The spread speed V of time difference △ T ' and sound between P ', the 4th acquisition time T4 and the 5th acquisition time T5, can determine The 6th distance L6 between noise source and the first microphone and the 7th distance L7 between noise source and second microphone.
S606: according to the position where the noise source, the position where the noise source includes the noise source and institute The 7th distance L7 between the 6th distance L6, the noise source and the second microphone between the first microphone is stated, is adjusted The volume parameters of the loudspeaker of the terminal device, the sound for issuing the loudspeaker reach the first sound recipient Volume difference when the position at place between the second default volume is lower than the second preset threshold, wherein the second default volume Greater than the described first default volume.
In this implement scene, the sound of step S606 provided in this embodiment and terminal device provided by the present application is adjusted Step S504 in the first embodiment of method is substantially similar, and details are not described herein again.
In the present embodiment, terminal device by obtaining the first microphone and second microphone in noise source sending sound respectively The 4th acquisition volume P4, the 5th acquisition volume P5 and the corresponding 4th acquisition time T4, the 5th acquisition time acquired when sound T5, and according to volume difference △ P ', the 4th acquisition time T4 between the 4th of acquisition the acquisition volume P4 and the 5th acquisition volume P5 The spread speed V of time difference △ T ' and sound between the 5th acquisition time T5, may thereby determine that noise source and first The 6th distance L6 between microphone and the 7th distance L7 between noise source and second microphone.
Referring to Fig. 7, the process that Fig. 7 is the 7th embodiment of the sound adjusting method of terminal device provided by the invention is shown It is intended to.The sound adjusting method of terminal device in 7th embodiment includes:
S701: the sound that the terminal device is issued according to the first sound recipient received determines first sound Position where sound recipient.
S702: according to the position where the first sound recipient, the volume of the loudspeaker of the terminal device is adjusted Parameter makes the sound of the loudspeaker sending when reaching the position where the first sound recipient and the first default volume Between volume difference be lower than the first preset threshold.
S703: obtain the 4th acquisition volume P4 that first microphone is acquired when the noise source makes a sound and Corresponding 4th acquisition time T4.
S704: obtain the 5th acquisition volume P5 that the second microphone acquires when the noise source makes a sound and Corresponding 5th acquisition time T5.
S705: according to the volume difference △ P ' between the 4th acquisition volume P4 and the 5th acquisition volume P5, and Time difference △ T ' between the 4th acquisition time T4 and the 5th acquisition time T5 determines the noise source and described the The 6th distance L6 between one microphone and the 7th distance L7 between the noise source and the second microphone.
In this implement scene, the sound of step S601-S605 and terminal device provided by the present application provided in this embodiment Step S701-S705 in the first embodiment of sound adjusting method is substantially similar, and details are not described herein again.
S706: according between the noise source and first microphone the 6th distance L6, the noise source with The institute between the 7th distance L7, the first sound recipient and first microphone between the second microphone The third distance L3 between second distance L2, the first sound recipient and the second microphone is stated, is obtained described The 8th distance L8 between noise source and the first sound recipient.
It is understood that since between the first sound recipient and the first microphone being determined by preceding method Third distance L3 between two distance L2 and the first sound recipient and second microphone, and noise source and the first Mike has been determined The 7th distance L7 between the 6th distance L6, noise source and second microphone between wind, therefore terminal device can use Two distance L2, third distance L3, the 6th distance L6 and the 7th distance L7 obtain between the first sound recipient and noise source Eight distance L8.
S707: according to the 8th between the 4th acquisition volume P4, the noise source and the first sound recipient Distance L8 adjusts the volume parameters of the loudspeaker of the terminal device, and the volume for the sound for issuing the loudspeaker reaches Volume difference when position where the first sound recipient between the second default volume is lower than the second preset threshold.
It is understood that since the noise that noise source issues receives the 4th acquisition sound by the first microphone by propagation P4 is measured, preceding method has determined that the 6th distance L6, noise source and the first sound between noise source and the first microphone receive again The 8th distance L8 between side, then wave volume Pz when position where noise transmission to the first sound recipient meets sound Sound decay formula: the volume of noise that Pz-P4=20lg (L6/L8), i.e. the first sound recipient receive noise source sending is Pz=P4+20lg (L6/L8).Then, in order to offset or compensate the noise of noise source sending to the shadow of the first sound recipient It rings, terminal device needs further to adjust the volume parameters of the loudspeaker of terminal device, and the sound for issuing loudspeaker reaches Volume difference when position where the first sound recipient between the second default volume is lower than the second preset threshold, wherein the Two default volumes are greater than the first default volume.
Referring to Fig. 8, the process that Fig. 8 is the 8th embodiment of the sound adjusting method of terminal device provided by the invention is shown It is intended to.The sound adjusting method of terminal device in 8th embodiment includes:
S801: the sound that the terminal device is issued according to the first sound recipient received determines first sound Position where sound recipient.
S802: according to the position where the first sound recipient, the volume of the loudspeaker of the terminal device is adjusted Parameter makes the sound of the loudspeaker sending when reaching the position where the first sound recipient and the first default volume Between volume difference be lower than the first preset threshold.
In this implement scene, the sound of step S801-S802 and terminal device provided by the present application provided in this embodiment Step S101-S102 in the first embodiment of sound adjusting method is substantially similar, and details are not described herein again.
S803: the sound that the terminal device is issued according to the second sound recipient received determines the rising tone The 9th distance L9 between sound recipient and the loudspeaker.
The sound issued with the application terminal device according to the first sound recipient received determines that the first sound receives Position where side is similar, the sound that the terminal device of the application can also be issued according to the second sound recipient received Sound determines the 9th distance L9 between second sound recipient and loudspeaker.Specific implementation method please refers to the various embodiments described above In acquisition methods about the first distance L1 between the first sound recipient and loudspeaker, details are not described herein again.
S804: it when determining that the first distance L1 is less than the 9th distance L9, according to the 9th distance L9, adjusts The volume parameters of the loudspeaker of the terminal device, the sound for issuing the loudspeaker reach the second sound recipient It presets the volume difference between volume with third when the position at place and is lower than third predetermined threshold value;Wherein, the third presets volume Less than the described first default volume.
It is understood that illustrating that second sound recipient sets with terminal when first distance L1 is less than the 9th distance L9 Standby distance is farther for the first sound recipient, so, in order to which the sound for issuing loudspeaker reaches the rising tone Less than certain volume value when position where sound recipient, need further to adjust terminal device according to the 9th distance L9 The volume parameters of loudspeaker.In a specific implementation scene, the first default volume is 60db, the sound that terminal device loudspeaker issues Sound reach the first sound recipient when be the first default volume 60db, due to second sound recipient at a distance from terminal device phase It is farther for the first sound recipient, it is 40db when sound reaches second sound recipient at this time;Third presets volume 20db, in general, sound are not easy to influence other people when being less than 20db, need further to adjust the loudspeaker of terminal device at this time Volume parameters, the sound for issuing loudspeaker is less than the default volume of third when reaching the position where second sound recipient 20db, the sound that terminal device loudspeaker issues at this time reach volume 60db default less than first, example when the first sound recipient For example 40db.
In an application scenarios, as shown in figure 9, Fig. 9 is the sound adjusting method application of terminal device provided by the invention In the schematic illustration of an application scenarios, terminal device includes loudspeaker, mic A and mic B, wherein loudspeaker is with mic A's Position is overlapped.When user C makes a sound, mic A obtains the loudness Pac and corresponding time Tac for the sound that user C is issued, Mic B obtains the sound intensity Pbc and corresponding time Tbc that user C is issued;The spread speed of sound is V, thus according to mic A and mic B obtains the time difference of sound it can be concluded that (1): BC-AC=V* (Tbc-Tac);According to mic A and mic B acquisition sound The loudness difference and acoustic attenuation equation of sound are it can be concluded that (2): Pac-Pbc=20lg (BC/AC);By (1) (2) it can be concluded that AC Specific distance;It is closed according to the position that the relationship between loudspeaker E and mic A and mic B can find out loudspeaker E and user C System;Then the size of the sound of loudspeaker E sending can be adjusted at a distance from user C according to loudspeaker E.If loudspeaker E is sent out Wave volume out is Px, and measuring mic B and receiving the sound intensity of loudspeaker E sending is Pxb;Control user C, which is received, to be raised The sound intensity that sound device E is issued is definite value, such as 60db;It is then obtained by acoustic attenuation equation: Pxb-60=20lg (AC/AB);By In AB it is known that AC has been found out, therefore mic B receives the relationship between the sound intensity Pxb and AC of loudspeaker E sending are as follows: Pxb= 60+20lg(AC/AB);Designer can receive with mic B and raise by testing the wave volume Px for issuing loudspeaker E The relationship between sound intensity Pxb that sound device E is issued forms correspondence, therefore after finding out AC, it can Pxb is found out, further according to The sound of loudspeaker E is adjusted to Px by the corresponding relationship between Pxb and Px, is to meet the intensity of sound that user C is received 60db。
Similarly, mic A obtains the loudness Pad for the sound that noise sound source D is issued and corresponding time Tad, mic B acquisition are made an uproar The sound intensity Pbd and corresponding time Tbd that speech source D is issued;The time difference of noise is obtained thus according to mic A and mic B It can be concluded that (3): BD-AD=V* (Tbd-Tad);The loudness difference and sound attenuating public affairs of noise are obtained according to mic A and mic B Formula is it can be concluded that (4): Pad-Pbd=20lg (BD/AD);By (3) (4) it can be concluded that the specific distance of AD;According to loudspeaker E with Relationship between mic A and mic B can find out the positional relationship of loudspeaker E Yu noise sound source D, and from which further follow that noise sound The distance between source D and user C.If it is Pcd that user C, which obtains the sound intensity that noise sound source D is issued, then, by sound attenuating Formula obtains: Pad-Pcd=20lg (CD/AD), i.e. the noise sound that Pcd=Pad-20lg (CD/AD) receives to get user C out The size of source D then suitably the volume of loudspeaker E can be turned up, to counteract or compensate for influence of the noise sound source D to user C.
It is possible to further find out the distance between loudspeaker E and other people F AF, if other people F receive loudspeaker E The sound intensity of sending is Pfa.Since the user C receiving speaker E sound intensity issued is definite value, such as 60db;Then, by Acoustic attenuation equation obtains: 60-Pfa=20lg (AF/AC), i.e. Pfa=60-20lg (AF/AC);Due to AF, AC it is known that obtaining The sound intensity that other people F receive loudspeaker E sending is that Pfa can be suitably by the volume tune of loudspeaker E as Pfa higher It is low, to reduce the influence to other people F or protect the privacy of user C that other people F is not allowed to hear.
Figure 10 and Figure 11 are please referred to, Figure 10 is the structural schematic diagram of the first embodiment of terminal device provided by the invention, Figure 11 is the structural schematic diagram of one embodiment of control device in terminal device provided by the invention.Terminal in the present embodiment is set Standby 100 include loudspeaker 1000 and the control device 1002 with the coupling of loudspeaker 1000, and control device 1002 includes being mutually coupled Memory 10020 and processor 10022, for memory 10020 for storing program data, processor 10022 executes the program Data, for realizing method as described above.
Figure 12 is please referred to, Figure 12 is the structural schematic diagram of the second embodiment of terminal device provided by the invention.With upper one Unlike embodiment, in the present embodiment, terminal device 100 further includes the first microphone coupled with control device 1002 1004 and second microphone 1006;First microphone 1004 and second microphone 1006 are used in each sound recipient and noise Volume and corresponding acquisition time are acquired when source makes a sound.
Corresponding step in the sound adjusting method embodiment of above-mentioned terminal device can be performed in the present embodiment processor 10022 Suddenly, therefore it is not repeated herein, please refers to the explanation of the above corresponding step in detail.
Terminal device 100 in the application can include the equipment of loudspeaker to be any, such as can be sound equipment, radio reception The electronic equipments such as machine, recorder are also possible to the smart machines such as mobile phone, tablet computer, desktop computer.
Figure 13 is please referred to, Figure 13 is the device provided by the invention with store function.Device 130 with store function In be stored with program data 1300, program data 1300 can be performed to be adjusted with the sound for realizing terminal device as described above Method.
The device 130 with store function can be storage chip in terminal, hard disk either mobile hard disk or The tool of other read-write storages such as flash disk, CD, can also be server etc..
In several embodiments provided herein, it should be understood that disclosed method, equipment and device, it can be with It realizes by another way.For example, device structure embodiment described above is only schematical, for example, module Or the division of unit, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple lists Member or component can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, Shown or discussed mutual coupling, direct-coupling or communication connection can be through some interfaces, device or unit Indirect coupling or communication connection, can be electrical property, mechanical or other forms.
Unit may or may not be physically separated as illustrated by the separation member, shown as a unit Component may or may not be physical unit, it can and it is in one place, or may be distributed over multiple networks On unit.It can select some or all of unit therein according to the actual needs to realize the mesh of present embodiment scheme 's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
Mode the above is only the implementation of the present invention is not intended to limit the scope of the invention, all to utilize this Equivalent structure or equivalent flow shift made by description of the invention and accompanying drawing content, it is relevant to be applied directly or indirectly in other Technical field is included within the scope of the present invention.

Claims (10)

1. a kind of sound adjusting method of terminal device, which is characterized in that the described method includes:
The sound that the terminal device is issued according to the first sound recipient received, determines the first sound recipient institute Position;
According to the position where the first sound recipient, the volume parameters of the loudspeaker of the terminal device are adjusted, make institute State volume of the sound of loudspeaker sending when reaching the position where the first sound recipient between the first default volume Difference is lower than the first preset threshold.
2. sound adjusting method as described in claim 1, which is characterized in that the terminal device includes the first microphone and the Two microphones;Position where the first sound recipient includes between the first sound recipient and the loudspeaker First distance L1;
The sound that the terminal device is issued according to the first sound recipient received, determines the first sound recipient institute Position, specifically include:
The terminal device obtains first microphone is acquired when the first sound recipient makes a sound first and adopts Collect volume P1 and corresponding first acquisition time T1;
Obtain the second acquisition volume P2 that the second microphone acquires when the first sound recipient makes a sound and Corresponding second acquisition time T2;
It is acquired according to the volume difference △ P and described first between the first acquisition volume P1 and the second acquisition volume P2 Time difference △ T between time T1 and the second acquisition time T2, determines the first sound recipient and first wheat The third distance L3 between second distance L2 and the first sound recipient and the second microphone between gram wind;
Utilize the 4th between the second distance L2, the third distance L3 and the loudspeaker and first microphone The 5th distance L5 between distance L4 and the loudspeaker and the second microphone, determination obtain the first distance L1;
Wherein, the second distance L2, the third distance L3 respectively with volume difference △ P, time difference △ T and sound There are following relationships between spread speed V:
L2=V* △ T/ (10△P/20-1);
L3=V* △ T/ (10△P/20-1)+V*(△T)。
3. sound adjusting method as claimed in claim 2, which is characterized in that
The position according to where the first sound recipient, adjusts the volume parameters of the loudspeaker of the terminal device, It specifically includes:
The determining speaker volume with the first distance L1 with the first incidence relation;
The volume parameters of the loudspeaker of the terminal device are adjusted according to the speaker volume of the determination.
4. sound adjusting method as claimed in claim 3, which is characterized in that the determination and the first distance L1 have the The speaker volume of one incidence relation, comprising:
When issuing target volume according to obtained the first distance L1 and the preset first distance and the loudspeaker The second incidence relation between the collected third acquisition volume P3 of first microphone, determines that third acquires volume P3;Wherein, institute The volume difference stated between the volume and the first default volume that target volume can be such that the first sound recipient receives is lower than First preset threshold;
The volume that volume P3 and the preset loudspeaker issue is acquired according to the third of the determination to adopt with corresponding third Collect the third incidence relation between volume, determines the speaker volume;
Wherein, second incidence relation are as follows:
P3=PA+20lg (L1/L4);
The PA is the described first default volume.
5. sound adjusting method as claimed in claim 2, which is characterized in that
In the position according to where the first sound recipient, the volume parameters of the loudspeaker of the terminal device are adjusted Later, the method also includes:
The sound that the terminal device is issued according to the noise source received, determines the position where the noise source;
According to the position where the noise source, the volume parameters of the loudspeaker of the terminal device are adjusted, make the loudspeaker Volume difference of the sound of sending when reaching the position where the first sound recipient between the second default volume is lower than Second preset threshold, wherein the second default volume is greater than the described first default volume.
6. sound adjusting method as claimed in claim 5, which is characterized in that the position where the noise source includes described makes an uproar The 6th distance L6, the noise source between sound source and first microphone and the 7th distance between the second microphone L7;
The sound that the terminal device is issued according to the noise source received, determines the position where the noise source, specific to wrap It includes:
Obtain the 4th acquisition volume P4 that first microphone acquires when the noise source makes a sound and corresponding the Four acquisition time T4;
Obtain the 5th acquisition volume P5 that the second microphone acquires when the noise source makes a sound and corresponding the Five acquisition time T5;
It is adopted according to the volume difference △ P ' and the described 4th between the 4th acquisition volume P4 and the 5th acquisition volume P5 Collect the time difference △ T ' between time T4 and the 5th acquisition time T5, determine the noise source and first microphone it Between the 6th distance L6 and the noise source and the second microphone between the 7th distance L7;
Wherein, the 6th distance L6, the 7th distance L7 exist between the volume difference △ P ', time difference △ T ' respectively Following relationship:
L6=V* △ T '/(10△P’/20-1);
L7=V* △ T '/(10△P’/20-1)+V*(△T’)。
7. sound adjusting method as claimed in claim 6, which is characterized in that the position according to where the noise source, The volume of the volume parameters for adjusting the loudspeaker of the terminal device, the sound for issuing the loudspeaker reaches described first Volume difference when position where sound recipient between the second default volume is lower than the second preset threshold, comprising:
According to the 6th distance L6, the noise source and second wheat between the noise source and first microphone The 7th distance L7, the first sound recipient between gram wind and the second distance between first microphone The third distance L3 between L2, the first sound recipient and the second microphone, obtains the noise source and institute State the 8th distance L8 between the first sound recipient;
According to the 8th distance L8 between the 4th acquisition volume P4, the noise source and the first sound recipient, adjust The volume of the volume parameters for saving the loudspeaker of the terminal device, the sound for issuing the loudspeaker reaches first sound Volume difference when position where sound recipient between the second default volume is lower than the second preset threshold.
8. sound adjusting method as claimed in claim 2, which is characterized in that
In the position according to where the first sound recipient, the volume parameters of the loudspeaker of the terminal device are adjusted Later, the method also includes:
The sound that the terminal device is issued according to the second sound recipient that receives, determine the second sound recipient with The 9th distance L9 between the loudspeaker;
When determining that the first distance L1 is less than the 9th distance L9, according to the 9th distance L9, the terminal is adjusted The volume parameters of the loudspeaker of equipment, position of the sound for issuing the loudspeaker where reaching the second sound recipient It presets the volume difference between volume with third when setting and is lower than third predetermined threshold value;Wherein, the third presets volume less than described First default volume.
9. a kind of terminal device, which is characterized in that the control device including loudspeaker and with loudspeaker coupling;
The control device includes the memory and processor being mutually coupled;
The memory is for storing program data;
The processor executes described program data, for realizing the method according to claim 1.
10. a kind of device with store function, which is characterized in that be stored with program data, described program data can be held Row is to realize such as any one of claim 1-8 the method.
CN201811076439.7A 2018-09-14 2018-09-14 Sound adjusting method, terminal equipment and device with storage function Active CN109067998B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811076439.7A CN109067998B (en) 2018-09-14 2018-09-14 Sound adjusting method, terminal equipment and device with storage function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811076439.7A CN109067998B (en) 2018-09-14 2018-09-14 Sound adjusting method, terminal equipment and device with storage function

Publications (2)

Publication Number Publication Date
CN109067998A true CN109067998A (en) 2018-12-21
CN109067998B CN109067998B (en) 2020-12-25

Family

ID=64762662

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811076439.7A Active CN109067998B (en) 2018-09-14 2018-09-14 Sound adjusting method, terminal equipment and device with storage function

Country Status (1)

Country Link
CN (1) CN109067998B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022050946A1 (en) * 2020-09-03 2022-03-10 Hewlett-Packard Development Company, L.P. Inverted sound patterns based on ambient noise
CN114176623A (en) * 2021-12-21 2022-03-15 深圳大学 Sound noise reduction method, system, noise reduction device and computer readable storage medium
CN114501291A (en) * 2022-02-25 2022-05-13 深圳市豪恩声学股份有限公司 Earphone anti-interference test method and device
CN114630246A (en) * 2020-12-10 2022-06-14 比亚迪股份有限公司 Sound adjusting device, method and system

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102447787A (en) * 2011-12-09 2012-05-09 惠州Tcl移动通信有限公司 Mobile phone and method for controlling of prompt tone
CN103491230A (en) * 2013-09-04 2014-01-01 三星半导体(中国)研究开发有限公司 Mobile terminal capable of automatically adjusting volume and fonts and automatic adjusting method thereof
CN103634476A (en) * 2013-12-10 2014-03-12 南京信大气象装备有限公司 Positioning method based on recording device of mobile phone
US20160021241A1 (en) * 2014-07-20 2016-01-21 Motorola Mobility Llc Electronic Device and Method for Detecting Presence and Motion
US20160103653A1 (en) * 2014-10-14 2016-04-14 Samsung Electronics Co., Ltd. Electronic device, method of controlling volume of the electronic device, and method of controlling the electronic device
US20160119754A1 (en) * 2014-03-17 2016-04-28 International Business Machines Corporation Query based volume determination
CN105849579A (en) * 2014-10-08 2016-08-10 华为技术有限公司 Target device positioning method, and mobile terminal
CN105979434A (en) * 2016-05-30 2016-09-28 华为技术有限公司 Volume adjusting method and volume adjusting device
CN107329729A (en) * 2017-06-26 2017-11-07 深圳市泰衡诺科技有限公司 Volume adjusting method, volume adjustment device and terminal

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102447787A (en) * 2011-12-09 2012-05-09 惠州Tcl移动通信有限公司 Mobile phone and method for controlling of prompt tone
CN103491230A (en) * 2013-09-04 2014-01-01 三星半导体(中国)研究开发有限公司 Mobile terminal capable of automatically adjusting volume and fonts and automatic adjusting method thereof
CN103634476A (en) * 2013-12-10 2014-03-12 南京信大气象装备有限公司 Positioning method based on recording device of mobile phone
US20160119754A1 (en) * 2014-03-17 2016-04-28 International Business Machines Corporation Query based volume determination
US20160021241A1 (en) * 2014-07-20 2016-01-21 Motorola Mobility Llc Electronic Device and Method for Detecting Presence and Motion
CN105849579A (en) * 2014-10-08 2016-08-10 华为技术有限公司 Target device positioning method, and mobile terminal
US20160103653A1 (en) * 2014-10-14 2016-04-14 Samsung Electronics Co., Ltd. Electronic device, method of controlling volume of the electronic device, and method of controlling the electronic device
CN105979434A (en) * 2016-05-30 2016-09-28 华为技术有限公司 Volume adjusting method and volume adjusting device
CN107329729A (en) * 2017-06-26 2017-11-07 深圳市泰衡诺科技有限公司 Volume adjusting method, volume adjustment device and terminal

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022050946A1 (en) * 2020-09-03 2022-03-10 Hewlett-Packard Development Company, L.P. Inverted sound patterns based on ambient noise
CN114630246A (en) * 2020-12-10 2022-06-14 比亚迪股份有限公司 Sound adjusting device, method and system
CN114630246B (en) * 2020-12-10 2023-08-08 比亚迪股份有限公司 Sound adjusting device, method and system
CN114176623A (en) * 2021-12-21 2022-03-15 深圳大学 Sound noise reduction method, system, noise reduction device and computer readable storage medium
CN114176623B (en) * 2021-12-21 2023-09-12 深圳大学 Sound noise reduction method, system, noise reduction device and computer readable storage medium
CN114501291A (en) * 2022-02-25 2022-05-13 深圳市豪恩声学股份有限公司 Earphone anti-interference test method and device

Also Published As

Publication number Publication date
CN109067998B (en) 2020-12-25

Similar Documents

Publication Publication Date Title
US11294619B2 (en) Earphone software and hardware
CN109067998A (en) Sound adjusting method, terminal device and the device with store function
CN101277331B (en) Sound reproducing device and sound reproduction method
US8509455B2 (en) Multiple-use acoustic port
CN100531242C (en) Sound reproduction device and method in portable electronic equipment
KR20160130832A (en) Systems and methods for enhancing performance of audio transducer based on detection of transducer status
CN103873975A (en) Bluetooth headset noise reduction method, device and system
US20190066651A1 (en) Electronic device and control method of earphone device
CN203747885U (en) Acoustic signal processing system having function of double-talk detection
CN105745942A (en) Systems and methods for providing a wideband frequency response
JP2006139307A (en) Apparatus having speech effect processing and noise control and method therefore
CN101834923B (en) Method for controlling sound playing of mobile terminal and mobile terminal
WO2012092731A1 (en) Electronic terminal and ring prompt method of the electronic terminal
CN104581526A (en) Sensor
CN109996161A (en) A kind of mobile terminal and its control method of speaking, the device with store function
US20120281845A1 (en) Method for determining an impedance of an electroacoustic transducer and for operating an audio playback device
CN106293599A (en) A kind of output control method, electronic equipment and output system
US9491306B2 (en) Signal processing control in an audio device
CN101442695B (en) Microphone system, sound input apparatus and method for manufacturing the same
CN110517711A (en) Playback method, device, storage medium and the electronic equipment of audio
CN101257533A (en) Mobile terminal for intellectualized controlling sound volume of loudspeaker and its implementing method
CN109195089A (en) Test method and system for loudspeaker electro mechanical parameter in product
WO2016028847A1 (en) Binaural recording system and earpiece set
US10431199B2 (en) Electronic device and control method of earphone device
CN109218913A (en) Sound adjusting method, terminal device and the device with store function

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 518000 1-10 Floor, Building A2, Nanshan Zhiyuan, 1001 Xueyuan Avenue, Nanshan District, Shenzhen City, Guangdong Province

Applicant after: Our Internet Network Technology (Shenzhen) Co., Ltd.

Address before: 518000 1-10 Floor, Building A2, Nanshan Zhiyuan, 1001 Xueyuan Avenue, Shenzhen City, Guangdong Province

Applicant before: Our Internet Network Technology (Shenzhen) Co., Ltd.

GR01 Patent grant
GR01 Patent grant