Volume adjustment method for audio playback device, electronic device and storage medium
By dynamically adjusting the volume according to scene information, the poor user experience problem caused by fixed network sound column volume configuration is solved, and flexible volume adjustment and effective reminder are achieved, improving the user experience.
Patent Information
- Application Number
- CN202210631699.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-06
- Publication Date
- 2025-08-08
- Estimated Expiration
- 2042-06-06
AI Technical Summary
The broadcast volume configuration of the existing network sound column is fixed and cannot be adjusted flexibly, resulting in too low volume in special scenarios that cannot be reminded or too large, causing noisy, and poor user experience.
Dynamically adjust the volume to meet the on-site needs by determining the scene information of the scene where the audio playback device is located, including the degree of danger, background volume and event duration.
It realizes dynamic volume adjustment, improves broadcast effect and user experience, and can promptly remind and reduce system power consumption.
Smart Images

Figure CN115065914B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of artificial intelligence technology, and in particular to a volume adjustment method for an audio playback device, an electronic device, and a storage medium. Background Art
[0002] Network sound columns are a type of broadcasting equipment, commonly used outdoors (such as in schools, scenic areas, hospitals, and riverside locations) for announcements. For outdoor devices, output volume is a critical parameter. In special scenarios, a volume that is too low may not provide a warning, while a volume that is too high may be noisy in quiet environments.
[0003] In addition to basic broadcast volume configuration, most existing network sound columns pre-configure priorities for broadcast audio sources and set different broadcast volumes for sources of different priorities. However, these configured broadcast volumes are fixed, which does not achieve a good broadcast effect and poor user experience. Summary of the Invention
[0004] The present application provides a volume adjustment method for an audio playback device, an electronic device, and a storage medium, which can make the output volume meet on-site requirements, thereby achieving a better broadcasting effect and helping to improve the user experience.
[0005] To achieve the above technical objectives, this application adopts the following technical solutions:
[0006] In a first aspect, an embodiment of the present application provides a volume adjustment method for an audio playback device. First, the method determines scene information of a scene in which the audio playback device is located. The scene information includes first scene information, second scene information, and / or third scene information. The first scene information is used to characterize the degree of danger in the scene, the second scene information is used to characterize the background volume of the scene, and the third scene information is used to characterize the duration of playing a target sound for a certain event. Secondly, based on the scene information, the target output volume of the audio playback device is determined.
[0007] It can be understood that this method obtains scene information based on the specific scene where the audio playback device is located, and dynamically adjusts the output volume of the audio playback device according to the scene information, so that the output volume meets the on-site requirements, thereby achieving better broadcasting effects and improving user experience.
[0008] In one possible implementation, the first scene information is specifically used to characterize at least one of the following: the positional relationship between the people in the scene and a preset area, where the preset area is a dangerous area in the scene; the duration of the fall of the people in the scene; the age information of the people in the scene; the weather conditions of the scene; and the water level conditions in the scene.
[0009] It is understandable that this possible implementation includes several examples that characterize the degree of danger in the scene, and the specific implementation is not limited thereto.
[0010] In another possible implementation, the above-mentioned first scene information is specifically used to characterize the positional relationship between the people in the scene and the preset area; the first scene information includes: the people in the scene are close to the preset area, the people in the scene are far away from the preset area, or the distance between the people in the scene and the preset area remains unchanged; or the distance between the people in the scene and the preset area; or whether the people in the scene are within the preset area.
[0011] It is understandable that this possible implementation includes a specific implementation of the positional relationship between the people in the scene and the preset area.
[0012] In another possible implementation, the determining of the scene information of the scene where the audio playback device is located includes: acquiring an image captured by an image capture device for the scene; and analyzing the image to obtain the first scene information.
[0013] It is understandable that the danger level in the first scene information can be obtained by analyzing the image captured by the image capture device for the scene. This method can quickly and easily obtain the danger level of the scene.
[0014] In another possible implementation, the above-mentioned scene information includes first scene information; based on the scene information, the target output volume of the audio playback device is determined, including: when the degree of danger in the scene represented by the first scene information increases or is greater than a first threshold, increasing the current output volume of the audio playback device to obtain the target output volume; or, when the degree of danger in the scene represented by the first scene information decreases or is less than a second threshold, reducing the current output volume of the audio playback device to obtain the target output volume; or, when the degree of danger in the scene represented by the first scene information remains unchanged or is between the first threshold and the second threshold, determining the current output volume of the audio playback device as the target output volume.
[0015] It can be understood that the output volume of the audio playback device is adjusted in real time according to the degree of danger of the scene represented by the first scene information. When the degree of danger increases, increasing the output volume can serve as a timely and effective reminder to on-site personnel. When the degree of danger decreases, reducing the output volume can reduce system power consumption.
[0016] In another possible implementation, the scene information includes first scene information; based on the scene information, the target output volume of the audio playback device is determined, including: when the degree of danger in the scene represented by the first scene information is greater than a third threshold and the duration is greater than a fourth threshold, increasing the current output volume of the audio playback device to obtain the target output volume; or, when the degree of danger in the scene represented by the first scene information is less than a fifth threshold and the duration is greater than a sixth threshold, reducing the current output volume of the audio playback device to obtain the target output volume; or, when the degree of danger in the scene represented by the first scene information is between the third threshold and the fifth threshold, determining the current output volume of the audio playback device as the target output volume.
[0017] It can be understood that the output volume of the audio playback device is adjusted in real time according to the duration of the danger level of the scene represented by the first scene information. When the danger level increases to exceed the third threshold and the duration exceeds the fourth threshold, it indicates that the danger level is very high and the duration is long. Increasing the output volume can serve as a timely and effective reminder to on-site personnel. When the danger level decreases and is less than the fifth threshold and the duration is less than the sixth threshold, it indicates that the danger level is very small at this time. Reducing the output volume can reduce system power consumption.
[0018] In another possible implementation, when the degree of danger in the scene represented by the first scene information is greater than a third threshold and the duration is greater than a fourth threshold, the current output volume of the audio playback device is increased to obtain the target output volume; the method also includes: controlling the audio playback device to play an alarm sound and performing an online alarm.
[0019] It is understandable that when the degree of danger exceeds the third threshold and the duration exceeds the fourth threshold, it means that the degree of danger is very high. At this time, the background provides an online alarm function, so that you can seek help and rescue in time to avoid excessive damage.
[0020] In another possible implementation, the determining of the scene information of the scene where the audio playback device is located includes: acquiring sound collected by a sound collection device for the scene; and analyzing the sound to obtain second scene information.
[0021] It is understandable that the second scene information is obtained by analyzing the sound collected by the sound collection device for the scene, which can quickly and easily obtain the background volume of the scene.
[0022] In another possible implementation, the above-mentioned scene information includes second scene information; based on the scene information, the target output volume of the audio playback device is determined, including: when the background volume of the scene represented by the second scene information increases or is greater than a seventh threshold, increasing the current output volume of the audio playback device to obtain the target output volume; or, when the background volume of the scene represented by the second scene information decreases or is less than an eighth threshold, reducing the current output volume of the audio playback device to obtain the target output volume; or, when the background volume of the scene represented by the second scene information remains unchanged between the seventh threshold and the eighth threshold, determining the current output volume of the audio playback device as the target output volume.
[0023] It is understood that by adjusting the output volume of the audio playback device in real time based on the background volume of the scene represented by the second scene information, the output volume can be made more consistent with the scene requirements. When the background volume increases, increasing the output volume can reduce interference caused by the high background volume. When the background volume decreases, reducing the output volume can reduce system power consumption.
[0024] In another possible implementation, the above-mentioned determination of scene information of the scene where the audio playback device is located includes: receiving event indication information, the event indication information is used to instruct the audio playback device to play a target sound for a certain event; and obtaining third scene information based on the duration of the target sound.
[0025] It is understandable that the third scene information can be obtained by receiving an event indication of the scene from an electronic device. This method is flexible and convenient and is not restricted by scene time, location, etc.
[0026] In another possible implementation, the above-mentioned scene information includes third scene information; based on the scene information, the target output volume of the audio playback device is determined, including: when the duration of the sound increases or exceeds the ninth threshold, the current output volume of the audio playback device is increased to obtain the target output volume.
[0027] It is understandable that the third scene information may not depend on the actual events that occur in the scene. The output volume increases only as the time of the instruction is issued. This implementation method has no fixed time or fixed scene, and is highly flexible, which can meet the user's needs at any time.
[0028] In a second aspect, the present application provides an electronic device, which includes modules applied to the method of the first aspect or any possible design method of the first aspect.
[0029] In a third aspect, the present application provides an electronic device comprising a memory and a processor. The memory and the processor are coupled; the memory is configured to store computer program code, which includes computer instructions. When the processor executes the computer instructions, the electronic device performs the volume adjustment method of the first aspect and any possible design thereof.
[0030] In a fourth aspect, the present application provides a computer-readable storage medium comprising computer instructions, wherein when the computer instructions are executed on an electronic device, the electronic device executes the volume adjustment method of the first aspect and any possible design thereof.
[0031] In a fifth aspect, the present application provides a computer program product comprising computer instructions, wherein when the computer instructions are executed on an electronic device, the electronic device executes the volume adjustment method of the first aspect and any possible design thereof.
[0032] For the specific descriptions of the second to fifth aspects and their various implementations in this application, reference can be made to the detailed descriptions in the first aspect and its various implementations; and for the beneficial effects of the second to fifth aspects and their various implementations, reference can be made to the analysis of the beneficial effects in the first aspect and its various implementations, which will not be repeated here.
[0033] These and other aspects of the present application will become more readily apparent from the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 A schematic diagram of the architecture of an audio playback system applicable to an embodiment of the present application is provided in accordance with an embodiment of the present application;
[0035] Figure 2 A flow chart of a volume adjustment method for an audio playback device provided in an embodiment of the present application;
[0036] Figure 3 A diagram showing the relationship between the first scenario information representation content and the degree of danger provided in an embodiment of the present application;
[0037] Figure 4 A graph showing the relationship between the output volume of an audio playback device and the degree of danger provided in an embodiment of the present application;
[0038] Figure 5 A diagram showing the relationship between the output volume and background volume of an audio playback device provided in an embodiment of the present application;
[0039] Figure 6A graph showing the relationship between the output volume of an audio playback device and the duration of playing a target sound for a certain event, provided in an embodiment of the present application;
[0040] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0041] Figure 8 A schematic structural diagram of another electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0042] In the following, the terms "first," "second," and "third," etc., are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the quantity of the technical features indicated. Thus, a feature designated as "first," "second," or "third," etc., may explicitly or implicitly include one or more of the features.
[0043] Network sound columns are a type of broadcasting equipment, commonly used outdoors (such as in schools, scenic areas, hospitals, and riverside locations) for announcements. For outdoor devices, broadcast volume output is a critical parameter. In specialized scenarios, a volume that is too low may not provide a noticeable effect, while a volume that is too high may be noisy in quiet environments. Existing network sound columns, in addition to basic broadcast volume configuration, most pre-configure the priority of broadcast audio sources and set different broadcast volumes for sources of different priorities. This approach lacks flexibility, resulting in poor broadcast quality and a poor user experience.
[0044] Based on this, an embodiment of the present application provides a method for adjusting the volume of an audio playback device, which provides a method for adjusting the volume of an audio playback device based on scene information. First, it is necessary to determine the scene information of the scene where the audio playback device is located. The scene information is used to characterize the degree of danger existing in the scene, the size of the scene background volume and / or the duration of receiving the target sound played by a certain event. Then, the volume of the audio playback device is adjusted according to the scene information. The method obtains scene information based on the specific scene where the audio playback device is located, and dynamically adjusts the output volume of the audio playback device according to the scene information, so that the output volume meets the on-site requirements and improves the user experience.
[0045] The embodiment of the present application can be applied to an audio playback system. Figure 1 As shown, it is a schematic diagram of the architecture of the audio playback system applicable to the embodiment of the present application. Figure 1 As shown, the audio playback system may include: an image acquisition device 110 , a sound acquisition device 120 , an electronic device 130 and an audio playback device 140 .
[0046] The image acquisition device 110 is used to acquire on-site images, the sound acquisition device 120 is used to acquire on-site sounds, the electronic device 130 is used to receive on-site acquired images / sounds, and the audio playback device 140 is used to output audio signals.
[0047] Exemplarily, each image acquisition device 110 may be an ordinary camera or an intelligent camera with processing function.
[0048] Exemplarily, each sound collection device 120 may be an ordinary microphone or an intelligent microphone with processing function.
[0049] For example, the electronic device 130 may be a terminal, such as a mobile phone, tablet computer, desktop computer, laptop computer, notebook computer, netbook computer, etc., or a server. The embodiment of the present application does not impose any particular limitation on the specific form of the electronic device.
[0050] Exemplarily, each audio playback device 140 can be applied to a network sound column or a network speaker, can be applied to an ordinary sound column or an ordinary speaker, and can be applied outdoors or indoors.
[0051] This embodiment of the present application does not limit the number of image acquisition devices 110, sound acquisition devices 120, and audio playback devices 140. The image acquisition devices 110, sound acquisition devices 120, and audio playback devices 140 are installed at a distance less than a threshold. They can be installed independently or integrated. The electronic device 130 can be integrated with the image acquisition device 110 and / or the sound acquisition device 120 and / or the audio playback device 140, or they can be installed independently, and the installation distance between them is not limited.
[0052] In an application scenario, the image acquisition device 110 captures an image of a fire on the scene, and the sound acquisition device 120 captures a sound of someone calling for help on the scene. The image captured by the image acquisition device 110 and the sound collected by the sound acquisition device 120 are sent to the electronic device 130 for image / sound data analysis and processing. The electronic device 130 adjusts the volume of the audio signal in real time according to the analysis results, and the audio signal is output in real time through the audio playback device 140.
[0053] In another application scenario, due to a fire at the scene, the staff sends a fire alarm indication to the audio playback device 140 through the electronic device 130 to remind people around the fire scene to evacuate the scene urgently. Before the fire is extinguished, the volume of the fire alarm played by the audio playback device 140 increases with time until the fire is extinguished.
[0054] Please refer to Figure 2, which is a flowchart of a method for adjusting the volume of an audio playback device provided by an embodiment of the present application. This method can be applied to the above audio playback system. As Figure 2 shown, this method may include S101 - S102.
[0055] S101: The electronic device determines the scene information of the scene where the audio playback device is located.
[0056] Among them, the scene information includes first scene information, second scene information, and / or third scene information. The first scene information is used to characterize the degree of danger in the scene, the second scene information is used to characterize the background volume of the scene, and the third scene information is used to characterize the duration of playing the target sound for a certain event.
[0057] In one example, the audio playback device is used to play a prompt sound to prompt the personnel in the scene.
[0058] The first scene information is used to characterize the degree of danger in the scene. Specifically, the degree of danger can be characterized by a danger level. For example, a danger level of A / B / C corresponds to the degree of danger, where the danger level of A is the lowest, the danger level of B is moderate, and the danger level of C is the highest; the degree of danger can also be represented by a value in a continuous range. For example, the degree of danger can be represented by a value between a and c, where a < c.
[0059] In one example, a tornado occurs in a certain place. The degree of danger of the tornado can be divided into A / B / C levels. For example, when the tornado is small, it corresponds to a level A danger; when the tornado is of medium size, it corresponds to a level B danger; when the tornado is large, it corresponds to a level C danger, where A < B < C.
[0060] In another example, a tornado occurs in a certain place. The degree of danger of the tornado can be represented by a value between a and c. For example, when the tornado is the smallest, the degree of danger can be represented by a. When the tornado grows from small to large, the degree of danger increases from a to c accordingly.
[0061] The embodiment of the present application does not limit the acquisition method of the first scene information.
[0062] Optionally, the acquisition method of the first scene information may include: acquiring an image collected by an image acquisition device for the scene; analyzing the image to obtain the first scene information. For example: analyzing the image collected by the image acquisition device for the scene to obtain the degree of danger.
[0063] Optionally, the acquisition method of the first scene information may include: receiving the first scene information. For example: receiving the first scene information indicated by the user.
[0064] In one example, an audio playback device is installed in a specified scene. The audio playback device may be integrated with an image capture device, or the image capture device may be installed within a certain distance of the audio playback device. The electronic device performs a danger level analysis on an image captured by the image capture device to obtain a danger level represented by the first scene information.
[0065] In another example, the electronic device receives information indicated by the user about the danger level of the scene where the audio playback device is located, and obtains the danger level represented by the first scene information.
[0066] The second scene information is used to represent the background volume of the scene. In an example, the background volume can be represented by a decibel value.
[0067] The embodiment of the present application does not limit the method for obtaining the second scene information.
[0068] Optionally, the second scene information acquisition method may include: acquiring sounds collected by a sound collection device for the scene; and analyzing the sounds to obtain the second scene information. For example, analyzing the sounds collected by the sound collection device for the scene to obtain the background volume.
[0069] Optionally, the second scene information acquisition method may include: receiving the second scene information, for example: receiving the second scene information indicated by a user.
[0070] In one example, an audio playback device is installed in a specified scene. The audio playback device may be integrated with a sound collection device, or a sound collection device may be installed within a certain distance of the audio playback device. The electronic device analyzes the volume of the sound collected by the sound collection device to obtain a decibel. In this case, the background volume level included in the second scene information is a decibel.
[0071] In another example, the electronic device receives a user indication that the background volume level of the scene where the audio playback device is located is b decibels, and the second scene information includes a background volume level of b decibels.
[0072] The embodiment of the present application does not limit the method for obtaining the third scenario information.
[0073] Optionally, the third scene information acquisition method may include: receiving event indication information, where the event indication information is used to instruct the audio playback device to play target audio for a certain event; and obtaining the third scene information based on the duration of the target audio.
[0074] The event indication information includes information about an event that has occurred or is about to occur in the scene, and also includes information indicating that a target audio should be played for the event. The target audio is used to remind people present.
[0075] The third scene information includes the duration of the target audio to be played.
[0076] In one example, a fire has occurred in the scene where the audio playback device is located. The staff sends a fire alarm indication information to the electronic device through a computer / manually. The electronic device receives the alarm indication information and controls the audio playback device to play the alarm audio. The third scene information is obtained through the duration of the alarm audio.
[0077] In another example, the school needs to notify students to gather in the square. The teacher sends a gathering instruction message to the electronic device through a computer / manually. After receiving the instruction message, the electronic device plays the gathering audio and obtains the third scene information through the duration of the gathering audio.
[0078] Optionally, the first scenario information is specifically used to represent at least one of the following information 1 to information 5:
[0079] Information 1. The positional relationship between people in the scene and the preset area.
[0080] Preset areas are dangerous areas in the scene. For example, dangerous areas can be construction sites, water areas, roads, etc.
[0081] The preset area can be manually defined through electronic devices or derived through image analysis captured by image acquisition equipment. This area can be a small portion of the visual image or the entire visual image. The position of a person in the scene relative to the preset area determines whether the person will be in danger and the degree of danger they may encounter.
[0082] The positional relationship between the scene personnel and the preset area can be obtained by any one of methods 1 to 3.
[0083] Method 1: When the first scene information is specifically used to characterize the positional relationship between the people in the scene and the preset area; the first scene information includes: the people in the scene are close to the preset area, the people in the scene are far away from the preset area, or the distance between the people in the scene and the preset area remains unchanged.
[0084] Among them, the movement of people in the scene approaching or moving away from the preset area is a movement trend, and obtaining the movement trend requires analyzing at least two images of the scene.
[0085] When people in the scene approach the preset area, the degree of danger increases; when people in the scene move away from the preset area, the degree of danger decreases; when the distance between people in the scene and the preset area remains unchanged, the degree of danger remains unchanged.
[0086] Method 2: The distance between the person in the scene and the preset area.
[0087] The distance between a person in the scene and the preset area is a static feature, and the distance between the person in the scene and the preset area can be obtained through at least one image of the scene. The corresponding danger level can be obtained based on the distance.
[0088] The smaller the distance between the people in the scene and the preset area, the greater the danger.
[0089] Method 3: Whether the people in the scene are within the preset area.
[0090] Whether a person in a scene is within a preset area is a static feature, and at least one image of the scene is used to determine whether the person is within the preset area. This method generates a result of either being within the preset area or not within the preset area. Therefore, in one example, based on method 3, the danger level can be divided into two categories: if the person is within the preset area, there is danger; if the person is not within the preset area, there is no danger.
[0091] Information 2. Duration of the person falling in the scene.
[0092] When a person falls in a scene, the longer the fall lasts, the greater the degree of danger. Therefore, the degree of danger in the scene can be determined by counting the duration of the fall in the scene.
[0093] Information 3. Age information of people in the scene.
[0094] When the age of a person in a scene exceeds a certain threshold, the older they are, the greater the risk they may face. When the age of a person in a scene is below a certain threshold, the younger they are, the greater the risk they may face. It is understandable that older or younger people have weaker mobility than younger people and therefore may face greater risks than younger people. Therefore, by calculating the age of the people in a scene, we can determine the corresponding risk level.
[0095] Information 4. Weather conditions of the scene.
[0096] For example, weather conditions include one or more of sunny, cloudy, rainy, foggy, snowy, or other inclement weather conditions. It is understood that because the probability of accidents occurring in inclement weather is greater than that in non-inclement weather, the weather conditions in a scene can reflect the degree of danger present in the scene. For example, sunny days have the lowest risk, cloudy / rainy / foggy / snowy days have a moderate risk, and sandstorms / hail / tornadoes / tsunamis have the highest risk.
[0097] Information 5. Water level in the scene.
[0098] If your scene includes water (such as the ocean, river, or lake), the water level will vary depending on the season and time of day. For example, sea level fluctuates throughout the year, morning, noon, and evening; lake level generally fluctuates significantly across the seasons. The higher the water level, the greater the danger level. Therefore, the water level can be used to determine the degree of danger within the scene.
[0099] The content represented by the first scene information may include one or more items. When multiple items exist, the degree of danger is superimposed. The embodiment of the present application does not limit the specific implementation method of superposition.
[0100] In an example, if the first scene information representation content includes the above-mentioned information 1 and information 3, it can be specifically described as: when an elderly person in the scene approaches a preset area, the degree of danger faced is greater than the degree of danger faced when a young person in the scene approaches the preset area.
[0101] In another example, if the first scene information representation content includes the above-mentioned information 2 and information 4, it can be specifically described as: when the weather in the scene is rainy, and a person falls, the degree of danger faced by the person at this time is greater than the degree of danger faced by the person when the weather in the scene is sunny.
[0102] The relationship between the contents specifically represented by the first scene information exists in parallel. The above example illustrates that when the first scene contains more than one content, the danger level is higher than that of a single content. There are many cases that are not described one by one. Figure 3 As shown, it can be seen that the relationship between the contents that can be represented in the first scene information and the corresponding changes in the degree of danger.
[0103] S102: The electronic device determines a target output volume of the audio playback device based on the scene information.
[0104] In one example, an audio playback device has a factory default volume when it plays for the first time. When it is turned off and then turned on again, the output volume can be set to be based on the volume at the end of the last use, or it can be set to use the factory default volume when it is turned off and then turned on again.
[0105] The target output volume of the audio playback device varies according to different scene information.
[0106] 1A, 1B and 1C are three schemes for obtaining the target output volume of the audio playback device when the scene information includes the first scene information.
[0107] 1A) When the scene information includes first scene information, S102 includes:
[0108] When the degree of danger in the scene represented by the first scene information increases, increasing the current output volume of the audio playback device to obtain a target output volume;
[0109] Alternatively, when the degree of danger in the scene represented by the first scene information decreases, reducing the current output volume of the audio playback device to obtain a target output volume;
[0110] Alternatively, when the degree of danger in the scene represented by the first scene information remains unchanged, the current output volume of the audio playback device is determined as the target output volume.
[0111] In this solution, the output volume of the audio playback device increases as the danger level increases and decreases as the danger level decreases. If the danger level remains unchanged, the output volume remains unchanged.
[0112] The output volume of the audio playback device can be adjusted in real time according to the degree of danger. The change in the degree of danger can be directly understood through the volume, and people can be promptly reminded of the change in danger.
[0113] 1B) When the scene information includes first scene information, S102 includes:
[0114] When the degree of danger in the scene represented by the first scene information is greater than a first threshold, increasing the current output volume of the audio playback device to obtain a target output volume;
[0115] Alternatively, when the degree of danger in the scene represented by the first scene information is less than a second threshold, reducing the current output volume of the audio playback device to obtain a target output volume;
[0116] Alternatively, when the degree of danger in the scene represented by the first scene information is between a first threshold and a second threshold, the current output volume of the audio playback device is determined as the target output volume.
[0117] The first threshold is greater than the second threshold.
[0118] In this solution, when the danger level is greater than a first threshold, the current output volume of the audio playback device increases by a preset volume; when the danger level is less than a second threshold, the current output volume of the audio playback device decreases by a preset volume; when the danger level varies between the first threshold and the second threshold, the output volume of the audio playback device remains at the current output volume and does not change.
[0119] When the danger level fluctuates between the first and second thresholds, the audio playback device's output volume remains unchanged at the current level. Only when the level exceeds the first threshold or falls below the second threshold does the audio playback device's output volume adaptively adjust. This method notifies occupants of changing danger levels while reducing the number of volume adjustments required by the audio playback device, saving overall system power.
[0120] 1C) When the scene information includes first scene information, S102 includes:
[0121] When the degree of danger in the scene represented by the first scene information is greater than the third threshold and the duration is greater than the fourth threshold, the current output volume of the audio playback device is increased to obtain the target output volume; the audio playback device is controlled to play an alarm sound and an online alarm is issued.
[0122] Alternatively, when the degree of danger in the scene represented by the first scene information is less than a fifth threshold and the duration is greater than a sixth threshold, reducing the current output volume of the audio playback device to obtain a target output volume;
[0123] Alternatively, when the degree of danger in the scene represented by the first scene information is between the third threshold and the fifth threshold, the current output volume of the audio playback device is determined as the target output volume.
[0124] The third threshold is greater than the fifth threshold.
[0125] In this solution, when the degree of danger is greater than the third threshold and the duration is greater than the fourth threshold, the current output volume of the audio playback device is increased by the preset volume, and the electronic device controls the audio playback device to play the alarm sound and sends an alarm indication to the alarm server to remind rescue personnel that the first scene is very dangerous and relevant rescue actions need to be taken in a timely manner.
[0126] When the danger level is less than the fifth threshold and the duration is greater than the sixth threshold, the current output volume of the audio playback device is reduced by a preset volume, which indicates that the danger level of the first scenario is relatively low.
[0127] When the danger level varies between the third threshold and the fifth threshold, the output volume of the audio playback device remains unchanged at the current output volume. In this case, the number of times the audio playback device adjusts the volume is reduced, thereby saving overall system power consumption.
[0128] This method notifies people in the scene of changes in danger levels and adjusts the output volume of audio playback devices over time. Especially when the danger level is high, this method can trigger a network alarm in the background, prompting rescue personnel to take timely action and minimize damage.
[0129] Solutions 1A, 1B, and 1C can also be used in combination. When used in combination, the third threshold can be greater than or equal to the first threshold, and the fifth threshold can be less than or equal to the second threshold. Figure 4 As shown, the relationship between the output volume and the change in the degree of danger in the combination of the three is shown. If used in combination, the specific implementation method is: when the degree of danger changes between the first threshold and the second threshold, the output volume of the audio playback device does not change; if the degree of danger is greater than the first threshold and less than or equal to the third threshold, then as the degree of danger increases, the current output volume of the audio playback device is increased in real time; if the degree of danger increases by more than the third threshold, then as the duration is greater than the fourth threshold, the current output volume of the audio playback device is increased in real time, and the audio playback device is controlled to play an alarm sound, and an online alarm is performed in the background; if the degree of danger is less than the second threshold and greater than or equal to the fifth threshold, then as the degree of danger decreases, the current output volume of the audio playback device is reduced in real time; if the degree of danger decreases by less than the fifth threshold, then as the duration is greater than the sixth threshold, the current output volume of the audio playback device is reduced in real time.
[0130] This combined method can not only effectively prompt the changes in the danger level of people in the scene, but also effectively save system power consumption.
[0131] 2A and 2B are two solutions for obtaining the target output volume of the audio playback device when the scene information includes the second scene information.
[0132] 2A) When the scene information includes second scene information, S102 includes:
[0133] When the background volume of the scene represented by the second scene information increases, increasing the current output volume of the audio playback device to obtain a target output volume;
[0134] Alternatively, when the background volume of the scene represented by the second scene information decreases, reducing the current output volume of the audio playback device to obtain the target output volume;
[0135] Alternatively, when the background volume of the scene represented by the second scene information remains unchanged, the current output volume of the audio playback device is determined as the target output volume.
[0136] In this solution, the output volume of the audio playback device increases as the background volume increases and decreases as the background volume decreases. If the background volume remains unchanged, the output volume does not change.
[0137] The output volume of the audio playback device can be adjusted in real time according to the background volume, avoiding the background volume being too loud and the sound output by the audio playback device being inaudible, or avoiding the background volume being too low and the sound output by the audio playback device being too noisy. This method can adjust the volume as needed to achieve a better broadcast effect and enhance the user experience. At the same time, reducing the output volume can reduce system power consumption.
[0138] 2B) When the scene information includes second scene information, S102 includes:
[0139] When the background volume of the scene represented by the second scene information is greater than a seventh threshold, increasing the current output volume of the audio playback device to obtain a target output volume;
[0140] Alternatively, when the background volume of the scene represented by the second scene information is less than an eighth threshold, reducing the current output volume of the audio playback device to obtain a target output volume;
[0141] Alternatively, when the background volume of the scene represented by the second scene information is between the seventh threshold and the eighth threshold, the current output volume of the audio playback device is determined as the target output volume.
[0142] Among them, the seventh threshold is greater than the eighth threshold.
[0143] In this scheme, when the background volume is greater than the seventh threshold, the current output volume of the audio playback device increases by a preset volume; when the background volume is less than the eighth threshold, the current output volume of the audio playback device decreases by a preset volume; when the background volume varies between the seventh threshold and the eighth threshold, the output volume of the audio playback device remains the current output volume and does not change.
[0144] This method can output volume as needed, while satisfying user experience and further reducing system power consumption.
[0145] Solutions 2A and 2B can also be used in combination, such as Figure 5 As shown in the figure, the relationship between the output volume and the background volume in the combined use scheme of the two is shown. If used in combination, the specific implementation method is as follows: when the background volume varies between the seventh threshold and the eighth threshold, the output volume of the audio playback device does not change; if the background volume is greater than the seventh threshold and gradually increases, the current output volume of the audio playback device is increased; if the background volume is less than the eighth threshold and gradually decreases, the current output volume of the audio playback device is decreased.
[0146] This combined method can not only adjust the output volume of the audio playback device in real time according to the background volume in the scene, thereby achieving a better broadcast effect and improving the user experience, but also more effectively save system power consumption.
[0147] In one example, when the audio playback device is set in a park, the audio playback device plays music in a loop. The basic output volume of the audio playback device is a decibel. If sound needs to be played in the morning, when there are fewer people and the background volume is relatively low, in order to avoid the output volume of the audio playback device being too loud and disturbing surrounding residents, the output volume of the audio playback device can be reduced by b decibels based on a decibel. If sound needs to be played at noon, when there are many people and the background volume is relatively high, if the output volume of the audio playback device is too low to be heard clearly, the output volume of the audio playback device can be increased by b decibels based on a decibel. If the flow of people remains unchanged during the playback process, the output volume of the audio playback device remains unchanged at the current output volume.
[0148] 3A and 3B are two solutions for obtaining the target output volume of the audio playback device when the scene information includes the third scene information.
[0149] 3A) When the scene information includes third scene information, S102 includes:
[0150] When the duration of the audio increases, the current output volume of the audio playback device is increased to obtain the target output volume.
[0151] The current output volume of the audio playback device increases as the duration of the audio increases.
[0152] The longer the audio lasts, the louder the output volume of the audio playback device becomes. This method can effectively serve as a reminder.
[0153] In one example, if a fire occurs in the scene where the audio playback device is located, a fire warning sound can be played by receiving a fire information indication sent by the electronic device. As the duration of the fire information indication passes, the volume of the fire warning sound output by the audio playback device gradually increases.
[0154] 3B) When the scene information includes third scene information, S102 includes:
[0155] When the duration of the audio is greater than a ninth threshold, the current output volume of the audio playback device is increased to obtain a target output volume.
[0156] When the duration of the audio is greater than a ninth threshold, the current output volume of the audio playback device is increased.
[0157] Increasing the output volume of the audio playback device can not only serve as a prompt, but also save system power consumption.
[0158] 3A and 3B can also be used in combination, such as Figure 6As shown in FIG, the relationship between the output volume and duration in the combined use scenario of the two is shown. If used in combination, the specific implementation method is: when the duration of the audio is not greater than the ninth threshold, the current output volume of the audio playback device does not change; when it is greater than the ninth threshold, the current output volume of the audio playback device increases over time.
[0159] This combined method can not only adjust the output volume of the audio playback device in real time according to the increase in audio duration in the scene, but also more effectively save system power consumption.
[0160] In one example, an audio playback device is installed in a school. In the morning, students need to be notified to gather for morning exercise. At this time, the teacher sends a morning exercise instruction to the audio playback device through an electronic device, causing it to output a morning exercise reminder sound. When the morning exercise reminder sound lasts for more than a threshold and the students have not yet gathered, the volume of the morning exercise reminder sound output by the audio playback device gradually increases as the duration of the instruction passes.
[0161] In one example, as shown in Table 1, when the scene information includes the above-mentioned first scene information, second scene information and third scene information, the scene information is obtained through different acquisition methods and different representation contents to obtain different scene information analysis results and corresponding volume output changes.
[0162] Table 1
[0163]
[0164]
[0165] As shown in Table 1 above, in addition to setting an initial volume, the output volume of the audio playback device is also affected by the content represented by different scene information. Different representations have different effects. Each representation can have a separate output effect on the initial volume, or multiple representations can exist simultaneously. When multiple representations exist simultaneously, there will be an additive or modified output effect on the initial volume. Adjusting the output volume of the audio playback device based on different scene information can ensure that the output volume meets the needs of the on-site environment and improve the user experience.
[0166] An embodiment of the present application provides a method for adjusting the volume of an audio playback device, which provides a method for adjusting the volume of an audio playback device based on scene information. First, it is necessary to determine the scene information of the scene where the audio playback device is located. The scene information is used to characterize the degree of danger existing in the scene, the size of the scene background volume, and / or the duration of receiving the target sound of a certain event. Then, the volume of the audio playback device is adjusted according to the scene information. The method obtains scene information based on the specific scene where the audio playback device is located, and dynamically adjusts the output volume of the audio playback device according to the scene information, so that the output volume meets the on-site requirements and improves the user experience.
[0167] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of the method. In order to realize the above functions, it includes hardware structures and / or software modules corresponding to the execution of each function. It should be easy to realize that the technical goals in this field are combined with the units and algorithm steps of each example described in the embodiments disclosed herein, and the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional technical goals can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0168] The present application also provides an electronic device. Figure 7 , which is a structural diagram of an electronic device 200 provided in an embodiment of the present application.
[0169] The electronic device 200 includes: a first determination module 201, used to determine the scene information of the scene where the audio playback device is located; wherein the scene information includes first scene information, second scene information and / or third scene information, the first scene information is used to characterize the degree of danger in the scene, the second scene information is used to characterize the background volume of the scene, and the third scene information is used to characterize the duration of playing the target sound for a certain event; a second determination module 202 is used to determine the target output volume of the audio playback device based on the scene information.
[0170] In a possible embodiment, the first scene information is specifically used to represent at least one of the following:
[0171] The positional relationship between people in the scene and the preset area; the preset area is a dangerous area in the scene; the duration of the person's fall in the preset area in the scene; the age information of the people in the preset area in the scene; the weather conditions of the scene; the water level conditions in the scene.
[0172] In another possible embodiment, the first scene information is specifically used to characterize the positional relationship between the people in the scene and the preset area; the first scene information includes: the people in the scene are close to the preset area, the people in the scene are far away from the preset area, or the distance between the people in the scene and the preset area remains unchanged; or the distance between the people in the scene and the preset area; or whether the people in the scene are within the preset area.
[0173] In another possible embodiment, the first determining module 201 is specifically configured to: acquire an image captured by an image capturing device for a scene; and analyze the image to obtain first scene information.
[0174] In another possible embodiment, the scene information includes first scene information, and the second determination module 202 is specifically used to: when the degree of danger in the scene represented by the first scene information increases or is greater than a first threshold, increase the current output volume of the audio playback device to obtain the target output volume; or, when the degree of danger in the scene represented by the first scene information decreases or is less than a second threshold, reduce the current output volume of the audio playback device to obtain the target output volume; or, when the degree of danger in the scene represented by the first scene information remains unchanged or is between the first threshold and the second threshold, determine the current output volume of the audio playback device as the target output volume.
[0175] In another possible embodiment, the scene information includes second scene information, and the second determination module 202 is specifically used to: when the degree of danger in the scene represented by the first scene information is greater than a third threshold and the duration is greater than a fourth threshold, increase the current output volume of the audio playback device to obtain the target output volume; or, when the degree of danger in the scene represented by the first scene information is less than a fifth threshold and the duration is greater than a sixth threshold, reduce the current output volume of the audio playback device to obtain the target output volume; or, when the degree of danger in the scene represented by the first scene information is between the third threshold and the fifth threshold, determine the current output volume of the audio playback device as the target output volume.
[0176] In another possible embodiment, the electronic device also includes a control module 203, which increases the current output volume of the audio playback device to obtain the target output volume when the degree of danger in the scene represented by the first scene information is greater than the third threshold and the duration is greater than the fourth threshold; the control module 203 is used to: control the audio playback device to play an alarm sound and perform an online alarm.
[0177] In another possible embodiment, the first determining module 201 is specifically configured to: obtain the sound collected by the sound collecting device for the scene; and analyze the sound to obtain the second scene information.
[0178] In another possible embodiment, the scene information includes second scene information, and the second determination module 202 is specifically used to: when the background volume of the scene represented by the second scene information increases or is greater than the seventh threshold, increase the current output volume of the audio playback device to obtain the target output volume; or, when the background volume of the scene represented by the second scene information decreases or is less than the eighth threshold, reduce the current output volume of the audio playback device to obtain the target output volume; or, when the background volume of the scene represented by the second scene information remains unchanged or is between the seventh threshold and the eighth threshold, determine the current output volume of the audio playback device as the target output volume.
[0179] In another possible embodiment, the first determining module 201 is specifically configured to: receive event indication information, where the event indication information is used to instruct the audio playback device to play a target sound for a certain event; and obtain third scene information based on the duration of the target sound.
[0180] In another possible embodiment, the scene information includes third scene information, and the second determining module 202 is specifically configured to: when the duration of the sound increases or exceeds a ninth threshold, increase the current output volume of the audio playback device to obtain a target output volume.
[0181] Of course, the electronic device 200 provided in the embodiment of the present application includes but is not limited to the above modules.
[0182] Figure 8 Schematic diagram of another electronic device 300 provided in an embodiment of the present application. Figure 8 As shown, the electronic device 300 includes a processor 301 , a memory 302 and a network interface 303 .
[0183] The processor 301 includes one or more CPUs, which may be single-core CPUs or multi-core CPUs.
[0184] The memory 302 includes but is not limited to RAM, ROM, EPROM, flash memory, or optical memory.
[0185] Optionally, the processor 301 implements the volume adjustment method provided in the embodiment of the present application by reading instructions stored in the memory 302, or the processor 301 implements the volume adjustment method provided in the embodiment of the present application by internally stored instructions. In the case where the processor 301 implements the method in the above embodiment by reading instructions stored in the memory 302, the memory 302 stores instructions for implementing the volume adjustment method provided in the embodiment of the present application.
[0186] The network interface 303 is a wired interface (port), such as an FDDI or GE interface. Alternatively, the network interface 303 is a wireless interface. It should be understood that the network interface 303 includes multiple physical ports and is used to obtain images, videos, and sounds. Optionally, the electronic device also includes a bus 304. The processor 301, memory 302, and network interface 303 are typically interconnected via the bus 304 or by other means.
[0187] In actual implementation, the electronic device 200, the first determination module 201, the second determination module 202, and the control module 203 can be implemented by the processor calling the computer program code in the memory. The specific execution process can be referred to the description of the method part above and will not be repeated here.
[0188] Another embodiment of the present application provides an electronic device comprising a memory and a processor. The memory and the processor are coupled; the memory is configured to store computer program code, which includes computer instructions. When the processor executes the computer instructions, the audio playback device performs the steps of the method described in the above method embodiment.
[0189] Another embodiment of the present application further provides a computer-readable storage medium, which stores computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes each step performed by the electronic device in the method flow shown in the above method embodiment.
[0190] Another embodiment of the present application provides a chip system, which is applied to an electronic device. The chip system includes one or more interface circuits and one or more processors. The interface circuits and processors are interconnected via wiring. The interface circuits are configured to receive signals from the memory of the electronic device and send signals to the processor, the signals including computer instructions stored in the memory. When the electronic device processor executes the computer instructions, the electronic device performs each step performed by the electronic device in the method flow shown in the above method embodiment.
[0191] In another embodiment of the present application, a computer program product is provided. The computer program product includes computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes each step executed by the electronic device in the method flow shown in the above method embodiment.
[0192] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using a software program, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer execution instructions are loaded and executed on a computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website, computer, server or data center to another website, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that contains one or more media that can be integrated. The available media may be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., DVDs), or semiconductor media (e.g., solid-state drives (SSDs)). The above description is merely a specific embodiment of the present application. Those skilled in the art may conceive of variations or substitutions based on the specific embodiments provided herein, all of which are intended to fall within the scope of protection of this application.
Claims
1. A volume adjustment method for an audio playback device, characterized in that: The audio playback device is applied to a network sound column, including: In response to a regional alarm event, determining an initial output volume of the audio playback device based on the regional alarm event, and controlling the audio playback device to play a prompt tone based on the initial output volume; Determining scene information of a scene in which the audio playback device is located; wherein the scene information includes first scene information, second scene information, and third scene information, wherein the first scene information is used to characterize the degree of danger present in the scene, and the degree of danger is determined based on the superposition of at least two of the following information: a positional relationship between a person in the scene and a preset area, a duration of a person falling in the scene, age information of a person in the scene, weather conditions in the scene, or water levels in the scene; the preset area is a dangerous area in the scene; the second scene information is used to characterize the background volume of the scene, and the third scene information is used to characterize the duration of playing a target sound for a certain event; When the scene information includes the first scene information, the second scene information, and the third scene information, the target output volume of the audio playback device corresponding to the plurality of representational contents in the scene information is determined based on the scene information obtained through different acquisition methods and including different representational contents; the target output volume is positively correlated with the degree of danger in the scene, the background volume level, and the duration; The initial output volume of the audio playback device is superimposed or corrected based on the target output volumes corresponding to the multiple representation contents.
2. The method according to claim 1, characterized in that The positional relationship between the person in the scene and the preset area includes: the distance between the person in the scene and the preset area; the distance is negatively correlated with the degree of danger; The duration is positively correlated with the degree of danger; When the age in the age information is greater than a first age threshold, the age is positively correlated with the risk level; when the age in the age information is less than a second age threshold, the age is negatively correlated with the risk level; The severity of the weather conditions is positively correlated with the degree of danger; the water level height represented by the water level conditions is positively correlated with the degree of danger.
3. The method according to claim 2, characterized in that The positional relationship between the people in the scene and the preset area includes: The person in the scene is close to the preset area, the person in the scene is far away from the preset area, or the distance between the person in the scene and the preset area remains unchanged; Or, whether the people in the scene are within the preset area.
4. The method according to any one of claims 1 to 3, characterized in that The determining of the scene information of the scene where the audio playback device is located includes: Acquire an image captured by an image acquisition device for the scene; The image is analyzed to obtain the first scene information.
5. The method according to any one of claims 1 to 3, characterized in that The step of determining the target output volume of the audio playback device corresponding to the plurality of representation contents in the scene information obtained by different acquisition methods and including the different representation contents includes: When the degree of danger in the scene represented by the first scene information increases or exceeds a first threshold, increasing the current output volume of the audio playback device to obtain the target output volume; Alternatively, when the degree of danger in the scene represented by the first scene information decreases or is less than a second threshold, reducing the current output volume of the audio playback device to obtain the target output volume; Alternatively, when the degree of danger in the scene represented by the first scene information remains unchanged or is between a first threshold and a second threshold, the current output volume of the audio playback device is determined as the target output volume.
6. The method according to any one of claims 1 to 3, characterized in that The determining, based on the scene information, a target output volume of the audio playback device includes: When the degree of danger in the scene represented by the first scene information is greater than a third threshold and the duration is greater than a fourth threshold, increasing the current output volume of the audio playback device to obtain the target output volume; Alternatively, when the degree of danger in the scene represented by the first scene information is less than a fifth threshold and the duration is greater than a sixth threshold, reducing the current output volume of the audio playback device to obtain the target output volume; Alternatively, when the degree of danger in the scene represented by the first scene information is between a third threshold and a fifth threshold, the current output volume of the audio playback device is determined as the target output volume.
7. The method according to claim 6, characterized in that When the degree of danger in the scene represented by the first scene information is greater than a third threshold and the duration is greater than a fourth threshold, increasing the current output volume of the audio playback device to obtain the target output volume; the method further includes: The audio playback device is controlled to play the alarm sound and perform network alarm.
8. The method according to claim 1, characterized in that The determining of the scene information of the scene where the audio playback device is located includes: Acquire the sound collected by the sound collection device for the scene; The sound is analyzed to obtain the second scene information.
9. The method according to claim 1 or 8, characterized in that The step of determining the target output volume of the audio playback device corresponding to the plurality of representation contents in the scene information obtained by different acquisition methods and including the different representation contents includes: When the background volume of the scene represented by the second scene information increases or exceeds a seventh threshold, increasing the current output volume of the audio playback device to obtain the target output volume; Alternatively, when the background volume of the scene represented by the second scene information decreases or is less than an eighth threshold, reducing the current output volume of the audio playback device to obtain the target output volume; Alternatively, when the background volume of the scene represented by the second scene information remains unchanged or is between a seventh threshold and an eighth threshold, the current output volume of the audio playback device is determined as the target output volume.
10. The method according to claim 1, characterized in that The determining of the scene information of the scene where the audio playback device is located includes: receiving event indication information, where the event indication information is used to instruct the audio playback device to play the target sound in response to a certain event; The third scene information is obtained based on the duration of the target sound.
11. The method according to claim 1 or 10, characterized in that The step of determining the target output volume of the audio playback device corresponding to the plurality of representation contents in the scene information obtained by different acquisition methods and including the different representation contents includes: When the duration of the sound increases or exceeds a ninth threshold, the current output volume of the audio playback device is increased to obtain the target output volume.
12. An electronic device, characterized in that: include: a first determining module, configured to, in response to a regional alarm event, determine an initial output volume of an audio playback device based on the regional alarm event, and control the audio playback device to play a prompt tone based on the initial output volume; Determining scene information of a scene in which the audio playback device is located; wherein the scene information includes first scene information, second scene information, and third scene information, wherein the first scene information is used to characterize the degree of danger present in the scene, and the degree of danger is determined based on the superposition of at least two of the following information: a positional relationship between a person in the scene and a preset area, a duration of a person falling in the scene, age information of a person in the scene, weather conditions in the scene, or water levels in the scene; the preset area is a dangerous area in the scene; the second scene information is used to characterize the background volume of the scene, and the third scene information is used to characterize the duration of playing a target sound for a certain event; A second determination module is configured to determine, when the scene information includes the first scene information, the second scene information, and the third scene information, the target output volume of the audio playback device corresponding to multiple representational contents in the scene information obtained through different acquisition methods and including different representational contents; the target output volume is positively correlated with the degree of danger present in the scene, the background volume, and the duration; and the initial output volume of the audio playback device is superimposed or corrected based on the target output volumes corresponding to the multiple representational contents.
13. The electronic device according to claim 12, wherein: The positional relationship between the person in the scene and the preset area includes: the distance between the person in the scene and the preset area; the distance is negatively correlated with the degree of danger; The duration is positively correlated with the degree of danger; When the age in the age information is greater than a first age threshold, the age is positively correlated with the risk level; when the age in the age information is less than a second age threshold, the age is negatively correlated with the risk level; The severity of the weather conditions is positively correlated with the degree of danger; the water level height represented by the water level conditions is positively correlated with the degree of danger; The positional relationship between the person in the scene and the preset area includes: whether the person in the scene is close to the preset area, the person in the scene is far away from the preset area, or the distance between the person in the scene and the preset area remains unchanged; or the distance between the person in the scene and the preset area; or whether the person in the scene is within the preset area; The first determining module is specifically configured to: obtain an image captured by an image acquisition device for the scene; analyze the image to obtain the first scene information; The second determination module is specifically configured to: when the degree of danger in the scene represented by the first scene information increases or exceeds a first threshold, increase the current output volume of the audio playback device to obtain the target output volume; or, when the degree of danger in the scene represented by the first scene information decreases or is less than a second threshold, reduce the current output volume of the audio playback device to obtain the target output volume; or, when the degree of danger in the scene represented by the first scene information remains unchanged or is between the first threshold and the second threshold, determine the current output volume of the audio playback device as the target output volume; The second determination module is specifically configured to: when the degree of danger in the scene represented by the first scene information is greater than a third threshold and the duration is greater than a fourth threshold, increase the current output volume of the audio playback device to obtain the target output volume; or, when the degree of danger in the scene represented by the first scene information is less than a fifth threshold and the duration is greater than a sixth threshold, reduce the current output volume of the audio playback device to obtain the target output volume; or, when the degree of danger in the scene represented by the first scene information is between the third threshold and the fifth threshold, determine the current output volume of the audio playback device as the target output volume; The electronic device further includes a control module configured to increase the current output volume of the audio playback device to obtain the target output volume when the degree of danger in the scene represented by the first scene information is greater than a third threshold and the duration is greater than a fourth threshold; the control module is configured to control the audio playback device to play an alarm sound and initiate an online alarm; The first determining module is specifically configured to: obtain the sound collected by the sound collecting device for the scene; analyze the sound to obtain the second scene information; The second determination module is specifically configured to: when the background volume of the scene represented by the second scene information increases or exceeds a seventh threshold, increase the current output volume of the audio playback device to obtain the target output volume; or, when the background volume of the scene represented by the second scene information decreases or is less than an eighth threshold, reduce the current output volume of the audio playback device to obtain the target output volume; or, when the background volume of the scene represented by the second scene information remains unchanged or is between the seventh threshold and the eighth threshold, determine the current output volume of the audio playback device as the target output volume; The first determining module is specifically configured to: receive event indication information, the event indication information being used to instruct the audio playback device to play the target sound for a certain event; and obtain the third scene information based on the duration of the target sound; The second determining module is specifically configured to increase the current output volume of the audio playback device to obtain the target output volume when the duration of the sound increases or exceeds a ninth threshold.
14. An electronic device, characterized in that: It comprises a memory and a processor; the memory and the processor are coupled; the memory is used to store computer program code, and the computer program code includes computer instructions; wherein, when the processor executes the computer instructions, the audio playback device executes the method according to any one of claims 1-11.
15. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer instructions; wherein, when the computer instructions are executed on an electronic device, the electronic device is enabled to execute the method according to any one of claims 1 to 11.
Citation Information
Patent Citations
Scenic spot danger monitoring method and device and computer equipment
CN113627405A