Audio volume intelligent adjustment method, device, electronic device and storage medium

By collecting and analyzing the characteristics of audio files and environmental parameters, and adjusting the volume using a pre-trained model, the problem of manual operation of audio volume adjustment in the existing technology is solved, and intelligent automatic volume adjustment is achieved, improving the user experience.

CN114489561BActive Publication Date: 2025-04-08PINGAN INT SMART CITY TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210138188.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-15
Publication Date
2025-04-08
Estimated Expiration
2042-02-15

AI Technical Summary

Technical Problem

Existing audio players cannot intelligently automatically adjust the video volume, and users need to adjust it manually.

Method used

By collecting the current audio files of the target mobile device, the current audio environment parameters, and historical audio playback records, identify the ambient sound characteristics and audio playback characteristics, input them to the pre-trained audio volume decision model, and adjust the volume to the appropriate level.

Benefits of technology

It realizes intelligent automatic adjustment of audio volume, improves user experience, and ensures that the volume is always in the best state in different environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114489561B_ABST
    Figure CN114489561B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of artificial intelligence, and discloses an intelligent audio volume adjustment method, including: collecting the current audio file, current audio environment parameters and historical audio playback records of a target mobile device; identifying the environmental sound features of the current audio environment parameters, querying similar audio files of the current audio file from the historical audio playback records, and extracting audio playback features from similar audio files; inputting the environmental sound features and the audio playback features as the volume features of the current audio file into an audio volume decision model to detect the current suitable volume of the volume features through the audio volume decision model; adjusting the current playback volume of the current audio file to the current suitable volume, and obtaining the final playback volume of the current audio file. In addition, the present invention also relates to blockchain technology, and the volume features can be stored in a blockchain. The present invention can realize intelligent automatic audio volume adjustment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of artificial intelligence, and in particular to an audio volume intelligent adjustment method, device, electronic device and computer-readable storage medium. Background Art

[0002] With the continuous progress and development of society, audio exists and is used in our lives in large quantities, such as video watching and music playing. At present, the adjustment of video volume by audio players requires manual adjustment by users, and cannot be achieved by intelligent automatic adjustment. Therefore, how to intelligently and automatically adjust the audio volume is a problem that needs to be solved urgently. Summary of the invention

[0003] The present invention provides an audio volume intelligent adjustment method, device, electronic equipment and computer-readable storage medium, the main purpose of which is to realize intelligent audio volume automatic adjustment.

[0004] To achieve the above object, the present invention provides an audio volume intelligent adjustment method, comprising:

[0005] Collect the current audio file, current audio environment parameters and historical audio playback records of the target mobile device;

[0006] Identify the environmental sound features of the current audio environment parameters, query similar audio files of the current audio file from the historical audio playback records, and extract audio playback features from the similar audio files;

[0007] Inputting the environmental sound feature and the audio playback feature as the volume feature of the current audio file into a pre-trained audio volume decision model, so as to detect a current suitable volume of the volume feature through the pre-trained audio volume decision model;

[0008] The current playback volume of the current audio file is adjusted to the current appropriate volume to obtain a final playback volume of the current audio file.

[0009] Optionally, the identifying the environmental sound features of the current audio environment parameters includes:

[0010] Classifying the current audio environment parameters into sound categories to obtain multiple categories of sound;

[0011] The volume attribute of each category of sound is extracted, and the simulated volume of each category of sound is calculated according to the volume attribute, and the volume attribute and the simulated volume are used as the environmental sound feature.

[0012] Optionally, the step of searching the historical audio playback records for similar audio files to the current audio file includes:

[0013] The file type of the current audio file is obtained, audio files having the file type are searched from the historical audio playback records, and the searched audio files are used as similar audio files of the current audio file.

[0014] Optionally, extracting audio playback features from the similar audio files includes:

[0015] The playing time of the similar audio files is obtained, and the files whose playing time meets a preset condition are screened out from the similar audio files to obtain a target audio file, and the playing volume in the target audio file is used as the audio playing feature.

[0016] Optionally, detecting the current appropriate volume of the volume feature by using the pre-trained audio volume decision model includes:

[0017] Using the decision layer in the trained audio volume decision model to segment the volume feature, a plurality of segmentation nodes are obtained;

[0018] Calculating the gradient gain of the volume feature in each segmentation node using the histogram function in the trained audio volume decision model;

[0019] According to the gradient gain, finding the optimal splitting feature of each segmentation node;

[0020] According to the optimal split feature, the current appropriate volume of the volume feature is calculated using the activation function in the trained audio volume decision model.

[0021] Optionally, the step of performing feature segmentation on the volume feature using the decision layer in the trained audio volume decision model to obtain a plurality of segmentation nodes includes:

[0022] Arbitrarily select a sampling feature from the volume features;

[0023] Identifying the information dimension of the selected sampling feature;

[0024] According to the information dimension, the segmentation points of the selected sampling features are determined to obtain a plurality of segmentation nodes.

[0025] Optionally, before obtaining the mobile device authorized by the user to automatically adjust the volume, the method further includes:

[0026] Configuring an automatic volume adjustment event in a mobile device, and creating an automatic volume adjustment button in the mobile device according to the automatic volume adjustment event;

[0027] According to the automatic volume adjustment button, it is determined whether the user has authorized the automatic volume adjustment of the mobile device, and a mobile device on which the user has automatically adjusted the volume is selected.

[0028] In order to solve the above problem, the present invention also provides an audio volume intelligent adjustment device, the device comprising:

[0029] The audio data collection module is used to collect the current audio file, current audio environment parameters and historical audio playback records of the target mobile device;

[0030] An audio feature extraction module, used to identify the environmental sound features of the current audio environment parameters, query similar audio files of the current audio file from the historical audio playback records, and extract audio playback features from the similar audio files;

[0031] An appropriate volume detection module, used to input the environmental sound feature and the audio playback feature as the volume feature of the current audio file into a pre-trained audio volume decision model, so as to detect a current appropriate volume of the volume feature through the pre-trained audio volume decision model;

[0032] The volume adjustment module is used to adjust the current playback volume of the current audio file to the current appropriate volume to obtain the final playback volume of the current audio file.

[0033] In order to solve the above problem, the present invention further provides an electronic device, the electronic device comprising:

[0034] at least one processor; and,

[0035] a memory communicatively connected to the at least one processor; wherein,

[0036] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor to implement the above-mentioned audio volume intelligent adjustment method.

[0037] In order to solve the above problem, the present invention also provides a computer-readable storage medium, in which at least one computer program is stored. The at least one computer program is executed by a processor in an electronic device to implement the above-mentioned audio volume intelligent adjustment method.

[0038] It can be seen that the embodiment of the present invention collects the current audio file, current audio environment parameters and historical audio playback records of the target mobile device to ensure the premise of subsequent volume adjustment, and by identifying the environmental sound features of the current audio environment parameters, querying similar audio files of the current audio file from the historical audio playback records, and extracting audio playback features from the similar audio files, the basis for the subsequent appropriate volume decision of the current audio file can be obtained to ensure the accuracy of the decision on the optimal playback volume of the current audio file. Secondly, the embodiment of the present invention inputs the environmental sound features and the audio playback features as the volume features of the current audio file into the pre-trained audio volume decision model to detect the current appropriate volume of the volume features; further, the embodiment of the present invention adjusts the current playback volume of the current audio file to the current appropriate volume to achieve automatic volume adjustment of the current audio file and improve the user experience. Therefore, the audio volume intelligent adjustment method, device, electronic device and computer-readable storage medium proposed in the embodiment of the present invention can realize intelligent automatic volume adjustment. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 A schematic diagram of a flow chart of an audio volume intelligent adjustment method provided by an embodiment of the present invention;

[0040] Figure 2 A schematic diagram of a module of an audio volume intelligent adjustment device provided by an embodiment of the present invention;

[0041] Figure 3 A schematic diagram of the internal structure of an electronic device for implementing an audio volume intelligent adjustment method provided by an embodiment of the present invention;

[0042] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0043] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0044] The embodiment of the present invention provides an audio volume intelligent adjustment method. The execution subject of the audio volume intelligent adjustment method includes but is not limited to at least one of the electronic devices such as a server and a terminal that can be configured to execute the method provided by the embodiment of the present invention. In other words, the audio volume intelligent adjustment method can be executed by software or hardware installed on a terminal device or a server device, and the software can be a blockchain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, etc. The server can be an independent server, or it can be a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), and basic cloud computing services such as big data and artificial intelligence platforms.

[0045] Reference Figure 1 FIG. 2 is a flow chart of an audio volume intelligent adjustment method provided by an embodiment of the present invention. In the embodiment of the present invention, the audio volume intelligent adjustment method includes:

[0046] S1. Collect the current audio file, current audio environment parameters and historical audio playback records of the target mobile device.

[0047] In an embodiment of the present invention, the target mobile device refers to a mobile device whose volume is automatically adjusted through user authorization, the mobile device refers to a portable electronic device with an audio playback function and whose volume is automatically adjusted through user authorization, such as a common mobile phone, a tablet, etc., the automatic volume adjustment refers to the process in which the user allows the mobile device to automatically adjust the volume, through the automatic volume adjustment, the mobile device can adjust its audio volume to be within the user's optimal hearing range when playing an audio file, the current audio file refers to the audio data currently played in the mobile device, such as music, video, broadcast, etc., the current audio environment parameters refer to the external environment parameters of the mobile device, such as conference environment parameters, home environment parameters and factory environment parameters, etc., the historical audio playback record refers to the audio file record that the mobile device has played, which includes audio type, audio volume and audio duration, etc.

[0048] In one embodiment of the present invention, before collecting the current audio file, current audio environment parameters and historical audio playback records of the target mobile device, it also includes: configuring an automatic volume adjustment event in the mobile device, creating an automatic volume adjustment button in the mobile device according to the automatic volume adjustment event, judging whether the user has authorized the automatic volume adjustment of the mobile device according to the automatic volume adjustment button, and selecting the mobile device on which the user has automatically adjusted the volume as the target mobile device.

[0049] Among them, the automatic volume adjustment event refers to the event that the mobile device has the function of automatic volume adjustment, and the automatic volume adjustment button refers to the control button for the mobile device to perform human-computer interaction with the user. The automatic volume adjustment button can be used to determine whether the user authorizes the automatic volume adjustment of the mobile device, that is, a dialog box for the automatic volume adjustment button pops up to allow the user to determine whether to authorize. Furthermore, the embodiment of the present invention obtains the microphone usage permission of the mobile device after authorization, and at the same time determines whether the device supports the getUserMedia method in html5 to capture the subsequent input audio of the mobile device.

[0050] Based on the judgment of the user's authorization for automatic volume adjustment of the mobile device, different needs can be better met and the user experience can be improved. Optionally, the automatic volume adjustment event and the automatic volume adjustment button can be compiled using HTML5 language.

[0051] Furthermore, in an optional embodiment of the present invention, the current audio file and the current audio environment parameters are collected by calling the getUserMedia method in html5 to capture the audio input by an input device such as a microphone, and the historical audio playback record is obtained by querying the local cache, browser cache, and audio program cache of the mobile device.

[0052] S2. Identify the environmental sound features of the current audio environment parameters, query similar audio files of the current audio file from the historical audio playback records, and extract audio playback features from the similar audio files.

[0053] It should be understood that different current audio environment parameters may include many different audio sound parameters, such as the sound of people talking, the sound of TV playing, and the sound of fan blowing in a home audio environment, and the sound of operating equipment, chatting, and broadcasting in a factory audio environment. Therefore, the embodiment of the present invention identifies the environmental sound characteristics of the current audio environment parameters to screen out the volume attributes that can characterize the current audio environment parameters, so as to serve as the basis for the subsequent appropriate volume decision of the current audio file, and ensure the accuracy of the decision on the optimal playback volume. Among them, the environmental sound characteristics refer to the sound attributes used to characterize the current audio environment parameters, such as signal, amplitude, frequency and other sound attributes.

[0054] As an embodiment of the present invention, the environmental sound characteristics of the current audio environment parameters are identified, including: classifying the current audio environment parameters into sound categories to obtain multiple categories of sound, extracting the volume attributes of each category of sound, and calculating the simulated volume of each category of sound based on the volume attributes, and using the volume attributes and the simulated volume as the environmental sound characteristics.

[0055] Among them, the category sound refers to the audio sound type existing in the current audio environment parameters, the volume attribute refers to the volume parameter used to characterize each category sound, and the simulated volume refers to the simulated volume value of the sound emitted by the category sound, which is used to characterize the decibel of the category sound.

[0056] Furthermore, in an optional implementation of the present invention, the volume attribute is extracted by a volume collector, and the volume collector includes a sound wave collector, an audio collector, and a signal collector, etc. The simulation volume calculation of the category sound is implemented by a preset volume detection algorithm, and the preset volume detection algorithm includes a volume variance detection algorithm, a volume sound intensity detection algorithm, and a volume sound pressure detection algorithm, etc.

[0057] Furthermore, the embodiment of the present invention queries similar audio files of the current audio file from the historical audio playback records to obtain playback features of similar audio files of the current audio file, thereby serving as a basis for subsequent decisions on adjusting the volume of the current audio file, thereby further ensuring the accuracy of the decisions on adjusting the volume of the current audio file.

[0058] As an embodiment of the present invention, the querying of similar audio files of the current audio file from the historical audio playback records includes: obtaining the file type of the current audio file, querying audio files having the file type from the historical audio playback records, and using the queried audio files as similar audio files of the current audio file.

[0059] The file type refers to the audio type of the current audio file, such as a music type file or a video type file. The query of the audio file can be implemented through a query statement, such as an SQL statement.

[0060] Furthermore, as an embodiment of the present invention, extracting audio playback features from the similar audio files includes: obtaining the playback time of the similar audio files, filtering out files whose playback time meets preset conditions from the similar audio files, obtaining a target audio file, and using the playback volume in the target audio file as the audio playback feature.

[0061] Among them, the playback time refers to the playback time period of the similar audio file on the mobile device. The present invention further filters out audio files that meet the current user needs by screening out the files whose playback time meets the preset conditions as target files, thereby ensuring the accuracy of the extracted audio playback features. Among them, the preset conditions can be set according to time, such as screening out similar audio files with a playback time within nearly three months, and can also be set according to actual business scenarios.

[0062] S3. Input the environmental sound feature and the audio playback feature as the volume feature of the current audio file into a pre-trained audio volume decision model, so as to detect a current suitable volume of the volume feature through the pre-trained audio volume decision model.

[0063] In an embodiment of the present invention, the audio volume decision model includes a machine learning model, which is used to detect the current appropriate volume of the volume feature to ensure the premise of intelligent adjustment of the volume of the current audio file. Optionally, the audio volume decision model can be constructed by algorithms such as Lightgbm and Xgboost.

[0064] As an embodiment of the present invention, the detecting the current suitable volume of the volume feature by the pre-trained audio volume decision model comprises: segmenting the volume feature by using the decision layer in the trained audio volume decision model to obtain a plurality of segmentation nodes; calculating the gradient gain of the volume feature in each of the segmentation nodes by using the histogram function in the trained audio volume decision model; searching for the optimal splitting feature of each of the segmentation nodes according to the gradient gain; and calculating the current suitable volume of the volume feature by using the activation function in the trained audio volume decision model according to the optimal splitting feature.

[0065] In an optional embodiment of the present invention, the decision layer in the trained audio volume decision model is used to perform feature segmentation on the volume feature to obtain multiple segmentation nodes, including: arbitrarily selecting a sampling feature from the volume feature, identifying the information dimension of the selected sampling feature, and determining the segmentation point of the selected sampling feature according to the information dimension to obtain multiple segmentation nodes. For example, if the selected sampling feature is the playback volume in the volume feature, the information dimension of the sampling feature includes: volume value, fluctuation amplitude, sound signal, etc., then the segmentation point of the sampling feature can be determined as: whether the sound signal is continuous, whether the volume value exceeds the threshold, and whether the fluctuation amplitude is jittering, etc.

[0066] Furthermore, in an optional embodiment of the present invention, the histogram function includes:

[0067]

[0068] Among them, C i represents the gradient gain of the volume feature, E i represents the i-th volume feature in the split node, represents the vector covariance of the i-th volume feature in the segmentation node, and trace() represents the spatial filtering function.

[0069] Furthermore, in an optional embodiment of the present invention, the activation function includes:

[0070]

[0071] Among them, f(x,φ) represents the current appropriate volume, x represents the optimal split feature, φ represents the number of feature segmentation nodes, h(x) represents the height function of the optimal split feature x, E(h(x)) represents the mean function of the optimal split feature, and c(φ) represents the normalization function of the optimal split feature.

[0072] It should be noted that, in the embodiment of the present invention, the current suitable volume is not less than the minimum playback volume of the mobile device, and not greater than the maximum playback volume of the mobile device, that is, the value range of the current suitable volume is: 0-100.

[0073] Based on the environmental sound features and the audio playback features, the comprehensiveness of the audio features of the current audio file can be guaranteed, thereby ensuring the accuracy of the current appropriate volume detected by the subsequent audio volume decision.

[0074] Furthermore, in order to ensure the reusability and high availability of the volume feature, the volume feature can also be stored in a blockchain node.

[0075] S4. Adjust the current playback volume of the current audio file to the current appropriate volume to obtain a final playback volume of the current audio file.

[0076] It should be understood that the current suitable volume is used to characterize the optimal volume suitable for the current audio file in the current audio environment parameters. Therefore, the embodiment of the present invention adjusts the current playback volume of the current audio file to the current suitable volume to achieve automatic adjustment of the volume of the current audio file and improve the user experience.

[0077] As an embodiment of the present invention, adjusting the current playback volume of the current audio file to the current appropriate volume to obtain the final playback volume of the current audio file includes: triggering a volume adjustment event of the current audio file according to the current playback volume and the current appropriate volume, and performing volume adjustment of the current audio file using a pre-compiled volume adjustment object according to the volume adjustment event to obtain the final playback volume of the current audio file.

[0078] The volume adjustment object refers to a functional object for managing audio volume adjustment in the mobile device, which can also be compiled in HTML5 language.

[0079] It can be seen that the embodiment of the present invention collects the current audio file, current audio environment parameters and historical audio playback records of the target mobile device to ensure the premise of subsequent volume adjustment, and by identifying the environmental sound features of the current audio environment parameters, querying similar audio files of the current audio file from the historical audio playback records, and extracting audio playback features from the similar audio files, the basis for the subsequent appropriate volume decision of the current audio file can be obtained to ensure the accuracy of the decision on the optimal playback volume of the current audio file. Secondly, the embodiment of the present invention inputs the environmental sound features and the audio playback features as the volume features of the current audio file into the pre-trained audio volume decision model to detect the current appropriate volume of the volume features; further, the embodiment of the present invention adjusts the current playback volume of the current audio file to the current appropriate volume to achieve automatic volume adjustment of the current audio file and improve the user experience. Therefore, the audio volume intelligent adjustment method proposed in the embodiment of the present invention can achieve intelligent automatic volume adjustment.

[0080] like Figure 2 , which is a functional module diagram of the audio volume intelligent adjustment device of the present invention.

[0081] The audio volume intelligent adjustment device 100 of the present invention can be installed in an electronic device. According to the functions to be implemented, the audio volume intelligent adjustment device may include an audio data acquisition module 101, an audio feature extraction module 102, an appropriate volume detection module 103 and a volume adjustment module 104. The module of the present invention can also be referred to as a unit, which refers to a series of computer program segments that can be executed by a processor of an electronic device and can complete fixed functions, which are stored in the memory of the electronic device.

[0082] In this embodiment, the functions of each module / unit are as follows:

[0083] The audio data collection module 101 is used to collect the current audio file, current audio environment parameters and historical audio playback records of the target mobile device;

[0084] The audio feature extraction module 102 is used to identify the environmental sound features of the current audio environment parameters, query similar audio files of the current audio file from the historical audio playback records, and extract audio playback features from the similar audio files;

[0085] The appropriate volume detection module 103 is used to input the environmental sound feature and the audio playback feature as the volume feature of the current audio file into a pre-trained audio volume decision model, so as to detect the current appropriate volume of the volume feature through the pre-trained audio volume decision model;

[0086] The volume adjustment module 104 is used to adjust the current playback volume of the current audio file to the current appropriate volume to obtain the final playback volume of the current audio file.

[0087] In detail, each module in the audio volume intelligent adjustment device 100 in the embodiment of the present invention adopts the same method as above when in use. Figure 1 The same technical means as the audio volume intelligent adjustment method described in and can produce the same technical effects, will not be repeated here.

[0088] like Figure 3 FIG. 1 is a schematic diagram of the structure of an electronic device 1 for implementing the audio volume intelligent adjustment method of the present invention.

[0089] The electronic device 1 may include a processor 10, a memory 11, a communication bus 12, and a communication interface 13, and may also include a computer program stored in the memory 11 and executable on the processor 10, such as an audio volume intelligent adjustment program.

[0090] The processor 10 may be composed of an integrated circuit in some embodiments, for example, a single packaged integrated circuit, or a plurality of packaged integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and combinations of various control chips. The processor 10 is the control core (ControlUnit) of the electronic device 1, and uses various interfaces and lines to connect various components of the entire electronic device 1, and executes or executes programs or modules stored in the memory 11 (for example, executing an audio volume intelligent adjustment program, etc.), and calls data stored in the memory 11 to execute various functions of the electronic device 1 and process data.

[0091] The memory 11 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, mobile hard disk, multimedia card, card-type memory (for example: SD or DX memory, etc.), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 11 can be an internal storage unit of the electronic device 1, such as a mobile hard disk of the electronic device 1. In other embodiments, the memory 11 can also be an external storage device of the electronic device 1, such as a plug-in mobile hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device 1. Further, the memory 11 can also include both an internal storage unit of the electronic device 1 and an external storage device. The memory 11 can not only be used to store application software and various types of data installed in the electronic device 1, such as the code of the audio volume intelligent adjustment program, but also can be used to temporarily store data that has been output or is to be output.

[0092] The communication bus 12 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is configured to realize connection and communication between the memory 11 and at least one processor 10, etc.

[0093] The communication interface 13 is used for communication between the above-mentioned electronic device 1 and other devices, including a network interface and an employee interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is generally used to establish a communication connection between the electronic device 1 and other electronic devices 1. The employee interface may be a display (Display), an input unit (such as a keyboard (Keyboard)), and optionally, the employee interface may also be a standard wired interface, a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode) touch device, etc. Among them, the display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the electronic device 1 and to display a visual employee interface.

[0094] Figure 3 Only the electronic device 1 having components is shown, and those skilled in the art can understand that Figure 3 The structure shown does not constitute a limitation on the electronic device 1, and may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.

[0095] For example, although not shown, the electronic device 1 may also include a power source (such as a battery) for supplying power to each component. Preferably, the power source may be logically connected to the at least one processor 10 through a power management device, so that the power management device can realize functions such as charging management, discharging management, and power consumption management. The power source may also include any components such as one or more DC or AC power sources, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, etc. The electronic device 1 may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.

[0096] It should be understood that the embodiment is for illustrative purposes only and the scope of the patent invention is not limited to this structure.

[0097] The audio volume intelligent adjustment program stored in the memory 11 of the electronic device 1 is a combination of multiple computer programs. When running in the processor 10, it can achieve:

[0098] Collect the current audio file, current audio environment parameters and historical audio playback records of the target mobile device;

[0099] Identify the environmental sound features of the current audio environment parameters, query similar audio files of the current audio file from the historical audio playback records, and extract audio playback features from the similar audio files;

[0100] Inputting the environmental sound feature and the audio playback feature as the volume feature of the current audio file into a pre-trained audio volume decision model, so as to detect a current suitable volume of the volume feature through the pre-trained audio volume decision model;

[0101] The current playback volume of the current audio file is adjusted to the current appropriate volume to obtain a final playback volume of the current audio file.

[0102] Specifically, the specific implementation method of the processor 10 for the above computer program can refer to Figure 1 The description of the relevant steps in the corresponding embodiments will not be repeated here.

[0103] Furthermore, if the module / unit integrated in the electronic device 1 is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a non-volatile computer-readable storage medium. The computer-readable storage medium can be volatile or non-volatile. For example, the computer-readable medium can include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, and a read-only memory (ROM).

[0104] The present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor of the electronic device 1, the computer program can implement:

[0105] Collect the current audio file, current audio environment parameters and historical audio playback records of the target mobile device;

[0106] Identify the environmental sound features of the current audio environment parameters, query similar audio files of the current audio file from the historical audio playback records, and extract audio playback features from the similar audio files;

[0107] Inputting the environmental sound feature and the audio playback feature as the volume feature of the current audio file into a pre-trained audio volume decision model, so as to detect a current suitable volume of the volume feature through the pre-trained audio volume decision model;

[0108] The current playback volume of the current audio file is adjusted to the current appropriate volume to obtain a final playback volume of the current audio file.

[0109] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, apparatuses and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.

[0110] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0111] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional modules.

[0112] It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.

[0113] Therefore, no matter from which point of view, the embodiments should be regarded as illustrative and non-restrictive, and the scope of the present invention is limited by the appended claims rather than the above description, so it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention. Any attached figure mark in the claims should not be regarded as limiting the claims involved.

[0114] The blockchain referred to in this invention is a new application mode of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer, and application service layer.

[0115] The embodiments of the present invention can acquire and process relevant data based on artificial intelligence technology. Artificial Intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.

[0116] In addition, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the system claim can also be implemented by one unit or device through software or hardware. The second and other words are used to indicate names, but not to indicate any particular order.

[0117] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.

Claims

1. An audio volume intelligent adjustment method, characterized in that: The method comprises: Collect the current audio file, current audio environment parameters and historical audio playback records of the target mobile device; Identify the environmental sound features of the current audio environment parameters, query similar audio files of the current audio file from the historical audio playback records according to the file type of the current audio file, select target audio files whose playback time meets preset conditions from the similar audio files, and use the playback volume of the target audio file as the audio playback feature; The environmental sound feature and the audio playback feature are input as the volume feature of the current audio file into a pre-trained audio volume decision model to obtain multiple segmentation nodes of the volume feature, and the optimal splitting feature of each segmentation node is found according to the gradient gain of the volume feature in each segmentation node, and the current suitable volume of the volume feature is calculated according to the optimal splitting feature; the current playback volume of the current audio file is adjusted to the current suitable volume to obtain the final playback volume of the current audio file.

2. The audio volume intelligent adjustment method according to claim 1, characterized in that: The identifying of the environmental sound characteristics of the current audio environment parameters includes: Classifying the current audio environment parameters into sound categories to obtain multiple categories of sound; The volume attribute of each category of sound is extracted, and the simulated volume of each category of sound is calculated according to the volume attribute, and the volume attribute and the simulated volume are used as the environmental sound feature.

3. The audio volume intelligent adjustment method according to claim 1, characterized in that: The step of searching the historical audio playback records for similar audio files to the current audio file according to the file type of the current audio file includes: The file type of the current audio file is obtained, audio files having the file type are searched from the historical audio playback records, and the searched audio files are used as similar audio files of the current audio file.

4. The audio volume intelligent adjustment method according to claim 1, characterized in that: The step of selecting a target audio file whose playing time meets a preset condition from the similar audio files comprises: The playing time of the similar audio files is obtained, and the files whose playing time meets a preset condition are screened out from the similar audio files to obtain a target audio file.

5. The audio volume intelligent adjustment method according to any one of claims 1 to 4, characterized in that: The step of obtaining a plurality of segmentation nodes of the volume feature and searching for an optimal splitting feature of each segmentation node according to a gradient gain of the volume feature in each segmentation node comprises: Using the decision layer in the pre-trained audio volume decision model to segment the volume feature, obtaining a plurality of segmentation nodes; Calculating the gradient gain of the volume feature in each segmentation node using the histogram function in the pre-trained audio volume decision model; According to the gradient gain, the optimal splitting feature of each segmentation node is found.

6. The audio volume intelligent adjustment method according to claim 5, characterized in that: The step of performing feature segmentation on the volume feature by using the decision layer in the pre-trained audio volume decision model to obtain a plurality of segmentation nodes includes: Arbitrarily select a sampling feature from the volume features; Identifying the information dimension of the selected sampling feature; According to the information dimension, the segmentation points of the selected sampling features are determined to obtain a plurality of segmentation nodes.

7. The audio volume intelligent adjustment method according to claim 1, characterized in that: The method further comprises: Configuring an automatic volume adjustment event in a mobile device, and creating an automatic volume adjustment button in the mobile device according to the automatic volume adjustment event; According to the automatic volume adjustment button, it is determined whether the user has authorized the automatic volume adjustment of the mobile device, and a mobile device on which the user has automatically adjusted the volume is selected.

8. An audio volume intelligent adjustment device, characterized in that: The device comprises: The audio data collection module is used to collect the current audio file, current audio environment parameters and historical audio playback records of the target mobile device; an audio feature extraction module, for identifying the environmental sound features of the current audio environment parameters, searching similar audio files of the current audio file from the historical audio playback records according to the file type of the current audio file, screening target audio files whose playback time meets preset conditions from the similar audio files, and using the playback volume of the target audio file as the audio playback feature; An appropriate volume detection module is used to input the environmental sound feature and the audio playback feature as the volume feature of the current audio file into a pre-trained audio volume decision model to obtain multiple segmentation nodes of the volume feature, find the optimal splitting feature of each segmentation node according to the gradient gain of the volume feature in each segmentation node, and calculate the current appropriate volume of the volume feature according to the optimal splitting feature; The volume adjustment module is used to adjust the current playback volume of the current audio file to the current appropriate volume to obtain the final playback volume of the current audio file.

9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the audio volume intelligent adjustment method as described in any one of claims 1 to 7.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the audio volume intelligent adjustment method as described in any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Method and device for regulating sound volume output value of audio data, and terminal

    CN105632523A

  • Voice adjustment method and device, terminal and storage medium

    CN107734126A

  • A volume adjustment system for computer

    CN111198669A