[go: up one dir, main page]

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

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

Info

Publication number
CN115278456B
CN115278456B CN202210833427.4A CN202210833427A CN115278456B CN 115278456 B CN115278456 B CN 115278456B CN 202210833427 A CN202210833427 A CN 202210833427A CN 115278456 B CN115278456 B CN 115278456B
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.)
Active
Application number
CN202210833427.4A
Other languages
Chinese (zh)
Other versions
CN115278456A (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 ltd filed Critical Shenzhen Xinyang International Trade Co ltd
Priority to CN202210833427.4A priority Critical patent/CN115278456B/en
Publication of CN115278456A publication Critical patent/CN115278456A/en
Application granted granted Critical
Publication of CN115278456B publication Critical patent/CN115278456B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

The embodiment of the application provides sound equipment and an audio signal processing method, relates to the technical field of audio signal processing, and solves the problems of insufficient tone quality definition and poor sound effect layering effect in the related technology. The sound equipment comprises a sampling rate converter, a first-order harmonic generator, a second-order harmonic generator, a loudspeaker and a controller; the controller is configured to: controlling a sampling rate converter to convert a first audio signal of a first sampling frequency into a second audio signal of a second sampling frequency in an audio file in response to a play operation performed by a user on the audio file; controlling a first-stage harmonic generator to generate 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; controlling a 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; the control speaker outputs a target audio signal based on the fourth audio signal.

Description

一种音响设备及音频信号处理方法A kind of sound equipment and audio signal processing method

技术领域Technical Field

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

背景技术Background Art

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

发明内容Summary of the invention

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

第一方面,提供一种音响设备,包括采样率转换器、一级谐波生成器、二级谐波生成器、扬声器和控制器;控制器与采样率转换器、一级谐波生成器、二级谐波生成器和扬声器连接;控制器被配置为:响应于用户针对音频文件执行的播放操作,控制采样率转换器将音频文件中第一采样频率的第一音频信号转换为第二采样频率的第二音频信号,第一采样频率小于第二采样频率,第一音频信号的采样幅值小于第二音频信号的采样幅值;控制一级谐波生成器根据第一音频信号生成第一谐波信息,并根据第一谐波信息和第二音频信号生成第三音频信号;控制二级谐波生成器根据第三音频信号生成第二谐波信息,并根据第二谐波信息和第三音频信号生成第四音频信号;控制扬声器根据第四音频信号,输出目标音频信号,其中,第一谐波信息的频率小于第二谐波信息的频率。In a first aspect, an audio device is provided, comprising a sampling rate converter, a primary harmonic generator, a secondary harmonic generator, a speaker and a controller; the controller is connected to the sampling rate converter, the primary harmonic generator, the secondary harmonic generator and the speaker; the controller is configured to: in response to a user's playback operation performed on an audio file, control the sampling rate converter to convert a first audio signal of a first sampling frequency in the audio file into a second audio signal of a second sampling frequency, the first sampling frequency being less than the second sampling frequency, and the sampling amplitude of the first audio signal being less than the sampling amplitude of the second audio signal; control the primary harmonic generator to generate first harmonic information according to the first audio signal, and to generate a third audio signal according to the first harmonic information and the second audio signal; control the secondary harmonic generator to generate second harmonic information according to the third audio signal, and to generate a fourth audio signal according to the second harmonic information and the third audio signal; control the speaker to output a target audio signal according to the fourth audio signal, wherein the frequency of the first harmonic information is less 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 through a sampling rate converter of an 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, and 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 subsequent generation of harmonic signal insertion. Then, the first harmonic information is generated according to the first harmonic generator, and the first harmonic signal compensation is performed on the second audio signal to generate a third audio signal, so as to restore or compensate for the harmonic signal lost during the compression process of the audio file, and ensure that the audio output of the audio device is clearer. Then, according to the second harmonic information generated by the second harmonic generator, the third audio signal is compensated for the harmonic signal, that is, the second audio signal is compensated for the second harmonic signal to generate a fourth audio signal, so as to ensure that the audio output of the audio device has a more layered and spatial sense. Finally, the target audio signal is output according to the fourth audio signal to ensure the audio effect of the audio device. Through the above method, on the one hand, the harmonic signal of the frequency of the first harmonic information lost in the compression process of the audio file is repaired to restore the sound characteristics lost in the audio file, thereby ensuring that the audio output by the audio device retains the sound characteristics of the original audio to a greater extent, reducing the distortion of the audio output by the audio device and improving the clarity of the output audio. On the other hand, the harmonic signal of the harmonic signal of the frequency of the second harmonic information lost in the compressed audio file is compensated to improve the layering and spatial sense of the audio output by the audio device.

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

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

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

在一些实施例中,根据第一谐波信息和第二音频信号,生成第三音频信号,包括:根据第一谐波信息,对第二音频信号中第一频段内的音频信号进行谐波补偿,得到第三音频信号,第一谐波信息的频率属于第一频段,第一频段为采样频率小于第一采样频率的频率范围。In some embodiments, a third audio signal is generated based on first harmonic information and a second audio signal, including: based on the first harmonic information, harmonic compensation is performed on an audio signal within a first frequency band in the second audio signal to obtain a 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 less 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, the audio signal in the frequency range less than the first sampling frequency in the second audio signal is compensated for the mid-high frequency harmonic signal, so as to complete the mid-high frequency harmonic signal compensation for the first audio signal in the second audio signal, thereby repairing the mid-high frequency harmonic signal lost in the audio file compression process, so as to restore the sound characteristics lost in the audio file, thereby ensuring that the audio output by the audio device retains the sound characteristics of the original audio to a greater extent, reducing the distortion of the audio output by the audio device, and improving the clarity of the output audio.

在一些实施例中,根据第二谐波信息和第三音频信号,生成第四音频信号,包括:将第三音频信号中第二频段内对应的音频信号的频率,均转换成大于或等于第二采样频率的频率;第二频段为第一采样频率与第二采样频率之间的频率范围,第二谐波信息的频率属于第二频段;根据第二谐波信息,对第三音频信号中大于或等于第二采样频率的音频信号进行谐波补偿,得到第四音频信号。In some embodiments, a fourth audio signal is generated based on the second harmonic information and the third audio signal, including: converting the frequencies of the corresponding audio signals in the second frequency band in the third audio signal into frequencies greater than or equal 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; based on the second harmonic information, harmonic compensation is performed on the audio signals in the third audio signal that are greater than or equal to the second sampling frequency to obtain the fourth audio signal.

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

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

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

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

在一些实施例中,扬声器的相位与可变分辨率脉冲响应滤波器的相位相同。基于此,可变分辨率脉冲响应滤波器的相位保持与扬声器的相位在同一个相位,以使经过可变分辨率脉冲响应滤波器处理后的音频信号,输入至扬声器中经过扬声器处理后,输出的目标音频信号更加均衡,从而保证音响设备输出音频的音质更加均衡。In some embodiments, the phase of the speaker is the same as the phase of the variable resolution impulse response filter. Based on this, the phase of the variable resolution impulse response filter is kept at the same phase as the phase of the speaker, so that the audio signal processed by the variable resolution impulse response filter is input to the speaker and processed by the speaker, and the output target audio signal is more balanced, thereby ensuring that the sound quality of the audio output by the audio device 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, the method further includes: parsing the audio file to obtain the first audio signal. Based on this, the audio file is parsed into an audio signal to provide an audio signal source for the subsequent audio signal processing link.

第二方面,提供一种音频信号处理方法,方法包括:响应于用户针对音频文件执行的播放操作,将音频文件中第一采样频率的第一音频信号转换为第二采样频率的第二音频信号,第一采样频率小于第二采样频率,第一音频信号的采样幅值小于第二音频信号的采样幅值;根据第一音频信号生成第一谐波信息,并根据第一谐波信息和第二音频信号生成第三音频信号;根据第三音频信号生成第二谐波信息,并根据第二谐波信息和第三音频信号生成第四音频信号;控制扬声器根据第四音频信号,输出目标音频信号,其中,第一谐波信息的频率小于第二谐波信息的频率。In a second aspect, a method for processing an audio signal is provided, the method comprising: in response to a playback operation performed by a user 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, the first sampling frequency being less than the second sampling frequency, and the sampling amplitude of the first audio signal being less than the sampling amplitude of the second audio signal; 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; 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; controlling a speaker to output a target audio signal according to the fourth audio signal, wherein 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 dual-channel pulse code modulation format, and before converting the first audio signal of a first sampling frequency in the audio file into a second audio signal of a second sampling frequency, the method further includes:

在音频文件包括其他格式的音频信号的情况下,将其他格式的音频信号,转换为双通道脉冲编码调制格式的音频信号,其他格式包括双通道脉冲编码调制格式以外的格式。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 two-channel pulse code modulation format, and the other formats include formats other than the two-channel pulse code modulation format.

在一些实施例中,根据第一谐波信息和第二音频信号,生成第三音频信号,包括:根据第一谐波信息,对第二音频信号中第一频段内的音频信号进行谐波补偿,得到第三音频信号,第一谐波信息的频率属于第一频段,第一频段为采样频率小于第一采样频率的频率范围。In some embodiments, a third audio signal is generated based on first harmonic information and a second audio signal, including: based on the first harmonic information, harmonic compensation is performed on an audio signal within a first frequency band in the second audio signal to obtain a 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 less than the first sampling frequency.

在一些实施例中,根据第二谐波信息和第三音频信号,生成第四音频信号,包括:将第三音频信号中第二频段内的音频信号的采样频率,均转换成第二采样频率;第二频段为第一采样频率与第二采样频率之间的频率范围,第二谐波信息的频率属于第二频段;根据第二谐波信息,对第三音频信号中第二采样频率的音频信号进行谐波补偿,得到第四音频信号。In some embodiments, a fourth audio signal is generated based on the second harmonic information and the third audio signal, including: converting the sampling frequencies of the audio signals in the second frequency band in the third audio signal into 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; and based on the second harmonic information, performing harmonic compensation on the audio signal of the second sampling frequency in the third audio signal to obtain the fourth audio signal.

在一些实施例中,在根据第四音频信号输出目标音频信号之前,方法还包括:将第四音频信号划分为多个不同频段的音频信号;按照各个频段对应的过滤参数,分别对多个频段的音频信号进行滤波处理,得到第五音频信号,其中,第五音频信号包括多个频段的音频信号经过滤得到的音频信号;根据第五音频信号,生成预设频段的目标音频信号;预设频段为低于第一采样频率的频率范围;根据第四音频信号输出目标音频信号,包括:输出低于预设频段的目标音频信号。In some embodiments, before outputting the target audio signal according to the fourth audio signal, the method also includes: dividing the fourth audio signal into audio signals of multiple frequency bands; filtering the audio signals of the multiple frequency bands according to the filtering parameters corresponding to each frequency band to obtain a fifth audio signal, wherein the fifth audio signal includes an audio signal obtained by filtering the audio signals of the multiple frequency bands; generating a target audio signal of a preset frequency band according to the fifth audio signal; the preset 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 a third aspect, an embodiment of the present application provides a computer-readable storage medium, in which instructions are stored. When the instructions are executed on any of the above-mentioned devices, the device executes any of the above-mentioned audio signal processing methods of the audio equipment.

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

第五方面,本申请实施例提供一种包含指令的计算机程序产品,当其在上述任一项设备上运行时,使得装置执行上述任一项音响设备的音频信号处理方法。In a fifth aspect, an embodiment of the present application provides a computer program product comprising instructions, which, when executed on any of the above-mentioned devices, enables 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 device do not limit the device itself. In actual implementation, these components may appear with other names. As long as the functions of each component are similar to the embodiments of the present application, they fall within the scope of the claims of the present application and their equivalent technologies.

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

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

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

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

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

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

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

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

图7为本申请实施例提供的另一种音响设备的音频信号处理方法的流程图;FIG7 is a flowchart of another audio signal processing method for an audio device provided in an embodiment of the present application;

图8为本申请实施例提供的另一种音响设备的音频信号处理方法的流程图;FIG8 is a flowchart of another audio signal processing method for an audio device provided in an embodiment of the present application;

图9为本申请实施例提供的另一种音响设备的音频信号处理方法的流程图;FIG9 is a flowchart of another method for processing audio signals of an audio device provided in an embodiment of the present application;

图10为本申请实施例提供的一种音响设备的可变分辨率脉冲响应滤波器滤波处理示意图;FIG10 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为本申请实施例提供的又一种音响设备的使用场景示意图;FIG11 is a schematic diagram of a usage scenario of another audio device provided in an embodiment of the present application;

图12为本申请实施例提供的一种音响设备的音频信号处理过程示意图;FIG12 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 the hardware structure of a controller provided in an embodiment of the present application.

具体实施方式DETAILED DESCRIPTION

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

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

在本申请的描述中,需要说明的是,除非另有明确的规定和限定,术语“相连”、“连接”应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或一体地连接。对于本领域的普通技术人员而言,可以具体情况理解上述术语在本申请中的具体含义。另外,在对管线进行描述时,本申请中所用“相连”、“连接”则具有进行导通的意义。具体意义需结合上下文进行理解。In the description of this application, it should be noted that, unless otherwise clearly specified and limited, the terms "connected" and "connection" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances. In addition, when describing a pipeline, the "connected" and "connection" used in this application have the meaning of conduction. 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 to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

目前,为了满足对音频资源的合理利用,采用音频数字信息压缩方式,将音频资源压缩成音频文件,再通过解压音频文件的方式来播放音频资源的内容。然而,在上述压缩过程中,会过滤音频资源中的中高频信号,会使部分有用的中高频信号丢失,从而导致直接解压音频文件来播放音频资源的内容时音质清晰度不够、音效层次效果差。At present, in order to meet the reasonable utilization of audio resources, an audio digital information compression method is adopted to compress audio resources into audio files, and then the content of the audio resources is played by decompressing the audio files. However, in the above compression process, the mid-high frequency signals in the audio resources are filtered, and some useful mid-high frequency signals are lost, resulting in insufficient sound quality clarity and poor sound effect layering 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-level harmonic generator, a second-level harmonic generator, a speaker and a controller, wherein the controller is connected to the sampling rate converter, the first-level harmonic generator, the second-level harmonic generator and the speaker, and is used to control the sampling rate converter, the first-level harmonic generator, and the second-level harmonic generator to process the audio signal to be processed, and control the speaker to output the processed audio signal. 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, and 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 subsequent generated harmonic signal insertion. Then, the first harmonic information is generated according to the first-level harmonic generator, and the first harmonic signal compensation is performed on the second audio signal to generate a third audio signal, so as to restore or compensate the harmonic signal lost during the compression process of the audio file, and ensure that the audio output of the audio device is clearer. Then, according to the second harmonic information generated by the secondary harmonic generator, the third audio signal is compensated for the harmonic signal, that is, the second audio signal is compensated for the second harmonic signal to generate a fourth audio signal, so as to ensure that the audio output by the audio device has a better sense of hierarchy and space. Finally, the target audio signal is output according to the fourth audio signal to ensure the audio effect of the audio device. Through the above method, on the one hand, the harmonic signal of the frequency of the first harmonic information lost in the compression process of the audio file is repaired to restore the sound characteristics lost in the audio file, thereby ensuring that the audio output by the audio device retains the sound characteristics of the original audio to a greater extent, reducing the distortion of the audio output by the audio device and improving the clarity of the output audio. On the other hand, the harmonic signal of the frequency of the second harmonic information lost in the compressed audio file is compensated for the harmonic signal to improve the sense of hierarchy and space of the audio output by the audio device.

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

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

参考图1示例性的示出的音响设备10的电路系统架构图。音响设备10包括:采样率转换器101、一级谐波生成器102、二级谐波生成器103、扬声器104和控制器105。其中,控制器105与采样率转换器101、一级谐波生成器102、二级谐波生成器103和扬声器104连接,采样率转换器101用于转换音频文件中音频信号的采样频率;第一谐波信息用于生成某个频段的谐波信号,如生成中高频的谐波信号,第二谐波信息用于生成另一个频段的谐波信号,如生成超高频的谐波信号,扬声器104用于输出音频信号。Referring to FIG1 , there is shown an exemplary circuit system architecture diagram of an audio device 10. The audio device 10 comprises: a sampling rate converter 101, a primary harmonic generator 102, a secondary harmonic generator 103, a speaker 104 and a controller 105. The controller 105 is connected to the sampling rate converter 101, the primary harmonic generator 102, the secondary harmonic generator 103 and the speaker 104. The sampling rate converter 101 is used to convert the sampling frequency of the audio signal in the audio file; the first harmonic information is used to generate a harmonic signal of a certain frequency band, such as generating a medium-high frequency harmonic signal, and the second harmonic information is used to generate a harmonic signal of another frequency band, such as generating an ultra-high frequency harmonic signal. The speaker 104 is used to output the audio signal.

在一些实施例中,音频文件的格式可以MP3格式或AAC格式。本申请对音频文件的具体格式不作具体限定。In some embodiments, the format of the audio file can be MP3 format or AAC format. The present 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 first harmonic generator 102 may be an audio exciter that generates a harmonic signal proportional to an audio signal input to the audio exciter. Exemplarily, the frequency of the harmonic signal generated by the first harmonic generator 102 is a second-order exponential multiple of the frequency of the audio signal input to the first harmonic generator 102. For example, the harmonic signal generated by the first harmonic generator 102 is 2 times, 4 times (2 to the power of 2), or 8 times (2 to the power of 3), etc., the frequency of the audio signal input to the first harmonic generator 102.

在一些实施例中,音响设备10还包括:解析器106,该解析器106用于对音频文件解析,以得到待处理的音频信号(即下述第一音频信号)。In some embodiments, the audio device 10 further includes: a parser 106, wherein the parser 106 is 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, the audio device 10 further includes: a filter.

可选的,滤波器可以为可变分辨率脉冲响应滤波器108,其中,可变分辨率脉冲响应滤波器108与控制器105连接。其中,可变分辨率脉冲响应滤波器108是根据频率、增益、品质因数和各个频段的影响因子来确定滤波参数。可变分辨率脉冲响应滤波器108中各个频段工作过程中可以相互通信,不是相对独立的,以将考虑各个频段的影响,来调节各个频段的音频信号。Optionally, the filter may be a variable resolution impulse response filter 108, wherein the variable resolution impulse response filter 108 is connected to the controller 105. The variable resolution impulse response filter 108 determines the filter parameters according to the frequency, gain, quality factor and the influence factor of each frequency band. During the operation of the variable resolution impulse response filter 108, each frequency band can communicate with each other and is not relatively independent, so that the influence of each frequency band can 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 embodiments, the variable-resolution impulse response filter 108 is also referred to as a VIR filter (variable-resolution impulse response). When the sampling frequency increases, the MIPS value (million instructions per second, an indicator of the computing speed of the number of machine language instructions processed per second) of the VIR filter increases proportionally. However, it does not pointlessly place a portion of the audio signals within the sampling frequency range within the ultrasonic range like an ordinary filter. Therefore, the Hi-Res (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, the audio device 10 further includes a display 107. The display 107 can be used to display a control panel or other image information of the audio device 10. For example, the audio device can display the current audio file processing process or the waveform of the audio signal of the audio device 10 through the display 107.

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

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

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

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

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

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

在一些实施例中,音响设备10还包括人机交互装置110,用于实现用户与音响设备10之间的交互。人机交互装置110可以包括物理按键、触控显示面板或者语音识别装置中的一项或多项。例如用户可以通过人机交互装置110启动音响设备10开始工作,也可以通过人机交互装置110设置音响设备10播放音频文件的播放程序。In some embodiments, the audio device 10 further includes a human-computer interaction device 110 for realizing interaction between the user and the audio 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 the audio device 10 through the human-computer interaction device 110 to start working, or can set the audio device 10 to play an audio file through the human-computer interaction device 110.

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

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

步骤S101,响应于用户针对音频文件执行的播放操作,将音频文件中第一采样频率的第一音频信号转换为第二采样频率的第二音频信号。Step S101 : in response to a user's play 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.

其中,第一采样频率小于第二采样频率,第一音频信号的采样幅值小于第二音频信号的采样幅值。The first sampling frequency is smaller 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 implementations, the sampling amplitude is also referred to as sampling depth, the unit of sampling depth is bit, and the unit of sampling frequency is Hz. 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 48 kHz first audio signal is converted into a 32-bit 96 kHz second audio signal.

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

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

又如,该音频文件可以存储在电子设备的包括音频资源的音频文件,该电子设备可以是移动终端设备,也可以是单独用于功放音频文件的音频播放设备(如,音箱设备)。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) used solely for amplifying audio files.

基于此,用户需要获取某一音频文件的音频资源时,会对该音频文件的执行播放操作。该播放操作可以直接在电子设备上显示的音频文件标识执行播放操作,如单击操作、双击操作、连续点击操作或滑动操作等。在控制器在接收到该用户的播放操作指令后,先获取音频文件的第一音频信号。并且为了提高了后续过程中音频信号的分辨率,会将第一音频信号转换为采样频率更高的(第二采样频率的)第二音频信号。其中,将第一音频信号转换为第二音频信号可以是通过音响设备的采样转换器执行实施。Based on this, when the user needs to obtain the audio resource of a certain audio file, the play operation of the audio file will be performed. The play operation can 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 sliding operation. After the controller receives the play operation instruction of the user, the first audio signal of the audio file is first obtained. 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 (a second sampling frequency). Among them, the conversion of the first audio signal into the second audio signal can be implemented by a sampling converter of the audio equipment.

示例性的,在一些实施例中,音响设备还包括解析器,用于将音频文件解析成音频信号。这样上述第一音频信号可以通过以下实施方式获取:在控制器控制采样率转换器将音频文件中第一采样频率的第一音频信号转换为第二采样频率的第二音频信号之前,通过控制解析器解析音频文件,得到第一音频信号。其中,解析器与控制器连接。基于该实施方式,将音频文件解析为音频信号,为后续音频信号的处理环节,提供音频信号来源。Exemplarily, in some embodiments, the audio device further includes a parser for parsing the audio file into an audio signal. In this way, the first audio signal can be obtained by the following implementation: 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, the audio file is parsed by controlling the parser to obtain the first audio signal. The parser is connected to the controller. Based on this implementation, the audio file is parsed into an audio signal, providing an audio signal source for the 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, thereby improving the resolution of the audio signal. At the same time, the sampling amplitude of the second audio signal is greater than the sampling amplitude of the second audio signal, and the time domain space is prepared for the insertion of the subsequently generated harmonic signal.

步骤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 the 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, thereby generating the third audio signal.

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

步骤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, performs ultra-high frequency harmonic signal compensation on the third audio signal, and generates a fourth audio signal.

这样通过该实施步骤,保证音响设备输出的音频更加有层次感和空间感。In this way, through this implementation step, the audio output by the audio equipment is ensured to have a better sense of layering and space.

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

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

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

在一些实施例中,第一音频信号为双通道脉冲编码调制格式的音频信号。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 a first audio signal of a first sampling frequency in an audio file into a second audio signal of a second sampling frequency, the method further includes: when the audio file includes audio signals in other formats, converting the audio signals in other formats into audio signals in a two-channel pulse code modulation format, wherein the other formats include formats other than the two-channel pulse code modulation format.

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

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

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

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

其中,第一谐波信息的频率属于第一频段,第一频段为采样频率小于第一采样频率的频率范围。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 less 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, the audio signal in the frequency range less than the first sampling frequency in the second audio signal is compensated for the mid-high frequency harmonic signal, so as to complete the mid-high frequency harmonic signal compensation for the first audio signal in the second audio signal, thereby realizing the repair of the mid-high frequency harmonic signal lost in the compression process of the audio file, so as to restore the sound characteristics lost in the audio file, thereby ensuring that the audio output by the audio device retains the sound characteristics of the original audio to a greater extent, reducing the distortion of the audio output by the audio device, and improving the clarity of the output audio.

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

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

其中,第二频段为第一采样频率与第二采样频率之间的频率范围,第二谐波信息的频率属于第二频段。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: performing harmonic compensation on the audio signal with a frequency greater than or equal to the second sampling frequency in the third audio signal according to the second harmonic information to obtain a fourth audio signal.

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

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

基于该实施例,结合图4,如图9所示,上述步骤S104可以具体实现为以下步骤:Based on this embodiment, in combination with 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 a plurality of audio signals in different frequency bands.

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

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

其中,第五音频信号包括多个频率段的音频信号经过滤波处理得到的音频信号。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 based on the acoustic power volume density frequency response of the speaker.

在另一些实施方式中,VIR滤波器的滤波系数也可以根据其他非滤波器的滤波系数转换而成。In other implementations, the filter coefficients of the VIR filter may also be converted based on 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 the filtering parameters, and the preset frequency band is usually a frequency range lower than the first sampling frequency.

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

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

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

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

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

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

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

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

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

(1)音响设备接收音频文件的第一音频信号。(1) An audio device receives a first audio signal of an audio file.

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

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

(4)音响设备判断第一音频信号是否包括其他格式的音频信号。其中,如果是,则进入(5),如果否,则进入(6)。(4) The audio device determines whether the first audio signal includes an audio signal in another format. If yes, the process proceeds to (5); if no, the process proceeds to (6).

(5)如果是,音响设备将其他格式的音频信号,转换为双通道脉冲编码调制格式的第一音频信号。(5) If yes, the audio device converts the audio signal in other formats into a first audio signal in a 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 device performs medium and high frequency harmonic compensation on the second audio signal through the first harmonic generator to generate a third audio signal.

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

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

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

本申请实施例可以根据上述方法示例对控制器进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。可选的,本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。The embodiment of the present application can divide the controller into functional modules according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware or in the form of software functional modules. Optionally, the division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods 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 the hardware structure of a controller. As shown in Figure 13, the controller 300 includes a processor 301, and optionally, also includes a memory 302 and a communication interface 303 connected to the processor 301. The processor 301, the memory 302 and the communication interface 303 are connected via 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)处理器。这里的处理器可以指一个或多个设备、电路或用于处理数据(例如计算机程序指令)的处理核。The processor 301 may be a central processing unit (CPU), a general-purpose processor network processor (NP), a digital signal processor (DSP), a microprocessor, a microcontroller, a programmable logic device (PLD), or any combination thereof. The processor 301 may also be any other device having a processing function, such as a circuit, a device, or a software module. The processor 301 may also include multiple CPUs, and the processor 301 may be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. The processor here 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中存储的计算机程序代码,从而实现本申请实施例提供的控制方法。The memory 302 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of an instruction or data structure and can be accessed by a computer, and the present embodiment of the application does not impose any restrictions on this. The memory 302 may exist independently or be integrated with the processor 301. Among them, the memory 302 may contain a computer program code. The processor 301 is used to execute the computer program code stored in the memory 302, so as to realize the control method provided in the embodiment of the present application.

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

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

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

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

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

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

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

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

