Audio parameter determination method and device, electronic equipment and storage medium
The deep learning model processes volume-related information and dynamically adjusts audio parameters, which solves the problems of inaccurate audio parameters and lack of personalization in the existing technology, and achieves a high degree of matching between audio parameters and application scenarios and a diverse sound experience.
Patent Information
- Application Number
- CN202310157057.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-21
- Publication Date
- 2024-08-23
AI Technical Summary
The existing technology cannot individually configure audio parameters for each target application scenario, resulting in inaccurate audio parameters and the same effect for all users in the same scenario, lacking personalization and pertinence.
The deep learning model is used to process the volume related information of the terminal device and determine the target audio parameters of the target application scenario, thereby dynamically adjusting the audio parameters in different application scenarios to provide a personalized audio experience.
It achieves the independent determination of target audio parameters for each application scenario, improves the accuracy of audio parameters and matching with application scenarios, meets the differentiated sound effect needs of different users, and enhances the accuracy and diversity of audio adjustment.
Smart Images

Figure CN118535117A
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to an audio parameter determination method and device, an electronic device, and a computer-readable storage medium. Background Art
[0002] For terminal devices, their power consumption is ultimately reflected in the Codec and SmartPA parts. The most effective way to reduce audio power consumption is to reduce the audio volume, which can be directly reflected in the loudness of the speaker.
[0003] In the related art, different audio parameters are usually designed for different target application scenarios to dynamically adjust the high and low frequency configuration parameters of the audio.
[0004] In the above method, it is impossible to configure audio parameters separately for each target application scenario, and the effect presented in the same scenario is the same for all users.
[0005] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0006] The purpose of the present disclosure is to provide a method and device for determining audio parameters, an electronic device, and a storage medium, thereby overcoming the problem of inaccurate audio parameters caused by the limitations and defects of related technologies at least to a certain extent.
[0007] Other features and advantages of the present disclosure will become apparent from the following detailed description, or may be learned in part by the practice of the present disclosure.
[0008] According to a first aspect of the present disclosure, a method for determining audio parameters is provided, comprising: obtaining volume association information in response to a volume adjustment operation applied to a terminal device; processing the volume association information based on a deep learning model to determine target audio parameters of a target application scenario in which the terminal device is located; and playing audio data using the target audio parameters when the terminal device is in the target application scenario.
[0009] According to a second aspect of the present disclosure, an audio parameter determination device is provided, including: an information acquisition module, used to respond to a volume adjustment operation acting on a terminal device and obtain volume-related information; a parameter determination module, used to process the volume-related information based on a deep learning model to determine target audio parameters of a target application scenario in which the terminal device is located; and an audio playback module, used to play audio data using the target audio parameters when the terminal device is in the target application scenario.
[0010] According to a third aspect of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute the audio parameter determination method of the above-mentioned first aspect and its possible implementation method by executing the executable instructions.
[0011] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the audio parameter determination method of the first aspect and possible implementation methods thereof are implemented.
[0012] In the technical solution provided in the embodiments of the present disclosure, on the one hand, by processing the volume association information through a deep learning model, the target audio parameters corresponding to the target application scenario can be determined, so that the function of separately determining the corresponding target audio parameters for each application scenario can be realized, avoiding the limitation that the audio parameters of all users in the same target application scenario are the same, and improving the pertinence and personalization. On the other hand, since the target audio parameters corresponding to the target application scenario can be determined based on the volume association information, the accuracy of the target audio parameters is improved, and the matching degree between the target audio parameters and the target application scenario is improved.
[0013] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present disclosure. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.
[0015] Figure 1 A schematic diagram is shown of a target application scenario to which the audio parameter determination method of an embodiment of the present disclosure can be applied.
[0016] Figure 2 A schematic diagram schematically illustrates a method for determining audio parameters according to an embodiment of the present disclosure.
[0017] Figure 3 A schematic diagram schematically illustrates the method of obtaining target audio parameters through a deep learning model in an embodiment of the present disclosure.
[0018] Figure 4 The following is a schematic diagram of a process for determining target audio parameters through volume association information in an embodiment of the present disclosure.
[0019] Figure 5 A schematic diagram schematically illustrates updating target audio parameters through user attribute information in an embodiment of the present disclosure.
[0020] Figure 6 A schematic diagram schematically illustrates the structure of the overall technical framework of an embodiment of the present disclosure.
[0021] Figure 7 The overall process diagram of determining audio parameters of a target application scenario according to an embodiment of the present disclosure is schematically shown.
[0022] Figure 8 A block diagram of an audio parameter determination device in an embodiment of the present disclosure is schematically shown.
[0023] Fig. 9 A block diagram of an electronic device in an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION
[0024] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as being limited to the examples set forth herein; on the contrary, these embodiments are provided so that the present disclosure will be more comprehensive and complete, and the concepts of the example embodiments are fully conveyed to those skilled in the art. The described features, structures, or characteristics may be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced while omitting one or more of the specific details, or other methods, components, devices, steps, etc. may be adopted. In other cases, known technical solutions are not shown or described in detail to avoid obscuring various aspects of the present disclosure.
[0025] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.
[0026] In the related technology, the high and low frequency configuration parameters of the audio can be dynamically adjusted in the following ways. The specific process includes: adjusting the volume loudness of each grid, obtaining the foreground application currently used by the terminal device, matching the audio parameters corresponding to the target application scenario, and adjusting the basic sound quality and loudness according to the matching results.
[0027] In the above method, no matter how many scene-audio parameters are built into the terminal, a separate set cannot be configured for each scene, and the effect of the same scene is consistent for each user, but the needs of different users under different external conditions are inconsistent.
[0028] In order to solve the technical problems in the related art, an audio parameter determination method is provided in an embodiment of the present disclosure, which can be applied to an application scenario of dynamically adjusting the audio parameters of a terminal device. Figure 1 A schematic diagram showing a system architecture to which the audio parameter determination method and apparatus according to the embodiments of the present disclosure can be applied.
[0029] like Figure 1 As shown, the volume association information of the terminal device can be obtained. The volume association information is input into the deep learning model, and the volume association information is processed based on the deep learning model to obtain the target audio parameters corresponding to the target application scenario, and the audio data is played through the target audio parameters to replace the original standard audio parameters. For example, if a volume adjustment operation is received in the target application scenario 1, the target audio parameters corresponding to the target application scenario 1 can be determined, and when it is subsequently determined that the terminal device is in the target application scenario 1, the target audio parameters can be directly called. In the target application scenario 2, if the volume adjustment operation is not detected, the standard audio parameters can be used.
[0030] It should be noted that the above-mentioned audio parameter determination method can be deployed on a terminal device. The terminal device can be any intelligent device that is easy to move, for example, it can be a smart phone, a computer, a tablet computer, a smart speaker, a smart watch, a car device, a wearable device, a monitoring device and other intelligent devices. The deep learning model can be trained on the server to obtain a deep learning model, and further the deep learning model can be deployed on the terminal device according to actual needs, so that the terminal device determines the volume audio relationship of the target application scenario according to the deep learning model, and thus determines the target audio parameters according to the volume audio relationship. The deep learning model can also be trained on the server to obtain a deep learning model, so that the server determines the volume audio relationship of the target application scenario according to the deep learning model, and obtains the target audio parameters. The target audio parameters are further sent to the terminal device so that the terminal device plays the audio data through the target audio parameters.
[0031] Figure 2 The method for determining audio parameters in the embodiment of the present disclosure is schematically shown in FIG. Figure 2 As shown in , the specific steps include:
[0032] Step S210, in response to a volume adjustment operation on a terminal device, obtaining volume-related information;
[0033] Step S220, processing the volume association information based on a deep learning model to determine a target audio parameter of a target application scenario of the terminal device;
[0034] Step S230, when the terminal device is in the target application scenario, playing the audio data according to the target audio parameters.
[0035] The technical solution provided in the embodiments of the present disclosure, on the one hand, processes the volume association information through a deep learning model, and can determine the target audio parameters corresponding to the target application scenario, so that the function of separately determining the corresponding target audio parameters for each application scenario can be realized, avoiding the limitation that the audio parameters of all users in the same target application scenario are the same, and improving the pertinence and personalization. On the other hand, since the target audio parameters corresponding to the target application scenario can be determined based on the volume association information, the accuracy of the target audio parameters is improved, and the matching degree between the target audio parameters and the target application scenario is improved.
[0036] Next, refer to Figure 2 As shown, each step in the audio parameter determination method in the embodiment of the present disclosure is described in detail.
[0037] In step S210, volume-related information is acquired in response to a volume adjustment operation performed on a terminal device.
[0038] In the disclosed embodiments, the terminal device may be any type of smart device capable of playing audio, such as a smart phone, a tablet computer, a phone watch, a smart speaker, a car device, etc., as long as it can play audio. For the terminal device, a standard audio parameter may be set in any application scenario. In all application scenarios of the same terminal device, the standard audio parameter may be the same, or may be different depending on the application scenario, which is not specifically limited here. The standard audio parameter may be a default audio parameter, that is, an audio parameter set in advance. For example, the standard audio parameter may be audio parameter 1.
[0039] The volume adjustment operation can be triggered by clicking the volume button, sliding the volume control, or voice triggering, touching the fingerprint sensor, etc., as long as the volume can be changed. The method of volume adjustment operation is not specifically limited here. Specifically, when the user is not satisfied with the current volume, the volume can be adjusted through the volume adjustment operation to adjust the audio parameters.
[0040] When it is detected that the user performs a volume adjustment operation on the terminal device, volume association information can be collected. The volume association information may include but is not limited to the currently used application, the type of external speaker device, audio data, the volume data before adjustment, the volume data after adjustment, and the duration of the volume data before adjustment, etc. For the convenience of description, the volume association information can be divided into audio playback information and volume information. The audio playback information may include one or more of the currently used application, the type of external speaker device, and the audio data. The volume information may include the volume data before adjustment, the volume data after adjustment, and the duration of the volume data before adjustment. Among them, the currently used application refers to the foreground application, such as a music application, a sports application, or a video application, a chat interaction application, a game application, etc. The type of external speaker device may be a headset, a speaker, or other types of devices for playing audio data. The audio data refers to the audio being played when the volume adjustment operation is detected, which may be audio data in an audio application, audio data in a video, etc., or other types of audio. The volume data before adjustment may be the level corresponding to the volume data before adjustment, and the volume data after adjustment may be the level of the volume data after adjustment. Exemplarily, the level corresponding to the volume can be determined according to a pre-set corresponding relationship. For example, when the volume is 1-14 decibels, the level is the first level; when the volume is 15-30 decibels, the level is the second level, and so on.
[0041] In addition, when a volume adjustment operation is received, user attribute information may also be obtained, which may include one or more basic information such as user location information and time information. User location information refers to the geographical location of the user when using the terminal device, which may change according to the user's movement. Time information refers to the time when the volume adjustment operation occurs, such as 21 o'clock, etc.
[0042] In the above implementation, when a volume adjustment operation is received during the use of the terminal device, volume-related information and user attribute information are collected, so that the target audio parameters of the terminal device are re-determined according to the volume-related information, or the volume-related information and the user attribute information, and the playback quality is intelligently adjusted according to the target application scenario of the terminal device to meet the user's usage needs and improve the user's usage experience.
[0043] In step S220, the volume association information is processed based on a deep learning model to determine target audio parameters of the target application scenario in which the terminal is located.
[0044] In the disclosed embodiments, the deep learning model can be any type of deep learning network, for example, it can include but is not limited to CNN (Convolutional Neural Network), RNN (Recurrent Neural Network) and other models, and the deep learning model is taken as a convolutional neural network model as an example for illustration. The deep learning model can be used to learn the corresponding relationship between input and output, so as to obtain corresponding output data according to the input data. In some embodiments, the deep learning model is used to learn the corresponding relationship between volume and audio parameters, that is, to determine the volume audio relationship.
[0045] For the deep learning model, in order to improve the accuracy, training data can be obtained, and the deep learning model can be trained based on the training data. The training data can be any data related to the volume. The data related to the volume (such as volume association information) can be used as input, and the corresponding audio parameters (user-set or default audio parameters, etc.) can be used as output to train the deep learning model. Exemplarily, the deep learning model can be trained on the cloud or server side. After obtaining the deep learning model, it is deployed on the corresponding terminal device according to the parameter requirements of the terminal device to avoid the problem of inaccurate deep learning model obtained due to insufficient computing power of the terminal device, thereby improving the accuracy of the model.
[0046] In addition, the deep learning model can also be saved to the cloud or server, and the subsequent process of determining the target audio parameters can be performed in the cloud, and finally the obtained volume audio relationship and target audio parameters can be saved in the cloud. Furthermore, the obtained target audio parameters corresponding to the target application scenario can be sent to the terminal device, so that the terminal device plays the audio data according to the target audio parameters and executes the subsequent process to improve the processing efficiency of the terminal device and enhance the user experience.
[0047] Further, input data of the deep learning model may be obtained. The input data may include one or more of volume association information and user attribute information. Among them, the volume association information is key information and can be used to determine the target audio parameters. The user attribute information is non-key information and can be used to update and optimize the target audio parameters to achieve differentiated processing of the target audio parameters.
[0048] After obtaining the input data of the deep learning model, the volume association information in the input data can be input into the deep learning model for convolution operation, so as to obtain the volume audio relationship of the target application scenario in which the terminal device is located, and determine the corresponding target audio parameters according to the volume audio relationship. The target application scenario can be any type of application scenario, for example, a sports scene or a movie scene, a game scene, a navigation scene, a video shooting scene, etc., which is determined according to the actual situation. The volume audio relationship is used to describe the corresponding relationship between the volume and the audio parameter, which can be determined by the deep learning model. The target application scenario is different, and the corresponding volume audio relationship may be different, and the volume audio relationship corresponds to the target application scenario. The audio parameter may include the target audio parameter and the auxiliary information corresponding to the target audio parameter. When the target audio parameter is a sound effect mode, the audio parameter here may include the sound effect mode, and the auxiliary information such as the currently used application program and the type of external speaker corresponding to the sound effect mode. That is, the volume audio relationship can be obtained according to the combination of the sound effect mode and the corresponding auxiliary information. In addition, the audio parameter may also include other audio-related parameters, such as audio playback speed (e.g., 2x speed, 0.5x speed), etc., which are determined according to actual needs.
[0049] For example, Figure 3 The schematic diagram of the process of obtaining the target audio parameters is shown schematically in Figure 3 As shown in , it mainly includes the following steps:
[0050] In step S310, feature processing is performed on at least part of the volume association information to obtain a volume audio relationship;
[0051] In step S320, the target audio parameter is generated according to the volume audio relationship.
[0052] In some embodiments, after the volume association information is input into the deep learning model, at least part of the volume association information can be fused to obtain fused information, and the fused information can be feature processed to obtain the volume audio relationship, that is, the correspondence between the volume and the target audio parameter and the auxiliary information corresponding to the target audio parameter. Among them, the target audio parameter can be a sound effect mode. The auxiliary information may include one or more of the currently used application, the type of external speaker device, and the audio data, which can be specifically determined according to the audio playback information in the volume-related information. Based on this, the correspondence between the volume and the currently used application, the type of external speaker device, and the sound effect mode can be obtained.
[0053] Among them, at least part of the information can be all the information in the volume association information, or part of the information in the volume association information. For example, the volume association information can include volume information and audio playback information, and the sound effect mode can be obtained according to the volume information in the volume association information. In addition, the determined sound effect mode can be bound to one or more of the audio playback information in the volume association information (for example, bound to the currently used application and the type of external speaker device), so as to determine the sound effect mode and auxiliary information of the target application scene, so as to determine the volume audio relationship according to the sound effect mode and the auxiliary information, and then determine the target audio parameters corresponding to the target application scene. The sound effect mode can be, for example, a classical mode, a popular mode, a dialect mode, etc., which can be determined according to actual needs. The auxiliary information can be a foreground application, an external speaker device type, etc. Using the external speaker device type as input data can distinguish whether the audio parameters are adjusted by external speaker, and can also be used as auxiliary information so that the corresponding target audio parameters can be directly called when the external speaker device is used in a similar scene next time.
[0054] For example, a mapping relationship can be established between the currently used application, the type of external speaker device and the sound effect mode to combine the target audio parameters with the auxiliary information, so as to more accurately determine the target audio parameters corresponding to the auxiliary information. For example, the output data is: the currently used application is application 1, the external speaker device type is headphones, and the sound effect mode is mode 1; the currently used application is application 1, the external speaker device type is a speaker, and the sound effect mode is mode 2; the currently used application is application 2, the external speaker device type is a speaker, and the sound effect mode is mode 3, and so on. In addition, the audio data in the volume association information can also be combined with the target audio parameters represented by the sound effect mode, that is, the sound effect mode can be determined according to the content of the audio data, the currently used application and the type of external speaker device, and it can be determined specifically according to actual needs.
[0055] refer to Figure 4 As shown in , the volume association information can be input into a deep learning model, and the volume association information can be feature processed by the deep learning model to obtain the volume audio relationship of the target application scenario in which the terminal device is located, and then the target audio parameter is obtained according to the volume audio relationship. For example, if the volume association information obtained includes: the currently used application is a movie application, the external speaker device type is headphones, audio data 1, the volume data before adjustment is 1, the volume data after adjustment is 2, and the duration of the volume data before adjustment is duration 1, it can be determined that the target audio parameter is a classical mode. If the volume association information obtained includes: the currently used application is a music application, the external speaker device type is a speaker, the current audio data, the volume data before adjustment is 1, the volume data after adjustment is 2, and the duration of the volume data before adjustment is duration 2, it can be determined that the target audio parameter is a popular mode.
[0056] In the disclosed embodiment, by processing the volume association information through a deep learning model, a volume audio relationship corresponding to the target application scenario can be obtained, thereby obtaining the target audio parameters for the target application scenario, which can improve the accuracy of the target audio parameters and the degree of matching with the application scenario.
[0057] It should be noted that after determining the target audio parameters of the target application scenario, it is also possible to continue to detect whether a volume adjustment operation is received. If a volume adjustment operation is received, the volume association information and user attribute information are continued to be collected, and the target audio parameters in the target application scenario are updated and optimized based on the re-collected volume association information and / or user attribute information to make the target audio parameters more accurate. Exemplarily, user attribute information and volume association information can continue to be collected. And the acquired volume association information is input into the deep learning model, and the volume audio relationship of the current target application scenario is determined to update the target audio parameters. If the volume adjustment operation is not received, the target audio parameters continue to remain unchanged, that is, there is no need to update the target audio parameters. In the embodiment of the present disclosure, the target audio parameters can be continuously updated in response to the volume adjustment operation, so that the target audio parameters that are more in line with the target application scenario where the terminal device is located can be obtained, and the matching of the target audio parameters with the target application scenario is improved. The number of times the target audio parameters are updated and optimized can be determined according to the number of volume adjustment operations. Multiple updates and optimizations of the target audio parameters through volume adjustment operations can make the target audio parameters more in line with actual conditions, improve the match with the target application scenario and the current volume data, and increase accuracy.
[0058] In some embodiments, if the user changes the currently used application, it means that the target application scenario has changed. At this time, steps S210 to S220 may be re-executed to update the target audio parameters.
[0059] In addition, after determining the target audio parameters, the target audio parameters can be further adjusted according to the user attribute information. The user attribute information can be information that can affect the audio parameters, for example, it can include the user's location information, and time information, in addition to which it can also include user operation behavior, etc., which is specifically determined according to actual needs. As shown in reference 5, in some embodiments, the user's location information can also be used as input data of the deep learning model, and the volume audio relationship that conforms to the user's location information is obtained through the deep learning model, and then the target audio parameters are obtained to update and differentiate the target audio parameters. Therefore, the audio parameters that conform to the target application scenario can be determined in combination with the user's location information and the target application scenario of the terminal device itself, thereby improving the accuracy and matching of the audio parameters. Since the user's location may change over time, in order to ensure the accuracy of the audio parameters when the location changes, the location information of the terminal device can be re-acquired to re-determine the target audio parameters. Specifically, it is possible to determine whether the location information of the terminal device has changed by real-time positioning of the terminal device.
[0060] In addition, the time information can also be used as input data to update the target audio parameters. The specific method is the same as the above-mentioned method of updating in combination with the user's location information, which will not be repeated here. For example, the currently used application is application 1, the external speaker type is headphones, the location information is office, and the time information is 14 o'clock. The target audio parameters can be the sound effect mode represented by mode 4.
[0061] In the disclosed embodiment, by combining the user's location information, time information and the target application scenario of the terminal device itself to determine audio parameters that meet the target application scenario, the authenticity and accuracy of the target audio parameters can be improved, the matching degree with the usage scenario can be improved, personalized configuration can be achieved, and diversity and richness can be increased.
[0062] In other embodiments, the duration of the volume data before adjustment in different application scenarios can also be obtained, so as to adaptively calculate the automatic adjustment response speed in different application scenarios, and improve the user experience in the dimension of the adjustment speed of audio sound effects. For example, the duration of the volume data before adjustment in different application scenarios can be used as input data of the deep learning model, and the automatic adjustment response speed in different application scenarios can be obtained according to the correspondence between the duration and the response speed represented by the deep learning model. Specifically, the duration of the volume data before adjustment in the target application scenario can be logically processed by the deep learning model to obtain the automatic adjustment response speed.
[0063] It should be noted that the target application scenario of the terminal device can be any type of application scenario. Therefore, the corresponding target audio parameters and auxiliary information can be set in advance for any type of application scenario through the steps in step S210 to step S220, so as to directly match and call in subsequent use. In addition, the target audio parameters of each application scenario can include at least one.
[0064] Continue to refer Figure 2 As shown in, in step S230, when the terminal device is in the target application scenario, the audio data is played using the target audio parameters.
[0065] In the disclosed embodiment, when starting to use the terminal device, the application scene in which the terminal device is located can be matched first, that is, it can be determined whether the application scene is in the target application scene. The target application scene can be a movie scene, a video scene, a music scene, a book listening scene, etc. It should be noted that for the terminal device, a standard audio parameter is set in advance in any application scene. And the corresponding target audio parameter is configured in the target application scene. For example, it can be determined here whether the application scene is a movie scene.
[0066] After determining that the terminal device is in the target application scenario, the target audio parameters corresponding to the target application scenario can be called. The target audio parameters can be audio parameters different from the standard audio parameters. Generally speaking, the audio parameters of each application scenario can be set as standard audio parameters. When it is recognized that the terminal device is in the target application scenario, the pre-set target audio parameters can be directly called to replace the standard audio parameters. The target audio parameters refer to audio configuration parameters, that is, high and low configuration parameters, which can specifically be various sound effect modes played in the audio player, such as pop mode, classical mode or folk mode, etc.
[0067] In some embodiments, when the terminal device is in the target application scenario, it can be determined whether a volume adjustment operation is received on the terminal device. If a volume adjustment operation is received, volume-related information is obtained, such as one or more of the currently used application, audio data, volume data before adjustment, volume data after adjustment, external speaker type, and duration of volume data before adjustment. Further, the audio playback parameters in the volume-related information are compared with the auxiliary information in the volume-audio relationship to determine the target audio parameters that meet the audio playback information, so as to call the target audio parameters that meet the audio playback information such as the currently used application function program, external speaker type, etc. from all audio parameters corresponding to the target application scenario.
[0068] In addition, the target audio parameters can be accurately determined based on the location information and time information in the user attribute information. For example, if the currently used application is application 1, the external speaker type is headphones, the location information is office, and the time information is 14 o'clock, the target audio parameters can be the sound effect mode represented by mode 4. At the same time, the automatic adjustment response speed can also be determined.
[0069] In the embodiments of the present disclosure, reference Figure 6 The overall technical framework shown in may specifically include the application layer, the Framework layer, and the Kernel layer.
[0070] All applications installed on the terminal device belong to the application layer, such as contacts, text messages and other applications that come with the system, or applications downloaded from a third party, etc. In the embodiment of the present disclosure, the application layer may include foreground application information, external device information and AI smart services.
[0071] The application framework layer provides multiple interface APIs for developing applications, and constructs application APPs by calling special interface APIs to meet business needs. In the embodiment of the present disclosure, the Framework layer may include a decision center module and a deep learning module.
[0072] The kernel layer mainly completes the functions of the operating system. This layer has multiple drivers, such as display driver, audio driver, camera driver, Bluetooth driver, Wi-Fi driver, power management, etc. These drivers are used to drive the hardware devices on the terminal device. In the embodiment of the present disclosure, the kernel layer may include DSP (Digital Signal Processing) and audio hardware Audio.
[0073] In the disclosed embodiment, the hardware it relies on includes: DSP, Audio, NPU (Neural network Processing Unit). The software frameworks it relies on include Audio Flinger responsible for audio processing, a sound source playback framework, a user behavior recognition framework, and a deep learning framework. The collected data may include, but are not limited to: the currently used application, the current external speaker device type, the current audio data, the volume level before adjustment, the duration of the volume level before adjustment, and the volume level after adjustment. The output data may include the target audio parameters of the target application scenario and the sound effect adjustment rate.
[0074] Based on the above technical framework, the currently used application can be obtained based on the foreground application information module of the application layer, and the type of external speaker device can be determined based on the external speaker device module. The volume audio relationship is further determined based on the deep learning module of the application framework layer, and the corresponding target audio parameters are determined based on the decision center module of the application framework layer. Next, the determined target audio parameters can be transmitted to the Kernel layer to play the audio data through the audio hardware of the Kernel layer.
[0075] Figure 7 The overall flow chart for audio adjustment is schematically shown in FIG. Figure 7 As shown in , it mainly includes the following steps:
[0076] In step S701, the terminal device starts to be used.
[0077] In step S702, it is determined whether the application scenario is the target application scenario; if so, the process goes to step S703; if not, the process goes to step S708.
[0078] In step S703, the target audio parameters are called.
[0079] In step S704, it is determined whether a volume adjustment operation is received; if so, the process goes to step S705.
[0080] In step S705, volume-related information and user attribute information are recorded.
[0081] In step S706, the volume association information and the user attribute information are used as input data of the deep learning model.
[0082] In step S707, the target audio parameters are refreshed, and the process returns to step S703 to continue execution.
[0083] In step S708, standard audio parameters are called, and the standard audio parameters may be default audio parameters.
[0084] In step S709, the audio parameters are called to play the audio data.
[0085] The technical solution in the disclosed embodiment processes the volume association information through a deep learning model, and can determine the target audio parameters corresponding to the target application scenario. Therefore, it is possible to realize the function of separately determining the corresponding target audio parameters for each application scenario, thereby improving the pertinence and personalization. Since the target audio parameters corresponding to the target application scenario can be determined based on the volume association information, the limitation that the target audio parameters of all users in the same application scenario are the same is avoided, the accuracy of the audio parameters is improved, and the matching degree between the audio parameters and the target application scenario is improved. Personalized audio parameters are generated for different users to meet the user's demand for differentiated sound effects and improve the accuracy of audio adjustment. Basic information such as the user's geographic location and time is input as parameters to generate more refined audio adjustment parameters, providing different users with differentiated audio and sound effect experience effects, increasing the diversity of the target audio parameters, and enriching the effects.
[0086] The present disclosure provides an audio parameter determination device, referring to Figure 8 As shown in , the audio parameter determination device 800 may include:
[0087] The information collection module 801 is used to obtain volume-related information in response to a volume adjustment operation on a terminal device;
[0088] A parameter determination module 802 is used to process the volume association information based on a deep learning model to determine a target audio parameter of a target application scenario of the terminal device;
[0089] The audio playing module 803 is used to play the audio data according to the target audio parameters when the terminal device is in the target application scenario.
[0090] In an exemplary embodiment of the present disclosure, the parameter determination module includes: a relationship determination module, which is used to fuse at least part of the volume association information, and perform feature processing on the fused information based on the deep learning model to obtain the volume audio relationship; and a parameter generation module, which is used to generate the target audio parameter according to the volume audio relationship.
[0091] In an exemplary embodiment of the present disclosure, the relationship determination module includes: an information determination module, which is used to input at least part of the volume association information into the deep learning model, determine the target audio parameters corresponding to the target application scenario and auxiliary information of the target audio parameters, so as to determine the volume audio relationship.
[0092] In an exemplary embodiment of the present disclosure, the volume-related information includes audio playback information and volume information; the information determination module includes: an audio parameter determination module, which is used to map the volume-related information based on the deep learning model to obtain the target audio parameters; and an auxiliary information determination module, which is used to determine the auxiliary information of the target audio parameters according to the audio playback information in the volume-related information.
[0093] In an exemplary embodiment of the present disclosure, the audio playback module includes: a playback control module, which is used to call the target audio parameters corresponding to the target application scenario to play the audio data according to the currently used application and the type of external speaker device when it is determined that the target application scenario is in place.
[0094] In an exemplary embodiment of the present disclosure, the volume association information includes the duration of the volume data before adjustment, and the device also includes: a response speed determination module, which is used to determine the sound effect adjustment response speed corresponding to the target application scenario through the duration of the volume data before adjustment in the volume association information.
[0095] In an exemplary embodiment of the present disclosure, the device also includes: a parameter updating module, used to input user attribute information into a deep learning model to update the target audio parameters; wherein the user attribute information includes one or more of location information and time information.
[0096] It should be noted that the specific details of each part of the above-mentioned audio parameter determination device have been described in detail in some implementation methods of the corresponding methods. The undisclosed details can be found in the implementation content of the method part, and will not be repeated here.
[0097] The exemplary embodiment of the present disclosure also provides an electronic device. The electronic device may be the above-mentioned mobile terminal device. Generally, the electronic device may include a processor and a memory, the memory is used to store executable instructions of the processor, and the processor is configured to execute the above-mentioned audio parameter determination method by executing the executable instructions.
[0098] Below Fig. 9 The mobile terminal 900 in FIG. 1 is taken as an example to exemplify the structure of the electronic device. It should be understood by those skilled in the art that, in addition to the components specifically used for mobile purposes, Fig. 9 The construction in can also be applied to fixed type equipment.
[0099] like Fig. 9As shown, the mobile terminal 900 may specifically include: a processor 901, a memory 902, a bus 903, a mobile communication module 904, an antenna 1, a wireless communication module 905, an antenna 2, a display screen 906, a camera module 907, an audio module 908, a power module 909 and a sensor module 910.
[0100] The processor 901 may include one or more processing units, for example, the processor 901 may include an AP (Application Processor), a modem processor, a GPU (Graphics Processing Unit), an ISP (Image Signal Processor), a controller, an encoder, a decoder, a DSP (Digital Signal Processor), a baseband processor and / or an NPU (Neural-Network Processing Unit), etc. The audio parameter determination method in this exemplary embodiment may be executed by an AP, a GPU or a DSP. When the method involves processing related to a neural network, it may be executed by an NPU, for example, the NPU may load neural network parameters and execute algorithm instructions related to the neural network.
[0101] The encoder can encode (i.e. compress) an image or video to reduce the data size for easy storage or transmission. The decoder can decode (i.e. decompress) the encoded data of the image or video to restore the image or video data. The mobile terminal 900 can support one or more encoders and decoders, for example: image formats such as JPEG (Joint Photographic Experts Group), PNG (Portable Network Graphics), BMP (Bitmap), and video formats such as MPEG (Moving Picture Experts Group) 1, MPEG10, H.1063, H.1064, and HEVC (High Efficiency Video Coding).
[0102] The processor 901 may be connected to the memory 902 or other components via a bus 903 .
[0103] The memory 902 may be used to store computer executable program codes, which may include instructions. The processor 901 executes various functional applications and data processing of the mobile terminal 900 by running the instructions stored in the memory 902. The memory 902 may also store application data, such as images, videos, and other files.
[0104] The communication function of the mobile terminal 900 can be implemented by the mobile communication module 904, antenna 1, wireless communication module 905, antenna 2, modulation and demodulation processor and baseband processor. Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. The mobile communication module 904 can provide 3G, 4G, 5G and other mobile communication solutions applied to the mobile terminal 900. The wireless communication module 905 can provide wireless communication solutions such as wireless LAN, Bluetooth, near field communication, etc. applied to the mobile terminal 900.
[0105] The display screen 906 is used to implement display functions, such as displaying user interfaces, images, videos, etc. The camera module 907 is used to implement shooting functions, such as shooting images, videos, etc., and the camera module may include a color temperature sensor array. The audio module 908 is used to implement audio functions, such as playing audio, collecting voice, etc. The power module 909 is used to implement power management functions, such as charging the battery, powering the device, monitoring the battery status, etc. The sensor module 910 may include one or more sensors for implementing corresponding sensing detection functions. For example, the sensor module 910 may include an inertial sensor, which is used to detect the motion posture of the mobile terminal 900 and output inertial sensing data.
[0106] It should be noted that a computer-readable storage medium is also provided in an embodiment of the present disclosure. The computer-readable storage medium may be included in the electronic device described in the above embodiment; or may exist independently without being assembled into the electronic device.
[0107] The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to, an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, apparatus, or device.
[0108] Computer-readable storage media can send, propagate or transmit programs for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable storage medium can be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0109] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by an electronic device, the electronic device implements the method described in the following embodiments.
[0110] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the implementation of the present disclosure.
[0111] In addition, the above-mentioned figures are only schematic illustrations of the processes included in the method according to the exemplary embodiments of the present disclosure, and are not intended to be limiting. It is easy to understand that the processes shown in the above-mentioned figures do not indicate or limit the time sequence of these processes. In addition, it is also easy to understand that these processes can be performed synchronously or asynchronously, for example, in multiple modules.
[0112] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.
[0113] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing what is disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The specification and embodiments are to be considered merely as exemplary, and the true scope and spirit of the present disclosure are indicated by the claims.
[0114] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A method for determining audio parameters, characterized in that: include: In response to a volume adjustment operation performed on a terminal device, obtaining volume-related information; Processing the volume association information based on a deep learning model to determine target audio parameters of a target application scenario of the terminal device; When the terminal device is in the target application scenario, the audio data is played according to the target audio parameters.
2. The method for determining audio parameters according to claim 1, characterized in that: The processing of the volume association information based on the deep learning model to determine the target audio parameters of the target application scenario of the terminal device includes: Performing feature processing on at least part of the volume association information based on the deep learning model to obtain a volume audio relationship; The target audio parameter is generated according to the volume audio relationship.
3. The method for determining audio parameters according to claim 2, characterized in that: The performing feature processing on at least part of the volume association information based on the deep learning model to obtain the volume audio relationship includes: At least part of the volume association information is input into the deep learning model to determine the target audio parameters corresponding to the target application scenario and auxiliary information of the target audio parameters to determine the volume audio relationship.
4. The method for determining audio parameters according to claim 3, characterized in that: The volume-related information includes audio playback information and volume information; The step of inputting at least part of the volume association information into the deep learning model to determine the target audio parameter corresponding to the target application scenario and the auxiliary information of the target audio parameter includes: Based on the deep learning model, mapping processing is performed on the volume association information to obtain the target audio parameter; The auxiliary information of the target audio parameter is determined according to the audio playing information in the volume association information.
5. The method for determining audio parameters according to claim 1, characterized in that: When the terminal device is in the target application scenario, playing the audio data by using the target audio parameter includes: When it is determined that the target application scenario is in place, the target audio parameters corresponding to the target application scenario are called according to the audio playing information in the volume association information to play the audio data.
6. The method for determining audio parameters according to claim 1, characterized in that: The volume association information includes the duration of the volume data before adjustment, and the method further includes: The sound effect adjustment response speed corresponding to the target application scenario is determined by the duration of the volume data before adjustment in the volume association information.
7. The method for determining audio parameters according to claim 1, characterized in that: The method further comprises: Inputting user attribute information into a deep learning model to update the target audio parameters; The user attribute information includes one or more of location information and time information.
8. An audio parameter determination device, characterized in that: include: An information collection module, used to obtain volume-related information in response to a volume adjustment operation performed on a terminal device; A parameter determination module, used to process the volume association information based on a deep learning model to determine a target audio parameter of a target application scenario of the terminal device; The audio playing module is used to play the audio data according to the target audio parameters when the terminal device is in the target application scenario.
9. An electronic device, characterized in that: include: processor; as well as A memory, configured to store executable instructions of the processor; The processor is configured to execute the audio parameter determination method according to any one of claims 1 to 7 by executing the executable instructions.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for determining audio parameters according to any one of claims 1 to 7 is implemented.
