CN117059116A - Audio data processing method, communication terminal, audio player and storage medium - Google Patents

Audio data processing method, communication terminal, audio player and storage medium Download PDF

Info

Publication number
CN117059116A
CN117059116A CN202210489643.1A CN202210489643A CN117059116A CN 117059116 A CN117059116 A CN 117059116A CN 202210489643 A CN202210489643 A CN 202210489643A CN 117059116 A CN117059116 A CN 117059116A
Authority
CN
China
Prior art keywords
denoising
audio player
target
communication terminal
audio data
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
CN202210489643.1A
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.)
Hytera Communications Corp Ltd
Original Assignee
Hytera Communications 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 Hytera Communications Corp Ltd filed Critical Hytera Communications Corp Ltd
Priority to CN202210489643.1A priority Critical patent/CN117059116A/en
Publication of CN117059116A publication Critical patent/CN117059116A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L21/00Speech or voice signal processing techniques to produce another audible or non-audible signal, e.g. visual or tactile, in order to modify its quality or its intelligibility
    • G10L21/02Speech enhancement, e.g. noise reduction or echo cancellation
    • G10L21/0208Noise filtering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1083Reduction of ambient noise
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L21/00Speech or voice signal processing techniques to produce another audible or non-audible signal, e.g. visual or tactile, in order to modify its quality or its intelligibility
    • G10L21/02Speech enhancement, e.g. noise reduction or echo cancellation
    • G10L21/0208Noise filtering
    • G10L2021/02082Noise filtering the noise being echo, reverberation of the speech

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Computational Linguistics (AREA)
  • Quality & Reliability (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Telephone Function (AREA)

Abstract

The application discloses an audio data processing method, a communication terminal, an audio player and a storage medium, wherein the audio data processing method comprises the following steps: acquiring first equipment information of a communication terminal and second equipment information of an audio player which establishes communication connection with the communication terminal; determining a target denoising parameter based on the first equipment information and the second equipment information; and denoising the audio data to be processed by using the target denoising parameters to obtain target audio data, wherein the audio data to be processed is the audio data received by the communication terminal, and the target audio data is provided for an audio player to play. According to the scheme, the denoising parameters can be determined according to the equipment information of the communication terminal and the audio player, so that the audio data processing effect is improved.

Description

Audio data processing method, communication terminal, audio player and storage medium
Technical Field
The present application relates to the field of communications, and in particular, to an audio data processing method, a communication terminal, an audio player, and a storage medium.
Background
During a conversation, a caller often uses a wireless earphone or is equipped with a speaker, etc., and much noise, such as echo and noise, etc., occurs. Therefore, processing such as echo cancellation and noise reduction for data such as voice appears, so that the played sound quality is relatively better.
When devices such as a Bluetooth headset are worn in the communication process, the Bluetooth headset plays audio, and if the Bluetooth headset has an echo cancellation function and a noise reduction function, the Bluetooth headset can also execute echo cancellation processing and noise reduction processing. However, when the communication terminals such as mobile phones and the like or the Bluetooth headset execute the echo cancellation and noise reduction processing, fixed parameters are used, so that the requirements of multiple scenes cannot be met, and the echo cancellation and noise reduction effects are poor.
Disclosure of Invention
The application provides at least an audio data processing method, a communication terminal, an audio player and a storage medium.
The application provides an audio data processing method, which comprises the following steps: acquiring first equipment information of a communication terminal and second equipment information of an audio player which establishes communication connection with the communication terminal; determining a target denoising parameter based on the first equipment information and the second equipment information; and denoising the audio data to be processed by using the target denoising parameters to obtain target audio data, wherein the audio data to be processed is the audio data received by the communication terminal, and the target audio data is provided for an audio player to play.
The application provides an audio data processing device, comprising: the first information acquisition module is used for acquiring first equipment information of the communication terminal and second equipment information of the audio player which establishes communication connection with the communication terminal; the first parameter determining module is used for determining a target denoising parameter based on the first equipment information and the second equipment information; the first data processing module is used for implementing denoising processing of the audio data to be processed by using the target denoising parameters so as to obtain target audio data, wherein the audio data to be processed is the audio data received by the communication terminal, and the target audio data is provided for an audio player to play.
The application provides a communication terminal which comprises a memory and a processor, wherein the processor is used for executing program instructions stored in the memory so as to realize the audio data processing method.
A sixth aspect of the present application provides an audio player comprising a memory and a processor for executing program instructions stored in the memory to implement the audio data processing method provided above.
The present application provides a computer readable storage medium having stored thereon program instructions which, when executed by a processor, implement the above-described audio data processing method.
According to the scheme, the target denoising parameters are determined according to the equipment information of the communication terminal and the audio player, and then the denoising processing of the audio data to be processed is realized by using the target denoising parameters.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application as claimed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
FIG. 1 is a flow chart of an embodiment of an audio data processing method according to the present application;
FIG. 2 is a flow chart of an embodiment of an audio data processing method according to the present application;
FIG. 3 is a flow chart of another embodiment of the audio data processing method of the present application;
FIG. 4 is a schematic diagram of an audio data processing device according to an embodiment of the present application;
Fig. 5 is a schematic structural view of an embodiment of the communication terminal of the present application;
FIG. 6 is a schematic diagram of an audio player according to an embodiment of the present application;
FIG. 7 is a schematic diagram of a computer-readable storage medium according to an embodiment of the present application.
Detailed Description
The following describes embodiments of the present application in detail with reference to the drawings.
In the following description, for purposes of explanation and not limitation, specific details are set forth such as the particular system architecture, interfaces, techniques, etc., in order to provide a thorough understanding of the present application.
The term "and/or" is herein merely an association relationship describing an associated object, meaning that there may be three relationships, e.g., a and/or B, may represent: a exists alone, A and B exist together, and B exists alone. In addition, the character "/" herein generally indicates that the front and rear associated objects are an "or" relationship. Further, "a plurality" herein means two or more than two. In addition, the term "at least one" herein means any one of a plurality or any combination of at least two of a plurality, for example, including at least one of A, B, C, and may mean including any one or more elements selected from the group consisting of A, B and C.
Referring to fig. 1 and 2, fig. 1 is a flowchart illustrating an embodiment of an audio data processing method according to the present application. Specifically, the method may include the steps of:
step S11: first device information of a communication terminal and second device information of an audio player establishing communication connection with the communication terminal are acquired.
The execution subject of the audio data processing method provided by the embodiment of the disclosure may be a communication terminal or an audio player. In this embodiment, an audio data processing method will be described by taking an execution subject as a communication terminal. The communication terminal may be any device capable of communication, such as an interphone, a mobile phone, and a telephone watch. The audio player can be a Bluetooth earphone, a Bluetooth loudspeaker box and other devices with an audio playing function. In some disclosed embodiments, a communication terminal includes a master control unit and a first bluetooth unit. The main control unit and the first Bluetooth unit are in signal communication and control through a communication interface. The communication interface may be an SPI (Serial Peripheral Interface ) interface, UART (Universal Asynchronous Receiver and Transmitter, asynchronous transceiver interface) interface, USB interface, IIC (Inter-Integrated Circuit, integrated circuit bus interface) interface, or the like. The first bluetooth unit may be configured to establish a communication connection with the audio playback device and may also be configured to perform denoising. The audio player may include a second bluetooth unit, an audio acquisition unit, and an audio playback unit. The second bluetooth unit may be configured to establish a communication connection with the first bluetooth unit. The audio acquisition unit may be a microphone and may be used to acquire audio data. The audio playing unit may be a loudspeaker, which may be used for playing audio data.
The first device information of the communication terminal and the second device information of the audio player may include accessory information. The accessory information may specifically include at least one of a device identification and a firmware version number. By way of example, the device identification of the communication terminal may be a device model of the communication terminal and the device identification of the audio player may be a model of the audio player.
The first device information of the communication terminal is stored in a memory space of the communication terminal. The communication terminal may acquire the second device information of the audio player by sending a request instruction to the audio player through a communication connection with the audio player, so that the audio player sends the second device information to the communication terminal after receiving the request instruction.
Step S12: and determining a target denoising parameter based on the first device information and the second device information.
The method for determining the target denoising parameter based on the first device information and the second device information may be to match the first device information and the second device information with each piece of first device information and each piece of second device in the pre-established parameter configuration information, so as to obtain the target denoising parameter.
Step S13: and denoising the audio data to be processed by using the target denoising parameters to obtain target audio data, wherein the audio data to be processed is the audio data received by the communication terminal, and the target audio data is provided for an audio player to play.
The audio data to be processed may be audio data received by the communication terminal from other communication terminals. Illustratively, the communication terminal and the other communication terminals receive voice data from the other communication terminals as audio data to be processed when making a voice or video call.
According to the scheme, the target denoising parameters are determined according to the equipment information of the communication terminal and the audio player, and then the denoising processing of the audio data to be processed is realized by using the target denoising parameters.
In some disclosed embodiments, the denoising process includes at least one of an echo cancellation process and a denoising process. Wherein the echo cancellation process is used to reduce echo in the audio data. The noise reduction process is used to reduce noise in the audio data. The noise in the audio data may be gaussian noise generated in the data transmission process, or any sound not belonging to the target object may be used as noise, the target object may be a human body, and the sound not belonging to the target object may be sound such as automobile whistle. In some application scenarios, the denoising process includes an echo cancellation process. In some application scenarios, the denoising process includes a denoising process. In some application scenarios, the denoising process includes an echo cancellation process and a denoising process. The target denoising parameters corresponding to the echo cancellation processing are target echo cancellation parameters, and the target denoising parameters corresponding to the noise reduction processing are target noise reduction parameters. The target echo cancellation parameters are used for realizing echo cancellation processing of the audio data to be processed, and the target noise reduction parameters are used for realizing noise reduction processing of the audio data to be processed.
Wherein the communication connection between the communication terminal and the audio player may be a bluetooth connection. I.e. the bluetooth of the communication terminal establishes a connection with the bluetooth of the audio player. And then communication between the two is realized through a Bluetooth custom protocol. Specifically, the communication may be performed by AT commands, SPP protocol data, or the like.
In some disclosed embodiments, the step S12 may include the steps of:
and judging whether the audio player has started the denoising function. Illustratively, the communication terminal determines whether the audio player has turned on the denoising function. Wherein, the audio player can perform denoising processing on the audio data received from the communication terminal under the condition that the denoising function is started. In the case where the audio player does not turn on the denoising function, the denoising process cannot be performed on the audio data received from the communication terminal. The on and off of the denoising function of the audio player can be controlled by a user in a menu of the audio player or a function switch button is arranged on the audio player, and the user can turn on or off the denoising function of the audio player by pressing or clicking the switch button. Alternatively, the on and off of the denoising function of the audio player may also be controlled by the communication terminal, and the communication terminal sends a control instruction to the audio player, for example, the instruction being for instructing the audio player to turn on or off the denoising function. The communication terminal may send the control instruction to the audio player after receiving a preset operation of the communication terminal by the user. The mode of the communication terminal judging whether the audio player starts the denoising function may be to send a query instruction to the audio player, so that the audio player sends a query result to the communication terminal after receiving the query instruction. The query result includes whether the audio player has or has not turned on the denoising function.
As described above, the denoising process includes the echo cancellation process and the denoising process. Determining whether the audio player has turned on the denoising function includes determining whether the audio player has turned on the echo cancellation function, and determining whether the audio player has turned on the denoising function. The determining whether the audio player has turned on the echo cancellation function and the determining whether the audio player has turned on the noise reduction function may be separately performed and the order of execution of the two may not be limited in the case of separate execution, or the two determining processes may be performed in combination, for example, using a query instruction query. And executing the following steps related to echo cancellation according to the judgment result of whether the audio player starts the echo cancellation function. And executing the following steps related to the noise reduction function according to the judgment result of whether the audio player has started the noise reduction function. The two judging results are mutually independent and cannot influence each other.
In response to the audio player having turned on the denoising function, a target denoising parameter is determined for the audio player based on the first device information and the second device information. By determining the target denoising parameters for the audio player, the audio player is enabled to denoise audio data received from the communication terminal using the target denoising parameters. In some application scenarios, a target echo cancellation parameter is determined for an audio player based on first device information and second device information in response to the audio player having turned on an echo cancellation function. In some application scenarios, a target noise reduction parameter is determined for an audio player based on first device information and second device information in response to the audio player having turned on a noise reduction function.
In some application scenarios, the communication terminal may further send the first device information to the audio player when the audio player has turned on the denoising function, so that the audio player determines the target denoising parameter of the audio player based on the received first device information and the second device information thereof. For example, in the case that the audio player has turned on the echo cancellation function, the communication terminal may further transmit the first device information to the audio player, so that the audio player determines the target echo cancellation parameter of the audio player based on the received first device information and the own second device information. The audio player may store preset parameter configuration information, where the preset parameter configuration information includes a plurality of denoising parameters. Each denoising parameter corresponds to a set of associated device information. Each set of associated device information includes first device information of one communication terminal and second device information of one audio player. The audio player determines denoising parameters corresponding to the first equipment information and the second equipment information from preset parameter configuration information, and takes the denoising parameters as target denoising parameters. The method for determining the target denoising parameter by the audio player from the preset parameter configuration information can be referred to as the following method for determining the target denoising parameter by the communication terminal from the preset parameter configuration information, which is not described in detail herein.
For example, in the case that the audio player has turned on the noise reduction function, the communication terminal may further transmit the first device information to the audio player so that the audio player determines the target noise reduction parameter of the audio player based on the received first device information and the own second device information. And, the communication terminal transmits the audio data to be processed to the audio player after receiving a signal for indicating completion of configuration of the audio player, so that the audio player performs denoising processing on the audio data to be processed based on the target denoising parameter, and plays the denoised audio data.
And determining target denoising parameters for the communication terminal based on the first equipment information and the second equipment information in response to the fact that the denoising function of the audio player is not started. By determining the target denoising parameters for the communication terminal, the communication terminal is enabled to denoise audio data received from other communication terminals using the target denoising parameters. In some application scenarios, in response to the audio player not turning on the echo cancellation function, a target echo cancellation parameter is determined for the communication terminal based on the first device information and the second device information. In some application scenarios, in response to the audio player not turning on the noise reduction function, a target noise reduction parameter is determined for the communication terminal based on the first device information and the second device information.
In some disclosed embodiments, before performing the step of the communication terminal determining whether the audio player has turned on the denoising function, the following steps may be further performed:
and judging whether the audio player supports the denoising function. Illustratively, it is determined whether the audio player supports an echo cancellation function and a noise reduction function. Wherein, the determining whether the audio player supports the echo cancellation function and whether the audio player supports the noise reduction function may be performed separately and the order of execution is not limited in the case of separate execution, or the two determining processes may be performed in combination. Because some audio players may not have a denoising function, there is no need to determine whether they have already turned on the denoising function and the target denoising parameters. The mode of determining whether the audio player supports the denoising function may be determined according to the second device information of the audio player. For example, according to the firmware version number of the audio player, the functions of the audio player under the firmware version number can be queried through the firmware version number.
In response to the audio player supporting the denoising function, the step of determining whether the audio player has turned on the denoising function is performed. In some application scenarios, in response to the audio player supporting the echo cancellation function, the step of determining whether the audio player has turned on the echo cancellation function is performed. In some application scenarios, in response to the audio player supporting the noise reduction function, the step of determining whether the audio player has turned on the noise reduction function is performed.
In response to the audio player not supporting the denoising function, the step of determining whether the audio player has turned on the denoising function is not performed, and the step of determining a target denoising parameter for the communication terminal based on the first device information and the second device is performed. In some application scenarios, in response to the audio player not supporting the echo cancellation function, the step of determining whether the audio player has turned on the echo cancellation function is not performed, and the step of determining a target echo cancellation parameter for the communication terminal based on the first device information and the second device information is performed. In some application scenarios, in response to the audio player not supporting the noise reduction function, the step of determining whether the audio player has turned on the noise reduction function is not performed, and the step of determining a target noise reduction parameter for the communication terminal based on the first device information and the second device is performed.
In some disclosed embodiments, the audio data processing method further comprises the steps of:
and enabling the communication terminal to start or keep the denoising function on in response to the audio player not supporting the denoising function or the audio player not starting the denoising function. In some application scenarios, in response to the audio player not supporting the denoising function, the communication terminal turns on the denoising function, or if the communication terminal has turned on the denoising function, the denoising function is kept on. The communication terminal can be used for denoising the audio data received from other communication terminals under the condition of starting the denoising function. In some application scenarios, the communication terminal turns on the denoising function or keeps the denoising function on in response to the audio player not turning on the denoising function.
In response to the audio player having turned on the denoising function, the communication terminal is turned off or remains turned off the denoising function. In some application scenarios, because the audio player has already turned on the denoising function, the denoising function can be used for denoising the audio data, if the communication terminal also turns on the denoising function, the denoised audio data is sent to the audio player after the denoising process is performed on the audio data, and the audio player performs the denoising process on the denoised audio data again, and the denoising process is performed on the audio data twice, so that problems such as sound distortion and poor sound quality may be caused.
In some disclosed embodiments, the step S12 may include the steps of:
and determining denoising parameters corresponding to the first equipment information and the second equipment information from preset parameter configuration information, and taking the denoising parameters as target denoising parameters.
The preset parameter configuration information comprises a plurality of denoising parameters. Each denoising parameter corresponds to a set of associated device information. Each set of associated device information includes first device information of one communication terminal and second device information of one audio player. The types of the communication terminals corresponding to different denoising parameters can be the same or different, for example, part of the communication terminals are interphones, and the other part of the communication terminals can be mobile phones and the like. The types of the audio players corresponding to different denoising parameters can be the same or different, for example, part of the audio players are Bluetooth headphones, and the other part of the audio players are Bluetooth sound boxes. Several of the embodiments of the present disclosure refer to one and more.
Specifically, the main control unit in the communication terminal stores preset parameter configuration information. And the preset parameter configuration information comprises a plurality of denoising parameters. Each denoising parameter corresponds to a set of associated device information. Each set of associated device information includes first device information of one communication terminal and second device information of one audio player. The preset parameter configuration information comprises a plurality of groups, denoising parameters in each group of preset parameter configuration information can be different and identical, and associated equipment information corresponding to each denoising parameter in different groups of preset parameter configuration information can be identical or different. The first device information or the second device information of each group of associated device information in the same group of preset parameter configuration information may be the same, or the first device information and the second device information may be different. Illustratively, the first device information and the second device information included in each set of associated device information in the set of preset parameter configuration information are the same and different.
As described above, the target denoising parameters include target echo cancellation parameters and target denoising parameters. The preset parameter configuration information may include preset echo cancellation parameter configuration information and preset noise reduction parameter configuration information. The echo cancellation parameter configuration information and the preset noise reduction parameter configuration information may be represented by a parameter configuration list, and the group of parameter configuration information may be in the form of "first device information-second device information-echo cancellation parameter-noise reduction parameter" for example.
The mode of determining the denoising parameters corresponding to the first device information and the second device information from the preset parameter configuration information may be: and (3) matching the first equipment information and the second equipment information acquired in the step (S11) with the first equipment information and the second equipment information in each group of parameter configuration information in the preset parameter configuration information, and taking the echo cancellation parameters corresponding to the group as target echo cancellation parameters and the noise reduction parameters of the group as target noise reduction parameters under the condition that the first equipment information and the second equipment information are successfully matched with the first equipment information and the second equipment information in the same group.
As described above, the target denoising parameters include target echo cancellation parameters and target denoising parameters. In some disclosed embodiments, the target denoising parameter determined according to the above manner may be a denoising parameter of a communication terminal, or may be a denoising parameter of an audio player, or may be a denoising parameter of a part of the target denoising parameters of the communication terminal, or a denoising parameter of another part of the target denoising parameters of the audio player. Wherein the echo cancellation process and the noise reduction process are independent of each other, and the two processes may be performed by different devices.
In an exemplary embodiment, in a case where the audio player has turned on the echo cancellation function and the noise reduction function, the determined target echo cancellation parameter is an echo cancellation parameter of the audio player, and the target noise reduction parameter is a noise reduction parameter of the audio player. In an exemplary embodiment, the determined target echo cancellation parameter and target noise reduction parameter are the echo cancellation parameter and noise reduction parameter of the communication terminal when the audio player does not turn on the echo cancellation function and the noise reduction function. In an exemplary embodiment, in a case where the audio player has turned on the echo cancellation function and has not turned on the noise reduction function, the determined target echo cancellation parameter is an echo cancellation parameter of the audio player, and the target noise reduction parameter is a noise reduction parameter of the communication terminal. In an exemplary embodiment, when the audio player has turned on the noise reduction function and has not turned on the echo cancellation function, the determined target echo cancellation parameter is an echo cancellation parameter of the communication terminal, and the determined target noise reduction parameter is a noise reduction parameter of the audio player.
The step S13 may include the steps of:
and responding to the target denoising parameters as the denoising parameters of the communication terminal, denoising the audio data to be processed based on the target denoising parameters to obtain target audio data, and sending the target audio data to an audio player for playing.
In some application scenarios, in response to the target denoising parameter being an echo cancellation parameter and a denoising parameter of the communication terminal, the communication terminal performs echo cancellation processing and denoising processing on audio data to be processed based on the target echo cancellation parameter and the target denoising parameter, so as to obtain target audio data.
And responding to the target denoising parameters as the denoising parameters of the audio player, and sending the audio data to be processed and the target denoising parameters to the audio player so that the audio player performs denoising processing on the audio data to be processed based on the target denoising parameters and plays the denoised target audio data.
In some application scenarios, in response to the target denoising parameters being the echo cancellation parameters and the noise reduction parameters of the audio player, the audio data to be processed, the target echo cancellation parameters and the target noise reduction parameters are sent to the audio player, so that the audio player performs noise reduction processing and echo cancellation processing on the audio data to be processed based on the target noise reduction parameters and the target echo cancellation parameters, and plays the target audio data subjected to the noise reduction processing and the echo cancellation processing.
And responding to the target denoising parameters as a first denoising parameter of the communication terminal and a second denoising parameter of the audio player, and after denoising processing corresponding to the first denoising parameter is performed on the audio data to be processed based on the first denoising parameter, sending the processed audio data to the audio player so that the audio player performs denoising processing corresponding to the second denoising parameter on the processed audio data based on the second denoising parameter.
In some application scenarios, when the first denoising parameter is a target echo cancellation parameter, the second denoising parameter is a target denoising parameter, the denoising process corresponding to the first denoising parameter is an echo cancellation process, and the denoising process corresponding to the second denoising parameter is a denoising process. When the first denoising parameter is a target denoising parameter, the second denoising parameter is a target echo cancellation parameter, denoising processing corresponding to the first denoising parameter is denoising processing, and denoising processing corresponding to the second denoising parameter is echo cancellation processing.
For a better understanding of the technical solution provided by the embodiments of the present disclosure, please refer to the following examples. This embodiment takes an execution subject as a communication terminal as an example. Referring to fig. 2, fig. 2 is a schematic flow chart of an embodiment of the audio data processing method according to the present application. As shown in fig. 2, the audio data processing method provided in the embodiment of the present disclosure may further include the following steps:
Step S21: the communication terminal establishes a communication connection with the audio player.
The communication connection may be established by bluetooth. When the communication terminal and the audio player are disconnected, after the connection is reestablished next time, the scheme for determining the target denoising parameters needs to be re-executed, and the target denoising parameters for denoising the audio data to be processed are determined.
Step S22: the communication terminal acquires the first device information and the second device information.
The specific content of the first device information and the second device information and the manner of obtaining the first device information and the second device information are referred to above, and are not described herein again. After step S22 is performed, the subsequent steps of step S23 and step S28 may be performed, respectively.
Step S23: and judging whether the audio player supports the echo cancellation function or not based on the second device information.
The specific judgment mode is as described above, and will not be described in detail here. If the determination result is yes, step S25 is executed, and if the determination result is no, step S24 is executed.
Step S24: the communication terminal turns on or keeps turning on the echo cancellation function.
Step S25: it is determined whether the audio player has turned on the echo cancellation function.
The specific judgment mode is as described above, and will not be described in detail here. If the determination result in step S25 is yes, step S26 is executed, and if the determination result is no, step S24 is executed.
Step S26: the communication terminal turns off or remains turned off the echo cancellation function.
Step S27: a target echo cancellation parameter is determined based on the first device information and the second device information.
The manner of determining the target echo cancellation parameter by the communication terminal based on the first device information and the second device information is as described above, and is not described herein.
Step S28: and judging whether the audio player supports the noise reduction function or not based on the second device information.
The specific judgment mode is as described above, and will not be described in detail here. If the determination result of step S28 is yes, step S29 is executed, and if the determination result of step S28 is no, step S30 is executed.
Step S29: and judging whether the audio player has started the noise reduction function or not.
The specific judgment mode is as described above, and will not be described in detail here. If the determination result of step S29 is yes, step S31 is executed, and if the determination result of step S29 is no, step S30 is executed.
Step S30: the communication terminal turns on or keeps the noise reduction function turned on.
Step S31: the communication terminal turns off or keeps turning off the noise reduction function.
Step S32: a target noise reduction parameter is determined based on the first device information and the second device information.
The manner of determining the target noise reduction parameter by the communication terminal based on the first device information and the second device information is as described above, and is not described herein.
Step S33: the communication terminal and/or the audio player are configured based on the target echo cancellation parameters and the target noise reduction parameters.
Illustratively, if the target echo cancellation parameter and the target noise reduction parameter are both denoising parameters of the communication terminal, the denoising parameters of the communication terminal are configured by using the target echo cancellation parameter and the target noise reduction parameter. For example, if the target echo cancellation parameter and the target noise reduction parameter are both denoising parameters of the audio player, the communication terminal sends the target echo cancellation parameter and the target noise reduction parameter to the audio player so that the audio player configures the denoising parameters. For example, if the target echo cancellation parameter is an echo cancellation parameter of the communication terminal and the target noise reduction parameter is a noise reduction parameter of the audio player, the echo cancellation parameter of the communication terminal is configured by using the target echo cancellation parameter, and the communication terminal sends the target noise reduction parameter to the audio player so that the audio player configures the noise reduction parameter. For example, if the target noise reduction parameter is an echo cancellation parameter of the communication terminal, the target echo cancellation parameter is a noise reduction parameter of the audio player, the noise reduction parameter of the communication terminal is configured by using the target noise reduction parameter, and the communication terminal sends the target echo cancellation parameter to the audio player, so that the audio player configures the echo cancellation parameter.
Step S34: the configuration is completed and the communication terminal and the audio player start to operate.
The communication terminal carries out denoising processing on the audio data to be processed according to the configured denoising parameters, and sends the audio data subjected to denoising processing to the audio player, so that the audio player plays final audio data after carrying out corresponding denoising processing on the audio data according to the configured denoising parameters. Of course, if the communication terminal or the audio player does not perform the related configuration, the communication terminal or the audio player does not perform the corresponding denoising process, and if the audio player does not use the target echo cancellation parameter to perform the configuration, the audio player does not perform the echo cancellation process on the audio data, and the other cases are similar, which is not repeated here.
According to the scheme, the target denoising parameters are determined according to the equipment information of the communication terminal and the audio player, and then the denoising processing of the audio data to be processed is realized by using the target denoising parameters.
In the audio data processing method provided by the embodiment of the disclosure, when the communication terminal and the audio player establish bluetooth connection, whether the communication terminal or the audio player enables echo cancellation or noise reduction can be negotiated through an AT command or SPP data and the like, so that the intelligent rapid configuration to the optimal echo cancellation and noise reduction effect is achieved.
By way of example, a flexible collocation of communication terminals of different models and different audio players can be achieved, and better configuration of echo cancellation and noise reduction parameters.
In addition, the echo cancellation function and the noise reduction function of the communication terminal and the audio player are also intelligently switched, for example, in the case that the audio player starts the echo cancellation function, in order to prevent the situation that the sound quality is poor due to two times of echo cancellation on the same audio data, the echo cancellation function of the communication terminal can be closed. The main body of execution of the audio data processing method may be an audio data processing apparatus, and the audio data processing method may be executed by a communication terminal, for example. The communication terminal may be an intercom, a radio station, a User Equipment (UE), a mobile device, a User terminal, a cellular phone, a cordless phone, a personal digital assistant (Personal Digital Assistant, PDA), a handheld device, a computing device, a vehicle-mounted device, a wearable device, or the like. In some possible implementations, the audio data processing method may be implemented by way of a processor invoking computer readable instructions stored in a memory.
Referring to fig. 3, fig. 3 is a flowchart illustrating an audio data processing method according to another embodiment of the application. The audio data processing method provided by the embodiment of the disclosure is applied to an audio player. As shown in fig. 3, the audio data processing method provided by the embodiment of the present disclosure may include the following steps:
step S41: second device information of the audio player and first device information of a communication terminal establishing communication connection with the audio player are acquired.
In some disclosed embodiments, a communication terminal includes a master control unit and a first bluetooth unit. The main control unit and the first Bluetooth unit are in signal communication and control through a communication interface. The communication interface may be a first bluetooth unit such as an SPI interface, a UART interface, a USB interface, and an IIC interface, and may be used to establish a communication connection with the audio playing device. The first bluetooth unit may also be used to perform denoising processing. The audio player may include a second bluetooth unit, an audio acquisition unit, and an audio playback unit. The second bluetooth unit may be configured to establish a communication connection with the first bluetooth unit. The audio acquisition unit may be a microphone for acquiring audio data. The audio playing unit may be a loudspeaker for playing audio data.
Wherein the second device information of the audio player is stored in the storage space of the audio player. The communication terminal may establish a communication connection with the audio player in the form of a bluetooth connection. The first device information of the communication terminal may be transmitted to the audio player in a case where the communication terminal determines that the denoising function of the audio player is on. The audio player obtains the first device information by analyzing a signal carrying the first device information of the communication terminal, which is sent by the communication terminal.
Before executing step S41, the communication terminal may further receive a request instruction sent by the communication terminal, and send second device information to the communication terminal after receiving the request instruction, so that the communication terminal determines whether the audio player supports the denoising function based on the second device information. The denoising function comprises an echo cancellation function and a denoising function.
And receiving an inquiry command sent by the communication terminal, and responding to the inquiry command to send an inquiry result of whether the audio player has started the denoising function to the communication equipment. The query instruction is generated under the condition that the communication terminal determines that the audio player supports the denoising function.
In some disclosed embodiments, the audio player receives audio data from the communication terminal and plays the audio data without the denoising function of the audio player being turned on.
Step S42: the audio player determines a target denoising parameter of the audio player based on the first device information and the second device information.
In some disclosed embodiments, the target denoising parameter of the audio player may be determined using preset parameter configuration information stored in the second bluetooth unit of the audio player. Specifically, the preset parameter configuration information includes denoising parameters associated with a plurality of groups of second equipment information and different first equipment information. The specific method for determining the target denoising parameter may be to determine denoising parameters corresponding to the first device information and the second device information from preset parameter configuration information, as the target denoising parameter.
The target denoising parameter may include at least one of a target echo cancellation parameter and a target denoising parameter, and the denoising parameter includes at least one of an echo cancellation parameter and a denoising parameter. In some application scenarios, when the echo cancellation function and the noise reduction function of the audio player are both turned on, the target noise reduction parameter may include a target echo cancellation parameter and a target noise reduction parameter. In some application scenarios, if the echo cancellation function of the audio player is turned on and the noise reduction function is not turned on, the target denoising parameter may include a target echo cancellation parameter. In some application scenarios, if the echo cancellation function of the audio player is not turned on and the noise reduction function is turned on, the target noise reduction parameter may include a target noise reduction parameter.
Please refer to the above-mentioned embodiments of the audio data processing method corresponding to fig. 1 and fig. 2 for a specific manner of determining the target denoising parameter according to the preset parameter configuration information, which is not described herein again.
Step S43: and denoising the audio data received from the communication terminal by using the target denoising parameter, and playing the denoised audio data.
Before executing step S43, the audio player configures the denoising parameters of the audio player based on the target denoising parameters, and after the configuration is completed, step S43 is executed. In other disclosed embodiments, after configuration is complete, the following steps may also be performed: a signal indicating completion of configuration of the audio player is transmitted to the communication terminal so that the communication terminal transmits the audio data to the audio player after receiving the information.
According to the scheme, the target denoising parameters are determined according to the equipment information of the communication terminal and the audio player, and then the denoising processing of the audio data to be processed is realized by using the target denoising parameters.
The main execution body of the audio data processing method may be an audio data processing apparatus, for example, the audio data processing method may be executed by an audio player, where the audio player may be a bluetooth headset, a bluetooth sound, a radio station, a User Equipment (UE), a mobile device, a User terminal, a cellular phone, a cordless phone, a personal digital processing (Personal Digital Assistant, PDA), a handheld device, a computing device, a vehicle-mounted device, a wearable device, or the like. In some possible implementations, the audio data processing method may be implemented by way of a processor invoking computer readable instructions stored in a memory.
Referring to fig. 4, fig. 4 is a schematic structural diagram of an audio data processing device according to an embodiment of the application. The audio data processing device 50 comprises a first information acquisition module 51, a first parameter determination module 52 and a first data processing module 53. A first information acquisition module 51 for acquiring first device information of a communication terminal and second device information of an audio player that establishes a communication connection with the communication terminal; a first parameter determining module 52, configured to determine a target denoising parameter based on the first device information and the second device information; the first data processing module 53 is configured to implement denoising processing of audio data to be processed by using the target denoising parameter, so as to obtain target audio data, where the audio data to be processed is audio data received by the communication terminal, and the target audio data is provided for an audio player to play.
According to the scheme, the target denoising parameters are determined according to the equipment information of the communication terminal and the audio player, and then the denoising processing of the audio data to be processed is realized by using the target denoising parameters.
The functions of each module may be described with reference to the foregoing embodiments of the audio data processing method according to the first aspect, which is not described herein again.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a communication terminal according to an embodiment of the application. The communication terminal 70 comprises a memory 71 and a processor 72, the processor 72 being arranged to execute program instructions stored in the memory 71 for carrying out the steps of any of the above-described embodiments of the audio data processing method. In one particular implementation scenario, the communication terminal 70 may include, but is not limited to: mobile devices such as interphones, mobile phones, telephone watches, notebook computers, tablet computers, and the like are not limited herein.
The communication terminal 70 comprises a first bluetooth unit (not shown) connected to a processor 72, the processor 72 being arranged to control the first bluetooth unit to establish a bluetooth connection with the audio player. The processor 72 may also control the first bluetooth unit to perform denoising processing on the audio data to be processed.
In particular, the processor 72 is adapted to control itself and the memory 71 to implement the steps of any of the audio data processing method embodiments described above. The processor 72 may also be referred to as a CPU (Central Processing Unit ). The processor 72 may be an integrated circuit chip having signal processing capabilities. The processor 72 may also be a general purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a Field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. In addition, the processor 72 may be commonly implemented by an integrated circuit chip.
According to the scheme, the target denoising parameters are determined according to the equipment information of the communication terminal and the audio player, and then the denoising processing of the audio data to be processed is realized by using the target denoising parameters.
Referring to fig. 6, fig. 6 is a schematic structural diagram of an audio player according to an embodiment of the application. The audio player 80 comprises a memory 81 and a processor 82, the processor 82 being arranged to execute program instructions stored in the memory 81 for implementing the steps of any of the audio data processing method embodiments described above. In one particular implementation scenario, audio player 80 may include, but is not limited to: the mobile devices such as bluetooth headset, bluetooth speaker, notebook computer, tablet computer, etc. are not limited herein.
The audio player 80 comprises a second bluetooth unit (not shown) connected to the processor 82, the processor 82 being adapted to control the second bluetooth unit to establish a bluetooth connection with the communication terminal. The processor 82 may also control the second bluetooth unit to perform denoising processing or the like on audio data received from the communication terminal.
The audio player 80 may further include an audio collection unit (not shown) and an audio playing unit (not shown). The audio collection unit is connected to the processor 82, and the audio collection unit may be a microphone, and the processor 82 may control the audio collection unit to collect audio data. The audio playing unit is connected to the processor 82, and the processor 82 controls the audio playing unit to play the audio data. The audio playback unit may be a loudspeaker.
In particular, the processor 82 is adapted to control itself and the memory 81 to implement the steps of any of the audio data processing method embodiments described above. The processor 82 may also be referred to as a CPU (Central Processing Unit ). The processor 82 may be an integrated circuit chip having signal processing capabilities. The processor 82 may also be a general purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a Field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. In addition, the processor 82 may be commonly implemented by an integrated circuit chip.
According to the scheme, the target denoising parameters are determined according to the equipment information of the communication terminal and the audio player, and then the denoising processing of the audio data to be processed is realized by using the target denoising parameters.
Referring to fig. 7, fig. 7 is a schematic structural diagram of an embodiment of a computer readable storage medium according to the present application. The computer readable storage medium 90 stores program instructions 91 executable by the processor for implementing the steps in any of the audio data processing method embodiments described above.
According to the scheme, the target denoising parameters are determined according to the equipment information of the communication terminal and the audio player, and then the denoising processing of the audio data to be processed is realized by using the target denoising parameters.
In some embodiments, functions or modules included in an apparatus provided by the embodiments of the present disclosure may be used to perform a method described in the foregoing method embodiments, and specific implementations thereof may refer to descriptions of the foregoing method embodiments, which are not repeated herein for brevity.
The foregoing description of various embodiments is intended to highlight differences between the various embodiments, which may be the same or similar to each other by reference, and is not repeated herein for the sake of brevity.
In the several embodiments provided in the present application, it should be understood that the disclosed method and apparatus may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of modules or units is merely a logical functional division, and there may be additional divisions of actual implementation, e.g., units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical, or other forms.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units. The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to execute all or part of the steps of the methods of the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.

Claims (10)

1. A method of processing audio data, comprising:
acquiring first equipment information of a communication terminal and second equipment information of an audio player which establishes communication connection with the communication terminal;
determining a target denoising parameter based on the first device information and the second device information;
and denoising the audio data to be processed by using the target denoising parameters to obtain target audio data, wherein the audio data to be processed is the audio data received by the communication terminal, and the target audio data is provided for the audio player to play.
2. The method according to claim 1, wherein said using the target denoising parameter to implement denoising processing of the audio data to be processed to obtain target audio data comprises:
responding to the target denoising parameter as the denoising parameter of the communication terminal, denoising the audio data to be processed based on the target denoising parameter to obtain target audio data, and sending the target audio data to the audio player for playing;
and responding to the target denoising parameter as the denoising parameter of the audio player, and sending the audio data to be processed and the target denoising parameter to the audio player so that the audio player performs denoising processing on the audio data to be processed based on the target denoising parameter and plays the target audio data subjected to denoising processing.
3. The method according to claim 1 or 2, wherein the communication terminal determining a target denoising parameter based on the first device information and the second device information, comprises:
determining denoising parameters corresponding to the first equipment information and the second equipment information from preset parameter configuration information, and taking the denoising parameters as the target denoising parameters;
the preset parameter configuration information comprises a plurality of denoising parameters, each denoising parameter corresponds to a group of associated equipment information, and each group of associated equipment information comprises first equipment information of a communication terminal and second equipment information of an audio player.
4. The method according to claim 1 or 2, wherein the communication terminal determining a target denoising parameter based on the first device information and the second device information, comprises:
judging whether the audio player has started a denoising function or not;
determining a target denoising parameter for the audio player based on the first device information and the second device information in response to the audio player having turned on the denoising function;
and determining target denoising parameters for the communication terminal based on the first equipment information and the second equipment information in response to the audio player not starting the denoising function.
5. The method of claim 4, wherein prior to said determining whether the audio player has turned on a denoising function, the method further comprises:
judging whether the audio player supports a denoising function or not;
in response to the audio player supporting the denoising function, executing the step of judging whether the audio player has started the denoising function;
and in response to the audio player not supporting the denoising function, not executing the step of judging whether the audio player has started the denoising function, and executing the step of determining target denoising parameters for the communication terminal based on the first equipment information and the second equipment information.
6. The method of claim 5, wherein the method further comprises:
responsive to the audio player not supporting the denoising function or the audio player not opening the denoising function, enabling the communication terminal to open or keep opening the denoising function;
or, in response to the audio player having turned on the denoising function, causing the communication terminal to turn off or remain off the denoising function.
7. The method of claim 1, wherein the denoising process comprises at least one of an echo cancellation process for reducing echo in the audio data and a noise reduction process for reducing noise in the audio data.
8. A communication terminal comprising a memory and a processor for executing program instructions stored in the memory to implement the method of any one of claims 1 to 7.
9. An audio player comprising a memory and a processor for executing program instructions stored in the memory to implement the method of any one of claims 1 to 7.
10. A computer readable storage medium having stored thereon program instructions, which when executed by a processor, implement the method of any of claims 1 to 7.
CN202210489643.1A 2022-05-06 2022-05-06 Audio data processing method, communication terminal, audio player and storage medium Pending CN117059116A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210489643.1A CN117059116A (en) 2022-05-06 2022-05-06 Audio data processing method, communication terminal, audio player and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210489643.1A CN117059116A (en) 2022-05-06 2022-05-06 Audio data processing method, communication terminal, audio player and storage medium

Publications (1)

Publication Number Publication Date
CN117059116A true CN117059116A (en) 2023-11-14

Family

ID=88655959

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210489643.1A Pending CN117059116A (en) 2022-05-06 2022-05-06 Audio data processing method, communication terminal, audio player and storage medium

Country Status (1)

Country Link
CN (1) CN117059116A (en)

Similar Documents

Publication Publication Date Title
EP3606015B1 (en) Method for call processing and electronic device
WO2015102040A1 (en) Speech processing apparatus, speech processing system, speech processing method, and program product for speech processing
US20110096939A1 (en) Reproducing device, headphone and reproducing method
CN105262452A (en) Method and apparatus for adjusting volume, and terminal
CN108966067B (en) Play control method and related product
CN109151212B (en) Equipment control method and device and electronic equipment
CN105282646A (en) System and related device for augmenting multimedia playback on mobile device
CN108924361B (en) Audio playing and acquisition control method, system and computer readable storage medium
WO2020078330A1 (en) Voice call-based translation method and electronic device
CN106921803A (en) The player method and control device of multi-medium data
EP4096202A1 (en) Wireless sound amplification system and terminal
CN110830970A (en) Audio transmission method, device, equipment and storage medium between Bluetooth equipment
CN111556439A (en) Terminal connection control method, terminal and computer storage medium
CN113301544B (en) Method and equipment for voice intercommunication between audio equipment
CN110602683A (en) Bluetooth control method, device, mobile terminal and storage medium
CN108154886A (en) Noise suppressing method and device, electronic device and computer readable storage medium
CN109194998A (en) Data transmission method, device, electronic equipment and computer-readable medium
CN110248347B (en) Call abnormity detection method, device, equipment and storage medium
CN117059116A (en) Audio data processing method, communication terminal, audio player and storage medium
CN107124512B (en) The switching method and apparatus of audio-frequency play mode
CN111556406B (en) Audio processing method, audio processing device and earphone
US11388281B2 (en) Adaptive method and apparatus for intelligent terminal, and terminal
CN114979359B (en) Microphone switching method, mobile terminal and storage medium
CN108605067B (en) Method for playing audio and mobile terminal
CN113709906B (en) Wireless audio system, wireless communication method and equipment

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