Volume optimization method and device, electronic equipment and readable storage medium
By acquiring the standard volume curves of playback devices for different age groups at a standard listening distance, and dynamically adjusting the volume curves based on the current user's age and the content being played, the problem of poor audio playback quality in volume adjustment methods is solved, resulting in a better audio experience.
Patent Information
- Application Number
- CN202210468533.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-29
- Publication Date
- 2025-11-28
- Estimated Expiration
- 2042-04-29
AI Technical Summary
Existing volume adjustment methods fail to adapt to changes in user age and usage scenarios, resulting in poor audio playback quality.
By acquiring the standard volume curves of playback devices for each user's age group at a standard listening distance, the volume curves are dynamically adjusted based on the current user's age and the content being played to match the current user and the scenario.
It achieves dynamic volume adjustment based on user age and usage scenario, avoiding issues of excessively loud or soft volume and improving audio playback quality.
Smart Images

Figure CN114845212B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of sound processing, and particularly relates to a volume optimization method and device, electronic equipment and a readable storage medium. BACKGROUND
[0002] With the rapid development of science and technology, the volume adjustment technology is also developing more and more mature. At present, the volume adjustment adjusts the volume curve for fixed users and fixed use scenarios to adjust the volume of a playing device. When the use scenario or the age of the current user changes, the volume of the playing device is prone to be too large or too small, thereby causing poor audio playing effect. SUMMARY
[0003] The main purpose of the present application is to provide a volume optimization method, device, electronic equipment and readable storage medium, which aims to solve the technical problem of poor audio playing effect in the prior art.
[0004] To achieve the above purpose, the present application provides a volume optimization method applied to a volume optimization device, and the volume optimization method comprises the following steps:
[0005] obtaining a standard volume curve corresponding to each user age range of a playing device at a standard listening distance;
[0006] determining a current volume curve corresponding to a current user from the standard volume curves according to the age of the current user;
[0007] correcting the current volume curve according to the playing content of the playing device to adjust the volume of the playing device.
[0008] Optionally, the step of obtaining the standard volume curve of the playing device at each user age comprises:
[0009] obtaining each user age range;
[0010] drawing a correlation curve between playing volume and sound intensity according to the decibel values corresponding to different volumes of the playing device at the standard listening distance and each user age range to obtain the standard volume curve corresponding to each user age range.
[0011] Optionally, the step of determining the current volume curve corresponding to the current user from the standard volume curves according to the age of the current user comprises:
[0012] obtaining the age and current listening distance of the current user;
[0013] selecting a target standard volume curve corresponding to the age of the current user from the standard volume curves according to the age of the current user;
[0014] adjust the target standard volume curve to obtain a current volume curve according to the distance deviation between the current listening distance and the standard listening distance.
[0015] Optionally, the obtaining of the age of the current user comprises:
[0016] obtaining a region image of a region in front of the playback device;
[0017] extracting a target image carrying face information from the region image;
[0018] performing age prediction on the current user according to an age prediction model and the target image to obtain the age of the current user.
[0019] Optionally, the playback content comprises music content and video content, and the modifying of the current volume curve according to the playback content of the playback device comprises:
[0020] when the playback content is music content, performing sound effect classification modification on the current volume curve;
[0021] when the playback content is video content, performing content classification modification on the current volume curve.
[0022] Optionally, the music content comprises relaxing music, rock music and other music, and the step of performing overall modification on the current volume curve when the playback content is music content comprises:
[0023] when the music content is relaxing music, reducing high sound effect gain in the current volume curve;
[0024] when the music content is rock music, increasing low sound effect gain in the current volume curve;
[0025] when the music content is other music, keeping the current volume curve unchanged.
[0026] Optionally, the step of performing content classification modification on the current volume curve when the playback content is video content comprises:
[0027] obtaining vocals and background sound in the video content;
[0028] adjusting vocals gain in the current volume curve and background sound gain in the current volume curve according to a contrast ratio between the vocals and the background sound.
[0029] To achieve the above object, the present application further provides a volume optimization device, which is applied to a volume optimization equipment, and comprises:
[0030] an acquisition module configured to acquire a standard volume curve corresponding to each user age group at a standard listening distance;
[0031] a determination module configured to determine, according to an age of a current user, a current volume curve corresponding to the current user from the standard volume curves;
[0032] a correction module configured to correct the current volume curve according to a playing content of the playing device, so as to adjust a volume of the playing device.
[0033] Optionally, in the step of acquiring the standard volume curve of the playing device at each user age, the acquisition module is further configured to:
[0034] acquire each user age group;
[0035] draw a correlation curve between playing volume and sound intensity according to a decibel value corresponding to different volumes of the playing device at the standard listening distance and each user age group, so as to obtain the standard volume curve corresponding to each user age group.
[0036] Optionally, in the step of determining, according to the age of the current user, the current volume curve corresponding to the current user from the standard volume curves, the determination module is further configured to:
[0037] acquire an age of the current user and a current listening distance;
[0038] select, according to the age of the current user, a target standard volume curve corresponding to the age of the current user from the standard volume curves;
[0039] adjust the target standard volume curve according to a distance deviation between the current listening distance and the standard listening distance, so as to obtain the current volume curve.
[0040] Optionally, in the step of acquiring the age of the current user, the determination module is further configured to:
[0041] acquire a region image of a region in front of the playing device;
[0042] extract a target image carrying face information from the region image;
[0043] perform age prediction on the current user according to an age prediction model and the target image, so as to obtain the age of the current user.
[0044] Optionally, the playing content includes music content and video content, and in the step of correcting the current volume curve according to the playing content of the playing device, the correction module is further configured to:
[0045] when the playing content is music content, performing sound effect classification correction on the current volume curve;
[0046] when the playing content is video content, performing content classification correction on the current volume curve.
[0047] Optionally, the music content includes relaxing music, rock music and other music, and in the step of performing overall correction on the current volume curve when the playing content is music content, the correction module is further configured to:
[0048] when the music content is relaxing music, reducing high sound effect gain in the current volume curve;
[0049] when the music content is rock music, increasing low sound effect gain in the current volume curve;
[0050] when the music content is other music, keeping the current volume curve unchanged.
[0051] Optionally, in the step of performing content classification correction on the current volume curve when the playing content is video content, the correction module is further configured to:
[0052] obtaining human voice and background sound in the video content;
[0053] adjusting human voice gain in the current volume curve and background sound gain in the current volume curve according to contrast between the human voice and the background sound.
[0054] The application further provides an electronic device, which comprises a memory, a processor and a program of the volume optimization method stored in the memory and executable on the processor, and the program of the volume optimization method can realize the steps of the volume optimization method when executed by the processor.
[0055] The application further provides a computer readable storage medium, which stores a program of a volume optimization method, and the program of the volume optimization method can realize the steps of the volume optimization method when executed by a processor.
[0056] The application further provides a computer program product, which comprises a computer program, and the computer program can realize the steps of the volume optimization method when executed by a processor.
[0057] The application provides a volume optimization method and device, electronic equipment and a readable storage medium. Compared with the method for adjusting a volume curve for fixed users and fixed use scenarios in the prior art, the application acquires a standard volume curve corresponding to each user age range of a playback device at a standard listening distance; determines a current volume curve corresponding to a current user from the standard volume curves according to the age of the current user; and corrects the current volume curve according to the playback content of the playback device to adjust the volume of the playback device, so that the corresponding volume is adapted through the age of the current user and the use scenario, the playback device is always configured with a suitable volume, and the technical defect that the volume of the playback device is too large or too small when the use scenario or the age of the current user changes when the volume curve is adjusted for fixed users and use scenarios is avoided, thereby improving the audio playback effect. BRIEF DESCRIPTION OF DRAWINGS
[0058] The accompanying drawings, which are incorporated herein and constitute part of the specification, illustrate embodiments consistent with the application and, together with the description, serve to explain the principles of the application.
[0059] In order to more clearly illustrate the technical solutions in the embodiments of the application or the prior art, the accompanying drawings needed to be used in the embodiments or prior art description will be briefly introduced. Obviously, for those of ordinary skill in the art, other drawings can also be obtained based on these drawings without creative labor.
[0060] Figure 1 A flowchart of a volume optimization method according to a first embodiment of the application;
[0061] Figure 2 A device structure diagram related to the volume optimization method according to an embodiment of the application;
[0062] Figure 3 A device structure diagram of a hardware running environment related to the volume optimization method according to an embodiment of the application.
[0063] The purposes, functional features and advantages of the application will be further described with reference to the embodiments and the accompanying drawings. DETAILED DESCRIPTION
[0064] In order to make the above-mentioned purposes, features and advantages of the application more apparent and understandable, the technical solutions in the embodiments of the application will be clearly and completely described below with reference to the drawings in the embodiments of the application. Obviously, the described embodiments are only some of the embodiments of the application, not all the embodiments. Based on the embodiments in the application, all other embodiments obtained by those of ordinary skill in the art without creative labor are within the scope of protection of the application.
[0065] Embodiment one
[0066] The embodiment of the present application provides a volume optimization method. In a first embodiment of the volume optimization method, with reference to Figure 1 , the volume optimization method comprises the following steps.
[0067] In step S10, a standard volume curve corresponding to each user age range of a playing device at a standard listening distance is acquired.
[0068] In the embodiment, it should be noted that the user age range is a possible age range of a user, and the user age range can be an age range of every 5 years from 0 to 100 years old, or an age range of every 10 years from 0 to 100 years old.
[0069] For example, step S10 comprises the following steps: acquiring the standard listening distance according to the playing device; and acquiring a correlation curve between a playing volume and a sound intensity of the playing device corresponding to each user age range at the standard listening distance.
[0070] As an example, when the playing device has a display screen, the step of acquiring the standard listening distance comprises the following steps: acquiring the size of the display screen; and determining the standard listening distance of the playing device corresponding to a preset user viewing experience according to a mapping relationship between the size of the display screen and the standard listening distance. For example, when the size of the display screen is 55 inches, 3 m is selected as the standard listening distance; and when the size of the display screen is 65 inches, 3.5 m is selected as the standard listening distance. The preset user viewing experience is a pre-set experience effect of a user viewing the display device, and the preset user viewing experience can be obtained by scoring the user viewing experience at different listening distances, and the listening distance with the best score is taken as the standard listening distance.
[0071] As an example, when the playing device does not have a display screen, the step of acquiring the standard listening distance comprises the following steps: when the playing device does not have a display screen, the standard listening distance of the playing device is determined according to the sound effect of a loudspeaker of the playing device under the preset user listening experience.
[0072] In step S10, the step of acquiring the standard volume curve of the playing device at each user age comprises the following steps.
[0073] In step S11, each user age range is acquired.
[0074] Step S12, according to the playing device in the standard listening distance and each user age group, the corresponding decibel value of the different volume, draw the relationship between the playing volume and the sound intensity curve, get each user age group corresponding standard volume curve.
[0075] Exemplarily, steps S11 to S12 include: obtaining each user age group; playing an audio test signal through a playing device, determining different volumes of playing the audio test signal, measuring the corresponding decibel value of each volume through a sound pressure meter at the standard listening distance and each user age group, drawing the relationship between the playing volume and the sound intensity curve, and obtaining the standard volume curve corresponding to each user age group, wherein the audio test signal can be pink noise, which is a signal with a power spectral density inversely proportional to the frequency band; it can also be white noise, which is a random signal with a constant power wavelength spectral density.
[0076] Further, the step of obtaining the standard volume curve corresponding to each user age group includes:
[0077] determining whether the user age group meets a preset first age group, if the user age group meets the preset first age group, reducing the gain of the reference volume curve to obtain the standard volume curve corresponding to the user age group; determining whether the user age group meets a preset second age group, if the user age group meets the preset second age group, keeping the gain of the reference volume curve to obtain the standard volume curve; determining whether the user age group meets a preset third age group, if the user age group meets the preset third age group, increasing the gain of the reference volume curve to obtain the standard volume curve.
[0078] Step S20, according to the current user's age, determining the current volume curve corresponding to the current user in each standard volume curve;
[0079] Exemplarily, step S20 includes: obtaining the current user's age, according to the current user's age, obtaining the current user age group corresponding to the current user's age, and according to each standard volume curve, determining the current volume curve corresponding to the current user age group.
[0080] In step S20, the step of determining the current volume curve corresponding to the current user in each standard volume curve according to the current user's age includes:
[0081] Step S21, obtaining the current user's age and the current listening distance;
[0082] Step S22, according to the current user's age, selecting the target standard volume curve corresponding to the current user's age in each standard volume curve.
[0083] Step S23, adjusting the target standard volume curve according to the distance deviation between the current listening distance and the standard listening distance to obtain a current volume curve.
[0084] For example, steps S21 to S23 include: obtaining the age of the current user and the current listening distance; obtaining a target age segment corresponding to the age of the current user in each user age segment, and selecting a target standard volume curve corresponding to the target age segment in each standard volume curve; obtaining a distance deviation between the current listening distance and the standard listening distance, and adjusting the target standard volume curve according to the distance deviation to obtain a current volume curve, for example, when the distance deviation is greater than 0, i.e., the current listening distance is greater than the standard listening distance, the target standard volume curve is translated upward; when the distance deviation is less than 0, i.e., the current listening distance is less than the standard listening distance, the target standard volume curve is translated downward.
[0085] In step S21, the age of the current user is obtained, including:
[0086] Step A10, obtaining a region image of a region in front of the playback device;
[0087] Step A20, extracting a target image carrying face information from the region image;
[0088] Step A30, performing age prediction on the current user according to an age prediction model and the target image to obtain the age of the current user.
[0089] For example, steps A10 to A30 include: obtaining a region image of a region in front of the playback device; performing background and foreground separation processing on the region image to obtain background data and foreground data, determining whether there is face information in the foreground data, if there is face information in the foreground data, taking the foreground data as a target image; if there is no face information in the foreground data, returning to execute the step of obtaining a region image of a region in front of the playback device; inputting the target image into an age prediction model, extracting face features of the face information through the age prediction model, and outputting age data as the age of the current user according to the face features, wherein the background and foreground separation method can be an optical flow algorithm, a low-rank decomposition, or a mixture Gaussian modeling, the face features are used to represent age-related feature information, and the feature information can be the number of wrinkles on the face or the turbidity of the iris of the eye.
[0090] As an example, when the playing device does not have a camera, the step of acquiring the age of the current user can also be: acquiring the age of the current user set by the user.
[0091] Step S30, according to the playing content of the playing device, the current volume curve is corrected to adjust the volume of the playing device.
[0092] Exemplarily, step S30 includes: acquiring the playing content corresponding to the playing device, and correcting the current volume curve according to the playing content to adjust the volume of the playing device.
[0093] The embodiments of the present application provide a volume optimization method. Compared with the method of adjusting the volume curve for fixed users and fixed use scenarios in the prior art, the embodiments of the present application acquire the standard volume curve corresponding to each user age range of the playing device at a standard listening distance; determine the current volume curve corresponding to the current user from the standard volume curves according to the age of the current user; and correct the current volume curve according to the playing content of the playing device to adjust the volume of the playing device, thereby realizing the adaptation of the corresponding volume through the age of the current user and the use scenario, making it possible to configure appropriate volume for the playing device, and avoiding the technical defects that the volume of the playing device is too large or too small when the use scenario or the age of the current user changes when the volume curve is adjusted for fixed users and use scenarios, thereby improving the audio playing effect.
[0094] Embodiment two
[0095] Further, based on the first embodiment of the present application, in another embodiment of the present application, the same or similar contents as the above-mentioned embodiment one can refer to the above introduction, and the following will not be described in detail. On this basis, in step S30, the playing content includes music content and video content, and the step of correcting the current volume curve according to the playing content of the playing device and the age of the current user to adjust the volume of the playing device includes:
[0096] Step S31, when the playing content is music content, the current volume curve is corrected by sound effect classification;
[0097] Step S32, when the playing content is video content, the current volume curve is corrected by content classification.
[0098] Exemplarily, the step S31 to the step S32 include: acquiring a playing content label sent by the playing device, and when the playing content label is a music content label, performing sound effect classification correction on the current volume curve; and when the playing content label is a video content label, performing content classification correction on the current volume curve.
[0099] In the step S31, the music content includes relaxing music, rock music and other music, and the step of performing overall correction on the current volume curve when the playing content is the music content includes:
[0100] In the step B10, when the music content is the relaxing music, the high sound effect gain in the current volume curve is reduced.
[0101] In the step B20, when the music content is the rock music, the low sound effect gain in the current volume curve is increased.
[0102] In the step B30, when the music content is the other music, the current volume curve is kept unchanged.
[0103] Exemplarily, the step B10 to the step B30 include: according to the use of the music, the music content is divided into the relaxing music, the rock music and the other music, when the music content is the relaxing music, the high sound effect gain in the current volume curve is reduced to enhance the effect of relaxing the user's mood, when the music content is the rock music, the low sound effect gain in the current volume curve is increased to enhance the shocking effect of the rock music, and when the music content is the other music, the current volume curve is kept unchanged.
[0104] In the step S32, the step of performing content classification correction on the current volume curve when the playing content is the video content includes:
[0105] In the step C10, the human voice and the background sound in the video content are acquired.
[0106] In the step C20, according to the contrast between the human voice and the background sound, the human voice gain in the current volume curve and the background sound gain in the current volume curve are adjusted.
[0107] In the embodiment, it is to be noted that the contrast is the volume difference between the human voice and the background sound.
[0108] Exemplarily, the steps C10 to C20 comprise: acquiring a volume of human voice and a volume of background sound in the video content; obtaining a contrast between the human voice and the background sound by subtracting the volume of human voice from the volume of background sound, if the contrast meets a preset first contrast range, increasing a human voice gain in the current volume curve and reducing a background sound gain in the current volume curve; if the contrast meets a preset second contrast range, keeping the current volume curve unchanged; and if the contrast meets a preset third contrast range, reducing the human voice gain in the current volume curve and increasing the background sound gain in the current volume curve.
[0109] As an example, when the playing content is video content, the step of performing content classification correction on the current volume curve further comprises: acquiring a volume fluctuation degree in the playing content, judging whether the volume fluctuation degree exceeds a preset volume fluctuation threshold, if the volume fluctuation degree exceeds the preset volume fluctuation threshold, adjusting front and rear volumes corresponding to the volume fluctuation to avoid that a too large volume fluctuation affects a listening experience of a user; and if the volume fluctuation degree does not exceed the preset volume fluctuation threshold, keeping the current volume curve unchanged.
[0110] The embodiment of the present application provides a volume optimization method. Compared with the method for adjusting a volume curve for fixed users and fixed use scenarios in the prior art, the embodiment of the present application acquires standard volume curves corresponding to each user age range of a playing device at a standard listening distance; determines a current volume curve corresponding to a current user from the standard volume curves according to an age of the current user; and corrects the current volume curve according to playing content of the playing device to adjust a volume of the playing device, so that a corresponding volume is adapted through the age of the current user and a use scenario, a suitable volume is always configured for the playing device, and the technical defect that the volume of the playing device is too large or too small when the use scenario or the age of the current user changes is avoided when the volume curve is adjusted for fixed users and fixed use scenarios, thereby improving an audio playing effect.
[0111] Embodiment three
[0112] The embodiment of the present application further provides a volume optimization device, which refers to Figure 2 , and the volume optimization device comprises:
[0113] An acquisition module is configured to acquire standard volume curves corresponding to each user age range of a playing device at a standard listening distance.
[0114] A determination module is configured to determine a current volume curve corresponding to a current user from the standard volume curves according to an age of the current user.
[0115] a correction module configured to correct the current volume curve according to a playing content of the playing device, so as to adjust the volume of the playing device.
[0116] Optionally, in the step of obtaining the standard volume curve of the playing device at each user age, the obtaining module is further configured to:
[0117] obtain each user age range;
[0118] draw a correlation curve between the playing volume and the sound intensity according to the corresponding decibel values of the playing device at different volumes and at the standard listening distance and each of the user age ranges, to obtain a standard volume curve corresponding to each of the user age ranges.
[0119] Optionally, in the step of determining the current volume curve corresponding to the current user from the standard volume curves according to the age of the current user, the determining module is further configured to:
[0120] obtain the age of the current user and a current listening distance;
[0121] select a target standard volume curve corresponding to the age of the current user from the standard volume curves according to the age of the current user;
[0122] adjust the target standard volume curve according to a distance deviation between the current listening distance and the standard listening distance, to obtain the current volume curve.
[0123] Optionally, in the step of obtaining the age of the current user, the determining module is further configured to:
[0124] obtain a region image of a region in front of the playing device;
[0125] extract a target image carrying face information from the region image;
[0126] perform age prediction on the current user according to an age prediction model and the target image, to obtain the age of the current user.
[0127] Optionally, the playing content includes music content and video content, and in the step of correcting the current volume curve according to the playing content of the playing device, the correction module is further configured to:
[0128] when the playing content is the music content, perform sound effect classification correction on the current volume curve;
[0129] when the playing content is the video content, perform content classification correction on the current volume curve.
[0130] Optionally, the music content includes soft music, rock music and other music, and in the step of modifying the current volume curve as a whole when the playing content is music content, the modification module is further configured to:
[0131] when the music content is soft music, reducing high-pitch effect gain in the current volume curve;
[0132] when the music content is rock music, increasing bass effect gain in the current volume curve;
[0133] when the music content is other music, keeping the current volume curve unchanged.
[0134] Optionally, in the step of modifying the current volume curve according to content classification when the playing content is video content, the modification module is further configured to:
[0135] acquiring human voice and background sound in the video content;
[0136] adjusting human voice gain in the current volume curve and background sound gain in the current volume curve according to contrast between the human voice and the background sound.
[0137] The volume optimization device provided by the present application adopts the volume optimization method in the above embodiment, and solves the technical problem of poor audio playing effect. Compared with the prior art, the volume optimization device provided by the present application has the same beneficial effects as the volume optimization method provided by the above embodiment, and other technical features in the volume optimization device are the same as the features disclosed in the above embodiment, which will not be repeated here.
[0138] Embodiment Four
[0139] The present application provides an electronic device, which comprises at least one processor and a memory in communication connection with the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the volume optimization method in the above embodiment one.
[0140] Reference will now be made to Figure 3 which shows a structural schematic diagram of an electronic device suitable for implementing the embodiments of the present application. The electronic device in the embodiments of the present application can include but is not limited to mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablets), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals) and the like, and fixed terminals such as digital TVs, desktop computers and the like. Figure 3The electronic device shown is merely an example and should not impose any limitation on the functions and use range of the embodiments of the present disclosure.
[0141] As shown in Figure 3 The electronic device can include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) that can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) or a program loaded into a random access memory (RAM) from a storage device. In the RAM, various programs and data required for the operation of the electronic device are also stored. The processing device, the ROM, and the RAM are connected to each other through a bus. An input / output (I / O) interface is also connected to the bus.
[0142] Generally, the following systems can be connected to the I / O interface: input devices including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; output devices including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices including, for example, a magnetic tape, a hard disk, etc.; and communication devices. The communication devices can allow the electronic device to communicate with other devices wirelessly or wired to exchange data. Although the electronic device with various systems is shown in the figure, it should be understood that all the systems shown are not required to be implemented or possessed. More or less systems can be alternatively implemented or possessed.
[0143] In particular, according to the embodiments of the present disclosure, the processes described above with reference to the flowcharts can be implemented as a computer software program. For example, the embodiments of the present disclosure include a computer program product comprising a computer program carried on a computer readable medium, the computer program containing program codes for executing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network through the communication device, or installed from the storage device, or installed from the ROM. When the computer program is executed by the processing device, the above-mentioned functions defined in the methods of the embodiments of the present disclosure are performed.
[0144] The electronic device provided by the present application adopts the volume optimization method in the above-mentioned embodiment one or embodiment two, and solves the technical problem of poor audio playing effect. Compared with the prior art, the electronic device provided by the embodiments of the present application has the same beneficial effects as the volume optimization method provided by the above-mentioned embodiment one, and other technical features in the electronic device are the same as the features disclosed in the above-mentioned embodiment method, which will not be repeated here.
[0145] It should be understood that parts of the present disclosure can be realized by hardware, software, firmware or a combination thereof. In the description of the above-mentioned embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0146] The above merely provides a specific implementation of the present application, but the protection scope of the present application is not limited thereto, and any person skilled in the art can easily think of changes or replacements within the technical range disclosed by the present application, which should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
[0147] Embodiment five
[0148] The embodiment provides a computer readable storage medium having computer readable program instructions stored thereon, the computer readable program instructions being used for executing the volume optimization method in the above embodiment one.
[0149] The computer readable storage medium provided by the embodiment of the present application may, for example, be a U disk, but is not limited to an electric, magnetic, optical, electromagnetic, infrared, or semiconductor system, system or device, or any combination of the above. More specific examples of the computer readable storage medium can include, but are not limited to, an electric connection having one or more conductive 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 of the above. In the embodiment, the computer readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer readable storage medium can be transmitted by any suitable medium, including but not limited to: electric wire, optical cable, RF (radio frequency), etc., or any suitable combination of the above.
[0150] The above computer readable storage medium can be contained in an electronic device; or can exist separately without being assembled into an electronic device.
[0151] The above computer readable storage medium carries one or more programs, when the one or more programs are executed by an electronic device, the electronic device is caused to: acquire a standard volume curve of a playback device at a standard listening environment; adjust the standard volume curve according to a deviation of a current listening environment of a user from the standard listening environment, to obtain a reference volume curve corresponding to the current listening environment; and correct a current playback volume curve corresponding to the current listening environment according to the reference volume curve, to adjust the volume of the playback device.
[0152] Computer program code for carrying out operations of the present disclosure can be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C++ or the like, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code can execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection can be made to an external computer (for example, through the Internet using an Internet Service Provider).
[0153] The computer program instructions can also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions / acts specified in the flowchart and / or block diagram block or blocks.
[0154] The modules involved in the embodiments of the present disclosure can be implemented in the manner of software or hardware. In some cases, the name of the module does not constitute a limitation on the module itself.
[0155] The computer readable storage medium provided by the present application stores computer readable program instructions for executing the above-mentioned volume optimization method, and solves the technical problem of poor audio playing effect. Compared with the prior art, the computer readable storage medium provided by the embodiment of the present application has the same beneficial effects as the volume optimization method provided by the above-mentioned embodiment, which will not be repeated here.
[0156] Embodiment six
[0157] The present application also provides a computer program product comprising a computer program which, when executed by a processor, implements the steps of the volume optimization method as described above.
[0158] The computer program product provided in the application solves the technical problem of poor audio playing effect. Compared with the prior art, the computer program product provided in the embodiment of the application has the same beneficial effects as the volume optimization method provided in the above-mentioned embodiment, and will not be described here.
[0159] The above is only the preferred embodiment of the application, and does not limit the patent scope of the application, and any equivalent structure or equivalent process transformation using the content of the specification and drawings, or direct or indirect application in other related technical fields, is also included in the patent processing scope of the application.
Claims
1. A volume optimization method, characterized by, The volume optimization method comprises: obtaining a standard volume curve corresponding to each user age group of a playback device at a standard listening distance; determining a current volume curve corresponding to a current user from the standard volume curves according to the age of the current user; correcting the current volume curve according to the playback content of the playback device to adjust the volume of the playback device; when the playback content is a video content, the step of correcting the current volume curve comprises: obtaining the degree of volume fluctuation in the playback content, judging whether the degree of volume fluctuation exceeds a preset volume fluctuation threshold, if the degree of volume fluctuation exceeds the preset volume fluctuation threshold, adjusting the volume before and after the volume fluctuation, if the degree of volume fluctuation does not exceed the preset volume fluctuation threshold, keeping the current volume curve unchanged; when the playback device has a display screen, the step of obtaining the standard listening distance comprises: obtaining the size of the display screen, and determining the standard listening distance corresponding to the playback device under a preset user viewing experience according to the mapping relationship between the size of the display screen and the standard listening distance; when the playback device does not have a display screen, the step of obtaining the standard listening distance comprises: when the playback device does not have a display screen, determining the standard listening distance of the playback device under a preset user listening experience according to the sound effect of the loudspeaker of the playback device.
2. The method of claim 1, wherein, The step of obtaining the standard volume curve of the playback device under each user age comprises: obtaining each user age group; drawing a correlation curve between playback volume and sound intensity according to the decibel value corresponding to different volumes of the playback device at a standard listening distance and each user age group, to obtain a standard volume curve corresponding to each user age group.
3. The method of claim 1, wherein the volume is optimized by: The step of determining the current volume curve corresponding to the current user from the standard volume curves according to the age of the current user comprises: obtaining the age and current listening distance of the current user; selecting a target standard volume curve corresponding to the age of the current user from the standard volume curves according to the age of the current user; adjusting the target standard volume curve according to the distance deviation between the current listening distance and the standard listening distance to obtain the current volume curve.
4. The method of claim 3, wherein the volume is optimized by: The step of obtaining the age of the current user comprises: obtaining a region image of the region in front of the playback device; extracting a target image carrying face information from the region image; performing age prediction on the current user according to an age prediction model and the target image to obtain the age of the current user.
5. The method of claim 1, wherein the volume is optimized by: The playback content comprises music content and video content, and the step of correcting the current volume curve according to the playback content of the playback device comprises: when the playback content is music content, performing sound effect classification correction on the current volume curve; when the playback content is a video content, performing content classification correction on the current volume curve.
6. The method of claim 5, wherein the volume is optimized by, The music content includes relaxing music, rock music and other music, and when the playing content is music content, the step of modifying the current volume curve as a whole includes: When the music content is relaxing music, reducing the high sound effect gain in the current volume curve; When the music content is rock music, increasing the low sound effect gain in the current volume curve; When the music content is other music, keeping the current volume curve unchanged.
7. The method of claim 5, wherein the volume is optimized by adjusting the volume of the audio signal to a level that is within a range of a volume of a user's voice. When the playing content is video content, the step of modifying the current volume curve according to content classification includes: Obtaining the voice and background sound in the video content; Adjusting the voice gain in the current volume curve and the background sound gain in the current volume curve according to the contrast between the voice and the background sound.
8. A volume optimization apparatus, characterized by, The volume optimization device includes: An obtaining module for obtaining the standard volume curves corresponding to each user age group of a playing device at a standard listening distance; A determining module for determining the current volume curve corresponding to a current user from the standard volume curves according to the age of the current user; A modifying module for modifying the current volume curve according to the playing content of the playing device to adjust the volume of the playing device; When the playing content is video content, the modifying module is further configured to: Obtain the volume fluctuation degree of the playing content, judge whether the volume fluctuation degree exceeds a preset volume fluctuation threshold, if the volume fluctuation degree exceeds the preset volume fluctuation threshold, adjust the front and rear volumes corresponding to the volume fluctuation, and if the volume fluctuation degree does not exceed the preset volume fluctuation threshold, keep the current volume curve unchanged; The volume optimization device is further configured to: When the playing device has a display screen, the step of obtaining the standard listening distance includes: obtaining the size of the display screen, and determining the standard listening distance corresponding to the playing device under a preset user viewing experience according to the mapping relationship between the size of the display screen and the standard listening distance; When the playing device does not have a display screen, the step of obtaining the standard listening distance includes: when the playing device does not have a display screen, determining the standard listening distance of the playing device under a preset user listening experience according to the sound effect of the loudspeaker of the playing device.
9. An electronic device, comprising: The electronic device includes: At least one processor; and The memory is in communication with the at least one processor; wherein The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the steps of the volume optimization method of any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, The computer readable storage medium stores a program for implementing a volume optimization method, and the program is executed by a processor to implement the steps of the volume optimization method as claimed in any one of claims 1 to 7.
Citation Information
Patent Citations
Method for automatically adjusting volume of audio playing system and audio playing device
CN104010147A
Volume leveler controller and control method
CN104080024A
Volume adjustment method and device and equipment
CN107124149A
Volume adjustment method and apparatus, terminal device and storage medium
CN107506168A
The device and method which provides the standard audio data where the auditory ability of the user is reflected
KR100929565B1