Volume control method and device, electronic equipment and storage medium
By determining and adjusting the volume between the volume groups in the multi -sound source playback scene in the vehicle occupant warehouse, it solves the problem that users are difficult to clearly hear the output of multiple audio applications at the same time, and realize a better user experience.
Patent Information
- Application Number
- CN202411320037.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-20
- Publication Date
- 2025-01-28
AI Technical Summary
In multi-source playback and mixing scenarios in vehicle occupants' compartment, there is a lack of effective volume control strategies, making it difficult for users to clearly hear the output of multiple audio applications at the same time.
By determining that the current downward volume group and the non -lowering sound volume group, adjust the poor volume between the two, so that it is greater than the set threshold, so as to ensure that users can clearly hear the output of non -lowering audio applications, and at the same time hear the lower -sounding sound. Output of audio applications.
Under the scene of multi -sound source playback, users can clearly hear the output of multiple audio applications and improve the user experience.
Smart Images

Figure CN119376676A_ABST
Abstract
Description
[Technical field]
[0001] The embodiments of the present application relate to the field of vehicle technology, and in particular to a volume control method, device, electronic device, and storage medium. [Background technology]
[0002] At present, in the passenger compartment of a vehicle, there are often mixed sound scenarios involving multiple sound sources. For example, when listening to music on the vehicle computer, map navigation needs to be broadcasted at the same time. In this mixed sound scenario, the volume value of the corresponding volume group needs to be controlled so that the user can hear the navigation voice clearly while listening to the song, thereby improving the user experience. However, there is currently a lack of relevant control strategies in the vehicle computer. [Summary of the invention]
[0003] The embodiments of the present application provide a volume control method, device, electronic device and storage medium, which can control the volume difference between the audio that the user wants to listen to and the audio that the user does not want to listen to to form a certain volume difference when two audio applications both need to output audio, thereby ensuring that the user can clearly hear the output audio of the two audio applications, thereby improving the user experience.
[0004] In a first aspect, an embodiment of the present application provides a volume control method, the method comprising:
[0005] If it is determined that both the first audio application and the second audio application need to output audio and meet the preset mixing and downscaling scenario, determine a current downscaling volume group based on a preset rule, where the current downscaling volume group is a first volume group corresponding to the first audio application or a second volume group corresponding to the second audio application;
[0006] Adjusting the volume difference between a non-reduced volume group and the current reduced volume group to be greater than a set threshold, wherein the non-reduced volume group is a volume group other than the current reduced volume group among the first volume group and the second volume group;
[0007] The audio content of the non-volume-reducing application is output based on the adjusted volume value of the non-volume-reducing volume group, and the audio content of the current volume-reducing application is output based on the adjusted volume value of the volume-reducing volume group, wherein the non-volume-reducing application is the audio application corresponding to the non-volume-reducing volume group, and the current volume-reducing application is the audio application corresponding to the current volume-reducing volume group.
[0008] In an embodiment of the present application, when it is determined that both the first audio application and the second audio application need to output audio, and the first audio application and the second audio application meet the preset mixing and down-mixing scenario, the current reduced volume group can be determined from the first volume group corresponding to the first audio application and the second volume group corresponding to the second audio application, and the other volume group in the first volume group and the second volume group except the above-mentioned current reduced volume group is the non-reduced volume group. The audio content output by the non-volume-reducing application corresponding to the non-volume-reducing volume group can be considered as what the user currently wants to listen to, while the audio content output by the current volume-reducing application corresponding to the current volume-reducing volume group can be considered as not what the user currently wants to listen to. Therefore, the volume difference between the non-volume-reducing volume group and the current volume-reducing volume group can be adjusted to a certain size, that is, the volume value of the non-volume-reducing volume group is greater than the volume value of the current volume-reducing volume group, and then the audio content of the non-volume-reducing application is output based on the adjusted volume value of the non-volume-reducing volume group, and the audio content of the current volume-reducing application is output based on the adjusted volume value of the volume-reducing volume group, so that the user can focus on the audio content output by the non-volume-reducing application while also hearing the audio content output by the current volume-reducing application, thereby improving the user experience.
[0009] Optionally, adjusting the volume difference between the non-volume-reduced volume group and the current volume-reduced volume group to be greater than a set threshold includes:
[0010] Get the current volume value of the non-reduced volume group;
[0011] Determining a current sound reduction target value corresponding to the current sound volume value according to a correspondence between the volume value of the non-sound reduction volume group and the sound reduction target value of the current sound reduction volume group, wherein a volume difference between the volume value of the non-sound reduction volume group in the correspondence and the sound reduction target value of the current sound reduction volume group is greater than the set threshold;
[0012] The original volume value of the current volume reduction group is updated to the current volume reduction target value.
[0013] In an embodiment of the present application, the current volume value of the non-volume-reducing volume group can be used as a reference, that is, the current volume value of the non-volume-reducing volume group remains unchanged, to determine the current volume reduction target value of the current volume reduction volume group. Therefore, while ensuring that a certain volume difference is formed between the current volume value of the non-volume-reducing volume group and the current volume reduction target value of the current volume reduction volume group, it is only necessary to reduce the volume value of the current volume reduction volume group to the current volume reduction target value, thereby simplifying the volume adjustment process.
[0014] Optionally, the outputting the audio content of the non-volume-reduced application based on the adjusted volume value of the non-volume-reduced volume group, and the outputting the audio content of the volume-reduced application based on the adjusted volume value of the volume-reduced volume group, include:
[0015] The audio content of the non-voice-reducing application is output based on the current volume value, and the audio content of the current sound-reducing application is output based on the current sound-reduction target value.
[0016] In an embodiment of the present application, when a volume difference of a certain size is formed between the current volume value of the non-volume-reducing volume group and the current volume-reduction target value of the current volume-reducing volume group, the current volume value of the non-volume-reducing volume group is used to output the audio content of the non-volume-reducing application, and the current volume-reduction target value of the current volume-reducing volume group is used to output the audio content of the current volume-reducing application, so that the user can focus on listening to the audio content output by the non-volume-reducing application while also hearing the audio content output by the current volume-reducing application, thereby improving the user experience.
[0017] Optionally, determining a current volume reduction target value corresponding to the current volume value according to a correspondence between the volume value of the non-volume reduction volume group and the volume reduction target value of the current volume reduction volume group includes:
[0018] Determine whether the current volume reduction group is the same as the historical volume reduction group;
[0019] If yes, determine whether the volume value of the current volume reduction group has been restored in history;
[0020] If restored, the current volume reduction target value corresponding to the current volume value is determined according to the corresponding relationship between the volume value of the non-volume reduction volume group and the volume reduction target value of the current volume reduction volume group.
[0021] In the embodiment of the present application, if the current volume reduction group is the same as the historical volume reduction group, it indicates that the current volume reduction group has been reduced in history. Therefore, it can be determined whether the volume value of the current volume reduction group has been restored in history. If restored, then if there is a demand for reducing the volume in the current volume reduction group, the current volume value of the non-reduced volume group can be used as a reference to determine the target volume reduction value of the current volume reduction group, so that the volume difference between the non-reduced volume group and the current volume reduction group can meet the requirement.
[0022] Optionally, after determining whether the volume value of the current volume reduction group has been restored in history, the method further includes:
[0023] If not, determining the current volume reduction target value corresponding to the current volume value according to the corresponding relationship between the volume value of the non-volume reduction volume group and the volume reduction target value of the current volume reduction volume group;
[0024] The volume reduction target value of the current volume reduction group is updated from the historical volume reduction target value to the current volume reduction target value.
[0025] In the embodiment of the present application, if the current volume reduction group is the same as the historical volume reduction group, it indicates that the current volume reduction group has been reduced in history. Therefore, it can be determined whether the volume value of the current volume reduction group has been restored in history. If not, if the current volume reduction group has a volume reduction demand, the current volume value of the non-reduced volume group can be used as a reference to determine the new volume reduction target value of the current volume reduction group, and then the volume reduction target value of the current volume reduction group can be controlled to be updated from the historical volume reduction target value to the new volume reduction target value, so that the volume difference between the non-reduced volume group and the current volume reduction group can meet the requirements.
[0026] Optionally, after determining whether the current volume reduction group is the same as the historical volume reduction group, the method further includes:
[0027] If not, determining whether the volume value of the historical volume reduction group has been restored;
[0028] If not, determining whether there is a volume adjustment operation triggered by a user in the historical volume reduction group during the volume reduction period;
[0029] If not, restoring the volume value of the historical volume reduction group to the original value;
[0030] The current sound reduction target value corresponding to the current sound volume value is determined according to the corresponding relationship between the sound volume value of the non-sound reduction volume group and the sound reduction target value of the current sound reduction volume group.
[0031] In an embodiment of the present application, if the current volume reduction group is different from the historical volume reduction group, it indicates that the current volume reduction group has not been lowered in history. Therefore, it can be further determined whether the volume value of the historical volume reduction group has been restored. If it has not been restored, and the user has not manually adjusted the volume during the volume reduction of the historical volume reduction group, the volume of the historical volume reduction group is restored, so that the historical volume reduction application can output audio at the original volume. At the same time, in the case where there is a demand for volume reduction in the current volume reduction group, the current volume value of the non-reduced volume group can be used as a reference to determine the volume reduction target value of the current volume reduction group, so that the volume difference between the non-reduced volume group and the current volume reduction group can meet the requirements.
[0032] Optionally, the method further includes:
[0033] If it is detected that the non-volume-reducing application abandons outputting audio content, determining whether there is a volume adjustment operation triggered by a user in the current volume-reducing volume group during the volume-reducing period;
[0034] If not, the volume value of the current volume reduction volume group is restored from the current volume reduction target value to the original value.
[0035] In the embodiment of the present application, if the current volume reduction application and the non-volume reduction application output audio at the same time, and the non-volume reduction application gives up outputting audio, it can be determined whether the volume of the current volume reduction group has been manually adjusted during the volume reduction period. If not, the volume value of the current volume reduction group can be restored to the original value, so that the current volume reduction application can output at a larger volume value when outputting audio alone, thereby improving the user experience.
[0036] Optionally, the method further includes:
[0037] If so, the volume value of the current volume reduction group is maintained as the volume value adjusted by the user.
[0038] In the embodiment of the present application, if the current volume reduction application and the non-volume reduction application output audio at the same time, and the non-volume reduction application gives up outputting audio, it can be determined whether the volume of the current volume reduction group has been manually adjusted during the volume reduction period. If so, the volume value of the current volume reduction group is maintained as the volume value adjusted by the user, that is, the volume value of the current volume reduction group is not restored, thereby ensuring that when the current volume reduction application outputs audio alone, it can be output at the volume value set by the user, thereby improving the user experience.
[0039] In a second aspect, an embodiment of the present application provides a volume control device, the device comprising:
[0040] a determining unit, configured to determine a current reduced volume group based on a preset rule if it is determined that both the first audio application and the second audio application need to output audio and meet a preset mixing and downscaling scenario, wherein the current reduced volume group is a first volume group corresponding to the first audio application or a second volume group corresponding to the second audio application;
[0041] an adjusting unit, configured to adjust a volume difference between a non-reduced volume group and the current reduced volume group to be greater than a set threshold, wherein the non-reduced volume group is a volume group other than the current reduced volume group among the first volume group and the second volume group;
[0042] An output unit is used to output the audio content of a non-volume-reducing application based on the adjusted volume value of the non-volume-reducing volume group, and to output the audio content of a current volume-reducing application based on the adjusted volume value of the volume-reducing volume group, wherein the non-volume-reducing application is the audio application corresponding to the non-volume-reducing volume group, and the current volume-reducing application is the audio application corresponding to the current volume-reducing volume group.
[0043] Optionally, the adjustment unit includes:
[0044] A volume acquisition unit, used to acquire the current volume value of the non-volume-reducing volume group;
[0045] a sound reduction target value determining unit, configured to determine a current sound reduction target value corresponding to the current sound volume value according to a correspondence between the sound volume value of the non-sound reduction volume group and the sound reduction target value of the current sound reduction volume group, wherein a volume difference between the sound volume value of the non-sound reduction volume group in the correspondence and the sound reduction target value of the current sound reduction volume group is greater than the set threshold;
[0046] The volume updating unit is used to update the original volume value of the current volume reduction volume group to the current volume reduction target value.
[0047] Optionally, the output unit is specifically used for:
[0048] The audio content of the non-voice-reducing application is output based on the current volume value, and the audio content of the current sound-reducing application is output based on the current sound-reduction target value.
[0049] Optionally, the sound reduction target value determining unit includes:
[0050] A judging subunit, used to judge whether the current volume reduction group is the same as the historical volume reduction group;
[0051] The judging subunit is further configured to judge whether the volume value of the current volume reduction group has been restored in history if yes;
[0052] The volume reduction target value determination subunit is used to determine the current volume reduction target value corresponding to the current volume value according to the corresponding relationship between the volume value of the non-volume reduction volume group and the volume reduction target value of the current volume reduction volume group if restored.
[0053] Optionally, the sound reduction target value determination subunit is further used to:
[0054] If not, determining the current volume reduction target value corresponding to the current volume value according to the corresponding relationship between the volume value of the non-volume reduction volume group and the volume reduction target value of the current volume reduction volume group;
[0055] The sound reduction target value determination unit further includes:
[0056] The updating subunit is used to update the volume reduction target value of the current volume reduction group from the historical volume reduction target value to the current volume reduction target value.
[0057] Optionally, the judging subunit is further used for:
[0058] If not, determining whether the volume value of the historical volume reduction group has been restored;
[0059] If not, determining whether there is a volume adjustment operation triggered by a user in the historical volume reduction group during the volume reduction period;
[0060] The sound reduction target value determination unit further includes:
[0061] a restoring subunit, for restoring the volume value of the historical volume reduction group to the original value if no;
[0062] The volume reduction target value determination subunit is further configured to determine the current volume reduction target value corresponding to the current volume value according to the corresponding relationship between the volume value of the non-volume reduction volume group and the volume reduction target value of the current volume reduction volume group.
[0063] Optionally, the adjustment unit includes:
[0064] A determination unit, configured to determine whether there is a volume adjustment operation triggered by a user in the current volume reduction group during the volume reduction period if it is detected that the non-volume reduction application abandons outputting the audio content;
[0065] A restoring unit is used to restore the volume value of the current volume reduction volume group from the current volume reduction target value to the original value if no.
[0066] Optionally, the adjustment unit includes:
[0067] A maintaining unit is used to maintain the volume value of the current volume reduction group as the volume value adjusted by the user if so.
[0068] In a third aspect, an embodiment of the present application provides an electronic device, comprising a memory for storing computer program instructions and a processor for executing the program instructions, wherein when the computer program instructions are executed by the processor, the electronic device is triggered to execute the steps of the method described in any embodiment of the first aspect.
[0069] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store computer instructions, and when the computer is running, the computer causes the computer to execute the steps of the method described in any embodiment of the first aspect.
[0070] It should be understood that the second to fourth aspects of the embodiments of the present application are consistent with the technical solutions of the first aspect of the embodiments of the present application, and the beneficial effects achieved by each aspect and the corresponding feasible implementation methods are similar and will not be repeated here.
Brief Description of the Drawings
[0071] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0072] Figure 1 A flow chart of a volume control method provided in an embodiment of the present application;
[0073] Figure 2 A flowchart of a method for adjusting the volume difference between a non-reduced volume group and a current reduced volume group provided in an embodiment of the present application;
[0074] Figure 3 A flowchart of a method for determining a current volume reduction target value of a current volume reduction group provided in an embodiment of the present application;
[0075] Figure 4 A flowchart of an audio output method provided in an embodiment of the present application;
[0076] Figure 5 A flow chart of a volume control method for a volume reduction group provided in an embodiment of the present application;
[0077] Figure 6 A schematic diagram of the structure of a volume control device provided in an embodiment of the present application;
[0078] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. [Specific implementation method]
[0079] In order to better understand the technical solution of this specification, the embodiments of the present application are described in detail below with reference to the accompanying drawings.
[0080] It should be clear that the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this specification.
[0081] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit this specification. The singular forms of "a", "said" and "the" used in the embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.
[0082] The professional terms involved in the embodiments of the present application are explained below.
[0083] Car Audio Service (CarAudio): CarAudio service is a system service in the Android system, which is used to manage functions related to in-car audio playback. This service is responsible for managing the audio input, output, volume control, sound effect processing and other functions of the in-car audio system, and provides audio playback support for the in-car entertainment system. At the same time, CarAudio service also manages audio focus to ensure that the priority and mutual exclusivity of audio playback in the vehicle environment are properly handled.
[0084] Audio Focus: It is an important function in the Android operating system, which is used to coordinate and manage the access and use of audio resources by applications. When an application obtains the audio focus, it means that it has the right to output sound in the system; other applications need to adjust the audio output behavior according to the state of the audio focus to avoid sound conflicts and provide a better user experience.
[0085] At present, in the passenger compartment of a vehicle, there are often mixed sound scenarios involving multiple sound sources. For example, when listening to music on the vehicle computer, map navigation needs to be broadcasted at the same time. In this mixed sound scenario, the volume value of the corresponding volume group needs to be controlled so that the user can hear the navigation voice clearly while listening to the song, thereby improving the user experience. However, there is currently a lack of relevant control strategies in the vehicle computer.
[0086] In view of this, an embodiment of the present application provides a volume control method. In this method, when it is determined that both the first audio application and the second audio application need to output audio, and the first audio application and the second audio application meet the preset mixing and down-mixing scenario, a current volume reduction group can be determined from a first volume group corresponding to the first audio application and a second volume group corresponding to the second audio application, and the other volume group in the first volume group and the second volume group except the above-mentioned current volume reduction group is a non-volume reduction volume group. The audio content output by the non-volume-reducing application corresponding to the non-volume-reducing volume group can be considered as what the user currently wants to listen to, while the audio content output by the current volume-reducing application corresponding to the current volume-reducing volume group can be considered as not what the user currently wants to listen to. Therefore, the volume difference between the non-volume-reducing volume group and the current volume-reducing volume group can be adjusted to a certain size, that is, the volume value of the non-volume-reducing volume group is greater than the volume value of the current volume-reducing volume group, and then the audio content of the non-volume-reducing application is output based on the adjusted volume value of the non-volume-reducing volume group, and the audio content of the current volume-reducing application is output based on the adjusted volume value of the volume-reducing volume group, so that the user can focus on the audio content output by the non-volume-reducing application while also hearing the audio content output by the current volume-reducing application, thereby improving the user experience.
[0087] The technical solution provided by the embodiments of the present application is introduced below in conjunction with the accompanying drawings.
[0088] See also Figure 1 , is a flow chart of a volume control method provided in an embodiment of the present application. The method can be applied to an electronic device, for example, the electronic device can be a vehicle terminal, the vehicle terminal includes an application layer and a framework layer, the method is mainly implemented by using the CarAudio service in the framework layer, and the flow of the method is described as follows:
[0089] Step 10: If it is determined that both the first audio application and the second audio application need to output audio and meet the preset mixing and downscaling scenario, determine a current downscaling volume group based on a preset rule.
[0090] In the embodiment of the present application, the first audio application and the second audio application can be considered as audio applications started in sequence in the vehicle terminal. The first audio application and the second audio application can each output their own audio content by applying for audio focus. For example, if the first audio application is "Kuwo Music", the first audio application can apply for long-term audio focus (indicating that "Kuwo Music" needs to hold the audio focus for a long time) to continuously play music; if the second audio application is "Gaode Map", the second audio application can apply for temporary audio focus (indicating that "Gaode Map" needs to temporarily obtain audio focus) to intermittently play navigation voice. That is, a scene in which both the first audio application and the second audio application need to output audio is formed. Of course, there may also be a third audio application, such as a voice assistant, then the third audio application will also apply for temporary audio focus (indicating that "voice assistant" needs to temporarily obtain audio focus), at which time the temporary focus of the above-mentioned second audio application will be temporarily recovered, that is, a scene in which both the first audio application and the third audio application need to output audio is formed. In this application, the first audio application and the second audio application both need to output audio as an example to illustrate how to control the volume.
[0091] If both the first audio application and the second audio application need to output audio, it is necessary to determine whether the first audio application and the second audio application meet the preset mixing and downscaling scenario.
[0092] As a possible implementation, a first volume group corresponding to a first audio application and a second volume group corresponding to a second audio application may be determined. If the first volume group and the second volume group are not the same, then by looking up Table 1, it is determined whether the first volume group and the second volume group conform to the preset mixing and downgrading scenario. It should be understood that Table 1 stores all combinations of two volume groups that can form a preset mixing and downgrading scenario, including: a communication volume group and a navigation volume group, a navigation volume group and a media volume group, a voice interaction volume group and a media volume group, a media volume group and a TST-ADAS prompt sound volume group, etc. Of course, there may be other volume groups that can form a preset mixing and downgrading scenario, and this application does not impose any special restrictions on this.
[0093] If the first volume group and the second volume group meet the preset mixing and downscaling scenario, it can be considered that the first audio application and the second audio application meet the preset mixing and downscaling scenario; for example, the first audio application is Kuwo Music, and the second audio application is AutoNavi Map, then the first volume group is a media volume group, and the second volume group is a TTS-navigation volume group. By looking up Table 1, it can be determined that the first volume group and the second volume group meet the preset mixing and downscaling scenario, and the first audio application (Kuwo Music) and the second audio application (AutoNavi Map) can be considered to meet the preset mixing and downscaling scenario. Conversely, if the first volume group and the second volume group do not meet the preset mixing and downscaling scenario, it can be considered that the first audio application and the second audio application do not meet the preset mixing and downscaling scenario. For example, the first audio application is Kuwo Music, and the second audio application is a voice call, then the first volume group is a media volume group, and the second volume group is a communication volume group. By looking up Table 1, it can be determined that the first volume group and the second volume group do not meet the preset mixing and downscaling scenario, and the first audio application (Kuwo Music) and the second audio application (voice call) do not meet the preset mixing and downscaling scenario. Table 1 is shown below:
[0094] Table 1
[0095]
[0096]
[0097] After determining that the first audio application and the second audio application meet the preset volume reduction scenario, the current volume reduction group can be further determined based on the preset rule. The following example is used to illustrate that the first audio application applies for audio focus before the second audio application, and the first audio application obtains audio focus before the second audio application.
[0098] As a possible implementation, a two-dimensional array consisting of a first volume group identifier (the identifier of the first volume group corresponding to the first audio application) and a second volume group identifier (the identifier of the second volume group corresponding to the second audio application) can be constructed according to the order in which the first audio application and the second audio application obtain audio focus, that is, [first volume group identifier][second volume group identifier], and then the two-dimensional array is input into a preset processing function (getReduceGroupId) to obtain the current volume reduction group identifier, and then the current volume reduction group can be determined based on the current volume reduction group identifier. It should be understood that the current volume reduction group here is the first volume group or the second volume group mentioned above.
[0099] For example, the first audio application is Kuwo Music, and the second audio application is AutoNavi Maps. The first volume group corresponding to the first audio application is: media volume group, and accordingly, the first volume group identifier is the media volume group identifier (GROUP_MEDIA); the second volume group corresponding to the second audio application is: navigation volume group, and accordingly, the second volume group identifier is the navigation volume group identifier (GROUP_NAVI), then the constructed two-dimensional array is [GROUP_MEDIA][GROUP_NAVI]. On this basis, the above two-dimensional array is input into the preset processing function, and the obtained processing strategy is "INTERACTION_CURRENT_REDUCE", that is, the volume group identifier representing the current volume reduction group is: the first volume group identifier (GROUP_MEDIA), so that it can be determined that the current volume reduction group is the first volume group (media volume group). The preset processing function is as follows:
[0100] Private static final int[][]sInteractionMatrix{
[0101] / / First volume group identifier: GROUP_MEDIA
[0102] INTERACTION_REJECT_MIX / / Second volume group identifier: GROUP_MEDIA
[0103] INTERACTION_CURRENT_REDUCE / / Second volume group identifier: GROUP_NOTIFICATION
[0104] INTERACTION_CURRENT_REDUCE / / Second volume group identifier: GROUP_NAVI
[0105] INTERACTION_REJECT_MIX / / Second volume group identifier: GROUP_CALL
[0106] INTERACTION_CURRENT_REDUCE / / Second volume group identifier: GROUP_TTSINTERACTION_DIRECT_MIX / / Second volume group identifier: GROUP_SYSTEM
[0107] }
[0108] Step 20: Adjust the volume difference between the non-reduced volume group and the current reduced volume group to be greater than a set threshold.
[0109] In the embodiment of the present application, since the first audio application corresponds to the first volume group and the second audio application corresponds to the second volume group, after the current volume reduction volume group is determined from the first volume group and the second volume group, the volume groups other than the current volume reduction volume group in the first volume group and the second volume group are non-volume reduction volume groups. In the case where both the non-volume reduction volume group and the current volume reduction volume group need to output audio, it can be considered that the audio to be output by the non-volume reduction volume group is what the user currently wants to focus on, while the audio to be output by the current volume reduction volume group is not what the user currently wants to focus on. For example, the first audio application is Kuwo Music and the second audio application is AutoNavi Map, then the first volume group is the media volume group, and the second volume group is the navigation volume group. The current volume-reducing volume group determined from the first volume group and the second volume group is the first volume group (media volume group), and the non-volume-reducing volume group is the second volume group (navigation volume group). This means that when both the media volume group and the navigation volume group need to output volume, the user's focus is on listening to the audio output by the non-volume-reducing volume group (navigation volume group), and then the audio output by the current volume-reducing volume group (media volume group).
[0110] Therefore, the volume difference between the non-reduced volume group and the current reduced volume group can be adjusted to be greater than the set threshold, that is, the volume value of the non-reduced volume group is greater than the volume value of the current reduced volume group, so that the audio output by the non-reduced volume group is more prominent than the audio output by the current reduced volume group, and at the same time, the audio output by the non-reduced volume group cannot cover the audio output by the current reduced volume group, that is, the volume value of the non-reduced volume group cannot be too much greater than the volume value of the current reduced volume group, so as to avoid the situation where the user cannot hear the audio output by the current reduced volume group. The set threshold here can be set according to the actual situation, and this application does not impose any special restrictions on this.
[0111] How to adjust the volume difference between the non-reduced volume group and the current reduced volume group is described in detail below.
[0112] See also Figure 2 , which is a flow chart of a method for adjusting the volume difference between a non-reduced volume group and a current reduced volume group provided in an embodiment of the present application. Step 20 can be implemented by executing sub-steps 201 to 203:
[0113] Step 201: Obtain the current volume value of the non-reduced volume group.
[0114] Step 202: Determine the current volume reduction target value of the current volume reduction group corresponding to the current volume value of the non-volume reduction group according to the corresponding relationship between the volume value of the non-volume reduction volume group and the volume reduction target value of the current volume reduction volume group.
[0115] Step 203: Update the original volume value of the current volume reduction group to the current volume reduction target value.
[0116] In an embodiment of the present application, since the user wants to focus on listening to the audio output by the non-volume-reducing volume group, the current volume value of the non-volume-reducing volume group can be used as a reference, that is, the current volume value of the non-volume-reducing volume group remains unchanged, and then the current volume reduction target value of the current volume reduction volume group is determined based on the correspondence between the volume value of the non-volume-reducing volume group and the volume reduction target value of the current volume reduction group.
[0117] It should be understood that in the correspondence between the volume value of the non-reduced volume group and the volume reduction target value of the current volume reduction group, it is necessary to ensure that the volume difference between the volume value of the non-reduced volume group and the volume reduction target value of the current volume reduction group is greater than the set threshold, so that the volume difference between the current volume value of the non-reduced volume group and the current volume reduction target value of the current volume reduction group determined based on the above correspondence can be greater than the set threshold, so that while ensuring that a certain volume difference is formed between the current volume value of the non-reduced volume group and the current volume reduction target value of the current volume reduction group, it is only necessary to reduce the volume value of the current volume reduction group to the current volume reduction target value, without adjusting the volume value of the non-reduced volume group, thereby simplifying the volume adjustment process. The partial correspondence between the volume value of the non-reduced volume group and the volume reduction target value of the current volume reduction group is shown in Table 2.
[0118]
[0119]
[0120] Of course, in another possible implementation, the volume value of the non-reducing volume group can be increased while the volume value of the current reducing volume group can be reduced, so that the volume difference between the increased volume value of the non-reducing volume group and the reduced volume value of the current reducing volume group can be greater than the set threshold.
[0121] It should be understood that whether only the volume value of the current volume reduction group is adjusted, or the volume values of the non-volume reduction group and the current volume reduction group are adjusted at the same time, the original volume value of the corresponding volume group is adjusted in the framework layer, and after the volume adjustment, the framework layer is prohibited from sending a volume adjustment notification to the application layer, and the application layer will not output a volume adjustment window to show the user the volume adjustment process, thereby achieving seamless adjustment of the volume and improving the user experience.
[0122] In some embodiments, considering that there may be a historical volume reduction group, in the process of determining the current volume reduction target value of the current volume reduction group, it is necessary to make a comprehensive determination in combination with the historical volume reduction group.
[0123] See also Figure 3, is a flowchart of a method for determining a current volume reduction target value of a current volume reduction group provided in an embodiment of the present application. Step 202 can be implemented by executing sub-steps 2021 to 2029:
[0124] Step 221: Determine whether the current volume reduction group is the same as the historical volume reduction group.
[0125] Step 2022: If yes, determine whether the volume value of the current volume reduction group has been restored in history.
[0126] Step 2023: If restored, determine the current volume reduction target value corresponding to the current volume value according to the corresponding relationship between the volume value of the non-volume reduction volume group and the volume reduction target value of the current volume reduction volume group.
[0127] Step 2024: if not restored, determining the current volume reduction target value corresponding to the current volume value according to the corresponding relationship between the volume value of the non-volume reduction volume group and the volume reduction target value of the current volume reduction volume group;
[0128] Step 2025: Update the volume reduction target value of the current volume reduction group from the historical volume reduction target value to the current volume reduction target value.
[0129] In an embodiment of the present application, if the current volume reduction group is the same as the historical volume reduction group, it indicates that the current volume reduction group has been reduced in history. Therefore, it can be determined whether the volume value of the current volume reduction group has been restored in history. If restored, then in the case where there is a demand for reducing the volume in the current volume reduction group, the current volume value of the non-reduced volume group can be used as a reference to determine the target volume reduction value of the current volume reduction group, so that the volume difference between the non-reduced volume group and the current volume reduction group can be greater than the set threshold. On the contrary, if it is not restored, then in the case where there is a demand for reducing the volume in the current volume reduction group, the current volume reduction target value of the current volume reduction group can be determined based on the current volume value of the non-reduced volume group, that is, the latest target volume reduction value of the current volume reduction group is determined. At this time, since the historical target volume reduction value of the current volume reduction group has not been restored, this means that there are two target volume reduction values for the current volume reduction group: the historical target volume reduction value and the current target volume reduction value. On this basis, the volume reduction target value of the current volume reduction group can be controlled to be updated from the historical volume reduction target value to the current volume reduction target value, so that the volume difference between the current non-volume reduction group and the current volume reduction group can meet the requirements.
[0130] For example, if the first audio application in history is Kuwo Music, and the second audio application in history is a voice assistant, then the first volume group corresponding to the first audio application in history is a media volume group, and the second volume group corresponding to the second audio application in history is a voice interaction volume group. Therefore, the historical volume reduction volume group is a media volume group, and the historical non-volume reduction volume group is a voice interaction volume group. Therefore, historically, the volume value of the media volume group is reduced so that the volume value between the voice interaction volume group and the media volume group after the reduction can be greater than the set threshold. On this basis, the current first audio application is Kuwo Music, and the current second audio application is Gaode Map. Then the first volume group corresponding to the current first audio application is a media volume group, and the second volume group corresponding to the current second audio application is a navigation volume group. Therefore, the current volume reduction volume group is a media volume group, and the current non-volume reduction volume group is a navigation volume group. In other words, the current volume reduction volume group is the same as the historical volume reduction volume group, both of which are media volume groups. At this time, it can be determined whether the historical volume reduction of the media volume group has been restored; if it has been restored, the current volume reduction target amount of the media volume group is determined according to the current volume value of the navigation volume group. If it has not recovered, the current volume reduction target amount of the media volume group is determined based on the current volume value of the navigation volume group. Since the historical volume reduction target amount of the media volume group has not been restored, it is considered that the media volume group is currently in a volume reduction state. In this way, the volume reduction target value of the media volume group can be updated from the historical volume reduction target value to the current volume reduction target value, so that the volume difference between the current volume value of the navigation volume group and the current volume reduction target value of the media volume group can be greater than the set threshold, thereby meeting the user's usage needs when the current navigation volume group and the media volume group output audio at the same time.
[0131] Step 2026: If the current volume reduction group is different from the historical volume reduction group, determine whether the volume value of the historical volume reduction group has been restored.
[0132] Step 2027: If not, determine whether there is a volume adjustment operation triggered by the user in the historical volume reduction group during the volume reduction period.
[0133] Step 2028: If not, restore the volume value of the historical volume reduction group to the original value.
[0134] Step 2029: Determine the current volume reduction target value corresponding to the current volume value according to the corresponding relationship between the volume value of the non-volume reduction volume group and the volume reduction target value of the current volume reduction volume group.
[0135] In an embodiment of the present application, if the current volume reduction group is different from the historical volume reduction group, it indicates that the current volume reduction group has not been lowered in history. Therefore, it can be further determined whether the volume value of the historical volume reduction group has been restored. If it has not been restored, and the user has not manually adjusted the volume during the volume reduction of the historical volume reduction group, the volume of the historical volume reduction group is restored, so that the historical volume reduction group can subsequently output audio at the original volume. At the same time, in the case where there is a demand for volume reduction in the current volume reduction group, the current volume reduction target value of the current volume reduction group can be determined based on the current volume value of the non-volume reduction group, so that the volume difference between the non-volume reduction group and the current volume reduction group can meet the user's usage needs.
[0136] For example, if the first audio application in history is Kuwo Music, and the second audio application in history is AutoNavi Map, then the first volume group corresponding to the first audio application in history is the media volume group, and the second volume group corresponding to the second audio application in history is the navigation volume group. Therefore, the historical volume reduction volume group is the media volume group, and the historical non-volume reduction volume group is the navigation volume group. In other words, historically, the volume value of the media volume group is reduced so that the volume value between the voice navigation volume group and the media volume group after the reduction can be greater than the set threshold. On this basis, the current first audio application is a voice call, and the current second audio application is AutoNavi Map, then the first volume group corresponding to the current first audio application is the communication volume group, and the second volume group corresponding to the current second audio application is the navigation volume group. Therefore, the current volume reduction volume group is the navigation volume group, and the current non-volume reduction volume group is the communication volume group. In other words, the current volume reduction volume group (navigation volume group) is different from the historical volume reduction volume group (media volume group). At this time, it can be determined whether the historical volume reduction of the historical volume reduction group (media volume group) has been restored; if not, it is further determined whether the volume of the historical volume reduction group (media volume group) has been manually adjusted during the historical volume reduction period. If not, the volume value of the historical volume reduction volume group (media volume group) is restored so that when the subsequent historical volume reduction volume group (media volume group) needs to output the volume, it can output the volume at a larger volume. At the same time, the current volume reduction target value of the current volume reduction volume group (navigation volume group) can be determined based on the current volume value of the current non-volume reduction volume group (communication volume group), so that the volume difference between the current volume value of the current non-volume reduction volume group (communication volume group) and the current volume reduction target value of the current volume reduction volume group (navigation volume group) can be greater than the set threshold, thereby meeting the user's usage needs when the current communication volume group and the navigation volume group output audio at the same time.
[0137] Step 30: outputting the audio content of the non-volume-reduced application based on the adjusted volume value of the non-volume-reduced volume group, and outputting the audio content of the current volume-reduced application based on the adjusted volume value of the volume-reduced volume group.
[0138] In an embodiment of the present application, after the volume difference between the non-reduced volume group and the current reduced volume group is adjusted to be greater than a set threshold, the audio content of the non-reduced application can be output based on the adjusted volume value of the non-reduced volume group, and the audio content of the current reduced volume application can be output based on the adjusted volume value of the reduced volume group, so that the user can focus on the audio content output by the non-reduced application while also hearing the audio content output by the current reduced volume application, thereby improving the user experience. It should be understood that the non-reduced application here is the audio application corresponding to the non-reduced volume group, and the current reduced volume application is the audio application corresponding to the current reduced volume group.
[0139] For example, if the non-volume-reduced volume group is a navigation volume group, and the current volume-reduced volume group is a media volume group, the audio content of Amap can be output based on the adjusted volume value of the navigation volume group, and the audio content of Kuwo Music can be output based on the adjusted volume value of the media volume group.
[0140] In some embodiments, considering that under the adjustment that the volume difference between the non-reduced volume group and the current reduced volume group is adjusted to be greater than a set threshold, the volume value of the non-reduced volume group can remain unchanged, and only the volume value of the current reduced volume group needs to be adjusted, therefore, in an embodiment of the present application, audio can be output according to the original value of the non-reduced volume group, and the current reduced volume group can output audio according to the adjusted volume value.
[0141] See also Figure 4 , is a flowchart of an audio output method provided in an embodiment of the present application. Step 30 can be implemented by executing sub-step 301:
[0142] Step 301: outputting audio content of a non-volume-reducing application based on a current volume value, and outputting audio content in a current volume-reducing application based on a current volume-reduction target value.
[0143] In an embodiment of the present application, when a volume difference of a certain size is formed between the current volume value of the non-volume-reducing volume group and the current volume-reduction target value of the current volume-reducing volume group, the current volume value of the non-volume-reducing volume group is used to output the audio content of the non-volume-reducing application, and the current volume-reduction target value of the current volume-reducing volume group is used to output the audio content of the current volume-reducing application, so that the user can focus on listening to the audio content output by the non-volume-reducing application while also hearing the audio content output by the current volume-reducing application, thereby improving the user experience.
[0144] In some embodiments, when a non-volume-reducing application gives up outputting audio, the preset mixing and reducing scenario will be exited if only the current volume-reducing application exists. At this time, it can be determined whether the volume value of the current volume-reducing application needs to be restored according to the set rules.
[0145] See also Figure 5 , which is a flow chart of a volume control method for a volume reduction group provided in an embodiment of the present application. After executing step 30, steps 40 to 60 may be continued:
[0146] Step 40: If it is detected that the non-volume-reducing application abandons outputting the audio content, it is determined whether there is a volume adjustment operation triggered by the user in the current volume-reducing group during the volume-reducing period.
[0147] Step 50: If not, the volume value of the current volume reduction group is restored from the current volume reduction target value to the original value.
[0148] Step 60: If yes, the volume value of the current volume reduction group is maintained as the volume value adjusted by the user.
[0149] In an embodiment of the present application, during the process in which the current volume reduction application and the non-volume reduction application simultaneously output audio, if the non-volume reduction application abandons the audio focus, it can be considered that the non-volume reduction application abandons the output audio, and at this time only the current volume reduction application needs to output audio. In the above case, it can be determined whether the current volume reduction group has manually adjusted the volume during the volume reduction period. If not, the volume value of the current volume reduction volume group can be restored to the original volume value, so that the current volume reduction application can output at a larger volume value when outputting audio alone, thereby improving the user experience. If it exists, the volume value of the current volume reduction volume group is maintained at the volume value adjusted by the user, that is, the volume value of the current volume reduction volume group is not restored, thereby ensuring that when the current volume reduction application outputs audio alone, it can output at the volume value set by the user, thereby improving the user experience.
[0150] See also Figure 6 Based on the same inventive concept, the embodiment of the present application further provides a volume control device, the volume control device comprising:
[0151] The determining unit 701 is used to determine a current reduced volume group based on a preset rule if it is determined that both the first audio application and the second audio application need to output audio and meet the preset mixing and downscaling scenario, and the current reduced volume group is a first volume group corresponding to the first audio application or a second volume group corresponding to the second audio application;
[0152] An adjusting unit 702, configured to adjust a volume difference between a non-reduced volume group and a current reduced volume group to be greater than a set threshold, wherein the non-reduced volume group is a volume group other than the current reduced volume group in the first volume group and the second volume group;
[0153] The output unit 703 is used to output the audio content of the non-volume-reducing application based on the adjusted volume value of the non-volume-reducing volume group, and to output the audio content of the current volume-reducing application based on the adjusted volume value of the volume-reducing volume group, wherein the non-volume-reducing application is the audio application corresponding to the non-volume-reducing volume group, and the current volume-reducing application is the audio application corresponding to the current volume-reducing volume group.
[0154] Optionally, the adjusting unit 702 includes:
[0155] A volume acquisition unit, used to acquire the current volume value of the non-reduced volume group;
[0156] a volume reduction target value determining unit, configured to determine a current volume reduction target value corresponding to a current volume value according to a correspondence between a volume value of a non-volume reduction volume group and a volume reduction target value of a current volume reduction volume group, wherein a volume difference between a volume value of the non-volume reduction volume group and a volume reduction target value of the current volume reduction volume group in the correspondence is greater than a set threshold;
[0157] The volume updating unit is used to update the original volume value of the current volume reduction group to the current volume reduction target value.
[0158] Optionally, the output unit 703 is specifically used for:
[0159] The audio content of the non-volume-reducing application is output based on the current volume value, and the audio content of the current volume-reducing application is output based on the current volume-reduction target value.
[0160] Optionally, the sound reduction target value determination unit includes:
[0161] A judging subunit, used to judge whether the current volume reduction group is the same as the historical volume reduction group;
[0162] The judging subunit is further used to judge whether the volume value of the current volume reduction group has been restored in history if yes;
[0163] The volume reduction target value determination subunit is used to determine the current volume reduction target value corresponding to the current volume value according to the corresponding relationship between the volume value of the non-volume reduction volume group and the volume reduction target value of the current volume reduction volume group if the volume is restored.
[0164] Optionally, the pitch reduction target value determination subunit is further used to:
[0165] If not, determining the current volume reduction target value corresponding to the current volume value according to the corresponding relationship between the volume value of the non-volume reduction group and the volume reduction target value of the current volume reduction group;
[0166] The sound reduction target value determination unit also includes:
[0167] The updating subunit is used to update the volume reduction target value of the current volume reduction group from the historical volume reduction target value to the current volume reduction target value.
[0168] Optionally, the judging subunit is further used for:
[0169] If not, determine whether the volume value of the historically lowered volume group has been restored;
[0170] If not, determine whether there is a volume adjustment operation triggered by the user in the historical volume reduction group during the volume reduction period;
[0171] The sound reduction target value determination unit further includes:
[0172] A restoring subunit, for restoring the volume value of the historical volume reduction group to the original value if no;
[0173] The volume reduction target value determination subunit is further configured to determine the current volume reduction target value corresponding to the current volume value according to the corresponding relationship between the volume value of the non-volume reduction volume group and the volume reduction target value of the current volume reduction volume group.
[0174] Optionally, the adjusting unit 702 further includes:
[0175] A determination unit, configured to determine whether there is a volume adjustment operation triggered by a user in the current volume reduction group during the volume reduction period if it is detected that the non-volume reduction application abandons outputting the audio content;
[0176] The restoring unit is used to restore the volume value of the current volume reduction group from the current volume reduction target value to the original value if no.
[0177] Optionally, the adjusting unit 702 further includes:
[0178] A maintaining unit is used to maintain the volume value of the current volume reduction group as the volume value adjusted by the user if so.
[0179] See also Figure 7 Based on the same inventive concept, an embodiment of the present application further provides an electronic device, the electronic device comprising at least one processor 801, the processor 801 is used to execute a computer program stored in a memory, and implement the embodiment of the present application as provided in Figure 1-5 Flow chart of the volume control method shown.
[0180] Optionally, the processor 801 may specifically be a central processing unit, a specific ASIC, or one or more integrated circuits for controlling program execution.
[0181] Optionally, the electronic device may further include a memory 802 connected to the at least one processor 801, and the memory 802 may include a ROM, a RAM, and a disk memory. The memory 802 is used to store data required by the processor 801 when it is running, that is, to store instructions that can be executed by the at least one processor 801. The at least one processor 801 executes the instructions stored in the memory 802 to execute the following steps: Figure 1-5 The method shown. Wherein, the number of memories 802 is one or more. Wherein, the number of memories 802 is one or more.
[0182] The present application also provides a computer storage medium, wherein the computer storage medium stores computer instructions, and when the computer instructions are executed on a computer, the computer executes Figure 1-5 method.
[0183] The above description is only a preferred embodiment of this specification and is not intended to limit this specification. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of this specification should be included in the scope of protection of this specification.
Claims
1. A volume control method, characterized in that: The method comprises: If it is determined that both the first audio application and the second audio application need to output audio and meet the preset mixing and downscaling scenario, determine a current downscaling volume group based on a preset rule, where the current downscaling volume group is a first volume group corresponding to the first audio application or a second volume group corresponding to the second audio application; Adjusting the volume difference between a non-reduced volume group and the current reduced volume group to be greater than a set threshold, wherein the non-reduced volume group is a volume group other than the current reduced volume group among the first volume group and the second volume group; The audio content of the non-volume-reducing application is output based on the adjusted volume value of the non-volume-reducing volume group, and the audio content of the current volume-reducing application is output based on the adjusted volume value of the volume-reducing volume group, wherein the non-volume-reducing application is the audio application corresponding to the non-volume-reducing volume group, and the current volume-reducing application is the audio application corresponding to the current volume-reducing volume group.
2. The method according to claim 1, characterized in that: The step of adjusting the volume difference between the non-reduced volume group and the current reduced volume group to be greater than a set threshold comprises: Get the current volume value of the non-reduced volume group; Determining a current sound reduction target value corresponding to the current sound volume value according to a correspondence between the volume value of the non-sound reduction volume group and the sound reduction target value of the current sound reduction volume group, wherein a volume difference between the volume value of the non-sound reduction volume group in the correspondence and the sound reduction target value of the current sound reduction volume group is greater than the set threshold; The original volume value of the current volume reduction group is updated to the current volume reduction target value.
3. The method according to claim 2, characterized in that The step of outputting the audio content of the non-volume-reduced application based on the adjusted volume value of the non-volume-reduced volume group, and the step of outputting the audio content of the volume-reduced application based on the adjusted volume value of the volume-reduced volume group, comprises: The audio content of the non-voice-reducing application is output based on the current volume value, and the audio content of the current sound-reducing application is output based on the current sound-reduction target value.
4. The method according to claim 2, characterized in that: The determining, according to the correspondence between the volume value of the non-volume-reducing volume group and the volume-reduction target value of the current volume-reducing volume group, a current volume-reduction target value corresponding to the current volume value comprises: Determine whether the current volume reduction group is the same as the historical volume reduction group; If yes, determine whether the volume value of the current volume reduction group has been restored in history; If restored, the current volume reduction target value corresponding to the current volume value is determined according to the corresponding relationship between the volume value of the non-volume reduction volume group and the volume reduction target value of the current volume reduction volume group.
5. The method according to claim 4, characterized in that After determining whether the volume value of the current volume reduction group has been restored in history, the method further includes: If not, determining the current volume reduction target value corresponding to the current volume value according to the corresponding relationship between the volume value of the non-volume reduction volume group and the volume reduction target value of the current volume reduction volume group; The volume reduction target value of the current volume reduction group is updated from the historical volume reduction target value to the current volume reduction target value.
6. The method according to claim 4, characterized in that After determining whether the current volume reduction group is the same as the historical volume reduction group, the method further includes: If not, determining whether the volume value of the historical volume reduction group has been restored; If not, determining whether there is a volume adjustment operation triggered by a user in the historical volume reduction group during the volume reduction period; If not, restoring the volume value of the historical volume reduction group to the original value; The current sound reduction target value corresponding to the current sound volume value is determined according to the corresponding relationship between the sound volume value of the non-sound reduction volume group and the sound reduction target value of the current sound reduction volume group.
7. The method according to any one of claims 2 to 6, characterized in that: The method further comprises: If it is detected that the non-volume-reducing application abandons outputting audio content, determining whether there is a volume adjustment operation triggered by a user in the current volume-reducing volume group during the volume-reducing period; If not, the volume value of the current volume reduction volume group is restored from the current volume reduction target value to the original value.
8. The method according to claim 7, characterized in that The method further comprises: If so, the volume value of the current volume reduction group is maintained as the volume value adjusted by the user.
9. A volume control device, characterized in that: The device comprises: a determining unit, configured to determine a current reduced volume group based on a preset rule if it is determined that both the first audio application and the second audio application need to output audio and meet a preset mixing and downscaling scenario, wherein the current reduced volume group is a first volume group corresponding to the first audio application or a second volume group corresponding to the second audio application; an adjusting unit, configured to adjust a volume difference between a non-reduced volume group and the current reduced volume group to be greater than a set threshold, wherein the non-reduced volume group is a volume group other than the current reduced volume group among the first volume group and the second volume group; An output unit is used to output the audio content of a non-volume-reducing application based on the adjusted volume value of the non-volume-reducing volume group, and to output the audio content of a current volume-reducing application based on the adjusted volume value of the volume-reducing volume group, wherein the non-volume-reducing application is the audio application corresponding to the non-volume-reducing volume group, and the current volume-reducing application is the audio application corresponding to the current volume-reducing volume group.
10. An electronic device, characterized in that: The electronic device comprises a memory for storing computer program instructions and a processor for executing the program instructions, wherein when the computer program instructions are executed by the processor, the electronic device is triggered to execute the steps of the method as claimed in any one of claims 1 to 8.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store computer instructions, and when the computer instructions are executed in a computer, the computer is caused to execute the steps of the method according to any one of claims 1 to 8.