Vehicle-mounted sound mixing method and deviceTechnical Field
The invention relates to the field of automobile voice, in particular to a vehicle-mounted sound mixing method and a device thereof.
Background
In recent years, with the development of software for various types of vehicles, there are increasing demands for audio provided to drivers by in-vehicle multimedia, including entertainment-based multimedia audio signals, guidance audio signals based on navigation driving, and warning guidance audio signals based on safety-assisted driving. When the multiple audio frequencies are required to be played simultaneously, the vehicle only has four fixed loudspeakers at most, and the audio signals are generally processed and output in a mixing mode, such as a mode based on multimedia entertainment audio, a mixed navigation prompt or a safe driving prompt, but the mixed audio signals similar to the navigation prompt and the safe driving prompt have a big noise problem, and are played only in a short time, so that the multimedia entertainment signals with the original normal high-fidelity requirement are interfered by the noise of the mixed channel if the mixed channel is opened for a long time, and the hearing enjoyment of a driver is influenced.
The existing solution is to perform volume processing on multiple channels, so as to output a relatively comfortable volume, such as CN201610276920.5, but this method cannot eliminate noise interference of a mixing channel, and in a time period where mixing is not needed, the volume of the mixed audio is reduced, and the signal amplitude of the multimedia audio is increased, so as to increase the signal-to-noise ratio of the multimedia audio, so that the noise is relatively reduced, but this method easily causes distortion of the multimedia signal due to too large amplitude.
In addition, the method can bring a certain delay through software judgment, and the delay makes the opening time of the mixing channel not follow the playing time of the audio, which often leads to the situation that the audio is already played and the mixing channel is not opened yet, so that a driver can only hear a part of or not hear the content needing mixing audio. In addition, if the mixed voice is not from the own system scheme but is directly introduced into the system through an external device, it cannot be processed through a software control manner.
Disclosure of Invention
The invention aims to solve the problems that the existing vehicle-mounted sound mixing cannot simultaneously have the advantages of noise interference elimination, sound mixing delay, comfortable volume, control universality and simple structure.
In order to solve the above problems, the present invention provides a vehicle-mounted sound mixing method, including the following steps:
s10: setting a noise reference amplitude value;
s20: processing the input mixed voice signal;
s30: comparing the amplitude of the processed mixed voice signal with the noise reference amplitude, if the amplitude of the mixed voice signal is smaller than or equal to the noise reference amplitude, jumping to S50, otherwise jumping to S40;
s40: opening a sound mixing channel, mixing the processed mixed voice signal with a multimedia sound source, and then jumping to S20;
s50: the mixing channel is closed and then a transition is made to S20.
By setting a noise reference value, the input mixed voice signals are uniformly processed, whether the mixed voice signals are noise is judged by the processed mixed voice signals and the noise reference value, and common sound channel noise is generally filtered by the previous processing steps, so that the mixed voice signals which are generally lower than the noise reference value are all residual noise signals, the amplitude values of the residual noise signals are smaller than the noise reference value, a sound mixing channel cannot be opened, otherwise, a useful mixed voice signal can be opened, and by the method, the method does not need to distinguish whether the source of the sound is the scheme of the system, reduces the complexity of the scheme, improves the reaction efficiency, and can process the noise in the sound channel.
Step S40 includes the following steps:
s41: carrying out time delay processing on the mixed voice signal with the amplitude larger than the noise reference amplitude;
s42: the mixing channel is opened, the processed mixed voice signal is mixed with the multimedia sound source, and then, the process goes to S20.
By carrying out time delay processing on the mixed voice signal ready to enter the sound mixing channel, a useful information section (namely a frequency band larger than a noise reference value) in the signal can be ensured to avoid that a part of useful information is not mixed into a sound channel due to the fact that the sound mixing channel is slowly opened in the signal transmission process, so that a driver cannot hear complete information.
S20 includes the steps of:
s21: filtering the input mixed voice signal;
s22: and amplifying the input mixed voice signal.
By filtering the input mixed voice signal, part of noise can be directly filtered, the audio quality is improved, and the subsequent audio amplification step can be prevented from amplifying part of noise to influence the subsequent amplitude comparison and judgment. Amplifying the input mixed voice signal can enable the useful information segment to be clearly heard by the driver after the subsequent sound mixing.
S10 includes the steps of:
s11: setting a noise reference amplitude value;
s12: a mixing channel is set.
Through setting for the channel of mixing sound, can make relevant mixing sound embody only in a certain sound channel, can not play in whole car, improve the comfort level of taking of passenger in the car.
Step S40 includes the following steps:
s42: the mixing channel is opened up and the mixing channel is opened,
s43: the processed mixed voice signal is mixed with the selected channel of the multimedia sound source, and then, it goes to S20.
The utility model provides a vehicle-mounted sound mixing device, includes signal processing module, detection module, switch module, signal processing module be connected with detection module, detection module be connected with switch module, detection module can control switch module's break-make. Through directly setting up above each module in inside, can be no matter the audio frequency source, directly handle the audio frequency, improve the throughput of audio frequency, detection module can directly control switch module through the testing result in addition, has guaranteed the accuracy of switch, also improves switch module's break-make speed in addition, reduces the time of delaying the broadcast for the driver receives relevant audio information more quickly.
The signal processing module comprises a voice filtering module and a voice amplifying module, the voice filtering module is connected with the voice amplifying module, and the voice amplifying module is connected with the detection module. The two modules can preprocess the input audio, and improve the judgment precision of the subsequent detection module.
The voice delay module is arranged between the detection module and the switch module. The delay module can solve the problem that in the process that the detection module closes the switch module and the closing process of the switch module requires time, the relevant audio information cannot pass through the switch module in advance after reaching the switch module, so that the loss of useful information is caused.
The invention has the following beneficial effects:
1. the mixed voice signal can be completely and clearly output. Through the filtering and noise reduction processing in the early stage and the delay processing of the subsequent useful information segment, the mixed voice signals to be output can be completely mixed and clearly played.
2. The method can completely reject the interference of the noise of the mixed channel to the multimedia audio in the time without mixing navigation prompt tone or safe driving prompt tone, and play the multimedia music with high fidelity.
3. The universality is strong. It is possible to process audio signals within the in-vehicle system or in an external system.
4. The structure is simple. The invention has simple structure and has great advantages in cost and maintenance compared with the existing complex software control method.
Drawings
Fig. 1 is a flowchart of a method of a vehicle-mounted audio mixing method according to the present invention.
Fig. 2 is a hardware schematic diagram of a vehicle-mounted sound mixing method and a device thereof according to the present invention.
Detailed Description
The following detailed description of the preferred embodiments of the present invention, taken in conjunction with the accompanying drawings, will make the advantages and features of the invention more readily appreciated by those skilled in the art, and thus will more clearly define the scope of the invention.
Example 1
First, a noise reference amplitude is set, and the reference value can be set through parameters of a circuit structure and can also be stored in a corresponding information storage medium. Meanwhile, the sound mixing channel can be set, the sound mixing channel refers to different external channels, 4 loudspeakers are arranged in the vehicle, the 4 sound mixing channels can be simply considered to be arranged, and the number of the set sound mixing channels can be 1 or several. When processing, firstly, processing is performed on an input mixed voice signal, and the processing mode can be processed in a circuit mode, or can also be processed through a software algorithm in a microprocessor, and specifically includes processing contents of filtering, amplifying, frequency modulation, noise reduction and the like on the signal. After the input signal is processed, the processed signal is compared with the noise reference amplitude in real time, the sound mixing channel is opened under the condition that the amplitude is larger than the noise reference amplitude, the opening and closing of the channel are determined according to the real-time comparison result because the amplitude comparison is real-time comparison, and the sound mixing channel is immediately closed when the compared amplitude is smaller than the noise reference amplitude. The useful information segment after entering the sound mixing channel can be mixed according to the preset sound mixing channel, and mixed audio is output under the appointed channel.
Example 2
As shown in fig. 1 and fig. 2, the multimedia sound source in the car is used as the basic sound source, and the signal emitted from the sound source to be mixed is called mixed voice signal. Including audio frequency processing module and vehicle MCU module in the car, the vehicle MCU module, the loudspeaker of the inside 4 different sound channels of vehicle, the vehicle MCU module is connected with audio frequency processing module, audio frequency processing module is connected respectively with the loudspeaker of the inside 4 different sound channels of vehicle, vehicle MCU can control audio frequency processing module promptly and carry out work, and audio frequency control module can handle the audio frequency of outside input, then send for different sound channels loudspeaker through relevant control command and carry out the sound production. The voice mixing device comprises a voice filtering module, a voice amplifying module, a detecting module, a delay module and a switch module, wherein a sound source to be mixed is connected with the filtering module, the output end of the voice filtering module is connected with the input end of the voice amplifying module, the output end of the voice amplifying module is connected with the detecting module, the output end of the detecting module is connected with the delay module, the output end of the delay module is connected with the switch module, and meanwhile, the detecting module can control the on-off of the switch module. The output end of the switch module is connected with the audio control module.
The sound sources to be mixed are connected for a long time under the condition of being switched on, namely, the sound sources send out audio signals for a long time, but the audio signals sent by the sound sources for a long time are not all useful information sections, when the useful information is not generated in the sound sources, the sent audio information is theoretically 0, but more noise is often generated due to the transmission environment and the action of internal electronic elements.
After the voice frequency mixer is connected with the voice frequency mixer, the voice frequency to be mixed continuously sends out voice frequency to the voice frequency mixer, the voice frequency to be mixed is required to be mixed, the voice frequency to be mixed is filtered in real time through a voice filter, the filter is specifically a band-pass filter, the range of the filter is 20 Hz-20 Khz, after the voice frequency mixer passes through the filter, real-time filtered voice is amplified by a voice amplifier, the voice is amplified to a proper amplitude value, and the amplified voice is sent to a detection module. The detection module is provided with a noise reference amplitude, and the noise reference amplitude is specifically an amplitude value. The detection module compares the audio to be mixed transmitted in real time with the noise reference amplitude, if the amplitude is smaller than the noise reference amplitude, the audio is not operated, at the moment, the real-time voice signal still can enter the delay module through the detection module, the real-time voice signal is output in a delayed mode, the delayed time is related to the operation time of the switch module, and when the delayed voice signal is output, the signal cannot be output because the switch signal is not closed; when the amplitude is larger than the noise reference amplitude, the detection module controls the switch module to be closed, so that the audio to be mixed can enter the audio processing module to be mixed through the switch module. Because the delay module delays the real-time voice signal, the delay time is the same as the action time of the switch module, and the transmission time of the signal under the environment is ignored, the useful information can be ensured to be completely output. After the audio signal is received by the audio processing module, the audio signal is mixed according to a preset program and is output, and the whole audio mixing process is completed.
The embodiments of the present invention have been described in detail with reference to the drawings, but the present invention is not limited to the above embodiments, and various changes can be made within the knowledge of those skilled in the art without departing from the gist of the present invention.