Audio processing method and device, electronic equipment and storage medium

The audio signal is mixed and processed through the headphone box and transmitted to the headphone device, which solves the complex and high-cost problems of the existing ear-return device, realizes the simplification of the ear-return function and reduces the cost, and is suitable for small performance occasions.

CN118785031APending Publication Date: 2024-10-15GUANGDONG XIAOTIANCAI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310364432.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-04-06
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

Existing ear-return devices are complex to use and costly, making them difficult to apply to small-scale performance situations.

Method used

The audio signal is directly mixed and processed through the headphone box and transmitted to the headphone device to achieve the in-ear effect and reduce the complexity of the in-ear function.

Benefits of technology

It realizes the simplification of the ear return function, reduces the cost, is suitable for small performance occasions, and improves the return listening effect of audio signals.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118785031A_ABST
    Figure CN118785031A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses an audio processing method and device, electronic equipment and a storage medium, the audio processing method and device are applied to an earphone box, the earphone box is in communication connection with earphone equipment, and the method comprises the following steps: acquiring a first audio signal transmitted through a first channel and a second audio signal transmitted through a second channel; performing sound mixing processing on the first audio signal and the second audio signal to obtain a target audio signal; and sending the target audio signal to the earphone equipment. By implementing the embodiment of the invention, the earphone box realizes the sound mixing processing of two paths of audios, and then the mixed audios are returned to the earphone equipment, so that the ear return function of the earphone is realized, and the complexity of realizing the ear return function is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of earphone technology, and in particular to an audio processing method, device, electronic device and storage medium. Background Art

[0002] As people's entertainment life becomes increasingly rich, more and more performers provide entertainment for people through live performances. During the performance, performers generally need to wear ear monitoring devices to hear their own voices and control the pitch. However, the use of existing ear monitoring devices is relatively complicated and the cost is very high, which cannot be applied to small performance occasions. Summary of the invention

[0003] The embodiments of the present application disclose an audio processing method, device, electronic device and storage medium, which can directly mix the audio signal through the earphone box and transmit it to the earphone device, thereby achieving the effect of ear return and reducing the complexity of implementing the ear return function.

[0004] A first aspect of an embodiment of the present application provides an audio processing method, which is applied to an earphone box, wherein the earphone box is communicatively connected to an earphone device, and the method includes:

[0005] Acquire a first audio signal transmitted through a first path and a second audio signal transmitted through a second path;

[0006] Mixing the first audio signal with the second audio signal to obtain a target audio signal;

[0007] The target audio signal is sent to the headphone device.

[0008] As an optional implementation, in the first aspect of the embodiment of the present application, the earphone box includes a microphone, the first audio signal includes an audio signal to be played, and the second audio signal includes an external audio signal collected by the microphone;

[0009] The obtaining of a first audio signal transmitted through a first path and a second audio signal transmitted through a second path includes:

[0010] Acquire the audio signal to be played transmitted through the first path;

[0011] The external audio signal collected by the microphone is obtained through a second path corresponding to the microphone.

[0012] As an optional implementation manner, in the first aspect of the embodiment of the present application, the method further includes:

[0013] If the earphone box receives a joining message sent by at least one electronic device, stopping sending the target audio signal to the earphone device; wherein the joining message is used to indicate that the electronic device requests to join a network with the earphone box as the main device;

[0014] The first audio signal is transmitted to the at least one electronic device.

[0015] As an optional implementation manner, in the first aspect of the embodiment of the present application, the joining information includes an electronic device identifier and a networking key;

[0016] If the earphone box receives the joining information sent by at least one electronic device, stopping sending the target audio signal to the earphone device includes:

[0017] If the earphone box receives the electronic device identification and the networking key sent by the first electronic device, the electronic device identification and the networking key are verified; the first electronic device is any of the electronic devices;

[0018] If the electronic device identification and the networking key are successfully verified, the target audio signal is stopped from being sent to the headphone device.

[0019] As an optional implementation manner, in the first aspect of the embodiment of the present application, the obtaining of the first audio signal transmitted through the first path includes:

[0020] In response to the input access instruction, sending joining information to the second electronic device to request to join the network with the second electronic device as the main device;

[0021] A first audio signal sent by the second electronic device is received through a first path between the second electronic device and the second electronic device.

[0022] As an optional implementation manner, in the first aspect of the embodiment of the present application, after obtaining the target audio signal, the method further includes:

[0023] The target audio signal is subjected to signal processing, wherein the signal processing includes one or more of noise reduction processing, dynamic processing, and reverberation processing.

[0024] As an optional implementation manner, in the first aspect of the embodiment of the present application, before mixing the first audio signal with the second audio signal to obtain the target audio signal, the method further includes:

[0025] receiving an adjustment instruction, where the adjustment instruction is used to indicate a first ratio corresponding to the first audio signal and a second ratio corresponding to the second audio signal;

[0026] The mixing the first audio signal and the second audio signal to obtain a target audio signal includes:

[0027] According to the first ratio and the second ratio, the first audio signal and the second audio signal are subjected to track superposition processing to obtain a target audio signal.

[0028] A second aspect of an embodiment of the present application provides an audio processing device, which is applied to an earphone box, wherein the earphone box is communicatively connected to an earphone device, and the device includes:

[0029] A signal acquisition module, used to acquire a first audio signal transmitted through a first path and a second audio signal transmitted through a second path;

[0030] an audio processing module, configured to perform mixing processing on the first audio signal and the second audio signal to obtain a target audio signal;

[0031] The headphone return listening module is used to send the target audio signal to the headphone device.

[0032] A third aspect of an embodiment of the present application provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor implements any one of the audio processing methods disclosed in the embodiments of the present application.

[0033] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, any one of the audio processing methods disclosed in the embodiments of the present application is implemented.

[0034] Compared with the related art, the embodiments of the present application have the following beneficial effects:

[0035] The earphone box obtains a first audio signal transmitted through a first path, and obtains a second audio signal transmitted through a second path, then mixes the first audio signal and the second audio signal to obtain a target audio signal, and sends the target audio to a communication-connected earphone device. The earphone box implements mixing of two-way audio, and then returns the mixed audio to the earphone device, thereby realizing the ear return function of the earphone and reducing the complexity of implementing the ear return function. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0037] Figure 1 It is a schematic diagram of an application scenario of an audio processing method disclosed in an embodiment of the present application;

[0038] Figure 2 It is a method flow diagram of an audio processing method disclosed in an embodiment of the present application;

[0039] Figure 3 is a method flow diagram of another audio processing method in an embodiment of the present application;

[0040] Figure 4 It is a schematic diagram of an application scenario of another audio processing method disclosed in an embodiment of the present application;

[0041] Figure 5 is a structural schematic diagram of an audio processing device disclosed in an embodiment of the present application;

[0042] Figure 6 The present invention is a schematic diagram of the structure of an electronic device disclosed in an embodiment. DETAILED DESCRIPTION

[0043] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0044] It should be noted that the terms "including" and "having" and any variations thereof in the embodiments of the present application and the accompanying drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device including a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products or devices.

[0045] The embodiments of the present application disclose an audio processing method, device, earphone box and storage medium, which can process audio to transmit it to an earphone device, achieve the effect of ear return, and reduce the complexity of implementing the ear return function. Detailed descriptions are given below.

[0046] In the present application, the earphone box realizes the mixing process of two-way audio, and then returns the mixed audio to the earphone device, realizing the ear return function of the earphone. However, the traditional earphone needs to communicate and connect with a series of devices such as terminal equipment, wireless receiver, wireless transmitter and mixer to realize the ear return function. Specifically, part of the audio signal is collected by the wireless receiver and sent to the mixer, and the other part of the audio signal is transmitted to the mixer through the terminal device. After the mixer completes the mixing process of the audio signal, the mixed audio signal is sent to the earphone through the wireless transmitter to realize the earphone return listening. The above-mentioned equipment is all special equipment, which is relatively expensive, and the connection relationship between the equipment is complex and the applicability is poor.

[0047] See also Figure 1 , Figure 1 Schematic diagram of an application scenario of an audio processing method disclosed in an embodiment of the present application. Figure 1 As shown, the earphone box 10 may be included, the earphone box 10 is equipped with an earphone device 20, the earphone box 10 is communicatively connected with the earphone device 20, and the earphone box 10 and the earphone device may be specifically connected wirelessly, such as BLE AUDIO. Both the earphone box 10 and the earphone device 20 may be equipped with a processor and a communication chip (such as a Bluetooth chip, etc.). The earphone device 20 may include wireless earphones such as TWS earphones, etc. The earphone box 10 obtains a first audio signal transmitted through a first path, and obtains a second audio signal transmitted through a second path. The earphone box 10 mixes the first audio signal and the second audio signal to obtain a target audio signal, and sends the target audio signal to the earphone device 20.

[0048] See also Figure 2 , Figure 2 1 is a flow chart of an audio processing method disclosed in an embodiment of the present application, which can be applied to the aforementioned earphone box 10. Figure 2 As shown, the method may include the following steps:

[0049] 210. Acquire a first audio signal transmitted through a first path and a second audio signal transmitted through a second path.

[0050] In an embodiment of the present application, the earphone box obtains a first audio signal transmitted through a first path, and obtains a second audio signal transmitted through a second path. Among them, the first audio signal is any audio signal used for mixing processing, and the second audio signal is another audio signal used for mixing processing. The first audio signal can be stored by an external electronic device and transmitted to the earphone box through the first path; or it can be retrieved from the storage area inside the earphone box by the earphone box through the first path. Therefore, the first path can be a path for data transmission between the earphone box and the external electronic device, or a path for data transmission between the data processing chip in the earphone box and the internal storage area. The second audio signal can also be collected by an external electronic device or collected by an audio collection component in the earphone box, and then transmitted to the earphone box through the second path. Therefore, the second path can be a path for data transmission between the earphone box and the external electronic device, or a path for data transmission between the data processing chip in the earphone box and the audio collection component.

[0051] 220. Mix the first audio signal and the second audio signal to obtain a target audio signal.

