Sound control method and electronic equipment
By obtaining the playback parameter information of the electronic device, using the acoustic propagation model to determine the target volume threshold and performing interference control processing, the problem of unintelligent volume control of the electronic device is solved, and intelligent and humanized volume management is realized, avoiding interference to the surrounding space.
Patent Information
- Application Number
- CN202510377172.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-27
- Publication Date
- 2025-07-08
AI Technical Summary
Existing electronic devices lack intelligence and humanization in volume control, which leads to interference in the surrounding space when the volume is too high, and it is difficult for users to hear clearly when the volume is too low, affecting the user experience.
By obtaining the playback parameter information of the current space, the target acoustic propagation model is used to determine the target volume threshold, and interference control processing is performed when the volume exceeds the threshold, including volume alarm prompts and user behavior interference.
It realizes intelligent adjustment of the volume according to the actual situation of the current space to avoid interference to the surrounding space, improves the intelligence and humanization of electronic devices, and improves the user experience.
Smart Images

Figure CN120282060A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of intelligent devices, and particularly to a sound control method and an electronic device. Background Art
[0002] In modern life, various types and functions of electronic devices have become an indispensable part of people's daily lives. Some electronic devices, such as televisions, projectors, or speakers, etc., will emit sounds during operation. When the volume is too high, it will cause unnecessary sound interference to the space outside the space where the device is located, while when the volume is too low, it will be difficult for users to hear clearly, resulting in a poor user experience.
[0003] Therefore, how to improve the intelligence and humanization of electronic devices in terms of volume control has become a technical problem to be solved urgently. Summary of the Invention
[0004] This application mainly provides a sound control method and an electronic device. The technical solution of this application is realized as follows:
[0005] In a first aspect, an embodiment of this application provides a sound control method, and the method includes:
[0006] Obtain the playback parameter information of the target audio in the current space;
[0007] Based on the playback parameter information of the target audio, determine the target volume threshold according to the target acoustic propagation model. The target volume threshold is used to represent the maximum volume at which the electronic device does not cause interference to the space outside the current space;
[0008] When the current volume of the electronic device is greater than or equal to the target volume threshold, perform interference control processing.
[0009] In a second aspect, an embodiment of this application provides an electronic device. The electronic device includes a memory and a processor, where:
[0010] The memory is used to store a computer program that can run on the processor;
[0011] The processor is used to execute the computer program in the memory to implement the steps of the sound control method as described in the first aspect. Description of the Drawings
[0012] Figure 1 It is a schematic flowchart of a sound control method provided by an embodiment of this application;
[0013] Figure 2 It is a schematic diagram of obtaining training data provided by an embodiment of this application Figure 1 ;
[0014] Figure 3 Schematic diagram of obtaining training data provided by an embodiment of the present application Figure 2 ;
[0015] Figure 4 Schematic diagram of an electronic device in the current space provided by an embodiment of the present application;
[0016] Figure 5 Schematic diagram of the composition structure of a voice control device provided by an embodiment of the present application;
[0017] Figure 6 Schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present application. Detailed implementation manners
[0018] In order to more thoroughly understand the features and technical content of the embodiments of the present application, the implementation of the embodiments of the present application will be described in detail below with reference to the accompanying drawings. The accompanying drawings are for reference and illustration purposes only and are not used to limit the embodiments of the present application.
[0019] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those of ordinary skill in the technical field to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0020] In the following description, reference is made to "some embodiments", which describe a subset of all possible embodiments. However, it can be understood that "some embodiments" can be the same subset or different subsets of all possible embodiments and can be combined with each other without conflict.
[0021] It should also be noted that the terms "first / second / third" involved in the embodiments of the present application are only used to distinguish similar objects and do not represent a specific order for the objects. It can be understood that "first / second / third" can be interchanged with a specific order or sequence when allowed, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.
[0022] In addition, the mention of "embodiments" in this document means that the specific features, structures, or characteristics described in connection with the embodiments can be included in at least one embodiment of the present application. The phrase appears in various places in the specification and does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment mutually exclusive with other embodiments. Those skilled in the art will explicitly and implicitly understand that the embodiments described herein can be combined with other embodiments.
[0023] The following is a related introduction to the related technologies of the present application.
[0024] At present, with the development of electronic devices, people can use electronic devices, such as televisions, projectors, etc., to realize the playback functions of video, audio and other devices. When playing sound, too low voice volume will lead to a decline in the comfort of the user's listening experience, but too high volume will also penetrate the building and have a noise impact on the surrounding neighbors. Especially in the context of poor sound insulation in houses and aging equipment, sound is more likely to penetrate, leading to an escalation of neighborhood conflicts.
[0025] For the above problems, the solutions include physical sound insulation renovation, such as installing sound-absorbing cotton or sound insulation boards on the walls, but the project volume is large and the cost is high. Or, the solutions include renovating the electronic device and performing noise reduction processing on the played sound to reduce the leakage of sound, but this method is also difficult to ensure that the noise of the electronic device will not have an impact on the neighbors at all.
[0026] Based on this, the embodiments of the present application provide a sound control method and an electronic device. According to the playback parameter information in the current space, the target volume threshold of the current space is determined, and the volume below the target volume threshold will not have an impact on the space outside the current space. In this way, the volume of the electronic device is controlled based on the target volume threshold, and interference control processing is performed when the volume exceeds the target volume threshold. In this way, the electronic device can not only determine the target volume threshold in combination with the actual situation of the current space, which is practical and flexible, but also avoid interfering with other spaces outside the current space, improving the intelligence and humanization of the electronic device.
[0027] The following further details the present application through the drawings and specific embodiments.
[0028] In an embodiment of the present application, Figure 1 is a schematic flowchart of a sound control method provided by an embodiment of the present application. This method can be applied to an electronic device, as Figure 1 shown, this method may include:
[0029] S101, obtain the playback parameter information of the target audio in the current space.
[0030] In the embodiment of the present application, the current space is a relatively enclosed space surrounded by a mixture of walls constructed of one or more materials such as glass, bricks, concrete, marble, etc., and the electronic device can be set at any spatial position in the current space.
[0031] In the embodiment of the present application, when the electronic device is first started in the current space, the target audio pre-set in the electronic device can be played, where the volume, content, etc. of the target audio can be pre-set.
[0032] It should be noted that an acoustic decibel detector or other acquisition device, as well as other sound playback devices such as speakers, are installed on the electronic device. In this way, after the electronic device plays the target audio, the playback parameter information is obtained through the above acquisition device. Among them, the playback parameter information includes some parameters related to the reflection, transmission, etc. of the sound wave after the target audio is played in the current space, and has an associated relationship with the sound transmission loss situation such as the penetration and isolation of the sound by the wall in the current space. The playback parameter information includes at least one parameter, and these parameters can reflect the propagation and transmission situation of the sound wave by the wall in the current space.
[0033] S102. Based on the playback parameter information of the target audio, determine the target volume threshold based on the target acoustic propagation model.
[0034] Among them, the target volume threshold is used to represent the maximum volume at which the electronic device does not interfere with the space outside the current space.
[0035] In the embodiment of the present application, the target acoustic propagation model can be a pre-constructed and trained model. Among them, the network structure of the target acoustic propagation model can be a deep neural network. The target acoustic propagation model uses the playback parameter information obtained in the previous step as input parameters, and through model calculation, outputs the target volume threshold.
[0036] It should be noted that based on the playback parameter information collected after the target audio is played in the current space, the target acoustic propagation model can determine the sound insulation performance of the current space for the sound wave, and then determine the volume limit for playing the audio by the sound wave in the current space, that is, the target volume threshold. It should be understood that when the electronic device plays the audio at a volume below the target volume threshold, it will not cause noise interference to the space outside the current space. That is to say, in this case, the volume of the sound played by the electronic device in the space outside the current space is less than the volume value that can be perceived.
[0037] S103. When the current volume of the electronic device is greater than or equal to the target volume threshold, perform interference control processing.
[0038] It should be noted that after determining the target volume threshold based on the previous steps, an associated relationship can be established between the target volume threshold and the current space, and the target volume threshold can be used as the maximum volume at which the audio can be played in the current space. When the user attempts to adjust the volume of the electronic device to exceed the target volume threshold, the electronic device can perform interference control processing.
[0039] Among them, the interference control processing can refer to the processing in which the electronic device can interact with the user through the display interface of the electronic device or other means to interfere with or interrupt the user's operation of continuously adjusting the sound of the electronic device upward.
[0040] It should also be noted that the target volume threshold determined by the electronic device is only applicable to the current space. When the walls of the current space change, or the current space where the electronic device is located changes, the electronic device can re-execute the above steps S101 to S102 to re-determine the target volume threshold corresponding to the new current space.
[0041] The embodiment of the present application provides a sound control method. According to the playback parameter information in the current space, the target volume threshold of the current space is determined, and the volume below the target volume threshold will not affect the space outside the current space. In this way, the volume of the electronic device is controlled based on the target volume threshold, and interference control processing is performed when the volume exceeds the target volume threshold. In this way, the electronic device can not only determine the target volume threshold in combination with the actual situation of the current space, which is practical and flexible, but also avoid interfering with other spaces outside the current space, improving the intelligence and user-friendliness of the electronic device.
[0042] In some embodiments, the interference control processing includes at least one of displaying a volume warning prompt and controlling the volume of the electronic device not to increase.
[0043] In the embodiment of the present application, the interference control processing can include reminding the user, such as displaying a volume warning prompt on the display interface of the electronic device to inform the user that the current volume has reached the target volume threshold, and increasing the volume further may cause noise interference to the space outside the current space.
[0044] Alternatively, in the embodiment of the present application, the interference control processing can also include interfering with the user's behavior. For example, when the volume of the electronic device reaches the target volume threshold, the user cannot increase the volume any further through a remote control device or the like.
[0045] It should be noted that the interference control processing can also include other processing methods, such as emitting an alarm sound lower than the target volume threshold, etc., which are not specifically limited here.
[0046] It should also be noted that the above multiple interference control processing methods can be combined with each other, which are not specifically limited here.
[0047] The embodiment of the present application provides a sound control method. The interference control processing can include displaying a volume warning, controlling the volume of the electronic device not to increase, etc. In this way, the user can be reminded in time that the current sound is too loud, and a choice space is left for the user, improving the flexibility of the method.
[0048] In another embodiment of the present application, the method can further include:
[0049] S201, obtaining a training data set.
[0050] Among them, the training data set includes volume thresholds corresponding to different playback parameter test information respectively.
[0051] It should be noted that the building materials constituting different spaces are different. Therefore, after the same target audio is played in different spaces, different playback parameter test information can be collected. The playback parameter test information should at least include the parameters included in the foregoing playback parameter information, and is used to reflect the transmission and blocking of sound waves in the corresponding test space.
[0052] In the embodiment of the present application, the training data set further includes volume limits (or volume thresholds) in different test spaces. There is a corresponding relationship between the playback parameter information and the volume threshold. The playback parameter information obtained in a test space and the corresponding volume threshold are used as a set of training data corresponding to the test space.
[0053] S202. Train the initial acoustic propagation model based on the training data set to obtain a target acoustic propagation model.
[0054] Among them, the target acoustic propagation model is used to determine the corresponding relationship between the playback parameter information and the volume threshold.
[0055] In the embodiment of the present application, the playback parameter information is used as the input parameter of the initial acoustic propagation model, and the minimum difference between the output value of the initial acoustic propagation model and the volume threshold corresponding to the input playback parameter information is used as the optimization goal. The input parameters of the initial acoustic propagation model are optimized. For example, the initial acoustic propagation model is trained by means of backpropagation to obtain a target acoustic propagation model.
[0056] The target acoustic propagation model trained in the above manner establishes the corresponding relationship between each parameter in the playback parameter information and the volume threshold, that is, the corresponding relationship between the current space where the electronic device is located and the target volume threshold. The target volume threshold is used to characterize the sound insulation performance index in the sound environment formed by the current space and the building components.
[0057] In the embodiment of the present application, the trained target acoustic propagation model can be stored in the electronic device, so that when the electronic device is placed in different spaces, the target volume threshold corresponding to the current space can be determined based on the foregoing steps S101 to S102.
[0058] It should be noted that the electronic device can also update the stored target acoustic propagation model based on the playback parameter information collected during use and the volume threshold set by the user to better adapt to the user's usage environment.
[0059] An embodiment of the present application provides a sound control method. Based on the playback parameter test information corresponding to the volume thresholds under different test parameters in a training data set, an initial acoustic propagation model is trained to obtain a target acoustic propagation model. In this way, based on this data-driven method, a reasonable target volume threshold can be determined for different acoustic environments, improving the accuracy, scientificity, and pertinence of the model.
[0060] In some embodiments, step S201 above, obtaining a training data set, may include:
[0061] S301, in different test spaces, control a speaker to play a test audio, and obtain the corresponding playback parameter test information.
[0062] The playback parameter test information at least includes incident power, transmitted power, reflected power, and volume threshold, and the transmitted power is less than or equal to a first preset value.
[0063] In the embodiment of the present application, the incident power and the transmitted power can be used to determine the Sound Transmission Loss (STL) of sound passing through a building component based on the following formula (1):
[0064]
[0065] Among them, the sound transmission loss STL is used to represent the energy loss situation of the sound wave after the sound passes through the building component and is absorbed by the building component. P in is the incident power, and P tr is the transmitted power.
[0066] In the embodiment of the present application, the "two-room method" can be used to measure the sound transmission loss. The "two-room method" includes two configurations: both the sound source side and the receiving side are reverberation chambers, and the sound source side is a reverberation chamber while the receiving side is an anechoic chamber. Since modeling the sound source room and the receiving room in the sound transmission loss will cause extremely large computational amounts, therefore, as Figure 2 shown, in the embodiment of the present application, the sound source side of the test sample (the building component 401 of the test space) is set as an ideal diffusion field, and the receiving side is an ideal anechoic end, so as to extract the ideal sound transmission loss that has nothing to do with the experiment. In addition, it is assumed that the test sample has little influence on the sound field on the sound source side. This is the case for relatively rigid structures with low sound absorption characteristics, and generally for structures with high sound transmission loss (in this model, the sound transmission loss is higher than 40 dB).
[0067] As Figure 2As shown, the electronic device is arranged on the sound source side in the test space and plays an audio signal to generate a diffuse field 402. The diffuse field 402 is determined by the volume of the audio played by the electronic device and is defined as the sum of plane sound waves with random directions and random phases generated by playing the audio, plus the corresponding reflected waves. The sound source side is an ideal diffuse field. In the sound source side, the sound field and its reflection are not modeled, but are applied as a load on the building component 401 in the test space. The building component 401 is equivalent to the anechoic end of the receiving side with the air domain truncated by a perfect matched layer (PML).
[0068] Among them, the electronic device is arranged as a sound source on the sound source side. After the electronic device plays the target audio, the sound pressure level is measured within a certain distance around the sound source. The sound intensity at this point can be calculated and determined using the sound pressure level. Integrating the sound intensity over the area of the measured building component yields the incident power P on the building component 401 corresponding to the target audio. in 。
[0069] Among them, the sound pressure levels at multiple points are measured on the back surface (i.e., the receiving chamber) of the building component 401. The sound intensity at each measurement point is determined using these sound pressure levels. Weighted averaging these sound intensities over the equivalent absorption area of the receiving chamber gives the transmitted power P transmitted into the receiving chamber. tr , and the transmitted power is used to reflect the relevant information on the sound transmission loss of the audio played by the electronic device by the building component 401 in the test space. Referring to this method, the sound pressure levels at multiple points are measured on the front surface of the building component 401, and the reflected power corresponding to the target audio on the building component 401 can be determined.
[0070] It should be understood that for a diffuse field 402 with different sound energies, when passing through the same building component 401, the sound energy absorbed by the building component 401 remains unchanged. Thus, when the difference between the incident power corresponding to the sound energy of the diffuse field 402 and the power corresponding to the sound energy absorbed by the building component 401 is less than or equal to the first preset value, that is, when the transmitted power is less than the first preset value, the sound transmission loss approximately reaches 100%. At this time, it is the maximum volume (i.e., the volume threshold) that the electronic device can play in the test space. Beyond this volume threshold, after the diffuse field 402 generated by the audio played by the electronic device is absorbed by the building component 401, the transmitted power on the other side of the building component 401 will exceed the first preset value, affecting the outside of the test space. Therefore, the volume value of the played audio when the transmitted power P tr is less than the first preset value can be used as the volume threshold and used as the sound insulation performance index of using this building material in the current space.
[0071] In the embodiment of the present application, based on the aforementioned "two-chamber method", a transmitting room (sound source side) and a receiving room (receiving side) are constructed in the test space, and electronic equipment is set in the transmitting room. The transmitting room and the receiving room are isolated by different building components as sound insulation walls to simulate the sound propagation environment in an actual building. Furthermore, the electronic equipment is controlled to play audio, and the incident power P of the played audio is gradually increased. in Make an increase adjustment and monitor the transmitted power P on the receiving room side tr , until the transmitted power P tr When the first preset value is reached, the currently collected incident power P in , transmission power P tr As well as the reflected power and the incident power P in The determined volume threshold is used as a set of test data corresponding to the current test space and the current building component. In this way, for different combinations of building components and test spaces, the above process is repeated to obtain multiple sets of test data.
[0072] In an embodiment of the present application, the reflected power collected by the electronic device is correlated with the distance between the electronic device and the building components around the test space, as well as the material of the building components (related to sound transmission loss). After the electronic device plays audio in the test space, it diffuses sound wave signals to the building components in a specified direction around the test space. These sound wave signals are reflected back after contacting the walls of the test space. The sound wave decibel detector of the electronic device collects the reflected sound wave signals, and determines the reflected power based on the reflected sound wave signals. Among them, the electronic device can diffuse the sound wave signals in different directions of the test space to collect the reflected sound waves of the building components in the test space in different directions, and then use the optimization algorithm to establish a numerical model of the test space, so as to model the fitting data of the walls around the test space. In the case of irregular walls, a heuristic algorithm can also be used to fit each wall separately. For example, if Figure 3 As shown, fitting is performed with the electronic device as the center, and a fitting curve 403 of the building components within a 360-degree range around it is determined according to its reflected power. It can be seen that the test space where the electronic device is located is a rectangular space with one side open.
[0073] In this way, in the test space, the volume of the audio played by the electronic device is randomly changed, and the corresponding incident power, transmitted power and reflected power are collected. When the transmitted power is less than a first preset value, a set of collected playback parameter information, such as incident power, transmitted power, reflected power and volume threshold, is used as a set of training data corresponding to the test space.
[0074] S302: construct a training data set based on the playback parameter test information corresponding to each of the multiple test spaces.
[0075] Further, using the above method in different test spaces, playback parameter test information corresponding to different test spaces is obtained, that is, a training data set is constructed from multiple groups of playback parameter test information.
[0076] An embodiment of the present application provides a sound control method, which obtains corresponding playback parameter test information under different test spaces and constructs a training data set. In this way, using the actually measured data to construct the training data set can improve the diversity of the training data and thus improve the accuracy of the model.
[0077] In another embodiment of the present application, step S102, based on the playback parameter information of the target audio, determining the target volume threshold based on the target acoustic propagation model may include:
[0078] S501, based on the playback parameter information of the target audio, determine the environmental information of the current space based on the target acoustic propagation model.
[0079] As described above, after the electronic device plays a target audio in the current space, the playback parameter information corresponding to the target audio is collected, such as the incident power and the reflected power. It should be understood that it is difficult for the electronic device to place a sound wave intensity collection device outside the current space during actual use, and it is thus difficult to obtain the transmitted power. Therefore, the electronic device can use the incident power and the reflected power and other playback parameter information collected after playing the target audio as the input parameters of the target acoustic propagation model to determine the environmental information of the current space.
[0080] Alternatively, in some embodiments, the electronic device may include a sound wave intensity collection device that can be separated from the electronic device and is arranged outside the current space. The sound wave intensity collection device can collect the transmitted power when the electronic device plays the target audio, and further use the incident power, the reflected power, and the transmitted power and other playback parameter information as the input parameters of the target acoustic propagation model to determine the environmental information of the current space.
[0081] In the embodiment of the present application, the environmental information of the current space is used to characterize the relevant information of the building components in the current space, such as including the size of the current space, the position of the electronic device in the current space, the type and thickness of the building materials, etc., which are not specifically limited herein. Among them, the environmental information of the current space can be determined by the incident power and the transmitted power, or can be determined by the incident power and the reflected power, or can be determined jointly by the incident power, the transmitted power, and the reflected power, which are not specifically limited herein.
[0082] S502, based on the environmental information of the current space, determine the target volume threshold based on the target acoustic propagation model.
[0083] In the embodiment of the present application, the environmental information of the current space can be an intermediate value of the target acoustic propagation model and can be selectively not output to the user.
[0084] It should be understood that different spaces have different transmission losses for the target audio, that is, there is a one-to-one correspondence between the environmental information of the current space and the target volume threshold. Therefore, the target acoustic propagation model can calculate and determine the corresponding target volume threshold based on the environmental information of the current space.
[0085] The embodiment of the present application provides a sound control method. The target acoustic propagation model determines the environmental information of the current space according to the playback parameter information, and then determines the target volume threshold in the current space based on the environmental information of the current space. In this way, the target volume threshold can be better adapted to the current space, and the credibility of the determined target volume threshold is improved.
[0086] In some embodiments, the method may further include:
[0087] S601, in response to a user's control operation, pop up a prompt message to the user through the display interface.
[0088] Among them, the prompt message is used to instruct the user to input the environmental information of the current space.
[0089] In the embodiment of the present application, the user can perform a control operation on the electronic device through an interaction device such as a remote control device. The electronic device responds to the user's control operation and displays a prompt message to the user through the display interface.
[0090] It should be noted that the prompt message can display in the form of a graphical user interface (GUI) that the user needs to input the environmental information of the current space, for example, including the size of the current space, the position of the electronic device in the current space, the type and thickness of building materials, etc. Each item corresponds to a text box for the user to input or select.
[0091] S602, monitor the user's input operation on the display interface and obtain the environmental information of the current space.
[0092] In the embodiment of the present application, the user can input one or more items of the environmental information of the current space in the corresponding text box on the GUI interface. The electronic device monitors the information input by the user in the text box, obtains one or more items of the environmental information of the current space input by the user, and based on the foregoing step S502, the foregoing target acoustic propagation model determines the target volume threshold.
[0093] It should be noted that the electronic device may not require the user to input each item of the environmental information of the current space in the prompt message entropy, but at least the type of building materials should be included.
[0094] An embodiment of the present application provides a sound control method. A user can input environmental information of the current space on a display interface. In this way, even when the detection device of the electronic device is abnormal, an accurate target volume threshold can be determined, improving the stability of the method.
[0095] In another embodiment of the present application, for the foregoing step S101, obtaining the playback parameter information of the target audio in the current space may include: controlling the speaker to play the target audio, and collecting the playback parameter information of the target audio. The playback parameter information of the target audio at least includes the incident power and the reflected power.
[0096] In an embodiment of the present application, when the electronic device needs to re-determine the target volume threshold, for example, when the surrounding walls of the current space where the electronic device is located change, the electronic device moves, or the electronic device changes the moving space, the electronic device can, based on the user's control, play a target audio. The electronic device determines the target volume threshold based on the incident power and the reflected power collected from playing the target audio. In some embodiments, it may also include the transmitted power, based on the steps in the foregoing embodiments.
[0097] An embodiment of the present application provides a sound control method. The electronic device can collect the playback parameter information of the target audio by playing the target audio. In this way, the electronic device can determine the target volume threshold without user intervention, improving the intelligence level of the electronic device.
[0098] In some embodiments, as Figure 4 shown, the electronic device 110 includes at least one acoustic wave detection module, and the at least one acoustic wave detection module is respectively arranged on different planes of the electronic device.
[0099] It should be noted that at least one acoustic wave detection module is arranged on at least one plane of the electronic device 110. Each acoustic wave detection module may include an acoustic wave detection module, such as an acoustic wave decibel detector and a speaker. The electronic device 110 diffuses acoustic waves in the direction facing the current space through the speaker on a certain plane, and collects the incident power and the reflected power through the acoustic wave detection module to obtain the playback parameter information of the target audio in the current space. Exemplarily, Figure 4 shown is a schematic diagram of the electronic device 110 arranged in the current space. Taking the example that acoustic wave detection modules are arranged on all 6 faces of the electronic device 110, after the electronic device 110 plays the target audio, it can determine the environmental information of the current space, such as the distance between the electronic device 110 and the building components around the current space, the thickness and material of the building components, etc., based on the playback parameter information such as the incident power and the reflected power obtained by the acoustic wave detection modules arranged on the 6 faces.
[0100] It should also be noted that infrared rangefinders can be set on different planes of the electronic device. Based on the information collected by the infrared rangefinders, the electronic device can determine some of the environmental information of the current space, such as the size of the current space, the position of the electronic device in the current space, etc. These information are combined with the building material information, thickness and other information of the current space determined by the electronic device based on the playback parameter information collected by the acoustic wave detection module to determine the environmental information of the current space, and further determine the target volume threshold corresponding to the electronic device in the current space.
[0101] In some embodiments, the method may further include:
[0102] S701, based on the positions of the multiple acoustic wave detection modules respectively, determine the playback setting parameters corresponding to the multiple acoustic wave detection modules respectively.
[0103] It should be noted that after the speakers on different surfaces of the electronic device play the target audio, the sound waves spread in different directions of the electronic device and reach the same position in the current space at different times, which may cause a deviation in the incident power obtained by the electronic device; the sound waves reach the same position of the building components around the current space at different times, and the time feedback to the same acoustic wave detection module is also different, which may cause a deviation in the reflected power obtained by the acoustic wave detection module.
[0104] Therefore, in order to improve the accuracy of the playback parameter information collected by the acoustic wave detection module, in the embodiments of the present application, the playback setting parameters of each acoustic wave detection module can be set respectively based on the positions of each acoustic wave detection module relative to the building components of the electronic device. Among them, the playback setting parameters can include the playback volume, playback direction, etc. of the target audio, so that the target audio played by each acoustic wave detection module reaches the same position of the building components at the same time, and also reaches the same location in the current space at the same time during the transmission of the sound waves, and has the same incident power and reflected power at the same position in the current space. It should be understood that for the building components at the same position, the playback setting parameters of the acoustic wave detection modules at different positions are different; when the positions of the building components to be reached are different, the playback setting parameters of the same acoustic wave detection module also change accordingly.
[0105] S702, based on the playback setting parameters corresponding to the acoustic wave detection module, play the target audio.
[0106] In the embodiments of the present application, after the electronic device determines the playback setting parameters corresponding to each acoustic wave detection module, each acoustic wave detection module can play the target audio based on its corresponding playback setting parameters, and then at least one of each acoustic wave detection module collects the corresponding playback parameter information. It should be understood that after adopting this embodiment, the playback parameter information collected by each acoustic wave detection module set at different positions of the electronic device should be consistent.
[0107] An embodiment of the present application provides a sound control method. Sound wave detection modules are respectively arranged on different surfaces of an electronic device. By setting the playback setting parameters of each sound wave detection module, the target audio played by different sound wave detection modules can reach the same position simultaneously. In this way, the sound differences generated by the sound wave detection modules at different angles are avoided, the accuracy is improved, and the user experience is improved when in use.
[0108] In some embodiments, the method further includes: when the environmental information of the current space meets a first preset condition, taking the maximum volume of the electronic device as the target volume threshold.
[0109] In the embodiment of the present application, the first preset condition is used to determine whether the sound insulation degree of the current space meets the requirements. Exemplarily, the environmental information of the current space meeting the first preset condition may include: the size of the current space meets a preset space threshold, or the thickness of the building materials of the current space meets a preset thickness threshold, etc., which are not listed one by one here.
[0110] It should be noted that when the electronic device detects that the environmental information of the current space meets the first preset condition, or determines that the target volume threshold is higher than the maximum volume of the electronic device, it can be determined that even if the volume of the electronic device is adjusted to the maximum, it will not interfere with the space outside the current space. In this case, the volume of the electronic device may not be restricted, that is, the maximum volume of the electronic device, including its external speakers and other devices, can be taken as the target volume threshold.
[0111] An embodiment of the present application provides a sound control method. When the environmental information of the current space meets the first preset condition, the maximum volume of the electronic device can be taken as the target volume threshold. In this way, it is possible to avoid the situation that users far away from the electronic device are difficult to hear clearly due to the limitation of the volume threshold when the current space is large, and the reliability of the electronic device is improved.
[0112] The following combines specific application scenarios to elaborate in detail on the sound control method provided by the embodiment of the present application. The method may include:
[0113] (1) Experimentally construct a training dataset.
[0114] As shown in the foregoing formula (1), the total incident power P of the building component in and the logarithmic ratio of the total transmitted power P tr represent the sound transmission loss STL through the building component.
[0115] For the total incident power P in, a loudspeaker with a known power can be placed in the sound chamber as the sound source. The sound pressure level is measured at a certain distance around the sound source. The sound intensity at this point can be calculated using the sound pressure level. Integrating the sound intensity over the area of the building component to be measured, the total incident power P incident on the component can be obtained. in .
[0116] For the total transmission power P tr , measure the sound pressure levels at multiple points on the back of the building component to be measured (i.e., the receiving chamber in the aforementioned "two-chamber method"). Calculate the sound intensity at each measurement point using these sound pressure levels. Weighted average these sound intensities over the equivalent absorption area of the receiving chamber to obtain the total transmission power P transmitted to the receiving chamber. tr .
[0117] Through a large number of experiments, test the sound insulation performance of building components made of different materials, and find out the limiting situation where sound propagation is completely blocked in the receiving chamber. The specific steps are as follows:
[0118] First, construct the transmitting chamber and the receiving chamber to simulate the sound propagation environment in an actual building.
[0119] Then, use building components with different materials and structures as the walls to isolate the transmitting chamber and the receiving chamber.
[0120] Furthermore, set an adjustable-power sound source in the transmitting chamber and gradually increase the power of the sound source.
[0121] Finally, monitor the sound pressure level in the receiving chamber until the sound pressure level reaches the noise floor (the first preset value) of the measuring instrument.
[0122] At this time, collect the incident power P of the sound source in the transmitting chamber in , which corresponds to the transmission power P tr (tending to zero) and the reflection power, as well as the corresponding sound intensity of the sound source detected in the sound chamber, as the volume threshold, to obtain a set of playback parameter test information.
[0123] For building components with different materials and structures, repeat the above experiments to obtain their corresponding playback parameter test information.
[0124] The incident power P corresponding to when the transmission power P tr tends to zero in reflects the maximum allowable incident sound intensity when the building component completely blocks sound propagation and can be used as an index for the sound insulation performance of the building component.
[0125] Through this method, we can effectively measure and determine the sound insulation limit of different building components, obtain the corresponding playback parameter information, and the volume threshold is the maximum volume corresponding to the building component.
[0126] (2) Train a target acoustic propagation model for determining a target volume threshold.
[0127] In the embodiment of the present application, through a data-driven method, the playback parameter information corresponding to different building components collected in the foregoing step (1) is used as training data and input into the constructed initial acoustic propagation model for training to optimize the parameters of the initial acoustic propagation model, and a target acoustic propagation model is obtained.
[0128] In the trained target acoustic propagation model, different sound pressure level thresholds are set to simulate different acoustic environments. For each combination of building component and acoustic environment, the transmitted power predicted by the target acoustic propagation model is evaluated, a reasonable maximum transmitted power threshold is determined, and based on the transmitted power threshold, the corresponding sound pressure level limit value is derived as the sound insulation performance index of the building component in different acoustic environments.
[0129] Through the above data-driven method, the measured data can be effectively utilized, combined with acoustic modeling, to customize reasonable acoustic performance requirements for different scenarios, and improve the scientificity and pertinence of the final data threshold.
[0130] It should be noted that after the above-mentioned target acoustic propagation model is trained, a sound wave decibel detector can be installed on at least one of the six surfaces of the electronic device, or an infrared rangefinder can also be included. When the electronic device needs to determine the target volume threshold, the electronic device is powered on and the target audio is played. Through the sound wave decibel detector, possibly combined with the infrared rangefinder, the environmental information of the current space is determined based on the target acoustic propagation model, and then the target volume threshold of the electronic device in the target space is determined.
[0131] It should also be noted that when the volume of the video or audio played by the user using the electronic device exceeds the target volume threshold, the user is prohibited or reminded that continuing to increase the sound will cause interference to family members or neighbors.
[0132] It should also be noted that if the electronic device determines through at least one of the sound wave decibel detector or the infrared detector that the current space is relatively large, such as a large conference room, and even if the volume is adjusted to the maximum, it will not be affected, then there is no need to limit the volume of the electronic device.
[0133] The embodiment of the present application provides a sound control method, in which the electronic device determines the target volume threshold of the electronic device in the current space based on the collected playback parameter information, and when the target volume threshold is exceeded, the user is reminded or high volume playback is prohibited. In this way, the user can use the electronic device within the maximum volume range allowed in the current space, customize the target volume threshold corresponding to the current space, and provide a reference for the user to adjust the volume of the electronic device through the target volume threshold, thereby improving the accuracy of the target volume threshold and the degree of adaptation to the current space. Moreover, the electronic device can also avoid noise interference to family members or neighbors while meeting the user's demand for high volume as much as possible.
[0134] In another embodiment of the present application, Figure 5 This is a schematic diagram of the structure of a sound control device provided in an embodiment of the present application. Figure 5 As shown, the sound control device 100 may include:
[0135] The acquisition unit 1001 is used to acquire playback parameter information of the target audio in the current space.
[0136] The determination unit 1002 is used to determine a target volume threshold based on the target acoustic propagation model according to the playback parameter information of the target audio, where the target volume threshold is used to represent the maximum volume at which the electronic device does not interfere with the space outside the current space.
[0137] The control unit 1003 is configured to perform interference control processing when the current volume of the electronic device is greater than or equal to the target volume threshold.
[0138] In some embodiments, the acquisition unit 1001 is further used to acquire a training data set, which includes volume thresholds corresponding to different playback parameter test information; the initial acoustic propagation model is trained based on the training data set to obtain a target acoustic propagation model, and the target acoustic propagation model is used to determine the correspondence between the playback parameter information and the volume threshold.
[0139] In some embodiments, the acquisition unit 1001 is also used to control the speaker to play test audio in different test spaces and obtain corresponding playback parameter test information; the playback parameter test information includes at least incident power, transmitted power, reflected power and volume threshold, and the transmitted power is less than or equal to a first preset value; based on the playback parameter test information corresponding to each of the multiple test spaces, a training data set is constructed.
[0140] In some embodiments, the determination unit 1002 is further used to determine the environmental information of the current space based on the target acoustic propagation model according to the playback parameter information of the target audio; and determine the target volume threshold based on the target acoustic propagation model based on the environmental information of the current space.
[0141] In some embodiments, the obtaining unit 1001 is further configured to, in response to a control operation of a user, pop up a prompt message for the user through a display interface, where the prompt message is used to instruct the user to input environmental information of the current space; monitor the input operation of the user on the display interface, and obtain the environmental information of the current space.
[0142] In some embodiments, the obtaining unit 1001 is further configured to control a speaker to play a target audio, and collect playback parameter information of the target audio, where the playback parameter information of the target audio includes at least incident power and reflection power.
[0143] In some embodiments, the determining unit 1002 is further configured to determine playback setting parameters corresponding to each of the multiple acoustic wave detection modules based on the positions of the multiple acoustic wave detection modules; and play the target audio based on the playback setting parameters corresponding to the acoustic wave detection module.
[0144] In some embodiments, the control unit 1003 is further configured to, when the environmental information of the current space meets a first preset condition, use the maximum volume of the electronic device as a target volume threshold.
[0145] In some embodiments, the control unit 1003 is further configured to perform interference control processing including at least one of displaying a volume warning prompt and controlling the volume of the electronic device from increasing.
[0146] It can be understood that in this embodiment, a "unit" may be a part of a circuit, a part of a processor, a part of a program or software, etc. Of course, it may also be a module or non-modular. Moreover, the components in this embodiment may be integrated in a processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit. The above integrated unit may be implemented in the form of hardware or in the form of a software function module.
[0147] When the integrated unit is implemented in the form of a software functional module and is not sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this embodiment, in essence, or the part that contributes to the prior art, or all or part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the method described in this embodiment. The foregoing storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROM), random access memories (RAM), magnetic disks, or optical discs that can store program codes.
[0148] Therefore, this embodiment provides a computer-readable storage medium that stores a computer program. When the computer program is executed by at least one processor, it implements the steps of the method described in any one of the foregoing embodiments.
[0149] In some embodiments, Figure 6 is a schematic hardware structure diagram of an electronic device provided by an embodiment of the present application. As Figure 6 shown, the electronic device 110 may include: a communication interface 1101, a memory 1102, and a processor 1103; each component is coupled together through a bus system 1104. It can be understood that the bus system 1104 is used to realize the connection and communication between these components. In addition to including a data bus, the bus system 1104 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, in Figure 6 all kinds of buses are labeled as the bus system 1104. Among them:
[0150] The communication interface 1101 is used for receiving and sending signals during the process of receiving and sending information between the power supply device.
[0151] The memory 1102 is used to store a computer program that can run on the processor 1103.
[0152] The processor 1103 is used to execute the following when running the computer program:
[0153] Obtain the playback parameter information of the target audio in the current space;
[0154] Based on the playback parameter information of the target audio, determine a target volume threshold according to the target acoustic propagation model. The target volume threshold is used to represent the maximum volume at which the electronic device does not interfere with the space outside the current space;
[0155] When the current volume of the electronic device is greater than or equal to the target volume threshold, interference control processing is performed.
[0156] It can be understood that the memory 1102 in the embodiments of the present application can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct rambus random access memory (DRRAM). The memory 1102 of the systems and methods described herein is intended to include but not be limited to these and any other suitable types of memory.
[0157] The processor 1103 may be an integrated circuit chip with the ability to process signals. In the implementation process, the steps of the above method can be completed by the integrated logic circuit of the hardware in the processor 1103 or instructions in the form of software. The above-mentioned processor 1103 may be a general-purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. It can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in combination with the embodiments of the present application can be directly embodied as being executed and completed by a hardware decoding processor, or executed and completed by a combination of the hardware and software modules in the decoding processor. The software module may be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. This storage medium is located in the memory 1102, and the processor 1103 reads the information in the memory 1102 and combines its hardware to complete the steps of the above method.
[0158] It can be understood that these embodiments described herein can be implemented using hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit can be implemented in one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), general-purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described in the present application, or a combination thereof.
[0159] For software implementation, the technologies described herein can be implemented by modules (such as procedures, functions, etc.) that execute the functions described herein. The software code can be stored in a memory and executed by a processor. The memory can be implemented inside or outside the processor.
[0160] Optionally, as another embodiment, the processor 1103 is further configured to execute the steps of the method described in any one of the foregoing embodiments when running the computer program.
[0161] As described above, the foregoing are only preferred embodiments of the present application and are not intended to limit the protection scope of the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present application shall be included within the protection scope of the present application.
[0162] The embodiments of the present application further provide a computer program product containing instructions, which, when running on a computer, causes the computer to execute the steps in the method provided in the above method embodiments.
[0163] It should be understood that the descriptions of the above storage medium and device embodiments are similar to the descriptions of the above method embodiments and have similar beneficial effects to the method embodiments. For the technical details not disclosed in the storage medium, storage medium and device embodiments of the present application, please refer to the descriptions of the method embodiments of the present application for understanding.
[0164] It should be understood that the term "one embodiment" or "an embodiment" or "some embodiments" mentioned throughout the specification means that specific features, structures, or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, the appearances of "in one embodiment" or "in an embodiment" or "in some embodiments" throughout the specification do not necessarily refer to the same embodiment. In addition, these specific features, structures, or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the sequence numbers of the above processes do not mean the order of execution is prior or subsequent. The order of execution of each process should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present application. The serial numbers of the embodiments of the present application above are only for description and do not represent the advantages or disadvantages of the embodiments. The descriptions of the above embodiments tend to emphasize the differences between the embodiments, and the same or similar parts can be referred to each other. For the sake of brevity, they will not be repeated herein.
[0165] It should also be noted that in the present application, the term "comprising", "including" or any other variant thereof is intended to cover a non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article or device. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the existence of additional identical elements in the process, method, article or device comprising that element.
[0166] The serial numbers of the above embodiments of the present application are only for description and do not represent the advantages or disadvantages of the embodiments.
[0167] The methods disclosed in several method embodiments provided by this application can be arbitrarily combined without conflict to obtain new method embodiments.
[0168] The features disclosed in several product embodiments provided by this application can be arbitrarily combined without conflict to obtain new product embodiments.
[0169] The features disclosed in several method or device embodiments provided by this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.
[0170] The above are only the preferred embodiments of this application and are not intended to limit the protection scope of this application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of this application shall be included in the protection scope of this application.
Claims
1. A sound control method, the method comprising: Obtaining playing parameter information of a target audio in a current space; Based on the playing parameter information of the target audio, determining a target volume threshold based on a target acoustic propagation model, the target volume threshold being used to represent the maximum volume at which an electronic device does not interfere with a space outside the current space; Performing interference control processing when the current volume of the electronic device is greater than or equal to the target volume threshold.
2. The sound control method according to claim 1, the method further comprising: Obtaining a training data set, the training data set including volume thresholds respectively corresponding to different playing parameter test information; Training an initial acoustic propagation model based on the training data set to obtain a target acoustic propagation model, the target acoustic propagation model being used to determine the corresponding relationship between the playing parameter information and the volume threshold.
3. The sound control method according to claim 2, wherein obtaining the training data set comprises: In different test spaces, controlling a speaker to play a test audio, and obtaining corresponding playing parameter test information; The playing parameter test information at least includes incident power, transmission power, reflection power, and a volume threshold, and the transmission power is less than or equal to a first preset value; Constructing the training data set based on the playing parameter test information respectively corresponding to multiple test spaces.
4. The sound control method according to claim 1, wherein determining the target volume threshold based on the playing parameter information of the target audio and based on a target acoustic propagation model comprises: Based on the playing parameter information of the target audio, determining environmental information of the current space based on the target acoustic propagation model; Based on the environmental information of the current space, determining the target volume threshold based on the target acoustic propagation model.
5. The sound control method according to claim 4, the method further comprising: In response to a user's control operation, popping up a prompt message to the user through a display interface, the prompt message being used to instruct the user to input environmental information of the current space; Monitoring the user's input operation on the display interface to obtain environmental information of the current space.
6. The sound control method according to claim 1, wherein obtaining the playing parameter information of the target audio in the current space comprises: Controlling a speaker to play a target audio, and collecting the playing parameter information of the target audio, the playing parameter information of the target audio at least including incident power and reflection power.
7. The sound control method according to claim 6, wherein the electronic device comprises at least one sound wave detection module, and the at least one sound wave detection module is respectively arranged on different planes of the electronic device, the method further comprising: Based on the positions of the multiple sound wave detection modules respectively, determining playing setting parameters respectively corresponding to the multiple sound wave detection modules; Playing the target audio based on the playing setting parameters corresponding to the sound wave detection module.
8. The sound control method according to any one of claims 1 to 7, the method further comprising: When the environmental information of the current space meets a first preset condition, using the maximum volume of the electronic device as the target volume threshold.
9. The voice control method according to any one of claims 1 to 7, wherein the interference control process includes at least one of displaying a volume warning prompt and controlling the volume of the electronic device from not increasing.
10. An electronic device, comprising a memory and a processor, wherein: The memory is configured to store a computer program that can run on the processor; The processor is configured to execute the computer program in the memory to implement the steps of the voice control method according to any one of claims 1 to 9.