Audio output device switching method and apparatus, computer readable storage medium
By detecting trigger events and matching scene patterns, the problem of Bluetooth external device audio output devices not being able to switch intelligently has been solved, realizing intelligent device switching in different scenarios and improving the user experience.
Patent Information
- Application Number
- CN202211619689.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-15
- Publication Date
- 2026-02-06
- Estimated Expiration
- 2042-12-15
AI Technical Summary
In existing technologies, the audio output device switching of Bluetooth external devices cannot be intelligently selected according to the specific usage scenario, resulting in unreasonable switching.
By detecting triggering events, such as newly connected audio output devices or application switching, and combining the scene modes of the application software and audio output devices, it is determined whether to switch the audio path device.
It enables intelligent device switching when a new audio output device or application software is connected, meeting the needs of different scenarios and improving the rationality of switching and user experience.
Smart Images

Figure CN115904305B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of intelligent device control, and in particular to an audio output device switching method and device, and a computer readable storage medium. BACKGROUND
[0002] Since Bluetooth technology standard 4.0, Bluetooth can support multi-device pairing connection. A terminal device can be connected to multiple Bluetooth external devices simultaneously through a set Bluetooth module. When an audio event occurs, one of the multiple Bluetooth external devices is selected as an audio output device. A Bluetooth audio channel is established between the Bluetooth module of the terminal device and the audio output device, and audio is output.
[0003] In general, the latest connected Bluetooth external device is selected as the audio output device by default. SUMMARY
[0004] The technical problem of being unable to intelligently switch Bluetooth external devices is solved by the embodiments of the present application.
[0005] To solve the above technical problem, the embodiments of the present application provide an audio output device switching method, comprising: detecting a trigger event; the trigger event comprising: a newly connected second audio output device existing, or application software of the audio output device being called from first application software to second application software; and determining whether to switch the audio output device establishing an audio channel according to the application software currently calling the audio output device.
[0006] Optionally, the step of determining whether to switch the audio output device establishing an audio channel according to the trigger event comprises: determining whether to switch the audio output device establishing an audio channel according to the trigger event, the application software currently calling the audio output device, and / or a first audio output device currently establishing an audio channel.
[0007] Optionally, the trigger event is the second audio output device existing; and the step of determining whether to switch the audio output device establishing an audio channel according to the trigger event, the application software currently calling the audio output device, and / or the first audio output device currently establishing an audio channel comprises: if the first audio output device and the second audio output device correspond to a matched scene mode, then determining to switch the audio channel to the second audio output device.
[0008] Optionally, the trigger event is the existence of the second audio output device; and the determining whether to switch the audio output device for establishing the audio channel according to the trigger event, the application software currently invoking the audio output device, and / or the first audio output device currently establishing the audio channel comprises: the scene mode corresponding to the first application software does not match the scene mode corresponding to the second audio output device, obtaining the scene mode of the first audio output device currently establishing the audio channel; if the scene mode corresponding to the first application software matches the scene mode of the first audio output device, it is determined that the audio channel is continuously connected to the first audio output device; and if the scene mode corresponding to the first application software does not match the scene mode of the first audio output device, it is determined that the audio channel is switched to the second audio output device.
[0009] Optionally, the trigger event is that the application software invoking the audio output device is switched from the first application software to the second application software; and the determining whether to switch the audio output device for establishing the audio channel according to the trigger event, the application software currently invoking the audio output device, and / or the first audio output device currently establishing the audio channel comprises: the scene mode corresponding to the second application software matches the scene mode corresponding to the first application software, and it is determined that the audio output device corresponding to the audio channel is not switched.
[0010] Optionally, the trigger event is that the application software invoking the audio output device is switched from the first application software to the second application software; and the determining whether to switch the audio output device for establishing the audio channel according to the trigger event, the application software currently invoking the audio output device, and / or the first audio output device currently establishing the audio channel comprises: the scene mode corresponding to the second application software does not match the scene mode corresponding to the first application software, obtaining the scene mode of the first audio output device currently establishing the audio channel; if the scene mode corresponding to the second application software matches the scene mode of the first audio output device, it is determined that the audio channel is continuously connected to the first audio output device; if the scene mode corresponding to the second application software does not match the scene mode of the first audio output device, it is detected whether there is a third audio output device in the connected audio output device; if the third audio output device exists, it is determined that the audio channel is switched to the third audio output device; if the third audio output device does not exist, the audio channel with the first audio output device is disconnected; and the scene mode corresponding to the third audio output device matches the scene mode corresponding to the second application software.
[0011] Optionally, the trigger event is that application software calling the audio output device is switched from first application software to second application software; and the determining whether to switch the audio output device establishing the audio channel according to the trigger event, and the application software currently calling the audio output device and / or the first audio output device currently establishing the audio channel comprises: the scene mode corresponding to the second application software does not match the scene mode corresponding to the first application software, and the scene mode of the first audio output device currently establishing the audio channel is acquired; if the scene mode corresponding to the second application software matches the scene mode corresponding to the first audio output device, it is determined that the audio channel is continued to be connected to the first audio output device; if the scene mode corresponding to the second application software does not match the scene mode corresponding to the first audio output device, it is detected whether there is a third audio output device in the connected audio output devices; if the third audio output device exists, it is determined that the audio channel is switched to the third audio output device; if the third audio output device does not exist, it is determined that the audio channel is continued to be connected to the first audio output device; and the scene mode corresponding to the third audio output device matches the scene mode corresponding to the second application software.
[0012] The embodiment of the present application further provides an audio output device switching apparatus, comprising: a detection unit configured to detect a trigger event; the trigger event comprises: there is a newly connected second audio output device, or application software calling the audio output device is switched from first application software to second application software; and an execution unit configured to determine whether to switch the audio output device establishing the audio channel according to the trigger event.
[0013] The embodiment of the present application further provides a computer readable storage medium, which is a non-volatile storage medium or a non-transitory storage medium, and has stored thereon a computer program; when the computer program is run on a processor, the steps of the audio output device switching method described above are executed.
[0014] The embodiment of the present application further provides another audio output device switching apparatus, comprising a memory and a processor; the memory has stored thereon a computer program capable of being run on the processor; when the processor runs the computer program, the steps of the audio output device switching method described above are executed.
[0015] Compared with the prior art, the technical scheme of the embodiment of the present application has the following beneficial effects:
[0016] If a second audio output device newly connected is detected, or if application software calling the audio output device is switched from first application software to second application software, whether to switch the audio output device establishing the audio channel is determined according to the trigger event. Thus, the audio output device can be intelligently switched when the audio output device is newly connected or the application software is switched. BRIEF DESCRIPTION OF DRAWINGS
[0017] Figure 1 is a flowchart of an audio output device switching method in an embodiment of the present application;
[0018] Figure 2 is a structural schematic diagram of an audio output device switching apparatus in an embodiment of the present application. DETAILED DESCRIPTION
[0019] In the prior art, when a terminal device has multiple connected audio output devices (such as Bluetooth external devices), the latest connected Bluetooth external device is selected as the audio output device by default. For example, a terminal device establishes connections with Bluetooth external device 1 and Bluetooth external device 2, and establishes an audio channel with Bluetooth external device 2. The terminal device detects Bluetooth external device 3, and then disconnects the audio channel between the terminal device and Bluetooth external device 2, and establishes an audio channel with Bluetooth external device 3.
[0020] It can be seen that in the prior art, the corresponding Bluetooth external device cannot be intelligently selected according to a specific use scenario.
[0021] In an embodiment of the present application, if a second audio output device newly connected is detected, or if application software calling the audio output device is switched from first application software to second application software, whether to switch the audio output device establishing the audio channel is determined according to the trigger event. Thus, the audio output device can be intelligently switched when the audio output device is newly connected or the application software is switched.
[0022] In order to make the above-mentioned purposes, features and advantages of the present application more obvious and easy to understand, specific embodiments of the present application will be described in detail below with reference to the accompanying drawings.
[0023] An audio output device switching method is provided in an embodiment of the present application, which will be described in detail below with reference to Figure 1
[0024] Step 101, detecting a trigger event.
[0025] In the following embodiments of the present application, the terminal device can be a smart electronic device supporting Bluetooth communication function, unless otherwise specified. The smart electronic device can be internally provided with a Bluetooth module to realize Bluetooth communication with the audio output device.
[0026] In actual applications, the terminal device can include a smart phone, a tablet computer, a smart wearable device, etc.
[0027] In the embodiments of the present application, the triggering event can include any one of the following: a newly connected second audio output device; or, the application software of the audio output device is switched from a first application software to a second application software.
[0028] In specific implementations, the audio output device can be a Bluetooth external device. Specifically, the Bluetooth external device includes a Bluetooth earphone, a Bluetooth sound box, a smart watch with Bluetooth function, etc.
[0029] In specific implementations, the Bluetooth module in the terminal device can detect whether there is a new second audio output device in the coverage range in real time or periodically. Specifically, the process and principle of the detection and discovery of the new audio output device by the Bluetooth module can refer to the existing protocol, which will not be described here.
[0030] In specific implementations, the user can interact with the terminal device through a human-computer interaction interface such as a touch screen. The terminal device can be pre-installed with multiple application softwares. In the following embodiments of the present application, the application software can be an application software for scheduling the audio output device, unless otherwise specified.
[0031] In the embodiments of the present application, the application software for calling the audio output device can include: passing audio data through the application software of the audio output device. For example, the application software for scheduling the audio output device is music software, online conference software, instant messaging software, video playback software, etc.
[0032] For example, the application software (APP) for scheduling the audio output device includes commonly used APPs such as NetEase Cloud Music APP, WeChat APP, Tencent Meeting APP, iQiyi APP, etc.
[0033] In specific implementations, the user can switch the running application software according to his own needs during the use of the terminal device. The user can control the terminal device through the human-computer interaction interface (such as a touch screen) of the terminal device, thereby realizing the switching of the application software.
[0034] For example, during the process that a user listens to songs by using a NetEase cloud music APP (first application software) installed in a terminal device, an online meeting invitation is received, and the user controls the terminal device to switch the application software from the NetEase cloud music APP to a Tencent meeting APP (second application software).
[0035] In step 102, whether to switch the audio output device for establishing the audio channel is determined according to the trigger event.
[0036] In the embodiment of the application, whether to switch the audio output device for establishing the audio channel can be determined according to the scene mode of the application software currently invoking the audio output device.
[0037] In a specific implementation, if the trigger event is that the second audio output device is newly connected, that is, the switching of the application software does not occur, the application software currently invoking the audio output device is still the first application software. If the trigger event is that the switching of the application software occurs, the application software currently invoking the audio output device is the second application software.
[0038] In a specific implementation, the scene mode can be set for the application software and the audio output device according to a specific application scene.
[0039] In the embodiment of the application, the scene mode set for the application software can include an entertainment scene mode and a work scene mode, etc. Correspondingly, the scene mode set for the audio output device can also include the entertainment scene mode, the work scene mode, etc.
[0040] In an embodiment of the application, the application software is divided into an application APP (hereinafter referred to as an entertainment APP) in the entertainment scene mode and an APP (hereinafter referred to as a work APP) invoking the audio output device in the work scene mode. The audio output device is divided into an audio output device in the entertainment scene mode and an audio output device in the work scene mode.
[0041] In a specific application, the entertainment APP can include a music playing APP, a video playing APP, a browser APP, an instant messaging APP, etc. For example, the NetEase cloud music APP, the Youku APP, the WeChat APP, etc. are divided into the entertainment APP.
[0042] The work APP can include a video conference APP, a multi-person real-time communication APP, etc. For example, the Dingding APP, the Tencent meeting APP, etc. are divided into the work APP.
[0043] It should be noted that the above-mentioned division rule of the scene mode is only an example. In a specific application, there can be other division manners of the scene mode. For example, the scene mode of the audio output device includes a private scene mode and a public scene mode, etc.
[0044] In the embodiment of the present application, the matching of the scene modes can mean that the scene modes are the same. For example, the scene mode corresponding to the first application software is an entertainment scene mode, and the scene mode corresponding to the second audio output device is also an entertainment scene mode.
[0045] In a specific implementation, if the trigger event is the existence of the second audio output device, that is, the application software calling the audio output device does not switch, the application software currently calling the audio output device is still the first application software.
[0046] In the embodiment of the present application, if the scene mode corresponding to the second audio output device is the same as the scene mode corresponding to the first audio output device, the audio path is switched to the second audio output device.
[0047] That is, if the scene mode of the second audio output device is the same as the scene mode corresponding to the first audio output device, whether the scene mode corresponding to the first application software matches the scene mode of the second audio output device can not be considered, and the audio path is directly switched to the second audio output device, thereby being compatible with the Bluetooth device switching rule in the prior art.
[0048] For example, the terminal device establishes an audio path with the audio output device A, and the scene mode corresponding to the audio output device A is an entertainment scene mode. At t1, the Bluetooth module of the terminal device detects the audio output device B and establishes a connection, and the scene mode corresponding to the audio output device B is an entertainment scene mode. At this time, the terminal device switches the audio path from the audio output device A to the audio output device B. Even if the terminal device runs the work APP (that is, does not match the second audio output device), the audio path is still switched from the audio output device A to the audio output device B.
[0049] In a specific implementation, if the scene mode corresponding to the first audio output device does not match the scene mode corresponding to the second audio output device, the scene mode corresponding to the first application software can be acquired. If the scene mode corresponding to the first application software matches the scene mode corresponding to the second audio output device, it is determined that the audio path is switched to the second audio output device; if the scene mode corresponding to the first application software does not match the scene mode corresponding to the second audio output device, and matches the scene mode corresponding to the first audio output device, it is determined that the switching of the audio output device corresponding to the audio path is not performed, that is, it is determined that the audio path is continued to be connected to the first audio output device.
[0050] For example, the terminal device establishes an audio channel with the audio output device A, and the corresponding scene mode of the audio output device A is the entertainment scene mode. At t1, the Bluetooth module of the terminal device detects the audio output device B and establishes a connection, and the corresponding scene mode of the audio output device B is the working scene mode. At this time, the corresponding scene modes of the audio output device A and the audio output device B are different.
[0051] If the corresponding scene mode of the first application software is the working mode, the audio channel is switched to the second audio output device. If the corresponding scene mode of the first application software is the entertainment mode, the audio channel between the terminal device and the first audio output device is continued.
[0052] As a specific example, the terminal device establishes an audio channel with the Bluetooth headset, and the corresponding scene mode of the Bluetooth headset is the entertainment mode. As the user moves, the terminal device establishes a connection with the Bluetooth speaker, and the corresponding scene mode of the Bluetooth speaker is the working mode. If the APP currently running on the terminal device is the NetEase cloud music APP (entertainment APP), the terminal device continues to maintain the audio channel with the Bluetooth headset. If the APP currently running on the terminal device is the Dingding APP (working APP), the terminal device switches the audio channel to the Bluetooth speaker.
[0053] In a specific implementation, if the trigger event is that the application software is switched from the first application software to the second application software, the corresponding scene mode of the first application software and the corresponding scene mode of the second application software can be acquired respectively.
[0054] If the corresponding scene mode of the first application software and the corresponding scene mode of the second application software are the same, the audio output device corresponding to the audio channel is not switched.
[0055] That is, in the case where the corresponding scene mode of the first application software and the corresponding scene mode of the second application software are the same, whether the corresponding scene mode of the first audio output device currently establishing the audio channel matches the second application software or not, the audio output device is not switched.
[0056] For example, the terminal device establishes an audio channel with the Bluetooth headset (the first audio output device), the corresponding scene mode of the Bluetooth headset is the entertainment scene mode, and the application software running on the terminal device is the NetEase cloud music APP (entertainment APP). At t2, the application software running on the terminal device is switched from the NetEase cloud music APP (entertainment APP) to the iQiyi APP (entertainment APP), and at this time, the terminal device continues to maintain the audio channel with the Bluetooth headset.
[0057] For another example, the terminal device establishes an audio channel with a Bluetooth speaker (a first audio output device), the Bluetooth speaker corresponds to a working scenario mode, and the terminal device runs a NetEase cloud music APP (an entertainment APP). At t2, the terminal device switches the running application software from the NetEase cloud music APP (the entertainment APP) to a QQ video APP (an entertainment APP), and the terminal device continues to maintain the audio channel with the Bluetooth speaker.
[0058] As can be seen from the above, the audio output device switching scheme provided in the embodiments of the present application can realize switching of the audio device.
[0059] If the scenario mode corresponding to the first application software is different from the scenario mode corresponding to the second application software, the scenario mode of the first audio output device can be acquired. If the scenario mode corresponding to the second application software matches the scenario mode of the first audio output device, the audio channel with the first audio output device can be maintained, that is, the switching of the audio output device is not performed. If the scenario mode corresponding to the second application software does not match the scenario mode of the first audio output device, it can be determined whether there is a third audio output device among the connected audio output devices; if there is, the audio channel is switched to the third audio output device; if there is not, the audio channel with the first audio output device is continued to be maintained; and the scenario mode corresponding to the third audio output device can be the same as the scenario mode corresponding to the second application software.
[0060] For example, the terminal device establishes an audio channel with a Bluetooth speaker (a first audio output device), the Bluetooth speaker corresponds to a working scenario mode, and the terminal device runs a NetEase cloud music APP (an entertainment APP). At t2, the terminal device switches the running application software from the NetEase cloud music APP (the entertainment APP) to a QQ video APP (an entertainment APP), and the terminal device continues to maintain the audio channel with the Bluetooth speaker.
[0061] For another example, the terminal device establishes an audio channel with a Bluetooth speaker (a first audio output device), the Bluetooth speaker corresponds to a working scenario mode, and the terminal device runs a NetEase cloud music APP (an entertainment APP). At t2, the terminal device switches the running application software from the NetEase cloud music APP (the entertainment APP) to a QQ video APP (an entertainment APP), and the terminal device continues to maintain the audio channel with the Bluetooth speaker. For another example, the terminal device establishes an audio channel with a Bluetooth speaker (a first audio output device), the Bluetooth speaker corresponds to a working scenario mode, and the terminal device runs a NetEase cloud music APP (an entertainment APP). At t2, the terminal device switches the running application software from the NetEase cloud music APP (the entertainment APP) to a QQ video APP (an entertainment APP), and the terminal device continues to maintain the audio channel with the Bluetooth speaker.
[0062] In a specific implementation, if there is no third audio output device, directly maintaining the audio path between the first audio output device can bring inconvenience to the user.
[0063] For example, the terminal device establishes an audio path with a Bluetooth speaker (the first audio output device), the Bluetooth speaker corresponds to a work scenario mode, and the first application software running on the terminal device is Ding Ding APP (a work APP). At time t2, the application software running on the terminal device is switched from Ding Ding APP (an entertainment APP) to iQiyi APP (a second application software, an entertainment APP). The work mode corresponding to the second application software is not matched with the work mode corresponding to the first audio output device, and there is no audio output device corresponding to the entertainment mode in the connected audio output devices. At this time, if the Bluetooth speaker is continued to be used to output audio, the user can be brought corresponding inconvenience.
[0064] In a specific implementation, different priorities can be set for different scenario modes. For example, a first scenario mode is set as an entertainment scenario mode, and a second scenario mode is set as a work scenario mode. The priority of the entertainment scenario mode is lower than the priority of the work scenario mode.
[0065] That is, if the first application software corresponds to the first scenario mode, and the second application software corresponds to the second scenario mode, after switching from the second application software to the first application software, if the scenario corresponding to the first audio output device is the first scenario mode, and there is no other audio output device supporting the second scenario mode, the audio path between the second audio output device can be disconnected.
[0066] Referring to Figure 2 An audio output device switching apparatus 20 in an embodiment of the present application is provided, which comprises a detection unit 201 and an execution unit 202, wherein:
[0067] The detection unit 201 is configured to detect a trigger event. The trigger event comprises that there is a newly connected second audio output device, or that the application software of the audio output device is switched from a first application software to a second application software.
[0068] The execution unit 202 is configured to determine whether to switch the audio output device establishing the audio path according to the trigger event.
[0069] In a specific implementation, the specific execution process of the above-mentioned detection unit 201 and execution unit 202 can correspond to steps 101-102, which will not be repeated here.
[0070] In specific implementations, each module / unit included in each device or product described in the above embodiments can be a software module / unit or a hardware module / unit, or can be partially a software module / unit and partially a hardware module / unit.
[0071] For example, for each device or product applied to or integrated in a chip, each module / unit included therein can be implemented in the form of hardware such as a circuit, or at least part of the modules / units can be implemented in the form of a software program running on a processor integrated in the chip, and the remaining (if any) modules / units can be implemented in the form of hardware such as a circuit; for each device or product applied to or integrated in a chip module, each module / unit included therein can be implemented in the form of hardware such as a circuit, and different modules / units can be located in the same component (for example, a chip, a circuit module, etc.) or different components of the chip module, or at least part of the modules / units can be implemented in the form of a software program running on a processor integrated in the chip module, and the remaining (if any) modules / units can be implemented in the form of hardware such as a circuit; for each device or product applied to or integrated in a terminal, each module / unit included therein can be implemented in the form of hardware such as a circuit, and different modules / units can be located in the same component (for example, a chip, a circuit module, etc.) or different components of the terminal, or at least part of the modules / units can be implemented in the form of a software program running on a processor integrated in the terminal, and the remaining (if any) modules / units can be implemented in the form of hardware such as a circuit.
[0072] The embodiment of the present application further provides a computer readable storage medium, which is a non-volatile storage medium or a non-transitory storage medium, and has a computer program stored thereon, and the computer program is run by a processor to execute the steps of the audio output device switching method provided in steps 101-102.
[0073] The embodiment of the present application further provides another audio output device switching apparatus, which comprises a memory and a processor, and the memory has a computer program stored thereon, and the computer program is run by the processor to execute the steps of the audio output device switching method provided in any of the above embodiments.
[0074] Those skilled in the art can understand that all or part of the steps in the above-mentioned various methods of the embodiments can be completed by programs instructing related hardware, and the programs can be stored in a computer readable storage medium, which can include ROM, RAM, magnetic or optical disk, etc.
[0075] Although the present application has been disclosed with reference to the above embodiments, the application is not limited to the above embodiments. It will be apparent to those skilled in the art that various modifications and changes can be made thereto without departing from the spirit and scope of the application. The scope of the application should be limited only by the appended claims.
Claims
1. A method for switching audio output devices, characterized in that, include: Detect the triggered event; The triggering events include: the existence of a newly connected second audio output device, or the application software of the audio output device switching from the first application software to the second application software; Based on the triggering event, determine whether to switch the audio output device that established the audio path; The triggering event is when the application software that calls the audio output device switches from the first application software to the second application software. Determining whether to switch the audio output device establishing the audio path based on the triggering event includes: if the scene mode corresponding to the second application software does not match the scene mode corresponding to the first application software, obtaining the scene mode of the first audio output device currently establishing the audio path; if the scene mode corresponding to the second application software matches the scene mode corresponding to the first audio output device, then determining to continue connecting the audio path to the first audio output device; if the scene mode corresponding to the second application software does not match the scene mode corresponding to the first audio output device, then detecting whether a third audio output device exists among the connected audio output devices; if the third audio output device exists, then determining to switch the audio path to the third audio output device; if the third audio output device does not exist, then disconnecting the audio path from the first audio output device; the scene mode corresponding to the third audio output device matches the scene mode corresponding to the second application software.
2. The audio output device switching method as described in claim 1, characterized in that, The step of determining whether to switch the audio output device that establishes the audio path based on the triggering event includes: Based on the triggering event, and the application software currently calling the audio output device and / or the first audio output device currently establishing the audio path, determine whether to switch the audio output device that established the audio path.
3. The audio output device switching method as described in claim 1, characterized in that, The triggering event is the presence of the second audio output device; determining whether to switch the audio output device establishing the audio path based on the triggering event, the application software currently calling the audio output device, and / or the first audio output device currently establishing the audio path includes: If the scene mode corresponding to the first audio output device matches that of the second audio output device, then the audio path will be switched to the second audio output device.
4. The audio output device switching method as described in claim 1, characterized in that, The triggering event is the presence of the second audio output device; determining whether to switch the audio output device establishing the audio path based on the triggering event, the application software currently calling the audio output device, and / or the first audio output device currently establishing the audio path includes: If the scene mode corresponding to the first audio output device does not match the scene mode corresponding to the second audio output device, obtain the scene mode corresponding to the first application software. If the scene mode corresponding to the first application software matches the scene mode of the second audio output device, then the audio path is switched to the second audio output device; if the scene mode corresponding to the first application software does not match the scene mode of the second audio output device, but matches the scene mode corresponding to the first audio output device, then the audio path is continued to be connected to the first audio output device.
5. The audio output device switching method as described in claim 1, characterized in that, The triggering event is when the application software calling the audio output device switches from the first application software to the second application software; the step of determining whether to switch the audio output device for establishing the audio path based on the triggering event, the application software currently calling the audio output device, and / or the first audio output device currently establishing the audio path includes: The scene mode corresponding to the second application software matches the scene mode corresponding to the first application software, and it is determined that the audio output device corresponding to the audio path will not be switched.
6. The audio output device switching method as described in claim 1, characterized in that, The triggering event is when the application software calling the audio output device switches from the first application software to the second application software; the step of determining whether to switch the audio output device for establishing the audio path based on the triggering event, the application software currently calling the audio output device, and / or the first audio output device currently establishing the audio path includes: The scene mode corresponding to the second application software does not match the scene mode corresponding to the first application software. Therefore, the scene mode of the first audio output device that is currently establishing an audio path is obtained. If the scene mode corresponding to the second application software matches the scene mode corresponding to the first audio output device, then it is determined that the audio path will continue to be connected to the first audio output device. If the scene mode corresponding to the second application software does not match the scene mode corresponding to the first audio output device, then it is detected whether there is a third audio output device among the connected audio output devices; if the third audio output device exists, it is determined to switch the audio path to the third audio output device; if the third audio output device does not exist, it is determined to continue connecting the audio path to the first audio output device. The scene mode corresponding to the third audio output device matches the scene mode corresponding to the second application software.
7. An audio output device switching device, characterized in that, include: The detection unit is used to detect triggering events; The triggering events include: the existence of a newly connected second audio output device, or the application software that calls the audio output device switching from the first application software to the second application software. An execution unit is configured to determine, based on the triggering event, whether to switch the audio output device establishing the audio path; the triggering event is the switching of the application software that calls the audio output device from a first application software to a second application software; determining whether to switch the audio output device establishing the audio path based on the triggering event includes: if the scene mode corresponding to the second application software does not match the scene mode corresponding to the first application software, obtaining the scene mode of the first audio output device currently establishing the audio path; if the scene mode corresponding to the second application software matches the scene mode corresponding to the first audio output device, determining to continue connecting the audio path to the first audio output device; if the scene mode corresponding to the second application software does not match the scene mode corresponding to the first audio output device, detecting whether a third audio output device exists among the connected audio output devices; if the third audio output device exists, determining to switch the audio path to the third audio output device; if the third audio output device does not exist, disconnecting the audio path from the first audio output device; the scene mode corresponding to the third audio output device matches the scene mode corresponding to the second application software.
8. A computer-readable storage medium, wherein the computer-readable storage medium is a non-volatile storage medium or a non-transient storage medium, and a computer program is stored thereon, characterized in that, When the computer program is run by the processor, it performs the steps of the audio output device switching method according to any one of claims 1 to 6.
9. An audio output device switching apparatus, comprising a memory and a processor, wherein the memory stores a computer program executable on the processor, characterized in that, When the processor runs the computer program, it performs the steps of the audio output device switching method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Audio pushing method and audio pushing system
CN114125791A