Claims (10)

1.一种音响设备,其特征在于,包括采样率转换器、一级谐波生成器、二级谐波生成器、扬声器和控制器;所述控制器与所述采样率转换器、所述一级谐波生成器、所述二级谐波生成器和所述扬声器连接;1. An audio device, characterized in that it comprises a sampling rate converter, a primary harmonic generator, a secondary harmonic generator, a speaker and a controller; the controller is connected to the sampling rate converter, the primary harmonic generator, the secondary harmonic generator and the speaker; 所述控制器被配置为:The controller is configured to: 响应于用户针对音频文件执行的播放操作,控制所述采样率转换器将所述音频文件中第一采样频率的第一音频信号转换为第二采样频率的第二音频信号,所述第一采样频率小于所述第二采样频率,所述第一音频信号的采样幅值小于所述第二音频信号的采样幅值;In response to a user's play operation on an audio file, controlling the sampling rate converter to convert 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 less than the second sampling frequency, and the sampling amplitude of the first audio signal is less than the sampling amplitude of the second audio signal; 控制所述一级谐波生成器根据所述第一音频信号生成第一谐波信息,并根据所述第一谐波信息对所述第二音频信号进行谐波补偿,生成第三音频信号;Controlling the primary harmonic generator to generate first harmonic information according to the first audio signal, and performing harmonic compensation on the second audio signal according to the first harmonic information to generate a third audio signal; 控制所述二级谐波生成器根据所述第三音频信号生成第二谐波信息,并根据所述第二谐波信息对所述第三音频信号进行谐波补偿,生成第四音频信号;controlling the secondary harmonic generator to generate second harmonic information according to the third audio signal, and performing harmonic compensation on the third audio signal according to the second harmonic information to generate a fourth audio signal; 控制所述扬声器根据所述第四音频信号,输出目标音频信号,其中,所述第一谐波信息的频率小于所述第二谐波信息的频率。The speaker is controlled to output a target audio signal according to the fourth audio signal, wherein a frequency of the first harmonic information is lower than a frequency of the second harmonic information. 2.根据权利要求1所述的音响设备,其特征在于,所述第一音频信号为双通道脉冲编码调制格式的音频信号,在所述控制所述采样率转换器将所述音频文件中第一采样频率的第一音频信号转换为第二采样频率的第二音频信号之前,还包括:2. The audio device according to claim 1, wherein the first audio signal is an audio signal in a dual-channel pulse code modulation format, and before controlling the sampling rate converter to convert the first audio signal of the first sampling frequency in the audio file into a second audio signal of the second sampling frequency, the audio device further comprises: 在所述音频文件包括其他格式的音频信号的情况下,将所述其他格式的音频信号,转换为双通道脉冲编码调制格式的音频信号,所述其他格式包括所述双通道脉冲编码调制格式以外的格式。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, wherein the other formats include formats other than the two-channel pulse code modulation format. 3.根据权利要求1所述的音响设备,其特征在于,所述根据所述第一谐波信息,对所述第二音频信号进行谐波补偿,生成第三音频信号,包括:3. The audio device according to claim 1, wherein the performing harmonic compensation on the second audio signal according to the first harmonic information to generate the third audio signal comprises: 根据所述第一谐波信息,对所述第二音频信号中第一频段内的音频信号进行谐波补偿,得到所述第三音频信号,所述第一谐波信息的频率属于所述第一频段,所述第一频段为采样频率小于所述第一采样频率的频率范围。According to the first harmonic information, harmonic compensation is performed on an audio signal within a first frequency band in the second audio signal to obtain the third audio signal, wherein the frequency of the first harmonic information belongs to the first frequency band, and the first frequency band is a frequency range in which a sampling frequency is less than the first sampling frequency. 4.根据权利要求1所述的音响设备,其特征在于,根据所述第二谐波信息,对所述第三音频信号进行谐波补偿,生成第四音频信号,包括:4. The audio device according to claim 1, wherein the third audio signal is subjected to harmonic compensation according to the second harmonic information to generate a fourth audio signal, comprising: 将所述第三音频信号中第二频段内的音频信号的频率,均转换成大于或等于所述第二采样频率的频率;第二频段为所述第一采样频率与所述第二采样频率之间的频率范围,所述第二谐波信息的频率属于所述第二频段;converting the frequencies of the audio signals in the second frequency band of the third audio signal into frequencies greater than or equal to the second sampling frequency; 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; 根据所述第二谐波信息,对所述第三音频信号中频率大于或等于所述第二采样频率的音频信号进行谐波补偿,得到所述第四音频信号。According to the second harmonic information, harmonic compensation is performed on the audio signal in the third audio signal whose frequency is greater than or equal to the second sampling frequency to obtain the fourth audio signal. 5.根据权利要求1所述的音响设备,其特征在于,所述音响设备还包括:可变分辨率脉冲响应滤波器;所述可变分辨率脉冲响应滤波器与所述控制器连接;5. The audio device according to claim 1, characterized in that the audio device further comprises: a variable resolution impulse response filter; the variable resolution impulse response filter is connected to the controller; 所述控制器在控制所述扬声器根据所述第四音频信号输出目标音频信号之前,还被配置为:Before controlling the speaker to output the target audio signal according to the fourth audio signal, the controller is further configured to: 控制所述可变分辨率脉冲响应滤波器,将所述第四音频信号划分为多个不同频段的音频信号;Controlling the variable resolution impulse response filter to divide the fourth audio signal into a plurality of audio signals in different frequency bands; 按照各个所述频段对应的滤波参数,分别对各个所述频段的音频信号进行滤波处理,得到第五音频信号,其中,所述第五音频信号包括多个所述频段的音频信号经过所述滤波处理得到的音频信号;According to the filtering parameters corresponding to the respective frequency bands, the audio signals of the respective frequency bands are respectively filtered to obtain a fifth audio signal, wherein the fifth audio signal includes an audio signal obtained by filtering the audio signals of the plurality of frequency bands; 根据所述第五音频信号,生成预设频段的所述目标音频信号;所述预设频段为低于第一采样频率的频率范围;Generate the target audio signal of a preset frequency band according to the fifth audio signal; the preset frequency band is a frequency range lower than the first sampling frequency; 所述控制器控制所述扬声器根据所述第四音频信号输出目标音频信号,被配置为:The controller controls the speaker to output a target audio signal according to the fourth audio signal, and is configured to: 控制所述扬声器输出所述预设频段的所述目标音频信号。The speaker is controlled to output the target audio signal in the preset frequency band. 6.根据权利要求5所述的音响设备,其特征在于,所述扬声器的相位与所述可变分辨率脉冲响应滤波器的相位相同。6 . The audio device according to claim 5 , wherein a phase of the speaker is the same as a phase of the variable resolution impulse response filter. 7.根据权利要求1至6中任一项所述的音响设备,其特征在于,在所述控制所述采样率转换器将所述音频文件中第一采样频率的第一音频信号转换为第二采样频率的第二音频信号之前,还包括:7. The audio device according to any one of claims 1 to 6, characterized in that 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 further comprises: 解析所述音频文件,得到所述第一音频信号。The audio file is parsed to obtain the first audio signal. 8.一种音频信号处理方法,其特征在于,所述方法包括:8. A method for processing an audio signal, characterized in that the method comprises: 响应于用户针对音频文件执行的播放操作,将所述音频文件中第一采样频率的第一音频信号转换为第二采样频率的第二音频信号,所述第一采样频率小于所述第二采样频率,所述第一音频信号的采样幅值小于所述第二音频信号的采样幅值;In response to a user's play 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 a sampling amplitude of the first audio signal is lower than a sampling amplitude of the second audio signal; 根据所述第一音频信号生成第一谐波信息,并根据所述第一谐波信息对所述第二音频信号进行谐波补偿,生成第三音频信号;generating first harmonic information according to the first audio signal, and performing harmonic compensation on the second audio signal according to the first harmonic information to generate a third audio signal; 根据所述第三音频信号生成第二谐波信息,并根据所述第二谐波信息对所述第三音频信号进行谐波补偿,生成第四音频信号;generating second harmonic information according to the third audio signal, and performing harmonic compensation on the third audio signal according to the second harmonic information to generate a fourth audio signal; 控制扬声器根据所述第四音频信号,输出目标音频信号,其中,所述第一谐波信息的频率小于所述第二谐波信息的频率。The speaker is controlled to output a target audio signal according to the fourth audio signal, wherein a frequency of the first harmonic information is smaller than a frequency of the second harmonic information. 9.根据权利要求8所述的音频信号处理方法,其特征在于,所述根据所述第一谐波信息对所述第二音频信号进行谐波补偿,生成第三音频信号,包括:9. The audio signal processing method according to claim 8, wherein the performing harmonic compensation on the second audio signal according to the first harmonic information to generate a third audio signal comprises: 根据所述第一谐波信息,对所述第二音频信号中第一频段内的音频信号进行谐波补偿,得到所述第三音频信号,所述第一谐波信息的频率属于所述第一频段,所述第一频段为采样频率小于所述第一采样频率的频率范围。According to the first harmonic information, harmonic compensation is performed on an audio signal within a first frequency band in the second audio signal to obtain the third audio signal, wherein the frequency of the first harmonic information belongs to the first frequency band, and the first frequency band is a frequency range in which a sampling frequency is less than the first sampling frequency. 10.根据权利要求8所述的音频信号处理方法,其特征在于,根据所述第二谐波信息对所述第三音频信号进行谐波补偿,生成第四音频信号,包括:10. The audio signal processing method according to claim 8, characterized in that performing harmonic compensation on the third audio signal according to the second harmonic information to generate a fourth audio signal comprises: 将所述第三音频信号中第二频段内的音频信号的采样频率,均转换成所述第二采样频率;第二频段为所述第一采样频率与所述第二采样频率之间的频率范围,所述第二谐波信息的频率属于所述第二频段;converting the sampling frequencies of the audio signals in the second frequency band of the third audio signal into the second sampling frequency; 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; 根据所述第二谐波信息,对所述第三音频信号中所述第二采样频率的音频信号进行谐波补偿,得到所述第四音频信号。According to the second harmonic information, harmonic compensation is performed on the audio signal of the second sampling frequency in the third audio signal to obtain the fourth audio signal.
CN202210833427.4A 2022-07-15 2022-07-15 A kind of sound equipment and audio signal processing method Active CN115278456B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210833427.4A CN115278456B (en) 2022-07-15 2022-07-15 A kind of sound equipment and audio signal processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210833427.4A CN115278456B (en) 2022-07-15 2022-07-15 A kind of sound equipment and audio signal processing method

