Method and device for transmitting control information and storage medium

By encoding control information in the least significant bit of the audio signal and transmitting it through the audio channel, the compatibility problem of control information transmission between the terminal device and the headset is solved, and effective transmission suitable for terminal devices of all operating systems is achieved without affecting the human voice audio signal.

CN120669592APending Publication Date: 2025-09-19TENCENT MUSIC ENTERTAINMENT TECH (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510811030.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-17
Publication Date
2025-09-19

AI Technical Summary

Technical Problem

In the prior art, there is a lack of a unified method for transmitting control information between terminal devices and headsets, resulting in incompatibility between terminal devices with different operating systems and an inability to effectively transmit control information.

Method used

By encoding control information in the least significant bit of the audio signal and transmitting it through the audio channel, it is ensured that the control information does not interfere with the human voice audio signal. A transmission method with good compatibility is designed, which is suitable for terminal devices of various operating systems.

Benefits of technology

It realizes the transmission of control information through audio signals without affecting the human voice audio signals. It is suitable for terminal devices of all operating systems and improves compatibility and transmission efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120669592A_ABST
    Figure CN120669592A_ABST
Patent Text Reader

Abstract

The invention discloses a method and equipment for transmitting control information and a storage medium, and belongs to the technical field of audio and video. The method comprises: in response to meeting a first information sending condition, an earphone performs audio coding processing on first control information to obtain a first audio signal, the first audio signal being an audio signal stored or collected by the earphone, the first control information being coded to a least significant bit of the first audio signal, or the first control information being coded to a least significant bit of the first audio signal; the first audio signal is a generated audio signal which is different from the audio signal stored and collected by the earphone in frequency or sound channel during sending, and the first audio signal is sent to the terminal equipment through the audio channel and the earphone, so that the terminal equipment decodes the first audio signal to obtain first control information, and the first control information is sent to the terminal equipment. An operation related to the first control information is performed. In the application, the control information is encoded into the audio signal, and the audio signal is sent through the audio channel, so that the method for transmitting the control information between the earphone and the terminal equipment is provided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of audio and video technology, and in particular to a method, device, and storage medium for transmitting control information. Background Art

[0002] In audio and video applications, when recording audio, you can use the microphone of the headset connected to the terminal device to capture the audio.

[0003] As audio and video applications have more and more functions, they can provide different services for different types of headphones. When providing services to headphones, control information needs to be transmitted between the terminal device and the headphones. However, there is currently no method for transmitting control information. Therefore, a method for transmitting control information is needed. Summary of the Invention

[0004] This application provides a method, device, and storage medium for transmitting control information, providing a method for transmitting control information between a headset and a terminal device. The technical solution adopted is as follows:

[0005] In one aspect, a method for transmitting control information is provided, which is applied to a headset and includes:

[0006] In response to satisfying the first information sending condition, performing audio encoding processing on the first control information to obtain a first audio signal, wherein the first audio signal is an audio signal stored or collected by the headset, and the first control information is encoded into the least significant bit of the first audio signal, or the first audio signal is a generated audio signal having a different frequency or channel from the audio signal stored and collected by the headset when being sent;

[0007] The first audio signal is sent to a terminal device through an audio channel, so that the terminal device decodes the first audio signal, obtains the first control information, and performs operations related to the first control information.

[0008] In this way, control information can be transmitted between the headset and the terminal device, and terminal devices of all operating systems can transmit audio signals. Therefore, this method of transmitting control information is universal.

[0009] In an optional manner, the frequency of the first audio signal is higher than the frequency of the audio signal stored or collected by the headset when it is sent.

[0010] In an optional manner, the method further includes:

[0011] receiving, through the audio channel, a second audio signal sent by the terminal device, wherein the second audio signal is encoded with second control information, and the second control information is used to instruct the sending of the first control information;

[0012] In response to satisfying the first information sending condition, performing audio encoding processing on the first control information to obtain a first audio signal includes:

[0013] In response to obtaining the second control information through decoding the second audio signal, audio encoding is performed on the first control information to obtain a first audio signal.

[0014] In this way, the terminal device can also send control information to the headset through the audio signal, and the headset sends the first control information according to the instruction of the terminal device.

[0015] In an optional manner, the second control information is a headset query request, and the first control information is description information of the headset; or,

[0016] The second control information is an adjustment instruction related to the headset, and the first control information is an identifier indicating that the adjustment is completed according to the adjustment instruction.

[0017] In an optional manner, in response to satisfying the first information sending condition, performing audio encoding processing on the first control information to obtain the first audio signal includes:

[0018] In response to detecting an adjustment instruction related to the headset, audio encoding processing is performed on first control information indicated by the adjustment instruction to obtain a first audio signal.

[0019] In this way, users can also adjust the headphones on the headphone side and synchronize them to the terminal device.

[0020] In an optional manner, performing audio encoding processing on the first control information to obtain the first audio signal includes:

[0021] The first control information is encoded into the first audio signal using a frequency shift keying encoding method.

[0022] In an optional manner, the sending the first audio signal to the terminal device through the audio channel includes:

[0023] performing filtering processing on the audio signal collected by the earphone to obtain a filtered audio signal, wherein a frequency of the filtered signal does not include a frequency of the first audio signal;

[0024] Mixing the filtered audio signal with the first audio signal to obtain a mixed audio signal;

[0025] The mixed audio signal is sent to the terminal device through the audio channel.

[0026] In this way, the collected human voice audio signal is filtered so that the human voice audio signal will not be confused with the first audio signal, thereby making it easier for the terminal device to parse the first control information.

[0027] On the other hand, the present application provides a method for transmitting control information, the method being applied to a terminal device, the method comprising:

[0028] In response to satisfying the second information sending condition, performing audio encoding processing on the second control information to obtain a second audio signal, wherein the second audio signal is an audio signal stored or collected by the terminal device, the second control information is encoded into the least significant bit of the second audio signal, and the second audio signal is a generated audio signal having a different frequency or channel from the audio signal stored and collected by the terminal device when being sent;

[0029] The second audio signal is sent to the headset through the audio channel, so that the headset decodes the second audio signal, obtains the second control information, and performs an operation related to the second control information.

[0030] In an optional manner, the frequency of the second audio signal is higher than the frequency of the audio signal stored and collected by the terminal device when it is sent.

[0031] In an optional manner, performing audio encoding processing on the second control information to obtain the second audio signal includes:

[0032] The second control information is encoded into the second audio signal using a frequency shift keying encoding method.

[0033] In an optional manner, in response to satisfying the second information sending condition, performing audio encoding processing on the second control information to obtain the second audio signal includes:

[0034] In response to detecting that the headset is connected, the headset query request is encoded to obtain a second audio signal.

[0035] In an optional manner, in response to satisfying the second information sending condition, performing audio encoding processing on the second control information to obtain the second audio signal includes:

[0036] In response to detecting an adjustment instruction related to the headset, audio encoding processing is performed on the second control information indicated by the adjustment instruction to obtain a second audio signal.

[0037] On the other hand, the present application provides a device for transmitting control information, which is applied to headphones. The device includes one or more modules, which are used to implement the operations performed by the method described in the first aspect or any optional method of the first aspect.

[0038] On the other hand, the present application provides a device for transmitting control information, which is applied to a terminal device. The device includes one or more modules, which are used to implement the operations performed by the method described in the second aspect or any optional method of the second aspect.

[0039] On the other hand, the present application provides a computer device, comprising a processor and a memory, wherein the memory stores at least one instruction, and the instruction is loaded and executed by the processor to implement the operations performed by the method for transmitting control information as described in the first aspect or any optional manner of the first aspect, or as described in the second aspect or any optional manner of the second aspect.

[0040] Optionally, the computer device is a headset or a terminal device.

[0041] On the other hand, the present application provides a computer-readable storage medium, which stores at least one instruction, and the instruction is loaded and executed by a processor to implement the operations performed by the method for transmitting control information as described in the first aspect or any optional manner of the first aspect or as described in the second aspect or any optional manner of the second aspect.

[0042] On the other hand, the present application provides a computer program product, which stores at least one instruction, and the instruction is loaded and executed by a processor to implement the operations performed by the method for transmitting control information as described in the first aspect or any optional manner of the first aspect or as described in the second aspect or any optional manner of the second aspect.

[0043] On the other hand, the present application provides a system for transmitting control information, which includes headphones and a terminal device, the headphones are used to perform the operations performed by the method for transmitting control information described in the first aspect or any optional method of the first aspect, and the terminal device is used to perform the operations performed by the method for transmitting control information described in the second aspect or any optional method of the second aspect.

[0044] The beneficial effects of the technical solution provided by the embodiments of the present application are:

[0045] The headset encodes the control information into an audio signal and transmits it to the terminal device via an audio channel. Furthermore, the audio signal does not affect the audio signal sent by the headset to the terminal device. Therefore, the control information can be transmitted using the audio signal without affecting the human voice audio signal. Therefore, a method for transmitting control information between the headset and the terminal device is provided. Furthermore, terminal devices with all operating systems can transmit audio signals, making this method universally applicable. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0047] Figure 1 is a schematic diagram of a communication system for transmitting control information provided in an embodiment of the present application;

[0048] Figure 2 This is a schematic diagram of the process of transmitting control information from an earphone to a terminal device according to an embodiment of the present application;

[0049] Figure 3 is a schematic diagram of the frequency spectrum of the first audio signal provided in an embodiment of the present application;

[0050] Figure 4 This is a schematic diagram of the process of parsing the first control information provided by an embodiment of the present application;

[0051] Figure 5 This is a schematic diagram of the flow of interactive control information between the headset and the terminal device provided in an embodiment of the present application;

[0052] Figure 6 This is a schematic diagram of the handshake process between the headset and the terminal device provided in an embodiment of the present application;

[0053] Figure 7 is a schematic diagram of a control interface of a headset provided in an embodiment of the present application;

[0054] Figure 8 This is a schematic diagram of the flow of interactive control information between the headset and the terminal device provided in an embodiment of the present application;

[0055] Figure 9 This is a schematic diagram of the process of transmitting control information from an earphone to a terminal device according to an embodiment of the present application;

[0056] Figure 10 This is a schematic diagram of the structure of a device for transmitting control information provided in an embodiment of the present application;

[0057] Figure 11 This is another structural diagram of the device for transmitting control information provided in an embodiment of the present application;

[0058] Figure 12 It is a structural diagram of the computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0059] In order to make the objectives, technical solutions and advantages of this application clearer, the implementation methods of this application will be further described in detail below with reference to the accompanying drawings.

[0060] When a user uses an audio and video application on a terminal device to record a song or video, he usually inserts headphones into the terminal device, collects the singing audio signal through the microphone of the headphones, sends the audio signal to the terminal device, and the terminal device sends the accompaniment audio signal to the headphones, or the terminal collects the singing audio signal, and the terminal device sends the accompaniment audio signal and the collected singing audio signal to the headphones.

[0061] As audio and video applications gain more functionality, they can provide different services for different types of headphones. This requires the transmission of control information between the terminal device and the headphones. However, there is no unified method for transmitting control information between terminals running different operating systems. For example, the methods for transmitting control information between headphones running Android and iOS differ. Therefore, a method for transmitting control information with high compatibility is needed.

[0062] Next, the execution subject of the embodiment of the present application is described.

[0063] The execution subject of the method for transmitting control information is a headset or a terminal device. The headset can be a wireless headset, such as a Bluetooth headset, or a wired headset, the interface of which includes but is not limited to a 3.5mm interface or a 6.3mm interface. The terminal device is a mobile phone or a tablet. The terminal device is installed with an audio and video application. If the audio and video application has the function of recording songs, it can also be called a karaoke application. Figure 1 In a communication system composed of a headset and a terminal device, the headset transmits first control information to the terminal device through an audio channel, and the terminal device transmits second control information to the headset through the audio channel, etc.

[0064] In terms of hardware composition, the headset includes a processor, memory, audio acquisition components, and audio output components. The processor can be a CPU (central processing unit) or SoC (system on chip), etc., which can be used to execute various instructions involved in the method.

[0065] The memory may include various volatile memories or non-volatile memories, such as SSD (solid state disk), DRAM (dynamic random access memory), etc. The memory may be used to store the collected audio and description information of the headphones.

[0066] The audio collection component may be a microphone for collecting the user's voice.

[0067] The audio output component is used to play audio signals, etc.

[0068] The structure of the terminal device is described in the following text.

[0069] Next, the method flow of transmitting control information is described, see Figure 2 Steps S101 to S104.

[0070] Step S101: In response to a first information sending condition being met, the headset performs audio encoding processing on first control information to obtain a first audio signal.

