Volume control method and device, audio output equipment and storage medium

By dividing the loudness range of the audio signal and setting independent amplitude thresholds and compression ratios, the problem of unstable audio output in existing volume control methods is solved, achieving more stable volume control and a better audio listening experience.

CN121240002APending Publication Date: 2025-12-30SHENZHEN SKYWORTH DISPLAY TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511384170.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-09-25
Publication Date
2025-12-30

AI Technical Summary

Technical Problem

Existing volume control methods fail to finely adjust the signal amplitude of audio output, resulting in an unstable audio listening experience with fluctuating volume.

Method used

By dividing the loudness range of the audio signal, determining the average amplitude and corresponding amplitude threshold of each range, and setting independent amplitude thresholds and compression ratios according to typical scenarios, the signal amplitude is refined.

Benefits of technology

It achieves improved precision in volume control, resulting in more stable output volume, avoiding fluctuations in volume, and enhancing the audio listening experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121240002A_ABST
    Figure CN121240002A_ABST
Patent Text Reader

Abstract

The invention discloses a volume control method and device, audio output equipment and a storage medium, and relates to the technical field of volume control. In the application, the loudness intervals of the signal amplitudes of the audio signals are divided in advance, the average amplitude of the signal amplitudes of the audio signals in each loudness interval is determined, and whether the signal amplitudes of the audio signals in the loudness intervals are compressed or not is determined by further comparing the average amplitude with the amplitude threshold values corresponding to the loudness intervals. Therefore, whether the signal amplitude of the audio signal in the loudness interval is compressed or not is determined by dividing the loudness interval and comparing the average amplitude with the amplitude threshold corresponding to the loudness interval, so that the fineness of volume control is improved, and the finally output volume is more stable; and the audio listening experience of the audio listener is not influenced by the problem of unstable size.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of volume control, and particularly relates to a volume control method, a volume control device, an audio output device and a storage medium. BACKGROUND

[0002] At present, due to the development of multimedia information technology, the audio output content of an audio output device such as a television set is increasingly rich, such as quiet documentary, noisy sports events, and shocking science fiction wars. Taking a television set as an example, because some program elements correspond to different signal amplitudes, such as the signal amplitude of an explosion sound is larger, and the signal amplitude of human voice dialogue is smaller, so usually even if the television set does not adjust the volume, the loudness perceived by an audio listener such as a viewer when outputting these different types of programs is not the same. In a current application scenario, when watching television at night, the viewer will feel that the scene in some programs is too noisy, which affects the mood of the viewer and may affect the rest of other personnel such as family members. At present, an intelligent volume control function is often used in the television set to limit the output signal amplitude to a lower threshold value, and as long as the signal amplitude of any frequency band reaches the threshold value, the overall signal amplitude of the program signal will be reduced, so the sound will also become smaller. However, for example, the low-frequency signal amplitude in the program signal is usually strong, and when the low-frequency is strong at a certain moment and triggers the threshold value, the intelligent volume control function reduces the sound, and the next moment the low-frequency is weak and does not trigger the threshold value, the intelligent volume control function is not started and the sound becomes larger again. This working mechanism will cause the problem of sound being large and small in subjective listening, which affects the audio listening experience of the audio listener.

[0003] The above content is only used to assist in understanding the technical solutions of the present application, and does not represent the acknowledgement of the above content as prior art. SUMMARY

[0004] The main purpose of the present application is to provide a volume control method, a volume control device, an audio output device and a storage medium, aiming at solving the technical problem that the current volume control is not fine enough, the signal amplitude of the audio output is not adaptively adjusted, and the audio output effect is poor.

[0005] To achieve the above-mentioned purpose, the present application provides a volume control method, which comprises:

[0006] obtaining an audio signal;

[0007] determining the signal amplitude of the audio signal, the loudness interval in which the signal amplitude is located, the average amplitude of the signal amplitude of the audio signal in the loudness interval, and determining the amplitude threshold value corresponding to the loudness interval according to the typical scene in which the loudness interval is located;

[0008] compressing the signal amplitude of the audio signal in the loudness section based on the average amplitude and the amplitude threshold.

[0009] In an embodiment, the step of compressing the signal amplitude of the audio signal in the loudness section based on the average amplitude and the amplitude threshold comprises:

[0010] determining whether the average amplitude is greater than the amplitude threshold;

[0011] if the average amplitude is greater than the amplitude threshold, reducing the signal amplitude of the audio signal in the loudness section.

[0012] In an embodiment, the step of determining the amplitude threshold corresponding to the loudness section according to the typical scene in which the loudness section is located comprises:

[0013] obtaining a first mapping relationship between the loudness section and a preset typical scene, and a second mapping relationship between the preset typical scene and an amplitude threshold;

[0014] determining a target typical scene corresponding to the loudness section based on the first mapping relationship;

[0015] determining a target amplitude threshold corresponding to the target typical scene based on the second mapping relationship;

[0016] taking the target amplitude threshold as the amplitude threshold corresponding to the loudness section.

[0017] In an embodiment, the step of compressing the signal amplitude of the audio signal in the loudness section based on the average amplitude and the amplitude threshold comprises:

[0018] obtaining a third mapping relationship between the preset typical scene and a compression ratio;

[0019] determining a compression ratio corresponding to the target typical scene based on the third mapping relationship.

[0020] In an embodiment, the step of compressing the signal amplitude of the audio signal in the loudness section based on the average amplitude and the amplitude threshold comprises:

[0021] compressing the signal amplitude of the audio signal in the loudness section based on the compression ratio corresponding to the target typical scene.

[0022] In an embodiment, the step of determining the target amplitude threshold corresponding to the target typical scene based on the second mapping relationship comprises:

[0023] when the audio signal is an audio signal corresponding to a television program, obtaining program content of the television program.

[0024] determine a program scene of the audio signal by recognizing the television program content, and take the program scene as a target typical scene corresponding to the loudness interval.

[0025] In an embodiment, the step of compressing the signal amplitude of the audio signal in the loudness interval based on the average amplitude and the amplitude threshold value further comprises:

[0026] determining an amplitude gap between the loudness intervals after the compression processing;

[0027] performing a smoothing processing on the amplitude gap based on the amplitude difference of the amplitude gap between the loudness intervals after the compression processing and the average amplitude.

[0028] In addition, to achieve the above object, the present application further provides an audio volume control device, which comprises:

[0029] an acquisition module configured to acquire an audio signal;

[0030] a determination module configured to determine a signal amplitude of the audio signal, a loudness interval where the signal amplitude is located, an average amplitude of the signal amplitude of the audio signal in the loudness interval, and determine an amplitude threshold value corresponding to the loudness interval according to a typical scene where the loudness interval is located;

[0031] a processing module configured to compress the signal amplitude of the audio signal in the loudness interval based on the average amplitude and the amplitude threshold value.

[0032] In addition, to achieve the above object, the present application further provides an audio output device, which comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the audio volume control method as described above.

[0033] In addition, to achieve the above object, the present application further provides a storage medium, which is a computer readable storage medium, and the storage medium stores a computer program, the computer program being executed by a processor to implement the steps of the audio volume control method as described above.

[0034] In addition, to achieve the above object, the present application further provides a computer program product, which comprises a computer program, the computer program being executed by a processor to implement the steps of the audio volume control method as described above.

[0035] The one or more technical solutions provided by the present application have at least the following technical effects:

[0036] In this application, the loudness intervals of the audio signal amplitude are pre-divided, and the average amplitude of the audio signal within each loudness interval is determined. Furthermore, by comparing this average amplitude with the amplitude threshold corresponding to the loudness interval, it is determined whether to compress the audio signal amplitude within the loudness interval. Thus, by dividing the loudness intervals and comparing the average amplitude with the amplitude threshold corresponding to the loudness interval, it is determined whether to compress the audio signal amplitude within the loudness interval, thereby improving the precision of volume control and making the final output volume more stable, preventing sudden fluctuations that would affect the audio listening experience. Attached Figure Description

[0037] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0038] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0039] Figure 1 This is a flowchart illustrating the first embodiment of the volume control method of this application;

[0040] Figure 2 This is an application diagram provided for the first embodiment of the volume control method of this application;

[0041] Figure 3 This is a flowchart illustrating the second embodiment of the volume control method of this application;

[0042] Figure 4 This is a flowchart illustrating the third embodiment of the volume control method of this application;

[0043] Figure 5 This is a schematic diagram of the module structure of the volume control device according to an embodiment of this application;

[0044] Figure 6 This is a schematic diagram of the device structure of the hardware operating environment involved in the volume control method in the embodiments of this application.

[0045] The purpose, features, and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0046] It should be understood that the specific embodiments described herein are merely illustrative of the technical solutions of this application and are not intended to limit this application.

[0047] To better understand the technical solution of this application, a detailed description will be provided below in conjunction with the accompanying drawings and specific implementation methods.

[0048] It should be noted that the executing entity in this embodiment can be a computing service device with data processing, network communication, and program execution functions, such as a tablet computer, personal computer, or mobile phone, or an electronic device or audio output device capable of performing the above functions. The following description uses an audio output device as an example to illustrate this embodiment and the subsequent embodiments.

[0049] Based on this, the embodiments of this application provide a volume control method, referring to... Figure 1 , Figure 1 This is a flowchart illustrating the first embodiment of the volume control method of this application.

[0050] In this embodiment, the volume control method includes steps S10 to S30:

[0051] Step S10: Acquire audio signal;

[0052] Step S20: Determine the signal amplitude of the audio signal, the loudness interval in which the signal amplitude is located, the average amplitude of the audio signal within the loudness interval, and determine the amplitude threshold corresponding to the loudness interval based on the typical scenario in which the loudness interval is located.

[0053] Step S30: Based on the average amplitude and amplitude threshold, the signal amplitude of the audio signal within the loudness range is compressed.

[0054] One or more audio signals are output on the audio output device. The same or different audio signals can be output on different audio output devices. In this embodiment, the audio signals that the audio output device can output are not limited.

[0055] Since the frequency range of actual audio signals is 20Hz-20kHz, according to Shannon's sampling theorem, when the sampling frequency is greater than twice the highest frequency in the signal, the sampled digital audio signal can completely retain the information in the original analog signal. Therefore, in this embodiment, a sampling signal with a sampling frequency of 48kHz can be used to completely obtain the sound information contained in the actual audio signal. After obtaining the digital audio signal, an FFT (Fast Fourier Transform) operation is performed on the digital audio signal to process it, obtaining multiple frequency bands with equal bandwidth, and obtaining the signal amplitude information of each frequency.

[0056] After determining the signal amplitude of the audio signal, we can further determine the loudness range in which the signal amplitude is located, the average amplitude of the audio signal within the loudness range, and the amplitude threshold corresponding to the loudness range.

[0057] In one embodiment, multiple loudness intervals of the signal amplitude and corresponding amplitude thresholds for each loudness interval can be pre-defined. After determining the signal amplitude of the audio signal, the loudness interval in which the audio signal amplitude belongs can be determined based on the magnitude of the signal amplitude and the upper and lower limits of the loudness intervals of each signal amplitude, and the corresponding amplitude threshold for each loudness interval can be determined simultaneously.

[0058] It should be noted that the amplitude threshold corresponding to the loudness interval is a signal amplitude value within that loudness interval.

[0059] Regarding the average amplitude of the audio signal within the loudness interval, since the audio signal, such as the audio signal in a TV program scene, is dynamically changing, according to the above method of acquiring the signal amplitude information of the audio stream in real time, a segment of the audio stream can be extracted every 20ms for analysis, and the root mean square of all amplitude values ​​in each loudness interval can be calculated to obtain the average amplitude of each loudness interval.

[0060] In one feasible implementation, step S30 may include steps S301 to S302:

[0061] Step S301: Determine whether the average amplitude is greater than the amplitude threshold.

[0062] Step S302: If the average amplitude is greater than the amplitude threshold, then reduce the signal amplitude of the audio signal within the loudness range.

[0063] If the average amplitude is less than the amplitude threshold of the corresponding loudness interval, no processing is performed; if the average amplitude exceeds the threshold of the corresponding loudness interval, compression processing is performed to reduce the signal amplitude of the audio signal within the loudness interval.

[0064] Above, refer to Figure 2 The system pre-divides the loudness range of the audio signal amplitude and determines the average amplitude of the audio signal within each loudness range. Then, by comparing this average amplitude with the corresponding amplitude threshold for each loudness range, it determines whether to compress the audio signal amplitude within that loudness range. In this way, by dividing the loudness range and comparing the average amplitude with the corresponding amplitude threshold, it determines whether to compress the audio signal amplitude within that loudness range, thereby improving the precision of volume control and making the final output volume more stable, preventing sudden fluctuations that could negatively impact the audio listening experience.

[0065] Based on the first embodiment of this application, in the second embodiment of this application, the content that is the same as or similar to the first embodiment described above can be referred to the above description, and will not be repeated hereafter. Based on this, please refer to... Figure 3 Step S20 may include steps S201 to S204:

[0066] Step S201, obtain the first mapping relationship between the loudness range and the preset typical scenarios, and the second mapping relationship between the preset typical scenarios and the amplitude threshold;

[0067] Step S202, based on the first mapping relationship, determine the target typical scenario corresponding to the loudness range;

[0068] Step S203, based on the second mapping relationship, determine the target amplitude threshold corresponding to the target typical scenario;

[0069] Step S204, use the target amplitude threshold as the amplitude threshold corresponding to the loudness range.

[0070] Taking the audio signal corresponding to the program signal played by the TV as an example, there are many program scenarios in the TV program content and they change frequently. According to the amplitude range of the audio signal, it can usually be divided into scenarios such as whispering, normal, explosion, etc., which can respectively correspond to the following three loudness ranges: the amplitude range of the whispering scenario is A < -40 dB, the amplitude range of the normal scenario is -40 dB < A < -20 dB, and the amplitude range of the explosion is A > -20 dB. Thus, the first mapping relationship between the loudness range and the preset typical scenarios can be preset.

[0071] Since the signal amplitudes of different program scenarios vary greatly, if the same amplitude threshold is used, for example, the amplitude threshold in the night mode is usually set relatively low. At this time, the compression feeling of the program scenarios with large signal amplitudes will be too strong, the dynamics of the TV program will become worse, the sound will be unnatural, and the sound quality will deteriorate. Therefore, it is necessary to set an amplitude threshold for each program scenario separately. For example, the amplitude threshold for the whispering scenario is T1, the amplitude threshold for the normal scenario is T2, and the amplitude threshold for the explosion scenario is T3. Thus, the second mapping relationship between the typical scenarios and the amplitude threshold can be preset.

[0072] Above, based on the first mapping relationship, determine the target typical scenario corresponding to the loudness range, and based on the second mapping relationship, determine the target amplitude threshold corresponding to the target typical scenario, and use the target amplitude threshold as the amplitude threshold corresponding to the loudness range.

[0073] In a feasible implementation manner, before step S30, steps A to B may be included:

[0074] Step A, obtain the third mapping relationship between the preset typical scenarios and the compression ratio;

[0075] Step B, based on the third mapping relationship, determine the compression ratio corresponding to the target typical scenario;

[0076] In a feasible implementation manner, step S30 may include step C:

[0077] Step C: Based on the compression ratio corresponding to the target typical scene, compress the signal amplitude of the audio signal within the loudness range.

[0078] Different scenarios contribute differently to the overall loudness. If every scenario is compressed proportionally, it may affect the sound quality. For example, if the explosion scenario has a large amplitude, a larger compression ratio is needed to reduce it to a lower amplitude that does not affect the listening experience. Using the same compression ratio for whispering and normal scenarios would result in the amplitude of these scenarios being too low, leading to unclear voices and loss of background atmospheric details, which seriously affects the sound quality. Therefore, different compression ratios need to be used for different scenarios. For example, the compression ratio for explosion scenarios is set at 4:1, the compression ratio for normal scenarios is 2:1, and the compression ratio for whispering scenarios is 1.5:1. By setting different compression ratios, the amplitude of scenarios such as explosions can be greatly reduced, while ensuring that the signal level of other scenarios is not significantly reduced. The clarity of voices and program details are improved, greatly enhancing the sound experience.

[0079] Therefore, in this embodiment, based on the third mapping relationship between the preset typical scene and the compression ratio, the compression ratio corresponding to the target typical scene is determined, and the signal amplitude of the audio signal in the loudness range is compressed based on the compression ratio.

[0080] In one feasible implementation, steps M to N may be included before step S203:

[0081] Step M: When the audio signal is the audio signal corresponding to the TV program, obtain the program content of the TV program;

[0082] Step N involves identifying the program scene of the audio signal by recognizing the content of the television program, and using the program scene as the target typical scene corresponding to the loudness range.

[0083] In this embodiment, a scene determination method is proposed that, in addition to determining the target typical scene corresponding to a loudness interval based on a first mapping relationship between loudness intervals and preset typical scenes, a different method is used. Specifically, when the audio signal is an audio signal corresponding to a television program, the program scene of the audio signal is determined by identifying the content of the television program, and this program scene is used as the target typical scene corresponding to the loudness interval. This avoids the errors and inaccuracies of the first mapping relationship, making the confirmation of typical scenes more accurate.

[0084] It should be noted that the "scene" can refer not only to the program scene corresponding to the television broadcast signal, but also to the scene where the audio output device is located. Therefore, in addition to determining the amplitude threshold based on the program scene, the amplitude threshold can also be determined based on the scene where the audio output device is located. Furthermore, the amplitude threshold can be determined by combining both the program scene corresponding to the television broadcast signal and the scene where the audio output device is located.

[0085] The method for determining the amplitude threshold can be obtained through actual debugging and expert experience. Specifically, it involves determining the amplitude threshold by referring to either 1) the program scenario, 2) the scenario in which the audio output device is located, or 3) the scenario in which both the program scenario and the scenario in which the audio output device is located. The threshold setting should satisfy the overall loudness requirements for nighttime use while ensuring the sound is as natural as possible and the sound quality is not significantly affected.

[0086] In addition, a threshold prediction model can be trained based on historical data, which includes historical scenarios (which can be 1. historical program scenarios, 2. scenarios where historical audio output devices are located, or 3. historical program scenarios and scenarios where historical audio output devices are located) and historical thresholds corresponding to the scenarios. The threshold prediction model can then output the current amplitude threshold based on the current scenario (which can be 1. current program scenarios, 2. scenarios where current audio output devices are located, or 3. current program scenarios and scenarios where current audio output devices are located).

[0087] Similarly, the method for dividing loudness intervals can be obtained through actual debugging and expert experience. That is, by actual debugging and expert experience, the loudness interval can be determined by referring to 1. the program scene, 2. the scene where the audio output device is located, or 3. the program scene and the scene where the audio output device is located.

[0088] Similarly, a loudness interval division model can be trained based on historical data. This historical data includes historical scenarios (which could be 1. historical program scenarios, 2. scenarios where historical audio output devices are located, or 3. historical program scenarios and scenarios where historical audio output devices are located) and historical loudness intervals corresponding to those scenarios. The loudness interval division model can then output the currently divided loudness interval based on the current scenario (which could be 1. the current program scenario, 2. the current audio output device scenario, or 3. the current program scenario and scenarios where current audio output devices are located).

[0089] Similarly, the method for confirming the compression ratio can be obtained through actual debugging and expert experience. That is, by actual debugging and expert experience, referring to 1. the program scenario, 2. the scenario in which the audio output device is located, or 3. the scenario in which the program scenario and the audio output device are located, the compression ratio can be determined.

[0090] Similarly, a compression ratio prediction model can be trained based on historical data, which includes historical scenarios (which could be 1. historical program scenarios, 2. scenarios where historical audio output devices are located, or 3. historical program scenarios and scenarios where historical audio output devices are located) and the historical compression ratios corresponding to those scenarios. The compression ratio prediction model can then output the current compression ratio based on the current scenario (which could be 1. the current program scenario, 2. the current audio output device scenario, or 3. the current program scenario and scenarios where current audio output devices are located).

[0091] In this embodiment, methods for confirming signal scenarios, loudness intervals, amplitude thresholds, and compression ratios are proposed as the basis for subsequent volume control. This allows for scenario-based processing of the program signal, dividing the input audio signal into multiple loudness intervals based on amplitude. Independent thresholds and compression ratios are set for different loudness intervals. When the average amplitude of the signal in each loudness interval exceeds the threshold, the gain of that interval is reduced according to its compression ratio. This achieves individual volume control for different scenarios, solving the problem of excessively loud sound affecting the listening experience in some program scenarios. Furthermore, each loudness interval has a separate threshold, ensuring a natural sound balance, and each loudness interval has a separate compression ratio, improving the clarity of vocals and program details, significantly enhancing the user's audio experience.

[0092] Based on the first embodiment of this application, in the third embodiment of this application, the content that is the same as or similar to that in the first embodiment can be referred to the above description, and will not be repeated hereafter. Based on this, please refer to... Figure 4 Step S30 may be followed by steps J to K:

[0093] Step J: Determine the amplitude gap between the loudness intervals after compression.

[0094] Step K involves smoothing the amplitude gap based on the loudness range after compression and the amplitude difference between the amplitude gaps.

[0095] Since the same amplitude threshold is used throughout the frequency band, it will cause a serious sense of compression for program signals with larger signal amplitudes, resulting in unnatural and deteriorated sound quality and affecting the user experience. Therefore, in the above embodiments, the amplitude threshold is optimized specifically, that is, different loudness intervals correspond to different amplitude thresholds. However, the following problem will naturally arise based on this: there are amplitude gaps between the loudness intervals after compression processing. Taking the above three loudness intervals as an example: the amplitude range for the whispering scenario is A < -40 dB, the amplitude range for the normal scenario is -40 dB < A < -20 dB, and the amplitude range for the explosion sound is A > -20 dB. After compression processing, the loudness intervals may be: the amplitude range for the whispering scenario is A < -50 dB, the amplitude range for the normal scenario is -30 dB < A < -25 dB, and the amplitude range for the explosion sound is A > -10 dB, that is, the respective loudness intervals are all restricted and reduced, and thus there are amplitude gaps between the loudness intervals after compression processing.

[0096] In this embodiment, at the amplitude gap of the loudness intervals after compression processing, based on the amplitude difference between the loudness intervals after compression processing and the amplitude gap, the amplitude gap is smoothed, so as to avoid abrupt sound and achieve a gradual change between the loudness intervals after compression processing.

[0097] When smoothing the amplitude gap, assume that the amplitude difference at the junction of two adjacent loudness intervals is Δ. Then, near the junction, for example, take N sample points before and after. The amplitudes of these points are processed for transition, so that the amplitude gradually transitions from the amplitude of the first loudness interval to the amplitude of the second loudness interval, rather than suddenly jumping. For example, linear transition can be used to achieve smoothing. That is, in the transition region, linear interpolation is performed on the part between the end of the previous loudness interval and the start of the next loudness interval. For example, assume that the ending amplitude of the previous interval is A, the starting amplitude of the next interval is B, and Δ = B - A. The length of the transition region is L samples. Then, for the i-th sample in the transition region, its amplitude can be set as A + (Δ / L) * i.

[0098] While the aforementioned methods are simple, they may not sound naturally enough, as linear changes can have a noticeable zigzag effect. Another approach is to use non-linear interpolation, such as cosine or polynomial interpolation, to smooth the transition curve. For example, applying weights to the cosine function in the transition region can make the change slower at the beginning and end, faster in the middle, or vice versa. This may more closely resemble the changes in a natural signal, avoiding a mechanical feel. Alternatively, more sophisticated signal processing techniques, such as FIR or IIR filters, can be used to low-pass filter the transition region to eliminate high-frequency abrupt changes. Furthermore, the length of the transition region can be adjusted based on the magnitude of the amplitude difference Δ. A larger Δ may require a longer transition region for a smoother change; a smaller Δ allows for a shorter transition region. This helps to minimize modification to the original signal while maintaining the processing effect.

[0099] It should be noted that the dynamic range of different loudness intervals may have changed after compression. Therefore, it is necessary to ensure that the compression effect is not destroyed during smoothing, that is, the smoothed signal still remains within the expected loudness range, while eliminating unnatural gaps.

[0100] It should be noted that the above examples are only for understanding this application and do not constitute a limitation on the volume control method of this application. Any simple modifications based on this technical concept are within the protection scope of this application.

[0101] This application also provides a volume control device, please refer to... Figure 5 The volume control device includes:

[0102] Acquisition module 10 is used to acquire audio signals;

[0103] The determination module 20 is used to determine the signal amplitude of the audio signal, the loudness interval in which the signal amplitude is located, the average amplitude of the audio signal within the loudness interval, and to determine the amplitude threshold corresponding to the loudness interval based on the typical scenario in which the loudness interval is located.

[0104] The processing module 30 is used to compress the signal amplitude of the audio signal within the loudness range based on the average amplitude and the amplitude threshold.

[0105] In one embodiment, the processing module 30 is further configured to:

[0106] Determine whether the average amplitude is greater than the amplitude threshold;

[0107] If the average amplitude is greater than the amplitude threshold, the signal amplitude of the audio signal within the loudness range will be reduced.

[0108] In one embodiment, the determining module 20 is further configured to:

[0109] Obtain the first mapping relationship between loudness intervals and preset typical scenarios, and the second mapping relationship between preset typical scenarios and amplitude thresholds;

[0110] Based on the first mapping relationship, the target typical scene corresponding to the loudness interval is determined;

[0111] Based on the second mapping relationship, the target amplitude threshold corresponding to the typical target scenario is determined;

[0112] Use the target amplitude threshold as the amplitude threshold corresponding to the loudness interval.

[0113] In one embodiment, the processing module 30 is further configured to:

[0114] Before the step of compressing the signal amplitude of the audio signal within the loudness range based on the average amplitude and amplitude threshold: obtain the third mapping relationship between the preset typical scene and the compression ratio; and determine the compression ratio corresponding to the target typical scene based on the third mapping relationship.

[0115] In one embodiment, the processing module 30 is further configured to:

[0116] Based on the compression ratio, the signal amplitude of the audio signal within the loudness range is compressed.

[0117] In one embodiment, the determining module 20 is further configured to:

[0118] Before the step of determining the target amplitude threshold corresponding to the target typical scene based on the second mapping relationship: when the audio signal is the audio signal corresponding to the TV program, the program content of the TV program is obtained; the program scene of the audio signal is determined by identifying the TV program content, and the program scene is used as the target typical scene corresponding to the loudness interval.

[0119] In one embodiment, the processing module 30 is further configured to:

[0120] After the step of compressing the signal amplitude of the audio signal within the loudness interval based on the average amplitude and amplitude threshold: determine the amplitude gap between the loudness intervals after compression; and smooth the amplitude gap based on the amplitude difference between the loudness intervals and the amplitude gap after compression.

[0121] The volume control device provided in this application, employing the volume control method described in the above embodiments, can solve the technical problem that current volume control is not precise enough and fails to adaptively adjust the signal amplitude of the audio output, resulting in poor audio output quality. Compared with the prior art, the beneficial effects of the volume control device provided in this application are the same as those of the volume control method provided in the above embodiments, and other technical features in the volume control device are the same as those disclosed in the methods of the above embodiments, and will not be repeated here.

[0122] This application provides an audio output device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, which are executed by the at least one processor to enable the at least one processor to perform the volume control method in Embodiment 1 above.

[0123] The following is for reference. Figure 6 The diagram illustrates a structural schematic of an audio output device suitable for implementing embodiments of this application. The audio output device in the embodiments of this application may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Description), PMPs (Portable Media Players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 6 The audio output device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments of this application.

[0124] like Figure 6 As shown, the audio output device may include a processing unit 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in the read-only memory 1002 or a program loaded from the storage device 1003 into the random access memory 1004. The random access memory 1004 also stores various programs and data required for the operation of the audio output device. The processing unit 1001, the read-only memory 1002, and the random access memory 1004 are interconnected via a bus 1005. An input / output interface 1006 is also connected to the bus. Typically, the following systems can be connected to the input / output interface 1006: input devices 1007 including, for example, touchscreens, touchpads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, etc.; output devices 1008 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 1003 including, for example, magnetic tapes, hard disks, etc.; and communication devices 1009. Communication device 1009 allows the audio output device to communicate wirelessly or wiredly with other devices to exchange data. Although audio output devices with various systems are shown in the figures, it should be understood that implementation or possession of all the systems shown is not required. More or fewer systems may be implemented alternatively.

[0125] Specifically, according to the embodiments disclosed in this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from storage device 1003, or installed from read-only memory 1002. When the computer program is executed by processing device 1001, it performs the functions defined in the methods of the embodiments disclosed in this application.

[0126] The audio output device provided in this application, employing the volume control method described in the above embodiments, can solve the technical problem that current volume control is not precise enough and does not adaptively adjust the signal amplitude of the audio output, resulting in poor audio output quality. Compared with the prior art, the beneficial effects of the audio output device provided in this application are the same as those of the volume control method provided in the above embodiments, and other technical features of this audio output device are the same as those disclosed in the previous embodiment method, and will not be repeated here.

[0127] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any suitable manner in one or more embodiments or examples.

[0128] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

[0129] This application provides a computer-readable storage medium having computer-readable program instructions (i.e., a computer program) stored thereon, the computer-readable program instructions being used to execute the volume control method in the above embodiments.

[0130] The computer-readable storage medium provided in this application may be, for example, a USB flash drive, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems or devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.

[0131] The aforementioned computer-readable storage medium may be included in an audio output device; or it may exist independently and not assembled into an audio output device.

[0132] The aforementioned computer-readable storage medium carries one or more programs that, when executed by an audio output device, cause the audio output device to: acquire an audio signal; determine the signal amplitude of the audio signal, the loudness interval in which the signal amplitude is located, the average amplitude of the audio signal within the loudness interval, and determine the amplitude threshold corresponding to the loudness interval based on a typical scenario in which the loudness interval is located; and compress the signal amplitude of the audio signal within the loudness interval based on the average amplitude and the amplitude threshold.

[0133] Computer program code for performing the operations of this application can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, and C++, and conventional procedural programming languages ​​such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a Local Area Network (LAN) or a Wide Area Network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0134] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0135] The modules described in the embodiments of this application can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the unit itself.

