CN115665607A - Audio processing method, device, earphone and storage medium - Google Patents

Audio processing method, device, earphone and storage medium Download PDF

Info

Publication number
CN115665607A
CN115665607A CN202211275785.4A CN202211275785A CN115665607A CN 115665607 A CN115665607 A CN 115665607A CN 202211275785 A CN202211275785 A CN 202211275785A CN 115665607 A CN115665607 A CN 115665607A
Authority
CN
China
Prior art keywords
audio
code rate
target
data
connection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211275785.4A
Other languages
Chinese (zh)
Inventor
许逸君
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202211275785.4A priority Critical patent/CN115665607A/en
Publication of CN115665607A publication Critical patent/CN115665607A/en
Pending legal-status Critical Current

Links

Images

Abstract

The embodiment of the application discloses an audio processing method, an audio processing device, an earphone and a storage medium, wherein the method comprises the following steps: acquiring acquired audio data and connection data of the terminal equipment and the audio acquisition equipment; determining a target code rate according to the connection data; and coding and compressing the audio data by using the target code rate, and sending the audio data after coding and compressing to the terminal equipment through the communication connection. By implementing the embodiment of the application, the flexibility and the adaptability of audio compression can be improved, and the improvement of recording tone quality is facilitated.

Description

Audio processing method, device, earphone and storage medium
Technical Field
The present application relates to the field of audio technologies, and in particular, to an audio processing method and apparatus, an earphone, and a storage medium.
Background
In an audio recording scene, more and more people consider adopting wireless audio acquisition equipment to record audio due to the consideration of portability and flexibility. The audio acquisition device generally needs to compress the acquired audio data and then perform wireless transmission. However, the tone quality can be sacrificed to a certain extent by the compression of the audio data, and the existing wireless audio acquisition equipment still has the problem of poor recording tone quality.
Disclosure of Invention
The embodiment of the application discloses an audio processing method, an audio processing device, an earphone and a storage medium, which can improve the flexibility and the adaptability of audio compression and are beneficial to improving the recording tone quality.
The embodiment of the application discloses an audio processing method, which is applied to audio acquisition equipment, wherein the audio acquisition equipment is in wireless communication connection with terminal equipment; the method comprises the following steps: acquiring acquired audio data and connection data of the terminal equipment and audio acquisition equipment; determining a target code rate according to the connection data; and coding and compressing the audio data by using the target code rate, and sending the audio data after coding and compressing to the terminal equipment through the communication connection.
The embodiment of the application discloses an audio processing device, which is applied to audio acquisition equipment, wherein the audio acquisition equipment is in wireless communication connection with terminal equipment; the audio processing apparatus includes: the acquisition module is used for acquiring the acquired audio data and the connection data of the terminal equipment connected with the audio acquisition equipment; the code rate control module is used for determining a target code rate according to the connection data; the coding module is used for coding and compressing the audio data by utilizing the target code rate; and the communication module is used for sending the audio data after the coding compression to the terminal equipment through the communication connection.
The embodiment of the application discloses an earphone, which comprises a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to realize any audio processing method disclosed by the embodiment of the application when executing the computer program.
The embodiment of the application discloses a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and when the computer program is executed by a processor, the computer program realizes any audio processing method disclosed by the embodiment of the application.
Compared with the related art, the embodiment of the application has the following beneficial effects:
the audio acquisition equipment can acquire the acquired audio data and the connection data of the terminal equipment and the audio acquisition equipment, and determines the target code rate according to the connection data. That is, the target bitrate can change along with the connection data, and is a dynamic bitrate; the dynamic code rate is adopted to encode and compress the collected audio data, instead of the single code rate, so that the flexibility and the adaptability of audio compression are improved, and the recording tone quality is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required to be used in the embodiments will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
FIG. 1A is a schematic diagram illustrating an application scenario of an audio processing method according to an embodiment;
FIG. 1B is a schematic diagram illustrating an application scenario of another audio processing method according to an embodiment;
FIG. 2 is a schematic diagram illustrating a method flow of an audio processing method according to an embodiment;
FIG. 3 is a schematic diagram of a method flow for another audio processing method disclosed in one embodiment;
FIG. 4 is a method flow diagram illustrating another audio processing method according to one embodiment;
FIG. 5 is a method flow diagram of another audio processing method according to one embodiment;
FIG. 6 is a schematic diagram illustrating a method flow of another audio processing method disclosed in one embodiment;
FIG. 7 is a block diagram illustrating an exemplary embodiment of an audio processing apparatus;
fig. 8 is a schematic structural diagram of an earphone according to an embodiment.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only some embodiments of the present application, and not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application.
It should be noted that the terms "comprising" and "having," and any variations thereof, in the examples and figures herein are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
The embodiment of the application discloses an audio processing method, an audio processing device, an earphone and a storage medium, which can improve the recording tone quality. The following are detailed descriptions.
Referring to fig. 1A, fig. 1A is a schematic view illustrating an application scenario of an audio processing method according to an embodiment. As shown in fig. 1, a terminal device 11 and two audio capturing devices, respectively, a headset 21 and a headset 22, may be included.
In the embodiment of the present application, the audio collecting device may be the earphone 21 and the earphone 22 shown in fig. 1, or may be a handheld microphone or other devices, which is not limited specifically.
The terminal device 11 may be any terminal device, such as a smart phone, a tablet computer, a smart watch, and a personal computer, and is not limited specifically.
The earphones 21 and 22 may be two in-ear earphones worn on the left and right ears, respectively. Both the headset 21 and the headset 22 may have a microphone provided therein, which may be used for collecting audio data.
The earphone 21 and the earphone 22 can establish wireless communication connections with the terminal 11, respectively. Such as a bluetooth connection, a Wi-Fi connection, or the like. The bluetooth connection may include a classic bluetooth connection, a bluetooth Low Energy connection, and an Audio Low Energy (LE Audio) connection.
Optionally, the headset 21 and the headset 22 may establish an LE Audio connection with the terminal device 11, respectively. And, based on the established LE Audio connection, the headset 21 and the headset 22 may perform data transmission with the terminal device 11, respectively.
Illustratively, the sync channel of the headset 21 and the headset 22 facing the BLE connection may use a low power Connected Isochronous data Stream (LE-CIS) so that the headset 21 and the headset 22 may communicate with the terminal device 11 point-to-point, respectively. The terminal device 11 may be used as a master for LE Audio connection, the earphone 21 and the earphone 22 may be respectively slaves for LE Audio connection, and a master earphone and a slave earphone do not need to be distinguished between the earphone 21 and the earphone 22, and data forwarding is not needed between the earphone 21 and the earphone 22, and data transmission may be performed with the terminal device 11 alone.
Referring to fig. 1B, fig. 1B is a schematic view illustrating an application scenario of another audio processing method according to an embodiment. As shown in fig. 1B, the earphone 23 may be a left-ear earphone or a right-ear earphone among in-ear earphones. The earphone 23 can establish an LE Audio connection with the terminal device 12 alone, and can collect Audio data in a mode of being worn by one ear.
At present, when audio data are collected by an audio collecting device and the collected audio data are transmitted in an uplink manner, the default sampling frequency is 32 kilohertz (khz), which is difficult to meet different recording requirements.
Based on this, the embodiment of the present application discloses an audio processing method, in which an audio acquisition device may determine a target bitrate according to connection data of a terminal device connected to the audio acquisition device. That is, the target bitrate can change following the connection data, and is a dynamic bitrate. Then, audio acquisition equipment can utilize the target code rate is right audio data carries out code compression to through communication connection, audio data after with code compression sends to terminal equipment to can utilize dynamic code rate to carry out code compression to the audio data who gathers, can improve audio compression's flexibility and adaptability, be favorable to improving recording tone quality. Referring to fig. 2, fig. 2 is a flowchart illustrating a method of an audio processing method according to an embodiment, where the method can be applied to any of the audio capturing devices described above. For example, it can be applied to any of the aforementioned earphones. As shown in fig. 2, the audio processing method may include the steps of:
210. and acquiring the acquired audio data and connection data of the terminal equipment connected with the audio acquisition equipment.
In the embodiment of the application, the audio data is acquired by the audio acquisition device through the microphone.
The connection data of the terminal device connected with the audio acquisition device can include: and the target parameters are used for representing the connection stability between the terminal equipment and the audio acquisition equipment. Alternatively, the first and second electrodes may be,
the connection data of the terminal device connected with the audio acquisition device can include: the number of the terminal devices connected with the audio acquisition devices. It should be noted that the terminal device may establish a communication connection with one or more audio capture devices. For example, in the scenario shown in fig. 1A, the terminal device may establish a communication connection with two or more audio capturing devices at the same time.
In the embodiment of the application, the connection data of the terminal device and the audio acquisition device can be detected by either the terminal device or the audio acquisition device, or can be detected by both the terminal device and the audio acquisition device. The connection data detected by the terminal equipment can be sent to the audio acquisition equipment through communication connection, so that the audio acquisition equipment obtains the connection data of the terminal equipment connected with the audio acquisition equipment.
220. And determining the target code rate according to the connection data.
In the embodiment of the application, the audio acquisition device may determine the target code rate according to the connection data, so that the target code rate is changed along with the change of the connection data. For example, when the target parameter for characterizing the connection stability detected by the audio acquisition device changes, the target code rate changes accordingly. Or when the number of the audio acquisition devices connected with the mobile terminal is different, the target code rate for coding and compressing by each audio acquisition device is also different.
230. And coding and compressing the audio data by using the target code rate, and sending the audio data after coding and compressing to the terminal equipment through the communication connection between the audio acquisition equipment and the terminal equipment.
In an embodiment of the present application, the Audio acquisition device may comprise any encoder, such as a Low Complexity Communication Codec (LC 3) of LE Audio,
the encoder can carry out coding compression on the audio data by a user, and can support a plurality of different code rates, wherein the target code rate is one of the plurality of code rates which can be supported by the encoder.
Therefore, in the embodiment of the application, the audio acquisition equipment can adopt the dynamic code rate to encode and compress the acquired audio data instead of adopting the single code rate to encode and compress, which is beneficial to improving the flexibility and the adaptability of audio compression.
Referring to fig. 3, fig. 3 is a flowchart illustrating another audio processing method according to an embodiment.
310. And acquiring the acquired audio data and target parameters of communication connection between the audio acquisition equipment and the terminal equipment.
In an embodiment of the application, the target parameter is used to characterize the stability of the communication connection. The target parameters may include: at least one of parameters such as Received Signal Strength (RSSI) and retransmission rate. The target parameter may be detected by any one of the terminal device and the audio acquisition device, or may be detected by both of the terminal device and the audio acquisition device, which is not limited specifically.
Optionally, the communication connection between the Audio acquisition device and the terminal device may be an LE Audio connection.
320. And determining the target code rate according to the target parameters.
As an optional implementation manner, the size of the target code rate and the stability of the communication connection between the audio acquisition device and the terminal device may be in a positive correlation. That is, the higher the stability of the communication connection, the larger the target code rate.
For audio data, the correlation between code rate and sampling rate can refer to the following formula:
code rate = sampling rate × number of bits × number of channels.
It can be seen that, under the condition that the bit number and the channel number are not changed, the higher the code rate is, the higher the sampling rate is.
That is, in the embodiment of the present application, the more stable the communication connection is, the higher the effectiveness of audio data transmission is, and the higher the code rate is adopted when the audio data is compressed. Correspondingly, the sampling rate is improved along with the improvement of the code rate, the audio acquisition equipment can support the sampling rate of 32khz or above, even can reach 48khz, and the requirement of tone quality under the audio recording scene can be met.
330. And coding and compressing the audio data by using the target code rate, and sending the audio data after the coding and compressing to the terminal equipment through the communication connection between the audio acquisition equipment and the terminal equipment.
It can be seen that, in the foregoing embodiment, the audio acquisition device may encode and compress the acquired audio data with a dynamic code rate, and the higher the stability of the communication connection between the audio acquisition device and the terminal device is, the higher the target code rate used for compression is, the better the compressed sound quality is, and the recording tone quality of the audio acquisition device can be improved. In addition, the stability of communication connection is an important factor influencing data transmission, the audio acquisition equipment determines the target code rate during audio compression by taking target parameters such as RSSI (received signal strength indicator) and/or retransmission rate as references, and the success rate of sending compressed audio data to the terminal equipment can be improved while the recording tone quality is improved.
In the embodiment of the present application, after the audio acquisition device acquires the target parameter, the target bitrate may be determined through any one of the following implementation manners.
The first method is as follows: the audio acquisition equipment can preset direct corresponding relations between different parameters and code rates, and after the target parameters are obtained, the target code rates corresponding to the target parameters can be determined according to the direct corresponding relations between the parameters and the code rates.
In some embodiments, the target parameter may include a plurality of parameters, and the code rates respectively determined for each parameter by the audio acquisition device according to the above direct correspondence may be the same or different. If the code rates respectively determined according to each parameter are different, the target code rate may be a maximum value, a minimum value, or an average value of the determined multiple code rates, which is not specifically limited.
The second method comprises the following steps: the audio acquisition equipment can also determine a target comparison result between the target parameter and the parameter threshold, then determine a target code rate range according to the preset corresponding relation between the comparison result and the code rate range and the target comparison result, and determine the target code rate from the target code rate range.
To more clearly illustrate the scheme of determining the target bitrate through comparing the target parameter with the parameter threshold, please refer to fig. 4, where fig. 4 is a flowchart illustrating another audio processing method disclosed in one embodiment, and the method can be applied to any one of the audio acquisition devices described above. In the method illustrated in fig. 3, the target parameter may include a plurality of parameters. The audio processing method may include the steps of:
410. and acquiring the acquired audio data and target parameters of communication connection between the audio acquisition equipment and the terminal equipment.
The implementation of step 410 can refer to step 310 described above, and the following description is omitted.
420. A target comparison result between the target parameter and the parameter threshold is determined.
430. And determining a target code rate range according to the preset corresponding relation between the comparison result and the code rate range and the target comparison result.
In embodiments of the present application, the target parameter may include one or more parameters.
When the target parameter comprises a parameter, the target comparison result may comprise a magnitude relationship between the parameter and a parameter threshold. The preset correspondence relationship between the comparison result and the code rate range may include: when the parameter is larger than the parameter threshold, the code rate range corresponding to the code rate is larger; and when the parameter is smaller than or equal to the parameter threshold, the code rate range with a smaller corresponding code rate.
When the target parameter includes a plurality of parameters, the parameter thresholds corresponding to different parameters are different.
For example, the parameter threshold corresponding to RSSI may be-95 dBm; the parameter threshold corresponding to the retransmission rate may be 1/20, that is, 1 data packet in 20 data packets needs to be retransmitted.
The target comparison result may be any one of the following comparison results: the number of anomalous parameters that are greater than the corresponding parameter threshold; or, a number of normal parameters that are less than the corresponding parameter threshold.
The correspondence relationship between the comparison result and the code rate range may include: the more the number of the abnormal parameters is, the smaller the code rate in the corresponding code rate range is; or, the larger the number of the normal parameters is, the larger the code rate in the corresponding code rate range is.
440. And determining the target code rate from the target code rate range.
In the embodiment of the present application, the target code rate may be any one code rate in a target code rate range, may be randomly selected from the target code rate range, or may be selected from the target code rate range based on a certain selection rule, and is not particularly limited.
450. And coding and compressing the audio data by using the target code rate, and sending the audio data after the coding and compressing to the terminal equipment through the communication connection between the audio acquisition equipment and the terminal equipment.
The implementation of steps 440-450 can refer to the foregoing embodiments, and the following description is omitted.
In this embodiment, the audio acquisition device may determine the number of abnormal parameters according to a comparison result between a plurality of parameters included in the target parameter and corresponding parameter thresholds. The more the stability of the LE Audio connection is, the more the number of the abnormal parameters is, and the smaller the code rate in the target code rate range determined according to the target parameters is, so as to ensure the effective transmission of the Audio data.
For example, the following description will be made of the Audio processing method shown in fig. 3, taking an LE Audio connection between the Audio acquisition device and the terminal device, target parameters including received signal strength and retransmission rate, and preset three code rate ranges as an example. Referring to fig. 5, fig. 5 is a flowchart illustrating another audio processing method according to an embodiment of the disclosure. As shown in fig. 5, the method may include the steps of:
510. and acquiring the acquired Audio data and the RSSI and retransmission rate of the LE Audio connection.
The implementation of step 510 can refer to the foregoing embodiments, and details are not repeated below.
520. And respectively comparing the RSSI and the retransmission rate with respective corresponding parameter thresholds to obtain the number of abnormal parameters as a target comparison result.
Exemplarily, if the RSSI is greater than-95 dBm, the RSSI is an abnormal parameter; if the retransmission rate is larger than 1/20, the retransmission rate is an abnormal parameter.
530. And determining a target code rate range from the first code rate range, the second code rate range and the third code rate range according to the corresponding relation between the number of the abnormal parameters and the code rate range.
The code rate in the first code rate range is smaller than the code rate in the second code rate range, and the code rate in the second code rate range is smaller than the code rate in the third code rate range. For example, the first code rate range may be [ 100-200) kbps; the second code rate range may be [ 200-300) kbps; the third code rate range may be 300-400 kbps.
The corresponding relationship between the number of abnormal parameters and the code rate range may include: 2 the abnormal parameter corresponds to a first code rate range; 1 the abnormal parameter corresponds to a second code rate range; the 0 exception parameters correspond to a third code rate range.
That is, when both RSSI and retransmission rate are abnormal parameters, the stability of LE Audio connection is the worst, and the first code rate range with the minimum code rate is adopted as the target code rate range; when the RSSI and the retransmission rate are not abnormal parameters, the stability of LE Audio connection is highest, and a third code rate range with the maximum code rate is adopted as a target code rate range; when the RSSI or the retransmission rate is an abnormal parameter, the stability of the LE Audio connection is medium, and a second code rate range with medium code rate is adopted as the target code rate range.
540. And determining the target code rate from the target code rate range.
In the corresponding relation between the number of the abnormal parameters and the code rate range, different code rate ranges can be represented by different characteristic values. For example, a first range of code rates may correspond to eigenvalue 1, a second range of code rates may correspond to eigenvalue 2, and a third range of code rates may correspond to eigenvalue 3. Step 430 determines that the target bitrate range can be represented by the corresponding characteristic value, and an encoder of the audio acquisition device can select a target bitrate in the target bitrate range according to the corresponding characteristic value.
550. And coding and compressing the Audio data by using the target code rate, and sending the Audio data after coding and compressing to the terminal equipment through LE Audio connection.
The implementation of steps 540 to 550 can be seen in the foregoing embodiments, and the following description is omitted.
It can be seen that, in the foregoing embodiment, the Audio acquisition device may obtain the RSSI and the retransmission rate of the LE Audio, and determine the target code rate range corresponding to the compression of the Audio data according to the number of the abnormal parameters in the RSSI and the retransmission rate, so as to select an appropriate target code rate in the target code rate range to compress the Audio data, so as to improve the recording sound quality of the Audio acquisition device.
In some embodiments, the target code rate is selected in relation to the stability of the wireless communication connection between the audio acquisition device and the terminal device, and the stability of the wireless communication connection can be characterized by the target parameter. Therefore, the accuracy of the target parameter may affect the accuracy of the target code rate selection to a certain extent. Some optional embodiments for obtaining the target parameter in the embodiment of the present application are described below.
In one embodiment, the target parameters may include: the received signal strength. Embodiments of the audio acquisition device obtaining the received signal strength may include:
the method comprises the steps that an audio acquisition device obtains the first sub-signal receiving strength of a wireless communication signal of a terminal device and the second sub-signal receiving strength of the wireless communication signal of the audio acquisition device; determining the received signal strength based on the first sub-received signal strength and the second sub-received signal strength.
The first sub-signal reception strength may be determined according to an RSSI of a wireless communication signal detected by the terminal device, and the first sub-signal reception strength may be an instantaneous value or an average value of the RSSI within a certain time period, which is not specifically limited.
For example, the terminal device may transmit the RSSI instantaneous value of the detected wireless communication signal as the first sub-signal reception strength to the audio capturing device.
For example, the terminal device may perform RSSI detection on the wireless communication signal M times within N seconds, and obtain M RSSI instantaneous values. The terminal equipment averages the M RSSI instantaneous values to obtain first sub-signal receiving intensity, and sends the first sub-signal receiving intensity to the audio acquisition equipment. Wherein N and M are both positive integers greater than or equal to 1.
For example, the terminal device may further perform RSSI detection on the wireless communication signal M times within N seconds to obtain M RSSI instantaneous values, and send the M RSSI instantaneous values to the audio acquisition device. The audio acquisition device may average the M RSSI instantaneous values to obtain a first sub-signal reception strength.
The second sub-signal receiving strength may be determined according to the RSSI of the wireless communication signal detected by the audio acquisition device, and may be an instantaneous value, or an average value of the RSSI within a certain time period, which is not limited specifically.
That is, the received signal strength included in the target parameter is determined comprehensively according to the received signal strengths of both the audio capture device and the terminal device, but the received signal strength of one of the audio capture devices is not determined, so that the stability of the wireless communication can be reflected more accurately.
In another embodiment, the aforementioned target parameters may include: the retransmission rate. Embodiments of the audio acquisition device obtaining the retransmission rate may include:
the audio acquisition equipment acquires the retransmission rate of the data packet sent by the audio acquisition equipment to the terminal equipment based on the wireless communication connection.
The retransmission rate is used for representing the sending success rate of the data sender, and the audio acquisition equipment is the sender of the compressed audio data, so the retransmission rate can be detected by the audio acquisition equipment, and the retransmission rate of the data packet sent by the audio acquisition equipment is taken as the standard.
Referring to fig. 6, fig. 6 is a flowchart illustrating another audio processing method according to an embodiment of the disclosure, where the method is applicable to any one of the audio capturing devices. For example, it can be applied to any of the aforementioned earphones. As shown in fig. 6, the audio processing method may include the steps of:
610. and acquiring the acquired audio data and the number of audio acquisition devices connected with the terminal device.
In this embodiment of the application, the number of the audio acquisition devices connected to the terminal device may be that the terminal device sends the audio acquisition devices. As shown in fig. 1A, the number of audio capture devices connected to the terminal device may be 2; as shown in fig. 1B, the number of audio capture devices to which the terminal device is connected may be 1.
620. And determining the target code rate according to the number of the audio acquisition devices connected with the terminal device.
In the embodiment of the application, the target code rate is changed along with the number of the audio acquisition devices. Optionally, the larger the number of audio acquisition devices connected to the terminal device is, the smaller the target code rate may be.
For example, in the scenario shown in fig. 1A, the target code rate adopted by the earphones 21 and 22 respectively may be smaller than the target code rate adopted by the earphones 23 in the scenario shown in fig. 1B. In fig. 1A, the headphones 21 and 22 can capture the same piece of audio at the same time. Compared with the terminal device 12 in fig. 1B, the terminal device 11 in fig. 1A may fuse the audio data sent by the earphones 21 and 22, and further process the fused audio data, so as to improve the recording quality through two different data sources. Therefore, the target code rate is changed along with the number of the audio acquisition equipment, and the calculation amount required when the single audio acquisition equipment compresses the audio data can be reduced while the recording tone quality is guaranteed.
630. And coding and compressing the audio data by using the target code rate, and sending the audio data after the coding and compressing to the terminal equipment through the communication connection between the audio acquisition equipment and the terminal equipment.
Therefore, in the foregoing embodiment, the audio acquisition device may further determine the target code rate used in audio compression according to the number of the audio acquisition devices connected to the terminal device, so that the amount of calculation required when a single audio acquisition device compresses the audio data may be reduced while the recording tone quality is ensured.
Referring to fig. 7, fig. 7 is a schematic structural diagram of an audio processing apparatus according to an embodiment. The audio processing device can be applied to any one of the audio acquisition devices. As shown in fig. 7, the audio collecting apparatus 700 may include: an acquisition module 710, a rate control module 720, an encoding module 730, and a communication module 740.
The obtaining module 710 is configured to obtain the collected audio data and connection data of the terminal device connected to the audio collecting device. Optionally, the connection data may include: a target parameter of the communication connection; the target parameter is used to characterize the stability of the wireless communication connection. Optionally, the connection data may include: the number of audio acquisition devices connected to the terminal device.
A code rate control module 720, configured to determine a target code rate according to the connection data;
the encoding module 730 is configured to encode and compress the audio data with the target code rate;
and the communication module 740 is configured to send the encoded and compressed audio data to the terminal device through the communication connection between the audio acquisition device and the terminal device.
In one embodiment, the connection data may include: target parameters of the communication connection.
The rate control module 720 may be further configured to determine a target rate according to the target parameter of the communication connection. Wherein the size of the target code rate has a positive correlation with the stability of the wireless communication connection.
In one embodiment, the connection data may include: target parameters of the communication connection.
The rate control module 720 may be further configured to determine a target comparison result between the target parameter and the parameter threshold; determining a target code rate range according to the corresponding relation between the comparison result and the code rate range and the target comparison result; and determining the target code rate from the target code rate range.
Optionally, the target parameters include multiple parameters, the target comparison result includes the number of abnormal parameters, the abnormal parameters are parameters greater than corresponding parameter thresholds, and the correspondence between the comparison result and the code rate range includes the correspondence between the number of abnormal parameters and the code rate range.
Further optionally, the correspondence between the number of the abnormal parameters and the code rate range includes a plurality of non-coincident code rate ranges, and if the target comparison result indicates that the number of the abnormal parameters is more, the code rate in the code rate range corresponding to the target comparison result is smaller.
In one embodiment, the target parameters include: the received signal strength.
The obtaining module 710 may further be configured to obtain a first sub-received signal strength of the wireless communication signal of the terminal device and a second sub-received signal strength of the wireless communication signal of the audio collecting device; and determining the received signal strength according to the first sub received signal strength and the second sub received signal strength.
In one embodiment, the target parameters include: the retransmission rate.
The obtaining module 710 may further be configured to obtain a retransmission rate of the data packet sent by the audio acquisition device to the terminal device based on the wireless communication connection.
In one embodiment, the connection data may include: the number of audio acquisition devices connected to the terminal device.
The code rate control module 720 may further be configured to determine a target code rate according to the number of the audio acquisition devices connected to the terminal device. The more the number of the audio acquisition devices connected with the terminal device is, the smaller the target code rate is. According to the audio acquisition device disclosed by the embodiment of the application, the audio acquisition equipment can adopt the dynamic code rate to encode and compress the acquired audio data instead of adopting the single code rate to encode and compress, so that the flexibility and the adaptability of the audio compression are improved, and the recording tone quality is improved.
Referring to fig. 8, fig. 8 is a schematic structural diagram of an earphone according to an embodiment. As shown in fig. 8, the headset 800 may include:
a memory 810 storing executable program code;
a processor 820 coupled to the memory 810;
the processor 820 calls the executable program code stored in the memory 810 to execute any one of the audio processing methods disclosed in the embodiments of the present application.
It should be noted that the earphone shown in fig. 8 may further include components, such as a power supply and a microphone, which are not shown, and details are not described in this embodiment.
The embodiment of the application discloses a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and when the computer program is executed by a processor, the computer program realizes any audio processing method disclosed by the embodiment of the application.
An embodiment of the present application discloses a computer program product comprising a non-transitory computer readable storage medium storing a computer program, and the computer program is operable to cause a computer to implement any one of the audio processing methods disclosed in the embodiment of the present application.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present application. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. Those skilled in the art should also appreciate that the embodiments described in this specification are all alternative embodiments and that the acts and modules involved are not necessarily required for this application.
In various embodiments of the present application, it should be understood that the sequence numbers of the above-mentioned processes do not imply a necessary order of execution, and the order of execution of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated units, if implemented as software functional units and sold or used as a stand-alone product, may be stored in a computer accessible memory. Based on such understanding, the technical solutions of the present application, which essentially or partly contribute to the prior art, or all or part of the technical solutions, may be embodied in the form of a software product, which is stored in a memory and includes several requests for causing a computer device (which may be a personal computer, a server, or a network device, etc., and may specifically be a processor in the computer device) to execute some or all of the steps of the above methods of the embodiments of the present application.
It will be understood by those skilled in the art that all or part of the steps of the methods of the embodiments described above may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable storage medium, including Read-Only Memory (ROM), random Access Memory (RAM), programmable Read-Only Memory (PROM), erasable Programmable Read-Only Memory (EPROM), one-time Programmable Read-Only Memory (OTPROM), electrically Erasable Programmable Read-Only Memory (EEPROM), a Compact Disc-Read-Only Memory (CD-ROM) or other Memory capable of storing data, a magnetic tape, or any other computer-readable medium capable of storing data.
The audio processing method, the audio processing apparatus, the earphone, and the storage medium disclosed in the embodiments of the present application are described in detail above, and specific examples are applied herein to explain the principles and embodiments of the present application, and the descriptions of the above embodiments are only used to help understand the method and the core idea of the present application. Meanwhile, for a person skilled in the art, according to the idea of the present application, the specific implementation manner and the application scope may be changed, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (14)

1. The audio processing method is characterized by being applied to audio acquisition equipment, wherein the audio acquisition equipment is in wireless communication connection with terminal equipment; the method comprises the following steps:
acquiring acquired audio data and connection data of the terminal equipment and the audio acquisition equipment;
determining a target code rate according to the connection data;
and coding and compressing the audio data by using the target code rate, and sending the audio data after coding and compressing to the terminal equipment through the communication connection.
2. The method of claim 1, wherein the connection data comprises: a target parameter of the communication connection; the target parameter is used to characterize the stability of the wireless communication connection.
3. The method of claim 2, wherein a size of the target code rate is positively correlated with a stability of the wireless communication connection.
4. The method of claim 2, wherein determining the target code rate according to the target parameter comprises:
determining a target comparison result between the target parameter and a parameter threshold;
determining a target code rate range according to the corresponding relation between the comparison result and the code rate range and the target comparison result;
and determining the target code rate from the target code rate range.
5. The method according to claim 2, wherein the target parameter comprises a plurality of parameters, the target comparison result comprises a number of abnormal parameters, the abnormal parameters are parameters greater than corresponding parameter thresholds, and the correspondence relationship between the comparison result and the code rate range comprises a correspondence relationship between a number of abnormal parameters and a code rate range.
6. The method of claim 5, wherein the correspondence relationship comprises a plurality of non-coincident code rate ranges, and the target comparison result indicates that the larger the number of the abnormal parameters is, the smaller the code rate in the code rate range corresponding to the target comparison result is.
7. The method of any of claims 2-6, wherein the target parameter comprises at least one of a received signal strength and a retransmission rate.
8. The method according to any one of claims 2-6, wherein the target parameters include: receiving a signal strength; the acquiring the target parameter includes:
acquiring a first sub-received signal strength of a wireless communication signal of the terminal equipment and a second sub-received signal strength of a wireless communication signal of the audio acquisition equipment;
determining the received signal strength from the first sub-received signal strength and the second sub-received signal strength.
9. The method according to any of claims 2-6, wherein the target parameters comprise: a retransmission rate; the acquiring the target parameter includes:
and acquiring the retransmission rate of the data packet sent to the terminal equipment by the audio acquisition equipment based on the wireless communication connection.
10. The method of claim 1, wherein the connection data comprises: the number of audio acquisition devices connected with the terminal device.
11. The method according to claim 10, wherein the larger the number of audio capturing devices connected to the terminal device is, the smaller the target code rate is.
12. The audio processing device is applied to audio acquisition equipment, and the audio acquisition equipment is in wireless communication connection with terminal equipment; the audio processing apparatus includes:
the acquisition module is used for acquiring the acquired audio data and the connection data of the terminal equipment connected with the audio acquisition equipment;
the code rate control module is used for determining a target code rate according to the connection data;
the coding module is used for coding and compressing the audio data by utilizing the target code rate;
and the communication module is used for sending the audio data after the coding compression to the terminal equipment through the communication connection.
13. A headset comprising a memory in which a computer program is stored and a processor configured to implement the method of any one of claims 1 to 11 when the computer program is executed.
14. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method of any one of claims 1 to 11.
CN202211275785.4A 2022-10-18 2022-10-18 Audio processing method, device, earphone and storage medium Pending CN115665607A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211275785.4A CN115665607A (en) 2022-10-18 2022-10-18 Audio processing method, device, earphone and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211275785.4A CN115665607A (en) 2022-10-18 2022-10-18 Audio processing method, device, earphone and storage medium

Publications (1)

Publication Number Publication Date
CN115665607A true CN115665607A (en) 2023-01-31

Family

ID=84990373

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211275785.4A Pending CN115665607A (en) 2022-10-18 2022-10-18 Audio processing method, device, earphone and storage medium

Country Status (1)

Country Link
CN (1) CN115665607A (en)

Similar Documents

Publication Publication Date Title
CN107371081B (en) Earphone set
CN108886647B (en) Earphone noise reduction method and device, master earphone, slave earphone and earphone noise reduction system
US9668070B2 (en) Wireless sound transmission system and method
US11729117B2 (en) Wireless communication device for communicating with multiple external devices via a wireless communication unit
US10405241B2 (en) Data transmission method and system, and related device
CN108882087A (en) A kind of intelligent sound detection method, wireless headset, TWS earphone and terminal
CN112868244A (en) Point-to-multipoint data transmission method and device
CN109461450B (en) Audio data transmission method, system, storage medium and Bluetooth headset
WO2023273701A1 (en) Coding control method and apparatus, wireless earphone, and storage medium
CN113542479B (en) Recording method, recording device, wireless earphone and storage medium
CN105531764A (en) Method for compensating for hearing loss in a telephone system and in a mobile telephone apparatus
CN103905646A (en) Communication terminal and voice processing method thereof
EP4086899A1 (en) Audio transmission method and electronic device
US11083031B1 (en) Bluetooth audio exchange with transmission diversity
CN113553025B (en) Control method and system of Bluetooth headset based on game mode
US10841976B2 (en) Communication device with wireless interface using different protocols
CN106656274B (en) Voice transmission system
CN110366752B (en) Voice frequency division transmission method, source terminal, play terminal, source terminal circuit and play terminal circuit
CN115665607A (en) Audio processing method, device, earphone and storage medium
CN115699801A (en) Communication method and device applied to wireless double-ear earphone
CN113573202A (en) Data transmission control method and system of Bluetooth headset
CN115022766A (en) Audio data playing method and equipment
CN116671114A (en) Multimedia playback synchronization
CN111770408A (en) Control method, control device, wireless headset and storage medium
KR20210055715A (en) Methods and systems for enhancing environmental audio signals of hearing devices and such hearing devices

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination