Intelligent control method and system for audio and video player

Through the fundamental frequency attenuation and spectrum analysis of the ambient audio signal, the noise sound band is filtered, the fuzzy mapping relationship is established, the volume utility coefficient is calculated, and the volume is dynamically adjusted, which solves the problem of inaccurate volume adjustment of audio and video players in high-interference environments, and improves the The robustness and adaptability of volume control.

CN119299921AInactive Publication Date: 2025-01-10ONWAY TECH LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411257059.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-09
Publication Date
2025-01-10
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Audio and video players find it difficult to accurately judge the noise level of the environment in a high interference and low signal-to-noise ratio environment, resulting in inaccurate volume adjustment and unable to provide a convenient and high-quality auditory experience.

Method used

By obtaining the ambient audio signal, performing fundamental frequency attenuation and spectrum analysis, filtering out the ambient noise sound band, establishing a fuzzy mapping relationship between historical output volume and noise energy, calculating the volume utility coefficient, and dynamically adjusting the output volume.

Benefits of technology

It improves the robustness and adaptability of audio and video players in different environments, ensuring that users have a comfortable and clear audio experience in complex environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119299921A_ABST
    Figure CN119299921A_ABST
Patent Text Reader

Abstract

The invention provides an intelligent control method and system for an audio and video player. The method comprises the following steps: acquiring an environment audio signal of an environment where the audio and video player is located; fundamental frequency attenuation is carried out on the environment audio signal to obtain an audio attenuation signal, the spectrum confidence entropy corresponding to each signal frame is determined, and all environment noise audio segments are screened out according to all the spectrum confidence entropies; further obtaining a fuzzy mapping relation between the historical output volume of the audio and video player and the environmental noise, and determining an output gain control sequence based on the environmental noise energy value and the spectrum typical entropy of each environmental noise audio segment and the fuzzy mapping relation; and finally, determining a volume utility coefficient according to the output gain control sequence and the current volume level. And regulating and controlling the output volume through the volume utility coefficient. By adopting the scheme, the output volume of the audio and video player can be regulated and controlled according to the noise energy level of the environment where the audio and video player is located, so that the volume regulation and control robustness of the audio and video player is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of intelligent volume control, and more specifically, to an intelligent control method and system for an audio and video player. Background Art

[0002] An audio and video player is a device or software application used to play digital audio and video content. It is widely used in devices such as computers, mobile phones, tablets, and smart TVs.

[0003] The volume control of audio and video players is one of their important functions, which aims to provide users with the best listening experience. Traditional volume control is achieved through knobs, buttons or virtual sliders. Users can manually adjust the volume to adapt to different listening environments and personal preferences. With the development of technology, intelligent volume control has gradually become an important feature of audio and video players. Intelligent volume control uses the monitoring and analysis of environmental audio signals to automatically adjust the playback volume. For example, in a quiet indoor environment, the audio and video player will automatically lower the volume to prevent the excessive volume from affecting others; while in a noisy environment, such as a subway or outdoors, the player will automatically increase the volume to ensure that users can clearly hear the audio content. However, in the prior art, when the audio and video player judges the noise level of the environment in which it is located under high interference and low signal-to-noise ratio, it is difficult for the audio and video player to accurately distinguish the noise in the environment, resulting in inaccurate volume adjustment, and unable to provide users with a more convenient and high-quality listening experience. Therefore, how to regulate the output volume of the audio and video player according to the noise energy level of the environment in which the audio and video player is located to improve the robustness of the volume control of the audio and video player has become a difficult problem faced by the industry. Summary of the invention

[0004] The present application provides an intelligent control method and system for an audio and video player, which can adjust the output volume of the audio and video player according to the noise energy level of the environment in which the audio and video player is located, so as to improve the robustness of the volume control of the audio and video player.

[0005] In a first aspect, the present application provides an intelligent control method for an audio and video player, comprising the following steps: Obtaining the ambient audio signal of the environment in which the audio and video player is located; Performing baseband attenuation on the ambient audio signal to obtain an audio attenuation signal of the environment in which the audio and video player is located, and then determining the spectrum confidence entropy of the corresponding signal frame through the spectrum energy of each signal frame in the audio attenuation signal; Filtering out all ambient noise audio segments in the audio attenuation signal according to all spectrum confidence entropies, and determining the spectrum typical entropy of each ambient noise audio segment respectively; Acquire a fuzzy mapping relationship between a historical output volume of an audio and video player and ambient noise, determine an output gain control sequence of the audio and video player based on an ambient noise energy value and a typical spectrum entropy of each ambient noise audio segment and the fuzzy mapping relationship, and determine a volume utility coefficient when adjusting the volume of the audio and video player according to the output gain control sequence and a current volume level of the audio and video player; The output volume of the audio and video player is regulated by the volume utility coefficient.

[0006] In some embodiments, performing baseband attenuation on the ambient audio signal to obtain an audio attenuation signal of the environment in which the audio and video player is located specifically includes: Obtaining a preset fundamental frequency attenuation factor; For each signal sampling point in the ambient audio signal, a fundamental frequency difference is performed between the signal sampling point and a previous signal sampling point of the signal sampling point according to the fundamental frequency attenuation factor to obtain an attenuated signal point corresponding to the signal sampling point, and then all the attenuated signal points are obtained.

[0007] The audio attenuation signal of the environment where the audio and video player is located is obtained through all the attenuation signal points.

[0008] In some embodiments, an audio signal of the environment in which the audio and video player is located is monitored by a microphone.

[0009] In some embodiments, filtering out all ambient noise audio segments in the audio attenuation signal according to all spectrum confidence entropies specifically includes: Get the preset confidence threshold; Screening out all signal frames in the audio attenuation signal whose spectrum confidence entropy is greater than the confidence threshold; All ambient noise audio segments in the audio attenuation signal are determined according to all the screened signal frames.

[0010] In some embodiments, obtaining the fuzzy mapping relationship between the historical output volume of the audio and video player and the ambient noise specifically includes: Get the historical output volume of the audio and video player and the corresponding environmental noise energy value; A fuzzy mapping relationship of the audio and video player is constructed according to the historical output volume and the corresponding environmental noise energy value.

[0011] In some embodiments, determining the output gain control sequence of the audio and video player based on the ambient noise energy value and the spectrum typical entropy of each ambient noise audio segment and the fuzzy mapping relationship specifically includes: For each ambient noise audio segment, determining a decision volume corresponding to the ambient noise audio segment according to the ambient noise energy value and the spectrum typical entropy of the ambient noise audio segment and the fuzzy mapping relationship, thereby obtaining a decision volume corresponding to each ambient noise audio segment; The output gain control sequence of the audio and video player is determined by the decision volumes corresponding to all the ambient noise audio segments.

[0012] In some embodiments, regulating the output volume of the audio and video player by using the volume utility coefficient specifically includes: When the volume utility coefficient is within the set gain range, the output volume of the audio and video player is regulated according to the output gain control sequence; When the volume utility coefficient is outside the set gain range, the current volume level of the audio and video player is maintained.

[0013] In a second aspect, the present application provides an intelligent control system for an audio and video player, including a volume control unit, wherein the volume control unit includes: A monitoring module, used to obtain the ambient audio signal of the environment in which the audio and video player is located; A processing module, used to perform baseband attenuation on the ambient audio signal to obtain an audio attenuation signal of the environment in which the audio and video player is located, and then determine the spectrum confidence entropy of the corresponding signal frame through the spectrum energy of each signal frame in the audio attenuation signal; The processing module is further used to filter out all the ambient noise audio segments in the audio attenuation signal according to all the spectrum confidence entropies, and respectively determine the spectrum typical entropy of each ambient noise audio segment; The processing module is further used to obtain a fuzzy mapping relationship between a historical output volume of the audio and video player and the ambient noise, determine an output gain control sequence of the audio and video player based on an ambient noise energy value and a typical entropy of a spectrum of each ambient noise audio segment and the fuzzy mapping relationship, and determine a volume utility coefficient when adjusting the volume of the audio and video player according to the output gain control sequence and a current volume level of the audio and video player; The execution module is used to adjust the output volume of the audio and video player according to the volume utility coefficient.

[0014] In a third aspect, the present application provides a computer device, comprising a memory and a processor, wherein the memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that the computer device executes the above-mentioned intelligent control method for an audio and video player.

[0015] In a fourth aspect, the present application provides a computer-readable storage medium, in which instructions or codes are stored. When the instructions or codes are run on a computer, the computer implements the above-mentioned intelligent control method for an audio and video player when executing the computer.

[0016] The technical solution provided by the embodiments disclosed in this application has the following beneficial effects: The present application provides an intelligent control method and system for an audio and video player, which includes obtaining an ambient audio signal of an environment in which the audio and video player is located; performing baseband attenuation on the ambient audio signal to obtain an audio attenuation signal of the environment in which the audio and video player is located, and then determining the spectrum confidence entropy of the corresponding signal frame through the spectrum energy of each signal frame in the audio attenuation signal; screening out all ambient noise audio segments in the audio attenuation signal based on all the spectrum confidence entropies, and determining the spectrum typical entropy of each ambient noise audio segment respectively; obtaining a fuzzy mapping relationship between the historical output volume of the audio and video player and the ambient noise, determining an output gain control sequence of the audio and video player based on the ambient noise energy value and spectrum typical entropy of each ambient noise audio segment and the fuzzy mapping relationship, and determining a volume utility coefficient when adjusting the volume of the audio and video player according to the output gain control sequence and the current volume level of the audio and video player; and regulating the output volume of the audio and video player through the volume utility coefficient.

[0017] It can be seen that in the present application, the output volume of the audio and video player can be regulated according to the noise energy level of the environment in which the audio and video player is located, so as to improve the robustness of the volume control of the audio and video player; wherein, through the fundamental frequency attenuation processing, the environmental noise component in the audio signal is highlighted, making it easier to be analyzed and identified, and by analyzing the confidence level that each signal frame is the environmental noise in the environment in which the audio and video player is located, the intensity and distribution of the noise in the audio attenuation signal can be accurately judged; then, by identifying and separating the environmental noise audio segment, the audio and video player can dynamically adjust the output volume according to the actual noise situation in the environment, and the dynamic adjustment based on the environmental noise can improve the adaptability and robustness of the audio and video player in different environments; secondly, the volume utility coefficient is obtained based on the fuzzy mapping relationship, the typical entropy of the spectrum and the environmental noise energy value, so as to quantify the gain effect of the output volume when adjusting the volume of the audio and video player, so as to realize the intelligent volume control of the audio and video player; finally, the volume is controlled based on the volume utility coefficient, which enhances the adaptability and robustness of the audio and video player in various complex environments. In summary, the technical solution adopted in the present application can regulate the output volume of the audio and video player according to the noise energy level of the environment in which the audio and video player is located, so as to improve the robustness of the volume control of the audio and video player. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0019] Figure 1 is an exemplary flow chart of an intelligent control method for an audio and video player according to some embodiments of the present application; Figure 2 is an exemplary flow chart of determining an audio attenuation signal according to some embodiments of the present application; Figure 3 is an exemplary flow chart of determining an output gain control sequence according to some embodiments of the present application; Figure 4 is a schematic diagram of exemplary hardware and / or software of a volume control unit according to some embodiments of the present application; Figure 5 It is a structural schematic diagram of a computer device for implementing an intelligent control method for an audio and video player according to some embodiments of the present application. DETAILED DESCRIPTION

[0020] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0021] The embodiment of the present application provides an intelligent control method and system for an audio and video player, the core of which is to obtain the ambient audio signal of the environment in which the audio and video player is located; perform baseband attenuation on the ambient audio signal to obtain the audio attenuation signal of the environment in which the audio and video player is located, and then determine the spectrum confidence entropy of the corresponding signal frame through the spectrum energy of each signal frame in the audio attenuation signal, screen out all the ambient noise audio segments in the audio attenuation signal according to all the spectrum confidence entropies, and determine the spectrum typical entropy of each ambient noise audio segment respectively; obtain the fuzzy mapping relationship between the historical output volume of the audio and video player and the ambient noise, determine the output gain control sequence of the audio and video player based on the ambient noise energy value and spectrum typical entropy of each ambient noise audio segment and the fuzzy mapping relationship, determine the volume utility coefficient when adjusting the volume of the audio and video player according to the output gain control sequence and the current volume level of the audio and video player; and adjust the output volume of the audio and video player through the volume utility coefficient. The above scheme can be used to adjust the output volume of the audio and video player according to the noise energy level of the environment in which the audio and video player is located, so as to improve the robustness of the volume control of the audio and video player.

[0022] In order to better understand the above technical solution, the above technical solution will be described in detail below in conjunction with the accompanying drawings and specific implementation methods. Figure 1 , which is an exemplary flow chart of an intelligent control method for an audio and video player according to some embodiments of the present application. The intelligent control method 100 for an audio and video player mainly includes the following steps: In step 101, an ambient audio signal of an environment in which an audio or video player is located is obtained.

[0023] In specific implementation, if the ambient audio signal is monitored by an audio capture device, such as an omnidirectional microphone for ambient audio signal monitoring, the monitored audio signal is the ambient audio signal, and the ambient audio signal of the environment in which the audio and video player is located can be obtained through the audio capture device. No specific limitation is made here. It should be noted that the ambient audio signal obtained by monitoring and collecting includes the noise of the environment in which the audio and video player is located within a specified time period (the default is 3 seconds) and the audio emitted by the audio and video player.

[0024] In step 102, the baseband of the ambient audio signal is attenuated to obtain an audio attenuation signal of the environment in which the audio and video player is located, and then the spectrum confidence entropy of the corresponding signal frame is determined by the spectrum energy of each signal frame in the audio attenuation signal.

[0025] Preferably, in some embodiments, reference Figure 2As shown in FIG. 1 , this figure is an exemplary flow chart of determining an audio attenuation signal in some embodiments of the present application. In this embodiment, the baseband attenuation of the ambient audio signal is performed to obtain the audio attenuation signal of the environment in which the audio and video player is located, which can be implemented by the following steps: First, in step 1021, a preset fundamental frequency attenuation factor is obtained; Then, in step 1022, for each signal sampling point in the ambient audio signal, a fundamental frequency difference is performed between the signal sampling point and a previous signal sampling point of the signal sampling point according to the fundamental frequency attenuation factor to obtain an attenuated signal point corresponding to the signal sampling point, and then all the attenuated signal points are obtained.

[0026] Finally, in step 1023, the audio attenuation signal of the environment in which the audio and video player is located is obtained through all the attenuation signal points.

[0027] In specific implementation, first, a fundamental frequency attenuation factor can be preset through historical experiments. The fundamental frequency attenuation factor is used to control the degree of fundamental frequency attenuation. In the present application, the fundamental frequency attenuation factor is 0.96. In actual implementation, the fundamental frequency attenuation factor can also take other values, which are not limited here. Then, for each signal sampling point in the ambient audio signal, the fundamental frequency difference between the signal sampling point and the previous signal sampling point of the signal sampling point can be performed according to the fundamental frequency attenuation factor, that is, the signal amplitude corresponding to the signal sampling point is added to the product of the signal amplitude corresponding to the previous signal sampling point of the signal sampling point and the fundamental frequency attenuation factor. , so that the result can be used as the signal amplitude value of the attenuated signal point corresponding to the signal sampling point, that is, the attenuated signal point corresponding to the signal sampling point is obtained, and all the attenuated signal points can be obtained in the above manner; finally, all the attenuated signal points can be combined in time series to obtain a signal, and the signal can be used as the audio attenuation signal of the environment in which the audio and video player is located; it should be noted that, by attenuating the baseband of the ambient audio signal based on the baseband attenuation factor, the low-frequency part of the ambient audio signal can be attenuated, thereby reducing the dynamic range of the spectrum and reducing the interference of the baseband on the resonance peak detection.

[0028] Preferably, in some embodiments, the spectrum confidence entropy of the corresponding signal frame is determined by the spectrum energy of each signal frame in the audio attenuation signal in the following manner, namely: For each signal frame in the audio attenuation signal, extracting a spectrum energy value corresponding to the signal frame from the spectrum energy of the audio attenuation signal; Determine the frequency spectrum probability density of each signal sampling point in the signal frame according to the frequency spectrum energy value corresponding to the signal frame; The spectrum probability density of all signal sampling points is used to determine the spectrum confidence entropy corresponding to the signal frame, and then the spectrum confidence entropy corresponding to each signal frame is obtained.

[0029] It should be noted that, in the present application, spectral energy refers to the energy of each frequency component in the spectral representation of the audio attenuation signal. The spectral energy value represents the distribution of the audio attenuation signal at different frequencies and the relative strength of the frequency components; the spectral probability density represents the proportion of the spectral energy of the signal sampling point in the spectral energy of the signal frame; the spectral confidence entropy represents the degree of confidence that the signal frame is the ambient noise of the audio and video player. The larger the spectral confidence entropy, the greater the probability that the signal frame is the ambient noise.

[0030] In the specific implementation, first, it is necessary to convert the audio attenuation signal from the time domain to the frequency domain through Fourier transform, and divide the audio attenuation signal into frames, so as to obtain multiple signal frames in the audio attenuation signal; then, the square of the signal amplitude corresponding to each signal sampling point in the audio attenuation signal can be used as the spectrum energy of the signal sampling point, and for each signal frame in the audio attenuation signal, the sum of the spectrum energy values ​​of all signal sampling points contained in the signal frame can be used as the spectrum energy value of the signal frame, so that the ratio of the spectrum energy value of the signal sampling point in the signal frame to the spectrum energy value of the signal frame can be used as the spectrum probability density of the signal sampling point, and the spectrum probability density of each signal sampling point in the signal frame can be obtained by the above method; finally, the signal The spectral probability density of all signal sampling points in the frame calculates the spectral confidence entropy corresponding to the signal frame. In actual implementation, assuming that the length of the signal frame is n, the spectral confidence entropy corresponding to the signal frame is determined by the following formula: spectral confidence entropy corresponding to the signal frame = ∑ spectral probability density of the ith signal sampling point * log spectral probability density of the ith signal sampling point, where ∑ represents the summation symbol, and i ranges from 1 to n, so as to obtain the spectral confidence entropy corresponding to the signal frame. The spectral confidence entropy corresponding to each signal frame can be obtained in the above manner. It should be noted that the spectral confidence entropy in the audio attenuation signal can be used as a basis to more accurately control the volume adjustment strategy and avoid outputting too high a volume in a noisy environment, thereby protecting the user's hearing health and improving the user experience.

[0031] It should be noted that through the baseband attenuation processing, the environmental noise component in the audio signal is highlighted, making it easier to analyze and identify. By analyzing the confidence level that each signal frame is the environmental noise in the audio and video player, the intensity and distribution of the noise in the audio attenuated signal can be accurately judged, and then it can be determined which signal frames are mainly composed of environmental noise (that is, environmental noise audio segments). By identifying and separating the environmental noise audio segments, the audio and video player can dynamically adjust the output volume according to the actual noise conditions in the environment. Dynamic adjustment based on environmental noise can improve the adaptability and robustness of the audio and video player in different environments.

[0032] In step 103, all the ambient noise audio segments in the audio attenuation signal are screened out according to all the spectrum confidence entropies, and the spectrum typical entropy of each ambient noise audio segment is determined respectively.

[0033] In some embodiments, all ambient noise audio segments in the audio attenuation signal are filtered out according to all spectral confidence entropies in the following manner, namely: Get the preset confidence threshold; Screening out all signal frames in the audio attenuation signal whose spectrum confidence entropy is greater than the confidence threshold; All ambient noise audio segments in the audio attenuation signal are determined according to all the screened signal frames.

[0034] In specific implementation, first, a confidence threshold can be pre-set to judge the confidence level that the signal frame is the ambient noise of the audio and video player, and the confidence threshold can be set through experiments; then, the confidence threshold can be compared with the spectrum confidence entropy of each signal frame respectively, so as to screen out all signal frames in the audio attenuation signal whose spectrum confidence entropy is greater than the confidence threshold; finally, all ambient noise audio segments in the audio attenuation signal can be determined based on all the screened signal frames, that is, for all the screened signal frames, if there are adjacent situations, the adjacent signal frames are merged, so that the merged result is used as an ambient noise audio segment, and if the screened signal frame has no adjacent signal frames, the signal frame is directly used as an ambient noise audio segment, and all ambient noise audio segments can be obtained in the above manner.

[0035] In some embodiments, the typical entropy of the spectrum of each ambient noise audio segment is determined separately; in specific implementation, for each ambient noise audio segment, the mean of the spectrum confidence entropies of all signal frames corresponding to the ambient noise audio segment can be used as the typical entropy of the spectrum of the ambient noise audio segment. In other embodiments, the median of the spectrum confidence entropies of all signal frames corresponding to the ambient noise audio segment can also be used as the typical entropy of the spectrum of the ambient noise audio segment. The typical entropy of the spectrum of each ambient noise audio segment can be determined in the above manner, and the typical entropy of the spectrum represents the confidence level of the noise spectrum of the ambient noise audio segment.

[0036] In step 104, a fuzzy mapping relationship between the historical output volume of the audio and video player and the ambient noise is obtained, and an output gain control sequence of the audio and video player is determined based on the ambient noise energy value and the typical entropy of the spectrum of each ambient noise audio segment and the fuzzy mapping relationship. The volume utility coefficient when adjusting the volume of the audio and video player is determined according to the output gain control sequence and the current volume level of the audio and video player.

[0037] In some embodiments, the fuzzy mapping relationship between the historical output volume of the audio and video player and the ambient noise may be obtained in the following manner, namely: Get the historical output volume of the audio and video player and the corresponding environmental noise energy value; A fuzzy mapping relationship of the audio and video player is constructed according to the historical output volume and the corresponding environmental noise energy value.

[0038] It should be noted that in the present application, the fuzzy mapping relationship represents the mapping relationship between the environmental noise energy value and the historical output volume of the audio and video player; the environmental noise energy value represents the value of the noise energy level in the environment where the audio and video player is located; in specific implementation, first, it is necessary to collect the historical output volume of the audio and video player under different environmental conditions and the corresponding environmental noise energy value data. The audio and video player can be used in different environments, and the output volume level and environmental noise energy value in each environment are recorded. The environment may include a quiet indoor environment, a noisy city street, the interior of a vehicle, etc. In actual implementation, the corresponding environmental noise capacity value can be obtained by calculating the collected audio signal. In some other embodiments, an environmental sensor (such as a noise sensor) can also be used to obtain an accurate environmental noise energy value; then, after collecting enough data, a fuzzy mapping relationship can be constructed based on the historical output volume and the corresponding environmental noise energy value, that is, in the fuzzy mapping relationship, each historical output volume has a corresponding environmental noise energy value.

[0039] Preferably, in some embodiments, reference Figure 3 As shown in the figure, this figure is an exemplary flow chart for determining the output gain control sequence in some embodiments of the present application. In this embodiment, the output gain control sequence of the audio and video player is determined based on the ambient noise energy value and the typical entropy of the spectrum of each ambient noise audio segment and the fuzzy mapping relationship, which can be implemented by the following steps: First, in step 1041, for each ambient noise audio segment, a decision volume corresponding to the ambient noise audio segment is determined according to the ambient noise energy value and the spectrum typical entropy of the ambient noise audio segment and the fuzzy mapping relationship, thereby obtaining a decision volume corresponding to each ambient noise audio segment; Then, in step 1042, the output gain control sequence of the audio and video player is determined by the decision volumes corresponding to all the ambient noise audio segments.

[0040] In the above embodiment, the ambient noise energy value of the ambient noise audio segment may be determined by the following formula, namely: in, represents the ambient noise energy value of the i-th ambient noise audio segment, represents the sum of the spectral energy of all signal sampling points in the i-th ambient noise audio segment, Represents the preset adjustment factor, which can be set according to experiments.

[0041] In the specific implementation, first, for each ambient noise audio segment, the spectral energy of all signal sampling points in the ambient noise audio segment can be used to determine the ambient noise energy value of the ambient noise audio segment, so that the product between the ambient noise energy value of the ambient noise audio segment and the typical entropy of the spectrum can be calculated, and the output volume corresponding to the product is obtained in the fuzzy mapping relationship, and the output volume is used as the decision volume corresponding to the ambient noise audio segment. The decision volume corresponding to each ambient noise audio segment can be obtained in the above manner; then, the decision volumes corresponding to all ambient noise audio segments can be sorted according to time to obtain a sequence, so that the sequence can be used as the output gain control sequence of the audio and video player, and the output gain control sequence is used to decide the output volume order of the audio and video player.

[0042] Preferably, in some embodiments, the volume utility coefficient when adjusting the volume of the audio and video player according to the output gain control sequence and the current volume level of the audio and video player can be determined in the following manner, namely: for each output volume in the output gain control sequence, the value of the volume utility coefficient when adjusting the volume of the audio and video player according to the output volume is determined by the current volume level of the audio and video player, and then the value of the volume utility coefficient when adjusting the volume of the audio and video player according to each output volume is obtained, that is, the volume utility coefficient when adjusting the volume of the audio and video player is obtained; in specific implementation, for each output volume in the output gain control sequence, the ratio of the output volume to the current volume level of the audio and video player can be used as the value of the volume utility coefficient when adjusting the volume of the audio and video player according to the output volume, and the current volume level can be expressed as the volume of the audio and video player at the current moment. All values ​​of the volume utility coefficient can be obtained by the above manner, that is, the volume utility coefficient when adjusting the volume of the audio and video player is obtained, and the volume utility coefficient represents the gain degree obtained when adjusting the volume of the audio and video player according to the output volume.

[0043] It should be noted that the volume utility coefficient is obtained based on the fuzzy mapping relationship and the environmental noise energy value to quantify the gain effect of the output volume when adjusting the volume of the audio and video player. This can realize intelligent volume control of the audio and video player. By analyzing the noise level of the current environment, the audio and video player can automatically adjust the output volume to ensure that users can get a comfortable and clear audio experience in different environments. Volume control based on the volume utility coefficient enhances the adaptability and robustness of the audio and video player in various complex environments.

[0044] In step 105, the output volume of the audio and video player is regulated by the volume utility coefficient.

[0045] In some embodiments, the output volume of the audio and video player can be regulated by the volume utility coefficient in the following manner: When the volume utility coefficient is within the set gain range, the output volume of the audio and video player is regulated according to the output gain control sequence; When the volume utility coefficient is outside the set gain range, the current volume level of the audio and video player is maintained.

[0046] It should be noted that when the volume utility coefficient is within the set gain range, it means that the volume needs to be adjusted to a large extent. If the volume is not adjusted, it will affect user use. In this case, the volume of the audio and video player is adjusted to the output volume (i.e., the output volume in the output gain control sequence), and the volume of the audio and video player will change according to the output volume in the output gain control sequence; if the volume utility coefficient is not within the set gain range, it means that the volume of the audio and video player needs to be adjusted and the volume change is not large. Even if it is not adjusted, the impact on the user is not large. Therefore, in order to reduce resource consumption, this adjustment can be ignored and the current volume level continues to be used as the output volume of the audio and video player.

[0047] It can be seen that in the present application, the output volume of the audio and video player can be regulated according to the noise energy level of the environment in which the audio and video player is located, so as to improve the robustness of the volume control of the audio and video player; wherein, through the fundamental frequency attenuation processing, the environmental noise component in the audio signal is highlighted, making it easier to be analyzed and identified, and by analyzing the confidence level that each signal frame is the environmental noise in the environment in which the audio and video player is located, the intensity and distribution of the noise in the audio attenuation signal can be accurately judged; then, by identifying and separating the environmental noise audio segment, the audio and video player can dynamically adjust the output volume according to the actual noise situation in the environment, and the dynamic adjustment based on the environmental noise can improve the adaptability and robustness of the audio and video player in different environments; secondly, the volume utility coefficient is obtained based on the fuzzy mapping relationship, the typical entropy of the spectrum and the environmental noise energy value, so as to quantify the gain effect of the output volume when adjusting the volume of the audio and video player, so as to realize the intelligent volume control of the audio and video player; finally, the volume is controlled based on the volume utility coefficient, which enhances the adaptability and robustness of the audio and video player in various complex environments. In summary, the technical solution adopted in the present application can regulate the output volume of the audio and video player according to the noise energy level of the environment in which the audio and video player is located, so as to improve the robustness of the volume control of the audio and video player.

[0048] In addition, in another aspect of the present application, in some embodiments, the present application provides an intelligent control system for an audio and video player, the intelligent control system for the audio and video player includes a volume control unit, referring to Figure 4 , which is a schematic diagram of exemplary hardware and / or software of a volume control unit according to some embodiments of the present application, the volume control unit 400 includes: a monitoring module 401, a processing module 402 and an execution module 403, which are described as follows: Monitoring module 401, in this application, monitoring module 401 is mainly used to obtain the ambient audio signal of the environment in which the audio and video player is located; Processing module 402, in the present application, is used to perform baseband attenuation on the ambient audio signal to obtain an audio attenuation signal of the environment in which the audio and video player is located, and then determine the spectrum confidence entropy of the corresponding signal frame through the spectrum energy of each signal frame in the audio attenuation signal; It should be noted that the processing module 402 in the present application is also used to filter out all ambient noise audio segments in the audio attenuation signal according to all spectrum confidence entropies, and determine the spectrum typical entropy of each ambient noise audio segment respectively; In addition, the processing module 402 in the present application is also used to obtain the fuzzy mapping relationship between the historical output volume of the audio and video player and the ambient noise, determine the output gain control sequence of the audio and video player based on the ambient noise energy value and the typical entropy of the spectrum of each ambient noise audio segment and the fuzzy mapping relationship, and determine the volume utility coefficient when adjusting the volume of the audio and video player according to the output gain control sequence and the current volume level of the audio and video player; Execution module 403, in this application, execution module 403 is mainly used to control the output volume of the audio and video player through the volume utility coefficient.

[0049] The above describes in detail the examples of the intelligent control method and system for audio and video players provided by the embodiments of the present application. It can be understood that in order to realize the above functions, the corresponding device includes hardware structures and / or software modules corresponding to the execution of each function. It should be easily appreciated by those skilled in the art that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present application.

[0050] In some embodiments, the present application also provides a computer device, which includes a memory and a processor, wherein the memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that the computer device executes the above-mentioned intelligent control method for an audio and video player.

[0051] In some embodiments, reference Figure 5 , the dotted line in the figure indicates that the unit or the module is optional, and the figure is a structural schematic diagram of a computer device for an intelligent control method for an audio and video player provided in an embodiment of the present application. The intelligent control method for an audio and video player described in the above embodiment can be Figure 5 The computer device 500 shown in the figure is implemented, and the computer device 500 includes at least one processor 501, a memory 502 and at least one communication unit 505. The computer device 500 can be a terminal device, a server or a chip.

[0052] The processor 501 may be a general-purpose processor or a special-purpose processor. For example, the processor 501 may be a central processing unit (CPU), which may be used to control the computer device 500, execute software programs, and process data of the software programs. The computer device 500 may also include a communication unit 505 to implement signal input (reception) and output (transmission).

[0053] For example, the computer device 500 may be a chip, the communication unit 505 may be an input and / or output circuit of the chip, or the communication unit 505 may be a communication interface of the chip, and the chip may be a component of a terminal device, a network device, or other devices.

[0054] For another example, the computer device 500 may be a terminal device or a server, and the communication unit 505 may be a transceiver of the terminal device or the server, or the communication unit 505 may be a transceiver circuit of the terminal device or the server.

[0055] The computer device 500 may include one or more memories 502, on which a program 504 is stored. The program 504 can be executed by the processor 501 to generate instructions 503, so that the processor 501 performs the method described in the above method embodiment according to the instructions 503. Optionally, data (such as a target audit model) can also be stored in the memory 502. Optionally, the processor 501 can also read the data stored in the memory 502, and the data can be stored at the same storage address as the program 504, or the data can be stored at a different storage address from the program 504.

[0056] The processor 501 and the memory 502 may be provided separately or integrated together, for example, integrated on a system on chip (SOC) of the terminal device.

[0057] It should be understood that each step of the above method embodiment can be completed by a hardware-based logic circuit or software-based instructions in the processor 501. The processor 501 can be a central processing unit, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, such as discrete gates, transistor logic devices or discrete hardware components.

[0058] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0059] For example, in some embodiments, the present application also provides a computer-readable storage medium, in which instructions or codes are stored. When the instructions or codes are run on a computer, the computer implements the above-mentioned intelligent control method for an audio and video player when executing the computer.

[0060] Although the preferred embodiments of the present application have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.

[0061] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. An intelligent control method for an audio and video player, characterized in that: The steps include: Obtaining the ambient audio signal of the environment in which the audio and video player is located; Performing baseband attenuation on the ambient audio signal to obtain an audio attenuation signal of the environment in which the audio and video player is located, and then determining the spectrum confidence entropy of the corresponding signal frame through the spectrum energy of each signal frame in the audio attenuation signal; Filtering out all ambient noise audio segments in the audio attenuation signal according to all spectrum confidence entropies, and determining the spectrum typical entropy of each ambient noise audio segment respectively; Acquire a fuzzy mapping relationship between a historical output volume of an audio and video player and ambient noise, determine an output gain control sequence of the audio and video player based on an ambient noise energy value and a typical spectrum entropy of each ambient noise audio segment and the fuzzy mapping relationship, and determine a volume utility coefficient when adjusting the volume of the audio and video player according to the output gain control sequence and a current volume level of the audio and video player; The output volume of the audio and video player is regulated by the volume utility coefficient.

2. The method according to claim 1, characterized in that Performing baseband attenuation on the ambient audio signal to obtain an audio attenuation signal of the environment in which the audio and video player is located specifically includes: Obtaining a preset fundamental frequency attenuation factor; For each signal sampling point in the ambient audio signal, performing fundamental frequency difference between the signal sampling point and a previous signal sampling point of the signal sampling point according to the fundamental frequency attenuation factor to obtain an attenuated signal point corresponding to the signal sampling point, and then obtaining all the attenuated signal points; The audio attenuation signal of the environment where the audio and video player is located is obtained through all the attenuation signal points.

3. The method according to claim 1, characterized in that The audio signal of the environment where the audio and video player is located is monitored through a microphone.

4. The method according to claim 1, characterized in that Screening out all ambient noise audio segments in the audio attenuation signal according to all spectrum confidence entropies specifically includes: Get the preset confidence threshold; Screening out all signal frames in the audio attenuation signal whose spectrum confidence entropy is greater than the confidence threshold; All ambient noise audio segments in the audio attenuation signal are determined according to all the screened signal frames.

5. The method according to claim 1, characterized in that Obtaining the fuzzy mapping relationship between the historical output volume of the audio and video player and the ambient noise specifically includes: Get the historical output volume of the audio and video player and the corresponding environmental noise energy value; A fuzzy mapping relationship of the audio and video player is constructed according to the historical output volume and the corresponding environmental noise energy value.

6. The method according to claim 1, characterized in that Determining the output gain control sequence of the audio and video player based on the ambient noise energy value and the typical entropy of the spectrum of each ambient noise audio segment and the fuzzy mapping relationship specifically includes: For each ambient noise audio segment, determining a decision volume corresponding to the ambient noise audio segment according to the ambient noise energy value and the spectrum typical entropy of the ambient noise audio segment and the fuzzy mapping relationship, thereby obtaining a decision volume corresponding to each ambient noise audio segment; The output gain control sequence of the audio and video player is determined by the decision volumes corresponding to all the ambient noise audio segments.

7. The method according to claim 1, characterized in that The output volume of the audio and video player is regulated by the volume utility coefficient and specifically includes: When the volume utility coefficient is within the set gain range, the output volume of the audio and video player is regulated according to the output gain control sequence; When the volume utility coefficient is outside the set gain range, the current volume level of the audio and video player is maintained.

8. An intelligent control system for an audio and video player, the intelligent control system for an audio and video player comprising a volume control unit, characterized in that: The volume control unit comprises: A monitoring module, used to obtain the ambient audio signal of the environment in which the audio and video player is located; A processing module, used to perform baseband attenuation on the ambient audio signal to obtain an audio attenuation signal of the environment in which the audio and video player is located, and then determine the spectrum confidence entropy of the corresponding signal frame through the spectrum energy of each signal frame in the audio attenuation signal; The processing module is further used to filter out all the ambient noise audio segments in the audio attenuation signal according to all the spectrum confidence entropies, and respectively determine the spectrum typical entropy of each ambient noise audio segment; The processing module is further used to obtain a fuzzy mapping relationship between a historical output volume of the audio and video player and the ambient noise, determine an output gain control sequence of the audio and video player based on an ambient noise energy value and a typical entropy of a spectrum of each ambient noise audio segment and the fuzzy mapping relationship, and determine a volume utility coefficient when adjusting the volume of the audio and video player according to the output gain control sequence and a current volume level of the audio and video player; The execution module is used to adjust the output volume of the audio and video player according to the volume utility coefficient.

9. A computer device, characterized in that: The computer device includes a memory and a processor, the memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that the computer device executes the intelligent control method for an audio and video player as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions or codes, and when the instructions or codes are executed on a computer, the computer implements the intelligent control method for an audio and video player as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Method for adaptively adjusting sound effect and equipment thereof

    CN102436821A

  • Volume adjusting method, device and equipment

    CN118016091A