Amplifier system volume adjustment method, device, equipment and storage medium

By analyzing audio, environment and user information, using preset curve database to match and correct the volume adjustment curve, the problem of inconsistent volume of the amplifier system under different audio sources is solved, automatic volume adjustment is achieved, flexibility and accuracy are improved, and User experience.

CN118567601BActive Publication Date: 2024-12-27ENPING CE ANCE ELECTRONICS TECH
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

The volume of the existing amplifier system is inconsistent when playing different audio sources, and users need to adjust it manually, resulting in inflexible volume adjustments and affecting the auditory experience.

Method used

By analyzing audio signals, environment information and user information, using a preset curve database to match and correct the volume adjustment curve, automatic volume adjustment is achieved to adapt to the needs of different audio, environment and users.

Benefits of technology

Improves flexibility and accuracy of volume adjustments, providing more natural and smoother volume changes, and improving user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118567601B_ABST
    Figure CN118567601B_ABST
Patent Text Reader

Abstract

The present application relates to the field of communication technology, and specifically discloses a method, device, computer equipment and storage medium for adjusting the volume of a power amplifier system. The volume adjustment curve of the present application combines audio characteristic information, environmental information and user information, can adapt to the 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; secondly, the volume adjustment curve can be obtained by matching from a preset curve database, and when the highest matching degree is not 1, the curve will be further modified according to the current situation, which improves the flexibility and accuracy of volume adjustment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technology, and in particular to a method, apparatus, computer device and storage medium for adjusting the volume of a power amplifier system. Background Technology

[0002] With the rapid development of mobile internet, communication connections between different devices have enabled data sharing and functional collaboration, making life more convenient for users. Audio from different sources can be played through the same device's amplifier system. For example, connecting a mobile phone to a TV allows the TV's amplifier system to play audio content from the phone; connecting a mobile phone to a car audio system allows the car's audio system to play audio content from the phone. However, due to the dynamic range, average loudness, and inherent volume differences of different audio sources, the same amplifier system often results in inconsistent volume levels when playing audio from different sources. Existing volume adjustment methods require manual adjustment by the user, which is inflexible and affects the user's listening experience. Therefore, improving the flexibility of amplifier system volume adjustment has become an urgent problem to be solved. Summary of the Invention

[0003] This application provides a method, apparatus, computer device, and storage medium for adjusting the volume of a power amplifier system, thereby improving the flexibility of volume adjustment in a power amplifier system.

[0004] Firstly, this application provides a method for adjusting the volume of a power amplifier system, the method comprising:

[0005] Upon receiving an audio signal, the audio signal is analyzed to obtain the current audio characteristic information corresponding to the audio signal, and the current environment information and current user information are also obtained.

[0006] Based on the current audio characteristic information, the current environment information, and the current user information, a 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 corrected according to the current audio characteristic information, the current environment information, and the current user information to obtain the target volume adjustment curve;

[0008] Adjust the volume based on the target volume adjustment curve.

[0009] Secondly, this application also provides a volume adjustment device for a power amplifier system, the device comprising:

[0010] The current information acquisition module is used to analyze the audio signal when it is received, obtain the current audio characteristic information corresponding to the audio signal, and acquire the current environment information and the current user information.

[0011] The initial curve acquisition module is used to match the current audio characteristic information, the current environment information, and the current user information in a preset curve database, and take the volume adjustment curve corresponding to the highest matching degree as the initial volume adjustment curve.

[0012] The target curve acquisition module is used to correct the initial volume adjustment curve based on the current audio characteristic information, the current environment information, and the current user information when the highest matching degree is not 1, so as to obtain the target volume adjustment curve.

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

[0014] Thirdly, this application also provides a computer device, the computer device including a memory and a processor; the memory is used to store a computer program; the processor is used to execute the computer program and, when executing the computer program, implement the power amplifier system volume adjustment method as described above.

[0015] Fourthly, this application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, causes the processor to implement the above-described method for adjusting the volume of a power amplifier system.

[0016] This application discloses a method, apparatus, computer device, and storage medium for adjusting the volume of a power amplifier system. Upon receiving an audio signal, the method analyzes the audio signal to obtain current audio characteristic information, current environmental information, and current user information. Based on the current audio characteristic information, the current environmental information, and the current user information, a matching process 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 environmental information, and the current user information to obtain a target volume adjustment curve. Volume adjustment is then performed based on the target volume adjustment curve. The volume adjustment curve of this application combines audio characteristic information, environmental information, and user information, enabling it to adapt to different audio, different environments, and different users. It allows for automatic volume adjustment based on the volume adjustment curve, improving the flexibility of volume adjustment. Furthermore, the volume adjustment curve can be obtained by matching from a preset curve database, and when the highest matching degree is not 1, the curve is further corrected according to the current situation, improving the flexibility and accuracy of volume adjustment. Attached Figure Description

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

[0018] Figure 1 This is a schematic flowchart of a first embodiment of a method for adjusting the volume of a power amplifier system provided in this application;

[0019] Figure 2 This is a schematic flowchart of a second embodiment of a method for adjusting the volume of a power amplifier system provided in this application;

[0020] Figure 3 This is a schematic flowchart of a third embodiment of a method for adjusting the volume of a power amplifier system provided in this application;

[0021] Figure 4 A schematic block diagram of a power amplifier system volume adjustment device provided for embodiments of this application;

[0022] Figure 5 A schematic block diagram of the structure of a computer device provided for an embodiment of this application. Detailed Implementation

[0023] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0024] The flowchart shown in the attached diagram is for illustrative purposes only and does not necessarily include all content and operations / steps, nor does it necessarily have to be performed in the order described. For example, some operations / steps can be broken down, combined, or partially merged, so the actual execution order may change depending on the actual situation.

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

[0026] It should also be understood that the term "and / or" as used in this application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.

[0027] This application provides a method, apparatus, computer device, and storage medium for adjusting the volume of a power amplifier system. The method for adjusting the volume of this power amplifier system can be applied to a server. It adjusts the volume using a volume adjustment curve that combines audio characteristic information, environmental information, and user information. This allows it to adapt to different audio types, environments, and users, and enables automatic volume adjustment based on the volume adjustment curve, thus improving the flexibility of volume control. The server can be a standalone server or a server cluster.

[0028] The following detailed description of some embodiments of this application is provided in conjunction with the accompanying drawings. Unless otherwise specified, the following embodiments and features can be combined with each other.

[0029] Please see Figure 1 , Figure 1 This is a schematic flowchart illustrating a method for adjusting the volume of a power amplifier system according to an embodiment of this application. This method can be applied to servers and is used to adjust the volume using a volume adjustment curve. The volume adjustment curve combines audio characteristic information, environmental information, and user information, enabling it to adapt to different audio, different environments, and different users. It allows for automatic volume adjustment based on the volume adjustment curve, 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. Upon receiving an audio signal, analyze the audio signal to obtain the current audio characteristic information corresponding to the audio signal, and obtain the current environment information and the current user information.

[0032] In one embodiment, 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 systems, professional recording studios, public address systems, car audio systems, and portable audio devices (such as headphones).

[0033] Furthermore, the current audio characteristic information includes speech information, emotional information, and loudness information.

[0034] In one embodiment, analyzing an audio signal may include loudness calculation to obtain the loudness value of the audio; audio feature extraction to identify rhythm and beat patterns in the audio, determine the pitch or tone of the audio, and extract features such as music genre, instruments, and emotions from the audio.

[0035] In one embodiment, speech information can be obtained by distinguishing between speech and non-speech components in audio. Specifically, the short-time energy and short-time zero-crossing rate of the audio are calculated and compared with preset thresholds to distinguish between speech and non-speech. Speech signals typically have higher energy and zero-crossing rates. If both the short-time energy and the short-time zero-crossing rate are greater than the threshold, the current frame is considered a speech frame; otherwise, it is considered a non-speech frame.

