The content of the invention
For the defect of prior art, the invention provides a kind of audio play control method and system, solve existing
Monophonic audio cannot realize the problem of stereophonic effect output in technology.
A kind of audio play control method, including:
Monophonic audio is obtained, as the first audio;
By the intensity of sound value of first audio and left position angle multiplication, the first left audio output is calculated
Intensity level;
By the intensity of sound value of first audio and right position angle multiplication, the first right audio output is calculated
Intensity level;
First audio is exported according to the described first left audio output intensity level in L channel, by first audio
Exported in R channel according to the described first right audio output intensity level.
Preferably, the computational methods of the left position angle coefficient are:
The audio intensity interval of [0,2] centered on 1 is set;
A numerical value is taken in the audio interval, as the left position angle coefficient.
Preferably, the computational methods of the right position angle coefficient are:
The left position angle coefficient is subtracted with the maximum in the audio intensity interval, the right side is calculated
Position angle coefficient.
Preferably, it is described that a numerical value is taken in the audio interval, specially:
Determine position of the target source of sound in the coordinate system centered on (1,1);
Calculate angle value of the position of the target audio with the coordinate system center position relative to trunnion axis;
If the target source of sound is on the left side of the coordinate system longitudinal axis, with the angle value and the ratio of vertical angle
Based on, the audio intensity interval (1,2] in value;
If the target audio is on the right of the coordinate system longitudinal axis, with the angle value and the ratio of vertical angle
Based on, the audio intensity interval [0,1) in value;
If the target audio is on the coordinate system longitudinal axis, value is 1.
A kind of audio broadcasting control system, including:Control platform and ultrasonic wave audio emitter group;
The control platform includes:Input interface, computing module, L channel output interface, R channel output interface and shell
Body;
Interface hole is left in the outer surface of the housing, the input interface, L channel output interface and R channel are defeated
Outgoing interface is arranged in the interface hole.
The end of the input interface connects the computing module, and the monophonic audio that will be received is sent to the calculating
Module.
The computing module is arranged in the housing, using the monophonic audio as the first audio;By described first
The intensity of sound value of audio and left position angle multiplication, are calculated the first left audio output intensity level;By described first
The intensity of sound value of audio and right position angle multiplication, are calculated the first right audio output intensity level;By described first
Audio is exported according to the described first left audio output intensity level from the L channel output interface, by first audio according to institute
The first right audio output intensity level is stated to be exported from the R channel output interface;
The ultrasonic wave audio emitter group includes left side audio transmitter and right audio transmitter, connects described respectively
The L channel output interface and R channel output interface of control platform, for the left channel audio signal and R channel that will receive
Audio signal carries out ultrasonic wave audio output.
Preferably, in the computing module, include:Left Angle coefficient calculating sub module;
The Left Angle coefficient calculating sub module, the audio intensity interval for setting [0,2] centered on 1;
A numerical value is taken in the audio interval, as the left position angle coefficient.
Preferably, in the computing module, also include:Right position calculating sub module;
The right position calculating sub module, for subtracting the left position with the maximum in the audio intensity interval
Coefficient of angularity is put, the right position angle coefficient is calculated.
Preferably, in the Left Angle coefficient calculating sub module, include:Angle ratio calculating sub module;
The angle ratio calculating sub module, for determining target source of sound in the coordinate system centered on (1,1)
Position;Calculate angle value of the position of the target audio with the coordinate system center position relative to trunnion axis;
If the target source of sound is on the left side of the coordinate system longitudinal axis, with the angle value and the ratio of vertical angle
Based on, the audio intensity interval (1,2] in value;
If the target audio is on the right of the coordinate system longitudinal axis, with the angle value and the ratio of vertical angle
Based on, the audio intensity interval [0,1) in value;
If the target audio is on the coordinate system longitudinal axis, value is 1.
Preferably, the control platform also includes:Target source of sound demarcates component;
The target source of sound demarcates component, the target sound source position for receiving user input, by target source of sound hair
Give the Left Angle coefficient calculating sub module.
Preferably, the target audio is demarcated component and is arranged on the panel of the control platform, the target sound frequency marking
Component is determined for slide rail type parameter obtaining component.
The beneficial effects of the invention are as follows:
In the present invention, monophonic audio is obtained first, as the first audio;It is afterwards that the sound of first audio is strong
Angle value and left position angle multiplication, are calculated the first left audio output intensity level;The sound of first audio is strong
Angle value and right position angle multiplication, are calculated the first right audio output intensity level;Finally by first audio according to
The first left audio output intensity level is exported in L channel, by first audio according to the described first right audio output intensity
Value is in R channel output.By using above method, the two-channel stereo voice output to single audio frequency is capable of achieving, improves user's
Audiovisual experience, while also not recorded with binaural format necessarily in audio recording, reduces recording cost.
Specific embodiment
To enable the above objects, features and advantages of the present invention more obvious understandable, below in conjunction with the accompanying drawings to the present invention
Specific embodiment be described in detail, above and other purpose of the invention, feature and advantage will be become apparent from.Complete
Identical reference indicates identical part in portion's accompanying drawing.Not deliberately accompanying drawing drawn to scale, it is preferred that emphasis is show this hair
Bright purport.
Referring to Fig. 1, a kind of flow chart of audio play control method first embodiment that the figure is provided for the present invention.
In the present embodiment, including:
S101:Monophonic audio is obtained, as the first audio;
S102:By the intensity of sound value of first audio and left position angle multiplication, the first left sound is calculated
Frequency intensity values;
S103:By the intensity of sound value of first audio and right position angle multiplication, the first right sound is calculated
Frequency intensity values;
S104:First audio is exported according to the described first left audio output intensity level in L channel, by described the
One audio is exported according to the described first right audio output intensity level in R channel.
When processing mono audio file, monophonic audio is got first, as the first audio.
In the voice data, the parameters such as intensity of sound (decibel) value of monophonic audio can be got.
For monophonic audio, in the absence of the problem of multiple sound source datas.Therefore, control is played out in left and right acoustic channels
When processed, audio frequency process all also is carried out to the monophonic audio for getting.Specifically, the intensity of sound value of the first audio is obtained, will
The numerical value and specified left position angle multiplication, are calculated and produce a numerical value, and the audio of audio is exported as left audio
Intensity level.
Meanwhile, in order to build the stereophonic effect of multichannel audio, in addition it is also necessary to which right audio channel is processed.Cause
This left audio has been enhanced or has weakened, thus right audio channel the result of broadcast broadcasting that then needs with left audio
Effect is opposite.Specifically, by the intensity of sound of the first audio and right position angle multiplication, to obtain R channel output audio
Audio intensity value.
Wherein, obtaining left position angle coefficient and the mode of right position angle system has various.In the present embodiment, preferably
, the audio intensity interval of [0,2] centered on 1 can be set, a numerical value is taken in audio interval afterwards,
As the left position angle coefficient.After left position angle coefficient is obtained, subtracted with the maximum in audio intensity interval
The left position angle coefficient is removed, right position angle coefficient is calculated.
Assuming that the intensity of sound value of the first audio is 20dB, if taking 0.5 in audio intensity interval as left position
Put coefficient of angularity, then it is assumed that the intensity of left audio should weakened half, i.e., left audio output audio be 10dB.
And right position angle coefficient is to subtract the left position angle coefficient, i.e. 2-0.5 with the maximum in audio intensity interval
=1.5.Right position angle coefficient is multiplied with the intensity level of the first audio again, obtains value for 20dB*1.5=30dB, i.e., quite
In right audio channel intensity increased into 0.5 times.So, when L channel and R channel pronounce simultaneously, due to intensity of sound
It is inconsistent so that human body produce position sense.
In the present embodiment, in order to obtain more accurately right position coefficient of angularity, can also further refine audio and take
Value takes a method for numerical value in interval, specially:
Determine position of the target source of sound in the coordinate system centered on (1,1).
The position and coordinate system center position of target audio are calculated afterwards, i.e., the position of (1,1) point is relative to trunnion axis
Angle value.
In a coordinate system, the angular interval on the basis of trunnion axis is [0,180] or [0, -180], wherein with 90 degree
Or centered on -90 spend.And audio intensity interval is [0,2], centered on 1.Can be with passing ratio between both
Relation carries out correspondence.
If target source of sound is on the left side of the coordinate system longitudinal axis, referring to Fig. 2A and 2B, then with the angle value and vertical angle
Ratio based on, the audio intensity interval (1,2] in value.
In fig. 2, the position of target source of sound is 135 degree, the left position in the longitudinal axis.By 135 degree of ÷ 90 degree=1.5,
It is 1.5 to obtain left position angle bottom coefficient.In fig. 2b, the position of target source of sound is -135 degree, is also at the left side of the longitudinal axis
- 135 degree ÷ -90 are spent=1.5 by position, that is, it is 1.5 to obtain left position angle bottom coefficient.
If the target audio is on the right of the coordinate system longitudinal axis, referring to Fig. 3 A and 3B, then with the angle value with
Based on the ratio of vertical angle, the audio intensity interval [0,1) in value.
In figure 3 a, the position of target source of sound is 45 degree, the location right in the longitudinal axis.By 45 degree of ÷ 90 degree=0.5, i.e.,
It is 0.5 to obtain left position angle bottom coefficient.In figure 3b, the position of target source of sound is -45 degree, is also at the position on the right of the longitudinal axis
Put, -45 degree ÷ -90 are spent=0.5, that is, it is 0.5 to obtain left position angle bottom coefficient.
If the target audio is on the coordinate system longitudinal axis, referring to Fig. 4 A and 4B, 90 degree of ÷ 90 degree=1 or -90 spend
÷ -90 degree=1, value is 1.
After above-mentioned left position angle coefficient is obtained, then it is calculated right position angle coefficient.
Finally, export the first audio according to the left audio intensity level that is calculated in L channel, R channel according to
The right audio channel intensity level being calculated exports the first audio.
By using above method, the two-channel stereo voice output to single audio frequency is capable of achieving, improves the audiovisual body of user
Test, while also not recorded with binaural format necessarily in audio recording, reduce recording cost.
A kind of technical scheme of the audio play control method for being provided for the present invention above.On the basis of this technical scheme
On, the present invention also provides a kind of audio broadcasting control system, specific as follows:
Referring to Fig. 5, a kind of theory diagram of audio broadcasting control system first embodiment that the figure is provided for the present invention.
In the present embodiment, including:Control platform 10 and ultrasonic wave audio emitter group 20;
The control platform 10 includes:Input interface 101, computing module 102, L channel output interface 103, R channel are defeated
Outgoing interface 104 and housing 105.
Interface hole, the input interface 101, the and of L channel output interface 103 are left in the outer surface of the housing 105
R channel output interface 104 is arranged in the interface hole.
The end of the input interface 101 connects the computing module 102, and the monophonic audio that will be received is sent to institute
State computing module.
The computing module 102 is arranged in the housing 105, using the monophonic audio as the first audio;By institute
The intensity of sound value and left position angle multiplication of the first audio are stated, the first left audio output intensity level is calculated;By institute
The intensity of sound value and right position angle multiplication of the first audio are stated, the first right audio output intensity level is calculated;By institute
State the first audio to be exported from the L channel output interface 103 according to the described first left audio output intensity level, by described first
Audio is exported according to the described first right audio output intensity level from the R channel output interface 104.
20 groups of the ultrasonic wave audio emitter includes left side audio transmitter 201 and right audio transmitter 202, respectively
The L channel output interface and R channel output interface of the control platform are connected, for the left channel audio signal that will be received
Ultrasonic wave audio output is carried out with right channel audio signal.
When the system is processed mono audio file, input interface 101 gets monophonic audio first
Voice data, computing module 102 is sent to as the first audio.
Computing module 102 can get intensity of sound (decibel) value of monophonic audio after the first audio is received
Etc. parameter.
For monophonic audio, in the absence of the problem of multiple sound source datas.Therefore, control is played out in left and right acoustic channels
When processed, audio frequency process all also is carried out to the monophonic audio for getting.Specifically, the intensity of sound value of the first audio is obtained, will
The numerical value and specified left position angle multiplication, are calculated and produce a numerical value, and the audio of audio is exported as left audio
Intensity level.
Meanwhile, in order to build the stereophonic effect of multichannel audio, in addition it is also necessary to which right audio channel is processed.Cause
This left audio has been enhanced or has weakened, thus right audio channel the result of broadcast broadcasting that then needs with left audio
Effect is opposite.Specifically, by the intensity of sound of the first audio and right position angle multiplication, to obtain R channel output audio
Audio intensity value.
Wherein, obtaining left position angle coefficient and the mode of right position angle system has various.In the present embodiment, preferably
, Left Angle coefficient calculating sub module and right coefficient of angularity calculating sub module are included in computing module, the submodule is used for
The audio intensity interval of [0,2] centered on 1 is set, a numerical value is taken in audio interval afterwards, as institute
State left position angle coefficient.After left position angle coefficient is obtained, by right coefficient of angularity calculating sub module with audio intensity value
Maximum in interval subtracts the left position angle coefficient, is calculated right position angle coefficient.
Assuming that the intensity of sound value of the first audio is 20dB, if taking 0.5 in audio intensity interval as left position
Put coefficient of angularity, then it is assumed that the intensity of left audio should weakened half, i.e., left audio output audio be 10dB.
And right position angle coefficient is to subtract the left position angle coefficient, i.e. 2-0.5 with the maximum in audio intensity interval
=1.5.Right position angle coefficient is multiplied with the intensity level of the first audio again, obtains value for 20dB*1.5=30dB, i.e., quite
In right audio channel intensity increased into 0.5 times.So, when L channel and R channel pronounce simultaneously, due to intensity of sound
It is inconsistent so that human body produce position sense.
In the present embodiment, in order to obtain more accurately right position coefficient of angularity, in Left Angle coefficient calculating sub module
In, also include:Angle ratio calculating sub module.
The angle ratio calculating sub module, for determining target source of sound in the coordinate system centered on (1,1)
Position, calculates the position and coordinate system center position of target audio, the i.e. angle of the position relative to trunnion axis of (1,1) point afterwards
Angle value.
In a coordinate system, the angular interval on the basis of trunnion axis is [0,180] or [0, -180], wherein with 90 degree
Or centered on -90 spend.And audio intensity interval is [0,2], centered on 1.Can be with passing ratio between both
Relation carries out correspondence.
If target source of sound is on the left side of the coordinate system longitudinal axis, referring to Fig. 2A and 2B, then with the angle value and vertical angle
Ratio based on, the audio intensity interval (1,2] in value.
In fig. 2, the position of target source of sound is 135 degree, the left position in the longitudinal axis.By 135 degree of ÷ 90 degree=1.5,
It is 1.5 to obtain left position angle bottom coefficient.In fig. 2b, the position of target source of sound is -135 degree, is also at the left side of the longitudinal axis
- 135 degree ÷ -90 are spent=1.5 by position, that is, it is 1.5 to obtain left position angle bottom coefficient.
If the target audio is on the right of the coordinate system longitudinal axis, referring to Fig. 3 A and 3B, then with the angle value with
Based on the ratio of vertical angle, the audio intensity interval [0,1) in value.
In figure 3 a, the position of target source of sound is 45 degree, the location right in the longitudinal axis.By 45 degree of ÷ 90 degree=0.5, i.e.,
It is 0.5 to obtain left position angle bottom coefficient.In figure 3b, the position of target source of sound is -45 degree, is also at the position on the right of the longitudinal axis
Put, -45 degree ÷ -90 are spent=0.5, that is, it is 0.5 to obtain left position angle bottom coefficient.
If the target audio is on the coordinate system longitudinal axis, referring to Fig. 4 A and 4B, 90 degree of ÷ 90 degree=1 or -90 spend
÷ -90 degree=1, value is 1.
After angle ratio calculating sub module is calculated left position angle coefficient, then by right coefficient of angularity calculating sub module
It is calculated right position angle coefficient.
Position and result of broadcast for the ease of user's control target audio, also include in the control platform:Target
Source of sound demarcates component.The target source of sound demarcates component, the target sound source position for receiving user input, by the target source of sound
It is sent to the Left Angle coefficient calculating sub module.Preferably, target audio demarcates the face that component is arranged on the control platform
On plate, it is slide rail type parameter obtaining component, such as linear slide rail, circular slide rail that the target audio demarcates component, or
A certain virtual image, the position of target audio is specified by the position for touching the virtual image.
Finally, export the first audio according to the left audio intensity level that is calculated in L channel, R channel according to
The right audio channel intensity level being calculated exports the first audio.
Left side audio transmitter 201 and right audio transmitter 202 in 20 groups of the ultrasonic wave audio emitter, respectively
The L channel output interface 103 and R channel output interface 104 of the control platform 10 are connected, for the L channel that will be received
Audio signal and right channel audio signal carry out ultrasonic wave audio output.
By using system above, the two-channel stereo voice output to single audio frequency is capable of achieving, improves the audiovisual body of user
Test, while also not recorded with binaural format necessarily in audio recording, reduce recording cost.
Elaborate many details in order to fully understand the present invention in the above description.But above description is only
Presently preferred embodiments of the present invention, the present invention can be implemented with being much different from other manner described here, therefore this
Invention is not limited by specific implementation disclosed above.Any those skilled in the art are not departing from the technology of the present invention simultaneously
In the case of aspects, all make many possible to technical solution of the present invention using the methods and techniques content of the disclosure above
Change and modify, or the Equivalent embodiments for being revised as equivalent variations.Every content without departing from technical solution of the present invention, according to this
The technical spirit of invention still falls within skill of the present invention to any simple modification, equivalent variation and modification made for any of the above embodiments
In the range of the protection of art scheme.