[go: up one dir, main page]

CN118646925A - Terminal device and sound processing method - Google Patents

Terminal device and sound processing method Download PDF

Info

Publication number
CN118646925A
CN118646925A CN202410657815.0A CN202410657815A CN118646925A CN 118646925 A CN118646925 A CN 118646925A CN 202410657815 A CN202410657815 A CN 202410657815A CN 118646925 A CN118646925 A CN 118646925A
Authority
CN
China
Prior art keywords
sound
effect
preset value
processing
gain
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.)
Pending
Application number
CN202410657815.0A
Other languages
Chinese (zh)
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.)
Hisense Electronic Technology Shenzhen Co ltd
Original Assignee
Hisense Electronic Technology Shenzhen Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Electronic Technology Shenzhen Co ltd filed Critical Hisense Electronic Technology Shenzhen Co ltd
Priority to CN202410657815.0A priority Critical patent/CN118646925A/en
Publication of CN118646925A publication Critical patent/CN118646925A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/439Processing of audio elementary streams
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L21/00Speech or voice signal processing techniques to produce another audible or non-audible signal, e.g. visual or tactile, in order to modify its quality or its intelligibility
    • G10L21/02Speech enhancement, e.g. noise reduction or echo cancellation
    • G10L21/0316Speech enhancement, e.g. noise reduction or echo cancellation by changing the amplitude
    • G10L21/0324Details of processing therefor
    • G10L21/034Automatic adjustment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/485End-user interface for client configuration
    • H04N21/4852End-user interface for client configuration for modifying audio parameters, e.g. switching between mono and stereo
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04SSTEREOPHONIC SYSTEMS 
    • H04S7/00Indicating arrangements; Control arrangements, e.g. balance control
    • H04S7/30Control circuits for electronic adaptation of the sound field
    • H04S7/305Electronic adaptation of stereophonic audio signals to reverberation of the listening space

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Computational Linguistics (AREA)
  • Quality & Reliability (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

本申请一些实施例示出一种终端设备及声音处理方法,所述方法包括:在接收到用户输入的切换音效参数指令后,获取原始声音信号的直达声;将所述直达声经混响回声算法处理,以获取第一效果声;对所述第一效果声进行增益处理,以获取第二效果声,以及切换音效参数;将所述直达声、所述第二效果声和音乐伴奏声进行混音处理,以获取输出声音;控制音频输出装置播放所述输出声音。本申请实施例通过在切换音效参数时只对效果声做增益处理,直达声还是正常播放,在减少调节音效参数产生的噪声的同时,不会给用户带来突然静音的不适感。

Some embodiments of the present application illustrate a terminal device and a sound processing method, the method comprising: after receiving a user input instruction to switch sound effect parameters, obtaining the direct sound of the original sound signal; processing the direct sound through a reverberation echo algorithm to obtain a first effect sound; performing gain processing on the first effect sound to obtain a second effect sound, and switching sound effect parameters; mixing the direct sound, the second effect sound, and the music accompaniment sound to obtain an output sound; and controlling an audio output device to play the output sound. The embodiments of the present application only perform gain processing on the effect sound when switching the sound effect parameters, and the direct sound is still played normally. While reducing the noise generated by adjusting the sound effect parameters, it does not cause the user to feel uncomfortable due to sudden silence.

Description

一种终端设备及声音处理方法Terminal device and sound processing method

技术领域Technical Field

本申请涉及音频信号处理技术领域,尤其涉及一种终端设备及声音处理方法。The present application relates to the technical field of audio signal processing, and in particular to a terminal device and a sound processing method.

背景技术Background Art

随着生活水平的提高,电视机已经成为人们的普遍的电子消费品。在家庭中,唱K,各种游戏或者直播连麦在应用中能够有效的提高电视机的娱乐性和使用频率。因为每个人的声音音色不同,而且对音效的要求不同,工程师很难把音效调到贴合到每一个人。不少K歌产品针对专业用户提供了专业的音效参数,让用户自己调试。With the improvement of living standards, TVs have become a common electronic consumer product. In the home, karaoke, various games or live broadcasts can effectively improve the entertainment and usage frequency of TVs. Because everyone's voice timbre is different and their requirements for sound effects are different, it is difficult for engineers to adjust the sound effects to suit everyone. Many karaoke products provide professional sound effect parameters for professional users, allowing users to adjust them themselves.

但是由于音效参数调整时,会导致输出的音频信号不连续,引起POP的噪声。一般的解决办法就是在音频的输出端,即在输出到功放前,放置增益模块用于做淡入淡出处理。当电视机音效处理模块收到调整音效参数的指令时,例如把混响时间调为6。音效处理模块缓慢将增益模块的系数设置为线性值为0。然后执行切换音效参数。等到音效参数设置完毕,音效处理模块缓慢将增益模块的系数设置为线性值为1。因此,在执行切换音效参数时会有一段时间的静音,会让用户觉得不适。However, when the sound effect parameters are adjusted, the output audio signal will be discontinuous, causing POP noise. The general solution is to place a gain module at the output end of the audio, that is, before output to the power amplifier, for fade-in and fade-out processing. When the TV sound effect processing module receives an instruction to adjust the sound effect parameters, for example, adjust the reverberation time to 6. The sound effect processing module slowly sets the coefficient of the gain module to a linear value of 0. Then execute the switch of the sound effect parameters. After the sound effect parameters are set, the sound effect processing module slowly sets the coefficient of the gain module to a linear value of 1. Therefore, there will be a period of silence when switching the sound effect parameters, which will make the user feel uncomfortable.

另一种解决音效参数调整时的方法是检测麦克风信号是否接近静音,如果为静音段则切换音效参数。由于麦克风的信号接近静音,幅度为0左右,因此虽然也会产生噪声,但是产生的噪声非常小,人耳听不到。但该方法存在以下两个缺点:(1)如果用户在输入切换音效参数指令后,刚好用户仍然在使用麦克风的话,会导致无法执行音效参数切换的操作。即用户在终端设备上调节音效参数,但由于没有检测到静音,因此一直没有切换音效参数,可能会导致用户觉得调节的音效参数还不够,继续调节音效参数。(2)检测到静音段后切换音效参数,但在切换过程中,麦克风拾取到用户唱歌的声音,无法停止音效参数的切换,用户的声音信号幅度较大,导致出现较大噪声。Another method to solve the problem of adjusting sound effect parameters is to detect whether the microphone signal is close to silence, and switch the sound effect parameters if it is a silent segment. Since the microphone signal is close to silence and the amplitude is about 0, although noise will be generated, the noise generated is very small and cannot be heard by the human ear. However, this method has the following two disadvantages: (1) If the user is still using the microphone after entering the instruction to switch the sound effect parameters, the sound effect parameter switching operation cannot be performed. That is, the user adjusts the sound effect parameters on the terminal device, but because silence is not detected, the sound effect parameters have not been switched. This may cause the user to feel that the adjusted sound effect parameters are not enough and continue to adjust the sound effect parameters. (2) After the silent segment is detected, the sound effect parameters are switched, but during the switching process, the microphone picks up the sound of the user singing and cannot stop the switching of the sound effect parameters. The amplitude of the user's voice signal is large, resulting in a large noise.

发明内容Summary of the invention

本申请一些实施例提供了一种终端设备及声音处理方法,通过在调节音效参数时只对效果声做增益处理,直达声还是正常播放,在减少调节音效参数产生的噪声的同时,不会给用户带来突然静音的不适感。Some embodiments of the present application provide a terminal device and a sound processing method, which only performs gain processing on the effect sound when adjusting the sound effect parameters, while the direct sound is played normally. While reducing the noise generated by adjusting the sound effect parameters, it will not cause the user to feel uncomfortable due to sudden silence.

第一方面,本申请一些实施例中提供一种终端设备,包括:In a first aspect, some embodiments of the present application provide a terminal device, including:

声音采集器,被配置为:采集用户输入的原始声音信号;The sound collector is configured to: collect the original sound signal input by the user;

音频输出装置,被配置为:播放输出声音;The audio output device is configured to: play output sound;

控制器,被配置为:The controller is configured as:

在接收到用户输入的切换音效参数指令后,获取所述原始声音信号的直达声;After receiving the sound effect parameter switching instruction input by the user, obtaining the direct sound of the original sound signal;

对所述直达声进行混响回声算法处理,以获取第一效果声;Processing the direct sound with a reverberation echo algorithm to obtain a first effect sound;

对所述第一效果声进行增益处理,以获取第二效果声,以及切换音效参数;Performing gain processing on the first effect sound to obtain a second effect sound, and switching sound effect parameters;

对所述直达声、所述第二效果声和音乐伴奏声进行混音处理,以获取输出声音;Mixing the direct sound, the second effect sound and the music accompaniment sound to obtain output sound;

控制音频输出装置播放所述输出声音。Control the audio output device to play the output sound.

在一些实施例中,所述控制器执行获取所述原始声音信号的直达声,被进一步配置为:In some embodiments, the controller performs acquisition of the direct sound of the original sound signal and is further configured to:

接收所述声音采集器采集的原始声音信号;Receiving the original sound signal collected by the sound collector;

对所述原始声音信号进行前处理,以获取直达声,所述前处理包括噪声门处理,扩展器处理、增益控制、啸叫抑制和/或防喷麦处理。The original sound signal is pre-processed to obtain direct sound, wherein the pre-processing includes noise gate processing, expander processing, gain control, howling suppression and/or pop-out prevention processing.

在一些实施例中,所述控制器执行对所述第一效果声进行增益处理,以获取第二效果声,以及切换音效参数,被进一步配置为:In some embodiments, the controller performs gain processing on the first effect sound to obtain a second effect sound, and switches sound effect parameters, and is further configured as follows:

将所述第一效果声与增益系数相乘,以获取第二效果声,所述增益系数用于表征所述第一效果声的增益大小;multiplying the first effect sound by a gain coefficient to obtain a second effect sound, wherein the gain coefficient is used to characterize the gain of the first effect sound;

在所述增益系数由第一预设值减小至第二预设值后,切换音效参数,所述第一预设值大于所述第二预设值;After the gain coefficient is reduced from a first preset value to a second preset value, switching the sound effect parameter, the first preset value being greater than the second preset value;

在所述音效参数切换完成后,将所述增益系数由所述第二预设值增加至所述第一预设值。After the sound effect parameter is switched, the gain coefficient is increased from the second preset value to the first preset value.

在一些实施例中,所述控制器执行将所述增益系数由第一预设值减小至第二预设值后,切换音效参数,被进一步配置为:In some embodiments, after the controller reduces the gain coefficient from the first preset value to the second preset value, the sound effect parameter is switched, and is further configured as follows:

将所述增益系数由第一预设值以第一预设速率减小至第二预设值后,切换音效参数;After reducing the gain coefficient from a first preset value to a second preset value at a first preset rate, switching the sound effect parameter;

所述控制器执行将所述增益系数由所述第二预设值增加至所述第一预设值,被进一步配置为:The controller increases the gain coefficient from the second preset value to the first preset value, and is further configured to:

将所述增益系数由所述第二预设值以第二预设速率增加至所述第一预设值。The gain coefficient is increased from the second preset value to the first preset value at a second preset rate.

在一些实施例中,所述控制器执行对所述直达声、所述第二效果声和音乐伴奏声进行混音处理,以获取输出声音,被进一步配置为:In some embodiments, the controller performs mixing processing on the direct sound, the second effect sound and the music accompaniment sound to obtain output sound, and is further configured as follows:

对所述直达声、所述第二效果声和音乐伴奏声进行混音处理,以获取混音声;Mixing the direct sound, the second effect sound and the music accompaniment sound to obtain a mixed sound;

对所述混音声进行目标声音处理,以获取输出声音,所述目标声音处理包括分频处理、均衡器处理和/或动态增益控制。The mixed sound is subjected to target sound processing to obtain an output sound, wherein the target sound processing includes frequency division processing, equalizer processing and/or dynamic gain control.

第二方面,本申请一些实施例中提供一种声音处理方法,包括:In a second aspect, some embodiments of the present application provide a sound processing method, comprising:

在接收到用户输入的切换音效参数指令后,获取原始声音信号的直达声,所述原始声音信号由声音采集器采集;After receiving the sound effect parameter switching instruction input by the user, obtaining the direct sound of the original sound signal, wherein the original sound signal is collected by the sound collector;

在接收到用户输入的切换音效参数指令后,获取原始声音信号的直达声,所述原始声音信号由声音采集器采集;After receiving the sound effect parameter switching instruction input by the user, obtaining the direct sound of the original sound signal, wherein the original sound signal is collected by the sound collector;

对所述直达声进行混响回声算法处理,以获取第一效果声;Processing the direct sound with a reverberation echo algorithm to obtain a first effect sound;

对所述第一效果声进行增益处理,以获取第二效果声,以及切换音效参数;Performing gain processing on the first effect sound to obtain a second effect sound, and switching sound effect parameters;

对所述直达声、所述第二效果声和音乐伴奏声进行混音处理,以获取输出声音;Mixing the direct sound, the second effect sound and the music accompaniment sound to obtain output sound;

控制音频输出装置播放所述输出声音。Control the audio output device to play the output sound.

在一些实施例中,所述获取原始声音信号的直达声的步骤,包括:In some embodiments, the step of obtaining the direct sound of the original sound signal includes:

接收声音采集器采集的原始声音信号;Receiving the original sound signal collected by the sound collector;

对所述原始声音信号进行前处理,以获取直达声,所述前处理包括噪声门处理,扩展器处理、增益控制、啸叫抑制和/或防喷麦处理。The original sound signal is pre-processed to obtain direct sound, wherein the pre-processing includes noise gate processing, expander processing, gain control, howling suppression and/or pop-out prevention processing.

在一些实施例中,所述对所述第一效果声进行增益处理,以获取第二效果声,以及切换音效参数的步骤,包括:In some embodiments, the step of performing gain processing on the first effect sound to obtain a second effect sound and switching sound effect parameters includes:

确定所述第二效果声为所述第一效果声与增益系数的乘积,所述增益系数用于表征所述第一效果声的增益大小;Determine the second effect sound as the product of the first effect sound and a gain coefficient, wherein the gain coefficient is used to characterize the gain of the first effect sound;

将所述增益系数由第一预设值减小至第二预设值后,切换音效参数,所述第一预设值大于所述第二预设值;After reducing the gain coefficient from a first preset value to a second preset value, switching the sound effect parameter, the first preset value being greater than the second preset value;

在所述音效参数切换完成后,将所述增益系数由所述第二预设值增加至所述第一预设值。After the sound effect parameter is switched, the gain coefficient is increased from the second preset value to the first preset value.

在一些实施例中,所述将所述增益系数由第一预设值减小至第二预设值后,切换音效参数的步骤,包括:In some embodiments, the step of switching the sound effect parameters after reducing the gain coefficient from the first preset value to the second preset value includes:

将所述增益系数由第一预设值以第一预设速率减小至第二预设值后,切换音效参数;After reducing the gain coefficient from a first preset value to a second preset value at a first preset rate, switching the sound effect parameter;

所述将所述增益系数由所述第二预设值增加至所述第一预设值的步骤,包括:The step of increasing the gain coefficient from the second preset value to the first preset value comprises:

将所述增益系数由所述第二预设值以第二预设速率增加至所述第一预设值。The gain coefficient is increased from the second preset value to the first preset value at a second preset rate.

在一些实施例中,所述对所述直达声、所述第二效果声和音乐伴奏声进行混音处理,以获取输出声音的步骤,包括:In some embodiments, the step of mixing the direct sound, the second effect sound and the music accompaniment sound to obtain the output sound includes:

对所述直达声、所述第二效果声和音乐伴奏声进行混音处理,以获取混音声;Mixing the direct sound, the second effect sound and the music accompaniment sound to obtain a mixed sound;

对所述混音声进行目标声音处理,以获取输出声音,所述目标声音处理包括分频处理、均衡器处理和/或动态增益控制。The mixed sound is subjected to target sound processing to obtain an output sound, wherein the target sound processing includes frequency division processing, equalizer processing and/or dynamic gain control.

本申请的一些实施例提供一种终端设备及声音处理方法。在接收到用户输入的切换音效参数指令后,获取原始声音信号的直达声;对直达声进行混响回声算法处理,得到第一效果声;对第一效果声进行增益处理,得到第二效果声,以及切换音效参数;对直达声、第二效果声和音乐伴奏声进行混音处理,得到输出声音,由音频输出装置播放输出声音。本申请实施例在接收到用户输入的切换音效参数的指令时,不需要等待检测到麦克风声音为静音后,再进行音效参数切换,而是在经混响回声算法处理后的效果声进行增益处理的过程中,切换音效参数,有效保证切换参数的实时性。通过在切换音效参数时只对效果声做增益处理,直达声还是正常播放,在减少调节音效参数产生的噪声的同时,不会给用户带来突然静音的不适感。Some embodiments of the present application provide a terminal device and a sound processing method. After receiving the instruction to switch sound effect parameters input by the user, the direct sound of the original sound signal is obtained; the direct sound is processed by the reverberation echo algorithm to obtain the first effect sound; the first effect sound is subjected to gain processing to obtain the second effect sound, and the sound effect parameters are switched; the direct sound, the second effect sound and the music accompaniment sound are mixed to obtain the output sound, and the output sound is played by the audio output device. When the embodiment of the present application receives the instruction to switch sound effect parameters input by the user, it is not necessary to wait for the microphone sound to be detected as silent before switching the sound effect parameters. Instead, the sound effect parameters are switched during the process of gain processing of the effect sound after being processed by the reverberation echo algorithm, thereby effectively ensuring the real-time nature of the switching parameters. By only performing gain processing on the effect sound when switching the sound effect parameters, the direct sound is still played normally, and while reducing the noise generated by adjusting the sound effect parameters, the user will not feel uncomfortable due to sudden silence.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

图1为本申请一些实施例提供的显示设备与控制设备之间操作场景的示意图;FIG1 is a schematic diagram of an operation scenario between a display device and a control device provided in some embodiments of the present application;

图2为本申请一些实施例提供的显示设备的硬件配置示意图;FIG2 is a schematic diagram of a hardware configuration of a display device provided in some embodiments of the present application;

图3为本申请一些实施例提供的显示设备的软件配置示意图;FIG3 is a schematic diagram of software configuration of a display device provided in some embodiments of the present application;

图4为本申请一些实施例提供的一种声音处理方法的流程图;FIG4 is a flow chart of a sound processing method provided by some embodiments of the present application;

图5为本申请一些实施例提供的一种静音段切换音频参数的示意图;FIG5 is a schematic diagram of switching audio parameters in a silent segment provided by some embodiments of the present application;

图6为本申请一些实施例提供的另一种声音处理方法的流程图;FIG6 is a flow chart of another sound processing method provided in some embodiments of the present application;

图7为本申请一些实施例提供的一种唱歌主页页面的示意图;FIG7 is a schematic diagram of a singing homepage provided by some embodiments of the present application;

图8为本申请一些实施例提供的一种音视频播放页面的示意图;FIG8 is a schematic diagram of an audio and video playback page provided in some embodiments of the present application;

图9为本申请一些实施例提供的一种音频设置页面的示意图;FIG9 is a schematic diagram of an audio setting page provided in some embodiments of the present application;

图10为本申请一些实施例提供的一种音效参数设置页面的示意图;FIG10 is a schematic diagram of a sound effect parameter setting page provided in some embodiments of the present application;

图11为本申请一些实施例提供的接收切换音效参数指令前声音处理方法的流程图;FIG11 is a flow chart of a method for processing sound before receiving an instruction to switch sound effect parameters provided by some embodiments of the present application;

图12为本申请一些实施例提供的接收切换音效参数指令后声音处理方法的流程图。FIG. 12 is a flowchart of a method for processing sound after receiving an instruction to switch sound effect parameters, provided in some embodiments of the present application.

具体实施方式DETAILED DESCRIPTION

下面将详细地对实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下实施例中描述的实施方式并不代表与本申请相一致的所有实施方式。仅是与权利要求书中所详述的、本申请的一些方面相一致的系统和方法的示例。The following embodiments are described in detail, and examples thereof are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following embodiments do not represent all implementations consistent with the present application. They are only examples of systems and methods consistent with some aspects of the present application as detailed in the claims.

需要说明的是,本申请中对于术语的简要说明,仅是为了方便理解接下来描述的实施方式,而不是意图限定本申请的实施方式。除非另有说明,这些术语应当按照其普通和通常的含义理解。It should be noted that the brief description of terms in this application is only for the convenience of understanding the embodiments described below, and is not intended to limit the embodiments of this application. Unless otherwise specified, these terms should be understood according to their ordinary and common meanings.

本申请中说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”等是用于区别类似或同类的对象或实体,而不必然意味着限定特定的顺序或先后次序,除非另外注明。应该理解这样使用的用语在适当情况下可以互换。The terms "first", "second", "third", etc. in the specification and claims of this application and the above drawings are used to distinguish similar or similar objects or entities, and do not necessarily mean to limit a specific order or sequence, unless otherwise noted. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances.

术语“包括”和“具有”以及他们的任何变形,意图在于覆盖但不排他的包含,例如,包含了一系列组件的产品或设备不必限于清楚地列出的所有组件,而是可包括没有清楚地列出的或对于这些产品或设备固有的其它组件。The terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover but not exclude inclusion, for example, a product or device comprising a list of components is not necessarily limited to all the components expressly listed but may include other components not expressly listed or inherent to such product or device.

术语“模块”是指任何已知或后来开发的硬件、软件、固件、人工智能、模糊逻辑或硬件或/和软件代码的组合,能够执行与该元件相关的功能。The term "module" refers to any known or later developed hardware, software, firmware, artificial intelligence, fuzzy logic or combination of hardware and/or software code that is capable of performing the functions associated with that element.

本申请实施例中,终端设备泛指具有通信处理控制功能的电子设备。终端设备包括具有声音采集器硬件在内的产品形式,以及,以软件形式通过界面调试音频参数功能的存储介质或以按键灯形式调试音频参数功能的存储介质。终端设备包括但不限于手持麦克风、显示设备、耳机、音箱等单一产品形式或组合产品形式。In the embodiments of the present application, terminal equipment generally refers to electronic equipment with communication processing control functions. Terminal equipment includes product forms including sound collector hardware, as well as storage media for debugging audio parameter functions through an interface in the form of software or storage media for debugging audio parameter functions in the form of key lights. Terminal equipment includes but is not limited to single product forms or combined product forms such as handheld microphones, display devices, headphones, and speakers.

所述显示设备200泛指具有画面显示和数据处理能力的设备。例如,显示设备200包括但不限于智能电视、移动终端、计算机、监视器、广告屏、可穿戴设备、虚拟现实设备、增强现实设备等。The display device 200 generally refers to a device with image display and data processing capabilities. For example, the display device 200 includes but is not limited to a smart TV, a mobile terminal, a computer, a monitor, an advertising screen, a wearable device, a virtual reality device, an augmented reality device, etc.

图1为本申请一些实施例提供的显示设备与控制设备之间操作场景的示意图。如图1中示出,用户可通过触控操作、移动终端300和控制设备100操作显示设备200。其中,控制设备100用于接收用户输入的操作指令,并将操作指令转换为显示设备200可识别和响应的控制指令。例如,控制设备100可以为遥控器、触控笔、手柄等。FIG1 is a schematic diagram of an operation scenario between a display device and a control device provided in some embodiments of the present application. As shown in FIG1, a user can operate a display device 200 through touch operation, a mobile terminal 300, and a control device 100. The control device 100 is used to receive an operation instruction input by a user and convert the operation instruction into a control instruction that the display device 200 can recognize and respond to. For example, the control device 100 can be a remote control, a stylus, a handle, etc.

移动终端300可以作为一种控制设备,用于执行用户与显示设备200之间的人机交互。移动终端300还可以作为一种通信设备,用于与显示设备200建立通信连接,进行数据交互。在一些实施例中,移动终端300可与显示设备200安装软件应用,通过网络通信协议实现连接通信,实现一对一控制操作和数据通信的目的。也可以将移动终端300上显示音视频内容传输到显示设备200上,实现同步显示功能。The mobile terminal 300 can be used as a control device for performing human-computer interaction between the user and the display device 200. The mobile terminal 300 can also be used as a communication device for establishing a communication connection with the display device 200 and performing data interaction. In some embodiments, the mobile terminal 300 can install software applications with the display device 200, and achieve connection and communication through a network communication protocol to achieve the purpose of one-to-one control operation and data communication. The audio and video content displayed on the mobile terminal 300 can also be transmitted to the display device 200 to achieve a synchronous display function.

在一些实施例中,移动终端300或其他电子设备,也可以通过运行控制显示设备200的应用程序,模拟控制设备100的功能。In some embodiments, the mobile terminal 300 or other electronic devices may also simulate the functions of the control device 100 by running an application program for controlling the display device 200 .

如图1中还示出,显示设备200还与服务器400通过多种通信方式进行数据通信。可允许显示设备200通过局域网(LAN)、无线局域网(WLAN)和其他网络进行通信连接。1, the display device 200 also communicates data with the server 400 through various communication methods. The display device 200 may be allowed to communicate and connect through a local area network (LAN), a wireless local area network (WLAN), and other networks.

显示设备200可以提供广播接收电视功能,还可以附加提供计算机支持功能的智能网络电视功能,包括但不限于,网络电视、智能电视、互联网协议电视(IPTV)等。The display device 200 may provide a broadcast receiving television function, and may also additionally provide an intelligent network television function that provides a computer support function, including but not limited to network television, smart television, Internet Protocol television (IPTV), and the like.

图2为本申请一些实施例提供的图1中显示设备200的硬件配置框图。FIG. 2 is a hardware configuration block diagram of the display device 200 in FIG. 1 provided in some embodiments of the present application.

在一些实施例中,显示设备200可以包括调谐解调器210、通信装置220、检测器230、装置接口240、控制器250、显示器260、音频输出装置270、存储器、供电电源、用户输入接口中的至少一种。In some embodiments, the display device 200 may include at least one of a tuner 210, a communication device 220, a detector 230, a device interface 240, a controller 250, a display 260, an audio output device 270, a memory, a power supply, and a user input interface.

在一些实施例中,检测器230用于采集外部环境或与外部交互的信号。例如,检测器230包括光接收器,用于采集环境光线强度的传感器;或者,检测器230包括图像采集器,如摄像头,可以用于采集外部环境场景、用户的属性或用户交互手势,再或者,检测器230包括声音采集器,如麦克风等,用于接收外部声音。In some embodiments, the detector 230 is used to collect signals of the external environment or external interaction. For example, the detector 230 includes a light receiver, a sensor for collecting the intensity of ambient light; or, the detector 230 includes an image collector, such as a camera, which can be used to collect external environment scenes, user attributes or user interaction gestures; or, the detector 230 includes a sound collector, such as a microphone, etc., for receiving external sounds.

在一些实施例中,显示器260包括用于呈现画面的显示功能组件,以及驱动图像显示的驱动组件。显示器260用于接收源自控制器250输出的图像信号进行显示。例如,显示器260可以用于显示视频内容、图像内容以及菜单操控界面的组件以及用户操控UI界面等。In some embodiments, the display 260 includes a display function component for presenting a picture, and a driving component for driving an image display. The display 260 is used to receive an image signal output from the controller 250 for display. For example, the display 260 can be used to display video content, image content, and components of a menu control interface and a user control UI interface.

在一些实施例中,通信装置220是用于根据各种通信协议类型与外部设备或服务器400进行通信的组件。显示设备200可以根据支持的通信方式的不同,设置有多个通信装置220。例如,显示设备200支持无线网络通信时,显示设备200可以设有包含WiFi功能的通信装置220。显示设备200支持蓝牙连接通信时,显示设备200需要设有包含蓝牙功能的通信装置220。In some embodiments, the communication device 220 is a component for communicating with an external device or server 400 according to various communication protocol types. The display device 200 may be provided with a plurality of communication devices 220 according to different supported communication modes. For example, when the display device 200 supports wireless network communication, the display device 200 may be provided with a communication device 220 including a WiFi function. When the display device 200 supports Bluetooth connection communication, the display device 200 needs to be provided with a communication device 220 including a Bluetooth function.

通信装置220可以通过无线或有线连接的方式使显示设备200与外部设备或服务器400进行通信连接。其中,有线连接可以通过数据线、接口等组件将显示设备200与外部设备连接。无线连接则可以通过无线信号或无线网络将显示设备200与外部设备连接。显示设备200可以直接与外部设备建立连接关系,也可以通过网关、路由、连接设备等间接建立连接关系。The communication device 220 can enable the display device 200 to communicate with the external device or server 400 by wireless or wired connection. Among them, the wired connection can connect the display device 200 with the external device through components such as data cables and interfaces. The wireless connection can connect the display device 200 with the external device through wireless signals or wireless networks. The display device 200 can establish a connection relationship with the external device directly, or indirectly establish a connection relationship through a gateway, a router, a connection device, etc.

在一些实施例中,控制器250可以包括中央处理器、视频处理器、音频处理器、图形处理器、电源处理器中的至少一个,用于输入/输出的第一接口至第n接口,控制器250通过存储在存储器上中各种软件控制程序,来控制显示设备的工作和响应用户的操作。控制器250控制显示设备200的整体操作。In some embodiments, the controller 250 may include at least one of a central processing unit, a video processor, an audio processor, a graphics processor, and a power processor, and a first interface to an nth interface for input/output. The controller 250 controls the operation of the display device and responds to the user's operation through various software control programs stored in the memory. The controller 250 controls the overall operation of the display device 200.

在一些实施例中,控制器250和调谐解调器210可以位于不同的分体设备中,即调谐解调器210也可在控制器250所在的主体设备的外置设备中,如外置机顶盒等。In some embodiments, the controller 250 and the tuner-demodulator 210 may be located in different separate devices, that is, the tuner-demodulator 210 may also be located in an external device of the main device where the controller 250 is located, such as an external set-top box.

在一些实施例中,用户可在显示器260上显示的图形用户界面(Graphical UserInterface,GUI)输入用户命令,则用户输入接口通过图形用户界面(GUI)接收用户输入命令。In some embodiments, the user may input a user command through a graphical user interface (GUI) displayed on the display 260 , and the user input interface receives the user input command through the graphical user interface (GUI).

在一些实施例中,音频输出装置270可以为显示设备200的本机扬声器,也可以为显示设备200外接的音频输出设备。其中,对于显示设备200外接的音频输出设备,显示设备200还可以设置有外接音频输出端子,音频输出设备可以通过外接音频输出端子接入显示设备200,以输出显示设备200的声音。In some embodiments, the audio output device 270 may be a local speaker of the display device 200, or may be an external audio output device of the display device 200. In particular, for the external audio output device of the display device 200, the display device 200 may also be provided with an external audio output terminal, and the audio output device may be connected to the display device 200 through the external audio output terminal to output the sound of the display device 200.

在一些实施例中,用户输入接口280,可用于接收来自用户输入的指令。In some embodiments, the user input interface 280 may be used to receive instructions from a user.

为了执行用户交互,在一些实施例中,显示设备200可以运行有操作系统。所述操作系统是用于管理和控制显示设备200中硬件资源和软件资源的计算机程序。操作系统可以控制显示设备提供用户界面,例如,操作系统可以直接控制显示设备提供用户界面,也可以通过运行应用程序提供用户界面。操作系统还允许用户与显示设备200进行交互。In order to perform user interaction, in some embodiments, the display device 200 may run an operating system. The operating system is a computer program for managing and controlling hardware resources and software resources in the display device 200. The operating system can control the display device to provide a user interface, for example, the operating system can directly control the display device to provide a user interface, or provide a user interface by running an application program. The operating system also allows the user to interact with the display device 200.

需要说明的是,所述操作系统可以是基于特定操作平台的原生操作系统,也可以是基于特定操作平台深度定制的第三方操作系统,还可以是针对显示设备专门开发的独立操作系统。It should be noted that the operating system may be a native operating system based on a specific operating platform, or a third-party operating system deeply customized based on a specific operating platform, or an independent operating system specially developed for a display device.

操作系统可以根据所实现的功能划分为不同的模块或层级,例如,如图3所示,在一些实施例中,将系统分为四层,从上至下分别为应用程序(Applications)层(简称“应用层”),应用程序框架(Application Framework)层(简称“框架层”),系统库层以及内核层。The operating system can be divided into different modules or levels according to the functions implemented. For example, as shown in Figure 3, in some embodiments, the system is divided into four layers, from top to bottom, namely, the application layer (Applications) layer (referred to as "application layer"), the application framework layer (Application Framework) layer (referred to as "framework layer"), the system library layer and the kernel layer.

在一些实施例中,应用程序层用于为应用程序提供服务和接口,以便于显示设备200能够运行应用程序,并基于应用程序与用户交互。应用程序层中可以运行有至少一个应用程序,这些应用程序可以是操作系统自带的窗口(Window)程序、系统设置程序或时钟程序等;也可以是第三方开发者所开发的应用程序。在具体实施时,应用程序层中的应用程序包不限于以上举例。In some embodiments, the application layer is used to provide services and interfaces for applications so that the display device 200 can run applications and interact with users based on the applications. At least one application can be run in the application layer, and these applications can be window programs, system settings programs, clock programs, etc. that come with the operating system; they can also be applications developed by third-party developers. In specific implementations, the application packages in the application layer are not limited to the above examples.

框架层为应用程序提供应用编程接口(Application Programming Interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。应用程序框架层相当于一个处理中心,这个中心决定让应用层中的应用程序做出动作。应用程序通过API接口,可在执行中访问系统中的资源和取得系统的服务。The framework layer provides application programming interfaces (APIs) and programming frameworks for applications. The application framework layer includes some predefined functions. The application framework layer is equivalent to a processing center that determines the actions that applications in the application layer take. Applications can access system resources and obtain system services during execution through the API interface.

如图3所示,本申请实施例中应用程序框架层包括视图系统(View System)、管理器(Managers),内容提供者(Content Provider)等,其中,视图系统可设计和实现应用程序的界面和交互,视图系统包括列表(lists)、网络(grids)、文本框(text boxes)、按钮(buttons)等。管理器包括以下模块中的至少一个:活动管理器(Activity Manager)用于和系统中正在运行的所有活动进行交互;位置管理器(Location Manager)用于给系统服务或应用提供了系统位置服务的访问;文件包管理器(Package Manager)用于检索当前安装在设备上的应用程序包相关的各种信息;通知管理器(Notification Manager)用于控制通知消息的显示和清除;窗口管理器(Window Manager)用于管理用户界面上的图标、窗口、工具栏、壁纸和桌面部件。As shown in FIG3 , the application framework layer in the embodiment of the present application includes a view system, managers, content providers, etc., wherein the view system can design and implement the interface and interaction of the application, and the view system includes lists, grids, text boxes, buttons, etc. The manager includes at least one of the following modules: an activity manager for interacting with all activities running in the system; a location manager for providing system services or applications with access to system location services; a package manager for retrieving various information related to the application package currently installed on the device; a notification manager for controlling the display and clearing of notification messages; and a window manager for managing icons, windows, toolbars, wallpapers, and desktop widgets on the user interface.

在一些实施例中,活动管理器用于管理各个应用程序的生命周期以及通常的导航回退功能,比如控制应用程序的退出、打开、后退等。窗口管理器用于管理所有的窗口程序,比如获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕,控制显示窗口变化,例如,将显示窗口缩小显示、抖动显示、扭曲变形显示等。In some embodiments, the activity manager is used to manage the life cycle of each application and the usual navigation back function, such as controlling the exit, opening, and back of the application. The window manager is used to manage all window programs, such as obtaining the display screen size, determining whether there is a status bar, locking the screen, capturing the screen, and controlling the display window changes, for example, reducing the display window, shaking the display, distorting the display, etc.

在一些实施例中,系统运行库层可以为框架层提供支撑,当框架层被使用时,操作系统会运行系统运行库层中包含的指令库,例如C/C++指令库,以实现框架层所要实现的功能。In some embodiments, the system runtime layer can provide support for the framework layer. When the framework layer is used, the operating system will run the instruction library contained in the system runtime layer, such as the C/C++ instruction library, to implement the functions to be implemented by the framework layer.

在一些实施例中,内核层是介于显示设备200的硬件和软件之间的功能层级。内核层可以实现硬件抽象、多任务处理、内存管理等功能。例如,如图3所示,内核层中可以配置有硬件驱动,内核层包含的驱动可以为以下驱动中的至少一种:音频驱动、显示驱动、蓝牙驱动、摄像头驱动、WIFI驱动、USB驱动、HDMI驱动、传感器驱动(如指纹传感器,温度传感器,压力传感器等)、以及电源驱动等。In some embodiments, the kernel layer is a functional layer between the hardware and software of the display device 200. The kernel layer can implement functions such as hardware abstraction, multitasking, and memory management. For example, as shown in FIG3 , a hardware driver can be configured in the kernel layer, and the driver included in the kernel layer can be at least one of the following drivers: an audio driver, a display driver, a Bluetooth driver, a camera driver, a WIFI driver, a USB driver, an HDMI driver, a sensor driver (such as a fingerprint sensor, a temperature sensor, a pressure sensor, etc.), and a power driver, etc.

需要说明的是,上述示例仅仅是对操作系统功能的简单划分,并不对本申请实施例中显示设备200的具体操作系统形式构成限定,根据显示设备的功能、操作系统的类型等因素,操作系统所包含的层级数量和具体层级类型可以表现为其他形式。It should be noted that the above example is only a simple division of the operating system functions and does not constitute a limitation on the specific operating system form of the display device 200 in the embodiment of the present application. Depending on factors such as the function of the display device and the type of operating system, the number of levels and specific level types contained in the operating system may be expressed in other forms.

随着生活水平的提高,电视机已经成为人们的普遍的电子消费品。在家庭中,唱K,各种游戏或者直播连麦在应用中能够有效的提高电视机的娱乐性和使用频率。因为每个人的声音音色不同,而且对音效的要求不同,工程师很难把音效调到贴合到每一个人。不少K歌产品针对专业用户提供了专业的音效参数,让用户自己调试。With the improvement of living standards, TVs have become a common electronic consumer product. In the home, karaoke, various games or live broadcasts can effectively improve the entertainment and usage frequency of TVs. Because everyone's voice timbre is different and their requirements for sound effects are different, it is difficult for engineers to adjust the sound effects to suit everyone. Many karaoke products provide professional sound effect parameters for professional users, allowing users to adjust them themselves.

但是由于音效参数调整时,会导致输出的音频信号不连续,引起POP的噪声。However, when the sound effect parameters are adjusted, the output audio signal will be discontinuous, causing POP noise.

在一些实施例中,在音频的输出端,即在输出到功放前,放置增益模块用于做淡入淡出处理。如图4所示,当终端设备音效处理模块收到切换音效参数的指令时,例如把混响时间调为6。音效处理模块将声音采集器采集的原始声音信号经前处理后,得到直达声。将直达声经混响和回声算法处理,得到效果声。将直达声、效果声和音乐伴奏声进行混音处理,得到混音声。将混音声通过增益模块进行增益处理,增益处理后经功放由音频输出装置播放。在缓慢将增益模块的系数设置为线性值为0后,执行切换音效参数操作。在音效参数切换完毕后,缓慢将增益模块的系数设置为线性值为1。因此,在执行切换音效参数时会有一段时间的静音,会让用户觉得不适。In some embodiments, a gain module is placed at the output end of the audio, that is, before output to the power amplifier, for fade-in and fade-out processing. As shown in Figure 4, when the sound effect processing module of the terminal device receives an instruction to switch the sound effect parameters, for example, the reverberation time is adjusted to 6. The sound effect processing module obtains the direct sound after pre-processing the original sound signal collected by the sound collector. The direct sound is processed by the reverberation and echo algorithm to obtain the effect sound. The direct sound, the effect sound and the music accompaniment sound are mixed to obtain the mixed sound. The mixed sound is gain-processed by the gain module, and after the gain processing, it is played by the audio output device through the power amplifier. After slowly setting the coefficient of the gain module to a linear value of 0, the operation of switching the sound effect parameters is executed. After the sound effect parameters are switched, the coefficient of the gain module is slowly set to a linear value of 1. Therefore, there will be a period of silence when switching the sound effect parameters, which will make the user feel uncomfortable.

在一些实施例中,当终端设备音效处理模块收到切换音效参数的指令时,检测麦克风信号的幅度是否小于预设值,即判断麦克风信号是否为静音状态或接近静音状态;如果麦克风信号为静音状态或接近静音状态,则切换音效参数,如图5所示。如果麦克风信号不为静音状态或接近静音状态,则不执行切换音效参数的操作。由于麦克风的信号接近静音,幅度为0左右。因此,虽然此时切换音效参数时也会产生噪声,但是产生的噪声非常小,人耳听不到。In some embodiments, when the sound effect processing module of the terminal device receives an instruction to switch the sound effect parameters, it detects whether the amplitude of the microphone signal is less than a preset value, that is, it determines whether the microphone signal is in a silent state or a near silent state; if the microphone signal is in a silent state or a near silent state, the sound effect parameters are switched, as shown in FIG5 . If the microphone signal is not in a silent state or a near silent state, the operation of switching the sound effect parameters is not performed. Since the signal of the microphone is close to silent, the amplitude is about 0. Therefore, although noise will be generated when the sound effect parameters are switched at this time, the noise generated is very small and cannot be heard by the human ear.

但该方法存在以下两个缺点:(1)如果用户在输入切换音效参数指令后,刚好用户仍然在使用麦克风的话,会导致无法执行音效参数切换的操作。即用户在终端设备上调节音效参数,但由于没有检测到静音,因此一直没有切换音效参数,可能会导致用户觉得调节的音效参数还不够,继续调节音效参数。(2)检测到静音段后切换音效参数,但在切换过程中,麦克风拾取到用户唱歌的声音,无法停止音效参数的切换,用户的声音信号幅度较大,导致出现较大噪声。However, this method has the following two disadvantages: (1) If the user is still using the microphone after entering the instruction to switch the sound effect parameters, the sound effect parameter switching operation cannot be performed. That is, the user adjusts the sound effect parameters on the terminal device, but because no silence is detected, the sound effect parameters are not switched. This may cause the user to feel that the adjusted sound effect parameters are not enough and continue to adjust the sound effect parameters. (2) After the silence segment is detected, the sound effect parameters are switched, but during the switching process, the microphone picks up the sound of the user singing and cannot stop the switching of the sound effect parameters. The amplitude of the user's voice signal is large, resulting in a large noise.

为了解决以上技术问题,本申请实施例提供一种终端设备,终端设备包括声音采集器、音频输出装置和控制器。如图6所示,控制器通过运行应用程序,使终端设备执行以下步骤:In order to solve the above technical problems, an embodiment of the present application provides a terminal device, which includes a sound collector, an audio output device and a controller. As shown in FIG6 , the controller runs an application program to enable the terminal device to perform the following steps:

步骤S601:接收用户输入的切换音效参数指令;Step S601: receiving a sound effect parameter switching instruction input by a user;

在一些实施例中,接收用户通过按压终端设备上的按键输入的切换音效参数指令。In some embodiments, an instruction to switch sound effect parameters is received from a user by pressing a button on a terminal device.

示例性的,终端设备上安装有音效参数切换按键、上键和下键,用户可通过按压音效参数切换按键切换至不同音效参数,并通过按压上键或下键调节音效参数对应的具体数值,从而向终端设备输入切换音效参数的指令。Exemplarily, the terminal device is installed with a sound effect parameter switching button, an up button and a down button. The user can switch to different sound effect parameters by pressing the sound effect parameter switching button, and adjust the specific value corresponding to the sound effect parameter by pressing the up button or the down button, thereby inputting the instruction to switch the sound effect parameter to the terminal device.

在一些实施例中,接收用户通过与用户界面交互输入的切换音效参数指令。In some embodiments, an instruction to switch sound effect parameters is received from a user through interaction with a user interface.

以显示设备200为例,接收用户输入的切换音效参数指令的步骤,包括:Taking the display device 200 as an example, the step of receiving the instruction of switching sound effect parameters input by the user includes:

响应于用户输入打开音频设置页面的指令,控制显示器260显示音频设置页面,所述音频设置页面包括音效模式设置控件;In response to a user inputting an instruction to open an audio setting page, controlling the display 260 to display the audio setting page, wherein the audio setting page includes a sound effect mode setting control;

在一些实施例中,显示器260显示唱歌(K歌)应用主页,主页包括至少一个歌曲控件,接收用户输入选择歌曲控件的指令后,播放所述歌曲控件对应的音视频,声音采集器可采集用户唱歌的声音,并经过音效模块处理后播放。用户可通过输入打开音频设置页面的指令将当前页面切换音频设置页面。In some embodiments, the display 260 displays a singing (Karaoke) application homepage, which includes at least one song control. After receiving a user input command to select a song control, the audio and video corresponding to the song control are played. The sound collector can collect the user's singing sound and play it after being processed by the sound effect module. The user can switch the current page to the audio setting page by inputting a command to open the audio setting page.

在一些实施例中,显示器260显示游戏应用的用户界面,在用户将声音采集器开启后,声音采集器采集的用户声音可经过音效模块处理后发送至服务器,服务器将处理后的声音发送至指定用户的终端设备播放。用户可通过输入打开音频设置页面的指令将当前页面切换音频设置页面。In some embodiments, the display 260 displays the user interface of the game application. After the user turns on the sound collector, the user sound collected by the sound collector can be processed by the sound effect module and sent to the server, and the server sends the processed sound to the terminal device of the designated user for playback. The user can switch the current page to the audio settings page by inputting an instruction to open the audio settings page.

在一些实施例中,显示器260显示视频直播或音/视频通话应用的用户界面,接收用户输入开启视频直播或音/视频通话的指令后,声音采集器采集的用户声音可经过音效模块处理后发送至服务器,服务器将处理后的声音发送至指定用户的终端设备播放。用户可通过输入打开音频设置页面的指令将当前页面切换音频设置页面。In some embodiments, the display 260 displays the user interface of the video live broadcast or audio/video call application. After receiving the user input to start the video live broadcast or audio/video call, the user sound collected by the sound collector can be processed by the sound effect module and sent to the server, and the server sends the processed sound to the terminal device of the specified user for playback. The user can switch the current page to the audio settings page by inputting the command to open the audio settings page.

在一些实施例中,响应于用户输入选择所述音效模式设置控件的指令,控制显示器260显示音效模式设置页面,所述音效模式设置页面包括至少一个音效模式控件;In some embodiments, in response to a user inputting an instruction to select the sound effect mode setting control, the display 260 is controlled to display a sound effect mode setting page, wherein the sound effect mode setting page includes at least one sound effect mode control;

在一些实施例中,音效模式是指特定场景下的音效参数。示例性的,音效模式包括KTV模式、演唱会模式、录音棚模式和剧场模式等。音效参数包括干音音量、混响增益、混响时间和回声增益等,音效参数的取值在0-10范围内。In some embodiments, the sound effect mode refers to the sound effect parameters in a specific scene. Exemplarily, the sound effect modes include KTV mode, concert mode, studio mode, and theater mode. The sound effect parameters include dry sound volume, reverberation gain, reverberation time, and echo gain, and the values of the sound effect parameters are in the range of 0-10.

本地内存中保存音效模式与音效参数的映射表,该映射表表征音效模式与音效参数的对应关系。在接收到用户选定一个音效模式控件后,可将音效参数对应更改为音效模式对应的音效参数。A mapping table of sound effect modes and sound effect parameters is stored in the local memory, and the mapping table represents the corresponding relationship between the sound effect modes and the sound effect parameters. After receiving a sound effect mode control selected by the user, the sound effect parameters can be changed to the sound effect parameters corresponding to the sound effect mode.

示例性的,音效模式与音效参数映射表,如表1所示。Exemplarily, a mapping table of sound effect modes and sound effect parameters is shown in Table 1.

表1Table 1

音效参数控件Sound Effect Parameter Controls 干音音量Dry Volume 混响增益Reverb Gain 混响时间Reverberation time 回声增益Echo Gain …… KTVKTV 55 11 22 22 …… 演唱会Concert 66 22 33 22 …… 录音棚Recording Studio 77 33 44 22 …… …… …… …… …… …… ……

接收用户选择所述音效模式控件的指令。Receive an instruction from a user to select the sound effect mode control.

在一些实施例中,音效模式还包括自定义模式,即专业音效。需要用户自行调节各音效参数。In some embodiments, the sound effect mode also includes a custom mode, i.e., a professional sound effect, which requires the user to adjust various sound effect parameters by himself.

响应于用户输入选择所述专业音效控件的指令,控制显示器260显示音效参数设置页面,所述音效参数设置页面包括至少一个音效参数控件,所述音效参数控件包括音效参数调整条,所述音效参数调整条上设置有滑块,所述滑块在音效参数调整条的位置表征所述音效参数对应的数值。In response to the user input of an instruction to select the professional sound effect control, the control display 260 displays a sound effect parameter setting page, the sound effect parameter setting page includes at least one sound effect parameter control, the sound effect parameter control includes a sound effect parameter adjustment bar, the sound effect parameter adjustment bar is provided with a slider, the position of the slider in the sound effect parameter adjustment bar represents the numerical value corresponding to the sound effect parameter.

接收用户输入调整所述滑块在所述音效参数调整条的位置的指令。An instruction for adjusting the position of the slider on the sound effect parameter adjustment bar is received from a user.

示例性的,接收用户打开唱歌应用的指令,或者,在主页导航栏中选择唱歌控件后,显示唱歌主页页面,如图7所示。K歌页面包括多个歌曲控件71。在接收到用户选择歌曲控件71的指令后,播放该歌曲的音视频,如图8所示。接收用户通过按压控制设备100的下键输入打开音频设置页面的指令,显示音频设置页面,如图9所示。音频设置页面包括控制台控件91、音效模式设置控件92、点歌台控件93、清晰度控件94、自动录制控件95和焦点96。当前焦点96指示音效模式设置控件92被选择。在音效模式设置控件92被选择时,显示音效模式设置框。音效模式设置框包括KTV控件921、演唱会控件922、录音棚控件923、剧场控件924和专业音效控件925。Exemplarily, after receiving an instruction from a user to open a singing application, or after selecting a singing control in the homepage navigation bar, the singing homepage page is displayed, as shown in FIG7 . The karaoke page includes a plurality of song controls 71. After receiving an instruction from a user to select a song control 71, the audio and video of the song is played, as shown in FIG8 . The user is received to input an instruction to open the audio settings page by pressing the lower key of the control device 100, and the audio settings page is displayed, as shown in FIG9 . The audio settings page includes a console control 91, a sound effect mode setting control 92, a song request station control 93, a clarity control 94, an automatic recording control 95, and a focus 96. The current focus 96 indicates that the sound effect mode setting control 92 is selected. When the sound effect mode setting control 92 is selected, the sound effect mode setting box is displayed. The sound effect mode setting box includes a KTV control 921, a concert control 922, a recording studio control 923, a theater control 924, and a professional sound effect control 925.

通过接收用户输入选择演唱会控件922向显示设备200输入将音效参数更改为演唱会模式对应音效参数的指令。By receiving user input and selecting the concert control 922, an instruction to change the sound effect parameters to the sound effect parameters corresponding to the concert mode is input to the display device 200.

在接收到用户输入选择专业音效控件925后,显示音效参数设置页面,如图10所示。音效参数设置页面包括干声音量控件1011、混响增益控件1012、混响时间控件1013、回声增益控件1014、回声间隔控件1015、回声时长控件1016、低音控件1017、中音控件1018、高音控件1019、保存控件102、重置控件103及焦点96。重置控件103用于将音效参数恢复为默认数值。在用户选择干声音量控件1011后,通过按压控制设备100的上下键调整滑块在音效参数调整条的位置,以修改干声音量对应的数值。通过接收用户输入选择保存控件102的指令向显示设备200输入切换音效参数指令。After receiving the user input to select the professional sound effect control 925, the sound effect parameter setting page is displayed, as shown in Figure 10. The sound effect parameter setting page includes a dry sound volume control 1011, a reverberation gain control 1012, a reverberation time control 1013, an echo gain control 1014, an echo interval control 1015, an echo duration control 1016, a bass control 1017, a midrange control 1018, a treble control 1019, a save control 102, a reset control 103 and a focus 96. The reset control 103 is used to restore the sound effect parameters to the default values. After the user selects the dry sound volume control 1011, the position of the slider in the sound effect parameter adjustment bar is adjusted by pressing the up and down keys of the control device 100 to modify the value corresponding to the dry sound volume. The switching sound effect parameter instruction is input to the display device 200 by receiving the user input to select the save control 102 instruction.

步骤S602:获取原始声音信号的直达声;Step S602: obtaining the direct sound of the original sound signal;

如图11所示,在未接收到用户输入的切换音效参数指令时,声音采集器将采集到的用户声音,即原始声音信号发送至前处理模块。前处理模块对原始声音信号进行前处理,得到直达声,并将直达声分别发送至混响回声模块和混音模块。混响回声模块对直达声进行混响/回声算法处理,得到效果声,并将效果声发送至混音模块。混音模块将直达声、效果声和音乐伴奏声进行混音处理,得到输出声音。输出声音经过功放后由音频输出装置播放。或者效果声在发送至混音模块之前,经过增益模块,但是增益模块的增益系数为1,保持不变。As shown in Figure 11, when the user input switching sound effect parameter instruction is not received, the sound collector sends the collected user sound, that is, the original sound signal, to the pre-processing module. The pre-processing module pre-processes the original sound signal to obtain the direct sound, and sends the direct sound to the reverberation echo module and the mixing module respectively. The reverberation echo module processes the direct sound with a reverberation/echo algorithm to obtain the effect sound, and sends the effect sound to the mixing module. The mixing module mixes the direct sound, the effect sound and the music accompaniment sound to obtain the output sound. The output sound is played by the audio output device after passing through the power amplifier. Or the effect sound passes through the gain module before being sent to the mixing module, but the gain coefficient of the gain module is 1 and remains unchanged.

在接收到用户输入的切换音效参数指令后,接收声音采集器采集的原始声音信号,即用户输入的语音信号;After receiving the sound effect parameter switching instruction input by the user, receiving the original sound signal collected by the sound collector, that is, the voice signal input by the user;

对所述原始声音信号进行前处理,以获取直达声,所述前处理包括噪声门处理,扩展器处理、增益控制、啸叫抑制和/或防喷麦处理。The original sound signal is pre-processed to obtain direct sound, wherein the pre-processing includes noise gate processing, expander processing, gain control, howling suppression and/or pop-out prevention processing.

噪声门是一种音频处理器,用于控制和抑制输入信号,即原始声音信号中的噪音。它是一种动态音量控制器,可以自动地打开或关闭音频信号的通道。当输入信号的音量大于设定的阈值时,噪声门会打开,允许信号通过,并在输出中保持器原有的音量,而当输入信号的音量低于阈值时,噪声门会关闭,将信号屏蔽或削弱到一个设定的水平,以抑制噪音的传播。A noise gate is an audio processor used to control and suppress the noise in the input signal, that is, the original sound signal. It is a dynamic volume controller that can automatically open or close the channel of the audio signal. When the volume of the input signal is greater than the set threshold, the noise gate will open, allowing the signal to pass through and maintaining the original volume in the output. When the volume of the input signal is lower than the threshold, the noise gate will close, shielding or weakening the signal to a set level to suppress the spread of noise.

扩展器将输入的原始声音信号进行加大。在原始声音信号进行加大同时,进行一些适当的处理,最后转变线路将原始声音信号传输出去。The expander amplifies the original sound signal. While the original sound signal is amplified, it performs some appropriate processing and finally changes the line to transmit the original sound signal.

增益控制,即自动增益控制(Automatic Gain Control,AGC)是使放大电路的增益自动地随信号强度而调整的自动控制方法。自动增益控制是限幅输出的一种,利用线性放大和压缩放大的有效组合对原始声音信号进行调整。当弱信号输入时,线性放大电路工作,保证输出信号的强度;当原始声音信号达到一定强度时,启动压缩放大电路,使输出幅度降低。也就是说,AGC功能可以通过改变输入输出压缩比例自动控制增益的幅度。Gain control, or Automatic Gain Control (AGC), is an automatic control method that automatically adjusts the gain of the amplifier circuit according to the signal strength. Automatic gain control is a type of limited output that uses an effective combination of linear amplification and compression amplification to adjust the original sound signal. When a weak signal is input, the linear amplifier circuit works to ensure the strength of the output signal; when the original sound signal reaches a certain strength, the compression amplifier circuit is activated to reduce the output amplitude. In other words, the AGC function can automatically control the gain amplitude by changing the input-output compression ratio.

啸叫抑制算法包括移频法、陷波器法和自适应滤波器法。移频法升高或降低输入音频信号的频率,改变频率的输出信号再次进入系统不会和原始信号频率叠加,达到抑制啸叫的作用。陷波法通过降低啸叫频率点处增益,破坏啸叫产生的增益条件。自适应滤波器法通过使用最小均方算法、归一化最小均方算法等自适应滤波器,把麦克风二次采集的反馈信号从麦克风信号中过滤掉。Howling suppression algorithms include frequency shifting, notch filter and adaptive filter. The frequency shifting method increases or decreases the frequency of the input audio signal. The output signal with the changed frequency will not be superimposed with the original signal frequency when it enters the system again, thus achieving the effect of suppressing howling. The notch filter method destroys the gain condition for howling by reducing the gain at the howling frequency point. The adaptive filter method filters out the feedback signal collected by the microphone from the microphone signal by using adaptive filters such as the least mean square algorithm and the normalized least mean square algorithm.

为了防止唱歌或者录音的时候嘴离话筒太近,造成话筒被嘴里的气喷出来弄得扑扑响,影响声音效果,可通过调节电平,防止原始声音信号出现电平过载。防喷麦处理本质也是一种噪声消除方法。In order to prevent the mouth from being too close to the microphone when singing or recording, causing the microphone to make a popping sound due to the air sprayed out of the mouth, affecting the sound effect, the level can be adjusted to prevent the original sound signal from being overloaded. The essence of anti-pop microphone processing is also a noise elimination method.

声音采集器将采集的原始声音信号发送至前处理模块,前处理模块对原始声音信号进行前处理,生成直达声。The sound collector sends the collected original sound signal to the pre-processing module, and the pre-processing module pre-processes the original sound signal to generate direct sound.

步骤S603:对直达声进行混响回声算法处理,以获取第一效果声;Step S603: performing reverberation echo algorithm processing on the direct sound to obtain a first effect sound;

在得到直达声后,直达声分为两路,一路经混响回声算法等处理后再进行混音处理,一路直达声直接进行混音处理。After the direct sound is obtained, the direct sound is divided into two paths, one of which is processed by the reverberation echo algorithm and then mixed, and the other is directly mixed.

混响回声算法是用于模拟或生成混响效果的一系列数学公式和算法。混响是指声音在传播过程中,由于遇到障碍物而发生反射,导致声音在空间中持续存在并逐渐衰减的现象。在音频处理和声学领域,混响算法用于模拟自然环境中的混响效果,或者用于调整录音或音乐作品中的混响。混响算法通常基于声学原理,包括声音的反射、吸收和衰减。一种常用的计算混响时间的方法是赛宾公式,它基于房间的体积和吸声量来计算混响时间。另一种方法是艾润公式,它也是基于声能衰减比例来计算混响时间。Reverberation echo algorithms are a series of mathematical formulas and algorithms used to simulate or generate reverberation effects. Reverberation refers to the phenomenon that sound persists in space and gradually decays due to reflections caused by obstacles during the propagation process. In the fields of audio processing and acoustics, reverberation algorithms are used to simulate reverberation effects in natural environments, or to adjust reverberation in recordings or musical works. Reverberation algorithms are usually based on acoustic principles, including the reflection, absorption, and attenuation of sound. A commonly used method for calculating reverberation time is the Sabine formula, which calculates the reverberation time based on the volume and sound absorption of the room. Another method is the Airun formula, which also calculates the reverberation time based on the sound energy attenuation ratio.

音效模块包括混响回音模块和混音模块。在接收到用户输入的切换音效参数指令,应用模块将切换后的音效参数发送至混响回音模块。混响回音模块在接收到切换后的音效参数后并不会立即执行音效参数切换的操作。The sound effect module includes a reverberation echo module and a mixing module. Upon receiving the switching sound effect parameter instruction input by the user, the application module sends the switched sound effect parameters to the reverberation echo module. The reverberation echo module does not immediately perform the sound effect parameter switching operation after receiving the switched sound effect parameters.

前处理模块将经过前处理的原始声音信号,即直达声分别发送至混响回音模块和混音模块。混响回音模块虽然接收到切换后的音效参数,但是仍会以切换前音效参数对直达声进行混响回声处理,得到第一效果声。The pre-processing module sends the original sound signal after pre-processing, that is, the direct sound, to the reverberation echo module and the mixing module respectively. Although the reverberation echo module receives the sound effect parameters after switching, it still performs reverberation echo processing on the direct sound with the sound effect parameters before switching to obtain the first effect sound.

步骤S604:对第一效果声进行增益处理,以获取第二效果声,以及切换音效参数;Step S604: performing gain processing on the first effect sound to obtain a second effect sound, and switching sound effect parameters;

增益处理的目的是通过增益系数改变第一效果声的音量大小,以在第一效果声输出音量较小时,执行切换音效参数的操作,从而达到淡入淡出的效果。The purpose of gain processing is to change the volume of the first effect sound through the gain coefficient, so that when the output volume of the first effect sound is low, the operation of switching the sound effect parameters is executed, thereby achieving a fade-in and fade-out effect.

将所述第一效果声与增益系数相乘,以获取第二效果声,所述增益系数用于表征所述第一效果声的增益大小;multiplying the first effect sound by a gain coefficient to obtain a second effect sound, wherein the gain coefficient is used to characterize the gain of the first effect sound;

在所述增益系数由第一预设值减小至第二预设值后,切换音效参数,所述第一预设值大于所述第二预设值;After the gain coefficient is reduced from a first preset value to a second preset value, switching the sound effect parameter, the first preset value being greater than the second preset value;

在所述音效参数切换完成后,将所述增益系数由所述第二预设值增加至所述第一预设值。After the sound effect parameter is switched, the gain coefficient is increased from the second preset value to the first preset value.

示例性的,第一预设值为1,第二预设值为0。Exemplarily, the first preset value is 1, and the second preset value is 0.

c(n)=Coef(n)*b(n);c(n)=Coef(n)*b(n);

其中,c(n)为第二效果声中的n点数据;为b(n)为第一效果声中的n点数据,第一效果声是直达声经过混响和回声等算法的效果声。Coef(n)为增益模块的系数。Wherein, c(n) is the n-point data in the second effect sound; b(n) is the n-point data in the first effect sound, and the first effect sound is the effect sound of the direct sound after reverberation and echo algorithms. Coef(n) is the coefficient of the gain module.

在一些实施例中,将增益系数由第一预设值减小至第二预设值的步骤,包括:In some embodiments, the step of reducing the gain coefficient from the first preset value to the second preset value includes:

将所述增益系数由第一预设值以第一预设幅度减小至第二预设值。The gain coefficient is reduced from a first preset value to a second preset value by a first preset amplitude.

示例性的,增益系数Coef(n)=Coef(n-1)-A1,其中,A1表示增益系数降低的幅度,为一个常数,Coef(n-1)表示增益系数Coef(n)前一个值。Coef(n-1)的初始值为第一预设值。Exemplarily, the gain coefficient Coef(n)=Coef(n-1)-A1, wherein A1 represents the amplitude of the gain coefficient reduction, which is a constant, and Coef(n-1) represents the previous value of the gain coefficient Coef(n). The initial value of Coef(n-1) is the first preset value.

根据上一次增益系数和第一预设幅度确定本次增益系数,增益系数初始值为第一预设值;Determine the current gain coefficient according to the previous gain coefficient and the first preset amplitude, and the initial value of the gain coefficient is the first preset value;

判断本次增益系数是否小于或等于第二预设值;Determine whether the current gain coefficient is less than or equal to a second preset value;

如果本次增益系数大于第二预设值,则将第一效果声与本次增益系数相乘,得到第二效果声,以及继续执行根据上一次增益系数和第一预设幅度确定本次增益系数的步骤。If the current gain coefficient is greater than the second preset value, the first effect sound is multiplied by the current gain coefficient to obtain the second effect sound, and the step of determining the current gain coefficient according to the previous gain coefficient and the first preset amplitude is continued.

如果本次增益系数小于或等于第二预设值,将第一效果声与第二预设值相乘,得到第二效果声,以及切换音效参数。If the current gain coefficient is less than or equal to the second preset value, the first effect sound is multiplied by the second preset value to obtain the second effect sound, and the sound effect parameters are switched.

在切换音效参数的过程中,继续以第一效果声与第二预设值相乘,得到第二效果声。During the process of switching the sound effect parameters, the first effect sound is continuously multiplied by the second preset value to obtain the second effect sound.

切换音效参数包括:将音效参数替换为从切换音效参数指令中解析出的音效参数,即执行新音效参数初始化操作。Switching the sound effect parameters includes: replacing the sound effect parameters with the sound effect parameters parsed from the switching sound effect parameter instruction, that is, performing a new sound effect parameter initialization operation.

在一些实施例中,将增益系数由第二预设值增加至第二预设值的步骤,包括:In some embodiments, the step of increasing the gain coefficient from the second preset value to the second preset value includes:

将所述增益系数由第二预设值以第二预设幅度增加至第一预设值。The gain coefficient is increased from the second preset value to the first preset value by a second preset amplitude.

示例性的,增益系数Coef(n)=Coef(n-1)+A2,其中,A2表示增益系数增加的幅度,为一个常数。Coef(n-1)的初始值为第二预设值。Exemplarily, the gain coefficient Coef(n)=Coef(n-1)+A2, wherein A2 represents the amplitude of the gain coefficient increase, which is a constant. The initial value of Coef(n-1) is the second preset value.

在音效参数切换完成后,根据上一次增益系数和第二预设幅度确定本次增益系数,增益系数初始值为第二预设值;After the sound effect parameter is switched, the current gain coefficient is determined according to the previous gain coefficient and the second preset amplitude, and the initial value of the gain coefficient is the second preset value;

判断本次增益系数是否大于或等于第一预设值;Determine whether the current gain coefficient is greater than or equal to a first preset value;

如果本次增益系数小于第一预设值,则将第一效果声与本次增益系数相乘,得到第二效果声,以及继续执行根据上一次增益系数和第二预设幅度确定本次增益系数的步骤。If the current gain coefficient is less than the first preset value, the first effect sound is multiplied by the current gain coefficient to obtain a second effect sound, and the step of determining the current gain coefficient according to the previous gain coefficient and the second preset amplitude is continued.

如果本次增益系数大于或等于第二预设值,将第一效果声与第一预设值相乘,得到第二效果声,或者,将第一效果声直接发送至混音模块。If the current gain coefficient is greater than or equal to the second preset value, the first effect sound is multiplied by the first preset value to obtain the second effect sound, or the first effect sound is directly sent to the mixing module.

第一预设幅度与第二预设幅度可以相同,也可以不同。The first preset amplitude and the second preset amplitude may be the same or different.

本申请实施例中在接收到用户输入的切换音效参数指令后,逐渐减小增益系数,并在切换音效参数后逐渐增大增益系数,可有效减少由于增益系数改变产生的噪声。In the embodiment of the present application, after receiving the instruction to switch the sound effect parameters input by the user, the gain coefficient is gradually reduced, and the gain coefficient is gradually increased after switching the sound effect parameters, which can effectively reduce the noise generated by the change of the gain coefficient.

在一些实施例中,将增益系数由第一预设值减小至第二预设值的步骤,包括:In some embodiments, the step of reducing the gain coefficient from the first preset value to the second preset value includes:

将所述增益系数由第一预设值以第一目标幅度减小至第二预设值,第一目标幅度呈增长趋势。The gain coefficient is reduced from a first preset value to a second preset value by a first target amplitude, and the first target amplitude shows an increasing trend.

示例性的,增益系数Coef(n)=Coef(n-1)-A1,A1=x+at,或者,A1=x+x0,其中,A1表示增益系数降低的幅度;x为初始降低幅度,t为距离接收到用户输入的切换音效参数指令的时长,a为幅度增加速率,x0为增益系数增长幅度。Coef(n-1)的初始值为第一预设值。Exemplarily, the gain coefficient Coef(n)=Coef(n-1)-A1, A1=x+at, or A1=x+x0, where A1 represents the amplitude of the gain coefficient reduction; x is the initial reduction amplitude, t is the time from the receipt of the user input of the switching sound effect parameter instruction, a is the amplitude increase rate, and x0 is the gain coefficient growth amplitude. The initial value of Coef(n-1) is the first preset value.

在一些实施例中,将增益系数由第二预设值增加至第一预设值的步骤,包括:In some embodiments, the step of increasing the gain coefficient from the second preset value to the first preset value includes:

将所述增益系数由第二预设值以第二目标幅度增加至第一预设值,第二目标幅度呈下降趋势。The gain coefficient is increased from the second preset value to the first preset value by a second target amplitude, and the second target amplitude shows a downward trend.

示例性的,增益系数Coef(n)=Coef(n-1)+A2,A2=x-at,或者,A2=x-x0,其中,A2表示增益系数增加的幅度;x为初始增加幅度,t为距离音效参数切换完成的时长,a为幅度降低速率,x0为增益系数降低幅度。Coef(n-1)的初始值为第二预设值。Exemplarily, the gain coefficient Coef(n)=Coef(n-1)+A2, A2=x-at, or A2=x-x0, where A2 represents the amplitude of the gain coefficient increase; x is the initial increase amplitude, t is the time taken for the distance sound effect parameter to be switched, a is the amplitude reduction rate, and x0 is the gain coefficient reduction amplitude. The initial value of Coef(n-1) is the second preset value.

本申请实施例中在接收到用户输入的切换音效参数指令后,增益系数逐渐减小且减小幅度逐渐增大;在切换音效参数后增益系数逐渐增大且增大幅度逐渐减小。在声音信号比较大时降低变化幅度,在声音信号比较小时增加变化幅度,在有效减少由于增益系数改变产生的噪声的同时,使得声音变化更为平滑流畅。In the embodiment of the present application, after receiving the user input of the switching sound effect parameter instruction, the gain coefficient gradually decreases and the decrease amplitude gradually increases; after switching the sound effect parameter, the gain coefficient gradually increases and the increase amplitude gradually decreases. When the sound signal is relatively large, the change amplitude is reduced, and when the sound signal is relatively small, the change amplitude is increased, which effectively reduces the noise generated by the change of the gain coefficient and makes the sound change smoother and more fluent.

在一些实施例中,将增益系数由第一预设值减小至第二预设值的步骤,包括:In some embodiments, the step of reducing the gain coefficient from the first preset value to the second preset value includes:

将所述增益系数由第一预设值以第一预设速率减小至第二预设值。The gain factor is reduced from a first preset value to a second preset value at a first preset rate.

示例性的,增益系数Coef(n)=Smooth1*Target+(1-Smooth1)*Coef(n-1),其中,Smooth1表示系数变化的速率,即第一预设速率,取值范围为0<Smooth1<1,值越大变化的越快,可能产生的噪声越大;Target表示目标增益系数,为一个常数。当接收到用户输入的切换音效参数指令时,Target为0,Coef(n-1)为1。Coef(n-1)表示增益系数Coef(n)前一个值。Exemplarily, the gain coefficient Coef(n)=Smooth1*Target+(1-Smooth1)*Coef(n-1), where Smooth1 represents the rate of change of the coefficient, that is, the first preset rate, and the value range is 0<Smooth1<1. The larger the value, the faster the change, and the greater the noise that may be generated; Target represents the target gain coefficient, which is a constant. When the user inputs the switching sound effect parameter instruction, Target is 0 and Coef(n-1) is 1. Coef(n-1) represents the previous value of the gain coefficient Coef(n).

需要说明的是,当Coef(n)小于某一固定值时,就认为Coef(n)为0。例如,固定值为0.0000001。It should be noted that when Coef(n) is less than a certain fixed value, Coef(n) is considered to be 0. For example, the fixed value is 0.0000001.

在一些实施例中,将增益系数由第二预设值增加至第一预设值的步骤,包括:In some embodiments, the step of increasing the gain coefficient from the second preset value to the first preset value includes:

将所述增益系数由第二预设值以第二预设速率增加至第一预设值。The gain factor is increased from a second preset value to a first preset value at a second preset rate.

示例性的,增益系数Coef(n)=Smooth2*Target+(1-Smooth2)*Coef(n-1),其中,Smooth2表示系数变化的速率,即第二预设速率,取值范围为0<Smooth2<1,值越大变化的越快,可能产生的噪声越大;Target表示目标增益系数,为一个常数。当音效参数切换完成时,Target为1,Coef(n-1)为0。Coef(n-1)表示增益系数Coef(n)前一个值。Exemplarily, the gain coefficient Coef(n)=Smooth2*Target+(1-Smooth2)*Coef(n-1), where Smooth2 represents the rate of change of the coefficient, i.e., the second preset rate, and the value range is 0<Smooth2<1. The larger the value, the faster the change, and the greater the noise that may be generated; Target represents the target gain coefficient, which is a constant. When the sound effect parameter switching is completed, Target is 1 and Coef(n-1) is 0. Coef(n-1) represents the previous value of the gain coefficient Coef(n).

本申请实施例中在接收到用户输入的切换音效参数指令后,增益系数逐渐减小且减小幅度逐渐增大;在切换音效参数后增益系数逐渐增大且增大幅度逐渐减小。在声音信号比较大时降低变化幅度,在声音信号比较小时增加变化幅度,在有效减少由于增益系数改变产生的噪声的同时,使得声音变化更为平滑流畅。In the embodiment of the present application, after receiving the user input of the switching sound effect parameter instruction, the gain coefficient gradually decreases and the decrease amplitude gradually increases; after switching the sound effect parameter, the gain coefficient gradually increases and the increase amplitude gradually decreases. When the sound signal is relatively large, the change amplitude is reduced, and when the sound signal is relatively small, the change amplitude is increased, which effectively reduces the noise generated by the change of the gain coefficient and makes the sound change smoother and more fluent.

混响回音模块将第一效果声发送至增益模块,增益模块对第一效果声进行增益处理,得到第二效果声,将第二效果声发送至混音模块。The reverberation echo module sends the first effect sound to the gain module, and the gain module performs gain processing on the first effect sound to obtain the second effect sound, and sends the second effect sound to the mixing module.

步骤S605:对直达声、第二效果声和音乐伴奏声进行混音处理,以获取输出声音;Step S605: Mixing the direct sound, the second effect sound and the music accompaniment sound to obtain output sound;

混音是把多种来源的声音,整合至一个立体音轨或单音音轨中。在混音的过程中,将每一个原始信号的频率、动态、音质、定位、残响和声场单独进行调整,让各音轨最佳化,再叠加于最终输出声音上。Mixing is the process of integrating sounds from multiple sources into a stereo or mono track. During the mixing process, the frequency, dynamics, sound quality, positioning, reverberation and sound field of each original signal are adjusted separately to optimize each track and then superimposed on the final output sound.

输出声音信号y(n)=a(n)+c(n)+d(n),其中a(n)是直达声中的n点数据,为声音采集器采集的原始声音信号x(n)经过前处理后的信号;c(n)是第二效果声,为第一效果声b(n)经过增益模块处理后的信号,d(n)为音乐伴奏声中的n点数据。The output sound signal y(n)=a(n)+c(n)+d(n), where a(n) is the n-point data in the direct sound, which is the signal after pre-processing of the original sound signal x(n) collected by the sound collector; c(n) is the second effect sound, which is the signal after the first effect sound b(n) is processed by the gain module, and d(n) is the n-point data in the music accompaniment sound.

需要说明的事,如果当前场景并未处于唱歌场景中,例如在音视频通话、直播或游戏场景中,在混音处理中无需加入音乐伴奏声。It should be noted that if the current scene is not a singing scene, such as an audio or video call, live broadcast or game scene, there is no need to add musical accompaniment to the mixing process.

在一些实施例中,将所述直达声、所述第二效果声和音乐伴奏声进行混音处理,以获取混音声;In some embodiments, the direct sound, the second effect sound and the music accompaniment sound are mixed to obtain a mixed sound;

对所述混音声进行目标声音处理,以获取输出声音,所述目标声音处理包括分频处理、均衡器处理和/或动态增益控制。The mixed sound is subjected to target sound processing to obtain an output sound, wherein the target sound processing includes frequency division processing, equalizer processing and/or dynamic gain control.

分频处理是一种在音响系统中用于将音频信号分为不同频段的技术,以确保各个扬声器单元能够有效地重放特定频率范围的音频。Crossover processing is a technology used in audio systems to divide audio signals into different frequency bands to ensure that each speaker unit can effectively reproduce audio in a specific frequency range.

均衡器是一种可以分别调节各种频率成分电信号放大量的电子设备,通过对各种不同频率的电信号的调节来补偿扬声器和声场的缺陷,补偿和修饰各种声源及其它特殊作用。An equalizer is an electronic device that can adjust the amplification of electrical signals of various frequency components separately. It compensates for the defects of speakers and sound fields, compensates and modifies various sound sources and has other special functions by adjusting electrical signals of different frequencies.

动态增益控制,即动态范围控制(Dynamic Range Control,DRC),旨在调整信号的动态范围,即信号的最大和最小幅度之间的比值的对数。在音频处理中,DRC通常作为音效处理的最后一个模块,用于压缩或限制音频信号的动态范围,以避免大信号导致的失真和硬件过载。它可以通过不同类型的控制器实现,如动态范围压缩器、限制器和扩展器,以及噪声门,来减弱超过或低于特定阈值的信号幅度。Dynamic gain control, also known as dynamic range control (DRC), aims to adjust the dynamic range of the signal, that is, the logarithm of the ratio between the maximum and minimum amplitudes of the signal. In audio processing, DRC is usually used as the last module of sound processing to compress or limit the dynamic range of the audio signal to avoid distortion and hardware overload caused by large signals. It can be implemented through different types of controllers, such as dynamic range compressors, limiters and expanders, as well as noise gates, to attenuate signal amplitudes above or below a certain threshold.

混音模块将直达声、第二效果声和音乐伴奏声进行混音处理,可直接将混音声作为输出声音发送至音频输出装置,也可将混音声发送至目标信号处理模块。目标信号处理模块对混音声进行目标声音处理,得到输出声音,并将输出声音发送至音频输出装置。The mixing module mixes the direct sound, the second effect sound and the music accompaniment sound, and can directly send the mixed sound as the output sound to the audio output device, or send the mixed sound to the target signal processing module. The target signal processing module performs target sound processing on the mixed sound to obtain the output sound, and sends the output sound to the audio output device.

步骤S606:控制音频输出装置播放输出声音。Step S606: Control the audio output device to play output sound.

在一些实施例中,在音频输出装置播放输出声音前,可以经过功放对输出声音信号进行放大。In some embodiments, before the audio output device plays the output sound, the output sound signal may be amplified by a power amplifier.

如图12所示,声音采集器采集原始声音信号,并将原始声音信号发送至前处理模块。前处理模块对原始声音信号进行前处理后成为直达声。前处理模块将直达声分为两路,一路发送至混响回声模块,混响回声模块将直达声经混响回声算法处理后,成为第一效果声。另一路直接输入到混音模块,跟音乐伴奏和效果声混合后,输出到功放和音频输出装置。其中,在混音前第一效果声会向经过增益模块。增益模块将第一效果声乘以一个增益系数,成为第二效果声。当接收到切换音效参数的指令时,增益模块缓慢将增益系数从1变为0。在确保效果声没有输出后,切换音效参数。当新的音效参数初始化执行完成后,增益模块会缓慢将增益系数从0变为1,恢复效果声的音量。同时,当新的音效参数初始化执行完成后,音效模块发出切换音效参数完毕的指令至整机端。As shown in FIG12 , the sound collector collects the original sound signal and sends the original sound signal to the pre-processing module. The pre-processing module pre-processes the original sound signal to become a direct sound. The pre-processing module divides the direct sound into two paths, one of which is sent to the reverberation echo module. The reverberation echo module processes the direct sound through the reverberation echo algorithm to become the first effect sound. The other path is directly input into the mixing module, mixed with the music accompaniment and the effect sound, and then output to the power amplifier and audio output device. Among them, before mixing, the first effect sound will pass through the gain module. The gain module multiplies the first effect sound by a gain coefficient to become the second effect sound. When receiving an instruction to switch the sound effect parameters, the gain module slowly changes the gain coefficient from 1 to 0. After ensuring that the effect sound is not output, switch the sound effect parameters. After the new sound effect parameter initialization is completed, the gain module will slowly change the gain coefficient from 0 to 1 to restore the volume of the effect sound. At the same time, after the new sound effect parameter initialization is completed, the sound effect module sends an instruction to the whole machine to complete the switching of the sound effect parameters.

本申请实施例采用只对效果声做增益,即淡入淡出处理,无需将整路的输出声音都做淡入淡出处理,不会产生片刻的静音,让用户觉得调节参数时出了问题。由于只对效果声做淡入淡出处理,因此麦克风的直达声还是输出播放,不会让用户察觉突然静音的不适感。The embodiment of the present application adopts the method of only performing gain on the effect sound, that is, fade-in and fade-out processing, and there is no need to perform fade-in and fade-out processing on the output sound of the entire channel, so that there will not be a moment of silence, which will make the user feel that there is a problem when adjusting the parameters. Since only the effect sound is faded in and fade-out, the direct sound of the microphone is still output and played, and the user will not feel the discomfort of sudden silence.

与检测到静音时再切换参数的方案相比,本申请实施例直接切换参数,不需要检测麦克风的声音是否为静音,减少计算量,也不存在延时切换参数,有效保证切换参数的实时性。Compared with the solution of switching parameters when silence is detected, the embodiment of the present application directly switches parameters. There is no need to detect whether the sound of the microphone is silent, which reduces the amount of calculation and does not delay switching parameters, effectively ensuring the real-time nature of switching parameters.

本申请的一些实施例提供一种声音处理方法,所述方法适用于终端设备,终端设备包括声音采集器、音频输出装置和控制器,所述控制器,被配置为:在接收到用户输入的切换音效参数指令后,获取所述原始声音信号的直达声;将所述直达声经混响回声算法处理,以获取第一效果声;将所述第一效果声进行增益处理,以获取第二效果声,以及切换音效参数;将所述直达声、所述第二效果声和音乐伴奏声进行混音处理,以获取输出声音;控制音频输出装置播放所述输出声音。本申请实施例在接收到用户输入的切换音效参数的指令时,不需要等待检测到麦克风声音为静音后,再进行音效参数切换,而是在经混响回声算法处理后的效果声进行增益处理的过程中,切换音效参数,有效保证切换参数的实时性。通过在切换音效参数时只对效果声做增益处理,直达声还是正常播放,在减少调节音效参数产生的噪声的同时,不会给用户带来突然静音的不适感。Some embodiments of the present application provide a sound processing method, which is applicable to a terminal device, and the terminal device includes a sound collector, an audio output device and a controller, wherein the controller is configured to: after receiving a switching sound effect parameter instruction input by a user, obtain the direct sound of the original sound signal; process the direct sound by a reverberation echo algorithm to obtain a first effect sound; perform gain processing on the first effect sound to obtain a second effect sound, and switch the sound effect parameters; perform mixing processing on the direct sound, the second effect sound and the music accompaniment sound to obtain an output sound; and control the audio output device to play the output sound. When receiving a switching sound effect parameter instruction input by a user, the embodiment of the present application does not need to wait for the microphone sound to be detected as silent before switching the sound effect parameters, but switches the sound effect parameters during the process of gain processing of the effect sound processed by the reverberation echo algorithm, thereby effectively ensuring the real-time nature of the switching parameters. By only performing gain processing on the effect sound when switching the sound effect parameters, the direct sound is still played normally, and while reducing the noise generated by adjusting the sound effect parameters, the user will not feel uncomfortable due to sudden silence.

最后应说明的是:以上各实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述各实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

为了方便解释,已经结合具体的实施方式进行了上述说明。但是,上述示例性的讨论不是意图穷尽或者将实施方式限定到上述公开的具体形式。根据上述的教导,可以得到多种修改和变形。上述实施方式的选择和描述是为了更好的解释原理及实际的应用,从而使得本领域技术人员更好的使用所述实施方式以及适于具体使用考虑的各种不同的变形的实施方式。For the convenience of explanation, the above description has been made in conjunction with specific embodiments. However, the above exemplary discussion is not intended to be exhaustive or limit the embodiments to the specific forms disclosed above. Based on the above teachings, various modifications and variations can be obtained. The selection and description of the above embodiments are to better explain the principles and practical applications, so that those skilled in the art can better use the embodiments and various different variations of the embodiments suitable for specific use considerations.

Claims (10)

1. A terminal device, comprising:
A sound collector configured to: collecting an original sound signal input by a user;
an audio output device configured to: playing the output sound;
a controller configured to:
after receiving a sound effect switching parameter instruction input by a user, acquiring direct sound of the original sound signal;
Performing reverberation echo algorithm processing on the direct sound to obtain first effect sound;
Gain processing is carried out on the first effect sound so as to obtain a second effect sound and switch sound effect parameters;
mixing the direct sound, the second effect sound and the music accompaniment sound to obtain output sound;
and controlling the audio output device to play the output sound.
2. The terminal device of claim 1, wherein the controller performing the acquisition of the direct sound of the original sound signal is further configured to:
receiving an original sound signal acquired by the sound acquisition device;
And preprocessing the original sound signal to obtain direct sound, wherein the preprocessing comprises noise gate processing, expander processing, gain control, howling suppression and/or blowout prevention processing.
3. The terminal device of claim 1, wherein the controller performs gain processing on the first effect sound to obtain a second effect sound, and switching sound effect parameters is further configured to:
multiplying the first effect sound by a gain coefficient to obtain a second effect sound, wherein the gain coefficient is used for representing the gain of the first effect sound;
After the gain coefficient is reduced from a first preset value to a second preset value, switching the sound effect parameter, wherein the first preset value is larger than the second preset value;
After the sound effect parameter is switched, the gain coefficient is increased from the second preset value to the first preset value.
4. A terminal device according to claim 3, wherein the controller, after performing the reduction of the gain factor from the first preset value to the second preset value, switches the sound effect parameter, is further configured to:
reducing the gain coefficient from a first preset value to a second preset value at a first preset rate, and switching the sound effect parameters;
The controller performs increasing the gain factor from the second preset value to the first preset value, and is further configured to:
And increasing the gain coefficient from the second preset value to the first preset value at a second preset rate.
5. The terminal device according to claim 1, wherein the controller performs a mixing process of the direct sound, the second effect sound, and the musical accompaniment sound to obtain an output sound, and is further configured to:
Mixing the direct sound, the second effect sound and the music accompaniment sound to obtain mixed sound;
And performing target sound processing on the mixed sound to acquire output sound, wherein the target sound processing comprises frequency division processing, equalizer processing and/or dynamic gain control.
6. A sound processing method, comprising:
after receiving a sound effect parameter switching instruction input by a user, acquiring direct sound of an original sound signal, wherein the original sound signal is acquired by a sound acquisition device;
after receiving a sound effect parameter switching instruction input by a user, acquiring direct sound of an original sound signal, wherein the original sound signal is acquired by a sound acquisition device;
Performing reverberation echo algorithm processing on the direct sound to obtain first effect sound;
Gain processing is carried out on the first effect sound so as to obtain a second effect sound and switch sound effect parameters;
mixing the direct sound, the second effect sound and the music accompaniment sound to obtain output sound;
and controlling the audio output device to play the output sound.
7. The method of claim 6, wherein the step of obtaining the direct sound of the original sound signal comprises:
receiving an original sound signal acquired by a sound acquisition device;
And preprocessing the original sound signal to obtain direct sound, wherein the preprocessing comprises noise gate processing, expander processing, gain control, howling suppression and/or blowout prevention processing.
8. The method of claim 6, wherein the step of gain processing the first effect sound to obtain a second effect sound, and switching the sound effect parameter comprises:
Determining the second effect sound as a product of the first effect sound and a gain coefficient, wherein the gain coefficient is used for representing the gain magnitude of the first effect sound;
After the gain coefficient is reduced from a first preset value to a second preset value, switching the sound effect parameter, wherein the first preset value is larger than the second preset value;
After the sound effect parameter is switched, the gain coefficient is increased from the second preset value to the first preset value.
9. The method of claim 8, wherein the step of switching the sound effect parameter after reducing the gain factor from the first preset value to the second preset value comprises:
reducing the gain coefficient from a first preset value to a second preset value at a first preset rate, and switching the sound effect parameters;
The step of increasing the gain factor from the second preset value to the first preset value includes:
And increasing the gain coefficient from the second preset value to the first preset value at a second preset rate.
10. The method of claim 6, wherein the step of mixing the direct sound, the second effect sound, and the music accompaniment sound to obtain an output sound comprises:
Mixing the direct sound, the second effect sound and the music accompaniment sound to obtain mixed sound;
And performing target sound processing on the mixed sound to acquire output sound, wherein the target sound processing comprises frequency division processing, equalizer processing and/or dynamic gain control.
CN202410657815.0A 2024-05-24 2024-05-24 Terminal device and sound processing method Pending CN118646925A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410657815.0A CN118646925A (en) 2024-05-24 2024-05-24 Terminal device and sound processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410657815.0A CN118646925A (en) 2024-05-24 2024-05-24 Terminal device and sound processing method

Publications (1)

Publication Number Publication Date
CN118646925A true CN118646925A (en) 2024-09-13

Family

ID=92658557

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410657815.0A Pending CN118646925A (en) 2024-05-24 2024-05-24 Terminal device and sound processing method

Country Status (1)

Country Link
CN (1) CN118646925A (en)

Similar Documents

Publication Publication Date Title
US20090016540A1 (en) Auditory perception controlling device and method
JP5493056B2 (en) Dynamic adjustment of master volume control and individual volume control
US11968505B2 (en) Systems and methods for facilitating configuration of an audio system
US11997471B2 (en) Dynamics processing effect architecture
CN112185324B (en) Tuning method, device, storage medium, intelligent device and tuning system
US10827264B2 (en) Audio preferences for media content players
CN108510997A (en) Electronic equipment and echo cancellation method applied to electronic equipment
CN104349244B (en) A kind of information processing method and electronic equipment
CN114902560A (en) Apparatus and method for automatic volume control with ambient noise compensation
CN118175377A (en) Display device and audio processing method
JP7589304B2 (en) Dynamics processing across devices with different playback capabilities
CN118646925A (en) Terminal device and sound processing method
CN117896658A (en) Terminal equipment and space sound field correction method
US10181318B2 (en) Audio device and program
EP3935636B1 (en) Method and device for improving dialogue intelligibility during playback of audio data
KR0135451B1 (en) Method of setting audio in a digital music accompaniment
RU2818982C2 (en) Acoustic echo cancellation control for distributed audio devices
CN118609579A (en) Audio mixing processing method and system
CN119496474A (en) EQ equalization coefficient switching method and device, storage medium and electronic equipment
CN118660265A (en) Control method, device, equipment and medium of multifunctional digital audio playing equipment
CN119847472A (en) Dynamic processing effect architecture
CN117119343A (en) Earphone control method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination