CN117395568B - Noise reduction method, device, equipment and storage medium for audio playback device - Google Patents
Noise reduction method, device, equipment and storage medium for audio playback device Download PDFInfo
- Publication number
- CN117395568B CN117395568B CN202311701441.XA CN202311701441A CN117395568B CN 117395568 B CN117395568 B CN 117395568B CN 202311701441 A CN202311701441 A CN 202311701441A CN 117395568 B CN117395568 B CN 117395568B
- Authority
- CN
- China
- Prior art keywords
- noise reduction
- playback
- source
- audio
- audio information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R3/00—Circuits for transducers, loudspeakers or microphones
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R2410/00—Microphones
- H04R2410/05—Noise reduction with a separate noise microphone
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Acoustics & Sound (AREA)
- Signal Processing (AREA)
- Soundproofing, Sound Blocking, And Sound Damping (AREA)
Abstract
本发明涉及音频处理技术领域,提供了一种音频播放设备的降噪方法、装置、设备以及存储介质,包括:在音频播放设备的调试阶段,采集各个播放源播放的预设音频信息;其中,各个播放源各不相同,且各个播放源播放的音频信息相同;针对采集到的各个播放源的预设音频信息,生成对应的逆向降噪信号;将各个逆向降噪信号进行合成,得到合成逆向降噪信号;对所述合成逆向降噪信号进行分析,得到所述合成逆向降噪信号对应的信号生成方式;基于所述信号生成方式,生成对应的降噪方式,作为所述音频播放设备的降噪方式。本发明中,通过针对各个不同的播放源,采用统一的降噪方式,避免根据不同的播放源分别进行降噪算法的调整。
The present invention relates to the field of audio processing technology, and provides a noise reduction method, device, equipment and storage medium for an audio playback device, including: in the debugging stage of the audio playback device, collecting preset audio information played by each playback source; wherein each playback source is different, and the audio information played by each playback source is the same; generating a corresponding reverse noise reduction signal for the preset audio information collected from each playback source; synthesizing each reverse noise reduction signal to obtain a synthesized reverse noise reduction signal; analyzing the synthesized reverse noise reduction signal to obtain a signal generation method corresponding to the synthesized reverse noise reduction signal; based on the signal generation method, generating a corresponding noise reduction method as the noise reduction method of the audio playback device. In the present invention, by adopting a unified noise reduction method for each different playback source, it is avoided to adjust the noise reduction algorithm according to different playback sources.
Description
技术领域Technical Field
本发明涉及音频处理的技术领域,特别涉及一种音频播放设备的降噪方法、装置、设备以及存储介质。The present invention relates to the technical field of audio processing, and in particular to a noise reduction method, device, equipment and storage medium for an audio playback device.
背景技术Background technique
在音频播放设备中,由于各种原因(如传输过程中的干扰、设备本身的噪音等),会导致音频信号中存在噪音干扰,从而影响音频的播放质量。为了提供更好的音频体验,现有技术中常采用降噪技术来减少噪音干扰。In audio playback equipment, due to various reasons (such as interference during the transmission process, noise from the equipment itself, etc.), there will be noise interference in the audio signal, thus affecting the audio playback quality. In order to provide a better audio experience, noise reduction technology is often used in the existing technology to reduce noise interference.
目前常见的降噪技术包括主动降噪和被动降噪。主动降噪技术通过使用降噪装置或算法,主动地发出与噪音相反的信号,以实现对噪音的抵消。被动降噪技术则是在音频播放设备中添加降噪模块,根据预设的降噪信号来实现对噪音的抑制。Currently common noise reduction technologies include active noise reduction and passive noise reduction. Active noise reduction technology uses noise reduction devices or algorithms to actively send out signals that are opposite to the noise to offset the noise. Passive noise reduction technology adds a noise reduction module to the audio playback device to suppress noise based on the preset noise reduction signal.
然而,现有的降噪技术在实际应用中存在以下问题:However, existing noise reduction technologies have the following problems in practical applications:
降噪效果为了满足不同播放源和音频信息的要求,需要针对特定的噪音进行精确处理。降噪算法或模块的设计和优化需根据不同的播放源分别进行调整,造成在接收各个不同的播放源的音频时需要采用不同的降噪方式,数据处理量大,算法冗余,造成成本提高。In order to meet the requirements of different playback sources and audio information, the noise reduction effect needs to be accurately processed for specific noises. The design and optimization of noise reduction algorithms or modules need to be adjusted according to different playback sources, resulting in the need to use different noise reduction methods when receiving audio from different playback sources, large data processing volume, algorithm redundancy, and increased costs.
发明内容Contents of the invention
本发明的主要目的为提供一种音频播放设备的降噪方法、装置、设备以及存储介质,旨在避免根据不同的播放源分别进行降噪算法的调整。The main purpose of the present invention is to provide a noise reduction method, device, equipment and storage medium for audio playback equipment, aiming to avoid separately adjusting the noise reduction algorithm according to different playback sources.
为实现上述目的,本发明提供了一种音频播放设备的降噪方法,应用于音频播放设备,所述方法包括以下步骤:In order to achieve the above object, the present invention provides a noise reduction method for audio playback equipment, which is applied to the audio playback equipment. The method includes the following steps:
在音频播放设备的调试阶段,采集各个播放源播放的预设音频信息;其中,各个播放源各不相同,且各个播放源播放的音频信息相同;During the debugging phase of the audio playback device, the preset audio information played by each playback source is collected; each playback source is different, and the audio information played by each playback source is the same;
针对采集到的各个播放源的预设音频信息,生成对应的逆向降噪信号;Generate corresponding reverse noise reduction signals for the collected preset audio information of each playback source;
将各个逆向降噪信号进行合成,得到合成逆向降噪信号;Synthesize each reverse noise reduction signal to obtain a synthetic reverse noise reduction signal;
对所述合成逆向降噪信号进行分析,得到所述合成逆向降噪信号对应的信号生成方式;基于所述信号生成方式,生成对应的降噪方式,作为所述音频播放设备的降噪方式。The synthetic reverse noise reduction signal is analyzed to obtain the signal generation method corresponding to the synthetic reverse noise reduction signal; based on the signal generation method, the corresponding noise reduction method is generated as the noise reduction method of the audio playback device.
进一步地,所述采集各个播放源播放的预设音频信息的步骤,包括:Further, the step of collecting preset audio information played by each play source includes:
控制旋转装置带动音频播放设备进行旋转,并依次朝向各个播放源;其中,各个播放源围成一圈,所述旋转装置以及音频播放设备处于中心;Control the rotating device to drive the audio playback equipment to rotate and move toward each playback source in turn; wherein, each playback source forms a circle, and the rotation device and the audio playback equipment are in the center;
当检测到音频播放设备朝向其中一个播放源时,控制对应的播放源播放预设音频信息;When it is detected that the audio playback device is facing one of the playback sources, control the corresponding playback source to play the preset audio information;
在对应的播放源播放预设音频信息完毕之后,控制所述旋转装置带动音频播放设备进行旋转并朝向下一个播放源。After the corresponding play source completes playing the preset audio information, the rotating device is controlled to drive the audio playback device to rotate and move toward the next play source.
进一步地,所述针对采集到的各个播放源的预设音频信息,生成对应的逆向降噪信号的步骤,包括:Further, the step of generating corresponding reverse noise reduction signals for the collected preset audio information of each playback source includes:
提取采集到的各个播放源的预设音频信息中携带的噪声信号;Extract the noise signal carried in the collected preset audio information of each playback source;
生成与所述噪声信号波形完全相反的信号,作为对应的逆向降噪信号。A signal completely opposite to the waveform of the noise signal is generated as the corresponding inverse noise reduction signal.
进一步地,所述对所述合成逆向降噪信号进行分析,得到所述合成逆向降噪信号对应的信号生成方式;基于所述信号生成方式,生成对应的降噪方式,作为所述音频播放设备的降噪方式的步骤,包括:Further, the synthetic reverse noise reduction signal is analyzed to obtain a signal generation method corresponding to the synthetic reverse noise reduction signal; based on the signal generation method, a corresponding noise reduction method is generated as the audio playback device The steps for noise reduction include:
提取所述合成逆向降噪信号的频谱特征,分析所述频谱特征的变化趋势;Extracting the frequency spectrum characteristics of the synthesized inverse noise reduction signal, and analyzing the changing trend of the frequency spectrum characteristics;
基于所述频谱特征的变化趋势,检测所述合成逆向降噪信号中存在的噪声类型和噪声频带的位置;Based on the changing trend of the spectrum characteristics, detect the type of noise and the position of the noise frequency band existing in the synthetic inverse noise reduction signal;
根据所述噪声类型和噪声频带的位置,确定降噪信号生成的基本原理和算法;其中,所述算法中包括频率控制和相位控制;According to the noise type and the position of the noise frequency band, the basic principle and algorithm of noise reduction signal generation are determined; wherein the algorithm includes frequency control and phase control;
基于所述降噪信号生成的基本原理和算法,在数据库中匹配得到对应的降噪方式,作为所述音频播放设备的降噪方式。Based on the basic principle and algorithm of generating the noise reduction signal, a corresponding noise reduction method is matched in a database and used as the noise reduction method of the audio playback device.
进一步地,所述基于所述信号生成方式,生成对应的降噪方式,作为所述音频播放设备的降噪方式的步骤之后,包括:Further, after the step of generating a corresponding noise reduction method based on the signal generation method as the noise reduction method of the audio playback device, the method further comprises:
在使用阶段,控制各个所述播放源同时播放音频信息;During the use phase, each of the playback sources is controlled to play audio information simultaneously;
所述音频播放设备采集各个播放源播放的音频信息,组合为组合音频信息;采用所述降噪方式对所述组合音频信息进行降噪处理,得到降噪后的目标音频信息;The audio playback device collects audio information played by each playback source and combines it into combined audio information; the combined audio information is subjected to noise reduction processing by the noise reduction method to obtain target audio information after noise reduction;
将所述目标音频信息加密存储至管理端。The target audio information is encrypted and stored in the management terminal.
进一步地,所述将所述目标音频信息加密存储至管理端的步骤,包括:Further, the step of encrypting and storing the target audio information to the management terminal includes:
获取调试阶段时,各个播放源播放预设音频信息的播放顺序;其中,各个播放源依次播放预设音频信息,所述播放顺序中包括依序排列的播放源的名称;When obtaining the debugging stage, each playback source plays the playback sequence of the preset audio information; wherein each playback source plays the preset audio information in sequence, and the playback order includes the names of the playback sources arranged in sequence;
获取预设的播放源方阵;其中,所述播放源方阵包括四排四列,且每个位置上具有一个播放源的名称,播放源方阵中的每个播放源的名称具有对应的方阵序号;所述序号组成为行号-列号;Obtain a preset play source square matrix; wherein, the play source square matrix includes four rows and four columns, and each position has a name of a play source, and the name of each play source in the play source square matrix has a corresponding Square matrix serial number; the serial number consists of row number-column number;
在所述播放顺序中选择指定的三个播放源的名称,并确定指定的三个播放源的名称在播放排序中的排列序号;Select the names of the three designated play sources in the play sequence, and determine the order numbers of the names of the three designated play sources in the play sequence;
在所述播放源方阵中,确定指定的三个播放源的名称对应的方阵序号;In the square matrix of play sources, determine the square matrix serial numbers corresponding to the names of the three designated play sources;
将所述指定的三个播放源的名称在播放排序中的排列序号以及指定的三个播放源的名称对应的方阵序号代入至预设公式中进行计算,得到对应的计算结果;对所述计算结果进行编码,得到对应的编码值作为加密密码;Substituting the order numbers of the names of the three specified play sources in the playback sorting and the square matrix serial numbers corresponding to the names of the three specified play sources into the preset formula for calculation, and obtaining the corresponding calculation results; The calculation results are encoded and the corresponding encoded value is obtained as the encryption password;
基于所述加密密码对所述目标音频信息进行加密,并存储至管理端。The target audio information is encrypted based on the encryption password and stored in the management terminal.
进一步地,所述将所述目标音频信息加密存储至管理端的步骤,包括:Further, the step of encrypting and storing the target audio information to the management terminal includes:
获取调试阶段时,各个播放源播放预设音频信息的播放顺序;其中,各个播放源依次播放预设音频信息,所述播放顺序中包括依序排列的播放源的名称;When obtaining the debugging stage, each playback source plays the playback sequence of the preset audio information; wherein each playback source plays the preset audio information in sequence, and the playback order includes the names of the playback sources arranged in sequence;
获取预设的播放源方阵;其中,所述播放源方阵包括四排四列,且每个位置上具有一个播放源的名称,播放源方阵中的每个播放源的名称具有对应的方阵序号;所述序号组成为行号-列号;Obtain a preset play source square matrix; wherein, the play source square matrix includes four rows and four columns, and each position has a name of a play source, and the name of each play source in the play source square matrix has a corresponding Square matrix serial number; the serial number consists of row number-column number;
在所述播放顺序中选择排列在前三位的播放源的名称,作为第一目标播放源的名称;Select the names of the top three playback sources in the playback order as the names of the first target playback sources;
在所述播放源方阵中,剔除除所述第一目标播放源的名称之外的所有播放源的名称,作为第二目标播放源的名称;按照第二目标播放源的名称在预设的播放源方阵中的排序;In the square matrix of play sources, the names of all play sources except the name of the first target play source are eliminated as the names of the second target play sources; according to the name of the second target play source, the preset Sorting in the playback source matrix;
在预设的播放源方阵中,将所述第一目标播放源的名称依序添加至第一行中;将所述第二目标播放源的名称按照其在预设的播放源方阵中的原始排序插入至预设的播放源方阵,得到变更播放源方阵;In the default play source matrix, add the names of the first target play sources to the first row in order; add the names of the second target play sources according to their names in the default play source matrix. The original sequence is inserted into the default play source square matrix to obtain the changed play source square matrix;
在变更播放源方阵中确定指定的四个播放源的名称对应的方阵序号;Determine the array serial numbers corresponding to the names of the four specified play sources in the change play source array;
将所述指定的四个播放源的名称对应的方阵序号依次进行相乘计算,得到对应的计算结果;对所述计算结果进行编码,得到对应的编码值作为加密密码;The square matrix numbers corresponding to the names of the four specified playback sources are multiplied in sequence to obtain corresponding calculation results; the calculation results are encoded to obtain corresponding encoding values as encryption passwords;
基于所述加密密码对所述目标音频信息进行加密,并存储至管理端。The target audio information is encrypted based on the encryption password and stored in the management end.
本发明还提供了一种音频播放设备的降噪装置,应用于音频播放设备,包括:The present invention also provides a noise reduction device for an audio playback device, which is applied to the audio playback device and includes:
采集单元,用于在音频播放设备的调试阶段,采集各个播放源播放的预设音频信息;其中,各个播放源各不相同,且各个播放源播放的音频信息相同;The collection unit is used to collect preset audio information played by each playback source during the debugging stage of the audio playback device; wherein, each playback source is different, and the audio information played by each playback source is the same;
生成单元,用于针对采集到的各个播放源的预设音频信息,生成对应的逆向降噪信号;A generating unit, configured to generate a corresponding inverse noise reduction signal according to preset audio information of each playback source collected;
合成单元,用于将各个逆向降噪信号进行合成,得到合成逆向降噪信号;The synthesis unit is used to synthesize each reverse noise reduction signal to obtain a synthetic reverse noise reduction signal;
分析单元,用于对所述合成逆向降噪信号进行分析,得到所述合成逆向降噪信号对应的信号生成方式;基于所述信号生成方式,生成对应的降噪方式,作为所述音频播放设备的降噪方式。An analysis unit, configured to analyze the synthetic reverse noise reduction signal and obtain a signal generation method corresponding to the synthetic reverse noise reduction signal; based on the signal generation method, generate a corresponding noise reduction method as the audio playback device noise reduction method.
本发明还提供一种计算机设备,包括存储器和处理器,所述存储器中存储有计算机程序,所述处理器执行所述计算机程序时实现上述任一项所述方法的步骤。The present invention also provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any one of the above methods when executing the computer program.
本发明还提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述任一项所述的方法的步骤。The present invention also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above methods are implemented.
本发明提供的音频播放设备的降噪方法、装置、设备以及存储介质,包括:在音频播放设备的调试阶段,采集各个播放源播放的预设音频信息;其中,各个播放源各不相同,且各个播放源播放的音频信息相同;针对采集到的各个播放源的预设音频信息,生成对应的逆向降噪信号;将各个逆向降噪信号进行合成,得到合成逆向降噪信号;对所述合成逆向降噪信号进行分析,得到所述合成逆向降噪信号对应的信号生成方式;基于所述信号生成方式,生成对应的降噪方式,作为所述音频播放设备的降噪方式。本发明中,通过针对各个不同的播放源,采用统一的降噪方式,避免根据不同的播放源分别进行降噪算法的调整。The noise reduction method, device, equipment and storage medium of audio playback equipment provided by the present invention include: during the debugging stage of the audio playback equipment, collecting preset audio information played by each playback source; wherein each playback source is different, and The audio information played by each playback source is the same; corresponding reverse noise reduction signals are generated for the collected preset audio information of each playback source; each reverse noise reduction signal is synthesized to obtain a synthetic reverse noise reduction signal; the synthesized The reverse noise reduction signal is analyzed to obtain the signal generation method corresponding to the synthetic reverse noise reduction signal; based on the signal generation method, the corresponding noise reduction method is generated as the noise reduction method of the audio playback device. In the present invention, by adopting a unified noise reduction method for different playback sources, it is avoided to adjust the noise reduction algorithm according to different playback sources.
附图说明Description of drawings
图1是本发明一实施例中音频播放设备的降噪方法步骤示意图;Figure 1 is a schematic diagram of the steps of a noise reduction method for audio playback equipment in an embodiment of the present invention;
图2是本发明一实施例中音频播放设备的降噪装置结构框图;FIG2 is a structural block diagram of a noise reduction device for an audio playback device according to an embodiment of the present invention;
图3是本发明一实施例的计算机设备的结构示意框图。FIG. 3 is a schematic block diagram of the structure of a computer device according to an embodiment of the present invention.
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization of the purpose, functional features and advantages of the present invention will be further described with reference to the embodiments and the accompanying drawings.
具体实施方式Detailed ways
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the purpose, technical solutions and advantages of the present invention more clear, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention and are not intended to limit the present invention.
参照图1,本发明一实施例中提供了一种音频播放设备的降噪方法,应用于音频播放设备,所述方法包括以下步骤:Referring to Figure 1, an embodiment of the present invention provides a noise reduction method for audio playback equipment, which is applied to the audio playback equipment. The method includes the following steps:
步骤S1,在音频播放设备的调试阶段,采集各个播放源播放的预设音频信息;其中,各个播放源各不相同,且各个播放源播放的音频信息相同;Step S1, in the debugging stage of the audio playback device, collecting preset audio information played by each playback source; wherein each playback source is different, and the audio information played by each playback source is the same;
步骤S2,针对采集到的各个播放源的预设音频信息,生成对应的逆向降噪信号;Step S2: Generate corresponding reverse noise reduction signals for the collected preset audio information of each playback source;
步骤S3,将各个逆向降噪信号进行合成,得到合成逆向降噪信号;Step S3, synthesize each reverse noise reduction signal to obtain a synthetic reverse noise reduction signal;
步骤S4,对所述合成逆向降噪信号进行分析,得到所述合成逆向降噪信号对应的信号生成方式;基于所述信号生成方式,生成对应的降噪方式,作为所述音频播放设备的降噪方式。Step S4: Analyze the synthesized reverse noise reduction signal to obtain the signal generation method corresponding to the synthetic reverse noise reduction signal; based on the signal generation method, generate the corresponding noise reduction method as the reduction method of the audio playback device. Noise mode.
在本实施例中,如上述步骤S1所述的,在音频播放设备的调试阶段,需要对各个播放源进行采集,获取它们播放的预设音频信息。上述播放源可以是不同的音频设备或者不同的音频输入通道。各个播放源之间的音频信息要求是相同的,即它们要播放相同的音频内容。但是各个播放源是不同的音频设备或者不同的音频输入通道。通过采集这些播放源的预设音频信息,为后续的逆向降噪信号生成做准备。In this embodiment, as described in step S1 above, during the debugging phase of the audio playback device, it is necessary to collect each playback source and obtain the preset audio information played by them. The above playback sources can be different audio devices or different audio input channels. The audio information requirements between various playback sources are the same, that is, they must play the same audio content. But each playback source is a different audio device or a different audio input channel. By collecting the preset audio information of these playback sources, we prepare for subsequent reverse noise reduction signal generation.
如上述步骤S2所述的,在采集到各个播放源的预设音频信息之后,根据这些音频信息,生成对应的逆向降噪信号。逆向降噪信号是一种与预设音频信息相反的信号,其目的是对抗或抵消播放源中存在的噪音。逆向降噪的原理是通过合成一个与噪音相反的信号,并将其与播放源的音频信号混合,实现对噪音的消除或降低。生成逆向降噪信号的方法可以根据实际情况选择合适的降噪算法或模型,如频域滤波、自适应滤波等。生成的逆向降噪信号将用于后续步骤中的合成和分析。As described in step S2 above, after collecting the preset audio information of each playback source, the corresponding reverse noise reduction signal is generated based on the audio information. An inverse noise reduction signal is a signal that is the opposite of the preset audio information, and its purpose is to combat or cancel the noise present in the playback source. The principle of inverse noise reduction is to eliminate or reduce the noise by synthesizing a signal that is opposite to the noise and mixing it with the audio signal of the playback source. The method of generating inverse noise reduction signals can select an appropriate noise reduction algorithm or model according to the actual situation, such as frequency domain filtering, adaptive filtering, etc. The resulting inverse denoised signal will be used for synthesis and analysis in subsequent steps.
如上述步骤S3所述的,生成了各个播放源的逆向降噪信号后,接下来将这些逆向降噪信号进行合成。合成逆向降噪信号是为了将各个播放源的逆向降噪效果综合起来,在播放设备中应用于降噪过程。合成的方法可以采用加权平均、叠加等方式,将各个逆向降噪信号叠加在一起形成合成逆向降噪信号。合成逆向降噪信号将包含各个播放源逆向降噪信号共同作用后的降噪效果。As described in step S3 above, after the reverse noise reduction signals of each play source are generated, these reverse noise reduction signals are then synthesized. The purpose of synthesizing the reverse noise reduction signal is to combine the reverse noise reduction effects of each playback source and apply it to the noise reduction process in the playback equipment. The synthesis method can use weighted averaging, superposition, etc. to superimpose the various reverse noise reduction signals together to form a synthetic reverse noise reduction signal. The synthesized reverse noise reduction signal will include the noise reduction effect of the reverse noise reduction signals from each playback source.
如上述步骤S4所述的,在得到合成逆向降噪信号之后需要进行分析。分析的目的是确定合成逆向降噪信号的生成方式,即通过分析合成逆向降噪信号的特征、频谱、时域等信息,推断出它是如何由各个逆向降噪信号合成得到的。得到信号生成方式后,就可以根据该方式来生成对应的降噪方式。降噪方式是一种针对特定的合成逆向降噪信号的处理方法或算法,用于降低或消除噪音。生成的降噪方式将作为音频播放设备的降噪方式,用于实时播放音频时抑制噪音。根据合成逆向降噪信号的生成方式来生成对应的降噪方式,可以更好地适应不同噪音条件下的音频播放需求,并提供更好的降噪效果。As described in step S4 above, analysis needs to be performed after obtaining the synthetic inverse noise reduction signal. The purpose of the analysis is to determine how the synthetic inverse denoising signal is generated, that is, by analyzing the characteristics, spectrum, time domain and other information of the synthetic inverse denoising signal, infer how it is synthesized from each inverse denoising signal. After obtaining the signal generation method, the corresponding noise reduction method can be generated based on this method. The noise reduction method is a processing method or algorithm for a specific synthetic inverse noise reduction signal, used to reduce or eliminate noise. The generated noise reduction method will be used as the noise reduction method of the audio playback device to suppress noise when playing audio in real time. Generating corresponding noise reduction methods based on the generation method of synthetic inverse noise reduction signals can better adapt to audio playback needs under different noise conditions and provide better noise reduction effects.
在本实施例中,根据不同播放源的预设音频信息生成逆向降噪信号,并通过分析合成逆向降噪信号得到对应的信号生成方式的降噪方法,以满足不同噪音条件下音频播放设备的降噪需求,并提升音频质量。In this embodiment, an inverse noise reduction signal is generated according to preset audio information of different playback sources, and a noise reduction method of a corresponding signal generation mode is obtained by analyzing and synthesizing the inverse noise reduction signal to meet the noise reduction requirements of audio playback devices under different noise conditions and improve audio quality.
在一实施例中,所述采集各个播放源播放的预设音频信息的步骤,包括:In one embodiment, the step of collecting preset audio information played by each play source includes:
控制旋转装置带动音频播放设备进行旋转,并依次朝向各个播放源;其中,各个播放源围成一圈,所述旋转装置以及音频播放设备处于中心;Control the rotating device to drive the audio playback equipment to rotate and move toward each playback source in turn; wherein, each playback source forms a circle, and the rotation device and the audio playback equipment are in the center;
当检测到音频播放设备朝向其中一个播放源时,控制对应的播放源播放预设音频信息;When it is detected that the audio playback device is facing one of the playback sources, control the corresponding playback source to play the preset audio information;
在对应的播放源播放预设音频信息完毕之后,控制所述旋转装置带动音频播放设备进行旋转并朝向下一个播放源。After the corresponding playback source finishes playing the preset audio information, the rotating device is controlled to drive the audio playback device to rotate and face the next playback source.
在本实施例中,控制旋转装置带动音频播放设备进行旋转,并依次朝向各个播放源:音频播放设备通过旋转装置进行旋转,旋转装置位于播放源围成的一圈中心。通过控制旋转装置,音频播放设备可以依次朝向不同的播放源。In this embodiment, the rotating device is controlled to drive the audio playback device to rotate and move toward each playback source in turn: the audio playback device rotates through the rotation device, and the rotation device is located in the center of a circle surrounded by the playback sources. By controlling the rotating device, the audio playback device can be oriented toward different playback sources in sequence.
当音频播放设备朝向特定的播放源时,通过控制对应的播放源,让其播放预设的音频信息。可以通过触发播放源的播放按钮、启动播放设备的相应命令等方式来控制播放过程。When the audio playback device faces a specific playback source, the corresponding playback source is controlled to play preset audio information. The playback process can be controlled by triggering the playback button of the playback source and starting the corresponding command of the playback device.
当特定的播放源播放完预设音频信息后,控制旋转装置使音频播放设备继续旋转并朝向下一个播放源。通过循环执行这一步骤,直到音频播放设备完成对所有播放源的采集。After the specific playback source finishes playing the preset audio information, the rotating device is controlled to cause the audio playback device to continue to rotate and move toward the next playback source. This step is performed in a loop until the audio playback device completes the acquisition of all playback sources.
通过上述技术方案,可以实现对各个播放源的预设音频信息进行采集。旋转装置的控制使得音频播放设备可以方便地调整朝向,从而采集到各个不同播放源的音频信息。同时,通过逐步旋转并播放音频,可以确保对每个播放源的预设音频信息都可以被准确且完整地采集到。得到的预设音频信息将用于后续的逆向降噪信号生成和降噪方式的生成等步骤。Through the above technical solution, the preset audio information of each playback source can be collected. The control of the rotating device allows the audio playback device to easily adjust its orientation, thereby collecting audio information from different playback sources. At the same time, by gradually rotating and playing the audio, it can be ensured that the preset audio information of each playback source can be accurately and completely collected. The obtained preset audio information will be used in subsequent steps such as reverse noise reduction signal generation and noise reduction method generation.
在一实施例中,所述针对采集到的各个播放源的预设音频信息,生成对应的逆向降噪信号的步骤,包括:In one embodiment, the step of generating a corresponding reverse noise reduction signal for the preset audio information of each playback source collected includes:
提取采集到的各个播放源的预设音频信息中携带的噪声信号;Extract the noise signal carried in the collected preset audio information of each playback source;
生成与所述噪声信号波形完全相反的信号,作为对应的逆向降噪信号。A signal completely opposite to the waveform of the noise signal is generated as the corresponding inverse noise reduction signal.
在本实施例中,首先,从采集到的各个播放源的预设音频信息中提取出携带的噪声信号。其可以通过对采集到的音频信号进行分析和滤波等处理来实现。噪声信号是混杂在播放源的预设音频信号中的干扰信号,它是需要去除的目标。In this embodiment, first, the noise signal carried in the collected preset audio information of each play source is extracted. It can be realized by analyzing and filtering the collected audio signals. The noise signal is an interference signal mixed in the preset audio signal of the playback source, and it is the target that needs to be removed.
进而通过分析所提取的噪声信号,可以得到噪声信号的波形特征。然后,根据所提取的噪声信号波形特征,生成与噪声信号波形完全相反的信号,作为对应的逆向降噪信号。其可以通过一些信号处理算法如波形反转等来实现。逆向降噪信号的生成目的是与噪声信号进行相互抵消,从而降低或消除噪音。Then, by analyzing the extracted noise signal, the waveform characteristics of the noise signal can be obtained. Then, based on the extracted noise signal waveform characteristics, a signal completely opposite to the noise signal waveform is generated as the corresponding reverse noise reduction signal. It can be achieved through some signal processing algorithms such as waveform inversion, etc. The purpose of generating the inverse noise reduction signal is to cancel each other out with the noise signal, thereby reducing or eliminating the noise.
通过上述技术方案,可以根据采集到的各个播放源的预设音频信息,提取携带的噪声信号,并生成对应的逆向降噪信号。得到的逆向降噪信号将具有与噪声完全相反的波形特征,可以用于后续的合成逆向降噪信号和降噪方式的生成等步骤,实现对音频中噪音的抑制和消除。Through the above technical solution, the carried noise signal can be extracted based on the collected preset audio information of each playback source, and the corresponding reverse noise reduction signal can be generated. The obtained inverse noise reduction signal will have completely opposite waveform characteristics to the noise, and can be used in subsequent steps such as synthesizing the inverse noise reduction signal and generating the noise reduction method to suppress and eliminate noise in the audio.
在一实施例中,所述对所述合成逆向降噪信号进行分析,得到所述合成逆向降噪信号对应的信号生成方式;基于所述信号生成方式,生成对应的降噪方式,作为所述音频播放设备的降噪方式的步骤,包括:In one embodiment, the synthetic reverse noise reduction signal is analyzed to obtain a signal generation method corresponding to the synthetic reverse noise reduction signal; based on the signal generation method, a corresponding noise reduction method is generated as the The steps for noise reduction methods for audio playback devices include:
提取所述合成逆向降噪信号的频谱特征,分析所述频谱特征的变化趋势;Extract the spectral characteristics of the synthetic inverse noise reduction signal, and analyze the changing trend of the spectral characteristics;
基于所述频谱特征的变化趋势,检测所述合成逆向降噪信号中存在的噪声类型和噪声频带的位置;Based on the changing trend of the frequency spectrum feature, detecting the noise type and the position of the noise frequency band present in the synthetic inverse noise reduction signal;
根据所述噪声类型和噪声频带的位置,确定降噪信号生成的基本原理和算法;其中,所述算法中包括频率控制和相位控制;According to the noise type and the position of the noise frequency band, the basic principle and algorithm of noise reduction signal generation are determined; wherein the algorithm includes frequency control and phase control;
基于所述降噪信号生成的基本原理和算法,在数据库中匹配得到对应的降噪方式,作为所述音频播放设备的降噪方式。Based on the basic principles and algorithms of noise reduction signal generation, the corresponding noise reduction method is obtained by matching in the database, which is used as the noise reduction method of the audio playback device.
在本实施例中,首先,从合成逆向降噪信号中提取频谱特征,例如能量分布、频带分布、相位信息等。然后,对这些频谱特征进行分析,探索其变化趋势。上述过程的目的是了解合成逆向降噪信号的频谱特征与噪音信号的关系,以确定其如何降噪。In this embodiment, first, spectral features, such as energy distribution, frequency band distribution, phase information, etc., are extracted from the synthesized inverse noise reduction signal. Then, these spectral features are analyzed and their changing trends are explored. The purpose of the above process is to understand the relationship between the spectral characteristics of the synthesized inverse noise reduction signal and the noise signal to determine how to reduce noise.
然后,基于所述频谱特征的变化趋势来检测噪声类型和噪声频带的位置。频谱特征指的是音频信号在频域上的表现,可以通过对音频信号进行傅里叶变换来表示。噪声在频域上具有特定的特征,例如高频噪声会在高频段产生较大的能量。通过分析合成逆向降噪信号的频谱特征的变化趋势,可以判断出噪声类型和噪声频带的位置。Then, the noise type and the position of the noise band are detected based on the changing trend of the spectrum characteristics. Spectral characteristics refer to the performance of the audio signal in the frequency domain, which can be represented by Fourier transform of the audio signal. Noise has specific characteristics in the frequency domain. For example, high-frequency noise will generate greater energy in the high-frequency band. By analyzing the changing trend of the spectral characteristics of the synthesized inverse noise reduction signal, the noise type and the location of the noise frequency band can be determined.
进而,根据所得到的噪声类型和噪声频带的位置,确定降噪信号生成的基本原理和算法。降噪信号生成的基本原理是利用合成逆向降噪技术,通过分析噪声信号的特点,生成一种与噪声相反但具有相同频谱特征的信号,以抵消原始信号中的噪声成分。具体算法包括频率控制和相位控制。频率控制主要是调整降噪信号的频谱分布,以与噪声信号相反,相位控制则是根据噪声信号的相位信息,调整降噪信号的相位,使其与原始信号进行相消干扰。Then, according to the obtained noise type and the position of the noise frequency band, the basic principle and algorithm of noise reduction signal generation are determined. The basic principle of noise reduction signal generation is to use synthetic inverse noise reduction technology to generate a signal that is opposite to the noise but has the same spectral characteristics by analyzing the characteristics of the noise signal to offset the noise component in the original signal. The specific algorithm includes frequency control and phase control. Frequency control mainly adjusts the spectral distribution of the noise reduction signal to be opposite to the noise signal, and phase control adjusts the phase of the noise reduction signal according to the phase information of the noise signal to make it destructively interfere with the original signal.
最后,在数据库中匹配得到对应的降噪方式。数据库中存储了各种降噪方式的基本原理和算法。根据降噪信号生成的基本原理和算法,可以通过计算和匹配得到最相似的降噪方式,作为音频播放设备的降噪方式。Finally, the corresponding noise reduction method is obtained by matching in the database. The basic principles and algorithms of various noise reduction methods are stored in the database. According to the basic principles and algorithms of noise reduction signal generation, the most similar noise reduction method can be obtained through calculation and matching as the noise reduction method for audio playback equipment.
综上所述,上述技术方案通过分析频谱特征的变化趋势来检测噪声类型和噪声频带的位置,然后根据噪声类型和噪声频带的位置确定降噪信号生成的基本原理和算法,最后通过与数据库匹配得到对应的降噪方式,可以实现针对不同噪声类型和频带的降噪效果,提高音频播放设备的降噪性能以及共用性。To sum up, the above technical solution detects the noise type and the location of the noise frequency band by analyzing the changing trend of the spectrum characteristics, and then determines the basic principles and algorithms for noise reduction signal generation based on the noise type and the location of the noise frequency band, and finally matches it with the database Obtaining the corresponding noise reduction method can achieve noise reduction effects for different noise types and frequency bands, and improve the noise reduction performance and interoperability of audio playback equipment.
在一实施例中,所述基于所述信号生成方式,生成对应的降噪方式,作为所述音频播放设备的降噪方式的步骤之后,包括:In one embodiment, after the step of generating a corresponding noise reduction method based on the signal generation method as the noise reduction method of the audio playback device, the method includes:
在使用阶段,控制各个所述播放源同时播放音频信息;In the use stage, control each of the playback sources to play audio information at the same time;
所述音频播放设备采集各个播放源播放的音频信息,组合为组合音频信息;采用所述降噪方式对所述组合音频信息进行降噪处理,得到降噪后的目标音频信息;The audio playback device collects audio information played by each playback source and combines it into combined audio information; uses the noise reduction method to perform noise reduction processing on the combined audio information to obtain denoised target audio information;
将所述目标音频信息加密存储至管理端。The target audio information is encrypted and stored in the management terminal.
在本实施例中,在使用阶段,根据需求,音频播放设备可以同时连接多个播放源,如电视、收音机、手机等。控制各个播放源同时输出音频信息,以确保所有源的音频信号可以被采集到。In this embodiment, during the use phase, the audio playback device can be connected to multiple playback sources at the same time according to needs, such as TV, radio, mobile phone, etc. Control each playback source to output audio information at the same time to ensure that audio signals from all sources can be collected.
音频播放设备采集各个播放源播放的音频信息,组合为组合音频信息:音频播放设备对各个播放源输出的音频信号进行采集。可以通过连接播放源与音频播放设备的接口来实现,例如通过麦克风、HDMI、光纤等音频接口进行连接。音频播放设备将从各个播放源采集到的音频信号组合在一起,形成组合音频信息。The audio playback device collects the audio information played by each playback source and combines it into combined audio information: The audio playback device collects the audio signals output by each playback source. This can be achieved by connecting the playback source and the audio playback device through an interface, such as a microphone, HDMI, optical fiber, or other audio interface. The audio playback device combines the audio signals collected from each playback source to form combined audio information.
根据先前匹配得到的降噪方式,将所述降噪方式应用于组合音频信息。降噪方式可以根据合成逆向降噪技术的基本原理和算法来实现。根据降噪方式的算法,对组合音频信息进行处理,去除噪声成分,得到降噪后的目标音频信息。According to the noise reduction method obtained by the previous matching, the noise reduction method is applied to the combined audio information. The noise reduction method can be implemented according to the basic principle and algorithm of the synthetic inverse noise reduction technology. According to the algorithm of the noise reduction method, the combined audio information is processed to remove the noise component and obtain the target audio information after noise reduction.
为了保证音频信息的安全性,在降噪后,将目标音频信息进行加密。加密可以使用各种加密算法,如AES、RSA等来实现。加密后的目标音频信息可以存储在音频播放设备内部的存储介质中,如硬盘、闪存等,或者传输到管理端进行存储。In order to ensure the security of audio information, the target audio information is encrypted after noise reduction. Encryption can be achieved using various encryption algorithms, such as AES, RSA, etc. The encrypted target audio information can be stored in the storage medium inside the audio playback device, such as a hard disk, flash memory, etc., or transmitted to the management end for storage.
上述步骤的目的是在使用阶段对音频播放设备输出的音频信息进行降噪处理,并将降噪后的目标音频信息存储到管理端。这样可以提供更清晰、更纯净的音频体验,并保证音频信息的安全性。The purpose of the above steps is to perform noise reduction processing on the audio information output by the audio playback device during the use phase, and to store the noise-reduced target audio information to the management end. This provides a clearer, purer audio experience and ensures the security of audio information.
在一实施例中,所述将所述目标音频信息加密存储至管理端的步骤,包括:In one embodiment, the step of encrypting and storing the target audio information to the management terminal includes:
获取调试阶段时,各个播放源播放预设音频信息的播放顺序;其中,各个播放源依次播放预设音频信息,所述播放顺序中包括依序排列的播放源的名称;When obtaining the debugging stage, each playback source plays the playback sequence of the preset audio information; wherein each playback source plays the preset audio information in sequence, and the playback order includes the names of the playback sources arranged in sequence;
获取预设的播放源方阵;其中,所述播放源方阵包括四排四列,且每个位置上具有一个播放源的名称,播放源方阵中的每个播放源的名称具有对应的方阵序号;所述序号组成为行号-列号;Obtain a preset play source square matrix; wherein, the play source square matrix includes four rows and four columns, and each position has a name of a play source, and the name of each play source in the play source square matrix has a corresponding Square matrix serial number; the serial number consists of row number-column number;
在所述播放顺序中选择指定的三个播放源的名称,并确定指定的三个播放源的名称在播放排序中的排列序号;Select the names of the three designated play sources in the play sequence, and determine the order numbers of the names of the three designated play sources in the play sequence;
在所述播放源方阵中,确定指定的三个播放源的名称对应的方阵序号;In the square matrix of play sources, determine the square matrix serial numbers corresponding to the names of the three designated play sources;
将所述指定的三个播放源的名称在播放排序中的排列序号以及指定的三个播放源的名称对应的方阵序号代入至预设公式中进行计算,得到对应的计算结果;对所述计算结果进行编码,得到对应的编码值作为加密密码;Substituting the arrangement numbers of the names of the three specified playback sources in the playback order and the square matrix numbers corresponding to the names of the three specified playback sources into a preset formula for calculation to obtain a corresponding calculation result; encoding the calculation result to obtain a corresponding encoding value as an encryption password;
基于所述加密密码对所述目标音频信息进行加密,并存储至管理端。The target audio information is encrypted based on the encryption password and stored in the management end.
在本实施例中,在调试阶段,需要获取各个播放源播放预设音频信息的播放顺序。播放顺序指的是各个播放源依次播放预设音频信息的顺序。例如,假设有三个播放源A、B、C,播放顺序可以是A-B-C或者C-B-A等。通过设置播放源的参数或者编程脚本,可以在调试阶段设定播放顺序。In this embodiment, during the debugging stage, it is necessary to obtain the playback order of each playback source playing the preset audio information. The playback order refers to the order in which each playback source plays the preset audio information in sequence. For example, assuming there are three playback sources A, B, and C, the playback order may be A-B-C or C-B-A, etc. The playback order may be set during the debugging stage by setting the playback source parameters or programming scripts.
播放源方阵是一个四行四列的矩阵,每个位置上具有一个播放源的名称。播放源方阵的目的是提供播放源的方便管理和控制。方阵的行和列分别代表播放源方阵中的位置,播放源方阵中每个播放源的名称具有对应的方阵序号。The play source square matrix is a matrix with four rows and four columns, and each position has a play source name. The purpose of the playback source matrix is to provide convenient management and control of playback sources. The rows and columns of the square matrix respectively represent the positions in the square matrix of playback sources. The name of each playback source in the square matrix of playback sources has a corresponding square matrix serial number.
上述播放源的名称将用于计算加密密码。首先,在播放顺序中确定这三个指定播放源的名称在播放排序中的排列序号。例如,如果播放顺序是A-B-C,需要确定A、B、C在排序中的排列序号为1、2、3。然后,在播放源方阵中确定这三个播放源名称对应的方阵序号。方阵序号基于行号和列号,例如,A的方阵序号可能是(2,1),B的方阵序号可能是(3,2),C的方阵序号可能是(2,3)。通过获取排列序号和方阵序号,可以进一步计算得到后续需要的加密密码。The name of the above playback source will be used to calculate the encryption password. First, determine the order numbers of the names of the three specified play sources in the play sequence. For example, if the playback sequence is A-B-C, it is necessary to determine that the order numbers of A, B, and C in the sorting are 1, 2, and 3. Then, determine the array serial numbers corresponding to the three play source names in the play source array. The square matrix serial number is based on the row number and column number. For example, the square matrix serial number of A may be (2,1), the square matrix serial number of B may be (3,2), and the square matrix serial number of C may be (2,3) . By obtaining the arrangement sequence number and the square matrix sequence number, the subsequent required encryption password can be further calculated.
然后,将所述指定的三个播放源的名称在播放排序中的排列序号以及指定的三个播放源的名称对应的方阵序号代入至预设公式中进行计算,得到对应的计算结果;例如,可以是将三个播放源名称的方阵序号分别组合为数字,并分别与其对应的排列序号进行相乘之后进行相加。也可以是将三个播放源名称的方阵序号分别组合为数字,并分别进行相乘,再将相乘的结果与其对应的排列序号进行依次相乘。Then, the arrangement numbers of the names of the three specified play sources in the playback sorting and the square matrix serial numbers corresponding to the names of the three specified play sources are substituted into the preset formula for calculation, and the corresponding calculation results are obtained; for example , it can be to combine the square array serial numbers of the three play source names into numbers, multiply them by their corresponding arrangement serial numbers, and then add them together. It may also be possible to combine the square array serial numbers of the three play source names into numbers, multiply them respectively, and then multiply the multiplied results and their corresponding arrangement serial numbers in sequence.
最后,对所述计算结果进行编码,得到对应的编码值作为加密密码;其中,上述编码所采用的编码表可以是标准编码表,也可以是基于标准编码表进行变换得到;上述变换过程包括:标准编码表中包括多个编码序号以及每个序号一一映射的编码字符;在标准编码表中获取上述指定的三个播放源的名称的排列序号所对应的目标编码序号,并获取目标编码序号对应的目标编码字符,将目标编码字符提取至指定的编码字符位置,并将其它编码字符依次进行平移,使所有编码字符位置上均具有对应的编码字符,从而得到变换的编码表;上述变换的编码表则可以用于对上述计算结果进行编码,去具备很强的安全性、独特性。Finally, the calculation result is encoded to obtain the corresponding encoding value as the encryption password; the encoding table used for the above encoding can be a standard encoding table, or can be obtained by transformation based on the standard encoding table; the above transformation process includes: The standard coding table includes multiple coding serial numbers and the coding characters mapped one by one for each serial number; obtain the target coding serial number corresponding to the arrangement serial number of the names of the three playback sources specified above in the standard coding table, and obtain the target coding serial number Corresponding target coded character, extract the target coded character to the specified coded character position, and translate other coded characters in sequence so that all coded character positions have corresponding coded characters, thereby obtaining the transformed coding table; the above transformation The encoding table can be used to encode the above calculation results to have strong security and uniqueness.
最后,基于所述加密密码对所述目标音频信息进行加密,并存储至管理端。Finally, the target audio information is encrypted based on the encryption password and stored in the management end.
在一实施例中,所述将所述目标音频信息加密存储至管理端的步骤,包括:In one embodiment, the step of encrypting and storing the target audio information in a management terminal includes:
获取调试阶段时,各个播放源播放预设音频信息的播放顺序;其中,各个播放源依次播放预设音频信息,所述播放顺序中包括依序排列的播放源的名称;When obtaining the debugging stage, each playback source plays the playback sequence of the preset audio information; wherein each playback source plays the preset audio information in sequence, and the playback order includes the names of the playback sources arranged in sequence;
获取预设的播放源方阵;其中,所述播放源方阵包括四排四列,且每个位置上具有一个播放源的名称,播放源方阵中的每个播放源的名称具有对应的方阵序号;所述序号组成为行号-列号;Obtain a preset play source square matrix; wherein, the play source square matrix includes four rows and four columns, and each position has a name of a play source, and the name of each play source in the play source square matrix has a corresponding Square matrix serial number; the serial number consists of row number-column number;
在所述播放顺序中选择排列在前三位的播放源的名称,作为第一目标播放源的名称;Select the names of the top three playback sources in the playback order as the names of the first target playback sources;
在所述播放源方阵中,剔除除所述第一目标播放源的名称之外的所有播放源的名称,作为第二目标播放源的名称;按照第二目标播放源的名称在预设的播放源方阵中的排序;In the square matrix of play sources, the names of all play sources except the name of the first target play source are eliminated as the names of the second target play sources; according to the name of the second target play source, the names of the play sources are preset. Sorting in the playback source matrix;
在预设的播放源方阵中,将所述第一目标播放源的名称依序添加至第一行中;将所述第二目标播放源的名称按照其在预设的播放源方阵中的原始排序插入至预设的播放源方阵,得到变更播放源方阵;In the default play source matrix, add the names of the first target play sources to the first row in order; add the names of the second target play sources according to their names in the default play source matrix. The original sequence is inserted into the default play source square matrix to obtain the changed play source square matrix;
在变更播放源方阵中确定指定的四个播放源的名称对应的方阵序号;Determine the array serial numbers corresponding to the names of the four specified play sources in the change play source matrix;
将所述指定的四个播放源的名称对应的方阵序号依次进行相乘计算,得到对应的计算结果;对所述计算结果进行编码,得到对应的编码值作为加密密码;Multiply the square matrix serial numbers corresponding to the names of the four designated play sources in sequence to obtain the corresponding calculation results; encode the calculation results to obtain the corresponding coded values as encryption passwords;
基于所述加密密码对所述目标音频信息进行加密,并存储至管理端。The target audio information is encrypted based on the encryption password and stored in the management terminal.
在本实施例中,在调试阶段,需要确定各个播放源播放预设音频信息的播放顺序。这意味着确定每个播放源在播放顺序中的位置。播放源按照预设的音频信息的顺序依次播放,播放顺序由依序排列的播放源名称组成。In this embodiment, during the debugging phase, it is necessary to determine the playback sequence of the preset audio information played by each playback source. This means determining the position of each playback source in the playback sequence. The playback sources are played in sequence according to the preset audio information order, and the playback order consists of the playback source names arranged in sequence.
获取播放源方阵:播放源方阵是一个4x4的矩阵,每个位置上具有一个播放源的名称。播放源方阵中的每个播放源的名称都有对应的方阵序号。方阵序号由行号和列号组成,例如(1,1)表示第一行第一列的播放源。Get the source matrix: The source matrix is a 4x4 matrix with a source name at each position. Each source name in the matrix has a corresponding matrix number. The matrix number consists of a row number and a column number. For example, (1,1) represents the source in the first row and the first column.
确定目标播放源:首先从播放顺序中选择排在前三位的播放源的名称,作为第一目标播放源的名称。接下来,在播放源方阵中剔除除第一目标播放源之外的所有播放源的名称,作为第二目标播放源。第二目标播放源的名称按照其在预设的播放源方阵中的排序顺序选择。最后,在预设的播放源方阵中将第一目标播放源的名称依序添加至播放源方阵的第一行,并将第二目标播放源的名称按照其在预设的播放源方阵中的原始排序插入到变更播放源方阵中,得到新的播放源方阵,即变更播放源方阵。Determine the target play source: First, select the names of the top three play sources from the play sequence as the name of the first target play source. Next, the names of all play sources except the first target play source are eliminated from the play source matrix as the second target play source. The name of the second target play source is selected according to its sorting order in the preset play source matrix. Finally, in the default play source matrix, add the name of the first target play source to the first row of the play source matrix in sequence, and add the name of the second target play source according to the name of the second target play source in the default play source matrix. The original sorting in the matrix is inserted into the changed play source square matrix to obtain a new play source square matrix, that is, the changed play source square matrix.
在变更播放源方阵中确定指定的四个播放源的名称对应的方阵序号:根据变更后的播放源方阵,确定四个指定播放源的名称对应的方阵序号。这些方阵序号将在下一步骤中用于计算加密密码。Determine the matrix serial numbers corresponding to the names of the four designated play sources in the changed play source matrix: Based on the changed play source matrix, determine the matrix serial numbers corresponding to the names of the four specified play sources. These square numbers will be used in the next step to calculate the encryption password.
将指定的四个播放源的名称对应的方阵序号依次进行相乘计算,得到对应的计算结果:将确定的四个播放源的方阵序号依次进行相乘计算,计算结果将用于生成加密密码。Multiply the square matrix serial numbers corresponding to the names of the four designated play sources in sequence to obtain the corresponding calculation results: Multiply the square matrix serial numbers of the four determined play sources in sequence, and the calculation results will be used to generate encryption password.
对上一步骤中的计算结果进行编码,将其转换成对应的编码值,作为加密密码。编码是将原始数据转换为一种新的形式或格式的过程,以保护数据的安全性。Encode the calculation result in the previous step and convert it into the corresponding encoded value as the encryption password. Encoding is the process of converting raw data into a new form or format that protects the data.
最后,利用生成的加密密码对目标音频信息进行加密。加密是通过特定的算法将原始数据进行转换,以使其对未经授权的人员或系统难以理解或解读。加密后的音频信息被存储到管理端,以保证其安全性和保密性。Finally, the target audio information is encrypted using the generated encryption password. Encryption is the conversion of raw data through a specific algorithm so that it is difficult to understand or decipher by unauthorized people or systems. The encrypted audio information is stored at the management end to ensure its security and confidentiality.
通过上述步骤,保证了目标音频信息在存储和传输过程中的安全性和保密性。加密密码的生成和使用,以及应用加密算法将目标音频信息转化为加密形式,使得只有拥有正确密码的授权用户才能解密和访问这些目标音频信息;同时,上述加密密码的生成过程中需要结合播放顺序、以及播放源方阵进行方阵变换得到变更播放源方阵,最后基于变更播放源方阵进行加密密码的计算;进而还需要通过编码的方式进行计算结果的转换,上述过程具有很强的独特性、安全性,提升后续目标音频信息的安全性。Through the above steps, the security and confidentiality of the target audio information during storage and transmission are ensured. The generation and use of encryption passwords, and the application of encryption algorithms to convert the target audio information into encrypted form, so that only authorized users with the correct password can decrypt and access the target audio information; at the same time, the generation process of the above encryption password needs to be combined with the playback sequence , and the playback source square matrix is transformed into a square matrix to obtain a changed playback source square matrix, and finally the encryption password is calculated based on the changed playback source square matrix; furthermore, the calculation results need to be converted through encoding. The above process is very unique. safety and security, and improve the security of subsequent target audio information.
上述编码所采用的编码表可以是标准编码表,也可以是基于标准编码表进行变换得到;上述变换过程包括:标准编码表中包括多个编码序号以及每个序号一一映射的编码字符;在标准编码表中获取上述指定的四个播放源的名称的排列序号所对应的目标编码序号,并获取目标编码序号对应的目标编码字符,将目标编码字符提取至指定的编码字符位置,并将其它编码字符依次进行平移,使所有编码字符位置上均具有对应的编码字符,从而得到变换的编码表;上述变换的编码表则可以用于对上述计算结果进行编码,去具备很强的安全性、独特性。The coding table used for the above encoding can be a standard coding table, or can be obtained by transformation based on the standard coding table; the above transformation process includes: the standard coding table includes multiple coding serial numbers and coded characters mapped one by one for each serial number; in Obtain the target encoding sequence number corresponding to the sequence number of the names of the four specified playback sources in the standard encoding table, obtain the target encoding character corresponding to the target encoding sequence number, extract the target encoding character to the specified encoding character position, and add other The coded characters are translated sequentially so that all coded character positions have corresponding coded characters, thereby obtaining a transformed coding table; the above transformed coding table can be used to code the above calculation results to achieve strong security and unique.
参照图2,本发明一实施例中还提供了一种音频播放设备的降噪装置,应用于音频播放设备,包括:Referring to Figure 2, an embodiment of the present invention also provides a noise reduction device for audio playback equipment, which is applied to the audio playback equipment and includes:
采集单元,用于在音频播放设备的调试阶段,采集各个播放源播放的预设音频信息;其中,各个播放源各不相同,且各个播放源播放的音频信息相同;The collecting unit is used to collect preset audio information played by each playback source during the debugging stage of the audio playback device; wherein each playback source is different and the audio information played by each playback source is the same;
生成单元,用于针对采集到的各个播放源的预设音频信息,生成对应的逆向降噪信号;A generating unit, used for generating a corresponding inverse noise reduction signal according to the preset audio information of each playback source collected;
合成单元,用于将各个逆向降噪信号进行合成,得到合成逆向降噪信号;A synthesis unit, used for synthesizing the inverse noise reduction signals to obtain a synthesized inverse noise reduction signal;
分析单元,用于对所述合成逆向降噪信号进行分析,得到所述合成逆向降噪信号对应的信号生成方式;基于所述信号生成方式,生成对应的降噪方式,作为所述音频播放设备的降噪方式。An analysis unit, configured to analyze the synthetic reverse noise reduction signal and obtain a signal generation method corresponding to the synthetic reverse noise reduction signal; based on the signal generation method, generate a corresponding noise reduction method as the audio playback device noise reduction method.
在本实施例中,上述装置实施例中的各个单元的具体实现,请参照上述方法实施例中所述,在此不再进行赘述。In this embodiment, for the specific implementation of each unit in the above device embodiment, please refer to the above method embodiment, and will not be described again here.
参照图3,本发明实施例中还提供一种计算机设备,该计算机设备可以是服务器,其内部结构可以如图3所示。该计算机设备包括通过系统总线连接的处理器、存储器、显示屏、输入装置、网络接口和数据库。其中,该计算机设计的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统、计算机程序和数据库。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的数据库用于存储本实施例中对应的数据。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机程序被处理器执行时以实现上述方法。Referring to FIG. 3 , an embodiment of the present invention also provides a computer device. The computer device may be a server, and its internal structure may be as shown in FIG. 3 . The computer equipment includes a processor, memory, display screen, input device, network interface and database connected through a system bus. Among them, the processor designed by the computer is used to provide computing and control capabilities. The memory of the computer device includes non-volatile storage media and internal memory. The non-volatile storage medium stores operating systems, computer programs and databases. This internal memory provides an environment for the execution of operating systems and computer programs in non-volatile storage media. The database of the computer device is used to store corresponding data in this embodiment. The network interface of the computer device is used to communicate with external terminals through a network connection. The computer program implements the above method when executed by the processor.
本领域技术人员可以理解,图3中示出的结构,仅仅是与本发明方案相关的部分结构的框图,并不构成对本发明方案所应用于其上的计算机设备的限定。Those skilled in the art can understand that the structure shown in Figure 3 is only a block diagram of a partial structure related to the solution of the present invention, and does not constitute a limitation on the computer equipment to which the solution of the present invention is applied.
本发明一实施例还提供一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现上述方法。可以理解的是,本实施例中的计算机可读存储介质可以是易失性可读存储介质,也可以为非易失性可读存储介质。An embodiment of the present invention also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the above method is implemented. It can be understood that the computer-readable storage medium in this embodiment may be a volatile readable storage medium or a non-volatile readable storage medium.
综上所述,为本发明实施例中提供的音频播放设备的降噪方法、装置、设备以及存储介质,包括:在音频播放设备的调试阶段,采集各个播放源播放的预设音频信息;其中,各个播放源各不相同,且各个播放源播放的音频信息相同;针对采集到的各个播放源的预设音频信息,生成对应的逆向降噪信号;将各个逆向降噪信号进行合成,得到合成逆向降噪信号;对所述合成逆向降噪信号进行分析,得到所述合成逆向降噪信号对应的信号生成方式;基于所述信号生成方式,生成对应的降噪方式,作为所述音频播放设备的降噪方式。本发明中,通过针对各个不同的播放源,采用统一的降噪方式,避免根据不同的播放源分别进行降噪算法的调整。To sum up, the noise reduction method, device, equipment and storage medium for audio playback equipment provided in the embodiment of the present invention include: during the debugging stage of the audio playback equipment, collecting preset audio information played by each playback source; wherein , each playback source is different, and the audio information played by each playback source is the same; for the preset audio information of each playback source collected, the corresponding reverse noise reduction signal is generated; each reverse noise reduction signal is synthesized to obtain the synthesis Reverse noise reduction signal; analyze the synthetic reverse noise reduction signal to obtain the signal generation method corresponding to the synthetic reverse noise reduction signal; based on the signal generation method, generate the corresponding noise reduction method as the audio playback device noise reduction method. In the present invention, by adopting a unified noise reduction method for different playback sources, it is avoided to adjust the noise reduction algorithm according to different playback sources.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本发明所提供的和实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可以包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM通过多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双速据率SDRAM(SSRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage. In the media, when executed, the computer program may include the processes of the above method embodiments. Any reference to memory, storage, database or other media provided and used in the embodiments of the present invention may include non-volatile and/or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual-speed data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM, etc.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其它变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、装置、物品或者方法不仅包括那些要素,而且还包括没有明确列出的其它要素,或者是还包括为这种过程、装置、物品或者方法所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、装置、物品或者方法中还存在另外的相同要素。It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, device, article or method including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, device, article or method. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the presence of other identical elements in the process, device, article or method including the element.
以上所述仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其它相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only preferred embodiments of the present invention, and do not limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made by using the description and drawings of the present invention, or directly or indirectly applied to other related The technical fields are all equally included in the scope of patent protection of the present invention.
Claims (9)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311701441.XA CN117395568B (en) | 2023-12-12 | 2023-12-12 | Noise reduction method, device, equipment and storage medium for audio playback device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311701441.XA CN117395568B (en) | 2023-12-12 | 2023-12-12 | Noise reduction method, device, equipment and storage medium for audio playback device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN117395568A CN117395568A (en) | 2024-01-12 |
CN117395568B true CN117395568B (en) | 2024-04-02 |
Family
ID=89465271
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311701441.XA Active CN117395568B (en) | 2023-12-12 | 2023-12-12 | Noise reduction method, device, equipment and storage medium for audio playback device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117395568B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107240404A (en) * | 2017-06-08 | 2017-10-10 | 福建省电力勘测设计院 | Noise-reduction method for prefabricated cabin formula transformer station |
CN109738052A (en) * | 2018-09-27 | 2019-05-10 | 比亚迪股份有限公司 | Environment noise test methods, devices and systems for rail traffic |
CN112185335A (en) * | 2020-09-27 | 2021-01-05 | 上海电气集团股份有限公司 | Noise reduction method and device, electronic equipment and storage medium |
CN112489615A (en) * | 2020-10-29 | 2021-03-12 | 宁波方太厨具有限公司 | Noise reduction method, noise reduction system, noise reduction device and range hood |
CN112954547A (en) * | 2021-02-02 | 2021-06-11 | 艾普科模具材料(上海)有限公司 | Active noise reduction method, system and storage medium thereof |
CN115083440A (en) * | 2022-06-15 | 2022-09-20 | 阿里巴巴(中国)有限公司 | Audio signal noise reduction method, electronic device, and storage medium |
-
2023
- 2023-12-12 CN CN202311701441.XA patent/CN117395568B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107240404A (en) * | 2017-06-08 | 2017-10-10 | 福建省电力勘测设计院 | Noise-reduction method for prefabricated cabin formula transformer station |
CN109738052A (en) * | 2018-09-27 | 2019-05-10 | 比亚迪股份有限公司 | Environment noise test methods, devices and systems for rail traffic |
CN112185335A (en) * | 2020-09-27 | 2021-01-05 | 上海电气集团股份有限公司 | Noise reduction method and device, electronic equipment and storage medium |
CN112489615A (en) * | 2020-10-29 | 2021-03-12 | 宁波方太厨具有限公司 | Noise reduction method, noise reduction system, noise reduction device and range hood |
CN112954547A (en) * | 2021-02-02 | 2021-06-11 | 艾普科模具材料(上海)有限公司 | Active noise reduction method, system and storage medium thereof |
CN115083440A (en) * | 2022-06-15 | 2022-09-20 | 阿里巴巴(中国)有限公司 | Audio signal noise reduction method, electronic device, and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN117395568A (en) | 2024-01-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8135963B2 (en) | Program conversion device and program execution device | |
WO2016060756A1 (en) | Deriving cryptographic keys from biometric parameters | |
JP2016508323A (en) | Method for authenticating encrypted data and system for authenticating biometric data | |
Reddy et al. | Performance of iris based hard fuzzy vault | |
CN117395568B (en) | Noise reduction method, device, equipment and storage medium for audio playback device | |
Malepati | Digital media processing: DSP algorithms using C | |
CN110505054A (en) | A kind of data processing method based on dynamic whitepack, device and equipment | |
US8798261B2 (en) | Data protection using distributed security key | |
CN118841023B (en) | Audio optimization method, system and equipment based on artificial intelligence | |
Hernández-Álvarez et al. | KeyEncoder: A secure and usable EEG-based cryptographic key generation mechanism | |
CN116150784A (en) | Safety protection method, system, accelerator and chip of neural network | |
CN119696800A (en) | Data signature method, device, computer equipment and medium based on biometrics | |
CN110139001B (en) | An encryption and decryption method, device and system for optical fingerprint authentication | |
US20150025889A1 (en) | Biometric audio security | |
CN116455555A (en) | Data encryption method and device and electronic equipment | |
KR102424873B1 (en) | System and method for multi-factor authentication using password and behavior pattern | |
US11115407B2 (en) | Client side OTP generation method | |
Haciosman et al. | Protecting and identifiying smartphone apps using ICmetrics | |
CN105306975B (en) | The method and system of control word safe transmission without binding machine and card | |
CN118555143B (en) | A method for audio encryption and decryption | |
Aa | HexE-Securing Audio Contents in Voice Chat using Puzzle and Timestamp | |
Niwa et al. | Speech privacy-preserving methods using secret key for convolutional neural network models and their robustness evaluation | |
CN113726528B (en) | Bone voiceprint-based key protection method and system | |
US11178138B2 (en) | Client side OTP generation method | |
TWI887740B (en) | Micro-controller, secure system, and protection method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address |
Address after: 518000 Guangdong Province Shenzhen City Longhua District Fucheng Street Zhangge Community Dafu Road 35 Silicon Power Shenzhen Low Carbon Technology Demonstration Park Building A4, Room 301 Patentee after: Tongchuang Yinuo Technology (Shenzhen) Co.,Ltd. Country or region after: China Address before: 518000 Room 201, plant 1, No. 34, zhangyixin village, junzibu community, Guanlan street, Longhua District, Shenzhen City, Guangdong Province Patentee before: SHENZHEN E-RAN TECHNOLOGY CO.,LTD. Country or region before: China |