Method and device for adjusting volume of power amplifier system, equipment and storage medium

By analyzing audio, environment and user information, it automatically adjusts the volume of the power amplifier system, solving the problem of inconsistent volumes of different audio sources, achieving flexible and accurate volume control, and improving user experience.

CN118567601AActive Publication Date: 2024-08-30ENPING CE ANCE ELECTRONICS TECH

Patent Information

Application Number
CN202410606885.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-16
Publication Date
2024-08-30
Estimated Expiration
2044-05-16

AI Technical Summary

Technical Problem

The existing power amplifier system has inconsistent volume when playing different audio sources, and users need to manually adjust it, resulting in inflexible volume adjustment and affecting the listening experience.

Method used

By analyzing the characteristic information, environmental information and user information of the audio signal, the preset curve database is used to match and correct the volume adjustment curve to achieve automatic volume adjustment to adapt to the needs of different audio, environments and users.

Benefits of technology

It improves the flexibility and accuracy of volume adjustment, provides more natural and smooth volume changes, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118567601A
    Figure CN118567601A
Patent Text Reader

Abstract

The invention relates to the technical field of communication, and particularly discloses a power amplifier system volume adjusting method and device, computer equipment and a storage medium. The volume adjustment curve combines the audio characteristic information, the environment information and the user information, can adapt to volume adjustment of different audios, different environments and different users, can automatically adjust the volume according to the volume adjustment curve, and improves the flexibility of volume adjustment; and secondly, matching can be carried out from a preset curve database to obtain a volume adjustment curve, and when the highest matching degree is not 1, the curve is further corrected according to the current condition, so that the flexibility and accuracy of volume adjustment are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a method, device, computer equipment and storage medium for adjusting the volume of an amplifier system. Background Art

[0002] With the rapid development of mobile Internet, communication connections between different devices have been established, which has enabled data sharing and functional collaboration between different devices, making life more convenient for users. Audio from different sources can be played through the power amplifier system of the same device. For example, by connecting a mobile phone to a TV, the audio content on the mobile phone can be played through the power amplifier system of the TV; by connecting a mobile phone to a car system, the audio content on the mobile phone can be played through the car audio. However, due to the dynamic range, average loudness, and inherent volume differences of audio signals from different audio sources, the same power amplifier system often has inconsistent volume levels when playing audio from different sources. The existing volume adjustment method requires users to adjust it manually, and the volume adjustment is not flexible enough, which affects the user's auditory experience. Therefore, how to improve the flexibility of the volume adjustment of the power amplifier system has become an urgent problem to be solved. Summary of the invention

[0003] The present application provides a method, device, computer equipment and storage medium for adjusting the volume of a power amplifier system, so as to improve the flexibility of adjusting the volume of the power amplifier system.

[0004] In a first aspect, the present application provides a method for adjusting the volume of a power amplifier system, the method comprising:

[0005] When an audio signal is received, the audio signal is analyzed to obtain current audio characteristic information corresponding to the audio signal, and current environment information and current user information are obtained;

[0006] Based on the current audio characteristic information, the current environment information and the current user information, matching is performed in a preset curve database, and the volume adjustment curve corresponding to the highest matching degree is used as the initial volume adjustment curve;

[0007] When the highest matching degree is not 1, the initial volume adjustment curve is modified according to the current audio characteristic information, the current environment information and the current user information to obtain a target volume adjustment curve;

[0008] The volume is adjusted based on the target volume adjustment curve.

[0009] In a second aspect, the present application further provides a device for adjusting the volume of a power amplifier system, the device comprising:

[0010] A current information acquisition module is used to analyze the audio signal when receiving the audio signal, obtain the current audio characteristic information corresponding to the audio signal, and obtain the current environment information and the current user information;

[0011] An initial curve acquisition module, configured to perform matching in a preset curve database based on the current audio characteristic information, the current environment information and the current user information, and use the volume adjustment curve corresponding to the highest matching degree as the initial volume adjustment curve;

[0012] a target curve obtaining module, configured to, when the highest matching degree is not 1, correct the initial volume adjustment curve according to the current audio characteristic information, the current environment information and the current user information to obtain a target volume adjustment curve;

[0013] The automatic volume adjustment module is used to adjust the volume based on the target volume adjustment curve.

[0014] In a third aspect, the present application also provides a computer device, comprising a memory and a processor; the memory is used to store a computer program; the processor is used to execute the computer program and implement the method for adjusting the volume of the power amplifier system as described above when executing the computer program.

[0015] In a fourth aspect, the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor implements the method for adjusting the volume of the power amplifier system as described above.

[0016] The present application discloses a method, device, computer equipment and storage medium for adjusting the volume of a power amplifier system. When an audio signal is received, the audio signal is analyzed to obtain the current audio characteristic information corresponding to the audio signal, and the current environment information and the current user information are obtained; based on the current audio characteristic information, the current environment information and the current user information, a match is performed in a preset curve database, and the volume adjustment curve corresponding to the highest matching degree is used as the initial volume adjustment curve; when the highest matching degree is not 1, the initial volume adjustment curve is corrected according to the current audio characteristic information, the current environment information and the current user information to obtain a target volume adjustment curve; the volume is adjusted based on the target volume adjustment curve. The volume adjustment curve of the present application combines audio characteristic information, environment information and user information, can adapt to the volume adjustment of different audio, different environments and different users, can automatically adjust the volume according to the volume adjustment curve, and improves the flexibility of volume adjustment; secondly, the volume adjustment curve can be obtained by matching from the preset curve database, and when the highest matching degree is not 1, the curve will be further corrected according to the current situation, which improves the flexibility and accuracy of volume adjustment. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0018] Figure 1 is a schematic flow chart of a first embodiment of a method for adjusting the volume of a power amplifier system provided in an embodiment of the present application;

[0019] Figure 2 is a schematic flow chart of a second embodiment of a method for adjusting the volume of a power amplifier system provided in an embodiment of the present application;

[0020] Figure 3 is a schematic flow chart of a third embodiment of a method for adjusting the volume of a power amplifier system provided in an embodiment of the present application;

[0021] Figure 4 A schematic block diagram of a device for adjusting the volume of a power amplifier system provided in an embodiment of the present application;

[0022] Figure 5 A schematic block diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0023] 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 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.

[0024] The flowcharts shown in the accompanying drawings are only examples and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may also be decomposed, combined or partially merged, so the actual execution order may change according to actual conditions.

[0025] It should be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in this application specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0026] It should be further understood that the term “and / or” used in the specification and appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0027] The embodiments of the present application provide a method, device, computer equipment and storage medium for adjusting the volume of a power amplifier system. The method for adjusting the volume of the power amplifier system can be applied to a server, and the volume is adjusted by a volume adjustment curve. The volume adjustment curve combines audio characteristic information, environmental information and user information, and can adapt to the volume adjustment of different audios, different environments and different users. The volume can be automatically adjusted according to the volume adjustment curve, which improves the flexibility of volume adjustment. The server can be an independent server or a server cluster.

[0028] In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.

[0029] See also Figure 1 , Figure 1 This is a schematic flow chart of a method for adjusting the volume of a power amplifier system provided in an embodiment of the present application. The method for adjusting the volume of a power amplifier system can be applied to a server and is used to adjust the volume through a volume adjustment curve. The volume adjustment curve combines audio characteristic information, environmental information, and user information, and can adapt to volume adjustment of different audios, different environments, and different users. The volume can be automatically adjusted according to the volume adjustment curve, thereby improving the flexibility of volume adjustment.

[0030] like Figure 1 As shown, the method for adjusting the volume of the power amplifier system specifically includes steps S101 to S104.

[0031] S101, when an audio signal is received, analyzing the audio signal, obtaining current audio characteristic information corresponding to the audio signal, and obtaining current environment information and current user information;

[0032] In one embodiment, a power amplifier system, also known as a power amplifier system, is used to receive an electrical signal and convert it into a larger current or voltage signal so as to drive loads such as speakers or headphones. It can be installed in a variety of devices and scenarios, such as home audio, professional recording studios, public broadcasting systems, car audio, and portable audio devices (such as headphones).

[0033] Furthermore, the current audio characteristic information includes voice information, emotion information and loudness information.

[0034] In one embodiment, analyzing the audio signal may include loudness calculation to obtain the loudness value of the audio; audio feature extraction to identify the rhythm and beat patterns in the audio, determine the pitch or tone of the audio, and extract the audio's musical genre, instrument, emotion and other features.

[0035] In one embodiment, the speech information can be obtained by distinguishing the speech part and the non-speech part in the audio. Specifically, the short-time energy and the short-time zero-crossing rate of the audio are calculated, and the short-time energy and the short-time zero-crossing rate are compared with a preset threshold to distinguish speech from non-speech. Generally, the speech signal has a higher energy and zero-crossing rate. If the short-time energy is greater than the threshold and the short-time zero-crossing rate is greater than the threshold, it indicates that the current frame is a speech frame, otherwise it is a non-speech frame.

[0036] Among them, short-time energy refers to the total energy of the signal in a short time, which is usually obtained by dividing the signal into many short time periods and calculating the energy of each time period, which can be expressed as:

[0037]

[0038] Among them, E n is the short-time energy, h(n)=w(n) 2 , h(n) is the unit impulse response of the linear filter, m is the audio frame, w(n) is the window function, and x(n) is the time domain signal of the audio.

[0039] The short-time zero-crossing rate is the number of times the signal crosses the zero point in one frame, which can be expressed as:

[0040]

[0041] Among them, sgn(n) is the sign function, m is the audio frame, and w(n) is the window function.

[0042] In one embodiment, different voice information, emotional information and loudness information have different adaptive volumes. The voice information, emotional information and loudness information are included in the current audio characteristic information. When matching and correcting the volume adjustment curve in combination with the current audio characteristic information, the voice information and emotional information can be combined with the user preference information for analysis to obtain user volume adjustment preferences corresponding to different voice information and different emotional information, so as to improve the accuracy of the volume adjustment curve.

[0043] In one embodiment, the current environment information refers to the environment information of the power amplifier system when receiving the audio signal, including environment noise information and environment light information, etc. The information can be collected through a sound receiving device and a photosensitive sensor (or a light intensity sensor), wherein the sound receiving device and the photosensitive sensor (or a light intensity sensor) can be external devices and sensors that are communicatively connected to the power amplifier system.

[0044] In one embodiment, the current user information can be obtained by determining the user identity based on the user account, and then obtaining the user information corresponding to the user identity as the current user information; or the user face can be captured by an image acquisition module connected to the power amplifier system for communication, and then the user identity can be determined through the user face, and the user information corresponding to the user identity can be used as the current user information.

[0045] S102, matching is performed in a preset curve database based on the current audio characteristic information, the current environment information, and the current user information, and a volume adjustment curve corresponding to the highest matching degree is used as an initial volume adjustment curve;

[0046] In one embodiment, the curve database is used to store the volume adjustment curve generated according to the historical data, as well as the audio characteristic information, environmental information and user information corresponding to the volume adjustment curve. The database contains a variety of volume adjustment curves that can cover a variety of different audio characteristics, environmental conditions and user preferences.

[0047] In one embodiment, the current audio characteristic information, the current environment information and the current user information are used as reference group data to compare with the comparison group data in the curve database to obtain the matching degree between the reference group data and the comparison group data. It can be understood that the comparison group data is the audio characteristic information, environment information and user information corresponding to each volume curve in the curve database.

[0048] In one embodiment, when calculating the matching degree, corresponding weights may be set for the current audio characteristic information, the current environment information, and the current user information according to the importance of different information.

[0049] In a specific embodiment, first, data conversion is performed on the reference group data and the comparison group data to obtain corresponding numerical vectors. All numerical vectors are normalized to eliminate the influence of different magnitudes and units. Then, the similarity of each information in the reference group data and the comparison group data is calculated respectively according to a preset similarity calculation method. Then, a weighted calculation is performed according to the weight corresponding to each information to obtain the matching degree of the reference group data and the comparison group data. Among them, the similarity calculation method can be Euclidean distance, Manhattan distance, cosine similarity, etc., which is not limited here.

[0050] In one embodiment, the comparison group data with the highest matching degree is determined, and the volume adjustment curve corresponding to the comparison group data is used as the initial volume adjustment curve.

[0051] S103, when the highest matching degree is not 1, modifying the initial volume adjustment curve according to the current audio characteristic information, the current environment information and the current user information to obtain a target volume adjustment curve;

[0052] Furthermore, the step S103 includes: performing a difference analysis on the current audio characteristic information, the current environment information, and the current user information and the initial volume adjustment curve to obtain a difference analysis result; generating a correction strategy based on the difference analysis result, and correcting the initial volume adjustment curve based on the correction strategy to obtain the target volume adjustment curve.

[0053] In one embodiment, since the current audio characteristic information, current environment information, and current user information are not necessarily completely identical to the audio characteristic information, environment information, and user information in the curve database, the highest matching degree is not necessarily 1, that is, the obtained initial volume adjustment curve does not completely conform to the current audio characteristic information, current environment information, and current user information. Therefore, in order to improve the accuracy of the volume adjustment curve, the initial volume adjustment curve is corrected according to the current environment information and the current audio characteristic information to obtain the target volume adjustment curve.

[0054] In a specific embodiment, first, the difference between the reference group data and the comparison group data with the highest matching degree is analyzed, and based on the difference analysis results, the time period or moment when the volume needs to be increased or decreased is determined. If there is a difference between the environmental information in the reference group data and the environmental information in the comparison group data with the highest matching degree in a certain time period, then the time period is determined as the time period that needs to be corrected. Then, a correction strategy is formulated based on the current audio characteristic information, the current environmental information, and the current user information, such as increasing or decreasing the volume at a certain moment or time period in the initial volume adjustment curve. Finally, the initial volume adjustment curve is corrected according to the revision strategy to obtain the target volume adjustment curve.

[0055] In one embodiment, the difference analysis and formulation of the revised strategy can be completed by a preset strategy generation model. Specifically, first, the pre-trained model is pre-trained according to historical data to obtain a strategy generation model. Then, the reference group data and the comparison group data with the highest matching degree are used as input parameters of the model and input into the strategy generation model to obtain the revised strategy.

[0056] In another embodiment, when the highest matching degree is 1, it means that the reference group data and the comparison group data completely match, that is, the current audio characteristic information, the current environmental information and the current user information are the same as the audio characteristic information, the environmental information and the user information in the curve database. At this time, the initial volume adjustment curve obtained completely conforms to the current audio characteristic information, the current environmental information and the current user information, and can accurately adjust the volume. The initial volume adjustment curve is directly used as the target volume adjustment curve to adjust the volume.

[0057] It can be understood that when the highest matching degree is 1, the volume adjustment curve is directly obtained, and when the highest matching degree is not 1, the initial volume adjustment curve is corrected. Both can use the existing curve without creating a new curve, which improves the efficiency of obtaining the volume adjustment curve and further improves the real-time performance of volume adjustment.

[0058] In one embodiment, during the audio playback process, if the environmental information changes, the target volume adjustment curve can also be modified in real time according to the environmental information to improve the flexibility and accuracy of the volume adjustment.

[0059] S104: Perform volume adjustment based on the target volume adjustment curve.

[0060] In one embodiment, the timestamp of the target volume adjustment curve is obtained, and the timestamp is synchronized with the timestamp of the audio information to ensure that the volume adjustment can be changed in real time according to the audio signal. The corresponding volume adjustment value on the target volume adjustment curve is read in real time, and the volume is automatically adjusted according to the volume adjustment value.

[0061] In one embodiment, to reduce sudden changes in volume, a temporal smoothing algorithm is used:

[0062] V s (t) = α·V c +(1-α)·V p

[0063] Among them, α is the smoothing coefficient, V c is the current volume, t is the time step, V s (t) is the smoothed volume value at time t, V pIt is the volume value of the previous time step or sampling point. Combining the volume adjustment curve and the time smoothing algorithm, it reduces the sudden change of volume, provides a smoother and more natural volume change, makes the volume adjustment smoother, and improves the user's listening experience.

[0064] The above-mentioned embodiments provide a method, device, computer equipment and storage medium for adjusting the volume of a power amplifier system. The volume is adjusted through a volume adjustment curve. The volume adjustment curve combines audio characteristic information, environmental information and user information, and can adapt to the volume adjustment of different audio, different environments and different users. The volume can be automatically adjusted according to the volume adjustment curve, thereby improving the flexibility of volume adjustment. Secondly, the volume adjustment curve can be obtained by matching from a preset curve database. When the highest matching degree is not 1, the curve will be further modified according to the current situation, thereby improving the flexibility and accuracy of volume adjustment.

[0065] See also Figure 2 , Figure 2 The present invention provides a schematic flow chart of a method for adjusting the volume of a power amplifier system provided by an embodiment of the present invention. The method for adjusting the volume of a power amplifier system can be applied to a server to generate a volume adjustment curve based on a historical data set and obtain a curve database.

[0066] like Figure 2 As shown, the method for adjusting the volume of the power amplifier system specifically includes steps S201 to S202.

[0067] S201, obtaining at least one historical data set, wherein the historical data set includes historical audio characteristic information, historical environment information, and historical user information corresponding to historical playback audio;

[0068] S202: Process the historical audio characteristic information, the historical environment information, and the historical user information to generate at least one volume adjustment curve, and generate the curve database based on the at least one volume adjustment curve.

[0069] Further, the step S202 includes: processing the historical audio characteristic information, the historical environment information and the historical user information to obtain a gain coefficient, a loudness value expected by the user, a loudness value of the audio signal and a loudness value of the ambient noise; generating a gain function of the volume based on a preset formula, the gain coefficient, the loudness value expected by the user, the loudness value of the audio signal and the loudness value of the ambient noise, and generating the volume adjustment curve based on the gain function.

[0070] Furthermore, the preset formula is:

[0071]

[0072] Where K is the gain coefficient, G base (t) is the gain function, L desired is the loudness value expected by the user, L noise (t) represents the loudness value of the ambient noise at time t, L audio (t) represents the loudness value of the audio signal at time t.

[0073] In one embodiment, the loudness value expected by the user is obtained based on the user preference information. Specifically, the historical records of the user adjusting the volume are extracted from the historical user information, including the time, environment and scenario of the adjustment; the user's satisfaction with the volume; and the user's usage pattern, such as the time period when the volume is turned up or down. Then, the extracted data is standardized to a unified scale. Based on the obtained data, the users are clustered to obtain user groups with similar preferences and to identify user preferences. A prediction model, such as a decision tree, random forest or neural network model is constructed, and the model is trained with the preference data of user groups with similar preferences to optimize the prediction model and improve the prediction accuracy. Finally, the trained prediction model is used to predict the user's expected loudness level based on the data extracted from the historical user information to obtain the loudness value expected by the user.

[0074] It is understandable that different users have different volume preferences. Some users may prefer louder volume, and some users may prefer softer volume. Secondly, user preferences also vary according to different scenarios. For example, users prefer softer volume at night, and louder volume during the day. Therefore, the volume adjustment curve generated in combination with user preference information is more in line with the current user's volume preference.

[0075] In one embodiment, the volume preference information of the user can be input by the user. It can also be obtained by analyzing the historical usage records of the user. Specifically, the historical audio, volume adjustment records, and usage scenarios that the user has listened to are obtained from the historical usage records of the user. The audio characteristic information such as voice information, sex information, and loudness information in the historical audio is extracted through the preference prediction model, and the volume preference information of the user is predicted and obtained by combining the volume adjustment records and usage scenarios. It is understandable that the preference prediction model can be preset by the user.

[0076] In one embodiment, the K value may be adjusted according to the size of the ambient noise. If the ambient noise increases, the K value may be increased accordingly to maintain the clarity of the listening sound; otherwise, the K value may be decreased.

[0077] In another embodiment, the K value can be customized by the user, or a machine learning algorithm can be used to optimize the K value based on historical data and user feedback. If the loudness of the audio signal is to match the loudness of the ambient noise, the K value can be set to 1. The K value can also be determined by other methods, which are not limited here.

[0078] In one embodiment, the loudness value of the audio signal and the loudness value of the ambient noise may be obtained by measuring the loudness of the audio signal and the ambient noise.

[0079] In one embodiment, the gain value corresponding to each moment is calculated according to the gain function, and the gain value at each moment is connected to form a target volume adjustment curve.

[0080] In the above embodiment, at least one volume adjustment curve is generated through the historical data set, and a curve database is generated, so that in the process of determining the target volume adjustment curve, the existing curve can be used without creating a new curve, thereby improving the efficiency of obtaining the volume adjustment curve, and further improving the flexibility and real-time performance of volume adjustment.

[0081] See also Figure 3 , Figure 3 The present invention is a schematic flow chart of a method for adjusting the volume of a power amplifier system provided by an embodiment of the present application. The method for adjusting the volume of a power amplifier system can be applied to a server to obtain an environmental scene through current time information, environmental noise, and environmental light level, and then generate environmental information to improve the accuracy of volume preference information, thereby improving the accuracy of volume adjustment.

[0082] like Figure 3 As shown, the method for adjusting the volume of the power amplifier system specifically includes steps S301 to S303.

[0083] S301, obtaining current time information, ambient noise, and ambient light level;

[0084] S302: Based on a preset scene recognition model, the current time information, the ambient noise, and the ambient light level are processed to obtain an ambient scene where the user is currently located;

[0085] S303: Generate the environmental information based on the environmental noise, the environmental light level and the environmental scene.

[0086] In one embodiment, due to the different environmental scenes with the same environmental noise and the same environmental light level, such as when a user watches a movie in a dark theater during the day and rests in a bedroom at night, the environmental noise and light levels of the two are the same, but the user's volume adjustment application scenarios are different. The volume preference information of the user may be different when the user is in different environmental scenes. In order to improve the accuracy of the volume preference information and thus improve the accuracy of the volume adjustment, the user's current environmental scene is identified based on the collected current time information, environmental noise, and environmental light level, so that the volume adjustment curve matched according to the obtained environmental information is more accurate.

[0087] In one embodiment, the current time information is the current time when the audio signal is received.

[0088] In one embodiment, the ambient noise may be collected by a sound receiving device in communication with the power amplifier system. The ambient light level may be collected by a photosensitive sensor (or light intensity sensor) in communication with the power amplifier system.

[0089] In one embodiment, the current time information, environmental noise, and environmental light level are used as input parameters of a preset scene recognition model, and are processed by the preset scene recognition model to obtain output parameters, namely, the environmental scene that the user is currently in. It can be understood that the scene recognition model is obtained by training based on historical data, and the historical data includes historical time information, historical environmental noise, historical environmental light level, and historical environmental scene.

[0090] Specifically, historical time information, historical environmental noise, and historical environmental light levels are classified according to historical environmental scenes, each environmental scene corresponds to a group of data, and then the pre-trained model (such as a neural network model, etc.) is trained according to the group, and the recognition accuracy of the model is calculated, and the model when the recognition accuracy reaches the accuracy threshold is used as the scene recognition model. It is understandable that the accuracy threshold can be freely set by the user.

[0091] In one embodiment, the ambient noise, the ambient light level, and the ambient scene are combined to generate the ambient information.

[0092] In the above embodiment, the environmental scene is obtained through the current time information, the environmental noise and the environmental light level, and then the environmental information is generated, which improves the accuracy of the volume preference information and thus improves the accuracy of the volume adjustment.

[0093] See also Figure 4 , Figure 4 The embodiment of the present application provides a schematic block diagram of a device for adjusting the volume of a power amplifier system, wherein the device for adjusting the volume of a power amplifier system is used to execute the aforementioned method for adjusting the volume of a power amplifier system, wherein the device for adjusting the volume of a power amplifier system can be configured on a server.

[0094] like Figure 4 As shown, the volume adjustment device 400 of the power amplifier system includes:

[0095] The current information acquisition module 401 is used to analyze the audio signal when receiving the audio signal, obtain the current audio characteristic information corresponding to the audio signal, and obtain the current environment information and the current user information;

[0096] The initial curve obtaining module 402 is used to match the volume adjustment curve corresponding to the highest matching degree in a preset curve database based on the current audio characteristic information, the current environment information and the current user information, and use the volume adjustment curve corresponding to the highest matching degree as the initial volume adjustment curve;

[0097] A target curve obtaining module 403 is used to correct the initial volume adjustment curve according to the current audio characteristic information, the current environment information and the current user information to obtain a target volume adjustment curve when the highest matching degree is not 1;

[0098] The automatic volume adjustment module 404 is configured to adjust the volume based on the target volume adjustment curve.

[0099] Furthermore, the power amplifier system volume adjustment device 400 further includes a curve database generation module for:

[0100] A historical data set acquisition unit, used to acquire at least one historical data set, wherein the historical data set includes historical audio characteristic information, historical environment information, and historical user information corresponding to historical playback audio;

[0101] The curve database generating unit is used to process the historical audio characteristic information, the historical environment information and the historical user information to generate at least one volume adjustment curve, and generate the curve database based on the at least one volume adjustment curve.

[0102] In one embodiment, the curve database generating unit includes:

[0103] A related information obtaining subunit, used to process the historical audio characteristic information, the historical environment information and the historical user information to obtain a gain coefficient, a loudness value expected by the user, a loudness value of the audio signal and a loudness value of the environmental noise;

[0104] The adjustment curve generating unit is used to generate a gain function of the volume based on a preset formula, the gain coefficient, the loudness value expected by the user, the loudness value of the audio signal and the loudness value of the ambient noise, and to generate the volume adjustment curve based on the gain function.

[0105] Furthermore, the preset formula is:

[0106]

[0107] Where K is the gain coefficient, G base (t) is the gain function, L desired is the loudness value expected by the user, L noise (t) represents the loudness value of the ambient noise at time t, L audio (t) represents the loudness value of the audio signal at time t.

[0108] Furthermore, the current information obtaining module 401 includes:

[0109] An information acquisition unit, used to acquire current time information, ambient noise, and ambient light level;

[0110] An environmental scene recognition unit, configured to process the current time information, the environmental noise, and the environmental light level based on a preset scene recognition model to obtain an environmental scene in which the user is currently located;

[0111] An environmental information generating unit is used to generate the environmental information based on the environmental noise, the environmental light level and the environmental scene.

[0112] Furthermore, the target curve obtaining module 403 includes:

[0113] a difference analysis result obtaining unit, configured to perform a difference analysis on the current audio characteristic information, the current environment information, the current user information and the initial volume adjustment curve to obtain a difference analysis result;

[0114] The volume adjustment curve correction unit is used to generate a correction strategy according to the difference analysis result, and correct the initial volume adjustment curve based on the correction strategy to obtain the target volume adjustment curve.

[0115] Furthermore, the current audio characteristic information includes voice information, emotion information and loudness information.

[0116] It should be noted that those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described device and each module can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0117] The above-mentioned device can be implemented in the form of a computer program. Figure 5 Runs on the computer device shown.

[0118] See also Figure 5 , Figure 5 1 is a schematic block diagram of a computer device provided in an embodiment of the present application. The computer device may be a server.

[0119] See also Figure 5 The computer device includes a processor, a memory and a network interface connected through a system bus, wherein the memory may include a non-volatile storage medium and an internal memory.

[0120] The non-volatile storage medium can store an operating system and a computer program. The computer program includes program instructions, and when the program instructions are executed, the processor can execute any method for adjusting the volume of the power amplifier system.

[0121] The processor is used to provide computing and control capabilities and support the operation of the entire computer equipment.

[0122] The internal memory provides an environment for the operation of the computer program in the non-volatile storage medium. When the computer program is executed by the processor, the processor can execute any method for adjusting the volume of the power amplifier system.

[0123] The network interface is used for network communication, such as sending assigned tasks, etc. Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0124] It should be understood that the processor may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0125] In one embodiment, the processor is used to run a computer program stored in the memory to implement the following steps:

[0126] When an audio signal is received, the audio signal is analyzed to obtain current audio characteristic information corresponding to the audio signal, and current environment information and current user information are obtained;

[0127] Based on the current audio characteristic information, the current environment information and the current user information, matching is performed in a preset curve database, and the volume adjustment curve corresponding to the highest matching degree is used as the initial volume adjustment curve;

[0128] When the highest matching degree is not 1, the initial volume adjustment curve is modified according to the current audio characteristic information, the current environment information and the current user information to obtain a target volume adjustment curve;

[0129] The volume is adjusted based on the target volume adjustment curve.

[0130] In one embodiment, before the processor performs matching in a preset curve database based on the current audio characteristic information, the current environment information, and the current user information, and uses the volume adjustment curve corresponding to the highest matching degree as the initial volume adjustment curve, it is further configured to implement:

[0131] Acquire at least one historical data set, wherein the historical data set includes historical audio characteristic information, historical environment information, and historical user information corresponding to historical playback audio;

[0132] The historical audio characteristic information, the historical environment information and the historical user information are processed to generate at least one volume adjustment curve, and the curve database is generated based on the at least one volume adjustment curve.

[0133] In one embodiment, when the processor processes the historical audio characteristic information, the historical environment information, and the historical user information to generate at least one volume adjustment curve, it is configured to implement:

[0134] Processing the historical audio characteristic information, the historical environment information, and the historical user information to obtain a gain coefficient, a loudness value expected by a user, a loudness value of an audio signal, and a loudness value of environmental noise;

[0135] A gain function of the volume is generated based on a preset formula, the gain coefficient, a loudness value expected by a user, a loudness value of an audio signal, and a loudness value of ambient noise, and the volume adjustment curve is generated based on the gain function.

[0136] In one embodiment, the preset formula is:

[0137]

[0138] Where K is the gain coefficient, G base (t) is the gain function, L desired is the loudness value expected by the user, L noise (t) represents the loudness value of the ambient noise at time t, L audio (t) represents the loudness value of the audio signal at time t.

[0139] In one embodiment, when obtaining the current environment information, the processor is used to implement:

[0140] Get current time information, ambient noise, and ambient light level;

[0141] Based on a preset scene recognition model, the current time information, the ambient noise, and the ambient light level are processed to obtain the current ambient scene of the user;

[0142] The environmental information is generated based on the environmental noise, the environmental light level and the environmental scene.

[0143] In one embodiment, when the highest matching degree is not 1, the processor corrects the initial volume adjustment curve according to the current audio characteristic information, the current environment information, and the current user information to obtain the target volume adjustment curve, and is used to implement:

[0144] Performing difference analysis on the current audio characteristic information, the current environment information, the current user information and the initial volume adjustment curve to obtain a difference analysis result;

[0145] A correction strategy is generated according to the difference analysis result, and the initial volume adjustment curve is corrected based on the correction strategy to obtain the target volume adjustment curve.

[0146] In one embodiment, the current audio characteristic information includes voice information, emotion information and loudness information.

[0147] A computer-readable storage medium is also provided in an embodiment of the present application, wherein the computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and the processor executes the program instructions to implement any method for adjusting the volume of an amplifier system provided in an embodiment of the present application.

[0148] The computer-readable storage medium may be an internal storage unit of the computer device described in the foregoing embodiment, such as a hard disk or memory of the computer device. The computer-readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a smart memory card (Smart Medi a Card, SMC), a secure digital (Secure Digital, SD) card, a flash memory card (Flash Card), etc., equipped on the computer device.

[0149] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A method for adjusting the volume of a power amplifier system, characterized in that: include: When an audio signal is received, the audio signal is analyzed to obtain current audio characteristic information corresponding to the audio signal, and current environment information and current user information are obtained; Based on the current audio characteristic information, the current environment information and the current user information, matching is performed in a preset curve database, and the volume adjustment curve corresponding to the highest matching degree is used as the initial volume adjustment curve; When the highest matching degree is not 1, the initial volume adjustment curve is modified according to the current audio characteristic information, the current environment information and the current user information to obtain a target volume adjustment curve; The volume is adjusted based on the target volume adjustment curve.

2. The method for adjusting the volume of a power amplifier system according to claim 1, characterized in that: Before matching in a preset curve database based on the current audio characteristic information, the current environment information and the current user information and using the volume adjustment curve corresponding to the highest matching degree as the initial volume adjustment curve, the method further includes: Acquire at least one historical data set, wherein the historical data set includes historical audio characteristic information, historical environment information, and historical user information corresponding to historical playback audio; The historical audio characteristic information, the historical environment information and the historical user information are processed to generate at least one volume adjustment curve, and the curve database is generated based on the at least one volume adjustment curve.

3. The method for adjusting the volume of a power amplifier system according to claim 2, characterized in that: The processing of the historical audio characteristic information, the historical environment information, and the historical user information to generate at least one volume adjustment curve includes: Processing the historical audio characteristic information, the historical environment information, and the historical user information to obtain a gain coefficient, a loudness value expected by a user, a loudness value of an audio signal, and a loudness value of environmental noise; A gain function of the volume is generated based on a preset formula, the gain coefficient, a loudness value expected by a user, a loudness value of an audio signal, and a loudness value of ambient noise, and the volume adjustment curve is generated based on the gain function.

4. The method for adjusting the volume of a power amplifier system according to claim 3, characterized in that: The preset formula is: Where K is the gain coefficient, G base (t) is the gain function, L desired is the loudness value expected by the user, L noise (t) represents the loudness value of the ambient noise at time t, L audio (t) represents the loudness value of the audio signal at time t.

5. The method for adjusting the volume of a power amplifier system according to claim 1, characterized in that: The obtaining of current environment information includes: Get current time information, ambient noise, and ambient light level; Based on a preset scene recognition model, the current time information, the ambient noise, and the ambient light level are processed to obtain the current ambient scene of the user; The environmental information is generated based on the environmental noise, the environmental light level and the environmental scene.

6. The method for adjusting the volume of a power amplifier system according to claim 1, characterized in that: When the highest matching degree is not 1, the initial volume adjustment curve is modified according to the current audio characteristic information, the current environment information and the current user information to obtain a target volume adjustment curve, including: Performing difference analysis on the current audio characteristic information, the current environment information, the current user information and the initial volume adjustment curve to obtain a difference analysis result; A correction strategy is generated according to the difference analysis result, and the initial volume adjustment curve is corrected based on the correction strategy to obtain the target volume adjustment curve.

7. The method for adjusting the volume of a power amplifier system according to any one of claims 1 to 6, characterized in that: The current audio characteristic information includes voice information, emotion information and loudness information.

8. A volume adjustment device for a power amplifier system, characterized in that: include: A current information acquisition module is used to analyze the audio signal when receiving the audio signal, obtain the current audio characteristic information corresponding to the audio signal, and obtain the current environment information and the current user information; An initial curve acquisition module, configured to perform matching in a preset curve database based on the current audio characteristic information, the current environment information and the current user information, and use the volume adjustment curve corresponding to the highest matching degree as the initial volume adjustment curve; a target curve obtaining module, configured to, when the highest matching degree is not 1, correct the initial volume adjustment curve according to the current audio characteristic information, the current environment information and the current user information to obtain a target volume adjustment curve; The automatic volume adjustment module is used to adjust the volume based on the target volume adjustment curve.

9. A computer device, characterized in that: The computer device includes a memory and a processor; The memory is used to store computer programs; The processor is used to execute the computer program and implement the method for adjusting the volume of the power amplifier system according to any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor implements the method for adjusting the volume of a power amplifier system according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Audio playing method, terminal and computer readable storage medium

    CN107247572A

  • Volume gear adjusting method and device, earphone and computer readable storage medium

    CN112188345A

  • Headset volume adaptive adjustment method based on internal audio loudness

    CN116320864A

  • Volume adjusting method, device and equipment

    CN118016091A

  • Method and Apparatus for Adjusting Volume of User Terminal, and Terminal

    US20170034362A1

Cited By

  • Vehicle-mounted equipment power amplifier control method and system

    CN119270830A