Movatterモバイル変換


[0]ホーム

URL:


CN109165005A - Sound effect enhancement method and device, electronic equipment and storage medium - Google Patents

Sound effect enhancement method and device, electronic equipment and storage medium
Download PDF

Info

Publication number
CN109165005A
CN109165005ACN201811028127.9ACN201811028127ACN109165005ACN 109165005 ACN109165005 ACN 109165005ACN 201811028127 ACN201811028127 ACN 201811028127ACN 109165005 ACN109165005 ACN 109165005A
Authority
CN
China
Prior art keywords
audio
target
sound
type
transmitted
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
CN201811028127.9A
Other languages
Chinese (zh)
Other versions
CN109165005B (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp LtdfiledCriticalGuangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201811028127.9ApriorityCriticalpatent/CN109165005B/en
Publication of CN109165005ApublicationCriticalpatent/CN109165005A/en
Priority to PCT/CN2019/095140prioritypatent/WO2020048221A1/en
Application grantedgrantedCritical
Publication of CN109165005BpublicationCriticalpatent/CN109165005B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

Translated fromChinese

本申请实施例公开了一种音效增强方法、装置、电子设备及存储介质,涉及电子设备领域。其中,该方法包括:确定当前的音频输出场景在所述电子设备的音频通路中对应的目标音频通路;确定所述目标音频通路所传输的音频的目标声音类型;通过与所述目标声音类型对应的目标音效算法对所述目标音频通路传输的音频进行增强。该方案可以实现不同声音类型的音频以不同的目标音效算法进行增强,提高音效增强效果,从而提高用户体验。

The embodiments of the present application disclose a sound enhancement method, device, electronic device and storage medium, which relate to the field of electronic devices. The method includes: determining the target audio path corresponding to the current audio output scene in the audio path of the electronic device; determining the target sound type of the audio transmitted by the target audio path; and enhancing the audio transmitted by the target audio path by a target sound effect algorithm corresponding to the target sound type. This solution can achieve the enhancement of audio of different sound types with different target sound effect algorithms, improve the sound enhancement effect, and thus improve the user experience.

Description

Audio Enhancement Method, device, electronic equipment and storage medium
Technical field
This application involves technical field of electronic equipment, set more particularly, to a kind of audio Enhancement Method, device, electronicsStandby and storage medium.
Background technique
With the development of technology, the intelligent electronic devices such as mobile phone, computer using more and more common, function is also more and more completeerIt is kind.Wherein, audio plays one of the basic function of as electronic equipment.The audio data that electronic equipment plays is according to true soundSound carries out the electronic data of samples storage, can be to the audio played in order to make audio data when playing with more the sense of realityAdd audio.But the setting fixed single of usually audio, influence user experience.
Summary of the invention
In view of the above problems, present applicant proposes a kind of audio Enhancement Method, device, electronic equipment and storage medium, withIt solves the above problems.
In a first aspect, the embodiment of the present application provides a kind of audio Enhancement Method, it is applied to electronic equipment, the method packetIt includes: determining current audio output scene corresponding target audio access in the voice-frequency channel of the electronic equipment;Determine instituteState the target sound type for the audio that target audio access is transmitted;Pass through target audio corresponding with the target sound typeAlgorithm enhances the audio of the target audio tunnel.
Second aspect, the embodiment of the present application provide a kind of audio enhancement device, are applied to electronic equipment, described device packetIt includes: access determining module, for determining current audio output scene corresponding mesh in the voice-frequency channel of the electronic equipmentMark voice-frequency channel;Determination type module, for determining the target sound type of audio that the target audio access is transmitted;SoundEffect enhancing module, is used for through target sound effect algorithms corresponding with the target sound type to the target audio tunnelAudio enhanced.
The third aspect, the embodiment of the present application provide a kind of electronic equipment, comprising: one or more processors;Memory;One or more programs, wherein one or more of programs are stored in the memory and are configured as by oneOr multiple processors execute, one or more of programs are configured to carry out above-mentioned method.
Fourth aspect, the embodiment of the present application provides a kind of computer-readable storage medium, described computer-readableProgram code is stored in storage medium, said program code can be called by processor and execute the above method.
Audio Enhancement Method, device, electronic equipment and storage medium provided by the embodiments of the present application, in target audio accessThe target sound type of the audio of middle transmission is enhanced with its corresponding target sound effect algorithms, realizes alternative sounds typeAudio can be enhanced with different target sound effect algorithms, audio reinforcing effect be improved, to improve user experience.
Detailed description of the invention
In order to more clearly explain the technical solutions in the embodiments of the present application, make required in being described below to embodimentAttached drawing is briefly described, it should be apparent that, the drawings in the following description are only some examples of the present application, forFor those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attachedFigure.
Fig. 1 shows the flow chart of the audio Enhancement Method of one embodiment of the application offer.
Fig. 2 shows the flow charts for the audio Enhancement Method that another embodiment of the application provides.
Fig. 3 shows the functional block diagram of audio enhancement device provided by the embodiments of the present application.
Fig. 4 shows the structural block diagram of electronic equipment provided by the embodiments of the present application.
Fig. 5 is the embodiment of the present application for saving or carrying the audio Enhancement Method realized according to the embodiment of the present applicationProgram code storage unit.
Specific embodiment
In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present applicationAttached drawing, the technical scheme in the embodiment of the application is clearly and completely described.
Electronic equipment can add audio to the audio data that plays of needs, i.e., with sound effect algorithms to audio data atIt manages and then corresponding broadcasting is carried out to audio data, realize audio enhancing.Usual electronic equipment addition is all certain defaultAudio, audio reinforcing effect is not ideal enough.
Inventor has found that the audio reinforcing effect of audio it is dissatisfactory the reason is that, the enhancing of audio notWith the differentiation for being directed to audio itself, different audios may need different enhancement methods, such as certain indoor scenesGaming audio needs to show the spatial impression of sound, needs to carry out enhancing spatial impression;The music VF of some type fields, such as concertAudio, need to enhance the presence etc. of audio.
Therefore, the embodiment of the present application provides a kind of audio Enhancement Method, device, electronic equipment and storage medium, according toSound type described in voice-frequency channel sound intermediate frequency carries out audio enhancing.
Below will by specific embodiment to audio Enhancement Method provided by the embodiments of the present application, device, electronic equipment andStorage medium is described in detail.
Referring to Fig. 1, the embodiment of the present application provides a kind of audio Enhancement Method, and in this method, target audio access instituteThe target sound type of the audio of transmission obtains corresponding target sound effect algorithms and carries out audio enhancing to audio.Specifically, the partyMethod includes:
Step S110: current audio output scene corresponding target sound in the voice-frequency channel of the electronic equipment is determinedFrequency access.
It in the electronic device, can be there are many audio output scene.Wherein, audio corresponding to every kind of application program is broadcastIt puts, can be used as a kind of audio output scene;Or music corresponding to every a kind of application program, it can be used as a kind of soundFrequency output scene.For example, the corresponding audio output of music application exports scene as music, video application is correspondingAudio output exports scene as video sound, and for the corresponding audio output of game application as scene of game, alarm clock is correspondingAudio output carries out voice in electronic equipment and leads to as alarm clock scene, the corresponding audio output of incoming ring tone as the tinkle of bells sceneOutput audio can be used as conversation voice scene when words and other equipment pass through Wi-Fi connection, bluetooth connection, data line connection etc.Broadcasting scene for the audio that wireless or wired connection type is transmitted etc..
When electronic equipment carries out audio broadcasting, audio output scene corresponding to the audio of broadcasting can be known.For example,In the electronic device, every kind of audio output scene can correspond to a scenario parameters, wrap in the corresponding audio data of every kind of audioScenario parameters are included, then can determine that the corresponding audio of the audio is defeated by scenario parameters included in the audio data of audioScene out.
In the electronic device, each audio output scene can be corresponding with voice-frequency channel, the audio output field under different accessesIt does not interfere with each other, i.e., is not interfere with each other between the audio of each voice-frequency channel transmission between scape.For example, in Android (Android) systemIn, it is respectively arranged with different audio output accesses.In Android system, including media sound, system sound, alarm clock sound, call sound,Ring tone etc..STREAM_MUSIC (media sound), STREAM_SYSTEM are respectively defined as in AudioManager.java class(system sound), STREAM_ALARM (alarm clock sound), STREAM_VOICE_CALL (call sound), STREAM_RING (ring tone)Equal streamType, every kind of streamType have respectively corresponded voice-frequency channel.
It is not interfere with each other between the audio exported in order not to same audio output scene, it can each audio output scene listA solely corresponding voice-frequency channel.
Alternatively, it is also possible to corresponding voice-frequency channel of multiple audio output scenes etc..For example, as music application is correspondingAudio output scene, voice-frequency channel corresponding to the corresponding media sound such as the corresponding audio output scene of video application;It is noisyThe corresponding audio output scene of clock corresponds to voice-frequency channel corresponding to alarm clock sound;The corresponding audio output scene of incoming ring tone is correspondingVoice-frequency channel corresponding to ring tone;Audio output scene when electronic equipment carries out voice communication can correspond to call sound instituteCorresponding voice-frequency channel.In the embodiment of the present application, the particular number of voice-frequency channel does not limit, audio output scene and audioCorresponding relationship between access does not also limit.
Specifically, corresponding access parameter has also can be set in each voice-frequency channel.In such as above-mentioned Android system,Every kind of STREAM_MUSIC, STREAM_SYSTEM, STREAM_ALARM, STREAM_VOICE_CALL, STREAM_RING etc.StreamType respectively corresponds different parameter values.So as to pass through the corresponding relationship of access parameter and scenario parameters, reallyCorresponding relationship between accordatura frequency output scene and voice-frequency channel.
Therefore, in the embodiment of the present application, current audio output scene can be determined according to the audio currently exported.AgainAccording to the audio scene currently exported, audio output scene audio corresponding in each voice-frequency channel of electronic equipment is determinedAccess.Using voice-frequency channel corresponding to present video output scene as target audio access.
As an implementation, in the embodiment of the present application, it can determine that current audio output scene institute is right in real timeThe target audio access answered.
As an implementation, in the embodiment of the present application, it can also be determined when audio output scene sounding changesThe corresponding target audio access of audio output scene after variation.
Step S120: the target sound type for the audio that the target audio access is transmitted is determined.
In the embodiment of the present application, sound can be divided into according to the characteristic of sound by different types.Specific sound typeDivision do not limit in the embodiment of the present application, such as indoors in finite spatial extent, need the sound of expressive spaceAs space type;The recording at concert scene is as concert type;The sound of people is as voice type etc..Electronic equipment canTo determine target sound type belonging to transmitted audio from target audio access.
Specifically, type parameter can be correspondingly arranged for each type of sound, and various types parameter is stored inIn electronic equipment.In the audio data of audio, the type parameter of its affiliated type can store.Then played in the electronic equipmentAudio audio data in, include indicate its type type parameter.There is audio to work as transmission in target audio accessWhen, the type of the audio can be known according to the type parameter of the audio, using the type as target sound type.
Step S130: the target audio access is passed by target sound effect algorithms corresponding with the target sound typeDefeated audio is enhanced.
In the embodiment of the present application, various types of sound can carry out audio enhancing according to its characteristic, good to obtainResult of broadcast.Such as the enhancing of spatial impression is carried out with spatial character, the sound for needing to carry out space performance for certain;It is rightIn life, the melodious degree of sound is improved by the promotion or decaying of component frequency;For the type fields sound such as concert, it is improvedLive expressive force etc..Specifically, corresponding sound effect algorithms can be corresponding with for logical to the audio in corresponding voice-frequency channelAudio in road carries out audio enhancing.Wherein, algorithm corresponding to specific reinforcing effect can be arranged according to existing algorithm, at thisIt is not repeated in application embodiment.
Specifically, the sound that various types of sound are carried out with audio enhancing can be correspondingly arranged in each voice-frequency channelImitate algorithm.When transmitting audio in voice-frequency channel, according to sound type belonging to the audio, obtains the corresponding audio of the audio and calculateMethod.
Wherein, with sound effect algorithms corresponding to target sound type, as target sound effect algorithms.In target audio accessIt, can be by target sound effect algorithms corresponding with the target sound type, to belonging to this when the audio of transmission objectives sound typeAudio data corresponding to the audio of target sound type is handled, to realize the audio enhancing of audio.
Wherein, every kind of sound type can be corresponding with a kind of sound effect algorithms, can also correspond to there are many sound effect algorithms.If meshMark sound type correspond to a kind of sound effect algorithms, then pass through a kind of sound effect algorithms to the corresponding audio data of target sound type intoAudio enhancing is realized in row processing;If there are many corresponding sound effect algorithms of target sound type, pass through a variety of sound effect algorithms pairThe corresponding audio data of target sound type carries out processing and realizes audio enhancing.
As an implementation, the corresponding sound effect algorithms of different sound types can be different, i.e., according to the spy of soundProperty, it is handled with different sound effect algorithms.
As an implementation, if there are two or more than two sound types have certain common characteristics, such asRequire to carry out the enhancing of spatial impression, then can also there are two or more than two sound types correspond to the calculation of identical audioMethod.
In the embodiment of the present application, the specific corresponded manner of sound type and sound effect algorithms does not limit.As a kind of realityMode is applied, can be, the corresponding relationship of sound type and sound effect algorithms can be preset with, as the corresponding relationship passes through corresponding relationshipTable is configured and stores.To, can be according to preset sound type and sound effect algorithms when obtaining target sound typeCorresponding relationship obtains the corresponding target sound effect algorithms of the target sound type.Again with the target sound effect algorithms to target soundThe audio of frequency tunnel is enhanced.
In different voice-frequency channels, the sound of same type can be handled with different processing audios, to meet realityBorder demand.For example, being equally the sound of people, in voice communication, need sound apparent;And in video application, it needsWant sound more melodious.Then in the voice-frequency channel corresponding to call sound, by improve sound articulation sound effect algorithms to audio intoRow processing;In the corresponding voice-frequency channel of media sound, audio is handled by improving the audio point counting of melodious degree of sound.Therefore, optionally, in this embodiment, the corresponding sound effect algorithms of identical sound type can be different, that is to say, that noWith in voice-frequency channel, the corresponding relationship of sound type and sound effect algorithms can be different.
As another embodiment, it is also possible to every kind of sound type and is correspondingly arranged simultaneously storage class parameter, every kind of soundEffect algorithm is correspondingly arranged and is stored with algorithm parameter, also, presets and be stored between type parameter and algorithm parameterTransfer function.Type parameter is calculated by transfer function, the corresponding algorithm parameter of such shape parameter can be obtained, thus rootIt is corresponding with algorithm parameter according to type parameter, obtain sound effect algorithms corresponding to the corresponding sound type of such shape parameter.Therefore,Target sound type corresponding to target audio access sound intermediate frequency is being obtained, it can be according to the type parameter of the target sound typeAnd transfer function, obtain target sound effect algorithms corresponding to the target sound type.
Optionally, in this embodiment, in different voice-frequency channels, the corresponding transfer function of identical sound type can be withIt is different.That is, the transfer function between type parameter and algorithm parameter can be different in different voice-frequency channels.
In addition, in the embodiment of the present application, the audio that present video output scene is exported may include a type ofAudio also may include a plurality of types of audios.
If present video exports the audio of scene output, including a plurality of types of audios, then in target audio tunnelAudio in, may include muli-sounds type.It is if transmitting the audio of muli-sounds type in target audio access, this is moreA sound type is used as target sound type, i.e. target sound type includes multiple sound types.For example, in certain game soundWhen broadcasting, while the sound including the people and footsteps etc. in space passes simultaneously then in corresponding voice-frequency channel indoorsThe sound of the defeated sound for having space type and voice type, using space type and voice type as target sound type.
When target sound type includes multiple sound types, its corresponding audio is obtained to multiple sound type respectively and is calculatedMethod, also, handled by audio of the sound effect algorithms to corresponding sound type.For example, in target audio access, the sound of transmissionThe audio b that frequency includes the audio a that sound type is A and sound type is B, then obtain the corresponding sound effect algorithms of sound type AThe corresponding audio point counting B1 of A1 and sound type B.Also, audio a is handled by sound effect algorithms A1, passes through soundType B 1 handles audio B.
In the embodiment of the present application, in target audio access, the time is different, the audio transmitted there may be variation,Type belonging to audio may also be different.For example, game proceeds to different phase to the sound in Mr. Yu's scene of game, it mayDifferent sound is generated, different sound may belong to different sound types.Therefore, for identical audio output scene in meshIt marks during transmitting audio in voice-frequency channel, electronics can in real time determine the audio transmitted in target audio accessCorresponding sound type, as target sound type.In the case where target sound type changes, can determine newestTarget sound effect algorithms corresponding to target sound type handle the corresponding audio of target sound type.
In the embodiment of the present application, its corresponding voice-frequency channel can be determined, as mesh to current audio output sceneMark voice-frequency channel.In the corresponding audio of present video output scene in target audio tunnel, the target sound can be determinedThe sound type for the audio transmitted in frequency access is as target sound type.Also, in the embodiment of the present application, each sound typeTherefore the mesh can be obtained according to target sound type by being corresponding with the sound algorithm for carrying out audio enhancing processing to audioThe corresponding target sound effect algorithms of sound type are marked, then audio enhancing processing is carried out to corresponding audio by target sound effect algorithms.To, to treated audio plays out when, obtain the audio visual effect of audio enhancing.Therefore, in the embodiment of the present application,The audio of alternative sounds type can have different audio enhancings, improve user experience.
In the embodiment of the present application, target sound type can be space type, and target sound effect algorithms can be to spatial classThe corresponding audio of type carries out the sound effect algorithms of spatial impression enhancing.That is, can also include to type in the embodiment of the present applicationThe audio that parameter corresponds to space type carries out the audio effect processing of spatial impression enhancing.Specifically, Fig. 2 is referred to, this method comprises:
Step S210: current audio output scene corresponding target sound in the voice-frequency channel of the electronic equipment is determinedFrequency access.
In audio output, voice-frequency channel corresponding to current audio output scene is determined.
Optionally, current audio output scene is scene of game, since the sound of game is a kind of daily sound,It can be using the corresponding voice-frequency channel of media sound of the electronic equipment as the target audio access.
Optionally, due to being independent of each other between different voice-frequency channels, also, sound can be separately provided in each voice-frequency channelEffect algorithm is enhanced.In order to obtain better game effect, if current audio output scene is scene of game, with creationThe voice-frequency channel of the audio under transmission scene of game is served only for as the target audio access.That is, can be gameThe individual voice-frequency channel of scene creation carries out audio enhancing processing.
Step S220: the target sound type for the audio that the target audio access is transmitted is determined.
Step S230: if the target sound type is the sound type with space type parameter, pass through phase informationEnhance the spatial impression of the audio of the target audio tunnel.
For certain audios for needing to enhance spatial impression, the corresponding type parameter of space type can be added to it.Therefore,When transmitting the audio with space type corresponding types parameter in target audio access, can be determined according to such shape parameterThe audio effect processing of spatial impression enhancing is carried out to the audio.Specifically, passing through target audio corresponding with the target sound typeAlgorithm enhances the audio of the target audio tunnel, then can be, can be with to its audio by phase informationThe spatial impression of performance is enhanced.
Specifically, in the actual environment, sound reaches human ear by different location, people's spatial impression can be given.For example, lesserIn spatial dimension, the sound that a sound source generates, partial sound reaches human ear, and partial sound is after the barrier reflection in spaceHuman ear is reached, direction and the time difference of sound is reached, hearer is enable to recognize the spatial impression in sound.
Inventor has found that different directions reach the sound of human ear, brain can be according to the phase of the sound receivedThe direction for the sound that position analysis receives and time delay.Since sound is to be propagated in the form of wave and eardrum is caused to shakeIt is dynamic, therefore sound reaches when human ear is received by human ear and corresponds to certain phase.Brain analyzes the sound for reaching eardrum,The information such as direction and the time that sound reaches are obtained by its phase.Therefore, for phase difference reach human ear sound,By hearer's brains analysis, there can be spatial feeling to hearer with sound, increase spatial impression.
It therefore, in the embodiment of the present application, can be audio setting phase difference, to realize the audio of spatial impression enhancing.ByIn needing with phase difference, then should at least have including the comparison between two outs of phase.And the audio in destination pathMay only have phase information, therefore, the method for the audio enhancing spatial impression in destination path may is that with the target soundThe audio of frequency tunnel is former audio, replicates the former audio and obtains audio copy.By the audio copy relative to describedFormer audio delay preset duration makes have phase difference between the audio copy and the former audio.
It, in the embodiment of the present application, can be to being transmitted in target audio in order to which the sound-content for playing out audio is consistentAudio replicated, to obtain and the former consistent audio copy of audio content.
Have dephased audio to broadcast to obtain, which is handled, there is it between former audioPhase difference.Specifically, since sound is propagated in air in the form of wave, for period and the identical wave of amplitude, in differenceTime, phase is different.Therefore, can by audio copy relative to the former audio delay preset duration realize audio copy withPhase difference between former audio, when audio which makes that treated plays, when the sound of generation reaches eardrum, former audio is correspondingPhase phase corresponding from audio copy it is different, enhance spatial impression.
In the embodiment of the present application, the specific time span of preset duration does not limit, can be according to the sound gone forReinforcing effect is imitated, such as angle and distance information calculating acquisition between the sound for hearing auditor.CircularIt is referred to existing way, is repeated no more in the embodiment of the present application.
Since sound wave has periodically, in the embodiment of the present application, in order to certain phase difference, preset duration can be withThe multiple in period corresponding not equal to audio or period.In addition, canceling sound is instead resulted in completely in order to avoid phase difference,Preset duration is also not equal to one of the half period of the corresponding sound wave of audio or the integral multiple plus thirty in the period period.
Optionally, since the time difference for reaching auditor is less than 35ms, and acoustic pressure difference is maintained within 10dB, two soundThe same sound can be acoustically considered to be.At this point, the directionality of direct sound wave can remain, it is considered as unique side of sound sourceTo.But due to the presence of the two acoustical phases difference, it virtually also can additionally enhance spatial impression.Therefore, if wanting to allow hearer by soundSound, which is considered as the same sound but, can experience spatial impression in audio, preset duration can be set smaller than 35ms whenBetween.Alternatively, it is also possible to set acoustic pressure difference within 10dB for former audio and audio copy.If wanting that auditor is allowed to regard soundFor spatial impression caused by different sound, such as same sound reflects the sound repeatedly formed in a room, can also will presetTime is set greater than 35ms, or acoustic pressure difference is arranged other than 10dB.
Optionally, in the embodiment of the present application, when carrying out audio enhancing, the audio that can be replicated in target audio accessCopy amount does not limit, and is also possible to two or more, also, is ok between different audio copies and former audioThe difference that phase difference is realized in certain delay is set, realizes multiple spatial impression.
Optionally, due to carrying phase information in the audio data of some audios, and in the audio data of some audiosPhase information may not be carried.Therefore, in the space for the audio for enhancing the target audio tunnel by phase informationBefore sense, it can first judge in the audio of the target audio tunnel whether to include phase information.
And the audio for not carrying phase information, virtual phase information can be added for the audio, that is to say, thatPhase information is added in the audio data of the audio.The enhancing that audio is realized in processing is carried out by the phase information being added again.
In the embodiment of the present application, the audio for enhancing algorithm process by audio is passed through into the responses such as earphone, loudspeakerAudio-frequence player device plays out.
Optionally, when being played due to audio, left channel signals and right-channel signals may have been respectively corresponded, have been respectively used toInto the left ear of user and user's auris dextra, when such as being played by earphone, left earphone plays left channel signals, and right earphone plays right soundRoad signal realizes stronger stereophonic effect, therefore, can believe using former audio and the audio copy as L channelNumber and right-channel signals, played by L channel and right channel, the sound for simulating different spatial reaches user, realizesBetter space reinforcing effect.
It in the embodiment of the present application, is the audio for needing spatial impression to enhance for sound type, it can be by target soundThe phase information of frequency access sound intermediate frequency is handled, and performance of the audio to spatial impression is enhanced.
In the embodiment of the present application, a kind of audio enhancement device 300 is additionally provided, electronic equipment is applied to.Specifically, askingReferring to Fig. 3, described device 300 includes: access determining module 310, for determining current audio output scene in the electronicsCorresponding target audio access in the voice-frequency channel of equipment.Determination type module 320, for determining the target audio access instituteThe target sound type of the audio of transmission.Audio enhances module 330, for passing through target corresponding with the target sound typeSound effect algorithms enhance the audio of the target audio tunnel.
Optionally, in the embodiment of the present application, various audio output scenes can have corresponding audio output access, ifCurrent audio output scene is scene of game, using the corresponding voice-frequency channel of media sound of the electronic equipment as the targetVoice-frequency channel.
Optionally, in order to which the broadcasting of certain scene subaudio frequencies is not influenced by the audio of other scenes, or some fieldsScape specially creates voice-frequency channel.For example, being served only for transmission game if current audio output scene is scene of game with creationThe voice-frequency channel of audio under scene is as the target audio access.
Optionally, in the embodiment of the present application, after determination type module 320 determines target sound type, audio enhancingModule can also include the algorithm determination unit for determining sound effect algorithms corresponding to the target sound type.Specifically, shouldAlgorithm determination unit is used for the corresponding relationship according to preset sound type and sound effect algorithms, obtains the target sound type pairThe target sound effect algorithms answered.It can also include audio enhancement unit that the audio, which enhances module 330, for target audio calculationMethod enhances the audio of target audio tunnel.
Optionally, in the embodiment of the present application, if it is band that audio enhancing module 330, which can be used for the target sound type,There is the sound type of space type parameter, enhances the spatial impression of the audio of the target audio tunnel by phase information.
Optionally, audio enhancing module 330 may include: audio dubbing unit, for target audio access biographyDefeated audio is former audio, replicates the former audio and obtains audio copy.Enhancement unit, for by the audio copy relative toThe original audio delay preset duration makes have phase difference between the audio copy and the former audio.
Optionally, it is understood that there may be there are phase informations in certain audio datas, and may not have in other audio dataThere is phase data.Therefore, in the embodiment of the present application, the apparatus may include judgment modules, for judging the target audioIt whether include phase information in the audio of tunnel.If including audio enhancing module 330 can enhance institute by phase informationState the spatial impression of the audio of target audio tunnel.If not including phase information in audio, the embodiment of the present application is providedDevice can also include: phase adding module, for adding virtual phase information for the audio.In phase adding moduleAfter adding virtual phase information for the audio, audio enhancing module is used to enhance the target audio by phase information logicalThe spatial impression of the audio of road transmission.
Optionally, better space multistory effect is generated since the cooperation of left channel signals and right-channel signals plays,Therefore, in the embodiment of the present application, can be using former audio as left channel signals, audio copy is as right-channel signals.This ShenPlease embodiment can also include playing module, for by the former audio and the audio copy pass through respectively L channel andRight channel plays.
It is apparent to those skilled in the art that for convenience and simplicity of description, foregoing description device andThe specific work process of module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, the mutual coupling of module can be electrical property, mechanical or otherThe coupling of form.
It, can also be in addition, can integrate in a processing module in each functional module in each embodiment of the applicationIt is that modules physically exist alone, can also be integrated in two or more modules in a module.Above-mentioned integrated mouldBlock both can take the form of hardware realization, can also be realized in the form of software function module.
Referring to FIG. 4, it illustrates the structural block diagrams of a kind of electronic equipment 400 provided by the embodiments of the present application.The electronicsEquipment 400, which can be smart phone, tablet computer, music player devices etc., can run the electronic equipment of application program.The electricitySub- equipment one or more processors 410 (one is only shown in figure), memory 420 and one or more programs.Wherein, instituteIt states one or more programs to be stored in the memory 420, and is configured as being held by one or more of processors 410Row.One or more of programs are configured to carry out method described in previous embodiment.
Processor 410 may include one or more processing core.Processor 410 is whole using various interfaces and connectionVarious pieces in a electronic equipment 400, by run or execute the instruction being stored in memory 420, program, code set orInstruction set, and the data being stored in memory 420 are called, execute the various functions and processing data of electronic equipment 400.It canSelection of land, processor 410 can use Digital Signal Processing (Digital Signal Processing, DSP), field-programmableGate array (Field-Programmable Gate Array, FPGA), programmable logic array (Programmable LogicArray, PLA) at least one of example, in hardware realize.Processor 410 can integrating central processor (CentralProcessing Unit, CPU), in image processor (Graphics Processing Unit, GPU) and modem etc.One or more of combinations.Wherein, the main processing operation system of CPU, user interface and application program etc.;GPU is for being responsible forShow the rendering and drafting of content;Modem is for handling wireless communication.It is understood that above-mentioned modemIt can not be integrated into processor 410, be realized separately through one piece of communication chip.
Memory 420 may include random access memory (Random Access Memory, RAM), also may include read-onlyMemory (Read-Only Memory).Memory 420 can be used for store instruction, program, code, code set or instruction set.It depositsReservoir 420 may include storing program area and storage data area, wherein the finger that storing program area can store for realizing operating systemEnable, for realizing the instruction of at least one function, for realizing instruction of above-mentioned each embodiment of the method etc..Storage data area is alsoIt can be with data (such as phone directory, audio, video data, chat record data) etc. that electronic equipment is created in use.
Referring to FIG. 5, it illustrates a kind of structural block diagrams of computer readable storage medium provided by the embodiments of the present application.Program code is stored in the computer readable storage medium 500, said program code can be called by processor and execute above-mentioned sideMethod described in method embodiment.
Computer readable storage medium 500 can be such as flash memory, EEPROM (electrically erasable programmable read-only memory),The electronic memory of EPROM, hard disk or ROM etc.Optionally, computer readable storage medium 500 includes non-volatile meterCalculation machine readable medium (non-transitorycomputer-readable storage medium).Computer-readable storage mediumMatter 500 has the memory space for the program code 510 for executing any method and step in the above method.These program codes can be withFrom reading or be written in one or more computer program product in this one or more computer program product.JourneySequence code 510 can for example be compressed in a suitable form.
Finally, it should be noted that above embodiments are only to illustrate the technical solution of the application, rather than its limitations;AlthoughThe application is described in detail with reference to the foregoing embodiments, those skilled in the art are when understanding: it still can be withIt modifies the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features;AndThese are modified or replaceed, do not drive corresponding technical solution essence be detached from each embodiment technical solution of the application spirit andRange.

Claims (10)

Translated fromChinese
1.一种音效增强方法,其特征在于,应用于电子设备,所述方法包括:1. a sound effect enhancement method, is characterized in that, is applied to electronic equipment, described method comprises:确定当前的音频输出场景在所述电子设备的音频通路中对应的目标音频通路;Determine the target audio path corresponding to the current audio output scene in the audio path of the electronic device;确定所述目标音频通路所传输的音频的目标声音类型;determining the target sound type of the audio transmitted by the target audio path;通过与所述目标声音类型对应的目标音效算法对所述目标音频通路传输的音频进行增强。The audio transmitted by the target audio channel is enhanced by a target sound effect algorithm corresponding to the target sound type.2.根据权利要求1所述的方法,其特征在于,所述通过与所述目标声音类型对应的目标音效算法对所述目标音频通路传输的音频进行增强,包括:2. The method according to claim 1, wherein the enhancing the audio frequency transmitted by the target audio channel through a target sound effect algorithm corresponding to the target sound type comprises:若所述目标声音类型为带有空间类型参数的声音类型,通过相位信息增强所述目标音频通路传输的音频的空间感。If the target sound type is a sound type with a spatial type parameter, the spatial sense of the audio transmitted by the target audio channel is enhanced through the phase information.3.根据权利要求2所述的方法,其特征在于,所述通过相位信息增强所述目标音频通路传输的声音的空间感,包括:3. The method according to claim 2, wherein the enhancing the spatial sense of the sound transmitted by the target audio channel through phase information comprises:以所述目标音频通路传输的音频为原音频,复制所述原音频获得音频副本;Taking the audio transmitted by the target audio path as the original audio, copying the original audio to obtain an audio copy;将所述音频副本相对于所述原音频延时预设时长,使所述音频副本与所述原音频之间具有相位差。Delaying the audio copy relative to the original audio by a preset period of time so that there is a phase difference between the audio copy and the original audio.4.根据权利要求3所述的方法,其特征在于,所述将所述音频副本相对于所述原音频延时预设时长,使所述音频副本与所述原音频之间具有相位差之后,还包括:4. The method according to claim 3, wherein after delaying the audio copy relative to the original audio by a preset time period so that there is a phase difference between the audio copy and the original audio ,Also includes:将所述原音频以及所述音频副本分别通过左声道以及右声道播放。The original audio and the audio copy are played through the left channel and the right channel, respectively.5.根据权利要求2所述的方法,其特征在于,所述通过相位信息增强所述目标音频通路传输的音频的空间感之前,还包括:5. The method according to claim 2, wherein before enhancing the spatial sense of the audio transmitted by the target audio channel through the phase information, the method further comprises:判断所述目标音频通路传输的音频中是否包括相位信息,若是,执行所述通过相位信息增强所述目标音频通路传输的音频的空间感的步骤;Determine whether phase information is included in the audio transmitted by the target audio path, and if so, execute the step of enhancing the spatial sense of the audio transmitted by the target audio path through the phase information;若所述目标音频通路传输的音频不包括相位信息,为所述音频添加虚拟的相位信息后,执行所述通过相位信息增强所述目标音频通路传输的音频的空间感的步骤。If the audio transmitted by the target audio channel does not include phase information, after adding virtual phase information to the audio, the step of enhancing the spatial sense of the audio transmitted by the target audio channel through the phase information is performed.6.根据权利要求1所述的方法,其特征在于,所述通过与所述目标声音类型对应的目标音效算法对所述目标音频通路传输的音频进行增强,包括:6. The method according to claim 1, wherein the enhancing the audio frequency transmitted by the target audio channel through a target sound effect algorithm corresponding to the target sound type comprises:根据预设的声音类型与音效算法的对应关系,获取所述目标声音类型对应的目标音效算法;Obtain the target sound effect algorithm corresponding to the target sound type according to the preset correspondence between the sound type and the sound effect algorithm;以所述目标音效算法对目标音频通路传输的音频进行增强。The audio transmitted by the target audio channel is enhanced with the target sound effect algorithm.7.根据权利要求1所述的方法,其特征在于,所述方法包括:7. The method of claim 1, wherein the method comprises:若当前的音频输出场景为游戏场景,以所述电子设备的媒体音对应的音频通路作为所述目标音频通路;或者If the current audio output scene is a game scene, use the audio path corresponding to the media sound of the electronic device as the target audio path; or若当前的音频输出场景为游戏场景,以创建的只用于传输游戏场景下的音频的音频通路作为所述目标音频通路。If the current audio output scene is a game scene, the created audio path only used for transmitting audio in the game scene is used as the target audio path.8.一种音效增强装置,其特征在于,应用于电子设备,所述装置包括:8. A sound effect enhancement device, characterized in that, applied to electronic equipment, the device comprising:通路确定模块,用于确定当前的音频输出场景在所述电子设备的音频通路中对应的目标音频通路;a path determination module, used to determine the target audio path corresponding to the current audio output scene in the audio path of the electronic device;类型确定模块,用于确定所述目标音频通路所传输的音频的目标声音类型;a type determination module for determining the target sound type of the audio transmitted by the target audio path;音效增强模块,用于通过与所述目标声音类型对应的目标音效算法对所述目标音频通路传输的音频进行增强。A sound effect enhancement module, configured to enhance the audio transmitted by the target audio channel through a target sound effect algorithm corresponding to the target sound type.9.一种电子设备,其特征在于,包括:9. An electronic device, characterized in that, comprising:一个或多个处理器;one or more processors;存储器;memory;一个或多个程序,其中所述一个或多个程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行如权利要求1-7任一项所述的方法。one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs are configured to perform as claimed in the claims The method of any one of 1-7.10.一种计算机可读取存储介质,其特征在于,所述计算机可读取存储介质中存储有程序代码,所述程序代码可被处理器调用执行如权利要求1-7任一项所述的方法。10. A computer-readable storage medium, wherein a program code is stored in the computer-readable storage medium, and the program code can be invoked by a processor to execute any one of claims 1-7 Methods.
CN201811028127.9A2018-09-042018-09-04Sound effect enhancement method and device, electronic equipment and storage mediumActiveCN109165005B (en)

Priority Applications (2)

Application NumberPriority DateFiling DateTitle
CN201811028127.9ACN109165005B (en)2018-09-042018-09-04Sound effect enhancement method and device, electronic equipment and storage medium
PCT/CN2019/095140WO2020048221A1 (en)2018-09-042019-07-08Sound effect enhancement method and apparatus, electronic device, and storage medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201811028127.9ACN109165005B (en)2018-09-042018-09-04Sound effect enhancement method and device, electronic equipment and storage medium

Publications (2)

Publication NumberPublication Date
CN109165005Atrue CN109165005A (en)2019-01-08
CN109165005B CN109165005B (en)2020-08-25

Family

ID=64893921

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201811028127.9AActiveCN109165005B (en)2018-09-042018-09-04Sound effect enhancement method and device, electronic equipment and storage medium

Country Status (2)

CountryLink
CN (1)CN109165005B (en)
WO (1)WO2020048221A1 (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN110580914A (en)*2019-07-242019-12-17安克创新科技股份有限公司Audio processing method and equipment and device with storage function
CN111601157A (en)*2020-05-112020-08-28海信视像科技股份有限公司Audio output method and display device
CN113241091A (en)*2021-05-282021-08-10思必驰科技股份有限公司Sound separation enhancement method and system
CN113318432A (en)*2021-06-072021-08-31网易(杭州)网络有限公司In-game music control method, non-volatile storage medium, and electronic device
CN114302295A (en)*2021-12-172022-04-08深圳市锐尔觅移动通信有限公司 Parameter configuration method, device, electronic device and storage medium
CN114510290A (en)*2022-01-262022-05-17海宁奕斯伟集成电路设计有限公司Sound effect processing method and device, electronic equipment, storage medium and program product
CN115119110A (en)*2022-07-292022-09-27歌尔科技有限公司 Sound effect adjustment method, audio playback device, and computer-readable storage medium
WO2022242210A1 (en)*2021-05-212022-11-24荣耀终端有限公司Sound playback method and device

Citations (11)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
KR20060003631A (en)*2004-07-072006-01-11주식회사 산돌커뮤니케이션 Method and apparatus for driving specific character sound effect in text
CN101808208A (en)*2009-02-172010-08-18深圳Tcl新技术有限公司Television and method for setting sound effect mode of same
CN103927146A (en)*2014-04-302014-07-16深圳市中兴移动通信有限公司Sound effect self-adapting method and device
CN104090766A (en)*2014-07-172014-10-08广东欧珀移动通信有限公司Sound effect switching method and system for mobile terminal
CN104238990A (en)*2013-06-142014-12-24联想(北京)有限公司Electronic device and audio output method
CN105824598A (en)*2016-02-292016-08-03维沃移动通信有限公司Sound effect management method and mobile terminal
CN106095387A (en)*2016-06-162016-11-09广东欧珀移动通信有限公司 A terminal sound effect setting method and terminal
CN106126174A (en)*2016-06-162016-11-16广东欧珀移动通信有限公司The control method of a kind of scene audio and electronic equipment
CN106464939A (en)*2016-07-282017-02-22北京小米移动软件有限公司Method and device for playing sound effect
CN106775562A (en)*2016-12-092017-05-31奇酷互联网络科技(深圳)有限公司The method and device of audio frequency parameter treatment
CN107910018A (en)*2017-10-302018-04-13广州视源电子科技股份有限公司Sound effect processing method and system, computer storage medium and equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN109107158B (en)*2018-09-042020-09-22Oppo广东移动通信有限公司Sound effect processing method and device, electronic equipment and computer readable storage medium
CN109271128A (en)*2018-09-042019-01-25Oppo广东移动通信有限公司Audio setting method, device, electronic equipment and storage medium
CN109218528B (en)*2018-09-042021-03-02Oppo广东移动通信有限公司Sound effect processing method and device and electronic equipment

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
KR20060003631A (en)*2004-07-072006-01-11주식회사 산돌커뮤니케이션 Method and apparatus for driving specific character sound effect in text
CN101808208A (en)*2009-02-172010-08-18深圳Tcl新技术有限公司Television and method for setting sound effect mode of same
CN104238990A (en)*2013-06-142014-12-24联想(北京)有限公司Electronic device and audio output method
CN103927146A (en)*2014-04-302014-07-16深圳市中兴移动通信有限公司Sound effect self-adapting method and device
CN104090766A (en)*2014-07-172014-10-08广东欧珀移动通信有限公司Sound effect switching method and system for mobile terminal
CN105824598A (en)*2016-02-292016-08-03维沃移动通信有限公司Sound effect management method and mobile terminal
CN106095387A (en)*2016-06-162016-11-09广东欧珀移动通信有限公司 A terminal sound effect setting method and terminal
CN106126174A (en)*2016-06-162016-11-16广东欧珀移动通信有限公司The control method of a kind of scene audio and electronic equipment
CN106464939A (en)*2016-07-282017-02-22北京小米移动软件有限公司Method and device for playing sound effect
CN106775562A (en)*2016-12-092017-05-31奇酷互联网络科技(深圳)有限公司The method and device of audio frequency parameter treatment
CN107910018A (en)*2017-10-302018-04-13广州视源电子科技股份有限公司Sound effect processing method and system, computer storage medium and equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
GET THAT PRO SOUND: "很多人不知道的干货:从心里声学角度提升观众听觉体验的5个技巧", 《HTTP://WWW.SOHU.COM/A/160837024_301624》*

Cited By (11)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN110580914A (en)*2019-07-242019-12-17安克创新科技股份有限公司Audio processing method and equipment and device with storage function
CN111601157A (en)*2020-05-112020-08-28海信视像科技股份有限公司Audio output method and display device
CN111601157B (en)*2020-05-112022-06-14海信视像科技股份有限公司Audio output method and display device
WO2022242210A1 (en)*2021-05-212022-11-24荣耀终端有限公司Sound playback method and device
US12299348B2 (en)2021-05-212025-05-13Honor Device Co., Ltd.Sound playing method and device
CN113241091A (en)*2021-05-282021-08-10思必驰科技股份有限公司Sound separation enhancement method and system
CN113318432A (en)*2021-06-072021-08-31网易(杭州)网络有限公司In-game music control method, non-volatile storage medium, and electronic device
CN113318432B (en)*2021-06-072024-02-23网易(杭州)网络有限公司Music control method in game, nonvolatile storage medium and electronic device
CN114302295A (en)*2021-12-172022-04-08深圳市锐尔觅移动通信有限公司 Parameter configuration method, device, electronic device and storage medium
CN114510290A (en)*2022-01-262022-05-17海宁奕斯伟集成电路设计有限公司Sound effect processing method and device, electronic equipment, storage medium and program product
CN115119110A (en)*2022-07-292022-09-27歌尔科技有限公司 Sound effect adjustment method, audio playback device, and computer-readable storage medium

Also Published As

Publication numberPublication date
WO2020048221A1 (en)2020-03-12
CN109165005B (en)2020-08-25

Similar Documents

PublicationPublication DateTitle
CN109165005A (en)Sound effect enhancement method and device, electronic equipment and storage medium
US20230300532A1 (en)Fully customizable ear worn devices and associated development platform
US20250094211A1 (en)Fully customizable ear worn devices and associated development platform
US11109177B2 (en)Methods and systems for simulating acoustics of an extended reality world
KR20170013931A (en) Determination and use of auditory-space-optimized transfer functions
CN108111952B (en)Recording method, device, terminal and computer readable storage medium
CA2744429C (en)Converter and method for converting an audio signal
CN111654806B (en)Audio playing method and device, storage medium and electronic equipment
US12383832B2 (en)Audio processing method and apparatus
WO2017219538A1 (en)Channel data matching method and device
CN113411725B (en)Audio playing method and device, mobile terminal and storage medium
CN113709619A (en)Audio processing method and device, user terminal and computer readable medium
US11082796B2 (en)Methods and systems for generating audio for an extended reality world
US11223920B2 (en)Methods and systems for extended reality audio processing for near-field and far-field audio reproduction
CN115250412A (en)Audio processing method, device, wireless earphone and computer readable medium
JP2024534274A (en) Vibration motor control method, vibration motor control device, storage medium, and electronic device
KR20240099500A (en) Accompaniment creation methods, devices and storage media
CN113553022A (en)Equipment adjusting method and device, mobile terminal and storage medium
CN118264971B (en)Speaker-based spatial audio system, audio processor, vehicle, virtual surround sound conversion method, and audio rendering method
CN111314553B (en) Volume adjustment method, device, terminal and storage medium
CN116193196A (en) Virtual surround sound rendering method, device, equipment and storage medium
CN114173275A (en)Voice communication device
CN119071717B (en) A dynamic audio processing method and system for digital speakers
CN117676002A (en) Audio processing method and electronic device
CN115705839A (en) Speech playing method, device, computer equipment and storage medium

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp