CN114845212A - Volume optimization method and device, electronic equipment and readable storage medium - Google Patents
Volume optimization method and device, electronic equipment and readable storage medium Download PDFInfo
- Publication number
- CN114845212A CN114845212A CN202210468533.7A CN202210468533A CN114845212A CN 114845212 A CN114845212 A CN 114845212A CN 202210468533 A CN202210468533 A CN 202210468533A CN 114845212 A CN114845212 A CN 114845212A
- Authority
- CN
- China
- Prior art keywords
- volume
- current
- age
- volume curve
- content
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 52
- 238000005457 optimization Methods 0.000 title claims abstract description 50
- 230000000694 effects Effects 0.000 claims abstract description 32
- 238000012937 correction Methods 0.000 claims description 24
- 239000011435 rock Substances 0.000 claims description 13
- 230000002040 relaxant effect Effects 0.000 claims description 6
- 238000012986 modification Methods 0.000 claims description 2
- 230000004048 modification Effects 0.000 claims description 2
- 238000012545 processing Methods 0.000 abstract description 7
- 238000004590 computer program Methods 0.000 description 13
- 230000009286 beneficial effect Effects 0.000 description 7
- 238000010586 diagram Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 5
- 230000003287 optical effect Effects 0.000 description 4
- 230000006978 adaptation Effects 0.000 description 3
- 230000008859 change Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 3
- 230000007547 defect Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 230000003595 spectral effect Effects 0.000 description 3
- 238000012360 testing method Methods 0.000 description 3
- 238000000926 separation method Methods 0.000 description 2
- 238000006467 substitution reaction Methods 0.000 description 2
- 241000699670 Mus sp. Species 0.000 description 1
- 238000000354 decomposition reaction Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 230000036651 mood Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000035939 shock Effects 0.000 description 1
- 238000013519 translation Methods 0.000 description 1
- 230000037303 wrinkles Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/16—Sound input; Sound output
- G06F3/165—Management of the audio stream, e.g. setting of volume, audio stream path
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03G—CONTROL OF AMPLIFICATION
- H03G3/00—Gain control in amplifiers or frequency changers
- H03G3/20—Automatic control
- H03G3/30—Automatic control in amplifiers having semiconductor devices
- H03G3/3005—Automatic control in amplifiers having semiconductor devices in amplifiers suitable for low-frequencies, e.g. audio amplifiers
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Theoretical Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Audiology, Speech & Language Pathology (AREA)
- General Health & Medical Sciences (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Circuit For Audible Band Transducer (AREA)
Abstract
The application discloses a volume optimization method, a device, an electronic device and a readable storage medium, which are applied to the technical field of sound processing, wherein the volume optimization method comprises the following steps: acquiring a standard volume curve corresponding to each user age group of the playing equipment at a standard listening distance; determining a current volume curve corresponding to the current user in each standard volume curve according to the age of the current user; and correcting the current volume curve according to the playing content of the playing device so as to adjust the volume of the playing device. The application solves the technical problem of poor audio playing effect in the prior art.
Description
Technical Field
The present application relates to the field of sound processing technologies, and in particular, to a volume optimization method and apparatus, an electronic device, and a readable storage medium.
Background
With the rapid development of science and technology, volume adjustment technology is also developed more and more mature, at present, volume adjustment adopts to adjust the volume curve to fixed user and fixed use scene to adjust the volume of playback devices, and when the use scene or current user's age changed, the condition that the volume of playback devices is too big or undersize appeared easily, thereby lead to the audio playback effect poor.
Disclosure of Invention
The present application mainly aims to provide a volume optimization method, a volume optimization device, an electronic device, and a readable storage medium, and aims to solve the technical problem of poor audio playing effect in the prior art.
In order to achieve the above object, the present application provides a volume optimization method applied to a volume optimization device, where the volume optimization method includes:
acquiring a standard volume curve corresponding to each user age group of the playing equipment at a standard listening distance;
determining a current volume curve corresponding to the current user in each standard volume curve according to the age of the current user;
and correcting the current volume curve according to the playing content of the playing device so as to adjust the volume of the playing device.
Optionally, the step of obtaining a standard volume curve of the playback device at each user age includes:
acquiring age groups of all users;
and drawing an association relation curve between the playing volume and the sound intensity according to decibel values corresponding to the playing equipment at different volumes under the standard listening distance and each user age bracket to obtain a standard volume curve corresponding to each user age bracket.
Optionally, the step of determining, according to the age of the current user, a current volume curve corresponding to the current user in each of the standard volume curves includes:
acquiring the age and the current listening distance of a 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;
and 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.
Optionally, the obtaining the age of the current user includes:
acquiring an area image of an area in front of the playing equipment;
extracting a target image carrying face information from the region image;
and according to the age prediction model and the target image, carrying out age prediction on the current user to obtain the age of the current user.
Optionally, the modifying the current volume curve according to the playing content of the playing device includes:
when the playing content is music content, performing sound effect classification correction on the current volume curve;
and when the playing content is the movie content, performing content classification correction on the current volume curve.
Optionally, the music content includes soothing music, rock music, and other music, and when the playing content is the music content, the step of integrally correcting the current volume curve includes:
when the music content is the relaxing music, reducing the high sound effect gain in the current volume curve;
when the music content is rock music, increasing the gain of the low sound effect in the current volume curve;
and when the music content is other music, keeping the current volume curve unchanged.
Optionally, when the playing content is a video content, the step of performing content classification correction on the current volume curve includes:
acquiring human voice and background sound in the movie content;
and adjusting the gain of the human voice in the current volume curve and the gain of the background sound in the current volume curve according to the contrast between the human voice and the background sound.
In order to achieve the above object, the present application further provides a volume optimization device, where the volume optimization device is applied to a volume optimization device, and the volume optimization device includes:
the acquisition module is used for acquiring a standard volume curve corresponding to each user age group of the playing equipment at a standard listening distance;
the determining module is used for determining a current volume curve corresponding to the current user in each standard volume curve according to the age of the current user;
and the correction module is used for correcting the current volume curve according to the playing content of the playing equipment so as to adjust the volume of the playing equipment.
Optionally, in the step of acquiring a standard volume curve of the playback device at each user age, the acquiring module is further configured to:
acquiring age groups of users;
and drawing an association relation curve between the playing volume and the sound intensity according to decibel values corresponding to the playing equipment at different volumes under the standard listening distance and each user age bracket to obtain a standard volume curve corresponding to each user age bracket.
Optionally, in the step of determining, according to the age of the current user, a current volume curve corresponding to the current user in each of the standard volume curves, the determining module is further configured to:
acquiring the age and the current listening distance of a 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;
and 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.
Optionally, the obtaining of the age of the current user, the determining module is further configured to:
acquiring an area image of an area in front of the playing equipment;
extracting a target image carrying face information from the region image;
and according to the age prediction model and the target image, carrying out age prediction on the current user to obtain the age of the current user.
Optionally, the playing content includes music content and video content, and the modifying module is further configured to, during modifying the current volume curve according to the playing content of the playing device:
when the playing content is music content, performing sound effect classification correction on the current volume curve;
and when the playing content is the movie content, performing content classification correction on the current volume curve.
Optionally, the music content includes slow music, rock music, and other music, and in the step of integrally correcting the current volume curve when the playing content is the music content, the correction module is further configured to:
when the music content is the relaxing music, reducing the high sound effect gain in the current volume curve;
when the music content is rock music, increasing the gain of the low sound effect in the current volume curve;
and when the music content is other music, keeping the current volume curve unchanged.
Optionally, in the step of performing content classification correction on the current volume curve when the playing content is a video content, the correction module is further configured to:
acquiring human voice and background sound in the movie content;
and adjusting the gain of the human voice in the current volume curve and the gain of the background sound in the current volume curve according to the contrast between the human voice and the background sound.
The present application further provides an electronic device, the electronic device including: a memory, a processor and a program of the volume optimization method stored on the memory and executable on the processor, which program, when executed by the processor, may implement the steps of the volume optimization method as described above.
The present application also provides a computer-readable storage medium having stored thereon a program for implementing a volume optimization method, which when executed by a processor implements the steps of the volume optimization method as described above.
The present application also provides a computer program product comprising a computer program which, when executed by a processor, performs the steps of the volume optimization method as described above.
Compared with the method for adjusting the volume curve aiming at fixed users and fixed use scenes in the prior art, the method for optimizing the volume comprises the steps of obtaining the standard volume curve corresponding to each user age group of the playing equipment at the standard listening distance; determining a current volume curve corresponding to the current user in each standard volume curve according to the age of the current user; according to playback device's broadcast content, right current volume curve revises, in order to adjust playback device's volume has realized through current user's age and the volume that uses the scene adaptation to correspond for the playback device configures suitable volume always, when having avoided adopting fixed user and use the scene to adjust the volume curve, because when using scene or current user's age to change, the technical defect of the too big or undersize condition of playback device's volume appears easily, thereby has improved the audio playback effect.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
Fig. 1 is a schematic flow chart of a first embodiment of a volume optimization method according to the present application;
fig. 2 is a schematic structural diagram of an apparatus related to a volume optimization method in an embodiment of the present application;
fig. 3 is a schematic device structure diagram of a hardware operating environment related to a volume optimization method in an embodiment of the present application.
The objectives, features, and advantages of the present application will be further described with reference to the accompanying drawings.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
In a first embodiment of the volume optimization method, referring to fig. 1, the volume optimization method includes:
step S10, acquiring a standard volume curve corresponding to each user age group of the playing equipment at the standard listening distance;
in this embodiment, it should be noted that the user age group is an age group that may appear to the user, and the user age group may be 0 to 100 years old each 5 years old, or may be 0 to 100 years old each 10 years old.
Exemplarily, the step S10 includes: acquiring a standard listening distance according to the playing equipment; and acquiring an association relation curve between the playing volume and the sound intensity corresponding to each user age group of the playing equipment at the standard listening distance.
As an example, when the playing device is provided with a display screen, the step of obtaining the listening distance comprises: acquiring the size of the display screen, and determining the corresponding standard listening distance of the playing device under the preset user viewing experience according to the mapping relation between the size of the display screen and the standard listening distance, for example, when the size of the display screen is 55 inches, selecting 3m as the standard listening distance; when the size of display screen is 65 cun, select 3.5m as the principle listening distance, wherein, predetermine the user and watch experience and watch for the user that sets up in advance the effect that display device experienced, predetermine the user and watch experience and can watch the scoring of experience through the user at different listening distances, will obtain the listening distance of best score as the principle listening distance.
As an example, when the playing device does not have a display screen, the step of obtaining the listening distance comprises: and when the playing equipment does not have a display screen, determining the standard listening distance of the playing equipment under the preset user listening experience according to the sound effect of the loudspeaker of the playing equipment.
In step S10, the step of obtaining a standard volume curve of the playback device at each user age includes:
step S11, acquiring age groups of users;
step S12, drawing an association relationship curve between the playing volume and the sound intensity according to the decibel value corresponding to the playing device at different volume levels under the standard listening distance and each user age group, and obtaining a standard volume curve corresponding to each user age group.
Exemplarily, the steps S11 to S12 include: acquiring age groups of all users; playing an audio test signal through a playing device, determining different volumes for playing the audio test signal, measuring decibel values corresponding to the volumes through a sound pressure meter under the standard listening distance and the age groups of the users, and drawing an association relation curve between the playing volume and the sound intensity to obtain a standard volume curve corresponding to the age groups of the users, wherein the audio test signal can be pink noise which is a spectral signal with power spectral density in inverse proportion to the frequency band; it may also be white noise, which is a random signal with a constant power wavelength spectral density.
Further, the step of obtaining a standard volume curve corresponding to each user age group includes:
judging whether the user age group meets a preset first age group or not, and if the user age group meets the preset first age group, reducing the gain of a reference volume curve to obtain a standard volume curve corresponding to the user age group; judging whether the user age group meets a preset second age group or not, if so, keeping the gain of a reference volume curve to obtain a standard volume curve; and judging whether the user age group meets a preset third age group or not, and if the user age group meets the preset third age group, increasing the gain of the reference volume curve to obtain a standard volume curve.
Step S20, determining a current volume curve corresponding to the current user in each standard volume curve according to the age of the current user;
exemplarily, the step S20 includes: and acquiring the age of the current user, acquiring the age of the current user corresponding to the age of the current user according to the age of the current user, and determining the current volume curve corresponding to the age of the current user according to each standard volume curve.
In step S20, the step of determining, according to the age of the current user, a current volume curve corresponding to the current user in each of the standard volume curves includes:
step S21, acquiring the age and the current listening distance of the current user;
step S22, 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;
and 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 the current volume curve.
Exemplarily, the steps S21 to S23 include: acquiring the age and the current listening distance of a current user; acquiring a target age group corresponding to the age of the current user in each user age group, and selecting a target standard volume curve corresponding to the target age group from each standard volume curve; obtaining a distance deviation between the current listening distance and a standard listening distance, and performing translation adjustment on 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, namely the current listening distance is greater than the standard listening distance, the target standard volume curve is translated upwards; and when the distance deviation is smaller than 0, namely the current listening distance is smaller than the standard listening distance, translating the target standard volume curve downwards.
In step S21, the acquiring the age of the current user includes:
step A10, obtaining an area image of an area in front of the playing device;
step A20, extracting a target image carrying face information from the region image;
and A30, according to the age prediction model and the target image, performing age prediction on the current user to obtain the age of the current user.
Illustratively, steps a10 through a30 include: acquiring an area image of an area in front of the playing equipment; performing background and foreground separation processing on the regional image to obtain background data and foreground data, judging whether face information exists in the foreground data, and if the face information exists in the foreground data, taking the foreground data as a target image; if the foreground data does not have the face information, returning to the execution step: acquiring an area image of an area in front of the playing equipment; inputting the target image into an age prediction model, extracting the 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 mode can be an optical flow algorithm, a low-rank decomposition mode or a mixed Gaussian modeling mode, the face features are used for representing feature information related to the age, and the feature information can be the wrinkle number of the face or the turbidity degree of the iris of the eye.
As an example, when the playing device does not have a camera, the step of obtaining the age of the current user may further be: and acquiring the current user age set by the user.
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.
Exemplarily, the step S30 includes: and acquiring playing content corresponding to the playing equipment, and correcting the current volume curve according to the playing content so as to adjust the volume of the playing equipment.
Compared with the method for adjusting the volume curve aiming at fixed users and fixed use scenes in the prior art, the volume optimization method has the advantages that the standard volume curve corresponding to each user age group under the standard listening distance of the playing equipment is obtained; determining a current volume curve corresponding to the current user in each standard volume curve according to the age of the current user; according to playback device's broadcast content, right current volume curve revises, in order to adjust playback device's volume has realized through current user's age and the volume that uses the scene adaptation to correspond for the playback device configures suitable volume always, when having avoided adopting fixed user and use the scene to adjust the volume curve, because when using scene or current user's age to change, the technical defect of the too big or undersize condition of playback device's volume appears easily, thereby has improved the audio playback effect.
Example two
Further, based on the first embodiment of the present application, in another embodiment of the present application, the same or similar contents to the first embodiment described above may be referred to the above description, and are not repeated herein. On this basis, in step S30, the step of modifying the current volume curve according to the playing content of the playing device and the age of the current user so as to adjust the volume of the playing device includes:
step S31, when the playing content is music content, the sound effect classification correction is carried out on the current volume curve;
and step S32, when the playing content is the movie content, performing content classification correction on the current volume curve.
Exemplarily, the steps S31 to S32 include: acquiring a playing content label sent by the playing equipment, and performing sound effect classification correction on the current volume curve when the playing content label is a music content label; and when the playing content label is a movie content label, performing content classification correction on the current volume curve.
In step S31, the music content includes slow music, rock music, and other music, and when the playing content is the music content, the step of integrally correcting the current volume curve includes:
step B10, when the music content is the relaxing music, reducing the high sound effect gain in the current volume curve;
step B20, when the music content is rock music, increasing the gain of the low sound effect in the current volume curve;
and step B30, when the music content is other music, keeping the current volume curve unchanged.
Exemplarily, the step B10 to the step B30 include: dividing the music content into soothing music, rock music and other music according to the use of the music, and reducing the high sound effect gain in the current volume curve when the music content is the soothing music so as to enhance the effect of relaxing the mood of the user; when the music content is rock music, increasing the low-sound effect gain in the current volume curve so as to enhance the shock effect of the rock music; and when the music content is other music, keeping the current volume curve unchanged.
In step S32, when the playing content is a video content, the step of performing content classification correction on the current volume curve includes:
step C10, acquiring the human voice and the background sound in the movie content;
and step C20, adjusting the gain of the human voice in the current volume curve and the gain of the background sound in the current volume curve according to the contrast between the human voice and the background sound.
In this embodiment, it should be noted that the contrast is a volume difference between the human voice and the background sound.
Exemplarily, the step C10 to the step C20 include: acquiring the volume of human voice and the volume of background sound in the movie content; the human voice volume and the background sound volume are subjected to subtraction to obtain the contrast between the human voice and the background sound, if the contrast is in accordance with a preset first contrast range, the human voice gain in the current volume curve is increased, and the background sound gain in the current volume curve is reduced; if the contrast accords with a preset second contrast range, keeping the current volume curve unchanged; and if the contrast accords with a preset third contrast range, reducing the gain of the human voice in the current volume curve and increasing the gain of the background voice in the current volume curve.
As an example, when the playing content is a movie content, the step of performing content classification correction on the current volume curve further includes: acquiring the volume fluctuation degree in the played content, judging whether the volume fluctuation degree exceeds a preset volume fluctuation threshold value, and if the volume fluctuation degree exceeds the preset volume fluctuation threshold value, adjusting the front volume and the rear volume corresponding to the volume fluctuation so as to avoid influence on listening experience of a user due to overlarge volume fluctuation; and if the volume fluctuation degree does not exceed a preset volume fluctuation threshold value, keeping the current volume curve unchanged.
Compared with the method for adjusting the volume curve aiming at fixed users and fixed use scenes in the prior art, the volume optimization method has the advantages that the standard volume curve corresponding to each user age group under the standard listening distance of the playing equipment is obtained; determining a current volume curve corresponding to the current user in each standard volume curve according to the age of the current user; according to playback device's broadcast content, right current volume curve revises, in order to adjust playback device's volume has realized through current user's age and the volume that uses the scene adaptation to correspond for the playback device configures suitable volume always, when having avoided adopting fixed user and use the scene to adjust the volume curve, because when using scene or current user's age to change, the technical defect of the too big or undersize condition of playback device's volume appears easily, thereby has improved the audio playback effect.
EXAMPLE III
An embodiment of the present application further provides a volume optimization device, and referring to fig. 2, the volume optimization device includes:
the acquisition module is used for acquiring a standard volume curve corresponding to each user age group of the playing equipment at a standard listening distance;
the determining module is used for determining a current volume curve corresponding to the current user in each standard volume curve according to the age of the current user;
and the correction module is used for correcting the current volume curve according to the playing content of the playing equipment so as to adjust the volume of the playing equipment.
Optionally, in the step of acquiring a standard volume curve of the playback device at each user age, the acquiring module is further configured to:
acquiring age groups of users;
and drawing an association relation curve between the playing volume and the sound intensity according to decibel values corresponding to the playing equipment at different volumes under the standard listening distance and each user age bracket to obtain a standard volume curve corresponding to each user age bracket.
Optionally, in the step of determining, according to the age of the current user, a current volume curve corresponding to the current user in each of the standard volume curves, the determining module is further configured to:
acquiring the age and the current listening distance of a 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;
and 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.
Optionally, the obtaining of the age of the current user, the determining module is further configured to:
acquiring an area image of an area in front of the playing equipment;
extracting a target image carrying face information from the region image;
and according to the age prediction model and the target image, carrying out age prediction on the current user to obtain the age of the current user.
Optionally, the playing content includes music content and video content, and the modifying module is further configured to, during modifying the current volume curve according to the playing content of the playing device:
when the playing content is music content, performing sound effect classification correction on the current volume curve;
and when the playing content is the movie content, performing content classification correction on the current volume curve.
Optionally, the music content includes slow music, rock music, and other music, and in the step of integrally correcting the current volume curve when the playing content is the music content, the correction module is further configured to:
when the music content is the relaxing music, reducing the high sound effect gain in the current volume curve;
when the music content is rock music, increasing the gain of the low sound effect in the current volume curve;
and when the music content is other music, keeping the current volume curve unchanged.
Optionally, in the step of performing content classification correction on the current volume curve when the playing content is a video content, the correction module is further configured to:
acquiring human voice and background sound in the movie content;
and adjusting the gain of the human voice in the current volume curve and the gain of the background sound in the current volume curve according to the contrast between the human voice and the background sound.
The volume optimization device provided by the invention adopts the volume optimization method in the embodiment, so that the technical problem of poor audio playing effect is solved. Compared with the prior art, the beneficial effects of the volume optimization device provided by the embodiment of the invention are the same as those of the volume optimization method provided by the embodiment, and other technical features of the volume optimization device are the same as those disclosed by the embodiment method, which are not repeated herein.
Example four
An embodiment of the present invention provides an electronic device, including: at least one processor; and a memory communicatively coupled to the at least one processor; 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 first embodiment.
Referring now to FIG. 3, shown is a schematic diagram of an electronic device suitable for use in implementing embodiments of the present disclosure. The electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., car navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 3 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 3, the electronic device may include a processing apparatus (e.g., a central processing unit, a graphic processor, etc.) that may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) or a program loaded from a storage apparatus into a Random Access Memory (RAM). In the RAM, various programs and data necessary for the operation of the electronic apparatus are also stored. The processing device, the ROM, and the RAM are connected to each other by a bus. An input/output (I/O) interface is also connected to the bus.
Generally, the following systems may be connected to the I/O interface: input devices including, for example, touch screens, touch pads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, and the like; output devices including, for example, Liquid Crystal Displays (LCDs), speakers, vibrators, and the like; storage devices including, for example, magnetic tape, hard disk, etc.; and a communication device. The communication means may allow the electronic device to communicate wirelessly or by wire with other devices to exchange data. While the figures illustrate an electronic device with various systems, it is to be understood that not all illustrated systems are required to be implemented or provided. More or fewer systems may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means, or installed from a storage means, or installed from a ROM. The computer program, when executed by a processing device, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
The electronic device provided by the invention adopts the volume optimization method in the first embodiment or the second embodiment, so that the technical problem of poor audio playing effect is solved. Compared with the prior art, the beneficial effects of the electronic device provided by the embodiment of the present invention are the same as the beneficial effects of the volume optimization method provided by the first embodiment, and other technical features of the electronic device are the same as those disclosed in the embodiment method, which are not repeated herein.
It should be understood that portions of the present disclosure may be implemented in hardware, software, firmware, or a combination thereof. In the foregoing description of embodiments, the particular features, structures, materials, or characteristics may be combined in any suitable manner in any one or more embodiments or examples.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.
EXAMPLE five
The present embodiment provides a computer-readable storage medium having computer-readable program instructions stored thereon for performing the method of volume optimization in the first embodiment.
The computer readable storage medium provided by the embodiments of the present invention may be, for example, a USB flash disk, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, or device, or any combination thereof. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present embodiment, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, or device. Program code embodied on a computer readable storage medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer-readable storage medium may be embodied in an electronic device; or may be present alone without being incorporated into the electronic device.
The computer readable storage medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring a standard volume curve of the playing equipment in a standard listening environment; adjusting the standard volume curve according to the deviation between the current listening environment of the user and the standard listening environment to obtain a reference volume curve corresponding to the current listening environment; and correcting the current playing volume curve corresponding to the current listening environment according to the reference volume curve so as to adjust the volume of the playing equipment.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may 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 case of a remote computer, the remote computer may 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 may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present disclosure may be implemented by software or hardware. Wherein the names of the modules do not in some cases constitute a limitation of the unit itself.
The computer-readable storage medium provided by the invention stores the computer-readable program instruction for executing the volume optimization method, and solves the technical problem of poor audio playing effect. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the embodiment of the invention are the same as the beneficial effects of the volume optimization method provided by the implementation, and are not repeated herein.
EXAMPLE six
The present application also provides a computer program product comprising a computer program which, when executed by a processor, performs the steps of the volume optimization method as described above.
The computer program product provided by the application solves the technical problem of poor audio playing effect. Compared with the prior art, the beneficial effects of the computer program product provided by the embodiment of the present invention are the same as the beneficial effects of the volume optimization method provided by the above embodiment, and are not described herein again.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings, or which are directly or indirectly applied to other related technical fields, are included in the scope of the present application.
Claims (10)
1. A volume optimization method, comprising:
acquiring a standard volume curve corresponding to each user age group of the playing equipment at a standard listening distance;
determining a current volume curve corresponding to the current user in each standard volume curve according to the age of the current user;
and correcting the current volume curve according to the playing content of the playing device so as to adjust the volume of the playing device.
2. The volume optimization method of claim 1, wherein the step of obtaining a standard volume curve of the playback device at each user age comprises:
acquiring age groups of all users;
and drawing an association relation curve between the playing volume and the sound intensity according to decibel values corresponding to the playing equipment at different volumes under the standard listening distance and each user age bracket to obtain a standard volume curve corresponding to each user age bracket.
3. The method of claim 1, wherein the step of determining a current volume curve corresponding to the current user among the standard volume curves according to the age of the current user comprises:
acquiring the age and the current listening distance of a 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;
and 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.
4. The volume optimization method of claim 3, wherein said obtaining the age of the current user comprises:
acquiring an area image of an area in front of the playing equipment;
extracting a target image carrying face information from the region image;
and according to the age prediction model and the target image, carrying out age prediction on the current user to obtain the age of the current user.
5. The method for optimizing volume according to claim 1, wherein the playback content includes music content and video content, and the modifying the current volume curve according to the playback content of the playback device includes:
when the playing content is music content, performing sound effect classification correction on the current volume curve;
and when the playing content is the movie content, performing content classification correction on the current volume curve.
6. The volume optimization method according to claim 5, wherein the music content includes slow music, rock music and other music, and the step of integrally modifying the current volume curve when the playing content is the music content includes:
when the music content is the relaxing music, reducing the high sound effect gain in the current volume curve;
when the music content is rock music, increasing the gain of the low sound effect in the current volume curve;
and when the music content is other music, keeping the current volume curve unchanged.
7. The volume optimization method of claim 5, wherein the step of performing content classification modification on the current volume curve when the playing content is a video content comprises:
acquiring human voice and background sound in the movie and television content;
and adjusting the gain of the human voice in the current volume curve and the gain of the background sound in the current volume curve according to the contrast between the human voice and the background sound.
8. A volume optimization device, comprising:
the acquisition module is used for acquiring a standard volume curve corresponding to each user age group of the playing equipment at a standard listening distance;
the determining module is used for determining a current volume curve corresponding to the current user in each standard volume curve according to the age of the current user;
and the correction module is used for correcting the current volume curve according to the playing content of the playing equipment so as to adjust the volume of the playing equipment.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable 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, having stored thereon a program for implementing a volume optimization method, the program being executed by a processor to implement the steps of the volume optimization method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210468533.7A CN114845212A (en) | 2022-04-29 | 2022-04-29 | Volume optimization method and device, electronic equipment and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210468533.7A CN114845212A (en) | 2022-04-29 | 2022-04-29 | Volume optimization method and device, electronic equipment and readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114845212A true CN114845212A (en) | 2022-08-02 |
Family
ID=82568340
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210468533.7A Pending CN114845212A (en) | 2022-04-29 | 2022-04-29 | Volume optimization method and device, electronic equipment and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114845212A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116483310A (en) * | 2023-06-21 | 2023-07-25 | 一汽解放汽车有限公司 | In-vehicle volume adjusting method, device, equipment and medium |
CN116760499A (en) * | 2023-07-07 | 2023-09-15 | 恩平市天悦音响科技有限公司 | Sound console sound tuning management system and method based on big data |
-
2022
- 2022-04-29 CN CN202210468533.7A patent/CN114845212A/en active Pending
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116483310A (en) * | 2023-06-21 | 2023-07-25 | 一汽解放汽车有限公司 | In-vehicle volume adjusting method, device, equipment and medium |
CN116760499A (en) * | 2023-07-07 | 2023-09-15 | 恩平市天悦音响科技有限公司 | Sound console sound tuning management system and method based on big data |
CN116760499B (en) * | 2023-07-07 | 2023-12-01 | 恩平市天悦音响科技有限公司 | Sound console sound tuning management system and method based on big data |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN114845212A (en) | Volume optimization method and device, electronic equipment and readable storage medium | |
CN110070896B (en) | Image processing method, device and hardware device | |
JP6906584B2 (en) | Methods and equipment for waking up devices | |
US9813830B2 (en) | Automated equalization of microphones | |
US20220391163A1 (en) | Automatic volume adjustment method and apparatus, medium, and device | |
WO2022228179A1 (en) | Video processing method and apparatus, electronic device, and storage medium | |
CN113963716A (en) | Volume balancing method, device and equipment for talking doorbell and readable storage medium | |
CN108829370B (en) | Audio resource playing method and device, computer equipment and storage medium | |
US8908099B2 (en) | Audio processing apparatus and audio processing method | |
KR102673322B1 (en) | Image and audio processing apparatus and operating method thereof | |
US10075140B1 (en) | Adaptive user interface configuration | |
CN113038344A (en) | Electronic device and control method thereof | |
US20220212108A1 (en) | Audio frequency signal processing method and apparatus, terminal and storage medium | |
WO2020062743A1 (en) | Video code rate adjustment method and apparatus, terminal, and storage medium | |
CN114121050A (en) | Audio playing method and device, electronic equipment and storage medium | |
CN113099101B (en) | Camera shooting parameter adjusting method and device and electronic equipment | |
CN114610264A (en) | Volume optimization method and device, electronic equipment and readable storage medium | |
CN114724528B (en) | Display control method and device of display device, electronic device and storage medium | |
CN115348478B (en) | Equipment interactive display method and device, electronic equipment and readable storage medium | |
CN111601157B (en) | Audio output method and display device | |
CN111125465B (en) | Information display quantity adjusting method and device, electronic equipment and readable medium | |
US20220245767A1 (en) | Image processing apparatus and operation method thereof | |
CN116149594A (en) | Volume adjusting method, device, medium and equipment of zero terminal | |
CN113452839A (en) | Automatic volume adjustment method, apparatus, medium, and device | |
CN117348836A (en) | Audio adjustment method, device, medium and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |