CN109165005A - Audio Enhancement Method, device, electronic equipment and storage medium - Google Patents

Audio Enhancement Method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN109165005A
CN109165005A CN201811028127.9A CN201811028127A CN109165005A CN 109165005 A CN109165005 A CN 109165005A CN 201811028127 A CN201811028127 A CN 201811028127A CN 109165005 A CN109165005 A CN 109165005A
Authority
CN
China
Prior art keywords
audio
target
sound
type
access
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 Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201811028127.9A priority Critical patent/CN109165005B/en
Publication of CN109165005A publication Critical patent/CN109165005A/en
Priority to PCT/CN2019/095140 priority patent/WO2020048221A1/en
Application granted granted Critical
Publication of CN109165005B publication Critical patent/CN109165005B/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

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 embodiment of the present application discloses a kind of audio Enhancement Method, device, electronic equipment and storage medium, is related to field of electronic device.Wherein, this method comprises: determining current audio output scene corresponding target audio access in the voice-frequency channel of the electronic equipment;Determine the target sound type for the audio that the target audio access is transmitted;The audio of the target audio tunnel is enhanced by target sound effect algorithms corresponding with the target sound type.The audio of alternative sounds type may be implemented in the program is enhanced with different target sound effect algorithms, audio reinforcing effect is improved, to improve 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, electronics Standby 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 completeer It 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 sound Sound 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 reality Add 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, with It 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 packet It includes: determining current audio output scene corresponding target audio access in the voice-frequency channel of the electronic equipment;Determine institute State the target sound type for the audio that target audio access is transmitted;Pass through target audio corresponding with the target sound type Algorithm 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 packet It includes: access determining module, for determining current audio output scene corresponding mesh in the voice-frequency channel of the electronic equipment Mark voice-frequency channel;Determination type module, for determining the target sound type of audio that the target audio access is transmitted;Sound Effect enhancing module, is used for through target sound effect algorithms corresponding with the target sound type to the target audio tunnel Audio 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 one Or 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-readable Program 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 access The target sound type of the audio of middle transmission is enhanced with its corresponding target sound effect algorithms, realizes alternative sounds type Audio 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 embodiment Attached drawing is briefly described, it should be apparent that, the drawings in the following description are only some examples of the present application, for For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
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 application Program 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 application Attached 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 at It manages and then corresponding broadcasting is carried out to audio data, realize audio enhancing.Usual electronic equipment addition is all certain default Audio, 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 not With the differentiation for being directed to audio itself, different audios may need different enhancement methods, such as certain indoor scenes Gaming 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 concert Audio, 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 to Sound 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 and Storage 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 institute The target sound type of the audio of transmission obtains corresponding target sound effect algorithms and carries out audio enhancing to audio.Specifically, the party Method includes:
Step S110: current audio output scene corresponding target sound in the voice-frequency channel of the electronic equipment is determined Frequency access.
It in the electronic device, can be there are many audio output scene.Wherein, audio corresponding to every kind of application program is broadcast It 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 sound Frequency output scene.For example, the corresponding audio output of music application exports scene as music, video application is corresponding Audio output exports scene as video sound, and for the corresponding audio output of game application as scene of game, alarm clock is corresponding Audio 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 scene Output 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 audio Scenario parameters are included, then can determine that the corresponding audio of the audio is defeated by scenario parameters included in the audio data of audio Scene out.
In the electronic device, each audio output scene can be corresponding with voice-frequency channel, the audio output field under different accesses It 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) system In, 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 list A 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 corresponding Audio output scene, voice-frequency channel corresponding to the corresponding media sound such as the corresponding audio output scene of video application;It is noisy The 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 corresponding Voice-frequency channel corresponding to ring tone;Audio output scene when electronic equipment carries out voice communication can correspond to call sound institute Corresponding voice-frequency channel.In the embodiment of the present application, the particular number of voice-frequency channel does not limit, audio output scene and audio Corresponding 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, really Corresponding 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.Again According to the audio scene currently exported, audio output scene audio corresponding in each voice-frequency channel of electronic equipment is determined Access.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 time The target audio access answered.
As an implementation, in the embodiment of the present application, it can also be determined when audio output scene sounding changes The 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 type Division do not limit in the embodiment of the present application, such as indoors in finite spatial extent, need the sound of expressive space As space type;The recording at concert scene is as concert type;The sound of people is as voice type etc..Electronic equipment can To 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 in In electronic equipment.In the audio data of audio, the type parameter of its affiliated type can store.Then played in the electronic equipment Audio audio data in, include indicate its type type parameter.There is audio to work as transmission in target audio access When, 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 type Defeated 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 obtain Result 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 right In 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 improved Live expressive force etc..Specifically, corresponding sound effect algorithms can be corresponding with for logical to the audio in corresponding voice-frequency channel Audio in road carries out audio enhancing.Wherein, algorithm corresponding to specific reinforcing effect can be arranged according to existing algorithm, at this It 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 channel Imitate algorithm.When transmitting audio in voice-frequency channel, according to sound type belonging to the audio, obtains the corresponding audio of the audio and calculate Method.
Wherein, with sound effect algorithms corresponding to target sound type, as target sound effect algorithms.In target audio access It, can be by target sound effect algorithms corresponding with the target sound type, to belonging to this when the audio of transmission objectives sound type Audio 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 mesh Mark 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 into Audio 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 pair The 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 sound Property, 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 as Require 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 audio Method.
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 reality Mode 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 relationship Table is configured and stores.To, can be according to preset sound type and sound effect algorithms when obtaining target sound type Corresponding relationship obtains the corresponding target sound effect algorithms of the target sound type.Again with the target sound effect algorithms to target sound The 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 reality Border demand.For example, being equally the sound of people, in voice communication, need sound apparent;And in video application, it needs Want sound more melodious.Then in the voice-frequency channel corresponding to call sound, by improve sound articulation sound effect algorithms to audio into Row 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 no With 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 sound Effect algorithm is correspondingly arranged and is stored with algorithm parameter, also, presets and be stored between type parameter and algorithm parameter Transfer function.Type parameter is calculated by transfer function, the corresponding algorithm parameter of such shape parameter can be obtained, thus root It 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 type And 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 with It 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 of Audio 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 tunnel Audio in, may include muli-sounds type.It is if transmitting the audio of muli-sounds type in target audio access, this is more A sound type is used as target sound type, i.e. target sound type includes multiple sound types.For example, in certain game sound When broadcasting, while the sound including the people and footsteps etc. in space passes simultaneously then in corresponding voice-frequency channel indoors The 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 calculated Method, also, handled by audio of the sound effect algorithms to corresponding sound type.For example, in target audio access, the sound of transmission The 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 A The corresponding audio point counting B1 of A1 and sound type B.Also, audio a is handled by sound effect algorithms A1, passes through sound Type 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 may Different sound is generated, different sound may belong to different sound types.Therefore, for identical audio output scene in mesh It marks during transmitting audio in voice-frequency channel, electronics can in real time determine the audio transmitted in target audio access Corresponding sound type, as target sound type.In the case where target sound type changes, can determine newest Target 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 scene Mark voice-frequency channel.In the corresponding audio of present video output scene in target audio tunnel, the target sound can be determined The sound type for the audio transmitted in frequency access is as target sound type.Also, in the embodiment of the present application, each sound type Therefore the mesh can be obtained according to target sound type by being corresponding with the sound algorithm for carrying out audio enhancing processing to audio The 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 class The 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 application The 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 determined Frequency 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 channel Effect algorithm is enhanced.In order to obtain better game effect, if current audio output scene is scene of game, with creation The voice-frequency channel of the audio under transmission scene of game is served only for as the target audio access.That is, can be game The 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 information Enhance 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 parameter The audio effect processing of spatial impression enhancing is carried out to the audio.Specifically, passing through target audio corresponding with the target sound type Algorithm enhances the audio of the target audio tunnel, then can be, can be with to its audio by phase information The 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, lesser In spatial dimension, the sound that a sound source generates, partial sound reaches human ear, and partial sound is after the barrier reflection in space Human 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 received The 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 shake It 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.By In needing with phase difference, then should at least have including the comparison between two outs of phase.And the audio in destination path May only have phase information, therefore, the method for the audio enhancing spatial impression in destination path may is that with the target sound The audio of frequency tunnel is former audio, replicates the former audio and obtains audio copy.By the audio copy relative to described Former 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 consistent Audio 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 audio Phase difference.Specifically, since sound is propagated in air in the form of wave, for period and the identical wave of amplitude, in difference Time, phase is different.Therefore, can by audio copy relative to the former audio delay preset duration realize audio copy with Phase difference between former audio, when audio which makes that treated plays, when the sound of generation reaches eardrum, former audio is corresponding Phase 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 for Reinforcing effect is imitated, such as angle and distance information calculating acquisition between the sound for hearing auditor.Circular It 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 with The 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 sound The 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 source To.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 sound Sound, which is considered as the same sound but, can experience spatial impression in audio, preset duration can be set smaller than 35ms when Between.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 sound For spatial impression caused by different sound, such as same sound reflects the sound repeatedly formed in a room, can also will preset Time 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 access Copy amount does not limit, and is also possible to two or more, also, is ok between different audio copies and former audio The 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 audios Phase information may not be carried.Therefore, in the space for the audio for enhancing the target audio tunnel by phase information Before 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, that Phase 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, loudspeaker Audio-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 to Into 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 sound Road signal realizes stronger stereophonic effect, therefore, can believe using former audio and the audio copy as L channel Number and right-channel signals, played by L channel and right channel, the sound for simulating different spatial reaches user, realizes Better 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 sound The 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, asking Referring to Fig. 3, described device 300 includes: access determining module 310, for determining current audio output scene in the electronics Corresponding target audio access in the voice-frequency channel of equipment.Determination type module 320, for determining the target audio access institute The target sound type of the audio of transmission.Audio enhances module 330, for passing through target corresponding with the target sound type Sound 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, if Current audio output scene is scene of game, using the corresponding voice-frequency channel of media sound of the electronic equipment as the target Voice-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 fields Scape specially creates voice-frequency channel.For example, being served only for transmission game if current audio output scene is scene of game with creation The 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 enhancing Module can also include the algorithm determination unit for determining sound effect algorithms corresponding to the target sound type.Specifically, should Algorithm determination unit is used for the corresponding relationship according to preset sound type and sound effect algorithms, obtains the target sound type pair The target sound effect algorithms answered.It can also include audio enhancement unit that the audio, which enhances module 330, for target audio calculation Method 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 biography Defeated audio is former audio, replicates the former audio and obtains audio copy.Enhancement unit, for by the audio copy relative to The 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 data There is phase data.Therefore, in the embodiment of the present application, the apparatus may include judgment modules, for judging the target audio It whether include phase information in the audio of tunnel.If including audio enhancing module 330 can enhance institute by phase information State the spatial impression of the audio of target audio tunnel.If not including phase information in audio, the embodiment of the present application is provided Device can also include: phase adding module, for adding virtual phase information for the audio.In phase adding module After adding virtual phase information for the audio, audio enhancing module is used to enhance the target audio by phase information logical The 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 Shen Please embodiment can also include playing module, for by the former audio and the audio copy pass through respectively L channel and Right channel plays.
It is apparent to those skilled in the art that for convenience and simplicity of description, foregoing description device and The 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 other The coupling of form.
It, can also be in addition, can integrate in a processing module in each functional module in each embodiment of the application It is that modules physically exist alone, can also be integrated in two or more modules in a module.Above-mentioned integrated mould Block 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 electronics Equipment 400, which can be smart phone, tablet computer, music player devices etc., can run the electronic equipment of application program.The electricity Sub- equipment one or more processors 410 (one is only shown in figure), memory 420 and one or more programs.Wherein, institute It states one or more programs to be stored in the memory 420, and is configured as being held by one or more of processors 410 Row.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 connection Various pieces in a electronic equipment 400, by run or execute the instruction being stored in memory 420, program, code set or Instruction set, and the data being stored in memory 420 are called, execute the various functions and processing data of electronic equipment 400.It can Selection of land, processor 410 can use Digital Signal Processing (Digital Signal Processing, DSP), field-programmable Gate array (Field-Programmable Gate Array, FPGA), programmable logic array (Programmable Logic Array, PLA) at least one of example, in hardware realize.Processor 410 can integrating central processor (Central Processing 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 for Show the rendering and drafting of content;Modem is for handling wireless communication.It is understood that above-mentioned modem It 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-only Memory (Read-Only Memory).Memory 420 can be used for store instruction, program, code, code set or instruction set.It deposits Reservoir 420 may include storing program area and storage data area, wherein the finger that storing program area can store for realizing operating system Enable, 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 also It 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 side Method 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 meter Calculation machine readable medium (non-transitorycomputer-readable storage medium).Computer-readable storage medium Matter 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 with From reading or be written in one or more computer program product in this one or more computer program product.Journey Sequence 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;Although The application is described in detail with reference to the foregoing embodiments, those skilled in the art are when understanding: it still can be with It modifies the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features;And These are modified or replaceed, do not drive corresponding technical solution essence be detached from each embodiment technical solution of the application spirit and Range.

Claims (10)

1. a kind of audio Enhancement Method, which is characterized in that be applied to electronic equipment, which comprises
Determine current audio output scene corresponding target audio access in the voice-frequency channel of the electronic equipment;
Determine the target sound type for the audio that the target audio access is transmitted;
It is carried out by audio of the target sound effect algorithms corresponding with the target sound type to the target audio tunnel Enhancing.
2. the method according to claim 1, wherein described pass through target corresponding with the target sound type Sound effect algorithms enhance the audio of the target audio tunnel, comprising:
If the target sound type is the sound type with space type parameter, the target sound is enhanced by phase information The spatial impression of the audio of frequency tunnel.
3. according to the method described in claim 2, it is characterized in that, described enhance the target audio access by phase information The spatial impression of the sound of transmission, comprising:
It is former audio with the audio of the target audio tunnel, replicates the former audio and obtain audio copy;
By the audio copy relative to the former audio delay preset duration, make between the audio copy and the former audio With phase difference.
4. according to the method described in claim 3, it is characterized in that, described prolong the audio copy relative to the former audio When preset duration, after making to have between the audio copy and the former audio phase difference, further includes:
The former audio and the audio copy are passed through into L channel respectively and right channel plays.
5. according to the method described in claim 2, it is characterized in that, described enhance the target audio access by phase information Before the spatial impression of the audio of transmission, further includes:
Judge in the audio of the target audio tunnel whether to include phase information, if so, executing described by phase letter Breath enhances the step of spatial impression of the audio of the target audio tunnel;
If the audio of the target audio tunnel does not include phase information, virtual phase information is added for the audio Afterwards, the step of executing the spatial impression of the audio that the target audio tunnel is enhanced by phase information.
6. the method according to claim 1, wherein described pass through target corresponding with the target sound type Sound effect algorithms enhance the audio of the target audio tunnel, comprising:
According to the corresponding relationship of preset sound type and sound effect algorithms, the corresponding target audio of the target sound type is obtained Algorithm;
The audio of target audio tunnel is enhanced with the target sound effect algorithms.
7. the method according to claim 1, wherein the described method includes:
If current audio output scene is scene of game, using the corresponding voice-frequency channel of media sound of the electronic equipment as institute State target audio access;Or
It is logical with the audio for the audio of creation being served only under transmission scene of game if current audio output scene is scene of game Road is as the target audio access.
8. a kind of audio enhancement device, which is characterized in that be applied to electronic equipment, described device includes:
Access determining module, for determining current audio output scene corresponding mesh in the voice-frequency channel of the electronic equipment Mark voice-frequency channel;
Determination type module, for determining the target sound type of audio that the target audio access is transmitted;
Audio enhances module, for logical to the target audio by target sound effect algorithms corresponding with the target sound type The audio of road transmission is enhanced.
9. a kind of electronic equipment characterized by 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 described One or more processors execute, and one or more of programs are configured to carry out as claim 1-7 is described in any item Method.
10. a kind of computer-readable storage medium, which is characterized in that be stored with journey in the computer-readable storage medium Sequence code, said program code can be called by processor and execute the method according to claim 1 to 7.
CN201811028127.9A 2018-09-04 2018-09-04 Sound effect enhancement method and device, electronic equipment and storage medium Active CN109165005B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201811028127.9A CN109165005B (en) 2018-09-04 2018-09-04 Sound effect enhancement method and device, electronic equipment and storage medium
PCT/CN2019/095140 WO2020048221A1 (en) 2018-09-04 2019-07-08 Sound effect enhancement method and apparatus, electronic device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811028127.9A CN109165005B (en) 2018-09-04 2018-09-04 Sound effect enhancement method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109165005A true CN109165005A (en) 2019-01-08
CN109165005B CN109165005B (en) 2020-08-25

Family

ID=64893921

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811028127.9A Active CN109165005B (en) 2018-09-04 2018-09-04 Sound effect enhancement method and device, electronic equipment and storage medium

Country Status (2)

Country Link
CN (1) CN109165005B (en)
WO (1) WO2020048221A1 (en)

Cited By (7)

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

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060003631A (en) * 2004-07-07 2006-01-11 주식회사 산돌커뮤니케이션 Method and apparatus for generating sound effects on particular character in text
CN101808208A (en) * 2009-02-17 2010-08-18 深圳Tcl新技术有限公司 Television and method for setting sound effect mode of same
CN103927146A (en) * 2014-04-30 2014-07-16 深圳市中兴移动通信有限公司 Sound effect self-adapting method and device
CN104090766A (en) * 2014-07-17 2014-10-08 广东欧珀移动通信有限公司 Sound effect switching method and system for mobile terminal
CN104238990A (en) * 2013-06-14 2014-12-24 联想(北京)有限公司 Electronic device and audio output method
CN105824598A (en) * 2016-02-29 2016-08-03 维沃移动通信有限公司 Sound effect management method and mobile terminal
CN106095387A (en) * 2016-06-16 2016-11-09 广东欧珀移动通信有限公司 The audio method to set up of a kind of terminal and terminal
CN106126174A (en) * 2016-06-16 2016-11-16 广东欧珀移动通信有限公司 The control method of a kind of scene audio and electronic equipment
CN106464939A (en) * 2016-07-28 2017-02-22 北京小米移动软件有限公司 Method and device for playing sound effect
CN106775562A (en) * 2016-12-09 2017-05-31 奇酷互联网络科技(深圳)有限公司 The method and device of audio frequency parameter treatment
CN107910018A (en) * 2017-10-30 2018-04-13 广州视源电子科技股份有限公司 Sound effect treatment method and system, computer-readable storage medium and equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109271128A (en) * 2018-09-04 2019-01-25 Oppo广东移动通信有限公司 Audio setting method, device, electronic equipment and storage medium
CN109218528B (en) * 2018-09-04 2021-03-02 Oppo广东移动通信有限公司 Sound effect processing method and device and electronic equipment
CN109107158B (en) * 2018-09-04 2020-09-22 Oppo广东移动通信有限公司 Sound effect processing method and device, electronic equipment and computer readable storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060003631A (en) * 2004-07-07 2006-01-11 주식회사 산돌커뮤니케이션 Method and apparatus for generating sound effects on particular character in text
CN101808208A (en) * 2009-02-17 2010-08-18 深圳Tcl新技术有限公司 Television and method for setting sound effect mode of same
CN104238990A (en) * 2013-06-14 2014-12-24 联想(北京)有限公司 Electronic device and audio output method
CN103927146A (en) * 2014-04-30 2014-07-16 深圳市中兴移动通信有限公司 Sound effect self-adapting method and device
CN104090766A (en) * 2014-07-17 2014-10-08 广东欧珀移动通信有限公司 Sound effect switching method and system for mobile terminal
CN105824598A (en) * 2016-02-29 2016-08-03 维沃移动通信有限公司 Sound effect management method and mobile terminal
CN106095387A (en) * 2016-06-16 2016-11-09 广东欧珀移动通信有限公司 The audio method to set up of a kind of terminal and terminal
CN106126174A (en) * 2016-06-16 2016-11-16 广东欧珀移动通信有限公司 The control method of a kind of scene audio and electronic equipment
CN106464939A (en) * 2016-07-28 2017-02-22 北京小米移动软件有限公司 Method and device for playing sound effect
CN106775562A (en) * 2016-12-09 2017-05-31 奇酷互联网络科技(深圳)有限公司 The method and device of audio frequency parameter treatment
CN107910018A (en) * 2017-10-30 2018-04-13 广州视源电子科技股份有限公司 Sound effect treatment method and system, computer-readable 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 (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110580914A (en) * 2019-07-24 2019-12-17 安克创新科技股份有限公司 Audio processing method and equipment and device with storage function
CN111601157A (en) * 2020-05-11 2020-08-28 海信视像科技股份有限公司 Audio output method and display device
CN111601157B (en) * 2020-05-11 2022-06-14 海信视像科技股份有限公司 Audio output method and display device
WO2022242210A1 (en) * 2021-05-21 2022-11-24 荣耀终端有限公司 Sound playback method and device
CN113241091A (en) * 2021-05-28 2021-08-10 思必驰科技股份有限公司 Sound separation enhancement method and system
CN113318432A (en) * 2021-06-07 2021-08-31 网易(杭州)网络有限公司 In-game music control method, non-volatile storage medium, and electronic device
CN113318432B (en) * 2021-06-07 2024-02-23 网易(杭州)网络有限公司 Music control method in game, nonvolatile storage medium and electronic device
CN114302295A (en) * 2021-12-17 2022-04-08 深圳市锐尔觅移动通信有限公司 Parameter configuration method and device, electronic equipment and storage medium
CN114510290A (en) * 2022-01-26 2022-05-17 海宁奕斯伟集成电路设计有限公司 Sound effect processing method and device, electronic equipment, storage medium and program product

Also Published As

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

Similar Documents

Publication Publication Date Title
CN109165005A (en) Audio Enhancement Method, device, electronic equipment and storage medium
CN106416304B (en) For the spatial impression of the enhancing of home audio
KR102008771B1 (en) Determination and use of auditory-space-optimized transfer functions
CN104520924B (en) Indicate coding and the presentation of the object-based audio of gaming audio content
US20080004729A1 (en) Direct encoding into a directional audio coding format
CN108111952B (en) Recording method, device, terminal and computer readable storage medium
WO2022026481A1 (en) Fully customizable ear worn devices and associated development platform
US11109177B2 (en) Methods and systems for simulating acoustics of an extended reality world
CA2744429C (en) Converter and method for converting an audio signal
US11223920B2 (en) Methods and systems for extended reality audio processing for near-field and far-field audio reproduction
US20230364513A1 (en) Audio processing method and apparatus
CN113823250B (en) Audio playing method, device, terminal and storage medium
US11082796B2 (en) Methods and systems for generating audio for an extended reality world
CN113553022A (en) Equipment adjusting method and device, mobile terminal and storage medium
JP2022525902A (en) Audio equipment and its processing method
CN114242025A (en) Method and device for generating accompaniment and storage medium
CN113709619A (en) Audio processing method and device, user terminal and computer readable medium
CN113411725B (en) Audio playing method and device, mobile terminal and storage medium
CN115705839A (en) Voice playing method and device, computer equipment and storage medium
CN111314553B (en) Volume adjusting method, device, terminal and storage medium
CN116347320B (en) Audio playing method and electronic equipment
WO2024084920A1 (en) Sound processing method, sound processing device, and program
CN107767857A (en) A kind of information broadcasting method, the first electronic equipment and computer-readable storage medium
CN113318432B (en) Music control method in game, nonvolatile storage medium and electronic device
CN116785710A (en) Sound playing method, device, equipment and storage medium

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