[0036] Short-time energy refers to the total energy of a signal over a short period of time. It is usually obtained by dividing the signal into many short time intervals and calculating the energy of each interval, and can be expressed as:

[0037]

[0038] Among them, E n For 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 a signal crosses a zero point within a frame, and can be expressed as:

[0040]

[0041] Where sgn(n) is the symbol 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. By incorporating voice information, emotional information, and loudness information into the current audio characteristic information, and when matching and correcting the volume adjustment curve in combination with the current audio characteristic information, voice information and emotional information can be analyzed in conjunction with user preference information to obtain user volume adjustment preferences corresponding to different voice information and different emotional information, thereby improving the accuracy of the volume adjustment curve.

[0043] In one embodiment, the current environmental information refers to the environmental information of the power amplifier system when it receives the audio signal, including environmental noise information and ambient light information. This information can be collected through a radio receiver and a photosensitive sensor (or illuminance sensor), wherein the radio receiver and the photosensitive sensor (or illuminance 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's identity based on the user account, and then obtaining the user information corresponding to that user identity as the current user information; alternatively, the user's face can be captured by an image acquisition module that communicates with the power amplifier system, and the user's identity can be determined by the user's face, with the user information corresponding to that user identity used as the current user information.

[0045] S102. Based on the current audio characteristic information, the current environment information, and the current user information, perform matching in a preset curve database, and take the volume adjustment curve corresponding to the highest matching degree as the initial volume adjustment curve.

[0046] In one embodiment, the curve database stores volume adjustment curves generated based on historical data, along with corresponding audio characteristic information, environmental information, and user information. The database contains a rich collection of volume adjustment curves, capable of covering a wide range of audio characteristics, environmental conditions, and user preferences.

[0047] In one embodiment, the current audio characteristic information, current environmental information, and current user information are used as reference group data and compared 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 consists of the audio characteristic information, environmental information, and user information corresponding to each volume curve in the curve database.

[0048] In one embodiment, when calculating the matching degree, corresponding weights can be assigned to 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, firstly, the reference group data and the comparison group data are transformed to obtain corresponding numerical vectors. All numerical vectors are then normalized to eliminate the influence of different magnitudes and units. Next, the similarity of each piece of information in the reference group data and the comparison group data is calculated according to a preset similarity calculation method. Then, a weighted calculation is performed based on the weight corresponding to each piece of information to obtain the matching degree between the reference group data and the comparison group data. The similarity calculation method can be Euclidean distance, Manhattan distance, cosine similarity, etc., and 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, 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 the target volume adjustment curve.

[0052] Further, step S103 includes: performing a difference analysis on the current audio characteristic information, the current environment information, and the current user information with 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 may not be completely identical to the audio characteristic information, environment information, and user information in the curve database, the highest matching degree may not be 1. This means the obtained initial volume adjustment curve does not perfectly match the current audio characteristic information, current environment information, and current user information. Therefore, to improve the accuracy of the volume adjustment curve, the initial volume adjustment curve is corrected based on the current environment information and current audio characteristic information to obtain the target volume adjustment curve.

[0054] In a specific embodiment, firstly, the differences between the reference group data and the comparison group data with the highest matching degree are analyzed. Based on the difference analysis results, the time periods or moments when the volume needs to be increased or decreased are determined. For example, if the environmental information in the reference group data differs from the environmental information in the comparison group data with the highest matching degree at a certain time period, then that time period is determined as the time period that needs correction. 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 correction strategy to obtain the target volume adjustment curve.

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

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

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

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

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

[0060] In one embodiment, the timestamp of the target volume adjustment curve is obtained and synchronized with the timestamp of the audio information to ensure that the volume adjustment can change 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, a time smoothing algorithm is used to reduce abrupt changes in volume:

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

[0063] Where α is the smoothing coefficient, V c The current volume is V, t is the time step, and V is the volume. s (t) represents the smoothed volume value at time t, V pThis represents the volume value at the previous time step or sampling point. By combining volume adjustment curves and time smoothing algorithms, abrupt changes in volume are reduced, providing smoother and more natural volume variations, resulting in smoother volume adjustment and an improved user listening experience.

[0064] The above embodiments provide a method, apparatus, computer device, and storage medium for adjusting the volume of a power amplifier system. Volume adjustment is performed using a volume adjustment curve that incorporates audio characteristic information, environmental information, and user information. This allows for volume adjustment to adapt to different audio frequencies, environments, and users. Automatic volume adjustment based on the volume adjustment curve improves the flexibility of volume adjustment. Furthermore, the volume adjustment curve can be obtained by matching from a preset curve database. If the highest matching degree is not 1, the curve will be further corrected based on the current situation, further improving the flexibility and accuracy of volume adjustment.

[0065] Please see Figure 2 , Figure 2 This is a schematic flowchart illustrating a method for adjusting the volume of a power amplifier system according to an embodiment of this application. This method can be applied to a server to generate volume adjustment curves based on historical datasets 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. Obtain at least one historical dataset, wherein the historical dataset includes historical audio characteristic information, historical environment information, and historical user information corresponding to historically played 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, step S202 includes: processing the historical audio characteristic information, the historical environmental 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; generating a volume gain function 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 environmental 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 L represents the loudness value expected by the user. 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 user's expected loudness value is obtained based on user preference information. Specifically, historical data on user volume adjustments is extracted from historical user information, including the time, environment, and context of the adjustments; user satisfaction with the volume; and user usage patterns, such as the time periods during which the volume was increased or decreased. The extracted data is then standardized onto a uniform scale. Based on the obtained data, users are clustered to identify groups of users with similar preferences and to pinpoint individual user preferences. A predictive model, such as a decision tree, random forest, or neural network model, is constructed and trained using preference data from user groups with similar preferences to optimize the predictive model and improve prediction accuracy. Finally, the trained predictive model is used to predict the user's expected loudness level based on the data extracted from historical user information, thus obtaining the user's expected loudness value.

[0074] Understandably, different users have different volume preferences. Some users may prefer a louder volume, while others may prefer a softer volume. Secondly, user preferences also vary depending on the context. For example, users prefer a softer volume at night and a louder volume during the day. Therefore, a volume adjustment curve generated by incorporating user preference information is more consistent with the current user's volume preferences.

[0075] In one embodiment, the user's volume preference information can be input by the user. Alternatively, it can be obtained by analyzing the user's historical usage records. Specifically, this involves retrieving information such as previously listened audio, volume adjustment records, and usage scenarios from the user's historical usage records. A preference prediction model is then used to extract audio characteristics such as speech, tone, and loudness from the historical audio, and combined with volume adjustment records and usage scenarios to predict the user's volume preference information. It is understood that the preference prediction model can be preset by the user.

[0076] In one embodiment, the K value can be adjusted according to the level of ambient noise. If the ambient noise increases, the K value can be increased accordingly to maintain the clarity of the sound; conversely, it can be decreased.

[0077] In another embodiment, the K value can be user-defined or optimized using machine learning algorithms based on historical data and user feedback. To match the loudness of the audio signal to the loudness of ambient noise, the K value can be set to 1. The K value can also be determined in other ways, which are not limited here.

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

[0079] In one embodiment, the gain value at each moment is calculated based on the gain function, and the gain values ​​at each moment are connected to form the target volume adjustment curve.

[0080] In the above embodiments, at least one volume adjustment curve is generated through historical datasets, and a curve database is generated. In the process of determining the target volume adjustment curve, existing curves can be used without creating new curves, which improves the efficiency of obtaining volume adjustment curves and thus improves the flexibility and real-time performance of volume adjustment.

[0081] Please see Figure 3 , Figure 3 This is a schematic flowchart illustrating a method for adjusting the volume of a power amplifier system according to an embodiment of this application. This method can be applied to servers to obtain environmental information by using current time information, ambient noise, and ambient light levels, thereby generating environmental information to improve the accuracy of volume preference information and thus improve 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. Obtain current time information, ambient noise level, and ambient light level;

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

[0085] S303. Based on the ambient noise, ambient light level, and the ambient scene, generate the environmental information.

[0086] In one embodiment, environmental scenarios with the same ambient noise and light levels may differ. For example, a user watching a movie in a dark theater during the day and resting in a bedroom at night may have the same ambient noise and light levels, but their volume adjustment application scenarios are different. Users' volume preference information may differ depending on the environmental scenario. To improve the accuracy of volume preference information and thus the accuracy of volume adjustment, the user's current environmental scenario is identified based on the collected current time information, ambient noise, and ambient light level, making the volume adjustment curve matched based on the obtained environmental information more accurate.

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

[0088] In one embodiment, ambient noise can be collected by a radio device communicatively connected to the power amplifier system. Ambient light level can be collected by a photosensor (or illuminance sensor) communicatively connected to the power amplifier system.

[0089] In one embodiment, the current time, ambient noise, and ambient light level are used as input parameters to a preset scene recognition model. The model processes these parameters to obtain the output parameters, which represent the user's current environment. It is understood that the scene recognition model is trained on historical data, including historical time information, historical ambient noise, historical ambient light levels, and historical environmental scenes.

[0090] Specifically, historical time information, historical environmental noise, and historical environmental lighting levels are categorized according to historical environmental scenarios. Each environmental scenario corresponds to a set of data. Then, pre-trained models (such as neural network models) are trained according to the groups, and the recognition accuracy of the models is calculated. The model whose recognition accuracy reaches an accuracy threshold is used as the scene recognition model. Understandably, the accuracy threshold can be freely set by the user.

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

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

[0093] Please see Figure 4 , Figure 4 This is a schematic block diagram of a power amplifier system volume adjustment device provided in an embodiment of this application. This power amplifier system volume adjustment device is used to perform the aforementioned power amplifier system volume adjustment method. The power amplifier system volume adjustment device 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 it is received, 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 acquisition module 402 is used to match the current audio characteristic information, the current environment information and the current user information in a preset curve database, and take the volume adjustment curve corresponding to the highest matching degree as the initial volume adjustment curve.

[0097] The target curve acquisition module 403 is used to correct the initial volume adjustment curve based on the current audio characteristic information, the current environment information, and the current user information when the highest matching degree is not 1, so as to obtain the target volume adjustment curve.

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

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

[0100] A historical dataset acquisition unit is used to acquire at least one historical dataset, wherein the historical dataset includes historical audio characteristic information, historical environment information, and historical user information corresponding to historically played audio.

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

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

[0103] The relevant information acquisition subunit is used to process the historical audio characteristic information, the historical environmental information, and the historical user information to obtain the gain coefficient, the loudness value expected by the user, the loudness value of the audio signal, and the loudness value of the environmental noise.

[0104] The adjustment curve generation unit is used to generate a volume gain function 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 L represents the loudness value expected by the user. 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 acquisition module 401 includes:

[0109] The information acquisition unit is used to acquire current time information, ambient noise, and ambient light level.

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

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

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

[0113] The difference analysis result acquisition unit is used to perform difference analysis on the current audio characteristic information, the current environment information, and the current user information with the initial volume adjustment curve to obtain the difference analysis result;

[0114] The volume adjustment curve correction unit is used to generate a correction strategy based on the difference analysis results, and to 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 speech information, emotional information, and loudness information.

[0116] It should be noted that those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the above-described apparatus and modules can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0117] The aforementioned device can be implemented as a computer program, which can be used in, for example... Figure 5 It runs on the computer device shown.

[0118] Please see Figure 5 , Figure 5 This is a schematic block diagram illustrating the structure of a computer device according to an embodiment of this application. The computer device may be a server.

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

[0120] Non-volatile storage media can store operating systems and computer programs. These computer programs include program instructions that, when executed, cause the processor to perform any method for adjusting the volume of the power amplifier system.

[0121] The processor provides computing and control capabilities, supporting the operation of the entire computer device.

[0122] Internal memory provides an environment for the execution of computer programs stored in non-volatile storage media. When executed by a processor, the computer program enables the processor to perform any method of adjusting the volume of the power amplifier system.

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

[0124] It should be understood that the processor can be a Central Processing Unit (CPU), but it can also be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among these, a general-purpose processor can be a microprocessor or any conventional processor.

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

[0126] Upon receiving an audio signal, the audio signal is analyzed to obtain the current audio characteristic information corresponding to the audio signal, and the current environment information and current user information are also obtained.

[0127] Based on the current audio characteristic information, the current environment information, and the current user information, a 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 corrected according to the current audio characteristic information, the current environment information, and the current user information to obtain the target volume adjustment curve;

[0129] Adjust the volume based on the target volume adjustment curve.

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

[0131] Obtain at least one historical dataset, wherein the historical dataset includes historical audio characteristic information, historical environment information, and historical user information corresponding to historically played audio.

