Movatterモバイル変換


[0]ホーム

URL:


CN115278456A - A kind of audio equipment and audio signal processing method - Google Patents

A kind of audio equipment and audio signal processing method
Download PDF

Info

Publication number
CN115278456A
CN115278456ACN202210833427.4ACN202210833427ACN115278456ACN 115278456 ACN115278456 ACN 115278456ACN 202210833427 ACN202210833427 ACN 202210833427ACN 115278456 ACN115278456 ACN 115278456A
Authority
CN
China
Prior art keywords
audio signal
audio
frequency
harmonic
sampling
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210833427.4A
Other languages
Chinese (zh)
Other versions
CN115278456B (en
Inventor
王相祥
肖劲立
胡书德
赵军良
宋永刚
刘清河
刘道正
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Xinyang Chuangzhi Technology Co ltd
Original Assignee
Shenzhen Xinyang International Trade 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 Shenzhen Xinyang International Trade Co ltdfiledCriticalShenzhen Xinyang International Trade Co ltd
Priority to CN202210833427.4ApriorityCriticalpatent/CN115278456B/en
Publication of CN115278456ApublicationCriticalpatent/CN115278456A/en
Application grantedgrantedCritical
Publication of CN115278456BpublicationCriticalpatent/CN115278456B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

Translated fromChinese

本申请实施例提供了一种音响设备及音频信号处理方法,涉及音频信号处理技术领域,解决相关技术中音质清晰度不够和音效层次效果差的问题。该音响设备包括采样率转换器、一级谐波生成器、二级谐波生成器、扬声器和控制器;控制器被配置为:响应于用户针对音频文件执行的播放操作,控制采样率转换器将音频文件中第一采样频率的第一音频信号转换为第二采样频率的第二音频信号;控制一级谐波生成器根据第一音频信号生成第一谐波信息,并根据第一谐波信息和第二音频信号生成第三音频信号;控制二级谐波生成器根据第三音频信号生成第二谐波信息,并根据第二谐波信息和第三音频信号生成第四音频信号;控制扬声器根据第四音频信号,输出目标音频信号。

Figure 202210833427

Embodiments of the present application provide an audio device and an audio signal processing method, which relate to the technical field of audio signal processing, and solve the problems of insufficient sound quality clarity and poor sound effect level in the related art. The audio equipment includes a sample rate converter, a first-order harmonic generator, a second-order harmonic generator, a speaker, and a controller; the controller is configured to: control the sample rate converter in response to a playback operation performed by a user on an audio file Convert the first audio signal of the first sampling frequency in the audio file to the second audio signal of the second sampling frequency; control the first-level harmonic generator to generate first harmonic information according to the first audio signal, and according to the first harmonic information and the second audio signal to generate a third audio signal; controlling the second harmonic generator to generate second harmonic information according to the third audio signal, and generating a fourth audio signal according to the second harmonic information and the third audio signal; controlling The speaker outputs the target audio signal according to the fourth audio signal.

Figure 202210833427

Description

Translated fromChinese
一种音响设备及音频信号处理方法Audio equipment and audio signal processing method

技术领域technical field

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

背景技术Background technique

目前,为了满足对音频资源的合理利用,采用音频数字信息压缩方式,将音频资源压缩成音频文件,再通过解压音频文件的方式来播放音频资源的内容。然而,在上述压缩过程中,会过滤音频资源中的中高频信号,会使部分有用的中高频信号丢失,从而导致直接解压音频文件来播放音频资源的内容时音质清晰度不够、音效层次效果差。At present, in order to meet the reasonable utilization of audio resources, the audio digital information compression method is adopted to compress the audio resources into audio files, and then the content of the audio resources is played by decompressing the audio files. However, in the above-mentioned compression process, the mid-high frequency signals in the audio resources will be filtered, and some useful mid-high frequency signals will be lost, resulting in insufficient sound quality clarity and poor sound effect levels when the audio files are directly decompressed to play the content of the audio resources. .

发明内容Contents of the invention

本申请实施例提供一种音响设备及音频信号处理方法,以至少解决相关技术中音质清晰度不够和音效层次效果差的问题。Embodiments of the present application provide an audio device and an audio signal processing method, so as to at least solve the problems of insufficient clarity of sound quality and poor sound layer effects in the related art.

第一方面,提供一种音响设备,包括采样率转换器、一级谐波生成器、二级谐波生成器、扬声器和控制器;控制器与采样率转换器、一级谐波生成器、二级谐波生成器和扬声器连接;控制器被配置为:响应于用户针对音频文件执行的播放操作,控制采样率转换器将音频文件中第一采样频率的第一音频信号转换为第二采样频率的第二音频信号,第一采样频率小于第二采样频率,第一音频信号的采样幅值小于第二音频信号的采样幅值;控制一级谐波生成器根据第一音频信号生成第一谐波信息,并根据第一谐波信息和第二音频信号生成第三音频信号;控制二级谐波生成器根据第三音频信号生成第二谐波信息,并根据第二谐波信息和第三音频信号生成第四音频信号;控制扬声器根据第四音频信号,输出目标音频信号,其中,第一谐波信息的频率小于第二谐波信息的频率。In the first aspect, an audio device is provided, including a sampling rate converter, a first-order harmonic generator, a second-order harmonic generator, a loudspeaker, and a controller; the controller and the sampling rate converter, the first-order harmonic generator, The second harmonic generator is connected to the loudspeaker; the controller is configured to: in response to a playback operation performed by the user on the audio file, control the sample rate converter to convert the first audio signal at the first sampling frequency in the audio file into a second sample Frequency of the second audio signal, the first sampling frequency is less than the second sampling frequency, the sampling amplitude of the first audio signal is less than the sampling amplitude of the second audio signal; control the primary harmonic generator to generate the first audio signal according to the first harmonic information, and generate a third audio signal according to the first harmonic information and the second audio signal; control the second harmonic generator to generate the second harmonic information according to the third audio signal, and generate the second harmonic information according to the second harmonic information and the second audio signal The third audio signal generates a fourth audio signal; the speaker is controlled to output a target audio signal according to the fourth audio signal, wherein the frequency of the first harmonic information is lower than the frequency of the second harmonic information.

本申请实施例提供的技术方案至少带来以下有益效果:在对压缩的音频文件执行播放操作时,先通过音响设备的采样率转换器将音频文件中的第一音频信号转换为第二音频信号,其中,第二音频信号的第二采样频率高于第一音频信号的第一采样频率,从而提高音频信号的分辨率,同时第二音频信号的采样幅值大于第二音频信号的采样幅值,以为后续生成的谐波信号插入准备时域空间。再根据一级谐波生成器生成第一谐波信息,对第二音频信号进行第一次谐波信号补偿,生成第三音频信号,以实现对音频文件压缩过程中损失的谐波信号还原或补偿,保证音响设备输出的音频更加清晰。再根据二级谐波生成器生成的第二谐波信息,对第三音频信号进行谐波信号补偿,即对第二音频信号进行第二次谐波信号补偿,生成第四音频信号,以保证音响设备输出的音频更加有层次感和空间感。最后根据第四音频信号输出目标音频信号,以保证音响设备的音频效果。通过上述方式,一方面,对音频文件中压缩过程中的损失的第一谐波信息的频率的谐波信号进行修复,以将音频文件中损失的声音特征进行还原,从而保证了音响设备输出的音频更大程度地保留原音频的声音特征,降低音响设备输出音频的失真度,提高输出音频的清晰度。另一方面,对压缩后的音频文件中损失的第二谐波信息的频率的谐波信号进行谐波信号补偿,以提高音响设备输出音频的层次感和空间感。The technical solution provided by the embodiment of the present application brings at least the following beneficial effects: when performing a playback operation on a compressed audio file, the first audio signal in the audio file is first converted into a second audio signal by the sampling rate converter of the audio device , wherein the second sampling frequency of the second audio signal is higher than the first sampling frequency of the first audio signal, thereby improving the resolution of the audio signal, while the sampling amplitude of the second audio signal is greater than the sampling amplitude of the second audio signal , to prepare the time-domain space for the subsequent generation of harmonic signal insertion. Then generate the first harmonic information according to the first-level harmonic generator, perform the first harmonic signal compensation on the second audio signal, and generate the third audio signal, so as to restore or restore the harmonic signal lost in the audio file compression process Compensation to ensure that the audio output by the audio equipment is clearer. Carry out harmonic signal compensation to the third audio signal according to the second harmonic information generated by the second-order harmonic generator, that is, perform second harmonic signal compensation to the second audio signal to generate a fourth audio signal to ensure The audio output from the audio equipment is more layered and spatial. Finally, the target audio signal is output according to the fourth audio signal, so as to ensure the audio effect of the audio equipment. Through the above method, on the one hand, the harmonic signal of the frequency of the first harmonic information lost in the compression process in the audio file is repaired, so as to restore the sound characteristics lost in the audio file, thereby ensuring the output of the audio equipment. The audio retains the sound characteristics of the original audio to a greater extent, reduces the distortion of the audio output from the audio equipment, and improves the clarity of the output audio. On the other hand, the harmonic signal compensation is performed on the harmonic signal of the frequency of the second harmonic information lost in the compressed audio file, so as to improve the layering and spatial sense of the audio output by the audio equipment.

在可能的实现方式中,第一谐波信息用于生成中高频谐波信号,第二谐波信息用于生成超高频谐波信号。基于此,根据第一谐波信息对音频文件中压缩过程中的损失的中高频谐波信号进行修复,以将音频文件中损失的声音特征进行还原,从而保证了音响设备输出的音频更大程度地保留原音频的声音特征,降低音响设备输出音频的失真度,提高输出音频的清晰度。再进一步地,根据第二谐波信息,对压缩后的音频文件中损失的超高频音频信号进行超高频谐波信号补偿,以提高音响设备输出音频的层次感和空间感。In a possible implementation manner, the first harmonic information is used to generate medium-high frequency harmonic signals, and the second harmonic information is used to generate ultra-high frequency harmonic signals. Based on this, according to the first harmonic information, the lost medium and high frequency harmonic signals in the audio file compression process are repaired to restore the lost sound features in the audio file, thereby ensuring that the audio output by the audio equipment is greater Preserve the sound characteristics of the original audio, reduce the distortion of the output audio of the audio equipment, and improve the clarity of the output audio. Still further, according to the second harmonic information, UHF harmonic signal compensation is performed on the lost UHF audio signal in the compressed audio file, so as to improve the layering and sense of space of the audio output by the audio equipment.

在一些实施例中,第一音频信号为双通道脉冲编码调制格式的音频信号,在控制采样率转换器将音频文件中第一采样频率的第一音频信号转换为第二采样频率的第二音频信号之前,还包括:在音频文件包括其他格式的音频信号的情况下,将其他格式的音频信号,转换为双通道脉冲编码调制格式的音频信号,其他格式包括双通道脉冲编码调制格式以外的格式。In some embodiments, the first audio signal is an audio signal in a dual-channel pulse code modulation format, and the sampling rate converter is controlled to convert the first audio signal of the first sampling frequency in the audio file into the second audio of the second sampling frequency Before the signal, also includes: where the audio file includes audio signals in other formats, converting the audio signals in other formats to audio signals in two-channel pulse code modulation format, other formats include formats other than two-channel pulse code modulation format .

基于此,将音频文件中的音频信号转换为统一的双通道脉冲编码调制格式,以使第一音频信号的采样频率与输出的目标音频信号的频率之间有统一的倍数转换关系,即,音频信号的采样频率是输出的目标音频信号的频率的二倍,以使采样率转换器能将第一音频信号快速转换成第二采样频率的第二音频信号,同时也能使输出目标音频信号前,音频信号能更好的分配至各个信道。另外,双通道脉冲编码调制格式可以理解为左右两通道脉冲编码调制格式,其他格式可以理解为非两通道格式和/或非脉冲编码调制格式,例如三通道格式、四通道格式、脉冲密度调制格式等。Based on this, the audio signal in the audio file is converted into a unified two-channel pulse code modulation format, so that there is a unified multiple conversion relationship between the sampling frequency of the first audio signal and the frequency of the output target audio signal, that is, the audio The sampling frequency of the signal is twice the frequency of the output target audio signal, so that the sampling rate converter can quickly convert the first audio signal into the second audio signal of the second sampling frequency, and at the same time make the output target audio signal , the audio signal can be better distributed to each channel. In addition, the dual-channel pulse code modulation format can be understood as the left and right two-channel pulse code modulation format, and other formats can be understood as non-two-channel format and/or non-pulse code modulation format, such as three-channel format, four-channel format, pulse density modulation format Wait.

在一些实施例中,根据第一谐波信息和第二音频信号,生成第三音频信号,包括:根据第一谐波信息,对第二音频信号中第一频段内的音频信号进行谐波补偿,得到第三音频信号,第一谐波信息的频率属于第一频段,第一频段为采样频率小于第一采样频率的频率范围。In some embodiments, generating the third audio signal according to the first harmonic information and the second audio signal includes: performing harmonic compensation on the audio signal in the first frequency band in the second audio signal according to the first harmonic information , to obtain the third audio signal, the frequency of the first harmonic information belongs to the first frequency band, and the first frequency band is a frequency range in which the sampling frequency is lower than the first sampling frequency.

在该实施例中,第一谐波信息是基于第一音频信号生成。根据第一谐波信息,对第二音频信号中小于第一采样频率的频率范围内音频信号,做中高频谐波信号补偿,以完成对第二音频信号中第一音频信号进行中高频谐波信号补偿,从而实现对音频文件压缩过程中的损失的中高频谐波信号进行修复,以将音频文件中损失的声音特征进行还原,从而保证了音响设备输出的音频更大程度地保留原音频的声音特征,降低音响设备输出音频的失真度,提高输出音频的清晰度。In this embodiment, the first harmonic information is generated based on the first audio signal. According to the first harmonic information, perform medium and high frequency harmonic signal compensation on the audio signal in the frequency range less than the first sampling frequency in the second audio signal, so as to complete the medium and high frequency harmonic signal on the first audio signal in the second audio signal Signal compensation, so as to realize the restoration of the lost mid-high frequency harmonic signal during the audio file compression process, so as to restore the lost sound characteristics in the audio file, thus ensuring that the audio output by the audio equipment retains the original audio to a greater extent Sound characteristics, reduce the distortion of the output audio of the audio equipment, and improve the clarity of the output audio.

在一些实施例中,根据第二谐波信息和第三音频信号,生成第四音频信号,包括:将第三音频信号中第二频段内对应的音频信号的频率,均转换成大于或等于第二采样频率的频率;第二频段为第一采样频率与第二采样频率之间的频率范围,第二谐波信息的频率属于第二频段;根据第二谐波信息,对第三音频信号中大于或等于第二采样频率的音频信号进行谐波补偿,得到第四音频信号。In some embodiments, generating the fourth audio signal according to the second harmonic information and the third audio signal includes: converting the frequency of the corresponding audio signal in the second frequency band in the third audio signal to be greater than or equal to the first The frequency of the second sampling frequency; the second frequency band is the frequency range between the first sampling frequency and the second sampling frequency, and the frequency of the second harmonic information belongs to the second frequency band; according to the second harmonic information, for the third audio signal Harmonic compensation is performed on audio signals greater than or equal to the second sampling frequency to obtain a fourth audio signal.

在该实施例中,先将第三谐波信号中,大于或等于第一采样频率且小于或等于第二采样频率频率范围内的音频信号的频率均转换成大于或等于第二采样频率的采样频率,以便于后续插入超高频谐波信号时有足够的时域空间。再将根据第二谐波信息生成的超高频谐波信号,补偿至第三音频信号中。In this embodiment, the frequency of the audio signal in the frequency range greater than or equal to the first sampling frequency and less than or equal to the second sampling frequency in the third harmonic signal is converted into a sampling frequency greater than or equal to the second sampling frequency Frequency, so that there is enough space in the time domain when inserting UHF harmonic signals later. Then, the ultra-high frequency harmonic signal generated according to the second harmonic information is compensated into the third audio signal.

在一些实施例中,音响设备还包括:可变分辨率脉冲响应滤波器;可变分辨率脉冲响应滤波器与控制器连接;控制器在控制扬声器根据第四音频信号输出目标音频信号之前,还被配置为:控制可变分辨率脉冲响应滤波器,将第四音频信号划分为多个不同频段的音频信号;按照各个频段对应的滤波参数,分别对各个频段的音频信号进行滤波处理,得到第五音频信号,其中,第五音频信号包括多个频段的音频信号经过滤波处理得到的音频信号;根据第五音频信号,生成预设频段的目标音频信号;预设频段为低于第一采样频率的频率范围;控制器控制扬声器根据第四音频信号输出目标音频信号,被配置为:控制扬声器输出预设频段的目标音频信号。In some embodiments, the audio equipment also includes: a variable resolution impulse response filter; the variable resolution impulse response filter is connected to the controller; before the controller controls the speaker to output the target audio signal according to the fourth audio signal, the It is configured to: control the variable resolution impulse response filter, divide the fourth audio signal into multiple audio signals of different frequency bands; perform filtering processing on the audio signals of each frequency band according to the filter parameters corresponding to each frequency band, and obtain the first Five audio signals, wherein the fifth audio signal includes an audio signal obtained by filtering audio signals of multiple frequency bands; according to the fifth audio signal, a target audio signal of a preset frequency band is generated; the preset frequency band is lower than the first sampling frequency frequency range; the controller controls the speaker to output a target audio signal according to the fourth audio signal, and is configured to: control the speaker to output a target audio signal of a preset frequency band.

可以理解的是,不同频段的音频信号是指不同采样频率范围的音频信号。并且各个频段对应的滤波参数是指各个频段对应的滤波参数是相互关联的,会存在相互影响。即不同的频段对应的滤波参数相互影响。It can be understood that the audio signals of different frequency bands refer to audio signals of different sampling frequency ranges. In addition, the filter parameters corresponding to each frequency band mean that the filter parameters corresponding to each frequency band are interrelated and may affect each other. That is, filter parameters corresponding to different frequency bands affect each other.

在该实施例中,根据可变分辨率脉冲响应滤波器,先对第四音频信号中多个不同频段的音频信号进行分段滤波处理。即针对多个不同的频段的音频信号,采用各个频段的音频信号对应的滤波参数进行滤波处理。再将经过滤波处理后的各个频段的音频信号,作为第五音频信号。基于此,对第四音频信号中不同采样频率的音频信号对应分别的滤波处理,能灵活综合不同分辨率需求,来调整第五谐波信号,以使输出的目标音频信号满足多分辨率需求,避免不分频段地对音频信号进行统一地滤波处理,只能满足单一的分辨率需求,而导致的音响设备灵活性差的问题,从而保证了音响设备的灵活性和精准性。In this embodiment, according to the variable-resolution impulse response filter, the fourth audio signal is first subjected to segmental filtering processing on the audio signals of multiple different frequency bands. That is, for multiple audio signals of different frequency bands, filter parameters corresponding to the audio signals of each frequency band are used to perform filtering processing. Then, the filtered audio signals of each frequency band are used as the fifth audio signal. Based on this, the audio signals of different sampling frequencies in the fourth audio signal are correspondingly filtered separately, and different resolution requirements can be flexibly integrated to adjust the fifth harmonic signal so that the output target audio signal meets the multi-resolution requirements. Avoid the problem of poor flexibility of audio equipment caused by uniform filtering of audio signals regardless of frequency band, which can only meet a single resolution requirement, thereby ensuring the flexibility and accuracy of audio equipment.

在一些实施例中,扬声器的相位与可变分辨率脉冲响应滤波器的相位相同。基于此,可变分辨率脉冲响应滤波器的相位保持与扬声器的相位在同一个相位,以使经过可变分辨率脉冲响应滤波器处理后的音频信号,输入至扬声器中经过扬声器处理后,输出的目标音频信号更加均衡,从而保证音响设备输出音频的音质更加均衡。In some embodiments, the loudspeaker is in phase with the variable resolution impulse response filter. Based on this, the phase of the variable resolution impulse response filter is kept in the same phase as that of the loudspeaker, so that the audio signal processed by the variable resolution impulse response filter is input to the loudspeaker and then output The target audio signal is more balanced, so as to ensure that the sound quality of the output audio of the audio equipment is more balanced.

在一些实施例中,在控制采样率转换器将音频文件中第一采样频率的第一音频信号转换为第二采样频率的第二音频信号之前,还包括:解析音频文件,得到第一音频信号。基于此,将音频文件解析为音频信号,为后续音频信号的的处理环节,提供音频信号来源。In some embodiments, before controlling the sampling rate converter to convert the first audio signal of the first sampling frequency in the audio file into the second audio signal of the second sampling frequency, it also includes: parsing the audio file to obtain the first audio signal . Based on this, the audio file is parsed into an audio signal, and an audio signal source is provided for subsequent audio signal processing.

第二方面,提供一种音频信号处理方法,方法包括:响应于用户针对音频文件执行的播放操作,将音频文件中第一采样频率的第一音频信号转换为第二采样频率的第二音频信号,第一采样频率小于第二采样频率,第一音频信号的采样幅值小于第二音频信号的采样幅值;根据第一音频信号生成第一谐波信息,并根据第一谐波信息和第二音频信号生成第三音频信号;根据第三音频信号生成第二谐波信息,并根据第二谐波信息和第三音频信号生成第四音频信号;控制扬声器根据第四音频信号,输出目标音频信号,其中,第一谐波信息的频率小于第二谐波信息的频率。In a second aspect, an audio signal processing method is provided, the method comprising: converting a first audio signal of a first sampling frequency in an audio file into a second audio signal of a second sampling frequency in response to a playback operation performed by a user on an audio file , the first sampling frequency is less than the second sampling frequency, the sampling amplitude of the first audio signal is less than the sampling amplitude of the second audio signal; the first harmonic information is generated according to the first audio signal, and according to the first harmonic information and the second The second audio signal generates the third audio signal; generates the second harmonic information according to the third audio signal, and generates the fourth audio signal according to the second harmonic information and the third audio signal; controls the speaker to output the target audio according to the fourth audio signal A signal in which the frequency of the first harmonic information is less than the frequency of the second harmonic information.

在一些实施例中,第一音频信号为双通道脉冲编码调制格式的音频信号,在将音频文件中第一采样频率的第一音频信号转换为第二采样频率的第二音频信号之前,还包括:In some embodiments, the first audio signal is an audio signal in a two-channel pulse code modulation format, and before converting the first audio signal of the first sampling frequency in the audio file into a second audio signal of the second sampling frequency, further comprising: :

在音频文件包括其他格式的音频信号的情况下,将其他格式的音频信号,转换为双通道脉冲编码调制格式的音频信号,其他格式包括双通道脉冲编码调制格式以外的格式。In the case that the audio file includes audio signals in other formats, the audio signals in other formats are converted into audio signals in a two-channel pulse code modulation format, and the other formats include formats other than the two-channel pulse code modulation format.

在一些实施例中,根据第一谐波信息和第二音频信号,生成第三音频信号,包括:根据第一谐波信息,对第二音频信号中第一频段内的音频信号进行谐波补偿,得到第三音频信号,第一谐波信息的频率属于第一频段,第一频段为采样频率小于第一采样频率的频率范围。In some embodiments, generating the third audio signal according to the first harmonic information and the second audio signal includes: performing harmonic compensation on the audio signal in the first frequency band in the second audio signal according to the first harmonic information , to obtain the third audio signal, the frequency of the first harmonic information belongs to the first frequency band, and the first frequency band is a frequency range in which the sampling frequency is lower than the first sampling frequency.

在一些实施例中,根据第二谐波信息和第三音频信号,生成第四音频信号,包括:将第三音频信号中第二频段内的音频信号的采样频率,均转换成第二采样频率;第二频段为第一采样频率与第二采样频率之间的频率范围,第二谐波信息的频率属于第二频段;根据第二谐波信息,对第三音频信号中第二采样频率的音频信号进行谐波补偿,得到第四音频信号。In some embodiments, generating the fourth audio signal according to the second harmonic information and the third audio signal includes: converting the sampling frequency of the audio signal in the second frequency band in the third audio signal to the second sampling frequency ; The second frequency band is the frequency range between the first sampling frequency and the second sampling frequency, and the frequency of the second harmonic information belongs to the second frequency band; according to the second harmonic information, the second sampling frequency in the third audio signal Harmonic compensation is performed on the audio signal to obtain a fourth audio signal.

在一些实施例中,在根据第四音频信号输出目标音频信号之前,方法还包括:将第四音频信号划分为多个不同频段的音频信号;按照各个频段对应的过滤参数,分别对多个频段的音频信号进行滤波处理,得到第五音频信号,其中,第五音频信号包括多个频段的音频信号经过滤得到的音频信号;根据第五音频信号,生成预设频段的目标音频信号;预设频段为低于第一采样频率的频率范围;根据第四音频信号输出目标音频信号,包括:输出低于预设频段的目标音频信号。In some embodiments, before outputting the target audio signal according to the fourth audio signal, the method further includes: dividing the fourth audio signal into audio signals of a plurality of different frequency bands; The audio signal is filtered to obtain a fifth audio signal, wherein the fifth audio signal includes an audio signal obtained by filtering audio signals of multiple frequency bands; according to the fifth audio signal, a target audio signal of a preset frequency band is generated; preset The frequency band is a frequency range lower than the first sampling frequency; outputting the target audio signal according to the fourth audio signal includes: outputting the target audio signal lower than the preset frequency band.

第三方面,本申请实施例提供一种计算机可读存储介质,该计算机可读存储介质中存储有指令,当该指令在上述任一项装置上运行时,使得装置执行上述任一项音响设备的音频信号处理方法。In the third aspect, the embodiment of the present application provides a computer-readable storage medium, the computer-readable storage medium stores instructions, and when the instructions are run on any of the above-mentioned devices, the device is made to execute any of the above-mentioned audio equipment audio signal processing methods.

第四方面,本申请的实施例提供一种芯片,包括:处理器和存储器;该存储器用于存储计算机执行指令,该处理器与存储器连接,当芯片运行时,处理器执行存储器存储的计算机执行指令,以使芯片执行上述任一项音响设备的音频信号处理方法。In a fourth aspect, an embodiment of the present application provides a chip, including: a processor and a memory; the memory is used to store computer-executable instructions, the processor is connected to the memory, and when the chip is running, the processor executes the computer-executed instructions stored in the memory Instructions, so that the chip executes any audio signal processing method of the above-mentioned audio equipment.

第五方面,本申请实施例提供一种包含指令的计算机程序产品,当其在上述任一项设备上运行时,使得装置执行上述任一项音响设备的音频信号处理方法。In a fifth aspect, the embodiment of the present application provides a computer program product containing instructions, which, when running on any of the above-mentioned devices, causes the device to execute the audio signal processing method of any of the above-mentioned audio devices.

本申请的实施例中,上述装置各部件的名字对设备本身不构成限定,在实际实现中,这些部件可以以其他名称出现。只要各个部件的功能和本申请的实施例类似,即属于本申请权利要求及其等同技术的范围之内。In the embodiments of the present application, the names of the components of the above-mentioned apparatus do not limit the device itself, and in actual implementation, these components may appear with other names. As long as the function of each component is similar to the embodiment of the present application, it belongs to the scope of the claims of the present application and equivalent technologies thereof.

另外,第二方面至第五方面中任一种设计方式所带来的技术效果可参见上述第一方面中不同设计方法所带来的技术效果,此处不再赘述。In addition, the technical effects brought about by any one of the design methods in the second aspect to the fifth aspect can refer to the technical effects brought about by the different design methods in the first aspect above, and will not be repeated here.

附图说明Description of drawings

图1为本申请实施例提供的一种音响设备的电路系统架构图;FIG. 1 is a circuit system architecture diagram of an audio device provided by an embodiment of the present application;

图2为本申请实施例提供的一种音响设备的使用场景示意图;FIG. 2 is a schematic diagram of a usage scenario of an audio device provided in an embodiment of the present application;

图3为本申请实施例提供的又一种音响设备的使用场景示意图;FIG. 3 is a schematic diagram of another audio equipment usage scenario provided by the embodiment of the present application;

图4为本申请实施例提供的一种音响设备的音频信号处理方法的流程图;FIG. 4 is a flow chart of an audio signal processing method for audio equipment provided in an embodiment of the present application;

图5为本申请实施例提供的一种采样频率转换过程示意图;FIG. 5 is a schematic diagram of a sampling frequency conversion process provided by an embodiment of the present application;

图6为本申请实施例提供的一种音响设备的一级谐波生成器谐波补偿的示意图;FIG. 6 is a schematic diagram of harmonic compensation of a first-order harmonic generator of an audio device provided by an embodiment of the present application;

图7为本申请实施例提供的另一种音响设备的音频信号处理方法的流程图;FIG. 7 is a flow chart of another audio signal processing method for audio equipment provided by the embodiment of the present application;

图8为本申请实施例提供的另一种音响设备的音频信号处理方法的流程图;FIG. 8 is a flow chart of another audio signal processing method for audio equipment provided by the embodiment of the present application;

图9为本申请实施例提供的另一种音响设备的音频信号处理方法的流程图;FIG. 9 is a flow chart of another audio signal processing method for audio equipment provided in the embodiment of the present application;

图10为本申请实施例提供的一种音响设备的可变分辨率脉冲响应滤波器滤波处理示意图;FIG. 10 is a schematic diagram of a variable resolution impulse response filter filtering process of an audio device provided by an embodiment of the present application;

图11为本申请实施例提供的又一种音响设备的使用场景示意图;Fig. 11 is a schematic diagram of another audio equipment usage scenario provided by the embodiment of the present application;

图12为本申请实施例提供的一种音响设备的音频信号处理过程示意图;FIG. 12 is a schematic diagram of an audio signal processing process of an audio device provided in an embodiment of the present application;

图13为本申请实施例提供的一种控制器的硬件结构示意图。FIG. 13 is a schematic diagram of a hardware structure of a controller provided by an embodiment of the present application.

具体实施方式Detailed ways

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.

术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本申请的描述中,除非另有说明,“多个”的含义是两个或两个以上。The terms "first" and "second" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance or implicitly specifying the quantity of indicated technical features. Thus, a feature defined as "first" and "second" may explicitly or implicitly include one or more of these features. In the description of the present application, unless otherwise specified, "plurality" means two or more.

在本申请的描述中,需要说明的是,除非另有明确的规定和限定,术语“相连”、“连接”应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或一体地连接。对于本领域的普通技术人员而言,可以具体情况理解上述术语在本申请中的具体含义。另外,在对管线进行描述时,本申请中所用“相连”、“连接”则具有进行导通的意义。具体意义需结合上下文进行理解。In the description of this application, it should be noted that, unless otherwise clearly stipulated and limited, the terms "connected" and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integrated ground connection. Those of ordinary skill in the art can understand the specific meanings of the above terms in this application in specific situations. In addition, when describing pipelines, "connected" and "connected" used in this application have the meaning of conducting. The specific meaning needs to be understood in conjunction with the context.

在本申请实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。In the embodiments of the present application, words such as "exemplary" or "for example" are used as examples, illustrations or illustrations. Any embodiment or design scheme described as "exemplary" or "for example" in the embodiments of the present application shall not be interpreted as being more preferred or more advantageous than other embodiments or design schemes. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete manner.

目前,为了满足对音频资源的合理利用,采用音频数字信息压缩方式,将音频资源压缩成音频文件,再通过解压音频文件的方式来播放音频资源的内容。然而,在上述压缩过程中,会过滤音频资源中的中高频信号,会使部分有用的中高频信号丢失,从而导致直接解压音频文件来播放音频资源的内容时音质清晰度不够、音效层次效果差。At present, in order to meet the reasonable utilization of audio resources, the audio digital information compression method is adopted to compress the audio resources into audio files, and then the content of the audio resources is played by decompressing the audio files. However, in the above-mentioned compression process, the mid-high frequency signals in the audio resources will be filtered, and some useful mid-high frequency signals will be lost, resulting in insufficient sound quality clarity and poor sound effect levels when the audio files are directly decompressed to play the content of the audio resources. .

有鉴于此,本申请实施例提供一种音响设备,该音响设备包括采样率转换器、一级谐波生成器、二级谐波生成器、扬声器和控制器,其中,控制器与采样率转换器、一级谐波生成器、二级谐波生成器和扬声器连接,用于控制采样率转换器、一级谐波生成器、二级谐波生成器对待处理的音频信号进行处理,以及控制扬声器输出处理后的音频信号。在对压缩的音频文件执行播放操作时,先通过音响设备的采样率转换器将音频文件中的第一音频信号转换为第二音频信号,其中,第二音频信号的第二采样频率高于第一音频信号的第一采样频率,从而提高音频信号的分辨率,同时第二音频信号的采样幅值大于第二音频信号的采样幅值,以为后续生成的谐波信号插入准备时域空间。再根据一级谐波生成器生成第一谐波信息,对第二音频信号进行第一次谐波信号补偿,生成第三音频信号,以实现对音频文件压缩过程中损失的谐波信号还原或补偿,保证音响设备输出的音频更加清晰。再根据二级谐波生成器生成的第二谐波信息,对第三音频信号进行谐波信号补偿,即对第二音频信号进行第二次谐波信号补偿,生成第四音频信号,以保证音响设备输出的音频更加有层次感和空间感。最后根据第四音频信号输出目标音频信号,以保证音响设备的音频效果。通过上述方式,一方面,对音频文件中压缩过程中的损失的第一谐波信息的频率的谐波信号进行修复,以将音频文件中损失的声音特征进行还原,从而保证了音响设备输出的音频更大程度地保留原音频的声音特征,降低音响设备输出音频的失真度,提高输出音频的清晰度。另一方面,对压缩后的音频文件中损失的第二谐波信息的频率的谐波信号进行谐波信号补偿,以提高音响设备输出音频的层次感和空间感。In view of this, an embodiment of the present application provides an audio device, which includes a sampling rate converter, a first-order harmonic generator, a second-order harmonic generator, a speaker, and a controller, wherein the controller and the sampling rate conversion Harmonic Generator, Harmonic Generator 1, Harmonic Generator 2, and loudspeaker connections for controlling the sample rate converter, Harmonic Generator 1, Harmonic Generator 2 processing the audio signal to be processed, and controlling The speaker outputs the processed audio signal. When performing a playback operation on the compressed audio file, the first audio signal in the audio file is first converted into a second audio signal by a sampling rate converter of the audio device, wherein the second sampling frequency of the second audio signal is higher than the first The first sampling frequency of an audio signal is used to increase the resolution of the audio signal, while the sampling amplitude of the second audio signal is greater than the sampling amplitude of the second audio signal, so as to prepare the time domain space for the insertion of the subsequently generated harmonic signal. Then generate the first harmonic information according to the first-level harmonic generator, perform the first harmonic signal compensation on the second audio signal, and generate the third audio signal, so as to restore or restore the harmonic signal lost in the audio file compression process Compensation to ensure that the audio output by the audio equipment is clearer. Carry out harmonic signal compensation to the third audio signal according to the second harmonic information generated by the second-order harmonic generator, that is, perform second harmonic signal compensation to the second audio signal to generate a fourth audio signal to ensure The audio output from the audio equipment is more layered and spatial. Finally, the target audio signal is output according to the fourth audio signal, so as to ensure the audio effect of the audio equipment. Through the above method, on the one hand, the harmonic signal of the frequency of the first harmonic information lost in the compression process in the audio file is repaired, so as to restore the sound characteristics lost in the audio file, thereby ensuring the output of the audio equipment. The audio retains the sound characteristics of the original audio to a greater extent, reduces the distortion of the audio output from the audio equipment, and improves the clarity of the output audio. On the other hand, the harmonic signal compensation is performed on the harmonic signal of the frequency of the second harmonic information lost in the compressed audio file, so as to improve the layering and spatial sense of the audio output by the audio equipment.

通过该实施方式,一方面,对音频文件中压缩过程中的损失的中高频谐波信号进行修复,以将音频文件中损失的声音特征进行还原,从而保证了音响设备输出的音频更大程度地保留原音频的声音特征,降低音响设备输出音频的失真度,提高输出音频的清晰度。另一方面,对压缩后的音频文件中损失的超高频音频信号进行超高频谐波信号补偿,以提高音响设备输出音频的层次感和空间感。Through this embodiment, on the one hand, the mid-high frequency harmonic signal lost during the compression process in the audio file is repaired, so as to restore the sound characteristics lost in the audio file, thereby ensuring that the audio output by the audio device is more Retain the sound characteristics of the original audio, reduce the distortion of the audio output from the audio equipment, and improve the clarity of the output audio. On the other hand, UHF harmonic signal compensation is performed on the lost UHF audio signal in the compressed audio file, so as to improve the layering and sense of space of the audio output from the audio equipment.

在本申请实施例中,该音响设备可以理解为具有音频资源播放功能的电子设备。示例性的,音响设备可以是嵌入式音响设备,例如,电子设备的音频输出装置,电子设备可以手机、电脑或服务器等。又一示例性的,音响设备也可以是独立的音响设备,如有线音箱、无线蓝牙音箱、无线网络音箱等。因此,本申请对音响设备的具体形式不作具体限定,可以具体需求具体设置。In this embodiment of the present application, the audio device can be understood as an electronic device with a function of playing audio resources. Exemplarily, the audio device may be an embedded audio device, for example, an audio output device of an electronic device, and the electronic device may be a mobile phone, a computer, or a server. In yet another example, the audio device may also be an independent audio device, such as a wired speaker, a wireless bluetooth speaker, a wireless network speaker, and the like. Therefore, the present application does not specifically limit the specific form of the audio equipment, which can be specifically set according to specific requirements.

参考图1示例性的示出的音响设备10的电路系统架构图。音响设备10包括:采样率转换器101、一级谐波生成器102、二级谐波生成器103、扬声器104和控制器105。其中,控制器105与采样率转换器101、一级谐波生成器102、二级谐波生成器103和扬声器104连接,采样率转换器101用于转换音频文件中音频信号的采样频率;第一谐波信息用于生成某个频段的谐波信号,如生成中高频的谐波信号,第二谐波信息用于生成另一个频段的谐波信号,如生成超高频的谐波信号,扬声器104用于输出音频信号。Referring to FIG. 1 , the circuit system structure diagram of theaudio equipment 10 is shown exemplary. Theaudio device 10 includes: asampling rate converter 101 , a primaryharmonic generator 102 , a secondaryharmonic generator 103 , aspeaker 104 and acontroller 105 . Wherein, thecontroller 105 is connected with thesampling rate converter 101, the primaryharmonic generator 102, the secondaryharmonic generator 103 and theloudspeaker 104, and thesampling rate converter 101 is used to convert the sampling frequency of the audio signal in the audio file; the second The first harmonic information is used to generate harmonic signals of a certain frequency band, such as generating mid-high frequency harmonic signals, and the second harmonic information is used to generate harmonic signals of another frequency band, such as generating ultra-high frequency harmonic signals, Thespeaker 104 is used to output audio signals.

在一些实施例中,音频文件的格式可以MP3格式或AAC格式。本申请对音频文件的具体格式不作具体限定。In some embodiments, the format of the audio file may be MP3 format or AAC format. This application does not specifically limit the specific format of the audio file.

在一些实施例中,一级谐波生成器102可以为音频激励器,该音频激励器产生与输入音频激励器的音频信号成比例的谐波信号。示例性的,一级谐波生成器102生成的谐波信号的频率是输入一级谐波生成器102的音频信号的频率的二阶指数倍。如,一级谐波生成器102生成的谐波信号是输入一级谐波生成器102的音频信号的频率的2倍、4倍(2的2次方)或8倍(2的三次方倍)等。In some embodiments, the primaryharmonic generator 102 may be an audio driver that generates a harmonic signal proportional to the audio signal input to the audio driver. Exemplarily, the frequency of the harmonic signal generated by the first-orderharmonic generator 102 is a second-order exponential multiple of the frequency of the audio signal input to the first-orderharmonic generator 102 . For example, the harmonic signal generated by the first-orderharmonic generator 102 is 2 times, 4 times (2 to the power of 2) or 8 times (2 to the third power) of the frequency of the audio signal input to the first-order harmonic generator 102 )Wait.

在一些实施例中,音响设备10还包括:解析器106,该解析器106用于对音频文件解析,以得到待处理的音频信号(即下述第一音频信号)。In some embodiments, theaudio device 10 further includes: aparser 106, configured to parse the audio file to obtain an audio signal to be processed (ie, the first audio signal described below).

在一些实施例中,音响设备10还包括:滤波器。In some embodiments, theaudio device 10 further includes: a filter.

可选的,滤波器可以为可变分辨率脉冲响应滤波器108,其中,可变分辨率脉冲响应滤波器108与控制器105连接。其中,可变分辨率脉冲响应滤波器108是根据频率、增益、品质因数和各个频段的影响因子来确定滤波参数。可变分辨率脉冲响应滤波器108中各个频段工作过程中可以相互通信,不是相对独立的,以将考虑各个频段的影响,来调节各个频段的音频信号。Optionally, the filter may be a variable resolutionimpulse response filter 108 , wherein the variable resolutionimpulse response filter 108 is connected to thecontroller 105 . Among them, the variable resolutionimpulse response filter 108 determines the filtering parameters according to the frequency, gain, quality factor and influence factor of each frequency band. The various frequency bands in the variable resolutionimpulse response filter 108 can communicate with each other during operation, and are not relatively independent, so that the influence of each frequency band will be considered to adjust the audio signal of each frequency band.

在一些实施方式中,可变分辨率脉冲响应滤波器108也称为VIR滤波器(variable-resolution impulse response,可变分辨率脉冲响应滤波器)。当采样频率增加时,VIR滤波器的MIPS值(million instructions per second,每秒处理的百万级的机器语言指令数的运算速度的指标值)按比例增加。但是,它不会像普通滤波器那样毫无意义地将一部分采样频率范围内的音频信号置于超声波范围内。因此,经过VIR滤波器处理后的音频的Hi-Res(High Resolution Audio,高解析音频)效果更好。另外,在VIR滤波器与处理器交互使用时,由于VIR滤波器的MIPS值随采样频率变化,因此VIR滤波器与处理器交互使用时的延时大大减小。In some implementations, the variable-resolutionimpulse response filter 108 is also called a VIR filter (variable-resolution impulse response, variable-resolution impulse response filter). When the sampling frequency increases, the MIPS value (million instructions per second, the index value of the operation speed of millions of machine language instructions processed per second) of the VIR filter increases proportionally. However, it doesn't pointlessly place a portion of the audio signal in the sampling frequency range into the ultrasonic range like a normal filter would. Therefore, the Hi-Res (High Resolution Audio, high-resolution audio) effect of the audio processed by the VIR filter is better. In addition, when the VIR filter is used interactively with the processor, since the MIPS value of the VIR filter changes with the sampling frequency, the delay when the VIR filter is used interactively with the processor is greatly reduced.

在一些实施例中,音响设备10还包括:显示器107。该显示器107可用于显示音响设备10的控制面板或者其他图像信息。示例性的,音响设备可以通过显示器107显示音响设备10当前的音频文件的处理过程或音频信号的波形。In some embodiments, theaudio device 10 further includes: adisplay 107 . Thedisplay 107 can be used to display the control panel of theaudio equipment 10 or other image information. Exemplarily, the audio device can display the processing process of the current audio file or the waveform of the audio signal of theaudio device 10 through thedisplay 107 .

另外,该显示器107可以是液晶显示器107、有机发光二极管(organic light-emitting diode,OLED)显示器107。显示器107的具体类型,尺寸大小和分辨率等不作限定,本领技术人员可以理解的是,显示器107可以根据需要做性能和配置上一些改变。In addition, thedisplay 107 may be aliquid crystal display 107 or an organic light-emitting diode (OLED)display 107 . The specific type, size and resolution of thedisplay 107 are not limited, and those skilled in the art can understand that the performance and configuration of thedisplay 107 can be changed as required.

示例性的,如图2所示,用户可通过在显示器107显示的控制面板操作音响设备10。Exemplarily, as shown in FIG. 2 , the user can operate theaudio device 10 through the control panel displayed on thedisplay 107 .

在一些实施例中,控制器105是指可以根据指令操作码和时序信号,产生操作控制信号,指示音响设备10执行控制指令的装置。示例性的,控制器105可以为中央处理器(central processing unit,CPU)、通用处理器网络处理器(network processor,NP)、数字信号处理器(digital signal processing,DSP)、可编程逻辑器件(programmable logicdevice,PLD)、微处理器、微控制器或它们的任意组合。控制器105还可以是其它具有处理功能的装置,例如电路、器件或软件模块,本申请实施例对此不做任何限制。In some embodiments, thecontroller 105 refers to a device that can generate an operation control signal to instruct theaudio equipment 10 to execute the control instruction according to the instruction operation code and the timing signal. Exemplarily, thecontroller 105 may be a central processing unit (central processing unit, CPU), a general-purpose processor, a network processor (network processor, NP), a digital signal processor (digital signal processing, DSP), a programmable logic device ( programmable logicdevice, PLD), microprocessor, microcontroller, or any combination thereof. Thecontroller 105 may also be other devices with processing functions, such as circuits, devices or software modules, which are not limited in this embodiment of the present application.

在一些实施例中,音响设备10还包括通信装置109,该通信装置109是用于根据各种通信协议类型与外部设备或外部服务器进行通信的组件。例如:通信装置109可以包括Wi-Fi芯片,蓝牙通信协议芯片,有线以太网通信协议芯片等其他网络通信协议芯片或近场通信协议芯片,以及红外接收器中的至少一种。In some embodiments, theaudio device 10 further includes acommunication device 109, which is a component for communicating with external devices or external servers according to various types of communication protocols. For example: thecommunication device 109 may include at least one of a Wi-Fi chip, a Bluetooth communication protocol chip, a wired Ethernet communication protocol chip and other network communication protocol chips or near-field communication protocol chips, and an infrared receiver.

在一些实施例中,音响设备10可以通过通信装置109与用户使用的终端设备(例如:手机、平板电脑、可川穿戴式移动设备等)服务器之间进行控制信号和数据信号的传输。例如,用户通过手机下达指示对某一音频文件的播放指令,音响设备10通过通信装置109接收来该指令,响应于用户指示播放对某一音频文件的播放指令,音响设备10的控制器105播放该音频文件。In some embodiments, theaudio device 10 can transmit control signals and data signals to a server of a terminal device (such as a mobile phone, a tablet computer, or a wearable mobile device, etc.) used by a user through thecommunication device 109 . For example, the user issues an instruction to play an audio file through a mobile phone, and theaudio equipment 10 receives the instruction through thecommunication device 109. In response to the user's instruction to play a playback instruction for an audio file, thecontroller 105 of theaudio equipment 10 plays the audio file. the audio file.

示例性的,如图3所示,用户可通过控制装置112操作音响设备10。该控制装置可以是移动终端或者遥控器,遥控器和音响设备10的通信包括红外协议通信或蓝牙协议通信,及其他短距离通信方式等,通过无线方式或其他有线方式来控制音响设备10。其中,无线方式可以是直连或非直连,可以经过路由,或者也可不经过路由。用户可以通过遥控器上按键,语音输入、控制面板输入等输入用户指令,来控制音响设备10。如:用户可以通过遥控器上音量加减键、频道控制键、上/下/左/右的移动按键、语音输入按键、菜单键、开关机按键等输入相应控制指令,来实现控制音响设备10的功能。Exemplarily, as shown in FIG. 3 , the user can operate theaudio equipment 10 through thecontrol device 112 . The control device can be a mobile terminal or a remote controller. The communication between the remote controller and theaudio device 10 includes infrared protocol communication or Bluetooth protocol communication, and other short-distance communication methods. Theaudio device 10 is controlled by wireless or other wired methods. Wherein, the wireless mode may be direct connection or non-direct connection, may pass through routing, or may not pass through routing. The user can control theaudio device 10 by inputting user instructions through buttons on the remote control, voice input, control panel input, and the like. For example, the user can control theaudio equipment 10 by inputting corresponding control commands through the volume plus and minus keys, channel control keys, up/down/left/right movement keys, voice input keys, menu keys, and power on/off keys on the remote control. function.

在一些实施例中,音响设备10还包括人机交互装置110,用于实现用户与音响设备10之间的交互。人机交互装置110可以包括物理按键、触控显示面板或者语音识别装置中的一项或多项。例如用户可以通过人机交互装置110启动音响设备10开始工作,也可以通过人机交互装置110设置音响设备10播放音频文件的播放程序。In some embodiments, theaudio device 10 further includes a human-computer interaction device 110 for realizing the interaction between the user and theaudio device 10 . The human-computer interaction device 110 may include one or more of a physical button, a touch display panel, or a voice recognition device. For example, the user can start theaudio device 10 to start working through the human-computer interaction device 110 , and can also set a playback program for theaudio device 10 to play audio files through the human-computer interaction device 110 .

在一些实施例中,音响设备10还包括供电电源111,用于在控制器105的控制下,将外部电源输入的电力为音响设备10提供电源供电支持。In some embodiments, theaudio device 10 further includes apower supply 111 for providing power supply support for theaudio device 10 under the control of thecontroller 105 by supplying power input from an external power source.

基于上述音响设备10,如图4所示,本申请实施例提供一种音频信号处理方法,该方法包括以下步骤:Based on the above-mentionedaudio equipment 10, as shown in FIG. 4, an embodiment of the present application provides an audio signal processing method, which includes the following steps:

步骤S101,响应于用户针对音频文件执行的播放操作,将音频文件中第一采样频率的第一音频信号转换为第二采样频率的第二音频信号。Step S101 , in response to a user's playback operation on an audio file, converting a first audio signal of a first sampling frequency in the audio file into a second audio signal of a second sampling frequency.

其中,第一采样频率小于第二采样频率,第一音频信号的采样幅值小于第二音频信号的采样幅值。Wherein, the first sampling frequency is lower than the second sampling frequency, and the sampling amplitude of the first audio signal is smaller than the sampling amplitude of the second audio signal.

在一些实施方式中,采样幅值也称为采样深度,采样深度的单位比特(bit),采样频率的单位为赫兹。第一音频信号通常为16比特32k赫兹的音频信号、16比特44.1k赫兹的音频信号或16比特48k赫兹的音频信号。In some embodiments, the sampling amplitude is also referred to as sampling depth, the unit of sampling depth is bit (bit), and the unit of sampling frequency is Hertz. The first audio signal is usually a 16-bit 32k Hz audio signal, a 16-bit 44.1k Hz audio signal or a 16-bit 48k Hz audio signal.

可选的,将16比特48k赫兹的第一音频信号转换成32比特96k赫兹的第二音频信号。Optionally, the 16-bit 48kHz first audio signal is converted into a 32-bit 96kHz second audio signal.

需要说明的是,如图5所示了经过采样率转换器处理的音频信号中加入了如图中空心点,即相对于第一音频信号,第二音频信号只是采样频率和采样幅值发生了变化,第二音频信号中包括第一音频信号。It should be noted that, as shown in Figure 5, the audio signal processed by the sampling rate converter is added with a hollow point in the figure, that is, compared with the first audio signal, the second audio signal is only the sampling frequency and sampling amplitude. Change, the second audio signal includes the first audio signal.

音频文件是指将原音频信号压缩成的各种格式下的音频文件。示例性的,该音频文件可以是MP3格式的,也可以是AAC格式的。例如,该音频文件可以是移动终端上安装的某个应用程序包括的某个音频资源。该移动终端可以是手机或电脑,某个应用程序可以是音乐播放应用程序,则音频文件为某首歌的音频资源。进一步地,如在音乐播放应用程序被时,移动设备上显示的某个应用程序界面上会显示音频文件标识(如某首歌的歌曲名),音频文件标识被触发后,会输出某首歌的音频资源。Audio files refer to audio files in various formats that compress the original audio signal. Exemplarily, the audio file may be in MP3 format or in AAC format. For example, the audio file may be an audio resource included in an application program installed on the mobile terminal. The mobile terminal can be a mobile phone or a computer, an application program can be a music playing application program, and the audio file is an audio resource of a certain song. Further, when the music playing application program is activated, an audio file identification (such as the song title of a certain song) will be displayed on an application program interface displayed on the mobile device. After the audio file identification is triggered, a certain song will be output. audio resources.

又如,该音频文件可以存储在电子设备的包括音频资源的音频文件,该电子设备可以是移动终端设备,也可以是单独用于功放音频文件的音频播放设备(如,音箱设备)。For another example, the audio file may be an audio file including audio resources stored in an electronic device, and the electronic device may be a mobile terminal device, or an audio playback device (such as a speaker device) solely used to amplify the audio file.

基于此,用户需要获取某一音频文件的音频资源时,会对该音频文件的执行播放操作。该播放操作可以直接在电子设备上显示的音频文件标识执行播放操作,如单击操作、双击操作、连续点击操作或滑动操作等。在控制器在接收到该用户的播放操作指令后,先获取音频文件的第一音频信号。并且为了提高了后续过程中音频信号的分辨率,会将第一音频信号转换为采样频率更高的(第二采样频率的)第二音频信号。其中,将第一音频信号转换为第二音频信号可以是通过音响设备的采样转换器执行实施。Based on this, when the user needs to obtain the audio resource of an audio file, the user will perform a playback operation on the audio file. The playback operation may be performed directly on the audio file identifier displayed on the electronic device, such as a single-click operation, a double-click operation, a continuous click operation, or a slide operation. After the controller receives the user's play operation instruction, first acquires the first audio signal of the audio file. And in order to improve the resolution of the audio signal in the subsequent process, the first audio signal will be converted into a second audio signal with a higher sampling frequency (second sampling frequency). Wherein, converting the first audio signal into the second audio signal may be implemented by a sampling converter of the audio equipment.

示例性的,在一些实施例中,音响设备还包括解析器,用于将音频文件解析成音频信号。这样上述第一音频信号可以通过以下实施方式获取:在控制器控制采样率转换器将音频文件中第一采样频率的第一音频信号转换为第二采样频率的第二音频信号之前,通过控制解析器解析音频文件,得到第一音频信号。其中,解析器与控制器连接。基于该实施方式,将音频文件解析为音频信号,为后续音频信号的的处理环节,提供音频信号来源。Exemplarily, in some embodiments, the audio device further includes a parser, configured to parse the audio file into an audio signal. In this way, the above-mentioned first audio signal can be obtained through the following implementation manner: before the controller controls the sampling rate converter to convert the first audio signal of the first sampling frequency in the audio file into the second audio signal of the second sampling frequency, by controlling the analysis The device parses the audio file to obtain the first audio signal. Among them, the parser is connected with the controller. Based on this embodiment, an audio file is parsed into an audio signal, and an audio signal source is provided for a subsequent audio signal processing link.

通过上述S101,将第一音频信号转换成更高采样频率的第二音频信号,提高了音频信号的分辨率,同时第二音频信号的采样幅值大于第二音频信号的采样幅值,也为后续生成的谐波信号插入准备时域空间。Through the above S101, the first audio signal is converted into a second audio signal with a higher sampling frequency, which improves the resolution of the audio signal, and at the same time, the sampling amplitude of the second audio signal is greater than the sampling amplitude of the second audio signal, which is also Subsequent interpolation of the generated harmonic signals prepares the temporal space.

步骤S102,根据第一音频信号生成第一谐波信息,并根据第一谐波信息和第二音频信号生成第三音频信号。Step S102, generating first harmonic information according to the first audio signal, and generating a third audio signal according to the first harmonic information and the second audio signal.

可以理解的是,先根据音频文件的原音频信号即第一音频信号,来生成第一谐波信息,其第一谐波信息包括第一音频信号缺失的谐波信号即第一谐波信号。再将第一谐波信号叠加至第二音频信号包括的第一音频信号中,从而生成第三音频信号。It can be understood that the first harmonic information is first generated according to the original audio signal of the audio file, that is, the first audio signal, and the first harmonic information includes a harmonic signal missing from the first audio signal, that is, the first harmonic signal. Then, the first harmonic signal is superimposed on the first audio signal included in the second audio signal, so as to generate a third audio signal.

示例性的,控制器控制一级谐波生成器,根据第一音频信号生成中高频的第一谐波信息,对第二音频信号中第一音频信号进行中高频谐波信号补偿,生成第三音频信号,其中,第一音频信号和第三音频信号的波形效果如图6所示。可见,这样对音频文件压缩过程中损失的中高频谐波信息还原或补偿,以确保音响设备输出的音频的清晰度。Exemplarily, the controller controls the primary harmonic generator to generate mid-high frequency first harmonic information according to the first audio signal, perform mid-high frequency harmonic signal compensation on the first audio signal in the second audio signal, and generate a third Audio signals, wherein the waveform effects of the first audio signal and the third audio signal are shown in FIG. 6 . It can be seen that in this way, the mid-high frequency harmonic information lost during the audio file compression process is restored or compensated to ensure the clarity of the audio output by the audio equipment.

步骤S103,根据第三音频信号生成第二谐波信息,并根据第二谐波信息和第三音频信号生成第四音频信号。Step S103, generating second harmonic information according to the third audio signal, and generating a fourth audio signal according to the second harmonic information and the third audio signal.

可选的,控制器控制二级谐波生成器,根据第三谐波信号生成超高频的第二谐波信息,对第三音频信号进行超高频谐波信号补偿,生成第四音频信号。Optionally, the controller controls the secondary harmonic generator to generate ultra-high frequency second harmonic information according to the third harmonic signal, and perform ultra-high frequency harmonic signal compensation on the third audio signal to generate a fourth audio signal .

这样通过该实施步骤,保证音响设备输出的音频更加有层次感和空间感。In this way, through this implementation step, it is ensured that the audio output by the audio equipment has a more layered and spatial sense.

步骤S104,根据第四音频信号,输出目标音频信号。Step S104, outputting a target audio signal according to the fourth audio signal.

可选的,控制扬声器根据第四音频信号,输出目标音频信号,以保证音响设备输出的音频更加有层次感和空间感。Optionally, the speaker is controlled to output the target audio signal according to the fourth audio signal, so as to ensure that the audio output by the audio device has a more layered and spatial sense.

图4所示的技术方案至少带来以下有益效果:一方面,对音频文件中压缩过程中的损失的中高频谐波信号进行修复,以将音频文件中损失的声音特征进行还原,从而保证了音响设备输出的音频更大程度地保留原音频的声音特征,降低音响设备输出音频的失真度,提高输出音频的清晰度。另一方面,对压缩后的音频文件中损失的超高频音频信号进行超高频谐波信号补偿,以提高音响设备输出音频的层次感和空间感。The technical solution shown in Figure 4 brings at least the following beneficial effects: on the one hand, the mid-high frequency harmonic signal of the loss in the compression process in the audio file is repaired, so that the sound characteristics lost in the audio file are restored, thereby ensuring The audio output by the audio equipment retains the sound characteristics of the original audio to a greater extent, reduces the distortion of the audio output by the audio equipment, and improves the clarity of the output audio. On the other hand, UHF harmonic signal compensation is performed on the lost UHF audio signal in the compressed audio file, so as to improve the layering and sense of space of the audio output from the audio equipment.

在一些实施例中,第一音频信号为双通道脉冲编码调制格式的音频信号。In some embodiments, the first audio signal is an audio signal in a two-channel pulse code modulation format.

可选的,在控制采样率转换器将音频文件中第一采样频率的第一音频信号转换为第二采样频率的第二音频信号之前,还包括:在音频文件包括其他格式的音频信号的情况下,将其他格式的音频信号,转换为双通道脉冲编码调制格式的音频信号,其他格式包括双通道脉冲编码调制格式以外的格式。Optionally, before controlling the sampling rate converter to convert the first audio signal of the first sampling frequency in the audio file into the second audio signal of the second sampling frequency, it also includes: when the audio file includes audio signals of other formats Next, convert audio signals in other formats into audio signals in the dual-channel pulse code modulation format, and the other formats include formats other than the dual-channel pulse code modulation format.

基于此,将音频文件中的音频信号转换为统一的双通道脉冲编码调制格式,以使音频信号的采样频率与输出的目标音频信号的频率之间有统一的倍数转换关系,即,音频信号的采样频率是输出的目标音频信号的频率的二倍,以使采样率转换器能将第一音频信号快速转换成第二采样频率的第二音频信号,同时也能使输出目标音频信号前,音频信号能更好的分配至各个信道。另外,双通道脉冲编码调制格式可以理解为左右两通道脉冲编码调制格式,其他格式可以理解为非两通道格式和/或非脉冲编码调制格式,例如三通道格式、四通道格式、脉冲密度调制格式等。Based on this, the audio signal in the audio file is converted into a unified two-channel pulse code modulation format, so that there is a unified multiple conversion relationship between the sampling frequency of the audio signal and the frequency of the output target audio signal, that is, the audio signal The sampling frequency is twice the frequency of the output target audio signal, so that the sampling rate converter can quickly convert the first audio signal into the second audio signal of the second sampling frequency, and also enable the output of the target audio signal. The signal can be better distributed to each channel. In addition, the dual-channel pulse code modulation format can be understood as the left and right two-channel pulse code modulation format, and other formats can be understood as non-two-channel format and/or non-pulse code modulation format, such as three-channel format, four-channel format, pulse density modulation format Wait.

在一些实施例中,结合图4,如图7所示,上述步骤S102可以具体实现为以下步骤:In some embodiments, referring to FIG. 4 , as shown in FIG. 7 , the above step S102 can be specifically implemented as the following steps:

步骤S102A,根据第一谐波信息,对第二音频信号中第一频段内的音频信号进行谐波补偿,得到第三音频信号。Step S102A, according to the first harmonic information, perform harmonic compensation on the audio signal in the first frequency band in the second audio signal to obtain a third audio signal.

需要说明的是,第一谐波信息用于生成中高频谐波信号,将中高频谐波信号插入至第二音频信号包括的第一音频信号中,以完成中高频谐波信号补偿。It should be noted that the first harmonic information is used to generate mid-high frequency harmonic signals, and the mid-high frequency harmonic signals are inserted into the first audio signal included in the second audio signal to complete mid-high frequency harmonic signal compensation.

其中,第一谐波信息的频率属于第一频段,第一频段为采样频率小于第一采样频率的频率范围。Wherein, the frequency of the first harmonic information belongs to a first frequency band, and the first frequency band is a frequency range in which the sampling frequency is lower than the first sampling frequency.

在该实施例中,第一谐波信息是基于第一音频信号生成。根据第一谐波信息,对第二音频信号中小于第一采样频率的频率范围内音频信号,做中高频谐波信号补偿,以完成对第二音频信号中第一音频信号进行中高频谐波信号补偿,从而实现对音频文件中压缩过程中的损失的中高频谐波信号进行修复,以将音频文件中损失的声音特征进行还原,从而保证了音响设备输出的音频更大程度地保留原音频的声音特征,降低音响设备输出音频的失真度,提高输出音频的清晰度。In this embodiment, the first harmonic information is generated based on the first audio signal. According to the first harmonic information, perform medium and high frequency harmonic signal compensation on the audio signal in the frequency range less than the first sampling frequency in the second audio signal, so as to complete the medium and high frequency harmonic signal on the first audio signal in the second audio signal Signal compensation, so as to realize the restoration of the lost medium and high frequency harmonic signals in the audio file compression process, so as to restore the lost sound characteristics in the audio file, so as to ensure that the audio output by the audio equipment retains the original audio to a greater extent sound characteristics, reduce the distortion of the output audio of the audio equipment, and improve the clarity of the output audio.

在一些实施例中,结合图4,如图8所示,上述步骤S103可以具体实现为以下步骤:In some embodiments, referring to FIG. 4 , as shown in FIG. 8 , the above step S103 can be specifically implemented as the following steps:

步骤S103A,将第三音频信号中第二频段内对应的音频信号的频率,均转换成大于或等于第二采样频率的采样频率。Step S103A, converting the frequency of the corresponding audio signal in the second frequency band in the third audio signal to a sampling frequency greater than or equal to the second sampling frequency.

其中,第二频段为第一采样频率与第二采样频率之间的频率范围,第二谐波信息的频率属于第二频段。Wherein, the second frequency band is a frequency range between the first sampling frequency and the second sampling frequency, and the frequency of the second harmonic information belongs to the second frequency band.

步骤S103B,根据第二谐波信息,对第三音频信号中大于或等于第二采样频率的音频信号进行谐波补偿,得到第四音频信号。Step S103B, according to the second harmonic information, perform harmonic compensation on the audio signals greater than or equal to the second sampling frequency in the third audio signal to obtain a fourth audio signal.

需要说明的是,第二谐波信息用于生成超高频谐波信号,将超高频谐波信号插入对第一音频信号对应的频段外的频段中,以完成超高品谐波信号补偿。It should be noted that the second harmonic information is used to generate ultra-high-frequency harmonic signals, and the ultra-high-frequency harmonic signals are inserted into frequency bands other than the frequency band corresponding to the first audio signal to complete ultra-high-quality harmonic signal compensation .

在该实施例中,先将第三谐波信号中,大于或等于第一采样频率且小于或等于第二采样频率频率范围内的音频信号的频率均转换成大于或等于第二采样频率的采样频率,以便于后续插入超高频谐波信号时有足够的时域空间。再将根据第二谐波信息生成的超高频谐波信号,补偿至第三音频信号中。In this embodiment, the frequency of the audio signal in the frequency range greater than or equal to the first sampling frequency and less than or equal to the second sampling frequency in the third harmonic signal is converted into a sampling frequency greater than or equal to the second sampling frequency Frequency, so that there is enough space in the time domain when inserting UHF harmonic signals later. Then, the ultra-high frequency harmonic signal generated according to the second harmonic information is compensated into the third audio signal.

基于该实施例,结合图4,如图9所示,上述步骤S104可以具体实现为以下步骤:Based on this embodiment, with reference to FIG. 4, as shown in FIG. 9, the above step S104 can be specifically implemented as the following steps:

步骤S104A,控制可变分辨率脉冲响应滤波器,将第四音频信号划分为多个不同频段的音频信号。Step S104A, controlling the variable resolution impulse response filter to divide the fourth audio signal into multiple audio signals of different frequency bands.

基于该步骤S104A,VIR滤波器可以在系统设置的任一采样频率(例如192K赫兹)下运行。VIR滤波器将音频信号的所有可用部分都分配给与预设低频段范围(如,低于100赫兹)对应的多个不同频段中频率较低的频段,以最大限度地提高分辨率,并且与预设高频段范围(如高于100赫兹)对应的多个不同频段中频率较高的频段也被利用。音频信号因此,即使在预设低频段范围内的更小范围内(如,10赫兹至20赫兹范围内),VIR滤波器也可以形成一个陡峭的截止滤波器,以消除不需要的隆隆声。Based on this step S104A, the VIR filter can run at any sampling frequency (for example, 192K Hz) set by the system. The VIR filter distributes all available parts of the audio signal to the lower frequencies of a number of different frequency bands corresponding to a preset low-band range (e.g., below 100 Hz) to maximize resolution and is compatible with A frequency band with a higher frequency among a plurality of different frequency bands corresponding to the preset high frequency range (for example higher than 100 Hz) is also used. Audio signals Thus, even in a narrower range within the preset low-band range (for example, in the 10 Hz to 20 Hz range), the VIR filter can form a steep cut-off filter to eliminate unwanted rumble.

步骤S104B,按照各个频段对应的滤波参数,分别对各个频段的音频信号进行滤波处理,得到第五音频信号。In step S104B, filter the audio signals of each frequency band according to the filter parameters corresponding to each frequency band, to obtain a fifth audio signal.

其中,第五音频信号包括多个频率段的音频信号经过滤波处理得到的音频信号。Wherein, the fifth audio signal includes an audio signal obtained by filtering audio signals in multiple frequency bands.

在一些实施方式中,VIR滤波器的滤波系数是根据扬声器的声功率体积密度频率响应而确定出的。In some implementations, the filter coefficients of the VIR filter are determined according to the sound power volume density frequency response of the loudspeaker.

在另一些实施方式中,VIR滤波器的滤波系数也可以根据其他非滤波器的滤波系数转换而成。In some other implementation manners, the filter coefficients of the VIR filter may also be converted according to the filter coefficients of other non-filters.

步骤S104C,根据第五音频信号,生成目标音频信号。Step S104C, generating a target audio signal according to the fifth audio signal.

在一些实施例中,目标音频信号的频率所属于的频段可以是根据滤波参数设置的预设频段,该预设频段通常为低于第一采样频率的频率范围。In some embodiments, the frequency band to which the frequency of the target audio signal belongs may be a preset frequency band set according to filtering parameters, and the preset frequency band is generally a frequency range lower than the first sampling frequency.

步骤S104D,控制扬声器输出预设频段的目标音频信号。Step S104D, controlling the speaker to output the target audio signal of the preset frequency band.

可以理解的是,不同频段的音频信号是指不同采样频率范围的音频信号。并且各个频段对应的滤波参数是指各个频段对应的滤波参数是相互关联的,会存在相互影响。即,不同的频段对应的滤波参数相互影响。It can be understood that the audio signals of different frequency bands refer to audio signals of different sampling frequency ranges. In addition, the filter parameters corresponding to each frequency band mean that the filter parameters corresponding to each frequency band are interrelated and may affect each other. That is, filter parameters corresponding to different frequency bands affect each other.

在该实施例中,根据可变分辨率脉冲响应滤波器,先对第四音频信号中多个不同频段的音频信号进行分段滤波处理。即针对多个不同的频段的音频信号,采用各个频段的音频信号对应的滤波参数进行滤波处理。再将经过滤波处理后的各个频段的音频信号,作为第五音频信号。基于此,对第四音频信号中不同采样频率的音频信号对应分别的滤波处理,能灵活综合不同分辨率需求,来调整第五谐波信号,以使输出的目标音频信号能满足多分辨率需求,避免不分频段地对音频信号进行统一地滤波处理,只能满足单一的分辨率需求,而导致的音响设备灵活性差的问题,从而保证了音响设备的灵活性和精准性。In this embodiment, according to the variable-resolution impulse response filter, the fourth audio signal is first subjected to segmental filtering processing on the audio signals of multiple different frequency bands. That is, for multiple audio signals of different frequency bands, filter parameters corresponding to the audio signals of each frequency band are used to perform filtering processing. Then, the filtered audio signals of each frequency band are used as the fifth audio signal. Based on this, the audio signals with different sampling frequencies in the fourth audio signal correspond to separate filtering processes, which can flexibly integrate different resolution requirements to adjust the fifth harmonic signal so that the output target audio signal can meet the multi-resolution requirements , to avoid the unified filtering process of the audio signal regardless of the frequency band, which can only meet the single resolution requirement, which leads to the problem of poor flexibility of the audio equipment, thereby ensuring the flexibility and accuracy of the audio equipment.

基于上述实施例,扬声器的相位与可变分辨率脉冲响应滤波器的相位相同。Based on the above embodiment, the phase of the loudspeaker is the same as that of the variable resolution impulse response filter.

扬声器本质上是最小相位设备,则可变分辨率脉冲响应滤波器也可以属于最小相位滤波器一种,因此,其划分的各个频段的音频信号具有受控的最小相位特性,以使可变分辨率脉冲响应滤波器在时域中表现出最小的振铃和出色的瞬态响应,从而使扬声器均衡效果更好。The loudspeaker is essentially a minimum phase device, and the variable resolution impulse response filter can also belong to a minimum phase filter. Therefore, the audio signal of each frequency band it divides has a controlled minimum phase characteristic, so that the variable resolution The rate impulse response filter exhibits minimal ringing and excellent transient response in the time domain, resulting in better speaker equalization.

如图10所示,以下是采用可变分辨率脉冲响应滤波器以外的相关滤波器(如FIR滤波器(Finite Impulse Response,有限长单位冲激响应滤波器)滤波处理后,和采用可变分辨率脉冲响应滤波器滤波处理后,扬声器得到的目标音频信号的波形效果图。可见,相比于相关滤波器,可变分辨率脉冲响应滤波器在高频的修正效率和低频修正效果较传统型滤波器效果好许多,且运算量比同等效果的传统型滤波器小90%,且在音频信号中的高频信号的处理仅需根据采样频率关联而非指数上升,因此特别适合Hi-Res音频设备的声学校正。As shown in Figure 10, the following is the filter processing using a correlation filter other than a variable resolution impulse response filter (such as a FIR filter (Finite Impulse Response, finite-length unit impulse response filter), and using a variable resolution After the frequency impulse response filter filtering process, the waveform effect diagram of the target audio signal obtained by the loudspeaker. It can be seen that compared with the correlation filter, the high frequency correction efficiency and low frequency correction effect of the variable resolution impulse response filter are better than those of the traditional type The effect of the filter is much better, and the calculation amount is 90% smaller than that of the traditional filter with the same effect, and the processing of the high-frequency signal in the audio signal only needs to be related to the sampling frequency instead of exponentially rising, so it is especially suitable for Hi-Res audio Acoustic correction of the device.

基于此,可变分辨率脉冲响应滤波器的相位保持与扬声器的相位在同一个相位,以使经过可变分辨率脉冲响应滤波器处理后的音频信号,输入至扬声器中经过扬声器处理后,输出的目标音频信号更加均衡,从而保证音响设备输出音频的音质更加均衡。Based on this, the phase of the variable resolution impulse response filter is kept in the same phase as that of the loudspeaker, so that the audio signal processed by the variable resolution impulse response filter is input to the loudspeaker and then output The target audio signal is more balanced, so as to ensure that the sound quality of the output audio of the audio equipment is more balanced.

在一些具体实施例中,如图11所示,上述音频信号的处理方法,通常以音效优化功能程序算法形式实现,以.ini文件格式存储。具体地,用户在人机交互装置的交互界面输入音频文件的播放指令,以启动音频信号的优化处理功能。音响设备通过调用.ini文件以调出算法参数(如,第二采样频率,第一谐波信息的频率和第二谐波信息的频率、滤波系数等),同时也能在.ini文件中配置算法参数的参数值,然后调用算法参数和对应的参数值并启动音效优化功能,最后输出优化后的音频信号。In some specific embodiments, as shown in FIG. 11 , the above-mentioned audio signal processing method is usually implemented in the form of a sound optimization function program algorithm and stored in the .ini file format. Specifically, the user inputs a playback instruction of the audio file on the interactive interface of the human-computer interaction device, so as to start the audio signal optimization processing function. The audio equipment calls out the algorithm parameters (such as the second sampling frequency, the frequency of the first harmonic information and the frequency of the second harmonic information, filter coefficient, etc.) by calling the .ini file, and can also be configured in the .ini file The parameter value of the algorithm parameter, then call the algorithm parameter and the corresponding parameter value and start the sound effect optimization function, and finally output the optimized audio signal.

在另一些具体实施例中,如图12所示,对音响设备的音频信号的处理过程作出了进一步说明。In some other specific embodiments, as shown in FIG. 12 , a further description is made on the audio signal processing process of the audio equipment.

(1)音响设备接收音频文件的第一音频信号。(1) The audio equipment receives the first audio signal of the audio file.

(2)音响设备判断用户是否开启音效优化处理功能。(2) The audio device judges whether the user has enabled the sound optimization processing function.

(3)如果是,则进入开始音效优化处理过程(4),如果否则输出第一音频信号。(3) If yes, enter into the start sound optimization process (4), if otherwise, output the first audio signal.

(4)音响设备判断第一音频信号是否包括其他格式的音频信号。其中,如果是,则进入(5),如果否,则进入(6)。(4) The audio device determines whether the first audio signal includes audio signals in other formats. Wherein, if yes, go to (5), if not, go to (6).

(5)如果是,音响设备将其他格式的音频信号,转换为双通道脉冲编码调制格式的第一音频信号。(5) If yes, the audio equipment converts audio signals in other formats into the first audio signal in the dual-channel pulse code modulation format.

(6)如果否,音响设备通过采样率转换器对第一音频信号转换成第二音频信号。(6) If not, the audio device converts the first audio signal into a second audio signal through a sampling rate converter.

(7)音响设备通过第一谐波生成器对第二音频信号进行中高频谐波补偿,生成第三音频信号。(7) The audio equipment performs medium and high frequency harmonic compensation on the second audio signal through the first harmonic generator to generate the third audio signal.

(8)音响设备通过第二谐波生成器对第三音频信号进行中高频谐波补偿,生成第四音频信号。(8) The audio equipment performs medium and high frequency harmonic compensation on the third audio signal through the second harmonic generator to generate the fourth audio signal.

(9)音响设备根据第四音频信号生成目标音频信号。(9) The audio device generates the target audio signal according to the fourth audio signal.

可以看出,上述主要从方法的角度对本申请实施例提供的方案进行了介绍。为了实现上述功能,本申请实施例提供了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的模块及算法步骤,本申请实施例能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。It can be seen that the foregoing mainly introduces the solutions provided by the embodiments of the present application from the perspective of methods. In order to realize the above functions, the embodiments of the present application provide hardware structures and/or software modules corresponding to each function. Those skilled in the art should easily realize that, in combination with the modules and algorithm steps of the examples described in the embodiments disclosed herein, the embodiments of the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed by hardware or computer software drives hardware depends on the specific application and design constraints of the technical solution. Skilled artisans may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.

本申请实施例可以根据上述方法示例对控制器进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。可选的,本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。In this embodiment of the present application, the functional modules of the controller may be divided according to the above method examples. For example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules. Optionally, the division of modules in this embodiment of the present application is schematic, and is only a logical function division, and there may be another division manner in actual implementation.

本申请实施例还提供一种控制器的硬件结构示意图。如图13所示,控制器300包括处理器301,可选的,还包括与处理器301连接的存储器302和通信接口303。处理器301、存储器302和通信接口303通过总线304连接。The embodiment of the present application also provides a schematic diagram of a hardware structure of a controller. As shown in FIG. 13 , the controller 300 includes aprocessor 301 , and optionally, also includes amemory 302 and acommunication interface 303 connected to theprocessor 301 . Theprocessor 301 , thememory 302 and thecommunication interface 303 are connected through a bus 304 .

处理器301可以是中央处理器(central processing unit,CPU),通用处理器网络处理器(network processor,NP)、数字信号处理器(digital signal processing,DSP)、微处理器、微控制器、可编程逻辑器件(programmable logic device,PLD)或它们的任意组合。处理器301还可以是其它任意具有处理功能的装置,例如电路、器件或软件模块。处理器301也可以包括多个CPU,并且处理器301可以是一个单核(single-CPU)处理器,也可以是多核(multi-CPU)处理器。这里的处理器可以指一个或多个设备、电路或用于处理数据(例如计算机程序指令)的处理核。Theprocessor 301 may be a central processing unit (central processing unit, CPU), a general-purpose processor, a network processor (network processor, NP), a digital signal processor (digital signal processing, DSP), a microprocessor, a microcontroller, or Programmable logic device (programmable logic device, PLD) or any combination thereof. Theprocessor 301 may also be any other device with a processing function, such as a circuit, device or software module. Theprocessor 301 may also include multiple CPUs, and theprocessor 301 may be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. A processor herein may refer to one or more devices, circuits, or processing cores for processing data such as computer program instructions.

存储器302可以是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其他类型的静态存储设备、随机存取存储器(random access memory,RAM)或者可存储信息和指令的其他类型的动态存储设备,也可以是电可擦可编程只读存储器(electricallyerasable programmable read-only memory,EEPROM)、只读光盘(compact disc read-only memory,CD-ROM)或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,本申请实施例对此不作任何限制。存储器302可以是独立存在,也可以和处理器301集成在一起。其中,存储器302中可以包含计算机程序代码。处理器301用于执行存储器302中存储的计算机程序代码,从而实现本申请实施例提供的控制方法。Thememory 302 may be a read-only memory (read-only memory, ROM) or other types of static storage devices that can store static information and instructions, a random access memory (random access memory, RAM) or other types that can store information and instructions The dynamic storage device can also be an electrically erasable programmable read-only memory (electrically erasable programmable read-only memory, EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage ( including compact discs, laser discs, optical discs, digital versatile discs, blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or can be used to carry or store desired program code in the form of instructions or data structures and can be stored by a computer Any other media used, the embodiment of this application does not make any limitation on this. Thememory 302 may exist independently, or may be integrated with theprocessor 301 . Wherein, thememory 302 may contain computer program codes. Theprocessor 301 is configured to execute the computer program code stored in thememory 302, so as to implement the control method provided by the embodiment of the present application.

通信接口303可以用于与其他设备或通信网络通信(如以太网,无线接入网(radioaccess network,RAN),无线局域网(wireless local area networks,WLAN)等。通信接口303可以是模块、电路、收发器或者任何能够实现通信的装置。Thecommunication interface 303 can be used to communicate with other devices or communication networks (such as Ethernet, wireless access network (radioaccess network, RAN), wireless local area networks (wireless local area networks, WLAN), etc. Thecommunication interface 303 can be a module, circuit, Transceiver or any device that enables communication.

总线304可以是外设部件互连标准(peripheral component interconnect,PCI)总线或扩展工业标准结构(extended industry standard architecture,EISA)总线等。总线304可以分为地址总线、数据总线、控制总线等。为便于表示,图13中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The bus 304 may be a peripheral component interconnect standard (peripheral component interconnect, PCI) bus or an extended industry standard architecture (extended industry standard architecture, EISA) bus or the like. The bus 304 can be divided into address bus, data bus, control bus and so on. For ease of representation, only one thick line is used in FIG. 13 , but it does not mean that there is only one bus or one type of bus.

本申请实施例还提供了一种计算机可读存储介质,包括计算机执行指令,当其在计算机上运行时,使得计算机执行上述实施例提供的任意一种音响设备的音频信号处理方法。An embodiment of the present application also provides a computer-readable storage medium, including computer-executable instructions, which, when run on a computer, cause the computer to execute any audio signal processing method for an audio device provided in the above-mentioned embodiments.

本申请实施例还提供了一种包含计算机执行指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述实施例提供的任意一种音响设备的音频信号处理方法。The embodiment of the present application also provides a computer program product containing computer-executable instructions, which, when run on a computer, enables the computer to execute any audio signal processing method for an audio device provided in the above-mentioned embodiments.

在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件程序实现时,可以全部或部分地以计算机程序产品的形式来实现。该计算机程序产品包括一个或多个计算机执行指令。在计算机上加载和执行计算机执行指令时,全部或部分地产生按照本申请实施例的流程或功能。计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。计算机执行指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,计算机执行指令可以从一个网站站点、计算机、服务器或者数据中心通过有线(例如同轴电缆、光纤、数字用户线(digital subscriber line,DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可以用介质集成的服务器、数据中心等数据存储设备。可用介质可以是磁性介质(例如,软盘、硬盘、磁带),光介质(例如,DVD)、或者半导体介质(例如固态硬盘(solid state disk,SSD))等。In the above embodiments, all or part of them may be implemented by software, hardware, firmware or any combination thereof. When implemented using a software program, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer-executable instructions. When computer-executed instructions are loaded and executed on a computer, the processes or functions according to the embodiments of the present application are generated in whole or in part. A computer can be a general purpose computer, special purpose computer, computer network, or other programmable device. Computer-executable instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, computer-executable instructions may be (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that can be accessed by a computer, or may contain one or more data storage devices such as servers and data centers that can be integrated with the medium. Available media may be magnetic media (eg, floppy disk, hard disk, magnetic tape), optical media (eg, DVD), or semiconductor media (eg, solid state disk (solid state disk, SSD)) and the like.

尽管在此结合各实施例对本申请进行了描述,然而,在实施所要求保护的本申请过程中,本领域技术人员通过查看附图、公开内容、以及所附权利要求书,可理解并实现公开实施例的其他变化。在权利要求中,“包括”(comprising)一词不排除其他组成部分或步骤,“一”或“一个”不排除多个的情况。单个处理器或其他单元可以实现权利要求中列举的若干项功能。相互不同的从属权利要求中记载了某些措施,但这并不表示这些措施不能组合起来产生良好的效果。Although the present application has been described in conjunction with various embodiments herein, those skilled in the art can understand and realize the disclosure by viewing the drawings, the disclosure, and the appended claims during the implementation of the claimed application. Other Variations of Embodiments. In the claims, the word "comprising" does not exclude other components or steps, and "a" or "an" does not exclude a plurality. A single processor or other unit may fulfill the functions of several items recited in the claims. The mere fact that certain measures are recited in mutually different dependent claims does not indicate that these measures cannot be combined to advantage.

尽管结合具体特征及其实施例对本申请进行了描述,显而易见的,在不脱离本申请的精神和范围的情况下,可对其进行各种修改和组合。相应地,本说明书和附图仅仅是所附权利要求所界定的本申请的示例性说明,且视为已覆盖本申请范围内的任意和所有修改、变化、组合或等同物。显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。Although the application has been described in conjunction with specific features and embodiments thereof, it will be apparent that various modifications and combinations can be made thereto without departing from the spirit and scope of the application. Accordingly, the specification and drawings are merely illustrative of the application as defined by the appended claims and are deemed to cover any and all modifications, variations, combinations or equivalents within the scope of this application. Obviously, those skilled in the art can make various changes and modifications to the application without departing from the spirit and scope of the application. In this way, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalent technologies, the present application is also intended to include these modifications and variations.

以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应该以权利要求的保护范围为准。The above is only a specific implementation of the application, but the protection scope of the application is not limited thereto, and any changes or replacements within the technical scope disclosed in the application should be covered within the protection scope of the application . Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims (10)

CN202210833427.4A2022-07-152022-07-15 A kind of sound equipment and audio signal processing methodActiveCN115278456B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202210833427.4ACN115278456B (en)2022-07-152022-07-15 A kind of sound equipment and audio signal processing method

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202210833427.4ACN115278456B (en)2022-07-152022-07-15 A kind of sound equipment and audio signal processing method

Publications (2)

Publication NumberPublication Date
CN115278456Atrue CN115278456A (en)2022-11-01
CN115278456B CN115278456B (en)2024-10-25

Family

ID=83765090

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202210833427.4AActiveCN115278456B (en)2022-07-152022-07-15 A kind of sound equipment and audio signal processing method

Country Status (1)

CountryLink
CN (1)CN115278456B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN116389638A (en)*2023-03-312023-07-04腾讯音乐娱乐科技(深圳)有限公司Method for determining audio signal processing time, terminal device and music client

Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101373961A (en)*2007-08-232009-02-25索尼株式会社Signal processing device, signal processing method, and program therefor
CN101868984A (en)*2007-09-192010-10-20弗劳恩霍夫应用研究促进协会Device and method for determining high-precision component signal
CN102932710A (en)*2012-10-102013-02-13广州创维平面显示科技有限公司Method and device for bass compensation
US20130051581A1 (en)*2011-08-242013-02-28Semiconductor Components Industries, LlcAudio signal processing circuit
CN109791773A (en)*2016-11-042019-05-21惠普发展公司有限责任合伙企业The basic frequency of audio signal is handled

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101373961A (en)*2007-08-232009-02-25索尼株式会社Signal processing device, signal processing method, and program therefor
CN101868984A (en)*2007-09-192010-10-20弗劳恩霍夫应用研究促进协会Device and method for determining high-precision component signal
US20130051581A1 (en)*2011-08-242013-02-28Semiconductor Components Industries, LlcAudio signal processing circuit
CN102932710A (en)*2012-10-102013-02-13广州创维平面显示科技有限公司Method and device for bass compensation
CN109791773A (en)*2016-11-042019-05-21惠普发展公司有限责任合伙企业The basic frequency of audio signal is handled

Cited By (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN116389638A (en)*2023-03-312023-07-04腾讯音乐娱乐科技(深圳)有限公司Method for determining audio signal processing time, terminal device and music client

Also Published As

Publication numberPublication date
CN115278456B (en)2024-10-25

Similar Documents

PublicationPublication DateTitle
US9602929B2 (en)Techniques for presenting sound effects on a portable media player
JP4393383B2 (en) Audio signal adaptive conversion apparatus according to user preference and method thereof
CN113170260B (en) Audio processing method, device, storage medium and electronic device
JP2020003774A (en)Method and apparatus for processing speech
US20130178964A1 (en)Audio system with adaptable audio output
CN114245271A (en)Audio signal processing method and electronic equipment
CN115346542A (en) Audio signal processing method, device and storage medium
CN114299976A (en) Audio data processing method and electronic device
CN115278456B (en) A kind of sound equipment and audio signal processing method
JP5737357B2 (en) Music playback apparatus and music playback program
US20190386674A1 (en)Error resiliency for entropy coded audio data
US20130178963A1 (en)Audio system with adaptable equalization
KR100626653B1 (en)Apparatus and Method of Adapting Audio Signal According to User's Preference
CN102098607B (en)In portable terminal, increase equipment and the method for volume
CN110096250A (en)A kind of audio data processing method, device, electronic equipment and storage medium
CN112203181B (en)Automatic switching method and device of equalizer, electronic equipment and storage medium
US9762704B2 (en)Service based media player
CN115938339A (en)Audio data processing method and system
WO2020073562A1 (en)Audio processing method and device
WO2019091860A1 (en)Audio stream dependency information
WO2016107178A1 (en)Method and device for playing ring back tone
US20190387040A1 (en)Level estimation for processing audio data
WO2020124679A1 (en)Method and apparatus for pre-configuring video processing parameter information, and electronic device
JP6844114B2 (en) Data communication systems, terminal equipment, audio equipment, data communication methods, and programs
CN117135532B (en) Audio data processing method, device and storage medium

Legal Events

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

Effective date of registration:20250902

Address after:518067 Guangdong Province, Shenzhen City, Qianhai Hong Kong Cooperation Zone, Nanshan Street, Linyin Avenue 2228, Hengchang Technology Building West District, Room 903

Patentee after:Shenzhen Xinyang Chuangzhi Technology Co.,Ltd.

Country or region after:China

Address before:518054 Guangdong Province, Shenzhen City, Nanshan District, Chuangye Road 1777, Hisense Southern Mansion, Room 2401

Patentee before:Shenzhen Xinyang International Trade Co.,Ltd.

Country or region before:China

TR01Transfer of patent right

[8]ページ先頭

©2009-2025 Movatter.jp