[0071] In this embodiment, after the headset is plugged into a terminal device or after the headset is wirelessly connected to the terminal device, the headset detects that a first information transmission condition is met and obtains the first control information to be transmitted. The headset uses LSB (Least Significant Bit) technology to encode the first control information in the least significant bit of the audio signal. If the headset microphone is currently collecting an audio signal, the audio signal is the audio signal collected by the headset and sent to the terminal device. If the headset microphone is currently not collecting an audio signal, the audio signal encoded with the first control information is a preset audio signal that has been pre-stored in the headset. Because the least significant bit is less likely to be perceived by humans, encoding the first control information in the least significant bit does not affect the audio signal heard by the user. Alternatively, the headset encodes the first control information into the first audio signal, indicating that the first audio signal is generated and has a different frequency or channel than the audio signal stored and collected by the headset when it is transmitted. The collected audio signal and the stored audio signal are generally human voice audio signals, so it can also be understood that the first audio signal is different from the human voice audio signal. Here, the frequency during transmission can be understood as the frequency of the audio signal when the headset sends the stored and collected audio signal to the terminal device. The frequency may be the original frequency of the audio signal or the frequency after filtering.

[0072] Optionally, the first audio signal is different from the human voice audio signal in two cases. The first case is: the frequency of the first audio signal (also called the carrier frequency) is different from the frequency of the human voice audio signal, for example, the carrier frequency of the first audio signal is higher than the frequency of the human voice audio signal, for example, the carrier frequency is higher than 18KHz, and the frequency of the human voice audio signal is not higher than 18KHz; the second case is: the channel of the first audio signal is different from the channel of the human voice audio signal, and the channel refers to the sound signal path that is independently recorded or played. For example, in a stereo or multi-channel audio system, the human voice audio signal is mainly concentrated in the first channel, and the control information can be encoded into the second channel. The first channel and the second channel are different, such as the first channel is the left channel and the second channel is the right channel. In this way, when decoding, the terminal device can distinguish the human voice audio signal and the audio signal carrying the control information according to the difference in the channels.

[0073] Optionally, when the carrier frequency of the first audio signal is different from the frequency of the human voice audio signal, the process of performing audio encoding processing on the first control information to obtain the first audio signal is as follows:

[0074] The first control information is encoded into a first audio signal using an FSK (Frequency Shift Keying) encoding method. For example, in the FSK encoding method, two frequencies are used to represent binary data 0 and 1, bit 0 is encoded as one frequency, and bit 1 is encoded as another frequency. In this way, the bit stream of the first control information can be modulated at a fixed time interval to obtain a first audio signal. In one example, the first audio signal is a modulated signal centered at 18.5kHz and 19.5kHz. The fixed time interval is called a symbol duration, denoted as T_symbol. The symbol duration should be selected to ensure sufficient signal separation and should not be too short, because being too short may cause inter-bit interference. Figure 3 A schematic diagram of the frequency spectrum of the first audio signal is also provided, with the horizontal axis representing time and the vertical axis representing frequency.

[0075] Optionally, considering that people are not sensitive to audio signals with frequencies above 18 kHz, the carrier frequency of the first audio signal can be set to be higher than 18 kHz. For example, the carrier frequencies include 18.5 kHz and 19.5 kHz, or the carrier frequencies include 18.5 kHz and 20 kHz.

[0076] Optionally, in the process of the earphone sending the first audio signal to the terminal device, the human voice audio signal collected by the earphone may be transmitted at the same time. For example, the human voice audio signal is an audio signal collected by the user while singing. The earphone mixes the human voice audio signal with the first audio signal to obtain a mixed audio signal. The mixed audio signal is then sent to the terminal device through the audio channel. Here, the mixing process can be carried out in any way, which is not limited in the embodiment of the present application, such as directly performing weighted processing on the two audio signals to obtain a mixed audio signal.

[0077] Optionally, the spectrum of the human voice audio signal may cover 18.5 kHz to 19.5 kHz. To ensure that the first audio signal can be decoded from the mixed audio signal, 18.5 kHz and 19.5 kHz are reserved as the frequencies of control information. The headset filters the human voice audio signal to cut off its spectrum above 18.5 kHz, and then mixes it with the first audio signal to obtain the mixed audio signal.

[0078] Optionally, when encoding the first control information into an audio signal, the information format may be [SYNC][Type][CHECKSUM], where SYNC is a start flag, Type is a data bit where the control information is located, and CHECKSUM is a check bit where a check value is located. The check value may be a value calculated from the control information. For example, the information sent may be 0x01 0x640x01, where 0x01 is a start flag, 0x64 is the first control information, and 0x01 is a check value.

[0079] Step S102: The headset sends a first audio signal to the terminal device through the audio channel.

[0080] The audio channel is a path for transmitting audio signals. For example, the audio channel on the terminal device side is an audio recorder, such as AVAudioRecorder (audio recorder) or AVAudioEngine (audio engine) for the iOS operating system.

[0081] In this embodiment, after obtaining the first audio signal, the headset sends the first audio signal to the terminal device through the audio channel.

[0082] Step S103: The terminal device receives a first audio signal sent by a headset connected to the terminal device.

[0083] Step S104: The terminal device performs an operation related to the first control information.

[0084] In this embodiment, if the carrier frequency of the first audio signal differs from the frequency of the human voice audio signal, after receiving the first audio signal, the terminal device performs bandpass filtering on the mixed audio signal to obtain the first audio signal, i.e., retaining the audio signal near 18.5 kHz to 19.5 kHz. The terminal device then divides the audio signal into multiple time segments based on the symbol duration (T_symbol), with each time segment containing one bit of information. The terminal device uses FFT (Fast Fourier Transform) technology to extract the dominant frequency of the signal in each time segment and determines the bit value based on the dominant frequency. For example, a dominant frequency of 18.5 kHz corresponds to bit 0, and a dominant frequency of 19.5 kHz corresponds to bit 1, thereby obtaining a bit stream. The terminal device then converts the bit stream into hexadecimal information, thereby obtaining the first control information. The terminal device performs operations related to the first control information. Different first control information results in different operations performed by the terminal device. For example, when the first control information is the description information of the headset, the terminal device can determine the type of headset, use the type of headset, display the status related to the headset, and when the first control information is the volume adjustment instruction of the earphone return, adjust the volume of the earphone return displayed on the terminal device.

[0085] In a case where the channel of the first audio signal is different from the channel of the human voice audio signal, the terminal device obtains the first audio signal from the channel where the first control information is located.

[0086] In a case where the first control information is encoded in the least significant bit of the first audio signal, the terminal device obtains the first control information from the least significant bit.

[0087] Optionally, in order to better understand the decoding process, a flow chart of the decoded first control information is also provided, see Figure 4. The terminal device first performs bandpass filtering on the received audio signal to obtain a first audio signal, and then divides the audio signal into multiple time periods according to the symbol duration (T_symbol). Each time an audio frame is collected, it is determined whether the full frame has been reached. If a first number of audio frames (the first number is the number of audio frames that can be parsed at one time or the number of audio frames occupied by the first control information) are collected, it is determined that the full frame has been reached, otherwise the full frame has not been reached. After reaching the full frame, the first number of audios is FFT processed to determine whether the first signal is parsed from the FFT-processed signal. If the start mark is parsed, it is determined that the first signal is parsed. All signals are searched and then matched with the template of the stored control information. If a template is matched, decoding is stopped and the first control information has been obtained. If the start mark is not parsed, it is determined that the match failed and a timeout is determined. If the template is not matched, it is determined that the match failed and a timeout is determined. If a timeout occurs, it means that the parsing failed and decoding is stopped. If it does not time out, it means that the next audio frame can be decoded.

[0088] Optionally, when the first control information is sent and also carries a check value, after parsing the first control information, the terminal device can use the parsed first control information to calculate the check value. If the check value is the same as the check value received by the terminal device, it means that the first control information is correct. If the check value is different from the check value received by the terminal device, it means that the first control information is incorrect and no subsequent processing is required.

[0089] The check value can also be understood as a value used to check the parsing of the first control information, which can detect and correct errors in the transmission process of the first control information. In this way, the interference resistance of the first control information can be increased through the check value.

[0090] exist Figure 2 In the process shown, there are multiple situations in which the first information sending condition is met in step S101. Two possible situations are provided below.

[0091] The first case in step S101 is: when the headset receives the second control information sent by the terminal device, the headset determines that the first information sending condition is met. The second case in step S101 is: when the headset detects an adjustment instruction related to the headset, the headset determines that the first information sending condition is met.

[0092] In the first case of step S101, the process of interaction between the terminal device and the headset is as follows: Figure 5 Steps S201 to S207.

[0093] Step S201: In response to satisfying a second information sending condition, the terminal device performs audio encoding processing on the second control information to obtain a second audio signal.

[0094] In this embodiment, after the terminal device detects that the earphone is inserted, or detects that a wireless connection is established with the earphone, if the terminal device detects that the second information sending condition is met, the second control information to be sent is obtained. The terminal device adopts LSB technology to encode the second control information in the least significant bit of the audio signal (the audio signal is accompaniment audio data, or the human voice audio signal played by the terminal device, or the human voice audio signal collected by the terminal device, or the preset audio signal stored by the terminal device). Since the least significant bit is less likely to be perceived by a person, even if the second control information is encoded in the least significant bit, it will not affect the audio signal heard by the user. Alternatively, the earphone encodes the second control information into a second audio signal. The second audio signal is an audio signal generated at a different frequency or channel than the audio signal stored and collected by the terminal device when it is sent. The second audio signal is different from the human voice audio signal.

[0095] Optionally, the second audio signal is different from the human voice audio signal in two cases: the first case is that the carrier frequency of the second audio signal is different from the frequency of the human voice audio signal, for example, the carrier frequency of the second audio signal is higher than the frequency of the human voice audio signal, the frequency of the second audio signal is higher than 18 kHz (such as 18.5 kHz and 19.5 kHz), and the frequency of the human voice audio signal is not higher than 18 kHz; the second case is that the channel of the second audio signal is different from the channel of the human voice audio signal. In this way, when decoding, the terminal device can distinguish the human voice audio signal from the audio signal carrying the second control information based on the difference in the channels.

[0096] Optionally, when the second audio signal is different from the human voice audio signal, the process of performing audio encoding processing on the second control information is the same as the process of obtaining the first audio signal in the above text, and is not repeated here.

[0097] In step S202, the terminal device sends a second audio signal to the headset through the audio channel, wherein the second control information is used to instruct the headset to send the first control information.

[0098] In this embodiment, when the terminal device sends the second audio signal to the earphone, it may also send an audio signal to the earphone at the same time. For example, the user is singing, and the terminal device sends the accompaniment audio signal to the earphone. For another example, the user is recording a video, and the terminal device sends the background audio signal of the video to the earphone. For another example, the terminal device is playing music, and the terminal device sends the audio signal of the music to the earphone. The terminal device mixes the human voice audio signal with the second audio signal to obtain a mixed audio signal. The mixed audio signal is then sent to the earphone through the audio channel. Here, the mixing process can be carried out in any manner, which is not limited in the embodiment of the present application, such as directly weighting the two audio signals to obtain a mixed audio signal.

[0099] Optionally, when the frequency of the second audio signal is different from the frequency of the human voice audio signal, the spectrum of the human voice audio signal may cover 18.5KHz to 19.5KHz. To ensure that the second audio signal can be decoded in the mixed audio signal, 18.5KHz and 19.5KHz are reserved as channels for control information. The terminal device filters the human voice audio signal to cut off its spectrum above 18.5KHz, and then mixes the second audio signal to obtain a mixed audio signal.

[0100] In step S203, the earphone receives a second audio signal and parses the second audio signal to obtain second control information.

[0101] In this embodiment, the headset uses the hardware protocol of the headset to receive the second audio signal and parse the second audio signal to obtain the second control information. The process of obtaining the second control information is the same as the process of obtaining the first control information and is not repeated here.

[0102] In step S204, the headset performs audio encoding processing on the first control information to obtain a first audio signal.

[0103] Step S205: The headset sends a first audio signal to the terminal device.

[0104] Step S206: The terminal device receives the first audio signal.

[0105] Step S207: The terminal device performs operations related to the first control information.

[0106] For the description of steps S204 to S207, see Figure 2 The process shown will not be repeated here.

[0107] exist Figure 5 In step S201 of the process shown, there are multiple situations in which the second information sending condition is met, and two possible situations are provided below.

[0108] The first situation of step S201: the terminal device detects that the headset is connected wirelessly or wired, and determines that the second information sending condition is met.

[0109] Alternatively, the terminal device detects that the headset is connected via wireless or wired connection and that the terminal device currently displays a recording interface in an audio or video application, and determines that the second information transmission condition is met. In this way, the description information of the headset can be transmitted during recording. For audio and video applications, the recording interface is a singing interface, and for video applications, the recording interface is a video recording interface.

[0110] In the first case of step S101, it indicates that the user may be preparing to record audio and video, the second control information is a headset query request, and the first control information is the description information of the headset, which is used to determine the type of the headset. The description information includes one or more of the headset name, manufacturer's identifier, or device serial number. Figure 6 , the terminal device encodes the headset query request to obtain a second audio signal. The terminal device sends the second audio signal to the headset. After receiving the second audio signal, the headset parses and obtains the second control information. The headset performs audio encoding on its own description information (i.e., the first control information) to obtain the first audio signal. The headset sends the first audio signal to the terminal device. After receiving the first audio signal, the terminal device parses and obtains the description information of the headset. The terminal device uses the description information of the headset to determine the type of headset based on the correspondence between the stored description information of the headset and the type of the headset, or obtains the type of headset from the connected server. The terminal device uses this type to display the corresponding status for the headset, that is, to provide the corresponding service. For example, when the type of the headset indicates that the headset is a dedicated headset for singing (also called a customized K song headset), a control interface for the headset can be displayed, see Figure 7 , the interface displays the name of the device, selectable sound effect options, smart noise reduction function options, hardware ear return function options and physical button descriptions, etc. The selectable sound effects include but are not limited to melodious, mellow and crisp, and the selectable sound effect options also correspond to playback options. After the user selects the corresponding sound effect, he can also audition it through the playback option. After the smart noise reduction function is selected, the noise reduction will be automatically turned on when singing in a noisy environment. After the hardware ear return function is selected, the hardware ear return function will be automatically turned off during calls and listening to music, and will be turned on when singing. The physical button description refers to the description of the physical buttons of the headset.

[0111] Optionally, there may be multiple levels of intelligent noise reduction, with different levels corresponding to different noise reduction effects, and users may also make a selection.

[0112] In addition, the control interface may also display a volume adjustment option for the hardware earphone monitor, through which the volume of the hardware earphone monitor may be adjusted. Alternatively, the volume adjustment option for the hardware earphone monitor may be displayed in another interface.

[0113] Here, if the description information of the headset is not recognized, or the description information of the headset is recognized but the corresponding type is not found, it can be determined that the recognition has failed, indicating that the headset is not a dedicated headset for singing, and sending control information to the headset can be stopped.

[0114] Optionally, after the terminal device determines that the recognition has failed, a purchase link for special headphones for singing, etc. can also be displayed.

[0115] Alternatively, see Figure 6 When the type of the earphone indicates that the earphone is a dedicated earphone for singing, the terminal device can also obtain a target identifier, which indicates that the dedicated earphone for singing is recognized. It can also be understood that the target identifier indicates a successful handshake information. Figure 6 The process represents a handshake between the headset and the terminal device. The terminal device performs audio encoding processing on the target identifier to obtain a third audio signal. The encoding processing method is the same as the processing method for encoding the second control information in the previous article and is not repeated here. The terminal device sends the third audio signal to the headset through the audio channel. The headset receives the third audio signal, parses the third audio signal to obtain the target identifier, and the headset determines that the handshake with the terminal device is successful, and the handshake is completed.

[0116] Here, the process of the earphone parsing the third audio signal to obtain the target identifier is the same as the process of parsing the first control information in the above text, and will not be repeated here.

[0117] The second situation of step S201: After the terminal device displays the control interface, the user controls the headset in the control interface, such as turning on the intelligent noise reduction function, or selecting a certain exclusive sound effect. The terminal device will detect the adjustment instruction related to the headset, determine the second control information corresponding to the adjustment instruction, and perform audio encoding processing on the second control information to obtain a second audio signal. The terminal device sends the second audio signal to the headset through the audio channel. After receiving the second audio signal, the headset parses it to obtain the second control information and executes the operation indicated by the second control information. For example, after the user turns on the intelligent noise reduction function, the headset turns on the intelligent noise reduction function after receiving the second control information. Here, the process of audio encoding processing and headset parsing the second control information is described in the previous text and will not be repeated here.

[0118] Optionally, in the second scenario of step S201, after receiving the second control information, the headset may further perform audio encoding processing on the first identifier to obtain a first audio signal, wherein the first identifier indicates that the adjustment according to the adjustment instruction is complete. The headset transmits the first audio signal to the terminal device. After receiving the fourth audio signal, if the terminal device parses the first identifier, it determines that the adjustment is complete. The terminal device does not transmit the second control information corresponding to the adjustment instruction to the headset.

[0119] It should be noted that when the terminal device detects that a headset is connected, it first Figure 6 The process shown in the figure shakes hands with the terminal device. The user can then control the headset through the control interface provided by the terminal device to continue executing Figure 5 The process shown is shown in Figure 8 .

[0120] In an optional manner, in the second case of step S101, the interaction process between the headset and the terminal device is as follows: Figure 9 Steps S301 to S304.

[0121] In step S301, in response to detecting an adjustment instruction related to the headset, the headset performs audio coding processing on first control information indicated by the adjustment instruction to obtain a first audio signal.

[0122] In this embodiment, the headset has a volume control button, and the user can use the audio control button to adjust the volume of the received accompaniment audio signal or the volume of the human voice audio signal collected by the terminal device. When the user uses the volume control button to adjust the volume, the headset detects the adjustment instruction related to the headset, determines the first control information corresponding to the adjustment instruction, and performs audio encoding processing on the first control information to obtain a first audio signal.

[0123] Step S302: The headset sends a first audio signal to the terminal device through the audio channel.

[0124] Step S303: The terminal device receives a first audio signal.

[0125] Step S304: The terminal device performs operations related to the first control information.

[0126] In this embodiment, after the terminal device parses and obtains the first control information, it makes adjustments on the control interface of the headset according to the first control information.

[0127] After step S304, after the adjustment is completed, the terminal device may further send an indication mark indicating that the adjustment is completed to the headset via an audio signal.

[0128] Optionally, Figure 9 The process shown can be found in Figure 6The handshake process shown is executed after completion.

[0129] In the solution shown in the present application, when the first information sending condition is met, the headset performs audio encoding processing on the control information to be sent to obtain an audio signal. The audio signal is sent to the terminal device through the audio channel. In this way, since the first control information is sent via an audio signal, and the audio signal is different from the human voice audio signal, or the audio signal is the human voice audio signal sent by the headset to the connected terminal device, the first control information is encoded into the least significant bit of the audio signal, so the audio signal and the human voice audio signal will not interfere with each other and will not affect the originally transmitted human voice audio signal. Moreover, since terminal devices of all operating systems can send and receive audio signals, it can be applied to terminal devices of various operating systems and has better compatibility than Bluetooth transmission. This is because when using Bluetooth transmission, different operating systems correspond to different Bluetooth protocols. For example, in the iOS system, the BLE (Bluetooth Low Energy) protocol is used, and in the Android system, the SPP (Serial Port Profile) protocol is used.

[0130] In an embodiment of the present application, after the terminal device sends a headset query request to the headset, the headset sends its own description information to the terminal device. In another implementation, after the headset detects that it is inserted into the terminal device, the headset actively sends its own description information to the terminal device so that the terminal device provides it with corresponding services.

[0131] All of the above optional technical solutions can be combined in any way to form optional embodiments of the present application, and will not be described in detail here.

[0132] Based on the same technical concept, the embodiment of the present application provides a device for transmitting control information, which is applied to headphones, such as Figure 10 As shown, the device includes:

[0133] The encoding module 1010 is configured to, in response to satisfying a first information sending condition, perform audio encoding processing on the first control information to obtain a first audio signal, wherein the first audio signal is an audio signal stored or collected by the headset, and the first control information is encoded into the least significant bit of the first audio signal, or the first audio signal is a generated audio signal having a different frequency or channel than the audio signal stored and collected by the headset when being sent;

[0134] The sending module 1020 is configured to send the first audio signal to a terminal device through an audio channel, so that the terminal device decodes the first audio signal, obtains the first control information, and performs operations related to the first control information.

[0135] In an optional manner, the frequency of the first audio signal is higher than the frequency of the audio signal stored or collected by the headset when it is sent.

[0136] In an optional manner, the apparatus further includes a receiving module 1030, configured to:

[0137] receiving, through the audio channel, a second audio signal sent by the terminal device, wherein the second audio signal is encoded with second control information, and the second control information is used to instruct the sending of the first control information;

[0138] The encoding module 1010 is configured to, in response to obtaining the second control information by decoding the second audio signal, perform audio encoding processing on the first control information to obtain a first audio signal.

[0139] In an optional manner, the second control information is a headset query request, and the first control information is description information of the headset; or,

[0140] The second control information is an adjustment instruction related to the headset, and the first control information is an identifier indicating that the adjustment is completed according to the adjustment instruction.

[0141] In an optional manner, the encoding module 1010 is configured to, in response to detecting an adjustment instruction related to the headset, perform audio encoding processing on the first control information indicated by the adjustment instruction to obtain a first audio signal.

[0142] In an optional manner, the encoding module 1010 is configured to encode the first control information into the first audio signal using a frequency shift keying encoding manner.

[0143] In an optional manner, the sending module 1020 is configured to:

[0144] performing filtering processing on the audio signal collected by the earphone to obtain a filtered audio signal, wherein a frequency of the filtered signal does not include a frequency of the first audio signal;

[0145] Mixing the filtered audio signal with the first audio signal to obtain a mixed audio signal;

[0146] The mixed audio signal is sent to the terminal device through the audio channel.

[0147] Based on the same technical concept, the embodiment of the present application provides a device for transmitting control information, which is applied to a terminal device, such as Figure 11 As shown, the device includes:

[0148] The encoding module 1110 is configured to, in response to satisfying the second information sending condition, perform audio encoding processing on the second control information to obtain a second audio signal, wherein the second audio signal is an audio signal stored or collected by the terminal device, the second control information is encoded into the least significant bit of the second audio signal, and the second audio signal is a generated audio signal having a different frequency or channel from the audio signal stored and collected by the terminal device when being sent;

[0149] The sending module 1120 is configured to send the second audio signal to the headset through the audio channel, so that the headset decodes the second audio signal, obtains the second control information, and performs operations related to the second control information.

[0150] In an optional manner, the frequency of the second audio signal is higher than the frequency of the audio signal stored and collected by the terminal device when it is sent.

[0151] In an optional manner, the encoding module 1110 is configured to encode the second control information into the second audio signal using a frequency shift keying encoding manner.

[0152] In an optional manner, the encoding module 1110 is configured to, in response to detecting that the headset is connected, encode the headset query request to obtain a second audio signal.

[0153] In an optional manner, the encoding module 1110 is configured to, in response to detecting an adjustment instruction related to the headset, perform audio encoding processing on the second control information indicated by the adjustment instruction to obtain a second audio signal.

[0154] It should be noted that the apparatus for transmitting control information provided in the above embodiments uses the division of the aforementioned functional modules as an example only. In actual applications, the aforementioned functions can be assigned to different functional modules as needed, i.e., the internal structure of the apparatus can be divided into different functional modules to perform all or part of the functions described above. Furthermore, the apparatus for transmitting control information provided in the above embodiments and the method for transmitting control information are conceptually identical. The specific implementation process is detailed in the method embodiments and will not be further elaborated here.

[0155] Figure 12The following is a block diagram of a terminal device 1200 according to an exemplary embodiment of the present application. Terminal device 1200 may be a portable mobile terminal, such as a smartphone, tablet computer, MP3 player (Moving Picture Experts Group Audio Layer III), MP4 player (Moving Picture Experts Group Audio Layer IV), laptop computer, or desktop computer. Terminal device 1200 may also be referred to as user equipment, portable terminal, laptop terminal, desktop terminal, or other similar names.

[0156] Typically, the terminal device 1200 includes a processor 1201 and a memory 1202 .

[0157] The processor 1201 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1201 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), or PLA (Programmable Logic Array). The processor 1201 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU; the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 1201 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1201 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.

[0158] Memory 1202 may include one or more computer-readable storage media, which may be non-transitory. Memory 1202 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices and flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in memory 1202 is used to store at least one instruction, which is executed by processor 1201 to implement the method for transmitting control information provided in the method embodiment of the present application.

[0159] In some embodiments, terminal device 1200 may optionally include a peripheral device interface 1203 and at least one peripheral device. The processor 1201, memory 1202, and peripheral device interface 1203 may be connected via a bus or signal lines. Each peripheral device may be connected to peripheral device interface 1203 via a bus, signal lines, or circuit boards. Specifically, the peripheral device may include at least one of a radio frequency circuit 1204, a display screen 1205, a camera assembly 1206, an audio circuit 1207, a positioning assembly 1208, and a power supply 1209.

[0160] The peripheral device interface 1203 can be used to connect at least one I / O (Input / Output)-related peripheral device to the processor 1201 and the memory 1202. In some embodiments, the processor 1201, the memory 1202, and the peripheral device interface 1203 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1201, the memory 1202, and the peripheral device interface 1203 can be implemented on separate chips or circuit boards, which is not limited in this embodiment.

[0161] The RF circuit 1204 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The RF circuit 1204 communicates with communication networks and other communication devices via electromagnetic signals. The RF circuit 1204 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. Optionally, the RF circuit 1204 includes an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and the like. The RF circuit 1204 can communicate with other terminals via at least one wireless communication protocol. Such wireless communication protocols include, but are not limited to, the World Wide Web, metropolitan area networks, intranets, various generations of mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks, and / or WiFi (Wireless Fidelity) networks. In some embodiments, the RF circuit 1204 may also include circuitry related to Near Field Communication (NFC), although this application does not limit this.

[0162] The display screen 1205 is used to display a UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 1205 is a touch screen display, the display screen 1205 also has the ability to collect touch signals on the surface or above the surface of the display screen 1205. The touch signal can be input as a control signal to the processor 1201 for processing. In this case, the display screen 1205 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, there can be one display screen 1205, which is set on the front panel of the terminal device 1200; in other embodiments, there can be at least two display screens 1205, which are respectively set on different surfaces of the terminal device 1200 or in a folding design; in other embodiments, the display screen 1205 can be a flexible display screen, which is set on the curved surface or folding surface of the terminal device 1200. Even more, the display screen 1205 can be set to a non-rectangular irregular shape, that is, a special-shaped screen. The display screen 1205 can be made of materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).

[0163] The camera assembly 1206 is used to capture images or videos. Optionally, the camera assembly 1206 includes a front camera and a rear camera. Typically, the front camera is arranged on the front panel of the terminal, and the rear camera is arranged on the back of the terminal. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, the fusion of the main camera and the wide-angle camera to realize panoramic shooting and VR (Virtual Reality) shooting function or other fusion shooting functions. In some embodiments, the camera assembly 1206 may also include a flash. The flash can be a monochrome temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.

[0164] The audio circuit 1207 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals that are input into the processor 1201 for processing, or input into the RF circuit 1204 to achieve voice communication. For the purpose of stereo sound collection or noise reduction, there can be multiple microphones, each located in different parts of the terminal device 1200. The microphone can also be an array microphone or an omnidirectional collection microphone. The speaker is used to convert electrical signals from the processor 1201 or the RF circuit 1204 into sound waves. The speaker can be a traditional thin film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert electrical signals into sound waves audible to humans, but also convert electrical signals into sound waves inaudible to humans for purposes such as ranging. In some embodiments, the audio circuit 1207 may also include a headphone jack.

[0165] The positioning component 1208 is used to locate the current geographic location of the terminal device 1200 to implement navigation or LBS (Location Based Service). The positioning component 1208 can be a positioning component based on the US GPS (Global Positioning System), China's Beidou system, or Russia's Galileo system.

[0166] The power supply 1209 is used to power the various components in the terminal device 1200. The power supply 1209 can be AC ​​power, DC power, a disposable battery, or a rechargeable battery. When the power supply 1209 includes a rechargeable battery, the rechargeable battery can be a wired rechargeable battery or a wireless rechargeable battery. A wired rechargeable battery is a battery that is charged via a wired line, while a wireless rechargeable battery is a battery that is charged via a wireless coil. The rechargeable battery can also be used to support fast charging technology.

[0167] In some embodiments, the terminal device 1200 further includes one or more sensors 1210 , including but not limited to: an acceleration sensor 1211 , a gyroscope sensor 1212 , a pressure sensor 1213 , a fingerprint sensor 1214 , an optical sensor 1215 , and a proximity sensor 1216 .

[0168] The accelerometer 1211 can detect the magnitude of acceleration along the three coordinate axes of the coordinate system established by the terminal device 1200. For example, the accelerometer 1211 can be used to detect the components of gravity acceleration along the three coordinate axes. The processor 1201 can control the display screen 1205 to display the user interface in a landscape or portrait view based on the gravity acceleration signal collected by the accelerometer 1211. The accelerometer 1211 can also be used to collect game or user motion data.

[0169] The gyroscope sensor 1212 can detect the body orientation and rotation angle of the terminal device 1200. The gyroscope sensor 1212 can work with the acceleration sensor 1211 to collect the user's 3D movements of the terminal device 1200. Based on the data collected by the gyroscope sensor 1212, the processor 1201 can implement the following functions: motion sensing (such as changing the UI based on the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.

[0170] The pressure sensor 1213 can be set on the side frame of the terminal device 1200 and / or the lower layer of the display screen 1205. When the pressure sensor 1213 is set on the side frame of the terminal device 1200, it can detect the user's grip signal of the terminal device 1200, and the processor 1201 performs left and right hand recognition or shortcut operations based on the grip signal collected by the pressure sensor 1213. When the pressure sensor 1213 is set on the lower layer of the display screen 1205, the processor 1201 controls the operable controls on the UI interface based on the user's pressure operation on the display screen 1205. The operable controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.

[0171] The fingerprint sensor 1214 is used to collect the user's fingerprint. The processor 1201 identifies the user's identity based on the fingerprint collected by the fingerprint sensor 1214, or the fingerprint sensor 1214 identifies the user's identity based on the collected fingerprint. When the user's identity is recognized as a trusted identity, the processor 1201 authorizes the user to perform relevant sensitive operations, such as unlocking the screen, viewing encrypted information, downloading software, making payments, and changing settings. The fingerprint sensor 1214 can be set on the front, back, or side of the terminal device 1200. When a physical button or manufacturer logo is provided on the terminal device 1200, the fingerprint sensor 1214 can be integrated with the physical button or manufacturer logo.

[0172] Optical sensor 1215 is used to detect ambient light intensity. In one embodiment, processor 1201 can control the display brightness of display screen 1205 based on the ambient light intensity detected by optical sensor 1215. Specifically, when the ambient light intensity is high, the display brightness of display screen 1205 is increased; when the ambient light intensity is low, the display brightness of display screen 1205 is decreased. In another embodiment, processor 1201 can also dynamically adjust the shooting parameters of camera assembly 1206 based on the ambient light intensity detected by optical sensor 1215.

[0173] Proximity sensor 1216, also known as a distance sensor, is typically located on the front panel of terminal device 1200. Proximity sensor 1216 is used to detect the distance between the user and the front of terminal device 1200. In one embodiment, when proximity sensor 1216 detects that the distance between the user and the front of terminal device 1200 is gradually decreasing, processor 1201 controls display screen 1205 to switch from the screen-on state to the screen-off state. When proximity sensor 1216 detects that the distance between the user and the front of terminal device 1200 is gradually increasing, processor 1201 controls display screen 1205 to switch from the screen-off state to the screen-on state.

[0174] Those skilled in the art will understand that Figure 12 The structure shown in the figure does not constitute a limitation on the terminal device 1200, and the terminal device 1200 may include more or fewer components than shown in the figure, or combine certain components, or adopt a different component arrangement.

[0175] In an exemplary embodiment, a computer-readable storage medium is also provided, such as a memory including instructions. The instructions can be executed by a processor in a terminal to perform the video synthesis method in the above embodiment. The computer-readable storage medium can be non-transitory. For example, the computer-readable storage medium can be a ROM (Read-Only Memory), a RAM (Random Access Memory), a CD-ROM (Compact Disc Read-Only Memory), a magnetic tape, a floppy disk, an optical data storage device, etc.

[0176] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.), and signals (including but not limited to signals transmitted between user terminals and other devices, etc.) involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use, and processing of relevant data must comply with the relevant laws, regulations, and standards of the relevant countries and regions. For example, the description information of the headphones involved in this application was obtained with full authorization.

[0177] Those skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware, or by a program to instruct the relevant hardware, and the program may be stored in a computer-readable storage medium, which may be a read-only memory, a disk, or an optical disk, etc.

[0178] The above description is merely an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.

Claims

1. A method for transmitting control information, characterized in that: The method is applied to headphones, and the method includes: In response to satisfying the first information sending condition, performing audio encoding processing on the first control information to obtain a first audio signal, wherein the first audio signal is an audio signal stored or collected by the headset, and the first control information is encoded into the least significant bit of the first audio signal, or the first audio signal is a generated audio signal having a different frequency or channel from the audio signal stored and collected by the headset when being sent; The first audio signal is sent to a terminal device through an audio channel, so that the terminal device decodes the first audio signal, obtains the first control information, and performs operations related to the first control information.

2. The method according to claim 1, characterized in that The frequency of the first audio signal is higher than the frequency of the audio signal stored or collected by the headset when it is sent.

3. The method according to claim 1 or 2, characterized in that The method further comprises: receiving, through the audio channel, a second audio signal sent by the terminal device, wherein the second audio signal is encoded with second control information, and the second control information is used to instruct the sending of the first control information; In response to satisfying the first information sending condition, performing audio encoding processing on the first control information to obtain a first audio signal includes: In response to obtaining the second control information through decoding the second audio signal, audio encoding is performed on the first control information to obtain a first audio signal.

4. The method according to claim 3, characterized in that The second control information is a headset query request, and the first control information is description information of the headset; or The second control information is an adjustment instruction related to the headset, and the first control information is an identifier indicating that the adjustment is completed according to the adjustment instruction.

5. The method according to claim 1 or 2, characterized in that In response to satisfying the first information sending condition, performing audio encoding processing on the first control information to obtain a first audio signal includes: In response to detecting an adjustment instruction related to the headset, audio encoding processing is performed on first control information indicated by the adjustment instruction to obtain a first audio signal.

6. The method according to claim 2, characterized in that The performing audio encoding processing on the first control information to obtain the first audio signal includes: The first control information is encoded into the first audio signal using a frequency shift keying encoding method.

7. The method according to claim 2 or 6, characterized in that The sending the first audio signal to the terminal device through the audio channel includes: performing filtering processing on the audio signal collected by the earphone to obtain a filtered audio signal, wherein a frequency of the filtered signal does not include a frequency of the first audio signal; Mixing the filtered audio signal with the first audio signal to obtain a mixed audio signal; The mixed audio signal is sent to the terminal device through the audio channel.

8. A method for transmitting control information, characterized in that: The method is applied to a terminal device, and the method includes: In response to satisfying the second information sending condition, performing audio encoding processing on the second control information to obtain a second audio signal, wherein the second audio signal is an audio signal stored or collected by the terminal device, the second control information is encoded into the least significant bit of the second audio signal, and the second audio signal is a generated audio signal having a different frequency or channel from the audio signal stored and collected by the terminal device when being sent; The second audio signal is sent to the headset through the audio channel, so that the headset decodes the second audio signal, obtains the second control information, and performs an operation related to the second control information.

9. The method according to claim 8, characterized in that The frequency of the second audio signal is higher than the frequency of the audio signal stored and collected by the terminal device when it is sent.

10. The method according to claim 9, characterized in that The performing audio encoding processing on the second control information to obtain a second audio signal includes: The second control information is encoded into the second audio signal using a frequency shift keying encoding method.

11. The method according to any one of claims 8 to 10, characterized in that In response to satisfying the second information sending condition, performing audio encoding processing on the second control information to obtain a second audio signal includes: In response to detecting that the headset is connected, the headset query request is encoded to obtain a second audio signal.

12. The method according to any one of claims 8 to 10, characterized in that In response to satisfying the second information sending condition, performing audio encoding processing on the second control information to obtain a second audio signal includes: In response to detecting an adjustment instruction related to the headset, audio encoding processing is performed on the second control information indicated by the adjustment instruction to obtain a second audio signal.

13. A computer device, characterized in that: The computer device includes a processor and a memory, wherein the memory stores at least one instruction, and the instruction is loaded and executed by the processor to implement the operation performed by the method for transmitting control information according to any one of claims 1 to 7 or any one of claims 8 to 12.

14. A computer-readable storage medium, characterized in that The storage medium stores at least one instruction, which is loaded and executed by the processor to implement the operation performed by the method for transmitting control information according to any one of claims 1 to 7 or any one of claims 8 to 12.

15. A computer program product, characterized in that The computer program product stores at least one instruction, which is loaded and executed by a processor to implement the operations performed by the method for transmitting control information according to any one of claims 1 to 7 or any one of claims 8 to 12.