CN110211552B - Audio processing method and device - Google Patents
Audio processing method and device Download PDFInfo
- Publication number
- CN110211552B CN110211552B CN201910431059.9A CN201910431059A CN110211552B CN 110211552 B CN110211552 B CN 110211552B CN 201910431059 A CN201910431059 A CN 201910431059A CN 110211552 B CN110211552 B CN 110211552B
- Authority
- CN
- China
- Prior art keywords
- audio
- frequency point
- gain
- amplitude
- audio signal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10H—ELECTROPHONIC MUSICAL INSTRUMENTS; INSTRUMENTS IN WHICH THE TONES ARE GENERATED BY ELECTROMECHANICAL MEANS OR ELECTRONIC GENERATORS, OR IN WHICH THE TONES ARE SYNTHESISED FROM A DATA STORE
- G10H1/00—Details of electrophonic musical instruments
- G10H1/0008—Associated control or indicating means
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10H—ELECTROPHONIC MUSICAL INSTRUMENTS; INSTRUMENTS IN WHICH THE TONES ARE GENERATED BY ELECTROMECHANICAL MEANS OR ELECTRONIC GENERATORS, OR IN WHICH THE TONES ARE SYNTHESISED FROM A DATA STORE
- G10H1/00—Details of electrophonic musical instruments
- G10H1/0091—Means for obtaining special acoustic effects
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10L—SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- G10L25/00—Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00
- G10L25/03—Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 characterised by the type of extracted parameters
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10L—SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- G10L25/00—Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00
- G10L25/48—Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 specially adapted for particular use
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03G—CONTROL OF AMPLIFICATION
- H03G3/00—Gain control in amplifiers or frequency changers
- H03G3/20—Automatic control
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10H—ELECTROPHONIC MUSICAL INSTRUMENTS; INSTRUMENTS IN WHICH THE TONES ARE GENERATED BY ELECTROMECHANICAL MEANS OR ELECTRONIC GENERATORS, OR IN WHICH THE TONES ARE SYNTHESISED FROM A DATA STORE
- G10H2210/00—Aspects or methods of musical processing having intrinsic musical character, i.e. involving musical theory or musical parameters or relying on musical knowledge, as applied in electrophonic musical tools or instruments
- G10H2210/155—Musical effects
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Acoustics & Sound (AREA)
- Multimedia (AREA)
- Computational Linguistics (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Human Computer Interaction (AREA)
- Tone Control, Compression And Expansion, Limiting Amplitude (AREA)
Abstract
本公开揭示了一种音频处理方法及装置,包括:对音频处理芯片中待进行音频处理的音频信号,获取音频信号中每一频点音频在音频处理芯片的各级音频处理所适用的增益信息;根据增益信息和每一频点音频的初始幅值,确定音频信号中的超幅频点音频;根据超幅频点音频的初始幅值和所对应增益信息为音频信号中每一频点音频对应确定调整增益,以使每一频点音频按照所对应增益信息所指示增益和所对应调整增益处理后的幅值不超过幅度阈值;在对音频信号进行各级音频处理之前,按照所对应调整增益对每一频点音频进行预处理。实现了动态地为音频信号确定调整增益,而且避免音频信号在音频芯片的各级音频处理中出现削顶失真。
The present disclosure discloses an audio processing method and device, including: for the audio signal to be processed in the audio processing chip, obtaining the gain information applicable to the audio processing of each audio frequency point in the audio processing chip at each level of the audio processing chip ; According to the gain information and the initial amplitude of each frequency point audio, determine the super-amplitude frequency point audio in the audio signal; according to the initial amplitude of the super-amplitude frequency point audio and the corresponding gain information for each frequency point audio in the audio signal Correspondingly determine the adjustment gain so that the audio at each frequency point is processed according to the gain indicated by the corresponding gain information and the corresponding adjusted gain does not exceed the amplitude threshold; Gain preprocesses the audio at each frequency point. The method realizes dynamically determining and adjusting the gain for the audio signal, and avoids clipping and distortion of the audio signal in all levels of audio processing of the audio chip.
Description
技术领域technical field
本公开涉及音频处理技术领域,特别涉及一种音频处理方法及装置。The present disclosure relates to the technical field of audio processing, in particular to an audio processing method and device.
背景技术Background technique
音频处理芯片是集成电路电路构成。由于集成电路自身的电子元件和电路结构的限制,从而集成电路中可以通过的信号的幅度有限制,如果信号在集成电路中的幅度超过集成电路的允许范围,即幅度阈值,则该信号的不能顺利通过,且其波形会被削掉一部分,就产生了削顶失真。从而,如果音频信号在音频处理过程中的幅度超过音频处理芯片的幅度阈值,会产生削顶失真。而削顶失真后的音频信号会导致声音模糊,不清晰,使得音频信号播出后听感不佳,进而造成用户体验差。Audio processing chips are composed of integrated circuit circuits. Due to the limitations of the electronic components and circuit structure of the integrated circuit, the amplitude of the signal that can pass through the integrated circuit is limited. If the amplitude of the signal in the integrated circuit exceeds the allowable range of the integrated circuit, that is, the amplitude threshold, the signal cannot be passed. It passes through smoothly, and part of its waveform will be cut off, resulting in clipping distortion. Therefore, if the amplitude of the audio signal exceeds the amplitude threshold of the audio processing chip during audio processing, clipping distortion will occur. However, the clipped and distorted audio signal will cause the sound to be fuzzy and unclear, making the audio signal unsatisfactory after it is broadcast, resulting in poor user experience.
因此,现有技术中因音频处理芯片自身的结构,造成通过音频处理芯片的音频信号产生削顶失真的问题亟待解决。Therefore, in the prior art, due to the structure of the audio processing chip itself, the problem of clipping and distortion of the audio signal passing through the audio processing chip needs to be solved urgently.
发明内容Contents of the invention
为了解决相关技术中存在的问题,本公开提供了一种音频处理方法及装置。In order to solve the problems existing in related technologies, the present disclosure provides an audio processing method and device.
第一方面,一种音频处理方法,所述方法包括:In a first aspect, an audio processing method, the method comprising:
对音频处理芯片中待进行音频处理的音频信号,获取所述音频信号中每一频点音频在所述音频处理芯片的各级音频处理所适用的增益信息;For the audio signal to be processed in the audio processing chip, obtain the gain information applicable to the audio processing at each level of the audio processing chip for each frequency point in the audio signal;
根据所述增益信息和所述每一频点音频的初始幅值,确定所述音频信号中的超幅频点音频,所述超幅频点音频是所述音频信号中按照所述增益信息所指示增益处理后,幅值超过所述音频处理芯片的幅度阈值的频点音频;According to the gain information and the initial amplitude of each frequency point audio, determine the super-amplitude frequency point audio in the audio signal, and the super-amplitude frequency point audio is determined according to the gain information in the audio signal After indicating the gain processing, the frequency point audio whose amplitude exceeds the amplitude threshold of the audio processing chip;
根据所述超幅频点音频的所述初始幅值和所对应所述增益信息为所述音频信号中每一频点音频对应确定调整增益,以使所述每一频点音频按照所对应所述增益信息所指示增益和所对应所述调整增益处理后的幅值不超过所述幅度阈值;According to the initial amplitude of the super-amplitude frequency point audio and the corresponding gain information, an adjustment gain is correspondingly determined for each frequency point audio in the audio signal, so that the each frequency point audio is in accordance with the corresponding The gain indicated by the gain information and the processed amplitude corresponding to the adjusted gain do not exceed the amplitude threshold;
在对所述音频信号进行所述各级音频处理之前,按照所对应所述调整增益对所述每一频点音频进行预处理。Before performing the audio processing at all levels on the audio signal, the audio of each frequency point is pre-processed according to the corresponding adjustment gain.
第二方面,一种音频处理装置,所述装置包括:In a second aspect, an audio processing device, the device comprising:
增益信息获取模块,被配置为:对音频处理芯片中待进行音频处理的音频信号,获取所述音频信号中每一频点音频在所述音频处理芯片的各级音频处理所适用的增益信息;The gain information acquisition module is configured to: acquire, for the audio signal to be audio processed in the audio processing chip, the gain information applicable to audio processing at each level of the audio processing chip for each frequency point in the audio signal;
超幅频点音频确定模块,被配置为:根据所述增益信息和所述每一频点音频的初始幅值,确定所述音频信号中的超幅频点音频,所述超幅频点音频是所述音频信号中按照所述增益信息所指示增益处理后,幅值超过所述音频处理芯片的幅度阈值的频点音频;The super-amplitude frequency point audio determination module is configured to: determine the super-amplitude frequency point audio in the audio signal according to the gain information and the initial amplitude of each frequency point audio, and the super-amplitude frequency point audio It is the frequency point audio whose amplitude exceeds the amplitude threshold of the audio processing chip after the gain processing indicated by the gain information in the audio signal;
调整增益确定模块,被配置为:根据所述超幅频点音频的所述初始幅值、所对应所述增益信息和所述幅度阈值为所述音频信号中每一频点音频对应确定调整增益,以使所述每一频点音频按照所对应所述增益信息所指示增益和所对应所述调整增益处理后的幅值不超过所述幅度阈值;The adjustment gain determination module is configured to: determine the adjustment gain for each frequency point audio in the audio signal according to the initial amplitude value of the super-amplitude frequency point audio, the corresponding gain information, and the amplitude threshold so that the amplitude of the audio at each frequency point processed according to the gain indicated by the corresponding gain information and the corresponding adjusted gain does not exceed the amplitude threshold;
预处理模块,被配置为:在对所述音频信号进行所述各级音频处理之前,按照所对应所述调整增益对所述每一频点音频进行预处理。The preprocessing module is configured to: perform preprocessing on the audio at each frequency point according to the corresponding adjustment gain before performing the audio processing at each level on the audio signal.
本公开的实施例提供的技术方案可以包括以下有益效果:The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:
通过根据音频信号中每一频点音频的初始幅值、以及每一频点音频在音频处理芯片的各级音频处理中所适用的增益信息来对应地为音频信号确定调整增益,以按照调整增益在音频信号进行各级音频处理之前进行预处理。According to the initial amplitude of each frequency point audio in the audio signal and the gain information applicable to each frequency point audio in the audio processing of the audio processing chip to determine the adjustment gain for the audio signal correspondingly, so as to adjust the gain according to the Preprocessing is done before the audio signal goes through various stages of audio processing.
一方面,确保了音频信号在预处理进入各级音频处理后的幅值不会超过音频处理芯片的幅度阈值,有效避免音频信号在音频处理芯片中出现削顶失真。On the one hand, it ensures that the amplitude of the audio signal will not exceed the amplitude threshold of the audio processing chip after the preprocessing enters the audio processing at all levels, effectively avoiding the clipping distortion of the audio signal in the audio processing chip.
另一方面,由于在每一待进行各级音频处理的音频信号中,音频信号所包含的频点音频存在不同,而且所包含频点音频的幅值也存在差异。从而,在本公开的技术方案中,根据音频信号中每一频点音频的初始幅值,以及每一频点音频在各级音频处理中所适用的增益信息来对应地为该音频信号确定调整增益,实现了结合每一音频信号的实际情况,动态地为每一音频信号确定调整增益,以保证所确定的调整增益适用于该音频信号。On the other hand, in each audio signal to be subjected to various levels of audio processing, the frequency point audio included in the audio signal is different, and the amplitude of the included frequency point audio is also different. Therefore, in the technical solution of the present disclosure, according to the initial amplitude of each frequency point audio in the audio signal, and the gain information applicable to each frequency point audio in all levels of audio processing, the adjustment is correspondingly determined for the audio signal The gain realizes dynamically determining the adjustment gain for each audio signal in combination with the actual situation of each audio signal, so as to ensure that the determined adjustment gain is applicable to the audio signal.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性的,并不能限制本公开。It is to be understood that both the foregoing general description and the following detailed description are exemplary only and are not restrictive of the present disclosure.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本发明的实施例,并于说明书一起用于解释本发明的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description serve to explain the principles of the invention.
图1是根据一示例性实施例示出的一种音频处理方法的流程图;Fig. 1 is a flowchart of an audio processing method shown according to an exemplary embodiment;
图2是在一应用场景中音频处理芯片进行音频信号缓存的示意图;2 is a schematic diagram of audio signal buffering performed by an audio processing chip in an application scenario;
图3是在电视机的音频处理芯片中进行各级音频处理的流程图;Fig. 3 is the flow chart that carries out all levels of audio processing in the audio processing chip of television set;
图4是对于图3中的场景按照本公开的技术方案进行音频处理的流程图;FIG. 4 is a flow chart of audio processing for the scene in FIG. 3 according to the technical solution of the present disclosure;
图5是图1对应实施例的步骤S110在一实施例中的流程图;FIG. 5 is a flowchart of step S110 in an embodiment corresponding to the embodiment in FIG. 1;
图6是图4对应实施例的步骤S115在一实施例中的流程图;FIG. 6 is a flowchart of step S115 in an embodiment corresponding to the embodiment in FIG. 4;
图7是图1对应实施例的步骤S130在一实施例中的流程图;FIG. 7 is a flowchart of step S130 in an embodiment corresponding to the embodiment in FIG. 1;
图8是图1对应实施例的步骤S150在一实施例中的流程图;FIG. 8 is a flowchart of step S150 in an embodiment corresponding to the embodiment in FIG. 1;
图9是根据另一实施例示出的音频处理方法的流程图;Fig. 9 is a flowchart of an audio processing method according to another embodiment;
图10是在一应用场景中按照图9中的技术方案进行音频处理的流程图;Fig. 10 is a flowchart of audio processing according to the technical solution in Fig. 9 in an application scenario;
图11是根据一实施例示出的音频处理装置的框图;Fig. 11 is a block diagram of an audio processing device according to an embodiment;
图12是根据另一实施例示出的音频处理装置的框图。Fig. 12 is a block diagram of an audio processing device according to another embodiment.
通过上述附图,已示出本发明明确的实施例,后文中将有更详细的描述,这些附图和文字描述并不是为了通过任何方式限制本发明构思的范围,而是通过参考特定实施例为本领域技术人员说明本发明的概念。Through the above drawings, specific embodiments of the present invention have been shown and will be described in more detail below. These drawings and text description are not intended to limit the scope of the inventive concept in any way, but by reference to specific embodiments. The concepts of the present invention are explained to those skilled in the art.
具体实施方式Detailed ways
这里将详细地对示例性实施例执行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本发明相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本发明的一些方面相一致的装置和方法的例子。Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present invention. Rather, they are merely examples of apparatuses and methods consistent with aspects of the invention as recited in the appended claims.
音频处理芯片的物理载体是集成电路。集成电路由于自身的结构(即电子电路)的限制,对于集成电路中可以通过的信号的幅度有限制,如果信号在集成电路中的幅度超过集成电路的允许范围,即幅度阈值,则该信号的不能顺利通过,且其波形会被削掉一部分,就产生了削顶失真。削顶失真后的音频信号会导致声音模糊,不清晰,使得音频信号播出后听感不佳。The physical carrier of an audio processing chip is an integrated circuit. Due to the limitations of the integrated circuit's own structure (that is, the electronic circuit), there is a limit to the amplitude of the signal that can pass through the integrated circuit. If the amplitude of the signal in the integrated circuit exceeds the allowable range of the integrated circuit, that is, the amplitude threshold, the signal's If it cannot pass smoothly, and part of its waveform will be cut off, clipping distortion will occur. The clipped and distorted audio signal will cause the sound to be fuzzy and unclear, making the audio signal unsound after it is broadcast.
鉴于此,为了避免音频信号在音频处理芯片中所进行的音频处理中出现削顶失真,而提出了本公开的技术方案。In view of this, in order to avoid clipping and distortion of the audio signal in the audio processing performed by the audio processing chip, the technical solution of the present disclosure is proposed.
图1是根据一示例性实施例示出的一种音频处理方法的流程图。该音频处理方法用于集成有音频处理芯片且可以实现音频处理的终端,例如电视、电脑、音乐播放器等,在此不进行具体限定。如图1所示,该音频处理方法,可以包括以下步骤。Fig. 1 is a flow chart showing an audio processing method according to an exemplary embodiment. The audio processing method is applicable to a terminal integrated with an audio processing chip and capable of implementing audio processing, such as a TV, a computer, a music player, etc., and is not specifically limited here. As shown in Fig. 1, the audio processing method may include the following steps.
步骤S110,对音频处理芯片中待进行音频处理的音频信号,获取音频信号中每一频点音频在音频处理芯片的各级音频处理所适用的增益信息。Step S110, for the audio signal to be processed in the audio processing chip, obtain the gain information applicable to the audio processing at each level of the audio processing chip for each frequency point in the audio signal.
对于音频处理芯片中待进行音频处理的音频信号,可以是在音频处理芯片的上一级进行音频信号的缓存,从而向音频处理芯片输入所缓存的音频信号以进行各级音频处理,则音频处理芯片的上一级所缓存的音频信号即为在音频处理芯片中待进行音频处理的音频信号;也可以是在音频处理芯片中配置进行音频信号缓存的缓存模块,从而将缓存模块中所缓存的音频信号作为待进行音频处理的音频信号。For the audio signal to be processed in the audio processing chip, the audio signal can be buffered at the upper level of the audio processing chip, so as to input the buffered audio signal to the audio processing chip to perform audio processing at all levels, then the audio processing The audio signal buffered by the upper level of the chip is the audio signal to be processed in the audio processing chip; it is also possible to configure a buffer module for audio signal buffering in the audio processing chip, so that the buffered audio signal in the buffer module The audio signal serves as an audio signal to be subjected to audio processing.
在一具体实施例中,在音频处理芯片中配置了进行音频信号缓存的buffer空间,通过轮流将buffer空间中所缓冲的音频信号输入到音频处理芯片中对应进行音频处理的模块,进而实现对音频信号的音频处理和播放。如图2所示,设定了8个buffer,即b1-8,从而,依次输出buffer1->2->3->4->5->6->7->8->1的音频信号,进行音频处理以及音频处理后的播放。在该实施例中,每一个buffer中可以缓存512取样(sample)的音频信号,按照采样率(sample rate)为48000sample/s计算,每个buffer中的音频信号从对应的buffer输出需要10.667ms,从而可以利用上一个buffer中音频信号的输出时间来按照本公开的技术方案为下一个buffer中的音频信号确定调整增益,并对应在输出该buffer后按照对应的调整增益进行预处理。In a specific embodiment, a buffer space for audio signal buffering is configured in the audio processing chip, and the buffered audio signals in the buffer space are input to the corresponding audio processing module in the audio processing chip in turn, thereby realizing audio processing. Audio processing and playback of signals. As shown in Figure 2, 8 buffers are set, namely b1-8, so that the audio signal of buffer1->2->3->4->5->6->7->8->1 is output sequentially , perform audio processing and playback after audio processing. In this embodiment, an audio signal of 512 samples can be cached in each buffer, calculated according to a sample rate of 48000 sample/s, the audio signal in each buffer needs 10.667ms to output from the corresponding buffer, Therefore, the output time of the audio signal in the previous buffer can be used to determine the adjustment gain for the audio signal in the next buffer according to the technical solution of the present disclosure, and preprocessing is performed according to the corresponding adjustment gain after outputting the buffer.
在音频处理芯片中,设定了各级音频处理,在本公开的技术方案中,所指的音频处理即会使音频信号中频点音频的幅度发生改变的处理,例如进行音频信号中频点音频的幅度衰减或者幅度放大。In the audio processing chip, all levels of audio processing are set. In the technical solution of the present disclosure, the audio processing refers to the processing that changes the amplitude of the audio at the middle frequency point of the audio signal, such as performing the audio processing at the middle frequency point of the audio signal. Amplitude attenuation or amplitude amplification.
在一具体实施例中,图3所示的音频处理过程是现有的电视机中的音频处理芯片进行音频处理流程。In a specific embodiment, the audio processing process shown in FIG. 3 is an audio processing process performed by an audio processing chip in an existing television.
在图3对应的音频处理流程中,音频处理芯片配置了如图2所示的进行音频信号缓存的buffer,从而,轮流将各buffer中的音频信号输出进行prescale处理,以及后续的基础音效处理和高级音效处理。In the audio processing flow corresponding to Figure 3, the audio processing chip is configured with a buffer for audio signal buffering as shown in Figure 2, so that the audio signal output in each buffer is prescaled in turn, and the subsequent basic sound effect processing and Advanced sound processing.
对于电视机而言,电视机上设有多个信号接口,例如ATV、DTV、HDMI、DMP、AV,用户可以遥控器、电视机的触控屏、或者电视机上的按键来进行信号接口的选通,从而,输入音频处理芯片的音频信号即为来自与所选通的信号接口的信号。在电视机中,由于来源于不同信号接口的音频的幅度相差较大,因此为了便于在音频处理芯片中进行处理,音频处理芯片预先为来源于不同信号接口的信号对应设定了初始调整增益,例如为来源于ATV信号接口的音频信号设定的初始调整增益为1dB,为来源于DTV信号接口的音频信号设定的初始调整增益为2dB。从而,按照对应的初始调整增益对应地为来源于该信号接口的音频信号统一进行幅度调整,即图3中的prescale处理。然后再对prescale处理后的音频信号进行基础音效处理和高级音效处理。在prescale处理、基础音效处理和高级音效处理过程中均会使音频信号中频点音频的幅度发生改变,从而,通过进行prescale处理、基础音效处理和高级音效处理可能会导致音频信号中频点音频的幅值超过音频处理芯片的幅度阈值,从而产生削顶失真。For the TV, there are multiple signal interfaces on the TV, such as ATV, DTV, HDMI, DMP, AV, and the user can select the signal interface through the remote control, the touch screen of the TV, or the buttons on the TV. , thus, the audio signal input to the audio processing chip is the signal from the signal interface with the selected pass. In the TV, since the amplitudes of the audio from different signal interfaces are quite different, in order to facilitate processing in the audio processing chip, the audio processing chip pre-sets the initial adjustment gain for the signals from different signal interfaces. For example, the initial adjustment gain set for the audio signal from the ATV signal interface is 1dB, and the initial adjustment gain set for the audio signal from the DTV signal interface is 2dB. Therefore, according to the corresponding initial adjustment gain, the amplitude adjustment is uniformly performed for the audio signal from the signal interface, that is, the prescale processing in FIG. 3 . Then perform basic sound effect processing and advanced sound effect processing on the prescale-processed audio signal. During the process of prescale processing, basic sound effect processing and advanced sound effect processing, the amplitude of audio at the mid-frequency point of the audio signal will be changed. Therefore, the amplitude of audio at the mid-frequency point of the audio signal may be caused by prescale processing, basic sound effect processing and advanced sound effect processing. The value exceeds the amplitude threshold of the audio processing chip, resulting in clipping distortion.
音频信号中包括至少一个频率的音频,将音频信号中每一频率的音频称之为一频点音频,换言之,音频信号中包括至少一频点音频。由于在各级音频处理过程中,可能存在是根据频率来对应设定音频处理过程中的增益,例如在音效处理过程中,从而,结合音频信号中所包含的频点音频和在每一级音频处理过程中为各频率下的音频所设定的增益信息,从而对应获取音频信号中每一频点音频在各级音频处理所适用的增益信息。该增益信息指示了所对应频点音频在各级音频处理过程中进行幅度改变的总增益。The audio signal includes at least one frequency of audio, and the audio of each frequency in the audio signal is called a frequency point audio, in other words, the audio signal includes at least one frequency point audio. Because in the audio processing process at all levels, there may be a corresponding setting of the gain in the audio processing process according to the frequency, for example, in the sound effect processing process, thus, combining the frequency point audio contained in the audio signal and the audio frequency at each level Gain information set for the audio at each frequency during the processing, so as to obtain corresponding gain information applicable to audio processing at each level of audio at each frequency point in the audio signal. The gain information indicates the total gain of the amplitude change of the corresponding frequency point audio during audio processing at various levels.
步骤S130,根据增益信息和每一频点音频的初始幅值,确定音频信号中的超幅频点音频,超幅频点音频是音频信号中按照增益信息所指示增益处理后,幅值超过音频处理芯片的幅度阈值的频点音频。Step S130, according to the gain information and the initial amplitude of each frequency point audio, determine the super-amplitude frequency point audio in the audio signal, the super-amplitude frequency point audio is the audio signal whose amplitude exceeds the audio Process the frequency point audio of the amplitude threshold of the chip.
每一频点音频的初始幅值即频点音频在进行音频芯片中进行各级音频处理之前的幅值。The initial amplitude of the audio at each frequency point is the amplitude of the audio at the frequency point before performing audio processing at various levels in the audio chip.
从而根据每一频点音频所对应的增益信息以及每一频点音频的初始幅值即可确定音频信号中的超幅频点音频,即在音频处理芯片所进行的各级音频处理中,会出现削波失真的频点音频。具体而言,音频信号中的超幅频点音频,即该音频信号中,按照所对应增益信息所指示增益进行放大或者衰减后,幅值超过音频处理芯片的幅度阈值的频点音频。Therefore, according to the gain information corresponding to each frequency point audio and the initial amplitude of each frequency point audio, the super-amplitude frequency point audio in the audio signal can be determined, that is, in the audio processing at all levels of the audio processing chip, there will be Audio at frequencies where clipping occurs. Specifically, the super-amplitude frequency audio in the audio signal refers to the frequency audio in the audio signal whose amplitude exceeds the amplitude threshold of the audio processing chip after being amplified or attenuated according to the gain indicated by the corresponding gain information.
步骤S150,根据超幅频点音频的初始幅值和所对应增益信息为音频信号中每一频点音频对应确定调整增益,以使每一频点音频按照所对应增益信息所指示增益和所对应调整增益处理后的幅值不超过幅度阈值。Step S150, according to the initial amplitude of the super-amplitude frequency point audio and the corresponding gain information, determine the adjustment gain for each frequency point audio in the audio signal, so that each frequency point audio follows the gain indicated by the corresponding gain information and the corresponding gain information The amplitude after adjusting the gain processing does not exceed the amplitude threshold.
频点音频在进行各级音频处理后的幅值取决于频点音频的初始幅值,和所对应增益信息所指示的增益,从而,结合每一超幅频点音频的初始幅值、所对应增益信息为该音频信号确定调整增益,进而保证在音频信号中每一频点音频按照所对应增益信息所指示增益和所对应调整增益处理后的幅值不超过幅度阈值。The amplitude of the frequency point audio after all levels of audio processing depends on the initial amplitude of the frequency point audio and the gain indicated by the corresponding gain information. The gain information determines the adjusted gain for the audio signal, so as to ensure that the audio amplitude of each frequency point in the audio signal after being processed according to the gain indicated by the corresponding gain information and the corresponding adjusted gain does not exceed the amplitude threshold.
为音频信号所进行的确定调整增益,即为该音频信号中每一频点音频均确定调整增益。当然,所确定的调整增益可以是0dB,即不对该频点音频的幅度进行改变,还可以是其他除0dB以外的调整增益。其中为每一频点音频所确定的调整增益可以全部相同、部分相同或者均不相同,在此不进行具体限定。The determination of the adjustment gain for the audio signal is to determine the adjustment gain for each frequency point in the audio signal. Certainly, the determined adjustment gain may be 0 dB, that is, the amplitude of the audio at the frequency point is not changed, or it may be other adjustment gains other than 0 dB. The adjustment gains determined for each audio frequency point may be all the same, some of them may be the same, or all of them may be different, which is not specifically limited here.
为进行为音频信号中每一频点音频确定调整增益,还可以预先设定调整增益的设定规则。例如,为音频信号中每一频点音频设定相同的调整增益,或者预先按照频率段来设定调整增益的确定规则。In order to determine the adjustment gain for each frequency point in the audio signal, a setting rule for the adjustment gain can also be preset. For example, the same adjustment gain is set for each frequency point in the audio signal, or a determination rule for adjusting the gain is set in advance according to the frequency segment.
对于预先按照频率段来设定增益的确定规则,举例来说,预先设定频率段分别为:低频:≤300Hz;中频:300Hz~3000KHz;高频:>3000KHz,调整增益的确定规则例如:For the determination rules of pre-setting the gain according to the frequency band, for example, the pre-set frequency bands are: low frequency: ≤300Hz;
1、当音频信号中存在位于低频的超幅频点音频时,则将音频信号中位于低频的每一频点音频(或者仅仅是位于低频的超幅频点音频)的调整增益设定为相同;1. When there is an ultra-amplitude frequency point audio at a low frequency in the audio signal, set the adjustment gain of each frequency point audio at a low frequency in the audio signal (or only the ultra-amplitude frequency point audio at a low frequency) to the same ;
2、当音频信号中存在位于中频的超幅频点音频时,则将音频信号中位于中频的每一频点音频(或者仅仅是位于中频的超幅频点音频)的调整增益设定为相同;2. When there is a super-amplitude frequency point audio at the intermediate frequency in the audio signal, the adjustment gain of each frequency point audio at the intermediate frequency (or only the super-amplitude frequency point audio at the intermediate frequency) in the audio signal is set to the same ;
3、当音频信号中存在位于高频的超幅频点音频时,则将音频信号中位于低频的每一频点音频(或者仅仅是位于高频的超幅频点音频)的调整增益设定为相同。3. When there is an ultra-amplitude frequency point audio at a high frequency in the audio signal, the adjustment gain setting of each frequency point audio at a low frequency (or only the ultra-amplitude frequency point audio at a high frequency) in the audio signal for the same.
从而,在结合音频信号中每一频点音频所对应增益信息和每一频点音频的初始幅值,以及所预先设定的调整增益的确定规则来为每一频点音频确定调整增益。按照上述调整增益的确定规则,比如音频信号中存在频率为250Hz的超幅频点音频时,则将音频信号中位于低频的每一频点音频(或者位于低频的超幅频点音频)的调整增益确定为相同,当然,调整增益的值依然按照:每一频点音频按照所对应增益信息所指示增益和所对应调整增益处理后的幅值不超过幅度阈值,这一总体原则来进行确定。Therefore, the adjustment gain is determined for each frequency point audio by combining the gain information corresponding to each frequency point audio in the audio signal, the initial amplitude of each frequency point audio, and the preset adjustment gain determination rule. According to the above-mentioned determination rules for adjusting the gain, for example, when there is an ultra-amplitude frequency point audio with a frequency of 250Hz in the audio signal, the adjustment of each frequency point audio at a low frequency (or an ultra-amplitude frequency point audio at a low frequency) in the audio signal The gain is determined to be the same. Of course, the value of the adjusted gain is still determined according to the general principle that the audio frequency of each frequency point is determined according to the gain indicated by the corresponding gain information and the amplitude after processing the corresponding adjusted gain does not exceed the amplitude threshold.
当然,以上仅仅是示例性举例,并不能认为是对本公开使用范围的限制,在其他实施例中,还可以预先设定其他的调整增益的调整规则来结合进行调整增益的确定。Of course, the above are only exemplary examples, and should not be considered as limitations on the scope of application of the present disclosure. In other embodiments, other adjustment rules for adjusting the gain can also be preset to determine the adjustment gain in combination.
步骤S170,在对音频信号进行各级音频处理之前,按照所对应调整增益对每一频点音频进行预处理。Step S170, before performing audio processing at various levels on the audio signal, perform preprocessing on the audio at each frequency point according to the corresponding adjusted gain.
在本公开的技术方案中,通过按照所确定的调整增益来对音频信号进行预处理,从而预处理之后的音频信号在音频处理芯片中的各级音频处理过程后的幅值不超过音频处理芯片的幅度阈值,从而来避免音频信号在音频处理芯片中出现削波失真。In the technical solution of the present disclosure, the audio signal is preprocessed according to the determined adjustment gain, so that the amplitude of the preprocessed audio signal after each level of audio processing in the audio processing chip does not exceed the audio processing chip Amplitude threshold, so as to avoid clipping distortion of the audio signal in the audio processing chip.
所进行的预处理,即是按照对应的调整增益对对应的频点音频进行降幅处理,从而保证在预处理中降幅后的音频信号在经过音频处理芯片的各级音频处理后的幅值不超过音频处理芯片的幅度阈值,从而避免音频信号在音频处理芯片中出现削顶失真。The preprocessing is to reduce the amplitude of the corresponding frequency point audio according to the corresponding adjustment gain, so as to ensure that the amplitude of the audio signal after the amplitude reduction in the preprocessing does not exceed the audio processing level of the audio processing chip. The amplitude threshold of the audio processing chip, so as to avoid the clipping distortion of the audio signal in the audio processing chip.
通过按照所确定的调整增益对音频信号进行预处理,从而,确保了音频芯片中的待进行音频处理的音频信号在预处理进入各级音频处理后的幅值不会超过音频处理芯片的幅度阈值,有效避免音频信号在音频处理芯片中出现削顶失真。By preprocessing the audio signal according to the determined adjustment gain, it is ensured that the amplitude of the audio signal to be processed in the audio chip will not exceed the amplitude threshold of the audio processing chip after the preprocessing enters all levels of audio processing , effectively avoiding clipping and distortion of the audio signal in the audio processing chip.
由于在每一待进行各级音频处理的音频信号中,音频信号所包含的频点音频存在不同,而且所包含频点音频的幅值也存在差异。从而,在本公开的技术方案中,通过根据音频信号进入音频处理芯片的各级音频处理之前,结合该音频信号的每一频点音频在音频芯片的各级音频处理中所适用的增益信息和该频点音频中每一频点音频的初始幅值,来对应地为该音频信号确定调整增益,实现了动态地为每一音频信号确定调整增益,来对应地按照所确定的调整增益对音频信号进行预处理,进而避免音频信号在音频芯片中出现削顶失真。Because in each audio signal to be subjected to audio processing at various levels, the frequency point audio included in the audio signal is different, and the amplitude of the included frequency point audio is also different. Therefore, in the technical solution of the present disclosure, before the audio signal enters the audio processing at all levels of the audio processing chip, the gain information and The initial amplitude of each frequency point audio in the frequency point audio is used to determine the adjustment gain for the audio signal correspondingly, which realizes dynamically determining the adjustment gain for each audio signal, and correspondingly adjusts the audio frequency according to the determined adjustment gain. The signal is preprocessed to avoid clipping and distortion of the audio signal in the audio chip.
对于图3所对应的音频芯片所进行的音频处理过程,则按照图1对应实施例的技术方案,为了避免在音频处理芯片出现削顶失真而进行的音频处理的流程如图4所示,即在音频信号输出buffer之后且进行presale处理之前,按照所确定的调整增益对音频信号中每一频点音频进行预处理。而所进行的预处理可以是在音频处理芯片外进行,也可以是在音频处理芯片中进行,在此不进行具体限定。For the audio processing process carried out by the audio chip corresponding to Fig. 3, according to the technical solution of the corresponding embodiment in Fig. 1, the audio processing flow for avoiding clipping distortion in the audio processing chip is as shown in Fig. 4, namely After the audio signal is output to the buffer and before the presale process is performed, the audio of each frequency point in the audio signal is preprocessed according to the determined adjustment gain. The pre-processing may be performed outside the audio processing chip or in the audio processing chip, which is not specifically limited here.
在一实施例中,各级音频处理包括初始音频处理和音效处理,如图5所示,步骤S110,包括:In one embodiment, audio processing at all levels includes initial audio processing and sound effect processing, as shown in FIG. 5, step S110 includes:
步骤S111,根据音频信号所来源的信号接口,获取音频处理芯片为来源于信号接口的信号所设定的初始调整增益。以及Step S111 , according to the signal interface from which the audio signal comes, acquire the initial adjustment gain set by the audio processing chip for the signal from the signal interface. as well as
步骤S113,获取为进行音频播放所选定音效模式中为每一频点音频所设定的音效增益。Step S113, obtaining the sound effect gain set for each frequency point audio in the sound effect mode selected for audio playback.
步骤S115,根据初始调整增益和每一频点音频所对应的音效增益,获得每一频点音频在各级音频处理中所适用的增益信息。Step S115, according to the initial adjustment gain and the sound effect gain corresponding to each frequency point audio, gain information applicable to each frequency point audio in audio processing at each level is obtained.
在本实施例的技术方案中,音频处理芯片可以对来源与不同信号接口的音频信号进行初始音频处理,以及音频处理芯片还对应集成了进行音效处理的模块,例如上文图3所对应电视机中的音频处理芯片。In the technical solution of this embodiment, the audio processing chip can perform initial audio processing on audio signals from sources and different signal interfaces, and the audio processing chip also integrates a module for sound effect processing, such as the TV corresponding to Figure 3 above Audio processing chip in.
对于确定音频信号所来源的信号接口,可以通过用户的操作来确定,例如用户通过遥控板、终端的触控面板、终端上布设的按键等可操控的装置来进行选择选通的信号接口,从而,音频信号所来源的信号接口即用户所选择选通的信号接口。从而对应地获取音频处理芯片为来源于该信号接口的信号所设定的初始调整增益。The signal interface to determine the source of the audio signal can be determined by the user's operation, for example, the user selects the signal interface of the strobe through the remote control panel, the touch panel of the terminal, the buttons arranged on the terminal and other manipulable devices, so that , the signal interface from which the audio signal comes from is the signal interface selected by the user. Accordingly, the initial adjustment gain set by the audio processing chip for the signal from the signal interface is correspondingly obtained.
针对来源于某一信号接口的信号,为不同频率的音频所设定的初始调整增益可以是相同的(例如图3对应precale处理),也可以是不同的,在此不进行具体限定。For a signal from a certain signal interface, the initial adjustment gains set for audio at different frequencies may be the same (for example, FIG. 3 corresponds to precale processing) or different, which are not specifically limited here.
同时,在音频处理芯片中,预设了多种音效模式供用户选择,从而音频播放时呈现所选择的音效模式。音效模式的实现是通过调整各频段音频的增益值从而呈现对应的音效。At the same time, in the audio processing chip, a variety of sound effect modes are preset for the user to choose, so that the selected sound effect mode is presented when the audio is played. The realization of the sound effect mode is to present the corresponding sound effect by adjusting the gain value of the audio in each frequency band.
现有技术中,通过在音频处理芯片中配置均衡器,从而通过用户选择音效模式,或者由用户自己自定义音效模式,从而呈现不同的音效。音效模式例如所设定的标准、电影、音乐、新闻等,更进一步细分,例如标准、摇滚、流行、舞台、古典、柔和等。在具体实施例中,还可以用户为各频率的频点音频对应设定音效增益,从而实现自定义音效模式。In the prior art, by configuring an equalizer in the audio processing chip, a user can select a sound effect mode, or the user can customize a sound effect mode, thereby presenting different sound effects. The sound mode is such as the set standard, movie, music, news, etc., and is further subdivided, such as standard, rock, pop, stage, classical, soft, etc. In a specific embodiment, the user can also set the sound effect gain for the frequency point audio of each frequency, so as to realize the custom sound effect mode.
从而,根据用户为进行音频播放所选定的音效模式对应地获取音频处理芯片在该音效模式中为音频信号中每一频点音频所对应设定的增益,即该频点音频的音效增益。进而,根据所获取的初始调整增益和所获取的音效增益,即可获得每一频点音频在各级音频处理,即初始音频处理和音效处理,中所适用的增益信息。Therefore, according to the sound effect mode selected by the user for audio playback, the corresponding gain set by the audio processing chip for each frequency point audio in the audio signal in the sound effect mode is correspondingly obtained, that is, the sound effect gain of the frequency point audio. Furthermore, according to the obtained initial adjustment gain and the obtained sound effect gain, the gain information applicable to each audio frequency point in audio processing at various levels, ie initial audio processing and sound effect processing, can be obtained.
举例来说,在初始音频处理阶段为来源于ATV信号接口的音频信号中每一频点音频所设定的初始调整增益为1dB。用户为音频播放所选定的某一音效模式中:为50Hz的频点音频所设定的音效增益为-10dB,为200Hz的频点音频所设定的音效增益为-6dB,为1KHz的频点音频所设定的音效增益为6dB,为3KHz的频点音频所设定的音效增益为9dB,为14KHz的频点音频所设定的音效增益为3dB。其中,待进行各级音频音效处理的音频信号中包括频率分别为60Hz、100Hz、200Hz、500Hz、1KHz的五种频点音频。从而,对应获得音频信号中每一频点音频在初始音频处理和音效处理中的总增益如下表所示(其中,对于音频信号中的频点音频,如果在音效模式中未为该频点音频设定音效增益,则默认为在音效处理中不对该频点音频的幅度进行变换,即默认音效增益为0dB):For example, in the initial audio processing stage, the initial adjustment gain set for each frequency point audio in the audio signal from the ATV signal interface is 1dB. In a certain sound effect mode selected by the user for audio playback: the sound effect gain set for 50Hz frequency point audio is -10dB, the sound effect gain set for 200Hz frequency point audio is -6dB, and the sound effect gain set for 1KHz frequency point audio is -10dB. The sound effect gain set for point audio is 6dB, the sound effect gain set for 3KHz frequency point audio is 9dB, and the sound effect gain set for 14KHz frequency point audio is 3dB. Wherein, the audio signals to be processed at various levels of audio and sound effects include audio at five frequency points with frequencies of 60 Hz, 100 Hz, 200 Hz, 500 Hz, and 1 KHz. Thus, the corresponding total gain of each frequency point audio in the audio signal in the initial audio processing and sound effect processing is shown in the following table (wherein, for the frequency point audio in the audio signal, if it is not the frequency point audio in the sound effect mode Set the sound effect gain, the default is not to change the amplitude of the frequency point audio in the sound effect processing, that is, the default sound effect gain is 0dB):
所计算得到音频信号中每一频点音频在初始音频处理和音效处理中的总增益即作为每一频点音频在各级音频处理中的增益信息。The calculated total gain of each frequency point audio in the audio signal in the initial audio processing and sound effect processing is used as the gain information of each frequency point audio in all levels of audio processing.
在一实施例中,音效模式包括基础音效模式和高级音效模式,如图6所示,步骤S115,包括:In one embodiment, the sound effect mode includes a basic sound effect mode and an advanced sound effect mode, as shown in FIG. 6, step S115 includes:
步骤S210,根据为进行音频播放所选定的基础音效模式和所选定的高级音效模式,获取基础音效模式中为每一频点音频所设定的第一增益,以及获取高级音效模式中为每一频点音频所设定的第二增益。Step S210, according to the selected basic sound effect mode and the selected advanced sound effect mode for audio playback, obtain the first gain set for each frequency point audio in the basic sound effect mode, and obtain the first gain set for each frequency point audio in the advanced sound effect mode The second gain set for each frequency point audio.
步骤S230,根据每一频点音频所对应第一增益和所对应第二增益计算得到每一频点音频所对应音效增益。Step S230, calculating the sound effect gain corresponding to each frequency point audio according to the corresponding first gain and the corresponding second gain of each frequency point audio.
随着用户对于音频播放的效果的要求越来越高,出现了更多的音效模式,例如,杜比全景声(Dolby Atmos,ATMOS)、数字化影院系统(Digital Theatre System,DTS)等区别于均衡器来构造音效的音效模式。将通过均衡器来实现的音效模式称为基础音效模式,而将区别于均衡器所实现的音效模式外的其它音效模式称为高级音效模式,其中基础音效模式和高级音效模式是可以同时选定的,即同时选定一基础音效模式和一高级音效模式,当然,也可以仅选择一基础音效模式或者一高级音效模式。As users have higher and higher requirements for audio playback effects, more sound effect modes have emerged, for example, Dolby Atmos (Dolby Atmos, ATMOS), Digital Theater System (Digital Theater System, DTS), etc. The sound effect mode of the device to construct the sound effect. The sound effect mode achieved through the equalizer is called the basic sound effect mode, and the other sound effect modes that are different from the sound effect mode realized by the equalizer are called the advanced sound effect mode, in which the basic sound effect mode and the advanced sound effect mode can be selected at the same time Yes, that is to select a basic sound effect mode and an advanced sound effect mode at the same time. Of course, only a basic sound effect mode or an advanced sound effect mode can be selected.
所进行的音效模式选定,可以是由用户根据需要自行进行选定,也可以在集成有音频芯片的终端中预先所设定的,在此不进行具体限定。The selected sound effect mode can be selected by the user according to the needs, or can be pre-set in the terminal integrated with the audio chip, which is not specifically limited here.
与基础音效模式相类似,在高级音效模式中,也存在着在每一高级音效模式中对应为指定频率的频点音频设定增益值。将在基础音效模式中为音频信号中每一频点音频所设定的增益值称为第一增益,将在高级音效模式中为音频信号中每一频点音频所设定的增益值称为第二增益。从而,根据为进行音频播放所选定的基础音效模式和高级音效模式对应获取音频信号中每一频点音频的第一增益和第二增益,并进而根据每一频点音频所对应的第一增益和所对应第二增益计算得到每一频点音频的音效增益。例如在增益以dB为单位时,频点音频的第一增益和第二增益相加即得到该频点音频的音效增益。Similar to the basic sound effect mode, in the advanced sound effect mode, there is also a gain value corresponding to the frequency point audio setting of the specified frequency in each advanced sound effect mode. The gain value set for each frequency point audio in the audio signal in the basic sound effect mode is called the first gain, and the gain value set for each frequency point audio in the audio signal in the advanced sound effect mode is called second gain. Therefore, according to the selected basic sound effect mode and advanced sound effect mode selected for audio playback, the first gain and the second gain of each frequency point audio in the audio signal are correspondingly obtained, and then according to the first gain corresponding to each frequency point audio The gain and the corresponding second gain are calculated to obtain the sound effect gain of the audio at each frequency point. For example, when the gain is in units of dB, the sound effect gain of the frequency point audio is obtained by adding the first gain and the second gain of the frequency point audio.
在一具体实施例中,一集成有音频处理芯片的电视机中,对于基础音效模式,为用户提供了可供选择的标准、电影、音乐和新闻四种基础音效模式,而且对应提供了调节旋钮,用于用户进行自定义基础音效模式,其中在指定频率点所配置的调节旋钮可以支持用户在-10dB~10dB范围内调节,其中调节旋钮可以支持5端(5个选项)、7端、9端调节中的一种。对于高级音效模式,预先构建了DTS音效模式和/或ATMOS音效模式,并提供选择开关供用户选择是否开启DTS音效模式,或者ATMOS音效模式。In a specific embodiment, in a TV set integrated with an audio processing chip, for the basic sound effect mode, the user is provided with four basic sound effect modes of standard, movie, music and news, and corresponding adjustment knobs are provided. , for users to customize the basic sound effect mode, in which the adjustment knob configured at the specified frequency point can support the user to adjust in the range of -10dB ~ 10dB, and the adjustment knob can support 5 terminals (5 options), 7 terminals, 9 terminals One of the terminal adjustments. For the advanced sound effect mode, DTS sound effect mode and/or ATMOS sound effect mode are pre-built, and a selection switch is provided for the user to choose whether to enable the DTS sound effect mode or the ATMOS sound effect mode.
当然,在其他实施例中,在集成有音频处理芯片的终端中,还可以提供更多的基础音效模式和高级音效模式供用户进行选择,或者以其他方式来进行基础音效模式和高级音效模式的选定,在此不进行具体限定。Of course, in other embodiments, more basic sound effect modes and advanced sound effect modes can be provided for the user to choose from in the terminal integrated with the audio processing chip, or the basic sound effect mode and the advanced sound effect mode can be selected in other ways. Selected, not specifically limited here.
在一实施例中,如图7所示,步骤S130,包括:In one embodiment, as shown in FIG. 7, step S130 includes:
步骤S131,根据每一频点音频的初始幅值计算每一频点音频按照所对应增益信息所指示增益处理后的第一幅值。Step S131 , according to the initial amplitude of each frequency point audio, calculate the first amplitude value of each frequency point audio after gain processing indicated by the corresponding gain information.
步骤S135,将音频信号中所对应第一幅值超过幅度阈值的频点音频确定为超幅频点音频。Step S135, determining the frequency point audio corresponding to the first amplitude value exceeding the amplitude threshold in the audio signal as super-amplitude frequency point audio.
至此,通过计算音频信号中每一频点音频的第一幅值,并将计算得到的第一幅值与音频处理芯片的幅度阈值进行对比,即可确定音频信号中的超幅频点音频。So far, by calculating the first amplitude of each frequency point audio in the audio signal, and comparing the calculated first amplitude value with the amplitude threshold of the audio processing chip, the super-amplitude frequency point audio in the audio signal can be determined.
在一实施例中,如图8所示,步骤S150,包括:In one embodiment, as shown in FIG. 8, step S150 includes:
步骤S151,根据每一超幅频点音频所对应第一幅值,将第一幅值中的最大值确定为参考幅值。Step S151, according to the first amplitude value corresponding to each super-amplitude frequency point audio, determine the maximum value among the first amplitude values as the reference amplitude value.
步骤S153,根据参考幅值和幅度阈值为每一频点音频确定相同的调整增益。In step S153, the same adjustment gain is determined for each audio frequency point according to the reference amplitude and the amplitude threshold.
在该实施例中,为音频信号中每一频点音频所确定的调整增益是相同的,也即是说,在对音频信号进行预处理时,按照所确定的调整增益对音频信号中的每一频点音频均按照调整增益进行降幅处理,以保证在经过预处理和各级音频处理之后,音频信号中每一频点音频的幅值均不超过音频处理芯片的幅度阈值。In this embodiment, the adjustment gain determined for each frequency point audio in the audio signal is the same, that is to say, when the audio signal is preprocessed, each frequency point in the audio signal is adjusted according to the determined adjustment gain. The audio at one frequency is all reduced according to the adjusted gain to ensure that after preprocessing and audio processing at all levels, the audio amplitude of each frequency in the audio signal does not exceed the amplitude threshold of the audio processing chip.
因而,需要结合到所结合到为音频芯片中每一频点音频所计算得到的第一幅值中的最大值作为参考幅值来确定调整增益,从而,只要所确定的调整增益使第一幅值最大的频点音频满足经过预处理和各级音频处理后的幅值不超过幅度阈值,那么音频信号中其他频点音频经过预处理和各级音频处理后的幅值也不会超过幅度阈值。Therefore, it is necessary to determine the adjustment gain in combination with the maximum value of the first amplitude calculated for each frequency point audio in the audio chip as a reference amplitude, thus, as long as the determined adjustment gain makes the first amplitude If the frequency point audio with the largest value satisfies the amplitude value after preprocessing and audio processing at all levels does not exceed the amplitude threshold, then the amplitude value of other frequency point audio in the audio signal after preprocessing and audio processing at all levels will not exceed the amplitude threshold .
在另一实施例中,步骤S150,包括:In another embodiment, step S150 includes:
根据每一超幅频点音频所对应第一幅值为所对应超幅频点音频确定调整增益;以及Determine the adjustment gain for the corresponding super-amplitude frequency point audio according to the first amplitude corresponding to each super-amplitude frequency point audio; and
将音频信号中除超幅频点音频外的其它频点音频的调整增益确定为0dB。The adjustment gain of audio frequency points other than the super-amplitude frequency point audio in the audio signal is determined to be 0dB.
在该实施例中,将音频信号中除超幅频点外的其它频点音频的调整增益确定为0dB,而根据超幅频点音频所对应的第一幅值对应为每一超幅频点音频确定调整增益。也即是说,在预处理阶段,音频信号中幅度实际发生变化,即幅度衰减,的频点音频仅仅是超幅频点音频,而音频信号中除超幅频点音频外的其它频点音频在预处理阶段的幅度实际上未发生变化。In this embodiment, the adjustment gain of audio frequency points other than the super-amplitude frequency point in the audio signal is determined to be 0dB, and the corresponding first amplitude value of the audio frequency point of the super-amplitude frequency point corresponds to each super-amplitude frequency point Audio OK adjusts the gain. That is to say, in the preprocessing stage, the amplitude of the audio signal actually changes, that is, the amplitude is attenuated. The magnitude is practically unchanged during the preprocessing stage.
通过在预处理阶段仅使音频信号中的超幅频点音频的幅值发生变化,而保持音频信号中除超幅频点外的其它音频的幅值在预处理阶段保持不变,从而,避免在预处理过程中改变音频信号中非超幅频点音频的幅度,进而减少因所进行的预处理对音频信号所带来的非必要改变。Only the amplitude of the super-amplitude frequency point audio in the audio signal is changed in the preprocessing stage, and the amplitude of other audio frequencies in the audio signal except the superamplitude frequency point remains unchanged in the preprocessing stage, thereby avoiding In the preprocessing process, the amplitude of the non-excess frequency point audio in the audio signal is changed, thereby reducing unnecessary changes to the audio signal caused by the preprocessing.
在一实施例中,调整增益用于对所对应频点音频进行幅度衰减,如图9所示,音频处理方法还包括:In one embodiment, adjusting the gain is used to attenuate the audio frequency at the corresponding frequency point. As shown in FIG. 9, the audio processing method further includes:
步骤S180,根据超幅频点音频的初始幅值、所对应增益信息和幅度阈值为每一频点音频确定补偿增益,补偿增益用于对所对应频点音频进行幅度放大,以使每一频点音频按照所对应增益信息所指示增益、所对应调整增益和所对应补偿增益处理后的幅值不超过幅度阈值。Step S180, determine the compensation gain for each frequency point audio according to the initial amplitude of the super-amplitude frequency point audio, the corresponding gain information and the amplitude threshold, and the compensation gain is used to amplify the amplitude of the corresponding frequency point audio, so that each frequency point The amplitude of the point audio after being processed according to the gain indicated by the corresponding gain information, the corresponding adjustment gain and the corresponding compensation gain does not exceed the amplitude threshold.
在该实施例中,步骤S170之后,音频处理方法还包括:In this embodiment, after step S170, the audio processing method further includes:
步骤S190,在完成各级音频处理之后,按照所对应补偿增益对每一频点音频进行补偿处理。Step S190, after completing the audio processing at all levels, perform compensation processing on the audio at each frequency point according to the corresponding compensation gain.
为了避免对预处理对音频信号的幅度进行过度衰减,一般在确定调整增益时,除了以频点音频在预处理和音频芯片中的各级音频处理后的幅值不超过幅度阈值为原则来确定调整增益外,还具体限定音频信号在经过音频芯片的各级处理后输出音频芯片时的幅值,例如限定输出音频芯片时的幅值不低于第三幅度阈值(当然,第三幅度阈值小于幅度阈值),从而避免音频信号中各频点音频在预处理中幅度衰减过多,造成音频信号的过度调整。In order to avoid excessive attenuation of the amplitude of the audio signal by preprocessing, generally when determining the adjustment gain, it is determined based on the principle that the amplitude of the frequency point audio after preprocessing and audio processing at all levels in the audio chip does not exceed the amplitude threshold In addition to adjusting the gain, the amplitude of the audio signal is also specifically limited when the audio signal is output to the audio chip after being processed by various stages of the audio chip, for example, the amplitude of the output audio chip is not lower than the third amplitude threshold (of course, the third amplitude threshold is less than Amplitude threshold), so as to avoid excessive attenuation of the audio frequency of each frequency point in the audio signal in the preprocessing, resulting in excessive adjustment of the audio signal.
换言之,相当于是限定了调整增益可供选择的范围,从而,如果该范围限定过小,而实际中,即使理论上根据音频信号中频点音频的初始幅值、所对应调整增益和所对应增益信息所指示增益处理后的幅值不超过幅度阈值,由于其他情况的影响,也可能导致音频信号在实际在音频处理芯片的各级音频处理中出现削顶失真。因而,在此种情况下,可以采用本实施例的技术方案,通过设定补偿增益,从而可以拓宽调整增益可供选择的范围,例如使所确定的调整增益在预处理过程中增大幅度衰减的程度,以避免在各级音频处理过程中因其他情况所造成出现削顶失真的情况,然后通过所设定的补偿增益,再将经过音频芯片各级音频处理之后的音频信号按照补偿增益进行放大,从而保证音频信号输出音频芯片时的幅值不低于第三幅度阈值,且不超出音频芯片的幅度阈值。In other words, it is equivalent to limiting the range of options for adjusting the gain. Therefore, if the range is too small, in practice, even if theoretically based on the initial amplitude of the audio at the middle frequency point of the audio signal, the corresponding adjustment gain and the corresponding gain information The amplitude after the indicated gain processing does not exceed the amplitude threshold. Due to the influence of other conditions, the audio signal may also be clipped and distorted in the actual audio processing at all levels of the audio processing chip. Therefore, in this case, the technical solution of this embodiment can be adopted, and by setting the compensation gain, the optional range of the adjustment gain can be broadened, for example, the determined adjustment gain can be increased and attenuated during the preprocessing process. To avoid clipping distortion caused by other conditions during the audio processing at all levels, and then through the set compensation gain, the audio signal after audio processing at all levels of the audio chip is processed according to the compensation gain Amplifying, so as to ensure that the amplitude of the audio signal output from the audio chip is not lower than the third amplitude threshold and does not exceed the amplitude threshold of the audio chip.
通过为音频信号中每一频点音频分别确定调整增益和补偿增益,并按照调整增益在预处理过程中对所对应的频点音频进行幅度衰减,而按照补偿增益在补偿处理过程中对所对应的频点音频进行幅度放大,从而,实现了提高了音频处理过程中的容错性。具体而言,一方面,可以通过按照所确定的补偿增益进行补偿处理,从而对在预处理中幅度衰减较大的频点音频进行幅度补偿,即幅度放大,从而为调整增益的确定提供了更大的选择区间;另一方面,由于在预处理阶段可能会存在使音频信号中非超幅频点音频的幅度发生衰减,从而,可以通过为该非超幅频点音频在补偿处理阶段进行幅度补偿,以补偿在预处理阶段对非超幅频点音频所进行的幅度衰减。By determining the adjustment gain and compensation gain for each frequency point audio in the audio signal, and performing amplitude attenuation on the corresponding frequency point audio in the preprocessing process according to the adjustment gain, and according to the compensation gain in the compensation process for the corresponding frequency point audio The amplitude of the frequency point audio is amplified, thereby improving the fault tolerance in the audio processing process. Specifically, on the one hand, by performing compensation processing according to the determined compensation gain, amplitude compensation, that is, amplitude amplification, can be performed on the frequency point audio with a large amplitude attenuation in the preprocessing, thereby providing more information for the determination of the adjustment gain. Large selection interval; on the other hand, since there may be attenuation of the amplitude of the non-excessive frequency point audio in the audio signal in the preprocessing stage, the amplitude of the non-excessive frequency point audio can be adjusted in the compensation processing stage Compensation to compensate for the amplitude attenuation of non-overrange frequency audio in the preprocessing stage.
对于图3所对应的音频芯片所进行的音频处理过程,则按照图9对应实施例的技术方案,音频处理芯片所进行的音频处理的流程如图10所示,即在进行presale处理之前,按照所确定的调整增益对音频信号中每一频点音频进行预处理,在完成各级音频处理,即完成高级音效处理之后,按照所确定的补偿增益对音频信号进行补偿处理,然后再将补偿处理后的音频信号通过喇叭进行音频播放。For the audio processing process performed by the audio chip corresponding to Figure 3, according to the technical solution of the embodiment corresponding to Figure 9, the audio processing process performed by the audio processing chip is shown in Figure 10, that is, before presale processing, according to The determined adjustment gain preprocesses the audio of each frequency point in the audio signal. After completing all levels of audio processing, that is, after completing the advanced sound effect processing, the audio signal is compensated according to the determined compensation gain, and then the compensation process The final audio signal is played through the loudspeaker.
在一实施例中,步骤S150,包括:In one embodiment, step S150 includes:
根据超幅频点音频的初始幅值、所对应增益信息和音频处理芯片的第二幅度阈值确定每一频点音频的调整增益,以使每一频点音频按照所对应调整增益和所对应增益信息所指示增益处理后的幅值不超过第二幅度阈值,第二幅度阈值小于幅度阈值。The adjustment gain of each frequency point audio is determined according to the initial amplitude of the super-amplitude frequency point audio, the corresponding gain information and the second amplitude threshold of the audio processing chip, so that each frequency point audio is adjusted according to the corresponding adjustment gain and the corresponding gain The amplitude after gain processing indicated by the information does not exceed the second amplitude threshold, and the second amplitude threshold is smaller than the amplitude threshold.
在该实施例中,通过为音频处理芯片设定小于幅度阈值的第二幅度阈值来为音频信号中的每一频点音频确定调整增益,从而,便于分别进行调整增益和补偿增益的确定,而且可以保证在按照所确定的调整增益进行预处理、所对应增益信息指示增益和所确定对应的补偿增益进行补偿处理后,每一频点音频的幅值不超过音频处理芯片的幅度阈值。In this embodiment, the adjustment gain is determined for each frequency point audio in the audio signal by setting a second amplitude threshold smaller than the amplitude threshold for the audio processing chip, thereby facilitating the determination of the adjustment gain and the compensation gain respectively, and It can be guaranteed that the audio amplitude of each frequency point does not exceed the amplitude threshold of the audio processing chip after preprocessing is performed according to the determined adjustment gain, the corresponding gain information indicates the gain and the determined corresponding compensation gain is compensated.
在一实施例中,将所音频信号中调整增益为0dB的频点音频的补偿增益确定为0dB。In an embodiment, the compensation gain of the frequency point audio whose adjusted gain is 0 dB in the audio signal is determined to be 0 dB.
在该实施例中,在补偿处理过程中实际仅对在预处理过程中幅度实际发生改变的频点音频进行幅度放大。从而避免在补偿处理中对音频信号中不需要进行补偿的频点音频幅度放大。In this embodiment, during the compensation process, only the frequency point audio whose amplitude actually changes during the preprocessing process is actually amplified. In this way, it is avoided to amplify the audio amplitude of frequency points in the audio signal that do not need to be compensated during the compensation process.
下述为本公开装置实施例,可以用于执行本公开上述音频播放终端执行的音频处理方法实施例。对于本公开装置实施例中未披露的细节,请参照本公开音频处理方法实施例。The following is an embodiment of the device disclosed in the present disclosure, which can be used to execute the embodiment of the audio processing method performed by the above-mentioned audio playback terminal in the present disclosure. For details not disclosed in the embodiment of the device disclosed in the present disclosure, please refer to the embodiment of the audio processing method disclosed in the present disclosure.
图11是根据一示例性实施例示出的一种音频处理装置的框图,该音频处理装置配置于集成有音频处理芯片的终端中,执行以上任一所示的音频处理方法的全部或者部分步骤。如图11所示,该音频处理装置包括但不限于:Fig. 11 is a block diagram of an audio processing device according to an exemplary embodiment, the audio processing device is configured in a terminal integrated with an audio processing chip, and executes all or part of the steps of any one of the audio processing methods shown above. As shown in Figure 11, the audio processing device includes but is not limited to:
增益信息获取模块110,被配置为:对音频处理芯片中待进行音频处理的音频信号,获取音频信号中每一频点音频在音频处理芯片的各级音频处理所适用的增益信息。The gain
超幅频点音频确定模块130,被配置为:根据增益信息和每一频点音频的初始幅值,确定音频信号中的超幅频点音频,超幅频点音频是音频信号中按照增益信息所指示增益处理后,幅值超过音频处理芯片的幅度阈值的频点音频。The super-amplitude frequency point
调整增益确定模块150,被配置为:根据超幅频点音频的初始幅值和所对应增益信息为音频信号中每一频点音频对应确定调整增益,以使每一频点音频按照所对应增益信息所指示增益和所对应调整增益处理后的幅值不超过幅度阈值。The adjustment
预处理模块170,被配置为:在对音频信号进行各级音频处理之前,按照所对应调整增益对每一频点音频进行预处理。The
上述装置中各个模块的功能和作用的实现过程具体详见上述音频处理方法中对应步骤的实现过程,在此不再赘述。For the implementation process of the functions and functions of each module in the above device, please refer to the implementation process of the corresponding steps in the above audio processing method for details, and will not be repeated here.
可以理解,这些模块可以通过硬件、软件、或二者结合来实现。当以硬件方式实现时,这些模块可以实施为一个或多个硬件模块,例如一个或多个专用集成电路。当以软件方式实现时,这些模块可以实施为在一个或多个处理器上执行的一个或多个计算机程序,例如在音频处理芯片的处理器所执行的存储在存储器中的程序。It can be understood that these modules can be implemented by hardware, software, or a combination of both. When implemented in hardware, these modules may be implemented as one or more hardware modules, such as one or more application specific integrated circuits. When implemented in software, the modules may be implemented as one or more computer programs executing on one or more processors, such as a program stored in memory executed by a processor of an audio processing chip.
在一实施例中,各级音频处理包括初始音频处理和音效处理,增益信息获取模块110,包括:In one embodiment, audio processing at all levels includes initial audio processing and sound effect processing, and the gain
初始调整增益获取单元,被配置为:根据音频信号所来源的信号接口,获取音频处理芯片为来源于信号接口的信号所设定的初始调整增益。以及The initial adjustment gain acquisition unit is configured to: acquire the initial adjustment gain set by the audio processing chip for the signal from the signal interface according to the signal interface from which the audio signal originates. as well as
音效增益获取单元,被配置为:获取为进行音频播放所选定音效模式中为每一频点音频所设定的音效增益。The sound effect gain acquiring unit is configured to: acquire the sound effect gain set for each frequency point audio in the sound effect mode selected for audio playback.
增益信息获取单元,被配置为:根据初始调整增益和每一频点音频所对应的音效增益,获得每一频点音频在各级音频处理中所适用的增益信息。The gain information acquisition unit is configured to: obtain the gain information applicable to each frequency point audio in audio processing at each level according to the initial adjustment gain and the sound effect gain corresponding to each frequency point audio.
在一实施例中,音效模式包括基础音效模式和高级音效模式,音效增益获取单元,包括:In one embodiment, the sound effect mode includes a basic sound effect mode and an advanced sound effect mode, and the sound effect gain acquisition unit includes:
增益获取单元,被配置为:根据为进行音频播放所选定的基础音效模式和所选定的高级音效模式,获取基础音效模式中为每一频点音频所设定的第一增益,以及获取高级音效模式中为每一频点音频所设定的第二增益。The gain obtaining unit is configured to: obtain the first gain set for each frequency point audio in the basic sound effect mode according to the selected basic sound effect mode and the selected advanced sound effect mode for audio playback, and obtain The second gain set for each frequency point audio in the advanced sound effect mode.
音效增益计算单元,被配置为:根据每一频点音频所对应第一增益和所对应第二增益计算得到每一频点音频所对应音效增益。The sound effect gain calculation unit is configured to: calculate and obtain the sound effect gain corresponding to each frequency point audio according to the corresponding first gain and the corresponding second gain of each frequency point audio.
在一实施例中,超幅频点音频确定模块130,包括:In one embodiment, the super-amplitude frequency point
第一幅值计算单元,被配置为:根据每一频点音频的初始幅值计算每一频点音频按照所对应增益信息所指示增益处理后的第一幅值。The first amplitude value calculation unit is configured to: calculate the first amplitude value of each frequency point audio after gain processing according to the gain indicated by the corresponding gain information according to the initial amplitude value of each frequency point audio.
超幅频点音频确定单元,被配置为:将音频信号中所对应第一幅值超过幅度阈值的频点音频确定为超幅频点音频。The super-amplitude frequency point audio determination unit is configured to: determine the frequency point audio corresponding to the first amplitude exceeding the amplitude threshold in the audio signal as the super-amplitude frequency point audio.
在一实施例中,调整增益确定模块150,包括:In one embodiment, the adjustment
参考幅值确定单元,被配置为:根据每一超幅频点音频所对应第一幅值,将第一幅值中的最大值确定为参考幅值。The reference amplitude determination unit is configured to: determine the maximum value of the first amplitudes as the reference amplitude according to the first amplitude corresponding to each super-amplitude frequency point audio.
调整增益确定单元,被配置为:根据参考幅值和幅度阈值为每一频点音频确定相同的调整增益。The adjustment gain determination unit is configured to: determine the same adjustment gain for each frequency point audio according to the reference amplitude and the amplitude threshold.
在另一实施例中,调整增益确定模块150,包括:In another embodiment, the adjustment
第一调整增益确定单元,被配置为:根据每一超幅频点音频所对应第一幅值为所对应超幅频点音频确定调整增益。以及The first adjustment gain determining unit is configured to: determine the adjustment gain for the corresponding super-frequency audio according to the first amplitude corresponding to each super-frequency audio. as well as
第二调整增益确定单元,被配置为:将音频信号中除超幅频点音频外的其它频点音频的调整增益确定为0dB。The second adjustment gain determination unit is configured to: determine the adjustment gains of audio at other frequency points in the audio signal except the audio at super-amplitude frequency points as 0 dB.
在一实施例中,调整增益用于对所对应频点音频进行幅度衰减,音频处理装置还包括:In one embodiment, adjusting the gain is used to attenuate the audio frequency of the corresponding frequency point, and the audio processing device also includes:
补偿增益确定模块,被配置为:根据超幅频点音频的初始幅值、所对应增益信息和音频处理芯片的第二幅度阈值确定每一频点音频的调整增益,以使每一频点音频按照所对应调整增益和所对应增益信息所指示增益处理后的幅值不超过第二幅度阈值,第二幅度阈值小于幅度阈值。The compensation gain determination module is configured to: determine the adjustment gain of each frequency point audio according to the initial amplitude of the super-amplitude frequency point audio, the corresponding gain information and the second amplitude threshold of the audio processing chip, so that each frequency point audio The amplitude processed according to the corresponding adjusted gain and the gain indicated by the corresponding gain information does not exceed the second amplitude threshold, and the second amplitude threshold is smaller than the amplitude threshold.
在该实施例中,音频处理装置还包括:In this embodiment, the audio processing device also includes:
补偿处理模块,被配置为:在完成各级音频处理之后,按照所对应补偿增益对每一频点音频进行补偿处理。The compensation processing module is configured to perform compensation processing on the audio at each frequency point according to the corresponding compensation gain after completing the audio processing at all levels.
在一实施例中,调整增益确定模块150,包括:In one embodiment, the adjustment
第三调整增益确定单元,被配置为:根据超幅频点音频的初始幅值、所对应增益信息和音频处理芯片的第二幅度阈值确定每一频点音频的调整增益,以使每一频点音频按照所对应调整增益和所对应增益信息所指示增益处理后的幅值不超过第二幅度阈值,第二幅度阈值小于幅度阈值。The third adjustment gain determination unit is configured to: determine the adjustment gain of each frequency point audio according to the initial amplitude of the super-amplitude frequency point audio, the corresponding gain information, and the second amplitude threshold of the audio processing chip, so that each frequency The amplitude of the point audio processed according to the corresponding adjusted gain and the gain indicated by the corresponding gain information does not exceed the second amplitude threshold, and the second amplitude threshold is smaller than the amplitude threshold.
在一实施例中,将所音频信号中调整增益为0dB的频点音频的补偿增益确定为0dB。In an embodiment, the compensation gain of the frequency point audio whose adjusted gain is 0 dB in the audio signal is determined to be 0 dB.
上述装置中各个模块/单元的功能和作用的实现过程具体详见上述音频处理方法中对应步骤的实现过程,在此不再赘述。For the implementation process of the functions and functions of each module/unit in the above device, please refer to the implementation process of the corresponding steps in the above audio processing method for details, and will not be repeated here.
可选的,本公开还提供一种音频处理装置,该音频处理装置可以用于集成有音频处理芯片的终端中,执行以上任一所示的音频处理方法的全部或者部分步骤。如图12所示,音频处理装置包括但不限于:处理器1001及存储器1002。Optionally, the present disclosure further provides an audio processing device, which can be used in a terminal integrated with an audio processing chip to execute all or part of the steps in any one of the audio processing methods shown above. As shown in FIG. 12 , the audio processing device includes but not limited to: a
其中,存储器1002上存储有计算机可读指令,计算机可读指令被处理器1001执行时实现以上方法实施中任一项的方法。Wherein, the
其中,可执行指令被处理器1001执行时实现以上任一实施例中的方法。其中可执行指令比如是计算机可读指令,在处理器1001执行时,处理器通过与存储器之间所连接的通信线/总线1003读取存储于存储器中的计算机可读指令。Wherein, when the executable instruction is executed by the
该实施例中的处理器执行操作的具体方式已经在有关该音频处理方法的实施例中进行了详细描述,此处将不做详细阐述说明。The specific manner in which the processor in this embodiment performs operations has been described in detail in the embodiment of the audio processing method, and will not be described in detail here.
在示例性实施例中,还提供了一种存储介质,该存储介质为计算机可读存储介质,例如可以为包括指令的临时性和非临时性计算机可读存储介质。其上存储有计算机程序,计算机程序被处理器执行时实现以上任一方法实施例的方法。该存储介质例如包括但不限于指令的存储器,上述指令可由处理器执行以完成上述音频处理方法。In an exemplary embodiment, there is also provided a storage medium, which is a computer-readable storage medium, such as a transitory and non-transitory computer-readable storage medium including instructions. A computer program is stored thereon, and when the computer program is executed by the processor, the method in any one of the above method embodiments is implemented. The storage medium includes, but is not limited to, a memory for instructions, which can be executed by a processor to complete the above audio processing method.
该实施例中的处理器执行操作的具体方式已经在有关该音频处理方法的实施例中进行了详细描述,此处将不做详细阐述说明。The specific manner in which the processor in this embodiment performs operations has been described in detail in the embodiment of the audio processing method, and will not be described in detail here.
应当理解的是,本发明并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围执行各种修改和改变。本发明的范围仅由所附的权利要求来限制。It should be understood that the present invention is not limited to the precise constructions which have been described above and shown in the accompanying drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910431059.9A CN110211552B (en) | 2019-05-22 | 2019-05-22 | Audio processing method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910431059.9A CN110211552B (en) | 2019-05-22 | 2019-05-22 | Audio processing method and device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN110211552A CN110211552A (en) | 2019-09-06 |
| CN110211552B true CN110211552B (en) | 2023-07-14 |
Family
ID=67788109
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201910431059.9A Active CN110211552B (en) | 2019-05-22 | 2019-05-22 | Audio processing method and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN110211552B (en) |
Families Citing this family (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114449337A (en) * | 2020-10-30 | 2022-05-06 | 深圳Tcl新技术有限公司 | Audio signal processing method, device, equipment and computer readable storage medium |
| CN112702682A (en) * | 2020-12-21 | 2021-04-23 | 上汽通用五菱汽车股份有限公司 | Vehicle-mounted audio sound effect processing method |
| CN112905833B (en) * | 2021-01-19 | 2024-11-15 | 腾讯音乐娱乐科技(深圳)有限公司 | Audio playback device preheating method, device, equipment and medium |
| CN115437599A (en) * | 2022-08-31 | 2022-12-06 | 高创(苏州)电子有限公司 | Audio playback device, audio playback method and storage medium thereof |
| CN116564335A (en) * | 2023-04-13 | 2023-08-08 | 阿里巴巴(中国)有限公司 | Audio processing method and audio processing device |
Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109151562A (en) * | 2018-08-27 | 2019-01-04 | 深圳创维-Rgb电子有限公司 | A kind of sound effect control method, apparatus, television set and storage medium |
Family Cites Families (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| GB2355607B (en) * | 1999-10-20 | 2002-01-16 | Motorola Israel Ltd | Digital speech processing system |
| US6651040B1 (en) * | 2000-05-31 | 2003-11-18 | International Business Machines Corporation | Method for dynamic adjustment of audio input gain in a speech system |
| CN101399523B (en) * | 2008-09-05 | 2010-08-18 | 宇龙计算机通信科技(深圳)有限公司 | Gain control method and system for playing audio signal |
| US9647624B2 (en) * | 2014-12-31 | 2017-05-09 | Stmicroelectronics Asia Pacific Pte Ltd. | Adaptive loudness levelling method for digital audio signals in frequency domain |
| CN105657608B (en) * | 2015-12-31 | 2018-09-04 | 深圳Tcl数字技术有限公司 | Audio signal frequency responds compensation method and device |
| CN106504765B (en) * | 2016-10-20 | 2019-08-13 | 广州视源电子科技股份有限公司 | A method and device for automatic gain control of audio signals |
| CN107395149B (en) * | 2017-07-28 | 2020-11-27 | 南京矽力微电子技术有限公司 | Audio signal processing method, device and integrated circuit |
| CN107659279B (en) * | 2017-09-30 | 2023-10-27 | 浙江芯劢微电子股份有限公司 | An audio automatic gain control method and device |
-
2019
- 2019-05-22 CN CN201910431059.9A patent/CN110211552B/en active Active
Patent Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109151562A (en) * | 2018-08-27 | 2019-01-04 | 深圳创维-Rgb电子有限公司 | A kind of sound effect control method, apparatus, television set and storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN110211552A (en) | 2019-09-06 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN110211552B (en) | Audio processing method and device | |
| US8615094B2 (en) | Automatic level control circuit | |
| US8150066B2 (en) | Sound signal processing device, sound signal processing method, sound signal processing program, storage medium, and display device | |
| CN104798301B (en) | audio loudness control system | |
| JP5488389B2 (en) | Acoustic signal processing device | |
| US20120014538A1 (en) | Audio equipment and a control method thereof | |
| WO2010044439A1 (en) | Audio signal adjustment device and audio signal adjustment method | |
| WO2014067206A1 (en) | Method for automatically controlling channel volume, and digital television terminal | |
| CN106713794B (en) | A method for adjusting audio balance and an audio system providing balance adjustment | |
| US10567697B2 (en) | Signal processing device and signal processing method | |
| JP2006340328A (en) | Tone control apparatus | |
| US8509456B2 (en) | Level adjusting circuit | |
| CN1674451B (en) | Dynamic equalizing apparatus and method | |
| US10483931B2 (en) | Audio device, speaker device, and audio signal processing method | |
| JP2011135218A (en) | Sound signal processor, sound signal processing method, program, and recording medium | |
| KR20100031422A (en) | Image processing apparatus and control method thereof | |
| JP2010141571A (en) | Volume control method, audio signal reproduction device, and program | |
| KR101518068B1 (en) | Audio device | |
| KR100812618B1 (en) | Remote controller audio output system and method | |
| JP2019016851A (en) | Voice processing apparatus, voice processing method and program | |
| JP4349329B2 (en) | Sound quality adjustment device | |
| JP2000209055A (en) | Television | |
| JP5373942B2 (en) | Liquid crystal display | |
| JP2021013128A (en) | Signal processing device and signal processing method | |
| JP2010252278A (en) | Frequency characteristic adjusting device, program, and frequency characteristic adjusting method |
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 | ||
| CB02 | Change of applicant information | ||
| CB02 | Change of applicant information |
Address after: 266000, No. 218, Bay Road, Qingdao economic and Technological Development Zone, Shandong Applicant after: Hisense Visual Technology Co., Ltd. Address before: 266555 Qingdao economic and Technological Development Zone, Shandong, Hong Kong Road, No. 218 Applicant before: QINGDAO HISENSE ELECTRONICS Co.,Ltd. |
|
| GR01 | Patent grant | ||
| GR01 | Patent grant |

