Recording method, recording device, earphone cabin of TWS earphone and storage medium

By collecting and transmitting audio data to headphone storage in the TWS headphone bin, the problem of poor user experience during TWS headphone recording and playback is solved, and multiple microphone noise reduction recording and headphone direct playback in the headphone bin is realized, simplifying the design and improving the User experience and transmission stability.

CN119274596APending Publication Date: 2025-01-07SHENZHEN BASEUS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411344198.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-25
Publication Date
2025-01-07

AI Technical Summary

Technical Problem

The existing TWS headphone products have poor user experience during the storage and playback of recorded audio data, and need to connect to the playback device through USB and other means, which is complex in design and high in cost.

Method used

By setting up interactive modules and recording modules in the headphone compartment of TWS headphones, audio data is collected and transmitted to the headphones wired for storage. The storage space of the headphones is used to eliminate the storage modules of the headphone compartment, and the recording is improved using multi-microphones and noise reduction algorithms. Quality, realizes headphones as playback devices to directly play recording files.

Benefits of technology

It simplifies user operations, reduces design costs, improves recording quality and playback convenience, has higher transmission speed and stability, and significantly improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119274596A_ABST
    Figure CN119274596A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a recording method, a recording device, an earphone cabin of a TWS earphone and a storage medium, the recording method is applied to the earphone cabin of the TWS earphone, and the TWS earphone further comprises an earphone arranged in the earphone cabin; the recording method comprises the following steps: receiving a first operation; the first operation is used for indicating the earphone cabin to record; and in response to the first operation, collecting audio data and selecting an earphone for storing the audio data, and transmitting the collected audio data to the selected earphone in a wired mode, so that the selected earphone stores the audio data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the technical field of smart devices, and specifically to a recording method, a recording device, an earphone compartment of a true wireless stereo (TWS) earphone, and a storage medium. Background Art

[0002] At present, with the development of technology, TWS earphone products have a recording function to replace the use of voice recorders. However, the recorded audio data of current TWS earphone products is stored in the earphone compartment. When playing the recording, the earphone compartment needs to be connected to the playback device through the Universal Serial Bus (USB) or other means, so as to play it through the playback device. It is more troublesome for users to use and the user experience is poor. In addition, it is necessary to design an additional flash for the earphone compartment to store the recorded audio data. The solution is complicated and the design cost is high. Summary of the invention

[0003] Embodiments of the present application provide a recording method, a recording device, an earphone compartment of a TWS earphone, and a storage medium.

[0004] The recording method provided in the embodiment of the present application is applied to an earphone compartment of a TWS earphone, wherein the TWS earphone further comprises: an earphone, wherein the earphone is arranged in the earphone compartment; the recording method comprises:

[0005] Receiving a first operation; the first operation is used to instruct the earphone compartment to record;

[0006] In response to the first operation, audio data is collected and a headset for storing the audio data is selected, and the collected audio data is transmitted to the selected headset in a wired manner so that the selected headset stores the audio data.

[0007] The recording device provided in the embodiment of the present application is applied to an earphone compartment of a TWS earphone, wherein the TWS earphone further comprises: an earphone, wherein the earphone is arranged in the earphone compartment; and the recording device comprises:

[0008] Interaction module: used to receive a first operation; the first operation is used to instruct the earphone compartment to record;

[0009] Recording module: used for collecting audio data and selecting headphones for storing audio data in response to the first operation, and transmitting the collected audio data to the selected headphones via a wired manner so that the selected headphones store the audio data.

[0010] The earphone compartment of the TWS earphone provided in the embodiment of the present application includes: a processor and a memory, the memory is used to store a computer program, and the processor is used to call and run the computer program stored in the memory to execute any recording method provided in the embodiment of the present application.

[0011] The storage medium provided in the embodiments of the present application is used to store a computer program, and the computer program enables a computer to execute any recording method provided in the embodiments of the present application.

[0012] The recording method, recording device, earphone compartment and storage medium of the TWS earphone provided in the embodiments of the present application, the earphone compartment collects audio data, transmits it to the earphone in a wired manner, and the earphone stores the audio data collected by the earphone compartment. In this way, the storage space of the earphone is used to store the audio data, and there is no need to design a storage module in the earphone compartment, thereby saving costs. At the same time, compared with the wireless transmission method, the wired transmission method has a faster transmission speed and the transmitted audio data is more stable and reliable. The earphone can be used as a playback device to directly play the recording, without the need for the earphone compartment to be connected to other playback devices for playback. This is easy to use and improves the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0014] Figure 1 A schematic diagram of the implementation flow of the recording method provided in the embodiment of the present application;

[0015] Figure 2 A schematic diagram of the structure of a recording device 200 provided in an embodiment of the present application;

[0016] Figure 3 A schematic structural diagram of an earphone compartment 300 of a TWS earphone provided in an embodiment of the present application;

[0017] Figure 4 This is a schematic structural diagram of a chip according to an embodiment of the present application. DETAILED DESCRIPTION

[0018] The following will describe the technical solutions in the embodiments of the present application in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0019] It should be noted that in the embodiments of the present application, the term "and / or" is only a description of the association relationship of the associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the embodiments of the present application, the character " / " generally indicates that the associated objects before and after are in an "or" relationship.

[0020] In the description of the embodiments of the present application, the term "corresponding" may indicate a direct or indirect correspondence between two items, or an association relationship between the two items, or a relationship between indication and being indicated, configuration and being configured, and the like.

[0021] To facilitate understanding of the technical solutions of the embodiments of the present application, the relevant technologies of the embodiments of the present application are described below. The following related technologies can be arbitrarily combined with the technical solutions of the embodiments of the present application as optional solutions, and they all belong to the protection scope of the embodiments of the present application.

[0022] Figure 1 A schematic diagram of the implementation flow of the recording method provided in the embodiment of the present application is shown in FIG. Figure 1 As shown, the recording method provided in the embodiment of the present application is applied to the earphone compartment of the TWS earphone, and the TWS earphone also includes: earphones, and the earphones are arranged in the earphone compartment; the method includes the following steps:

[0023] Step 101: Receive a first operation; the first operation is used to instruct the earphone compartment to record.

[0024] In the embodiment of the present application, an interactive module may be provided in the earphone compartment for the user to perform a first operation. For example, a physical recording button may be provided, and the first operation is to press the recording button to instruct the earphone compartment to start recording; a display screen may also be provided to interact with the user, and the first operation is to click the recording button on the display screen to instruct the earphone compartment to start recording.

[0025] Step 102: In response to the first operation, audio data is collected and a headset for storing the audio data is selected, and the collected audio data is transmitted to the selected headset in a wired manner so that the selected headset stores the audio data.

[0026] In the related art, when the earphone pod is recording, the microphone needs to be positioned facing the speaker. When the person is speaking in another direction or the external environment is noisy, the recording will not be clear, the quality will be very poor, and the user experience will be bad.

[0027] In the embodiment of the present application, the earphone compartment can be provided with multiple microphones, and directional sound pickup can be achieved through the noise reduction algorithm, the direction of the speaker can be identified, the quality of the collected audio data can be improved, interference and noise in the environment can be suppressed, and clear voice recording can be achieved in a noisy environment. Exemplarily, the noise reduction algorithm can adopt the Beamforming dual-microphone call noise reduction algorithm, and other noise reduction algorithms can also be used in actual applications, which is not limited in the present application.

[0028] Here, the earphone is placed in the earphone compartment, and recording can be performed without taking out the earphone. Exemplarily, after the earphone compartment and the earphone are connected through a POGP PIN interface, the audio data can be transmitted to the earphone via a wired manner without the need to design a new interface.

[0029] Exemplarily, the earphone compartment can process the collected audio data in real time, encode the audio data and cache it in memory, and then transmit it to the earphone. After the earphone receives the audio data, it decodes and stores it.

[0030] In the embodiment of the present application, the earphone may include multiple earphones, and the earphone selected for storing audio data includes:

[0031] Acquire first information, where the first information includes power information and storage capacity information of multiple earphones;

[0032] Based on the first information, a first earphone for storing audio data is selected from a plurality of earphones.

[0033] In actual application, the headset may include two headsets. According to the first information, one of the two headsets is selected to store the audio data, rather than storing both headsets together, so that the storage space of the headset can be fully utilized to store more audio data. Exemplarily, the headset may also include at least three headsets, which can be applied to more usage scenarios.

[0034] In the embodiment of the present application, the earphone compartment can use the serial communication protocol (Universal Asynchronous Receiver / Transmitter, UART) to send instructions to multiple earphones through the POGO PIN wired connection method to obtain power information and storage capacity information. After receiving the instructions, each earphone sends instructions containing its current earphone power information and storage capacity information to the earphone compartment. The earphone compartment can obtain the power information and storage capacity information of multiple earphones based on the instructions containing the earphone power information and / or storage capacity information fed back by each earphone. In actual application, the earphone compartment can also use other methods to obtain the first information, and the embodiment of the present application does not limit this.

[0035] The headphone compartment can determine the recording time of each headphone according to the power and storage space of each headphone, and the headphone compartment determines the headphone with the longest recording time among multiple headphones as the first headphone.

[0036] Exemplarily, the first recording time corresponding to the headset can be determined based on the power information and discharge current corresponding to the headset, and the second recording time corresponding to the headset can be determined based on the storage capacity corresponding to the headset and the capacity occupied per unit recording time; the first recording time and the second recording time are compared, and the shorter recording time is selected as the third recording time of the headset; the third recording time is the recording time of the headset. Then, the third recording time of each headset among multiple headsets is compared, and the headset with the longest recording time is selected from the multiple headsets as the first headset.

[0037] Exemplarily, the charging case can calculate the remaining recording time P=N / M, that is, the first recording time, based on the earphone power N mAh and the discharge current M mA; the charging case can calculate the remaining recording time Z=X / Y, that is, the second recording time, based on the earphone remaining storage capacity X MB and the unit recording time occupied capacity Y MB / min.

[0038] The discharge current of the earphone and the capacity occupied per unit recording time are fixed. When the earphone is recording for the first time, the earphone compartment can interact with the earphone through the UART transmission protocol to obtain the discharge current of the earphone and the capacity occupied per unit recording time, and save the discharge current and the capacity occupied per unit recording time of the earphone. When it is not the first time for the earphone to record, the earphone compartment can directly obtain the discharge current and the capacity occupied per unit recording time of the earphone from the local earphone compartment without interacting with the earphone again. In actual application, the earphone compartment can also obtain the discharge current of the earphone and the capacity occupied per unit recording time of the earphone by other methods, such as configuring the discharge current and the capacity occupied per unit recording time of the earphone for the earphone compartment in advance, without the need for the earphone compartment to interact with the earphone. The embodiments of the present application do not limit this.

[0039] Here, the shorter recording time between the first recording time and the second recording time is selected as the possible recording time of the headset because when there is no power, the headset cannot record even if there is capacity, and vice versa, so the shorter time is selected as the possible recording time of the headset. Factors affecting the recording time of the headset include power and storage capacity, and the recording times estimated by these two factors may be different. The method of determining the recording time of the headset by power and storage capacity can accurately determine the possible recording time of the headset by selecting the headset.

[0040] Based on this, in an optional implementation manner of the present application, based on the first information, selecting a first earphone for storing audio data from a plurality of earphones includes:

[0041] Determine a first recording duration corresponding to each earphone based on the power and discharge current corresponding to each earphone in the plurality of earphones; determine a second recording duration corresponding to each earphone based on the storage capacity corresponding to each earphone and the capacity occupied per unit recording duration; compare the first recording duration and the second recording duration of each earphone, and select the shorter recording duration as the third recording duration of each earphone;

[0042] A first earphone is selected from the plurality of earphones based on the third recording duration of each earphone.

[0043] In actual application, other methods can also be used to determine the first earphone, and the embodiments of the present application are not limited to this. For example, the earphone compartment can display the recording time of each earphone through the display screen. The user estimates the current recording time and selects the appropriate earphone for recording, thereby making full use of the storage function of the earphone. For example, if the user's recording time is short, the earphone with a shorter recording time can be selected to store the audio data, thereby avoiding the situation where a single earphone cannot fully store the data when a long recording is required.

[0044] In the embodiment of the present application, when the first earphone is recording, the other earphones among the multiple earphones except the first earphone can be automatically charged in the earphone compartment to replenish power.

[0045] In an embodiment of the present application, the multiple earphones also include a second earphone. When the power of the first earphone is low and / or the storage space is insufficient, the second earphone among the multiple earphones is switched to continue storage, and the earphone compartment transmits the remaining unstored audio data collected to the second earphone among the multiple earphones via a wired manner.

[0046] Exemplarily, the earphone compartment obtains the power information and storage capacity information of each earphone, and selects the second earphone according to the power information and storage capacity information of each earphone. The specific selection process of the second earphone is the same as the process of selecting the first earphone. For details, please refer to the description in the aforementioned embodiment, which will not be repeated here.

[0047] Based on this, in an optional implementation manner of the present application, the multiple headphones include a second headphone, and the recording method further includes:

[0048] During the process of storing audio data in the first earphone, if the remaining capacity of the first earphone is less than a first threshold and / or the power of the first earphone is less than a second threshold, the second earphone is selected and the collected remaining unstored audio data is transmitted to the second earphone via a wired manner, so that the second earphone stores the remaining unstored audio data.

[0049] It can be understood that, when the remaining capacity of the first earphone is less than the first threshold and / or the power of the first earphone is less than the second threshold, the second earphone is the earphone with the longest recording time among the multiple earphones except the first earphone, and when the remaining capacity of the second earphone is less than the first threshold and / or the power of the first earphone is less than the second threshold, the earphone with the longest recording time is re-determined from the multiple earphones to continue storing the audio data.

[0050] Here, after the first earphone stops storing, the earphone compartment starts charging the first earphone. When the second earphone is storing, the earphone compartment stops charging the second earphone. This is because the positive pole of the POGO PIN of the earphone compartment needs to maintain a stable voltage V when the earphone is charging. If the voltage is lower than V, the earphone hardware cannot enter charging. When the earphone compartment uses a wired method to transmit data, it is necessary to output high and low levels at the positive pole of the POGO PIN to form binary data, and finally form audio data according to the protocol. When recording, the earphone compartment needs to continuously transmit the audio data to the earphone through the POGO PIN for storage. The positive pole of the POGO PIN cannot maintain a stable charging voltage, and the earphone cannot be charged. If the earphone compartment is recording and charging at the same time, and the earphone can be charged, the earphone compartment cannot transmit the audio data to the earphone by wire, and the recording cannot be saved on the earphone.

[0051] When the remaining capacity of the first earphone is less than a first threshold and / or the power of the first earphone is less than a second threshold, the first earphone sends second information to the earphone compartment, and the second information indicates that the remaining capacity of the first earphone is less than the first threshold and / or the power of the first earphone is less than the second threshold, so that the earphone compartment recognizes that the first earphone can no longer continue recording, the earphone compartment stops transmitting audio data to the first earphone, starts charging the first earphone, and the earphone compartment selects the second earphone for recording. Before the second earphone starts recording, the second earphone is in a charging state. When the second earphone starts recording, the earphone compartment stops charging the second earphone.

[0052] Based on this, in an optional implementation manner of the present application, before the collected remaining unstored audio data is transmitted to the second headset via a wired manner, the second headset is in a charging state, and the recording method further includes:

[0053] receiving second information sent by the first headset, where the second information indicates that the remaining capacity of the first headset is less than a first threshold and / or the power level of the first headset is less than a second threshold;

[0054] Stop charging the second earphone.

[0055] In the embodiment of the present application, the recording method further includes:

[0056] When the first condition is met, stop collecting audio data; the first condition includes one or more of the following:

[0057] A second operation is received, where the second operation is used to instruct the earphone compartment to stop recording;

[0058] The power levels of multiple earphones are all lower than the preset threshold;

[0059] The storage capacity of multiple earphones is less than a preset threshold.

[0060] Here, when the user does not need to record, the user can actively interact with the earphone compartment and instruct the earphone compartment to stop recording. For example, a physical button for stopping recording can be set, and the second operation is to press the stop recording button; the display screen can also be set to interact with the user, and the second operation is to click the stop recording button on the display screen; when the power and / or storage capacity of all earphones in the earphone compartment does not meet the preset threshold, the earphone compartment actively stops recording; in the embodiment of the present application, when the earphone compartment actively stops recording, a reminder to stop recording can also be sent to the user, which can be sound, vibration or light, etc., and the embodiment of the present application is not limited to this.

[0061] After stopping recording, the earphone compartment can present the completed recording file through the display screen. For example, if a complete recording file is partially stored in the first earphone and the other part is stored in the second earphone, the earphone compartment can display the complete recording file. For example, the earphone compartment only displays b_20240101_1203.mp3, but the two recording parts b_20240101_1203_part1.mp3 and b_20240101_1203_part2.mp3 are stored in the two earphones respectively.

[0062] For the stored recording files, the user can play them. For example, the earphones include a first earphone and a second earphone. The user takes the earphones out of the earphone compartment and performs a third operation. The third operation is a selection operation for the audio in the audio list. The earphone compartment sends a first instruction to the earphone storing the selected audio data. The first instruction is used to instruct the earphone to play the selected audio data. After receiving the first instruction, the earphone storing the selected audio data transmits the selected audio data to the other earphone of the first earphone and the second earphone, so that the first earphone and the second earphone synchronously play the selected audio data.

[0063] Based on this, in an optional implementation manner of the present application, the earphone includes a first earphone and a second earphone, and the recording method further includes:

[0064] Present a list of audio files to be played;

[0065] receiving a third operation, where the third operation is a selection operation on an audio in the audio list;

[0066] In response to the third operation, a first instruction is sent to the earphone storing the selected audio data in the first earphone and the second earphone, and the first instruction is used to instruct to play the selected audio, so that the earphone storing the selected audio data sends the selected audio data to the other earphone of the first earphone and the second earphone, and the sent audio data is used for playback by the other earphone.

[0067] In the embodiment of the present application, the user can directly select the audio to be played from the audio list presented in the headphone pod. The headphone pod and the earphone can interact via Bluetooth. The earphone can directly play the recording as a playback device. The headphone pod does not need to be connected to other playback devices for playback, which is easy to use and improves the user experience.

[0068] Here, multiple earphones can play audio synchronously by adding timestamps and time synchronization. Exemplarily, the recording file is saved in the first earphone, and the first earphone has established a Bluetooth connection with other earphones. The first earphone will synchronize the system time to other earphones at preset intervals to ensure that the time of the first earphone and other earphones is consistent. Before starting to play the recording file, the first earphone first decodes a small part of the audio data, and then adds the current system timestamp to the front part of the audio data packet format as a data packet header. One of the data packets with timestamps is saved in the buffer of the first earphone, and the other identical data packet is transmitted to other earphones via Bluetooth. After receiving, other earphones are also saved in the buffer, so that the buffers of multiple earphones have the same audio data. The first earphone subtracts the current system time from the time of the audio data packet header to obtain a time offset of X milliseconds. The first earphone sends the time offset X to other earphones, and then multiple earphones will play the audio data whose audio data packet time + offset X is equal to the current time, so as to achieve the effect of synchronous playback of multiple earphones. The first earphone will continue to decode the audio data, add timestamps and send them to the right ear cache via Bluetooth, and synchronize the system time to other earphones until the recording file is fully played.

[0069] Through the recording method provided in the embodiment of the present application, there is no need to design a flash for the earphone compartment, which saves costs and makes the solution simpler. The earphone compartment transmits audio data to the earphone via the POGO PIN wired method, which is faster, more stable and reliable than the wireless method. The earphone compartment uses multiple microphones and noise reduction algorithms to make the recording content clearer and the user experience better. The earphone compartment does not need to be opened, and the earphones do not need to be taken out to record. The earphone compartment can automatically select which earphone the recording file is stored on, which increases the convenience of recording. A single earphone is used to store recording files, which makes full use of the earphone storage space, increases the recording time, and provides a better user experience. The earphone compartment can present a file list, and the user can select the audio file to be played through the earphone compartment. It supports instant playback of local recording files, which is convenient to operate and provides a better user experience.

[0070] The present application embodiment also provides a recording device 200, referring to Figure 2 The recording device 200 in this embodiment is applied to the earphone compartment of the TWS earphone, and the TWS earphone also includes: an earphone, and the earphone is arranged in the earphone compartment; the recording device 200 includes:

[0071] Interaction module 210: used to receive a first operation; the first operation is used to instruct the earphone compartment to record;

[0072] The recording module 220 is used to collect audio data and select a headset for storing the audio data in response to the first operation, and transmit the collected audio data to the selected headset via a wired manner so that the selected headset stores the audio data.

[0073] In an embodiment of the present application, the earphones include multiple earphones, and the recording module 220 is used to obtain first information, where the first information includes power information and storage capacity information of the multiple earphones; based on the first information, a first earphone for storing audio data is selected from the multiple earphones.

[0074] In the embodiment of the present application, the recording module 220 is used to determine a first recording duration corresponding to each earphone based on the power and discharge current corresponding to each earphone among a plurality of earphones; determine a second recording duration corresponding to each earphone based on the storage capacity corresponding to each earphone and the capacity occupied per unit recording duration; compare the first recording duration and the second recording duration of each earphone, and select the recording duration with a shorter recording duration as the third recording duration of each earphone; and select a first earphone from the plurality of earphones based on the third recording duration of each earphone.

[0075] In an embodiment of the present application, the multiple earphones include a second earphone, and the recording module 220 is used to select the second earphone during the process of storing audio data in the first earphone, if the remaining capacity of the first earphone is less than a first threshold and / or the power of the first earphone is less than a second threshold, and transmit the collected remaining unstored audio data to the second earphone via a wired manner, so that the second earphone stores the remaining unstored audio data.

[0076] In an embodiment of the present application, before the remaining collected and unstored audio data is transmitted to the second earphone via a wired manner, the second earphone is in a charging state, and the recording module 220: is used to receive second information sent by the first earphone, the second information indicating that the remaining capacity of the first earphone is less than a first threshold and / or the power of the first earphone is less than a second threshold; and stop charging the second earphone.

[0077] In an embodiment of the present application, the recording module 220 is used to stop collecting audio data when a first condition is met; the first condition includes one or more of the following: receiving a second operation, the second operation is used to instruct the earphone compartment to stop recording; the power of multiple earphones is less than a preset threshold; the storage capacity of multiple earphones is less than a preset threshold.

[0078] In an embodiment of the present application, the earphones include a first earphone and a second earphone, and an interaction module 210 is used to present an audio list to be played; receive a third operation, which is a selection operation for audio in the audio list; a recording module 220: is used to respond to the third operation and send a first instruction to the earphone storing the selected audio data in the first earphone and the second earphone, the first instruction is used to instruct to play the selected audio, so that the earphone storing the selected audio data sends the selected audio data to the other earphone of the first earphone and the second earphone, and the sent audio data is used for playback by the other earphone.

[0079] Those skilled in the art should understand that Figure 2 The implementation functions of each module in the recording device 200 shown can be understood by referring to the relevant description of the aforementioned method. Figure 2 The functions of the modules in the recording device 200 shown can be implemented by a program running on a processor, or by a specific logic circuit.

[0080] In an embodiment of the present application, the recording device 200 can be disposed in the earphone compartment of the TWS earphone.

[0081] Figure 3 It is a schematic structural diagram of an earphone compartment 300 of a TWS earphone provided in an embodiment of the present application. Figure 3 The earphone compartment 300 of the TWS earphone shown includes a processor 310, which can call and run a computer program from a memory to implement the method in the embodiment of the present application.

[0082] Alternatively, if Figure 3 As shown, the earphone compartment 300 of the TWS earphone may further include a memory 320. Among them, the processor 310 may call and run a computer program from the memory 320 to implement the method in the embodiment of the present application.

[0083] The memory 320 may be a separate device independent of the processor 310 , or may be integrated into the processor 310 .

[0084] Alternatively, if Figure 3 As shown, the earphone compartment 300 of the TWS earphone may also include a transceiver 330, and the processor 310 may control the transceiver 330 to communicate with other devices. Specifically, it may send information or data to other devices, or receive information or data sent by other devices.

[0085] The transceiver 330 may include a transmitter and a receiver. The transceiver 330 may further include an antenna, and the number of the antennas may be one or more.

[0086] The earphone compartment 300 of the TWS earphone can specifically be the recording device 200 of the embodiment of the present application, and the earphone compartment 300 of the TWS earphone can implement the corresponding processes implemented by the recording device 200 in each method of the embodiment of the present application. For the sake of brevity, they will not be repeated here.

[0087] Exemplarily, an embodiment of the present application also provides a computer program product, including a computer program, which can be executed by the processor 310 of the earphone compartment 300 of the TWS earphone to complete any of the aforementioned method steps.

[0088] Figure 4 It is a schematic structural diagram of the chip of an embodiment of the present application. Figure 4 The chip 400 shown includes a processor 410, which can call and run a computer program from a memory to implement the method in the embodiment of the present application.

[0089] Alternatively, if Figure 4 As shown, the chip 400 may further include a memory 420. The processor 410 may call and run a computer program from the memory 420 to implement the method in the embodiment of the present application.

[0090] The memory 420 may be a separate device independent of the processor 410 , or may be integrated into the processor 410 .

[0091] Optionally, the chip 400 may further include an input / output interface 430. The processor 410 may control the input / output interface 430 to communicate with other devices or chips, and specifically, may obtain information or data sent by other devices or chips.

[0092] Optionally, the chip 400 may further include an output interface 440. The processor 410 may control the output interface 440 to communicate with other devices or chips, and specifically, may output information or data to other devices or chips.

[0093] The chip can be applied to the earphone compartment 300 of the TWS earphone in the embodiment of the present application, and the chip can implement the corresponding processes implemented by the earphone compartment 300 of the TWS earphone in each method of the embodiment of the present application. For the sake of brevity, it will not be repeated here.

[0094] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0095] It should be understood that the processor of the embodiment of the present application may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method embodiment can be completed by the hardware integrated logic circuit or software instructions in the processor. The above processor can be a general processor, a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to perform, or the hardware and software modules in the decoding processor are combined and performed. The software module can be located in a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, and other mature storage media in the art. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.

[0096] It can be understood that the memory in the embodiments of the present application can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct RAM bus random access memory (DR RAM). It should be noted that the memory of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0097] It should be understood that the above-mentioned memory is exemplary but not restrictive. For example, the memory in the embodiments of the present application may also be static random access memory (static RAM, SRAM), dynamic random access memory (dynamic RAM, DRAM), synchronous dynamic random access memory (synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (double data rate SDRAM, DDR SDRAM), enhanced synchronous dynamic random access memory (enhanced SDRAM, ESDRAM), synchronous link dynamic random access memory (synch link DRAM, SLDRAM) and direct memory bus random access memory (Direct Rambus RAM, DR RAM), etc. That is to say, the memory in the embodiments of the present application is intended to include but not limited to these and any other suitable types of memory.

[0098] The embodiment of the present application also provides a storage medium for storing a computer program. The storage medium can be applied to the earphone compartment 300 of the TWS earphone in the embodiment of the present application, and the computer program enables the computer to execute the corresponding processes implemented by the earphone compartment 300 of the TWS earphone in each method of the embodiment of the present application, which will not be repeated here for the sake of brevity.

[0099] Those of ordinary skill in the art will appreciate that the modules and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0100] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and modules described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0101] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of modules is only a logical network element division. There may be other division methods in actual implementation. For example, multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some output interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.

[0102] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0103] In addition, each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.

[0104] If the function is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can essentially or partly contribute to the prior art or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a headset compartment 300 of a TWS headset, etc.) to execute all or part of the steps of the methods of each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, and other media that can store program codes.

[0105] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A recording method, applied to an earphone compartment of a TWS earphone, the TWS earphone further comprising: An earphone, wherein the earphone is arranged in the earphone compartment; wherein the recording method comprises: Receiving a first operation; the first operation is used to instruct the earphone compartment to record; In response to the first operation, audio data is collected and a headset for storing the audio data is selected, and the collected audio data is transmitted to the selected headset in a wired manner so that the selected headset stores the audio data.

2. The recording method according to claim 1, characterized in that: The earphone comprises a plurality of earphones, and the earphone selected for storing audio data comprises: Acquire first information, where the first information includes power information and storage capacity information of the multiple earphones; Based on the first information, a first earphone for storing audio data is selected from the plurality of earphones.

3. The recording method according to claim 2, characterized in that: The selecting, based on the first information, a first earphone for storing audio data from the plurality of earphones comprises: Determine a first recording duration corresponding to each earphone based on the power and discharge current corresponding to each earphone in the plurality of earphones; determine a second recording duration corresponding to each earphone based on the storage capacity corresponding to each earphone and the capacity occupied per unit recording duration; compare the first recording duration and the second recording duration of each earphone, and select the shorter recording duration as the third recording duration of each earphone; The first earphone is selected from the multiple earphones based on the third recording duration of each earphone.

4. The recording method according to claim 2, characterized in that: The plurality of earphones include a second earphone, and the recording method further includes: During the process of storing the audio data in the first earphone, if the remaining capacity of the first earphone is less than a first threshold and / or the power of the first earphone is less than a second threshold, the second earphone is selected, and the collected remaining unstored audio data is transmitted to the second earphone via a wired manner, so that the second earphone stores the remaining unstored audio data.

5. The recording method according to claim 4, characterized in that: Before transmitting the remaining unstored collected audio data to the second headset via a wired manner, the second headset is in a charging state, and the recording method further includes: receiving second information sent by the first headset, where the second information indicates that the remaining capacity of the first headset is less than a first threshold and / or the power level of the first headset is less than a second threshold; Stop charging the second earphone.

6. The recording method according to claim 4, characterized in that: The recording method further comprises: When the first condition is met, stop collecting audio data; the first condition includes one or more of the following: Receiving a second operation, where the second operation is used to instruct the earphone compartment to stop recording; The power levels of the multiple earphones are all less than a preset threshold; The storage capacities of the multiple earphones are all smaller than a preset threshold.

7. The recording method according to any one of claims 1 to 6, characterized in that: The earphone comprises a first earphone and a second earphone, and the recording method further comprises: Present a list of audio files to be played; receiving a third operation, where the third operation is a selection operation for an audio in the audio list; In response to the third operation, a first instruction is sent to the earphone storing the selected audio data among the first earphone and the second earphone, wherein the first instruction is used to instruct to play the selected audio, so that the earphone storing the selected audio data sends the selected audio data to the other earphone among the first earphone and the second earphone, and the sent audio data is used for playback by the other earphone.

8. A recording device, applied to an earphone compartment of a TWS earphone, the TWS earphone further comprising: An earphone, wherein the earphone is arranged in the earphone compartment; wherein the recording device comprises: Interaction module: used to receive a first operation; the first operation is used to instruct the earphone compartment to record; Recording module: used for collecting audio data and selecting headphones for storing audio data in response to the first operation, and transmitting the collected audio data to the selected headphones via a wired manner so that the selected headphones store the audio data.

9. An earphone compartment of a TWS earphone, characterized in that: include: A processor and a memory, the memory being used to store a computer program, the processor being used to call and run the computer program stored in the memory to execute the recording method as described in any one of claims 1 to 7.

10. A storage medium, characterized in that: Used to store a computer program, wherein the computer program enables a computer to execute the recording method according to any one of claims 1 to 7.