Vehicle-mounted adaptive microphone audio gain method, device, equipment and storage medium
By determining the business scenarios in the on-board audio link processing system and performing adaptive gain processing, the problem that microphone audio gain adjustment cannot be adapted in real time in the prior art is solved, and the sensitivity improvement and adaptive adjustment of microphone audio is achieved to ensure audio acquisition real-time and accuracy.
Patent Information
- Application Number
- CN202411013512.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-26
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2044-07-26
AI Technical Summary
In existing in-vehicle audio link processing systems, microphone audio gain adjustment is usually fixed or based on preset rules, and cannot adapt to the needs of different business scenarios in real time, resulting in the inability to accurately adjust the microphone audio in a complex and changeable audio acquisition environment. gain.
By determining the business scenario of the application, determining the target digital gain value and target analog gain value according to the business scenario, the microphone audio is simulated and digital gain processing, comparing the gain value to obtain the feedback gain value, and making gain adjustments based on the feedback gain value, so as to achieve Adaptive adjustment of microphone audio.
It enhances the sensitivity of the microphone, realizes adaptive microphone audio gain adjustment for each application in the automotive computer system, ensures real-time and accuracy of audio acquisition, and can perform closed-loop calculations and adjustments according to changes in different application business scenarios and on-board microphone environments.
Smart Images

Figure CN118969007A_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, device, equipment 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 a complex and changeable audio acquisition environment, the current audio processing method is to determine whether the sound pressure level of the audio signal is within a reasonable range. 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 contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention
[0004] The main purpose of the present 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 due to the use of fixed gain in the prior art.
[0005] To achieve the above object, the present application proposes a vehicle-mounted adaptive microphone audio gain method, the vehicle-mounted adaptive microphone audio gain 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] Respectively 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;
[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 according to the business scenario;
[0012] Perform feature analysis on the received microphone audio to obtain the audio background noise 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] The microphone audio is digitally gained 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] Input the microphone audio to the analog gain adjustment feedback link corresponding to the ADC audio channel, and perform 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 comprises:
[0022] Compare 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 the microphone gain 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 the microphone gain audio, the step 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] And return 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 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, used to determine a business scenario of an application, and determine a target digital gain value and a target analog gain value of the received microphone audio according to the business scenario;
[0035] An initial gain module, used 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, used for 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;
[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 objectives, the present application also proposes a vehicle-mounted adaptive microphone audio gain device, which includes: a memory, a processor, and a computer program stored in the memory and executable 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 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, and when the computer program is executed by a processor, the steps of the vehicle-mounted adaptive microphone audio gain method as described above are implemented.
[0041] One or more technical solutions proposed in the present 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, respectively 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, 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 drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[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 for an embodiment of a 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 the embodiment of the present application.
[0048] The purpose, features and advantages of this application will be further described 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 only used to explain the technical solutions of the present application and are not used 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 gained 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 manner or based on preset rules, 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] The present application provides a solution that can adjust both the analog gain and the digital gain of the audio input of the vehicle-mounted microphone, and realize the analog / digital gain adjustment of the microphone audio of multi-channel and multi-application services in different scenarios. An application at the application layer judges and calculates the digital gain and analog gain of the required microphone audio in real time according to its own business scenario; the application layer sets the analog gain of the ADC audio channel of its own application through the gain adjustment feedback channel; the application layer sets the digital gain of the DSP audio channel of its own application through the gain adjustment feedback channel; through the digital or analog gain adjustment of multiple audio channels, each application at the application layer realizes the required microphone audio gain. It is also real-time, and can judge and calculate the required audio gain value in real time, and adjust it as needed to ensure the real-time and accuracy of audio acquisition. It can adaptively calculate and set the audio gain value in a closed loop according to the changes in different application business scenarios and the vehicle-mounted microphone environment to meet the business needs of different applications, realize multi-application multi-channel adjustment, and the system supports digital or analog gain adjustment of multiple audio channels. The mutually exclusive logic enables different applications to independently adjust the gain value of their audio channels, and realize 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 adaptive adjustment of the required microphone audio gain for various applications 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 running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, a vehicle-mounted adaptive microphone audio gain device, etc. The following takes the vehicle-mounted 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 business scenarios refer to application types in the vehicle computer application layer. Depending on the application type, the permissions required to call the microphone are also different. For example, the vehicle computer application layer may include voice applications, driving recorder applications, video applications, external speaking applications, social applications, etc. Different types of applications will call on 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 the business scenario and are used to adjust the gain levels of the digital gain and analog gain of the microphone audio.
[0062] In the specific implementation, in order to ensure the accuracy of audio gain, the current application of the vehicle application layer can be obtained, and the current business scenario is determined according to the current application. The gain strategy is determined according to the current business scenario, including the correspondence between the microphone audio and the target analog gain value and the target digital gain value.
[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 according to the business scenario;
[0065] Perform feature analysis on the received microphone audio to obtain the audio background noise 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, and 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 according to 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 the 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 computer application layer can obtain the audio information played through the microphone based on the sound played by the application, process it based on ADC (analog-to-digital converter) and DSP (digital signal processing chip), and transmit the processed audio to the vehicle computer application layer through the vehicle computer 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, the audio signal is processed based on ADC to obtain an analog gain value, the microphone audio is digitally gained, 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 analogly 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] Input the microphone audio to the analog gain adjustment feedback link corresponding to the ADC audio channel, and perform 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 values of the microphone audio channels 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 values of the microphone audio channels belonging to different applications on the DSP chip.
[0075] Step S30 , respectively 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.
[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; in this way, the input microphone audio noise floor D can be maintained in a dynamic and reasonable range at all times, 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 (analog gain is main, digital gain is auxiliary) corresponding to the low amplitude mapping relationship are searched according to the size of the F 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, the compensation value of the digital feedback gain value is determined according to the analog feedback gain value, the comprehensive gain value is obtained according to the analog feedback gain value, the digital feedback gain value and the compensation value, and the microphone audio is gained according to the comprehensive gain value to obtain the microphone gain audio. Specifically, in order to ensure that the gain of the final microphone audio output to the application or algorithm does not produce a large amplitude change and realize the final adaptive characteristics, it is necessary to use Gd to compensate for the adjustment of Ga, that is, the value change of Ga must be added back by Gd and other values (including negative values), that is, Gda = -Gas, so the gain output to the application or algorithm should be a comprehensive value. For example, when the audio background noise 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 higher than a certain set value and F is lower than a certain set value range (this kind of situation is generally not encountered in practice, and this example is given to illustrate the strategy): comprehensive value = Gdg + Gag + Gas + Gda (where the analog gain adjustment feedback value setting is Gag + Gas, and the digital gain adjustment feedback value setting is Gdg + Gda). In order to further improve the accuracy, user feedback data can also be collected, such as whether the user is satisfied with the current application experience, such as voice recognition results, recording volume, whether the user thinks the noise interference is large, etc. Use these feedback data for adaptive learning and continuously optimize 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 the 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] And return 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 recaptured 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 and the target analog gain value are compared, and the digital gain value and the target digital gain value are compared respectively to obtain the analog feedback gain value and the digital feedback gain value to perform audio gain again.
[0084] In addition, through the digital or analog gain adjustment of multiple audio channels, each application at the application layer can obtain the required microphone audio gain. This includes: multi-channel mechanism, mutual exclusion logic, practicality and closed-loop control. Among them, multi-channel mechanism: ADC and DSP both need to set multiple audio channels, while ensuring that each channel can be set with a different gain, and through the independent and adaptive adjustment of the digital or analog gain of multiple audio channels, each application at the application layer can obtain the required microphone audio gain.
[0085] This embodiment provides a vehicle-mounted adaptive microphone audio gain method, by 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, respectively 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, and performing gain on the microphone audio according to the analog feedback gain value and the digital feedback gain value to obtain a microphone gain audio, which can enhance the sensitivity of the microphone and facilitate the adaptive adjustment of the required microphone audio gain by each application on the vehicle system. Mutually exclusive logic: Mutually exclusive logic needs to be formulated at the application layer for multiple audio channels to ensure that the microphone recording focus is only used by one application, so as to ensure that the obtained microphone audio gain is not interfered with by other channels. For example, when voice is used, if the microphone recording of other applications is forcibly enabled, such as the external shouting function, the voice will automatically exit the recognition and give up the microphone recording focus. Real-time and closed-loop control: The application layer will continuously analyze the audio signal data and dynamically adjust the gain value in real time according to the judgment strategy. After the gain is set, the output audio gain is adjusted, and the application layer then analyzes the input audio to achieve closed-loop control. This real-time adjustment can ensure that the quality of the audio signal is always maintained in 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 comprises:
[0088] A scenario determination module 10 is used to determine a business scenario of an application, and determine a target digital gain value and a target analog gain value of 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, used to compare 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;
[0091] The audio gain module 40 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.
[0092] The vehicle-mounted adaptive microphone audio gain device provided by the present application adopts the vehicle-mounted adaptive microphone audio gain method in the above embodiment, which can solve the technical problem of poor audio gain effect due to the use of fixed gain in the prior art. Compared with the prior art, the beneficial effect of the vehicle-mounted adaptive microphone audio gain device provided by the present application is the same as the beneficial effect of the vehicle-mounted adaptive microphone audio gain method provided by the above embodiment, and other technical features in the vehicle-mounted adaptive microphone audio gain device are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0093] The present application provides a vehicle-mounted 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 that can be executed 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 vehicle-mounted 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 embodiment of the present application. The vehicle-mounted adaptive microphone audio gain device in the embodiment 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), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 4 The vehicle-mounted adaptive microphone audio gain device shown is merely an example and should not bring any limitation to 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 processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the vehicle-mounted adaptive microphone audio gain device are also stored. The processing device 1001, ROM1002, and RAM1004 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 may be connected to the I / O interface 1006: input devices 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 1003 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 1009. The communication device 1009 may allow the vehicle-mounted adaptive microphone audio gain device to communicate wirelessly or wired with other devices to exchange data. Although the figure shows a vehicle-mounted adaptive microphone audio gain device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems may be implemented or have instead.
[0096] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a 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 through 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 vehicle-mounted adaptive microphone audio gain device provided by the present application adopts the vehicle-mounted adaptive microphone audio gain method in the above embodiment, which can solve the technical problem of poor audio gain effect due to the use of fixed gain in the prior art. Compared with the prior art, the beneficial effect of the vehicle-mounted adaptive microphone audio gain device provided by the present application is the same as the beneficial effect of the vehicle-mounted adaptive microphone audio gain method provided by the above embodiment, and the other technical features of the vehicle-mounted adaptive microphone audio gain device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0098] It should be understood that the various parts disclosed in this application can be implemented by 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 is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0100] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) 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 the present 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 of the above. 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 of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination 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 of the above.
[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] Respectively 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;
[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 separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of 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., via the Internet using an Internet service provider).
[0109] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the 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 square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square 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 square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0110] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0111] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned vehicle-mounted adaptive microphone audio gain method, and can solve the technical problem that the audio gain effect of the prior art is poor due to the use of fixed gain. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the vehicle-mounted adaptive microphone audio gain method provided by the above-mentioned embodiment, and will not be repeated here.
[0112] The present application also provides a computer program product, including 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 by the present application can solve the technical problem that the audio gain in the prior art is poor due to the use of fixed gain. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the vehicle-mounted adaptive microphone audio gain method provided by the above embodiment, and will not be repeated here.
[0114] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications 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 comprises: 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; 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; Respectively 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; The microphone audio is gained according to the analog feedback gain value and the digital feedback gain value to obtain microphone gain audio.
2. The method according to claim 1, characterized in that The step of determining a target digital gain value and a target analog gain value according to the received microphone audio according to the business scenario comprises: Determine a gain strategy according to the business scenario; Perform feature analysis on the received microphone audio to obtain the audio background noise 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, characterized in that 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; The microphone audio is digitally gained based on the audio amplitude to obtain a digital gain value.
4. The method according to claim 3, characterized in that 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; Input the microphone audio to the analog gain adjustment feedback link corresponding to the ADC audio channel, and perform 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.
5. The method according to claim 1, characterized in that 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: Compare 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.
6. The method according to claim 1, characterized in that The step of gaining the microphone audio according to the analog feedback gain value and the digital feedback gain value to obtain the microphone gain audio comprises: 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.
7. The method according to any one of claims 1 to 6, characterized in that After the step of gaining the microphone audio according to the analog feedback gain value and the digital feedback gain value to obtain the 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; And return 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.
8. A vehicle-mounted adaptive microphone audio gain device, characterized in that: The device comprises: A scenario determination module, used to determine a business scenario of an application, and determine a target digital gain value and a target analog gain value of the received microphone audio according to the business scenario; An initial gain module, used 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, used for 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; 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.
9. A vehicle-mounted adaptive microphone audio gain device, characterized in that: The device comprises: 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 7.
10. 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 7 are implemented.
Citation Information
Patent Citations
Microphone with adjustable signal processing
CN114946195A
Sound scene simulation method, device and equipment, storage medium and vehicle
CN117093176A
Method and apparatus for voice enhacement in a vehicle
KR102306739B1
Adaptive gain adjustment system
US20120133411A1
Microphone calibration method, device, and mobile terminal, and storage medium
WO2017113899A1
Cited By
Self-adaptive noise elimination method, device and equipment
CN119626194A
