Audio glasses and audio signal processing method and storage medium thereof
By using filtering models and expected frequency bands to divide the audio signal in audio glasses, the problem that audio glasses cannot take into account both sound quality and loudness is solved, and the effect of providing excellent audio experience at different audio signal amplitudes is achieved.
Patent Information
- Application Number
- CN202210468690.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-29
- Publication Date
- 2025-02-28
- Estimated Expiration
- 2042-04-29
AI Technical Summary
Current audio glasses cannot provide an audio experience that meets user needs when both large and small audio signals, and cannot find a balance between sound quality and loudness.
By obtaining the signal amplitude of the audio signal to be output, when the signal amplitude is greater than or equal to the preset amplitude, the audio signal is divided using the pre-created filtering model and the desired frequency band to obtain a target audio signal containing only the desired frequency band, and the audio is output based on this.
When the audio signal amplitude is small, the sound quality is ensured, the sound loudness is increased when the amplitude is large, the user's listening needs are met, and the sound leakage of audio glasses is reduced.
Smart Images

Figure CN114697801B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of audio processing technology, and in particular to audio glasses and an audio signal processing method and storage medium thereof. Background Art
[0002] In order to provide the same excellent acoustic experience for both large and small audio signals, general electronic devices usually use at least two speakers, for example, one speaker is used to play small audio signals and the other speaker is used to play large audio signals. Therefore, a large space is usually reserved in the electronic device to accommodate the two speakers.
[0003] The speaker assembly in the audio glasses is usually arranged at the temples to provide the user with an audio experience. Due to the size of the temples, it is usually impossible to provide a space for accommodating the speaker assembly similar to that of general electronic devices.
[0004] Therefore, current audio glasses either focus on outputting high-quality audio signals or focus on outputting low-volume audio signals, and are unable to provide an audio experience that meets user needs when dealing with both large and small audio signals. Summary of the invention
[0005] The embodiments of the present application aim to solve the technical problem that current audio glasses cannot provide an audio experience that meets user needs when using both large audio signals and small audio signals by providing an audio pair of glasses and an audio signal processing method and a storage medium.
[0006] The embodiment of the present application provides an audio signal processing method of audio glasses, and the audio signal processing method of audio glasses includes:
[0007] Acquire an audio signal to be output, and determine a signal amplitude of the audio signal to be output;
[0008] When the signal amplitude is greater than or equal to a preset amplitude, obtaining a pre-created filtering model and a desired frequency band;
[0009] Performing frequency division processing on the audio signal to be output according to the expected frequency band and the filtering model to obtain a target audio signal containing only the expected frequency band;
[0010] Audio is output based on the target audio signal.
[0011] In one embodiment, the desired frequency band is an intermediate frequency band, and the step of performing frequency division processing on the audio signal to be output according to the desired frequency band and the filtering model to obtain a target audio signal containing only the desired frequency band comprises:
[0012] Update the default frequency band parameters of the filter model according to the expected frequency band to obtain the updated filter model;
[0013] The updated filtering model is used to perform frequency division processing on the audio signal to be output to obtain an intermediate frequency signal.
[0014] In one embodiment, the step of obtaining the audio signal to be output includes:
[0015] Get the input audio signal;
[0016] The input audio signal is input into the power amplification module in the audio glasses for power adjustment to obtain the audio signal to be output.
[0017] In one embodiment, the step of inputting the input audio signal into a power amplification module in the audio glasses for power adjustment to obtain the audio signal to be output includes:
[0018] Obtaining the current volume value of the audio glasses;
[0019] According to the current volume value, the power of the input audio signal is adjusted by using the power amplification module to obtain a preprocessed audio signal;
[0020] updating an amplification parameter of the power amplification module according to the preprocessed audio signal;
[0021] The updated power amplification module is used to adjust the power of the input audio signal to obtain the audio signal to be output.
[0022] In one embodiment, the step of updating the amplification parameters of the power amplification module according to the preprocessed audio signal comprises:
[0023] Obtaining the expected amplification parameter corresponding to the current volume value;
[0024] comparing the desired amplification parameter with the amplification parameter of the preprocessed audio signal;
[0025] When the amplification parameter of the preprocessed audio signal is less than the expected amplification parameter, the amplification parameter of the power amplification module is updated to the expected amplification parameter.
[0026] In one embodiment, the step of determining the signal amplitude of the audio signal to be output includes:
[0027] Continuously acquiring multiple groups of sampling signals based on the audio signal to be output;
[0028] Performing Fourier transform on the multiple groups of sampling signals to obtain sampling amplitudes of the multiple groups of sampling signals;
[0029] The average value of the multiple groups of sampling amplitudes is used as the signal amplitude.
[0030] In one embodiment, before performing frequency division processing on the to-be-output audio signal according to the expected frequency band and the filtering model, the audio signal processing method further includes:
[0031] Obtain a first performance indicator of the low-pass filter and a second performance indicator of the high-pass filter; the first performance indicator at least includes a first default passband cutoff frequency, a first default passband attenuation, a first default stopband cutoff frequency and a first default stopband attenuation, and the second performance indicator at least includes a second default passband cutoff frequency, a second default passband attenuation, a second default stopband cutoff frequency and a second default stopband attenuation;
[0032] Creating the low-pass filter according to the first performance indicator and creating the high-pass filter according to the second performance indicator;
[0033] The low-pass filter and the high-pass filter are connected in series to obtain the filtering model.
[0034] In one embodiment, before performing frequency division processing on the to-be-output audio signal according to the expected frequency band and the filtering model, the audio signal processing method further includes:
[0035] Obtaining a third performance indicator of the bandpass filter, wherein the third performance indicator at least includes a passband upper and lower boundary frequencies, a third default passband attenuation, a stopband upper and lower boundary frequencies, and a third default stopband attenuation;
[0036] The bandpass filter is created according to the third performance indicator, and the bandpass filter is used as the filtering model.
[0037] In addition, to achieve the above-mentioned purpose, the present invention also provides an audio glasses, which include: a memory, a processor, and an audio signal processing program for the audio glasses stored in the memory and executable on the processor, and the audio signal processing program for the audio glasses implements the steps of the above-mentioned audio signal processing method for the audio glasses when executed by the processor.
[0038] In addition, to achieve the above-mentioned purpose, the present invention also provides a storage medium on which an audio signal processing program for audio glasses is stored. When the audio signal processing program for audio glasses is executed by a processor, the steps of the audio signal processing method for audio glasses are implemented.
[0039] The technical solution of an audio glasses and an audio signal processing method and a storage medium provided in the embodiments of the present application has at least the following technical effects or advantages:
[0040] The present invention adopts a method of obtaining a pre-created filtering model and an expected frequency band when the signal amplitude of the acquired audio signal to be output is greater than or equal to a preset amplitude; performing frequency division processing on the audio signal to be output according to the expected frequency band and the filtering model to obtain a target audio signal containing only the expected frequency band; and outputting audio based on the target audio signal. This technical solution solves the technical problem that current audio glasses cannot provide an audio experience that meets user needs when both large audio signals and small audio signals are used. It achieves sound quality assurance when the audio signal amplitude is small, and can increase the sound loudness when the audio signal amplitude is large, while also ensuring the sound quality, which is conducive to meeting the listening needs of customers. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 A schematic diagram of the structure of the hardware operating environment involved in the embodiment of the present invention;
[0042] Figure 2 It is a flowchart of a first embodiment of an audio signal processing method of audio glasses of the present invention;
[0043] Figure 3 1 is a flow chart of a second embodiment of the audio signal processing method of the audio glasses of the present invention;
[0044] Figure 4 1 is a flow chart of a third embodiment of the audio signal processing method of the audio glasses of the present invention;
[0045] Figure 5 This is a flowchart of a specific implementation of step S212 of the present invention;
[0046] Figure 6 4 is a flow chart of a fourth embodiment of the audio signal processing method of audio glasses of the present invention. DETAILED DESCRIPTION
[0047] In order to better understand the above technical solution, exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0048] like Figure 1 As shown, Figure 1 It is a schematic diagram of the structure of the hardware operating environment involved in the embodiment of the present invention.
[0049] It should be noted that Figure 1 This is a structural diagram of the hardware operating environment of the audio glasses.
[0050] As a way to implement this, Figure 1 As shown, the embodiment of the present invention relates to audio glasses, which include: a processor 1001, such as a CPU, a memory 1002, and a communication bus 1003. The communication bus 1003 is used to realize the connection and communication between these components.
[0051] The memory 1002 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. Figure 1 As shown, the memory 1002 as a storage medium may include an audio signal processing program of the audio glasses; and the processor 1001 may be used to call the audio signal processing program of the audio glasses stored in the memory 1002, and perform the following operations:
[0052] Acquire an audio signal to be output, and determine a signal amplitude of the audio signal to be output;
[0053] When the signal amplitude is greater than or equal to a preset amplitude, obtaining a pre-created filtering model and a desired frequency band;
[0054] Performing frequency division processing on the audio signal to be output according to the expected frequency band and the filtering model to obtain a target audio signal containing only the expected frequency band;
[0055] Audio is output based on the target audio signal.
[0056] Further, the processor 1001 may be used to call the audio signal processing program of the audio glasses stored in the memory 1002, and perform the following operations:
[0057] Update the default frequency band parameters of the filter model according to the expected frequency band to obtain the updated filter model;
[0058] The updated filtering model is used to perform frequency division processing on the audio signal to be output to obtain an intermediate frequency signal.
[0059] Further, the processor 1001 may be used to call the audio signal processing program of the audio glasses stored in the memory 1002, and perform the following operations:
[0060] Get the input audio signal;
[0061] The input audio signal is input into the power amplification module in the audio glasses for power adjustment to obtain the audio signal to be output.
[0062] Further, the processor 1001 may be used to call the audio signal processing program of the audio glasses stored in the memory 1002, and perform the following operations:
[0063] Obtaining the current volume value of the audio glasses;
[0064] According to the current volume value, the power of the input audio signal is adjusted by using the power amplification module to obtain a preprocessed audio signal;
[0065] updating an amplification parameter of the power amplification module according to the preprocessed audio signal;
[0066] The updated power amplification module is used to adjust the power of the input audio signal to obtain the audio signal to be output.
[0067] Further, the processor 1001 may be used to call the audio signal processing program of the audio glasses stored in the memory 1002, and perform the following operations:
[0068] Obtaining the expected amplification parameter corresponding to the current volume value;
[0069] comparing the desired amplification parameter with the amplification parameter of the preprocessed audio signal;
[0070] When the amplification parameter of the preprocessed audio signal is less than the expected amplification parameter, the amplification parameter of the power amplification module is updated to the expected amplification parameter.
[0071] Further, the processor 1001 may be used to call the audio signal processing program of the audio glasses stored in the memory 1002, and perform the following operations:
[0072] Continuously acquiring multiple groups of sampling signals based on the audio signal to be output;
[0073] Performing Fourier transform on the multiple groups of sampling signals to obtain sampling amplitudes of the multiple groups of sampling signals;
[0074] The average value of the multiple groups of sampling amplitudes is used as the signal amplitude.
[0075] Further, the processor 1001 may be used to call the audio signal processing program of the audio glasses stored in the memory 1002, and perform the following operations:
[0076] Obtain a first performance indicator of the low-pass filter and a second performance indicator of the high-pass filter; the first performance indicator at least includes a first default passband cutoff frequency, a first default passband attenuation, a first default stopband cutoff frequency and a first default stopband attenuation, and the second performance indicator at least includes a second default passband cutoff frequency, a second default passband attenuation, a second default stopband cutoff frequency and a second default stopband attenuation;
[0077] Creating the low-pass filter according to the first performance indicator and creating the high-pass filter according to the second performance indicator;
[0078] The low-pass filter and the high-pass filter are connected in series to obtain the filtering model.
[0079] Further, the processor 1001 may be used to call the audio signal processing program of the audio glasses stored in the memory 1002, and perform the following operations:
[0080] Obtaining a third performance indicator of the bandpass filter, wherein the third performance indicator at least includes a passband upper and lower boundary frequencies, a third default passband attenuation, a stopband upper and lower boundary frequencies, and a third default stopband attenuation;
[0081] The bandpass filter is created according to the third performance indicator, and the bandpass filter is used as the filtering model.
[0082] An embodiment of the present invention provides an embodiment of an audio signal processing method of audio glasses. It should be noted that although the logical order is shown in the flow chart, in some cases, the steps shown or described can be performed in an order different from that here. The audio signal processing method of audio glasses is applied to audio signal processing.
[0083] like Figure 2 As shown, in the first embodiment of the present application, the audio signal processing method of the audio glasses of the present application includes the following steps:
[0084] Step S210: Acquire the audio signal to be output.
[0085] Step S220: Determine the signal amplitude of the audio signal to be output.
[0086] In this embodiment, the audio signal to be output refers to an audio signal that has been processed by the DSP digital signal processing system and the smart power amplifier (smart PA) in sequence and has not yet been output. Before outputting the audio signal to be output, it is necessary to perform frequency division processing on the acquired audio signal to be output. The frequency division processing is performed based on the signal amplitude of the audio signal to be output. The signal amplitude of the audio signal to be output can be obtained through the amplitude-frequency curve of the audio signal to be output, wherein the frequency division processing refers to filtering the audio signal to be output.
[0087] Step S230: When the signal amplitude is greater than or equal to a preset amplitude, a pre-created filtering model and an expected frequency band are obtained.
[0088] Step S240: performing frequency division processing on the audio signal to be output according to the expected frequency band and the filtering model to obtain a target audio signal containing only the expected frequency band.
[0089] In this embodiment, before the frequency division processing of the audio signal to be output is performed, it is necessary to determine whether the audio signal to be output is a defined large audio signal or a small audio signal. The process of determining whether the audio signal to be output is a large audio signal or a small audio signal is to compare the signal amplitude of the audio signal to be output with the preset amplitude. If the signal amplitude of the audio signal to be output is greater than or equal to the preset amplitude, it is determined that the audio signal to be output is a large audio signal, and then the filter model and the expected frequency band are obtained. The expected frequency band is the intermediate frequency band, and the filter model is pre-created. By configuring different frequency bands for the filter model, the configured filter model can output the signal of the corresponding configured frequency band. For example, after the filter model is configured to retain the parameters of the low-frequency band, the configured filter model can filter out the high-frequency signal in the signal, retain and output the low-frequency signal. Among them, the filter model includes a Butterworth filter model, a Chebyshev filter model, an elliptical filter model, etc. The passband stopband of Butterworth is monotonic. In this embodiment, the Butterworth filter model is preferentially used as the required filter model.
[0090] Specifically, after obtaining the filtering model and the intermediate frequency band, the filtering model is configured using the intermediate frequency band as the filtering indicator of the filtering model. After the configured filtering model filters the output audio signal, the high-frequency signal and the low-frequency signal in the output audio signal are filtered, and the intermediate frequency signal is retained and output. The output intermediate frequency signal is the target audio signal of the desired frequency band.
[0091] Step S250: outputting audio based on the target audio signal.
[0092] In this embodiment, after the intermediate frequency signal is obtained, audio is output based on the intermediate frequency signal, and the audio is played through the speaker, so that the user can hear a loud and high-quality sound. If the signal amplitude of the audio signal to be output is less than the preset amplitude, it is determined that the audio signal to be output is a small audio signal, and the audio signal to be output is used as the target audio signal, that is, the audio signal to be output is not processed, and then the audio is output based on the audio signal to be output. Since the audio signal to be output obtained by processing with the intelligent power amplifier can improve the sound quality to a certain extent, when the signal amplitude of the audio signal to be output is less than the preset amplitude, the audio signal to be output is output, and the user can hear a small and high-quality sound.
[0093] Furthermore, usually after the user increases the volume of the audio glasses, the loudness of the sound that the audio glasses need to output increases, resulting in the signal amplitude of the output audio signal being greater than or equal to the preset amplitude. The present application can also reduce the problem of sound leakage of the audio glasses by outputting the audio of the intermediate frequency signal when the signal amplitude of the output audio signal is greater than or equal to the preset amplitude.
[0094] According to the above technical solution, the present embodiment adopts the method of obtaining the audio signal to be output and determining the signal amplitude of the audio signal to be output. When the signal amplitude is greater than or equal to the preset amplitude, the pre-created filtering model and the expected frequency band are obtained, and the output audio signal is frequency-divided according to the expected frequency band and the filtering model to obtain a target audio signal containing only the expected frequency band. The technical means of outputting audio based on the target audio signal ensures the sound quality when the audio signal amplitude is small, and can improve the sound loudness when the audio signal amplitude is large, and also ensures the sound quality, which is conducive to meeting the listening needs of customers and can also reduce the problem of sound leakage of audio glasses.
[0095] like Figure 3 As shown, in the second embodiment of the present application, step S240 includes the following steps:
[0096] Step S241: updating the default frequency band parameters of the filtering model according to the expected frequency band to obtain the updated filtering model;
[0097] Step S242: using the updated filtering model to perform frequency division processing on the audio signal to be output to obtain an intermediate frequency signal.
[0098] The filter model provides default frequency band parameters that can be customized and updated, and the default frequency band parameters can be modified according to actual filtering requirements. After filtering the signal according to the modified default frequency band parameters, the filter model outputs the signal of the actual required frequency band. In this embodiment, the default frequency band parameters are modified according to the relevant parameters corresponding to the required intermediate frequency band (such as filter order, frequency, etc.), and the filter model uses the modified default frequency band parameters to filter the audio signal to be output, filter out the low-frequency signal and the high-frequency signal in the audio signal to be output, and retain and output the intermediate frequency signal to be output through the speaker.
[0099] According to the above technical solution, this embodiment can flexibly modify the default frequency band parameters according to actual filtering requirements, thereby improving the flexibility of the filtering model when used.
[0100] like Figure 4 As shown, in the third embodiment of the present application, step S210 includes the following steps:
[0101] Step S211: Acquire an input audio signal.
[0102] In this embodiment, the input audio signal is obtained from the original audio signal processed by the DSP digital signal processing system. The DSP digital signal processing system can perform sound quality improvement, noise reduction, echo elimination and other processing on the original audio signal.
[0103] Step S212: inputting the input audio signal into the power amplification module in the audio glasses for power adjustment to obtain the audio signal to be output.
[0104] In this embodiment, the power amplification module refers to the above-mentioned smart power amplifier (smart PA), and the smart power amplifier adjusts the power of the input audio signal to obtain the audio signal to be output. Figure 5 As shown, step S212 includes the following steps:
[0105] Step S2121: Obtain the current volume value of the audio glasses.
[0106] Step S2122: using the power amplification module to adjust the power of the input audio signal according to the current volume value to obtain a preprocessed audio signal.
[0107] In this embodiment, the audio glasses output the audio of the volume corresponding to the current volume value according to the current volume value set by the user. Since the amplification parameter corresponding to the volume value in the power amplifier module is smaller than the expected amplification parameter corresponding to the volume value when the power amplifier module is designed, before outputting the audio of the volume corresponding to the current volume value, the power amplifier module amplifies the power of the input audio signal according to the amplification parameter corresponding to the current volume value in the power amplifier module to obtain the amplified input audio signal, i.e., the pre-processed audio signal. Among them, the amplification parameter refers to the power amplification factor.
[0108] Step S2123: updating the amplification parameters of the power amplification module according to the preprocessed audio signal.
[0109] Specifically, since the amplification parameter corresponding to the current volume value in the power amplifier module itself is smaller than the expected amplification parameter corresponding to the current volume value, the preprocessed audio signal cannot be used as the audio signal to be output, so it is necessary to update the amplification parameter of the power amplifier module according to the preprocessed audio signal. Updating the amplification parameter of the power amplifier module according to the preprocessed audio signal means replacing the amplification parameter corresponding to the current volume value in the power amplifier module itself with the expected amplification parameter corresponding to the current volume value, as follows:
[0110] Obtaining the expected amplification parameter corresponding to the current volume value;
[0111] comparing the desired amplification parameter with the amplification parameter of the preprocessed audio signal;
[0112] When the amplification parameter of the preprocessed audio signal is less than the expected amplification parameter, the amplification parameter of the power amplification module is updated to the expected amplification parameter.
[0113] After obtaining the preprocessed audio signal, the amplification parameter of the preprocessed audio signal is obtained, and then the expected amplification parameter is compared with the amplification parameter of the preprocessed audio signal. If the amplification parameter of the preprocessed audio signal is less than the expected amplification parameter corresponding to the current volume value, the expected amplification parameter corresponding to the current volume value is used to update the amplification parameter corresponding to the current volume value in the power amplification module itself, that is, the amplification parameter corresponding to the current volume value in the power amplification module itself is changed to the expected amplification parameter corresponding to the current volume value.
[0114] Step S2124: using the updated power amplification module to adjust the power of the input audio signal to obtain the audio signal to be output.
[0115] In this embodiment, the amplification parameter corresponding to the current volume value in the power amplifier module itself is changed to the expected amplification parameter corresponding to the current volume value, which can be understood as updating the amplification parameter of the power amplifier module, and then the input audio signal is input into the updated power amplifier module, and the updated power amplifier module is used to power amplify the input audio signal, so as to obtain the audio signal to be output, that is, the amplification parameter of the obtained audio signal to be output is the same as the expected amplification parameter. Specifically, the power adjustment of the input audio signal using the updated power amplifier module belongs to the power amplifier module feedback adjustment of the input audio signal according to the pre-processed audio signal, which can effectively improve the volume of the audio output based on the audio signal to be output.
[0116] like Figure 6 As shown, in the fourth embodiment of the present application, step S220 includes the following steps:
[0117] Step S221: continuously acquiring multiple groups of sampling signals based on the audio signal to be output.
[0118] Step S222: Perform Fourier transform on the multiple groups of sampling signals to obtain sampling amplitudes of the multiple groups of sampling signals.
[0119] Step S223: taking the average value of the multiple groups of sampling amplitudes as the signal amplitude.
[0120] In this embodiment, a preset time length is obtained, and multiple groups of sampling signals of the audio signal to be output are continuously obtained within the preset time length, and then the multiple groups of sampling signals are fast Fourier transformed to obtain the sampling amplitudes of the multiple groups of sampling signals, and then the average value of the sampling amplitudes of the multiple groups of sampling signals is calculated, and the average value is used as the signal amplitude of the audio signal to be output, so as to compare with the preset amplitude, so as to determine whether the audio signal to be output is a large audio signal or a small audio signal. This application is conducive to improving the accuracy of signal amplitude judgment by using the average value of the sampling amplitude as the signal amplitude of the audio signal to be output.
[0121] Furthermore, before performing frequency division processing on the audio signal to be output according to the expected frequency band and the filter model, the audio signal processing method provided by the present application also includes a process of creating a filter model, which is specifically as follows:
[0122] Method 1: obtaining a first performance index of a low-pass filter and a second performance index of a high-pass filter;
[0123] Creating the low-pass filter according to the first performance indicator and creating the high-pass filter according to the second performance indicator;
[0124] The low-pass filter and the high-pass filter are connected in series to obtain the filtering model.
[0125] Specifically, the first performance index at least includes a first default passband cutoff frequency, a first default passband attenuation, a first default stopband cutoff frequency, and a first default stopband attenuation, and the second performance index at least includes a second default passband cutoff frequency, a second default passband attenuation, a second default stopband cutoff frequency, and a second default stopband attenuation. A Butterworth low-pass filter is created by the first performance index, a Butterworth high-pass filter is created by the second performance index, and then the Butterworth low-pass filter and the Butterworth high-pass filter are connected in series to obtain a Butterworth filter model, or the Butterworth high-pass filter and the Butterworth low-pass filter are connected in series to obtain a Butterworth filter model. The Butterworth low-pass filter and the Butterworth high-pass filter are connected in series in a different order, and the low-frequency signal and the high-frequency signal are filtered out in a different order.
[0126] Method 2: Obtaining the third performance index of the bandpass filter;
[0127] The bandpass filter is created according to the third performance indicator, and the bandpass filter is used as the filtering model.
[0128] Specifically, the third performance indicator at least includes the upper and lower boundary frequencies of the passband, the third default passband attenuation, the upper and lower boundary frequencies of the stopband and the third default stopband attenuation. A Butterworth low-bandpass filter is created through the third performance indicator, and the created Butterworth low-bandpass filter is the Butterworth filter model.
[0129] Furthermore, the created Butterworth filter model provides default frequency band parameters that can be customized and updated, and the default frequency band parameters can be modified according to actual filtering requirements. After the Butterworth filter model filters the signal according to the modified default frequency band parameters, it outputs a signal of the actual required frequency band.
[0130] Furthermore, the present invention also provides an audio glasses, comprising: a memory, a processor, and an audio signal processing program for the audio glasses stored in the memory and executable on the processor, wherein the audio signal processing program for the audio glasses implements the steps of the above-mentioned audio signal processing method for the audio glasses when executed by the processor.
[0131] Furthermore, the present invention also provides a storage medium on which an audio signal processing program for audio glasses is stored. When the audio signal processing program for audio glasses is executed by a processor, the steps of the audio signal processing method for audio glasses are implemented.
[0132] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0133] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0134] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0135] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0136] It should be noted that in the claims, any reference signs placed between brackets shall not be construed as limiting the claims. The word "comprising" does not exclude the presence of components or steps not listed in the claim. The word "a" or "an" preceding a component does not exclude the presence of a plurality of such components. The invention may be implemented by means of hardware comprising several different components and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means may be embodied by the same item of hardware. The use of the words first, second, and third etc. does not indicate any order. These words may be interpreted as names.
[0137] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0138] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A method for processing audio signals of audio glasses, characterized in that: The audio signal processing method comprises: Obtaining an input audio signal and a current volume value of the audio glasses; According to the current volume value, a power amplifier module is used to adjust the power of the input audio signal to obtain a preprocessed audio signal; updating an amplification parameter of the power amplification module according to the preprocessed audio signal; Using the updated power amplification module to adjust the power of the input audio signal to obtain an audio signal to be output, and determining the signal amplitude of the audio signal to be output; When the signal amplitude is greater than or equal to a preset amplitude, obtaining a pre-created filtering model and a desired frequency band; Performing frequency division processing on the audio signal to be output according to the expected frequency band and the filtering model to obtain a target audio signal containing only the expected frequency band; Audio is output based on the target audio signal.
2. The method according to claim 1, characterized in that The desired frequency band is an intermediate frequency band, and the step of performing frequency division processing on the audio signal to be output according to the desired frequency band and the filtering model to obtain a target audio signal containing only the desired frequency band comprises: Update the default frequency band parameters of the filter model according to the expected frequency band to obtain the updated filter model; The updated filtering model is used to perform frequency division processing on the audio signal to be output to obtain an intermediate frequency signal.
3. The method according to claim 1, characterized in that The step of updating the amplification parameters of the power amplification module according to the preprocessed audio signal comprises: Obtaining the expected amplification parameter corresponding to the current volume value; comparing the desired amplification parameter with the amplification parameter of the preprocessed audio signal; When the amplification parameter of the preprocessed audio signal is less than the expected amplification parameter, the amplification parameter of the power amplification module is updated to the expected amplification parameter.
4. The method according to claim 1, characterized in that The step of determining the signal amplitude of the audio signal to be output comprises: Continuously acquiring multiple groups of sampling signals based on the audio signal to be output; Performing Fourier transform on the multiple groups of sampling signals to obtain sampling amplitudes of the multiple groups of sampling signals; The average value of the multiple groups of sampling amplitudes is used as the signal amplitude.
5. The method according to claim 1, characterized in that Before performing frequency division processing on the to-be-output audio signal according to the expected frequency band and the filtering model, the audio signal processing method further includes: Obtain a first performance indicator of the low-pass filter and a second performance indicator of the high-pass filter; the first performance indicator at least includes a first default passband cutoff frequency, a first default passband attenuation, a first default stopband cutoff frequency and a first default stopband attenuation, and the second performance indicator at least includes a second default passband cutoff frequency, a second default passband attenuation, a second default stopband cutoff frequency and a second default stopband attenuation; Creating the low-pass filter according to the first performance indicator and creating the high-pass filter according to the second performance indicator; The low-pass filter and the high-pass filter are connected in series to obtain the filtering model.
6. The method according to claim 1, characterized in that Before performing frequency division processing on the to-be-output audio signal according to the expected frequency band and the filtering model, the audio signal processing method further includes: Obtaining a third performance indicator of the bandpass filter, wherein the third performance indicator at least includes a passband upper and lower boundary frequencies, a third default passband attenuation, a stopband upper and lower boundary frequencies, and a third default stopband attenuation; The bandpass filter is created according to the third performance indicator, and the bandpass filter is used as the filtering model.
7. An audio glasses, characterized in that: The audio glasses include: a memory, a processor, and an audio signal processing program for the audio glasses stored in the memory and executable on the processor. When the audio signal processing program for the audio glasses is executed by the processor, the steps of the audio signal processing method for the audio glasses as described in any one of claims 1-6 are implemented.
8. A storage medium, characterized in that: An audio signal processing program for audio glasses is stored thereon, and when the audio signal processing program for audio glasses is executed by a processor, the steps of the audio signal processing method for audio glasses described in any one of claims 1-6 are implemented.
Citation Information
Patent Citations
Data processing method and device, terminal and storage medium
CN113852893A
Audio frequency playing device for television and television
CN203968245U