Audio processing method, device, computer equipment, storage medium and program product

By obtaining the loudness difference and distance between the audio playback device and the loudness test device, and adjusting the audio playback device to achieve the target loudness, solving the problem of cumbersome audio loudness adjustment, and improving the adaptability and processing efficiency of audio loudness.

CN114615599BActive Publication Date: 2024-12-03YOUME TECH (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210241700.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-11
Publication Date
2024-12-03
Estimated Expiration
2042-03-11

AI Technical Summary

Technical Problem

When using traditional electronic products for audio and video playback or online meetings, when the user moves to a place far away from the device, the sound becomes too small. The audio parameters need to be adjusted frequently to ensure that the sound is audible, and the operation is cumbersome and inefficient.

Method used

By obtaining the loudness output by the audio playback device and the loudness received by the test device, determine the loss loudness per unit distance according to the distance between devices, and adjust the audio playback device according to the current distance and loss loudness to achieve the target loudness, ensuring that the sound is in different locations the appropriate strength.

Benefits of technology

The audio loudness adjustment process is simplified and processing efficiency is improved. Users can set the device position at will without affecting the sound quality and adapt to the position changes of the target object.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114615599B_ABST
    Figure CN114615599B_ABST
Patent Text Reader

Abstract

The present application relates to an audio processing method, device, computer equipment, storage medium and program product. The above method includes: obtaining a first loudness when an audio playback device outputs audio and a second loudness when a loudness test device receives audio, determining the loss loudness per unit distance according to the first loudness, the second loudness and the distance between the audio playback device and the loudness test device, obtaining the current distance between the audio playback device and the target object, and adjusting the first loudness according to the current distance and the loss loudness per unit distance to obtain a target loudness, and then controlling the audio playback device to play audio at the target loudness. The above method can realize the active adjustment of the loudness of the audio played by the audio playback device to adapt to the position change of the target object, simplifying the adjustment process and improving processing efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] With the development of science and technology, electronic products such as computers and mobile phones have become indispensable tools in people's daily life and office due to their high intelligence and rich and diverse functions.

[0003] When using traditional electronic products for audio and video playback or online meetings, the electronic products will play audio according to the audio playback parameters set by the user. When the user moves to a place far away from the electronic device, he will feel that the playback sound of the electronic device is too small. At this time, the user needs to return to the location of the electronic device, or walk to the control range of the control device and adjust the audio playback parameters of the electronic device through the control device to ensure that the user can hear the sound clearly at the moved location.

[0004] However, the above processing method is complicated to operate and has low processing efficiency. Summary of the invention

[0005] Based on this, it is necessary to provide an audio processing method, apparatus, computer device, storage medium and computer program product to address the above technical problems.

[0006] In a first aspect, the present application provides an audio processing method, comprising:

[0007] Obtain a first loudness when the audio playback device outputs audio and a second loudness when the loudness testing device receives audio;

[0008] Determine the loss loudness per unit distance according to the first loudness, the second loudness, and the distance between the audio playback device and the loudness testing device;

[0009] Obtaining a current distance between the audio playback device and the target object, and adjusting the first loudness according to the current distance and the loss loudness per unit distance to obtain a target loudness;

[0010] Control the audio playback device to play audio at the target loudness.

[0011] In one embodiment, determining the loss loudness per unit distance according to the first loudness, the second loudness, and the distance between the audio playback device and the loudness testing device includes:

[0012] Obtaining a first loudness difference between the first loudness and the second loudness;

[0013] The loss loudness per unit distance is determined according to the first loudness difference and the distance between the audio playback device and the loudness test device.

[0014] In one embodiment, adjusting the first loudness according to the current distance and the loss loudness per unit distance to obtain the target loudness includes:

[0015] Determine the third loudness of the audio when it propagates to the location of the target object according to the current distance and the loss loudness per unit distance;

[0016] The first loudness is adjusted based on the third loudness to obtain a target loudness.

[0017] In one embodiment, adjusting the first loudness based on the third loudness to obtain the target loudness includes:

[0018] Obtaining a second loudness difference between the first loudness and the third loudness, and determining the sum of the second loudness difference and the first loudness as the target loudness; or,

[0019] A third loudness difference between a preset reference loudness and the third loudness is obtained, and a sum of the third loudness difference and the first loudness is determined as the target loudness.

[0020] In one embodiment, the method further comprises:

[0021] Acquire characteristic parameters of the audio, and determine the noise audio in the audio according to the characteristic parameters;

[0022] Remove the noise from the audio to obtain the denoised audio.

[0023] In one embodiment, determining the noise audio in the audio according to the characteristic parameter includes:

[0024] Dividing the audio into at least two sub-audios according to the characteristic parameter;

[0025] The characteristic parameters of each sub-audio are obtained, and the noise audio in the audio is determined according to the characteristic parameters of each sub-audio and the preset noise characteristic parameters.

[0026] In one embodiment, determining the noise audio in the audio according to the characteristic parameters of each sub-audio and the preset noise characteristic parameters includes:

[0027] Obtaining feature similarity between feature parameters of each sub-audio and feature parameters of noise;

[0028] It is determined that the sub-audio corresponding to the feature parameter whose feature similarity is greater than the similarity threshold is the noise audio.

[0029] In a second aspect, the present application further provides an audio processing device, comprising:

[0030] A loudness collection module, used to obtain a first loudness when the audio playback device outputs audio and a second loudness when the loudness test device receives audio;

[0031] A loss determination module, configured to determine a loss loudness per unit distance according to the first loudness, the second loudness, and the distance between the audio playback device and the loudness test device;

[0032] A loudness adjustment module, used to obtain a current distance between the audio playback device and the target object, and adjust the first loudness according to the current distance and the loss loudness per unit distance to obtain a target loudness;

[0033] The audio playback module is used to control the audio playback device to play audio at a target loudness.

[0034] In a third aspect, the present application further provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:

[0035] Obtain a first loudness when the audio playback device outputs audio and a second loudness when the loudness testing device receives audio;

[0036] Determine the loss loudness per unit distance according to the first loudness, the second loudness, and the distance between the audio playback device and the loudness testing device;

[0037] Obtaining a current distance between the audio playback device and the target object, and adjusting the first loudness according to the current distance and the loss loudness per unit distance to obtain a target loudness;

[0038] Control the audio playback device to play audio at the target loudness.

[0039] In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0040] Obtain a first loudness when the audio playback device outputs audio and a second loudness when the loudness testing device receives audio;

[0041] Determine the loss loudness per unit distance according to the first loudness, the second loudness, and the distance between the audio playback device and the loudness testing device;

[0042] Obtaining a current distance between the audio playback device and the target object, and adjusting the first loudness according to the current distance and the loss loudness per unit distance to obtain a target loudness;

[0043] Control the audio playback device to play audio at the target loudness.

[0044] In a fifth aspect, the present application further provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0045] Obtain a first loudness when the audio playback device outputs audio and a second loudness when the loudness testing device receives audio;

[0046] Determine the loss loudness per unit distance according to the first loudness, the second loudness, and the distance between the audio playback device and the loudness testing device;

[0047] Obtaining a current distance between the audio playback device and the target object, and adjusting the first loudness according to the current distance and the loss loudness per unit distance to obtain a target loudness;

[0048] Control the audio playback device to play audio at the target loudness.

[0049] The above-mentioned audio processing method, device, computer equipment, storage medium and computer program product obtain the first loudness when the audio playback device outputs audio and the second loudness when the loudness test device receives the audio, so as to determine the loss loudness per unit distance according to the first loudness, the second loudness and the distance between the audio playback device and the loudness test device, obtain the current distance between the audio playback device and the target object, and adjust the first loudness according to the current distance and the loss loudness per unit distance to obtain the target loudness, thereby controlling the audio playback device to play the audio at the target loudness. The above-mentioned method can realize the active adjustment of the loudness of the audio played by the audio playback device to adapt to the position change of the target object, simplify the adjustment process and improve the processing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] Figure 1 A diagram showing an application environment of an audio processing method in an embodiment;

[0051] Figure 2 is a flowchart of an audio processing method in one embodiment;

[0052] Figure 3 A schematic diagram of a flow chart for determining loss loudness per unit distance in one embodiment;

[0053] Figure 4 is a schematic diagram of a flow chart of obtaining target loudness in one embodiment;

[0054] Figure 5 is a flowchart of an audio processing method in another embodiment;

[0055] Figure 6 A schematic diagram of a process for determining noise audio in one embodiment;

[0056] Figure 7 is a flowchart of an audio processing method in another embodiment;

[0057] Figure 8 is a structural block diagram of an audio processing device in one embodiment;

[0058] Fig. 9 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0059] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0060] The audio processing method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. The audio playback device 102 communicates with the loudness test device 104. The audio playback device 102 plays audio, and the loudness test device 104 receives the audio played by the audio playback device and determines the second loudness of the received audio. The audio playback device 102 obtains the first loudness when it outputs the audio, and obtains the second loudness when the loudness test device receives the audio, and then determines the loss loudness per unit distance according to the first loudness, the second loudness and the distance between the audio playback device and the loudness test device, obtains the current distance between the audio playback device and the target object, and adjusts the first loudness according to the current distance and the loss loudness per unit distance to obtain the target loudness, so as to control the audio playback device 102 to play audio at the target loudness. The audio playback device 102 is a device that can be used to play audio, which can be but not limited to various personal computers, laptops, smart phones, tablet computers, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. The portable wearable device can be a smart watch, a smart bracelet, a head-mounted device, etc. The loudness testing device 104 is a device that can be used to measure the loudness of a sound, and may be a decibel meter.

[0061] It should be noted that the audio processing method provided in the embodiment of the present application can also be applied between an audio playback device, a loudness test device and a control platform. Both the audio playback device and the loudness test device communicate with the control platform, and the control platform implements the above audio processing method. The control platform is a data processing platform independent of the audio playback device and the loudness test device, and can be implemented by an independent server or a server cluster composed of multiple servers.

[0062] In one embodiment, Figure 2 As shown, an audio processing method is provided, which is applied to Figure 1 The audio playback device in the example is used as an example to illustrate, including the following steps:

[0063] S210: Obtain a first loudness when an audio playback device outputs audio and a second loudness when a loudness testing device receives audio.

[0064] The loudness of audio is used to measure the sound intensity of the audio, which can be specifically represented by decibels (dB).

[0065] Optionally, when outputting audio, the audio playback device can directly extract data and perform loudness analysis on the audio to obtain a first loudness of the audio; alternatively, the audio playback device is integrated with a sound pickup module, which can pick up the audio being output by the audio playback device and measure the first loudness of the audio.

[0066] Optionally, the loudness test device is fixedly arranged at a certain position, the audio playback device plays audio, the loudness test device receives the audio played by the audio playback device, measures the second loudness of the received audio, and then sends the second loudness to the audio playback device, or the audio playback device actively obtains the second loudness from the loudness test device.

[0067] S220: Determine the loss loudness per unit distance according to the first loudness, the second loudness, and the distance between the audio playback device and the loudness testing device.

[0068] Among them, the loss loudness per unit distance is the decrease in loudness per unit distance of audio propagation.

[0069] Optionally, the unit distance may be meters, and the drop may be a specific value or a proportional value. For example, the loss loudness per unit distance is 10 dB / m, which means that the loudness drops by 10 dB for every meter the audio propagates; or the loss loudness per unit distance is 20% / m, which means that the loudness drops by 20% for every meter the audio propagates.

[0070] Optionally, when the distance between the audio playback device and the loudness testing device is 1 meter, the audio playback device determines that the second loudness is the loudness loss per unit distance when the audio playback device plays audio in the current environment, and can further calculate the ratio of the second loudness to the first loudness as the loudness loss per unit distance.

[0071] Optionally, the distance between the audio playback device and the loudness test device can be a pre-set fixed value, such as 1 meter, or can be any value within a valid range, which can be determined based on a target detection module integrated in the audio playback device. The effective range is the detection coverage range of the target detection module.

[0072] S230: Acquire a current distance between the audio playback device and the target object, and adjust the first loudness according to the current distance and the loss loudness per unit distance to obtain a target loudness.

[0073] S240: Control the audio playback device to play audio at the target loudness.

[0074] Optionally, based on the target detection module in the audio playback device, not only the distance between the audio playback device and the loudness test device can be determined, but also the current distance between the audio playback device and the target object can be determined, wherein the target object is the user using the audio playback device.

[0075] Optionally, the audio playback device may estimate the total loss loudness of the audio in the entire propagation process (propagating from the location of the audio playback device to the location of the target object) based on the current distance between the audio playback device and the target object and the loss loudness per unit distance, so as to determine whether the first loudness needs to be adjusted based on the proportion of the total loss loudness in the first loudness (i.e., the loss proportion). If the loss proportion is greater than a preset proportion, the audio playback device determines that the first loudness needs to be adjusted; if the loss proportion is not greater than the preset proportion, the audio playback device determines that the first loudness does not need to be adjusted. For example, the preset proportion may be 30%.

[0076] Optionally, when the audio playback device determines that the first loudness needs to be adjusted, the audio playback device can directly increase the first loudness by the total loss loudness to obtain the target loudness. The audio playback device then plays subsequent audio at the target loudness.

[0077] It should be noted that the above audio processing method is not only applicable to application scenarios where the target object is far away from the audio playback device and the first loudness needs to be increased, but also applicable to application scenarios where the target object is far away from the audio playback device and then approaches the audio playback device and the first loudness needs to be increased and then decreased. The adjustment principles of increase or decrease are basically the same.

[0078] In this embodiment, the audio playback device obtains the first loudness when the audio playback device outputs audio and the second loudness when the loudness test device receives the audio, and determines the loss loudness per unit distance according to the first loudness, the second loudness, and the distance between the audio playback device and the loudness test device, obtains the current distance between the audio playback device and the target object, and adjusts the first loudness according to the current distance and the loss loudness per unit distance to obtain the target loudness, and then controls the audio playback device to play the audio at the target loudness. The above method can realize the active adjustment of the loudness of the audio played by the audio playback device to adapt to the position change of the target object, simplifying the adjustment process and improving the processing efficiency.

[0079] In actual applications, in order to improve the convenience of equipment use, users can set the positions of audio playback equipment and loudness test equipment at will, such as Figure 3 As shown, the above S220, determining the loss loudness per unit distance according to the first loudness, the second loudness, and the distance between the audio playback device and the loudness test device, includes:

[0080] S310: Obtain a first loudness difference between the first loudness and the second loudness.

[0081] Optionally, the user arbitrarily sets the positions of the audio playback device and the loudness test device. The audio playback device obtains the distance between the audio playback device and the loudness test device through an internally integrated target detection module. When the distance is not 1 m, the difference between the first loudness and the second loudness, i.e., the first loudness difference, is further calculated.

[0082] S320: Determine the loss loudness per unit distance according to the first loudness difference and the distance between the audio playback device and the loudness testing device.

[0083] Optionally, the audio playback device may calculate the ratio of the first loudness difference and the distance between the audio playback device and the loudness test device, and thus obtain the above-mentioned loss loudness per unit distance. For example, the audio playback device determines that the first loudness V1=30dB, the second loudness V2=18dB, the distance between the audio playback device and the loudness test device L=1.5m, the first loudness difference △V=V1-V2=30-18=12, and the loss loudness per unit distance V0=△V / L=12 / 1.5=8dB / m. The audio playback device may also calculate the loss ratio of the first loudness difference and the first loudness, and further calculate the ratio of the loss ratio to the distance between the audio playback device and the loudness test device, which may also be used as the loss loudness per unit distance. For example, continuing with the above example, the first loudness difference △V=V1-V2=30-18=12, the loss ratio v0=△V / V1=12 / 30=40%, and the loss loudness per unit distance V0=v0 / L=40% / 1.5≈26.67% / m.

[0084] In this embodiment, the audio playback device obtains the first loudness difference between the first loudness and the second loudness, and then determines the loss loudness per unit distance according to the first loudness difference and the distance between the audio playback device and the loudness test device. The above method improves the convenience of using the device, and the user can set the position of the audio playback device and the loudness test device at will, without being limited to a fixed position or site constraints, thereby expanding the application scenarios of the device.

[0085] To ensure that the target object can clearly hear the audio played by the audio playback device at its current location, Figure 4As shown, in the above S230, adjusting the first loudness according to the current distance and the loss loudness per unit distance to obtain the target loudness includes:

[0086] S410: Determine a third loudness when the audio is propagated to a location where the target object is located according to the current distance and the loss loudness per unit distance.

[0087] Specifically, the audio playback device estimates the third loudness of the audio when it propagates to the current position of the target object according to the current distance between the audio playback device and the target object and the loss loudness per unit distance determined previously.

[0088] Furthermore, the audio playback device may first estimate the total loss loudness of the audio in the entire propagation process (propagating from the location of the audio playback device to the location of the target object) based on the current distance and the loss loudness per unit distance, and then calculate the difference between the first loudness and the total loss loudness as the third loudness. For example, the first loudness V1 = 30 dB, the total loss loudness V = 12 dB, and the third loudness V3 = V1-V = 30-12 = 18 dB.

[0089] S420: Adjust the first loudness based on the third loudness to obtain a target loudness.

[0090] Optionally, the audio playback device may obtain the difference between the first loudness and the third loudness, i.e., the second loudness difference, and determine the sum of the second loudness difference and the first loudness as the target loudness. Alternatively, the difference between a preset reference loudness and the third loudness, i.e., the third loudness difference, may be obtained, and the sum of the third loudness difference and the first loudness may be determined as the target loudness. The preset reference loudness is the most suitable loudness for the user to listen to the audio at a close distance, which is preset by the user.

[0091] In this embodiment, the audio playback device determines the third loudness when the audio is transmitted to the location of the target object according to the current distance and the loss loudness per unit distance, obtains the second loudness difference between the first loudness and the third loudness, and determines the sum of the second loudness difference and the first loudness as the target loudness, so that no matter how far the target object is from the audio playback device, the sound intensity of the audio heard is equivalent to the sound intensity when the audio playback device just plays the audio, and there will be no situation where the sound is smaller as the distance increases; the audio playback device can also obtain the third loudness difference between the preset reference loudness and the third loudness, and determine the sum of the third loudness difference and the first loudness as the target loudness, so that no matter how far the target object is from the audio playback device, the target object can hear the audio of the most suitable loudness (i.e., the target loudness), thereby achieving reasonable adjustment of the audio loudness. The above method ensures that the target object can clearly hear the audio played by the audio playback device at the current location, and improves the adaptability of the audio loudness to the location of the target object.

[0092] Different environments in which audio is produced result in different audio quality (hereinafter referred to as "sound quality"). Especially when users use the above audio playback devices for audio and video conferences, good sound quality can greatly improve the efficiency of the conference. Therefore, in order to improve the sound quality of the audio played by the audio playback device, such as Figure 5 As shown, the above method also includes:

[0093] S510: Acquire characteristic parameters of the audio, and determine the noise audio in the audio according to the characteristic parameters.

[0094] The characteristic parameter of the audio is the data attribute parameter of the audio itself. Optionally, the characteristic parameter may be a frequency band.

[0095] Optionally, the audio playback device may perform data feature analysis on the received audio to determine that part of the audio whose frequency band belongs to a preset frequency band is noise audio.

[0096] S520: remove noise from the audio to obtain audio after noise reduction processing.

[0097] Specifically, after the audio playback device determines the noise audio in the audio, it filters out the frequency band to which the noise audio belongs in the audio, so as to obtain the audio after the noise reduction processing.

[0098] In this embodiment, the audio playback device can also obtain characteristic parameters of the audio, and determine the noise audio in the audio based on the characteristic parameters, and then remove the noise audio in the audio to obtain audio after noise reduction processing to improve the audio quality, provide users with a high-quality conference channel, and help improve meeting efficiency.

[0099] To improve the accuracy of the determined noise audio, such as Figure 6 As shown, the above S510 determines the noise audio in the audio according to the characteristic parameters, which includes:

[0100] S610: Divide the audio into at least two sub-audios according to the characteristic parameter.

[0101] Optionally, the characteristic parameter includes at least one of a frequency band, a period, an amplitude of the audio or a data space vector of the audio.

[0102] Optionally, the audio playback device obtains the frequency of the audio, and divides the frequency of the audio into multiple sub-audios according to a preset frequency amplitude. For example, the audio playback device obtains the frequency of the audio of 200-800 Hz, and the division is explained by taking the preset frequency amplitude of 100 Hz as an example, the above frequency of 200-800 Hz can be divided into 200-300 Hz, 300-400 Hz, 400-500 Hz, 500-600 Hz, 600-700 Hz, 700-800 Hz, a total of 6 sub-audios; the division is explained by taking the preset frequency amplitude of 200 Hz as an example, the above frequency of 200-800 Hz can be divided into 200-400 Hz, 300-500 Hz, 400-600 Hz, 500-700 Hz, 600-800 Hz, a total of 5 sub-audios.

[0103] S620: Acquire characteristic parameters of each sub-audio, and determine the noise audio in the audio according to the characteristic parameters of each sub-audio and preset noise characteristic parameters.

[0104] Common noises, such as babies crying and car horns, have different characteristic parameters from human voices. The data space vector of the audio in the characteristic parameters can accurately reflect the sound characteristics. Based on this, the audio playback device can determine the noise audio in the audio according to the data space vector of each sub-audio and the noise data space vector preset in the feature library.

[0105] Specifically, the audio playback device obtains the data space vector of each sub-audio, calculates the feature similarity between the data space vector of each sub-audio and each noise data space vector in the noise feature library, and specifically, the cosine value between the two vectors can be used to represent the above feature similarity. After obtaining the above feature similarity, further compare the size of each feature similarity with the similarity threshold, and determine that the sub-audio corresponding to the feature parameter (i.e., data space vector) whose feature similarity is greater than the similarity threshold is the noise audio.

[0106] In this embodiment, the audio playback device divides the audio into at least two sub-audios according to the characteristic parameters, and then obtains the characteristic parameters of each sub-audio to calculate the characteristic similarity between the characteristic parameters of each sub-audio and the noise characteristic parameters, and determines that the sub-audio corresponding to the characteristic parameters whose characteristic similarity is greater than the similarity threshold is the noise audio. The above method uses the similarity between the characteristic parameters of the sub-audio and the noise characteristic parameters to determine whether each sub-audio is a noise audio, and the noise characteristic parameters can accurately reflect the characteristics of the noise audio. Therefore, the above method can accurately determine whether the sub-audio is a noise audio, thereby improving the accuracy of the determined noise audio.

