Audio transmission method, device, system and equipment and computer readable storage medium
By adding mode switching buttons in the charging box, the charging box is used to control the audio transmission between the main earphones and the slave earphones, the connection problem of TWS earphones on terminal devices without Bluetooth module is solved, and convenient audio transmission is achieved and user experience is improved.
Patent Information
- Application Number
- CN202510558728.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-29
- Publication Date
- 2025-08-08
AI Technical Summary
In the prior art, when a TWS headset user uses a terminal device that does not have a Bluetooth module, he needs to connect through a Bluetooth adapter, but this process is cumbersome and the adapter is easily lost, affecting the user experience.
By adding mode switching buttons in the charging box, the charging box is used as an audio transmission channel between the terminal device and the main earphone, and the audio transmission between the main earphone and the slave earphone is controlled, so as to realize the audio connection between the wireless earphone and the terminal device without the Bluetooth module.
The audio connection between wireless headphones and terminal devices without Bluetooth modules can be achieved without a Bluetooth adapter, saving costs, avoiding the problem of easy loss of the adapter and improving the user experience.
Smart Images

Figure CN120455887A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of earphone technology, and in particular to an audio transmission method, apparatus, system, device, and computer-readable storage medium. Background Art
[0002] With the popularity of TWS (True Wireless Stereo) headphones, fewer and fewer users choose to use wired headphones to connect to terminal devices. Taking computers as an example, due to the long replacement cycle of computers, many users still use computers without Bluetooth modules, and not all newly produced computers have Bluetooth modules. Therefore, users who are accustomed to using TWS headphones often encounter situations such as not having prepared wired headphones or not being used to using wired headphones when using these computers.
[0003] To this end, the solution in the related art is to connect the computer through a Bluetooth adapter, so that the computer without a Bluetooth module can connect to the Bluetooth headset, but the connection process of this Bluetooth adapter is more complicated, and its size is small and easy to lose, which is not convenient for daily use. Summary of the Invention
[0004] The main purpose of this application is to provide an audio transmission method, apparatus, system, device and computer-readable storage medium, aiming to solve the technical problem of how to more conveniently achieve audio connection between wireless headphones and terminal devices that do not have a Bluetooth module.
[0005] To achieve the above objectives, the present application provides an audio transmission method, which is applied to a charging box, the charging box including a mode switching button, and the audio transmission method includes:
[0006] When detecting that the headset is connected to the terminal device and the mode switch button is in a specified state, obtaining the headset in-box state;
[0007] When the earphone in the box state is the binaural earphone in the box, sending a switching instruction to the master earphone to switch the working mode of the master earphone;
[0008] In response to a confirmation signal replied by the primary earphone based on the switching instruction, enumerate itself as an earphone device that can be recognized by the terminal device;
[0009] When it is detected that the slave earphone is in an unboxed state, the audio signal from the terminal device is transmitted to the slave earphone through the master earphone, and the sound signal transmitted by the slave earphone via the master earphone is transmitted to the terminal device.
[0010] In addition, to achieve the above-mentioned purpose, the present application also provides an audio transmission method, which is applied to a master earphone, comprising:
[0011] In response to a switching instruction from the charging box, a confirmation signal is sent to the charging box, a notification message is sent to the slave earphone, and a binaural transmission connection is established with the slave earphone;
[0012] When it is detected that the slave earphone is in an out-of-box state, the audio signal output by the terminal device via the charging box is transmitted to the slave earphone, and the sound signal from the slave earphone is transmitted to the terminal device via the charging box.
[0013] In addition, to achieve the above-mentioned purpose, the present application also provides an audio transmission method, which is applied to a slave earphone, comprising:
[0014] In response to a notification message from the master earphone, establishing a binaural communication connection with the master earphone;
[0015] When it is detected that it is in the out-of-box state, it receives the audio signal from the terminal device transmitted via the main earphone and the charging box, and sends the collected sound signal to the terminal device through the main earphone and the charging box.
[0016] In addition, to achieve the above-mentioned purpose, the present application also provides an audio transmission device, which is applied to a charging box, the charging box includes a mode switching button, and the audio transmission device includes:
[0017] an acquisition module, configured to acquire a headset in-box status when detecting that the headset is connected to a terminal device and the mode switching button is in a specified state;
[0018] a notification module, configured to, when the earphone-in-box state is that both earphones are in the box, send a switching instruction to the master earphone to switch the working mode of the master earphone;
[0019] a first processing module, configured to, in response to a confirmation signal replied by the primary earphone based on the switching instruction, enumerate itself as an earphone device identifiable by the terminal device;
[0020] The first transmission module is used to transmit the audio signal from the terminal device to the slave earphone through the master earphone when it is detected that the slave earphone is in an out-of-box state, and transmit the sound signal transmitted by the slave earphone via the master earphone to the terminal device.
[0021] In addition, to achieve the above-mentioned purpose, the present application further provides an audio transmission device, which is applied to a primary earphone and includes:
[0022] a second processing module, configured to, in response to a switching instruction from the charging box, reply a confirmation signal to the charging box, send a notification message to the slave earphone, and establish a binaural transmission connection with the slave earphone;
[0023] The second transmission module is used to transmit the audio signal output by the terminal device via the charging box to the slave earphone when it is detected that the slave earphone is in an out-of-box state, and transmit the sound signal from the slave earphone to the terminal device via the charging box.
[0024] In addition, to achieve the above-mentioned purpose, the present application further provides an audio transmission device, which is applied to a slave earphone, comprising:
[0025] a third processing module, configured to establish a binaural communication connection with the master earphone in response to notification information from the master earphone;
[0026] The third transmission module is used to receive the audio signal from the terminal device via the main ear earphone and the charging box when it detects that the third transmission module is in the out-of-box state, and send the collected sound signal to the terminal device through the main ear earphone and the charging box.
[0027] In addition, to achieve the above-mentioned purpose, the present application also provides an audio transmission system, which includes a charging box, a master earphone and a slave earphone, wherein:
[0028] The charging box is used to obtain the earphone in-box status when detecting that the charging box is connected to the terminal device and the mode switching button is in a specified state;
[0029] The charging box is further configured to, when the earphones are in the box as both earphones are in the box, send a switching instruction to the primary earphone to switch the working mode of the primary earphone;
[0030] The master earphone is used to, in response to a switching instruction from the charging box, reply a confirmation signal to the charging box, send notification information to the slave earphone, and establish a binaural transmission connection with the slave earphone;
[0031] The slave earphone is used to establish a binaural communication connection with the master earphone in response to the notification information from the master earphone;
[0032] The charging box is further configured to, in response to a confirmation signal replied by the primary earphone based on the switching instruction, enumerate itself as an earphone device that can be identified by the terminal device;
[0033] The charging box is further configured to, when detecting that the slave earphone is in an unpacked state, transmit the audio signal from the terminal device to the slave earphone through the master earphone, and transmit the sound signal transmitted by the slave earphone via the master earphone to the terminal device;
[0034] The master earphone is further configured to, when detecting that the slave earphone is in an unpacked state, transmit the audio signal output by the terminal device via the charging box to the slave earphone, and transmit the sound signal from the slave earphone to the terminal device via the charging box;
[0035] The slave earphone is also used to, when it detects that it is in an out-of-box state, receive audio signals from the terminal device transmitted via the master earphone and the charging box, and send the collected sound signals to the terminal device through the master earphone and the charging box.
[0036] In addition, to achieve the above-mentioned purpose, the present application also provides an audio transmission device, which includes the audio transmission system as described above.
[0037] In addition, to achieve the above-mentioned purpose, the present application also provides an audio transmission device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the audio transmission method described above.
[0038] In addition, to achieve the above-mentioned purpose, the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the audio transmission method described above is implemented.
[0039] The present application proposes an audio transmission method, apparatus, system, device and computer-readable storage medium. In the audio transmission method, the charging box is first used as an audio transmission channel between the terminal device and the master earphone, and then the master earphone is controlled by the charging box, so that the master earphone serves as the audio transmission channel between the charging box and the slave earphone. Furthermore, without the need to configure a Bluetooth adapter, the terminal device without a Bluetooth module can be used with a wireless headset consisting of a charging box, a master earphone and a slave earphone, saving the cost of purchasing wired headphones or Bluetooth adapters. It not only avoids the problem of users being unaccustomed to using wired headphones, but also avoids the problem of users worrying about the small size and easy loss of Bluetooth adapters, greatly improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only part of the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0041] Figure 1 A flowchart of an audio transmission method provided in an embodiment of the present application;
[0042] Figure 2 A schematic diagram of a data interaction process for controlling earphone pairing in a normal mode for a charging box involved in an audio transmission method provided in an embodiment of the present application;
[0043] Figure 3 A schematic diagram of a scenario in which a binaural headset and a mobile phone perform signal transmission in an audio transmission method provided in an embodiment of the present application;
[0044] Figure 4 A logical diagram of charging box mode switching involved in an audio transmission method provided in an embodiment of the present application;
[0045] Figure 5 A schematic diagram of a charging box workflow involved in an audio transmission method provided in an embodiment of the present application;
[0046] Figure 6 A flowchart of another audio transmission method provided in an embodiment of the present application;
[0047] Figure 7 A flowchart of another audio transmission method provided in an embodiment of the present application;
[0048] Figure 8 A schematic diagram of a data interaction process between a master earphone and a slave earphone involved in an audio transmission method provided in an embodiment of the present application;
[0049] Figure 9 A schematic diagram of the structure of an audio transmission system provided in an embodiment of the present application;
[0050] Figure 10 A schematic diagram of an application scenario involved in an audio transmission system provided in an embodiment of the present application;
[0051] Figure 11 A schematic structural diagram of an audio transmission device provided in an embodiment of the present application;
[0052] Figure 12 A schematic structural diagram of another audio transmission device provided in an embodiment of the present application;
[0053] Figure 13 A schematic structural diagram of another audio transmission device provided in an embodiment of the present application;
[0054] Figure 14 A schematic diagram of the structure of an audio transmission device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0055] In the following description, specific details such as specific system structures and technologies are provided for illustration rather than limitation to facilitate a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the embodiments of the present application can also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the embodiments of the present application.
[0056] TWS (True Wireless Stereo) Bluetooth earphones have experienced rapid growth in recent years, becoming a new hotspot in the headphone market. These earphones consist of two separate earbuds that synchronize wirelessly via Bluetooth, delivering a stereo experience for listening to music and making calls. TWS earphones require a charging case, which not only stores the earbuds but also charges them.
[0057] With the popularity of TWS earphones, fewer and fewer users choose to use wired earphones to connect to terminal devices. Taking computers as an example, due to the long replacement cycle of computers, many users still use computers without Bluetooth modules. Moreover, not all newly produced computers have Bluetooth modules. Therefore, users who are accustomed to using TWS earphones often encounter situations such as not having wired earphones prepared or not being used to using wired earphones when using these computers.
[0058] To this end, the solution in the related art is to connect the computer through a Bluetooth adapter, so that the computer without a Bluetooth module can connect to the Bluetooth headset, but the connection process of this Bluetooth adapter is more complicated, and its size is small and easy to lose, which is not convenient for daily use.
[0059] Based on this, the embodiments of the present application provide an audio transmission method, apparatus, system, device and computer-readable storage medium. In the audio transmission method, the charging box is first used as an audio transmission channel between the terminal device and the master earphone, and then the master earphone is controlled by the charging box, so that the master earphone serves as the audio transmission channel between the charging box and the slave earphone. Furthermore, without the need to configure a Bluetooth adapter, the terminal device that does not have a Bluetooth module can be used with a wireless headset consisting of a charging box, a master earphone and a slave earphone, saving the cost of purchasing wired headphones or Bluetooth adapters. It not only avoids the problem of users not being accustomed to using wired headphones, but also avoids the problem of users worrying about the small size and easy loss of Bluetooth adapters, greatly improving the user experience.
[0060] The audio transmission method, apparatus, system, device, and computer-readable storage medium provided in the embodiments of the present application are specifically illustrated through the following embodiments. First, the audio transmission method in the embodiments of the present application is described.
[0061] The present application embodiment provides an audio transmission method, referring to Figure 1 , Figure 1 A flowchart of an audio transmission method provided in an embodiment of the present application is provided. The audio transmission method can be applied to a charging box, which includes a mode switching button, such as Figure 1 As shown, the audio transmission method provided in this embodiment includes steps S10 to S40.
[0062] In this embodiment, the charging box has some differences in hardware structure compared to the conventional wireless earphone charging box. In other words, in addition to the conventional single button (such as the pairing button), a Switch button (i.e., a mode switching button) is also provided. By pressing the mode switching button, the charging box can be switched between the normal mode and the audio mode.
[0063] Among them, in normal mode, if the master earphone and the slave earphone are both placed in the charging box, the user can pair the master earphone with the slave earphone by pressing and holding the pairing button for a certain period of time. The specific process can be combined with Figure 2To understand, the charging box sends a read Bluetooth address instruction to the master earphone and the slave earphone respectively, the master earphone and the slave earphone return their own Bluetooth addresses to the charging box respectively, the charging box sends the slave ear Bluetooth address to the master earphone, the master earphone returns ACK (confirmation signal) to the charging box after receiving the slave ear Bluetooth address, the charging box sends the master ear Bluetooth address to the slave earphone, the slave earphone returns ACK to the charging box, the charging box initiates a master-slave pairing instruction to the master earphone, the master earphone initiates a pairing request to the slave earphone after returning ACK to the charging box, the slave earphone responds to the pairing request of the master earphone, so far, the master earphone and the slave earphone are paired. The earphones complete binaural pairing, and periodic data exchange can be performed between the two. The earphones can be paired with a mobile phone (taking a mobile phone as an example, it can also be other electronic devices with a Bluetooth module, which is not limited in this embodiment). After successful pairing with the mobile phone, the current common Bluetooth connection is generally a Bluetooth connection between the master earphone and the mobile phone, and the slave earphone monitors according to the connection key between the master earphone and the mobile phone, thereby achieving that both the master earphone and the slave earphone can obtain audio from the mobile phone, but only the sound collected by the MIC (microphone) of the master earphone can be transmitted to the mobile phone. At this time, the signal transmission diagram of the binaural earphone and the mobile phone is as shown Figure 3 shown.
[0064] Step S10, when detecting that the headset is connected to the terminal device and the mode switch button is in a specified state, obtaining the headset in-box state;
[0065] In this embodiment, the working mode switching condition of the charging box can be combined with Figure 4 To understand, by Figure 4 It can be seen that the conditions for switching the charging box from normal mode to audio mode include: connecting the charging box to the terminal device via USB (Universal Serial Bus) (it can also be connected through other wired connection methods as long as data transmission is supported, and this embodiment is not limited to this), pushing the mode switch button to the ON state, and detecting that the dual-ear headphones are in the box.
[0066] It is understandable that the charging box will dynamically detect whether it is connected to the terminal device in the idle working state, and will also dynamically obtain the status of the mode switching button. When it detects that it is connected to the terminal device and the mode switching button is in the specified state, it will further obtain the earphone in-box status to determine whether the user wants the charging box to switch the working mode.
[0067] Step S20: When the earphone in box state is that both earphones are in the box, a switching instruction is sent to the master earphone to switch the working mode of the master earphone;
[0068] In this embodiment, when all the above conditions are met and the working mode of the charging box has been switched from normal mode to audio mode, the charging box will send a switching instruction to the main ear earphone in the box, so that the main ear earphone knows that the charging box has switched to audio mode, thereby enabling the main ear earphone to cooperate with the charging box to switch to the working mode corresponding to the audio mode.
[0069] In this embodiment, the two working modes of the headset are respectively referred to as normal pairing mode and conference call mode, where the normal pairing mode corresponds to the normal mode of the charging box, and the conference call mode corresponds to the audio mode of the charging box. The purpose of the switching instruction is to enable the main ear headset to switch the working mode from the normal pairing mode to the conference call mode.
[0070] Step S30, in response to the confirmation signal replied by the master earphone based on the switching instruction, enumerate itself as an earphone device that can be recognized by the terminal device;
[0071] In this embodiment, after the charging box receives the confirmation signal fed back by the main earphone, it can enumerate itself as an earphone device that can be recognized by the terminal device by starting the USB enumeration function, so that the terminal device can use the charging box as a earphone device.
[0072] Step S40: When it is detected that the slave earphone is in an unboxed state, the audio signal from the terminal device is transmitted to the slave earphone through the master earphone, and the sound signal transmitted by the slave earphone via the master earphone is transmitted to the terminal device.
[0073] In this embodiment, since the charging box itself does not have a microphone and a speaker, although the charging box enumerates itself as a headphone device, in fact, the charging box serves as an audio transmission channel between the terminal device and the headphone. When it is detected that the slave earphone is out of the box, the charging box can transmit the audio signal from the terminal device to the master earphone in the box, and then the master earphone transmits the audio signal to the slave earphone that is out of the box and can be worn by the user through binaural transmission. Similarly, the sound signal collected by the slave earphone through the microphone will also be transmitted to the master earphone first, and then transmitted from the master earphone to the charging box, and the charging box will transmit the sound signal to the terminal device. At this point, audio transmission between the slave earphone and the terminal device can be realized. Even if the terminal device does not have Bluetooth mode, the user can also interact with the terminal device through audio by wearing the slave earphone.
[0074] As an example, see Figure 5 , Figure 5 An example of a workflow of the charging box in steps S10 to S40 is shown. Figure 5It can be seen that the charging box is in an idle working state after initialization. At this time, the charging box will dynamically detect whether there is a USB connection. If there is no USB connection, it will return to the idle working state and continue to detect. If there is a USB connection, the USB connection flag will be set to 1, and the mode switch button status will be obtained to determine whether it is in the ON state. If it is not in the ON state, continue to obtain the mode switch button status. If it is in the ON state, obtain the master ear and slave earphone in the box status to determine whether both earphones are in the box. If not, continue to obtain the master ear and slave earphone in the box status. If so, send a command to notify the master earphone and determine whether the earphone ACK is received. If not, continue to send a command to notify the master earphone. If it has been received, enumerate itself as a headphone device, and then open the uplink data link and the downlink data link. At this point, the charging box can be used as an audio transmission channel between the terminal device and the earphone for signal transmission.
[0075] In this embodiment, the charging box can serve as an audio transmission channel between the terminal device and the master earphone. The master earphone is controlled by the charging box, so that the master earphone serves as the audio transmission channel between the charging box and the slave earphone. Furthermore, without the need to configure a Bluetooth adapter, the terminal device that does not have a Bluetooth module can be used with the wireless earphones consisting of the charging box, the master earphone and the slave earphone, saving the cost of purchasing wired earphones or Bluetooth adapters. It not only avoids the problem of users being unaccustomed to using wired earphones, but also avoids the problem of users worrying about the small size and easy loss of the Bluetooth adapter, greatly improving the user experience.
[0076] In addition, the present application also proposes an audio transmission method, referring to Figure 6 , Figure 6 This is a flow chart of another audio transmission method provided in an embodiment of the present application. The audio transmission method can be applied to a main earphone, such as Figure 6 As shown, the audio transmission method provided in this embodiment includes steps S31 to S41.
[0077] Step S31: In response to the switching instruction from the charging box, a confirmation signal is sent to the charging box, a notification message is sent to the slave earphone, and a binaural transmission connection is established with the slave earphone;
[0078] In this embodiment, the master earphone will respond to the switching instruction of the charging box and reply a corresponding confirmation signal to the charging box, while notifying the slave earphone that the working mode needs to be switched and establishing a binaural transmission connection with the slave earphone.
[0079] As an example, when the master earphone switches the working mode, the master earphone will also determine whether it is currently connected to the mobile phone. If it is currently connected to the mobile phone, the master earphone will also notify the slave earphone to restart the Bluetooth activity to disconnect from the mobile phone, and after the Bluetooth activity is restarted, establish a binaural transmission connection with the slave earphone.
[0080] Step S41, when it is detected that the slave earphone is in an out-of-box state, the audio signal output by the terminal device via the charging box is transmitted to the slave earphone, and the sound signal from the slave earphone is transmitted to the terminal device via the charging box.
[0081] In this embodiment, after the slave earphone is taken out of the charging box, the master earphone is in the charging box and works as an audio transmission channel between the charging box and the slave earphone. It is responsible for sending the audio signal from the terminal device transmitted through the charging box to the slave earphone, and transmitting the sound signal from the slave earphone collected by the slave earphone MIC to the terminal device through the charging box.
[0082] The audio transmission method applied to the main earphone provided in this embodiment and the audio transmission method applied to the charging box provided in the above embodiment belong to the same technical concept. Technical details not fully described in this embodiment can be referred to any of the above embodiments, and this embodiment has the same beneficial effects as executing the above-mentioned audio transmission method applied to the charging box.
[0083] In addition, the present application also proposes an audio transmission method, referring to Figure 7 , Figure 7 This is a flow chart of another audio transmission method provided in an embodiment of the present application. The audio transmission method can be applied to earphones, such as Figure 7 As shown, the audio transmission method provided in this embodiment includes steps S32 to S42.
[0084] Step S32, in response to the notification information from the master earphone, establishing a binaural communication connection with the master earphone;
[0085] In this embodiment, the slave earphone will respond to the notification information of the master earphone to switch the working mode and establish a binaural transmission connection with the master earphone.
[0086] Step S42, when it is detected that it is in the out-of-box state, it receives the audio signal from the terminal device transmitted via the main earphone and the charging box, and sends the collected sound signal to the terminal device through the main earphone and the charging box.
[0087] In this embodiment, the slave earphone is outside the charging box and is worn in the ear of the user. It is responsible for receiving the audio signal from the master earphone originating from the terminal device, and transmitting the sound signal collected by its own MIC to the terminal device through the master earphone and the charging box.
[0088] The audio transmission method for the slave earphone provided in this embodiment and the audio transmission method for the charging box or the master earphone provided in the above embodiment belong to the same technical concept. The technical details not described in detail in this embodiment can be referred to any of the above embodiments, and this embodiment has the same beneficial effects as executing the above-mentioned audio transmission method for the charging box or the master earphone.
[0089] As an example, the overall process of the above-mentioned audio transmission method applied to the master earphone and the audio transmission method applied to the slave earphone can be combined Figure 8 To understand, such as Figure 8 As shown, the master earphone and the slave earphone start working in the normal pairing mode and perform periodic data exchange. The master earphone will continuously detect whether it has received the switching instruction from the charging box. If not, it will continue to work in the normal pairing mode. If received, it will reply ACK to the charging box and synchronize the message with the slave ear. The slave earphone also synchronizes the message with the master ear. After the two restart the Bluetooth activity, a binaural transmission connection is established and data is exchanged in the binaural transmission mode. By continuously detecting whether the slave earphone is out of the box, it can be determined when the two enter the conference call mode.
[0090] In addition, the present application also proposes an audio transmission system, referring to Figure 9 The audio transmission system includes a charging box, a master earphone and a slave earphone. The charging box includes a mode switching button, wherein:
[0091] The charging box is used to obtain the earphone in-box status when it detects that it is connected to the terminal device and the mode switch button is in a specified state;
[0092] The charging box is further configured to, when the earphones are in the box, send a switching instruction to the primary earphone to switch the working mode of the primary earphone;
[0093] The master earphone is used to respond to the switching instruction from the charging box, reply a confirmation signal to the charging box, send a notification message to the slave earphone, and establish a binaural transmission connection with the slave earphone;
[0094] The slave earphone is used to establish a binaural communication connection with the master earphone in response to the notification information from the master earphone;
[0095] The charging box is further configured to, in response to a confirmation signal sent by the primary earphone based on the switching instruction, enumerate itself as an earphone device that can be identified by the terminal device;
[0096] The charging box is further configured to, when detecting that the slave earphone is in an unpacked state, transmit the audio signal from the terminal device to the slave earphone through the master earphone, and transmit the sound signal transmitted by the slave earphone via the master earphone to the terminal device;
[0097] The master earphone is further configured to, when detecting that the slave earphone is in an out-of-box state, transmit the audio signal output by the terminal device via the charging box to the slave earphone, and transmit the sound signal from the slave earphone to the terminal device via the charging box;
[0098] The slave earphone is also used to receive audio signals from the terminal device transmitted via the master earphone and the charging box when it detects that it is in the out-of-box state, and send the collected sound signals to the terminal device through the master earphone and the charging box.
[0099] In this embodiment, the charging box, the master earphone and the slave earphone together constitute an audio transmission system that can be used with a terminal device that does not have a Bluetooth module. The connection between the charging box and the terminal device is a USB cable wired connection, the connection between the charging box and the master earphone is a Pin and Pad connection, and the connection between the master earphone and the slave earphone is a Bluetooth wireless connection. After the terminal device audio signal is output from the terminal device, it passes through the charging box and the master earphone in turn to reach the slave earphone. After the earphone MIC collects the signal and outputs it through the slave earphone, it passes through the master earphone and the charging box in turn to reach the terminal device.
[0100] The audio transmission system provided in this embodiment and the audio transmission method provided in the above embodiment belong to the same technical concept. Technical details not fully described in this embodiment can be referred to any of the above embodiments, and this embodiment has the same beneficial effects as executing the audio transmission method.
[0101] In addition, the present application also provides an audio transmission device, referring to Figure 11 , Figure 11 A schematic diagram of the structure of an audio transmission device provided in an embodiment of the present application is shown in FIG. Figure 11 As shown, in this embodiment, the audio transmission device is applied to a charging box, the charging box includes a mode switching button, and the audio transmission device includes: an acquisition module 10, a notification module 20, a first processing module 30 and a first transmission module 40.
[0102] The acquisition module 10 is used to obtain the earphone in-box status when detecting that the earphone is connected to the terminal device and the mode switch button is in a specified state;
[0103] The notification module 20 is configured to, when the earphone in box state is that both earphones are in box, send a switching instruction to the master earphone to switch the working mode of the master earphone;
[0104] The first processing module 30 is configured to, in response to a confirmation signal replied by the primary earphone based on the switching instruction, enumerate itself as an earphone device that can be identified by the terminal device;
[0105] The first transmission module 40 is used to transmit the audio signal from the terminal device to the slave earphone through the master earphone when it is detected that the slave earphone is in an unboxed state, and transmit the sound signal transmitted by the slave earphone via the master earphone to the terminal device.
[0106] The audio transmission device applied to the charging box provided in this embodiment and the audio transmission method applied to the charging box provided in the above embodiment belong to the same technical concept. The technical details not fully described in this embodiment can be referred to any of the above embodiments, and this embodiment has the same beneficial effects as executing the audio transmission method applied to the charging box.
[0107] In addition, the present application also provides an audio transmission device, referring to Figure 12 , Figure 12 A structural diagram of another audio transmission device provided in an embodiment of the present application is shown as follows: Figure 12 As shown, in this embodiment, the audio transmission device is applied to a master earphone, and the audio transmission device includes: a second processing module 31 and a second transmission module 41.
[0108] The second processing module 31 is configured to respond to a switching instruction from the charging box, reply a confirmation signal to the charging box, send a notification message to the slave earphone, and establish a binaural transmission connection with the slave earphone;
[0109] The second transmission module 41 is used to transmit the audio signal output by the terminal device via the charging box to the slave earphone when it is detected that the slave earphone is in an out-of-box state, and to transmit the sound signal from the slave earphone to the terminal device via the charging box.
[0110] The audio transmission device for the main ear earphone provided in this embodiment and the audio transmission method for the main ear earphone provided in the above embodiment belong to the same technical concept. Technical details not described in detail in this embodiment can be referred to any of the above embodiments, and this embodiment has the same beneficial effects as executing the audio transmission method for the main ear earphone.
[0111] In addition, the present application also provides an audio transmission device, referring to Figure 13 , Figure 13 A structural diagram of another audio transmission device provided in an embodiment of the present application is shown as follows: Figure 13 As shown, in this embodiment, the audio transmission device is applied to a slave earphone, and the audio transmission device includes: a third processing module 32 and a third transmission module 42.
[0112] The third processing module 32 is configured to establish a binaural communication connection with the master earphone in response to the notification information from the master earphone;
[0113] The third transmission module 42 is used to receive the audio signal from the terminal device transmitted through the main ear earphone and the charging box when it detects that it is in the out-of-box state, and send the collected sound signal to the terminal device through the main ear earphone and the charging box.
[0114] The audio transmission device for the slave earphone provided in this embodiment and the audio transmission method for the slave earphone provided in the above embodiment belong to the same technical concept. Technical details not described in detail in this embodiment can be referred to any of the above embodiments, and this embodiment has the same beneficial effects as executing the audio transmission method for the slave earphone.
[0115] In addition, an embodiment of the present application also provides an audio transmission device, which may include the audio transmission system provided by the above embodiment, and the audio transmission device may also include: 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 at least one processor, and the instructions are executed by at least one processor so that the at least one processor can execute the audio transmission method in any of the above embodiments.
[0116] The audio transmission device in the embodiment of the present application can be a charging box, a master earphone, a slave earphone, or an earphone device composed of a charging box, a master earphone, and a slave earphone.
[0117] Reference below Figure 14 , which shows a structural diagram of an audio transmission device suitable for implementing an embodiment of the present application. Figure 14 The audio transmission device shown is merely an example and should not limit the functions and scope of use of the embodiments of the present application.
[0118] like Figure 14As shown, the audio transmission device may include a processing device 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes based on programs stored in a read-only memory 1002 or programs loaded from a storage device 1003 into a random access memory 1004. The random access memory 1004 also stores various programs and data required for the operation of the audio transmission device. The processing device 1001, the read-only memory 1002, and the random access memory 1004 are interconnected via a bus 1005. An input / output interface 1006 is also connected to the bus. Typically, the following systems can be connected to the input / output interface 1006: an input device 1007 including, for example, a touch screen, touchpad, keyboard, mouse, image sensor, microphone, accelerometer, gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD), speaker, vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the audio transmission device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows an audio transmission device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have instead.
[0119] In particular, according to the embodiments disclosed in the present application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, the embodiments disclosed in the present application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program comprising 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 via a communication device, or installed from a storage device 1003, or installed from a read-only memory 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 performed.
[0120] The beneficial effects of the audio transmission device provided in this application are the same as the beneficial effects of the audio transmission method provided in the above embodiment, and other technical features in the audio transmission device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0121] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0122] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.
[0123] In addition, an embodiment of the present application also provides a computer-readable storage medium, which can be a non-volatile computer-readable storage medium. A computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the audio transmission method provided in any of the above embodiments is implemented.
[0124] The computer-readable storage medium provided in this application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems or devices, or any combination thereof. 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), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution 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), etc., or any suitable combination thereof.
[0125] The computer-readable storage medium may be included in the audio transmission device, or may exist independently without being assembled into the audio transmission device.
[0126] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the audio transmission device, the audio transmission device implements the audio transmission method.
[0127] Computer program code for performing the operations of the present application may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on the remote computer or server. In cases involving a remote computer, the remote computer may 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 may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0128] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, program segment or a part of code, and the module, program segment or a part of 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 box can also occur in a different order than that marked in the accompanying drawings. For example, two 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 box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented by a dedicated hardware-based system that performs the specified function or operation, or can be implemented by a combination of dedicated hardware and computer instructions.
[0129] The modules described in the embodiments of the present application may be implemented in software or hardware, wherein the name of a module does not necessarily limit the unit itself.
[0130] The readable storage medium provided in this embodiment is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer program) for executing the above-mentioned audio transmission method. The beneficial effects of the computer-readable storage medium provided in this application are the same as the beneficial effects of the audio transmission method provided in the above-mentioned embodiment, and will not be repeated here.
[0131] In addition, an embodiment of the present application also provides a computer program product, including a computer program, which implements the audio transmission method provided in any of the above embodiments when executed by a processor.
[0132] The computer program product provided in this embodiment and the audio transmission method proposed in the above embodiment belong to the same technical concept. Compared with the relevant technology, the beneficial effects of the computer program product provided in this application are the same as the beneficial effects of the audio transmission method provided in the above embodiment, which will not be repeated here.
[0133] It should be noted that although a logical order is shown in the flowcharts, in some cases, the steps shown or described may be performed in a different order than that shown in the flowcharts. The terms "first," "second," and the like in the specification, claims, and drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.
[0134] It should also be understood that references to "one embodiment" or "some embodiments" in the description of the embodiments of the present application mean that one or more embodiments of the embodiments of the present application include specific features, structures, or characteristics described in conjunction with the embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in other embodiments," etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but rather mean "one or more but not all embodiments," unless otherwise specifically emphasized. The terms "including," "comprising," "having," and their variations all mean "including but not limited to," unless otherwise specifically emphasized.
[0135] The above is a specific description of some implementation methods of the embodiments of the present application, but the embodiments of the present application are not limited to the above implementation methods. Technical personnel familiar with this field can also make various equivalent modifications or substitutions without violating the spirit of the embodiments of the present application. These equivalent modifications or substitutions are all included in the scope defined by the claims of the embodiments of the present application.
Claims
1. An audio transmission method, characterized in that: The audio transmission method is applied to a charging box, the charging box includes a mode switching button, and the audio transmission method includes: When detecting that the headset is connected to the terminal device and the mode switch button is in a specified state, obtaining the headset in-box state; When the earphone in the box state is the binaural earphone in the box, sending a switching instruction to the master earphone to switch the working mode of the master earphone; In response to a confirmation signal replied by the primary earphone based on the switching instruction, enumerate itself as an earphone device that can be recognized by the terminal device; When it is detected that the slave earphone is in an out-of-box state, the audio signal from the terminal device is transmitted to the slave earphone through the master earphone, and the sound signal transmitted by the slave earphone via the master earphone is transmitted to the terminal device.
2. An audio transmission method, characterized in that: The audio transmission method is applied to a master earphone, comprising: In response to a switching instruction from the charging box, a confirmation signal is sent to the charging box, a notification message is sent to the slave earphone, and a binaural transmission connection is established with the slave earphone; When it is detected that the slave earphone is in an out-of-box state, the audio signal output by the terminal device via the charging box is transmitted to the slave earphone, and the sound signal from the slave earphone is transmitted to the terminal device via the charging box.
3. An audio transmission method, characterized in that: The audio transmission method is applied to a slave earphone, comprising: In response to a notification message from the master earphone, establishing a binaural communication connection with the master earphone; When it is detected that it is in the out-of-box state, it receives the audio signal from the terminal device transmitted via the main earphone and the charging box, and sends the collected sound signal to the terminal device through the main earphone and the charging box.
4. An audio transmission device, characterized in that: The audio transmission device is applied to a charging box, the charging box includes a mode switching button, and the audio transmission device includes: an acquisition module, configured to acquire a headset in-box status when detecting that the headset is connected to a terminal device and the mode switching button is in a specified state; a notification module, configured to, when the earphone-in-box state is that both earphones are in the box, send a switching instruction to the master earphone to switch the working mode of the master earphone; a first processing module, configured to, in response to a confirmation signal replied by the primary earphone based on the switching instruction, enumerate itself as an earphone device identifiable by the terminal device; The first transmission module is used to transmit the audio signal from the terminal device to the slave earphone through the master earphone when it is detected that the slave earphone is in an out-of-box state, and transmit the sound signal transmitted by the slave earphone via the master earphone to the terminal device.
5. An audio transmission device, characterized in that: The audio transmission device is applied to a master earphone, and includes: A second processing module, the second processing module being configured to, in response to a switching instruction from the charging box, reply a confirmation signal to the charging box, send a notification message to the slave earphone, and establish a binaural transmission connection with the slave earphone; The second transmission module is used to transmit the audio signal output by the terminal device via the charging box to the slave earphone when it is detected that the slave earphone is in an out-of-box state, and transmit the sound signal from the slave earphone to the terminal device via the charging box.
6. An audio transmission device, characterized in that: The audio transmission device is applied to a slave earphone, and includes: a third processing module, configured to establish a binaural communication connection with the master earphone in response to notification information from the master earphone; The third transmission module is used to receive the audio signal from the terminal device via the main ear earphone and the charging box when it detects that the third transmission module is in the out-of-box state, and send the collected sound signal to the terminal device through the main ear earphone and the charging box.
7. An audio transmission system, characterized in that: The audio transmission system includes a charging box, a master earphone and a slave earphone, and the charging box includes a mode switching button, wherein: The charging box is used to obtain the earphone in-box status when detecting that the charging box is connected to the terminal device and the mode switching button is in a specified state; The charging box is further configured to, when the earphones are in the box as both earphones are in the box, send a switching instruction to the primary earphone to switch the working mode of the primary earphone; The master earphone is used to, in response to a switching instruction from the charging box, reply a confirmation signal to the charging box, send notification information to the slave earphone, and establish a binaural transmission connection with the slave earphone; The slave earphone is used to establish a binaural communication connection with the master earphone in response to the notification information from the master earphone; The charging box is further configured to, in response to a confirmation signal replied by the primary earphone based on the switching instruction, enumerate itself as an earphone device that can be identified by the terminal device; The charging box is further configured to, when detecting that the slave earphone is in an unpacked state, transmit the audio signal from the terminal device to the slave earphone through the master earphone, and transmit the sound signal transmitted by the slave earphone via the master earphone to the terminal device; The master earphone is further configured to, when detecting that the slave earphone is in an unpacked state, transmit the audio signal output by the terminal device via the charging box to the slave earphone, and transmit the sound signal from the slave earphone to the terminal device via the charging box; The slave earphone is also used to, when it detects that it is in an out-of-box state, receive audio signals from the terminal device transmitted via the master earphone and the charging box, and send the collected sound signals to the terminal device through the master earphone and the charging box.
8. An audio transmission device, characterized in that: The audio transmission device comprises the audio transmission system according to claim 7.
9. An audio transmission device, characterized in that: The audio transmission device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the audio transmission method according to claim 1, 2, or 3.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the audio transmission method according to claim 1, 2 or 3 is implemented.