[0132] The historical audio characteristic information, the historical environmental 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 environmental information, and the historical user information to generate at least one volume adjustment curve, it is configured to:

[0134] The historical audio characteristic information, the historical environmental information, and the historical user information are processed to obtain the gain coefficient, the loudness value expected by the user, the loudness value of the audio signal, and the loudness value of the environmental noise.

[0135] Based on the 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, a volume gain function is generated, 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 L represents the loudness value expected by the user. 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 the processor acquires current environment information, it is configured to:

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

[0141] Based on a preset scene recognition model, the current time information, the environmental noise, and the ambient light level are processed to obtain the current environmental scene in which the user is located.

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

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

[0144] The current audio characteristic information, the current environment information, and the current user information are compared with the initial volume adjustment curve to obtain the difference analysis results.

[0145] Based on the difference analysis results, a correction strategy is generated, 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 speech information, emotion information, and loudness information.

[0147] The embodiments of this application also provide a computer-readable storage medium storing a computer program, the computer program including program instructions, and the processor executing the program instructions to implement any of the power amplifier system volume adjustment methods provided in the embodiments of this application.

[0148] The computer-readable storage medium may be an internal storage unit of the computer device described in the foregoing embodiments, such as the 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, smart memory card (SMC), secure digital card (SD), flash memory card, etc., provided on the computer device.

[0149] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in this application, and these modifications or substitutions should all be covered within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

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; Performing volume adjustment based on the target volume adjustment curve; The current audio characteristic information, the current environment information and the current user information are matched in a preset curve database, and before the volume adjustment curve corresponding to the highest matching degree is used 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; Based on a preset formula, the historical audio characteristic information, the historical environment information, and the historical user information, at least one volume adjustment curve is generated, and based on the at least one volume adjustment curve, the curve database is generated; Wherein, 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.

2. The method for adjusting the volume of a power amplifier system according to claim 1, characterized in that: The generating at least one volume adjustment curve based on a preset formula, the historical audio characteristic information, the historical environment information, and the historical user information 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.

3. 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 environment scene of the user; The environmental information is generated based on the environmental noise, the environmental light level and the environmental scene.

4. 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.

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

6. 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; An automatic volume adjustment module, used for adjusting the volume based on the target volume adjustment curve; Wherein, the device for adjusting the volume of the power amplifier system further includes a curve database generation module, and the curve database generation module includes: 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; A curve database generating unit, configured to generate at least one volume adjustment curve based on a preset formula, the historical audio characteristic information, the historical environment information, and the historical user information, and to generate the curve database based on the at least one volume adjustment curve; Wherein, 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.

7. 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 5 when executing the computer program.

8. 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 5.