Volume optimization method, device, electronic device and readable storage medium
By obtaining and adjusting the volume curve, the volume of the playback device is corrected according to the user's current listening environment, solving the problem of inappropriate volume caused by changes in user position or environment and improving the playback effect.
Patent Information
- Application Number
- CN202210264664.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-17
- Publication Date
- 2025-09-05
- Estimated Expiration
- 2042-03-17
AI Technical Summary
In the prior art, the volume adjustment method fails to effectively adapt to changes in user position and environment, resulting in inappropriate volume of the playback device and affecting the playback effect.
By obtaining the volume curve of the playback device in a standard listening environment, adjusting it according to the deviation of the user's current listening environment, generating a reference volume curve, and correcting the current playback volume curve based on this curve to adapt to the user's actual listening environment.
It achieves the adaptation of the sound volume according to the listening environment, avoids the problem of inappropriate volume caused by changes in user position or environment, and improves the playback effect of the playback device.
Smart Images

Figure CN114610264B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of sound processing technology, and in particular to a volume optimization method, device, electronic device, and readable storage medium. Background Art
[0002] With the rapid development of science and technology, volume adjustment technology has also become increasingly mature. Currently, volume adjustment uses a volume curve determined according to the speaker characteristics of the playback device to adjust the volume of the playback device using the volume curve. However, in an environment of the same size, when the user is far away or there are many obstacles in the environment, resulting in a crowded environment, the volume of the playback device is likely to be low; when the user is close or there are few obstacles in the environment, resulting in a spacious environment, the volume of the playback device is likely to be high, resulting in poor playback quality. Summary of the Invention
[0003] The main purpose of this application is to provide a volume optimization method, device, electronic device and readable storage medium, aiming to solve the technical problem of poor playback effect in the prior art.
[0004] To achieve the above objectives, the present application provides a volume optimization method, which is applied to a volume optimization device. The volume optimization method includes:
[0005] Obtain the standard volume curve of the playback device in a standard listening environment;
[0006] Adjusting the standard volume curve according to the deviation between the user's current listening environment and the standard listening environment to obtain a reference volume curve corresponding to the current listening environment;
[0007] The current playback volume curve corresponding to the current listening environment is corrected according to the reference volume curve to adjust the volume of the playback device.
[0008] Optionally, the standard listening environment includes a standard listening distance and a standard number of listening obstacles.
[0009] The step of obtaining a standard volume curve of the playback device in a standard listening environment comprises:
[0010] Obtaining the standard listening distance and the number of standard listening obstacles;
[0011] According to the decibel values corresponding to different volumes of the playback device at the standard listening distance and the standard number of listening obstacles, a correlation curve between the playback volume and the sound intensity is drawn to obtain a standard volume curve.
[0012] Optionally, obtaining the standard listening distance includes:
[0013] When the playback device has a display screen, determining the standard listening distance corresponding to the playback device under a preset user viewing experience based on a mapping relationship between the size of the display screen and the standard listening distance;
[0014] When the playback device does not have a display screen, the standard listening distance corresponding to the playback device under a preset user listening experience is determined according to the speaker characteristics of the playback device.
[0015] Optionally, the current listening environment includes a current listening distance and a current number of listening obstacles.
[0016] The step of adjusting the standard volume curve according to the deviation between the user's current listening environment and the standard listening environment to obtain a reference volume curve corresponding to the current listening environment includes:
[0017] adjusting the standard volume curve according to a distance deviation between the current listening distance and the standard listening distance to obtain a first adjustment curve; and / or
[0018] The first adjustment curve is adjusted according to a deviation between the current number of listening obstacles and the standard number of listening obstacles to obtain a second adjustment curve as a reference volume curve corresponding to the current listening environment.
[0019] Optionally, before the step of correcting the current playback volume curve corresponding to the current listening environment based on the reference volume curve to adjust the volume of the playback device, the volume optimization method further includes:
[0020] According to the corresponding decibel values of the playback device at different volumes in the current listening environment, a correlation curve between the playback volume and the sound intensity is drawn to obtain the current playback volume curve.
[0021] Optionally, the step of correcting the current playback volume curve corresponding to the current listening environment based on the reference volume curve to adjust the volume of the playback device includes:
[0022] Obtain a decibel difference between a first decibel value of the same volume in the reference volume curve and a second decibel value on the current playback volume curve;
[0023] The decibel difference is converted into a corresponding DSP (Digital Signal Processing) gain, and the volume of the playback device is adjusted according to the DSP gain.
[0024] Optionally, the step of converting the decibel difference into a corresponding DSP gain includes:
[0025] If the decibel difference is within a preset first decibel difference threshold, selecting a first conversion coefficient, and obtaining the DSP gain by calculating the product of the decibel difference and the first conversion coefficient;
[0026] If the decibel difference is within a preset second decibel difference threshold, a second conversion coefficient is selected, and the DSP gain is obtained by calculating the product of the decibel difference and the second conversion coefficient.
[0027] To achieve the above-mentioned purpose, the present application further provides a volume optimization device, which is applied to a volume optimization device, and includes:
[0028] An acquisition module is used to obtain a standard volume curve of a playback device in a standard listening environment;
[0029] an adjustment module, configured to adjust the standard volume curve according to a deviation between the user's current listening environment and the standard listening environment, to obtain a reference volume curve corresponding to the current listening environment;
[0030] The correction module is used to correct the current playback volume curve corresponding to the current listening environment according to the reference volume curve, so as to adjust the volume of the playback device.
[0031] Optionally, the standard listening environment includes a standard listening distance and a standard number of listening obstacles.
[0032] In the step of obtaining a standard volume curve of the playback device in a standard listening environment, the obtaining module is further configured to:
[0033] Obtaining the standard listening distance and the number of standard listening obstacles;
[0034] According to the decibel values corresponding to different volumes of the playback device at the standard listening distance and the standard number of listening obstacles, a correlation curve between the playback volume and the sound intensity is drawn to obtain a standard volume curve.
[0035] Optionally, in the acquiring the standard listening distance, the acquiring module is further configured to:
[0036] When the playback device has a display screen, determining the standard listening distance corresponding to the playback device under a preset user viewing experience based on a mapping relationship between the size of the display screen and the standard listening distance;
[0037] When the playback device does not have a display screen, the standard listening distance corresponding to the playback device under a preset user listening experience is determined according to the speaker characteristics of the playback device.
[0038] Optionally, the current listening environment includes a current listening distance and a current number of listening obstacles.
[0039] In the step of adjusting the standard volume curve based on the deviation between the user's current listening environment and the standard listening environment to obtain a reference volume curve corresponding to the current listening environment, the adjustment module is further configured to:
[0040] adjusting the standard volume curve according to a distance deviation between the current listening distance and the standard listening distance to obtain a first adjustment curve; and / or
[0041] The first adjustment curve is adjusted according to a deviation between the current number of listening obstacles and the standard number of listening obstacles to obtain a second adjustment curve as a reference volume curve corresponding to the current listening environment.
[0042] Optionally, before the step of correcting the current playback volume curve corresponding to the current listening environment based on the reference volume curve to adjust the volume of the playback device, the adjustment module is further configured to:
[0043] According to the corresponding decibel values of the playback device at different volumes in the current listening environment, a correlation curve between the playback volume and the sound intensity is drawn to obtain the current playback volume curve.
[0044] Optionally, in the step of correcting the current playback volume curve corresponding to the current listening environment based on the reference volume curve to adjust the volume of the playback device, the correction module is further configured to:
[0045] Obtain a decibel difference between a first decibel value of the same volume in the reference volume curve and a second decibel value on the current playback volume curve;
[0046] The decibel difference is converted into a corresponding DSP gain, and the volume of the playback device is adjusted according to the DSP gain.
[0047] Optionally, in the step of converting the decibel difference into a corresponding DSP gain, the correction module is further configured to:
[0048] If the decibel difference is within a preset first decibel difference threshold, selecting a first conversion coefficient, and obtaining the DSP gain by calculating the product of the decibel difference and the first conversion coefficient;
[0049] If the decibel difference is within a preset second decibel difference threshold, a second conversion coefficient is selected, and the DSP gain is obtained by calculating the product of the decibel difference and the second conversion coefficient.
[0050] The present application also provides an electronic device, comprising: a memory, a processor, and a program of the volume optimization method stored in the memory and executable on the processor. When the program of the volume optimization method is executed by the processor, the steps of the volume optimization method described above can be implemented.
[0051] The present application also provides a computer-readable storage medium, on which is stored a program for implementing the volume optimization method. When the program for the volume optimization method is executed by a processor, the steps of the volume optimization method as described above are implemented.
[0052] The present application also provides a computer program product, including a computer program, which implements the steps of the volume optimization method as described above when the computer program is executed by a processor.
[0053] The present application provides a volume optimization method, device, electronic device, and readable storage medium. Compared to the method used in the prior art of determining a volume curve based on the speaker characteristics of a playback device and adjusting the volume of the playback device using the volume curve, the present application obtains a standard volume curve of the playback device in a standard listening environment; adjusts the standard volume curve based on the deviation between the user's current listening environment and the standard listening environment to obtain a reference volume curve corresponding to the current listening environment; and corrects the current playback volume curve corresponding to the current listening environment based on the reference volume curve to adjust the volume of the playback device. This achieves adaptation of the corresponding volume based on the listening environment, so that an appropriate volume can always be configured for the playback device. This avoids the technical defects of determining a volume curve based on the speaker characteristics of the playback device and adjusting the volume of the playback device using the volume curve, such as low volume when the user is far away or in a crowded environment, or high volume when the user is close or in a spacious environment, thereby improving the playback effect. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] 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 present application.
[0055] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0056] Figure 1 This is a flow chart of the first embodiment of the volume optimization method of the present application;
[0057] Figure 2 This is a flow chart of a second embodiment of the volume optimization method of the present application;
[0058] Figure 3 Schematic diagram of the device structure of the hardware operating environment involved in the volume optimization method in the embodiment of the present application.
[0059] The purpose, features and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0060] To make the above-mentioned objects, features, and advantages of the present invention more clearly understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making any creative efforts shall fall within the scope of protection of the present invention.
[0061] Example 1
[0062] The present application provides a volume optimization method. In the first embodiment of the volume optimization method of the present application, referring to Figure 1 , the volume optimization method includes:
[0063] Step S10, obtaining a standard volume curve of the playback device in a standard listening environment;
[0064] In this embodiment, it should be noted that the standard listening environment is the listening environment of the playback device at a standard listening distance and a standard number of listening obstacles; the standard volume curve is a correlation curve between the playback volume and sound intensity of the playback device in the standard listening environment.
[0065] Exemplarily, step S11 includes: obtaining a standard volume curve of the broadcasting equipment under the standard listening distance and the standard listening obstacle.
[0066] Wherein, in step S10, the standard listening environment includes a standard listening distance and a standard number of listening obstacles, and the step of obtaining a standard volume curve of the playback device in the standard listening environment includes:
[0067] Step S11, obtaining the standard listening distance and the number of standard listening obstacles;
[0068] Exemplarily, step S11 includes: obtaining the standard listening distance by measuring the distance between the sound pressure meter and the playback device; obtaining an environment picture of the playback device, inputting the environment picture into a preset target detection model to frame the obstacle area in the environment picture to obtain a rectangular target box corresponding to the obstacle area, and obtaining the number of standard listening obstacles by obtaining the number of rectangular target boxes. For example, the number of standard listening obstacles is set to 0 for convenience of calculation.
[0069] Wherein, in step S11, obtaining the standard listening distance includes:
[0070] Step A10: When the playback device has a display screen, determining the standard listening distance corresponding to the playback device under a preset user viewing experience based on a mapping relationship between the size of the display screen and the standard listening distance;
[0071] In this embodiment, it should be noted that the preset user viewing experience is a pre-set effect of the user's viewing experience of the display device. The preset user viewing experience can be scored by the user at different listening distances, and the listening distance with the best score is used as the standard listening distance.
[0072] Exemplarily, step A10 includes: when the playback device has a display screen, obtaining the size of the display screen, and determining the standard listening distance corresponding to the playback device under a preset user viewing experience based on 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 meters is selected as the standard listening distance; when the size of the display screen is 65 inches, 3.5 meters is selected as the standard listening distance. The preset first size threshold range is a preset size critical value for the first listening distance; and the preset second size threshold range is a preset size critical value for the second listening distance.
[0073] Step A20: When the playback device does not have a display screen, a standard listening distance corresponding to the playback device under a preset user listening experience is determined based on the speaker characteristics of the playback device.
[0074] Exemplarily, step A20 includes: when the playback device does not have a display screen, determining a standard listening distance of the playback device based on the sound effects of the speaker of the playback device and a preset user listening experience.
[0075] Step S12: plotting a correlation curve between playback volume and sound intensity based on the corresponding decibel values of the playback device at different volumes at the standard listening distance and the standard number of listening obstacles to obtain a standard volume curve.
[0076] Exemplarily, step S12 includes: playing an audio test signal through a playback device, determining different volumes for playing the audio test signal, measuring the decibel value corresponding to each volume through a sound pressure meter at the standard listening distance and the standard number of listening obstacles, drawing a correlation curve between the playback volume and the sound intensity, and obtaining a standard volume curve, wherein the audio test signal can be pink noise, which is a signal with a spectrum whose power spectral density is inversely proportional to the frequency band; or white noise, which is a random signal with a constant power spectral density.
[0077] Step S20, adjusting the standard volume curve according to the deviation between the user's current listening environment and the standard listening environment to obtain a reference volume curve corresponding to the current listening environment;
[0078] Exemplarily, step S20 includes: obtaining a deviation between the user's current listening environment and the standard listening environment, converting the deviation into an adjustment value, adjusting the standard volume curve according to the adjustment value, and obtaining a reference volume curve corresponding to the current listening environment.
[0079] Wherein, in step S20, the current listening environment includes the current listening distance and the current number of listening obstacles.
[0080] The step of adjusting the standard volume curve according to the deviation between the user's current listening environment and the standard listening environment to obtain a reference volume curve corresponding to the current listening environment includes:
[0081] Step S21, adjusting the standard volume curve according to the distance deviation between the current listening distance and the standard listening distance to obtain a first adjustment curve; and / or
[0082] Exemplarily, step S21 includes: according to the distance deviation between the current listening distance and the standard listening distance, adjusting the standard volume curve to obtain a first adjustment curve. For example, when the current listening distance is greater than the standard listening distance, the standard volume curve is shifted upward; when the current listening distance is less than the standard listening distance, the standard volume curve is shifted downward.
[0083] Step S22 : adjusting the first adjustment curve according to the deviation between the current number of listening obstacles and the standard number of listening obstacles to obtain a second adjustment curve as a reference volume curve corresponding to the current listening environment.
[0084] Exemplarily, step S22 includes: performing a translation adjustment on the first adjustment curve based on a deviation between the current number of listening obstacles and the standard number of listening obstacles to obtain a second adjustment curve as a reference volume curve corresponding to the current listening environment. For example, when the current number of listening obstacles is greater than the standard number of listening obstacles, the standard volume curve is shifted upward; when the current number of listening obstacles is less than the standard number of listening obstacles, the standard volume curve is shifted downward.
[0085] Step S30 , correcting the current playback volume curve corresponding to the current listening environment according to the reference volume curve, so as to adjust the volume of the playback device.
[0086] Exemplarily, step S30 includes: modifying the current playback volume curve according to a degree of deviation between the reference volume curve and the current playback volume curve corresponding to the current listening environment, so as to adjust the volume of the playback device.
[0087] In step S30, before the step of correcting the current playback volume curve corresponding to the current listening environment based on the reference volume curve to adjust the volume of the playback device, the volume optimization method further includes:
[0088] Step B10 , plotting a correlation curve between playback volume and sound intensity based on the corresponding decibel values of the playback device at different volumes in the current listening environment, to obtain a current playback volume curve.
[0089] Exemplarily, step B10 includes: playing an audio signal through a playback device, determining different volumes for playing the current audio signal, measuring the decibel values corresponding to each volume using a sound pressure meter at a current listening distance and a current number of listening obstacles, and drawing a correlation curve between the playback volume and the sound intensity to obtain a current playback volume curve.
[0090] Embodiments of the present application provide a volume optimization method. Compared to the prior art method of determining a volume curve based on the speaker characteristics of a playback device and adjusting the volume of the playback device using the volume curve, the embodiment of the present application obtains a standard volume curve of the playback device in a standard listening environment; adjusts the standard volume curve based on the deviation between the user's current listening environment and the standard listening environment to obtain a reference volume curve corresponding to the current listening environment; and corrects the current playback volume curve corresponding to the current listening environment based on the reference volume curve to adjust the volume of the playback device. This achieves adaptation of the corresponding volume to the listening environment, so that an appropriate volume can always be configured for the playback device. This avoids the technical drawbacks of determining a volume curve based on the speaker characteristics of the playback device and adjusting the volume of the playback device using the volume curve, where, in an environment of the same size, the volume of the playback device is lower when the user is farther away or the environment is crowded due to many obstacles, or is higher when the user is closer or the environment is more spacious due to few obstacles, thereby improving the playback effect.
[0091] Example 2
[0092] Further, refer to Figure 2 Based on the first embodiment of the present application, in another embodiment of the present application, the same or similar contents as those in the first embodiment can be referred to above and will not be described in detail. On this basis, in step S30, the step of correcting the current playback volume curve corresponding to the current listening environment based on the reference volume curve to adjust the volume of the playback device includes:
[0093] Step S31, obtaining a decibel difference between a first decibel value of the same volume in the reference volume curve and a second decibel value on the current playback volume curve;
[0094] Step S32: convert the decibel difference into a corresponding DSP gain, and adjust the volume of the playback device according to the DSP gain.
[0095] In this embodiment, it should be noted that the DSP gain is used to represent the degree of debugging of the decibel difference.
[0096] Exemplarily, steps S31 to S32 include: obtaining, based on the reference curve and the current curve, a decibel difference between a first decibel value of the same volume in the reference volume curve and a second decibel value on the current playback volume curve; converting the decibel difference into a corresponding DSP gain, and adjusting the volume of the playback device according to the DSP gain. For example, when the decibel difference is greater than 0, the corresponding DSP gain is a positive value; when the decibel difference is less than 0, the corresponding DSP gain is a negative value.
[0097] Wherein, in step S32, the step of converting the decibel difference into a corresponding DSP gain includes:
[0098] Step C10: If the decibel difference is within a preset first decibel difference threshold, selecting a first conversion coefficient, and obtaining the DSP gain by calculating the product of the decibel difference and the first conversion coefficient;
[0099] Step C20: If the decibel difference is within a preset second decibel difference threshold, a second conversion coefficient is selected, and the DSP gain is obtained by calculating the product of the decibel difference and the second conversion coefficient.
[0100] In this embodiment, it should be noted that the preset first decibel difference threshold is a preset decibel difference critical value for selecting the first conversion coefficient; the preset second decibel difference threshold is a preset decibel difference critical value for selecting the second conversion coefficient.
[0101] Exemplarily, steps C10 to C20 include: if the decibel difference is within a preset first decibel difference threshold, selecting a first conversion coefficient, and obtaining the DSP gain by calculating the product of the decibel difference and the first conversion coefficient; if the decibel difference is within a preset second decibel difference threshold, selecting a second conversion coefficient, and obtaining the DSP gain by calculating the product of the decibel difference and the first conversion coefficient. For example, when the decibel difference is 1, the conversion coefficient is -4, and the DSP gain is -4.
[0102] Embodiments of the present application provide a volume optimization method. Compared to the prior art method of determining a volume curve based on the speaker characteristics of a playback device and adjusting the volume of the playback device using the volume curve, the embodiment of the present application obtains a standard volume curve of the playback device in a standard listening environment; adjusts the standard volume curve based on the deviation between the user's current listening environment and the standard listening environment to obtain a reference volume curve corresponding to the current listening environment; and corrects the current playback volume curve corresponding to the current listening environment based on the reference volume curve to adjust the volume of the playback device. This achieves adaptation of the corresponding volume to the listening environment, so that an appropriate volume can always be configured for the playback device. This avoids the technical drawbacks of determining a volume curve based on the speaker characteristics of the playback device and adjusting the volume of the playback device using the volume curve, where, in an environment of the same size, the volume of the playback device is lower when the user is farther away or the environment is crowded due to many obstacles, or is higher when the user is closer or the environment is more spacious due to few obstacles, thereby improving the playback effect.
[0103] Example 3
[0104] The present application also provides a volume optimization device, which is applied to a volume optimization device. The volume optimization device includes:
[0105] An acquisition module is used to obtain a standard volume curve of a playback device in a standard listening environment;
[0106] an adjustment module, configured to adjust the standard volume curve according to a deviation between the user's current listening environment and the standard listening environment, to obtain a reference volume curve corresponding to the current listening environment;
[0107] The correction module is used to correct the current playback volume curve corresponding to the current listening environment according to the reference volume curve, so as to adjust the volume of the playback device.
[0108] Optionally, the standard listening environment includes a standard listening distance and a standard number of listening obstacles.
[0109] In the step of obtaining a standard volume curve of the playback device in a standard listening environment, the obtaining module is further configured to:
[0110] Obtaining the standard listening distance and the number of standard listening obstacles;
[0111] According to the decibel values corresponding to different volumes of the playback device at the standard listening distance and the standard number of listening obstacles, a correlation curve between the playback volume and the sound intensity is drawn to obtain a standard volume curve.
[0112] Optionally, in the acquiring the standard listening distance, the acquiring module is further configured to:
[0113] When the playback device has a display screen, determining the standard listening distance corresponding to the playback device under a preset user viewing experience based on a mapping relationship between the size of the display screen and the standard listening distance;
[0114] When the playback device does not have a display screen, the standard listening distance corresponding to the playback device under a preset user listening experience is determined according to the speaker characteristics of the playback device.
[0115] Optionally, the current listening environment includes a current listening distance and a current number of listening obstacles.
[0116] In the step of adjusting the standard volume curve based on the deviation between the user's current listening environment and the standard listening environment to obtain a reference volume curve corresponding to the current listening environment, the adjustment module is further configured to:
[0117] adjusting the standard volume curve according to a distance deviation between the current listening distance and the standard listening distance to obtain a first adjustment curve; and / or
[0118] The first adjustment curve is adjusted according to a deviation between the current number of listening obstacles and the standard number of listening obstacles to obtain a second adjustment curve as a reference volume curve corresponding to the current listening environment.
[0119] Optionally, before the step of correcting the current playback volume curve corresponding to the current listening environment based on the reference volume curve to adjust the volume of the playback device, the adjustment module is further configured to:
[0120] According to the corresponding decibel values of the playback device at different volumes in the current listening environment, a correlation curve between the playback volume and the sound intensity is drawn to obtain the current playback volume curve.
[0121] Optionally, in the step of correcting the current playback volume curve corresponding to the current listening environment based on the reference volume curve to adjust the volume of the playback device, the correction module is further configured to:
[0122] Obtain a decibel difference between a first decibel value of the same volume in the reference volume curve and a second decibel value on the current playback volume curve;
[0123] The decibel difference is converted into a corresponding DSP gain, and the volume of the playback device is adjusted according to the DSP gain.
[0124] Optionally, in the step of converting the decibel difference into a corresponding DSP gain, the correction module is further configured to:
[0125] If the decibel difference is within a preset first decibel difference threshold, selecting a first conversion coefficient, and obtaining the DSP gain by calculating the product of the decibel difference and the first conversion coefficient;
[0126] If the decibel difference is within a preset second decibel difference threshold, a second conversion coefficient is selected, and the DSP gain is obtained by calculating the product of the decibel difference and the second conversion coefficient.
[0127] The volume optimization device provided by the present invention utilizes the volume optimization method described in the aforementioned embodiment to address the technical issue of poor playback quality. Compared to the prior art, the volume optimization device provided by the present invention achieves the same beneficial effects as the volume optimization method described in the aforementioned embodiment. Other technical features of the volume optimization device are the same as those disclosed in the aforementioned embodiment and are not further elaborated here.
[0128] Example 4
[0129] An embodiment of the present invention provides an electronic device, comprising: at least one processor; and a memory communicatively connected to 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 volume optimization method of the above-mentioned embodiment 1.
[0130] Reference below Figure 3 , which shows a schematic diagram of the structure of an electronic device suitable for implementing the 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, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 3 The electronic device shown is only an example and should not limit the functions and scope of use of the embodiments of the present disclosure.
[0131] like Figure 3 As shown, the electronic device may include a processing device (such as a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) or a program loaded from a storage device into a random access memory (RAM). In the RAM, various programs and data required for the operation of the electronic device are also stored. The processing device, ROM, and RAM are connected to each other via a bus. An input / output (I / O) interface is also connected to the bus.
[0132] Typically, the following systems can be connected to the I / O interface: input devices such as a touch screen, touchpad, keyboard, mouse, image sensor, microphone, accelerometer, gyroscope, etc.; output devices such as a liquid crystal display (LCD), speaker, vibrator, etc.; storage devices such as a magnetic tape, hard disk, etc.; and communication devices. The communication device can allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. Although the figures show electronic devices with various systems, it should be understood that it is not required to implement or have all of the systems shown. More or fewer systems may be implemented or have instead.
[0133] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via a communication device, or installed from a storage device, or installed from a ROM. When the computer program is executed by a processing device, the above-mentioned functions defined in the method of the embodiment of the present disclosure are performed.
[0134] The electronic device provided by the present invention employs the volume optimization method of the first or second embodiment above to solve the technical problem of poor playback quality. Compared with the prior art, the beneficial effects of the electronic device provided by the embodiment of the present invention are the same as those of the volume optimization method provided by the first embodiment above. Other technical features of the electronic device are the same as those disclosed in the above embodiment and are not further described here.
[0135] It should be understood that various parts of the present disclosure can be implemented with hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in an appropriate manner.
[0136] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any modifications or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in the present invention should be included in the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be based on the scope of protection of the claims.
[0137] Example 5
[0138] This embodiment provides a computer-readable storage medium having computer-readable program instructions stored thereon, and the computer-readable program instructions are used to execute the volume optimization method in the above-mentioned embodiment 1.
[0139] The computer-readable storage medium provided in the embodiment of the present invention can be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination thereof. More specific examples of computer-readable storage media can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this embodiment, the computer-readable storage medium can be any tangible medium that contains or stores a program that 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 using any appropriate medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.
[0140] The computer-readable storage medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0141] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by an electronic device, the electronic device: obtains a standard volume curve of the playback device in a standard listening environment; adjusts the standard volume curve based on the deviation between the user's current listening environment and the standard listening environment to obtain a reference volume curve corresponding to the current listening environment; and corrects the current playback volume curve corresponding to the current listening environment based on the reference volume curve to adjust the volume of the playback device.
[0142] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on the remote computer or server. In cases involving 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 may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0143] The flow charts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0144] The modules involved in the embodiments described in this disclosure may be implemented in software or hardware, wherein the name of a module does not necessarily limit the unit itself.
[0145] The computer-readable storage medium provided by the present invention stores computer-readable program instructions for executing the aforementioned volume optimization method, thereby resolving the technical issue of poor playback quality. Compared to the prior art, the beneficial effects of the computer-readable storage medium provided by the embodiments of the present invention are similar to those of the volume optimization method provided by the aforementioned embodiment, and are not further elaborated here.
[0146] Example 6
[0147] The present application also provides a computer program product, including a computer program, which implements the steps of the volume optimization method as described above when the computer program is executed by a processor.
[0148] The computer program product provided by this application solves the technical problem of poor playback 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, which will not be repeated here.
[0149] The above are only preferred embodiments of the present application and do not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent processing scope of the present application.
Claims
1. A volume optimization method, characterized in that: The volume optimization method comprises: Obtain the standard volume curve of the playback device in a standard listening environment; Adjusting the standard volume curve according to the deviation between the user's current listening environment and the standard listening environment to obtain a reference volume curve corresponding to the current listening environment; Correcting the current playback volume curve corresponding to the current listening environment based on the reference volume curve to adjust the volume of the playback device; The standard listening environment includes a standard listening distance and a standard number of listening obstacles, and the standard volume curve is a correlation curve between the playback volume and sound intensity of the playback device in the standard listening environment; The step of obtaining a standard volume curve of the playback device in a standard listening environment comprises: The standard listening distance is obtained by measuring the distance between the sound pressure meter and the playback device; Obtaining an image of the environment in which the playback device is located, inputting the image into a preset target detection model to select obstacle areas in the image to obtain rectangular target frames corresponding to the obstacle areas, and obtaining the number of standard listening obstacles by obtaining the number of rectangular target frames; According to the decibel values corresponding to different volumes of the playback device at the standard listening distance and the standard number of listening obstacles, a correlation curve between the playback volume and the sound intensity is drawn to obtain a standard volume curve.
2. The volume optimization method according to claim 1, wherein: The obtaining of the standard listening distance includes: When the playback device has a display screen, determining the standard listening distance corresponding to the playback device under a preset user viewing experience based on a 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 standard listening distance corresponding to the playback device under a preset user listening experience is determined according to the speaker characteristics of the playback device.
3. The volume optimization method according to claim 1, wherein: The current listening environment includes the current listening distance and the current number of listening obstacles. The step of adjusting the standard volume curve according to the deviation between the user's current listening environment and the standard listening environment to obtain a reference volume curve corresponding to the current listening environment includes: adjusting the standard volume curve according to a distance deviation between the current listening distance and the standard listening distance to obtain a first adjustment curve; and / or The first adjustment curve is adjusted according to a deviation between the current number of listening obstacles and the standard number of listening obstacles to obtain a second adjustment curve as a reference volume curve corresponding to the current listening environment.
4. The volume optimization method according to claim 1, wherein: Before the step of correcting the current playback volume curve corresponding to the current listening environment based on the reference volume curve to adjust the volume of the playback device, the volume optimization method further includes: According to the corresponding decibel values of the playback device at different volumes in the current listening environment, a correlation curve between the playback volume and the sound intensity is drawn to obtain the current playback volume curve.
5. The volume optimization method according to claim 1, wherein: The step of correcting the current playback volume curve corresponding to the current listening environment based on the reference volume curve to adjust the volume of the playback device includes: Obtain a decibel difference between a first decibel value of the same volume in the reference volume curve and a second decibel value on the current playback volume curve; The decibel difference is converted into a corresponding DSP gain, and the volume of the playback device is adjusted according to the DSP gain.
6. The volume optimization method according to claim 5, wherein: The step of converting the decibel difference into a corresponding DSP gain comprises: If the decibel difference is within a preset first decibel difference threshold, selecting a first conversion coefficient, and obtaining the DSP gain by calculating the product of the decibel difference and the first conversion coefficient; If the decibel difference is within a preset second decibel difference threshold, a second conversion coefficient is selected, and the DSP gain is obtained by calculating the product of the decibel difference and the second conversion coefficient.
7. A volume optimization device, characterized in that: The volume optimization device comprises: An acquisition module is used to obtain a standard volume curve of a playback device in a standard listening environment; an adjustment module, configured to adjust the standard volume curve according to a deviation between the user's current listening environment and the standard listening environment, to obtain a reference volume curve corresponding to the current listening environment; a correction module, configured to correct the current playback volume curve corresponding to the current listening environment based on the reference volume curve, so as to adjust the volume of the playback device; The standard listening environment includes a standard listening distance and a standard number of listening obstacles, and the standard volume curve is a correlation curve between the playback volume and sound intensity of the playback device in the standard listening environment; The acquisition module is further used to: The standard listening distance is obtained by measuring the distance between the sound pressure meter and the playback device; Obtaining an image of the environment in which the playback device is located, inputting the image into a preset target detection model to select obstacle areas in the image to obtain rectangular target frames corresponding to the obstacle areas, and obtaining the number of standard listening obstacles by obtaining the number of rectangular target frames; According to the decibel values corresponding to different volumes of the playback device at the standard listening distance and the standard number of listening obstacles, a correlation curve between the playback volume and the sound intensity is drawn to obtain a standard volume curve.
8. An electronic device, characterized in that: The electronic device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor. 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 according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a program for implementing the volume optimization method. The program for implementing the volume optimization method is executed by a processor to implement the steps of the volume optimization method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Automatic loudspeaker direction adjustment method based on television, and television
CN108737896A
Audio playing method and audio playing device
CN111208970A
Volume control method and electronic device capable of automatic volume adjustment
US20120039489A1