WO2023005412A1 - 录音方法、装置、无线耳机及存储介质 - Google Patents
录音方法、装置、无线耳机及存储介质 Download PDFInfo
- Publication number
- WO2023005412A1 WO2023005412A1 PCT/CN2022/096558 CN2022096558W WO2023005412A1 WO 2023005412 A1 WO2023005412 A1 WO 2023005412A1 CN 2022096558 W CN2022096558 W CN 2022096558W WO 2023005412 A1 WO2023005412 A1 WO 2023005412A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- wireless earphone
- audio data
- wireless
- data packet
- earphone
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 121
- 238000007781 pre-processing Methods 0.000 claims abstract description 17
- 238000012545 processing Methods 0.000 claims description 38
- 238000013480 data collection Methods 0.000 claims description 19
- 230000001360 synchronised effect Effects 0.000 claims description 17
- 238000012805 post-processing Methods 0.000 claims description 12
- 230000005540 biological transmission Effects 0.000 claims description 11
- 230000008569 process Effects 0.000 abstract description 34
- 230000000694 effects Effects 0.000 abstract description 18
- 238000010586 diagram Methods 0.000 description 14
- 210000005069 ears Anatomy 0.000 description 11
- 238000004891 communication Methods 0.000 description 10
- 230000005236 sound signal Effects 0.000 description 9
- 230000006870 function Effects 0.000 description 7
- 238000005516 engineering process Methods 0.000 description 6
- 230000008859 change Effects 0.000 description 5
- 230000008878 coupling Effects 0.000 description 2
- 238000010168 coupling process Methods 0.000 description 2
- 238000005859 coupling reaction Methods 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000009467 reduction Effects 0.000 description 2
- 241000661823 Canopus Species 0.000 description 1
- 230000000903 blocking effect Effects 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000003631 expected effect Effects 0.000 description 1
- 230000005669 field effect Effects 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
- 230000002194 synthesizing effect Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/64—Automatic arrangements for answering calls; Automatic arrangements for recording messages for absent subscribers; Arrangements for recording conversations
- H04M1/65—Recording arrangements for recording a message from the calling party
- H04M1/656—Recording arrangements for recording a message from the calling party for recording conversations
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/64—Automatic arrangements for answering calls; Automatic arrangements for recording messages for absent subscribers; Arrangements for recording conversations
- H04M1/65—Recording arrangements for recording a message from the calling party
- H04M1/658—Means for redirecting recorded messages to other extensions or equipment
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/72409—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
- H04M1/72412—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories using two-way short-range wireless interfaces
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/7243—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
- H04M1/72433—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for voice messaging, e.g. dictaphones
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R1/00—Details of transducers, loudspeakers or microphones
- H04R1/10—Earpieces; Attachments therefor ; Earphones; Monophonic headphones
- H04R1/1091—Details not provided for in groups H04R1/1008 - H04R1/1083
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R2201/00—Details of transducers, loudspeakers or microphones covered by H04R1/00 but not provided for in any of its subgroups
- H04R2201/10—Details of earpieces, attachments therefor, earphones or monophonic headphones covered by H04R1/10 but not provided for in any of its subgroups
- H04R2201/103—Combination of monophonic or stereophonic headphones with audio players, e.g. integrated in the headphone
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Definitions
- the present application relates to the field of audio processing technology, and more specifically, to a recording method, device, wireless earphone and storage medium.
- TWS True Wireless Stereo
- Current wireless earphones are usually provided with a microphone for sound collection in a recording scene.
- the recording method used is usually fixed, and the recording method is not flexible enough.
- the present application proposes a recording method, device, wireless earphone and storage medium.
- the embodiment of the present application provides a recording method, which is applied to a first wireless earphone, the first wireless earphone is connected to a second wireless earphone and an electronic device, and the first wireless earphone and the second wireless earphone
- the earphones are all provided with an audio collection device
- the method includes: obtaining the wearing state of the first wireless earphone and the second wireless earphone; if the wearing state of the first wireless earphone and the second wireless earphone is When the state changes, adjust the recording mode according to the wireless earphones in the wearing state of the first wireless earphone and the second wireless earphone; control the wireless earphones in the wearing state to collect audio data; according to the recording mode, set the The audio data is pre-processed; and the pre-processed audio data is transmitted to the electronic device.
- the embodiment of the present application provides a recording device, which is applied to a first wireless earphone, the first wireless earphone is connected to a second wireless earphone and an electronic device, and the first wireless earphone and the second wireless earphone
- the earphones are all provided with an audio acquisition device, and the device includes: a state acquisition module, a mode adjustment module, a data acquisition module, a data processing module and a data transmission module, wherein the state acquisition module is used to acquire the first wireless earphone and The wearing state of the second wireless earphone; the mode adjustment module is configured to change the wearing state of the wireless earphones of the first wireless earphone and the second wireless earphone according to the first wireless earphone and the The wireless earphones in the wearing state in the second wireless earphones adjust the recording mode; the data collection module is used to control the wireless earphones in the wearing state to collect audio data; the data processing module is used for recording according to the recording mode.
- the audio data is preprocessed; the data transmission
- the embodiment of the present application provides a wireless headset, including: one or more processors; memory; one or more application programs, wherein the one or more application programs are stored in the memory and The one or more programs are configured to be executed by the one or more processors, and the one or more programs are configured to execute the recording method provided in the first aspect above.
- the embodiment of the present application provides a computer-readable storage medium, where program code is stored in the computer-readable storage medium, and the program code can be invoked by a processor to execute the recording provided in the first aspect above. method.
- FIG. 1 shows a schematic diagram of an application environment provided by an embodiment of the present application.
- FIG. 2 shows another schematic diagram of an application environment provided by an embodiment of the present application.
- FIG. 3 shows another schematic diagram of an application environment provided by an embodiment of the present application.
- Fig. 4 shows a flowchart of an encoding control method according to an embodiment of the present application.
- Fig. 5 shows a schematic structural diagram of a wireless earphone provided by an embodiment of the present application.
- Fig. 6 shows a schematic diagram of an application scenario provided by an embodiment of the present application.
- Fig. 7 shows a flowchart of an encoding control method according to another embodiment of the present application.
- Fig. 8 shows a flowchart of an encoding control method according to yet another embodiment of the present application.
- FIG. 9 shows a schematic diagram of an application scenario provided by another embodiment of the present application.
- Fig. 10 shows another schematic diagram of an application scenario provided by another embodiment of the present application.
- FIG. 11 shows a flow chart of step S340 in an encoding control method according to another embodiment of the present application.
- Fig. 12 shows a schematic diagram of the principle of synchronous audio collection provided by another embodiment of the present application.
- Fig. 13 shows a flowchart of an encoding control method according to yet another embodiment of the present application.
- Fig. 14 shows a flowchart of an encoding control method according to yet another embodiment of the present application.
- Fig. 15 shows a schematic diagram of the principle of monaural recording provided by another embodiment of the present application.
- Fig. 16 shows a block diagram of an encoding control device according to an embodiment of the present application.
- Fig. 17 is a block diagram of a wireless earphone for executing the coding control method according to the embodiment of the present application according to the embodiment of the present application.
- Fig. 18 is a storage unit for storing or carrying program codes for realizing the encoding control method according to the embodiment of the present application according to the embodiment of the present application.
- TWS True Wireless Stereo
- Binaural audio recording technology (Binaural Audio) is a recording technology that highly restores the real sense of hearing. It is equipped with microphones at the two ears of the artificial head, so that it can capture the sound reaching each ear. Two signals can be reproduced on each ear separately. This kind of reproduction is not suitable for monophonic playback, and if you use speakers to play it, it will not achieve the expected effect. Therefore, headphones are usually used to completely isolate the sound signals received by the two ears. This method can make the artificial head completely Replicate what the audience heard.
- the sound field picked up by the earphone taken off and the earphone worn at this time will not match the actual sound field, resulting in a shift in the recorded sound field effect; and
- the audio of the binaural recording effect cannot be recorded, which will affect the user experience.
- the inventor proposes the recording method, device, wireless earphone and storage medium provided by the embodiment of the present application, which can control the recording mode according to the wearing status of the first wireless earphone and the second wireless earphone, and acquire The received audio data is processed accordingly, so that the recording mode matches the wearing state, which improves the flexibility of the recording method and ensures the recording effect.
- the application environment corresponding to the encoding control method includes a recording system 10 , and the recording system 10 includes an electronic device 11 , a first wireless earphone 12 and a second wireless earphone 13 .
- the electronic device 11 may be a smart phone, a tablet computer, an e-book, a smart wearable device, etc., which can run application programs and have the function of collecting audio signals.
- the first wireless earphone 12 and the second wireless earphone 13 form a true wireless stereo (True Wireless Stereo, TWS) earphone, wherein, the left and right earphones of the TWS earphone are independent of each other, without the need for cables to be connected, and the wireless separation of the left and right channels can be realized. .
- TWS True Wireless Stereo
- the first wireless earphone 12 and the second wireless earphone 13 can respectively collect the sound of the left and right channels.
- an application program capable of collecting audio is installed in the electronic device 11 , specifically, the application program may be audio playback software, video playback software, or call software, or other software capable of triggering audio playback.
- Both the first wireless earphone 12 and the second wireless earphone 13 may be provided with an audio collection device, for example, a microphone.
- the first wireless earphone 12 and the second wireless earphone 13 may be provided with an audio collection device to collect audio signals, and the electronic device 11 processes the audio signals to generate audio files.
- the electronic device 11 may also send the audio to be played to at least one of the first wireless earphone 12 and the second wireless earphone 13 , and at least one of the first wireless earphone 12 and the second wireless earphone 13 plays the voice.
- the electronic device 11 can be connected to the first wireless earphone 12 and the second wireless earphone 13 at the same time.
- the first wireless earphone 12 and the second wireless earphone 13 can directly send audio data to the electronic device 11 , or receive and play the audio data sent by the electronic device 11 .
- the electronic device 11 is connected to the first wireless earphone 12 through Bluetooth, and then the first wireless earphone 12 is connected to the second wireless earphone 13 through Bluetooth, so that the electronic device 11,
- the first wireless earphone 12 and the second wireless earphone 13 are connected simultaneously through networking, that is, the first wireless earphone 12 acts as a repeater between the electronic device 11 and the second wireless earphone 13 .
- the electronic device 11, the first wireless earphone 12 and the second wireless earphone 13 are connected in the manner shown in FIG. from the headset.
- FIG. 4 shows a schematic flowchart of an encoding control method provided by an embodiment of the present application.
- the encoding method can be applied to the above-mentioned recording system.
- the execution body of the method can be the first wireless earphone, and the first wireless earphone and the second wireless earphone are both equipped with audio collection device, and the first wireless earphone and the second wireless earphone adopt the connection method shown in Figure 4.
- the flow shown in Figure 4 will be described in detail below, and the encoding control method may specifically include the following steps:
- Step S110 Obtain the wearing status of the first wireless earphone and the second wireless earphone.
- the user's wearing state of the wireless earphones may change. If a fixed recording mode is used during the recording process, the recording effect may be affected. . Therefore, during recording, the first wireless earphone (main earphone) connected to the electronic device can obtain the wearing status of the first wireless earphone and the second wireless earphone, so as to control the recording mode.
- the housing of the first wireless earphone 12 is provided with a wearing detector 121 , and the wearing detector 12 is arranged on a designated surface of the housing of the first wireless earphone 12 , and the designated surface When the first wireless earphone 12 is worn, the earphone head contacts the surface of the concha cavity of the human ear.
- a black round hole may be opened on the specified surface, and a wearing detector 121 is assembled in this round hole.
- the wearing detector 121 may be a photosensitive sensor, which includes a light emitting unit and a photosensitive unit.
- the light-emitting unit can be an LED light.
- the LED light emits infrared light, which passes through the prism on the hole and radiates to the outside of the earphone. If there is an opaque object in front of it, most of the light will be reflected back. To judge whether there is an object blocking, to infer whether it is in the wearing state.
- the second wireless earphone 12 may also be provided with a wearing detector, and based on the wearing detector, it may be determined whether the second wireless earphone 12 is in the wearing state.
- the specific type of the wearing detector may not be limited, and the wearing detector may also be a touch sensor, a pressure sensor, and the like.
- the state threshold corresponding to the wearing detector can be preset, and the detection value detected by the wearing detector can be compared with the state threshold, and according to the comparison result, it can be determined whether the wireless earphone is in the wearing state.
- the state threshold is the set light intensity threshold, and if the light intensity detected by the light sensor is lower than the set light intensity threshold, it is determined that the wireless headset is in the wearing state; if the light sensor When the light intensity detected by the sensor is greater than or equal to the set light intensity threshold, it is determined that the wireless earphone is not in the wearing state.
- the first wireless earphone when the first wireless earphone acquires the wearing states of the first wireless earphone and the second wireless earphone, the first wireless earphone can detect its own wearing state, and obtain the information detected by the second wireless earphone from the second wireless earphone. wearing status. That is to say, the first wireless earphone and the second wireless earphone can detect the wearing state at the same time, and after the second wireless earphone detects its own wearing state, the detection result is synchronized to the first wireless earphone.
- the first wireless earphone when recording, can acquire the wearing status of the first wireless earphone and the second wireless earphone in real time, so as to control the subsequent recording according to the wearing status; frequency to acquire the wearing status of the first wireless earphone and the second wireless earphone, for example, the first wireless earphone may acquire the wearing status of the first wireless earphone and the second wireless earphone every 1 second.
- Step S120 If the wearing state of the wireless earphones of the first wireless earphone and the second wireless earphone changes, adjust the recording according to the wireless earphone in the wearing state of the first wireless earphone and the second wireless earphone model.
- the first wireless earphone after the first wireless earphone acquires the wearing states of the first wireless earphone and the second wireless earphone, it can determine whether the wearing states of the first wireless earphone and the second wireless earphone change; The recording mode can be adjusted if the wearing state of the wireless earphone among the earphone and the second wireless earphone changes.
- the wireless earphone when the wireless earphone is in the wearing state, the user is likely to expect the worn earphone to be in the use state to collect sound, while the wireless earphone is not in the wearing state, the user is likely not to use it, and the single ear In the wearing state, the wireless earphones in the wearing state and the wireless earphones not in the wearing state collect audio data at the same time to achieve two-channel recording, which will easily cause inconsistency and offset of the sound field, which will affect the recording effect. Therefore, in the wireless earphone When the wearing state of the earphone changes, the recording mode can be adjusted so that the recording mode corresponds to the wireless earphone in the wearing state among the first wireless earphone and the second wireless earphone.
- the recording mode may include a monophonic recording mode and a binaural recording mode.
- adjusting the recording mode according to the wireless earphones in the wearing state in the first wireless earphone and the second wireless earphone may include: if both the first wireless earphone and the second wireless earphone are in the wearing state, Adjust the recording mode to a binaural recording mode; if one of the first wireless earphone and the second wireless earphone is not worn, adjust the recording mode to a monophonic recording mode. Understandably, when one of the wireless earphones is in the wearing mode, the monophonic recording mode is adopted, and when both wireless earphones are in the wearing state, the binaural recording mode is adopted.
- the recording mode may include three or more channel recording modes in addition to the monophonic recording mode and the binaural recording mode.
- the recording mode when the recording mode is a recording mode of three or more channels, the audio data collected by at least one wireless earphone can be used as the audio data of at least two channels.
- the audio data collected by the first wireless earphone can be used as the audio data of two channels, and the audio data collected by the second wireless earphone can be used as the audio data of the other channel.
- Step S130 Control the wireless earphone in the wearing state to collect audio data.
- the first wireless earphone may also control the wearing state of the wireless earphone to collect audio data based on the wearing states of the first wireless earphone and the second wireless earphone.
- At least one of the first wireless earphone and the second wireless earphone is in the wearing state (that is, the state of wearing on both ears or the state of wearing on one ear), and the wireless earphone in the wearing state is controlled to collect audio data , to control the wireless earphones not in the wearing state not to collect audio data.
- the wireless earphone in the wearing state can be controlled to collect audio data; If the wireless headset is worn, the user is likely not to use it, and in the state of wearing one ear, the wireless headset in the wearing state and the wireless headset not in the wearing state collect audio data at the same time, which may easily cause sound field inconsistency and offset, making the The recording effect is affected, so the wireless earphones that are not in the wearing state can be controlled not to collect audio data.
- Step S140 Perform preprocessing on the audio data according to the recording mode.
- the first wireless earphone may also perform preprocessing on the audio data acquired during the recording process according to the recording mode.
- the first wireless earphone and the second wireless earphone collect audio data at the same time.
- the recording mode is a monophonic recording mode, only one wireless earphone collects audio data in the first wireless earphone and the second wireless earphone, and only one channel of audio data can be obtained at this time, then the collected audio data Perform processing corresponding to monophonic recording, for example, a monophonic flag may be added, so that the electronic device knows that the audio data sent by the first wireless earphone is monophonic audio data.
- the second wireless earphone can transmit the acquired audio data to the first wireless earphone, and the first wireless earphone collects audio data by itself.
- the audio data transmitted by the second wireless earphone and the audio data transmitted by the second wireless earphone are pre-processed corresponding to the recording mode to obtain processed audio data. If the first wireless earphone collects audio data and the second wireless earphone does not collect audio data, the first wireless earphone can perform preprocessing corresponding to the recording mode on the collected audio data to obtain processed audio data. If the first wireless earphone does not collect audio data, the second wireless earphone collects audio data.
- the first wireless earphone is only used as a relay earphone to perform pre-recording mode corresponding to the audio data transmitted by the second wireless earphone.
- processed audio data is obtained, and the processed audio data is subsequently transmitted to the electronic device.
- Step S150 Transmit the preprocessed audio data to the electronic device.
- the first wireless earphone after the first wireless earphone preprocesses the acquired audio data, it may transmit the preprocessed audio data to the electronic device, so that the electronic device generates an audio file according to the received audio data.
- an audio file in a specified audio format may be generated after performing operations such as encoding or optimization on the audio data.
- the specified audio format may be MP3, WAV, FLC, etc., and the specific audio format may not be limited.
- the wireless communication module such as a Bluetooth module, etc.
- the wireless communication module such as a Bluetooth module, etc.
- the post-processing algorithm module can be a module in the application processor AP, which performs gain adjustment processing and frequency processing adjustment and then sends it to the recorded APK to output an MP3 file. Therefore, setting the post-processing process on the side of the electronic device can not only ensure the recording effect, but also reduce the power consumption of the wireless earphone.
- the gain adjustment process includes a gain increase operation and a dynamic range adjustment (Dynamic Range Control, DRC), wherein, the gain increase operation includes an increase in the gain of the entire frequency domain or time domain part of the audio signal of the target sound source, and the dynamic range control Range adjustment is used to dynamically adjust the audio output amplitude, suppress the volume within a certain range when the volume is high, and increase the volume appropriately when the volume is low. It is usually used to control the audio output power so that the speaker does not crack and can be heard clearly when playing at a low volume. Frequency processing is used to process different frequency parts of the audio signal of the target sound source, such as EQ and noise reduction.
- DRC Dynamic Range Control
- Equaliser which is an equalizer, which is used to process one or more frequency bands of the audio signal.
- Gain or attenuation so as to achieve the purpose of adjusting the tone.
- Noise reduction may be filtering, that is, to filter out signals of some frequency bands in the audio signal, etc., so as to reduce noise in the audio signal.
- the post-processing process of the electronic device on the audio data in the previous embodiment can also be set in the wireless earphone, wherein, the first wireless earphone can also perform the above-mentioned preprocessing process in step S140.
- Post-processing that is, performing the above-mentioned gain adjustment processing and frequency processing to ensure the recording effect.
- the first wireless earphone can obtain the current remaining power. If the remaining power is greater than the power threshold, it means that the current remaining power is relatively sufficient.
- the above post-processing can be performed, and the first flag, the first flag is used to indicate that the audio data has been post-processed, so that the electronic device knows that the audio data has been post-processed, and reduces the processing capacity of the electronic device; and when the remaining power is less than or equal to the power threshold, the adding a second mark to the preprocessed audio data, and transmitting the audio data to which the second mark has been added to the electronic device, where the second mark is used to indicate that the audio data has not been post-processed, so that the electronic device knows that the audio data has not been post-processed,
- the above-mentioned post-processing can be performed on the received audio data.
- the first wireless earphone when the first wireless earphone transmits the acquired audio data to the electronic device, since the wireless earphone that collects the audio data will encode the audio data after collecting the audio data, the first wireless earphone can also Add code rate information to the audio data, so that the electronic device can know the code rate of the audio data according to the code rate information after receiving the audio data, so that when the audio data is further processed to generate an audio file, it can be based on the code rate. Adjust the sampling rate, bit information and strength of compressed data when processing, etc.
- the wireless earphones that are not in the wearing state can also collect audio data when the set state conditions are met.
- both the first wireless earphone and the second wireless earphone are in the wearing state, that is, in the state of wearing both ears, then both the first wireless earphone and the second wireless earphone can collect audio data, that is, perform binaural Audio data collection; and when only one wireless earphone is in the wearing state in the first wireless earphone and the second wireless earphone, then control the wireless earphone in the wearing state to collect audio data, and the wireless earphone not in the wearing state meets the set state
- audio data collection may also be performed, which may or may not be monophonic audio data collection at this time.
- the above-mentioned setting state condition may include: the spatial position of the wireless earphone not in the wearing state relative to the wireless earphone in the wearing state satisfies the set position condition.
- the position condition can be set based on the relative spatial positions that may exist between the wireless earphones when wearing both ears. It can be understood that when the user wears the first wireless earphone and the second wireless earphone, as the user moves or the head turns , the relative spatial position between the two wireless earphones may change, so the relative spatial position between the two wireless earphones in the binaural wearing state can be obtained to determine the above positional conditions.
- the above-mentioned setting state condition may include: the second wireless earphone is in a hand-held state. Understandably, in some scenarios, as shown in FIG. 6 , the possible recording scene is an interview scene. At this time, the interviewer A may wear the first wireless earphone 12, and the interviewee B may hold the second wireless earphone 12.
- the earphone 13 is used to collect the voice of the interviewee B. Therefore, it can be determined whether the second wireless earphone is in a hand-held state, so as to confirm whether it is necessary to control the second wireless earphone to collect audio data.
- a touch sensor may be provided on the surface of the ear handle of the second wireless earphone, so as to determine whether the second wireless earphone is in a hand-held state according to data detected by the touch sensor.
- the recording mode is adjusted, and the wireless earphones that collect audio data are controlled, and According to the recording mode, the collected audio data is preprocessed, so that the recording mode matches the wearing state, which improves the flexibility of the recording mode and ensures the recording effect.
- FIG. 7 shows a schematic flowchart of a recording method provided by another embodiment of the present application.
- the recording method is applied to the above-mentioned first wireless earphone, and the process shown in FIG. 7 will be described in detail below.
- the recording method may specifically include the following steps:
- Step S210 Obtain the wearing status of the first wireless earphone and the second wireless earphone.
- Step S220 If the wearing state of the first wireless earphone and the wireless earphone of the second wireless earphone changes, adjust the recording according to the wireless earphone in the wearing state of the first wireless earphone and the second wireless earphone model.
- step S210 and step S220 in the embodiment of the present application, reference may be made to the contents of the foregoing embodiments for step S210 and step S220, and details are not repeated here.
- Step S230 If the first wireless earphone is in the wearing state and the second wireless earphone is not in the wearing state, control the first wireless earphone to collect audio data.
- the first wireless earphone after the first wireless earphone obtains the wearing state of the first wireless earphone and the second wireless earphone, if the first wireless earphone is in the wearing state but the second wireless earphone is not in the wearing state, it can control The first wireless earphone collects audio data, while the second wireless earphone does not collect audio data. Understandably, when the second wireless earphone is not worn, if the first wireless earphone and the second wireless earphone collect audio data at the same time and perform binaural recording, the recorded sound field will not match the previous one, resulting in a sound field offset. Therefore, When the first wireless earphone is in the wearing state and the second wireless earphone is not in the wearing state, only the first wireless earphone can be controlled to collect audio data.
- Step S240 If both the first wireless earphone and the second wireless earphone are in the wearing state, control both the first wireless earphone and the second wireless earphone to collect audio data.
- both the first wireless earphone and the second wireless earphone are in the wearing state, the TWS earphone is worn on both ears.
- both the first wireless earphone and the second wireless earphone can be controlled to collect audio data, so as to realize the effect of binaural recording.
- the first wireless earphone acquires the wearing states of the first wireless earphone and the second wireless earphone
- the first wireless earphone is not in the wearing state but the second wireless earphone is in the wearing state
- the main earphone can be switched to the second wireless earphone, and the audio data is collected through the second wireless earphone to reduce the audio data. transmission time.
- Step S250 Perform preprocessing on the audio data according to the recording mode.
- Step S260 Transmitting the preprocessed audio data to the electronic device.
- step S250 and step S260 in the embodiment of the present application, reference may be made to the contents of other embodiments for step S250 and step S260, and details are not repeated here.
- the recording mode is adjusted according to the change of the wearing state of the wireless earphones, and when the two are in the wearing state at the same time, the two are controlled to collect audio data at the same time, as the main
- the first wireless earphone of the earphone is in the wearing state and the second wireless earphone is not in the wearing state
- only the first wireless earphone is controlled to collect audio data, so that the recording mode matches the wearing state, which improves the flexibility of the recording mode and ensures recording effect.
- FIG. 8 shows a schematic flowchart of a recording method provided in another embodiment of the present application.
- the recording method is applied to the above-mentioned wireless earphone, and the process shown in FIG. 8 will be described in detail below.
- the recording method may specifically include the following steps:
- Step S310 Obtain the wearing status of the first wireless earphone and the second wireless earphone.
- Step S320 If the wearing state of the first wireless earphone and the wireless earphone of the second wireless earphone changes, adjust the recording according to the wireless earphone in the wearing state of the first wireless earphone and the second wireless earphone model.
- Step S330 If the first wireless earphone is in the wearing state and the second wireless earphone is not in the wearing state, control the first wireless earphone to collect audio data.
- the monophonic recording mode can be used for recording.
- the first wireless earphone it is possible to control the first wireless earphone to collect audio data, while the second wireless earphone does not collect audio data, so as to avoid deviation of the recorded sound field and affect the recording effect.
- the mode of monophonic recording is directly switched, and the first wireless earphone continues to collect audio data, so there is no delay or interruption.
- Step S340 If the first wireless earphone is in the wearing state and the second wireless earphone changes from the unwearing state to the wearing state, control the first wireless earphone to collect audio data.
- the first wireless earphone acquires the wearing states of the first wireless earphone and the second wireless earphone, if the first wireless earphone is in the wearing state but the second wireless earphone is not in the wearing state , to control the first wireless earphone to collect audio data, which is a monophonic recording mode at this time.
- the first wireless earphone is in the wearing state and the second wireless earphone changes from the unworn state to the wearing state, binaural recording needs to be performed.
- the first wireless earphone can be kept for audio data collection, and it is necessary to control The second wireless earphone collects audio data.
- the user wears the first wireless earphone 12 and the second wireless earphone 13 for recording at the same time.
- the first wireless earphone and the second wireless earphone simultaneously collect audio data to realize binaural recording.
- the first wireless earphone 12 can be controlled to collect audio data to realize monophonic recording.
- Step S350 Obtain synchronization information for synchronizing the audio data collected by the first wireless earphone and the second wireless earphone, the synchronization information is used for the audio data collected by the first wireless earphone and the second wireless earphone pair Audio data is synchronized.
- the audio data of two channels in the audio data sent to the electronic device will be synchronized later, that is, it is guaranteed that the audio data of two channels in the audio data sent to the electronic device is the audio data collected at the same time, therefore, it can The audio data collected by the first wireless earphone and the second wireless earphone are synchronized.
- the first wireless earphone may obtain synchronization information for synchronizing the audio data collected by the first wireless earphone and the second wireless earphone, and the synchronization information is used for synchronizing the audio data collected by the first wireless earphone and the second wireless earphone , to ensure that the two-channel audio data in the audio data sent to the electronic device is audio data collected at the same time.
- obtaining synchronization information for synchronizing audio data collected by the first wireless earphone and the second wireless earphone may include:
- Step S351 Obtain the synchronization time of audio data collection by the first wireless earphone and the second wireless earphone, and the synchronization time is used to control the time when the second wireless earphone starts to collect audio data.
- the first wireless earphone can obtain the synchronization time of the audio data collection of the first wireless earphone and the second wireless earphone, so that the second wireless earphone can control when it starts recording, and the first wireless earphone can subsequently know the audio data collection time of the second wireless earphone.
- the audio data collected by the two wireless earphones starts to be recorded, so as to ensure the synchronization of the audio data collected by the two wireless earphones.
- obtaining the synchronization time for audio data collection by the first wireless earphone and the second wireless earphone may include: acquiring the time required for the second wireless earphone to start recording as the first time length; The duration from the generated synchronization information to the second wireless earphone is used as a second duration; and the synchronization time is generated based on the current time, the first duration, and the second duration.
- the first wireless earphone determines the above synchronization time, it can obtain the time required for the second wireless earphone to start the recording process, for example, the process of turning on the microphone and setting the encoder, etc.; , the duration of sending the synchronization information to the second wireless earphone, and then on the basis of the current time, add the first duration and the second duration to obtain the synchronization time (moment) of the synchronous recording.
- the second wireless earphone collects audio data
- the first wireless earphone can also know the audio data collected after the synchronization time, so that the first wireless earphone can subsequently
- the audio data sent when the second wireless earphone starts recording is compared and merged with the audio data collected by itself, and then sent to the electronic device to ensure the time for the two-channel audio data sent to the electronic device to be collected by the wireless earphone is consistent.
- Step S352 Obtain data packet numbers of synchronous audio data packets of the first wireless earphone and the second wireless earphone, and the data packet serial numbers are used by the second wireless earphone to number the collected audio data packets.
- the wireless earphone since the wireless earphone usually encodes the collected audio data into different data packets when collecting audio data, during the recording process, the first wireless earphone can number the acquired data packets.
- the data packet sequence numbers of the first wireless earphone and the second wireless earphone synchronous audio data packets can be obtained, so that the audio data packets acquired at the same time by the second wireless earphone, The number is the sequence number of the audio data packet acquired by the first wireless earphone at the same time.
- the first wireless earphone may obtain the data packet number after numbering the audio data packets collected by the first wireless earphone at the synchronization time based on the data packet number and the synchronization time of the currently collected audio data, as the first wireless earphone.
- the first wireless earphone and the second wireless earphone synchronize the data packet sequence number of the audio data packet.
- the first wireless earphone can estimate the sequence number after the audio data packet is numbered at the time of synchronization according to the synchronization time and the sequence number of the data packet, and according to the speed at which the data packet is obtained from the encoded audio data.
- Step S353 Generate the synchronization information based on the synchronization time and the data packet sequence number.
- synchronization information may be generated based on the synchronization time and the data packet serial number, and the synchronization information includes the synchronization time and the data packet serial number.
- first wireless earphone and the second wireless earphone use other methods to synchronize the collected audio data
- corresponding synchronization information may also be generated according to the other methods adopted.
- Step S360 Send the synchronization information to the second wireless earphone, and the second wireless earphone is used to collect audio data according to the synchronization information.
- the first wireless earphone after the first wireless earphone generates the synchronization information, it can send the synchronization information to the second wireless earphone, and after the second wireless earphone receives the synchronization information, it can control when to proceed according to the synchronization information.
- Acquisition of audio data after the second wireless earphone sends the first audio data packet after recording to the first wireless earphone, the first wireless earphone can know when the audio data packet sent by the second wireless earphone is Start recording, and determine the audio data packet corresponding to the audio data packet in the audio data packet collected by itself, so as to maintain the synchronization of the two-channel audio data when sending the two-channel audio data to the electronic device .
- the audio data packets obtained by the first wireless earphone and the second wireless earphone according to the collected audio data may carry the audio time stamp and the data packet at the same time.
- serial number after the second wireless earphone sends the first audio data packet after recording to the first wireless earphone, the first wireless earphone can compare the audio data packet generated by itself with the first audio data packet The audio time stamp of the packet and the serial number of the data packet are consistent, so as to realize the synchronization of the two-channel audio data.
- the second wireless earphone when used as the slave earphone and is not in the wearing state, since it does not need to collect audio data at present, it can be disconnected from the master earphone (first wireless earphone) to reduce power consumption.
- the slave earphone after the slave earphone is in the wearing state, it can establish a connection with the master earphone; then, the master earphone obtains the above synchronization time and data packet sequence number N, and sends the synchronization time and data packet sequence number as synchronization information to the slave earphone,
- N is a positive integer
- the encoder start time is set from the earphone to control it to start collecting audio data and encoding audio data at the time of synchronization
- the earphone after the earphone obtains the first audio data packet, the The first audio data packet number is the data packet number N in the synchronization information, and is sent to the master earphone; the master earphone performs synchronization according to the audio data packet with the data packet
- Step S370 Perform preprocessing on the audio data according to the recording mode.
- Step S380 Transmitting the preprocessed audio data to the electronic device.
- step S370 and step S380 in the embodiment of the present application, reference may be made to the contents of other embodiments for step S370 and step S380, and details are not repeated here.
- the first wireless earphone as the main earphone adjusts the recording mode and controls the acquisition according to the wearing state of the first wireless earphone and the second wireless earphone when the wearing state changes.
- Wireless headphones for audio data to match the recording method with the wearing state, which improves the flexibility of the recording method and ensures the recording effect.
- the audio data collection between the two earphones is synchronized to ensure the audio data transmitted to the electronic device during binaural recording.
- the acquisition time is synchronized to ensure the accuracy of the recording content and the recording effect.
- FIG. 13 shows a schematic flowchart of a recording method provided by another embodiment of the present application.
- the recording method is applied to the above-mentioned wireless earphone, and the following will describe in detail the process shown in FIG. 13 .
- the recording method may specifically include the following steps:
- Step S410 Obtain the wearing status of the first wireless earphone and the second wireless earphone.
- Step S420 If the wearing state of the first wireless earphone and the wireless earphone of the second wireless earphone changes, adjust the recording according to the wireless earphone in the wearing state of the first wireless earphone and the second wireless earphone model.
- step S410 and step S420 in the embodiment of the present application, reference may be made to the contents of the foregoing embodiments for step S410 and step S420, and details are not repeated here.
- Step S430 If the first wireless earphone changes from the wearing state to the unwearing state, and the second wireless earphone is in the wearing state, disconnect the connection with the electronic device.
- the first wireless earphone acquires the wearing states of the first wireless earphone and the second wireless earphone
- the first wireless earphone changes from the wearing state to the unwearing state
- the second wireless earphone The earphone is in the wearing state.
- the second wireless earphone needs to collect audio data, while the first wireless earphone does not collect audio data.
- the audio data collected by the second wireless earphone still needs to be relayed through the first wireless earphone, and the efficiency of audio data transmission to the electronic device is relatively low. Low. Therefore, when it is detected that the first wireless earphone changes from the wearing state to the unwearing state while the second wireless earphone is in the wearing state, the connection with the electronic device can be disconnected.
- Step S440 Send a switching instruction to the second wireless earphone, the switching instruction is used to instruct the second wireless earphone to connect with the electronic device, collect audio data, and record the collected audio according to the recording mode The data is transmitted to the electronic device after the preprocessing.
- the first wireless earphone may send a switching instruction to the second wireless earphone while disconnecting from the electronic device, and the second wireless earphone may respond to the switching instruction after receiving the switching instruction, Connect with the electronic device, collect audio data, and transmit the collected audio data to the electronic device after preprocessing according to the recording mode, so that the first wireless earphone is removed from the user's ear and the second wireless earphone is worn mode for monaural recording.
- the user may only wear the first wireless earphone for recording.
- only the first wireless earphone is controlled to collect audio data to achieve monophonic recording;
- the wireless earphone is put on, the first wireless earphone is changed from the wearing state to the unwearing state, and the second wireless earphone is in the wearing state, then the processing of step S430 and step S440 is performed.
- the user may wear the first wireless earphone for recording at the same time, at this time, control the first wireless earphone and the second wireless earphone to collect audio data at the same time, and realize two-channel recording; if the user takes off the first wireless earphone , and put on the second wireless earphone, at this moment, the first wireless earphone changes from the wearing state to the unwearing state, and the second wireless earphone is in the wearing state, then proceed to the processing of step S430 and step S440.
- Step S450 If the first wireless earphone is in the wearing state and the second wireless earphone is not in the wearing state, control the first wireless earphone to collect audio data.
- Step S460 If both the first wireless earphone and the second wireless earphone are in the wearing state, control both the first wireless earphone and the second wireless earphone to collect audio data.
- Step S470 Perform preprocessing on the audio data according to the recording mode.
- Step S480 Transmit the preprocessed audio data to the electronic device.
- the first wireless earphone as the main earphone adjusts the recording mode and controls the acquisition according to the wearing state of the first wireless earphone and the second wireless earphone when the wearing state changes.
- Wireless earphones for audio data to match the recording mode with the wearing state, which improves the flexibility of the recording mode and ensures the recording effect.
- the main earphone is switched, and the main earphone is switched to the second wireless earphone, so that the audio data collected by the second wireless earphone When transmitting to the electronic device, there is no need to transfer through the first wireless earphone, which improves the transmission efficiency of the audio data.
- FIG. 14 shows a schematic flowchart of a recording method provided in yet another embodiment of the present application.
- the recording method is applied to the above-mentioned wireless earphone, and the following will describe in detail the process shown in FIG. 14 .
- the recording method may specifically include the following steps:
- Step S510 Obtain the wearing status of the first wireless earphone and the second wireless earphone.
- Step S520 If the wearing state of the first wireless earphone and the wireless earphone of the second wireless earphone changes, adjust the recording according to the wireless earphone in the wearing state of the first wireless earphone and the second wireless earphone model.
- Step S530 Control the wireless earphone in the wearing state to collect audio data.
- Step S540 If the recording mode is a monophonic recording mode, and the audio data is the first audio data packet collected, add second indication information to the audio data to obtain a second target data packet, and the The second indication information is used to indicate that the current recording is monophonic.
- the acquired third audio data packet is the For the first audio data packet collected by the wireless earphone
- second indication information may be added to the third audio data packet to obtain a second target data packet, and the second indication information is used to indicate that the current recording is monophonic. Therefore, after the electronic device obtains the second target data packet sent, it can know that the audio data currently collected by the first wireless earphone is audio data recorded in monophonic, and therefore, the subsequent electronic device can copy the audio data as another audio data.
- the audio data of the two channels that is, use the same data for the two channels, and then generate an audio file based on the audio data of the two channels.
- FIG. 15 shows the principle of recording when the first wireless earphone is used as the main earphone to collect audio data, and the electronic device is a mobile phone to realize single-ear recording.
- the main earphone can OPUS encode the audio data collected by the microphone, put the encoded audio data packet into the main buffer, and use the frame header information control module to record the first audio data packet generated by the single ear Add the above second instruction information; after the main earphone takes out the audio data packet from the main buffer, send it to the mobile phone Bluetooth; before the mobile phone Bluetooth transmits the audio data packet to Audio, if the second instruction information analyzed is channel recording, the data is copied as another channel data, that is, the left and right channels use the same data, and then the processed data is sent to the mobile phone Audio module to generate an audio file.
- the acquired audio data packet can also be used as binaural audio data, and the audio data of the binaural The data is synthesized to obtain the third target data packet. That is to say, the first wireless earphone as the main earphone can copy the obtained audio data packet as the audio data packet of another channel, that is, the two channels use the same audio data, and then combine the audio data packets into one data packet (the third target data packet), which is subsequently sent to the electronic device.
- Step S550 If the recording mode is a two-channel recording mode, store the first audio data packet collected by the first wireless earphone in the first buffer, and store the received first audio data packet collected by the second wireless earphone Two audio data packets are stored in the second buffer.
- both the first wireless earphone and the second wireless earphone are provided with a buffer zone, wherein the buffer zone in the first wireless earphone are the first buffer and the second buffer, and the buffer in the second wireless earphone is the third buffer.
- the second wireless earphone is recording, the second audio data packet obtained after encoding the collected audio data can put the second audio data packet into the third buffer; after the first wireless earphone encodes the collected audio data For the obtained first audio data packet, the first audio data packet may be put into the first buffer.
- the second wireless earphone sends the second audio data packet in the third buffer to the first wireless earphone, the first wireless earphone stores the second audio data packet in the second buffer, and subsequently performs the process of sending uplink data.
- Step S560 Combine the first audio data packet and the second audio data packet to obtain a first target data packet.
- the first wireless earphone when sending uplink data, can take out the first audio data packet in the first buffer and the second audio data packet in the second buffer, and then take out the first After the audio data packet and the second audio data packet are combined into one audio data packet, it is sent to the electronic device.
- both the first wireless earphone and the second wireless earphone collect audio data.
- the first audio data and the second audio data can be The data is consolidated into one audio data packet.
- the first wireless earphone may also synchronize the first audio data packet when starting binaural recording, that is, when the first wireless earphone and the second wireless earphone start to collect audio data simultaneously, Subsequent audio data packets can be directly merged.
- the first audio data packet and the second audio data packet are the first audio data packet in the recording process, then the first audio data packet can be recorded according to the synchronization information in the first audio data packet and the second audio data packet.
- the data packet is compared with the second audio data packet; if the first audio data packet matches the second audio data packet, the first audio data packet and the second audio data packet are combined and sent to the electronic device.
- the audio data packets respectively obtained by the first wireless earphone and the second wireless earphone may be combined according to the chronological order of the acquisition, and then transmitted to the electronic device.
- the second audio data packet is the first audio data packet sent by the second wireless earphone
- the first audio data packet and the second audio data packet are combined, and the first indication information is added to obtain the first audio data packet.
- the first indication information is used to indicate that the current recording is a two-channel recording. Therefore, after the electronic device obtains the first target data packet to be sent, it can know that the audio data currently collected by the first wireless earphone is audio data of binaural recording according to the first indication information, and perform post-processing accordingly to generate a corresponding audio file.
- the first wireless earphone and the second wireless earphone collect audio data at the same time, if the first wireless earphone determines the When a wireless earphone changes from the wearing state to the unwearing state, and the second wireless earphone is in the wearing state, execute the main earphone switching process described in step S430 and step S440 in the previous embodiment at this time, and when switching, the first When the wireless earphone is disconnected, the audio data in its buffer is not sent to the electronic device, resulting in loss of audio data.
- the first wireless earphone can send audio data not sent to the electronic device to the second wireless earphone, and the second wireless earphone can send the audio data to the second wireless earphone when the first wireless earphone is disconnected from the electronic device.
- the audio data collected during the connection between the earphone and the electronic device is buffered.
- the second wireless earphone After the second wireless earphone establishes the connection with the electronic device, it can transmit the audio data sent by the first wireless earphone to the electronic device, and then switch The audio data collected during the process is transmitted to the electronic device, thereby ensuring that the audio data will not be lost when the main earphone is switched.
- the bandwidth of the channel between the second wireless earphone and the electronic device can be increased, and the transmission power of its wireless communication can be increased.
- the bluetooth transmission power is increased, so that the audio data sent by the first wireless earphone can be transmitted to the electronic device faster, so as to ensure that the audio data collected subsequently can be transmitted to the electronic device in a timely manner.
- Step S570 Transmitting the preprocessed audio data to the electronic device.
- step S570 reference may be made to the contents of other embodiments, which will not be repeated here.
- the first wireless earphone as the main earphone controls the wireless earphones that collect audio data according to the wearing status of the first wireless earphone and the second wireless earphone, so that the recording method is consistent with the wearing state.
- the state is matched, and after controlling the wireless earphone that collects audio data, it also performs processing corresponding to monophonic recording or binaural recording according to the wireless earphone that currently collects audio data, so that the recording mode matches the wearing state.
- the flexibility of the recording method is improved, and the recording effect is guaranteed.
- FIG. 16 shows a structural block diagram of a recording device 400 provided by an embodiment of the present application.
- the recording device 400 is applied to a first wireless earphone, the first wireless earphone is connected to a second wireless earphone and an electronic device, and both the first wireless earphone and the second wireless earphone are provided with an audio collection device.
- the recording device 400 includes: a state acquisition module 410 , a mode adjustment module 420 , a data collection module 430 , a data processing module 440 and a data transmission module 450 .
- the state acquisition module 410 is used to obtain the wearing status of the first wireless earphone and the second wireless earphone;
- the mode adjustment module 420 is used to determine if the first wireless earphone and the second wireless earphone The wearing state of at least one of the wireless earphones changes, and the recording mode is adjusted according to the wireless earphones in the wearing state of the first wireless earphone and the second wireless earphone, and the recording mode includes a monophonic recording mode or a dual-channel recording mode.
- the mode of channel recording is used to control the wireless headset in the wearing state to collect audio data; the data processing module 440 is used to preprocess the audio data according to the recording mode; The data transmission module 450 is used for transmitting the preprocessed audio data to the electronic device.
- the mode adjustment module 420 may be configured to: if the wearing state of at least one of the first wireless earphone and the second wireless earphone changes, according to the first wireless earphone and the second wireless earphone, The wireless earphone in the wearing state among the two wireless earphones adjusts the recording mode, and the recording mode includes a monophonic recording mode or a binaural recording mode.
- the data collection module 430 may be used to: if the first wireless headset is in the wearing state and the second wireless headset is not in the wearing state, control the first wireless headset to collect audio data; if Both the first wireless earphone and the second wireless earphone are in the wearing state, and both the first wireless earphone and the second wireless earphone are controlled to collect audio data.
- the data collection module 430 may be configured to: if the first wireless earphone is in the wearing state and the second wireless earphone changes from the unworn state to the wearing state, The wireless earphone collects audio data; acquires synchronization information for synchronizing the audio data collected by the first wireless earphone and the second wireless earphone, and the synchronization information is used for the first wireless earphone and the second wireless earphone The wireless earphone synchronizes the collected audio data; the synchronization information is sent to the second wireless earphone, and the second wireless earphone is used to collect the audio data according to the synchronization information.
- the data acquisition module 430 acquiring synchronization information for synchronizing audio data collected by the first wireless earphone and the second wireless earphone may include: acquiring the first wireless earphone and the second wireless earphone The synchronization time for audio data collection by the earphone, the synchronization time is used to control the time when the second wireless earphone starts to perform audio data; obtain the data packets of the first wireless earphone and the second wireless earphone synchronous audio data packet A serial number, the data packet serial number is used by the second wireless earphone to number the collected audio data packets; the synchronization information is generated based on the synchronization time and the data packet serial number.
- the data acquisition module 430 acquires the synchronization time of audio data acquisition by the first wireless earphone and the second wireless earphone, which may include: acquiring the duration required for the second wireless earphone to start recording as the first duration ; Acquiring the duration of sending the synchronization information to be generated to the second wireless earphone as a second duration; generating the synchronization time based on the current time, the first duration, and the second duration.
- the data collection module 430 obtaining the data packet sequence number of the first wireless earphone and the second wireless earphone synchronous audio data packet may include: based on the data packet sequence number of the currently collected audio data and the synchronization time, Obtain the data packet sequence number after numbering the collected audio data packets of the first wireless earphone at the synchronization time, as the data packets of the first wireless earphone and the second wireless earphone synchronous audio data packets serial number
- the recording device 400 may further include: a connection control module and a connection switching module.
- the connection control module is used to disconnect the connection with the electronic device if the first wireless earphone changes from the wearing state to the unwearing state, and the second wireless earphone is in the wearing state;
- the second wireless earphone sends a switching instruction, the switching instruction is used to instruct the second wireless earphone to connect with the electronic device, collect audio data, and perform the preprocessing on the collected audio data according to the recording mode and then transmitted to the electronic device.
- the data processing module 430 may be configured to: if the recording mode is a binaural recording mode, store the first audio data packet collected by the first wireless earphone in the first buffer and storing the received second audio data packet collected by the second wireless earphone in a second buffer; combining the first audio data packet and the second audio data packet to obtain a first target data packet.
- the data processing module 430 may be configured to: if the second audio data packet is the first audio data packet sent by the second wireless earphone, according to the first audio data packet and the second audio Synchronization information in the data packet, compare the first audio data packet and the second audio data packet; if the first audio data packet matches the second audio data packet, execute the The first audio data packet and the second audio data packet are combined to obtain a first target data packet.
- the data processing module 430 may be configured to: if the second audio data packet is the first audio data packet sent by the second wireless earphone, combine the first audio data packet and the second audio data packet The data packets are combined, and the first indication information is added to obtain the first target data packet, and the first indication information is used to indicate that the current recording is a two-channel recording.
- the data processing module 430 may be configured to: if the recording mode is a monophonic recording mode, and the audio data is the first audio data packet collected, the third The audio data packet is added with second indication information to obtain a second target data packet, and the second indication information is used to indicate that the current recording is monophonic.
- the data processing module 430 may be configured to: if the recording mode is a monophonic recording mode, use the audio data packet collected by the first wireless earphone as two-channel audio data, Synthesizing the two-channel audio data to obtain a third target data packet.
- the coupling between the modules may be electrical, mechanical or other forms of coupling.
- each functional module in each embodiment of the present application may be integrated into one processing module, each module may exist separately physically, or two or more modules may be integrated into one module.
- the above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules.
- the wearing status of the first wireless headset and the second wireless headset is obtained through the first wireless headset, if at least one of the first wireless headset and the second wireless headset is When the wearing state changes, the recording mode is adjusted according to the wearing state of the first wireless earphone and the second wireless earphone.
- the recording mode includes a monophonic recording mode or a binaural recording mode.
- the wireless headset 100 in the present application may include one or more of the following components: a processor 110, a memory 120, an audio collection device 130, a communication device 140, and one or more application programs, wherein one or more application programs may be stored in In the memory 120 and configured to be executed by one or more processors 110, one or more programs are configured to execute the method described in the foregoing method embodiment, the memory 120, the audio collection device 130 and the communication device 140 are all related to the processing Device 110 is connected.
- the audio collection device 130 can be a microphone
- the communication device 140 can be a wireless communication device, for example, can be a bluetooth communication module
- Processor 110 may include one or more processing cores.
- the processor 110 uses various interfaces and lines to connect various parts in the entire wireless earphone 100, by running or executing instructions, programs, code sets or instruction sets stored in the memory 120, and calling data stored in the memory 120 to execute Various functions and processing data of the wireless earphone 100.
- the processor 110 may adopt at least one of Digital Signal Processing (Digital Signal Processing, DSP), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and Programmable Logic Array (Programmable Logic Array, PLA). implemented in the form of hardware.
- DSP Digital Signal Processing
- FPGA Field-Programmable Gate Array
- PLA Programmable Logic Array
- the processor 110 may integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU), a modem, and the like.
- CPU Central Processing Unit
- GPU Graphics Processing Unit
- the CPU mainly handles the operating system, user interface and application programs, etc.
- the GPU is used to render and draw the displayed content
- the modem is used to handle wireless communication. It can be understood that, the above-mentioned modem may not be integrated into the processor 110, but may be realized by a communication chip alone.
- the memory 120 may include random access memory (Random Access Memory, RAM), and may also include read-only memory (Read-Only Memory).
- the memory 120 may be used to store instructions, programs, codes, sets of codes, or sets of instructions.
- the memory 120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system and instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.) , instructions for implementing the following method embodiments, and the like.
- the storage data area can also store data created during use of the wireless headset 100 (such as phonebook, audio and video data, chat record data) and the like.
- FIG. 18 shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application.
- Program codes are stored in the computer-readable medium 800, and the program codes can be invoked by a processor to execute the methods described in the foregoing method embodiments.
- the computer readable storage medium 800 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM.
- the computer-readable storage medium 800 includes a non-transitory computer-readable storage medium (non-transitory computer-readable storage medium).
- the computer-readable storage medium 800 has a storage space for program code 810 for executing any method steps in the above-mentioned methods. These program codes can be read from or written into one or more computer program products.
- Program code 810 may, for example, be compressed in a suitable form.
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- Acoustics & Sound (AREA)
- Business, Economics & Management (AREA)
- General Business, Economics & Management (AREA)
- Headphones And Earphones (AREA)
- Circuit For Audible Band Transducer (AREA)
Abstract
本申请公开了一种录音方法、装置、无线耳机及存储介质,该录音方法应用于第一无线耳机,第一无线耳机与第二无线耳机以及电子设备连接,第一无线耳机和第二无线耳机均设置有音频采集装置。该录音方法包括:获取第一无线耳机以及第二无线耳机的佩戴状态;若第一无线耳机以及第二无线耳机中无线耳机的佩戴状态发生变化,根据第一无线耳机以及第二无线耳机中处于佩戴状态的无线耳机,调整录音模式;控制处于佩戴状态的无线耳机采集音频数据;根据录音模式,对音频数据进行预处理;将预处理后的音频数据传输至电子设备。本方法可以实现在利用无线耳机进行录音的过程中,根据每个无线耳机的佩戴状态,进行音频数据的采集和处理,保证了录音效果。
Description
相关申请的交叉引用
本申请要求于2021年7月26日提交的申请号为202110846275.7的中国申请的优先权,其在此出于所有目的通过引用将其全部内容并入本文。
本申请涉及音频处理术领域,更具体地,涉及一种录音方法、装置、无线耳机及存储介质。
随着科技水平和生活水平的快速进步,无线耳机因其方便携带等特点得到越来越广泛的应用。其中,真无线立体声(True Wireless Stereo,TWS)耳机更因其完全摒弃有线的烦恼,在使用上更为自由而受到使用者的青睐。目前的无线耳机通常设置有麦克风,以用于录音场景中声音的采集。在无线耳机被用于录音时,其采用的录音方式通常固定,录音的方式不够灵活。
发明内容
鉴于上述问题,本申请提出了一种录音方法、装置、无线耳机及存储介质。
第一方面,本申请实施例提供了一种录音方法,应用于第一无线耳机,所述第一无线耳机与第二无线耳机以及电子设备连接,所述第一无线耳机和所述第二无线耳机均设置有音频采集装置,所述方法包括:获取所述第一无线耳机以及所述第二无线耳机的佩戴状态;若所述第一无线耳机以及所述第二无线耳机中无线耳机的佩戴状态发生变化,根据所述第一无线耳机以及所述第二无线耳机中处于佩戴状态的无线耳机,调整录音模式;控制所述处于佩戴状态的无线耳机采集音频数据;根据所述录音模式,对所述音频数据进行预处理;将所述预处理后的音频数据传输至电子设备。
第二方面,本申请实施例提供了一种录音装置,应用于第一无线耳机,所述第一无线耳机与第二无线耳机以及电子设备连接,所述第一无线耳机和所述第二无线耳机均设置有音频采集装置,所述装置包括:状态获取模块、模式调整模块、数据采集模块、数据处理模块以及数据传输模块,其中,所述状态获取模块用于获取所述第一无线耳机以及所述第二无线耳机的佩戴状态;所述模式调整模块用于若所述第一无线耳机以及所述第二无线耳机中无线耳机的佩戴状态发生变化,根据所述第一无线耳机以及所述第二无线耳机中处于佩戴状态的无线耳机,调整录音模式;所述数据采集模块用于控制所述处于佩戴状态的无线耳机采集音频数据;所述数据处理模块用于根据所述录音模式,对所述音频数据进行预处理;所述数据传输模块用于将所述预处理后的音频数据传输至所述电子设备。
第三方面,本申请实施例提供了一种无线耳机,包括:一个或多个处理器;存储器;一个或多个应用程序,其中所述一个或多个应用程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行上述第一方面提供的录音方法。
第四方面,本申请实施例提供了一种计算机可读取存储介质,所述计算机可读取存储介质中存储有程序代码,所述程序代码可被处理器调用执行上述第一方面提供的录音方法。
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1示出了本申请实施例提供的一种应用环境的一种示意图。
图2示出了本申请实施例提供的一种应用环境的另一种示意图。
图3示出了本申请实施例提供的一种应用环境的又一种示意图。
图4示出了根据本申请一个实施例的编码控制方法流程图。
图5示出了本申请实施例提供的无线耳机的一种结构示意图。
图6示出了本申请一个实施例提供的应用场景的一种示意图。
图7示出了根据本申请另一个实施例的编码控制方法流程图。
图8示出了根据本申请又一个实施例的编码控制方法流程图。
图9示出了本申请又一个实施例提供的应用场景的一种示意图。
图10示出了本申请又一个实施例提供的应用场景的另一种示意图。
图11示出了本申请又一个实施例的编码控制方法中步骤S340的流程图。
图12示出了本申请又一个实施例提供的同步音频采集的原理示意图。
图13示出了根据本申请再一个实施例的编码控制方法流程图。
图14示出了根据本申请又另一个实施例的编码控制方法流程图。
图15示出了本申请又一个实施例提供的单耳录音的原理示意图。
图16示出了根据本申请一个实施例的编码控制装置的一种框图。
图17是本申请实施例的用于执行根据本申请实施例的编码控制方法的无线耳机的框图。
图18是本申请实施例的用于保存或者携带实现根据本申请实施例的编码控制方法的程序代码的存储单元。
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。
电子设备(例如智能手机、平板电脑等),已经成为人们日常生活中最常用的消费型电子产品之一,随着无线通信技术的发展,用户在利用电子设备进行录音时,无线耳机因其方便携带等特点得到越来越广泛的应用。其中,真无线立体声(True Wireless Stereo,TWS)耳机由于其佩戴更为舒适、使用方便、不引人注目、更加小巧美观等优秀特性,TWS耳机在耳机市场的占有率逐渐提高。
双耳立体声录音技术(Binaural Audio)是一种高度还原真实听感的录音技术,其通过在人工头部的两只耳朵位置配有麦克风,从而可以捕捉到达每只耳朵位置的声音,两个信号就可以分别在每只耳朵上重现。这种重现不适用单声道播放,如果用扬声器来播放也达不到预期的效果,所以通常会使用耳机,将两只耳朵接收的声信号完全隔离开,这种做法可以使人工头完全复刻听众所听到的内容。
在实现双耳立体声录音时,可以使用TWS耳机的两个耳机分别设置的麦克风(Microphone,MIC)进行收音,可以达到以上双耳录音技术的效果。但是在录制的过程中,用户可能不会一直都保持双耳佩戴,因此会出现从单耳佩戴切换到双耳佩戴,从双耳佩戴切换到单耳佩戴的情况。若出现用户取下单只耳机时仍然使用双耳进行收音,此时被拿下的那只耳机和佩戴的耳机拾取的声场就与实际的声场不相符,导致录制的声场效果产生偏移;而在单耳佩戴过程中,若用户佩戴上另一耳机,还是录制单声道音频,则会导致即使用户双耳佩戴耳机,但却无法录制双耳录音效果的音频,影响用户体验。
针对上述问题,发明人提出了本申请实施例提供的录音方法、装置、无线耳机以及存储介质,可以实现根据第一无线耳机以及第二无线耳机的佩戴状态,对录音模式进行控制,以及对获取到的音频数据进行相应的处理,使得录音模式与佩戴状态匹配,提升了录音方式的灵活性,保证了录音效果。
在介绍本申请实施例的编码控制方法之前,先介绍该编码控制方法对应的应用环境。如图1所示,该编码控制方法对应的应用环境包括录音系统10,录音系统10包括电子设备11、第一无线耳机12和第二无线耳机13。该电子设备11可以是智能手机、平板电脑、电子书、智能穿戴设备等能够运行应用程序、并且具有音频信号采集的功能的设备。第一无线耳机12和第二无线耳机13构成真无线立体声(True Wireless Stereo,TWS)耳机,其中,TWS耳机的左右两只耳机相互独立、无需线缆相连,即可实现左右声道的无线分离。于本申请实施例中,可以通过第一无线耳机12和第二无线耳机13分别采集左右声道的声音。
于本申请实施例中,电子设备11内安装有能够采集音频的应用程序,具体地,该应用程序可以是音频播放软件、视频播放软件或者通话软件或者其他的能够触发音频播放的软件等。第一无线耳机12和第二无线耳机13中可以均设置有音频采集装置,例如,设置有麦克风。第一无线耳机12和第二无线耳机13中可以设置有音频采集装置可以采集音频信号,并且由电子设备11将该音频信号处理之后生成音频文件。当然,电子设备11也可以将需要播放的音频发送给第一无线耳机12和第二无线耳机13中的至少一个,由第一无线耳机12和第二无线耳机13中的至少一个播放语音。
作为一种实施方式,如图2所示,电子设备11能够同时与第一无线耳机12和第二无线耳机 13连接。第一无线耳机12和第二无线耳机13能够直接将音频数据发送至电子设备11,或者,接收电子设备11发送的音频数据进行播放。
作为另一种实施方式,如图3所示,电子设备11与第一无线耳机12通过蓝牙连接,然后,第一无线耳机12再通过蓝牙和第二无线耳机13连接,从而,电子设备11、第一无线耳机12和第二无线耳机13通过组网的方式实现同时连接,即第一无线耳机12作为电子设备11和第二无线耳机13的中继器。
在本申请实施例中,电子设备11、第一无线耳机12和第二无线耳机13通过图3所示的方式连接,则该第一无线耳机12可以作为主耳机,第二无线耳机13可以作为从耳机。
请参阅图4,图4示出了本申请一个实施例提供的编码控制方法的流程示意图。在具体的实施例中,该编码方法可以应用于上述录音系统,具体地,该方法的执行主体可以是第一无线耳机,所述第一无线耳机和所述第二无线耳机均设置有音频采集装置,且第一无线耳机和第二无线耳机采用图4所示的连接方式。下面将针对图4所示的流程进行详细的阐述,所述编码控制方法具体可以包括以下步骤:
步骤S110:获取所述第一无线耳机以及所述第二无线耳机的佩戴状态。
在本申请实施例中,由于TWS耳机的两个无线耳机被用于录音时,用户对无线耳机的佩戴状态可能发生改变,若在录音过程中采用固定的录音模式,则可能导致录音效果受到影响。因此,在录音时,作为与电子设备连接的第一无线耳机(主耳机)可以获取第一无线耳机以及第二无线耳机的佩戴状态,以对录音模式进行控制。
在一些实施方式中,如图5所示,第一无线耳机12的壳体上设置有佩戴检测器121,该佩戴检测器12设置在第一无线耳机12的壳体的指定表面,该指定表面为该第一无线耳机12被佩戴时,耳机头与人耳耳甲腔接触的表面。可选地,可以是在该指定表面开设一个黑色圆孔,这个圆孔内装配的便是一个佩戴检测器121,该佩戴检测器121可以是光感传感器,其包括发光单元和感光单元,该发光单元可以是LED灯,LED灯发出红外光线,透过圆孔上的棱镜片,辐射向耳机外,如果前方有不透明物体阻挡的话,大部分光线会反射回来,感光单元根据反射回来的光线强度来判断是否有物体阻挡,来推断是否处于佩戴状态。同理,第二无线耳机12也可以设置佩戴检测器,并基于该佩戴检测器确定第二无线耳机12是否处于佩戴状态。当然,佩戴检测器的具体类型可以不做限定,佩戴检测器也可以为触摸传感器、压力传感器等。
在该实施方式中,可以预先设置有佩戴检测器对应的状态阈值,可以基于佩戴检测器检测的检测值,与状态阈值进行比较,并根据比较结果,确定无线耳机是否处于佩戴状态。例如,佩戴检测器为光感传感器时,状态阈值为设定的光线强度阈值,若光感传感器检测的光线强度低于设定的光线强度阈值时,则确定无线耳机处于佩戴状态;若光感传感器检测的光线强度大于或等于设定的光线强度阈值时,则确定无线耳机未处于佩戴状态。
在一些实施方式中,第一无线耳机在获取第一无线耳机以及第二无线耳机的佩戴状态时,第一无线耳机可以检测自身的佩戴状态,并从第二无线耳机获取第二无线耳机检测的佩戴状态。也就是说,第一无线耳机以及第二无线耳机可以同时检测佩戴状态,第二无线耳机在检测自身的佩戴状态之后,将检测结果同步给第一无线耳机。
在一些实施方式中,在进行录音时,第一无线耳机可以实时的获取第一无线耳机以及第二无线耳机的佩戴状态,以根据佩戴状态进行后续录音的控制;第一无线耳机也可以按照设置的频率,获取第一无线耳机以及第二无线耳机的佩戴状态,例如,第一无线耳机可以每间隔1秒获取一次第一无线耳机以及第二无线耳机的佩戴状态。
步骤S120:若所述第一无线耳机以及所述第二无线耳机中无线耳机的佩戴状态发生变化,根据所述第一无线耳机以及所述第二无线耳机中处于佩戴状态的无线耳机,调整录音模式。
在本申请实施例中,第一无线耳机在获取到第一无线耳机以及第二无线耳机的佩戴状态后,可以确定第一无线耳机以及第二无线耳机的佩戴状态是否发生变化;若第一无线耳机以及第二无线耳机中有无线耳机的佩戴状态发生变化,则可以对录音模式进行调整。可以理解地,无线耳机在处于佩戴状态时,则用户很大可能期望被佩戴的耳机处于使用状态而采集声音,而未处于佩戴状态的无线耳机,则用户很大可能不进行使用,并且单耳佩戴的状态下,处于佩戴状态的无线耳机与未处于佩戴状态的无线耳机同时进行音频数据采集,实现双声道录音,则容易造成声场不符和偏移,使录音效果受到影响,因此在无线耳机的佩戴状态发生变化时,可以调整录音模式,以使录音模式与第一无线耳机以及第二无线耳机中处于佩戴状态的无线耳机对应。
在一些实施方式中,录音模式可以包括单声道录音的模式以及双声道录音的模式。在无线耳机的佩戴状态发生变化时,根据第一无线耳机以及第二无线耳机中处于佩戴状态的无线耳机,调 整录音模式,可以包括:若第一无线耳机以及第二无线耳机均处于佩戴状态,调整录音模式为双声道录音的模式;若第一无线耳机以及第二无线耳机中其中一个无线耳机未处于佩戴状态,调整录音模式为单声道录音的模式。可以理解地,在其中一个无线耳机处于佩戴模式时,则采用单声道录音的模式,在两个无线耳机均处于佩戴状态时,则采用双声道录音的模式。
在一些实施方式中,录音模式除了单声道录音的模式以及双声道录音的模式以外,还可以包括三个及以上声道的录音模式。其中,录音模式为三个及以上声道的录音模式时,则至少一个无线耳机采集的音频数据可以被作为至少两个声道的音频数据。例如,三声道的录音模式时,第一无线耳机采集的音频数据可以作为其中两个声道的音频数据,第二无线耳机采集的音频数据可以作为另一声道的音频数据。
步骤S130:控制所述处于佩戴状态的无线耳机采集音频数据。
在本申请实施例中,第一无线耳机在确定录音模式后,还可以基于第一无线耳机以及第二无线耳机的佩戴状态,控制处于佩戴状态的无线耳机进行音频数据的采集。
在一些实施方式中,第一无线耳机以及第二无线耳机中的至少一个处于佩戴状态(即双耳佩戴的状态或者单耳佩戴的状态),并且控制处于佩戴状态的无线耳机进行音频数据的采集,控制未处于佩戴状态的无线耳机不进行音频数据的采集。可以理解地,无线耳机在处于佩戴状态时,则用户很大可能期望被佩戴的耳机处于使用状态而采集声音,因此,可以控制处于佩戴状态的无线耳机进行音频数据的采集;而未处于佩戴状态的无线耳机,则用户很大可能不进行使用,并且单耳佩戴的状态下,处于佩戴状态的无线耳机与未处于佩戴状态的无线耳机同时进行音频数据采集,容易造成声场不符和偏移,使录音效果受到影响,因此可以控制未处于佩戴状态的无线耳机不进行音频数据的采集。
步骤S140:根据所述录音模式,对所述音频数据进行预处理。
在本申请实施例中,第一无线耳机还可以对录音过程中获取到的音频数据,根据录音模式进行预处理。
在一些实施方式中,若录音模式为双声道录音的模式,第一无线耳机以及第二无线耳机同时进行音频数据的采集,此时可以获取到两个声道的音频数据,因此可以进行双声道录音对应的处理。具体地,可以将第一无线耳机以及第二无线耳机采集的音频数据合并后,得到合并后的用于发送至电子设备的音频数据。若录音模式为单声道录音的模式,第一无线耳机以及第二无线耳机中只有一个无线耳机进行音频数据的采集,此时只能获取到一个声道的音频数据,则对采集的音频数据进行单声道录音对应的处理,例如,可以添加单声道标记,以便电子设备获知第一无线耳机发送的音频数据为单声道的音频数据。
在一些实施方式中,若第一无线耳机以及第二无线耳机同时进行音频数据的采集,则第二无线耳机可以将获取的音频数据传输至第一无线耳机,第一无线耳机再对其自身采集的音频数据以及第二无线耳机传输的音频数据进行录音模式对应的预处理,得到处理后的音频数据。若第一无线耳机进行音频数据的采集,第二无线耳机不进行音频数据的采集,则第一无线耳机可以对其采集的音频数据进行录音模式对应的预处理后,得到处理后的音频数据。若第一无线耳机未进行音频数据的采集,第二无线耳机进行音频数据的采集,此时,第一无线耳机只是作为中继耳机,对第二无线耳机传输的音频数据进行录音模式对应的预处理后,得到处理后的音频数据,并且后续将处理后的音频数据传输至电子设备。
步骤S150:将所述预处理后的音频数据传输至电子设备。
在本申请实施例中,第一无线耳机在对获取到的音频数据进行预处理后,则可以将预处理后的音频数据传输至电子设备,以便电子设备根据接收的音频数据生成音频文件。具体地,可以是对音频数据执行编码或者优化处理等操作之后生成指定音频格式的音频文件,该指定音频格式可以是MP3、WAV、FLC等,具体的音频格式可以不做限定。
在一些实施方式中,第一无线耳机在将处理后的音频数据传输至电子设备后,电子设备的无线通信模块(例如蓝牙模块等)接收到该音频数据包之后,进行解码,解码成PCM的数据,给到后处理的算法模块,该后处理的算法模块可以是应用处理器AP内的模块,进行增益调整处理和频率处理的调整后给到录音的APK输出MP3的文件。由此,将后处理的过程设置于电子设备一侧,不仅可以保证录音效果,还能够降低无线耳机的功耗。
其中,增益调整处理包括增益增大操作和动态范围调整(Dynamic Range Control,DRC),其中,增益增大操作包括对目标声源的音频信号的整个频域或时域部分的增益增大,动态范围调整是指用来动态调整音频输出幅值,在音量大时压制音量在某一范围内,在音量小时适当提升音量。通常用于控制音频输出功率,使扬声器不破音,当处于低音量播放时也能清晰听到。频率处理用 于对目标声源的音频信号的不同频率部分进行处理,例如,EQ和降噪,其中,EQ英文全称Equaliser,即均衡器,用于通过对音频信号的某一个或多个频段进行增益或衰减,从而达到调整音色的目的。降噪可以是滤波,即将音频信号中的部分频段的信号滤除等,以降低音频信号中的噪声。
在一些实施方式中,前一个实施方式中电子设备对音频数据进行后处理的过程也可以设置于无线耳机,其中,第一无线耳机在进行步骤S140中的预处理过程中,也可以进行上述的后处理,即执行上述的增益调整处理和频率处理,以保证录音效果。可选地,第一无线耳机可以获取当前的剩余电量,若剩余电量大于电量阈值,表示当前剩余电量较为充足,因此可以执行如上的后处理,并对后处理后的音频数据中加上第一标记,第一标记用于指示音频数据已被进行后处理,以便电子设备获知音频数据已被进行过后处理,而减小电子设备的处理量;而在剩余电量小于或等于电量阈值时,则对预处理后的音频数据添加第二标记,将已添加第二标记的音频数据传输至电子设备,第二标记用于指示音频数据未被进行后处理,以便电子设备获知音频数据未进行过后处理,从而能够对接收到的音频数据进行上述的后处理。
在一些实施方式中,第一无线耳机将获取的音频数据传输至电子设备时,由于采集音频数据的无线耳机在采集到音频数据后会对音频数据进行编码,因此,第一无线耳机还可以在音频数据中添加码率信息,以便电子设备在接收到音频数据后,可以根据码率信息,获知音频数据的码率,从而在对音频数据进行进一步的处理而生成音频文件时,能够根据码率调整处理时的采样率、位数信息和压缩数据的强度等。
在一些实施方式中,除了控制处于佩戴状态的无线耳机进行音频数据的采集,未处于佩戴状态的无线耳机在满足设定状态条件时也可以进行音频数据的采集。可选地,第一无线耳机以及第二无线耳机均处于佩戴状态,即处于双耳佩戴的状态,则第一无线耳机以及第二无线耳机均可以进行音频数据的采集,即进行双声道的音频数据采集;而当第一无线耳机以及第二无线耳机中只有一个无线耳机处于佩戴状态时,则控制处于佩戴状态的无线耳机进行音频数据的采集,并且未处于佩戴状态无线耳机满足设定状态条件时,也可以进行音频数据的采集,此时可能为单声道的音频数据采集,也可能不为单声道的音频数据采集。可选地,上述设定状态条件可以包括:未处于佩戴状态的无线耳机相对处于佩戴状态的无线耳机的空间位置满足设定的位置条件。其中,该位置条件可以基于双耳佩戴时,无线耳机之间可能存在的相对空间位置设置,可以理解地,用户佩戴第一无线耳机以及第二无线耳机时,随着用户的移动或者头部转动,两个无线耳机之间的相对空间位置可能发生变化,因此可以获取双耳佩戴状态下两个无线耳机之间存在的相对空间位置,确定以上位置条件。其中,若未处于佩戴状态的无线耳机相对处于佩戴状态的无线耳机的空间位置满足设定的位置条件时,虽然其中一个无线耳机未处于佩戴状态,但是,录制的声场也与双耳录音时的声场符合,因此,也可以进行音频数据的采集。可选地,上述设定状态条件可以包括:第二无线耳机处于手持状态。可以理解地,在一些场景中,如图6所示,可能录音的场景为采访的场景,此时,采访者A则可能佩戴第一无线耳机12,而被采访者B则可能手持第二无线耳机13以采集被采访者B的声音。因此,可以确定第二无线耳机是否处于手持状态,以确认是否需要控制第二无线耳机采集音频数据。可选地,第二无线耳机的耳柄的表面可以设置有触摸传感器,以根据触摸传感器检测的数据,确定第二无线耳机是否处于手持状态。
本申请实施例提供的录音方法,在录音过程中,在第一无线耳机以及第二无线耳机中无线耳机的佩戴状态发生变化时,调整录音模式,并对采集音频数据的无线耳机进行控制,并且根据录音模式,对采集的音频数据进行预处理,使得录音模式与佩戴状态匹配,提升了录音模式的灵活性,保证了录音效果。
请参阅图7,图7示出了本申请另一个实施例提供的录音方法的流程示意图。该录音方法应用于上述第一无线耳机,下面将针对图7所示的流程进行详细的阐述,所述录音方法具体可以包括以下步骤:
步骤S210:获取所述第一无线耳机以及所述第二无线耳机的佩戴状态。
步骤S220:若所述第一无线耳机以及所述第二无线耳机中无线耳机的佩戴状态发生变化,根据所述第一无线耳机以及所述第二无线耳机中处于佩戴状态的无线耳机,调整录音模式。
在本申请实施例中,步骤S210以及步骤S220可以参阅前述实施例的内容,在此不再赘述。
步骤S230:若所述第一无线耳机处于佩戴状态且所述第二无线耳机未处于佩戴状态,控制所述第一无线耳机进行音频数据的采集。
在本申请实施例中,第一无线耳机在获取到第一无线耳机以及第二无线耳机的佩戴状态后,若第一无线耳机处于佩戴状态,而第二无线耳机未处于佩戴状态,则可以控制第一无线耳机进行音频数据的采集,而第二无线耳机不进行音频数据的采集。可以理解地,第二无线耳机未佩戴时, 若第一无线耳机以及第二无线耳机同时采集音频数据,进行双耳录音时,则会导致录制的声场与此前不符,产生声场偏移,因此,在第一无线耳机处于佩戴状态,而第二无线耳机未处于佩戴状态时,可以仅控制第一无线耳机进行音频数据的采集。
步骤S240:若所述第一无线耳机以及所述第二无线耳机均处于佩戴状态,控制所述第一无线耳机以及所述第二无线耳机均进行音频数据的采集。
在本申请实施例中,第一无线耳机在获取到第一无线耳机以及第二无线耳机的佩戴状态后,若第一无线耳机以及第二无线耳机均处于佩戴状态,则TWS耳机处于双耳佩戴的状态,此时,可以控制第一无线耳机以及第二无线耳机均进行音频数据的采集,以实现双耳录音的效果。
在一些实施方式中,第一无线耳机在获取到第一无线耳机以及第二无线耳机的佩戴状态后,若第一无线耳机未处于佩戴状态,而第二无线耳机处于佩戴状态,此时,由于第一无线耳机为与电子设备连接的主耳机,而当前主耳机未处于佩戴状态,因此可以切换主耳机为第二无线耳机,并通过第二无线耳机进行音频数据的采集,以减少音频数据的传输时间。
步骤S250:根据所述录音模式,对所述音频数据进行预处理。
步骤S260:将所述预处理后的音频数据传输至所述电子设备。
在本申请实施例中,步骤S250以及步骤S260可以参阅其他实施例的内容,在此不再赘述。
本申请实施例提供的录音方法,在录音过程中,根据无线耳机的佩戴状态的变化,调整录音模式,并且在两者同时处于佩戴状态时,控制两者同时进行音频数据的采集,而作为主耳机的第一无线耳机处于佩戴状态,且第二无线耳机未处于佩戴状态时,仅控制第一无线耳机进行音频数据的采集,使得录音模式与佩戴状态匹配,提升了录音模式的灵活性,保证了录音效果。
请参阅图8,图8示出了本申请又一个实施例提供的录音方法的流程示意图。该录音方法应用于上述无线耳机,下面将针对图8所示的流程进行详细的阐述,所述录音方法具体可以包括以下步骤:
步骤S310:获取所述第一无线耳机以及所述第二无线耳机的佩戴状态。
步骤S320:若所述第一无线耳机以及所述第二无线耳机中无线耳机的佩戴状态发生变化,根据所述第一无线耳机以及所述第二无线耳机中处于佩戴状态的无线耳机,调整录音模式。
在本申请实施例中,步骤S310以及步骤S320可以参阅前述实施例的内容,在此不再赘述。
步骤S330:若所述第一无线耳机处于佩戴状态且所述第二无线耳机未处于佩戴状态,控制所述第一无线耳机进行音频数据的采集。
在本申请实施例中,录音过程中,若第一无线耳机处于佩戴状态,且第二无线耳机由佩戴状态变为未佩戴状态时,则可以采用单声道录音的模式进行录音,此时,可以控制第一无线耳机进行音频数据的采集,而第二无线耳机不进行音频数据的采集,以避免录制的声场发生偏移,影响录音效果。该情况下,直接切换为单声道录音的模式,并且第一无线耳机持续进行音频数据的采集,因此不会出现延时或中断。
步骤S340:若所述第一无线耳机处于佩戴状态,且所述第二无线耳机由未佩戴状态变为佩戴状态时,控制所述第一无线耳机进行音频数据的采集。
在本申请实施例中,录音过程中,第一无线耳机在获取到第一无线耳机以及第二无线耳机的佩戴状态后,若第一无线耳机处于佩戴状态,而第二无线耳机未处于佩戴状态,控制第一无线耳机进行音频数据的采集,此时为单声道录音的模式。并且,第一无线耳机处于佩戴状态,第二无线耳机由未佩戴状态变为佩戴状态时,则需要进行双声道录音,此时,可以保持第一无线耳机进行音频数据的采集,并且需要控制第二无线耳机进行音频数据的采集。
在一些场景中,如图9所示,用户同时佩戴第一无线耳机12以及第二无线耳机13进行录音,此时第一无线耳机以及第二无线耳机同时进行音频数据的采集,实现双耳录音;如图10所示,在用户将第二无线耳机13摘下后,则可以仅控制第一无线耳机12进行音频数据的采集,实现单声道录音。
步骤S350:获取用于同步所述第一无线耳机与所述第二无线耳机采集的音频数据的同步信息,所述同步信息用于所述第一无线耳机与所述第二无线耳机对采集的音频数据进行同步。
在本申请实施例中,在第一无线耳机处于佩戴状态,而第二无线耳机由未佩戴状态变为佩戴状态时,由于此前第二无线耳机并未进行音频数据的采集,为了保证录制双声道的音频数据时,后续发送至电子设备的音频数据中双声道的音频数据同步,即保证发送至电子设备的音频数据中双声道的音频数据为同时间采集的音频数据,因此,可以对第一无线耳机以及第二无线耳机进行采集的音频数据进行同步。具体地,第一无线耳机可以获取用于同步第一无线耳机与第二无线耳机采集的音频数据的同步信息,该同步信息用于第一无线耳机与第二无线耳机对采集的音频数据 进行同步,以保证发送至电子设备的音频数据中双声道的音频数据为同时间采集的音频数据。
在一些实施方式中,请参阅图11,获取用于同步所述第一无线耳机与所述第二无线耳机采集音频数据的同步信息,可以包括:
步骤S351:获取所述第一无线耳机以及所述第二无线耳机进行音频数据采集的同步时间,所述同步时间用于所述第二无线耳机控制开始进行音频数据的时间。
在该实施方式中,第一无线耳机可以获取第一无线耳机以及第二无线耳机进行音频数据采集的同步时间,以便第二无线耳机控制其何时开始录音,以及第一无线耳机后续可以获知第二无线耳机采集的音频数据是何时开始录制的,从而保证两者采集的音频数据的同步。
可选地,获取所述第一无线耳机以及所述第二无线耳机进行音频数据采集的同步时间,可以包括:获取所述第二无线耳机启动录音所需的时长作为第一时长;获取发送待生成的同步信息至所述第二无线耳机的时长作为第二时长;基于当前时刻、所述第一时长以及所述第二时长,生成所述同步时间。该方式中,第一无线耳机在确定以上同步时间时,可以获取第二无线耳机启动录音过程所需要花费的时长,例如,开启麦克风、设置编码器的过程等;并且可以获取后续确定同步信息后,同步信息发送至第二无线耳机的时长,然后在当前时刻的基础上,加上第一时长以及第二时长,即得到同步录音的同步时间(时刻)。也就是说,在该同步时间时,第二无线耳机进行音频数据的采集,并且第一无线耳机能够同样获知在该同步时间的时间点之后所采集的音频数据,以便第一无线耳机后续能够对第二无线耳机开始录音时所发送的音频数据,与其自身采集的音频数据进行比对和合并后,发送至电子设备,保证发送至电子设备的双声道的音频数据所被无线耳机采集的时间是一致的。
步骤S352:获取所述第一无线耳机以及所述第二无线耳机同步音频数据包的数据包序号,所述数据包序号用于所述第二无线耳机对采集到的音频数据包进行编号。
在该实施方式中,由于无线耳机在采集音频数据时,通常会将采集的音频数据编码成不同的数据包,因此,在录音过程中,第一无线耳机可以对获取的数据包进行编号。在第二无线耳机由未佩戴状态变为佩戴状态时,则可以获取第一无线耳机以及第二无线耳机同步音频数据包的数据包序号,以便第二无线耳机将相同时间获取的音频数据包,编号为第一无线耳机在相同时间获取的音频数据包的序号。
可选地,第一无线耳机可以基于当前采集的音频数据的数据包序号以及同步时间,获取第一无线耳机在同步时间时,对采集到的音频数据包进行编号后的数据包序号,作为第一无线耳机以及第二无线耳机同步音频数据包的数据包序号。其中,第一无线耳机可以根据同步时间和数据包序号,按照编码音频数据得到数据包的速度,预估在同步时间时对音频数据包进行编号后的序号。
步骤S353:基于所述同步时间以及所述数据包序号生成所述同步信息。
在得到同步时间以及数据包序号后,则可以基于同步时间以及数据包序号生成同步信息,同步信息中包括该同步时间以及数据包序号。
当然,第一无线耳机与第二无线耳机采用其他的方式对采集的音频数据进行同步时,也可以根据其采用的其他方式来生成对应的同步信息。
步骤S360:将所述同步信息发送至所述第二无线耳机,所述第二无线耳机用于根据所述同步信息进行音频数据的采集。
在本申请实施例中,第一无线耳机在生成同步信息之后,则可以将同步信息发送至第二无线耳机,第二无线耳机在接收到同步信息后,则可以根据同步信息控制其何时进行音频数据的采集,后续第二无线耳机在将开始录制后的第一个音频数据包发送至第一无线耳机之后,则第一无线耳机可以获知第二无线耳机发送的音频数据包是从何时开始录制的,并且确定其自身采集的音频数据包中与该音频数据包所对应的音频数据包,以便在发送双声道的音频数据至电子设备时,保持双声道的音频数据的同步性。
在一些实施方式中,在同步信息中包括同步时间以及数据包序号时,第一无线耳机以及第二无线耳机根据采集的音频数据所得到的音频数据包中可以同时携带有音频时间戳与数据包序号,后续第二无线耳机在将开始录制后的第一个音频数据包发送至第一无线耳机之后,则第一无线耳机可以比对其自身生成的音频数据包,与该第一个音频数据包的音频时间戳以及数据包序号一致,从而实现双声道的音频数据的同步。
在一些实施方式中,第二无线耳机作为从耳机且未处于佩戴状态时,由于其当前不需要进行音频数据采集,因此可以与主耳机(第一无线耳机)断开连接,以减少功耗。请参阅图12,在从耳机处于佩戴状态后,可以与主耳机建立连接;然后,主耳机获取以上同步时间和数据包序号N,并将同步时间和数据包序号作为同步信息发送至从耳机,其中,N为正整数;从耳机根据同步时 间,设置编码器启动时间,以控制其在同步时间时开始采集音频数据和编码音频数据;从耳机在获取到第一个音频数据包之后,再将第一个音频数据包编号为同步信息中的数据包序号N,并且发送至主耳机;主耳机根据主耳机和从耳机生成的音频数据包中数据包序号为N的音频数据包,进行同步。
步骤S370:根据所述录音模式,对所述音频数据进行预处理。
步骤S380:将所述预处理后的音频数据传输至所述电子设备。
在本申请实施例中,步骤S370以及步骤S380可以参阅其他实施例的内容,在此不再赘述。
本申请实施例提供的录音方法,在录音过程中,作为主耳机的第一无线耳机根据第一无线耳机以及第二无线耳机的佩戴状态,在佩戴状态发生变化时,调整录音模式,并且控制采集音频数据的无线耳机,以使录音方式与佩戴状态匹配,提升了录音方式的灵活性,保证了录音效果。另外,第一无线耳机处于佩戴状态,而第二无线耳机由未佩戴状态变为佩戴状态时,进行两个耳机之间音频数据采集的同步,保证双耳录音时传输至电子设备的音频数据的采集时间同步,从而保证录音内容的准确性和录音效果。
请参阅图13,图13示出了本申请再一个实施例提供的录音方法的流程示意图。该录音方法应用于上述无线耳机,下面将针对图13所示的流程进行详细的阐述,所述录音方法具体可以包括以下步骤:
步骤S410:获取所述第一无线耳机以及所述第二无线耳机的佩戴状态。
步骤S420:若所述第一无线耳机以及所述第二无线耳机中无线耳机的佩戴状态发生变化,根据所述第一无线耳机以及所述第二无线耳机中处于佩戴状态的无线耳机,调整录音模式。
在本申请实施例中,步骤S410以及步骤S420可以参阅前述实施例的内容,在此不再赘述。
步骤S430:若所述第一无线耳机由佩戴状态变为未佩戴状态,且所述第二无线耳机为佩戴状态,断开与所述电子设备的连接。
在本申请实施例中,录音过程中,第一无线耳机在获取到第一无线耳机以及第二无线耳机的佩戴状态后,若第一无线耳机由佩戴状态变为未佩戴状态,而第二无线耳机为佩戴状态,此时,需要第二无线耳机进行音频数据的采集,而第一无线耳机不进行音频数据的采集。该情况下,若仍将第一无线耳机作为主耳机与电子设备进行连接,则第二无线耳机采集的音频数据仍然需要通过第一无线耳机进行中转,进而导致音频数据传输至电子设备的效率较低。因此,在检测出第一无线耳机由佩戴状态变为未佩戴状态,而第二无线耳机为佩戴状态,则可以断开与电子设备的连接。
步骤S440:向所述第二无线耳机发送切换指令,所述切换指令用于指示所述第二无线耳机与所述电子设备连接,进行音频数据的采集,以及根据所述录音模式对采集的音频数据进行所述预处理后传输至所述电子设备。
在本申请实施例中,第一无线耳机在断开与电子设备的连接的同时,可以向第二无线耳机发送切换指令,第二无线耳机在接收到切换指令后,则可以响应该切换指令,与电子设备连接,并且进行音频数据的采集,以及根据录音模式对采集的音频数据进行预处理后传输至电子设备,由此实现第一无线耳机被用户从耳朵取下,第二无线耳机被佩戴时的单声道录音的模式。
在一些场景中,用户可能仅佩戴第一无线耳机进行录音,此时仅控制第一无线耳机进行音频数据的采集,实现单声道录音;若用户将第一无线耳机摘下,并且将第二无线耳机戴上,此时第一无线耳机由佩戴状态变为未佩戴状态,而第二无线耳机为佩戴状态,则进行步骤S430以及步骤S440的处理。
在一些场景中,用户可能同时佩戴第一无线耳机进行录音,此时同时控制第一无线耳机以及第二无线耳机进行音频数据的采集,实现双声道录音;若用户将第一无线耳机摘下,并且将第二无线耳机戴上,此时第一无线耳机由佩戴状态变为未佩戴状态,而第二无线耳机为佩戴状态,则进行步骤S430以及步骤S440的处理。
步骤S450:若所述第一无线耳机处于佩戴状态且所述第二无线耳机未处于佩戴状态,控制所述第一无线耳机进行音频数据的采集。
步骤S460:若所述第一无线耳机以及所述第二无线耳机均处于佩戴状态,控制所述第一无线耳机以及所述第二无线耳机均进行音频数据的采集。
步骤S470:根据所述录音模式,对所述音频数据进行预处理。
步骤S480:将所述预处理后的音频数据传输至所述电子设备。
在本申请实施例中,步骤S450至步骤S480可以参阅其他实施例的内容,在此不再赘述。
本申请实施例提供的录音方法,在录音过程中,作为主耳机的第一无线耳机根据第一无线耳 机以及第二无线耳机的佩戴状态,在佩戴状态发生变化时,调整录音模式,并且控制采集音频数据的无线耳机,以使录音模式与佩戴状态匹配,提升了录音模式的灵活性,保证了录音效果。另外,第二无线耳机处于佩戴状态,而第一无线耳机由佩戴状态变为佩戴状态时,进行主耳机的切换,将主耳机切换为第二无线耳机,使第二无线耳机将采集的音频数据传输至电子设备时,无需再通过第一无线耳机进行中转,提升音频数据的传输效率。
请参阅图14,图14示出了本申请又另一个实施例提供的录音方法的流程示意图。该录音方法应用于上述无线耳机,下面将针对图14所示的流程进行详细的阐述,所述录音方法具体可以包括以下步骤:
步骤S510:获取所述第一无线耳机以及所述第二无线耳机的佩戴状态。
步骤S520:若所述第一无线耳机以及所述第二无线耳机中无线耳机的佩戴状态发生变化,根据所述第一无线耳机以及所述第二无线耳机中处于佩戴状态的无线耳机,调整录音模式。
步骤S530:控制所述处于佩戴状态的无线耳机采集音频数据。
在本申请实施例中,步骤S510至步骤S530可以参阅前述实施例的内容,在此不再赘述。
步骤S540:若所述录音模式为单声道录音的模式,且所述音频数据为采集的第一个音频数据包,对所述音频数据添加第二指示信息,得到第二目标数据包,所述第二指示信息用于指示当前为单声道录音。
在一些实施方式中,在对获取到的音频数据进行单声道录音的模式对应的预处理时,若获取到的第三音频数据包为第一无线耳机以及第二无线耳机中采集音频数据的无线耳机所采集的第一个音频数据包,则可以对第三音频数据包添加第二指示信息,得到第二目标数据包,第二指示信息用于指示当前为单声道录音。从而电子设备在获取到发送的第二目标数据包之后,则可以获知当前第一无线耳机采集的音频数据为单声道录音的音频数据,因此,后续电子设备可以复制该音频数据作为另一声道的音频数据,即两个声道使用相同数据,再根据两个声道的音频数据生成音频文件。
示例性地,请参阅图15,图15示出了第一无线耳机作为主耳机进行音频数据的采集,电子设备为手机,实现单耳录音时的录音的原理。其中,主耳机可以将麦克风采集的音频数据进行OPUS编码后,将编码得到的音频数据包放入主缓冲区,并通过帧头信息控制模块,对单耳录音时产生的第一个音频数据包加入以上第二指示信息;后续主耳机通过从主缓冲区中取出音频数据包后,发送至手机蓝牙;在手机蓝牙将音频数据包传给Audio之前,解析出的第二指示信息如果指示是单声道录音,则复制该数据做为另一个声道数据,即左右声道使用相同数据,然后再将处理后的数据发送给手机Audio模块,以生成音频文件。
在另一些实施方式中,若第一无线耳机以及第二无线耳机中其中一个无线耳机采集音频数据,也可以将获取到的音频数据包作为双声道的音频数据,对所双声道的音频数据进行合成,得到第三目标数据包。也就是说,第一无线耳机作为主耳机可以复制得到的音频数据包,作为另一个声道的音频数据包,即两个声道使用相同的音频数据,然后再将音频数据包合并成一个数据包(第三目标数据包),后续发送至电子设备。
步骤S550:若所述录音模式为双声道录音的模式,将所述第一无线耳机采集的第一音频数据包存储于第一缓冲区,将接收到的所述第二无线耳机采集的第二音频数据包存储于第二缓冲区。
在本申请实施例中,第一无线耳机以及第二无线耳机均进行音频数据的采集时,第一无线耳机以及第二无线耳机中均设置有缓冲区,其中,第一无线耳机中的缓冲区为第一缓冲区和第二缓冲区,第二无线耳机中的缓冲区为第三缓冲区。第二无线耳机在录音时,对采集的音频数据进行编码后得到的第二音频数据包,可以将第二音频数据包放入第三缓冲区;第一无线耳机对采集的音频数据进行编码后得到的第一音频数据包,可以将第一音频数据包放入第一缓冲区。第二无线耳机将第三缓冲区中的第二音频数据包发送至第一无线耳机后,第一无线耳机将第二音频数据包存储于第二缓冲区中,后续进行上行数据的发送流程。
步骤S560:将所述第一音频数据包以及所述第二音频数据包合并,得到第一目标数据包。
在本申请实施例中,在进行上行数据的发送时,第一无线耳机可以将第一缓冲区中的第一音频数据包与第二缓冲区中的第二音频数据包取出,然后将第一音频数据包以及第二音频数据包合并为同一个音频数据包之后,发送至电子设备。
在一些实施方式中,第一无线耳机以及第二无线耳机均进行音频数据的采集,实现双耳录音时,需要保证第一无线耳机以及第二无线耳机获取的音频数据包之间同步,也就是说,第一无线耳机需要合并的第一音频数据包与第二音频数据包对应的采集时间需要同步一致,以保证合并后的音频数据包的真实性。可选地,基于第一音频数据包的第一时间戳和第二音频数据包的第二时 间戳,若第一时间戳与第二时间戳一致,则可以将第一音频数据和第二音频数据整合成一个音频数据包。
在另一些实施方式中,第一无线耳机也可以在开始进行双耳录音时,即开始执行第一无线耳机和第二无线耳机同时进行音频数据的采集时,对首个音频数据包进行同步,后续的音频数据包则可以直接进行合并。其中,若第一音频数据包以及第二音频数据包为录音的过程中的第一个音频数据包,则可以根据第一音频数据包以及第二音频数据包中的同步信息,对第一音频数据包以及第二音频数据包进行比对;若第一音频数据包与第二音频数据包匹配,则将第一音频数据包以及第二音频数据包合并后发送至电子设备。对于后续获取的音频数据包,可以按照获取时的时间先后顺序,对第一无线耳机以及第二无线耳机所分别获取的音频数据包进行合并后,传输至电子设备。
在一些实施方式中,若第二音频数据包为第二无线耳机发送的第一个音频数据包,将第一音频数据包以及第二音频数据包合并,以及添加第一指示信息,得到第一目标数据包,第一指示信息用于指示当前为双声道录音。从而电子设备在获取到发送的第一目标数据包之后,则可以根据第一指示信息获知当前第一无线耳机采集的音频数据为双声道录音的音频数据,并据此进行后处理,生成相应的音频文件。
在一些实施方式中,在第一无线耳机以及第二无线耳机同时进行音频数据采集的情况下,若第一无线耳机根据获取到的第一无线耳机以及第二无线耳机的佩戴状态,确定出第一无线耳机由佩戴状态变为未佩戴状态,且第二无线耳机为佩戴状态时,此时执行上个实施例中步骤S430以及步骤S440所述的主耳机切换流程,而在切换时,第一无线耳机在断开时,其缓冲区中的音频数据并未发送至电子设备,导致音频数据的丢失。针对该问题,第一无线耳机可以将未发送至电子设备的音频数据,发送至第二无线耳机,并且第二无线耳机可以将第一无线耳机断开与电子设备的连接时,至第二无线耳机建立起与电子设备连接的过程中所采集的音频数据进行缓存,第二无线耳机在建立起与电子设备连接之后,可以将第一无线耳机发送的音频数据传输至电子设备之后,再将切换过程采集的音频数据传输至电子设备,由此,可以保证主耳机切换时音频数据不会发生丢失。
在该实施方式中,第二无线耳机在建立起与电子设备的连接时,即主耳机切换完成时,还可以增大与电子设备之间的信道的带宽,以及增大其无线通信的发射功率,例如,增大蓝牙发射功率,以便将第一无线耳机发送的音频数据更快地传输至电子设备,保证后续采集的音频数据能够及时的传输至电子设备。
步骤S570:将所述预处理后的音频数据传输至所述电子设备。
在本申请实施例中,步骤S570可以参阅其他实施例的内容,在此不再赘述。
本申请实施例提供的录音方法,在录音过程中,作为主耳机的第一无线耳机根据第一无线耳机以及第二无线耳机的佩戴状态,控制采集音频数据的无线耳机,以使录音方式与佩戴状态匹配,并且,在控制采集音频数据的无线耳机后,还根据当前采集音频数据的无线耳机,进行单声道录音或者双声道录音对应的处理,实现了录音方式与佩戴状态相匹配。提升了录音方式的灵活性,保证了录音效果。
请参阅图16,其示出了本申请实施例提供的一种录音装置400的结构框图。该录音装置400应用于第一无线耳机,所述第一无线耳机与第二无线耳机以及电子设备连接,所述第一无线耳机和所述第二无线耳机均设置有音频采集装置。该录音装置400包括:状态获取模块410、模式调整模块420、数据采集模块430、数据处理模块440以及数据传输模块450。其中,所述状态获取模块410用于获取所述第一无线耳机以及所述第二无线耳机的佩戴状态;所述模式调整模块420用于若所述第一无线耳机以及所述第二无线耳机中至少一个无线耳机的佩戴状态发生变化,根据所述第一无线耳机以及所述第二无线耳机中处于佩戴状态的无线耳机,调整录音模式,所述录音模式包括单声道录音的模式或者双声道录音的模式;所述数据采集模块430用于控制所述处于佩戴状态的无线耳机采集音频数据;所述数据处理模块440用于根据所述录音模式,对所述音频数据进行预处理;所述数据传输模块450用于将所述预处理后的音频数据传输至所述电子设备。
在一些实施方式中,模式调整模块420可以用于:若所述第一无线耳机以及所述第二无线耳机中至少一个无线耳机的佩戴状态发生变化,根据所述第一无线耳机以及所述第二无线耳机中处于佩戴状态的无线耳机,调整录音模式,所述录音模式包括单声道录音的模式或者双声道录音的模式。
在一些实施方式中,数据采集模块430可以用于:若所述第一无线耳机处于佩戴状态且所述第二无线耳机未处于佩戴状态,控制所述第一无线耳机进行音频数据的采集;若所述第一无线耳 机以及所述第二无线耳机均处于佩戴状态,控制所述第一无线耳机以及所述第二无线耳机均进行音频数据的采集。
在一种可能的实施方式中,数据采集模块430可以用于:若所述第一无线耳机处于佩戴状态,且所述第二无线耳机由未佩戴状态变为佩戴状态时,控制所述第一无线耳机进行音频数据的采集;获取用于同步所述第一无线耳机与所述第二无线耳机采集的音频数据的同步信息,所述同步信息用于所述第一无线耳机与所述第二无线耳机对采集的音频数据进行同步;将所述同步信息发送至所述第二无线耳机,所述第二无线耳机用于根据所述同步信息进行音频数据的采集。
在该实施方式中,数据采集模块430获取用于同步所述第一无线耳机与所述第二无线耳机采集音频数据的同步信息,可以包括:获取所述第一无线耳机以及所述第二无线耳机进行音频数据采集的同步时间,所述同步时间用于所述第二无线耳机控制开始进行音频数据的时间;获取所述第一无线耳机以及所述第二无线耳机同步音频数据包的数据包序号,所述数据包序号用于所述第二无线耳机对采集到的音频数据包进行编号;基于所述同步时间以及所述数据包序号生成所述同步信息。
可选地,数据采集模块430获取所述第一无线耳机以及所述第二无线耳机进行音频数据采集的同步时间,可以包括:获取所述第二无线耳机启动录音所需的时长作为第一时长;获取发送待生成的同步信息至所述第二无线耳机的时长作为第二时长;基于当前时刻、所述第一时长以及所述第二时长,生成所述同步时间。
可选地,数据采集模块430获取所述第一无线耳机以及所述第二无线耳机同步音频数据包的数据包序号,可以包括:基于当前采集的音频数据的数据包序号以及所述同步时间,获取所述第一无线耳机在所述同步时间时,对采集到的音频数据包进行编号后的数据包序号,作为所述第一无线耳机以及所述第二无线耳机同步音频数据包的数据包序号
在一些实施方式中,该录音装置400还可以包括:连接控制模块以及连接切换模块。连接控制模块用于若所述第一无线耳机由佩戴状态变为未佩戴状态,且所述第二无线耳机为佩戴状态,断开与所述电子设备的连接;连接切换模块用于向所述第二无线耳机发送切换指令,所述切换指令用于指示所述第二无线耳机与所述电子设备连接,进行音频数据的采集,以及根据所述录音模式对采集的音频数据进行所述预处理后传输至所述电子设备。
在一种可能的实施方式中,数据处理模块430可以用于:若所述录音模式为双声道录音的模式,将所述第一无线耳机采集的第一音频数据包存储于第一缓冲区,将接收到的所述第二无线耳机采集的第二音频数据包存储于第二缓冲区;将所述第一音频数据包以及所述第二音频数据包合并,得到第一目标数据包。
可选地,数据处理模块430可以用于:若所述第二音频数据包为所述第二无线耳机发送的第一个音频数据包,根据所述第一音频数据包以及所述第二音频数据包中的同步信息,对所述第一音频数据包以及所述第二音频数据包进行比对;若所述第一音频数据包与所述第二音频数据包匹配,执行所述将所述第一音频数据包以及所述第二音频数据包合并,得到第一目标数据包。
可选地,数据处理模块430可以用于:若所述第二音频数据包为所述第二无线耳机发送的第一个音频数据包,将所述第一音频数据包以及所述第二音频数据包合并,以及添加第一指示信息,得到第一目标数据包,所述第一指示信息用于指示当前为双声道录音。
在一种可能的实施方式中,数据处理模块430可以用于:若所述录音模式为单声道录音的模式,且所述音频数据为采集的第一个音频数据包,对所述第三音频数据包添加第二指示信息,得到第二目标数据包,所述第二指示信息用于指示当前为单声道录音。
在一种可能的实施方式中,数据处理模块430可以用于:若所述录音模式为单声道录音的模式,将所述第一无线耳机采集的音频数据包作为双声道的音频数据,对所述双声道的音频数据进行合成,得到第三目标数据包。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,模块相互之间的耦合可以是电性,机械或其它形式的耦合。
另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。
综上所述,本申请提供的方案,通过第一无线耳机获取所述第一无线耳机以及所述第二无线耳机的佩戴状态,若第一无线耳机以及第二无线耳机中至少一个无线耳机的佩戴状态发生变化,根据第一无线耳机以及第二无线耳机中处于佩戴状态的无线耳机,调整录音模式,录音模式包括 单声道录音的模式或者双声道录音的模式。由此,可以实现录音过程中根据第一无线耳机以及第二无线耳机的佩戴状态,对录音模式进行控制,以及对获取到的音频数据进行相应的处理,使得录音模式与佩戴状态匹配,提升了录音方式的灵活性,保证了录音效果。
请参考图17,其示出了本申请实施例提供的一种无线耳机的结构框图。本申请中的无线耳机100可以包括一个或多个如下部件:处理器110、存储器120、音频采集装置130、通信装置140以及一个或多个应用程序,其中一个或多个应用程序可以被存储在存储器120中并被配置为由一个或多个处理器110执行,一个或多个程序配置用于执行如前述方法实施例所描述的方法,存储器120、音频采集装置130和通信装置140均与处理器110连接。该音频采集装置130可以是麦克风,通信装置140可以是无线通信装置,例如,可以是蓝牙通信模块
处理器110可以包括一个或者多个处理核。处理器110利用各种接口和线路连接整个无线耳机100内的各个部分,通过运行或执行存储在存储器120内的指令、程序、代码集或指令集,以及调用存储在存储器120内的数据,执行无线耳机100的各种功能和处理数据。可选地,处理器110可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器110可集成中央处理器(Central Processing Unit,CPU)、图形处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器110中,单独通过一块通信芯片进行实现。
存储器120可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。存储器120可用于存储指令、程序、代码、代码集或指令集。存储器120可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各个方法实施例的指令等。存储数据区还可以存储无线耳机100在使用中所创建的数据(比如电话本、音视频数据、聊天记录数据)等。
请参考图18,其示出了本申请实施例提供的一种计算机可读存储介质的结构框图。该计算机可读介质800中存储有程序代码,所述程序代码可被处理器调用执行上述方法实施例中所描述的方法。
计算机可读存储介质800可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。可选地,计算机可读存储介质800包括非易失性计算机可读介质(non-transitory computer-readable storage medium)。计算机可读存储介质800具有执行上述方法中的任何方法步骤的程序代码810的存储空间。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。程序代码810可以例如以适当形式进行压缩。
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不驱使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。
Claims (20)
- 一种录音方法,其特征在于,应用于第一无线耳机,所述第一无线耳机与第二无线耳机以及电子设备连接,所述第一无线耳机和所述第二无线耳机均设置有音频采集装置,所述方法包括:获取所述第一无线耳机以及所述第二无线耳机的佩戴状态;若所述第一无线耳机以及所述第二无线耳机中无线耳机的佩戴状态发生变化,根据所述第一无线耳机以及所述第二无线耳机中处于佩戴状态的无线耳机,调整录音模式;控制所述处于佩戴状态的无线耳机采集音频数据;根据所述录音模式,对所述音频数据进行预处理;将所述预处理后的音频数据传输至电子设备。
- 根据权利要求1所述的方法,其特征在于,所述根据所述第一无线耳机以及所述第二无线耳机中处于佩戴状态的无线耳机,调整录音模式,包括:若所述第一无线耳机以及所述第二无线耳机均处于佩戴状态,调整录音模式为双声道录音的模式;若所述第一无线耳机以及所述第二无线耳机中其中一个无线耳机未处于佩戴状态,调整录音模式为单声道录音的模式。
- 根据权利要求1所述的方法,其特征在于,所述控制所述处于佩戴状态的无线耳机采集音频数据,包括:若所述第一无线耳机处于佩戴状态且所述第二无线耳机未处于佩戴状态,控制所述第一无线耳机进行音频数据的采集;若所述第一无线耳机以及所述第二无线耳机均处于佩戴状态,控制所述第一无线耳机以及所述第二无线耳机均进行音频数据的采集。
- 根据权利要求3所述的方法,其特征在于,在所述根据所述第一无线耳机以及所述第二无线耳机中处于佩戴状态的无线耳机,调整录音模式之后,所述方法还包括:若所述第一无线耳机由佩戴状态变为未佩戴状态,且所述第二无线耳机为佩戴状态,断开与所述电子设备的连接;向所述第二无线耳机发送切换指令,所述切换指令用于指示所述第二无线耳机与所述电子设备连接,进行音频数据的采集,以及根据所述录音模式对采集的音频数据进行所述预处理后传输至所述电子设备。
- 根据权利要求3所述的方法,其特征在于,所述若所述第一无线耳机以及所述第二无线耳机均处于佩戴状态,控制所述第一无线耳机以及所述第二无线耳机均进行音频数据的采集,包括:若所述第一无线耳机处于佩戴状态,且所述第二无线耳机由未佩戴状态变为佩戴状态时,控制所述第一无线耳机进行音频数据的采集;获取用于同步所述第一无线耳机与所述第二无线耳机采集的音频数据的同步信息,所述同步信息用于所述第一无线耳机与所述第二无线耳机对采集的音频数据进行同步;将所述同步信息发送至所述第二无线耳机,所述第二无线耳机用于根据所述同步信息进行音频数据的采集。
- 根据权利要求5所述的方法,其特征在于,所述获取用于同步所述第一无线耳机与所述第二无线耳机采集音频数据的同步信息,包括:获取所述第一无线耳机以及所述第二无线耳机进行音频数据采集的同步时间,所述同步时间用于所述第二无线耳机控制开始进行音频数据的时间;获取所述第一无线耳机以及所述第二无线耳机同步音频数据包的数据包序号,所述数据包序号用于所述第二无线耳机对采集到的音频数据包进行编号;基于所述同步时间以及所述数据包序号生成所述同步信息。
- 根据权利要求6所述的方法,其特征在于,所述获取所述第一无线耳机以及所述第二无线耳机进行音频数据采集的同步时间,包括:获取所述第二无线耳机启动录音所需的时长作为第一时长;获取发送待生成的同步信息至所述第二无线耳机的时长作为第二时长;基于当前时刻、所述第一时长以及所述第二时长,生成所述同步时间。
- 根据权利要求6所述的方法,其特征在于,所述获取所述第一无线耳机以及所述第二无线耳机同步音频数据包的数据包序号,包括:基于当前采集的音频数据的数据包序号以及所述同步时间,获取所述第一无线耳机在所述同步时间时,对采集到的音频数据包进行编号后的数据包序号,作为所述第一无线耳机以及所述第二无线耳机同步音频数据包的数据包序号。
- 根据权利要求1-8任一项所述的方法,其特征在于,所述根据所述录音模式,对所述音频数据进行预处理,包括:若所述录音模式为双声道录音的模式,将所述第一无线耳机采集的第一音频数据包存储于第一缓冲区,将接收到的所述第二无线耳机采集的第二音频数据包存储于第二缓冲区;将所述第一音频数据包以及所述第二音频数据包合并,得到第一目标数据包。
- 根据权利要求9所述的方法,其特征在于,在所述将所述第一音频数据包以及所述第二音频数据包合并,得到第一目标数据包之前,所述方法还包括:若所述第二音频数据包为所述第二无线耳机发送的第一个音频数据包,根据所述第一音频数据包以及所述第二音频数据包中的同步信息,对所述第一音频数据包以及所述第二音频数据包进行比对;若所述第一音频数据包与所述第二音频数据包匹配,执行所述将所述第一音频数据包以及所述第二音频数据包合并,得到第一目标数据包。
- 根据权利要求9所述的方法,其特征在于,所述将所述第一音频数据包以及所述第二音频数据包合并,得到第一目标数据包,包括:若所述第二音频数据包为所述第二无线耳机发送的第一个音频数据包,将所述第一音频数据包以及所述第二音频数据包合并,以及添加第一指示信息,得到第一目标数据包,所述第一指示信息用于指示当前为双声道录音。
- 根据权利要求1-9任一项所述的方法,其特征在于,所述根据所述录音模式,对所述音频数据进行预处理,包括:若所述录音模式为单声道录音的模式,且所述音频数据为采集的第一个音频数据包,对所述音频数据添加第二指示信息,得到第二目标数据包,所述第二指示信息用于指示当前为单声道录音。
- 根据权利要求1-9任一项所述的方法,其特征在于,所述根据所述录音模式,对所述音频数据进行预处理,包括:若所述录音模式为单声道录音的模式,将所述音频数据作为双声道中每个声道对应的音频数据,对所述每个声道对应的音频数据进行合成,得到第三目标数据包。
- 根据权利要求1-13任一项所述的方法,其特征在于,所述将所述预处理后的音频数据传输至电子设备,包括:对所述预处理后的音频数据进行后处理,并对所述后处理后的音频数据添加第一标记,所述第一标记用于指示音频数据已被进行后处理;将已添加所述第一标记的音频数据传输至电子设备。
- 根据权利要求14所述的方法,其特征在于,所述对所述预处理后的音频数据进行后处理,包括:对所述预处理后的音频数据进行增益调整处理和频率处理。
- 根据权利要求14或15所述的方法,其特征在于,对所述预处理后的音频数据进行后处理,并对所述后处理后的音频数据添加第一标记,包括:获取当前的剩余电量;若所述剩余电量大于电量阈值,则对所述预处理后的音频数据进行后处理,并对所述后处理后的音频数据添加第一标记。
- 根据权利要求16所述的方法,其特征在于,所述将所述预处理后的音频数据传输至电子设备,还包括:若所述剩余电量小于或等于电量阈值,则对所述预处理后的音频数据添加未进行后处理的第二标记,所述第二标记用于指示音频数据未被进行后处理;将已添加所述第二标记的音频数据传输至电子设备。
- 一种录音装置,其特征在于,应用于第一无线耳机,所述第一无线耳机与第二无线耳机以及电子设备连接,所述第一无线耳机和所述第二无线耳机均设置有音频采集装置,所述装置包括:状态获取模块、模式调整模块、数据采集模块、数据处理模块以及数据传输模块,其中,所述状态获取模块用于获取所述第一无线耳机以及所述第二无线耳机的佩戴状态;所述模式调整模块用于若所述第一无线耳机以及所述第二无线耳机中至少一个无线耳机的佩 戴状态发生变化,根据所述第一无线耳机以及所述第二无线耳机中处于佩戴状态的无线耳机,调整录音模式,所述录音模式包括单声道录音的模式或者双声道录音的模式;所述数据采集模块用于控制所述处于佩戴状态的无线耳机采集音频数据;所述数据处理模块用于根据所述录音模式,对所述音频数据进行预处理;所述数据传输模块用于将所述预处理后的音频数据传输至所述电子设备。
- 一种无线耳机,其特征在于,包括:音频采集装置;一个或多个处理器;存储器;一个或多个应用程序,其中所述一个或多个应用程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行如权利要求1-17任一项所述的方法。
- 一种计算机可读取存储介质,其特征在于,所述计算机可读取存储介质中存储有程序代码,所述程序代码可被处理器调用执行如权利要求1-17任一项所述的方法。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110846275.7A CN113542479B (zh) | 2021-07-26 | 2021-07-26 | 录音方法、装置、无线耳机及存储介质 |
CN202110846275.7 | 2021-07-26 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2023005412A1 true WO2023005412A1 (zh) | 2023-02-02 |
Family
ID=78120900
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2022/096558 WO2023005412A1 (zh) | 2021-07-26 | 2022-06-01 | 录音方法、装置、无线耳机及存储介质 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN113542479B (zh) |
WO (1) | WO2023005412A1 (zh) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115776628A (zh) * | 2023-02-13 | 2023-03-10 | 成都市安比科技有限公司 | 用于tws蓝牙耳机双耳录音精确同步的方法 |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113542479B (zh) * | 2021-07-26 | 2023-03-31 | Oppo广东移动通信有限公司 | 录音方法、装置、无线耳机及存储介质 |
CN114826474A (zh) * | 2022-04-28 | 2022-07-29 | Oppo广东移动通信有限公司 | 音频数据处理系统、方法、装置、电子设备及存储介质 |
CN114760000A (zh) * | 2022-04-28 | 2022-07-15 | Oppo广东移动通信有限公司 | 音频数据处理系统、方法、装置、电子设备及存储介质 |
CN117082573A (zh) * | 2022-05-09 | 2023-11-17 | 维沃移动通信有限公司 | 数据包序号同步方法、装置及通信设备 |
CN115022536B (zh) * | 2022-05-24 | 2023-10-03 | Oppo广东移动通信有限公司 | 视频拍摄方法、装置、电子设备及存储介质 |
CN115022537B (zh) * | 2022-05-24 | 2023-08-29 | Oppo广东移动通信有限公司 | 视频拍摄方法、装置、电子设备及存储介质 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110460931A (zh) * | 2019-08-21 | 2019-11-15 | 湖南国声声学科技股份有限公司深圳分公司 | 基于蓝牙耳机实现通话的方法、蓝牙耳机及存储介质 |
WO2019232901A1 (zh) * | 2018-06-06 | 2019-12-12 | 歌尔科技有限公司 | 一种语音数据的传输方法、无线耳机及tws耳机 |
CN111770403A (zh) * | 2019-04-01 | 2020-10-13 | 炬芯科技股份有限公司 | 无线耳机控制方法、无线耳机及其控制系统 |
CN113542479A (zh) * | 2021-07-26 | 2021-10-22 | Oppo广东移动通信有限公司 | 录音方法、装置、无线耳机及存储介质 |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105430569A (zh) * | 2015-12-31 | 2016-03-23 | 宇龙计算机通信科技(深圳)有限公司 | 一种播放方法、装置及终端 |
WO2020082391A1 (zh) * | 2018-10-27 | 2020-04-30 | 深圳市欢太科技有限公司 | 无线耳机的控制方法及相关产品 |
CN111541966B (zh) * | 2020-04-30 | 2022-05-17 | 歌尔科技有限公司 | 一种无线耳机的上行降噪方法、装置及无线耳机 |
-
2021
- 2021-07-26 CN CN202110846275.7A patent/CN113542479B/zh active Active
-
2022
- 2022-06-01 WO PCT/CN2022/096558 patent/WO2023005412A1/zh active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019232901A1 (zh) * | 2018-06-06 | 2019-12-12 | 歌尔科技有限公司 | 一种语音数据的传输方法、无线耳机及tws耳机 |
CN111770403A (zh) * | 2019-04-01 | 2020-10-13 | 炬芯科技股份有限公司 | 无线耳机控制方法、无线耳机及其控制系统 |
CN110460931A (zh) * | 2019-08-21 | 2019-11-15 | 湖南国声声学科技股份有限公司深圳分公司 | 基于蓝牙耳机实现通话的方法、蓝牙耳机及存储介质 |
CN113542479A (zh) * | 2021-07-26 | 2021-10-22 | Oppo广东移动通信有限公司 | 录音方法、装置、无线耳机及存储介质 |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115776628A (zh) * | 2023-02-13 | 2023-03-10 | 成都市安比科技有限公司 | 用于tws蓝牙耳机双耳录音精确同步的方法 |
Also Published As
Publication number | Publication date |
---|---|
CN113542479A (zh) | 2021-10-22 |
CN113542479B (zh) | 2023-03-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2023005412A1 (zh) | 录音方法、装置、无线耳机及存储介质 | |
US20080226103A1 (en) | Audio Data Processing Device for and a Method of Synchronized Audio Data Processing | |
CN113453114B (zh) | 编码控制方法、装置、无线耳机及存储介质 | |
CN111343526B (zh) | 音箱组件的无线通信方法和用于无线通信的音箱组件 | |
CN110460931A (zh) | 基于蓝牙耳机实现通话的方法、蓝牙耳机及存储介质 | |
US20220038769A1 (en) | Synchronizing bluetooth data capture to data playback | |
CN112771828B (zh) | 一种音频数据的通信方法及电子设备 | |
WO2023029829A1 (zh) | 音频处理方法、装置、用户终端及计算机可读介质 | |
US20230075802A1 (en) | Capturing and synchronizing data from multiple sensors | |
US11671777B2 (en) | Sensor management for wireless devices | |
CN113411726A (zh) | 一种音频处理方法、装置及系统 | |
CN113196800B (zh) | 无线头戴式耳机的混合麦克风 | |
WO2023160249A1 (zh) | 通话方法和通话装置 | |
CN115022766B (zh) | 音频数据播放方法及设备 | |
CN114640740B (zh) | 通信处理方法、装置、电子设备以及存储介质 | |
CN116033312A (zh) | 耳机控制方法及耳机 | |
US20170094412A1 (en) | Wearable recording and playback system | |
CN217388984U (zh) | 一种无线耳机 | |
WO2023184660A1 (zh) | 一种沉浸式录音方法及装置 | |
CN115022536B (zh) | 视频拍摄方法、装置、电子设备及存储介质 | |
US20240029755A1 (en) | Intelligent speech or dialogue enhancement | |
CN115602144A (zh) | 录音方法、装置、无线耳机、用户终端及计算机可读介质 | |
CN117857964A (zh) | 设备的控制方法、装置、蓝牙耳机以及存储介质 | |
JP2024146519A (ja) | 情報処理システム、聴覚デバイス及び情報処理装置 | |
CN115022537A (zh) | 视频拍摄方法、装置、电子设备及存储介质 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 22848022 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 22848022 Country of ref document: EP Kind code of ref document: A1 |