Publications (2)

Publication Number Publication Date
CN115278456A CN115278456A (en) 2022-11-01
CN115278456B true CN115278456B (en) 2024-10-25

Family

ID=83765090

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210833427.4A Active CN115278456B (en) 2022-07-15 2022-07-15 A kind of sound equipment and audio signal processing method

Country Status (1)

Country Link
CN (1) CN115278456B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116389638B (en) * 2023-03-31 2024-09-24 腾讯音乐娱乐科技(深圳)有限公司 Method for determining audio signal processing time, terminal device and computer readable storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101373961A (en) * 2007-08-23 2009-02-25 索尼株式会社 Signal processing device, signal processing method, and program therefor
CN101868984A (en) * 2007-09-19 2010-10-20 弗劳恩霍夫应用研究促进协会 Device and method for determining high-precision component signal

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013046242A (en) * 2011-08-24 2013-03-04 Semiconductor Components Industries Llc Sound signal processing circuit
CN102932710B (en) * 2012-10-10 2015-06-03 广州创维平面显示科技有限公司 Method and device for bass compensation
WO2018084848A1 (en) * 2016-11-04 2018-05-11 Hewlett-Packard Development Company, L.P. Dominant frequency processing of audio signals

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101373961A (en) * 2007-08-23 2009-02-25 索尼株式会社 Signal processing device, signal processing method, and program therefor
CN101868984A (en) * 2007-09-19 2010-10-20 弗劳恩霍夫应用研究促进协会 Device and method for determining high-precision component signal

Also Published As

Publication number Publication date
CN115278456A (en) 2022-11-01

Similar Documents

Publication Publication Date Title
CN115442709B (en) Audio processing method, virtual bass enhancement system, device, and storage medium
CN107025121B (en) Software upgrade method, device and electronic device
CN113170260B (en) Audio processing method, device, storage medium and electronic device
JP2006503490A (en) Audio signal adaptive conversion apparatus according to user preference and method thereof
JP7552993B2 (en) Audio signal processing method, device and storage medium
CN111796791A (en) Bass enhancement method, system, electronic device and storage medium
CN115278456B (en) A kind of sound equipment and audio signal processing method
CN114245271A (en) Audio signal processing method and electronic equipment
CN114299976A (en) Audio data processing method and electronic device
JP5737357B2 (en) Music playback apparatus and music playback program
CN110096250B (en) Audio data processing method and device, electronic equipment and storage medium
CN102098607B (en) In portable terminal, increase equipment and the method for volume
CN114420158A (en) Model training method and device, target frequency response information determination method and device
CN115346544A (en) Audio signal processing method, apparatus, storage medium, and program product
CN117939356A (en) Audio correction method, device, computer equipment and storage medium
CN115938339A (en) Audio data processing method and system
CN110380944A (en) Electronic equipment and control method thereof
CN115835112A (en) Projector-based adaptive sound effect debugging method, system, device and platform
US20120026838A1 (en) Acoustic data communication device
JP6844114B2 (en) Data communication systems, terminal equipment, audio equipment, data communication methods, and programs
US20250287151A1 (en) Audio processing device and method
US20220406317A1 (en) Conference terminal and embedding method of audio watermarks
CN117792665A (en) Data transmission methods, devices and equipment
CN107018021A (en) Software upgrade processing method, device and terminal
CN109068233B (en) Virtual bass generation method, virtual bass module and audio processing chip

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
TR01 Transfer 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