[0052] In the embodiment of the present application, after acquiring the first audio signal and the second audio signal, the earphone box can mix the first audio signal and the second audio signal to obtain a target audio signal. The target audio signal is the audio signal that the earphone box returns to the user when realizing the earphone return listening function.

[0053] In an embodiment of the present application, the mixing process is a processing method for integrating sounds from multiple sources into a stereo track (Stereo) or a mono track (Mono). The mixing process may include but is not limited to one or more of a direct addition method, an average adjustment weighting method, a summing and clamping method, a normalization method, an adaptive mixing weighting method, etc. Among them, the direct addition method is specifically to simply add the values ​​of the same channel. The average adjustment weighting method is specifically to linearly add the audio signals of each channel and then divide them by the number of channels. The summing and clamping method is specifically to linearly add the audio signals of each channel, perform overflow detection after addition, and if the overflow boundary is detected, use the preset maximum value instead. The normalization method is specifically to multiply the audio signals of each channel by a normalization, so that the amplitude of the audio signal of each channel is normalized. The adaptive mixing weighting method specifically uses a variable attenuation factor to attenuate the audio signal. The attenuation factor represents the weight of the audio signal. When the audio signal overflows, the attenuation factor is correspondingly reduced; when the audio signal does not overflow, the attenuation factor is gradually increased.

[0054] 230. Send the target audio signal to the headphone device.

[0055] In the embodiment of the present application, the earphone box sends the target audio signal to the earphone device connected to the communication. The earphone box usually corresponds to the earphone device one by one. After obtaining the target audio signal, the earphone box can directly send the target audio signal to the corresponding earphone device; or after obtaining the target audio signal, the earphone box can match with the earphone device to check whether it is the corresponding earphone device, and if so, send the target audio signal to the earphone device.

[0056] Using the above embodiment, the earphone box obtains the first audio signal transmitted through the first path, and obtains the second audio signal transmitted through the second path, and then mixes the first audio signal and the second audio signal to obtain the target audio signal, thereby achieving the mixing of two-way audio, and finally sending the target audio to the communication-connected earphone device, that is, the mixed audio is returned to the earphone device, thereby achieving the effect of ear return. By realizing two-way audio mixing and transmission on the earphone box of the earphone device, the earphone device can be used in various occasions where ear return is required. Compared with traditional ear return devices, the cost of use is also lower. In terms of effect, programs that rely on public audio such as accompaniment, metronome, etc. can also have better performance effects than traditional ear return devices. It can provide practical experience for small groups in the private sector or schools to use the headphones for group activities and improve the effect of the activities.

[0057] In the embodiment of the present application, the earphone device is only used to receive the audio signal transmitted by the earphone box, and the audio signal can be transmitted through Bluetooth, which is consistent with the working process of ordinary Bluetooth earphones. Therefore, there is no need to improve the earphone device in the present application, which reduces the cost required to realize the ear return function.

[0058] In one embodiment, see Figure 3 , Figure 3 1 is a flow chart of another audio processing method in an embodiment of the present application. The method can be applied to the aforementioned earphone box 10. The earphone box 10 includes a microphone. The first audio signal includes an audio signal to be played. The second audio signal includes an external audio signal collected by the microphone. Figure 3 As shown, the method may include the following steps:

[0059] 310. Acquire an audio signal to be played that is transmitted through a first path.

[0060] 320. Obtain an external audio signal collected by the microphone through a second channel corresponding to the microphone.

[0061] In an embodiment of the present application, the first audio signal includes an audio signal to be played, such as music of a song sung in a singing performance; the first path is a path for transmitting the audio signal to be played. The audio signal to be played can be stored in a storage area of ​​an earphone box or an external electronic device, and the earphone box can retrieve the audio signal to be played through the first path, or can receive the audio signal to be played transmitted by the external electronic device through the first path. In addition, if the audio signal to be played includes multiple audio signals, the earphone box can still receive the audio signal to be played through the first path including multiple audio signals, or receive the audio signal to be played transmitted by the external electronic device through the first path including multiple audio signals.

[0062] In the embodiment of the present application, the second audio signal includes an external audio signal collected by the headphone box through a microphone, such as the sound of a performer singing in a singing performance; the second path is a path for data transmission between the microphone of the headphone box and the audio processing chip of the headphone box. After the headphone box collects the external audio signal through the microphone, the microphone is controlled to transmit the external audio signal to the audio processing chip of the headphone box through the second path for subsequent mixing processing.

[0063] By adopting the above embodiment, the audio signal to be played and the external audio signal collected by the microphone can be obtained through different channels, so that the audio signal to be played and the external audio signal are mixed and headphone feedback is performed, which effectively realizes the headphone feedback effect and further reduces the process required to realize the headphone feedback.

[0064] In some embodiments, the earphone box is provided with a communication interface, such as a type C interface, etc.; the earphone box is also provided with a built-in microphone; wherein the communication interface can be connected to an audio acquisition device such as an external microphone, etc., to achieve a wired connection including USB AUDIO or LINE IN, etc. The earphone box can also achieve a wireless connection such as Bluetooth or WIFI DLNA.

[0065] If the earphone box is connected to an audio signal acquisition device through the communication interface, the earphone box obtains the external audio signal acquired by the audio acquisition device through the second path corresponding to the audio acquisition device;

[0066] If the communication interface of the earphone box is not connected to an audio acquisition device, the earphone box obtains the external audio signal acquired by the built-in microphone through the second path corresponding to the built-in microphone.

[0067] In the embodiment of the present application, when the communication interface of the earphone box is connected to an audio collection device such as an external microphone, the earphone box preferentially uses the audio collection device to collect external audio signals, and obtains the external audio signals collected by the audio collection device transmitted through the second path. When the communication interface is not connected to the audio collection device, the earphone box uses its own audio collection components such as a built-in microphone to collect external audio signals, and obtains the external audio signals transmitted through the second path.

[0068] By adopting the above embodiment, the effect of the collected external audio signal can be improved, thereby improving the effect of subsequent headphone feedback.

[0069] 330. Mix the audio signal to be played with the external audio signal to obtain a target audio signal.

[0070] 340. Perform signal processing on the target audio signal, where the signal processing includes one or more of noise reduction processing, dynamic processing, and reverberation processing.

[0071] 350. Send the processed target audio signal to a headphone device.

[0072] In an embodiment of the present application, after the earphone box mixes the audio signal to be played with the external audio signal, that is, mixes the first audio signal with the second audio signal, and obtains the target audio signal, the earphone box can perform signal processing on the target audio signal, which can be specifically noise reduction processing and / or dynamic processing and / or reverberation processing to obtain the adjusted target audio signal. Among them, the earphone box can select the specific signal processing method to be adopted according to the characteristics of the obtained target audio signal. For example, the earphone box can detect the noise of the obtained target audio signal. If it is detected that the target audio signal contains more noise, the earphone box can perform noise reduction processing on the target audio signal. The earphone box can detect the amplitude and frequency of the obtained target audio signal. If it is detected that the amplitude of some bands in the target audio signal is too large or too small, or the frequency of some bands is too large or too small, the earphone box can dynamically process the target audio signal to adjust the parameters such as the amplitude or frequency of the target audio signal. If you want to enhance the sound effect of the obtained target audio signal, the earphone box can also perform reverberation processing on the target audio signal so that the target audio signal has a reverberation effect.

[0073] After the earphone box processes the target audio signal using one or more signal processing methods, it obtains the target audio signal after signal processing, and sends the target audio signal after signal processing to the earphone device connected to the communication to realize earphone feedback listening.

[0074] By adopting the above embodiment, the sound effect of the audio signal listened back by the earphone can be improved.

[0075] In some embodiments, before the headphone box performs the step of mixing the first audio signal with the second audio signal to obtain the target audio signal, the headphone box may further include the following steps:

[0076] receiving an adjustment instruction, where the adjustment instruction is used to indicate a first ratio corresponding to the first audio signal and a second ratio corresponding to the second audio signal;

[0077] The earphone box may include the following steps in the step of mixing the first audio signal and the second audio signal to obtain the target audio signal:

[0078] According to the first ratio and the second ratio, the first audio signal and the second audio signal are subjected to track superposition processing to obtain a target audio signal.

[0079] In an embodiment of the present application, the earphone box may receive an input adjustment instruction. The earphone box may be provided with a display component, and the user may input the adjustment instruction into the earphone box through the display component. The adjustment instruction is an electronic device control command for adjusting and controlling a first ratio corresponding to a first audio signal and a second ratio corresponding to a second audio signal. The first ratio is the proportion of the first audio signal in the process of mixing the first audio signal with the second audio signal; the second ratio is the proportion of the second audio signal in the process of mixing the second audio signal with the first audio signal.

[0080] After the earphone box receives the adjustment instruction, according to the first ratio and the second ratio indicated in the adjustment instruction, in the process of mixing the first audio signal and the second audio signal, the first audio signal and the second audio signal are subjected to track superposition processing according to the first ratio and the second ratio to obtain the target audio signal. In addition, if the earphone box does not receive the adjustment instruction, the earphone box can perform track superposition processing on the first audio signal and the second audio signal according to the default ratio corresponding to the first audio signal and the ratio corresponding to the second audio signal, thereby obtaining the target audio signal.

[0081] By adopting the above embodiment, the ratio of the first audio signal to the second audio signal in the mixing process can be adaptively adjusted, thereby improving the effect of headphone feedback.

[0082] See also Figure 4 , Figure 4 FIG. 1 is a schematic diagram of an application scenario of another audio processing method disclosed in an embodiment of the present application. Figure 4As shown, it may include an earphone box 10 and several electronic devices 30, the earphone box 10 is equipped with an earphone device 20, the earphone box 10 is communicatively connected with the earphone device 20, and the earphone box 10 and the earphone device can be specifically connected wirelessly, such as BLEAUDIO. The earphone box 10 can also be communicatively connected with each electronic device 30. The earphone box 10, the earphone device 20 and the electronic device 30 can all be equipped with a processor and a communication chip (such as a Bluetooth chip, etc.). The earphone device can be a wireless earphone, such as a TWS earphone, etc. The electronic device 30 may include but is not limited to an earphone box, a mobile phone, a tablet computer, a laptop computer, a smart watch, a smart bracelet, etc. The earphone box 10 can form a network with several electronic devices 30, and the master device in the network can be the earphone box 10 or any electronic device 30, and other devices other than the master device are all slave devices in the network.

