Vehicle-mounted adaptive microphone audio gain method, device, equipment and storage medium
By determining the business scenario in the in-vehicle audio link processing system, calculating the target gain value and performing adaptive gain adjustment, the problem of inaccurate microphone audio gain adjustment is solved, and audio processing with enhanced sensitivity and real-time performance is achieved.
Patent Information
- Application Number
- CN202411013512.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-26
- Publication Date
- 2025-09-09
- Estimated Expiration
- 2044-07-26
AI Technical Summary
In existing in-vehicle audio link processing systems, microphone audio gain adjustment cannot adapt to the needs of different business scenarios in real time, resulting in inaccurate gain adjustment in complex and changeable audio collection environments.
Adaptive microphone audio gain is achieved by determining the business scenario, calculating the target digital and analog gain values, performing analog and digital gain processing respectively, and adjusting the gain based on the feedback gain value.
The microphone sensitivity is enhanced, and adaptive audio gain adjustment is achieved for each application in the vehicle system, ensuring the real-time and accuracy of audio acquisition.
Smart Images

Figure CN118969007B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of vehicle-mounted electronic equipment, and in particular to a vehicle-mounted adaptive microphone audio gain method, apparatus, device, and storage medium. Background Art
[0002] In existing in-vehicle audio link processing systems, the gain adjustment of microphone audio is usually fixed or based on preset rules, and cannot adapt to the needs of different business scenarios in real time. Therefore, in complex and changeable audio acquisition environments, the current audio processing method is to determine whether the sound pressure level of the audio signal is within a reasonable range. However, this method cannot accurately adjust the gain of the microphone audio. Therefore, how to adjust the gain of the microphone audio in real time and accurately has become an urgent problem to be solved in the field of audio processing technology.
[0003] The above content is only used to assist in understanding the technical solution of this application and does not constitute an admission that the above content is prior art. Summary of the Invention
[0004] The main purpose of this application is to provide a method, device, equipment and storage medium for vehicle-mounted adaptive microphone audio gain, aiming to solve the technical problem of poor audio gain effect in the existing technology due to the use of fixed gain.
[0005] To achieve the above objectives, the present application proposes a method for adaptively gaining audio for a vehicle-mounted microphone, the method comprising:
[0006] Determine a business scenario of the application, and determine a target digital gain value and a target analog gain value based on the received microphone audio according to the business scenario;
[0007] Performing analog gain on the microphone audio to obtain an analog gain value, and performing digital gain on the microphone audio to obtain a digital gain value;
[0008] Comparing the analog gain value with the target analog gain value, and the digital gain value with the target digital gain value, respectively, to obtain an analog feedback gain value and a digital feedback gain value;
[0009] The microphone audio is gained according to the analog feedback gain value and the digital feedback gain value to obtain microphone gain audio.
[0010] In one embodiment, the step of determining a target digital gain value and a target analog gain value based on the received microphone audio according to the business scenario includes:
[0011] Determine a gain strategy based on the business scenario;
[0012] Perform feature analysis on the received microphone audio to obtain the audio noise floor and audio amplitude;
[0013] Based on the gain strategy, a target digital gain value and a target analog gain value are obtained according to the audio noise floor and the audio amplitude.
[0014] In one embodiment, the steps of performing analog gain on the microphone audio to obtain an analog gain value, and performing digital gain on the microphone audio to obtain a digital gain value include:
[0015] Performing analog gain on the microphone audio based on the audio background noise to obtain an analog gain value;
[0016] Digital gain is performed on the microphone audio based on the audio amplitude to obtain a digital gain value.
[0017] In one embodiment, the steps of performing analog gain on the microphone audio to obtain an analog gain value, and performing digital gain on the microphone audio to obtain a digital gain value include:
[0018] Determine the ADC audio channel and DSP audio channel corresponding to the current application scenario;
[0019] Inputting the microphone audio into the analog gain adjustment feedback link corresponding to the ADC audio channel, and performing analog gain based on the ADC chip in the analog gain adjustment feedback link to obtain an analog gain value;
[0020] The microphone audio is input into the digital gain adjustment feedback link corresponding to the DSP audio channel, and digital gain is performed based on the DSP chip in the digital gain adjustment feedback link to obtain a digital gain value.
[0021] In one embodiment, the step of comparing the analog gain value with the target analog gain value, and the digital gain value with the target digital gain value, to obtain an analog feedback gain value and a digital feedback gain value includes:
[0022] Comparing the audio noise floor and the audio amplitude with the preset audio noise floor and the preset audio amplitude respectively;
[0023] When the audio noise floor is greater than the preset audio noise floor, determining an analog gain value according to a high noise floor mapping relationship;
[0024] When the audio amplitude is greater than the preset audio amplitude, a digital gain value is determined according to a high amplitude mapping relationship.
[0025] In one embodiment, the step of gaining the microphone audio according to the analog feedback gain value and the digital feedback gain value to obtain microphone gained audio includes:
[0026] determining a compensation value of the digital feedback gain value according to the analog feedback gain value;
[0027] Obtaining a comprehensive gain value according to the analog feedback gain value, the digital feedback gain value and the compensation value;
[0028] The microphone audio is gained according to the comprehensive gain value to obtain microphone gain audio.
[0029] In one embodiment, after the step of gaining the microphone audio according to the analog feedback gain value and the digital feedback gain value to obtain microphone gain audio, the method further includes:
[0030] Performing feature analysis on the microphone gain audio to obtain a gain audio background noise and a gain audio amplitude of the microphone gain audio;
[0031] Obtaining a digital gain value and an analog gain value based on the gain audio noise floor and the gain audio amplitude, respectively;
[0032] The method returns to the step of comparing the analog gain value with the target analog gain value, and the digital gain value with the target digital gain value, to obtain an analog feedback gain value and a digital feedback gain value.
[0033] In addition, to achieve the above-mentioned purpose, the present application also proposes a vehicle-mounted adaptive microphone audio gain device, the vehicle-mounted adaptive microphone audio gain device comprising:
[0034] A scenario determination module is used to determine a business scenario of the application, and determine a target digital gain value and a target analog gain value based on the received microphone audio according to the business scenario;
[0035] an initial gain module, configured to perform analog gain on the microphone audio to obtain an analog gain value, and perform digital gain on the microphone audio to obtain a digital gain value;
[0036] a feedback gain module, configured to compare the analog gain value with the target analog gain value, and the digital gain value with the target digital gain value, respectively, to obtain an analog feedback gain value and a digital feedback gain value;
[0037] The audio gain module is used to gain the microphone audio according to the analog feedback gain value and the digital feedback gain value to obtain microphone gain audio.
[0038] In addition, to achieve the above-mentioned purpose, the present application also proposes a vehicle-mounted adaptive microphone audio gain device, which includes: a memory, a processor, and a computer program stored on the memory and runnable on the processor, and the computer program is configured to implement the steps of the vehicle-mounted adaptive microphone audio gain method described above.
[0039] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by the processor, the steps of the vehicle-mounted adaptive microphone audio gain method as described above are implemented.
[0040] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program. When the computer program is executed by a processor, it implements the steps of the vehicle-mounted adaptive microphone audio gain method as described above.
[0041] One or more technical solutions proposed in this application have at least the following technical effects: determining the business scenario of the application, determining the target digital gain value and the target analog gain value of the received microphone audio according to the business scenario, performing analog gain on the microphone audio to obtain an analog gain value, performing digital gain on the microphone audio to obtain a digital gain value, comparing the analog gain value with the target analog gain value and the digital gain value with the target digital gain value, respectively, to obtain an analog feedback gain value and a digital feedback gain value, gaining the microphone audio according to the analog feedback gain value and the digital feedback gain value to obtain microphone gain audio, which can enhance the sensitivity of the microphone and facilitate adaptive adjustment of the required microphone audio gain for various applications on the vehicle system. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0043] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0044] Figure 1 A flowchart of the first embodiment of the vehicle-mounted adaptive microphone audio gain method of the present application is provided;
[0045] Figure 2A schematic diagram of microphone audio gain provided in accordance with an embodiment of the vehicle-mounted adaptive microphone audio gain method of the present application;
[0046] Figure 3 This is a schematic diagram of the module structure of the vehicle-mounted adaptive microphone audio gain device according to an embodiment of the present application;
[0047] Figure 4 This is a schematic diagram of the device structure of the hardware operating environment involved in the vehicle-mounted adaptive microphone audio gain method in an embodiment of the present application.
[0048] The purpose, features and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0049] It should be understood that the specific embodiments described herein are merely used to explain the technical solutions of the present application and are not intended to limit the present application.
[0050] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0051] The main solution of the embodiment of the present application is: determine the business scenario of the application, determine the target digital gain value and the target analog gain value of the received microphone audio according to the business scenario; perform analog gain on the microphone audio to obtain an analog gain value, and perform digital gain on the microphone audio to obtain a digital gain value; compare the analog gain value with the target analog gain value and the digital gain value with the target digital gain value respectively to obtain an analog feedback gain value and a digital feedback gain value; gain the microphone audio according to the analog feedback gain value and the digital feedback gain value to obtain microphone gain audio.
[0052] In this embodiment, for ease of description, the following description is made by taking the identification of the vehicle-mounted adaptive microphone audio gain device as the execution subject.
[0053] Since the existing technology usually adjusts the gain of microphone audio in a fixed or preset rule, it cannot adapt to the needs of different business scenarios in real time. Therefore, in a complex and changeable audio collection environment, the current audio processing method is to determine whether the sound pressure level of the audio signal is within a reasonable range, which cannot accurately adjust the gain of the microphone audio.
[0054] This application provides a solution that adjusts both the analog gain and digital gain of the audio input from the vehicle's microphone, enabling analog / digital gain adjustment for microphone audio across multiple channels and applications in different scenarios. At the application layer, an application determines and calculates the required digital and analog gain for the microphone audio in real time based on its own business scenario. The application layer sets the analog gain of its own ADC audio channel through a gain adjustment feedback channel. The application layer also sets the digital gain of its own DSP audio channel through a gain adjustment feedback channel. Through digital or analog gain adjustment of multiple audio channels, each application at the application layer achieves its desired microphone audio gain. This solution also offers real-time performance, determining and calculating the required audio gain value in real time and adjusting it as needed to ensure real-time and accurate audio acquisition. It also adaptively calculates and sets audio gain values in a closed loop based on different application scenarios and changes in the vehicle's microphone environment to meet the business needs of different applications, enabling multi-application, multi-channel adjustment. The system supports digital or analog gain adjustment for multiple audio channels, and mutually exclusive logic enables different applications to independently adjust the gain value of their respective audio channels, enabling more flexible and personalized audio processing.
[0055] It can be seen from the above embodiments that the present application determines the business scenario of the application, determines the target digital gain value and the target analog gain value of the received microphone audio according to the business scenario, performs analog gain on the microphone audio to obtain an analog gain value, performs digital gain on the microphone audio to obtain a digital gain value, compares the analog gain value with the target analog gain value and the digital gain value with the target digital gain value, respectively, to obtain an analog feedback gain value and a digital feedback gain value, and gains the microphone audio according to the analog feedback gain value and the digital feedback gain value to obtain microphone gain audio, which can enhance the sensitivity of the microphone and facilitate the adaptive adjustment of the required microphone audio gain for each application on the vehicle system.
[0056] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication, and program execution functions, such as a tablet computer, personal computer, mobile phone, etc., or an electronic device capable of implementing the above functions, such as an in-vehicle adaptive microphone audio gain device. The following uses the in-vehicle adaptive microphone audio gain device as an example to illustrate this embodiment and the following embodiments.
[0057] Based on this, the embodiment of the present application provides a vehicle-mounted adaptive microphone audio gain method, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the vehicle-mounted adaptive microphone audio gain method of the present application.
[0058] In this embodiment, the vehicle-mounted adaptive microphone audio gain method includes steps S10 to S40:
[0059] Step S10 : determining a business scenario of the application, and determining a target digital gain value and a target analog gain value based on the received microphone audio according to the business scenario.
[0060] It should be noted that the business scenario refers to the application type in the vehicle-mounted computer application layer. Depending on the application type, the permissions required to call the microphone are also different. For example, the vehicle-mounted computer application layer may include voice applications, driving recorder applications, video applications, external speaking applications, social applications, etc. Different types of applications will call the microphone, and different scenarios have different acceptance levels for audio effects. Therefore, it is necessary to distinguish the business scenarios of the application and determine the target digital gain value and target analog gain value.
[0061] It should be understood that the target digital gain value and the target analog gain value correspond to business scenarios and are used to adjust the degree of digital gain and analog gain of the microphone audio.
[0062] In the specific implementation, to ensure the accuracy of audio gain, the current application of the vehicle application layer can be obtained and the current business scenario can be determined based on the current application. The gain strategy is determined based on the current business scenario, including the correspondence between microphone audio and target analog gain values and target digital gain values.
[0063] Exemplarily, the step of determining a target digital gain value and a target analog gain value based on the received microphone audio according to the business scenario includes:
[0064] Determine a gain strategy based on the business scenario;
[0065] Perform feature analysis on the received microphone audio to obtain the audio noise floor and audio amplitude;
[0066] Based on the gain strategy, a target digital gain value and a target analog gain value are obtained according to the audio noise floor and the audio amplitude.
[0067] In the specific implementation, the gain strategy can be determined according to the business scenario, and the gain strategy can be determined according to the mapping relationship between the business scenario and the gain strategy. The vehicle system sends the microphone audio data of the application channel to the application layer. The application layer judges the quality of the received microphone audio in real time according to the business scenario, and calculates the analog gain and digital gain to be feedback adjusted based on the analyzed key characteristic parameter data, and obtains the audio background noise D and audio amplitude F in the microphone audio. According to the correspondence between the audio background noise D and audio amplitude F contained in the gain strategy and the target digital gain value and target analog gain value, the target digital gain value and target analog gain value based on the current microphone audio in the current business scenario are determined, where the analog gain is Ga and the digital gain is Gd (G represents gain, a represents mode, and d represents digital).
[0068] Step S20 , performing analog gain on the microphone audio to obtain an analog gain value, and performing digital gain on the microphone audio to obtain a digital gain value.
[0069] In the specific implementation, refer to Figure 2 , Figure 2 Schematic diagram of microphone audio gain. The vehicle-mounted application layer can obtain the played audio information based on the sound played by the application and through the microphone, process it based on ADC (analog-to-digital converter) and DSP (digital signal processing chip), and transmit the processed audio to the vehicle-mounted application layer through the vehicle-mounted system middleware, adjust the audio components of the played audio, and generate numerical gain adjustment feedback and analog gain adjustment feedback based on the processed audio information. At this time, analog gain is performed on the microphone audio, and the audio signal is processed based on ADC to obtain an analog gain value. Digital gain is performed on the microphone audio, and the audio signal is processed based on DSP to obtain a digital gain value. When determining the analog gain value and the digital gain value, the microphone audio can be analog-gained based on the audio background noise to obtain an analog gain value, and the microphone audio can be digitally gained based on the audio amplitude to obtain a digital gain value.
[0070] Exemplarily, the steps of performing analog gain on the microphone audio to obtain an analog gain value, and performing digital gain on the microphone audio to obtain a digital gain value include:
[0071] Determine the ADC audio channel and DSP audio channel corresponding to the current application scenario;
[0072] Inputting the microphone audio into the analog gain adjustment feedback link corresponding to the ADC audio channel, and performing analog gain based on the ADC chip in the analog gain adjustment feedback link to obtain an analog gain value;
[0073] The microphone audio is input into the digital gain adjustment feedback link corresponding to the DSP audio channel, and digital gain is performed based on the DSP chip in the digital gain adjustment feedback link to obtain a digital gain value.
[0074] In the specific implementation, the vehicle system middleware software and driver software need to implement an analog gain adjustment feedback setting link, and through this link, different applications can feedback from the application layer to set the analog gain value of the microphone audio channel belonging to different applications on the ADC chip; the vehicle system middleware software needs to implement a digital gain adjustment feedback setting link, through which different applications can feedback from the application layer to set the digital gain value of the microphone audio channel belonging to different applications on the DSP chip.
[0075] Step S30 : Compare the analog gain value with the target analog gain value, and the digital gain value with the target digital gain value, respectively, to obtain an analog feedback gain value and a digital feedback gain value.
[0076] In a specific implementation, the audio noise floor and the audio amplitude are compared with the preset audio noise floor and the preset audio amplitude, respectively. When the audio noise floor is greater than the preset audio noise floor, the analog gain value is determined according to the high noise floor mapping relationship. When the audio amplitude is greater than the preset audio amplitude, the digital gain value is determined according to the high amplitude mapping relationship. Specifically, when the audio noise floor D is higher than a certain set value, the analog gain Gas value corresponding to the high noise floor mapping relationship is searched according to the size of the D value (the main purpose is to appropriately reduce the analog gain and reduce the further amplification of the noise floor); if D is not higher than this set value, the default mode gain Gam value is maintained; this can maintain the input microphone audio noise floor D always within a dynamic and reasonable range, thereby improving the quality of useful audio. When the audio amplitude F is higher than a certain set value range, the digital gain Gds value corresponding to the high amplitude mapping relationship is searched according to the size of the F value (the main purpose is to appropriately reduce the digital gain); if F is within a certain set value range, the default digital gain Gdm value is maintained; if F is lower than a certain set value range, the digital gain Gdg value and analog gain Gag value corresponding to the low amplitude mapping relationship are searched according to the size of the F value (analog gain is the main value, digital gain is the auxiliary value). In this way, the input microphone audio amplitude F can always be maintained in a high-quality dynamic and reasonable range.
[0077] Step S40 , gaining the microphone audio according to the analog feedback gain value and the digital feedback gain value to obtain microphone gain audio.
[0078] In a specific implementation, a compensation value for the digital feedback gain value is determined based on the analog feedback gain value, a comprehensive gain value is obtained based on the analog feedback gain value, the digital feedback gain value, and the compensation value, and the microphone audio is amplified based on the comprehensive gain value to obtain microphone gain audio. Specifically, to ensure that the gain of the final microphone audio output to the application or algorithm does not change significantly and to achieve the ultimate adaptive characteristics, it is necessary to use Gd to compensate for the adjustment of Ga. That is, the change in the value of Ga must be added back by Gd and other values (including negative values), that is, Gda = -Gas. Therefore, the gain output to the application or algorithm should be a comprehensive value. For example, when the audio noise floor D is higher than a certain set value and the audio amplitude F is higher than a certain set value range, the comprehensive value = Gds + Gas + Gda (where the analog gain adjustment feedback value setting is Gas and the digital gain adjustment feedback value setting is Gds + Gda). When the audio noise floor D is above a certain set value and F is below a certain set value range (this situation is generally not encountered in practice, but is used as an example to illustrate the strategy): the comprehensive value = Gdg + Gag + Gas + Gda (where the analog gain adjustment feedback value is set to Gag + Gas, and the digital gain adjustment feedback value is set to Gdg + Gda). To further improve accuracy, user feedback data can also be collected, such as whether the user is satisfied with the current application experience, such as speech recognition results, recording volume, and whether the user finds noise interference too large. This feedback data is used for adaptive learning and continuously optimizes the gain adjustment judgment strategy to better meet the needs of different users and environments.
[0079] Exemplarily, after the step of gaining the microphone audio according to the analog feedback gain value and the digital feedback gain value to obtain microphone gain audio, the method further includes:
[0080] Performing feature analysis on the microphone gain audio to obtain a gain audio background noise and a gain audio amplitude of the microphone gain audio;
[0081] Obtaining a digital gain value and an analog gain value based on the gain audio noise floor and the gain audio amplitude, respectively;
[0082] The method returns to the step of comparing the analog gain value with the target analog gain value, and the digital gain value with the target digital gain value, to obtain an analog feedback gain value and a digital feedback gain value.
[0083] In a specific implementation, after the audio is gained, the gain effect can be applied to the software at the application layer. After the audio output effect is changed, the output audio will be re-captured by the microphone. At this time, the microphone audio can be gained again, and the digital gain value and the analog gain value can be re-determined. The analog gain value can be compared with the target analog gain value, and the digital gain value can be compared with the target digital gain value to obtain the analog feedback gain value and the digital feedback gain value to perform audio gain again.
[0084] In addition, digital or analog gain adjustment of multiple audio channels can be used to allow each application at the application layer to obtain the microphone audio gain it needs. This includes: multi-channel mechanism, mutual exclusion logic, practicality, and closed-loop control. Among them, the multi-channel mechanism: both the ADC and DSP need to set multiple audio channels, while ensuring that each channel can be set with a different gain. Through independent and adaptive adjustment of the digital or analog gain of multiple audio channels, each application at the application layer can obtain the microphone audio gain it needs.
[0085] This embodiment provides an in-vehicle adaptive microphone audio gain method. The method determines a business scenario for an application, determines a target digital gain value and a target analog gain value for the received microphone audio based on the business scenario, performs analog gain on the microphone audio to obtain an analog gain value, performs digital gain on the microphone audio to obtain a digital gain value, compares the analog gain value with the target analog gain value and the digital gain value with the target digital gain value, respectively, to obtain an analog feedback gain value and a digital feedback gain value. The microphone audio is then gain-added based on the analog feedback gain value and the digital feedback gain value to obtain microphone gain audio. This method enhances microphone sensitivity and facilitates adaptive adjustment of the required microphone audio gain for various applications on the vehicle system. Mutual exclusion logic: Multiple audio channels require mutual exclusion logic at the application layer to ensure that the microphone recording focus is used by only one application. This protects the obtained microphone audio gain from interference from other channels. For example, if microphone recording for another application is forcibly enabled during voice communication, such as for external voice communication, the voice recognition function will automatically exit, relinquishing the microphone recording focus. Real-time performance and closed-loop control: The application layer continuously analyzes audio signal data and dynamically adjusts the gain value in real time based on the judgment strategy. After the gain is set, the output audio gain is adjusted, and the application layer then analyzes the input audio to implement closed-loop control. This real-time adjustment ensures that the audio signal quality is always maintained at the best state and can adapt to changes in the environment.
[0086] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the vehicle-mounted adaptive microphone audio gain method of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.
[0087] This application also provides a vehicle-mounted adaptive microphone audio gain device, please refer to Figure 3 , the vehicle-mounted adaptive microphone audio gain device includes:
[0088] A scenario determination module 10 is configured to determine a business scenario of an application, and determine a target digital gain value and a target analog gain value based on the received microphone audio according to the business scenario;
[0089] an initial gain module 20, configured to perform analog gain on the microphone audio to obtain an analog gain value, and perform digital gain on the microphone audio to obtain a digital gain value;
[0090] A feedback gain module 30 is configured to compare the analog gain value with the target analog gain value, and the digital gain value with the target digital gain value, respectively, to obtain an analog feedback gain value and a digital feedback gain value;
[0091] The audio gain module 40 is configured to gain the microphone audio according to the analog feedback gain value and the digital feedback gain value to obtain microphone gain audio.
[0092] The in-vehicle adaptive microphone audio gain device provided in this application utilizes the in-vehicle adaptive microphone audio gain method described in the aforementioned embodiments, resolving the technical issue of the prior art in which fixed gain is used to achieve poor audio gain. Compared to the prior art, the in-vehicle adaptive microphone audio gain device provided in this application achieves the same beneficial effects as the in-vehicle adaptive microphone audio gain method described in the aforementioned embodiments. Other technical features of the in-vehicle adaptive microphone audio gain device are the same as those disclosed in the aforementioned embodiments and are not further elaborated here.
[0093] The present application provides an in-vehicle adaptive microphone audio gain device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the in-vehicle adaptive microphone audio gain method in the above-mentioned embodiment one.
[0094] Reference below Figure 4, which shows a schematic diagram of the structure of a vehicle-mounted adaptive microphone audio gain device suitable for implementing the embodiments of the present application. The vehicle-mounted adaptive microphone audio gain device in the embodiments of the present application may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 4 The vehicle-mounted adaptive microphone audio gain device shown is merely an example and should not limit the functions and scope of use of the embodiments of the present application.
[0095] like Figure 4 As shown, the vehicle-mounted adaptive microphone audio gain device may include a processing device 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes based on programs stored in a read-only memory (ROM) 1002 or programs loaded from a storage device 1003 into a random access memory (RAM) 1004. Various programs and data required for the operation of the vehicle-mounted adaptive microphone audio gain device are also stored in RAM 1004. Processing device 1001, ROM 1002, and RAM 1004 are connected to each other via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to the I / O interface 1006: input devices 1007 including, for example, a touch screen, touchpad, keyboard, mouse, image sensor, microphone, accelerometer, gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), speaker, vibrator, etc.; storage devices 1003 including, for example, a magnetic tape, hard disk, etc.; and communication devices 1009. The communication device 1009 can allow the in-vehicle adaptive microphone audio gain device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows an in-vehicle adaptive microphone audio gain device with various systems, it should be understood that not all of the illustrated systems are required to be implemented or present. More or fewer systems may alternatively be implemented or present.
[0096] In particular, according to the embodiments disclosed in the present application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, the embodiments disclosed in the present application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program comprising program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0097] The in-vehicle adaptive microphone audio gain device provided in this application utilizes the in-vehicle adaptive microphone audio gain method described in the aforementioned embodiment, resolving the technical issue of the prior art in achieving poor audio gain due to the use of fixed gain. Compared to the prior art, the in-vehicle adaptive microphone audio gain device provided in this application achieves the same beneficial effects as the in-vehicle adaptive microphone audio gain method described in the aforementioned embodiment. Other technical features of the in-vehicle adaptive microphone audio gain device are the same as those disclosed in the aforementioned embodiment and are not further elaborated upon here.
[0098] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0099] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.
[0100] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, a computer program) stored thereon, and the computer-readable program instructions are used to execute the vehicle-mounted adaptive microphone audio gain method in the above-mentioned embodiment.
[0101] The computer-readable storage medium provided in this application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.
[0102] The computer-readable storage medium may be included in the vehicle-mounted adaptive microphone audio gain device; or may exist independently without being assembled into the vehicle-mounted adaptive microphone audio gain device.
[0103] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the vehicle-mounted adaptive microphone audio gain device, the vehicle-mounted adaptive microphone audio gain device:
[0104] Determine a business scenario of the application, and determine a target digital gain value and a target analog gain value based on the received microphone audio according to the business scenario;
[0105] Performing analog gain on the microphone audio to obtain an analog gain value, and performing digital gain on the microphone audio to obtain a digital gain value;
[0106] Comparing the analog gain value with the target analog gain value, and the digital gain value with the target digital gain value, respectively, to obtain an analog feedback gain value and a digital feedback gain value;
[0107] The microphone audio is gained according to the analog feedback gain value and the digital feedback gain value to obtain microphone gain audio.
[0108] Computer program code for performing the operations of the present application may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on the remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0109] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, program segment or a part of code, and the module, program segment or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented by a dedicated hardware-based system that performs the specified function or operation, or can be implemented by a combination of dedicated hardware and computer instructions.
[0110] The modules described in the embodiments of the present application may be implemented in software or hardware, wherein the name of a module does not necessarily limit the unit itself.
[0111] The computer-readable storage medium provided in this application stores computer-readable program instructions (i.e., a computer program) for executing the aforementioned method for adaptive in-vehicle microphone audio gain. This computer-readable storage medium can address the technical issue of the prior art in which fixed gain is used to achieve poor audio gain. Compared to the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as those of the method for adaptive in-vehicle microphone audio gain provided in the aforementioned embodiment, and are not further elaborated here.
[0112] The present application also provides a computer program product, comprising a computer program, which implements the steps of the above-mentioned vehicle-mounted adaptive microphone audio gain method when executed by a processor.
[0113] The computer program product provided in this application can address the technical issue of the existing art, which suffers from poor audio gain due to the use of fixed gain. Compared to the existing art, the beneficial effects of the computer program product provided in this application are similar to those of the in-vehicle adaptive microphone audio gain method provided in the aforementioned embodiment, and are not further elaborated here.
[0114] The above description is only part of the embodiments of the present application and does not limit the patent scope of the present application. All equivalent structural transformations made by using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect application in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A vehicle-mounted adaptive microphone audio gain method, characterized in that: The vehicle-mounted adaptive microphone audio gain method includes: Determining a business scenario of the application, determining received microphone audio based on the business scenario, and determining a target digital gain value and a target analog gain value based on the business scenario and the microphone audio; Performing analog gain on the microphone audio to obtain an analog gain value, and performing digital gain on the microphone audio to obtain a digital gain value; Comparing the analog gain value with the target analog gain value, and the digital gain value with the target digital gain value, respectively, to obtain an analog feedback gain value and a digital feedback gain value; Gaining the microphone audio according to the analog feedback gain value and the digital feedback gain value to obtain microphone gain audio; The steps of performing analog gain on the microphone audio to obtain an analog gain value and performing digital gain on the microphone audio to obtain a digital gain value include: Determine the ADC audio channel and DSP audio channel corresponding to the current application scenario; Inputting the microphone audio into the analog gain adjustment feedback link corresponding to the ADC audio channel, and performing analog gain based on the ADC chip in the analog gain adjustment feedback link to obtain an analog gain value; The microphone audio is input into the digital gain adjustment feedback link corresponding to the DSP audio channel, and digital gain is performed based on the DSP chip in the digital gain adjustment feedback link to obtain a digital gain value.
2. The method according to claim 1, wherein The step of determining a target digital gain value and a target analog gain value based on the received microphone audio according to the business scenario includes: Determine a gain strategy based on the business scenario; Perform feature analysis on the received microphone audio to obtain the audio noise floor and audio amplitude; Based on the gain strategy, a target digital gain value and a target analog gain value are obtained according to the audio noise floor and the audio amplitude.
3. The method according to claim 1, wherein The steps of performing analog gain on the microphone audio to obtain an analog gain value, and performing digital gain on the microphone audio to obtain a digital gain value include: Performing analog gain on the microphone audio based on the audio background noise to obtain an analog gain value; Digital gain is performed on the microphone audio based on the audio amplitude to obtain a digital gain value.
4. The method according to claim 1, wherein The step of comparing the analog gain value with the target analog gain value, and the digital gain value with the target digital gain value, to obtain an analog feedback gain value and a digital feedback gain value comprises: Comparing the audio noise floor and the audio amplitude with the preset audio noise floor and the preset audio amplitude respectively; When the audio noise floor is greater than the preset audio noise floor, determining an analog gain value according to a high noise floor mapping relationship; When the audio amplitude is greater than the preset audio amplitude, a digital gain value is determined according to a high amplitude mapping relationship.
5. The method according to claim 1, wherein The step of gaining the microphone audio according to the analog feedback gain value and the digital feedback gain value to obtain microphone gain audio includes: determining a compensation value of the digital feedback gain value according to the analog feedback gain value; Obtaining a comprehensive gain value according to the analog feedback gain value, the digital feedback gain value and the compensation value; The microphone audio is gained according to the comprehensive gain value to obtain microphone gain audio.
6. The method according to any one of claims 1 to 5, wherein After the step of gaining the microphone audio according to the analog feedback gain value and the digital feedback gain value to obtain microphone gain audio, the method further includes: Performing feature analysis on the microphone gain audio to obtain a gain audio background noise and a gain audio amplitude of the microphone gain audio; Obtaining a digital gain value and an analog gain value based on the gain audio noise floor and the gain audio amplitude, respectively; The method returns to the step of comparing the analog gain value with the target analog gain value, and the digital gain value with the target digital gain value, to obtain an analog feedback gain value and a digital feedback gain value.
7. A vehicle-mounted adaptive microphone audio gain device, characterized in that: The device comprises: A scenario determination module, configured to determine a business scenario of an application, determine received microphone audio according to the business scenario, and determine a target digital gain value and a target analog gain value according to the business scenario and the microphone audio; an initial gain module, configured to perform analog gain on the microphone audio to obtain an analog gain value, and perform digital gain on the microphone audio to obtain a digital gain value; a feedback gain module, configured to compare the analog gain value with the target analog gain value, and the digital gain value with the target digital gain value, respectively, to obtain an analog feedback gain value and a digital feedback gain value; an audio gain module, configured to gain the microphone audio according to the analog feedback gain value and the digital feedback gain value to obtain microphone gain audio; The steps of performing analog gain on the microphone audio to obtain an analog gain value and performing digital gain on the microphone audio to obtain a digital gain value include: Determine the ADC audio channel and DSP audio channel corresponding to the current application scenario; Inputting the microphone audio into the analog gain adjustment feedback link corresponding to the ADC audio channel, and performing analog gain based on the ADC chip in the analog gain adjustment feedback link to obtain an analog gain value; The microphone audio is input into the digital gain adjustment feedback link corresponding to the DSP audio channel, and digital gain is performed based on the DSP chip in the digital gain adjustment feedback link to obtain a digital gain value.
8. A vehicle-mounted adaptive microphone audio gain device, characterized in that: The device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the vehicle-mounted adaptive microphone audio gain method according to any one of claims 1 to 6.
9. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the vehicle-mounted adaptive microphone audio gain method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Microphone with adjustable signal processing
CN114946195A
Sound scene simulation method, device and equipment, storage medium and vehicle
CN117093176A