Audio recording method, device, storage medium and computer equipment

By using a common amplifier and analog-to-digital converter in the audio recording device, adjusting the gain parameters to generate a variety of audio signals, the problem of high cost of audio recording devices in the prior art is solved, and the effect of reducing costs and improving dynamic range is achieved.

CN113709626BActive Publication Date: 2025-01-07GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110894081.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-04
Publication Date
2025-01-07
Estimated Expiration
2041-08-04

AI Technical Summary

Technical Problem

The existing audio recording devices have higher costs because each microphone needs to be equipped with two amplifiers and two analog-to-digital converters.

Method used

By obtaining the original audio signal collected by the microphone and using an amplifier and an analog-to-digital converter for dual dynamic audio recording, two audio signals are generated by adjusting the gain parameters, so that the target audio signal is determined and saved in these two signals, and the target audio signal is achieved Each microphone records an audio signal with the appropriate gain.

Benefits of technology

The number of amplifiers and analog-to-digital converters is reduced, the cost of audio recording devices is reduced, and the dynamic range of audio signals is increased.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113709626B_ABST
    Figure CN113709626B_ABST
Patent Text Reader

Abstract

The present application discloses an audio recording method, device, storage medium and computer equipment, the method is applied to a terminal device, the terminal device includes at least one microphone, at least one amplifier and at least one analog-to-digital converter, each microphone corresponds to an amplifier, and each amplifier corresponds to an analog-to-digital converter; the method includes: obtaining an original audio signal collected by the microphone; obtaining a first audio signal and a second audio signal output by the analog-to-digital converter corresponding to the microphone, wherein the analog-to-digital converter outputs a first audio signal corresponding to the original audio signal based on a first gain parameter, the first gain parameter of the amplifier is amplified to a second gain parameter, and the analog-to-digital converter outputs a second audio signal corresponding to the original audio signal based on the second gain parameter; determining a target audio signal in the first audio signal and the second audio signal, and saving the target audio signal. The present application reduces the cost of the audio recording device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of audio, and in particular to an audio recording method, apparatus, storage medium and computer equipment. Background Art

[0002] The audio recording process is to collect analog audio signals through a microphone, then use an amplifier to amplify the analog audio signals, use an analog-to-digital converter to convert the analog audio signals after gain into digital audio signals, and finally store the obtained digital audio signals. In order to simultaneously record sound signals of different volume ranges, each microphone of an existing audio recording device is equipped with two amplifiers with different gain parameters, and each amplifier corresponds to an analog-to-digital converter, which results in a high cost of the audio recording device. Summary of the invention

[0003] The present application provides an audio recording method, device, storage medium and computer equipment, which can solve the technical problem of how to reduce the cost of the audio recording device.

[0004] In a first aspect, an embodiment of the present application provides an audio recording method, wherein a terminal device includes at least one microphone, at least one amplifier, and at least one analog-to-digital converter, each microphone corresponds to an amplifier, and each amplifier corresponds to an analog-to-digital converter, including:

[0005] Get the original audio signal collected by the microphone;

[0006] Acquire a first audio signal and a second audio signal output by an analog-to-digital converter corresponding to the microphone, wherein the analog-to-digital converter outputs the first audio signal corresponding to the original audio signal based on a first gain parameter, the first gain parameter of the amplifier is amplified to a second gain parameter, and the analog-to-digital converter outputs the second audio signal corresponding to the original audio signal based on the second gain parameter;

[0007] A target audio signal is determined from the first audio signal and the second audio signal, and the target audio signal is saved.

[0008] In a second aspect, an embodiment of the present application provides an audio recording device, the audio recording device comprising at least one microphone, at least one amplifier and at least one analog-to-digital converter, each microphone corresponding to an amplifier and an analog-to-digital converter, the device comprising:

[0009] An acquisition module is used to acquire the original audio signal collected by the microphone;

[0010] A conversion module, used to obtain a first audio signal and a second audio signal output by an analog-to-digital converter corresponding to the microphone, wherein the analog-to-digital converter outputs the first audio signal corresponding to the original audio signal based on a first gain parameter, the first gain parameter of the amplifier is amplified to a second gain parameter, and the analog-to-digital converter outputs the second audio signal corresponding to the original audio signal based on the second gain parameter;

[0011] The recording module is used to determine a target audio signal from the first audio signal and the second audio signal, and save the target audio signal.

[0012] In a third aspect, an embodiment of the present application provides a storage medium, wherein the storage medium stores a computer program, and the computer program is suitable for being loaded by a processor and executing the steps of the above method.

[0013] In a fourth aspect, an embodiment of the present application provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the steps of the above method are implemented when the processor executes the program.

[0014] In an embodiment of the present application, the original audio signal collected by the microphone is obtained, and then the first audio signal and the second audio signal output by the analog-to-digital converter corresponding to the microphone are obtained, wherein the analog-to-digital converter outputs the first audio signal corresponding to the original audio signal based on the first gain parameter, the first gain parameter of the amplifier is amplified to the second gain parameter, and the analog-to-digital converter outputs the second audio signal corresponding to the original audio signal based on the second gain parameter, and finally the target audio signal is determined in the first audio signal and the second audio signal, and the target audio signal is saved. Only by sharing the amplifier and the analog-to-digital converter, the dual dynamic audio recording process (i.e., the process of using dual amplifiers and dual analog-to-digital converters for audio recording) can be realized, which can ensure that each microphone can record an audio signal with appropriate gain, reduce the number of amplifiers and analog-to-digital converters, and thus reduce the cost of the audio recording device; at the same time, since one audio recording channel can record audio signals with different gains, the dynamic range of the recorded audio signal is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.

[0016] Figure 1 A flowchart of an audio recording method provided in an embodiment of the present application;

[0017] Figure 2 An example schematic diagram of the connection relationship of the main components of an audio recording device is provided for the embodiment of the present application;

[0018] Figure 3 A flowchart of an audio recording method provided in an embodiment of the present application;

[0019] Figure 4 A flowchart of an audio recording method provided in an embodiment of the present application;

[0020] Figure 5 A flowchart of an audio recording method provided in an embodiment of the present application;

[0021] Figure 6 A schematic diagram of the structure of an audio recording device provided in an embodiment of the present application;

[0022] Figure 7 It is a structural diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0023] In order to make the features and advantages of the present application more obvious and easy to understand, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings 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 those skilled in the art without creative work are within the scope of protection of the present application.

[0024] When the following description refers to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are only examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims. The flowcharts shown in the accompanying drawings are only exemplary and do not have to be executed according to the steps shown. For example, some steps are parallel and there is no strict logical order, so the actual execution order is variable. In addition, the terms "first", "second", "third", "fourth", "fifth", "sixth", "seventh", and "eighth" are only for the purpose of distinction and should not be used as limitations of the present disclosure.

[0025] The audio recording method and audio recording device disclosed in the embodiments of the present application can be applied to the audio field. The audio recording device can include but is not limited to terminal devices such as a voice recorder, a smart interactive tablet, a mobile phone, a personal computer, and a laptop computer.

[0026] In an embodiment of the present application, the original audio signal collected by the microphone is obtained, and then the first audio signal and the second audio signal output by the analog-to-digital converter corresponding to the microphone are obtained, wherein the analog-to-digital converter outputs the first audio signal corresponding to the original audio signal based on the first gain parameter, the first gain parameter of the amplifier is amplified to the second gain parameter, and the analog-to-digital converter outputs the second audio signal corresponding to the original audio signal based on the second gain parameter, and finally the target audio signal is determined in the first audio signal and the second audio signal, and the target audio signal is saved. Only by sharing the amplifier and the analog-to-digital converter, the dual dynamic audio recording process (i.e., the process of using dual amplifiers and dual analog-to-digital converters for audio recording) can be realized, which can ensure that each microphone can record an audio signal with appropriate gain, reduce the number of amplifiers and analog-to-digital converters, and thus reduce the cost of the audio recording device; at the same time, since one audio recording channel can record audio signals with different gains, the dynamic range of the recorded audio signal is improved.

[0027] The following will be combined Figure 1 to Figure 5 , the audio recording method provided in the embodiment of the present application is introduced in detail.

[0028] See also Figure 1 , is a flowchart of an audio recording method provided in an embodiment of the present application. Figure 1 As shown, the method may include the following steps S101 to S103.

[0029] S101, obtaining an original audio signal collected by a microphone;

[0030] Specifically, this embodiment is applied to an audio recording device, which includes at least one microphone, at least one amplifier and at least one analog-to-digital converter, each microphone corresponds to an amplifier, and each amplifier corresponds to an analog-to-digital converter. Among them, the microphone (Microphone, MIC) is used to collect sound signals in the environment where the audio recording device is located, and convert the sound signals into analog signals; the amplifier (Pmgrammable Gain Amplifier, PGA) can be a programmable gain amplifier, which is used to amplify the received audio signal according to the gain parameters set inside the amplifier to obtain an amplified gain signal. It should be noted that in the embodiment of the present application, the amplifier amplifies the amplitude value in the audio signal; the analog to digital converter (analog to digital converter, ADC) is used to convert the analog signal into a digital signal, that is, to convert the analog audio signal into a digital audio signal.

[0031] like Figure 2 As shown, Figure 2The connection relationship between the microphone, amplifier and analog-to-digital converter in the audio recording device is shown, where one microphone is connected to one amplifier, and one amplifier is connected to one analog-to-digital converter. By way of example, if the audio recording device is provided with three microphones, the audio recording device is provided with amplifiers respectively connected to the three microphones, and is provided with analog-to-digital converters respectively connected to the three amplifiers.

[0032] The audio recording device continuously collects the original audio signal in the environment where the audio recording device is located through the microphone, and the original audio signal is an analog signal. The processor of the audio recording device periodically obtains the original audio signal collected by the microphone, and then processes the obtained original audio signal. Specifically, the processor periodically obtains the original audio signal collected by the microphone within a preset time interval (i.e., the time interval between the current time and the time when the original audio signal was last obtained).

[0033] S102, obtaining a first audio signal and a second audio signal output by an analog-to-digital converter corresponding to the microphone, wherein the analog-to-digital converter outputs a first audio signal corresponding to the original audio signal based on a first gain parameter, the first gain parameter of the amplifier is amplified to a second gain parameter, and the analog-to-digital converter outputs a second audio signal corresponding to the original audio signal based on the second gain parameter;

[0034] Specifically, the processor of the audio recording device sends the acquired original audio signal to the amplifier, so that the amplifier amplifies the original audio signal based on a first gain parameter, and the analog-to-digital converter performs analog-to-digital conversion based on the original audio signal after gain obtained by the current gain process of the amplifier to obtain a first audio signal, and outputs the first audio signal; the processor acquires the first audio signal output by the analog-to-digital converter, and amplifies the analog gain parameter of the amplifier to a second gain parameter, and then sends the original audio signal to the amplifier again, so that the amplifier amplifies the original audio signal based on the second gain parameter, and the analog-to-digital converter performs analog-to-digital conversion based on the original audio signal after gain obtained by the current gain process of the amplifier to obtain a second audio signal, and outputs the second audio signal; the processor acquires the second audio signal output by the analog-to-digital converter.

[0035] S103: determine a target audio signal from the first audio signal and the second audio signal, and save the target audio signal.

[0036] Specifically, the processor of the audio recording device obtains a first amplitude value of the first audio signal and a second amplitude value of the second audio signal, selects a target audio signal from the first audio signal and the second audio signal based on the first amplitude value and the second amplitude value, and then stores the selected target audio signal in a memory.

[0037] In an embodiment of the present application, the original audio signal collected by the microphone is obtained, and then the first audio signal and the second audio signal output by the analog-to-digital converter corresponding to the microphone are obtained, wherein the analog-to-digital converter outputs the first audio signal corresponding to the original audio signal based on the first gain parameter, the first gain parameter of the amplifier is amplified to the second gain parameter, and the analog-to-digital converter outputs the second audio signal corresponding to the original audio signal based on the second gain parameter, and finally the target audio signal is determined in the first audio signal and the second audio signal, and the target audio signal is saved. Only by sharing the amplifier and the analog-to-digital converter, the dual dynamic audio recording process (i.e., the process of using dual amplifiers and dual analog-to-digital converters for audio recording) can be realized, which can ensure that each microphone can record an audio signal with appropriate gain, reduce the number of amplifiers and analog-to-digital converters, and thus reduce the cost of the audio recording device; at the same time, since one audio recording channel can record audio signals with different gains, the dynamic range of the recorded audio signal is improved.

[0038] See also Figure 3 , is a flowchart of an audio recording method provided in an embodiment of the present application. Figure 3 As shown, the method may include the following steps S201 to S208.

[0039] S201, obtaining an original audio signal collected by a microphone;

[0040] Please refer to step S101 for details, which will not be described again here.

[0041] S202, setting an analog gain parameter of the amplifier to a first gain parameter;

[0042] Specifically, the processor sets the analog gain parameter of the amplifier to the first gain parameter, and then sends the acquired original audio signal to the amplifier.

[0043] S203, obtaining a first audio signal corresponding to the original audio signal output by the analog-to-digital converter based on the first gain parameter, wherein the amplifier performs gain on the original audio signal based on the first gain parameter, and the analog-to-digital converter performs analog-to-digital conversion on the gained original audio signal to output the first audio signal;

[0044] Specifically, the amplifier amplifies the original audio signal based on the first gain parameter, and the analog-to-digital converter performs analog-to-digital conversion on the original audio signal after gain obtained by the current gain process of the amplifier to obtain the first audio signal, and outputs the first audio signal.

[0045] The processor obtains a first audio signal output by the analog-to-digital converter.

[0046] S204, setting the analog gain parameter of the amplifier to a second gain parameter;

[0047] Specifically, the processor sets the analog gain parameter of the amplifier to the second gain parameter, and then sends the acquired original audio signal to the amplifier. It should be noted that the first gain parameter is smaller than the second gain parameter.

[0048] S205, obtaining a second audio signal corresponding to the original audio signal output by the analog-to-digital converter based on the second gain parameter, wherein the amplifier gains the original audio signal based on the second gain parameter, and the analog-to-digital converter performs analog-to-digital conversion on the gained original audio signal to output the second audio signal.

[0049] Specifically, the amplifier amplifies the original audio signal based on the second gain parameter, and the analog-to-digital converter performs analog-to-digital conversion on the original audio signal after gain obtained by the current gain process of the amplifier to obtain the second audio signal, and outputs the second audio signal.

[0050] The processor obtains the second audio signal output by the analog-to-digital converter.

[0051] It should be noted that, since the audio recording process is a continuous, real-time recording process, it is required to quickly process the original audio signal, so the switching process of the gain parameter of the amplifier is also fast.

[0052] In an embodiment of the present application, dual dynamic recording of sound signals is achieved by switching the gain parameters of the amplifier at high speed, and the acoustic overload point of the audio recording device is improved; by switching the gain parameters of the amplifier at high speed, one amplifier is used to perform two different gains on the same original audio signal, thereby reducing the number of amplifiers required by the audio recording device, and at the same time reducing the number of analog-to-digital converters required by the audio recording device, thereby reducing the cost of the audio recording device.

[0053] S206, obtaining a first amplitude value of the first audio signal, and obtaining a second amplitude value of the second audio signal;

[0054] Specifically, the processor obtains a first amplitude value of the first audio signal, and obtains a second amplitude value of the second audio signal. It is understandable that the amplitude value may be an average amplitude value, a maximum amplitude value, etc. of the entire audio signal. The relevant parameters representing the amplitude information of the audio signal are not limited here, and may be specifically calculated according to the optimization type. For example, in order to avoid the situation where the volume is suddenly too high and causes damage to the user's eardrum, the maximum amplitude value of the entire audio signal may be obtained; in order to ensure that the entire audio signal can be heard by the user, the average amplitude value of the entire audio signal may be obtained.

[0055] S207, determining a target audio signal in the first audio signal and the second audio signal based on the first amplitude value, the second amplitude value, and the amplitude threshold;

[0056] Specifically, the processor compares the first amplitude value with the amplitude threshold, and compares the second amplitude value with the amplitude threshold, wherein the amplitude threshold can be set by the user or a threshold preset by the audio recording device, which is not limited here. Exemplarily, the amplitude threshold can be the maximum amplitude value that the human ear can withstand. The processor determines the target audio signal in the first audio signal and the second audio signal based on the comparison result of the first amplitude value with the amplitude threshold and the comparison result of the second amplitude value with the amplitude threshold.

[0057] Exemplarily, if the first amplitude value is greater than or equal to the amplitude threshold, and the second amplitude value is greater than or equal to the amplitude threshold, the first audio signal is used as the target audio signal; specifically, since the first gain parameter is smaller than the second gain parameter, the first amplitude value of the first audio signal must be smaller than the second amplitude value of the second audio signal. When the amplitude values ​​of both audio signals are too large, that is, greater than the amplitude threshold, the audio signal with the smaller amplitude value is selected as the target audio signal.

[0058] If the first amplitude value is less than the amplitude threshold, and the second amplitude value is less than the amplitude threshold, the second audio signal is used as the target audio signal; specifically, since the first gain parameter is less than the second gain parameter, the first amplitude value of the first audio signal must be less than the second amplitude value of the second audio signal. When the amplitude values ​​of the two audio signals are not greater than the amplitude threshold, the audio signal with the larger amplitude value is selected as the target audio signal.

[0059] If the first amplitude value is less than the amplitude threshold, and the second amplitude value is greater than or equal to the amplitude threshold, the first audio signal is used as the target audio signal.

[0060] In the embodiment of the present application, according to the comparison result between the first amplitude value and the amplitude threshold value, and the comparison result between the second amplitude value and the amplitude threshold value, an audio signal with a more appropriate amplitude value is selected to improve the audio recording effect.

[0061] S208: Save the target audio signal.

[0062] Specifically, the determined target audio signal is stored in a memory.

[0063] Exemplarily, since the audio recording process is continuous, when saving the target audio signal, the recorded target audio signal stored in the memory can be first obtained, and then the previously recorded target audio signal and the currently processed target audio signal are merged in the order of recording time to obtain a new target audio signal, and the new target audio signal is saved in the memory as the recorded target audio signal. It should be noted that when saving the new target audio signal, the audio signal originally stored in the memory will be deleted first, that is, the new target audio signal directly replaces the recorded target audio signal.

[0064] In the embodiment of the present application, the amplitude values ​​of the first audio signal and the second audio signal are obtained and then compared with the amplitude threshold, so as to select the audio signal with the highest gain effect from the first audio signal and the second audio signal as the target audio signal.

[0065] Optional, please refer to Figure 4 , provides a schematic diagram of a process of obtaining a first audio signal and a second audio signal in an embodiment of the present application. Figure 4 As shown, the method may include the following steps S301 to S304.

[0066] S301, setting an analog gain parameter of the amplifier to a first gain parameter;

[0067] Specifically, the processor sets the analog gain parameter of the amplifier to the first gain parameter, and then sends the acquired original audio signal to the amplifier.

[0068] S302, obtaining a first audio signal corresponding to the original audio signal output by the analog-to-digital converter based on the first gain signal, wherein the amplifier performs gain on the original audio signal based on the first gain parameter to obtain the first gain signal, and the analog-to-digital converter performs analog-to-digital conversion on the first gain signal output by the amplifier to obtain the first audio signal;

[0069] Specifically, the amplifier amplifies the original audio signal based on the first gain parameter to obtain a first gain signal, and outputs the first gain signal to the analog-to-digital converter; the analog-to-digital converter performs analog-to-digital conversion based on the received first gain signal to obtain a first audio signal, and outputs the first audio signal.

[0070] The processor obtains a first audio signal output by the analog-to-digital converter.

[0071] S303, setting the analog gain parameter of the amplifier to a second gain parameter;

[0072] Specifically, the processor sets the analog gain parameter of the amplifier to the second gain parameter, and then sends the acquired original audio signal to the amplifier. It should be noted that the first gain parameter is smaller than the second gain parameter.

[0073] S304, obtaining a second audio signal corresponding to the original audio signal output by the analog-to-digital converter based on the second gain signal, wherein the amplifier gains the original audio signal based on the second gain parameter to obtain the second gain signal, and the analog-to-digital converter performs analog-to-digital conversion on the second gain signal output by the amplifier to obtain the second audio signal.

[0074] Specifically, the amplifier amplifies the original audio signal based on the second gain parameter to obtain a second gain signal, and outputs the second gain signal to the analog-to-digital converter; the analog-to-digital converter performs analog-to-digital conversion based on the received second gain signal to obtain a second audio signal, and outputs the second audio signal.

[0075] The processor obtains the second audio signal output by the analog-to-digital converter.

[0076] In an embodiment of the present application, the amplifier is directly connected to its corresponding analog-to-digital converter. After the amplifier completes gain control of the original audio signal, the analog-to-digital converter directly converts the signal into analog-to-digital data, thereby avoiding the process of data transmission through the processor and improving the processing speed of the audio signal.

[0077] Optional, please refer to Figure 5 , provides a schematic diagram of a process of obtaining a first audio signal and a second audio signal in an embodiment of the present application. Figure 5 As shown, the method may include the following steps S401 to S408.

[0078] S401, setting an analog gain parameter of the amplifier to a first gain parameter;

[0079] Specifically, the processor sets the analog gain parameter of the amplifier to the first gain parameter, and then sends the acquired original audio signal to the amplifier.

[0080] S402, obtaining a first gain signal output by the amplifier based on a first gain parameter, wherein the amplifier performs gain on the original audio signal based on the first gain parameter to obtain the first gain signal;

[0081] Specifically, the amplifier amplifies the original audio signal based on the first gain parameter to obtain a first gain signal, and outputs the first gain signal.

[0082] The processor obtains a first gain signal output by the amplifier.

[0083] S403, sending the first gain signal to an analog-to-digital converter;

[0084] Specifically, the processor sends the acquired first gain signal to the analog-to-digital converter.

[0085] S404, obtaining a first audio signal output by the analog-to-digital converter based on the first gain signal, wherein the analog-to-digital converter performs analog-to-digital conversion on the first gain signal to obtain the first audio signal;

[0086] Specifically, the analog-to-digital converter performs analog-to-digital conversion based on the received first gain signal to obtain the first audio signal, and outputs the first audio signal.

[0087] The processor obtains a first audio signal output by the analog-to-digital converter.

[0088] S405, setting the analog gain parameter of the amplifier to a second gain parameter;

[0089] Specifically, the processor sets the analog gain parameter of the amplifier to the second gain parameter.

[0090] S406, obtaining a second gain signal output by the amplifier based on the second gain parameter, wherein the amplifier performs gain on the original audio signal based on the second gain parameter to obtain the second gain signal;

[0091] Specifically, the amplifier amplifies the original audio signal based on the second gain parameter to obtain a second gain signal, and outputs the second gain signal.

[0092] The processor obtains a second gain signal output by the amplifier.

[0093] S407, sending the second gain signal to the analog-to-digital converter;

[0094] Specifically, the processor sends the acquired second gain signal to the analog-to-digital converter.

[0095] S408: Acquire a second audio signal output by the analog-to-digital converter based on the second gain signal, wherein the analog-to-digital converter performs analog-to-digital conversion on the second gain signal to obtain a second audio signal.

[0096] Specifically, the analog-to-digital converter performs analog-to-digital conversion based on the received second gain signal to obtain the second audio signal, and outputs the second audio signal.

[0097] The processor obtains the second audio signal output by the analog-to-digital converter.

[0098] In the embodiment of the present application, data transmission is performed through a processor, thereby avoiding the situation where the connection method between the microphone, the amplifier, and the analog-to-digital converter is completely limited by the physical connection method.

[0099] The following will be combined with the attached Figure 6 The audio recording device provided in the embodiment of the present application is described in detail. Figure 6 Audio recording device, used to execute this application Figure 1 to Figure 5For the convenience of explanation, only the part related to the embodiment of the present application is shown. For the specific technical details not disclosed, please refer to the present application. Figure 1 to Figure 5 The embodiment shown.

[0100] See also Figure 6 , is a schematic diagram of the structure of an audio recording device provided in an embodiment of the present application. Figure 6 As shown, the audio recording device 1 of the embodiment of the present application may include: an acquisition module 101 , a conversion module 102 , and a recording module 103 .

[0101] An acquisition module is used to acquire the original audio signal collected by the microphone;

[0102] A conversion module, used to obtain a first audio signal and a second audio signal output by an analog-to-digital converter corresponding to the microphone, wherein the analog-to-digital converter outputs the first audio signal corresponding to the original audio signal based on a first gain parameter, the first gain parameter of the amplifier is amplified to a second gain parameter, and the analog-to-digital converter outputs the second audio signal corresponding to the original audio signal based on the second gain parameter;

[0103] The recording module is used to determine a target audio signal from the first audio signal and the second audio signal, and save the target audio signal.

[0104] In an embodiment of the present application, the original audio signal collected by the microphone is obtained, and then the first audio signal and the second audio signal output by the analog-to-digital converter corresponding to the microphone are obtained, wherein the analog-to-digital converter outputs the first audio signal corresponding to the original audio signal based on the first gain parameter, the first gain parameter of the amplifier is amplified to the second gain parameter, and the analog-to-digital converter outputs the second audio signal corresponding to the original audio signal based on the second gain parameter, and finally the target audio signal is determined in the first audio signal and the second audio signal, and the target audio signal is saved. Only by sharing the amplifier and the analog-to-digital converter, the dual dynamic audio recording process (i.e., the process of using dual amplifiers and dual analog-to-digital converters for audio recording) can be realized, which can ensure that each microphone can record an audio signal with appropriate gain, reduce the number of amplifiers and analog-to-digital converters, and thus reduce the cost of the audio recording device; at the same time, since one audio recording channel can record audio signals with different gains, the dynamic range of the recorded audio signal is improved.

[0105] Optionally, the conversion module 102 is specifically configured to:

[0106] Setting an analog gain parameter of the amplifier to a first gain parameter;

[0107] Acquire a first audio signal corresponding to the original audio signal output by the analog-to-digital converter based on the first gain parameter, wherein the amplifier performs gain on the original audio signal based on the first gain parameter, and the analog-to-digital converter performs analog-to-digital conversion on the gained original audio signal to output the first audio signal;

[0108] setting an analog gain parameter of the amplifier to a second gain parameter;

[0109] A second audio signal corresponding to the original audio signal output by the analog-to-digital converter based on the second gain parameter is obtained, wherein the amplifier gains the original audio signal based on the second gain parameter, and the analog-to-digital converter performs analog-to-digital conversion on the gained original audio signal to output the second audio signal.

[0110] Optionally, the conversion module 102 is specifically configured to:

[0111] Setting an analog gain parameter of the amplifier to a first gain parameter;

[0112] Acquire a first audio signal corresponding to the original audio signal output by the analog-to-digital converter based on the first gain signal, wherein the amplifier performs gain on the original audio signal based on the first gain parameter to obtain the first gain signal, and the analog-to-digital converter performs analog-to-digital conversion on the first gain signal output by the amplifier to obtain the first audio signal;

[0113] setting an analog gain parameter of the amplifier to a second gain parameter;

[0114] A second audio signal corresponding to the original audio signal output by the analog-to-digital converter based on the second gain signal is obtained, wherein the amplifier gains the original audio signal based on the second gain parameter to obtain the second gain signal, and the analog-to-digital converter performs analog-to-digital conversion on the second gain signal output by the amplifier to obtain the second audio signal.

[0115] Optionally, the conversion module 102 is specifically configured to:

[0116] Setting an analog gain parameter of the amplifier to a first gain parameter;

[0117] Acquire a first gain signal output by the amplifier based on the first gain parameter, wherein the amplifier performs gain on the original audio signal based on the first gain parameter to obtain the first gain signal;

[0118] sending the first gain signal to an analog-to-digital converter;

[0119] Acquire a first audio signal output by the analog-to-digital converter based on the first gain signal, wherein the analog-to-digital converter performs analog-to-digital conversion on the first gain signal to obtain the first audio signal;

[0120] setting an analog gain parameter of the amplifier to a second gain parameter;

[0121] Acquire a second gain signal output by the amplifier based on the second gain parameter, wherein the amplifier gains the original audio signal based on the second gain parameter to obtain the second gain signal;

[0122] sending the second gain signal to an analog-to-digital converter;

[0123] A second audio signal output by the analog-to-digital converter based on the second gain signal is obtained, wherein the analog-to-digital converter performs analog-to-digital conversion on the second gain signal to obtain the second audio signal.

[0124] Optionally, the recording module 103 is specifically used for:

[0125] Acquire a first amplitude value of the first audio signal, and acquire a second amplitude value of the second audio signal;

[0126] Determine a target audio signal in the first audio signal and the second audio signal based on the first amplitude value, the second amplitude value and the amplitude threshold;

[0127] Save the target audio signal.

[0128] The present application also provides a storage medium that can store multiple program instructions, which are suitable for being loaded and executed by a processor as described above. Figure 1 to Figure 5 The method steps of the embodiment shown in the figure can be found in the specific implementation process. Figure 1 to Figure 5 The specific description of the illustrated embodiment will not be repeated here.

[0129] See also Figure 7 , which is a schematic diagram of the structure of a computer device according to an embodiment of the present application. Figure 7As shown, the computer device 1000 may include: at least one processor 1001, at least one memory 1002, at least one network interface 1003, at least one input and output interface 1004, at least one communication bus 1005 and at least one display unit 1006. Among them, the processor 1001 may include one or more processing cores. The processor 1001 uses various interfaces and lines to connect the various parts within the entire computer device 1000, and executes various functions and processes data of the terminal 1000 by running or executing instructions, programs, code sets or instruction sets stored in the memory 1002, and calling data stored in the memory 1002. The memory 1002 can be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as at least one disk storage. The memory 1002 can optionally be at least one storage device located away from the aforementioned processor 1001. Among them, the network interface 1003 can optionally include a standard wired interface, a wireless interface (such as a WI-FI interface). The communication bus 1005 is used to realize the connection and communication between these components. As shown in FIG. Figure 7 As shown, the memory 1002 as a storage medium of a terminal device may include an operating system, a network communication module, an input and output interface module, and an audio recording program.

[0130] exist Figure 7 In the computer device 1000 shown, the input and output interface 1004 is mainly used to provide an input interface for the user and the access device, and to obtain data input by the user and the access device.

[0131] In one embodiment.

[0132] The processor 1001 may be used to call the audio recording program stored in the memory 1002, and specifically perform the following operations:

[0133] Get the original audio signal collected by the microphone;

[0134] Acquire a first audio signal and a second audio signal output by an analog-to-digital converter corresponding to the microphone, wherein the analog-to-digital converter outputs the first audio signal corresponding to the original audio signal based on a first gain parameter, the first gain parameter of the amplifier is amplified to a second gain parameter, and the analog-to-digital converter outputs the second audio signal corresponding to the original audio signal based on the second gain parameter;

[0135] A target audio signal is determined from the first audio signal and the second audio signal, and the target audio signal is saved.

[0136] Optionally, when executing to obtain the first audio signal and the second audio signal output by the analog-to-digital converter corresponding to the microphone, the processor 1001 specifically performs the following operations:

[0137] Setting an analog gain parameter of the amplifier to a first gain parameter;

[0138] Acquire a first audio signal corresponding to the original audio signal output by the analog-to-digital converter based on the first gain parameter, wherein the amplifier performs gain on the original audio signal based on the first gain parameter, and the analog-to-digital converter performs analog-to-digital conversion on the gained original audio signal to output the first audio signal;

[0139] setting an analog gain parameter of the amplifier to a second gain parameter;

[0140] A second audio signal corresponding to the original audio signal output by the analog-to-digital converter based on the second gain parameter is obtained, wherein the amplifier gains the original audio signal based on the second gain parameter, and the analog-to-digital converter performs analog-to-digital conversion on the gained original audio signal to output the second audio signal.

[0141] Optionally, when executing the process of acquiring the first audio signal corresponding to the original audio signal output by the analog-to-digital converter based on the first gain parameter, the processor 1001 specifically performs the following operations:

[0142] A first audio signal corresponding to the original audio signal output by the analog-to-digital converter based on the first gain signal is obtained, wherein the amplifier gains the original audio signal based on the first gain parameter to obtain the first gain signal, and the analog-to-digital converter performs analog-to-digital conversion on the first gain signal output by the amplifier to obtain the first audio signal.

[0143] Optionally, when executing the process of acquiring the second audio signal corresponding to the original audio signal output by the analog-to-digital converter based on the second gain parameter, the processor 1001 specifically performs the following operations:

[0144] A second audio signal corresponding to the original audio signal output by the analog-to-digital converter based on the second gain signal is obtained, wherein the amplifier gains the original audio signal based on the second gain parameter to obtain the second gain signal, and the analog-to-digital converter performs analog-to-digital conversion on the second gain signal output by the amplifier to obtain the second audio signal.

[0145] Optionally, when executing the process of acquiring the first audio signal corresponding to the original audio signal output by the analog-to-digital converter based on the first gain parameter, the processor 1001 specifically performs the following operations:

[0146] Acquire a first gain signal output by the amplifier based on the first gain parameter, wherein the amplifier performs gain on the original audio signal based on the first gain parameter to obtain the first gain signal;

[0147] sending the first gain signal to an analog-to-digital converter;

[0148] A first audio signal output by the analog-to-digital converter based on the first gain signal is acquired, wherein the analog-to-digital converter performs analog-to-digital conversion on the first gain signal to obtain the first audio signal.

[0149] Optionally, when executing the process of acquiring the second audio signal corresponding to the original audio signal output by the analog-to-digital converter based on the second gain parameter, the processor 1001 specifically performs the following operations:

[0150] Acquire a second gain signal output by the amplifier based on the second gain parameter, wherein the amplifier gains the original audio signal based on the second gain parameter to obtain the second gain signal;

[0151] sending the second gain signal to an analog-to-digital converter;

[0152] A second audio signal output by the analog-to-digital converter based on the second gain signal is obtained, wherein the analog-to-digital converter performs analog-to-digital conversion on the second gain signal to obtain the second audio signal.

[0153] Optionally, when the processor 1001 determines the target audio signal from the first audio signal and the second audio signal and saves the target audio signal, the processor 1001 specifically performs the following operations:

[0154] Acquire a first amplitude value of the first audio signal, and acquire a second amplitude value of the second audio signal;

[0155] Determine a target audio signal in the first audio signal and the second audio signal based on the first amplitude value, the second amplitude value and the amplitude threshold;

[0156] Save the target audio signal.

[0157] Optionally, when the processor 1001 determines the target audio signal in the first audio signal and the second audio signal based on the first amplitude value, the second amplitude value, and the amplitude threshold, the processor 1001 specifically performs the following operations:

[0158] If the first amplitude value is greater than or equal to the amplitude threshold, and the second amplitude value is greater than or equal to the amplitude threshold, taking the first audio signal as the target audio signal;

[0159] If the first amplitude value is less than the amplitude threshold, and the second amplitude value is less than the amplitude threshold, taking the second audio signal as the target audio signal;

[0160] If the first amplitude value is less than the amplitude threshold, and the second amplitude value is greater than or equal to the amplitude threshold, the first audio signal is used as the target audio signal.

[0161] In an embodiment of the present application, the original audio signal collected by the microphone is obtained, and then the first audio signal and the second audio signal output by the analog-to-digital converter corresponding to the microphone are obtained, wherein the analog-to-digital converter outputs the first audio signal corresponding to the original audio signal based on the first gain parameter, the first gain parameter of the amplifier is amplified to the second gain parameter, and the analog-to-digital converter outputs the second audio signal corresponding to the original audio signal based on the second gain parameter, and finally the target audio signal is determined in the first audio signal and the second audio signal, and the target audio signal is saved. Only by sharing the amplifier and the analog-to-digital converter, the dual dynamic audio recording process (i.e., the process of using dual amplifiers and dual analog-to-digital converters for audio recording) can be realized, which can ensure that each microphone can record an audio signal with appropriate gain, reduce the number of amplifiers and analog-to-digital converters, and thus reduce the cost of the audio recording device; at the same time, since one audio recording channel can record audio signals with different gains, the dynamic range of the recorded audio signal is improved.

[0162] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described action sequence, because according to the present application, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0163] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0164] The above is a description of an audio recording method, an audio recording device, a storage medium and a device provided in the present application. For technicians in this field, according to the ideas of the embodiments of the present application, there may be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. An audio recording method, characterized in that: Applied to a terminal device, the terminal device includes at least one microphone, at least one amplifier and at least one analog-to-digital converter, each microphone corresponds to one amplifier, each amplifier corresponds to one analog-to-digital converter, and the method includes: Get the original audio signal collected by the microphone; Acquire a first audio signal and a second audio signal output by an analog-to-digital converter corresponding to the microphone, wherein the analog-to-digital converter outputs the first audio signal corresponding to the original audio signal based on a first gain parameter of the amplifier corresponding to the microphone, the first gain parameter of the amplifier corresponding to the microphone is amplified to a second gain parameter, and the analog-to-digital converter corresponding to the microphone outputs the second audio signal corresponding to the original audio signal based on the second gain parameter; A target audio signal is determined in the first audio signal and the second audio signal, and the target audio signal is saved.

2. The method according to claim 1, characterized in that The step of obtaining a first audio signal and a second audio signal output by an analog-to-digital converter corresponding to the microphone includes: Setting an analog gain parameter of the amplifier to a first gain parameter; Acquire a first audio signal corresponding to the original audio signal output by the analog-to-digital converter based on the first gain parameter, wherein the amplifier gains the original audio signal based on the first gain parameter, and the analog-to-digital converter performs analog-to-digital conversion on the gained original audio signal to output the first audio signal; Setting an analog gain parameter of the amplifier to a second gain parameter; A second audio signal corresponding to the original audio signal output by the analog-to-digital converter based on the second gain parameter is obtained, wherein the amplifier gains the original audio signal based on the second gain parameter, and the analog-to-digital converter performs analog-to-digital conversion on the gained original audio signal to output the second audio signal.

3. The method according to claim 2, characterized in that The obtaining a first audio signal corresponding to the original audio signal output by the analog-to-digital converter based on the first gain parameter includes: Acquire a first audio signal corresponding to the original audio signal output by the analog-to-digital converter based on the first gain signal, wherein the amplifier performs gain on the original audio signal based on the first gain parameter to obtain the first gain signal, and the analog-to-digital converter performs analog-to-digital conversion on the first gain signal output by the amplifier to obtain the first audio signal; The obtaining a second audio signal corresponding to the original audio signal output by the analog-to-digital converter based on the second gain parameter includes: A second audio signal corresponding to the original audio signal output by the analog-to-digital converter based on the second gain signal is obtained, wherein the amplifier gains the original audio signal based on the second gain parameter to obtain the second gain signal, and the analog-to-digital converter performs analog-to-digital conversion on the second gain signal output by the amplifier to obtain the second audio signal.

4. The method according to claim 2, characterized in that The obtaining a first audio signal corresponding to the original audio signal output by the analog-to-digital converter based on the first gain parameter includes: Acquire a first gain signal output by the amplifier based on the first gain parameter, wherein the amplifier performs gain on the original audio signal based on the first gain parameter to obtain the first gain signal; sending the first gain signal to the analog-to-digital converter; Acquire a first audio signal output by the analog-to-digital converter based on the first gain signal, wherein the analog-to-digital converter performs analog-to-digital conversion on the first gain signal to obtain the first audio signal; The obtaining a second audio signal corresponding to the original audio signal output by the analog-to-digital converter based on the second gain parameter includes: Acquire a second gain signal output by the amplifier based on the second gain parameter, wherein the amplifier performs gain on the original audio signal based on the second gain parameter to obtain the second gain signal; sending the second gain signal to the analog-to-digital converter; A second audio signal output by the analog-to-digital converter based on the second gain signal is obtained, wherein the analog-to-digital converter performs analog-to-digital conversion on the second gain signal to obtain the second audio signal.

5. The method according to claim 1, characterized in that: The determining a target audio signal in the first audio signal and the second audio signal, and saving the target audio signal, comprises: Acquire a first amplitude value of the first audio signal, and acquire a second amplitude value of the second audio signal; determining a target audio signal in the first audio signal and the second audio signal based on the first amplitude value, the second amplitude value, and an amplitude threshold; The target audio signal is saved.

6. The method according to claim 5, characterized in that The determining a target audio signal in the first audio signal and the second audio signal based on the first amplitude value, the second amplitude value, and an amplitude threshold comprises: If the first amplitude value is greater than or equal to the amplitude threshold, and the second amplitude value is greater than or equal to the amplitude threshold, taking the first audio signal as a target audio signal; If the first amplitude value is smaller than the amplitude threshold, and the second amplitude value is smaller than the amplitude threshold, taking the second audio signal as the target audio signal; If the first amplitude value is smaller than the amplitude threshold, and the second amplitude value is greater than or equal to the amplitude threshold, the first audio signal is used as a target audio signal.

7. An audio recording device, characterized in that: The audio recording device comprises at least one microphone, at least one amplifier and at least one analog-to-digital converter, each microphone corresponds to one amplifier and one analog-to-digital converter, and the device comprises: An acquisition module is used to acquire the original audio signal collected by the microphone; a conversion module, configured to obtain a first audio signal and a second audio signal output by an analog-to-digital converter corresponding to the microphone, wherein the analog-to-digital converter outputs the first audio signal corresponding to the original audio signal based on a first gain parameter of the amplifier corresponding to the microphone, the first gain parameter of the amplifier corresponding to the microphone is amplified to a second gain parameter, and the analog-to-digital converter corresponding to the microphone outputs the second audio signal corresponding to the original audio signal based on the second gain parameter; The recording module is used to determine a target audio signal in the first audio signal and the second audio signal, and save the target audio signal.

8. The device according to claim 7, characterized in that The conversion module is specifically used for: Setting an analog gain parameter of the amplifier to a first gain parameter; Acquire a first audio signal corresponding to the original audio signal output by the analog-to-digital converter based on the first gain parameter, wherein the amplifier gains the original audio signal based on the first gain parameter, and the analog-to-digital converter performs analog-to-digital conversion on the gained original audio signal to output the first audio signal; Setting an analog gain parameter of the amplifier to a second gain parameter; A second audio signal corresponding to the original audio signal output by the analog-to-digital converter based on the second gain parameter is obtained, wherein the amplifier gains the original audio signal based on the second gain parameter, and the analog-to-digital converter performs analog-to-digital conversion on the gained original audio signal to output the second audio signal.

9. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the audio recording method according to any one of claims 1 to 6 is implemented.

10. A computer device, characterized in that: include: A processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the steps of the audio recording method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Pick-up device and method

    CN104066036A

  • A voice acquisition device and voice analysis system

    CN211481463U