[0083] In some embodiments, the earphone box may further include the following steps in the process of sending the target audio signal to the earphone device:

[0084] If the earphone box receives the joining information sent by at least one electronic device, it stops sending the target audio signal to the earphone device; wherein the joining information is used to indicate that the electronic device requests to join the network with the earphone box as the main device;

[0085] The first audio signal is transmitted to at least one electronic device.

[0086] In the embodiments of this application, please refer to Figure 4 , the earphone box can build a network with several electronic devices. The electronic device can also be an earphone box. The earphone box can be specifically provided with a networking ear return mode, and the networking information can be set. The networking information may include a networking key and a networking device identifier, such as the name of the master device in the network and the name of the electronic device that can join the network. If the earphone box turns on the networking ear return mode, the earphone box is the master device in the constructed network. At this time, other electronic devices can request to join the network with the earphone box as the master device. If the networking ear return mode of the earphone box is not turned on, other electronic devices cannot request to join the network with the earphone box as the master device. Among them, the constructed network includes a master device and one or more slave devices, and the master device is used to play the first audio signal to the slave device.

[0087] In an embodiment of the present application, after the earphone box turns on the networking ear return mode, the master device in the network, that is, the earphone box, can broadcast part of the networking information such as the name of the master device in the networking device identifier. One or more electronic devices can search for the master device in the network, that is, the earphone box, according to the part of the networking information broadcast by the earphone box. If the earphone box receives the joining information sent by one or more electronic devices, the joining information is used to request to join the network with the earphone box as the main device, then the earphone box can stop the ear return function of the earphone device, that is, stop sending the target audio signal to the earphone device, and broadcast the first audio signal to each slave device in the network, that is, send the first audio signal to each electronic device in the network. As the master device in the network, the earphone box broadcasts the first audio signal to the electronic devices in the network after other electronic devices join the network, which can help the slave devices in the network to obtain the first audio signal faster in the networking environment, and stop sending the target audio signal to the equipped earphone device, which can avoid the situation where the earphone box as the master device transmits the wrong audio signal, and improves the accuracy of the audio signal transmission in the network.

[0088] In the embodiment of the present application, the master device in the network can continuously obtain the audio signal to be played transmitted through the first channel, and obtain the external audio signal collected by the microphone through the second channel corresponding to the microphone, and mix the audio signal to be played with the external audio signal to obtain the target audio signal. And after an electronic device is added to the network, the earphone box as the master device stops transmitting the target audio signal to the corresponding earphone device, otherwise it continues to transmit the target audio signal to the corresponding earphone device.

[0089] In the embodiment of the present application, if the slave device added to the network is also an earphone box, then before joining the network, the slave device can also continuously obtain the audio signal to be played transmitted through the first path, and obtain the external audio signal collected by the microphone through the second path corresponding to the microphone, and mix the audio signal to be played with the external audio signal to obtain the target audio signal. And continuously transmit the target audio signal to the corresponding earphone device. After joining the network, the earphone box as a slave device continuously obtains the audio signal to be played transmitted by the earphone box of the master device through the first path.

[0090] For example, earphone box a is provided with a networking ear return mode, and the relevant information of the networking ear return mode includes the name of earphone box a, box-a. Earphone box a continuously obtains the audio signal to be played transmitted through the first channel, and obtains the external audio signal collected by the microphone through the second channel corresponding to the microphone, and mixes the audio signal to be played with the external audio signal to obtain the target audio signal. In the process of earphone box a sending the target audio signal to the communication-connected earphone device A, if earphone box a turns on the networking ear return mode and no electronic device joins, then earphone box a continues to send the target audio signal to the communication-connected earphone device A. If earphone box a turns on the networking ear return mode, then earphone box a can broadcast its own device name or networking information, so that earphone box b, earphone box c and earphone box d can find earphone box a according to the name box-a, and send joining information to earphone box a to request to join the network. After the earphone box a receives the joining information of the earphone box b, the earphone box c and the earphone box d, the earphone box a forms a network with the earphone box b, the earphone box c and the earphone box d, wherein the earphone box a is the master device in the network, and the earphone box b, the earphone box c and the earphone box d are the slave devices in the network. At this time, the earphone box a sends the audio signal to be played to the earphone box b, the earphone box c and the earphone box d through the first path corresponding to the earphone box b, the earphone box c and the earphone box d respectively. The earphone box b, the earphone box c and the earphone box d obtain the audio signal to be played transmitted by the earphone box a through the first path between the earphone box a, and collect the external audio signal through the microphones set or connected to each other. The earphone box b, the earphone box c and the earphone box d mix the received audio signal to be played with the external audio signal transmitted through their respective second paths to obtain the target audio signal. Finally, the earphone box b, the earphone box c and the earphone box d send the target audio signal obtained by each to the corresponding earphone device.

[0091] By adopting the above-mentioned embodiment, a simple networking connection can be established with other electronic devices, thereby improving the efficiency of the electronic device as a slave device in the network in acquiring the audio signal to be played.

[0092] In some embodiments, the joining information includes an electronic device identification and a networking key.

[0093] The step of stopping sending the target audio signal to the headphone device if the headphone box receives the joining information sent by at least one electronic device may include the following steps:

[0094] If the headset box receives the electronic device identification and the networking key sent by the first electronic device, the electronic device identification and the networking key are verified; the first electronic device is any electronic device;

[0095] If the electronic device identification and the networking key are successfully verified, the target audio signal is stopped from being sent to the headphone device.

[0096] In the embodiment of the present application, when requesting to join an electronic device in a network with the headset box as the main device, the joining information sent to the headset box includes at least a networking key and an electronic device identification corresponding to the electronic device. The networking key is a password required for verification to join the network, such as a networking password; the electronic device identification is a parameter, name or identification unique to the electronic device, such as the name of the electronic device.

[0097] For example, earphone box a turns on the networking ear return mode, and presets the networking key to 1111, and the electronic device identifiers of the electronic devices allowed to join are box-b, box-c and box-d. The current network only includes the main device earphone box a. Earphone box a first receives the joining information sent by earphone box b, which includes the networking key 111 and the electronic device identifier box-b corresponding to earphone box b. Earphone box a can first verify the networking key sent by earphone box b. However, since the networking key 111 sent by earphone box b is different from the networking key 1111 preset by earphone box a, the networking key sent by earphone box b fails to be verified, and earphone box b cannot join the network with earphone box a as the main device. Therefore, earphone box a does not need to stop sending the target audio signal to earphone device A.

[0098] After the verification of earphone box b fails, earphone box a receives the joining information sent by earphone box e, and the joining information includes the networking key 1111 and the electronic device identification box-e corresponding to earphone box e. Earphone box a can first verify the networking key sent by earphone box e. Since the networking key 1111 sent by earphone box e is the same as the networking key 1111 preset by earphone box a, the networking key sent by earphone box e is successfully verified. Then earphone box a can verify the electronic device identification box-e sent by earphone box e to determine whether earphone box e is an electronic device allowed to join the network. However, since the electronic device identification box-e sent by earphone box e is different from the electronic device identification of the electronic device allowed to join, the electronic device identification sent by earphone box e fails to be verified, and earphone box e cannot join the network with earphone box a as the main device. Therefore, earphone box a does not need to stop sending the target audio signal to earphone device A.

[0099] After the verification of earphone box e fails, earphone box a receives the joining information sent by earphone box c, and the joining information includes the networking key 1111 and the electronic device identification box-c corresponding to earphone box c. Earphone box a can first verify the networking key sent by earphone box c. Since the networking key 1111 sent by earphone box c is the same as the networking key 1111 preset by earphone box a, the networking key sent by earphone box c is successfully verified. Then earphone box a can verify the electronic device identification box-c sent by earphone box c to determine whether earphone box c is an electronic device allowed to join the network. It can be seen that earphone box b is an electronic device allowed to join the network, that is, the electronic device identification verification is successful, so earphone box c joins the network with earphone box a as the main device. At this time, the network contains earphone box a and earphone box c, earphone box a is the main device in the network, and earphone box c is the slave device in the network. After the earphone box c joins the network, the earphone box a stops sending the target audio signal to the earphone device A, and transmits the audio signal to be played to the earphone box c through the first path of the earphone box c.

[0100] By adopting the above embodiment, the slave device joining the network can be verified, thereby improving the security of the network, avoiding the erroneous broadcast of the first audio signal, and avoiding the earphone box from erroneously terminating the earphone return listening process.

[0101] In some embodiments, the earphone box may include the following steps when acquiring the first audio signal transmitted through the first path:

[0102] In response to the input access instruction, sending joining information to the second electronic device to request to join the network with the second electronic device as the main device;

[0103] A first audio signal sent by the second electronic device is received through a first path between the second electronic device and the second electronic device.

[0104] In an embodiment of the present application, the earphone box can serve as a master device in the network, forming a network by joining other electronic devices, and broadcasting a first audio signal; it can also serve as a slave device in the network, joining other earphone boxes to form a network, and obtaining the first audio signal sent by the earphone box that serves as the master device in the network.

[0105] For example, earphone box a can receive an input access instruction when the networking ear return mode is turned on or when the networking ear return mode is not turned on. The access instruction can be input by the user or by other electronic devices, which is not limited here. In response to the received access instruction, earphone box a sends a joining message to earphone box b, wherein the joining message includes a networking key 1111 and an electronic device identifier box-a corresponding to earphone box a, and the networking key can be the information contained in the access information. Earphone box b turns on the networking ear return mode, and presets the networking key as 1111, and the electronic device identifier of the electronic device allowed to join is box-a. Earphone box b receives the joining message sent by earphone box a, and the joining message includes a networking key 1111 and an electronic device identifier box-a corresponding to earphone box a. Earphone box b can first verify the networking key sent by earphone box a. Since the networking key 1111 sent by earphone box a is the same as the networking key 1111 preset by earphone box b, the networking key sent by earphone box a is successfully verified. Then the earphone box b can verify the electronic device identification box-a sent by the earphone box a to determine whether the earphone box a is an electronic device allowed to join the network. It can be seen that the earphone box a is an electronic device allowed to join the network, that is, the electronic device identification verification is successful. Therefore, the earphone box a, as a slave device, joins the network with the earphone box b as the master device. At this time, the earphone box b stops sending the target audio signal to the earphone device B, and sends the audio signal to be played to the earphone box a through the first channel between the earphone box a and the earphone box a. The earphone box a receives the audio signal to be played transmitted through the first channel, and obtains the external audio signal collected by the microphone through the second channel corresponding to the microphone, mixes the audio signal to be played with the external audio signal, obtains the target audio signal, and sends the obtained target audio signal to the corresponding earphone device A to achieve the earphone return listening effect.

[0106] By adopting the above embodiment, the earphone box can be added to the network as a slave device, which can improve the efficiency of obtaining the first audio signal, thereby improving the efficiency of earphone feedback in the scenario where multiple devices need to achieve the earphone feedback effect.

[0107] In some embodiments, the earphone box may include the following steps when sending the target audio signal to the earphone device:

[0108] Determine the audio delay duration according to the audio signal to be played and the external audio signal;

[0109] Determine the signal transmission rate according to the audio delay time and the preset delay time;

[0110] The target audio signal is sent to the headphone device at the signal transmission rate.

[0111] In the embodiment of the present application, after the earphone box obtains the audio signal to be played and the external audio signal, it can compare the waveforms of the audio signal to be played and the external audio signal to determine the time difference between the two audio signals. Since the external audio signal is generally the voice of the singer and the audio signal to be played is the accompaniment music, the external audio signal is generally delayed from the audio signal to be played, and the time difference is the audio delay time. The earphone box compares the audio delay time with the preset delay time, that is, the preset delay time. If the audio delay time is greater than the preset delay time, the earphone box can increase the preset audio transmission rate; if the audio delay time is less than the preset delay time, the earphone box can reduce the preset audio transmission rate; thereby obtaining the signal transmission rate. The earphone box finally transmits the target audio signal according to the obtained signal transmission rate to send the target audio signal to the earphone device. The rate of the audio signal of the earphone return listening can be adjusted so that the delay time of the earphone return listening is in a more reasonable range, further improving the effect of the earphone return listening.

[0112] See also Figure 5 , Figure 5 1 is a schematic diagram of the structure of an audio processing device disclosed in an embodiment of the present application. The audio processing device can be applied to an earphone box 10, and the earphone box 10 is connected to the earphone device 20 for communication. Figure 5 As shown, the audio processing device 500 may include: a mode determination module 510 and an information sending module 520.

[0113] A signal acquisition module 510, configured to acquire a first audio signal transmitted through a first path and a second audio signal transmitted through a second path;

[0114] The audio processing module 520 is used to mix the first audio signal with the second audio signal to obtain a target audio signal;

[0115] The earphone return listening module 530 is used to send the target audio signal to the earphone device.

[0116] In some embodiments, the earphone box includes a microphone, the first audio signal includes an audio signal to be played, and the second audio signal includes an external audio signal collected by the microphone.

[0117] The signal acquisition module 510 is further used for:

[0118] Acquire the audio signal to be played transmitted through the first path;

[0119] The external audio signal collected by the microphone is obtained through the second channel corresponding to the microphone.

[0120] In some embodiments, the earphone listening module 530 is further used to:

[0121] If the earphone box receives the joining information sent by at least one electronic device, it stops sending the target audio signal to the earphone device; wherein the joining information is used to indicate that the electronic device requests to join the network with the earphone box as the main device;

[0122] The first audio signal is transmitted to at least one electronic device.

[0123] In some embodiments, the joining information includes an electronic device identification and a networking key.

[0124] The earphone listening module 530 is also used for:

[0125] If the headset box receives the electronic device identification and the networking key sent by the first electronic device, the electronic device identification and the networking key are verified; the first electronic device is any electronic device;

[0126] If the electronic device identification and the networking key are successfully verified, the target audio signal is stopped from being sent to the headphone device.

[0127] In some embodiments, the signal acquisition module 510 is further configured to:

[0128] In response to the input access instruction, sending joining information to the second electronic device to request to join the network with the second electronic device as the main device;

[0129] A first audio signal sent by the second electronic device is received through a first path between the second electronic device and the second electronic device.

[0130] In some embodiments, the audio processing module 520 is further configured to:

[0131] After obtaining the target audio signal, signal processing is performed on the target audio signal, where the signal processing includes one or more of noise reduction processing, dynamic processing, and reverberation processing.

[0132] In some embodiments, the audio processing module 520 is further configured to:

[0133] Before mixing the first audio signal and the second audio signal to obtain a target audio signal, receiving an adjustment instruction, the adjustment instruction being used to indicate a first ratio corresponding to the first audio signal and a second ratio corresponding to the second audio signal;

[0134] According to the first ratio and the second ratio, the first audio signal and the second audio signal are subjected to track superposition processing to obtain a target audio signal.

[0135] In some embodiments, the earphone listening module 530 is further used to:

[0136] Determine the audio delay duration according to the audio signal to be played and the external audio signal;

[0137] Determine the signal transmission rate according to the audio delay time and the preset delay time;

[0138] The target audio signal is sent to the headphone device at the signal transmission rate.

[0139] See also Figure 6 , Figure 6 FIG. 1 is a schematic diagram of the structure of an electronic device disclosed in an embodiment. Figure 6 As shown, the electronic device 600 may include:

[0140] A memory 610 storing executable program codes;

[0141] a processor 620 coupled to the memory 610;

[0142] The processor 620 calls the executable program code stored in the memory 610 to execute any one of the audio processing methods disclosed in the embodiments of the present application.

[0143] The embodiment of the present application discloses a computer-readable storage medium storing a computer program, wherein the computer program enables a computer to execute any one of the audio processing methods disclosed in the embodiment of the present application.

[0144] An embodiment of the present application discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to enable a computer to execute any one of the audio processing methods disclosed in the embodiments of the present application.

[0145] It should be understood that the "one embodiment" or "an embodiment" mentioned throughout the specification means that the specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. Those skilled in the art should also be aware that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required for the present application.

[0146] In various embodiments of the present application, it should be understood that the size of the serial numbers of the above-mentioned processes does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal strategy, and should not constitute any limitation on the implementation process of the embodiments of the present application.

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

[0148] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0149] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-accessible memory. Based on this understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product, which is stored in a memory and includes several requests for a computer device (which can be a personal computer, a server or a network device, etc., specifically a processor in a computer device) to perform some or all of the steps of the above-mentioned methods of various embodiments of the present application.

[0150] Those skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage medium includes a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable rewritable read-only memory (EEPROM), a compact disc (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.

[0151] The above is a detailed introduction to an audio processing method, device, electronic device and storage medium disclosed in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of ​​the present application. At the same time, for those of ordinary skill in the art, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. An audio processing method, It is characterized in that Applied to an earphone box, the earphone box is communicatively connected with an earphone device, and the method comprises: Acquire a first audio signal transmitted through a first path and a second audio signal transmitted through a second path; Mixing the first audio signal with the second audio signal to obtain a target audio signal; The target audio signal is sent to the headphone device.

2. The method according to claim 1, It is characterized in that The earphone box includes a microphone, the first audio signal includes an audio signal to be played, and the second audio signal includes an external audio signal collected by the microphone; The obtaining of a first audio signal transmitted through a first path and a second audio signal transmitted through a second path includes: Acquire the audio signal to be played transmitted through the first path; The external audio signal collected by the microphone is obtained through a second path corresponding to the microphone.

3. The method according to claim 1, It is characterized in that The method further comprises: If the earphone box receives a joining message sent by at least one electronic device, stopping sending the target audio signal to the earphone device; wherein the joining message is used to indicate that the electronic device requests to join a network with the earphone box as the main device; The first audio signal is transmitted to the at least one electronic device.

4. The method according to claim 3, It is characterized in that The joining information includes an electronic device identification and a networking key; If the earphone box receives the joining information sent by at least one electronic device, stopping sending the target audio signal to the earphone device includes: If the earphone box receives the electronic device identification and the networking key sent by the first electronic device, the electronic device identification and the networking key are verified; the first electronic device is any of the electronic devices; If the electronic device identification and the networking key are successfully verified, the target audio signal is stopped from being sent to the headphone device.

5. The method according to claim 1, It is characterized in that The step of acquiring a first audio signal transmitted through a first path includes: In response to the input access instruction, sending joining information to the second electronic device to request to join the network with the second electronic device as the main device; A first audio signal sent by the second electronic device is received through a first path between the second electronic device and the second electronic device.

6. The method according to any one of claims 1 to 5, It is characterized in that After obtaining the target audio signal, the method further includes: The target audio signal is subjected to signal processing, wherein the signal processing includes one or more of noise reduction processing, dynamic processing, and reverberation processing.

7. The method according to any one of claims 1 to 5, It is characterized in that Before mixing the first audio signal with the second audio signal to obtain a target audio signal, the method further includes: receiving an adjustment instruction, where the adjustment instruction is used to indicate a first ratio corresponding to the first audio signal and a second ratio corresponding to the second audio signal; The mixing the first audio signal and the second audio signal to obtain a target audio signal includes: According to the first ratio and the second ratio, the first audio signal and the second audio signal are subjected to track superposition processing to obtain a target audio signal.

8. An audio processing device, It is characterized in that Applied to an earphone box, the earphone box is communicatively connected with an earphone device, and the device comprises: A signal acquisition module, used to acquire a first audio signal transmitted through a first path and a second audio signal transmitted through a second path; an audio processing module, configured to perform mixing processing on the first audio signal and the second audio signal to obtain a target audio signal; The headphone return listening module is used to send the target audio signal to the headphone device.

9. An electronic device, It is characterized in that The method comprises a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor implements the method according to any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.