CN106843801B - The approximating method and its system of audio - Google Patents
The approximating method and its system of audio Download PDFInfo
- Publication number
- CN106843801B CN106843801B CN201710018166.XA CN201710018166A CN106843801B CN 106843801 B CN106843801 B CN 106843801B CN 201710018166 A CN201710018166 A CN 201710018166A CN 106843801 B CN106843801 B CN 106843801B
- Authority
- CN
- China
- Prior art keywords
- sound
- source
- intensity
- calculated
- speed
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/16—Sound input; Sound output
- G06F3/165—Management of the audio stream, e.g. setting of volume, audio stream path
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/50—Controlling the output signals based on the game progress
- A63F13/54—Controlling the output signals based on the game progress involving acoustic signals, e.g. for simulating revolutions per minute [RPM] dependent engine sounds in a driving game or reverberation against a virtual wall
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F2300/00—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
- A63F2300/60—Methods for processing data by generating or executing the game program
- A63F2300/6063—Methods for processing data by generating or executing the game program for sound processing
- A63F2300/6081—Methods for processing data by generating or executing the game program for sound processing generating an output signal, e.g. under timing constraints, for spatialization
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Audiology, Speech & Language Pathology (AREA)
- General Health & Medical Sciences (AREA)
- Human Computer Interaction (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Acoustics & Sound (AREA)
- Stereophonic System (AREA)
Abstract
The invention discloses a kind of approximating method of audio and its system, method includes: the source of sound traversed in preset range;Obtain the position of the position of the source of sound, the speed of source of sound and video camera;According to the position of the position of the source of sound, the speed of source of sound and video camera, direction and the intensity of sound of the source of sound relative camera is calculated;The direction and intensity of sound are substituted into spherical Gaussian function, obtain the value of the parameter of spherical Gaussian function, the parameter includes axis, acutance and intensity;According to the position of video camera and the axis, acutance and intensity, virtual source of sound is created.The present invention, which only needs to generate a virtual source of sound, can replace roughly original independent a large amount of sources of sound, and practical manifestation smooth change, level are obvious, do not interfere with each other, and in order to which other audios have reserved enough sound channels.
Description
Technical field
The present invention relates to sound processing techniques field more particularly to the approximating methods and its system of a kind of audio.
Background technique
During secondary generation development of games, it may be necessary to the telepresenc for embodying major war, other than Picture Showing,
Audio is also very important a ring, but general game can only use 32 or even 64 sound channels, for partial game
It is far from being enough for needing this point for thousands of game unit, if all playing needs to game units all in battlefield
Sound, eventually result in that a large amount of cpu resource occupies and the phenomenon that sonic boom, sound truncation etc. influence user experience occurs.
Summary of the invention
The technical problems to be solved by the present invention are: proposing the approximating method and its system of a kind of audio, resource can be reduced
It occupies, and promotes user experience.
In order to solve the above-mentioned technical problem, a kind of the technical solution adopted by the present invention are as follows: approximating method of audio, comprising:
Traverse the source of sound in preset range;
Obtain the position of the position of the source of sound, the speed of source of sound and video camera;
According to the position of the position of the source of sound, the speed of source of sound and video camera, the source of sound is calculated and takes the photograph relatively
The direction of camera and intensity of sound;
The direction and intensity of sound are substituted into spherical Gaussian function, obtain the value of the parameter of spherical Gaussian function, it is described
Parameter includes axis, acutance and intensity, and the formula of the spherical shape Gaussian function is G (v;μ, λ, a)=aeλ(μ·v-1), wherein μ is
Axis, λ are acutance, and a is intensity;
According to the position of video camera and the axis, acutance and intensity, virtual source of sound is created.
The invention further relates to a kind of fitting systems of audio, comprising:
Spider module, for traversing the source of sound in preset range;
Module is obtained, for obtaining position, the speed of source of sound and the position of video camera of the source of sound;
First obtaining module is calculated for the position according to the position of the source of sound, the speed of source of sound and video camera
Direction and intensity of sound to the source of sound relative camera;
Second obtains module, for the direction and intensity of sound to be substituted into spherical Gaussian function, obtains spherical Gaussian function
The value of several parameters, the parameter include axis, acutance and intensity, and the formula of the spherical shape Gaussian function is G (v;μ, λ, a)=aeλ(μ·v-1), wherein μ is axis, and λ is acutance, and a is intensity;
Creation module, for according to video camera position and the axis, acutance and intensity, create virtual source of sound.
The beneficial effects of the present invention are: by the way that a certain range of source of sound is fitted to a virtual source of sound, by a void
Quasi- source of sound is low come direction, volume and the frequency height for indicating whole source of sound, due to a virtual source of sound need to only occupy one or
Several sound channels, therefore resource and performance consumption are considerably reduced, and show slot milling also for richer audio,
The problems such as sonic boom, sound truncation can be reduced simultaneously, promote user experience;The present invention only needs to generate a virtual source of sound can be thick
Generation original independent a large amount of sources of sound are taken by force, practical manifestation smooth change, level are obvious, do not interfere with each other, and for other audios
Enough sound channels are reserved.
Detailed description of the invention
Fig. 1 is a kind of flow chart of the approximating method of audio of the present invention;
Fig. 2 is 1 dimension Gaussian function schematic diagram of the embodiment of the present invention one;
Fig. 3 is the flow chart of one step S3 of the embodiment of the present invention;
Fig. 4 is the flow chart of one step S5 of the embodiment of the present invention;
Fig. 5 is a kind of structural schematic diagram of the fitting system of audio of the present invention;
Fig. 6 is the system structure diagram of the embodiment of the present invention three.
Label declaration:
1, spider module;2, module is obtained;3, first obtaining module;4, second module is obtained;5, creation module;
31, the first computing unit;32, the second computing unit;33, third computing unit;34, the 4th computing unit;
41, definition unit;42, the 5th computing unit;
51, creating unit;52, the first adjustment unit;53, second adjustment unit.
Specific embodiment
To explain the technical content, the achieved purpose and the effect of the present invention in detail, below in conjunction with embodiment and cooperate attached
Figure is explained in detail.
The most critical design of the present invention is: source of sound in a certain range is fitted to a virtual source of sound.
Referring to Fig. 1, a kind of approximating method of audio, comprising:
Traverse the source of sound in preset range;
Obtain the position of the position of the source of sound, the speed of source of sound and video camera;
According to the position of the position of the source of sound, the speed of source of sound and video camera, the source of sound is calculated and takes the photograph relatively
The direction of camera and intensity of sound;
The direction and intensity of sound are substituted into spherical Gaussian function, obtain the value of the parameter of spherical Gaussian function, it is described
Parameter includes axis, acutance and intensity, and the formula of the spherical shape Gaussian function is G (v;μ, λ, a)=aeλ(μ·v-1), wherein μ is
Axis, λ are acutance, and a is intensity;
According to the position of video camera and the axis, acutance and intensity, virtual source of sound is created.
As can be seen from the above description, the beneficial effects of the present invention are: resource and performance consumption can be considerably reduced, and
In order to which richer audio shows slot milling, while the problems such as sonic boom, sound truncation can be reduced, user experience is promoted.
Further, described " according to the position of the position of the source of sound, the speed of source of sound and video camera, to be calculated
The direction of the source of sound relative camera and intensity of sound " specifically:
According to the position of the position of the source of sound and video camera, be calculated the source of sound relative camera direction and
First distance between the source of sound and video camera;
According to the speed of the source of sound and preset index coefficient and strength factor, speed influence value is calculated;
According to the first distance, range attenuation is calculated;
According to the speed influence value and range attenuation, the intensity of sound of the source of sound is calculated.
Further, the speed influence value is calculated according to the first formula, first formula are as follows: speed influence value
=pow (speed of source of sound, index coefficient) * strength factor;
The range attenuation is calculated according to the second formula, second formula are as follows: range attenuation=1/ (first distance
^2);
The intensity of sound of the source of sound is calculated according to third formula, the third formula are as follows: intensity of sound=speed
Influence value * range attenuation.
Seen from the above description, can be obtained by above-mentioned formula the source of sound relative camera of preset range direction and
Intensity of sound, the subsequent creation parameter that virtual source of sound can be calculated by the direction and intensity of sound.
Further, described " direction and intensity of sound to be substituted into spherical Gaussian function, obtain spherical Gaussian function
The value of parameter, the parameter include axis, acutance and intensity " specifically:
Spherical shape Gaussian function G (v is defined in iunction for curve;μ, λ, a)=aeλ(μ·v-1);
It is calculated using the intensity of sound as parameter G by the iunction for curve using the direction as parameter v
Obtain the value of axis μ, acutance λ and intensity a.
Seen from the above description, the parameter that spherical Gaussian function is calculated by curve matching, improves calculated result
Accuracy rate, to improve fitting effect.
Further, described " according to the position of video camera and the axis, acutance and intensity, to create virtual source of sound and right
It is adjusted " specifically:
According to the position of video camera, the axis and preset second distance, virtual source of sound is created;
According to the acutance, the pitch of the virtual source of sound is adjusted;
According to the intensity, the volume of the virtual source of sound is adjusted.
Seen from the above description, according to the axis of calculated spherical Gaussian function, virtual sound is created on corresponding position
Source, and its pitch and volume are further adjusted according to acutance and intensity.
Fig. 6 is please referred to, the present invention also proposes a kind of fitting system of audio, comprising:
Spider module, for traversing the source of sound in preset range;
Module is obtained, for obtaining position, the speed of source of sound and the position of video camera of the source of sound;
First obtaining module is calculated for the position according to the position of the source of sound, the speed of source of sound and video camera
Direction and intensity of sound to the source of sound relative camera;
Second obtains module, for the direction and intensity of sound to be substituted into spherical Gaussian function, obtains spherical Gaussian function
The value of several parameters, the parameter include axis, acutance and intensity, and the formula of the spherical shape Gaussian function is G (v;μ, λ, a)=aeλ(μ·v-1), wherein μ is axis, and λ is acutance, and a is intensity;
Creation module, for according to video camera position and the axis, acutance and intensity, create virtual source of sound.
Further, the first obtaining module includes:
First computing unit, for the source of sound phase to be calculated according to the position of the source of sound and the position of video camera
The first distance between direction and the source of sound and video camera to video camera;
Second computing unit, for calculating according to the speed of the source of sound and preset index coefficient and strength factor
Obtain speed influence value;
Third computing unit, for range attenuation to be calculated according to the first distance;
4th computing unit, for the sound of the source of sound to be calculated according to the speed influence value and range attenuation
Intensity.
Further, the speed influence value is calculated according to the first formula, first formula are as follows: speed influence value
=pow (speed of source of sound, index coefficient) * strength factor;
The range attenuation is calculated according to the second formula, second formula are as follows: range attenuation=1/ (first distance
^2);
The intensity of sound of the source of sound is calculated according to third formula, the third formula are as follows: intensity of sound=speed
Influence value * range attenuation.
Further, it described second obtains module and includes:
Definition unit, for defining spherical shape Gaussian function G (v in iunction for curve;μ, λ, a)=aeλ(μ·v-1);
5th computing unit is used for using the direction as parameter v, using the intensity of sound as parameter G, by described
The value of axis μ, acutance λ and intensity a is calculated in iunction for curve.
Further, the creation module includes:
Creating unit, for creating virtual source of sound according to the position of video camera, the axis and preset second distance;
The first adjustment unit, for adjusting the pitch of the virtual source of sound according to the acutance;
Second adjustment unit, for adjusting the volume of the virtual source of sound according to the intensity.
Embodiment one
The embodiment of the present invention one are as follows: a kind of approximating method of audio can be applied to the large-scale cluster audio in game.
This method is based on spherical Gaussian function (Spherical Gaussian), substantially similar to 1 dimension Gaussian function, but is defined on
On spherical surface.To 1 dimension Gaussian function, it would be desirable to calculate the distance of distance center, then calculate e as the finger at bottom using this distance
It counts, it can be seen that significant protrusion features (center X=0, highly for 3) as shown in Figure 2 after graph-based;Similarly, may be used
Gaussian function is expanded to 2D;Spherical Gaussian function is identical with above-mentioned principle, and only it is defined on the surface of ball-type, therefore
Parameter and normal Gaussian function are somewhat different, are defined as follows:
G(v;μ, λ, a)=aeλ(μ·v-1)
Wherein, parameter μ is 3 dimensional vectors, indicates the axis of spherical Gaussian function, the center in similar 1 dimension Gaussian function, at this
The orientation of final source of sound is indicated in embodiment;Parameter lambda indicates acutance, and λ value is higher, indicates that sound more concentrates (general table in game
Now it is distant place or the cluster for comparing concentration), opposite λ value is lower, indicates that sound more disperses (to normally behave as around collecting in game
Group's dispersion);Parameter a indicates intensity, indicates the volume of final source of sound in the present embodiment;Variable v is 3 dimensional vectors, brings spherical shape into
The intensity of sound of the direction can be calculated after Gaussian function.
As shown in Figure 1, described method includes following steps:
S1: the source of sound in traversal preset range.
S2: the position of the position of the source of sound, the speed of source of sound and video camera is obtained.
S3: according to the position of the position of the source of sound, the speed of source of sound and video camera, it is opposite that the source of sound is calculated
The direction of video camera and intensity of sound.
S4: the direction and intensity of sound are substituted into spherical Gaussian function, obtain the value of the parameter of spherical Gaussian function, institute
Stating parameter includes axis, acutance and intensity, and the formula of the spherical shape Gaussian function is G (v;μ, λ, a)=aeλ(μ·v-1), wherein μ is
Axis, λ are acutance, and a is intensity;Further, near using the intensity of sound as parameter G using the direction as parameter v
Few three groups of bearing data and sound intensity data substitute into spherical Gaussian function, and above three parameter can be obtained.
S5: according to the position of video camera and the axis, acutance and intensity, virtual source of sound is created.
Further, as shown in figure 3, the step S3 includes the following steps:
S301: according to the position of the position of the source of sound and video camera, the side of the source of sound relative camera is calculated
To and first distance between the source of sound and video camera;
S302: according to the speed of the source of sound and preset index coefficient and strength factor, speed influence is calculated
Value;Further, the speed influence value is calculated according to the first formula, first formula are as follows: speed influence value=pow
(speed of source of sound, index coefficient) * strength factor;Preferably, the range of the index coefficient is [0.5,2], preferred value 1;
The strength factor is the inverse of the velocity amplitude of source of sound fastest in the source of sound.
S303: according to the first distance, range attenuation is calculated;Further, the range attenuation is according to second
Formula is calculated, second formula are as follows: range attenuation=1/ (first distance ^2).
S304: according to the speed influence value and range attenuation, the intensity of sound of the source of sound is calculated;Further
The intensity of sound on ground, the source of sound is calculated according to third formula, the third formula are as follows: intensity of sound=speed influences
Value * range attenuation.
Further, as shown in figure 4, the step S5 includes the following steps:
S501: according to the position of video camera, the axis and preset second distance, virtual source of sound is created;Further,
Virtual source of sound is created on the position of camera position+μ * second distance;Preferably, the second distance is 1 meter.
S502: according to the acutance, the pitch of the virtual source of sound is adjusted;Acutance λ is higher, and pitch Pitch is higher;Into one
Step ground, can adjust stereo reverberation degree, low-and high-frequency etc. again as needed.
S503: according to the intensity, the volume of the virtual source of sound is adjusted;Further, volume=a* coefficient, the system
Number is needed according to sample sound, i.e. the source of sound traversed in step S1 is adjusted.
The present embodiment indicates whole by a virtual source of sound by the way that a certain range of source of sound is fitted to a virtual source of sound
The direction of body source of sound, volume and frequency height are low, since a virtual source of sound need to only occupy one or several sound channels, because
This considerably reduces resource and performance consumption, and shows slot milling also for richer audio, at the same can reduce sonic boom,
The problems such as sound is truncated promotes user experience;The present invention, which only needs to generate a virtual source of sound, can replace roughly original independence
A large amount of sources of sound, practical manifestation smooth change, level are obvious, do not interfere with each other, and in order to which other audios have reserved enough sound
Sound channel.
Embodiment two
The present embodiment is the further expansion of step S4 in embodiment one.For step S4, curve matching can be used
Parameter μ, λ and a is calculated in the mode of (curve fitting), specifically, in iunction for curve (curve_fit letter
Number) in define spherical shape Gaussian function G (v;μ, λ, a)=aeλ(μ·v-1), then using the direction as parameter v, by the sound
The value of axis μ, acutance λ and intensity a can be calculated as parameter G in intensity by the iunction for curve.Code is illustrated such as
Under, wherein X is parameter v, and Y is parameter G;
import numpy as np
import pylab as plt
from scipy.optimize import curve_fit
from scipy import asarray
" defining spherical Gaussian function "
def SphericalGaussian(v,m,lamda,a):
return a*np.exp(m*(v.dot(lamda)-1);
" scipy.optimize.curve_fit is called to be fitted "
Popt, pcov=curve_fit (SphericalGaussian, X, Y)
It is fitted in the result returned, popt contains parameter μ, and the value of λ, a are subsequent to be created by these three parameters
Corresponding virtual source of sound.
The present embodiment calculates the parameter of spherical Gaussian function by curve matching, improves the accuracy rate of calculated result,
To improve fitting effect.
Embodiment three
Fig. 6 is please referred to, the present embodiment is a kind of fitting system of audio of corresponding above-described embodiment, comprising:
Spider module 1, for traversing the source of sound in preset range;
Module 2 is obtained, for obtaining position, the speed of source of sound and the position of video camera of the source of sound;
First obtaining module 3 is calculated for the position according to the position of the source of sound, the speed of source of sound and video camera
Obtain direction and the intensity of sound of the source of sound relative camera;
Second obtains module 4, for the direction and intensity of sound to be substituted into spherical Gaussian function, obtains spherical Gaussian function
The value of several parameters, the parameter include axis, acutance and intensity, and the formula of the spherical shape Gaussian function is G (v;μ, λ, a)=aeλ(μ·v-1), wherein μ is axis, and λ is acutance, and a is intensity;
Creation module 5, for according to video camera position and the axis, acutance and intensity, create virtual source of sound.
Further, the first obtaining module 3 includes:
First computing unit 31, for the source of sound to be calculated according to the position of the source of sound and the position of video camera
First distance between the direction of relative camera and the source of sound and video camera;
Second computing unit 32, for according to the speed of the source of sound and preset index coefficient and strength factor, meter
Calculation obtains speed influence value;
Third computing unit 33, for range attenuation to be calculated according to the first distance;
4th computing unit 34, for the sound of the source of sound to be calculated according to the speed influence value and range attenuation
Loudness of a sound degree.
Further, the speed influence value is calculated according to the first formula, first formula are as follows: speed influence value
=pow (speed of source of sound, index coefficient) * strength factor;
The range attenuation is calculated according to the second formula, second formula are as follows: range attenuation=1/ (first distance
^2);
The intensity of sound of the source of sound is calculated according to third formula, the third formula are as follows: intensity of sound=speed
Influence value * range attenuation.
Further, it described second obtains module 4 and includes:
Definition unit 41, for defining spherical shape Gaussian function G (v in iunction for curve;μ, λ, a)=aeλ(μ·v-1);
5th computing unit 42, for passing through institute using the intensity of sound as parameter G using the direction as parameter v
State the value that axis μ, acutance λ and intensity a is calculated in iunction for curve.
Further, the creation module 5 includes:
Creating unit 51, for creating virtual sound according to the position of video camera, the axis and preset second distance
Source;
The first adjustment unit 52, for adjusting the pitch of the virtual source of sound according to the acutance;
Second adjustment unit 53, for adjusting the volume of the virtual source of sound according to the intensity.
In conclusion the approximating method and its system of a kind of audio provided by the invention, by by a certain range of source of sound
It is fitted to a virtual source of sound, it is low come direction, volume and the frequency height for indicating whole source of sound by a virtual source of sound, due to
One virtual source of sound need to only occupy one or several sound channels, therefore considerably reduce resource and performance consumption, and be also
Richer audio shows slot milling, while the problems such as can reduce sonic boom, sound truncation, promoting user experience;The present invention
Original independent a large amount of sources of sound can be replaced roughly by only needing to generate a virtual source of sound, and practical manifestation smooth change, level are bright
It shows, interfere with each other, and in order to which other audios have reserved enough sound channels.
The above description is only an embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair
Equivalents made by bright specification and accompanying drawing content are applied directly or indirectly in relevant technical field, similarly include
In scope of patent protection of the invention.
Claims (10)
1. a kind of approximating method of audio characterized by comprising
Traverse the source of sound in preset range;
Obtain the position of the position of the source of sound, the speed of source of sound and video camera;
According to the position of the position of the source of sound, the speed of source of sound and video camera, the source of sound relative camera is calculated
Direction and intensity of sound;
The direction and intensity of sound are substituted into spherical Gaussian function, obtain the value of the parameter of spherical Gaussian function, the parameter
Including axis, acutance and intensity, the formula of the spherical shape Gaussian function is G (v;μ, λ, a)=aeλ(μ·v-1), wherein μ is axis, and λ is
Acutance, a are intensity, and v is the direction, and G is the intensity of sound;
According to the position of video camera and the axis, acutance and intensity, virtual source of sound is created.
2. the approximating method of audio according to claim 1, which is characterized in that described " according to the position of the source of sound, sound
Direction and the intensity of sound of the source of sound relative camera is calculated in the speed in source and the position of video camera " specifically:
According to the position of the position of the source of sound and video camera, the direction of the source of sound relative camera and described is calculated
First distance between source of sound and video camera;
According to the speed of the source of sound and preset index coefficient and strength factor, speed influence value is calculated;
According to the first distance, range attenuation is calculated;
According to the speed influence value and range attenuation, the intensity of sound of the source of sound is calculated.
3. the approximating method of audio according to claim 2, which is characterized in that the speed influence value is according to the first formula
It is calculated, first formula are as follows: speed influence value=pow (speed of source of sound, index coefficient) * strength factor;
The range attenuation is calculated according to the second formula, second formula are as follows: range attenuation=1/ (first distance ^2);
The intensity of sound of the source of sound is calculated according to third formula, the third formula are as follows: intensity of sound=speed influences
Value * range attenuation.
4. the approximating method of audio according to claim 1, which is characterized in that described " by the direction and intensity of sound
Spherical Gaussian function is substituted into, obtains the value of the parameter of spherical Gaussian function, the parameter includes axis, acutance and intensity " specifically:
Spherical shape Gaussian function G (v is defined in iunction for curve;μ, λ, a)=aeλ(μ·v-1);
It is calculated using the intensity of sound as parameter G by the iunction for curve using the direction as parameter v
The value of axis μ, acutance λ and intensity a.
5. the approximating method of audio according to claim 1, which is characterized in that it is described " according to the position of video camera and
The axis, acutance and intensity create virtual source of sound " specifically:
According to the position of video camera, the axis and preset second distance, virtual source of sound is created;
According to the acutance, the pitch of the virtual source of sound is adjusted;
According to the intensity, the volume of the virtual source of sound is adjusted.
6. a kind of fitting system of audio characterized by comprising
Spider module, for traversing the source of sound in preset range;
Module is obtained, for obtaining position, the speed of source of sound and the position of video camera of the source of sound;
Institute is calculated for the position according to the position of the source of sound, the speed of source of sound and video camera in first obtaining module
State direction and the intensity of sound of source of sound relative camera;
Second obtains module, for the direction and intensity of sound to be substituted into spherical Gaussian function, obtains spherical Gaussian function
The value of parameter, the parameter include axis, acutance and intensity, and the formula of the spherical shape Gaussian function is G (v;μ, λ, a)=aeλ(μ·v-1), wherein μ is axis, and λ is acutance, and a is intensity, and v is the direction, and G is the intensity of sound;
Creation module, for according to video camera position and the axis, acutance and intensity, create virtual source of sound.
7. the fitting system of audio according to claim 6, which is characterized in that the first obtaining module includes:
First computing unit, for being calculated according to the position of the source of sound and the position of video camera, the source of sound is opposite to be taken the photograph
First distance between the direction of camera and the source of sound and video camera;
Second computing unit, for being calculated according to the speed of the source of sound and preset index coefficient and strength factor
Speed influence value;
Third computing unit, for range attenuation to be calculated according to the first distance;
4th computing unit, for the intensity of sound of the source of sound to be calculated according to the speed influence value and range attenuation.
8. the fitting system of audio according to claim 7, which is characterized in that the speed influence value is according to the first formula
It is calculated, first formula are as follows: speed influence value=pow (speed of source of sound, index coefficient) * strength factor;
The range attenuation is calculated according to the second formula, second formula are as follows: range attenuation=1/ (first distance ^2);
The intensity of sound of the source of sound is calculated according to third formula, the third formula are as follows: intensity of sound=speed influences
Value * range attenuation.
9. the fitting system of audio according to claim 6, which is characterized in that described second, which obtains module, includes:
Definition unit, for defining spherical shape Gaussian function G (v in iunction for curve;μ, λ, a)=aeλ(μ·v-1);
5th computing unit, for passing through the curve using the intensity of sound as parameter G using the direction as parameter v
The value of axis μ, acutance λ and intensity a is calculated in fitting function.
10. the fitting system of audio according to claim 6, which is characterized in that the creation module includes:
Creating unit, for creating virtual source of sound according to the position of video camera, the axis and preset second distance;
The first adjustment unit, for adjusting the pitch of the virtual source of sound according to the acutance;
Second adjustment unit, for adjusting the volume of the virtual source of sound according to the intensity.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710018166.XA CN106843801B (en) | 2017-01-10 | 2017-01-10 | The approximating method and its system of audio |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710018166.XA CN106843801B (en) | 2017-01-10 | 2017-01-10 | The approximating method and its system of audio |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106843801A CN106843801A (en) | 2017-06-13 |
CN106843801B true CN106843801B (en) | 2019-09-17 |
Family
ID=59118227
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710018166.XA Active CN106843801B (en) | 2017-01-10 | 2017-01-10 | The approximating method and its system of audio |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106843801B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108597530B (en) | 2018-02-09 | 2020-12-11 | 腾讯科技(深圳)有限公司 | Sound reproducing method and apparatus, storage medium and electronic apparatus |
CN108465241B (en) * | 2018-02-12 | 2021-05-04 | 网易(杭州)网络有限公司 | Game sound reverberation processing method and device, storage medium and electronic equipment |
CN111508507B (en) * | 2019-01-31 | 2023-03-03 | 华为技术有限公司 | Audio signal processing method and device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0813351A2 (en) * | 1996-06-12 | 1997-12-17 | Nintendo Co., Ltd. | Sound generator synchronized with image display |
US5993318A (en) * | 1996-11-07 | 1999-11-30 | Kabushiki Kaisha Sega Enterprises | Game device, image sound processing device and recording medium |
CN104801043A (en) * | 2014-01-23 | 2015-07-29 | 腾讯科技(深圳)有限公司 | Method and device for scene sound effect control |
-
2017
- 2017-01-10 CN CN201710018166.XA patent/CN106843801B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0813351A2 (en) * | 1996-06-12 | 1997-12-17 | Nintendo Co., Ltd. | Sound generator synchronized with image display |
US5993318A (en) * | 1996-11-07 | 1999-11-30 | Kabushiki Kaisha Sega Enterprises | Game device, image sound processing device and recording medium |
CN104801043A (en) * | 2014-01-23 | 2015-07-29 | 腾讯科技(深圳)有限公司 | Method and device for scene sound effect control |
Also Published As
Publication number | Publication date |
---|---|
CN106843801A (en) | 2017-06-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106843801B (en) | The approximating method and its system of audio | |
US10740954B2 (en) | Shadow denoising in ray-tracing applications | |
CN107092266B (en) | A kind of locomotive Trajectory Tracking Control method | |
EP4231669A1 (en) | Audio propagation in a virtual environment | |
Miloch et al. | Dust grain charging in a wake of other grains | |
CO5450258A1 (en) | SYSTEMS AND METHODS TO PROVIDE A CONTROLLABLE TEXTURE SAMPLE | |
CN109697731A (en) | Plant canopy calculation method of physical volume, system and relevant device based on point cloud data | |
US20230082928A1 (en) | Virtual aiming control | |
WO2021158273A1 (en) | Augmented reality virtual audio source enhancement | |
WO2020024593A1 (en) | Method and device for image processing | |
Bouchut et al. | Fronts and nonlinear waves in a simplified shallow-water model of the atmosphere with moisture and convection | |
CN112967705A (en) | Mixed sound song generation method, device, equipment and storage medium | |
US10810992B2 (en) | Reverberation gain normalization | |
CN103500278A (en) | Path similarity typhoon analysis method based on shortest path algorithm | |
CN110493703A (en) | Stereo audio processing method, system and the storage medium of virtual spectators | |
Cuntz et al. | Fast hierarchical 3D distance transforms on the gpu. | |
TWI489417B (en) | Stabilisation method and computer system | |
CN111047707A (en) | Bleeding simulation method of mixed particle blood model based on SPH | |
CN106228003B (en) | A kind of method and device determining accurate Green's function | |
CN114040317A (en) | Sound channel compensation method and device, electronic equipment and storage medium | |
WO2013055320A2 (en) | Gathering path data from a massively multiplayer on-line role-playing game | |
CN105510879B (en) | A kind of noise abatement area determination method and electronic equipment | |
CN106780750A (en) | The method for automatically generating 3D curved surfaces | |
CN107147374A (en) | Change exponent number LMS wave filters based on auto-adaptive parameter | |
US20230362579A1 (en) | Sound spatialization system and method for augmenting visual sensory response with spatial audio cues |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |