Audio playing switching method, system and device and storage medium
By setting up a charging stand in the headphones and speaker devices and using sensors to detect the removal status of the headphones, automatically switching the audio signal transmission link, the problem of cumbersome and error-prone switching methods of existing audio playback devices is solved, and the switching efficiency and user experience are improved .
Patent Information
- Application Number
- CN202411045599.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-12-13
Smart Images

Figure CN119136111A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of audio playback technology, and in particular to an audio playback switching method, system, device and storage medium. Background Art
[0002] In recent years, headphone devices have become the preferred tool for the public to enjoy music and sound due to their portability, privacy, immersion and high performance. However, wearing headphone devices for a long time may cause discomfort or even damage to the ears, and the battery life of headphone devices also restricts their continuous use time. Therefore, users often need to switch between headphone devices and speaker devices to meet their listening needs.
[0003] At present, most of the existing audio playback switching methods rely on manual operations by users, including disconnecting the headphone device from the playback device, re-searching and pairing the speaker device, and even charging the headphone device that is running out of power during the switching interval. This not only makes the switching process cumbersome, time-consuming and inefficient, but may also cause poor connection or audio interruption due to switching operation errors, seriously affecting the user experience.
[0004] Therefore, how to improve the switching efficiency of audio playback to enhance user experience is a technical problem that urgently needs to be solved. Summary of the invention
[0005] The main purpose of the present application is to provide an audio playback switching method, system, device and storage medium, aiming to improve the switching efficiency of audio playback to enhance the user experience.
[0006] To achieve the above-mentioned purpose, the present application provides an audio playback switching method, which is applied to a headphone device, wherein the headphone device and a speaker device are respectively connected to a playback source device for communication, and the speaker device is provided with a charging stand for placing the headphone device;
[0007] The audio playback switching method comprises:
[0008] In response to a headphone removal signal, sending an audio transmission stop signal to the playback source device;
[0009] After the playback source device stops uploading audio signals to the headphone device in accordance with the audio stop transmission signal, it is detected that the headphone device is placed on the charging bracket for charging, and the charging signal of the headphone device is uploaded to the playback source device, so that the playback source device switches the transmission link of the audio signal from the headphone device to the speaker device in accordance with the charging signal.
[0010] In one embodiment, a capacitive sensor and a photosensitive sensor are disposed inside the earmuff of the headphone device, and before the step of responding to the headphone removal signal, the audio playback switching method further includes:
[0011] After the earmuff contacts the body surface of the wearer, obtaining the actual ambient light intensity collected by the light sensor and the initial capacitance signal collected by the capacitance sensor;
[0012] When the actual ambient light intensity matches the preset unworn light intensity threshold, a plurality of actual capacitance signals collected by the capacitance sensor within a preset monitoring time are averaged to obtain a capacitance average signal;
[0013] A capacitance difference between the initial capacitance signal and the capacitance mean signal is calculated, and a wearing detection result is determined according to the capacitance difference.
[0014] In one embodiment, the step of determining the wearing detection result according to the capacitance difference comprises:
[0015] Detecting whether the capacitance difference is within a preset removal threshold range;
[0016] If the capacitance difference is not within the removal threshold range, determining that the wearing detection result is that the earphone device is in a wearing state;
[0017] If the capacitance difference is within the removal threshold range, it is determined that the wearing detection result is that the headphone device is in a not-worn state, and the headphone removal signal is generated according to the not-worn state.
[0018] In addition, to achieve the above-mentioned purpose, the present application also provides an audio playback switching method, which is applied to a speaker device, wherein the speaker device and the headphone device are respectively connected to a playback source device for communication, and the speaker device is provided with a charging stand for placing the headphone device;
[0019] When the charging bracket charges the headphone device, the audio signal sent by the playback source device is played; wherein,
[0020] The headphone device is used to, in response to a headphone removal signal, send an audio transmission stop signal to the playback source device, detect that the headphone device is placed on the charging bracket for charging after the playback source device stops uploading the audio signal, and upload the charging signal of the headphone device to the playback source device;
[0021] The playback source device is used to stop uploading the audio signal to the headphone device according to the audio stop transmission signal; and to switch the transmission link of the audio signal from the headphone device to the speaker device according to the charging signal.
[0022] In one embodiment, after the step of playing the audio signal sent by the playback source device, the audio playback switching method further includes:
[0023] Sending a power supply signal to the headphone device;
[0024] If the power feedback signal of the power supply signal sent by the headphone device is not received within the preset response time, it is determined that the headphone device is detached from the charging bracket, triggering the speaker device to send a speaker pause playback instruction to the playback source device; wherein,
[0025] The playback source device is used to switch the transmission link of the audio signal from the speaker device to the headphone device according to the charging completion signal sent by the headphone device after stopping uploading the audio signal to the headphone device according to the speaker pause playback instruction.
[0026] In addition, to achieve the above-mentioned purpose, the present application also provides an audio playback switching system, the audio playback switching system at least comprising an earphone device, a speaker device and a playback source device, the earphone device and the speaker device are respectively connected to the playback source device for communication, and the speaker device is provided with a charging stand for placing the earphone device;
[0027] The headphone device is used to, in response to a headphone removal signal, send an audio transmission stop signal to the playback source device, detect that the headphone device is placed on the charging bracket for charging after the playback source device stops uploading the audio signal, and upload the charging signal of the headphone device to the playback source device;
[0028] The playback source device is used to stop uploading the audio signal to the headphone device according to the audio stop transmission signal; and switch the transmission link of the audio signal from the headphone device to the speaker device according to the charging signal;
[0029] The speaker device is used to play the audio signal sent by the playback source device when the charging bracket charges the headphone device.
[0030] In one embodiment, the earphone device at least includes an earphone speaker, an earphone microphone, an audio codec, an audio signal interface, an earphone audio processing chip, a main controller, a wireless charging receiving chip, a charging management chip, a battery, and an earphone wireless connection chip;
[0031] The audio codec is electrically connected to the headphone microphone, the headphone speaker, the audio signal interface and the headphone audio processing chip respectively, the headphone microphone is electrically connected to the headphone speaker, the main controller is electrically connected to the headphone audio processing chip, the wireless charging receiving chip, the charging management chip and the headphone-end wireless connection chip respectively, the headphone audio processing chip is electrically connected to the headphone-end wireless connection chip, and the wireless charging receiving chip is electrically connected to the battery through the charging management chip.
[0032] In one embodiment, the speaker device at least includes a speaker, a microphone array, an amplifier module, a speaker audio processing chip, a system chip, a speaker wireless communication module, a power management chip, a wireless charging transmitter chip and a DC power interface;
[0033] The speaker audio processing chip is electrically connected to the amplifier module, the microphone array, the speaker wireless communication module and the system chip respectively, and the amplifier module is electrically connected to the speaker;
[0034] The speaker wireless communication module and the wireless charging transmitter chip are electrically connected to the system chip respectively, and the DC power interface is electrically connected to the wireless charging transmitter chip through the power management chip.
[0035] Each device module of the audio playback switching system of the present application implements the steps of the audio playback switching method of the present application as described above during operation.
[0036] In addition, to achieve the above-mentioned purpose, the present application also provides an audio playback switching device, which includes a memory, a processor, and an audio playback switching program stored in the memory and executable on the processor, and the audio playback switching program implements the steps of the above-mentioned audio playback switching method when executed by the processor.
[0037] In addition, to achieve the above-mentioned purpose, the present application also provides a storage medium, which is a computer-readable storage medium, and an audio playback switching program is stored on the computer-readable storage medium. When the audio playback switching program is executed by the processor, the steps of the above-mentioned audio playback switching method are implemented.
[0038] The present application provides an audio playback switching method to optimize the audio playback switching mode, significantly improving the convenience and efficiency of users switching audio playback between headphone devices and speaker devices. Specifically, when the user takes off the earphones, the earphone device automatically sends an audio stop transmission signal to the playback source device in response to the earphone removal signal, so that the playback source device can immediately stop uploading the audio signal to the earphone device according to the audio stop transmission signal, thereby avoiding unnecessary audio output; next, the earphone device can be automatically charged through the charging stand of the speaker device without manual intervention. Once the earphone device determines that it is placed on the charging stand of the speaker device for charging, it will automatically upload a charging signal reflecting that the earphone device is in a charging state to the playback source device; then, the playback source device can immediately and seamlessly switch the transmission link of the audio signal from the earphone device to the speaker device according to the received charging signal, without the user manually intervening in searching, pairing or adjusting device settings, thereby greatly simplifying the switching operation steps of the existing audio playback device, shortening the switching operation time, and significantly improving the switching efficiency of audio playback, thereby eliminating the troubles caused by cumbersome and time-consuming manual operations and connection problems or audio interruptions that may be caused by improper operations, so as to provide users with a smoother, seamless and comfortable audio experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 It is a flowchart of the first embodiment of the audio playback switching method of the present application;
[0040] Figure 2 It is a schematic diagram of the structure of an audio switching system involved in an embodiment of the present application;
[0041] Figure 3 is a block diagram of an audio playback switching system involved in an embodiment of the present application;
[0042] Figure 4 It is a flowchart of the smart speaker relay audio playback involved in the embodiment of the present application;
[0043] Figure 5 This is a flowchart of relay audio playback using headphones involved in the embodiment of the present application;
[0044] Figure 6 This is a schematic diagram of the structure of the audio playback switching device involved in the embodiment of the present application.
[0045] Description of Figure Numbers:
[0046] 10. Headphone equipment; 20. Charging stand; 30. Speaker equipment.
[0047] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0048] The present application embodiment provides an audio playback switching method, referring to Figure 1 As shown, Figure 1 It is a flowchart of the first embodiment of the audio playback switching method of the present application.
[0049] Here, exemplary embodiments are described in detail, and examples thereof are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application.
[0050] In recent years, the portability, privacy, immersion and high performance of headphones have made them the main tool for people to enjoy music and sound. However, due to the characteristics of headphones themselves, such as certain damage to the ears and battery life limitations, people need to choose other methods such as smart speakers to replace headphones to play audio. Taking headphones and smart speakers as an example, when switching from headphones to smart speakers, you need to take off the headphones, connect the smart speakers with a mobile phone or computer, and then use the smart speakers to play audio; when the smart speakers switch to headphones, you need to connect the headphones with a mobile phone or computer, and then wear the headphones to play audio; or the headphones and smart speakers can be connected to the mobile phone or computer at the same time, but the switching requires additional operation. Most headphones are charged by wire. If you need to charge the headphones when switching, you need to add the action of plugging in the cable for charging. The above switching methods have many steps, which will invest a lot of time and cost, and the user experience is not good.
[0051] In order to solve the technical defect of poor user experience caused by the poor switching efficiency of existing audio playback devices, the present application provides an audio playback switching method, system, device and storage medium.
[0052] The audio playback switching method of the present application is applied to the earphone device 10, and the earphone device 10 and the speaker device 30 are respectively communicatively connected with the playback source device, and the speaker device 30 is provided with a charging stand 20 for placing the earphone device 10.
[0053] The audio playback switching method of this application includes:
[0054] Step S10: In response to the headphone removal signal, sending an audio transmission stop signal to the playback source device.
[0055] In this embodiment, the earphone device 10 and the speaker device 30 provided in this application can communicate with the playback source device through a wireless connection. When the user wears the earphone device 10 and plays the audio signal uploaded by the playback source device, the environment sensor provided on the inner side of the earmuff of the earphone device 10 detects whether the earphone device 10 is taken off by the user. If the environment sensor detects that the earphone device 10 is taken off by the user, the earphone device 10 responds to the earphone removal signal sent by the environment sensor to send an audio stop transmission signal to the playback source device to achieve instant interruption of audio playback, effectively avoiding unnecessary audio playback, thereby bringing users a more intelligent and humanized audio experience. At the same time, it also lays a solid foundation for subsequent audio playback switching operations, allowing users to enjoy smoother and seamless audio switching services without manual intervention.
[0056] It should be noted that the earphone device 10 provided in the present application can be understood as a headset, the speaker device 30 can be understood as a smart speaker, the playback source device can be understood as a mobile phone, a tablet or a computer, etc., and the environmental sensor can be understood as a capacitive sensor and a photosensitive sensor.
[0057] Step S20: After the playback source device stops uploading the audio signal to the headphone device 10 in accordance with the audio stop transmission signal, it is detected that the headphone device 10 is placed on the charging bracket 20 for charging, and the charging signal of the headphone device 10 is uploaded to the playback source device, so that the playback source device switches the transmission link of the audio signal from the headphone device 10 to the speaker device 30 in accordance with the charging signal.
[0058] In this embodiment, after the playback source device stops uploading the audio signal to the earphone device 10 in accordance with the audio stop transmission signal, the earphone device 10 is placed on the charging bracket 20 of the speaker device 30 so that the charging device can automatically charge the earphone device 10; next, the earphone device 10 automatically uploads a charging signal reflecting that it is in a charging state to the playback source device; then, the playback source device can immediately and seamlessly switch the transmission link of the audio signal from the earphone device 10 to the speaker device 30 based on the received charging signal, without the need for the user to manually intervene in the search, pairing or adjustment of the device settings, thereby greatly simplifying the switching operation steps of the existing audio playback device, shortening the switching operation time, and significantly improving the switching efficiency of the audio playback, thereby eliminating the troubles caused by cumbersome and time-consuming manual operations and connection problems or audio interruptions that may be caused by improper operations, so as to provide users with a smoother, seamless and comfortable audio experience.
[0059] It should be noted that the earphone device 10 is provided with a wireless charging receiving chip, a charging management chip and a battery which are electrically connected in sequence; the speaker device 30 is provided with a wireless charging transmitting chip and a power management chip which are electrically connected in sequence.
[0060] In a specific embodiment, refer to Figure 2 , Figure 2 : is a schematic diagram of the structure of the audio switching system involved in the embodiment of the present application. The present application is provided with a fixedly connected charging bracket 20 on one side of the speaker device 30, and the charging bracket 20 can place the headphone device 10. Exemplarily, when the built-in magnetic induction coil of the charging bracket 20 and the magnetic induction coil of the internal resistance of the headphone device 10 generate an induced electromotive force, it is determined that the headphone device 10 is placed on the charging bracket 20, and then, the power supply signal provided by the power management chip is sent to the headphone device 10 via the wireless charging transmitting chip. At this time, the headphone device 10 receives the power supply signal sent by the wireless charging transmitting chip through the wireless charging receiving chip, and according to the electrical connection between the wireless charging receiving chip and the charging management chip, the wireless charging receiving chip sends the power supply signal to the charging management chip, so that the charging management chip provides the power supply signal to the battery of the headphone device 10, thereby realizing automatic charging of the headphone device 10 through the wireless interaction between the wireless charging receiving chip and the wireless charging transmitting chip without the need for human intervention.
[0061] In summary, the present application provides an audio playback switching method that optimizes the audio playback switching method, significantly improving the convenience and efficiency of users switching audio playback between the headphone device 10 and the speaker device 30. Specifically, when the user takes off the earphone, the earphone device 10 automatically sends an audio stop transmission signal to the playback source device in response to the earphone removal signal, so that the playback source device can immediately stop uploading the audio signal to the earphone device 10 according to the audio stop transmission signal, thereby avoiding unnecessary audio output; next, the earphone device 10 can be automatically charged through the charging bracket 20 of the speaker device 30 without manual intervention. Once the earphone device 10 determines that it is placed on the charging bracket 20 of the speaker device 30 for charging, it automatically uploads a charging signal reflecting that the earphone device 10 is in a charging state to the playback source device; then, the playback source device can immediately and seamlessly switch the transmission link of the audio signal from the earphone device 10 to the speaker device 30 according to the received charging signal, without the user manually intervening in searching, pairing or adjusting device settings, thereby greatly simplifying the switching operation steps of the existing audio playback device, shortening the switching operation time, and significantly improving the switching efficiency of audio playback, thereby eliminating the troubles caused by cumbersome and time-consuming manual operations and connection problems or audio interruptions that may be caused by improper operations, so as to provide users with a smoother, seamless and comfortable audio experience.
[0062] Furthermore, based on the first embodiment of the audio playback switching method of the present application, a second embodiment of the audio playback switching method of the present application is proposed.
[0063] Further, in some feasible embodiments, a capacitive sensor and a photosensitive sensor are provided inside the earmuff of the headphone device 10. In the above step S10: in response to the headphone removal signal, an audio stop transmission signal is sent to the playback source device. The audio playback switching method further includes the following implementation steps:
[0064] Step A10: After the earmuff contacts the body surface of the wearer, the actual ambient light intensity collected by the photosensitizer and the initial capacitance signal collected by the capacitance sensor are obtained.
[0065] In this embodiment, when the inner side of the earmuff of the headphone device 10 is in close contact with the body surface of the wearer, the light sensor and the capacitive sensor provided on the inner side of the earmuff will immediately start the collaborative monitoring mechanism. Specifically, the light sensor will immediately collect the actual ambient light intensity on the inner side of the earmuff, and based on the capacitive sensor, measure the capacitance change after the earmuff contacts the body surface of the wearer, and generate an initial capacitance signal to reflect the initial wearing characteristics of the headphone device 10.
[0066] Step A20: When the actual ambient light intensity matches the preset non-wearing light intensity threshold, a plurality of actual capacitance signals collected by the capacitance sensor within a preset monitoring time are averaged to obtain a capacitance average signal.
[0067] In this embodiment, the actual ambient light intensity is compared with a preset non-worn light intensity threshold. If the actual ambient light intensity is within the light intensity range corresponding to the non-worn light intensity threshold, it is determined that the actual ambient light intensity matches the non-worn light intensity threshold, thereby performing averaging processing on multiple actual capacitance signals collected by the capacitance sensor within a preset monitoring time to eliminate accidental errors and improve data stability and reliability, so that the capacitance average signal can be accurately obtained, thereby enhancing the accuracy of subsequent wearing status detection.
[0068] In another embodiment, if the actual ambient light intensity is not within the light intensity range corresponding to the not-worn light intensity threshold, the actual ambient light intensity does not match the preset not-worn light intensity threshold, that is, the headphone device 10 is in the worn state.
[0069] Step A30: Calculate the capacitance difference between the initial capacitance signal and the capacitance mean signal, and determine the wearing detection result according to the capacitance difference.
[0070] In this embodiment, the capacitance difference between the initial capacitance signal and the capacitance mean signal is calculated, and the capacitance difference can directly reflect the contact state between the earmuff and the wearer's body surface; next, the wearing detection result determined by the capacitance difference can further determine whether the user is wearing the headphone device 10, thereby realizing intelligent identification of whether the headphone device 10 is worn by the user without manual intervention.
[0071] Furthermore, in some other feasible embodiments, the above step A30: determining the wearing detection result according to the capacitance difference may also include the following implementation steps:
[0072] Step A301: Detect whether the capacitance difference is within a preset removal threshold range;
[0073] In this embodiment, the earphone device 10 compares the capacitance difference with a preset removal threshold range, thereby providing an accurate judgment basis for subsequent wearing status detection.
[0074] Step A302: If the capacitance difference is not within the removal threshold range, determining that the wearing detection result is that the earphone device 10 is in the wearing state.
[0075] In this embodiment, if the capacitance difference is not within the preset removal threshold range, the wearing detection result is determined to be that the earphone device 10 is in a wearing state, thereby ensuring the continuity of audio transmission and greatly improving the user experience.
[0076] Step A303: If the capacitance difference is within the removal threshold range, determining that the wearing detection result is that the earphone device 10 is in an unworn state, and generating the earphone removal signal according to the unworn state.
[0077] In this embodiment, if the capacitance difference is within the preset removal threshold range, the wearing detection result is determined to be that the earphone device 10 is in an unworn state, and a timely response is made to the unworn state so as to instantly generate an earphone removal signal, thereby achieving instant response and intelligent processing of changes in wearing status.
[0078] Furthermore, based on the first embodiment and the second embodiment of the audio playback switching method of the present application, a third embodiment of the audio playback switching method of the present application is proposed. The audio playback switching method provided in the present application can also be applied to a speaker device 30, wherein the speaker device 30 and the headphone device 10 are respectively connected to the playback source device in communication, and the speaker device 30 is provided with a charging stand 20 for placing the headphone device 10.
[0079] The audio playback switching method provided in this application may include the following implementation steps:
[0080] Step B10: When the charging bracket 20 charges the headphone device 10, the audio signal sent by the playback source device is played; wherein,
[0081] The headphone device 10 is used to, in response to a headphone removal signal, send an audio stop transmission signal to the playback source device, detect that the headphone device 10 is placed on the charging bracket 20 for charging after the playback source device stops uploading the audio signal, and upload the charging signal of the headphone device 10 to the playback source device;
[0082] The playback source device is used to stop uploading the audio signal to the headphone device 10 according to the audio stop transmission signal; and to switch the transmission link of the audio signal from the headphone device 10 to the speaker device 30 according to the charging signal.
[0083] In this embodiment, when the charging stand 20 charges the earphone device 10, the source device communicates with the earphone device 10 through the playback source device, and the playback source device receives the charging signal sent by the earphone device 10 reflecting that it is in a charging state. At this time, the playback source device switches the transmission link of the audio signal from the earphone device 10 to the speaker device 30; then, through the electrical connection between the speaker device 30 and the playback source device, the speaker device 30 receives the audio signal uploaded by the playback source device and plays the audio signal, thereby ensuring the continuity and high quality of the audio playback, allowing the user to enjoy the audio experience transmitted by the playback source device through the speaker device 30 even during the charging of the earphone device 10, thereby significantly improving the user experience.
[0084] In a specific embodiment, the earphone device 10 and the speaker device 30 provided in the present application can both communicate with the playback source device through a wireless connection. When the user wears the earphone device 10 and plays the audio signal uploaded by the playback source device, the environment sensor provided on the inner side of the earmuff of the earphone device 10 detects whether the earphone device 10 is taken off by the user. If the environment sensor detects that the earphone device 10 is taken off by the user, the earphone device 10 responds to the earphone removal signal sent by the environment sensor to send an audio stop transmission signal to the playback source device, thereby realizing an instant interruption of the audio playback, effectively avoiding unnecessary audio playback, and thus providing the user with a more intelligent and user-friendly audio experience. At the same time, it also lays a solid foundation for subsequent audio playback switching operations, allowing users to enjoy a smoother and seamless audio switching service without manual intervention. Next, after the playback source device stops uploading the audio signal to the earphone device 10 in accordance with the audio stop transmission signal, the earphone device 10 is placed on the charging stand 20 of the speaker device 30 so that the charging device can automatically charge the earphone device 10; next, the earphone device 10 automatically uploads a charging signal reflecting that it is in a charging state to the playback source device; then, the playback source device can immediately and seamlessly switch the transmission link of the audio signal from the earphone device 10 to the speaker device 30 based on the received charging signal, without the need for the user to manually intervene in the search, pairing or adjustment of device settings, thereby greatly simplifying the switching operation steps of the existing audio playback device, shortening the switching operation time, and significantly improving the switching efficiency of the audio playback, thereby eliminating the troubles caused by cumbersome and time-consuming manual operations and connection problems or audio interruptions that may be caused by improper operations, so as to provide users with a smoother, seamless and comfortable audio experience.
[0085] Furthermore, in some feasible embodiments, after the above step B10: playing the audio signal sent by the playback source device, the audio playback switching method further includes the following implementation steps:
[0086] Step B101: sending a power supply signal to the earphone device 10 .
[0087] In this embodiment, when the speaker device 30 plays the audio signal sent by the playback source device, it will also provide a power supply signal to the headphone device 10 through the wireless charging transmitter chip arranged inside the speaker. Without the need for additional user operation, the headphone device 10 is charged by the power supply signal output by the speaker device 30, and the audio signal sent by the playback source device is also played through the speaker device 30, thereby achieving the dual convenience of audio enjoyment and charging of the headphone device 10, greatly improving the user experience.
[0088] Step B102: If the power feedback signal of the power supply signal sent by the headphone device 10 is not received within the preset response time, it is determined that the headphone device 10 is detached from the charging bracket 20, and the speaker device 30 is triggered to send a speaker pause playback instruction to the playback source device; wherein,
[0089] The playback source device is used to switch the transmission link of the audio signal from the speaker device 30 to the earphone device 10 according to the charging completion signal sent by the earphone device 10 after stopping uploading the audio signal to the earphone device 10 according to the speaker pause playback instruction.
[0090] In this embodiment, if the speaker device 30 does not receive the power feedback signal of the power supply signal sent by the headphone device 10 within the preset response time, it automatically confirms that the headphone device 10 has been detached from the charging bracket 20, and immediately triggers the speaker device 30 to send a speaker pause playback instruction to the playback source device, thereby effectively avoiding the redundant situation that the speaker device 30 continues to play audio when the headphone device 10 is not in the charging state, reducing unnecessary energy consumption, and maintaining precise control of audio playback. Subsequently, the playback source device will intelligently and seamlessly switch the transmission link of the audio signal from the speaker device 30 back to the headphone device 10 according to the charging completion signal sent by the headphone device 10. The entire process does not require manual intervention by the user, which not only simplifies the operation process, but also ensures the continuity and smoothness of audio playback, bringing users a more intelligent, convenient and efficient audio experience.
[0091] In addition, the present application also provides an audio playback switching system, which at least includes an earphone device 10, a speaker device 30 and a playback source device, wherein the earphone device 10 and the speaker device 30 are respectively connected to the playback source device for communication, and the speaker device 30 is provided with a charging stand 20 for placing the earphone device 10;
[0092] The headphone device 10 is used to, in response to a headphone removal signal, send an audio stop transmission signal to the playback source device, detect that the headphone device 10 is placed on the charging bracket 20 for charging after the playback source device stops uploading the audio signal, and upload the charging signal of the headphone device 10 to the playback source device;
[0093] The playback source device is used to stop uploading the audio signal to the headphone device 10 according to the audio stop transmission signal; and switch the transmission link of the audio signal from the headphone device 10 to the speaker device 30 according to the charging signal;
[0094] The speaker device 30 is used to play the audio signal sent by the playback source device when the charging bracket 20 charges the headphone device 10.
[0095] Each device module of the audio playback switching system of the present application implements the steps of the audio playback switching method of the present application as described above during operation.
[0096] Further, in some feasible embodiments, please refer to Figure 3 , Figure 3 It is a block diagram of the audio playback switching system involved in the embodiment of the present application. The headphone device 10 at least includes a headphone speaker, a headphone microphone, an audio codec, an audio signal interface, a headphone audio processing chip, a main controller, a wireless charging receiving chip, a charging management chip, a battery and a headphone end wireless connection chip; the audio codec is electrically connected to the headphone microphone, the headphone speaker, the audio signal interface and the headphone audio processing chip respectively, the headphone microphone is electrically connected to the headphone speaker, the main controller is electrically connected to the headphone audio processing chip, the wireless charging receiving chip, the charging management chip and the headphone end wireless connection chip respectively, the headphone audio processing chip is electrically connected to the headphone end wireless connection chip, and the wireless charging receiving chip is electrically connected to the battery through the charging management chip.
[0097] In this embodiment, refer to Figure 3 as well as Figure 4 , Figure 4 This is a flowchart of the smart speaker relaying audio playback involved in the embodiment of the present application. For example, the earphone device 10 is a headset, and the speaker device 30 is a smart speaker. When the headset is playing an audio signal and the headset is charging on the smart speaker charging stand 20, the audio signal played by the headset is relayed on the smart speaker, specifically including the following implementation steps:
[0098] Step 1: Both the headphones and the smart speaker are connected to the source device via wireless connection;
[0099] Step 2: When the headphones are playing music, the headphones are taken off. The sensor in the headphones detects that the headphones are taken off and notifies the MCU (Microcontroller Unit) in the headphones. The MCU sends a stop playback command to the wireless connection chip at the headphone end. The wireless connection chip at the headphone end then sends the stop playback command to the playback source device wirelessly, so that the headphones stop playing audio signals.
[0100] Step 3: Place the headphones on the charging stand 20 of the smart speaker;
[0101] Step ④: The wireless charging transmitting chip in the smart speaker recognizes the rechargeable device (i.e., headphones), and the wireless charging receiving chip in the headphones also recognizes the power supply (i.e., smart speaker). In other words, the wireless charging transmitting chip and the wireless charging receiving chip communicate successfully, and the smart speaker starts to charge the headphones.
[0102] Step ⑤: When the smart speaker starts to charge the headset, the wireless charging transmitting chip sends a notification signal to the SoC (System on Chip) in the smart speaker to inform the headset device 10 to start charging. At the same time, the charging management chip of the headset sends a charging notification signal (i.e., a charging signal) to the MCU in the headset to inform the headset to start charging;
[0103] Step ⑥: The MCU sends a charging notification command to the wireless connection chip at the headphone end, and the wireless connection chip at the headphone end sends the charging notification command to the playback source device wirelessly. The playback source device receives the charging notification command and terminates audio transmission to the headphone (i.e., terminates transmission of audio signals to the headphone);
[0104] Step 7: The SoC in the smart speaker sends an earphone charging command to the wireless connection chip on the speaker side. The wireless connection chip on the speaker side sends the earphone charging command to the playback source device wirelessly. The playback source device receives the earphone charging command and starts transmitting audio signals to the smart speaker.
[0105] Step ⑧: The headphones stop playing the audio signal, and the smart speaker starts playing the audio signal.
[0106] It should be noted that the headphone end wireless connection chip provided in the present application is a Bluetooth chip or a 2.4 GHz private protocol chip. In addition, the MCU in the headset and the headphone end wireless connection chip can be an integrated chip.
[0107] In another embodiment, in the process of relaying audio playback by the smart speaker, the process within the dotted frame line may be that the MCU in the headset can send a command to the wireless connection chip on the headset end to disconnect from the playback source device, and the headset audio playback is terminated.
[0108] Further, in some other feasible embodiments, please refer to Figure 3The speaker device 30 at least includes a speaker, a microphone array, an amplifier module, a speaker audio processing chip, a system chip, a speaker wireless communication module, a power management chip, a wireless charging transmitter chip and a DC power interface; the speaker audio processing chip is electrically connected to the amplifier module, the microphone array, the speaker wireless communication module and the system chip respectively, and the amplifier module is electrically connected to the speaker; the speaker wireless communication module and the wireless charging transmitter chip are electrically connected to the system chip respectively, and the DC power interface is electrically connected to the wireless charging transmitter chip through the power management chip.
[0109] In this embodiment, refer to Figure 3 as well as Figure 5 , Figure 5 This is a flowchart of the headphone relay audio playback involved in the embodiment of the present application. For example, the headphone device 10 is a headphone, and the speaker device 30 is a smart speaker. When the smart speaker is playing audio, the headphone is charging on the charging stand 20 of the smart speaker, and the headphone is picked up and worn, the speaker audio is relayed on the headphone, which specifically includes the following implementation steps:
[0110] Step 1: Both the headphones and the smart speaker are connected to the source device via wireless connection;
[0111] Step 2: The headset is being charged on the charging stand 20 of the smart speaker, and the smart speaker is playing audio;
[0112] Step 3: The user takes the headset off the charging stand 20 and wears it;
[0113] Step 4: The transmitting end of the wireless charging transmitting chip in the smart speaker detects that the receiving end of the wireless charging receiving chip does not exist, and sends a notification detection signal to the SoC (system chip) in the smart speaker (notifying the SoC that the receiving end of the wireless charging receiving chip does not exist). At this time, the SoC in the smart speaker sends a charging completion signal to the wireless connection chip at the speaker end, and the wireless connection chip at the speaker end sends the charging completion signal to the playback source device wirelessly. The playback source device receives the charging completion signal and stops transmitting audio to the smart speaker, and the smart speaker stops playing the audio signal;
[0114] Step 5: The wireless charging receiving chip in the headset detects that the transmitting end of the wireless charging transmitting chip does not exist, and sends a detection notification signal to the MCU (i.e., the main controller) in the headset (notifying the MCU that the transmitting end of the wireless charging transmitting chip does not exist). At this time, the MCU in the headset sends a charging completion instruction to the headphone-end wireless connection chip in the headset. The headphone-end wireless connection chip sends the charging completion instruction to the playback source device wirelessly. The playback source device receives the charging completion instruction and starts to transmit audio signals to the headset.
[0115] Step 6: Wear the headphones. The environmental sensor in the headphones detects that the headphones are being worn, notifies the MCU in the headphones, and sends the headphone wearing instruction to the wireless connection chip on the headphone end. The wireless connection chip on the headphone end then sends the headphone wearing instruction to the playback source device wirelessly, and the audio signal starts to play in the headphones.
[0116] It should be noted that Figure 3 The wireless connection chip at the speaker end and the WIFI (WIreless FIdelity) module shown constitute a wireless communication module; illustratively, the WIFI module and the wireless connection chip at the speaker end in the smart speaker can be two independent modules, or the WIFI chip and the wireless connection chip at the speaker end can be integrated in the same module. In addition, the wireless connection chip at the speaker end is a Bluetooth chip or a 2.4GHz private protocol chip.
[0117] In another embodiment, in the process of relay playback through headphones, the process within the dotted frame line may be that the SoC in the smart speaker can send a command to the wireless connection chip to disconnect from the playback source device, and the audio playback of the speaker is terminated.
[0118] In addition, this application also provides an audio playback switching device. Figure 6 , Figure 6 The structure diagram of the audio playback switching device involved in the embodiment of the present application is shown in FIG. The audio playback switching device in the embodiment of the present application may specifically be a device for locally running the audio playback switching method.
[0119] The present application provides an audio playback switching device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the audio playback switching device method in the above-mentioned embodiment one.
[0120] Reference below Figure 6, which shows a schematic diagram of the structure of an audio playback switching device suitable for implementing the embodiment of the present application. The audio playback switching device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 6 The audio playback switching device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0121] like Figure 6 As shown, the audio playback switching device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the audio playback switching device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following devices can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the audio playback switching device to communicate wirelessly or wired with other devices to exchange data. Although the figure shows an audio playback switching device with various devices, it should be understood that it is not required to implement or have all the devices shown. More or less devices can be implemented or have alternatively.
[0122] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0123] The audio playback switching device provided by the present application adopts the audio playback switching device method in the above embodiment, which can solve the technical problem of low reliability of the audio playback switching device. Compared with the prior art, the beneficial effects of the audio playback switching device provided by the present application are the same as the beneficial effects of the audio playback switching device method provided by the above embodiment, and other technical features in the audio playback switching device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0124] In addition, the present application provides a storage medium, which is a computer-readable storage medium. The computer-readable storage medium stores an audio playback switching program, and when the audio playback switching program is executed by a processor, the steps of the above-mentioned audio playback switching method are implemented.
[0125] An embodiment of the present application provides a computer-readable storage medium having computer-readable program instructions (ie, a computer program) stored thereon, wherein the computer-readable program instructions are used to execute the driving assistance method in the above embodiment.
[0126] The computer-readable storage medium provided in the embodiment of the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM: Random Access Memory), a read-only memory (ROM: Read Only Memory), an erasable programmable read-only memory (EPROM: Erasable Programmable Read Only Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency: Radio Frequency), etc., or any suitable combination of the above.
[0127] The computer-readable storage medium may be included in the audio playback switching device; or may exist independently without being assembled into the audio playback switching device.
[0128] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the audio playback switching device, the audio playback switching device:
[0129] In response to a headphone removal signal, an audio stop transmission signal is sent to the playback source device; after the playback source device stops uploading audio signals to the headphone device according to the audio stop transmission signal, it is detected that the headphone device is placed on the charging bracket for charging, and the charging signal of the headphone device is uploaded to the playback source device, so that the playback source device switches the transmission link of the audio signal from the headphone device to the speaker device according to the charging signal.
[0130] and / or,
[0131] When the charging stand is charging the headphone device, the audio signal sent by the playback source device is played; wherein the headphone device is used to, in response to a headphone removal signal, send an audio stop transmission signal to the playback source device, detect that the headphone device is placed on the charging stand for charging after the playback source device stops uploading the audio signal, and upload the charging signal of the headphone device to the playback source device; the playback source device is used to stop uploading the audio signal to the headphone device according to the audio stop transmission signal; and, according to the charging signal, switch the transmission link of the audio signal from the headphone device to the speaker device
[0132] The computer program code for performing the operation of the embodiment of the present application can be written in one or more programming languages or a combination thereof, and the above-mentioned programming languages include object-oriented programming languages, such as Java, Smalltalk, C++, and also include conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on the remote computer, or completely on the remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (e.g., using an Internet service provider to connect through the Internet).
[0133] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0134] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0135] The readable storage medium provided in the embodiment of the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned driving assistance method, and can improve the switching efficiency of audio playback to enhance user experience. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in the embodiment of the present application are the same as the beneficial effects of the driving assistance method provided in the above-mentioned embodiment, and will not be repeated here.
[0136] 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 system 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 system. 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 system including the element.
[0137] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0138] 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 this 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 software product, which is stored in a computer-readable storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for enabling an audio playback switching device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0139] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A method for switching audio playback, It is characterized in that The audio playback switching method is applied to a headphone device, wherein the headphone device and a speaker device are respectively connected to a playback source device for communication, and the speaker device is provided with a charging stand for placing the headphone device; The audio playback switching method comprises: In response to a headphone removal signal, sending an audio transmission stop signal to the playback source device; After the playback source device stops uploading audio signals to the headphone device in accordance with the audio stop transmission signal, it is detected that the headphone device is placed on the charging bracket for charging, and the charging signal of the headphone device is uploaded to the playback source device, so that the playback source device switches the transmission link of the audio signal from the headphone device to the speaker device in accordance with the charging signal.
2. The audio playback switching method as claimed in claim 1, It is characterized in that A capacitive sensor and a photosensitive sensor are arranged inside the earmuff of the earphone device. Before the step of responding to the earphone removal signal, the audio playback switching method further includes: After the earmuff contacts the body surface of the wearer, obtaining the actual ambient light intensity collected by the light sensor and the initial capacitance signal collected by the capacitance sensor; When the actual ambient light intensity matches the preset unworn light intensity threshold, a plurality of actual capacitance signals collected by the capacitance sensor within a preset monitoring time are averaged to obtain a capacitance average signal; A capacitance difference between the initial capacitance signal and the capacitance mean signal is calculated, and a wearing detection result is determined according to the capacitance difference.
3. The audio playback switching method as claimed in claim 2, It is characterized in that The step of determining the wearing detection result according to the capacitance difference comprises: Detecting whether the capacitance difference is within a preset removal threshold range; If the capacitance difference is not within the removal threshold range, determining that the wearing detection result is that the earphone device is in a wearing state; If the capacitance difference is within the removal threshold range, it is determined that the wearing detection result is that the headphone device is in a not-worn state, and the headphone removal signal is generated according to the not-worn state.
4. A method for switching audio playback, It is characterized in that The audio playback switching method is applied to a speaker device, wherein the speaker device and the headphone device are respectively connected to a playback source device for communication, and the speaker device is provided with a charging bracket for placing the headphone device; When the charging bracket charges the headphone device, the audio signal sent by the playback source device is played; wherein, The headphone device is used to, in response to a headphone removal signal, send an audio transmission stop signal to the playback source device, detect that the headphone device is placed on the charging bracket for charging after the playback source device stops uploading the audio signal, and upload the charging signal of the headphone device to the playback source device; The playback source device is used to stop uploading the audio signal to the headphone device according to the audio stop transmission signal; and to switch the transmission link of the audio signal from the headphone device to the speaker device according to the charging signal.
5. The audio playback switching method as claimed in claim 4, It is characterized in that After the step of playing the audio signal sent by the playback source device, the audio playback switching method further includes: Sending a power supply signal to the headphone device; If the power feedback signal of the power supply signal sent by the headphone device is not received within the preset response time, it is determined that the headphone device is detached from the charging bracket, triggering the speaker device to send a speaker pause playback instruction to the playback source device; wherein, The playback source device is used to switch the transmission link of the audio signal from the speaker device to the headphone device according to the charging completion signal sent by the headphone device after stopping uploading the audio signal to the headphone device according to the speaker pause playback instruction.
6. An audio playback switching system, It is characterized in that The audio playback switching system at least includes an earphone device, a speaker device and a playback source device, wherein the earphone device and the speaker device are respectively connected to the playback source device for communication, and the speaker device is provided with a charging bracket for placing the earphone device; The headphone device is used to, in response to a headphone removal signal, send an audio transmission stop signal to the playback source device, detect that the headphone device is placed on the charging bracket for charging after the playback source device stops uploading the audio signal, and upload the charging signal of the headphone device to the playback source device; The playback source device is used to stop uploading the audio signal to the headphone device according to the audio stop transmission signal; and switch the transmission link of the audio signal from the headphone device to the speaker device according to the charging signal; The speaker device is used to play the audio signal sent by the playback source device when the charging bracket charges the headphone device.
7. The audio playback switching system as claimed in claim 6, It is characterized in that The headset device at least includes a headset speaker, a headset microphone, an audio codec, an audio signal interface, a headset audio processing chip, a main controller, a wireless charging receiving chip, a charging management chip, a battery and a headset wireless connection chip; The audio codec is electrically connected to the headphone microphone, the headphone speaker, the audio signal interface and the headphone audio processing chip respectively, the headphone microphone is electrically connected to the headphone speaker, the main controller is electrically connected to the headphone audio processing chip, the wireless charging receiving chip, the charging management chip and the headphone-end wireless connection chip respectively, the headphone audio processing chip is electrically connected to the headphone-end wireless connection chip, and the wireless charging receiving chip is electrically connected to the battery through the charging management chip.
8. The audio playback switching system as claimed in claim 6, It is characterized in that The speaker device at least includes a speaker, a microphone array, an amplifier module, a speaker audio processing chip, a system chip, a speaker wireless communication module, a power management chip, a wireless charging transmitter chip and a DC power interface; The speaker audio processing chip is electrically connected to the amplifier module, the microphone array, the speaker wireless communication module and the system chip respectively, and the amplifier module is electrically connected to the speaker; The speaker wireless communication module and the wireless charging transmitter chip are electrically connected to the system chip respectively, and the DC power interface is electrically connected to the wireless charging transmitter chip through the power management chip.
9. An audio playback switching device, It is characterized in that The audio playback switching device includes a memory, a processor, and an audio playback switching program stored in the memory and executable on the processor. When the processor executes the audio playback switching program, the steps of the audio playback switching method as described in any one of claims 1 to 3 and / or claims 4 to 5 are implemented.
10. A storage medium, wherein the storage medium is a computer-readable storage medium, It is characterized in that The computer-readable storage medium stores an audio playback switching program, and when the audio playback switching program is executed by the processor, the steps of the audio playback switching method as claimed in any one of claims 1 to 3 and / or claims 4 to 5 are implemented.
