Audio playback method and device
By obtaining environmental information and determining application scenarios, and automatically selecting the target audio output device, the problem of users in the prior art need to manually select playback devices, improving the efficiency and user experience of audio playback.
Patent Information
- Application Number
- CN202110937230.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-16
- Publication Date
- 2025-02-28
- Estimated Expiration
- 2041-08-16
AI Technical Summary
In prior art, when switching audio between electronic devices and audio output devices, users need to manually select playback devices, resulting in complex operation and inefficient efficiency.
By obtaining the environment information of the electronic device's environment, determining the application scenario information, and automatically selecting the corresponding target audio output device, the audio playback switching is achieved without the user's manual selection.
Reduces user operations, improves the efficiency of audio playback, and simplifies user experience.
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of communication technology, and specifically relates to an audio playback method and device. Background Art
[0002] With the development of electronic device technology, audio can be played through electronic devices and audio output devices connected to the electronic devices, such as Bluetooth speakers, wireless headphones, wired headphones, etc. However, the current method of playing audio through electronic devices and audio output devices is not applicable in some scenarios. For example, when the electronic device or the audio output device is playing audio A and the electronic device receives audio B, the user needs to manually select the device that plays audio B. This will increase user operations and reduce the efficiency of audio playback. Summary of the invention
[0003] The purpose of the embodiments of the present application is to provide an audio playback method, device, equipment and storage medium, which can solve the current problems of low audio playback efficiency and complex user operations.
[0004] In a first aspect, an embodiment of the present application provides an audio playback method, which is applied to an electronic device. The method may include:
[0005] When the electronic device is connected to a first audio output device and controls the first audio output device to play a first audio, obtaining environmental information of an environment in which the electronic device is located;
[0006] When the second audio is acquired, determining application scenario information of the electronic device according to the environment information;
[0007] Determine, according to the application scenario information of the electronic device, a target audio output device corresponding to the application scenario information, where the target audio output device includes a first audio output device or an electronic device;
[0008] The first information is displayed, where the first information is used to prompt that the device playing the second audio is the target audio output device.
[0009] In a second aspect, an embodiment of the present application provides an audio playback device, which is applied to an electronic device. The device may include:
[0010] An acquisition module, used to acquire environmental information of an environment in which the electronic device is located when the electronic device is connected to the first audio output device and controls the first audio output device to play the first audio;
[0011] A determination module, configured to determine application scenario information of the electronic device according to the environment information when the second audio is acquired;
[0012] A processing module, configured to determine, according to the application scenario information of the electronic device, a target audio output device corresponding to the application scenario information, wherein the target audio output device includes a first audio output device or an electronic device;
[0013] The display module is used to display first information, where the first information is used to prompt that a device playing the second audio is a target audio output device.
[0014] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, and when the program or instruction is executed by the processor, the steps of the audio playback method shown in the first aspect are implemented.
[0015] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the audio playback method shown in the first aspect are implemented.
[0016] In a fifth aspect, an embodiment of the present application provides a chip, the chip including a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the steps of the audio playback method shown in the first aspect.
[0017] In an embodiment of the present application, when connected to a first audio output device and controlling the first audio output device to play the first audio, environmental information of the environment in which the electronic device is located is obtained. When the second audio is obtained, the application scenario information of the electronic device is determined through the environmental information, and the target audio output device corresponding to the application scenario information is determined based on the application scenario information. Thus, when the electronic device or the audio output device is playing audio and the electronic device receives new audio, the target audio output device for playing the second audio can be automatically selected through the application scenario of the electronic device, without the user manually selecting the device to play the new audio, thereby reducing user operations and improving the efficiency of audio playback. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 One of the control architecture schematic diagrams provided in the embodiment of the present application;
[0019] Figure 2 A second schematic diagram of a control architecture provided in an embodiment of the present application;
[0020] Figure 3 A flowchart of an audio playback method provided in an embodiment of the present application;
[0021] Figure 4 A schematic diagram of the structure of an audio playback device provided in an embodiment of the present application;
[0022] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0023] Figure 6 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0024] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0025] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0026] Based on this, the following Figure 1-Figure 2 , the audio playback method provided in the embodiment of the present application is described in detail through specific embodiments and their application scenarios.
[0027] The present application embodiment proposes an audio playback architecture, such as Figure 1 As shown, the audio playback architecture may include an electronic device 10 and a first audio output device 11. The electronic device 10 is connected to the first audio output device 11, and the connection mode may be a Bluetooth connection or a wired connection. The first audio output 11 may be an audio output device that can play audio, such as a Bluetooth speaker, a wired speaker, a car speaker, a Bluetooth headset, a wired headset, etc. It should be noted that the second audio output device may be multiple audio output devices.
[0028] Based on Figure 1 The architecture shown in the figure, in the embodiment of the present application, the audio playback method provided in the embodiment of the present application is described based on the electronic device 10 and the first audio output device 11.
[0029] 1) When the electronic device 10 is connected to a first audio output device 11 such as a Bluetooth speaker, and the electronic device 10 controls the Bluetooth speaker to play a first audio such as a song, environmental information of the environment in which the electronic device 10 is located is obtained. Next, when the electronic device 10 obtains a second audio such as an incoming call audio, the application scenario information of the electronic device 10 is determined according to the environmental information, and the application scenario information includes privacy application scenario information or non-privacy application scenario information. Furthermore, the electronic device 10 determines the target audio output device corresponding to the application scenario information based on the application scenario information of the electronic device, wherein if the application scenario information is privacy application scenario information, the electronic device 10 is determined to be the target audio output device; conversely, if the application scenario information is non-privacy application scenario information, the Bluetooth speaker is determined to be the target audio output device. Then, the first information is displayed, and the first information is used to prompt that the device playing the second audio is the target audio output device.
[0030] Furthermore, if the target audio output device is a Bluetooth speaker, the electronic device can control the Bluetooth speaker to stop playing the first audio, and control the first audio output device to play the second audio. If the target audio output device is an electronic device, the electronic device can determine the number of audio output channels, and when it is detected that the number of audio output channels is 2, the output channel for playing the second audio is determined from the two audio output channels, such as the earpiece audio output channel and the speaker audio output channel, according to the application scenario information. If the application scenario information is privacy application scenario information, the earpiece audio output channel can be determined as the audio output channel for playing the second audio. Conversely, if the application scenario information is non-privacy application scenario information, the speaker audio output channel can be determined as the audio output channel for playing the second audio.
[0031] 2) When the electronic device 10 plays a fourth audio such as audio and video A, is connected to a first audio output device 11 such as a Bluetooth speaker, and the electronic device 10 controls the Bluetooth speaker to play a first audio such as a song, obtain environmental information of the environment in which the electronic device 10 is located. Next, when the electronic device 10 obtains a second audio such as an incoming call audio, the electronic device 10 determines the application scenario information of the electronic device 10 according to the environmental information, and the application scenario information includes privacy application scenario information or non-privacy application scenario information. Furthermore, the electronic device 10 determines the target audio output device corresponding to the application scenario information according to the application scenario information of the electronic device, wherein if the application scenario information is privacy application scenario information, the electronic device 10 is determined to be the target audio output device; conversely, if the application scenario information is non-privacy application scenario information, the Bluetooth speaker is determined to be the target audio output device. Then, the first information is displayed, and the first information is used to prompt that the device playing the second audio is the target audio output device.
[0032] Further, if the target audio output device is a Bluetooth speaker, the electronic device can control the Bluetooth speaker to stop playing the first audio, and control the first audio output device to play the second audio. If the target audio output device is an electronic device, the electronic device can determine the number of audio output channels, and when it is detected that the number of audio output channels is 2, the audio output channels other than the audio output channel for playing the fourth audio are determined as the audio output channels for playing the second audio; or, according to the application scenario information, the audio output channel for playing the second audio is determined in two audio output channels such as the earpiece audio output channel and the speaker audio output channel. If the application scenario information is privacy application scenario information, the earpiece audio output channel can be determined as the audio output channel for playing the second audio. Conversely, if the application scenario information is non-privacy application scenario information, the speaker audio output channel can be determined as the audio output channel for playing the second audio. Here, if the audio output channel for playing the fourth audio is the earpiece audio output channel, and the application scenario information is privacy application scenario information, the earpiece audio output channel can be controlled to stop playing the third audio, and the earpiece audio output channel can be controlled to play the second audio. The same is true for the speaker audio output channel, which will not be repeated here.
[0033] In addition, it should be noted that based on the above Figure 1 In the architecture shown, if the first audio output device 11 is a headset, the headset is in a worn state, and the application scenario information is privacy application scenario information, the headset is determined to be the target audio output device; otherwise, if the application scenario information is non-privacy application scenario information, the electronic device is determined to be the target audio output device. If the first audio output device 11 is a headset, the headset is not worn, and the application scenario information is privacy application scenario information, the second audio is determined to be played through the earpiece audio output channel of the electronic device; otherwise, if the application scenario information is non-privacy application scenario information, the second audio is determined to be played through the speaker audio output channel of the electronic device.
[0034] Therefore, based on Figure 1 The architecture shown, when connected to a first audio output device and controlling the first audio output device to play the first audio, obtains environmental information of the environment in which the electronic device is located. When the second audio is obtained, the application scenario information of the electronic device is determined through the environmental information, and the target audio output device corresponding to the application scenario information is determined based on the application scenario information. Thus, when the electronic device or the audio output device is playing audio and the electronic device receives new audio, the target audio output device for playing the second audio can be automatically selected through the application scenario of the electronic device, without the user manually selecting the device to play the new audio, thereby reducing user operations and improving the efficiency of audio playback.
[0035] In addition, the present application embodiment proposes another audio playback architecture, such as Figure 2 As shown, the audio playback architecture may include an electronic device 10, a first audio output device 11, and a second audio output device 12. The electronic device 10 is connected to the first audio output device 11 and the second audio output device 12, respectively, and the connection mode may be a Bluetooth connection or a wired connection. The first audio output device 11 or the second audio output device 12 may be an audio output device that can play audio, such as a Bluetooth speaker, a wired speaker, a car speaker, a Bluetooth headset, a wired headset, etc.
[0036] Based on Figure 2 The architecture shown in the figure, in the embodiment of the present application, the audio playback method provided in the embodiment of the present application is described according to the electronic device 10, the first audio output device 11 and the second audio output device 12.
[0037] 1) When the electronic device 10 is connected to a first audio output device 11 such as a Bluetooth speaker, the electronic device 10 controls the Bluetooth speaker to play a first audio such as a song, and the electronic device 10 is simultaneously connected to a second audio output device 12 such as a Bluetooth headset, the environmental information of the environment in which the electronic device 10 is located is obtained. Next, when the electronic device 10 obtains the second audio such as an incoming call audio, the application scenario information of the electronic device 10 is determined according to the environmental information, and the application scenario information includes privacy application scenario information or non-privacy application scenario information. Furthermore, the electronic device 10 determines the target audio output device corresponding to the application scenario information according to the application scenario information of the electronic device, wherein if the application scenario information is privacy application scenario information, the electronic device 10 or the Bluetooth headset is determined to be the target audio output device. Here, further, the electronic device 10 obtains the status information of the Bluetooth headset, and when the status information of the Bluetooth headset is detected to be in a wearing state, the Bluetooth headset is determined to be the target audio output device, and when the status information of the Bluetooth headset is detected to be in a non-wearing state, the electronic device 10 is determined to be the target audio output device. On the contrary, if the application scenario information is non-privacy application scenario information, the Bluetooth speaker is determined to be the target audio output device. Then, the first information is displayed, where the first information is used to prompt that the device playing the second audio is the target audio output device.
[0038] Furthermore, if the target audio output device is a Bluetooth speaker, the electronic device can control the Bluetooth speaker to stop playing the first audio, and control the first audio output device to play the second audio. If the target audio output device is an electronic device, the electronic device can determine the number of audio output channels. When it is detected that the number of audio output channels is 2, the output channel for playing the second audio is determined from the two audio output channels, such as the earpiece audio output channel and the speaker audio output channel, according to the application scenario information. If the application scenario information is privacy application scenario information and the status information of the Bluetooth headset is not worn, the earpiece audio output channel can be determined as the audio output channel for playing the second audio. Conversely, if the application scenario information is non-privacy application scenario information, the speaker audio output channel can be determined as the audio output channel for playing the second audio.
[0039] 2) When the electronic device 10 plays the fifth audio, the electronic device 10 is connected to the first audio output device 11 such as a Bluetooth speaker, the electronic device 10 controls the Bluetooth speaker to play the first audio such as a song, and the electronic device 10 is simultaneously connected to the second audio output device 12 such as a Bluetooth headset, the environmental information of the environment in which the electronic device 10 is located is obtained. Next, when the electronic device 10 obtains the second audio such as the incoming call audio, the application scenario information of the electronic device 10 is determined according to the environmental information, and the application scenario information includes privacy application scenario information or non-privacy application scenario information. Furthermore, according to the application scenario information of the electronic device, the target audio output device corresponding to the application scenario information is determined, wherein if the application scenario information is privacy application scenario information, the electronic device 10 or the Bluetooth headset is determined as the target audio output device. Here, further, the electronic device 10 obtains the status information of the Bluetooth headset, and when the status information of the Bluetooth headset is detected as the wearing state, the Bluetooth headset is determined as the target audio output device, and when the status information of the Bluetooth headset is detected as the unworn state, the electronic device 10 is determined as the target audio output device. On the contrary, if the application scenario information is non-privacy application scenario information, the Bluetooth speaker is determined as the target audio output device. Then, the first information is displayed, where the first information is used to prompt that the device playing the second audio is the target audio output device.
[0040] Further, if the target audio output device is a Bluetooth speaker, the electronic device can control the Bluetooth speaker to stop playing the first audio, and control the first audio output device to play the second audio. If the target audio output device is an electronic device, the electronic device can determine the number of audio output channels. When it is detected that the number of audio output channels is 2, the output channel for playing the second audio is determined in two audio output channels, such as the earpiece audio output channel and the speaker audio output channel, according to the application scenario information. For example, when the application scenario information is privacy application scenario information, the status information of the Bluetooth headset is not worn, and the speaker audio output channel plays the fifth audio, the earpiece audio output channel can be determined as the audio output channel for playing the second audio; when the application scenario information is privacy application scenario information, the status information of the Bluetooth headset is not worn, and the earpiece audio output channel plays the fifth audio, the earpiece audio output channel can be controlled to stop playing the fifth audio, and the earpiece audio output channel can be controlled to play the second audio. If the application scenario information is non-privacy application scenario information, the speaker audio output channel can be determined as the audio output channel for playing the second audio; if the application scenario information is non-privacy application scenario information, and the speaker audio output channel plays the fifth audio, the speaker audio output channel can be controlled to stop playing the fifth audio, and the speaker audio output channel can be controlled to play the second audio.
[0041] It should be noted that the audio output channel in the embodiment of the present application can be an output channel for playing audio in the same audio output device, such as an earpiece audio output channel and a speaker audio output channel in an electronic device. Of course, it can also be an audio output channel of different audio output devices, such as switching from a speaker audio output channel to an output channel for playing audio from a Bluetooth (or wireless) headset.
[0042] In summary, an embodiment of the present application provides an audio playback method, which obtains environmental information of the environment in which the electronic device is located when it is connected to a first audio output device and a second audio output device and controls the first audio output device to play the first audio. When the second audio is obtained, the application scenario information of the electronic device is determined through the environmental information, and the target audio output device corresponding to the application scenario information is determined according to the application scenario information. The target audio output device may include an electronic device, a first audio output device or a second audio output device. Thus, when an electronic device or multiple audio output devices are playing audio, and the electronic device receives new audio, the target audio output device for playing the second audio can be automatically selected through the application scenario of the electronic device, without the user manually selecting the device to play the new audio from multiple devices, thereby reducing user operations and improving the efficiency of audio playback.
[0043] It should be noted that the control method provided in the embodiment of the present application can be applied to the above-mentioned scenario of multiple audio playback based on an electronic device and an audio output device connected to the electronic device. It can also be applied to the scenario of multiple audio playback based on an electronic device and multiple audio output devices connected to the electronic device. Of course, it can also be applied to the scenario of at least one audio playback based on an electronic device and an audio output device connected to the electronic device. And, it can be applied to the scenario of at least one audio playback based on an electronic device and multiple audio output devices connected to the electronic device.
[0044] According to the above architectures 1 and 2 and application scenarios, the following are combined Figure 3 The audio playback method provided in the embodiment of the present application is described in detail.
[0045] Figure 3 A flowchart of an audio playback method provided in an embodiment of the present application.
[0046] like Figure 3 As shown, this control method can be applied to Figure 1 or Figure 2 The electronic device shown, based on this, can specifically include the following steps:
[0047] Step 310, when the first audio output device is connected and the first audio output device is controlled to play the first audio, the environment information of the environment in which the electronic device is located is obtained. Step 320, when the second audio is obtained, the application scenario information of the electronic device is determined according to the environment information. Step 330, according to the application scenario information of the electronic device, the target audio output device corresponding to the application scenario information is determined, and the target audio output device includes the first audio output device or the electronic device. Step 340, the first information is displayed, and the first information is used to prompt that the device playing the second audio is the target audio output device.
[0048] In this way, when the first audio output device is connected and the first audio output device is controlled to play the first audio, the environmental information of the environment in which the electronic device is located is obtained. When the second audio is obtained, the application scenario information of the electronic device is determined through the environmental information, and the target audio output device corresponding to the application scenario information is determined according to the application scenario information. Therefore, when the electronic device or the audio output device is playing audio and the electronic device receives new audio, the target audio output device for playing the second audio can be automatically selected through the application scenario of the electronic device, without the user manually selecting the device to play the new audio, thereby reducing user operations and improving the efficiency of audio playback.
[0049] The above steps are described in detail below:
[0050] First, in one or more optional embodiments, step 310 may specifically include: collecting the ambient audio of the environment in which the electronic device is located by turning on a recording device such as a microphone, such as collecting the ambient audio at a first preset time interval. Acquire the ambient image through a camera in the electronic device (such as a front camera or a rear camera), such as recording an ambient video or taking an ambient image when the electronic device is not moving and the camera is not blocked. If the ambient video is recorded, each frame of the ambient video can be determined as an ambient image. Of course, the ambient image can also be collected at a second preset time interval, and the second preset time interval can be the same as the first preset time interval or different. Then, at least one of the following: ambient audio, ambient image is determined as environmental information.
[0051] It should be noted that the user can authorize the electronic device to execute the steps of collecting ambient audio and acquiring image information by the audio device and the camera. In the embodiment of the present application, in order to protect the privacy of the user, the environmental information may not be sent to the server, but only saved locally, and the environmental information may be deleted after the target audio output device is determined.
[0052] In addition, in another or more optional embodiments, before obtaining the environmental information, the running status of the application in the electronic device can be obtained. For example, when the running status of the music player application is running and playing music (or, controlling the audio output device connected to the electronic device to play music), the ambient audio A of the electronic device can be collected, and the audio of the music in the ambient audio can be filtered to obtain ambient audio B, and the ambient audio B is determined as the environmental information in step 320, thereby ensuring the accuracy of the environmental information obtained.
[0053] Next, according to different environmental information such as environmental audio, environmental image, and environmental audio and environmental image, the application scenario information of the electronic device is determined in detail through step 320.
[0054] In one or more optional embodiments, when the environmental information includes environmental audio, step 320 may specifically include:
[0055] Performing speech recognition on the ambient audio to obtain first result information;
[0056] When the first result information satisfies the first preset condition, the application scenario information of the electronic device is determined to be private application scenario information; wherein,
[0057] The first preset condition includes at least one of the following: the noise in the ambient audio is less than or equal to the first preset threshold, the ambient audio includes preset voice audio such as the audio of the user holding the electronic device (or the audio of the preset user stored in the electronic device), the ambient audio does not include the audio of the first preset object such as the audio of the user holding the electronic device, the number of sound objects identified in the ambient audio is greater than or equal to the second preset threshold such as the audio of multiple users, and the volume of the ambient audio is less than or equal to the third preset threshold.
[0058] In another or more optional embodiments, when the environmental information includes an environmental image, step 320 may specifically include:
[0059] Performing image recognition on the environment image to obtain second result information;
[0060] When the second result information satisfies the second preset condition, it is determined that the application scenario of the electronic device is privacy application scenario information; wherein,
[0061] The second preset condition includes at least one of the following: the environmental image includes images of multiple users such as facial images of multiple users, the environmental image does not include a facial image of a second preset object such as a facial image of a user holding an electronic device (or a facial image of a preset user stored in the electronic device), the environmental image includes objects in a preset environment such as multiple computers and office chairs in an office environment (or a projector and multiple office chairs in a conference room environment, and objects such as sofas and bookshelves in a home environment), the environmental image includes the second preset object and the second preset object wears an audio output device such as a facial image of a user holding an electronic device (or a facial image of a preset user stored in the electronic device), and an audio output device such as headphones is determined to be located at the ear position.
[0062] In one or more optional embodiments, when the environmental information includes environmental audio and environmental images, step 320 can specifically refer to the above example, which will not be repeated here. It should be noted that the above steps of obtaining environmental audio and environmental images can be obtained successively or simultaneously, which is not limited thereto.
[0063] Therefore, according to the ambient audio and ambient images, the existing artificial intelligence is used to judge the application scenario information of the current electronic device, such as privacy application scenario information such as conference scenarios, public transportation scenarios, etc., which not only include the user's own scenarios and scenarios where the user needs to keep the information confidential, but non-privacy application scenario information such as game scenarios, home scenarios, etc. include the user's own scenarios and scenarios where the user does not need to keep the information confidential. Of course, in addition to determining the application scenario information based on the environmental information, the embodiments of the present application can also determine the application scenario information based on the user's use information of the electronic device, that is, the user's use habit information. For example, if the user is accustomed to adjusting the ringing mode of the electronic device to the silent mode between 10 am and 12 pm, the application scenario information can be determined as a conference scene, etc. Of course, in addition to the above two separate determinations of the application scenario information, the application scenario information can also be determined based on the environmental information and the user's use information of the electronic device.
[0064] Furthermore, according to application scenario information of different attributes, such as privacy application scenario information or non-privacy application scenario information, the target audio output device may be determined through step 330 .
[0065] In one or more optional embodiments, when the application scenario information is private application scenario information, step 330 may specifically include:
[0066] Determine the electronic device as a target audio output device, and control the first target audio output channel of the electronic device to play the second audio;
[0067] Alternatively, when it is detected that the first audio output device is in a preset state, the first audio output device is determined to be the target audio output device; wherein the preset state includes at least one of the following: a user wearing state, and a distance from the user being less than or equal to a fourth preset threshold.
[0068] For example, if the first audio output device, such as a Bluetooth (wired) headset, is worn by the user, the first audio output device can be determined as the target audio output device. Conversely, if the first audio output device is not worn by the user, the electronic device can be determined as the target audio output device. In addition, if the distance between the first audio output device, such as a Bluetooth (wired) speaker and the user is less than or equal to a fourth preset threshold, the Bluetooth (wired) speaker can be controlled to play the second audio at a third preset volume.
[0069] Furthermore, since the target audio output device includes different numbers of audio output channels, such as an earpiece audio output channel and a speaker audio output channel included in an electronic device, and an audio output channel included in a Bluetooth headset, an embodiment of the present application provides the following method for determining the audio output channel for playing the second audio in the target audio output device.
[0070] When the target audio output device includes an audio output channel, the electronic device controls the audio output channel to stop playing the first audio and controls the audio output channel to play the second audio.
[0071] It can be seen from this that if the target audio output device has only a single audio output channel, and when the single audio output channel plays audio, if the audio output channel is determined as the audio output channel for playing the second audio, the audio output channel is controlled to stop playing the first audio, and the audio output channel is controlled to play the second audio.
[0072] On the contrary, when the target audio output device includes multiple (i.e., at least two) audio output channels, the audio output channel for playing the second audio can be selected according to the application scenario information of the electronic device, as shown below. When the target audio output device includes multiple audio output channels, the audio output channel for playing the second audio can be determined by the following steps, and step 330 can specifically include steps 3301-3303.
[0073] Step 3301: Detect the number of audio output channels of the target audio output device.
[0074] Step 3302: When it is detected that the number of audio output channels is N, a second target audio output channel is determined from the N audio output channels according to application scenario information, where N is an integer greater than or equal to 2.
[0075] Step 3303: Control the second target audio output channel of the target audio output device to play the second audio.
[0076] The above steps are described in detail below:
[0077] Involving step 3302, when the target audio output device is an electronic device, the electronic device includes an earpiece audio output channel and a speaker audio output channel.
[0078] When the application scenario information of the electronic device is privacy application scenario information, the earpiece audio output channel is determined as the second target audio output channel; when the application scenario information of the electronic device is non-privacy application scenario information, the speaker audio output channel is determined as the second target audio output channel.
[0079] Involving step 3303, when the second target audio output channel plays the third audio, the audio output channel is controlled to stop playing the third audio, and the audio output channel is controlled to play the second audio.
[0080] In addition, in addition to the possibility that the electronic device is connected to only one or more first audio output devices, the electronic device may also be connected to one or more second audio output devices. Here, the difference between the first audio output device and the second audio output device may include that when the first audio output device acquires the second audio, the first audio output device is playing the first audio, while the second audio output device is not playing the audio. Thus, when the electronic device is connected to the second audio output device, the status information of the second audio output device is acquired;
[0081] When it is detected that the state information of the second audio output device is a wearing state, determining that the application scenario information is private application scenario information;
[0082] According to the privacy application scenario information, the second audio output device is controlled to play the second audio.
[0083] In addition, it should be noted that, in one or more optional embodiments, obtaining the status information of the second audio output device may be performed after determining that the application scenario information is privacy application scenario information, so that when the status information of the second audio output device is detected as a wearing state, the second audio output device is controlled to play the second audio. At this time, the second audio output device may include a Bluetooth headset or a wired headset.
[0084] Then, step 240 is involved. In one or more optional embodiments, a target image can be acquired through a front camera. When the target image includes a user facial image (such as a facial image of a user holding an electronic device or a facial image of another user), a first information is displayed. The first information can prompt the user to play the target audio output device of the second audio, and can also include application scenario information of the electronic device. For example, if it is detected that the current scene is a conference scene, the incoming call audio is automatically set to be played through headphones.
[0085] It should be noted that when the audio output channel for playing the second audio (or the first audio) changes, audio loss may sometimes occur. For example, a sudden switch of an electronic device from an external speaker audio output channel to an earpiece audio output channel close to the ear may cause a gap in sound perception. In order to prevent audio loss and resulting in a gap in sound perception, the present application aims at switching different audio output channels, that is, switching different audio output channels of the same device, such as switching the audio output channel of the earpiece to the audio output channel of the speaker when playing the second audio, or switching between different devices, so it can be the switching of audio output channels of different devices, such as switching the audio output channel of the earpiece of the electronic device to the audio output channel of the Bluetooth headset, providing different ways to play the second audio, as shown below.
[0086] In one or more optional embodiments, the target audio device includes a first audio output channel and a second audio output channel. After step 340, the audio playback method may further include:
[0087] When it is detected that the audio output channel for playing the second audio is changed from the first audio output channel to the second audio output channel, the second audio is copied to obtain the first sub-audio and the second sub-audio;
[0088] Sending the first sub audio to the first audio output channel, and sending the second sub audio to the second audio output channel;
[0089] Adjusting the first audio parameter of the first sub-audio played on the first audio output channel, where the first audio parameter includes the first audio play time and the first audio play volume;
[0090] When the first audio parameter meets the third preset condition, the first audio output channel is controlled to stop playing the first sub-audio, and the audio playback volume of the second sub-audio played by the second audio output channel is adjusted to the first preset volume.
[0091] In another or more optional embodiments, after step 340, the audio playing method may further include:
[0092] When the target audio output device is the first audio output device and it is detected that the device playing the second audio is switched from the first audio output device to the electronic device, the second audio is copied to obtain a third sub-audio and a fourth sub-audio;
[0093] sending the third sub audio to the first audio output device, and sending the fourth sub audio to a fourth target audio output channel of the electronic device;
[0094] Adjusting the second audio parameter of the third sub-audio played by the first audio output device, where the second audio parameter includes the second audio playing time and the second audio playing volume;
[0095] When the second audio parameter meets the fourth preset condition, the first audio output device is controlled to stop playing the third sub audio, and the audio playback volume of the fourth sub audio played by the fourth target audio output channel is adjusted to the second preset volume.
[0096] For example, when the audio output channel is switched, the audio of the original audio output channel A is not turned off directly, but the original audio is copied into two copies, one is sent to the audio output channel A of the original audio, and the other is sent to the new audio output channel B. The audio output channel A maintains the original volume for 1 second and then slowly reduces the volume. After 3 seconds, the volume becomes zero, and the audio is copied and output to the audio output channel A at the same time.
[0097] In summary, when connected to the first audio output device and controlling the first audio output device to play the first audio, the environmental information of the environment in which the electronic device is located is obtained. When the second audio is obtained, the application scenario information of the electronic device is determined through the environmental information, and the target audio output device corresponding to the application scenario information is determined according to the application scenario information. Therefore, when the electronic device or the audio output device is playing audio and the electronic device receives new audio, the target audio output device for playing the second audio can be automatically selected through the application scenario of the electronic device, without the user manually selecting the device to play the new audio, thereby reducing user operations and improving the efficiency of audio playback.
[0098] In addition, the audio player provided in the embodiment of the present application can retain the audio output of the audio output channel A of the audio for a period of time when the second audio being played is switched, to ensure that there is no discontinuity in the sound perception in a short period of time when switching. Through the above implementation, when there is a new audio playback device and a new audio access, the user needs to manually select the device to play the new audio, which reduces user operations, improves the efficiency of audio playback, and can obtain a good audio output method. In addition, if the audio output channel is switched, the above method can also better increase the user's perception of sound and improve the user experience.
[0099] It should be noted that the audio playback method provided in the embodiment of the present application can be executed by an audio playback device, or an audio playback module in the audio playback device for executing the audio playback method. In the embodiment of the present application, an audio playback device executing the audio playback method is taken as an example to illustrate the audio playback device provided in the embodiment of the present application.
[0100] Based on the same inventive concept, the present application also provides an audio playback device. Figure 4 Provide detailed explanation.
[0101] Figure 4 A schematic diagram of the structure of an audio playback device provided in an embodiment of the present application.
[0102] like Figure 4 As shown, the audio playback device 40 is applied to Figure 1 to Figure 2 The electronic device shown may specifically include:
[0103] The acquisition module 401 is used to acquire the environment information of the environment where the electronic device is located when the electronic device is connected to the first audio output device and controls the first audio output device to play the first audio;
[0104] A determination module 402 is used to determine application scenario information of the electronic device according to the environment information when the second audio is acquired;
[0105] A processing module 403 is used to determine a target audio output device corresponding to the application scenario information according to the application scenario information of the electronic device, where the target audio output device includes a first audio output device or an electronic device;
[0106] The display module 404 is used to display first information, where the first information is used to prompt that the device playing the second audio is the target audio output device.
[0107] Thus, when the first audio output device is connected and the first audio output device is controlled to play the first audio, the environmental information of the environment in which the electronic device is located is obtained. When the second audio is obtained, the application scenario information of the electronic device is determined through the environmental information, and the target audio output device corresponding to the application scenario information is determined according to the application scenario information. Thus, when the electronic device or the audio output device is playing audio and the electronic device receives new audio, the target audio output device for playing the second audio can be automatically selected through the application scenario of the electronic device, without the user manually selecting the device for playing the new audio, thereby reducing user operations and improving the efficiency of audio playback.
[0108] The audio playback device 40 is described in detail below, as shown below:
[0109] In one or more possible embodiments, the determination module 402 may be specifically configured to, when the environmental information includes environmental audio, perform speech recognition on the environmental audio to obtain first result information;
[0110] When the first result information satisfies the first preset condition, the application scenario information of the electronic device is determined to be private application scenario information; wherein,
[0111] The first preset condition includes at least one of the following: the noise in the ambient audio is less than or equal to the first preset threshold, the ambient audio includes preset voice audio, the ambient audio does not include audio of the first preset object, the number of sound objects identified in the ambient audio is greater than or equal to the second preset threshold, and the volume of the ambient audio is less than or equal to the third preset threshold.
[0112] In another or more possible embodiments, the determination module 402 may be specifically configured to, when the environmental information includes an environmental image, perform image recognition on the environmental image to obtain second result information;
[0113] When the second result information satisfies the second preset condition, it is determined that the application scenario of the electronic device is privacy application scenario information; wherein,
[0114] The second preset condition includes at least one of the following: the environmental image includes images of multiple users, the environmental image does not include a facial image of the second preset object, the environmental image includes an object in the preset environment, the environmental image includes the second preset object and the second preset object wears an audio output device.
[0115] In one or more possible embodiments, the processing module 403 may be specifically configured to, when the application scenario information is privacy application scenario information, determine the electronic device as a target audio output device, and control the first target audio output channel of the electronic device to play the second audio;
[0116] Alternatively, when it is detected that the first audio output device is in a preset state, the first audio output device is determined to be the target audio output device; wherein the preset state includes at least one of the following: a user wearing state, and a distance from the user being less than or equal to a fourth preset threshold.
[0117] In another or more possible embodiments, the processing module 403 may be specifically configured to detect the number of audio output channels of the target audio output device;
[0118] When it is detected that the number of audio output channels is N, determining a second target audio output channel from the N audio output channels according to the application scenario information, where N is an integer greater than or equal to 2;
[0119] The second target audio output channel of the target audio output device is controlled to play the second audio.
[0120] Further, the processing module 403 may be specifically configured to, when the target audio output device is an electronic device, the electronic device includes an earpiece audio output channel and a speaker audio output channel, and the application scenario information of the electronic device is privacy application scenario information, determine the earpiece audio output channel as the second target audio output channel;
[0121] When the application scenario information of the electronic device is non-privacy application scenario information, the speaker audio output channel is determined as the second target audio output channel.
[0122] In one or more possible embodiments, the audio playback device 40 may include a first copy module, a first sending module, a first adjustment module and a first control module; wherein,
[0123] A first copying module is used to copy the second audio to obtain a first sub-audio and a second sub-audio when detecting that the audio output channel for playing the second audio is changed from the first audio output channel to the second audio output channel;
[0124] A first sending module, configured to send a first sub-audio to a first audio output channel, and send a second sub-audio to a second audio output channel;
[0125] A first adjustment module, used for adjusting a first audio parameter of a first sub-audio played on a first audio output channel, wherein the first audio parameter includes a first audio play time and a first audio play volume;
[0126] The first control module is used to control the first audio output channel to stop playing the first sub-audio and adjust the audio playback volume of the second sub-audio played by the second audio output channel to the first preset volume when the first audio parameter meets the third preset condition.
[0127] In another or more possible embodiments, the audio playback device 40 may include a second copy module, a second sending module, a second adjustment module and a second control module; wherein,
[0128] A second duplication module is used to duplicate the second audio to obtain a third sub-audio and a fourth sub-audio when the target audio output device is the first audio output device and it is detected that the device playing the second audio is switched from the first audio output device to the electronic device;
[0129] A second sending module, used to send the third sub audio to the first audio output device, and send the fourth sub audio to a fourth target audio output channel of the electronic device;
[0130] A second adjustment module is used to adjust a second audio parameter of the third sub-audio played by the first audio output device, where the second audio parameter includes a second audio playback time and a second audio playback volume;
[0131] The second control module is used to control the first audio output device to stop playing the third sub-audio and adjust the audio playback volume of the fourth sub-audio played on the fourth target audio output channel to a second preset volume when the second audio parameter meets the fourth preset condition.
[0132] In one or more possible embodiments, the processing module 403 may be specifically configured to, when the electronic device is connected to the second audio output device, obtain status information of the second audio output device;
[0133] When it is detected that the state information of the second audio output device is a wearing state, determining that the application scenario information is private application scenario information;
[0134] According to the privacy application scenario information, the second audio output device is controlled to play the second audio.
[0135] The audio playback device in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in an electronic device. The device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device can be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0136] The audio playback device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0137] The audio playback device provided in the embodiment of the present application can achieve Figures 1 to 3 To avoid repetition, the various processes implemented by the method embodiment are not described here.
[0138] In an embodiment of the present application, when connected to a first audio output device and controlling the first audio output device to play the first audio, environmental information of the environment in which the electronic device is located is obtained. When the second audio is obtained, the application scenario information of the electronic device is determined through the environmental information, and the target audio output device corresponding to the application scenario information is determined based on the application scenario information. Thus, when the electronic device or the audio output device is playing audio and the electronic device receives new audio, the target audio output device for playing the second audio can be automatically selected through the application scenario of the electronic device, without the user manually selecting the device to play the new audio, thereby reducing user operations and improving the efficiency of audio playback.
[0139] Optional, such as Figure 5 As shown, an embodiment of the present application also provides an electronic device 50, including a processor 501, a memory 502, and a program or instruction stored in the memory 502 and executable on the processor 501. When the program or instruction is executed by the processor 501, each process of the above-mentioned audio playback method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0140] It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
[0141] Figure 6 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application.
[0142] The electronic device 600 includes but is not limited to: a radio frequency unit 601, a network module 602, an audio output unit 603, an input unit 604, a sensor 605, a display unit 606, a user input unit 607, an interface unit 608, a memory 609, a processor 610 and a receiver 611.
[0143] Those skilled in the art will appreciate that the electronic device 600 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 610 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 6 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0144] Among them, in an embodiment of the present application, the processor 610 is used to obtain environmental information of the environment in which the electronic device is located when it is connected to the first audio output device and controls the first audio output device to play the first audio. And the processor 610 is also used to determine the application scenario information of the electronic device according to the environmental information when the second audio is obtained, and to determine the target audio output device corresponding to the application scenario information according to the application scenario information of the electronic device, and the target audio output device includes the first audio output device or the electronic device. The display unit 606 is used to display the first information, and the first information is used to prompt that the device playing the second audio is the target audio output device.
[0145] It should be understood that the input unit 604 may include a graphics processor (GPU) 6041 and a microphone 6042, and the graphics processor 6041 processes the image data of a static image or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 606 may include a display panel, and the display surface may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 607 includes a touch panel 6071 and other input devices 6072. The touch panel 6071 is also called a touch screen. The touch panel 6071 may include two parts: a touch detection device and a touch audio player. Other input devices 6072 may include, but are not limited to, a physical keyboard, function keys (such as volume audio playback keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here. The memory 609 may be used to store software programs and various data, including but not limited to applications and operating systems. The processor 610 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and applications, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 610.
[0146] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned audio playback method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0147] The processor is the processor in the electronic device in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0148] In addition, an embodiment of the present application further provides a chip, which includes a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned audio playback method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0149] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0150] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0151] In addition, it should be noted that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in a reverse order according to the functions involved. For example, the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
[0152] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods of each embodiment of the present application.
[0153] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. An audio playback method, characterized in that: include: When the electronic device is connected to a first audio output device and the first audio output device is controlled to play a first audio, obtaining environmental information of an environment in which the electronic device is located; In the case of acquiring the second audio, determining application scenario information of the electronic device according to the environmental information; Determine, according to the application scenario information of the electronic device, a target audio output device corresponding to the application scenario information, wherein the target audio output device includes the first audio output device or the electronic device; Displaying first information, where the first information is used to prompt that the device playing the second audio is the target audio output device; When the target audio output device includes a first audio output channel and a second audio output channel, and the audio output channel for playing the second audio is detected and changed from the first audio output channel to the second audio output channel, the second audio is copied to obtain a first sub-audio and a second sub-audio; the first sub-audio is sent to the first audio output channel, and the second sub-audio is sent to the second audio output channel; a first audio parameter of the first audio output channel for playing the first sub-audio is adjusted, the first audio parameter including a first audio playback time and a first audio playback volume; when the first audio parameter meets a third preset condition, the first audio output channel is controlled to stop playing the first sub-audio, and the audio playback volume of the second audio output channel for playing the second sub-audio is adjusted to a first preset volume.
2. The method according to claim 1, characterized in that The environmental information includes an environmental image; and determining application scenario information of the electronic device according to the environmental information includes: Performing image recognition on the environment image to obtain second result information; When the second result information satisfies the second preset condition, determining that the application scenario of the electronic device is privacy application scenario information; wherein, The second preset condition includes at least one of the following: the environmental image includes images of multiple users, the environmental image does not include a facial image of a second preset object, the environmental image includes an object in a preset environment, the environmental image includes the second preset object and the second preset object wears an audio output device.
3. The method according to claim 1, characterized in that The step of determining a target audio output device corresponding to the application scenario information according to the application scenario information of the electronic device includes: Detecting the number of audio output channels of the target audio output device; When it is detected that the number of the audio output channels is N, determining a second target audio output channel from the N audio output channels according to the application scenario information, where N is an integer greater than or equal to 2; Control a second target audio output channel of the target audio output device to play the second audio.
4. The method according to claim 1, characterized in that After displaying the first information, the method further includes: When the target audio output device is the first audio output device and it is detected that the device playing the second audio is switched from the first audio output device to the electronic device, copying the second audio to obtain a third sub-audio and a fourth sub-audio; Sending the third sub-audio to a first audio output device, and sending the fourth sub-audio to a fourth target audio output channel of the electronic device; Adjusting the second audio parameter of the third sub-audio played by the first audio output device, wherein the second audio parameter includes the second audio playing time and the second audio playing volume; When the second audio parameter meets the fourth preset condition, the first audio output device is controlled to stop playing the third sub audio, and the audio playback volume of the fourth sub audio played by the fourth target audio output channel is adjusted to a second preset volume.
5. An audio playback device, characterized in that: include: An acquisition module, configured to acquire environmental information of an environment in which the electronic device is located when the electronic device is connected to a first audio output device and controls the first audio output device to play a first audio; A determination module, configured to determine application scenario information of the electronic device according to the environment information when the second audio is acquired; A processing module, configured to determine, according to the application scenario information of the electronic device, a target audio output device corresponding to the application scenario information, wherein the target audio output device includes the first audio output device or the electronic device; A display module, configured to display first information, wherein the first information is used to prompt that the device playing the second audio is the target audio output device; A first copying module is configured to copy the second audio to obtain a first sub-audio and a second sub-audio when the target audio output device includes a first audio output channel and a second audio output channel, and when the audio output channel playing the second audio is detected and changed from the first audio output channel to the second audio output channel; A first sending module, configured to send the first sub-audio to the first audio output channel, and send the second sub-audio to the second audio output channel; A first adjustment module, configured to adjust a first audio parameter of the first sub-audio played on the first audio output channel, wherein the first audio parameter includes a first audio playback time and a first audio playback volume; The first control module is used to control the first audio output channel to stop playing the first sub-audio and adjust the audio playback volume of the second sub-audio played by the second audio output channel to a first preset volume when the first audio parameter meets a third preset condition.
6. The device according to claim 5, characterized in that The determination module is specifically configured to, when the environmental information includes an environmental image, perform image recognition on the environmental image to obtain second result information; When the second result information satisfies the second preset condition, determining that the application scenario of the electronic device is privacy application scenario information; wherein, The second preset condition includes at least one of the following: the environmental image includes images of multiple users, the environmental image does not include a facial image of a second preset object, the environmental image includes an object in a preset environment, the environmental image includes the second preset object and the second preset object wears an audio output device.
7. The device according to claim 5, characterized in that The processing module is specifically used to detect the number of audio output channels of the target audio output device; When it is detected that the number of the audio output channels is N, determining a second target audio output channel from the N audio output channels according to the application scenario information, where N is an integer greater than or equal to 2; Control a second target audio output channel of the target audio output device to play the second audio.
8. The device according to claim 5, characterized in that The audio playback device further includes a second copy module, a second sending module, a second adjustment module and a second control module; wherein, The second copying module is used for copying the second audio to obtain a third sub-audio and a fourth sub-audio when the target audio output device is the first audio output device and it is detected that the device playing the second audio is switched from the first audio output device to the electronic device; The second sending module is used to send the third sub audio to the first audio output device, and send the fourth sub audio to the fourth target audio output channel of the electronic device; The second adjustment module is used to adjust the second audio parameter of the third sub-audio played by the first audio output device, wherein the second audio parameter includes the second audio playing time and the second audio playing volume; The second control module is used to control the first audio output device to stop playing the third sub-audio and adjust the audio playback volume of the fourth sub-audio played by the fourth target audio output channel to a second preset volume when the second audio parameter meets a fourth preset condition.
Citation Information
Patent Citations
Information processing method and electronic device
CN105630586A
Processing method and electronic device
CN110286874A