CN106843801A - The approximating method and its system of audio - Google Patents

The approximating method and its system of audio Download PDF

Info

Publication number
CN106843801A
CN106843801A CN201710018166.XA CN201710018166A CN106843801A CN 106843801 A CN106843801 A CN 106843801A CN 201710018166 A CN201710018166 A CN 201710018166A CN 106843801 A CN106843801 A CN 106843801A
Authority
CN
China
Prior art keywords
sound
source
intensity
calculated
video camera
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
CN201710018166.XA
Other languages
Chinese (zh)
Other versions
CN106843801B (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.)
Fujian Tianyi Network Technology Co Ltd
Original Assignee
Fujian Tianyi Network Technology 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 Fujian Tianyi Network Technology Co Ltd filed Critical Fujian Tianyi Network Technology Co Ltd
Priority to CN201710018166.XA priority Critical patent/CN106843801B/en
Publication of CN106843801A publication Critical patent/CN106843801A/en
Application granted granted Critical
Publication of CN106843801B publication Critical patent/CN106843801B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/16Sound input; Sound output
    • G06F3/165Management of the audio stream, e.g. setting of volume, audio stream path
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/54Controlling 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
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features 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/60Methods for processing data by generating or executing the game program
    • A63F2300/6063Methods for processing data by generating or executing the game program for sound processing
    • A63F2300/6081Methods 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 the approximating method and its system of a kind of audio, method includes:Source of sound in traversal preset range;Obtain the position of the position of the source of sound, the speed of source of sound and video camera;The speed of position, source of sound according to the source of sound and the position of video camera, are calculated direction and the intensity of sound of the source of sound relative camera;The direction and intensity of sound are substituted into spherical Gaussian function, the value of the parameter of spherical Gaussian function is obtained, the parameter includes axle, acutance and intensity;Position and the axle, acutance and intensity according to video camera, create virtual source of sound.The present invention only need to produce a virtual source of sound can substitution independent a large amount of sources of sound originally roughly, practical manifestation smooth change, level are obvious, do not interfere with each other, and in order to other audios have reserved enough sound channels.

Description

The approximating method and its system of audio
Technical field
The present invention relates to sound processing techniques field, more particularly to a kind of audio approximating method and its system.
Background technology
During secondary generation development of games, it may be necessary to embody the telepresenc of major war, in addition to Picture Showing, Audio is also a very important ring, but general game can only use 32 or even 64 sound channels, for partial game This point is far from being enough for needing thousands of game unit, if all playing needs to all game units in battlefield Sound, eventually result in substantial amounts of cpu resource and take, and sonic boom, sound the phenomenon of influence Consumer's Experience such as block and occurs.
The content of the invention
The technical problems to be solved by the invention are:The approximating method and its system of a kind of audio are proposed, resource can be reduced Take, and lifting Consumer's Experience.
In order to solve the above-mentioned technical problem, the technical solution adopted by the present invention is:A kind of approximating method of audio, including:
Source of sound in traversal preset range;
Obtain the position of the position of the source of sound, the speed of source of sound and video camera;
The speed of position, source of sound according to the source of sound and the position of video camera, are calculated the source of sound and take the photograph relatively The direction of camera and intensity of sound;
The direction and intensity of sound are substituted into spherical Gaussian function, the value of the parameter of spherical Gaussian function is obtained, it is described Parameter includes axle, acutance and intensity, and the formula of the spherical Gaussian function is G (v;μ, λ, a)=aeλ(μ·v-1), wherein, μ is Axle, λ is acutance, and a is intensity;
Position and the axle, acutance and intensity according to video camera, create virtual source of sound.
The invention further relates to a kind of fitting system of audio, including:
Spider module, for traveling through the source of sound in preset range;
Acquisition module, the position for obtaining the position of the source of sound, the speed of source of sound and video camera;
First obtains module, for the position of position, the speed of source of sound and video camera according to the source of sound, calculates To the direction of the source of sound relative camera and intensity of sound;
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 includes axle, acutance and intensity, and the formula of the spherical Gaussian function is G (v;μ, λ, a)=aeλ(μ·v-1), wherein, μ is axle, and λ is acutance, and a is intensity;
Creation module, for the position according to video camera and the axle, acutance and intensity, creates virtual source of sound.
The beneficial effects of the present invention are:A virtual source of sound is fitted to by by a range of source of sound, by a void Intend source of sound it is high low to represent direction, volume and the frequency of overall source of sound, due to a virtual source of sound need to only take one or Several sound channels, therefore resource and performance consumption are considerably reduced, and slot milling is showed also for more rich audio, The problems such as sonic boom, sound can be reduced blocking simultaneously, lifts Consumer's Experience;The present invention only need to produce a virtual source of sound by slightly Take by force generation original independent a large amount of sources of sound, practical manifestation smooth change, level substantially, do not interfere with each other, and for other audios Enough sound channels are reserved.
Brief description of the drawings
Fig. 1 is a kind of flow chart of the approximating method of audio of the 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 the step S3 of the embodiment of the present invention one;
Fig. 4 is the flow chart of the step S5 of the embodiment of the present invention one;
Fig. 5 is a kind of structural representation of the fitting system of audio of the invention;
Fig. 6 is the system structure diagram of the embodiment of the present invention three.
Label declaration:
1st, spider module;2nd, acquisition module;3rd, first module is obtained;4th, second module is obtained;5th, creation module;
31st, the first computing unit;32nd, the second computing unit;33rd, the 3rd computing unit;34th, the 4th computing unit;
41st, definition unit;42nd, the 5th computing unit;
51st, creating unit;52nd, the first adjustment unit;53rd, the second adjustment unit.
Specific embodiment
It is to describe technology contents of the invention, the objects and the effects in detail, below in conjunction with implementation method and coordinates attached Figure is explained in detail.
The design of most critical of the present invention is:Source of sound in certain limit is fitted to a virtual source of sound.
Refer to Fig. 1, a kind of approximating method of audio, including:
Source of sound in traversal preset range;
Obtain the position of the position of the source of sound, the speed of source of sound and video camera;
The speed of position, source of sound according to the source of sound and the position of video camera, are calculated the source of sound and take the photograph relatively The direction of camera and intensity of sound;
The direction and intensity of sound are substituted into spherical Gaussian function, the value of the parameter of spherical Gaussian function is obtained, it is described Parameter includes axle, acutance and intensity, and the formula of the spherical Gaussian function is G (v;μ, λ, a)=aeλ(μ·v-1), wherein, μ is Axle, λ is acutance, and a is intensity;
Position and the axle, acutance and intensity according to video camera, create virtual source of sound.
Knowable to foregoing description, the beneficial effects of the present invention are:Resource and performance consumption can be considerably reduced, and In order to more rich audio shows slot milling, while the problems such as can reducing sonic boom, sound and block, lifts Consumer's Experience.
It is further, described that " speed of position, source of sound according to the source of sound and the position of video camera, are calculated The direction of the source of sound relative camera and intensity of sound " is specially:
The position of position and video camera according to the source of sound, be calculated the source of sound relative camera direction and The first distance between the source of sound and video camera;
Speed and default index coefficient and strength factor according to the source of sound, are calculated speed influence value;
According to 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, and first formula is:Speed influence value =pow (speed of source of sound, index coefficient) * strength factors;
The range attenuation is calculated according to the second formula, and second formula is:Range attenuation=1/ (the first distance ^2);
The intensity of sound of the source of sound is calculated according to the 3rd formula, and the 3rd formula is:Intensity of sound=speed Influence value * range attenuations.
Seen from the above description, by above-mentioned formula be the source of sound relative camera that can obtain preset range direction and Intensity of sound, can subsequently be calculated the establishment parameter of virtual source of sound by the direction and intensity of sound.
Further, it is described " direction and intensity of sound to be substituted into spherical Gaussian function, spherical Gaussian function is obtained The value of parameter, the parameter includes axle, acutance and intensity " it is specially:
The spherical Gaussian function G (v defined in iunction for curve;μ, λ, a)=aeλ(μ·v-1)
Using the direction as parameter v, the intensity of sound as parameter G is calculated by the iunction for curve Obtain the value of axle μ, acutance λ and intensity a.
Seen from the above description, the parameter of spherical Gaussian function is calculated by curve matching, result of calculation is improve Accuracy rate, so as to improve fitting effect.
It is further, described that " position and the axle, acutance and intensity according to video camera, the virtual source of sound of establishment are simultaneously right Its adjustment " is specially:
Position, the axle and default second distance according to video camera, create virtual source of sound;
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 axle of the spherical Gaussian function for calculating, virtual sound is created on corresponding position Source, and its pitch and volume are further adjusted according to acutance and intensity.
Fig. 6 is refer to, the present invention also proposes a kind of fitting system of audio, including:
Spider module, for traveling through the source of sound in preset range;
Acquisition module, the position for obtaining the position of the source of sound, the speed of source of sound and video camera;
First obtains module, for the position of position, the speed of source of sound and video camera according to the source of sound, calculates To the direction of the source of sound relative camera and intensity of sound;
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 includes axle, acutance and intensity, and the formula of the spherical Gaussian function is G (v;μ, λ, a)=aeλ(μ·v-1), wherein, μ is axle, and λ is acutance, and a is intensity;
Creation module, for the position according to video camera and the axle, acutance and intensity, creates virtual source of sound.
Further, described first obtain module and include:
First computing unit, for position and the position of video camera according to the source of sound, is calculated the source of sound phase Direction to video camera and the first distance between the source of sound and video camera;
Second computing unit, for the speed according to the source of sound and default index coefficient and strength factor, calculates Obtain speed influence value;
3rd computing unit, for according to first distance, being calculated range attenuation;
4th computing unit, for according to the speed influence value and range attenuation, being calculated the sound of the source of sound Intensity.
Further, the speed influence value is calculated according to the first formula, and first formula is:Speed influence value =pow (speed of source of sound, index coefficient) * strength factors;
The range attenuation is calculated according to the second formula, and second formula is:Range attenuation=1/ (the first distance ^2);
The intensity of sound of the source of sound is calculated according to the 3rd formula, and the 3rd formula is:Intensity of sound=speed Influence value * range attenuations.
Further, described second obtain module and include:
Definition unit, for the spherical Gaussian function G (v defined in iunction for curve;μ, λ, a)=aeλ(μ·v-1)
5th computing unit, for using the direction as parameter v, using the intensity of sound as parameter G, by described Iunction for curve is calculated the value of axle μ, acutance λ and intensity a.
Further, the creation module includes:
Creating unit, for the position according to video camera, the axle and default second distance, creates virtual source of sound;
First adjustment unit, for according to the acutance, adjusting the pitch of the virtual source of sound;
Second adjustment unit, for according to the intensity, adjusting the volume of the virtual source of sound.
Embodiment one
Embodiments of the invention one are: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), and it is substantially similar to 1 dimension Gaussian function, but is defined on On sphere.To 1 dimension Gaussian function, it would be desirable to calculate the distance of distance center, fingers of the e as bottom is then calculated with this distance Number, 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 2D is expanded to by Gaussian function;Spherical Gaussian function is identical with above-mentioned principle, and simply 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 vector, represents the axle of spherical Gaussian function, the center in 1 dimension Gaussian function is similar to, at this The orientation of final source of sound is represented in embodiment;Parameter lambda represents acutance, and λ value is higher, represents that sound gets over concentration (general table in game Now at a distance or compare the cluster of concentration), opposite λ value is lower, represents that sound gets over dispersion and (normally behaves as around collecting in game Group's dispersion);Parameter a represents intensity, and the volume of final source of sound is represented in the present embodiment;Variable v is 3-dimensional vector, is brought into spherical The intensity of sound of the direction can be calculated after Gaussian function.
As shown in figure 1, methods described comprises the following steps:
S1:Source of sound in traversal preset range.
S2:Obtain the position of the position of the source of sound, the speed of source of sound and video camera.
S3:The speed of position, source of sound according to the source of sound and the position of video camera, are calculated the source of sound relative The direction of video camera and intensity of sound.
S4:The direction and intensity of sound are substituted into spherical Gaussian function, the value of the parameter of spherical Gaussian function, institute is obtained Stating parameter includes axle, acutance and intensity, and the formula of the spherical Gaussian function is G (v;μ, λ, a)=aeλ(μ·v-1), wherein, μ is Axle, λ is acutance, and a is intensity;Further, it is near using the intensity of sound as parameter G using the direction as parameter v Few three groups bearing data harmony loudness of a sound degrees of data substitutes into spherical Gaussian function, you can obtain above three parameter.
S5:Position and the axle, acutance and intensity according to video camera, create virtual source of sound.
Further, as shown in figure 3, the step S3 comprises the following steps:
S301:The position of position and video camera according to the source of sound, is calculated the side of the source of sound relative camera To and the first distance between the source of sound and video camera;
S302:Speed and default index coefficient and strength factor according to the source of sound, are calculated speed influence Value;Further, the speed influence value is calculated according to the first formula, and first formula is:Speed influence value=pow (speed of source of sound, index coefficient) * strength factors;Preferably, the scope of the index coefficient is [0.5,2], and preferred value is 1; The strength factor is the inverse of the velocity amplitude of the most fast source of sound of the source of sound medium velocity.
S303:According to first distance, range attenuation is calculated;Further, the range attenuation is according to second Formula is calculated, and second formula is:Range attenuation=1/ (first apart from ^2).
S304:According to the speed influence value and range attenuation, the intensity of sound of the source of sound is calculated;Further Ground, the intensity of sound of the source of sound is calculated according to the 3rd formula, and the 3rd formula is:Intensity of sound=speed influence Value * range attenuations.
Further, as shown in figure 4, the step S5 comprises the following steps:
S501:Position, the axle and default second distance according to video camera, create virtual source of sound;Further, Virtual source of sound is created on the position of camera position+μ * second distances;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;Enter one Step ground, can again adjust stereo reverberation degree, low-and high-frequency etc. as needed.
S503:According to the intensity, the volume of the virtual source of sound is adjusted;Further, volume=a* coefficients, the system Number needs to be adjusted according to the source of sound traveled through in sample sound, i.e. step S1.
The present embodiment is fitted to a virtual source of sound by by a range of source of sound, represents whole by a virtual source of sound The direction of body source of sound, volume and frequency are high low, because a virtual source of sound need to only take one or several sound channels, because This considerably reduces resource and performance consumption, and shows slot milling also for more rich audio, at the same can reduce sonic boom, The problems such as sound is blocked, lifts Consumer's Experience;The present invention only needs to replace roughly originally independently by producing a virtual source of sound A large amount of sources of sound, practical manifestation smooth change, level substantially, do not interfere with each other, and in order to other audios have reserved enough sound Sound passage.
Embodiment two
The present embodiment is the further expansion of step S4 in embodiment one.For step S4, curve matching can be used The mode of (curve fitting) is calculated parameter μ, λ and a, specifically, in iunction for curve (curve_fit letters Number) defined in spherical Gaussian function G (v;μ, λ, a)=aeλ(μ·v-1), then using the direction as parameter v, by the sound Intensity is used as parameter G, you can the value of axle μ, acutance λ and intensity a is calculated by the iunction for curve.Code is illustrated such as Under, wherein, X is parameter v, Y and 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);
" calling scipy.optimize.curve_fit to be fitted "
Popt, pcov=curve_fit (SphericalGaussian, X, Y)
It is fitted in the result for returning, popt is to contain parameter μ, the value of λ, a, can be subsequently 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 result of calculation, So as to improve fitting effect.
Embodiment three
Fig. 6 is refer to, the present embodiment is a kind of fitting system of audio of correspondence above-described embodiment, including:
Spider module 1, for traveling through the source of sound in preset range;
Acquisition module 2, the position for obtaining the position of the source of sound, the speed of source of sound and video camera;
First obtains module 3, for the position of position, the speed of source of sound and video camera according to the source of sound, calculates 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 includes axle, acutance and intensity, and the formula of the spherical Gaussian function is G (v;μ, λ, a)=aeλ(μ·v-1), wherein, μ is axle, and λ is acutance, and a is intensity;
Creation module 5, for the position according to video camera and the axle, acutance and intensity, creates virtual source of sound.
Further, described first obtain module 3 and include:
First computing unit 31, for position and the position of video camera according to the source of sound, is calculated the source of sound The first distance between the direction of relative camera and the source of sound and video camera;
Second computing unit 32, for the speed according to the source of sound and default index coefficient and strength factor, meter Calculation obtains speed influence value;
3rd computing unit 33, for according to first distance, being calculated range attenuation;
4th computing unit 34, for according to the speed influence value and range attenuation, being calculated the sound of the source of sound Loudness of a sound degree.
Further, the speed influence value is calculated according to the first formula, and first formula is:Speed influence value =pow (speed of source of sound, index coefficient) * strength factors;
The range attenuation is calculated according to the second formula, and second formula is:Range attenuation=1/ (the first distance ^2);
The intensity of sound of the source of sound is calculated according to the 3rd formula, and the 3rd formula is:Intensity of sound=speed Influence value * range attenuations.
Further, described second obtain module 4 and include:
Definition unit 41, for the spherical Gaussian function G (v defined in iunction for curve;μ, λ, a)=aeλ(μ·v-1)
5th computing unit 42, for using the direction as parameter v, using the intensity of sound as parameter G, by institute State the value that iunction for curve is calculated axle μ, acutance λ and intensity a.
Further, the creation module 5 includes:
Creating unit 51, for the position according to video camera, the axle and default second distance, creates virtual sound Source;
First adjustment unit 52, for according to the acutance, adjusting the pitch of the virtual source of sound;
Second adjustment unit 53, for according to the intensity, adjusting the volume of the virtual source of sound.
In sum, the approximating method and its system of a kind of audio that the present invention is provided, by by a range of source of sound A virtual source of sound is fitted to, it is high low to represent direction, volume and the frequency of overall source of sound by a virtual source of sound, due to One virtual source of sound need to only take one or several sound channels, therefore considerably reduce resource and performance consumption, and also be More rich audio performance slot milling, while the problems such as can reducing sonic boom, sound and block, lifts Consumer's Experience;The present invention Only need to replace original independent a large amount of sources of sound roughly by producing a virtual source of sound, practical manifestation smooth change, level are bright Show, do not interfere with each other, and in order to other audios have reserved enough sound channels.
Embodiments of the invention are the foregoing is only, the scope of the claims of the invention is not thereby limited, it is every to utilize this hair The equivalents that bright specification and accompanying drawing content are made, or the technical field of correlation is directly or indirectly used in, similarly include In scope of patent protection of the invention.

Claims (10)

1. a kind of approximating method of audio, it is characterised in that including:
Source of sound in traversal preset range;
Obtain the position of the position of the source of sound, the speed of source of sound and video camera;
The speed of position, source of sound according to the source of sound and the position of video camera, are calculated the source of sound relative camera Direction and intensity of sound;
The direction and intensity of sound are substituted into spherical Gaussian function, the value of the parameter of spherical Gaussian function, the parameter is obtained Including axle, acutance and intensity, the formula of the spherical Gaussian function is G (v;μ, λ, a)=aeλ(μ·v-1), wherein, μ is axle, and λ is Acutance, a is intensity;
Position and the axle, acutance and intensity according to video camera, create virtual source of sound.
2. the approximating method of audio according to claim 1, it is characterised in that " position, sound according to the source of sound The speed in source and the position of video camera, are calculated direction and the intensity of sound of the source of sound relative camera " it is specially:
The position of position and video camera according to the source of sound, is calculated the direction of the source of sound relative camera and described The first distance between source of sound and video camera;
Speed and default index coefficient and strength factor according to the source of sound, are calculated speed influence value;
According to 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, it is characterised in that the speed influence value is according to the first formula It is calculated, first formula is:Speed influence value=pow (speed of source of sound, index coefficient) * strength factors;
The range attenuation is calculated according to the second formula, and second formula is:Range attenuation=1/ (first apart from ^2);
The intensity of sound of the source of sound is calculated according to the 3rd formula, and the 3rd formula is:Intensity of sound=speed influence Value * range attenuations.
4. the approximating method of audio according to claim 1, it is characterised in that described " by the direction and intensity of sound Spherical Gaussian function is substituted into, the value of the parameter of spherical Gaussian function is obtained, the parameter includes axle, acutance and intensity " it is specially:
The spherical Gaussian function G (v defined in iunction for curve;μ, λ, a)=aeλ(μ·v-1)
Using the direction as parameter v, the intensity of sound as parameter G is calculated by the iunction for curve The value of axle μ, acutance λ and intensity a.
5. the approximating method of audio according to claim 1, it is characterised in that it is described " position according to video camera and The axle, acutance and intensity, create virtual source of sound and it are adjusted " it is specially:
Position, the axle and default second distance according to video camera, create virtual source of sound;
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. the fitting system of a kind of audio, it is characterised in that including:
Spider module, for traveling through the source of sound in preset range;
Acquisition module, the position for obtaining the position of the source of sound, the speed of source of sound and video camera;
First obtains module, for the position of position, the speed of source of sound and video camera according to the source of sound, is calculated institute 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 includes axle, acutance and intensity, and the formula of the spherical Gaussian function is G (v;μ, λ, a)=aeλ(μ·v-1), wherein, μ is axle, and λ is acutance, and a is intensity;
Creation module, for the position according to video camera and the axle, acutance and intensity, creates virtual source of sound.
7. the fitting system of audio according to claim 6, it is characterised in that described first obtains module includes:
First computing unit, for position and the position of video camera according to the source of sound, is calculated the source of sound and takes the photograph relatively The first distance between the direction of camera and the source of sound and video camera;
Second computing unit, for the speed according to the source of sound and default index coefficient and strength factor, is calculated Speed influence value;
3rd computing unit, for according to first distance, being calculated range attenuation;
4th computing unit, for according to the speed influence value and range attenuation, being calculated the intensity of sound of the source of sound.
8. the fitting system of audio according to claim 7, it is characterised in that the speed influence value is according to the first formula It is calculated, first formula is:Speed influence value=pow (speed of source of sound, index coefficient) * strength factors;
The range attenuation is calculated according to the second formula, and second formula is:Range attenuation=1/ (first apart from ^2);
The intensity of sound of the source of sound is calculated according to the 3rd formula, and the 3rd formula is:Intensity of sound=speed influence Value * range attenuations.
9. the fitting system of audio according to claim 6, it is characterised in that described second obtains module includes:
Definition unit, for the spherical Gaussian function G (v defined in iunction for curve;μ, λ, a)=aeλ(μ·v-1)
5th computing unit, for using the direction as parameter v, using the intensity of sound as parameter G, by the curve Fitting function is calculated the value of axle μ, acutance λ and intensity a.
10. the fitting system of audio according to claim 6, it is characterised in that the creation module includes:
Creating unit, for the position according to video camera, the axle and default second distance, creates virtual source of sound;
First adjustment unit, for according to the acutance, adjusting the pitch of the virtual source of sound;
Second adjustment unit, for according to the intensity, adjusting the volume of the virtual source of sound.
CN201710018166.XA 2017-01-10 2017-01-10 The approximating method and its system of audio Active CN106843801B (en)

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 true CN106843801A (en) 2017-06-13
CN106843801B 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)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108465241A (en) * 2018-02-12 2018-08-31 网易(杭州)网络有限公司 Processing method, device, storage medium and the electronic equipment of game sound reverberation
WO2019153840A1 (en) * 2018-02-09 2019-08-15 腾讯科技(深圳)有限公司 Sound reproduction method and device, storage medium and electronic device
WO2020155976A1 (en) * 2019-01-31 2020-08-06 华为技术有限公司 Audio signal processing method and apparatus

Citations (3)

* Cited by examiner, † Cited by third party
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

Patent Citations (3)

* Cited by examiner, † Cited by third party
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

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019153840A1 (en) * 2018-02-09 2019-08-15 腾讯科技(深圳)有限公司 Sound reproduction method and device, storage medium and electronic device
US11259136B2 (en) 2018-02-09 2022-02-22 Tencent Technology (Shenzhen) Company Limited Sound reproduction method and apparatus, storage medium, and electronic apparatus
CN108465241A (en) * 2018-02-12 2018-08-31 网易(杭州)网络有限公司 Processing method, device, storage medium and the electronic equipment of game sound reverberation
CN108465241B (en) * 2018-02-12 2021-05-04 网易(杭州)网络有限公司 Game sound reverberation processing method and device, storage medium and electronic equipment
WO2020155976A1 (en) * 2019-01-31 2020-08-06 华为技术有限公司 Audio signal processing method and apparatus
CN111508507A (en) * 2019-01-31 2020-08-07 华为技术有限公司 Audio signal processing method and device
CN111508507B (en) * 2019-01-31 2023-03-03 华为技术有限公司 Audio signal processing method and device

Also Published As

Publication number Publication date
CN106843801B (en) 2019-09-17

Similar Documents

Publication Publication Date Title
CN106843801A (en) The approximating method and its system of audio
CN104007430B (en) The micro-doppler extracting method of precession target based on instantaneous tune Frequency Estimation
US7212206B2 (en) Method and apparatus for self shadowing and self interreflection light capture
WO2019067370A1 (en) 3d audio rendering using volumetric audio rendering and scripted audio level-of-detail
CN109876441A (en) Rendering method and device, storage medium and electronic equipment in game
CN102831275A (en) Method and system for simulating 3D fluid
US20230082928A1 (en) Virtual aiming control
KR100950835B1 (en) Image creating device, image creating method, and computer-readable information recording medium having a program recorded thereon
CN110251940A (en) A kind of method and apparatus that game picture is shown
EP4101182A1 (en) Augmented reality virtual audio source enhancement
Lott et al. A transition from Kelvin–Helmholtz instabilities to propagating wave instabilities
Innami et al. On-demand soundscape generation using spatial audio mixing
CN104778739A (en) Computer-based real-time sketch rendering algorithm
Henry Stokes drift in equatorial water waves, and wave–current interactions
CN111047707B (en) Bleeding simulation method of mixed particle blood model based on SPH
Lui Grad-Shafranov reconstruction of magnetic flux ropes in the near-Earth space
Rindel A note on modal reverberation times in rectangular rooms
Tang Solution of the shallow‐water equations using an adaptive moving mesh method
CN106353801B (en) The three-dimensional domain Laplace ACOUSTIC WAVE EQUATION method for numerical simulation and device
CN115409928A (en) Water body effect rendering method and device, electronic equipment and storage medium
CN111159958B (en) Method for acquiring guaranteed physical characteristics of states on two sides of multi-medium coupling problem interface
Dagenais et al. Real-Time Virtual Pipes Simulation and Modeling for Small-Scale Shallow Water.
Qi et al. A novel redirected walking algorithm for VR navigation in small tracking area
CN105808837B (en) Propeller Hydrodynamic adjustment processing method when towards Ship Dynamic Positioning Systems Based control force smooth variation
CN103985150B (en) A kind of image processing method and electronic equipment

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