Earphone connection method and device, electronic equipment and storage medium
Directly receiving and transmitting audio information through the private communication protocol between the headphone connector and the headphones, solving the problems of complex wireless headphone connections and low audio transmission efficiency, achieving more efficient and stable headphone connections and better audio quality.
Patent Information
- Application Number
- CN202311589830.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-24
- Publication Date
- 2025-05-27
AI Technical Summary
The process of pairing, connecting, switching between wireless headphones and electronic devices is complicated and cumbersome, resulting in poor user experience and low audio information transmission efficiency, which makes it easy to cause unstable connections and poor audio quality.
Through the private communication protocol between the headset connector and the headset, audio information is directly received and transmitted, the user's manual pairing process is omitted, and audio information is transmitted using a high-bandwidth private communication path.
It improves the ease of use and efficiency of headphone connection, improves the speed and stability of audio information transmission, reduces the connection instability caused by frequent switching of headphones to connect to devices, and thus improves the audio quality of headphones.
Smart Images

Figure CN120050562A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of wireless communication technologies, and in particular, to a method and apparatus for connecting a headset, an electronic device, and a storage medium. Background Art
[0002] Wireless headsets can establish wireless connections with various electronic devices such as mobile phones and computers, and cooperate with the electronic devices to provide functions such as playing music or making / answering calls for users. Due to the portability of wireless headsets, users are becoming more and more fond of wireless headsets. Usually, after the user performs operations such as device pairing and connection on the electronic device and the wireless headset, the user can normally use the wireless headset to listen to music or make a call without a wired headset.
[0003] However, the pairing, connection, switching, etc. between the wireless headset and the electronic device all require the user to perform manual operations and processing through the settings interface, which is relatively complex and cumbersome for some users, resulting in a poor user experience. Therefore, how to improve the connection efficiency and convenience of wireless headsets has become a problem that has received much attention. Summary of the Invention
[0004] The present disclosure provides a method and apparatus for connecting a headset, an electronic device, and a storage medium.
[0005] According to a first aspect of an embodiment of the present disclosure, a method for connecting a headset is provided, which is applied to a headset connector. The method includes:
[0006] Receiving audio information output by an audio output device;
[0007] Based on a private communication protocol between the headset connector and the headset, transmitting the audio information to the headset; wherein, the audio information is used for the headset to output.
[0008] In some embodiments, the transmitting the audio information to the headset based on a private communication protocol between the headset connector and the headset includes:
[0009] Encoding the audio information using a predetermined encoding rule to obtain encoded target audio;
[0010] Based on a private communication protocol between the headset connector and the headset, transmitting the target audio to the headset.
[0011] In some embodiments, the predetermined encoding rule includes lossless encoding;
[0012] The encoding the audio information using a predetermined encoding rule to obtain encoded target audio includes:
[0013] Encoding the audio information using the lossless encoding to obtain at least one lossless audio packet;
[0014] Transmitting the target audio to the headset based on the private communication protocol between the headset connector and the headset, including:
[0015] Transmitting each lossless audio packet to the headset based on the private communication protocol.
[0016] In some embodiments, the predetermined encoding rule includes lossy encoding;
[0017] Encoding the audio information using a predetermined encoding rule to obtain the encoded target audio, including:
[0018] Encoding the audio information using the lossy encoding to obtain at least one lossy audio packet;
[0019] Transmitting the target audio to the headset based on the private communication protocol between the headset connector and the headset, including:
[0020] Transmitting each compressed audio packet to the headset based on the private communication protocol.
[0021] In some embodiments, the private communication protocol is a private communication protocol based on Bluetooth;
[0022] And / or
[0023] Receiving the audio information output by the audio output device, including:
[0024] Receiving the audio information output by the audio output device based on a USB wired connection.
[0025] According to a second aspect of the embodiments of the present disclosure, there is provided a connection method for a headset, which is applied to the headset. The method includes:
[0026] Receiving audio information based on the private communication protocol between the headset connector and the headset; wherein, the audio information is the audio information output by the audio output device received by the headset connector;
[0027] Outputting the audio information.
[0028] In some embodiments, receiving audio information based on the private communication protocol between the headset connector and the headset includes:
[0029] Receive target audio based on a private communication protocol between the headphone connector and the headphone; wherein the target audio includes at least one audio packet, and the audio packet is obtained by the headphone connector encoding the audio information using a predetermined encoding rule.
[0030] In some embodiments, the outputting the audio information includes:
[0031] Decode at least one of the audio packets based on a predetermined decoding rule to obtain the audio to be played after decoding; wherein the predetermined decoding rule is a decoding rule associated with the predetermined encoding rule;
[0032] Output the audio to be played after decoding.
[0033] According to a third aspect of the embodiments of the present disclosure, there is provided a method for connecting a headphone, which is applied to an audio output device, and the method includes:
[0034] Determine the audio information to be played;
[0035] Based on a communication connection with the headphone connector, transmit the audio information to the headphone connector; wherein the audio information is transmitted by the headphone connector to the headphone and output.
[0036] In some embodiments, the transmitting the audio information to the headphone connector based on a communication connection with the headphone connector includes:
[0037] Transmit the audio information to the headphone connector based on a USB wired connection.
[0038] According to a fourth aspect of the embodiments of the present disclosure, there is provided a headphone connection device, which is applied to a headphone connector, and the device includes:
[0039] A first receiving module, configured to receive audio information output by an audio output device;
[0040] A first transmitting module, configured to transmit the audio information to the headphone based on a private communication protocol between the headphone connector and the headphone; wherein the audio information is used for the headphone to output.
[0041] In some embodiments, the first transmitting module is further configured to encode the audio information using a predetermined encoding rule to obtain the encoded target audio; and transmit the target audio to the headphone based on a private communication protocol between the headphone connector and the headphone.
[0042] In some embodiments, the predetermined coding rule includes lossless coding; the first transmission module is further configured to encode the audio information using the lossless coding to obtain at least one lossless audio packet; and transmit each lossless audio packet to the earphone based on the private communication protocol.
[0043] In some embodiments, the predetermined coding rule includes lossy coding; the first transmission module is further configured to encode the audio information using the lossy coding to obtain at least one lossy audio packet; and transmit each compressed audio packet to the earphone based on the private communication protocol.
[0044] In some embodiments, in the first transmission module, the private communication protocol is a private communication protocol based on Bluetooth; and / or, the first receiving module is further configured to receive the audio information output by the audio output device based on a USB wired connection.
[0045] According to a fifth aspect of the embodiments of the present disclosure, there is provided an earphone connection device applied to an earphone. The device includes:
[0046] A second receiving module, configured to receive audio information based on a private communication protocol between the earphone connector and the earphone; wherein the audio information is the audio information output by the audio output device received by the earphone connector.
[0047] A first output module, configured to output the audio information.
[0048] In some embodiments, the second receiving module is further configured to receive target audio based on the private communication protocol between the earphone connector and the earphone; wherein the target audio includes at least one audio packet, and the audio packet is obtained by the earphone connector encoding the audio information using a predetermined coding rule.
[0049] In some embodiments, the first output module is further configured to decode at least one of the audio packets based on a predetermined decoding rule to obtain decoded audio to be played; wherein the predetermined decoding rule is a decoding rule associated with the predetermined coding rule; and output the decoded audio to be played.
[0050] According to a sixth aspect of the embodiments of the present disclosure, there is provided an earphone connection device applied to an audio output device. The device includes:
[0051] A first determination module, configured to determine audio information to be played.
[0052] A second transmission module, configured to transmit the audio information to the earphone connector based on a communication connection with the earphone connector; wherein the audio information is transmitted by the earphone connector to the earphone and output.
[0053] In some embodiments, the second transmission module is further configured to transmit the audio information to the headphone connector based on a USB wired connection.
[0054] According to a seventh aspect of the embodiments of the present disclosure, there is provided an electronic device, including:
[0055] A processor; a memory for storing processor-executable instructions; wherein the processor is configured to execute the method described in the first aspect above; or, is configured to execute the method described in the second aspect above, or, is configured to execute the method described in the third aspect above.
[0056] According to an eighth aspect of the embodiments of the present disclosure, there is provided a storage medium, including:
[0057] When the instructions in the storage medium are executed by a processor of the headphone connector, the headphone connector can execute the method described in the first aspect above; or, when the instructions in the storage medium are executed by a processor of the headphone, the headphone can execute the method described in the second aspect above; or, when the instructions in the storage medium are executed by a processor of the audio output device, the audio output device can execute the method described in the third aspect above.
[0058] The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:
[0059] The headphone connector first receives the audio information of the audio output device, and then transmits the audio information to the headphone by using the private communication protocol between the headphone connector and the headphone. On the one hand, the headphone connector and the headphone can directly communicate based on the private communication protocol, saving the user's own pairing and connection process, and improving the usability of the headphone; on the other hand, the audio information is transmitted between the headphone connector and the headphone based on a private communication path. Since the private communication path has characteristics such as high bandwidth and high code rate, the transmission speed of the audio information is fast, improving the efficiency of audio information transmission between the headphone connector and the headphone; on the other hand, in the case where there are multiple connectable devices in the surrounding environment, based on the private communication protocol between the headphone and the headphone connector, the headphone can preferentially connect to the headphone connector or continuously connect to the headphone connector and communicate based on the private communication protocol. Furthermore, the headphone can preferentially or continuously connect to the audio output device connected to the headphone connector, reducing the occurrence of connection instability caused by the headphone frequently switching connection devices, improving the stability of the connection between the headphone and the audio output device, and thus the audio quality of the headphone is also relatively stable.
[0060] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. Description of the Drawings
[0061] The drawings herein are incorporated into and constitute a part of this specification, showing embodiments consistent with the present disclosure and, together with the specification, are used to explain the principles of the present disclosure.
[0062] Figure 1 It is an example of the flowchart of a method for connecting a headset shown in an embodiment of the present disclosure Figure 1 .
[0063] Figure 2 It is an example diagram of the connection of a headset to various connectable devices shown in an embodiment of the present disclosure.
[0064] Figure 3 It is an example of the flowchart of a method for connecting a headset shown in an embodiment of the present disclosure Figure 2 .
[0065] Figure 4 It is an example of the flowchart of a method for connecting a headset shown in an embodiment of the present disclosure Figure 3 .
[0066] Figure 5 It is a flowchart interaction diagram of a method for connecting a headset shown in an embodiment of the present disclosure.
[0067] Figure 6 It is a schematic diagram of the device connection of a method for connecting a headset in an embodiment of the present disclosure.
[0068] Figure 7 It is a diagram of a headset connection device applied to a headset connector shown in an embodiment of the present disclosure.
[0069] Figure 8 It is a diagram of a headset connection device applied to a headset shown in an embodiment of the present disclosure.
[0070] Figure 9 It is a diagram of a headset connection device applied to an audio output device shown in an embodiment of the present disclosure.
[0071] Figure 10 It is a block diagram of an electronic device 800 shown in an embodiment of the present disclosure. Detailed Description of the Embodiments
[0072] Here, the exemplary embodiments will be described in detail, and the examples are shown in the 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 embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0073] Figure 1 It is an example of the connection method process of a headset shown in the embodiments of the present disclosure Figure 1 , applied to a headset connector, and is composed of Figure 1 It can be seen that it includes the following steps:
[0074] S11. Receive the audio information output by the audio output device;
[0075] S12. Based on the private communication protocol between the headset connector and the headset, transmit the audio information to the headset; wherein, the audio information is used for the headset to output.
[0076] In the embodiments of the present disclosure, the headset connector is an electronic device with wired and / or wireless communication functions, which can be connected to multiple other electronic devices in a wired and / or wireless manner and communicate with other electronic devices. Among them, the wired connection method can be a serial bus connection (Universal Serial Bus, USB), a network cable connection (Registered Jack45, RJ45), etc.; the wireless connection method can be a mobile hotspot (Wireless Fidelity, WiFi), a Bluetooth connection (Bluetooth technology, BT), etc.
[0077] In the embodiments of the present disclosure, the headset connector can establish a wired or wireless communication connection with the audio output device. In some embodiments, the headset connector can be set as a pluggable type of electronic device (such as a pluggable connector with Type-A or Type-C physical interfaces), establish a wired connection with the audio output device, and thus receive audio information through a wired communication method; in other embodiments, the headset connector can establish a wireless connection with the audio output device through WiFi, Bluetooth, etc., and thus receive audio information through a wireless communication method.
[0078] In step S11, there are multiple ways for the headset connector to receive audio information. In some embodiments, it can be that the audio output device detects the establishment of a connection with the headset connector and actively sends the audio information to the headset connector for the headset connector to receive the audio information; in other embodiments, it can also be that when the headset connector detects that the connected device is an audio output device, it initiates a request instruction for the audio information and receives the audio information fed back by the audio output device. Among them, the audio information can be an audio file, a call voice, etc.
[0079] In the embodiments of the present disclosure, the headphone connector can establish a wireless connection with the headphones through means such as WiFi and Bluetooth. Thus, in step S12, the headphone connector transmits audio information to the headphones based on the private communication protocol between the headphone connector and the headphones, so that the headphones can output the audio information. Among them, the headphone connector and the headphones can be pre-paired. For example, the headphone connector and the headphones use the same communication chip, and it is pre-set that the headphone connector and the headphones communicate based on the private communication protocol.
[0080] It should be noted that the private communication protocol is a custom communication protocol used between two or more devices, which can be independently developed by an enterprise to facilitate the provision of a more secure, faster data transmission speed, or communication protocol with specific functions. In the embodiments of the present disclosure, the private communication protocol between the headphone connector and the headphones is designed based on a private communication path and has characteristics such as high bandwidth and high code rate. Among them, there are various types of private communication protocols. It can be a private communication protocol designed based on Bluetooth technology, such as the data transfer protocol (Object Push Profile, OPP); it can also be a private communication protocol designed based on WIFI technology, such as AirDrop Protocol (AirDrop), Wi-Fi Protected Access 3 (WPA3), etc.
[0081] It should be noted that the headphones can be connected to and communicate with multiple different devices based on the general communication protocol or the private communication protocol. In the case where there are multiple connectable devices in the surrounding environment, the headphones can switch the connected devices. Figure 2 is an example diagram showing the connection of a headphone to each connectable device shown in the embodiments of the present disclosure. As Figure 2 shown, the headphone L201 can directly communicate with the mobile phone L202 based on the general communication protocol; in the case where the headphone connector L203 is inserted into the computer L204 (audio output device), the headphone L201 can also communicate with the headphone connector L203 based on the private communication protocol, thereby realizing the communication between the headphone L201 and the computer L204.
[0082] In some embodiments, the headphones can be set to preferentially communicate based on the private communication protocol. For example, in the case where there are multiple communicable devices in the surrounding environment, the headphones can preferentially communicate with the headphone connector that can establish a private communication connection with it; it can also be that when the headphones and the headphone connector communicate based on the private communication protocol, even if a device connected based on the general protocol (such as the aforementioned mobile phone) is detected, the communication with the headphone connector will not be disconnected, but will continue to maintain the connection with the headphone connector and communicate based on the private communication protocol.
[0083] In the embodiments of the present disclosure, the headphone connector may directly transmit the received audio information to the headphones based on a private communication protocol; or it may encode the received audio information using a predetermined encoding rule and then transmit the encoded target audio to the headphones based on the private communication protocol.
[0084] In the embodiments of the present disclosure, the audio information can be output through the headphones. For example, it can be the music on the computer output through the headphones, or the call voice on the mobile phone output through the headphones.
[0085] In the related art, the headphones are directly connected to the mobile phone (audio output device) and transmit audio information based on a general communication protocol. On the one hand, for the headphones to be directly connected to the mobile phone, operations such as pairing and connection are required before communication can be carried out. However, these operations of pairing and connection need to be set by the user through the mobile phone and / or the headphones, and the setting process is too cumbersome for some users. On the other hand, the headphones and the mobile phone transmit data based on a general communication protocol, and the general communication path corresponding to the general communication protocol is a public resource that needs to be shared by most wireless devices. It has the characteristics of narrow bandwidth and slow transmission speed. Transmitting audio information on the general communication path is likely to cause transmission congestion, delays, and other situations. On the other hand, the headphones can be connected to multiple devices. In a situation where there are multiple connectable devices in the surrounding environment, the headphones may experience unstable connections caused by frequent switching of connected devices, resulting in poor audio quality or even interruption of the headphones.
[0086] In response to this, in the embodiments of the present disclosure, the headphone connector first receives the audio information of the audio output device and then transmits the audio information to the headphones using the private communication protocol between the headphone connector and the headphones. On the one hand, the headphone connector and the headphones can directly communicate based on the private communication protocol, eliminating the process of the user pairing and connecting by themselves and improving the usability of the headphones. On the other hand, the audio information is transmitted between the headphone connector and the headphones based on a private communication path. Since the private communication path has characteristics such as high bandwidth and high code rate, the transmission speed of the audio information is fast, improving the efficiency of audio information transmission between the headphone connector and the headphones. On the other hand, in a situation where there are multiple connectable devices in the surrounding environment, based on the private communication protocol between the headphones and the headphone connector, the headphones can preferentially connect to the headphone connector or continuously connect to the headphone connector and communicate based on the private communication protocol. As a result, the headphones can preferentially or continuously connect to the audio output device connected to the headphone connector, reducing the occurrence of unstable connections caused by the headphones frequently switching connected devices, improving the stability of the connection between the headphones and the audio output device, and thus the audio quality of the headphones is also relatively stable.
[0087] In some embodiments, transmitting the audio information to the earphone based on the private communication protocol between the earphone connector and the earphone includes:
[0088] Encoding the audio information according to a predetermined encoding rule to obtain an encoded target audio;
[0089] Transmitting the target audio to the earphone based on the private communication protocol between the earphone connector and the earphone.
[0090] In the embodiments of the present disclosure, when the earphone connector encodes the audio information according to a predetermined encoding rule, it may encode the audio information using lossless encoding to obtain a lossless type of target audio; it may also encode the audio information using lossy encoding to obtain a lossy type of target audio; or it may encode the audio information using hybrid encoding, that is, comprehensively process the audio using lossless and lossy compression technologies to obtain a hybrid type of target audio. Among them, the process of audio encoding may be single-threaded or multi-threaded, and the encoded target audio may include one or more audio packets. In the embodiments of the present disclosure, the predetermined encoding rule may be set according to the needs of audio processing to obtain the foregoing various types of target audio, which can enhance the diversity of audio information.
[0091] In the embodiments of the present disclosure, there are various ways for the earphone connector to transmit the target audio to the earphone based on the private communication protocol between the earphone connector and the earphone. It may be that the earphone connector sequentially sends the encoded audio packets to the earphone in real time during the encoding process; it may also be that the earphone connector sends the encoded audio packets to the earphone after completing the encoding of the audio information; or it may be that the earphone connector sends the encoded audio packets to the earphone after receiving the request information of the earphone for the audio packets. Among them, the earphone connector may send the audio packets to the earphone in a serial or parallel manner.
[0092] It should be noted that the process of encoding the audio information according to a predetermined encoding rule is usually to compress the audio information into one or more audio packets of various formats to facilitate the transmission of the audio information. In addition, each type of encoding rule usually has an associated decoding rule, and the associated decoding rule of the encoding rule can be used to decode the audio packet to obtain the decoded audio to be played, so that the audio playback device can output the audio to be played.
[0093] In the embodiments of the present disclosure, the earphone connector encodes according to a predetermined encoding rule to obtain an encoded audio packet, and transmits the obtained target audio (audio packet) to the earphone based on the private communication protocol, which is beneficial to improving the speed and stability of audio information transmission.
[0094] In some embodiments, the predetermined coding rule includes lossless coding;
[0095] Encoding the audio information using the predetermined coding rule to obtain the encoded target audio includes:
[0096] Encoding the audio information using the lossless coding to obtain at least one lossless audio packet;
[0097] Transmitting the target audio to the headset based on the private communication protocol between the headset connector and the headset includes:
[0098] Transmitting each lossless audio packet to the headset based on the private communication protocol.
[0099] In the embodiments of the present disclosure, the headset connector may encode the audio information in a lossless coding manner to obtain one or more lossless audio packets, so that the headset connector transmits each lossless audio packet to the headset based on the private communication protocol. Among them, the lossless coding may be Apple Lossless Audio Codec (APE), Free Lossless Audio Codec (FLAC), etc.
[0100] It should be noted that the lossless coding uses lossless compression when processing the audio signal, which can retain all the contents of the original audio information as much as possible and has the characteristic of high fidelity.
[0101] In the embodiments of the present disclosure, what the headset connector obtains by encoding the audio information using lossless coding is a lossless audio packet, and transmits the high-fidelity lossless audio packet to the headset based on the private communication protocol, which is beneficial to improving the transmission quality of the audio information.
[0102] In some embodiments, the predetermined coding rule includes lossy coding;
[0103] Encoding the audio information using the predetermined coding rule to obtain the encoded target audio includes:
[0104] Encoding the audio information using the lossy coding to obtain at least one lossy audio packet;
[0105] Transmitting the target audio to the headset based on the private communication protocol between the headset connector and the headset includes:
[0106] Transmitting each compressed audio packet to the headset based on the private communication protocol.
[0107] In the embodiments of the present disclosure, the headphone connector may encode audio information in a lossy coding manner to obtain one or more lossy audio packets, so that the headphone connector transmits each lossy audio packet to the headphones based on a private communication protocol. Among them, the lossy coding may be Advanced Audio Coding (AAC), Opus Audio Codec (Opus), etc.
[0108] It should be noted that when processing audio signals, lossy coding uses lossy compression, which can compress the original audio information as much as possible and usually has the characteristic of a high compression ratio.
[0109] In the embodiments of the present disclosure, what the headphone connector obtains by encoding audio information using lossy coding are lossy audio packets. Transmitting lossy audio packets with a high compression ratio to the headphones based on a private communication protocol is beneficial to improving the transmission speed of audio information and reducing transmission latency.
[0110] In some embodiments, the private communication protocol is a private communication protocol based on Bluetooth;
[0111] and / or,
[0112] The receiving of the audio information output by the audio output device includes:
[0113] Receiving the audio information output by the audio output device based on a USB wired connection.
[0114] In the embodiments of the present disclosure, the private communication protocol is a private communication protocol based on Bluetooth, which may be a Bluetooth Hands-Free Profile, a Bluetooth Audio / Video Remote Control Profile, etc.
[0115] It should be noted that the Bluetooth private communication protocol generally refers to a non-standardized or unpublicized protocol, usually developed by Bluetooth device manufacturers or developers, and can be used as a communication protocol between specific devices. For example, the headphone connector and the headphones may use the same Bluetooth chip, and based on the private communication protocol provided by the Bluetooth chip manufacturer or the private communication protocol developed by the developer based on this Bluetooth chip, audio information is transmitted between the headphone connector and the headphones.
[0116] In the embodiments of the present disclosure, the headphone connector and the audio output device may be connected by means of a USB wired connection, and then the headphone connector can communicate with the audio output device by means of wired communication. Among them, the wired communication method may be a public communication protocol or a private communication protocol.
[0117] In some embodiments, the headphone connector and the audio output device are in a wired connection based on the TYPE-A physical interface (USB Type-A, TYPE-A), and audio data is transmitted based on protocols such as USB2.0 or USB3.1; in other embodiments, the headphone connector and the audio output device are in a wired connection based on the TYPE-C physical interface (USB Type-C, TYPE-C), and audio data is transmitted based on protocols such as USB3.2 or Thunderbolt.
[0118] In the embodiments of the present disclosure, on the one hand, the headphone connector and the headphone adopt a Bluetooth-based private communication protocol. Since the Bluetooth private communication protocol is used between specific devices and has characteristics such as exclusivity and customizability, transmitting audio information based on the Bluetooth private communication protocol has high security and efficiency; on the other hand, the headphone connector and the audio output device are connected by a wired connection, which has characteristics such as stable connection and fast communication speed, facilitating overall improvement of the speed and stability of audio information transmission.
[0119] Figure 3 This is an example of the process flow of a connection method for a headphone shown in the embodiments of the present disclosure Figure 2 , applied to a headphone, as Figure 3 shown, the connection method for the headphone applied to the headphone includes the following steps:
[0120] S31. Receive audio information based on the private communication protocol between the headphone connector and the headphone; wherein, the audio information is the audio information output by the audio output device received by the headphone connector;
[0121] S32. Output the audio information.
[0122] In the embodiments of the present disclosure, the headphone can be a true wireless headphone, a neck-worn wireless headphone, a head-mounted wireless headphone, etc. As mentioned above, the headphone can be connected and communicate with multiple different devices based on a general communication protocol or a private communication protocol. In the case where there are multiple connectable devices in the surrounding environment, the headphone can switch the connected device. In some embodiments, the headphone can be set to communicate based on the private communication protocol preferentially. For example, in the case where there are multiple communicable devices in the surrounding environment, the headphone can preferentially communicate with the headphone connector that can establish a private communication connection with it; it can also be that when the headphone and the headphone connector communicate based on the private communication protocol, even if a device connected based on the general protocol is detected, the communication with the headphone connector will not be disconnected, but will continue to maintain the connection with the headphone connector and communicate based on the private communication protocol.
[0123] In step S31, the earphone receives audio information based on a private communication protocol with the earphone connector. As described above, a wireless connection can be established between the earphone and the earphone connector via WiFi, Bluetooth, etc., so that the two can transmit audio information based on the private communication protocol. Among them, the private communication protocol can be a private communication protocol based on WiFi or a private communication protocol based on Bluetooth.
[0124] As described above, the private communication protocol is a custom communication protocol used between two or more devices, which can be independently developed by an enterprise to facilitate the provision of a more secure, faster data transmission speed, or communication protocol with specific functions. In the embodiments of the present disclosure, the private communication protocol between the earphone connector and the earphone is designed based on a private communication path and has characteristics such as high bandwidth and high bit rate.
[0125] In the embodiments of the present disclosure, there are multiple ways for the earphone to receive audio information. It can directly receive audio information based on the private communication protocol; or the earphone connector encodes the audio information using a predetermined coding rule, and then the earphone receives the encoded target audio based on the private communication protocol. Among them, the audio information is the audio information output by the audio output device received by the earphone connector.
[0126] In step S32, there are multiple ways for the earphone to output audio information. It can directly output the received audio information; or decode the received target audio and then output it. In addition, the earphone can also output the audio information after optimization processing, such as noise reduction processing, multi-channel processing, etc.
[0127] In some embodiments, the earphone can also output audio information when receiving a playback instruction. For example, the playback instruction can be a touch operation of the user on the earphone (touching the play button); or a voice operation of the user on the audio output device (issuing an instruction of "play music" to the audio output device).
[0128] In the embodiments of the present disclosure, the earphone utilizes a private communication protocol between the earphone and the earphone connector to receive audio information (the audio information received by the earphone connector from the audio output device) from the earphone connector and output the audio information from the audio output device. On the one hand, the earphone connector and the earphone can directly communicate based on the private communication protocol, eliminating the process of the user pairing and connecting by themselves, and improving the usability of the earphone; on the other hand, the audio information transmission between the earphone connector and the earphone is based on a private communication path. Since the private communication path has characteristics such as high bandwidth and high code rate, the transmission speed of the audio information is fast, improving the efficiency of the audio information transmission between the earphone connector and the earphone; on the other hand, in the case where there are multiple connectable devices in the surrounding environment, based on the private communication protocol between the earphone and the earphone connector, the earphone can preferentially connect to the earphone connector or continuously connect to the earphone connector and communicate based on the private communication protocol. Therefore, the earphone can preferentially or continuously connect to the audio output device connected to the earphone connector, reducing the occurrence of connection instability caused by the earphone frequently switching connection devices, improving the stability of the connection between the earphone and the audio output device, and thus the audio quality of the earphone is also relatively stable.
[0129] In some embodiments, receiving the audio information based on the private communication protocol between the earphone connector and the earphone includes:
[0130] Receiving target audio based on the private communication protocol between the earphone connector and the earphone; wherein the target audio includes at least one audio packet, and the audio packet is obtained by the earphone connector encoding the audio information using a predetermined encoding rule.
[0131] As described above, the target audio is one or more audio packets obtained by the earphone connector encoding the audio information using a predetermined encoding rule. Among them, the predetermined encoding rule includes lossless, lossy encoding, etc.; the audio packet is an audio packet corresponding to the predetermined encoding rule, and can be a lossless audio packet, a lossy audio packet, etc.
[0132] In the embodiments of the present disclosure, there are various ways for the earphone to receive the target audio based on the private communication protocol between the earphone connector and the earphone. It can be to receive the audio packets encoded by the earphone connector during the encoding process in real time; it can also be to receive all the encoded audio packets after the earphone connector finishes encoding the audio information; it can also be that the earphone sends an audio request signal for the audio packet, and after the earphone connector responds to the audio request signal, the earphone receives the encoded audio packet fed back by the earphone connector. Among them, the earphone can receive the audio packets in a serial or parallel manner.
[0133] As described above, the target audio obtained by the headphone connector encoding the audio information according to a predetermined encoding rule is usually one or more audio packets that have been compressed, facilitating the transmission of the target audio.
[0134] In the embodiments of the present disclosure, the headphone receives the target audio (the audio packet encoded by the headphone connector according to a predetermined encoding rule) based on a private communication protocol with the headphone connector, and receives it in the form of an audio packet, which is conducive to improving the speed and stability of audio information transmission.
[0135] In some embodiments, the outputting of the audio information includes:
[0136] Decoding at least one of the audio packets according to a predetermined decoding rule to obtain the audio to be played after decoding; wherein, the predetermined decoding rule is a decoding rule associated with the predetermined encoding rule;
[0137] Outputting the audio to be played after decoding.
[0138] In the embodiments of the present disclosure, there are various ways for the headphone to decode at least one audio packet based on a predetermined decoding rule. It can be processed by using a single-thread decoding method or a multi-thread decoding method to obtain the audio to be played after decoding one or more audio packets. Among them, the predetermined decoding rule is a decoding rule associated with the predetermined encoding rule, which can be lossless decoding, lossy decoding, etc.
[0139] In the embodiments of the present disclosure, when the headphone decodes the target audio using a predetermined decoding rule, it can decode the target audio using lossless decoding to obtain a lossless type of audio to be played; or it can decode the target audio using lossy decoding to obtain a lossy type of audio to be played; or it can also decode the target audio using hybrid decoding, that is, comprehensively process the target audio using lossless and lossy recovery technologies to obtain a hybrid type of audio to be played. It should be noted that the encoding process of the audio by the headphone connector can be of various types such as lossless, lossy, and hybrid, and thus the types of the audio to be played decoded by the headphone are rich and diverse.
[0140] In the embodiments of the present disclosure, when the headphone outputs the audio to be played after decoding, it can directly output the audio to be played, or it can output the audio to be played after receiving the aforementioned play instruction.
[0141] In the embodiments of the present disclosure, the headphone decodes and outputs the target audio based on a predetermined decoding rule associated with the predetermined encoding rule of the headphone connector. The types of the audio to be played decoded are rich, which is conducive to improving the intelligence of the headphone and the diversity of audio output.
[0142] Figure 4It is an example of the connection method flow of a headset shown in the embodiments of the present disclosure Figure 3 , applied to an audio output device, and it can be known from Figure 4 that it includes the following steps:
[0143] S41. Determine the audio information to be played;
[0144] S42. Based on the communication connection with the headset connector, transmit the audio information to the headset connector; wherein, the audio information is transmitted by the headset connector to the headset and output.
[0145] In the embodiments of the present disclosure, the audio output device is an electronic device with audio output function, such as user equipment (UE), mobile device, mobile phone, tablet computer, personal digital assistant (PDA), handheld device, computing device, vehicle-mounted device, wearable device, etc. In some possible implementation manners, the system exception handling method can be implemented by a processor in the terminal device calling computer-readable instructions stored in the memory.
[0146] In step S41, there are various ways for the audio output device to determine the audio information to be played. In some embodiments, it can be based on the user operation instruction received by the audio output device to determine the audio information to be played. For example, based on the audio playlist selected by the user in the mobile phone, it is determined that the audio to be played is the music selected by the user; or for another example, based on the voice instruction such as "play Tang poetry" issued by the user to the mobile phone, it is determined that the audio information to be played is Tang poetry. In other embodiments, the audio output device can determine the audio information to be played based on the instruction detected by the device. For example, when the device detects a voice call instruction or a video call instruction, it is determined that the audio to be played is the voice in the call or the voice in the video, etc.
[0147] In step S42, the audio output device and the headset connector can establish a wired or wireless communication connection. In some embodiments, the headset connector can be set as a pluggable type of electronic device (such as a pluggable connector with Type-A or Type-C physical interfaces), and establish a wired connection with the audio output device, so as to receive audio information through wired communication; in other embodiments, the headset connector can establish a wireless connection with the audio output device through ways such as WiFi or Bluetooth, so as to receive audio information through wireless communication.
[0148] In the embodiments of the present disclosure, there are various ways for an audio output device to transmit audio information to a headphone connector based on a communication connection with the headphone connector. In some embodiments, it may be that the audio output device detects the establishment of a connection with the headphone connector and actively sends the audio information to the headphone connector so that the headphone connector can receive the audio information. In other embodiments, it may also be that in the case where the audio output device receives a request instruction for audio information sent by the headphone connector, the audio output device feeds back the audio information to the headphone connector. Among them, the audio information may be an audio file, a call voice, etc.
[0149] In the embodiments of the present disclosure, the audio output device transmits the audio information to the headphone connector so that the headphone connector can further transmit the audio information to the headphone based on a private communication protocol and output it through the headphone.
[0150] In the embodiments of the present disclosure, the audio output device first determines the audio information to be played and transmits the audio information to the headphone connector so that the headphone connector can transmit the audio information to the headphone based on a private communication protocol between the headphone connector and the headphone. On the one hand, through the forwarding of the audio information by the headphone connector, the cumbersome processes such as the user's own pairing and connection during the communication process between the headphone and the audio output device are reduced, improving the usability of the headphone. On the other hand, after the audio information is transmitted to the headphone connector, the audio information is transmitted between the headphone connector and the headphone based on a private communication path. Since the private communication path has characteristics such as high bandwidth and high bit rate, the transmission speed of the audio information is fast, improving the transmission efficiency of the audio information between the headphone connector and the headphone. On the other hand, in the case where there are multiple connectable devices in the surrounding environment, based on the private communication protocol between the headphone and the headphone connector, the headphone can preferentially connect to the headphone connector or continuously connect to the headphone connector and communicate based on the private communication protocol. Therefore, the headphone can preferentially or continuously connect to the audio output device connected to the headphone connector, reducing the occurrence of connection instability caused by the headphone frequently switching connection devices, improving the stability of the connection between the headphone and the audio output device, and thus the audio quality of the headphone is also relatively stable.
[0151] In the embodiments of the present disclosure, the transmitting the audio information to the headphone connector based on a communication connection with the headphone connector includes:
[0152] Transmitting the audio information to the headphone connector based on a USB wired connection.
[0153] In the embodiments of the present disclosure, the audio output device and the headphone connector can be connected by means of a USB wired connection, and thus the headphone connector can communicate with the audio output device by means of wired communication. Among them, the wired communication method can be a common communication protocol or a private communication protocol.
[0154] In some embodiments, the audio output device may be provided with a TYPE-A physical interface, which can be wired-connected to the headphone connector based on the TYPE-A physical interface, and audio data can be transmitted based on protocols such as USB2.0 or USB3.1; in other embodiments, the audio output device may be provided with a TYPE-C physical interface, which can be wired-connected to the headphone connector based on the TYPE-C physical interface, and audio data can be transmitted based on protocols such as USB3.2 or Thunderbolt.
[0155] In the embodiments of the present disclosure, the audio output device and the headphone connector are connected by a wired connection, which has the characteristics of stable connection and fast communication speed, and is conducive to improving the speed and stability of audio information transmission as a whole.
[0156] Figure 5 It is a flow interaction diagram of a connection method of a headphone shown in the embodiments of the present disclosure. As Figure 5 shown, the connection method of the headphone is applied to the headphone connector, the headphone and the audio output device, and includes the following steps:
[0157] S51. The audio output device determines the audio information to be played;
[0158] S52. The audio output device transmits the audio information to the headphone connector based on the communication connection with the headphone connector;
[0159] S53. The headphone connector receives the audio information output by the audio output device;
[0160] S54. The headphone connector transmits the audio information to the headphone based on the private communication protocol with the headphone;
[0161] S55. The headphone receives the audio information based on the private communication protocol with the headphone connector;
[0162] S56. The headphone outputs the audio information.
[0163] In step S51, the audio output device determines the audio information to be played, where the audio information may be music to be played, voice in a voice call, voice in a video call, etc.
[0164] In step S52, the communication connection method between the audio output device and the headphone connector may be a wired connection based on USB or a wireless connection. There are various ways for the audio output device to transmit the audio information to the headphone connector based on the communication connection with the headphone connector. It may directly send the audio information to be played to the headphone connector, or may feedback the audio information to the headphone connector after receiving the audio request sent by the headphone connector.
[0165] In step S53, the headphone connector receives the audio information output by the audio output device based on the wired or wireless communication method with the audio output device. In the embodiments of the present disclosure, there are multiple ways for the headphone connector to receive the audio information. It can directly receive the audio information sent by the audio output device, or it can first send an audio request to the audio output device, and after the audio output device responds, receive the audio information fed back by the audio output device.
[0166] In step S54, the headphone connector transmits the audio information to the headphone based on the private communication protocol between the headphone connector and the headphone. Here, the private communication protocol is a custom communication protocol used between two or more devices. It is designed based on a private communication path and has characteristics such as high bandwidth and high bit rate. It should be noted that the headphone can be connected to and communicate with multiple different devices based on a general communication protocol or a private communication protocol. In the case where there are multiple connectable devices in the surrounding environment, the headphone can switch the connected device. In some embodiments, the headphone can be set to preferentially communicate based on the private communication protocol.
[0167] In the embodiments of the present disclosure, there are multiple ways for the headphone connector to transmit the audio information to the headphone. It can directly transmit the audio information, or it can obtain one or more audio packets after encoding using a predetermined encoding rule, and transmit each audio packet to the headphone connector in a serial or parallel manner. Among them, the predetermined encoding rule can be lossless encoding, lossy encoding, hybrid encoding, etc.
[0168] In step S55, the headphone receives the audio information based on the private communication protocol between the headphone and the headphone connector. Here, the way to receive the audio information can be to directly receive the audio information sent by the headphone connector, or to receive one or more audio packets in a serial or parallel manner, where each audio packet is encoded by the headphone connector using a predetermined encoding rule.
[0169] In step S56, there are multiple ways for the headphone to output the audio information. It can directly output the received audio information, or it can decode the audio packet using a predetermined decoding rule associated with the aforementioned predetermined encoding rule and output the decoded audio to be played. In addition, the headphone can also output the audio information after optimizing processing, such as noise reduction processing, multi-channel processing, and so on.
[0170] In the embodiments of the present disclosure, the headphone connector first receives the audio information of the audio output device, and then transmits the audio information to the headphone by using the private communication protocol between the headphone connector and the headphone. On the one hand, the headphone connector and the headphone can directly communicate based on the private communication protocol, saving the user's own pairing and connection process and improving the usability of the headphone. On the other hand, the audio information is transmitted between the headphone connector and the headphone based on a private communication path. Since the private communication path has characteristics such as high bandwidth and high bit rate, the transmission speed of the audio information is fast, improving the efficiency of audio information transmission between the headphone connector and the headphone. On the other hand, in the case where there are multiple connectable devices in the surrounding environment, based on the private communication protocol between the headphone and the headphone connector, the headphone can preferentially connect to the headphone connector or continuously connect to the headphone connector and communicate based on the private communication protocol. As a result, the headphone can preferentially or continuously connect to the audio output device connected to the headphone connector, reducing the occurrence of connection instability caused by the headphone frequently switching connection devices, improving the stability of the connection between the headphone and the audio output device, and thus the audio quality of the headphone is also relatively stable.
[0171] Figure 6 It is a schematic diagram of device connection for a headphone connection method in the embodiments of the present disclosure. As Figure 6 shown, the headphone connection method is applied to a multi-terminal device, including an audio output device L601, a headphone connector L602, and a headphone L603. Among them, the audio output device L601 and the headphone connector L602 are connected by USB cable, and the headphone connector L602 and the headphone L603 are connected wirelessly by Bluetooth.
[0172] In this embodiment, the audio output device L601 is an electronic device with audio output function, such as a mobile phone, a computer, a wearable device, a vehicle-mounted device, etc.; the headphone connector L602 is an electronic device with USB cable and Bluetooth wireless communication functions, such as a pluggable Bluetooth connector with Type-A or Type-C physical interfaces; the headphone L603 is a wireless headphone, such as a true wireless headphone (True Wireless Stereo, TWS), a neck-worn wireless headphone, a head-worn wireless headphone, etc.
[0173] In this embodiment, the headphone connector L602 and the headphone L603 can adopt the same Bluetooth chip and can communicate based on a private communication protocol, so as to achieve stable pairing between the headphone connector L602 and the headphone L603.
[0174] In this embodiment, the audio output device L601 is inserted into the headphone connector L602 that has been stably paired with the headphone L603. Thus, the audio output device L601 and the headphone connector L602 establish a communication connection based on the USB communication protocol, and transmit audio information to the headphone connector L602. The transmission method can be that the headphone connector L602 grabs the audio information from the audio output end L601 in the form of the USB data volume based on the USB protocol. Among them, the audio information can be music, voice call audio, etc.
[0175] In this embodiment, the headphone connector L602 and the headphone L603 are connected based on Bluetooth, and communicate using the Bluetooth private communication protocol between the headphone connector L602 and the headphone L603 to transmit the audio information to the headphone L603. Among them, the headphone L603 will preferentially establish a communication connection with the audio output device L601 connected to the headphone connector L602 with which it is stably paired.
[0176] In this embodiment, when the headphone L603 is in a situation where there are multiple connectable devices, the headphone L603 can preferentially establish a connection and communicate with the audio output device L601 inserted into the headphone connector L602; or, when the headphone L603 is connected and communicates with other electronic devices based on the general communication protocol (such as a mobile phone), if the headphone L603 detects that the headphone connector L602 is activated (insert the headphone connector L602 into the audio output device L601 so that the audio output device L601 powers the headphone connector L602, thereby activating the headphone connector L602), it will even switch to connect and communicate with the audio output device L601 that is wired to the headphone connector L602.
[0177] In this embodiment, the headphone connector L602 and the headphone L603 communicate using a Bluetooth-based private communication protocol, which is a custom communication protocol used between the headphone connector L602 and the headphone L603, and is designed based on a private communication path, with characteristics such as high bandwidth and high code rate. Among them, the Bluetooth-based private communication protocol can be provided by a Bluetooth chip enterprise or independently developed by R & D personnel for the Bluetooth chip.
[0178] In this embodiment, when transmitting audio information between the headphone connector L602 and the headphone L603, the audio information can be encoded before transmission. Among them, the audio encoding method can be lossless decoding, lossy encoding, etc. For example, based on the custom lossless encoding of Codec, the audio information is compressed into a high-fidelity audio packet, which is convenient for improving the audio quality; for another example, based on LC3, a special transmission code rate is set to compress the audio information into a smaller audio packet, which is convenient for improving the transmission rate.
[0179] In this embodiment, the earphone L603 can decode the received audio packet based on the decoding method associated with the encoding method and then output it.
[0180] In the embodiments of the present disclosure, the earphone connector L602 first receives the audio information of the audio output device L601 based on the USB wired connection, and then transmits the audio information to the earphone L603 by using the Bluetooth-based private communication protocol between the earphone connector L602 and the earphone L603. On the one hand, the earphone connector L602 and the earphone L603 can directly communicate based on the Bluetooth-based private communication protocol, saving the user the process of pairing and connecting by themselves, and improving the usability of the earphone L603; on the other hand, the audio information is transmitted between the earphone connector L602 and the earphone L603 based on the Bluetooth-based private communication path. Since the Bluetooth-based private communication path has characteristics such as high bandwidth and high code rate, the transmission speed of the audio information is fast, and the transmission efficiency of the audio information between the earphone connector L602 and the earphone L603 is improved; on the other hand, in the case where there are multiple connectable devices in the surrounding environment, based on the private communication protocol between the earphone L603 and the earphone connector L602, the earphone L603 can preferentially connect to the earphone connector L602 or continuously connect to the earphone connector L602 and communicate based on the Bluetooth-based private communication protocol. Therefore, the earphone L603 can preferentially or continuously connect to the audio output device L601 connected to the earphone connector L602, reducing the occurrence of connection instability caused by the earphone L603 frequently switching connection devices, improving the stability of the connection between the earphone L603 and the audio output device L601, and thus the audio quality of the earphone L603 is also relatively stable.
[0181] Figure 7 It is a diagram of an earphone connection device applied to an earphone connector shown in the embodiments of the present disclosure, and it consists of Figure 7 As can be seen, the earphone connection device 700 includes:
[0182] A first receiving module 101, configured to receive the audio information output by the audio output device;
[0183] A first transmission module 102, configured to transmit the audio information to the earphone based on the private communication protocol between the earphone connector and the earphone; wherein, the audio information is used for the earphone to output.
[0184] In some embodiments, the first transmission module 102 is further configured to encode the audio information according to a predetermined encoding rule to obtain an encoded target audio; and transmit the target audio to the earphone based on the private communication protocol between the earphone connector and the earphone.
[0185] In some embodiments, the predetermined encoding rule includes lossless encoding; the first transmission module 102 is further configured to encode the audio information using the lossless encoding to obtain at least one lossless audio packet; and transmit each lossless audio packet to the headset based on the private communication protocol.
[0186] In some embodiments, the predetermined encoding rule includes lossy encoding; the first transmission module 102 is further configured to encode the audio information using the lossy encoding to obtain at least one lossy audio packet; and transmit each compressed audio packet to the headset based on the private communication protocol.
[0187] In some embodiments, in the first transmission module 102, the private communication protocol is a private communication protocol based on Bluetooth; and / or, the first receiving module 101 is further configured to receive the audio information output by the audio output device based on a USB wired connection.
[0188] Figure 8 This is a diagram of a headset connection device applied to a headset shown in an embodiment of the present disclosure. It can be seen that the headset connection device 800 includes: Figure 8 It can be seen that the headset connection device 800 includes:
[0189] A second receiving module 201, configured to receive audio information based on a private communication protocol between the headset connector and the headset; wherein, the audio information is the audio information output by the audio output device received by the headset connector.
[0190] A first output module 202, configured to output the audio information.
[0191] In some embodiments, the second receiving module 201 is further configured to receive target audio based on a private communication protocol between the headset connector and the headset; wherein, the target audio includes at least one audio packet, and the audio packet is obtained by the headset connector encoding the audio information using a predetermined encoding rule.
[0192] In some embodiments, the first output module 202 is further configured to decode at least one of the audio packets based on a predetermined decoding rule to obtain the decoded audio to be played; wherein, the predetermined decoding rule is a decoding rule associated with the predetermined encoding rule; and output the decoded audio to be played.
[0193] Figure 9 This is a diagram of a headset connection device applied to an audio output device shown in an embodiment of the present disclosure. It can be seen that the headset connection device 900 includes: Figure 9 It can be seen that the headset connection device 900 includes:
[0194] A first determination module 301, configured to determine the audio information to be played.
[0195] A second transmission module 302, configured to transmit the audio information to the headphone connector based on a communication connection with the headphone connector; wherein, the audio information is transmitted by the headphone connector to the headphone and output.
[0196] In some embodiments, the second transmission module 302 is further configured to transmit the audio information to the headphone connector based on a USB wired connection.
[0197] Regarding the device in the above embodiments, the specific manners in which each module performs operations have been described in detail in the embodiments related to the method, and will not be elaborated herein.
[0198] Figure 10 It is a block diagram of an electronic device 800 shown in an embodiment of the present disclosure. For example, the electronic device 800 may be a mobile phone, a mobile computer, etc.
[0199] Referring to Figure 10 , the electronic device 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input / output (I / O) interface 812, a sensor component 814, and a communication component 816.
[0200] The processing component 802 generally controls the overall operation of the electronic device 800, such as operations associated with display, telephone calls, data communication, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.
[0201] The memory 804 is configured to store various types of data to support the operation of the electronic device 800. Examples of these data include instructions for any application or method operating on the electronic device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, a magnetic disk, or an optical disk.
[0202] The power supply component 806 provides power for various components of the electronic device 800. The power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 800.
[0203] The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors can not only sense the boundaries of the touch or swipe actions, but also detect the duration and pressure associated with the touch or swipe operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the electronic device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each of the front camera and the rear camera can be a fixed optical lens system or have a focal length and optical zoom capabilities.
[0204] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), which is configured to receive external audio signals when the electronic device 800 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals can be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, the audio component 810 further includes a speaker for outputting audio signals.
[0205] The I / O interface 812 provides an interface between the processing component 802 and a peripheral interface module, and the peripheral interface module can be a keyboard, a click wheel, buttons, etc. These buttons can include but are not limited to: a home button, a volume button, a power-on button, and a lock button.
[0206] The sensor assembly 814 includes one or more sensors for providing a status assessment of various aspects of the electronic device 800. For example, the sensor assembly 814 can detect the on / off state of the electronic device 800, the relative positioning of components, such as the display and keypad of the electronic device 800. The sensor assembly 814 can also detect a change in the position of the electronic device 800 or a component of the electronic device 800, the presence or absence of user contact with the electronic device 800, the orientation or acceleration / deceleration of the electronic device 800, and a change in the temperature of the electronic device 800. The sensor assembly 814 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 can also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 can also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0207] The communication component 816 is configured to facilitate communication between the electronic device 800 and other devices in a wired or wireless manner. The electronic device 800 can access a wireless network based on communication standards, such as Wi-Fi, 4G, or 5G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0208] In an exemplary embodiment, the electronic device 800 can be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the above method.
[0209] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions, such as the memory 804 including instructions, is also provided. The above instructions can be executed by the processor 820 of the electronic device 800 to complete the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device, etc.
[0210] A non - transitory computer - readable storage medium, when the instructions in the storage medium are executed by a processor of a headphone connector, a headphone, or an audio output device, enables the headphone connector, the headphone, or the audio output device to perform the foregoing headphone connection method.
[0211] Those skilled in the art will readily conceive of other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include known common knowledge or conventional technical means in the technical field not disclosed by the present disclosure. The specification and examples are only to be considered as exemplary, and the true scope and spirit of the present disclosure are pointed out by the following claims.
[0212] It should be understood that the present disclosure is not limited to the exact structures already described and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present disclosure is only limited by the appended claims.
Claims
1. A connection method for an earphone, characterized in that, applied to an earphone connector, the method includes: Receiving audio information output by an audio output device; Based on the private communication protocol between the earphone connector and the earphone, transmitting the audio information to the earphone; wherein, the audio information is used for the earphone to output.
2. The method according to claim 1, characterized in that, The step of transmitting the audio information to the earphone based on the private communication protocol between the earphone connector and the earphone includes: Encoding the audio information using a predetermined encoding rule to obtain an encoded target audio; Based on the private communication protocol between the earphone connector and the earphone, transmitting the target audio to the earphone.
3. The method according to claim 2, characterized in that, The predetermined encoding rule includes lossless encoding; The step of encoding the audio information using a predetermined encoding rule to obtain an encoded target audio includes: Encoding the audio information using the lossless encoding to obtain at least one lossless audio packet; The step of transmitting the target audio to the earphone based on the private communication protocol between the earphone connector and the earphone includes: Based on the private communication protocol, transmitting each lossless audio packet to the earphone.
4. The method according to claim 2, characterized in that, The predetermined encoding rule includes lossy encoding; The step of encoding the audio information using a predetermined encoding rule to obtain an encoded target audio includes: Encoding the audio information using the lossy encoding to obtain at least one lossy audio packet; The step of transmitting the target audio to the earphone based on the private communication protocol between the earphone connector and the earphone includes: Based on the private communication protocol, transmitting each compressed audio packet to the earphone.
5. The method according to any one of claims 1-4, characterized in that, The private communication protocol is a private communication protocol based on Bluetooth; and / or, The step of receiving audio information output by an audio output device includes: Receiving the audio information output by the audio output device based on a USB wired connection.
6. A connection method for an earphone, characterized in that, applied to an earphone, the method includes: Receiving audio information based on the private communication protocol between the earphone connector and the earphone; wherein, the audio information is the audio information output by an audio output device received by the earphone connector; Outputting the audio information.
7. The method according to claim 6, characterized in that, The step of receiving audio information based on the private communication protocol between the earphone connector and the earphone includes: Receiving a target audio based on the private communication protocol between the earphone connector and the earphone; wherein, the target audio includes at least one audio packet, and the audio packet is obtained by the earphone connector encoding the audio information using a predetermined encoding rule.
8. The method according to claim 7, characterized in that, The step of outputting the audio information includes: Decode at least one of the audio packets based on a predetermined decoding rule to obtain the decoded audio to be played; wherein, the predetermined decoding rule is a decoding rule associated with the predetermined encoding rule; Output the decoded audio to be played.
9. A connection method for a headset, characterized in that, applied to an audio output device, the method includes: Determine the audio information to be played; Based on the communication connection with the headset connector, transmit the audio information to the headset connector; wherein, the audio information is transmitted by the headset connector to the headset and output.
10. The method according to claim 9, characterized in that, The transmitting the audio information to the headset connector based on the communication connection with the headset connector includes: Transmit the audio information to the headset connector based on a USB wired connection.
11. A headset connection device, characterized in that, applied to a headset connector, the device includes: A first receiving module, configured to receive audio information output by an audio output device; A first transmitting module, configured to transmit the audio information to the headset based on a private communication protocol between the headset connector and the headset; wherein, the audio information is used for the headset to output.
12. A headset connection device, characterized in that, applied to a headset, the device includes: A second receiving module, configured to receive audio information based on a private communication protocol between the headset connector and the headset; wherein, the audio information is the audio information output by the audio output device received by the headset connector; A first output module, configured to output the audio information.
13. A headset connection device, characterized in that, applied to an audio output device, the device includes: A first determining module, configured to determine the audio information to be played; A second transmitting module, configured to transmit the audio information to the headset connector based on the communication connection with the headset connector; wherein, the audio information is transmitted by the headset connector to the headset and output.
14. An electronic device, characterized in that, includes: A processor; A memory for storing processor-executable instructions; wherein, the processor is configured to execute the connection method for a headset according to any one of claims 1 to 5; or, is configured to execute the connection method for a headset according to any one of claims 6 to 8; or, is configured to execute the connection method for a headset according to any one of claims 9 to 10.
15. A computer-readable storage medium, characterized in that, When the instructions in the storage medium are executed by the processor of the headset connector, the headset connector can execute the connection method for a headset according to any one of claims 1 to 5; or, when the instructions in the storage medium are executed by the processor of the headset, the headset can execute the connection method for a headset according to any one of claims 6 to 8; when the instructions in the storage medium are executed by the processor of the audio output device, the audio output device can execute the connection method for a headset according to any one of claims 9 to 10.