Audio data processing method, device, computer equipment and storage medium

By obtaining pre-calculated hearing gain information and smoothing gain parameters, the audio is processed, which solves the problem of cumbersome installation and debugging of existing hearing aids and achieves personalized and efficient audio data processing.

CN113362839BActive Publication Date: 2024-10-01PING AN TECH (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110610485.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-01
Publication Date
2024-10-01
Estimated Expiration
2041-06-01

AI Technical Summary

Technical Problem

The installation and debugging of existing hearing aids need to be completed through medical software, which requires users to make a special trip to the hospital. The process is cumbersome and inefficient, and audio data cannot be processed in a timely manner.

Method used

By obtaining pre-calculated hearing gain information, amplifying and compressing the audio to be processed, and performing gain compensation in conjunction with smoothing gain parameters, personalized processing and output of audio data can be achieved.

Benefits of technology

It realizes personalized settings for audio data processing, is easy to operate, and improves audio data processing efficiency. Users can process audio data instantly on the terminal.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113362839B_ABST
    Figure CN113362839B_ABST
Patent Text Reader

Abstract

The embodiments of the present application belong to the field of audio processing, and relate to an audio data processing method, apparatus, computer equipment and storage medium, the method comprising: obtaining audio to be processed and pre-calculated hearing gain information, the hearing gain information including gain information on several frequency bands; amplifying the audio to be processed according to the hearing gain information to obtain a first audio; obtaining input compression parameters and smoothing gain parameters; compressing the first audio according to the compression parameters to obtain a second audio; performing gain compensation on the second audio based on the smoothing gain parameters to obtain an audio to be output; sending the audio to be output to an audio player to instruct the audio player to play the audio to be output. In addition, the present application also relates to blockchain technology, and hearing gain information can be stored in a blockchain. The present application improves the efficiency of audio data processing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of audio processing technology, and in particular to an audio processing method, apparatus, computer equipment and storage medium. Background Art

[0002] Normal human ears can perceive sounds with a wide frequency range, but hearing loss (hearing disorders) can reduce the sensitivity of the human ear to low-pitched sounds, leading to defects in the perception of sound. Hearing aids are commonly used equipment to improve hearing. They map sound signals to the hearing range recognizable to people with hearing loss, allowing them to receive sound signals normally.

[0003] However, the current installation and debugging of hearing aids need to be completed through medical hearing aid software, and users need to make a special trip to the hospital, which has high manpower and time costs; the installation of hearing aids needs to take into account the user's preferences and opinions. When the hearing aid is not installed properly or the user needs to adjust the hearing aid, they need to go to the hospital again for debugging. The process is cumbersome and users cannot process and listen to audio data through hearing aids in a timely manner, resulting in low audio data processing efficiency. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide an audio data processing method, apparatus, computer equipment and storage medium to solve the problem of low audio data processing efficiency.

[0005] In order to solve the above technical problems, the present application provides an audio data processing method, which adopts the following technical solution:

[0006] Acquire the audio to be processed and pre-calculated hearing gain information, wherein the hearing gain information includes gain information on several frequency bands;

[0007] amplifying the audio to be processed according to the hearing gain information to obtain a first audio;

[0008] Get the input compression parameters and smoothing gain parameters;

[0009] Compressing the first audio according to the compression parameter to obtain a second audio;

[0010] Performing gain compensation on the second audio based on the smoothed gain parameter to obtain audio to be output;

[0011] The audio to be output is sent to an audio player to instruct the audio player to play the audio to be output.

[0012] In order to solve the above technical problems, the embodiment of the present application further provides an audio data processing device, which adopts the following technical solution:

[0013] An acquisition module, used to acquire the audio to be processed and pre-calculated hearing gain information, wherein the hearing gain information includes gain information on several frequency bands;

[0014] An audio amplification module, used for amplifying the audio to be processed according to the hearing gain information to obtain a first audio;

[0015] A parameter acquisition module, used to obtain input compression parameters and smoothing gain parameters;

[0016] an audio compression module, used for compressing the first audio according to the compression parameter to obtain a second audio;

[0017] A gain compensation module, used for performing gain compensation on the second audio based on the smoothed gain parameter to obtain audio to be output;

[0018] The audio sending module is used to send the audio to be output to the audio player to instruct the audio player to play the audio to be output.

[0019] In order to solve the above technical problems, the embodiment of the present application further provides a computer device, which adopts the following technical solution:

[0020] Acquire the audio to be processed and pre-calculated hearing gain information, wherein the hearing gain information includes gain information on several frequency bands;

[0021] amplifying the audio to be processed according to the hearing gain information to obtain a first audio;

[0022] Get the input compression parameters and smoothing gain parameters;

[0023] Compressing the first audio according to the compression parameter to obtain a second audio;

[0024] Performing gain compensation on the second audio based on the smoothed gain parameter to obtain audio to be output;

[0025] The audio to be output is sent to an audio player to instruct the audio player to play the audio to be output.

[0026] In order to solve the above technical problems, the embodiment of the present application further provides a computer-readable storage medium, which adopts the following technical solution:

[0027] Acquire the audio to be processed and pre-calculated hearing gain information, wherein the hearing gain information includes gain information on several frequency bands;

[0028] amplifying the audio to be processed according to the hearing gain information to obtain a first audio;

[0029] Get the input compression parameters and smoothing gain parameters;

[0030] Compressing the first audio according to the compression parameter to obtain a second audio;

[0031] Performing gain compensation on the second audio based on the smoothed gain parameter to obtain audio to be output;

[0032] The audio to be output is sent to an audio player to instruct the audio player to play the audio to be output.

[0033] Compared with the prior art, the embodiments of the present application mainly have the following beneficial effects: obtaining audio to be processed and pre-calculated hearing gain information, wherein the hearing gain information includes gain information on several frequency bands; the hearing gain information is obtained according to the hearing condition of the user, and the audio to be processed is amplified according to the hearing gain information to obtain a first audio that meets the hearing condition of the user; the user can personalize the audio data processing through the terminal, input compression parameters and smoothing gain parameters; the compression parameters are used for audio compression to reduce bandwidth and increase transmission speed; the smoothing gain parameters are used to perform gain compensation on the compressed audio to smooth the audio signal to obtain the audio to be output, and the audio to be output can be output through an audio player. The present application can realize personalized settings of audio data processing with the help of the terminal, which is convenient to operate and improves the efficiency of audio data processing. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the scheme in the present application, a brief introduction is given below to the drawings required for use in the description of the embodiments of the present application. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0035] Figure 1 is an exemplary system architecture diagram to which the present application may be applied;

[0036] Figure 2 is a flowchart of an embodiment of an audio data processing method according to the present application;

[0037] Figure 3 is a structural schematic diagram of an embodiment of an audio data processing device according to the present application;

[0038] Figure 4 It is a structural diagram of an embodiment of a computer device according to the present application. DETAILED DESCRIPTION

[0039] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by technicians in the technical field of the present application; the terms used in the specification of the application herein are only for the purpose of describing specific embodiments and are not intended to limit the present application; the terms "including" and "having" and any variations thereof in the specification and claims of the present application and the above-mentioned drawings are intended to cover non-exclusive inclusions. The terms "first", "second", etc. in the specification and claims of the present application or the above-mentioned drawings are used to distinguish different objects, not to describe a specific order.

[0040] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0041] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.

[0042] like Figure 1 As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0043] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, 103, such as web browser applications, shopping applications, search applications, instant messaging tools, email clients, social platform software, etc.

[0044] Terminal devices 101, 102, 103 can be various electronic devices with display screens and supporting web browsing, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III), MP4 (Moving Picture Experts Group Audio Layer IV) players, laptop computers, desktop computers, etc.

[0045] The server 105 may be a server that provides various services, such as a background server that provides support for web pages displayed on the terminal devices 101 , 102 , and 103 .

[0046] It should be noted that the audio data processing method provided in the embodiment of the present application is generally executed by a terminal, and accordingly, the audio data processing device is generally arranged in the terminal.

[0047] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0048] Continue to refer Figure 2 , shows a flow chart of an embodiment of an audio data processing method according to the present application. The audio data processing method comprises the following steps:

[0049] Step S201 : obtaining audio to be processed and pre-calculated hearing gain information, where the hearing gain information includes gain information on several frequency bands.

[0050] In this embodiment, the audio data processing method is executed on the electronic device (eg Figure 1 The terminal shown in the figure can communicate with the server through a wired connection or a wireless connection. It should be noted that the above wireless connection method may include but is not limited to 3G / 4G connection, WiFi connection, Bluetooth connection, WiMAX connection, Zigbee connection, UWB (ultra wideband) connection, and other wireless connection methods currently known or to be developed in the future.

[0051] Specifically, the present application replaces traditional hearing aids with terminals to perform audio processing for users with hearing loss. In practical applications, the terminals include but are not limited to various smart phones, tablet computers, industrial computers, personal computers, laptop computers and desktop computers. These terminals have the basic components of traditional hearing aids, have powerful audio data processing capabilities and ease of use, and have the potential to replace traditional hearing aids.

[0052] When there is audio to be output in the terminal, the terminal triggers an audio output instruction, and the terminal obtains the audio to be output according to the audio output instruction, and obtains the pre-calculated hearing gain information stored in the terminal.

[0053] The hearing gain information includes gain information on several frequency bands, and the gain information may be a gain value. The hearing gain information is obtained based on the hearing condition of the user. When the user suffers from hearing loss, the hearing gain information for the user may be used to specifically amplify the audio that the user is about to listen to, so that the user can hear the sound normally.

[0054] Furthermore, the above step S201 may include: when an audio output instruction is received, obtaining initial audio and pre-calculated hearing gain information according to the audio output instruction, the initial audio including call audio and page audio; and performing noise reduction on the initial audio according to a preset noise reduction algorithm to obtain audio to be processed.

[0055] The audio output instruction may be an instruction to instruct the terminal to output audio. The initial audio is audio that has not been processed, and the initial audio is output by the audio player after a series of processing.

[0056] Specifically, when a user makes a voice call through a terminal, or when a user performs an audio playback operation on a page displayed by the terminal, the terminal triggers an audio output instruction. The terminal obtains initial audio according to the audio output instruction. The initial audio can be obtained by sampling.

[0057] Initial audio includes call audio and page audio. When a user makes a voice call, the initial audio may be the call audio generated during the call; when a user plays audio on a page, the audio generated by multimedia playback on the page is the page audio. Call audio and page audio cover the sounds that users may hear in various scenarios, ensuring that users can process audio data through the terminal in various scenarios.

[0058] The terminal may first perform noise reduction processing on the initial audio according to a preset noise reduction algorithm, where the noise reduction algorithm includes but is not limited to spectral subtraction, minimum mean square error method or Wiener filter algorithm, and obtain the audio to be processed after the noise reduction processing.

[0059] The hearing gain information is stored in the terminal. After receiving the audio output instruction, the terminal also needs to obtain the hearing gain information.

[0060] In this embodiment, after receiving the audio output instruction, the initial audio is obtained and noise reduction processing is performed on the initial audio, so as to obtain relatively pure audio to be processed.

[0061] It should be emphasized that in order to further ensure the privacy and security of the above-mentioned hearing gain information, the above-mentioned hearing gain information can also be stored in a node of a blockchain.

[0062] The blockchain referred to in this application is a new application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer, and application service layer.

[0063] Step S202: amplify the audio to be processed according to the hearing gain information to obtain a first audio.

[0064] Specifically, users with hearing loss have different hearing perception abilities in audios of different frequency bands, that is, their sensitivity to low-loudness audios of different frequency bands is not the same. For example, when the audio signal frequency is 250Hz, the user can perceive a minimum of 15dB of sound, and when the audio signal frequency is 500Hz, the user can perceive a minimum of 20dB of sound. Therefore, different gain values ​​are required for audio signals of different frequency bands.

[0065] The hearing gain information includes gain information on multiple frequency bands, and the gain information may be a specific gain value. The terminal amplifies the audio signals of different frequency bands in the audio to be processed according to the hearing gain information to obtain the first audio.

[0066] Step S203, obtaining input compression parameters and smoothing gain parameters.

[0067] The compression parameter is a parameter involved in compressing the audio signal, and the compression parameter may include several parameters; the smoothing gain parameter is a parameter involved in gain compensation of the audio signal, and the smoothing gain parameter may include several parameters.

[0068] Specifically, before playing the audio to the user, the first audio needs to be compressed and gain compensated to further improve the audio signal. The terminal compresses and gain compensates the audio signal according to the compression parameter and the smoothing gain parameter. The compression parameter and the smoothing gain parameter can be input by the user, and the user can adjust the compression parameter and the smoothing gain parameter by himself to obtain a better experience.

[0069] Step S204: compress the first audio according to the compression parameter to obtain a second audio.

[0070] Specifically, the terminal compresses the first audio according to the compression parameters input by the user. The compression process can reduce the bandwidth of the audio signal and increase the transmission speed of the audio signal. At the same time, the compression can attenuate the high-intensity signal in the first audio to prevent the amplified signal from being too strong and damaging the user's hearing. After the compression process, the second audio is obtained.

[0071] Step S205: Perform gain compensation on the second audio based on the smoothing gain parameter to obtain audio to be output.

[0072] Specifically, compression may affect the smoothness of the audio signal. In order to prevent the final output audio signal from being distorted, it is necessary to perform gain compensation on the compressed audio signal to improve the continuity and smoothness of the audio signal. The terminal performs gain compensation on the second audio according to the smoothing gain parameter to obtain the audio to be output.

[0073] Step S206: sending the audio to be output to the audio player to instruct the audio player to play the audio to be output.

[0074] Specifically, the terminal sends the audio to be output to the audio player, and the audio player plays the audio to be output. The audio player can be an audio player inside the terminal or an external audio player. For example, the audio player can be a hearing aid connected to the terminal, thereby realizing the setting and debugging of the hearing aid based on the terminal.

[0075] In this embodiment, audio to be processed and pre-calculated hearing gain information are obtained, wherein the hearing gain information includes gain information on several frequency bands; the hearing gain information is obtained according to the hearing condition of the user, and the audio to be processed is amplified according to the hearing gain information to obtain a first audio that meets the hearing condition of the user; the user can personalize the audio data processing through the terminal, input compression parameters and smoothing gain parameters; the compression parameters are used for audio compression to reduce bandwidth and increase transmission speed; the smoothing gain parameters are used to perform gain compensation on the compressed audio to smooth the audio signal to obtain audio to be output, and the audio to be output can be output through an audio player. The present application can realize personalized settings of audio data processing with the help of the terminal, which is convenient to operate and improves the efficiency of audio data processing.

[0076] Furthermore, before the above step S201, it may also include: obtaining pre-stored user hearing information; displaying a preset gain calculation algorithm in a configuration page displayed on the terminal; and calculating the user hearing information according to the gain calculation algorithm selected by the user in the configuration page to obtain hearing gain information.

[0077] Among them, the user hearing information can be information recording the hearing condition of the user's ears; the configuration page can be a page displayed by the terminal, used to personalize the audio data processing; the gain calculation algorithm is used to indicate how to calculate the hearing gain information based on the user's hearing information.

[0078] Specifically, the hearing gain information can be calculated in advance. The terminal can pre-store the user's hearing information and display a preset gain calculation algorithm through a configuration page. The user can select the gain calculation algorithm by himself. The gain calculation algorithm can be a hearing aid fitting formula. In one embodiment, the hearing aid fitting formula includes DSL-v5, NAL-NL2 and half-gain rules. The terminal calculates the user's hearing information according to the gain calculation algorithm selected by the user to obtain the hearing gain information associated with the user.

[0079] In this embodiment, the gain calculation algorithm is displayed on the configuration page of the terminal, and the hearing gain information is calculated according to the gain calculation algorithm selected by the user, thereby realizing personalized setting of audio data processing.

[0080] Furthermore, before the above-mentioned step of obtaining pre-stored user hearing information, it may also include: when a hearing test instruction is received, performing a user hearing test through an audio player to obtain an audiogram; determining the audiogram as the user hearing information; or, obtaining the user hearing information according to a hearing information acquisition instruction triggered in the configuration page of the terminal.

[0081] Among them, the hearing detection instruction may be an instruction to instruct the terminal to perform a hearing test on the user; the hearing information acquisition instruction may be an instruction to instruct the terminal to acquire the hearing information of the user.

[0082] Specifically, the user can implement the user hearing test with the help of the terminal. The terminal can be installed with an application for audio data processing, and the user can click the hearing test button in the application page to trigger the hearing test instruction. The audio signal can be divided into several frequency bands. When performing the user hearing test, the terminal plays the audio signal of the center frequency of each frequency band through the audio player, and when playing an audio signal of a certain frequency, the loudness of the audio signal changes according to the rule from small to large, or changes according to the rule from large to small. For an audio signal of a certain frequency, when the loudness of the audio signal just reaches the critical point where the user can hear and cannot hear, the loudness at this time is recorded as the user's hearing threshold at this frequency. After completing the detection of all center frequencies, an audiogram can be obtained according to the frequency and hearing threshold. The horizontal axis of the audiogram is the frequency, and the vertical axis is the hearing threshold expressed in decibels. The audiogram will be used as the user's hearing information.

[0083] For example, the audio signal is divided into 8 frequency bands, and the center frequencies of each frequency band are 0.25kHz, 0.5kHz, 1kHz, 2kHz, 3kHz, 4kHz, 6kHz and 8kHz. The terminal first plays the 0.25kHz audio signal, and the loudness of the audio signal increases from 0dB. When it increases to 10dB, the user hears the sound, and the operation terminal records 10dB as the hearing threshold of 0.25kHz. Finally, the audiogram is obtained according to each center frequency and its corresponding hearing threshold.

[0084] The user may also operate the terminal to obtain the user hearing information in other ways. For example, the user operates the terminal to view the user hearing information stored locally in the terminal and clicks to confirm, triggering a hearing information acquisition instruction. The terminal acquires the selected user hearing information according to the hearing information acquisition instruction.

[0085] The user can also operate the terminal to obtain the user's hearing information through the Internet, for example, to obtain the user's hearing information from a hospital database. The user operates the terminal to trigger a hearing information acquisition instruction, and the terminal obtains the user's hearing information according to the hearing information acquisition instruction.

[0086] In this embodiment, the terminal may perform a hearing test on the user to obtain the user's hearing information, or obtain the user's hearing information according to a hearing information obtaining instruction triggered by a user operation, thereby enriching the method of obtaining the user's hearing information.

[0087] Furthermore, the above-mentioned step S202 may include: performing Fourier transform on the audio to be processed to obtain a frequency domain audio signal of the audio to be processed; performing logarithmic transform on the frequency domain audio signal to obtain an audio signal to be gained; determining gain information of each frequency band signal in the audio signal to be gained according to the hearing gain information; and amplifying each frequency band signal in the audio signal to be gained according to the determined gain information to obtain a first audio.

[0088] Specifically, the terminal first performs a Fourier transform on the audio to be processed x(n). In one embodiment, the terminal performs a short-time Fourier transform on the audio to be processed x(n), converts the time domain signal into a frequency domain signal, and obtains a frequency domain audio signal X(n,k). Then, the frequency domain audio signal X(n,k) is logarithmically transformed to obtain the audio signal to be amplified X L (n, k). In one embodiment, the logarithmic transformation is as follows:

[0089] X L (n,k)=10log 10 |X(n,k) 2 | (1)

[0090] The hearing gain information can divide the audio signal into several frequency bands, and the audio signals in the same frequency band have the same gain information. In one embodiment, there are 8 frequency bands, and the center frequency of each frequency band is 0.25kHz, 0.5kHz, 1kHz, 2kHz, 3kHz, 4kHz, 6kHz and 8kHz. The terminal determines the gain information A(k) of each frequency band signal in the audio signal to be gained according to the hearing gain information; for each frequency band signal, the signal is amplified according to the determined gain information A(k) to obtain the first audio X G (n,k).

[0091] X G (n,k)=X L (n,k)+A(k) (2)

[0092] In this embodiment, the audio to be processed is subjected to time-frequency conversion and logarithmic transformation, and then the signal is amplified according to the gain information of the signal of each frequency band, so that the signal strength of the signal of each frequency band is higher than the hearing threshold of the user, ensuring that the user can hear the sound of each frequency band clearly.

[0093] Furthermore, the above step S204 may include: determining a compression method for signals of each frequency band in the first audio according to the compression parameter; and compressing signals of each frequency band in the first audio according to the determined compression method to obtain the second audio.

[0094] Specifically, the compression parameters include several different parameters. In one embodiment, the compression parameters include a compression threshold T, an inflection point width W, and a compression ratio CR. The terminal first determines the first audio X according to the compression threshold T and the inflection point width W. G The compression method of each frequency band signal in (n, k) is then used to compress each frequency band signal according to the determined compression method to obtain the second audio V G . Among them, compression can be performed according to the following formula:

[0095]

[0096] In this embodiment, the compression method of each frequency band signal in the first audio is determined according to the compression parameter, so that each frequency band signal is compressed according to the determined compression method, which reduces the signal bandwidth and improves the transmission rate of the audio signal.

[0097] Furthermore, the above step S205 may include: calculating the audio peak value of the second audio according to the smoothing gain parameter; performing gain compensation on the second audio according to the frequency domain audio signal of the audio to be processed, the smoothing gain parameter and the audio peak value to obtain the audio to be output.

[0098] Specifically, the smoothing gain parameter includes several parameters. In one embodiment, the smoothing gain parameter includes the start time τ A , release time τ B And the compensation gain value M. When performing gain compensation, first combine the second audio V G 、Audio signal to be gained X L (n,k), start-up time constant α A and the release time constant α R Calculate the second audio frequency V G The audio peak Z G , the calculation formula is as follows:

[0099]

[0100] Among them, W G =V G -X L , by the second audio V G and the audio signal to be gained X L (n,k) is calculated; start-up time constant Release time constant where f s To obtain the sampling frequency of the initial audio, K is the sound pressure level startup constant.

[0101] Then according to the audio peak Z G , the compensation gain value M and the frequency domain audio signal X(n,k) are used to calculate the output audio Y(n,k):

[0102]

[0103] In this embodiment, gain compensation is performed on the second audio according to the smoothing gain parameter to improve the continuity and smoothness of the audio signal and obtain an audio signal that can be output.

[0104] This application can process audio signals separately for the user's left ear and right ear, that is, the user's left ear can have a set of user hearing information, hearing gain information, compression parameters and smoothing gain parameters, and the right ear can have a set of user hearing information, hearing gain information, compression parameters and smoothing gain parameters. In this way, when the hearing conditions of the user's left ear and right ear are inconsistent, targeted settings can be made to improve the user experience. Audio data processing is performed according to the gain calculation algorithm, compression parameters and smoothing gain parameters set by the user. After the user hears the sound, he can also reselect the gain calculation algorithm, compression parameters and smoothing gain parameters to achieve the most comfortable use effect.

[0105] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the aforementioned storage medium can be a non-volatile storage medium such as a disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

[0106] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.

[0107] Further references Figure 3 , as a response to the above Figure 2 The present application provides an embodiment of an audio data processing device, and the device embodiment is Figure 2 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.

[0108] like Figure 3 As shown, the audio data processing device 300 described in this embodiment includes: an acquisition module 301, an audio amplification module 302, a parameter acquisition module 303, an audio compression module 304, a gain compensation module 305 and an audio sending module 306, wherein:

[0109] The acquisition module 301 is used to acquire the audio to be processed and pre-calculated hearing gain information, where the hearing gain information includes gain information on several frequency bands.

[0110] The audio amplification module 302 is used to amplify the audio to be processed according to the hearing gain information to obtain the first audio.

[0111] The parameter acquisition module 303 is used to acquire input compression parameters and smoothing gain parameters.

[0112] The audio compression module 304 is used to compress the first audio according to the compression parameter to obtain the second audio.

[0113] The gain compensation module 305 is used to perform gain compensation on the second audio based on the smoothing gain parameter to obtain the audio to be output.

[0114] The audio sending module 306 is used to send the audio to be output to the audio player to instruct the audio player to play the audio to be output.

[0115] In this embodiment, audio to be processed and pre-calculated hearing gain information are obtained, wherein the hearing gain information includes gain information on several frequency bands; the hearing gain information is obtained according to the hearing condition of the user, and the audio to be processed is amplified according to the hearing gain information to obtain a first audio that meets the hearing condition of the user; the user can personalize the audio data processing through the terminal, input compression parameters and smoothing gain parameters; the compression parameters are used for audio compression to reduce bandwidth and increase transmission speed; the smoothing gain parameters are used to perform gain compensation on the compressed audio to smooth the audio signal to obtain audio to be output, and the audio to be output can be output through an audio player. The present application can realize personalized settings of audio data processing with the help of the terminal, which is convenient to operate and improves the efficiency of audio data processing.

[0116] In some optional implementations of this embodiment, the audio data processing device 300 may further include: an information acquisition module, an algorithm display module, and an information calculation module, wherein:

[0117] The information acquisition module is used to acquire pre-stored user hearing information.

[0118] The algorithm display module is used to display the preset gain calculation algorithm in the configuration page displayed on the terminal.

[0119] The information calculation module is used to calculate the user's hearing information according to the gain calculation algorithm selected by the user in the configuration page to obtain hearing gain information.

[0120] In this embodiment, the gain calculation algorithm is displayed on the configuration page of the terminal, and the hearing gain information is calculated according to the gain calculation algorithm selected by the user, thereby realizing personalized setting of audio data processing.

[0121] In some optional implementations of this embodiment, the audio data processing device 300 may further include: a hearing test module, an audiogram determination module, and a hearing information acquisition module, wherein:

[0122] The hearing test module is used to perform a user hearing test through an audio player to obtain an audiogram when a hearing test instruction is received.

[0123] The audiogram determination module is used to determine the audiogram as the user's hearing information.

[0124] The hearing information acquisition module is used to acquire the user's hearing information according to the hearing information acquisition instruction triggered in the configuration page of the terminal.

[0125] In this embodiment, the terminal may perform a hearing test on the user to obtain the user's hearing information, or obtain the user's hearing information according to a hearing information obtaining instruction triggered by a user operation, thereby enriching the method of obtaining the user's hearing information.

[0126] In some optional implementations of this embodiment, the acquisition module 301 may include: an acquisition submodule and a noise reduction submodule, wherein:

[0127] The acquisition submodule is used to acquire the initial audio and pre-calculated hearing gain information according to the audio output instruction when receiving the audio output instruction, where the initial audio includes the call audio and the page audio.

[0128] The noise reduction submodule is used to reduce the noise of the initial audio according to a preset noise reduction algorithm to obtain the audio to be processed.

[0129] In this embodiment, after receiving the audio output instruction, the initial audio is obtained and noise reduction processing is performed on the initial audio, so as to obtain relatively pure audio to be processed.

[0130] In some optional implementations of this embodiment, the audio amplification module 302 may include: an audio conversion submodule, a logarithmic conversion submodule, a gain determination submodule, and a signal amplification submodule, wherein:

[0131] The audio conversion submodule is used to perform Fourier transform on the audio to be processed to obtain a frequency domain audio signal of the audio to be processed.

[0132] The logarithmic transformation submodule is used to perform logarithmic transformation on the frequency domain audio signal to obtain the audio signal to be amplified.

[0133] The gain determination submodule is used to determine the gain information of the signal in each frequency band in the audio signal to be gained according to the hearing gain information.

[0134] The signal amplification submodule is used to amplify the signals of each frequency band in the audio signal to be gained according to the determined gain information to obtain the first audio.

[0135] In this embodiment, the audio to be processed is subjected to time-frequency conversion and logarithmic transformation, and then the signal is amplified according to the gain information of the signal of each frequency band, so that the signal strength of the signal of each frequency band is higher than the hearing threshold of the user, ensuring that the user can hear the sound of each frequency band clearly.

[0136] In some optional implementations of this embodiment, the audio compression module 304 may include: a mode determination submodule and a signal compression submodule, wherein:

[0137] The mode determination submodule is used to determine the compression mode of the signal in each frequency band in the first audio according to the compression parameter.

[0138] The signal compression submodule is used to compress the signals of each frequency band in the first audio according to the determined compression method to obtain the second audio.

[0139] In this embodiment, the compression method of each frequency band signal in the first audio is determined according to the compression parameter, so that each frequency band signal is compressed according to the determined compression method, which reduces the signal bandwidth and improves the transmission rate of the audio signal.

[0140] In some optional implementations of this embodiment, the gain compensation module 305 may include: a peak calculation submodule and a gain compensation submodule, wherein:

[0141] The peak value calculation submodule is used to calculate the audio peak value of the second audio according to the smoothing gain parameter.

[0142] The gain compensation submodule is used to perform gain compensation on the second audio according to the frequency domain audio signal of the audio to be processed, the smoothing gain parameter and the audio peak value to obtain the audio to be output.

[0143] In this embodiment, gain compensation is performed on the second audio according to the smoothing gain parameter to improve the continuity and smoothness of the audio signal and obtain an audio signal that can be output.

[0144] To solve the above technical problems, the present application also provides a computer device. Figure 4 , Figure 4 This is a basic structural block diagram of the computer device in this embodiment.

[0145] The computer device 4 includes a memory 41, a processor 42, a network interface 43, and an audio player 44 that are interconnected through a system bus. It should be noted that the figure only shows a computer device 4 with components 41-44, but it should be understood that it is not required to implement all the components shown, and more or fewer components can be implemented instead. Among them, those skilled in the art can understand that the computer device here is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable gate arrays (Field-Programmable Gate Array, FPGA), digital processors (Digital Signal Processor, DSP), embedded devices, etc.

[0146] The computer device may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The computer device may interact with a user through a keyboard, a mouse, a remote controller, a touch pad, or a voice control device.

[0147] The memory 41 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 41 can be an internal storage unit of the computer device 4, such as a hard disk or memory of the computer device 4. In other embodiments, the memory 41 can also be an external storage device of the computer device 4, such as a plug-in hard disk equipped on the computer device 4, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (FlashCard), etc. Of course, the memory 41 can also include both the internal storage unit of the computer device 4 and its external storage device. In this embodiment, the memory 41 is generally used to store the operating system and various application software installed on the computer device 4, such as computer-readable instructions of the audio data processing method, etc. In addition, the memory 41 can also be used to temporarily store various types of data that have been output or are to be output.

[0148] The processor 42 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips in some embodiments. The processor 42 is generally used to control the overall operation of the computer device 4. In this embodiment, the processor 42 is used to run computer-readable instructions stored in the memory 41 or process data, such as computer-readable instructions for running the audio data processing method.

[0149] The network interface 43 may include a wireless network interface or a wired network interface. The network interface 43 is generally used to establish a communication connection between the computer device 4 and other electronic devices.

[0150] The audio player 44 is used to output audio and may include an external hearing aid.

[0151] The computer device provided in this embodiment can execute the above-mentioned audio data processing method. Here, the audio data processing method can be the audio data processing method of each of the above-mentioned embodiments.

[0152] In this embodiment, audio to be processed and pre-calculated hearing gain information are obtained, wherein the hearing gain information includes gain information on several frequency bands; the hearing gain information is obtained according to the hearing condition of the user, and the audio to be processed is amplified according to the hearing gain information to obtain a first audio that meets the hearing condition of the user; the user can personalize the audio data processing through the terminal, input compression parameters and smoothing gain parameters; the compression parameters are used for audio compression to reduce bandwidth and increase transmission speed; the smoothing gain parameters are used to perform gain compensation on the compressed audio to smooth the audio signal to obtain audio to be output, and the audio to be output can be output through an audio player. The present application can realize personalized settings of audio data processing with the help of the terminal, which is convenient to operate and improves the efficiency of audio data processing.

[0153] The present application also provides another embodiment, namely, providing a computer-readable storage medium, wherein the computer-readable storage medium stores computer-readable instructions, and the computer-readable instructions can be executed by at least one processor to enable the at least one processor to perform the steps of the audio data processing method as described above.

[0154] In this embodiment, audio to be processed and pre-calculated hearing gain information are obtained, wherein the hearing gain information includes gain information on several frequency bands; the hearing gain information is obtained according to the hearing condition of the user, and the audio to be processed is amplified according to the hearing gain information to obtain a first audio that meets the hearing condition of the user; the user can personalize the audio data processing through the terminal, input compression parameters and smoothing gain parameters; the compression parameters are used for audio compression to reduce bandwidth and increase transmission speed; the smoothing gain parameters are used to perform gain compensation on the compressed audio to smooth the audio signal to obtain audio to be output, and the audio to be output can be output through an audio player. The present application can realize personalized settings of audio data processing with the help of the terminal, which is convenient to operate and improves the efficiency of audio data processing.

[0155] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0156] Obviously, the embodiments described above are only some embodiments of the present application, rather than all embodiments. The preferred embodiments of the present application are given in the accompanying drawings, but they do not limit the patent scope of the present application. The present application can be implemented in many different forms. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present application more thorough and comprehensive. Although the present application is described in detail with reference to the aforementioned embodiments, for those skilled in the art, it is still possible to modify the technical solutions recorded in the aforementioned specific implementation methods, or to perform equivalent replacement of some of the technical features therein. Any equivalent structure made using the contents of the specification and drawings of this application, directly or indirectly used in other related technical fields, is similarly within the scope of patent protection of this application.

Claims

1. An audio data processing method, applied to a terminal, so as to replace a hearing aid with the terminal to perform audio processing and map the audio loudness to the hearing range of a hearing-impaired population, characterized in that: The steps include: Acquire audio to be processed and pre-calculated hearing gain information, wherein the hearing gain information includes gain information on several frequency bands, and the audio to be processed comes from call audio or page audio of the terminal; amplifying the audio to be processed according to the hearing gain information to obtain a first audio; Get the input compression parameters and smoothing gain parameters; Compressing the first audio according to the compression parameter to obtain a second audio; Performing gain compensation on the second audio based on the smoothed gain parameter to obtain audio to be output; Sending the audio to be output to an audio player to instruct the audio player to play the audio to be output, wherein the audio player includes an audio player inside the terminal and an audio player external to the terminal; The step of amplifying the audio to be processed according to the hearing gain information to obtain the first audio comprises: Performing Fourier transform on the audio to be processed to obtain a frequency domain audio signal of the audio to be processed; Performing logarithmic transformation on the frequency domain audio signal to obtain an audio signal to be amplified; Determining gain information of signals in each frequency band in the audio signal to be amplified according to the hearing gain information; Amplifying each frequency band signal in the audio signal to be amplified according to the determined gain information to obtain a first audio signal; The step of compressing the first audio according to the compression parameter to obtain the second audio comprises: Determining, according to the compression parameter, a compression method for signals in each frequency band of the first audio; Compressing the signals of each frequency band in the first audio according to the determined compression method to obtain the second audio; The step of performing gain compensation on the second audio based on the smoothed gain parameter to obtain the audio to be output comprises: Calculating an audio peak value of the second audio according to the smoothing gain parameter; Gain compensation is performed on the second audio according to the frequency domain audio signal of the audio to be processed, the smoothing gain parameter, and the audio peak value to obtain audio to be output.

2. The audio data processing method according to claim 1, characterized in that: Before the step of obtaining the audio to be processed and the pre-calculated hearing gain information, wherein the hearing gain information includes gain information on several frequency bands, the method further includes: Obtaining pre-stored user hearing information; Display the preset gain calculation algorithm in the configuration page displayed on the terminal; The user hearing information is calculated according to the gain calculation algorithm selected by the user in the configuration page to obtain hearing gain information.

3. The audio data processing method according to claim 2, characterized in that: Before the step of obtaining the pre-stored user hearing information, the method further includes: When receiving a hearing test instruction, the user's hearing test is performed through an audio player to obtain an audiogram; Determining the audiogram as user hearing information; or, The user's hearing information is obtained according to the hearing information acquisition instruction triggered in the configuration page of the terminal.

4. The audio data processing method according to claim 1, characterized in that: The step of obtaining the audio to be processed and the pre-calculated hearing gain information comprises: When receiving an audio output instruction, obtaining initial audio and pre-calculated hearing gain information according to the audio output instruction, wherein the initial audio includes call audio and page audio; The initial audio is denoised according to a preset denoising algorithm to obtain an audio to be processed.

5. An audio data processing device, applied to a terminal, to replace a hearing aid for audio processing and map the audio loudness to the hearing range of a hearing-impaired person through the terminal, characterized in that: include: An acquisition module, used to acquire audio to be processed and pre-calculated hearing gain information, wherein the hearing gain information includes gain information on several frequency bands, and the audio to be processed comes from the call audio or page audio of the terminal; An audio amplification module, used for amplifying the audio to be processed according to the hearing gain information to obtain a first audio; A parameter acquisition module, used to obtain input compression parameters and smoothing gain parameters; an audio compression module, used for compressing the first audio according to the compression parameter to obtain a second audio; A gain compensation module, used for performing gain compensation on the second audio based on the smoothed gain parameter to obtain audio to be output; An audio sending module, used for sending the audio to be output to an audio player to instruct the audio player to play the audio to be output, wherein the audio player includes an audio player inside the terminal and an audio player external to the terminal; The audio amplification module is further used to perform Fourier transform on the audio to be processed to obtain a frequency domain audio signal of the audio to be processed; perform logarithmic transform on the frequency domain audio signal to obtain an audio signal to be amplified; determine gain information of each frequency band signal in the audio signal to be amplified according to the hearing gain information; amplify each frequency band signal in the audio signal to be amplified according to the determined gain information to obtain a first audio; The audio compression module is further used to determine a compression method for each frequency band signal in the first audio according to the compression parameter; and compress each frequency band signal in the first audio according to the determined compression method to obtain a second audio; The gain compensation module is also used to calculate the audio peak of the second audio according to the smooth gain parameter; and perform gain compensation on the second audio according to the frequency domain audio signal of the audio to be processed, the smooth gain parameter and the audio peak to obtain the audio to be output.

6. A computer device, comprising a memory and a processor, wherein the memory stores computer-readable instructions, and the processor implements the steps of the audio data processing method according to any one of claims 1 to 4 when executing the computer-readable instructions.

7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by a processor, the steps of the audio data processing method according to any one of claims 1 to 4 are implemented.