[0136] The readable storage medium provided in this application is a computer-readable storage medium that stores computer-readable program instructions (i.e., a computer program) for executing the above-described volume control method. This solves the technical problem that current volume control is not precise enough and fails to adaptively adjust the signal amplitude of the audio output, resulting in poor audio output quality. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as those of the volume control method provided in the above embodiments, and will not be repeated here.

[0137] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the volume control method described above.

[0138] The computer program product provided in this application can solve the technical problem that current volume control is not precise enough and does not adaptively adjust the signal amplitude of the audio output, resulting in poor audio output quality. Compared with the prior art, the beneficial effects of the computer program product provided in this application are the same as those of the volume control method provided in the above embodiments, and will not be repeated here.

[0139] The above description is only a part of the embodiments of this application and does not limit the patent scope of this application. All equivalent structural transformations made under the technical concept of this application and using the contents of the specification and drawings of this application, or direct / indirect applications in other related technical fields, are included in the patent protection scope of this application.

Claims

1. A volume control method, characterized by, The volume control method comprises: obtaining an audio signal; determining a signal amplitude of the audio signal, a loudness interval in which the signal amplitude is located, an average amplitude of the signal amplitude in the loudness interval, and determining an amplitude threshold corresponding to the loudness interval according to a typical scene in which the loudness interval is located; based on the average amplitude and the amplitude threshold, compressing the signal amplitude of the audio signal in the loudness interval.

2. The volume control method of claim 1, wherein, The step of compressing the signal amplitude of the audio signal in the loudness interval based on the average amplitude and the amplitude threshold comprises: determining whether the average amplitude is greater than the amplitude threshold; if the average amplitude is greater than the amplitude threshold, reducing the signal amplitude of the audio signal in the loudness interval.

3. The volume control method of claim 1, wherein, The step of determining the amplitude threshold corresponding to the loudness interval according to the typical scene in which the loudness interval is located comprises: obtaining a first mapping relationship between the loudness interval and a preset typical scene, and a second mapping relationship between the preset typical scene and an amplitude threshold; based on the first mapping relationship, determining a target typical scene corresponding to the loudness interval; based on the second mapping relationship, determining a target amplitude threshold corresponding to the target typical scene; taking the target amplitude threshold as the amplitude threshold corresponding to the loudness interval.

4. The volume control method of claim 3, wherein, The step of compressing the signal amplitude of the audio signal in the loudness interval based on the average amplitude and the amplitude threshold comprises: based on the target amplitude threshold corresponding to the target typical scene, compressing the signal amplitude of the audio signal in the loudness interval. The step of determining the target amplitude threshold corresponding to the target typical scene based on the second mapping relationship comprises:

5. The volume control method of claim 4, wherein, when the audio signal is an audio signal corresponding to a television program, obtaining program content of the television program; determining a program scene of the audio signal by recognizing the television program content, and taking the program scene as the target typical scene corresponding to the loudness interval.

6. The volume control method of claim 3, wherein, The step of compressing the signal amplitude of the audio signal in the loudness interval based on the average amplitude and the amplitude threshold comprises: determining an amplitude gap between the loudness intervals after compression processing; based on the loudness intervals after compression processing and the amplitude difference of the amplitude gap, smoothing the amplitude gap.

7. The volume control method of claim 1, wherein, The volume control device comprises: an obtaining module configured to obtain an audio signal; a determining module configured to determine a signal amplitude of the audio signal, a loudness interval in which the signal amplitude is located, an average amplitude of the signal amplitude in the loudness interval, and determine an amplitude threshold corresponding to the loudness interval according to a typical scene in which the loudness interval is located; 8. A volume control device, characterized by ​ ​ ​ The processing module is configured to compress the signal amplitude of the audio signal in the loudness range based on the average amplitude and the amplitude threshold.

9. An audio output device, characterized by The device comprises a memory, a processor, and a computer program stored on the memory and executable on the processor, and the computer program is configured to implement the steps of the volume control method according to any one of claims 1 to 7.

10. A storage medium, characterized by The storage medium is a computer readable storage medium, and the storage medium stores a computer program, and the computer program is executed by the processor to implement the steps of the volume control method according to any one of claims 1 to 7.