[0107] To facilitate understanding by those skilled in the art, the audio processing method for lightning data provided by the present application is described in detail below. Figure 7 As shown, the method may include:

[0108] S701, obtaining characteristic parameters of audio, and dividing the audio into at least two sub-audios according to the characteristic parameters;

[0109] S702, obtaining characteristic parameters of each sub-audio, and obtaining characteristic similarity between the characteristic parameters of each sub-audio and the characteristic parameters of noise;

[0110] S703, determining that the sub-audio corresponding to the feature parameter whose feature similarity is greater than the similarity threshold is noise audio;

[0111] S704, removing the noise audio in the audio to obtain the audio after noise reduction processing;

[0112] S705, obtaining a first loudness when the audio playback device outputs audio and a second loudness when the loudness testing device receives audio;

[0113] S706, obtaining a first loudness difference between the first loudness and the second loudness;

[0114] S707: Determine the loss loudness per unit distance according to the first loudness difference and the distance between the audio playback device and the loudness testing device;

[0115] S708, obtaining a current distance between the audio playback device and the target object, and determining a third loudness when the audio is transmitted to the location of the target object according to the current distance and the loss loudness per unit distance;

[0116] S709: Obtain a second loudness difference between the first loudness and the third loudness, and determine the sum of the second loudness difference and the first loudness as the target loudness; or obtain a third loudness difference between a preset reference loudness and the third loudness, and determine the sum of the third loudness difference and the first loudness as the target loudness;

[0117] S710: Control the audio playback device to play audio at a target loudness.

[0118] It should be noted that for the description in the above S701-S710, reference may be made to the relevant description in the above embodiment, and the effects are similar, which will not be repeated in this embodiment.

[0119] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0120] Based on the same inventive concept, the embodiment of the present application also provides an audio processing device for implementing the audio processing method involved above. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above method, so the specific limitations in one or more audio processing device embodiments provided below can refer to the limitations on the audio processing method above, and will not be repeated here.

[0121] In one embodiment, Figure 8 As shown, an audio processing device is provided, including: a loudness collection module 801, a loss determination module 802, a loudness adjustment module 803 and an audio playback module 804, wherein:

[0122] The loudness collection module 801 is used to obtain a first loudness when the audio playback device outputs audio and a second loudness when the loudness test device receives audio;

[0123] The loss determination module 802 is used to determine the loss loudness per unit distance according to the first loudness, the second loudness, and the distance between the audio playback device and the loudness test device;

[0124] The loudness adjustment module 803 is used to obtain the current distance between the audio playback device and the target object, and adjust the first loudness according to the current distance and the loss loudness per unit distance to obtain the target loudness;

[0125] The audio playing module 804 is used to control the audio playing device to play audio at a target loudness.

[0126] In one embodiment, the loss determination module 802 is specifically configured to:

[0127] A first loudness difference between the first loudness and the second loudness is obtained; and a loss loudness per unit distance is determined according to the first loudness difference and the distance between the audio playback device and the loudness test device.

[0128] In one embodiment, the loudness adjustment module 803 is specifically used to:

[0129] According to the current distance and the loss loudness per unit distance, the third loudness of the audio when it is transmitted to the location of the target object is determined; and the first loudness is adjusted based on the third loudness to obtain the target loudness.

[0130] In one embodiment, the loudness adjustment module 803 is specifically used to:

[0131] A second loudness difference between the first loudness and the third loudness is obtained, and the sum of the second loudness difference and the first loudness is determined as the target loudness; or a third loudness difference between a preset reference loudness and the third loudness is obtained, and the sum of the third loudness difference and the first loudness is determined as the target loudness.

[0132] In one of the embodiments, the above-mentioned device further includes: a denoising processing module;

[0133] The denoising processing module is used to obtain characteristic parameters of the audio, and determine the noise audio in the audio according to the characteristic parameters; remove the noise audio in the audio to obtain the audio after noise reduction processing.

[0134] In one embodiment, the denoising processing module is specifically used for:

[0135] The audio is divided into at least two sub-audios according to the characteristic parameters; the characteristic parameters of each sub-audio are obtained, and the noise audio in the audio is determined according to the characteristic parameters of each sub-audio and the preset noise characteristic parameters.

[0136] In one embodiment, the denoising processing module is specifically used for:

[0137] The characteristic similarity between the characteristic parameter of each sub-audio and the characteristic parameter of noise is obtained; and the sub-audio corresponding to the characteristic parameter whose characteristic similarity is greater than the similarity threshold is determined to be the noise audio.

[0138] Each module in the above audio processing device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0139] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Fig. 9As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, an audio processing method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a button, a trackball or a touch pad set on the computer device housing, or an external keyboard, touch pad or mouse, etc.

[0140] Those skilled in the art will understand that Fig. 9 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0141] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0142] Obtain a first loudness when the audio playback device outputs audio and a second loudness when the loudness test device receives the audio; determine the loss loudness per unit distance according to the first loudness, the second loudness, and the distance between the audio playback device and the loudness test device; obtain a current distance between the audio playback device and a target object, and adjust the first loudness according to the current distance and the loss loudness per unit distance to obtain a target loudness; and control the audio playback device to play audio at the target loudness.

[0143] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0144] A first loudness difference between the first loudness and the second loudness is obtained; and a loss loudness per unit distance is determined according to the first loudness difference and the distance between the audio playback device and the loudness test device.

[0145] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0146] According to the current distance and the loss loudness per unit distance, the third loudness of the audio when it is transmitted to the location of the target object is determined; and the first loudness is adjusted based on the third loudness to obtain the target loudness.

[0147] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0148] A second loudness difference between the first loudness and the third loudness is obtained, and the sum of the second loudness difference and the first loudness is determined as the target loudness; or a third loudness difference between a preset reference loudness and the third loudness is obtained, and the sum of the third loudness difference and the first loudness is determined as the target loudness.

[0149] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0150] Acquire characteristic parameters of the audio, and determine the noise audio in the audio according to the characteristic parameters; remove the noise audio in the audio to obtain the audio after noise reduction processing.

[0151] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0152] The audio is divided into at least two sub-audios according to the characteristic parameters; the characteristic parameters of each sub-audio are obtained, and the noise audio in the audio is determined according to the characteristic parameters of each sub-audio and the preset noise characteristic parameters.

[0153] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0154] The characteristic similarity between the characteristic parameter of each sub-audio and the characteristic parameter of noise is obtained; and the sub-audio corresponding to the characteristic parameter whose characteristic similarity is greater than the similarity threshold is determined to be the noise audio.

[0155] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are further implemented:

[0156] Obtain a first loudness when the audio playback device outputs audio and a second loudness when the loudness test device receives the audio; determine the loss loudness per unit distance according to the first loudness, the second loudness, and the distance between the audio playback device and the loudness test device; obtain a current distance between the audio playback device and a target object, and adjust the first loudness according to the current distance and the loss loudness per unit distance to obtain a target loudness; and control the audio playback device to play audio at the target loudness.

[0157] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0158] A first loudness difference between the first loudness and the second loudness is obtained; and a loss loudness per unit distance is determined according to the first loudness difference and the distance between the audio playback device and the loudness test device.

[0159] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0160] According to the current distance and the loss loudness per unit distance, the third loudness of the audio when it is transmitted to the location of the target object is determined; and the first loudness is adjusted based on the third loudness to obtain the target loudness.

[0161] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0162] A second loudness difference between the first loudness and the third loudness is obtained, and the sum of the second loudness difference and the first loudness is determined as the target loudness; or a third loudness difference between a preset reference loudness and the third loudness is obtained, and the sum of the third loudness difference and the first loudness is determined as the target loudness.

[0163] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0164] Acquire characteristic parameters of the audio, and determine the noise audio in the audio according to the characteristic parameters; remove the noise audio in the audio to obtain the audio after noise reduction processing.

[0165] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0166] The audio is divided into at least two sub-audios according to the characteristic parameters; the characteristic parameters of each sub-audio are obtained, and the noise audio in the audio is determined according to the characteristic parameters of each sub-audio and the preset noise characteristic parameters.

[0167] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0168] The characteristic similarity between the characteristic parameter of each sub-audio and the characteristic parameter of noise is obtained; and the sub-audio corresponding to the characteristic parameter whose characteristic similarity is greater than the similarity threshold is determined to be the noise audio.

[0169] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:

[0170] Obtain a first loudness when the audio playback device outputs audio and a second loudness when the loudness test device receives the audio; determine the loss loudness per unit distance according to the first loudness, the second loudness, and the distance between the audio playback device and the loudness test device; obtain a current distance between the audio playback device and a target object, and adjust the first loudness according to the current distance and the loss loudness per unit distance to obtain a target loudness; and control the audio playback device to play audio at the target loudness.

[0171] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0172] A first loudness difference between the first loudness and the second loudness is obtained; and a loss loudness per unit distance is determined according to the first loudness difference and the distance between the audio playback device and the loudness test device.

[0173] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0174] According to the current distance and the loss loudness per unit distance, the third loudness of the audio when it is transmitted to the location of the target object is determined; and the first loudness is adjusted based on the third loudness to obtain the target loudness.

