Summary of the invention
For solving problems of the prior art, embodiments of the invention provide a kind of method of adjustment, device and terminal of terminal audio frequency, can provide audibility preferably to the user, satisfy user's needs.
For achieving the above object, embodiments of the invention adopt following technical scheme:
A kind of method of adjustment of terminal audio frequency, described method comprises:
Beginning is obtained the original position-information of terminal with respect to the user during audio plays, and described original position-information comprises that described terminal is with respect to the left original position-information of described user left side ear and the described terminal right original position-information with respect to described user's auris dextra;
Measure described terminal current location information with respect to described user in moving, described current location information comprises that described terminal is with respect to the left current location information of described user left side ear and the described terminal right current location information with respect to described user's auris dextra;
Utilize described original position-information and described current location information, at least one in the intensity of described terminal institute audio plays and the phase place is adjusted, wherein, utilize described left original position-information and described left current location information, at least one in the intensity of described terminal L channel institute audio plays and the phase place is adjusted, utilize described right original position-information and described right current location information, at least one in the intensity of described terminal R channel institute audio plays and the phase place is adjusted.
A kind of terminal audio frequency adjusting device, described device comprises:
The original position-information acquiring unit, when being used to begin audio plays, obtain the original position-information of terminal with respect to the user, described original position-information comprises that described terminal is with respect to the left original position-information of described user left side ear and the described terminal right original position-information with respect to described user's auris dextra;
The current location information acquiring unit, be used for measuring described terminal at the current location information that moves with respect to described user, described current location information comprises that described terminal is with respect to the left current location information of described user left side ear and the described terminal right current location information with respect to described user's auris dextra;
Adjustment unit, be used to utilize described original position-information and described current location information, at least one in the intensity of described terminal institute audio plays and the phase place is adjusted, wherein, utilize described left original position-information and described left current location information, at least one in the intensity of described terminal L channel institute audio plays and the phase place is adjusted, utilize described right original position-information and described right current location information, at least one in the intensity of described terminal R channel institute audio plays and the phase place is adjusted.
A kind of terminal, described terminal comprise above-mentioned terminal audio frequency adjusting device.
The technical scheme that the embodiment of the invention provides, utilized user's the left and right sides ear azimuth-range of audio frequency to be had the characteristic of difference in perception, when terminal moves, by the intensity of terminal left and right acoustic channels institute audio plays and at least one item in the phase place are adjusted, make the user can not feel that source of sound constantly changes along with moving of terminal location, thereby reached audibility preferably, satisfied user's needs.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described.
The method of adjustment of the terminal audio frequency that one embodiment of the invention provides, referring to Fig. 1, described method comprises:
11: beginning is obtained the original position-information of terminal with respect to the user during audio plays, and described original position-information comprises that terminal is with respect to the left original position-information of the left ear of user and the terminal right original position-information with respect to user's auris dextra;
12: measure described terminal current location information with respect to the user in moving, described current location information comprises that terminal is with respect to the left current location information of the left ear of user and the terminal right current location information with respect to user's auris dextra;
13: utilize described original position-information and current location information, at least one in the intensity of described terminal institute audio plays and the phase place is adjusted, wherein, utilize described left original position-information and left current location information, at least one in the intensity of described terminal L channel institute audio plays and the phase place is adjusted, utilize described right original position-information and right current location information, at least one in the intensity of described terminal R channel institute audio plays and the phase place is adjusted.
The technical scheme that the embodiment of the invention provides, utilized azimuth-range the difference on perception of user's left and right sides ear to audio frequency, when terminal moves, by the intensity of terminal left and right acoustic channels institute audio plays and at least one item in the phase place are adjusted, make the user can not feel that source of sound constantly changes along with moving of terminal location, thereby reached audibility preferably, satisfied user's needs.
The method of adjustment of the terminal audio frequency that another embodiment of the present invention is provided is elaborated below.
11: during the beginning audio plays, obtain the original position-information of terminal with respect to the user.
Above-mentioned original position-information comprises that terminal is with respect to the left original position-information of the left ear of user and the terminal right original position-information with respect to user's auris dextra.
If will obtain the sound source position that original position-information needs to determine earlier required audio plays, original position-information is the positional information of terminal when being in sound source position.Sound source position is when terminal moves, and makes the user feel that the sound of uppick is the position that spreads out of from this position all the time.Sound source position also can be adjusted and be changed after determining as required.
Can determine the sound source position of required audio plays by following at least a mode:
In the time of will beginning audio plays, the residing position of terminal is set to described sound source position; Perhaps, with a predefined fixed position as described sound source position.
Referring to Fig. 2, shown the schematic diagram that terminal moves, the terminal present position is set to sound source position when beginning audio plays in the scene shown in Figure 2, at this moment, original position-information comprise terminal apart from people's ear (left ear or auris dextra) apart from S1.Utilize method that positional information adjusts audio frequency intensity not simultaneously, the particular content that is comprised in the positional information (original position-information or current location information) is also different, as comprising the level inclination and the vertical dip angle of terminal in the original position-information.
(Personal Digital Assistant PDA) waits the portable set with voice playing function to terminal in the embodiment of the invention including, but not limited to mobile phone, MP3, MP4, personal digital assistant.
When music began to play, terminal or the relevant device that is integrated on the terminal obtained the original position-information of terminal with respect to human body.When sound source position is a predefined fixed position, can obtain in advance that terminal is positioned at the positional information of this sound source position and with this positional information as above-mentioned original position-information.In scene shown in Figure 2, terminal present position when sound source position is set to begin audio plays, measure the original position-information of beginning terminal present position during audio plays, and the terminal that this original position-information is indicated is shown S1 with respect to user's distance table.
Since identical for the adjustment of L channel audio frequency with mode to the adjustment of right audio channel, no longer left and right acoustic channels is described as two kinds of situations respectively in embodiments of the present invention.
12: measure terminal current location information with respect to the user in moving.
Need to prove: can select in real time according to actual conditions, periodic measurement or reach under certain predetermined conditions measures, to obtain terminal current location information with respect to the user in moving.
Can obtain positional information by gravity sensor or infrared induction equipment etc., the positional information of utilizing gravity sensor to get access to can comprise level inclination, the vertical dip angle of terminal, information such as the acceleration of motion of terminal, can calculate the shift length of terminal and the direction of displacement inclination angle of terminal by these information, thereby obtain terminal distance and bearing with respect to people's ear in moving.And utilize infrared induction equipment can directly measure terminal distance and bearing with respect to people's ear in moving.
Referring to Fig. 2, the terminal that the current location information that measures is indicated is shown S2 with respect to user's distance table.A kind of optional mode is for to be measured the shift length Δ L and the deviation angle θ of terminal and to be calculated S2 by gravity sensor.
The concrete mode of obtaining positional information is not limited at this, the variation of position was adjusted the intensity and the phase place of audio frequency during the embodiment of the invention mainly was to move according to terminal, so as long as can know the distance of terminal with respect to people's ear according to the positional information that gets access to.
For the ease of the technical scheme of the clearer explanation embodiment of the invention, some technical characterictics that audio frequency is propagated are introduced below.
The source of sound distance of ear perception can be expressed as the inverse of left and right sides ear intensity difference.Intensity difference is big more, shows that source of sound is near more from the listener, and the easy more perception of listener goes out general distance; Intensity difference is more little, shows that source of sound is far away more from the listener, and the listener is difficult more to judge general distance, is difficult to judge according to thunder the particular location of sound source as people.This is by intensity of sound attenuation characteristic decision, and distance is near more, and it is quick more to decay, and promptly sound attenuating and distance square is inversely proportional to.The variation of intensity of sound after leaving source of sound can be expressed as following formula: intensity P=green strength/distance square.
By foregoing as can be seen, when terminal moved with respect to the user, terminal institute audio plays was with respect to the Strength Changes of people's ear (left ear or auris dextra), and people left and right sides ear intensity difference also changes, and distance constantly changes thereby the people perceives source of sound.
13: utilize described original position-information and current location information, at least one in the intensity of described terminal institute audio plays and the phase place is adjusted, mainly comprise: utilize described left original position-information and left current location information, at least one in the intensity of described terminal L channel institute audio plays and the phase place is adjusted, utilize described right original position-information and right current location information, at least one in the intensity of described terminal R channel institute audio plays and the phase place is adjusted.
According to concrete needs, as the concrete mode of terminal motion or user requirement to audibility, select to adjust the intensity or the phase place of terminal left and right acoustic channels audio frequency, perhaps simultaneously intensity and phase place are adjusted, the adjustment of intensity has mainly been influenced the audible distance of user institute perception, the adjustment of phase place has mainly been influenced the audio frequency orientation of user institute perception.
Above-mentioned original position-information and current location information respectively indicating terminal in the relevant position with respect to people's ear (left ear or auris dextra) distance.
For guaranteeing that the intensity of sound is constant before and after the shift in position, can obtain according to formula P1/ (S1*S1)=P2/ (S2*S2): P2=P1* ((S2*S2)/(S1*S1)), and then obtain intensity adjusted value A=((S2*S2)/(S1*S1))-1, A be on the occasion of the time, increase intensity, when A is negative value, reduce intensity.That is:
When judging that according to original position-information and current location information the distance of terminal with respect to the user increases, increase the intensity of audio frequency, when judging that according to described original position-information and current location information the distance of terminal with respect to the user reduces, reduce the intensity of audio frequency.
Further, utilize described original position-information and current location information,, calculate intensity adjusted value A according to following formula:
A=((S2*S2)/(S1*S1))-1, wherein, S1 represents the displacement of the terminal distance users that original position-information is indicated, S2 represents the displacement of the terminal distance users that current location information is indicated;
When described intensity adjusted value be on the occasion of the time, increase the intensity of audio frequency, when described intensity adjusted value is negative value, reduce the intensity of audio frequency.
Obtain the inclination angle that terminal is offset according to described original position-information and current location information in moving, adjust the phase place of audio frequency according to described inclination angle.Concrete, utilize described original position-information and current location information to obtain the inclination angle [theta] of terminal skew in moving, according to following formula, utilize described inclination angle to adjust the phase place of audio frequency:
α=α (t)-θ, wherein, α represents adjusted current audio frequency phase, the phase place of the current audio frequency before α (t) expression is adjusted.
Above-mentioned formula shows the audio signal that terminal is play in current location, and have between the audio signal that terminal is play in the home position-phase difference of θ, and according to phase calculation formula 2 π ft=-θ, wherein, f is the frequency of sound wave, obtain t=-θ/2 π f,, adjusted the delay time that audio frequency sends then by adjusting the phase place of audio frequency.
Because the Azimuth ﹠ Range of people institute sound sensed, mainly judge according to mutual sense of hearing intensity difference of people left and right sides ear and the mutual sound wave difference time of advent, the embodiment of the invention is by adjusting at least one in the intensity of described terminal L channel institute audio plays and the phase place, can improve user's audibility, satisfy user's needs.
A kind of terminal audio frequency adjusting device that another embodiment of the present invention provides, referring to Fig. 3, described device comprises:
Original position-information acquiring unit 31, when being used to begin audio plays, obtain the original position-information of terminal with respect to the user, described original position-information comprises that terminal is with respect to the left original position-information of the left ear of user and the terminal right original position-information with respect to user's auris dextra;
Current location information acquiring unit 32, be used for measuring described terminal at the current location information that moves with respect to the user, described current location information comprises that terminal is with respect to the left current location information of the left ear of user and the terminal right current location information with respect to user's auris dextra;
Adjustment unit 33, be used to utilize described original position-information and current location information, at least one in the intensity of described terminal institute audio plays and the phase place is adjusted, wherein, utilize described left original position-information and left current location information, at least one in the intensity of described terminal L channel institute audio plays and the phase place is adjusted, utilize described right original position-information and right current location information, at least one in the intensity of described terminal R channel institute audio plays and the phase place is adjusted.
Further, said apparatus also comprises the sound source position determining unit, be used for determining and writing down the sound source position of required audio plays, described original position-information comprises when terminal is positioned at described sound source position when being positioned at described sound source position with respect to the left positional information of user left side ear and terminal the right positional information with respect to user's auris dextra.
Wherein, above-mentioned adjustment unit 33 comprises at least a in intensity adjusting module and the phase adjusting module,
Described intensity adjusting module, when being used for judging that according to described original position-information and current location information terminal increases with respect to user's distance, increase the intensity of audio frequency, and, when judging that according to described original position-information and current location information terminal reduces with respect to user's distance, reduce the intensity of audio frequency;
Described phase adjusting module is used for obtaining terminal at the inclination angle of moving skew according to described original position-information and current location information, adjusts the phase place of audio frequency according to described inclination angle.
Further, described intensity adjusting module specifically is used to utilize described original position-information and current location information, according to following formula, calculates intensity adjusted value A:
A=((S2*S2)/(S1*S1))-1, wherein, S1 represents the relative user's of terminal that original position-information is indicated distance, S2 represents the relative user's of terminal that current location information is indicated distance;
When described intensity adjusted value be on the occasion of the time, increase the intensity of audio frequency, when described intensity adjusted value is negative value, reduce the intensity of audio frequency;
Described phase adjusting module specifically is used for utilizing described original position-information and current location information to obtain terminal in the inclination angle [theta] that moves skew, according to following formula, utilizes described inclination angle to adjust the phase place of audio frequency:
α=α (t)-θ, wherein, α represents adjusted current audio frequency phase, the phase place of the current audio frequency before α (t) expression is adjusted.
The concrete working method of each functional module and unit is referring to the inventive method embodiment among apparatus of the present invention embodiment.Each functional module and unit can be realized separately among apparatus of the present invention embodiment, also can be integrated in one or more unit and realize.
Further embodiment of this invention also provides a kind of terminal, and this terminal comprises above-mentioned terminal audio frequency adjusting device.The terminal that the embodiment of the invention provided has the portable set of voice playing function including, but not limited to mobile phone, MP3, MP4 and PDA etc.
The technical scheme that the embodiment of the invention provides, utilized azimuth-range the difference on perception of user's left and right sides ear to audio frequency, when terminal moves, by the intensity of terminal left and right acoustic channels institute audio plays and at least one item in the phase place are adjusted, make the user can not feel that source of sound constantly changes along with moving of terminal location, thereby reached audibility preferably, satisfied user's needs.
The above; only be the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; the variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claim.