[0175] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0176] A second loudness difference between the first loudness and the third loudness is obtained, and the sum of the second loudness difference and the first loudness is determined as the target loudness; or a third loudness difference between a preset reference loudness and the third loudness is obtained, and the sum of the third loudness difference and the first loudness is determined as the target loudness.

[0177] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0178] Acquire characteristic parameters of the audio, and determine the noise audio in the audio according to the characteristic parameters; remove the noise audio in the audio to obtain the audio after noise reduction processing.

[0179] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0180] The audio is divided into at least two sub-audios according to the characteristic parameters; the characteristic parameters of each sub-audio are obtained, and the noise audio in the audio is determined according to the characteristic parameters of each sub-audio and the preset noise characteristic parameters.

[0181] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0182] The characteristic similarity between the characteristic parameter of each sub-audio and the characteristic parameter of noise is obtained; and the sub-audio corresponding to the characteristic parameter whose characteristic similarity is greater than the similarity threshold is determined to be the noise audio.

[0183] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0184] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0185] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. An audio processing method, characterized in that: The method comprises: Acquire a first loudness when an audio playback device outputs audio and a second loudness when a loudness testing device receives the audio; determining a loss loudness per unit distance according to the first loudness, the second loudness, and the distance between the audio playback device and the loudness testing device; Obtaining the current distance between the audio playback device and the target object; Determine, according to the current distance and the loss loudness per unit distance, a third loudness when the audio is propagated to the location of the target object; determining a difference between the first loudness and the third loudness as a second loudness difference, or determining a difference between a preset reference loudness and the third loudness as a third loudness difference; When the proportion of the second loudness difference value or the third loudness difference value in the first loudness is greater than a preset proportion, determining a sum of the second loudness difference value or the third loudness difference value and the first loudness as a target loudness; The audio playback device is controlled to play the audio at the target loudness.

2. The method according to claim 1, characterized in that The determining the loss loudness per unit distance according to the first loudness, the second loudness, and the distance between the audio playback device and the loudness testing device includes: Obtaining a first loudness difference between the first loudness and the second loudness; The loss loudness per unit distance is determined according to the first loudness difference and the distance between the audio playback device and the loudness testing device.

3. The method according to claim 1 or 2, characterized in that: The method further comprises: Acquire characteristic parameters of the audio, and determine noise audio in the audio according to the characteristic parameters; The noise audio in the audio is removed to obtain the audio after noise reduction processing.

4. The method according to claim 3, characterized in that The step of determining the noise audio in the audio according to the characteristic parameter comprises: Dividing the audio into at least two sub-audios according to the characteristic parameter; Acquire characteristic parameters of each of the sub-audio signals, and determine the noise audio in the audio according to the characteristic parameters of each of the sub-audio signals and preset noise characteristic parameters.

5. The method according to claim 4, characterized in that The determining the noise audio in the audio according to the characteristic parameters of each of the sub-audio and the preset noise characteristic parameters includes: Obtaining feature similarity between the feature parameters of each of the sub-audio frequencies and the feature parameters of the noise; It is determined that the sub-audio corresponding to the feature parameter whose feature similarity is greater than the similarity threshold is the noise audio.

6. An audio processing device, characterized in that: The device comprises: A loudness collection module, used to obtain a first loudness when an audio playback device outputs audio and a second loudness when a loudness testing device receives the audio; a loss determination module, configured to determine a loss loudness per unit distance according to the first loudness, the second loudness, and the distance between the audio playback device and the loudness test device; a loudness adjustment module, configured to obtain a current distance between the audio playback device and a target object; determine a third loudness when the audio is transmitted to a location of the target object according to the current distance and the loss loudness per unit distance; determine a difference between the first loudness and the third loudness as a second loudness difference, or determine a difference between a preset reference loudness and the third loudness as a third loudness difference; and determine a sum of the second loudness difference or the third loudness difference and the first loudness as a target loudness when a proportion of the second loudness difference in the first loudness is greater than a preset proportion; The audio playing module is used to control the audio playing device to play the audio at the target loudness.

7. The audio processing device according to claim 6, characterized in that: The loss determination module is further configured to obtain a first loudness difference between the first loudness and the second loudness; and determine the loss loudness per unit distance according to the first loudness difference and the distance between the audio playback device and the loudness test device.

8. The audio processing device according to claim 6 or 7, characterized in that: The audio processing device also includes a denoising processing module; The denoising processing module is used to obtain characteristic parameters of the audio, and determine the noise audio in the audio according to the characteristic parameters; remove the noise audio in the audio to obtain the audio after noise reduction processing.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.