WO2018076540A1 - Volume control method, device and system for on-board speakers - Google Patents

Volume control method, device and system for on-board speakers Download PDF

Info

Publication number
WO2018076540A1
WO2018076540A1 PCT/CN2016/113664 CN2016113664W WO2018076540A1 WO 2018076540 A1 WO2018076540 A1 WO 2018076540A1 CN 2016113664 W CN2016113664 W CN 2016113664W WO 2018076540 A1 WO2018076540 A1 WO 2018076540A1
Authority
WO
WIPO (PCT)
Prior art keywords
volume
value
car
vehicle
speakers
Prior art date
Application number
PCT/CN2016/113664
Other languages
French (fr)
Chinese (zh)
Inventor
汪义平
Original Assignee
广州视源电子科技股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 广州视源电子科技股份有限公司 filed Critical 广州视源电子科技股份有限公司
Publication of WO2018076540A1 publication Critical patent/WO2018076540A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2430/00Signal processing covered by H04R, not provided for in its groups
    • H04R2430/01Aspects of volume control, not necessarily automatic, in sound systems

Definitions

  • the present invention relates to the field of electronic technologies, and in particular, to a volume control method, apparatus, and system for a car speaker.
  • in-vehicle electronic devices deployed in automobiles are becoming more and more abundant, such as car navigation devices, vehicle warning devices, and in-vehicle multimedia entertainment devices.
  • the above devices emit navigation warning sounds and driving warning sounds through the car speakers.
  • multimedia entertainment sounds which make people more convenient, safe and comfortable driving.
  • the output volume of the car speaker is too large, which brings a lot of inconvenience.
  • the manual adjustment of the output volume of the speaker is required, the operation is troublesome, and the driver's attention is easily dispersed, and the driving is increased. The danger.
  • the appearance of the volume control device of the car speaker solves the above problem to some extent, and can automatically adjust the output volume of the car speaker according to the change of the sound signal collected by the microphone in the car.
  • the prior art adopts a one-size-fits-all control method, that is, the output volume of all the speakers in the car is adjusted by the same amplitude according to the collected sound signal, and cannot be adjusted according to the position of the sound source of the collected sound signal.
  • the output volume of the speakers distributed throughout the compartment has a poor user experience.
  • the technical problem to be solved by the present invention is to provide a method, a device and a system for controlling the volume of a vehicle-mounted speaker, which can adjust the output volume of a speaker distributed throughout the vehicle according to the sound source position of the sound signal collected by the microphone. Effectively improve the user experience.
  • an aspect of an embodiment of the present invention provides a volume control method for a car speaker, the method comprising:
  • the step S12 includes:
  • the volume influence value of the onboard microphone picked up to the vocal signal is set to a first preset value, and The volume influence value of the in-vehicle microphone that has not picked up the vocal signal is set to a second preset value.
  • the step S12 further includes:
  • the step S12 includes:
  • the volume influence value of each of the on-vehicle microphones is separately calculated according to the noise signal in the sound signal picked up by each of the on-vehicle microphones.
  • the calculating according to the noise signal in the sound signal of each of the in-vehicle microphones, the volume influence value of each of the in-vehicle microphones, specifically:
  • Each noise signal strength is multiplied by an influence coefficient to obtain a volume influence value of each of the in-vehicle microphones; wherein the influence coefficient is determined by the intensity of the influence of the noise on the volume.
  • the method further includes:
  • each type of the audio signal is pre-configured with vocal detection information corresponding thereto; the vocal detection information is used to determine whether vocal detection is required; The vocal detection information configured according to the type of the currently outputted audio signal determines whether vocal detection is required.
  • step S14 specifically includes:
  • the output volume of each of the onboard speakers is adjusted to a corresponding target volume value.
  • the adjusting the output volume of each car speaker to the corresponding target volume value is specifically:
  • the output volume of each of the onboard speakers is gradually adjusted to a corresponding target volume value.
  • the gradually adjusting the output volume of each car speaker to the corresponding target volume value includes:
  • the output volume of each of the car speakers is adjusted to a corresponding current transition volume value.
  • the method further includes:
  • its current transition volume value is set to its target volume value, respectively.
  • an aspect of an embodiment of the present invention further provides a volume control device for a car speaker, the device comprising:
  • a sound signal acquiring module configured to respectively acquire sound signals picked up by the N car microphones
  • a volume influence value setting module configured to respectively set a volume influence value of each of the N car microphones according to the sound signal
  • a weighted volume adjustment value calculation module configured to calculate, according to a volume influence value of each of the N car microphones and an influence weight value of each of the car microphones on the mth car speaker of the M car speakers a weighted volume adjustment value of the mth car speaker to obtain a weighted volume adjustment value of each of the M car speakers; wherein the influence weight value is according to each of the car microphones and the first m is determined by the distance between the car speakers; m is a positive integer less than or equal to M; and,
  • an output volume adjustment module configured to adjust an output volume of the corresponding car speaker according to the weighted volume adjustment value of each of the car speakers.
  • the volume influence value setting module comprises:
  • a first volume influence value setting unit configured to: when a vocal sound detection is required, and when at least one of the sound signals is detected to have the vocal signal, a volume effect of a car microphone that picks up the vocal signal The value is set to a first preset value, and a volume influence value of the in-vehicle microphone that has not been picked up to the vocal signal is set to a second preset value.
  • the volume influence value setting module further includes:
  • a second volume influence value setting unit configured to detect noise in the sound signal picked up by each of the vehicle-mounted microphones when vocal sound detection is required, and when the vocal signal is not detected in the sound signal The signals respectively calculate the volume influence value of each of the in-vehicle microphones.
  • the volume influence value setting module comprises:
  • a third volume influence value setting unit configured to calculate, respectively, a volume influence value of each of the in-vehicle microphones according to a noise signal in the sound signal picked up by each of the in-vehicle microphones when the human voice detection is not required.
  • the device further comprises:
  • An audio type detecting module configured to detect a type of an audio signal currently output by the M car speakers; wherein each type of the audio signal is pre-configured with a corresponding voice detection information; the voice detection information is used for determining Whether vocal testing is required; and,
  • the vocal detection requirement determination module is configured to determine whether vocal detection is required according to the vocal detection information configured by the type of the currently output audio signal.
  • the output volume adjustment module specifically includes:
  • a target volume value obtaining unit configured to separately calculate a sum of a weighted volume adjustment value of each of the onboard speakers and a set volume value thereof to obtain a target volume value of each of the onboard speakers, respectively;
  • an output volume adjusting unit configured to adjust an output volume of each of the car speakers to a corresponding target volume value.
  • the output volume adjustment unit is specifically configured to:
  • the output volume of each of the onboard speakers is gradually adjusted to a corresponding target volume value.
  • the output volume adjustment unit includes:
  • a current output volume acquisition subunit configured to acquire a current output volume of each of the onboard speakers
  • a difference calculation subunit configured to separately calculate a difference between a current output volume of each of the onboard speakers and a target volume value thereof
  • a preset condition determining subunit configured to respectively determine whether an absolute value of a difference between a current output volume of each of the onboard speakers and a target volume value thereof satisfies a preset condition; wherein the preset condition is a current output volume of the onboard speaker The absolute value of the difference from the target volume value is less than a preset threshold;
  • an output volume adjustment subunit configured to respectively adjust an output volume of each of the onboard speakers to a corresponding current transition volume value.
  • the device further comprises:
  • the transition volume value setting subunit for the onboard speaker that satisfies the preset condition, respectively sets its current transition volume value to its target volume value.
  • an aspect of an embodiment of the present invention further provides a volume control system for an in-vehicle speaker, the system comprising: N car speakers, M car microphones, and volume control devices of the car speakers provided in the above embodiments.
  • the method, device and system for controlling the volume of the vehicle-mounted speaker acquire the sound signals picked up by each of the vehicle-mounted microphones respectively, and adjust the distribution weights according to the different influence weights of each of the vehicle-mounted microphones on the respective vehicle-mounted speakers.
  • FIG. 1 is a schematic flow chart of an embodiment of a volume control method of a vehicle-mounted speaker provided by the present invention
  • FIG. 2 is a schematic structural diagram of an embodiment of a volume control device for a vehicle-mounted speaker provided by the present invention
  • FIG. 3 is a flow chart showing an embodiment of a volume control system for a vehicle-mounted speaker provided by the present invention.
  • An aspect of an embodiment of the present invention provides a volume control method for a car speaker.
  • FIG. 1 is a schematic flowchart diagram of an embodiment of a volume control method for a vehicle-mounted speaker provided by the present invention, where the method includes the following steps:
  • the car microphone is an audio input device disposed in the car body for picking up the sound signal and converting it into an electric signal. Therefore, the sound signal acquired at this time is actually an electric signal converted by the microphone.
  • the existing microphones are mainly classified into three types: omnidirectionality, bidirectionality, and unidirectionality.
  • a unidirectional microphone is preferably used, and the optimal sound receiving angle is a small-range tapered area, so that the target sound signal can be picked up more accurately.
  • the tapered area can be used to cover only one seat of the microphone, and in order to achieve better vocal pickup. The effect is that the microphone can be placed in a position in the compartment that is closer to the human mouth.
  • the microphone can be placed directly above each seat in the compartment, so that the best sound angle of the microphone is a cone area directly below it, and just covers the seat directly below it, so when someone in the compartment When speaking, the microphone directly above the seat can pick up the vocal signal from the person, and the microphone installed at other positions is less likely to pick up the vocal signal, so that the vocal source can be more accurately determined.
  • the volume influence value of the car microphone indicates the influence of the car microphone on the output volume of all the car speakers in the car, and affects the adjustment direction and the adjustment range of the output volume of a car speaker.
  • the factor is the volume influence value of each car microphone in the car.
  • the value range of the volume influence value is [-100, +100]. When the volume influence value is positive, it indicates that the output volume of the car speaker increases, and the negative value indicates The output volume is attenuated. A value of zero indicates that the output volume is constant, and the absolute value of the volume influence value is larger, and the corresponding increase or attenuation is larger, and vice versa.
  • one aspect factor affecting the adjustment direction and the adjustment range of the output volume is the volume influence of each car microphone in the car.
  • the value is another factor that affects the direction and extent of adjustment of its output volume, which is the weight of each car microphone that affects the car speaker.
  • each car microphone that picks up a vocal signal in the car has an influence on the output volume of the car speaker, and, according to The horizontal distance of each microphone to the car speaker is different, and the weight of each microphone affects the output volume of the car speaker is different. The closer the car microphone is to the car speaker, the greater the weight of the car speaker's output volume. Big.
  • a weighted volume adjustment value can be obtained by combining the above two factors, and the weighted volume adjustment value is based on the currently picked up sound of each car microphone in the car.
  • the output volume of the car speaker needs to be adjusted by the amount of volume change.
  • the weighted volume adjustment value of the on-board speaker is -20 scale, which means that the output volume of the on-board speaker needs to be attenuated by 20 scales, that is, the output volume needs to be adjusted to 30 scales.
  • the weighted volume adjustment value is calculated as
  • V mt is the weighted volume adjustment value of the mth car speaker
  • V n is the volume influence value of the nth car microphone among the N car microphones
  • n is a positive integer less than or equal to N
  • P nm is the nth The influence weight of the car microphone on the mth car speaker
  • K 1 is the unit coefficient.
  • N car microphones and M car speakers in the car are installed, that is, after their relative positions are determined, respectively, the level of each of the N car microphones to the M car speakers is acquired.
  • Distance, thereby, N ⁇ M horizontal distances can be measured, and then the influence weight value of the nth car microphone to M speakers is calculated according to the horizontal distance between the nth car microphone and the M speakers, n
  • the positive integers in the interval [1, N] are sequentially taken to obtain an N ⁇ M weight matrix P.
  • the P nm described above is its matrix element, and P nm represents N in the car microphone.
  • influence weight values of the nth car microphone on the M car speakers are inversely proportional to the horizontal distance between them, that is, the farther the horizontal distance between the two, the smaller the influence weight of the car microphone on the car speaker is. ,on the contrary.
  • the value of n is 1, and the first vehicle is acquired.
  • the horizontal distances d 1 , d 2 , d 3 , d 4 , d 5 and d 6 from the microphone to the six car speakers, and the intermediate variable A is set.
  • Matrix element m takes the values in the positive integers in the interval [1, M] in order to obtain the matrix elements of the first column of the weight matrix P: P 11 , P 12 , P 13 , P 14 , P 15 , P 16 ,
  • the matrix elements in the first column are the weights of the influence of the first microphone on the first, second, third, and sixth sixth car speakers.
  • the value of n is 2, which can be calculated.
  • the weighted volume adjustment value indicates the amount of change of the volume.
  • the weighted volume adjustment value of a certain car speaker is calculated to be -20 scale, and the current volume setting value of the car speaker is 50 scale. , means that the output volume of the car speaker needs to be attenuated by 20 scales, that is, the output volume of the car speaker needs to be adjusted to 30 scales.
  • the step S12 includes:
  • the volume influence value of the onboard microphone picked up to the vocal signal is set to a first preset value, and The volume influence value of the in-vehicle microphone that has not picked up the vocal signal is set to a second preset value.
  • the vocal signal refers to an external vocal signal, that is, a sound signal emitted by a person in the vehicle, and if a person in the cabin speaks, the voice signal of the voice is detected as the vocal signal.
  • the vocal played in the car speaker does not belong to the vocal signal, for example, the car speaker is playing the radio, the car microphone records the radio signal of the radio, and when the vocal detection is performed, the radio person picked up by the car microphone The sound is not detected as the vocal signal.
  • the vocal detection can be implemented by the prior art.
  • the car speaker can be cancelled by an algorithm such as echo cancellation.
  • the vocal being played is eliminated, leaving only external vocal signals for vocal detection.
  • the effect of the microphone that picks up the vocal signal on all the car speakers in the car is that the output volume of all the car speakers in the car is attenuated, while the microphone pair that does not pick up the vocal signal The output volume of all speakers in the compartment has no effect.
  • the first preset value is -U
  • the second preset value is 0
  • U is a positive constant that is preset according to user requirements
  • -U indicates that the output volume of the car speaker is attenuated by U units, and the volume is Use "scale" as the unit.
  • the volume influence value of the car microphone picked up to the vocal signal is -U, and for any one of the M car speakers, only one middle of the process of calculating the weighted volume adjustment value is performed.
  • the parameter does not mean that the output volume of the car speaker is thus attenuated - U units, how much the output volume of the car speaker needs to be adjusted
  • the units are determined by the volume influence value of each car microphone in the car and the weight of each car microphone affecting the car speaker.
  • the step S12 further includes:
  • the microphone picks up the sound signal
  • a vocal signal such as a vocal signal currently being played by the speaker
  • a noise signal such as a sound signal currently being played by the speaker
  • the noise signal refers to characteristic background noise when the vehicle is running, such as tire noise, wind noise, and air conditioning noise.
  • the noise signal picked up by the car microphone will affect the volume influence value of the car microphone, thereby affecting the interior of the car.
  • the calculating according to the noise signal in the sound signal of each of the vehicle-mounted microphones, the volume influence value of each of the vehicle-mounted microphones, specifically:
  • Each noise signal strength is multiplied by an influence coefficient to obtain a volume influence value of each of the in-vehicle microphones; wherein the influence coefficient is determined by the intensity of the influence of the noise on the volume.
  • the calculation formula of the volume influence value of the nth car microphone of the N car microphones is:
  • V n Y n *K 2
  • V n is the n th volume affects the value of vehicle microphone
  • Y n is the intensity of the noise signal n-th sound signal picked up by a microphone in the vehicle is, Y n of the value interval [0,100]
  • K 2 For the influence coefficient, the influence coefficient is a constant set by the user according to actual demand, indicating the degree of influence of noise on the output volume of the car speaker. The larger the influence coefficient is, the greater the influence of noise on the volume is, and the smaller the influence coefficient is. The smaller the influence of noise on the volume; since K 2 is a constant, in actual cases, the larger the noise intensity Y n is, the larger V n is.
  • K 3 is a unit coefficient, which has the same meaning as K 1 described above, and the value is also the same as K 1 ;
  • U is a positive constant that is preset according to user requirements, and U represents a car speaker as described above.
  • the output volume is increased by U units, and the volume is measured in "scale".
  • the step S12 includes:
  • the volume influence value of each of the on-vehicle microphones is separately calculated according to the noise signal in the sound signal picked up by each of the on-vehicle microphones.
  • the vocal detection is not performed, but the volume influence value of each car microphone is calculated according to the noise signal in the sound signal picked up by the microphone, that is, even if a phono signal is picked up by a certain car microphone, the person The sound signal also does not affect the volume influence value of the car microphone, and the noise signal picked up by the car microphone affects the volume influence value of the car microphone, thereby affecting the output volume of all the car speakers in the car.
  • the calculating according to the noise signal in the sound signal of each of the vehicle-mounted microphones, the volume influence value of each of the vehicle-mounted microphones, specifically:
  • Each noise signal strength is multiplied by an influence coefficient to obtain a volume influence value of each of the in-vehicle microphones; wherein the influence coefficient is determined by the intensity of the influence of the noise on the volume.
  • the method for calculating the volume influence value of the nth car microphone among the N car microphones and the above “when all the car microphones in the car have not picked up the vocal signal” The calculation method of the volume influence value of the n car microphones is the same, and will not be described here.
  • the method further includes:
  • each type of the audio signal is pre-configured with vocal detection information corresponding thereto; the vocal detection information is used to determine whether vocal detection is required;
  • the vocal detection information configured according to the type of the currently outputted audio signal determines whether vocal detection is required.
  • multimedia sound refers to sounds such as music, radio and radio.
  • the traffic warning sound refers to the sounds such as tire pressure alarm, water temperature alarm and door alarm.
  • the navigation sound refers to the sound of the navigation broadcast of the car navigation system.
  • the vocal detection information corresponding thereto is pre-configured for each type of audio signal, indicating whether vocal detection is performed when the car speaker currently plays this type of sound, for example, preset
  • the vocal detection information of the fixed multimedia sound indicates that vocal detection is required, and when it is detected that the type of sound currently played by the on-board speaker is a multimedia sound, it is determined that vocal detection is required; and the vocal detection information indicating the driving warning sound is preset
  • the vocal detection is not required, when it is detected that the type of sound currently being played by the on-board speaker is a driving warning sound, it is determined that vocal detection is not required.
  • the on-board speaker when it is detected that the type of sound currently being played by the on-board speaker is a driving warning sound, It is determined that vocal detection is not required, and even if the car microphone detects the vocal signal in the car, the output volume of the car speaker is not lowered according to the vocal signal, so that the person in the car can hear the clear warning sound to make the car
  • the inside person can take timely measures according to the driving warning sound to ensure the safety of driving.
  • step S14 specifically includes:
  • the output volume of each of the onboard speakers is adjusted to a corresponding target volume value.
  • the set volume value is 50 scales. If at some time, the vehicle microphone in the vehicle body picks up the vocal signal, and the vocal detection is required, and according to the interior of the vehicle. In the case of the sound signal picked up by the car microphone, it is calculated that the weighted volume adjustment value of the car speaker is -20 scale, and then the 50 scale and the -20 scale are added, and the target volume value of the car speaker is obtained as 30. Scale, the output volume of the car speaker can be adjusted from 50 to 30 scales. Then, if the situation of the sound signal picked up by the car microphone in the car is changed, the corresponding weighted volume adjustment value of the car speaker is changed. When it is -40 scale, the 50 scale and -40 scale are added, and the target volume value of the car speaker is 10 scales, and the output volume of the car speaker can be adjusted from 30 scales to 10 scales.
  • the adjusting the output volume of each car speaker to the corresponding target volume value is specifically:
  • the output volume of each of the onboard speakers is gradually adjusted to a corresponding target volume value.
  • the weighted volume adjustment value can be directly added to the set volume value, and the output volume is outputted at one time. Adjust to the target volume value, but in the case of a large weighted volume value, such adjustment method will be relatively blunt, so that the listener sounds very differently, and the human ear does not have a process of adaptation, which is easy for the human ear and Human psychology causes harm and the user experience is not good.
  • the output volume is subjected to numerical gradation processing, and a plurality of numerical gradation processing methods can be selected, for example, the volume setting value and weight of a certain car speaker.
  • the volume adjustment values are 50 scale and -20 scale respectively, then you can set a gradient amount to 5 scales. According to this gradient amount, the output volume of the car speaker is adjusted from 50 to 45, and then adjusted to 45 by 45.
  • the scale is adjusted from 40 to 35, until the output volume of the car speaker is adjusted to the target volume value of 30, and the adjustment task is completed.
  • the output volume of the car speaker gradually changes to the target volume value
  • the buffer adjustment is implemented by using the sound gradation method, and the control of the sound hopping is better realized, and the occurrence of the blasting sound can be suppressed, so that the sound sounds more. Natural, more pleasing to the ear, it is good for the health of the listener and improves the user experience.
  • the gradually adjusting the output volume of each car speaker to the corresponding target volume value includes:
  • the output volume of each of the car speakers is adjusted to a corresponding current transition volume value.
  • the magnitude of the coefficient of variation K affects the time required for the output volume of the car speaker to reach the target volume value.
  • the smaller the K value the volume of the output is adjusted from the volume setting value to the target volume value. The longer it takes, the opposite.
  • a preferred numerical gradation processing method is provided.
  • the gradual manner provided in the embodiment is exemplified.
  • the set volume value and the weighted volume adjustment value are respectively 50 scales.
  • the adjustment process of the output volume is as follows:
  • the method further includes:
  • its current transition volume value is set to its target volume value, respectively.
  • the method further includes a step of setting the transition volume value directly to the target volume value for the car speaker whose absolute difference between the current output volume and the target volume value is less than a preset threshold. In this case, you can ensure that the output volume is adjusted to the target volume value every time, which improves the accuracy of the adjustment.
  • an aspect of the embodiment of the present invention further provides a volume control device for a vehicle-mounted speaker, which can implement all the processes in the volume control method of the vehicle-mounted speaker provided by one aspect of the embodiments of the present invention.
  • the volume control device 10 of the vehicle-mounted speaker includes:
  • the sound signal acquiring module 11 is configured to respectively acquire sound signals picked up by the N car microphones;
  • the volume influence value setting module 12 is configured to separately set a volume influence value of each of the N car microphones according to the sound signal;
  • the weighted volume adjustment value calculation module 13 is configured to calculate, according to a volume influence value of each of the N car microphones and an influence weight value of each of the car microphones on the mth car speaker in the M car speakers a weighted volume adjustment value of the mth car speaker to obtain a weighted volume adjustment value of each of the M car speakers; wherein the influence weight value is according to each of the car microphones and the The distance between the mth car speakers is determined; m is a positive integer less than or equal to M; and,
  • the output volume adjustment module 14 is configured to adjust an output volume of the corresponding car speaker according to the weighted volume adjustment value of each of the car speakers.
  • the volume influence value setting module 12 includes:
  • a first volume influence value setting unit configured to: when a vocal sound detection is required, and when at least one of the sound signals is detected to have the vocal signal, a volume effect of a car microphone that picks up the vocal signal The value is set to a first preset value, and a volume influence value of the in-vehicle microphone that has not been picked up to the vocal signal is set to a second preset value.
  • the volume influence value setting module 12 further includes:
  • a second volume influence value setting unit configured to detect noise in the sound signal picked up by each of the vehicle-mounted microphones when vocal sound detection is required, and when the vocal signal is not detected in the sound signal The signals respectively calculate the volume influence value of each of the in-vehicle microphones.
  • the second volume influence value setting unit specifically includes:
  • a first noise intensity acquisition subunit configured to acquire, in the sound signal picked up by each of the vehicle microphones, when the voice signal is detected and the voice signal is detected Noise signal strength;
  • a first volume influence value calculation subunit configured to respectively multiply each noise signal strength by an influence coefficient to obtain a volume influence value of each of the onboard microphones; wherein the influence coefficient is an influence intensity of the noise on the volume To determine.
  • the volume influence value setting module 12 includes:
  • a third volume influence value setting unit configured to calculate, respectively, a volume influence value of each of the in-vehicle microphones according to a noise signal in the sound signal picked up by each of the in-vehicle microphones when the human voice detection is not required.
  • the third volume influence value setting unit specifically includes:
  • a second noise intensity acquisition subunit configured to respectively acquire a noise signal strength in the sound signal picked up by each of the vehicle microphones
  • a second volume influence value calculation subunit configured to respectively multiply each noise signal strength by an influence coefficient to obtain a volume influence value of each of the onboard microphones; wherein the influence coefficient is an influence intensity of the noise on the volume To determine.
  • the volume control device 10 of the vehicle-mounted speaker further includes:
  • An audio type detecting module configured to detect a type of an audio signal currently output by the M car speakers; wherein each type of the audio signal is pre-configured with a corresponding voice detection information; the voice detection information is used for determining Whether vocal testing is required; and,
  • the vocal detection requirement determination module is configured to determine whether vocal detection is required according to the vocal detection information configured by the type of the currently output audio signal.
  • the output volume adjustment module 14 includes:
  • a target volume value obtaining unit configured to separately calculate a sum of a weighted volume adjustment value of each of the onboard speakers and a set volume value thereof to obtain a target volume value of each of the onboard speakers, respectively;
  • an output volume adjusting unit configured to adjust an output volume of each of the car speakers to a corresponding target volume value.
  • the output volume adjustment unit is specifically configured to:
  • the output volume of each of the onboard speakers is gradually adjusted to a corresponding target volume value.
  • the output volume adjustment unit includes:
  • a current output volume acquisition subunit configured to acquire a current output volume of each of the onboard speakers
  • a difference calculation subunit configured to separately calculate a difference between a current output volume of each of the onboard speakers and a target volume value thereof;
  • a preset condition determining subunit configured to respectively determine whether an absolute value of a difference between a current output volume of each of the onboard speakers and a target volume value thereof satisfies a preset condition; wherein the preset condition is a current output volume of the onboard speaker The absolute value of the difference from the target volume value is less than a preset threshold;
  • an output volume adjustment subunit configured to respectively adjust an output volume of each of the onboard speakers to a corresponding current transition volume value.
  • the device further comprises:
  • the transition volume value setting subunit for the onboard speaker that satisfies the preset condition, respectively sets its current transition volume value to its target volume value.
  • the present invention also provides an embodiment of a volume control system for a car speaker.
  • FIG. 3 is a schematic structural diagram of an embodiment of a volume control system for a vehicle-mounted speaker provided by the present invention.
  • the volume control system of the vehicle-mounted speaker includes:
  • the method, device and system for controlling the volume of the vehicle-mounted speaker acquire the sound signals picked up by each of the vehicle-mounted microphones respectively, and adjust the distribution weights according to the different influence weights of each of the vehicle-mounted microphones on the respective vehicle-mounted speakers.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Abstract

A volume control method, device and system for on-board speakers. By acquiring a sound signal picked up by each on-board microphone, and according to the different influencing weight of each on-board microphone with respect to each on-board speaker, the influencing weight being determined by the distance between that on-board microphone and that on-board speaker, the method adjusts the output volume of on-board speakers which are distributed in different positions within the car, to different extents. The invention can adjust, according to the positions of the sound sources corresponding to the sound signals collected by the microphones, the output volume of on-board speakers distributed in different positions within the car to different extents, effectively improving user experience.

Description

车载扬声器的音量控制方法、装置及系统Volume control method, device and system for vehicle speaker 技术领域Technical field
本发明涉及电子技术领域,尤其涉及一种车载扬声器的音量控制方法、装置及系统。The present invention relates to the field of electronic technologies, and in particular, to a volume control method, apparatus, and system for a car speaker.
背景技术Background technique
随着汽车行业的稳定发展,汽车内配置的车载电子设备的种类越来越丰富,如车载导航设备、车载警示设备和车载多媒体娱乐设备等,上述设备通过车载扬声器发出导航提示音、行车警示音以及多媒体娱乐音,这使得人们能够更加便利、安全及舒适的行车。然而,在某些情况下,车载扬声器的输出音量过大,会带来诸多不便,传统方式中需要人手动调节扬声器的输出音量,操作较为麻烦,并且容易分散司机的注意力,加大了行车的危险性。With the steady development of the automotive industry, the types of in-vehicle electronic devices deployed in automobiles are becoming more and more abundant, such as car navigation devices, vehicle warning devices, and in-vehicle multimedia entertainment devices. The above devices emit navigation warning sounds and driving warning sounds through the car speakers. And multimedia entertainment sounds, which make people more convenient, safe and comfortable driving. However, in some cases, the output volume of the car speaker is too large, which brings a lot of inconvenience. In the conventional method, the manual adjustment of the output volume of the speaker is required, the operation is troublesome, and the driver's attention is easily dispersed, and the driving is increased. The danger.
车载扬声器的音量控制装置的出现从一定程度上解决了上述问题,能够根据车厢内麦克风采集到的声音信号的变化情况自动地调节车载扬声器的输出音量。然而,现有技术采用的是一刀切的控制方法,即,根据采集到的声音信号将车厢内所有扬声器的输出音量进行相同幅度的调节,无法根据采集到的声音信号的声源位置不同幅度地调整分布在车厢各处的扬声器的输出音量,用户体验不佳。The appearance of the volume control device of the car speaker solves the above problem to some extent, and can automatically adjust the output volume of the car speaker according to the change of the sound signal collected by the microphone in the car. However, the prior art adopts a one-size-fits-all control method, that is, the output volume of all the speakers in the car is adjusted by the same amplitude according to the collected sound signal, and cannot be adjusted according to the position of the sound source of the collected sound signal. The output volume of the speakers distributed throughout the compartment has a poor user experience.
发明内容Summary of the invention
本发明所要解决的技术问题在于,提供一种车载扬声器的音量控制方法、装置及系统,能够根据麦克风采集到的声音信号的声源位置不同幅度地调整分布在车厢各处的扬声器的输出音量,有效地提高了用户体验。The technical problem to be solved by the present invention is to provide a method, a device and a system for controlling the volume of a vehicle-mounted speaker, which can adjust the output volume of a speaker distributed throughout the vehicle according to the sound source position of the sound signal collected by the microphone. Effectively improve the user experience.
为了解决上述技术问题,本发明实施例的一个方面提供一种车载扬声器的音量控制方法,所述方法包括:In order to solve the above technical problem, an aspect of an embodiment of the present invention provides a volume control method for a car speaker, the method comprising:
S11、分别获取N个车载麦克风拾取到的声音信号;S11. Acquire sound signals picked up by N car microphones respectively;
S12、根据所述声音信号分别设置所述N个车载麦克风中每个车载麦克风的音量影响值;S12. Set a volume influence value of each of the N car microphones according to the sound signal.
S13、根据所述N个车载麦克风中每个车载麦克风的音量影响值和所述每个车载麦克风对M个车载扬声器中的第m个车载扬声器的影响权重值计算所述第m个车载扬声器的加权音量调整值,以获取所述M个车载扬声器中每个车载扬声器的加权音量调整值;其中,所述 影响权重值是根据所述每个车载麦克风和所述第m个车载扬声器之间的距离来确定的;m为小于或者等于M的正整数;S13. Calculate, according to a volume influence value of each of the N car microphones and an influence weight value of each of the car microphones on the mth car speakers of the M car speakers, calculate the mth car speaker Weighting the volume adjustment value to obtain a weighted volume adjustment value for each of the M car speakers; wherein The influence weight value is determined according to a distance between each of the in-vehicle microphones and the mth in-vehicle speaker; m is a positive integer less than or equal to M;
S14、根据所述每个车载扬声器的加权音量调整值调整对应车载扬声器的输出音量。S14. Adjust an output volume of the corresponding car speaker according to the weighted volume adjustment value of each of the car speakers.
优选地,所述步骤S12包括:Preferably, the step S12 includes:
当需要进行人声检测,且检测到所述声音信号中至少有一个具有所述人声信号时,将拾取到所述人声信号的车载麦克风的音量影响值设置为第一预设值,并将未拾取到所述人声信号的车载麦克风的音量影响值设置为第二预设值。When vocal detection is required, and at least one of the sound signals is detected to have the vocal signal, the volume influence value of the onboard microphone picked up to the vocal signal is set to a first preset value, and The volume influence value of the in-vehicle microphone that has not picked up the vocal signal is set to a second preset value.
优选地,所述步骤S12还包括:Preferably, the step S12 further includes:
当需要进行人声检测,且检测到所述声音信号中都不具有所述人声信号时,根据所述每个车载麦克风拾取到的声音信号中的噪声信号分别计算所述每个车载麦克风的音量影响值。When it is required to perform vocal detection, and detecting that the vocal signal is not included in the sound signal, calculating, according to the noise signal in the sound signal picked up by each of the vehicle microphones, each of the vehicle microphones The volume affects the value.
优选地,所述步骤S12包括:Preferably, the step S12 includes:
当不需要进行人声检测时,根据所述每个车载麦克风拾取到的声音信号中的噪声信号分别计算所述每个车载麦克风的音量影响值。When the vocal detection is not required, the volume influence value of each of the on-vehicle microphones is separately calculated according to the noise signal in the sound signal picked up by each of the on-vehicle microphones.
优选地,所述根据所述每个车载麦克风拾取到的声音信号中的噪声信号分别计算所述每个车载麦克风的音量影响值,具体包括:Preferably, the calculating, according to the noise signal in the sound signal of each of the in-vehicle microphones, the volume influence value of each of the in-vehicle microphones, specifically:
分别获取所述每个车载麦克风拾取到的声音信号中的噪声信号强度;Obtaining, respectively, a noise signal strength in the sound signal picked up by each of the vehicle microphones;
分别将每个噪声信号强度乘以影响系数,以得到所述每个车载麦克风的音量影响值;其中,所述影响系数是由噪声对音量的影响强度来确定的。Each noise signal strength is multiplied by an influence coefficient to obtain a volume influence value of each of the in-vehicle microphones; wherein the influence coefficient is determined by the intensity of the influence of the noise on the volume.
优选地,在所述步骤S11之后,所述步骤S12之前,还包括:Preferably, after the step S11, before the step S12, the method further includes:
检测所述M个车载扬声器当前输出的音频信号的类型;其中,每一个音频信号的类型预先配置了与其对应的人声检测信息;所述人声检测信息用于判断是否需要进行人声检测;根据当前输出的音频信号的类型所配置的人声检测信息判断是否需要进行人声检测。Detecting a type of the audio signal currently output by the M car speakers; wherein each type of the audio signal is pre-configured with vocal detection information corresponding thereto; the vocal detection information is used to determine whether vocal detection is required; The vocal detection information configured according to the type of the currently outputted audio signal determines whether vocal detection is required.
具体地,所述步骤S14具体包括:Specifically, the step S14 specifically includes:
分别计算所述每个车载扬声器的加权音量调整值和其设定音量值的和,以分别获得所述每个车载扬声器的目标音量值;Calculating, respectively, a sum of the weighted volume adjustment value of each of the onboard speakers and a set volume value thereof to obtain a target volume value of each of the onboard speakers;
将所述每个车载扬声器的输出音量调整至对应的目标音量值。The output volume of each of the onboard speakers is adjusted to a corresponding target volume value.
优选地,所述将每个车载扬声器的输出音量调整至对应的目标音量值具体为:Preferably, the adjusting the output volume of each car speaker to the corresponding target volume value is specifically:
将所述每个车载扬声器的输出音量逐渐调整至对应的目标音量值。The output volume of each of the onboard speakers is gradually adjusted to a corresponding target volume value.
进一步地,所述将每个车载扬声器的输出音量逐渐调整至对应的目标音量值,包括:Further, the gradually adjusting the output volume of each car speaker to the corresponding target volume value includes:
获取所述每个车载扬声器的当前输出音量;Obtaining a current output volume of each of the onboard speakers;
分别计算所述每个车载扬声器的当前输出音量与其目标音量值的差; Calculating, respectively, a difference between a current output volume of each of the onboard speakers and a target volume value thereof;
分别判断所述每个车载扬声器的当前输出音量与其目标音量值的差的绝对值是否满足预设条件;其中,预设条件为所述车载扬声器的当前输出音量与其目标音量值的差的绝对值小于预设的阈值;Determining, respectively, whether an absolute value of a difference between a current output volume of each of the onboard speakers and a target volume value thereof satisfies a preset condition; wherein the preset condition is an absolute value of a difference between a current output volume of the onboard speaker and a target volume value thereof Less than a preset threshold;
对于不满足所述预设条件的车载扬声器,按照预设的时间间隔分别计算其当前过渡音量值,且所述当前过渡音量值的计算公式为:V0=V3+[V2-(V3-V1)]·K;其中,V0为;V1为车载扬声器的设定音量值,V2为车载扬声器的加权音量调整值,K为预设的变化系数;V3为每个车载扬声器的当前输出音量;K小于或等于1;For the onboard speaker that does not satisfy the preset condition, the current transition volume value is respectively calculated according to the preset time interval, and the calculation formula of the current transition volume value is: V0=V3+[V2-(V3-V1)] · K; where V0 is; V1 is the set volume value of the car speaker, V2 is the weighted volume adjustment value of the car speaker, K is the preset coefficient of variation; V3 is the current output volume of each car speaker; K is less than or Equal to 1;
分别将所述每个车载扬声器的输出音量调整至对应的当前过渡音量值。The output volume of each of the car speakers is adjusted to a corresponding current transition volume value.
优选地,所述方法还包括:Preferably, the method further includes:
对于满足所述预设条件的车载扬声器,分别将其当前过渡音量值设置为其目标音量值。For the on-board speaker that satisfies the preset condition, its current transition volume value is set to its target volume value, respectively.
相应的,本发明实施例的一个方面还提供一种车载扬声器的音量控制装置,所述装置包括:Correspondingly, an aspect of an embodiment of the present invention further provides a volume control device for a car speaker, the device comprising:
声音信号获取模块,用于分别获取N个车载麦克风拾取到的声音信号;a sound signal acquiring module, configured to respectively acquire sound signals picked up by the N car microphones;
音量影响值设置模块,用于根据所述声音信号分别设置所述N个车载麦克风中每个车载麦克风的音量影响值;a volume influence value setting module, configured to respectively set a volume influence value of each of the N car microphones according to the sound signal;
加权音量调整值计算模块,用于根据所述N个车载麦克风中每个车载麦克风的音量影响值和所述每个车载麦克风对M个车载扬声器中的第m个车载扬声器的影响权重值计算所述第m个车载扬声器的加权音量调整值,以获取所述M个车载扬声器中每个车载扬声器的加权音量调整值;其中,所述影响权重值是根据所述每个车载麦克风和所述第m个车载扬声器之间的距离来确定的;m为小于或者等于M的正整数;以及,a weighted volume adjustment value calculation module, configured to calculate, according to a volume influence value of each of the N car microphones and an influence weight value of each of the car microphones on the mth car speaker of the M car speakers a weighted volume adjustment value of the mth car speaker to obtain a weighted volume adjustment value of each of the M car speakers; wherein the influence weight value is according to each of the car microphones and the first m is determined by the distance between the car speakers; m is a positive integer less than or equal to M; and,
输出音量调整模块,用于根据所述每个车载扬声器的加权音量调整值调整对应车载扬声器的输出音量。And an output volume adjustment module, configured to adjust an output volume of the corresponding car speaker according to the weighted volume adjustment value of each of the car speakers.
优选地,所述音量影响值设置模块包括:Preferably, the volume influence value setting module comprises:
第一音量影响值设置单元,用于当需要进行人声检测,且检测到所述声音信号中至少有一个具有所述人声信号时,将拾取到所述人声信号的车载麦克风的音量影响值设置为第一预设值,并将未拾取到所述人声信号的车载麦克风的音量影响值设置为第二预设值。a first volume influence value setting unit, configured to: when a vocal sound detection is required, and when at least one of the sound signals is detected to have the vocal signal, a volume effect of a car microphone that picks up the vocal signal The value is set to a first preset value, and a volume influence value of the in-vehicle microphone that has not been picked up to the vocal signal is set to a second preset value.
优选地,所述音量影响值设置模块还包括:Preferably, the volume influence value setting module further includes:
第二音量影响值设置单元,用于当需要进行人声检测,且检测到所述声音信号中都不具有所述人声信号时,根据所述每个车载麦克风拾取到的声音信号中的噪声信号分别计算所述每个车载麦克风的音量影响值。 a second volume influence value setting unit, configured to detect noise in the sound signal picked up by each of the vehicle-mounted microphones when vocal sound detection is required, and when the vocal signal is not detected in the sound signal The signals respectively calculate the volume influence value of each of the in-vehicle microphones.
优选地,所述音量影响值设置模块包括:Preferably, the volume influence value setting module comprises:
第三音量影响值设置单元,用于当不需要进行人声检测时,根据所述每个车载麦克风拾取到的声音信号中的噪声信号分别计算所述每个车载麦克风的音量影响值。And a third volume influence value setting unit configured to calculate, respectively, a volume influence value of each of the in-vehicle microphones according to a noise signal in the sound signal picked up by each of the in-vehicle microphones when the human voice detection is not required.
优选地,其特征在于,所述装置还包括:Preferably, the device further comprises:
音频类型检测模块,用于检测所述M个车载扬声器当前输出的音频信号的类型;其中,每一个音频信号的类型预先配置了与其对应的人声检测信息;所述人声检测信息用于判断是否需要进行人声检测;以及,An audio type detecting module, configured to detect a type of an audio signal currently output by the M car speakers; wherein each type of the audio signal is pre-configured with a corresponding voice detection information; the voice detection information is used for determining Whether vocal testing is required; and,
人声检测需求判定模块,用于根据当前输出的音频信号的类型所配置的人声检测信息判断是否需要进行人声检测。The vocal detection requirement determination module is configured to determine whether vocal detection is required according to the vocal detection information configured by the type of the currently output audio signal.
具体地,所述输出音量调整模块具体包括:Specifically, the output volume adjustment module specifically includes:
目标音量值获取单元,用于分别计算所述每个车载扬声器的加权音量调整值和其设定音量值的和,以分别获得所述每个车载扬声器的目标音量值;以及,a target volume value obtaining unit, configured to separately calculate a sum of a weighted volume adjustment value of each of the onboard speakers and a set volume value thereof to obtain a target volume value of each of the onboard speakers, respectively;
输出音量调整单元,用于将所述每个车载扬声器的输出音量调整至对应的目标音量值。And an output volume adjusting unit, configured to adjust an output volume of each of the car speakers to a corresponding target volume value.
优选地,所述输出音量调整单元具体用于:Preferably, the output volume adjustment unit is specifically configured to:
将所述每个车载扬声器的输出音量逐渐调整至对应的目标音量值。The output volume of each of the onboard speakers is gradually adjusted to a corresponding target volume value.
进一步地,所述输出音量调整单元包括:Further, the output volume adjustment unit includes:
当前输出音量获取子单元,用于获取所述每个车载扬声器的当前输出音量;差值计算子单元,用于分别计算所述每个车载扬声器的当前输出音量与其目标音量值的差;a current output volume acquisition subunit, configured to acquire a current output volume of each of the onboard speakers; a difference calculation subunit, configured to separately calculate a difference between a current output volume of each of the onboard speakers and a target volume value thereof;
预设条件判断子单元,用于分别判断所述每个车载扬声器的当前输出音量与其目标音量值的差的绝对值是否满足预设条件;其中,预设条件为所述车载扬声器的当前输出音量与其目标音量值的差的绝对值小于预设的阈值;a preset condition determining subunit, configured to respectively determine whether an absolute value of a difference between a current output volume of each of the onboard speakers and a target volume value thereof satisfies a preset condition; wherein the preset condition is a current output volume of the onboard speaker The absolute value of the difference from the target volume value is less than a preset threshold;
过渡音量值计算子单元,用于对于不满足所述预设条件的车载扬声器,按照预设的时间间隔分别计算其当前过渡音量值,且所述当前过渡音量值的计算公式为:V0=V3+[V2-(V3-V1)]·K;其中,V0为所述车载扬声器的当前过渡音量值;V1为所述车载扬声器的设定音量值,V2为所述车载扬声器的加权音量调整值,V3为所述车载扬声器的当前输出音量;K为预设的变化系数,K为小于1的正数;以及,The transition volume value calculation subunit is configured to calculate, for a car speaker that does not satisfy the preset condition, a current transition volume value according to a preset time interval, and the current transition volume value is calculated as: V0=V3+ [V2-(V3-V1)]·K; wherein, V0 is a current transition volume value of the car speaker; V1 is a set volume value of the car speaker, and V2 is a weighted volume adjustment value of the car speaker, V3 is the current output volume of the car speaker; K is a preset coefficient of variation, and K is a positive number less than 1;
输出音量调整子单元,用于分别将所述每个车载扬声器的输出音量调整至对应的当前过渡音量值。And an output volume adjustment subunit, configured to respectively adjust an output volume of each of the onboard speakers to a corresponding current transition volume value.
优选地,所述装置还包括:Preferably, the device further comprises:
过渡音量值设置子单元,对于满足所述预设条件的车载扬声器,分别将其当前过渡音量值设置为其目标音量值。 The transition volume value setting subunit, for the onboard speaker that satisfies the preset condition, respectively sets its current transition volume value to its target volume value.
相应的,本发明实施例的一个方面还提供一种车载扬声器的音量控制系统,所述系统包括:N个车载扬声器、M个车载麦克风以及上述实施例所提供的车载扬声器的音量控制装置。Correspondingly, an aspect of an embodiment of the present invention further provides a volume control system for an in-vehicle speaker, the system comprising: N car speakers, M car microphones, and volume control devices of the car speakers provided in the above embodiments.
实施本发明,具有如下有益效果:The implementation of the present invention has the following beneficial effects:
本发明实施例提供的车载扬声器的音量控制方法、装置及系统,通过分别获取每个车载麦克风拾取到的声音信号,根据每个车载麦克风对各个车载扬声器的不同影响权重,不同幅度地调整分布在车厢各处的车载扬声器的输出音量,其中,影响权重由车载麦克风和车载扬声器之间的距离来确定,可见,本发明实施例能够根据麦克风采集到的声音信号的声源位置不同幅度地调整分布在车厢各处的扬声器的输出音量,有效地提高了用户体验。The method, device and system for controlling the volume of the vehicle-mounted speaker provided by the embodiment of the present invention acquire the sound signals picked up by each of the vehicle-mounted microphones respectively, and adjust the distribution weights according to the different influence weights of each of the vehicle-mounted microphones on the respective vehicle-mounted speakers. The output volume of the vehicle-mounted speaker in the vehicle compartment, wherein the influence weight is determined by the distance between the vehicle-mounted microphone and the vehicle-mounted speaker. It can be seen that the embodiment of the present invention can adjust the distribution according to the sound source position of the sound signal collected by the microphone. The output volume of the speakers throughout the compartment effectively improves the user experience.
附图说明DRAWINGS
图1是本发明提供的车载扬声器的音量控制方法的一个实施例的流程示意图;1 is a schematic flow chart of an embodiment of a volume control method of a vehicle-mounted speaker provided by the present invention;
图2是本发明提供的车载扬声器的音量控制装置的一个实施例的结构示意图;2 is a schematic structural diagram of an embodiment of a volume control device for a vehicle-mounted speaker provided by the present invention;
图3是本发明提供的车载扬声器的音量控制系统的一个实施例的流程示意图。3 is a flow chart showing an embodiment of a volume control system for a vehicle-mounted speaker provided by the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
本发明实施例的一个方面提供一种车载扬声器的音量控制方法。An aspect of an embodiment of the present invention provides a volume control method for a car speaker.
请参阅图1,是本发明提供的车载扬声器的音量控制方法的一个实施例的流程示意图,所述方法包括如下步骤:Please refer to FIG. 1 , which is a schematic flowchart diagram of an embodiment of a volume control method for a vehicle-mounted speaker provided by the present invention, where the method includes the following steps:
S11、分别获取N个车载麦克风拾取到的声音信号;S11. Acquire sound signals picked up by N car microphones respectively;
其中,车载麦克风为设置在车厢内的音频输入设备,用于拾取声音信号并将其转化为电信号,因此,此时获取的声音信号实际为由麦克风转化后的电信号。The car microphone is an audio input device disposed in the car body for picking up the sound signal and converting it into an electric signal. Therefore, the sound signal acquired at this time is actually an electric signal converted by the microphone.
需要说明的是,根据麦克风对来自各个方向的声音的拾取能力,即对不同方向的声音的灵敏度,现有的麦克风主要分为三种:全指向性、双指向性和单指向性。It should be noted that, according to the pickup ability of the microphone for sounds from various directions, that is, the sensitivity to sounds in different directions, the existing microphones are mainly classified into three types: omnidirectionality, bidirectionality, and unidirectionality.
本发明实施例中,优选单指向性麦克风,其最佳收音角度为一个小范围锥形区域,因此,可以更精准地拾取目标声音信号。例如,当希望根据车厢内的人说话的情况灵活地控制分布在车厢内各处的扬声器的输出音量时,可选用锥形区域刚好覆盖一个座位的麦克风,并且,为了达到较好的人声拾取效果,可将麦克风设置在车厢内距离人嘴较近的位置。在具体实施 时,可将麦克风设置在车厢内每个座位的正上方,使麦克风的最佳收音角度为其正下方的一个锥形区域,且刚好覆盖其正下方的座位,因此,当车厢内的某个人说话时,其座位正上方的麦克风能够拾取到这个人发出的人声信号,而安装在其他位置的麦克风拾取到该人声信号的可能性很小,这样就可以更准确地确定人声声源。In the embodiment of the present invention, a unidirectional microphone is preferably used, and the optimal sound receiving angle is a small-range tapered area, so that the target sound signal can be picked up more accurately. For example, when it is desired to flexibly control the output volume of the speakers distributed throughout the vehicle according to the situation of the person in the cabin, the tapered area can be used to cover only one seat of the microphone, and in order to achieve better vocal pickup. The effect is that the microphone can be placed in a position in the compartment that is closer to the human mouth. In the implementation The microphone can be placed directly above each seat in the compartment, so that the best sound angle of the microphone is a cone area directly below it, and just covers the seat directly below it, so when someone in the compartment When speaking, the microphone directly above the seat can pick up the vocal signal from the person, and the microphone installed at other positions is less likely to pick up the vocal signal, so that the vocal source can be more accurately determined. .
S12、根据所述声音信号分别设置所述N个车载麦克风中每个车载麦克风的音量影响值;S12. Set a volume influence value of each of the N car microphones according to the sound signal.
需要说明的是,车载麦克风的音量影响值表示的是该车载麦克风对车厢内所有车载扬声器的输出音量的影响,对某个车载扬声器来说,影响其输出音量的调整方向和调整幅度的一方面因素,就是车厢内每一个车载麦克风的音量影响值,音量影响值的取值区间为[-100,+100],当音量影响值为正值时,表示车载扬声器的输出音量增加,负值表示输出音量衰减,零值表示输出音量不变,且音量影响值的绝对值越大,相应的增加或者衰减的幅度越大,反之。It should be noted that the volume influence value of the car microphone indicates the influence of the car microphone on the output volume of all the car speakers in the car, and affects the adjustment direction and the adjustment range of the output volume of a car speaker. The factor is the volume influence value of each car microphone in the car. The value range of the volume influence value is [-100, +100]. When the volume influence value is positive, it indicates that the output volume of the car speaker increases, and the negative value indicates The output volume is attenuated. A value of zero indicates that the output volume is constant, and the absolute value of the volume influence value is larger, and the corresponding increase or attenuation is larger, and vice versa.
S13、根据所述N个车载麦克风中每个车载麦克风的音量影响值和所述每个车载麦克风对M个车载扬声器中的第m个车载扬声器的影响权重值计算所述第m个车载扬声器的加权音量调整值,以获取所述M个车载扬声器中每个车载扬声器的加权音量调整值;其中,所述影响权重值是根据所述每个车载麦克风和所述第m个车载扬声器之间的距离来确定的;m为小于或者等于M的正整数;S13. Calculate, according to a volume influence value of each of the N car microphones and an influence weight value of each of the car microphones on the mth car speakers of the M car speakers, calculate the mth car speaker Weighting the volume adjustment value to obtain a weighted volume adjustment value of each of the M car speakers; wherein the influence weight value is based on between each of the car microphones and the mth car speaker Distance determined; m is a positive integer less than or equal to M;
需要说明的是,结合上文所述,对M个车载扬声器中的任一个车载扬声器来说,影响其输出音量的调整方向和调整幅度的一方面因素,是车厢内每一个车载麦克风的音量影响值,然而,影响其输出音量的调整方向和调整幅度的另一方面因素,是每一个车载麦克风对该车载扬声器的影响权重。例如,当需要进行人声检测时,对M个车载扬声器中的任一个车载扬声器来说,车厢内每一个拾取到了人声信号的车载麦克风都对该车载扬声器的输出音量有影响,并且,根据每一个麦克风到该车载扬声器的水平距离的不同,每一个麦克风对该车载扬声器的输出音量的影响权重也不同,距离该车载扬声器越近的车载麦克风,对该车载扬声器的输出音量的影响权重越大。因此,对M个车载扬声器中的任一个车载扬声器来说,结合上述两方面的因素计算可得到一个加权音量调整值,该加权音量调整值即为基于车厢内每一个车载麦克风当前拾取到的声音信号的情况,该车载扬声器的输出音量需要调整的音量变化量,例如,在当前环境下,某个车载扬声器的当前音量设定值为50刻度,根据车厢内每一个车载麦克风当前拾取到的声音信号的情况,计算得到该车载扬声器的加权音量调整值为-20刻度,则意味着该车载扬声器的输出音量需要衰减20刻度,即需要将输出音量调整至30刻度。It should be noted that, in combination with the above, for one of the M car speakers, one aspect factor affecting the adjustment direction and the adjustment range of the output volume is the volume influence of each car microphone in the car. The value, however, is another factor that affects the direction and extent of adjustment of its output volume, which is the weight of each car microphone that affects the car speaker. For example, when vocal detection is required, for any one of the M car speakers, each car microphone that picks up a vocal signal in the car has an influence on the output volume of the car speaker, and, according to The horizontal distance of each microphone to the car speaker is different, and the weight of each microphone affects the output volume of the car speaker is different. The closer the car microphone is to the car speaker, the greater the weight of the car speaker's output volume. Big. Therefore, for any one of the M car speakers, a weighted volume adjustment value can be obtained by combining the above two factors, and the weighted volume adjustment value is based on the currently picked up sound of each car microphone in the car. In the case of a signal, the output volume of the car speaker needs to be adjusted by the amount of volume change. For example, in the current environment, the current volume setting of a certain car speaker is 50 scales, according to the current sound of each car microphone in the car. In the case of the signal, it is calculated that the weighted volume adjustment value of the on-board speaker is -20 scale, which means that the output volume of the on-board speaker needs to be attenuated by 20 scales, that is, the output volume needs to be adjusted to 30 scales.
具体地,对于M个车载扬声器中的第m个车载扬声器来说,其加权音量调整值的计算公式为 Specifically, for the mth car speaker of the M car speakers, the weighted volume adjustment value is calculated as
Figure PCTCN2016113664-appb-000001
Figure PCTCN2016113664-appb-000001
其中,Vmt为第m个车载扬声器的加权音量调整值,Vn为N个车载麦克风中的第n个车载麦克风的音量影响值,n为小于或等于N的正整数;Pnm为第n个车载麦克风对第m个车载扬声器的影响权重值;K1为单位系数,对于确定的m,K1的大小为公式(1)中的n个影响权重值之和,例如,m=1时,则K1=P11+P21+P31+...+Pn1Where V mt is the weighted volume adjustment value of the mth car speaker, V n is the volume influence value of the nth car microphone among the N car microphones, n is a positive integer less than or equal to N; P nm is the nth The influence weight of the car microphone on the mth car speaker; K 1 is the unit coefficient. For the determined m, the size of K 1 is the sum of the n influence weight values in formula (1), for example, when m=1 , then K 1 = P 11 + P 21 + P 31 + ... + P n1 .
需要说明的是,当车厢内的N个车载麦克风和M个车载扬声器都安装好后,即它们的相对位置确定后,分别获取N个车载麦克风中的每个车载麦克风到M个车载扬声器的水平距离,由此,可测量得到N·M个水平距离,再根据第n个车载麦克风到M个扬声器之间的水平距离,分别计算第n个车载麦克风对M个扬声器的影响权重值,n在区间[1,N]内的正整数中依次取值,即可得到一个N×M的权值矩阵P,上文所述的Pnm即为其矩阵元,Pnm表示N个车载麦克风中的第n个车载麦克风对M个车载扬声器中的第m个车载扬声器的影响权重值。另外,第n个车载麦克风对M个车载扬声器的影响权重值与它们彼此之间的水平距离成反比,即两者之间的水平距离越远,该车载麦克风对该车载扬声器的影响权重越小,反之。It should be noted that when N car microphones and M car speakers in the car are installed, that is, after their relative positions are determined, respectively, the level of each of the N car microphones to the M car speakers is acquired. Distance, thereby, N·M horizontal distances can be measured, and then the influence weight value of the nth car microphone to M speakers is calculated according to the horizontal distance between the nth car microphone and the M speakers, n The positive integers in the interval [1, N] are sequentially taken to obtain an N × M weight matrix P. The P nm described above is its matrix element, and P nm represents N in the car microphone. The influence weight value of the nth car microphone on the mth car speaker among the M car speakers. In addition, the influence weight values of the nth car microphone on the M car speakers are inversely proportional to the horizontal distance between them, that is, the farther the horizontal distance between the two, the smaller the influence weight of the car microphone on the car speaker is. ,on the contrary.
具体地,下面以车载麦克风的总个数N=3以及车载扬声器的总个数M=6的情况举例说明权值矩阵P的计算过程,首先,n取值为1,分别获取第1个车载麦克风到6个车载扬声器的水平距离d1、d2、d3、d4、d5和d6,设置中间变量A,则
Figure PCTCN2016113664-appb-000002
则矩阵元
Figure PCTCN2016113664-appb-000003
m在区间[1,M]内的正整数中依次取值,即可得到权值矩阵P的第一列的矩阵元:P11、P12、P13、P14、P15、P16,上述第一列的矩阵元分别为第1个麦克风对第1个、第2个、第3个...第6个车载扬声器的影响权重值,同理类推,n取值为2,可计算得到权值矩阵P的第二列的矩阵元:P21、P22、P23、P24、P25、P26,上述第二列的矩阵元分别为第2个麦克风对第1个、第2个、第3个...第6个车载扬声器的影响权重值,以及,n取值为3,可计算得到权值矩阵P的第三列的矩阵元:P31、P32、P33、P34、P35、P36,上述第三列的矩阵元分别为第3个麦克风对第1个、第2个、第3个...第6个车载扬声器的影响权重值,由此,权值矩阵P为:
Specifically, the calculation process of the weight matrix P is exemplified by the case where the total number of the in-vehicle microphones N=3 and the total number of the in-vehicle speakers M=6. First, the value of n is 1, and the first vehicle is acquired. The horizontal distances d 1 , d 2 , d 3 , d 4 , d 5 and d 6 from the microphone to the six car speakers, and the intermediate variable A is set.
Figure PCTCN2016113664-appb-000002
Matrix element
Figure PCTCN2016113664-appb-000003
m takes the values in the positive integers in the interval [1, M] in order to obtain the matrix elements of the first column of the weight matrix P: P 11 , P 12 , P 13 , P 14 , P 15 , P 16 , The matrix elements in the first column are the weights of the influence of the first microphone on the first, second, third, and sixth sixth car speakers. Similarly, the value of n is 2, which can be calculated. Obtaining matrix elements of the second column of the weight matrix P: P 21 , P 22 , P 23 , P 24 , P 25 , P 26 , and the matrix elements of the second column are respectively the first microphone pair The influence weight values of the 2nd, 3rd, 6th car speakers, and n are 3, and the matrix elements of the third column of the weight matrix P can be calculated: P 31 , P 32 , P 33 , P 34 , P 35 , P 36 , the matrix elements of the third column are respectively the weights of influence of the third microphone pair on the first, second, third ... sixth car speaker, thereby , the weight matrix P is:
Figure PCTCN2016113664-appb-000004
Figure PCTCN2016113664-appb-000004
S14、根据所述每个车载扬声器的加权音量调整值调整对应车载扬声器的输出音量。S14. Adjust an output volume of the corresponding car speaker according to the weighted volume adjustment value of each of the car speakers.
在本发明实施例中,加权音量调整值表示的是音量的变化量,例如,计算得到某个车载扬声器的加权音量调整值为-20刻度,且该车载扬声器的当前音量设定值为50刻度,则意味着该车载扬声器的输出音量需要衰减20刻度,即需要将该车载扬声器的输出音量调整至30刻度。In the embodiment of the present invention, the weighted volume adjustment value indicates the amount of change of the volume. For example, the weighted volume adjustment value of a certain car speaker is calculated to be -20 scale, and the current volume setting value of the car speaker is 50 scale. , means that the output volume of the car speaker needs to be attenuated by 20 scales, that is, the output volume of the car speaker needs to be adjusted to 30 scales.
优选地,所述步骤S12包括:Preferably, the step S12 includes:
当需要进行人声检测,且检测到所述声音信号中至少有一个具有所述人声信号时,将拾取到所述人声信号的车载麦克风的音量影响值设置为第一预设值,并将未拾取到所述人声信号的车载麦克风的音量影响值设置为第二预设值。When vocal detection is required, and at least one of the sound signals is detected to have the vocal signal, the volume influence value of the onboard microphone picked up to the vocal signal is set to a first preset value, and The volume influence value of the in-vehicle microphone that has not picked up the vocal signal is set to a second preset value.
其中,所述人声信号指的是外部人声信号,即车厢内的人发出的声音信号,如车厢内有人说话,则这个说话的声音信号就会被检测为所述人声信号。然而,若是车载扬声器中播放的人声则不属于所述人声信号,例如车载扬声器正在播放电台,车载麦克风回录到了该电台声音信号,在进行人声检测时,车载麦克风拾取到的电台人声则不会被检测为所述人声信号。Wherein, the vocal signal refers to an external vocal signal, that is, a sound signal emitted by a person in the vehicle, and if a person in the cabin speaks, the voice signal of the voice is detected as the vocal signal. However, if the vocal played in the car speaker does not belong to the vocal signal, for example, the car speaker is playing the radio, the car microphone records the radio signal of the radio, and when the vocal detection is performed, the radio person picked up by the car microphone The sound is not detected as the vocal signal.
在本发明实施例中,人声检测可通过现有技术实现,例如当车载麦克风拾取到了外部人声信号,同时也回录到了车载扬声器播放的人声时,可通过回声消除等算法将车载扬声器播放的人声消除,只剩下外部人声信号,以实现人声检测。In the embodiment of the present invention, the vocal detection can be implemented by the prior art. For example, when the vehicle microphone picks up the external vocal signal and also records the vocal played by the car speaker, the car speaker can be cancelled by an algorithm such as echo cancellation. The vocal being played is eliminated, leaving only external vocal signals for vocal detection.
在本发明实施例中,当需要进行人声检测,且检测到车厢内至少有一个车载麦克风拾取到了人声信号时,车载麦克风是否拾取到人声信号将影响该车载麦克风的音量影响值,进而影响车厢内所有车载扬声器的输出音量,具体地,拾取到了人声信号的麦克风对车厢内所有车载扬声器的影响是使得车厢内所有车载扬声器的输出音量衰减,而未拾取到人声信号的麦克风对车厢内所有扬声器的输出音量没有影响。在具体实施中,第一预设值为-U,第二预设值为0,U是根据用户需求预先设定的一个正值常数,-U表示车载扬声器的输出音量衰减U个单位,音量以“刻度”作为单位。In the embodiment of the present invention, when vocal detection is required, and it is detected that at least one in-vehicle microphone in the vehicle body picks up a vocal signal, whether the PDA signal is picked up by the car microphone will affect the volume influence value of the car microphone, and further Affecting the output volume of all the car speakers in the car. Specifically, the effect of the microphone that picks up the vocal signal on all the car speakers in the car is that the output volume of all the car speakers in the car is attenuated, while the microphone pair that does not pick up the vocal signal The output volume of all speakers in the compartment has no effect. In a specific implementation, the first preset value is -U, the second preset value is 0, U is a positive constant that is preset according to user requirements, and -U indicates that the output volume of the car speaker is attenuated by U units, and the volume is Use "scale" as the unit.
然而,需要说明的是,拾取到人声信号的车载麦克风的音量影响值为-U,对M个车载扬声器中的任一个车载扬声器来说,仅仅是计算其加权音量调整值过程中的一个中间参量,并不表示该车载扬声器的输出音量就因此衰减-U个单位,该车载扬声器的输出音量需调整多少 个单位是由车厢内每个车载麦克风的音量影响值以及每个车载麦克风对该车载扬声器的影响权重共同决定的。However, it should be noted that the volume influence value of the car microphone picked up to the vocal signal is -U, and for any one of the M car speakers, only one middle of the process of calculating the weighted volume adjustment value is performed. The parameter does not mean that the output volume of the car speaker is thus attenuated - U units, how much the output volume of the car speaker needs to be adjusted The units are determined by the volume influence value of each car microphone in the car and the weight of each car microphone affecting the car speaker.
优选地,所述步骤S12还包括:Preferably, the step S12 further includes:
当需要进行人声检测,且检测到所述声音信号中都不具有所述人声信号时,根据所述每个车载麦克风拾取到的声音信号中的噪声信号分别计算所述每个车载麦克风的音量影响值。When it is required to perform vocal detection, and detecting that the vocal signal is not included in the sound signal, calculating, according to the noise signal in the sound signal picked up by each of the vehicle microphones, each of the vehicle microphones The volume affects the value.
需要说明的是,麦克风拾取声音信号时,可能会拾取到人声信号、噪声信号或者其他声音信号(如当前扬声器正在播放的声音信号)中的一种或者任意几种的组合。其中,所述噪声信号指的是车辆行驶时的特有背景噪声,如轮胎噪声、风噪声、以及空调噪声等。It should be noted that when the microphone picks up the sound signal, one or a combination of any of a vocal signal, a noise signal, or other sound signal (such as a sound signal currently being played by the speaker) may be picked up. Wherein, the noise signal refers to characteristic background noise when the vehicle is running, such as tire noise, wind noise, and air conditioning noise.
在本实施方式中,当需要进行人声检测,且检测到车厢内所有车载麦克风都没有拾取到人声信号时,车载麦克风拾取到的噪声信号将影响车载麦克风的音量影响值,进而影响车厢内所有车载扬声器的输出音量。In this embodiment, when the vocal detection is required, and it is detected that all the car microphones in the car do not pick up the vocal signal, the noise signal picked up by the car microphone will affect the volume influence value of the car microphone, thereby affecting the interior of the car. The output volume of all car speakers.
进一步地,所述根据所述每个车载麦克风拾取到的声音信号中的噪声信号分别计算所述每个车载麦克风的音量影响值,具体包括:Further, the calculating, according to the noise signal in the sound signal of each of the vehicle-mounted microphones, the volume influence value of each of the vehicle-mounted microphones, specifically:
分别获取所述每个车载麦克风拾取到的声音信号中的噪声信号强度;Obtaining, respectively, a noise signal strength in the sound signal picked up by each of the vehicle microphones;
分别将每个噪声信号强度乘以影响系数,以得到所述每个车载麦克风的音量影响值;其中,所述影响系数是由噪声对音量的影响强度来确定的。Each noise signal strength is multiplied by an influence coefficient to obtain a volume influence value of each of the in-vehicle microphones; wherein the influence coefficient is determined by the intensity of the influence of the noise on the volume.
具体地,当检测到所述声音信号中都不具有所述人声信号时,N个车载麦克风中的第n个车载麦克风的音量影响值的计算公式为:Specifically, when it is detected that none of the sound signals have the vocal signal, the calculation formula of the volume influence value of the nth car microphone of the N car microphones is:
Vn=Yn*K2 V n =Y n *K 2
其中,Vn为第n个车载麦克风的音量影响值,Yn为第n个车载麦克风拾取到的声音信号中的噪声信号的强度,Yn的取值区间为[0,100];K2为影响系数,所述影响系数是由用户根据实际需求设定的一个常数,表示噪声对车载扬声器输出音量的影响程度,影响系数越大,则噪声对音量的影响程度越大,影响系数越小,则噪声对音量的影响程度越小;由于K2为常数,因此,在实际情况中,噪声强度Yn越大,Vn越大。具体地,
Figure PCTCN2016113664-appb-000005
其中,K3为单位系数,与上文所述的K1意义相同,取值也与K1相同;U是根据用户需求预先设定的一个正值常数,同上文所述,U表示车载扬声器的输出音量增加U个单位,音量以“刻度”作为单位。
Wherein, V n is the n th volume affects the value of vehicle microphone, Y n is the intensity of the noise signal n-th sound signal picked up by a microphone in the vehicle is, Y n of the value interval [0,100]; K 2 For the influence coefficient, the influence coefficient is a constant set by the user according to actual demand, indicating the degree of influence of noise on the output volume of the car speaker. The larger the influence coefficient is, the greater the influence of noise on the volume is, and the smaller the influence coefficient is. The smaller the influence of noise on the volume; since K 2 is a constant, in actual cases, the larger the noise intensity Y n is, the larger V n is. specifically,
Figure PCTCN2016113664-appb-000005
Where K 3 is a unit coefficient, which has the same meaning as K 1 described above, and the value is also the same as K 1 ; U is a positive constant that is preset according to user requirements, and U represents a car speaker as described above. The output volume is increased by U units, and the volume is measured in "scale".
同样需要说明的是,在本实施方式中,当需要进行人声检测,且检测到车厢内所有车载麦克风都没有拾取到人声信号时,对M个车载扬声器中的任一个车载扬声器来说,其输出音量需调整多少个单位是由车厢内每个车载麦克风的音量影响值以及每个车载麦克风对该车载扬声器的影响权重共同决定的。 It should also be noted that, in the present embodiment, when it is required to perform vocal detection, and it is detected that all the car microphones in the vehicle do not pick up the vocal signal, for any one of the M car speakers, How many units of output volume need to be adjusted is determined by the volume influence value of each car microphone in the car and the weight of each car microphone affecting the car speaker.
优选地,所述步骤S12包括:Preferably, the step S12 includes:
当不需要进行人声检测时,根据所述每个车载麦克风拾取到的声音信号中的噪声信号分别计算所述每个车载麦克风的音量影响值。When the vocal detection is not required, the volume influence value of each of the on-vehicle microphones is separately calculated according to the noise signal in the sound signal picked up by each of the on-vehicle microphones.
在本实施方式中,可根据用户需求设定不需要进行人声检测的情况,例如当前车载扬声器正在播放行车警示音。在这种情况下,不进行人声检测,而是根据麦克风拾取到的声音信号中的噪声信号分别计算每个车载麦克风的音量影响值,即某个车载麦克风即使拾取到了人声信号,该人声信号也不会影响该车载麦克风的音量影响值,而由该车载麦克风拾取到的噪声信号影响该车载麦克风的音量影响值,进而影响车厢内所有车载扬声器的输出音量。In the present embodiment, it is possible to set a situation in which vocal detection is not required according to user requirements, for example, the current vehicle speaker is playing a driving warning sound. In this case, the vocal detection is not performed, but the volume influence value of each car microphone is calculated according to the noise signal in the sound signal picked up by the microphone, that is, even if a phono signal is picked up by a certain car microphone, the person The sound signal also does not affect the volume influence value of the car microphone, and the noise signal picked up by the car microphone affects the volume influence value of the car microphone, thereby affecting the output volume of all the car speakers in the car.
进一步地,所述根据所述每个车载麦克风拾取到的声音信号中的噪声信号分别计算所述每个车载麦克风的音量影响值,具体包括:Further, the calculating, according to the noise signal in the sound signal of each of the vehicle-mounted microphones, the volume influence value of each of the vehicle-mounted microphones, specifically:
分别获取所述每个车载麦克风拾取到的声音信号中的噪声信号强度;Obtaining, respectively, a noise signal strength in the sound signal picked up by each of the vehicle microphones;
分别将每个噪声信号强度乘以影响系数,以得到所述每个车载麦克风的音量影响值;其中,所述影响系数是由噪声对音量的影响强度来确定的。Each noise signal strength is multiplied by an influence coefficient to obtain a volume influence value of each of the in-vehicle microphones; wherein the influence coefficient is determined by the intensity of the influence of the noise on the volume.
具体地,本实施方式中,N个车载麦克风中的第n个车载麦克风的音量影响值的计算方法与上文所述的“当车厢内所有车载麦克风都没有拾取到人声信号时”的第n个车载麦克风的音量影响值的计算方法相同,此处不加赘述。Specifically, in the present embodiment, the method for calculating the volume influence value of the nth car microphone among the N car microphones and the above “when all the car microphones in the car have not picked up the vocal signal” The calculation method of the volume influence value of the n car microphones is the same, and will not be described here.
优选地,在所述步骤S11之后,所述步骤S12之前,还包括:Preferably, after the step S11, before the step S12, the method further includes:
检测所述M个车载扬声器当前输出的音频信号的类型;其中,每一个音频信号的类型预先配置了与其对应的人声检测信息;所述人声检测信息用于判断是否需要进行人声检测;Detecting a type of the audio signal currently output by the M car speakers; wherein each type of the audio signal is pre-configured with vocal detection information corresponding thereto; the vocal detection information is used to determine whether vocal detection is required;
根据当前输出的音频信号的类型所配置的人声检测信息判断是否需要进行人声检测。The vocal detection information configured according to the type of the currently outputted audio signal determines whether vocal detection is required.
其中,在实际应用中,车载扬声器中可以播放多种类型的音频信号,例如多媒体音、行车警示音和导航提示音等等。其中,多媒体音指的是音乐、广播和电台等声音,行车警示音指的是胎压报警、水温报警和车门报警等声音,导航提示音指的是车载导航系统的导航播报的声音。Among them, in practical applications, various types of audio signals, such as multimedia sounds, driving warning sounds, and navigation sounds, can be played in the car speaker. Among them, multimedia sound refers to sounds such as music, radio and radio. The traffic warning sound refers to the sounds such as tire pressure alarm, water temperature alarm and door alarm. The navigation sound refers to the sound of the navigation broadcast of the car navigation system.
需要说明的是,在本实施方式中,对每个音频信号的类型都预先配置与其对应的人声检测信息,表示当车载扬声器当前播放这个类型的声音时,是否进行人声检测,例如预先设定多媒体音的人声检测信息表示需要进行人声检测,则当检测到车载扬声器当前播放的声音类型是多媒体音时,判定需要进行人声检测;预先设定行车警示音的人声检测信息表示不需要进行人声检测,则当检测到车载扬声器当前播放的声音类型是行车警示音时,判定不需要进行人声检测。It should be noted that, in the present embodiment, the vocal detection information corresponding thereto is pre-configured for each type of audio signal, indicating whether vocal detection is performed when the car speaker currently plays this type of sound, for example, preset The vocal detection information of the fixed multimedia sound indicates that vocal detection is required, and when it is detected that the type of sound currently played by the on-board speaker is a multimedia sound, it is determined that vocal detection is required; and the vocal detection information indicating the driving warning sound is preset When the vocal detection is not required, when it is detected that the type of sound currently being played by the on-board speaker is a driving warning sound, it is determined that vocal detection is not required.
在本实施方式中,可在检测到车载扬声器当前正在播放的声音的类型为行车警示音时, 判定不需要进行人声检测,即使车厢内有车载麦克风检测到了人声信号,也不根据人声信号调低车载扬声器的输出音量,这样能够保证车厢内的人听清楚行车警示音,以使车厢内的人能够根据行车警示音及时采取措施,保证了行车安全。In this embodiment, when it is detected that the type of sound currently being played by the on-board speaker is a driving warning sound, It is determined that vocal detection is not required, and even if the car microphone detects the vocal signal in the car, the output volume of the car speaker is not lowered according to the vocal signal, so that the person in the car can hear the clear warning sound to make the car The inside person can take timely measures according to the driving warning sound to ensure the safety of driving.
具体地,所述步骤S14具体包括:Specifically, the step S14 specifically includes:
分别计算所述每个车载扬声器的加权音量调整值和其设定音量值的和,以分别获得所述每个车载扬声器的目标音量值;Calculating, respectively, a sum of the weighted volume adjustment value of each of the onboard speakers and a set volume value thereof to obtain a target volume value of each of the onboard speakers;
将所述每个车载扬声器的输出音量调整至对应的目标音量值。The output volume of each of the onboard speakers is adjusted to a corresponding target volume value.
需要说明的是,对于每个车载扬声器来说,都存在一个设定音量值,该设定音量值是用户根据实际需求通过车载设备中的物理旋钮或者物理按键来输入的,它只根据用户的输入来改变。It should be noted that for each car speaker, there is a set volume value, which is input by the user according to actual needs through a physical knob or a physical button in the in-vehicle device, which is only based on the user's Enter to change.
在本实施方式中,对于某个车载扬声器来说,设定音量值是50刻度,若在某个时刻,车厢内有车载麦克风拾取到了人声信号,且需要进行人声检测,且根据车厢内的车载麦克风拾取到的声音信号的情况,计算得到该车载扬声器的加权音量调整值为-20刻度,则将50刻度和-20刻度进行加和,则可以得到该车载扬声器的目标音量值为30刻度,将该车载扬声器的输出音量从50刻度调整至30刻度即可,随后,若车厢内的车载麦克风拾取到的声音信号的情况发生了改变,对应计算得到该车载扬声器的加权音量调整值变成了-40刻度,则将50刻度和-40刻度进行加和,得到该车载扬声器的目标音量值为10刻度,将该车载扬声器的输出音量从30刻度调整至10刻度即可。In the present embodiment, for a certain car speaker, the set volume value is 50 scales. If at some time, the vehicle microphone in the vehicle body picks up the vocal signal, and the vocal detection is required, and according to the interior of the vehicle. In the case of the sound signal picked up by the car microphone, it is calculated that the weighted volume adjustment value of the car speaker is -20 scale, and then the 50 scale and the -20 scale are added, and the target volume value of the car speaker is obtained as 30. Scale, the output volume of the car speaker can be adjusted from 50 to 30 scales. Then, if the situation of the sound signal picked up by the car microphone in the car is changed, the corresponding weighted volume adjustment value of the car speaker is changed. When it is -40 scale, the 50 scale and -40 scale are added, and the target volume value of the car speaker is 10 scales, and the output volume of the car speaker can be adjusted from 30 scales to 10 scales.
优选地,所述将每个车载扬声器的输出音量调整至对应的目标音量值具体为:Preferably, the adjusting the output volume of each car speaker to the corresponding target volume value is specifically:
将所述每个车载扬声器的输出音量逐渐调整至对应的目标音量值。The output volume of each of the onboard speakers is gradually adjusted to a corresponding target volume value.
需要说明的是,对M个车载扬声器中的任一个车载扬声器来说,获取到了其加权音量调整值后,可以直接在其设定音量值上加上加权音量调整值,一次性将其输出音量调整至目标音量值,但是,在加权音量值较大的情况下,这样的调整方式会比较生硬,使得听者听起来声音的变化很大,人耳没有一个适应的过程,容易对人耳和人心理造成伤害,且用户体验不佳。It should be noted that, for any one of the M car speakers, after obtaining the weighted volume adjustment value, the weighted volume adjustment value can be directly added to the set volume value, and the output volume is outputted at one time. Adjust to the target volume value, but in the case of a large weighted volume value, such adjustment method will be relatively blunt, so that the listener sounds very differently, and the human ear does not have a process of adaptation, which is easy for the human ear and Human psychology causes harm and the user experience is not good.
在实施方式中,获取到每个车载扬声器的加权音量调整值后,对输出音量做数值渐变处理,有很多种数值渐变处理的方式可以选择,例如,某个车载扬声器的音量设定值和加权音量调整值为分别为50刻度和-20刻度,则可以设置一个渐变量为5刻度,按照这个渐变量先将该车载扬声器的输出音量由50刻度调整至45刻度,再由45刻度调整至40刻度,再由40刻度调整至35刻度,直至该车载扬声器的输出音量调整到了目标音量值30刻度,则完成调整任务。 In the embodiment, after the weighted volume adjustment value of each car speaker is obtained, the output volume is subjected to numerical gradation processing, and a plurality of numerical gradation processing methods can be selected, for example, the volume setting value and weight of a certain car speaker. The volume adjustment values are 50 scale and -20 scale respectively, then you can set a gradient amount to 5 scales. According to this gradient amount, the output volume of the car speaker is adjusted from 50 to 45, and then adjusted to 45 by 45. The scale is adjusted from 40 to 35, until the output volume of the car speaker is adjusted to the target volume value of 30, and the adjustment task is completed.
本实施方式中,车载扬声器的输出音量逐渐渐变到目标音量值,由于采用声音渐变的办法实现缓冲调整,较好地实现了声音跳变的控制,可以抑制爆音刺耳的出现,使声音听起来更自然、更悦耳,有利于听者的健康,及提高了用户体验。In the embodiment, the output volume of the car speaker gradually changes to the target volume value, and the buffer adjustment is implemented by using the sound gradation method, and the control of the sound hopping is better realized, and the occurrence of the blasting sound can be suppressed, so that the sound sounds more. Natural, more pleasing to the ear, it is good for the health of the listener and improves the user experience.
进一步地,所述将每个车载扬声器的输出音量逐渐调整至对应的目标音量值,包括:Further, the gradually adjusting the output volume of each car speaker to the corresponding target volume value includes:
获取所述每个车载扬声器的当前输出音量;Obtaining a current output volume of each of the onboard speakers;
分别计算所述每个车载扬声器的当前输出音量与其目标音量值的差;Calculating, respectively, a difference between a current output volume of each of the onboard speakers and a target volume value thereof;
分别判断所述每个车载扬声器的当前输出音量与其目标音量值的差的绝对值是否满足预设条件;其中,预设条件为所述车载扬声器的当前输出音量与其目标音量值的差的绝对值小于预设的阈值;Determining, respectively, whether an absolute value of a difference between a current output volume of each of the onboard speakers and a target volume value thereof satisfies a preset condition; wherein the preset condition is an absolute value of a difference between a current output volume of the onboard speaker and a target volume value thereof Less than a preset threshold;
对于不满足所述预设条件的车载扬声器,按照预设的时间间隔分别计算其当前过渡音量值,且所述当前过渡音量值的计算公式为:V0=V3+[V2-(V3-V1)]·K;其中,V0为所述车载扬声器的当前过渡音量值;V1为所述车载扬声器的设定音量值,V2为所述车载扬声器的加权音量调整值,V3为所述车载扬声器的当前输出音量;K为预设的变化系数,K为小于1的正数;For the onboard speaker that does not satisfy the preset condition, the current transition volume value is respectively calculated according to the preset time interval, and the calculation formula of the current transition volume value is: V0=V3+[V2-(V3-V1)] K; wherein V0 is the current transition volume value of the car speaker; V1 is the set volume value of the car speaker, V2 is the weighted volume adjustment value of the car speaker, and V3 is the current output of the car speaker Volume; K is the preset coefficient of variation, and K is a positive number less than one;
分别将所述每个车载扬声器的输出音量调整至对应的当前过渡音量值。The output volume of each of the car speakers is adjusted to a corresponding current transition volume value.
其中,变化系数K的大小影响车载扬声器的输出音量达到目标音量值所需的时间,对任一个车载扬声器来说,其K值越小,将其输出音量从音量设定值调整至目标音量值所需的时间就越长,反之。Wherein, the magnitude of the coefficient of variation K affects the time required for the output volume of the car speaker to reach the target volume value. For any car speaker, the smaller the K value, the volume of the output is adjusted from the volume setting value to the target volume value. The longer it takes, the opposite.
本实施方式中提供一种较优的数值渐变处理方式,以下对本实施方式中提供的渐变方式举例说明,若对某个车载扬声器来说,其设定音量值和加权音量调整值分别为50刻度和-20刻度,且预设的阈值为0.1,预设的时间间隔为50ms,预设的变化系数为1/10,其输出音量的调整过程如下:In this embodiment, a preferred numerical gradation processing method is provided. The gradual manner provided in the embodiment is exemplified. For a certain car speaker, the set volume value and the weighted volume adjustment value are respectively 50 scales. And -20 scale, and the preset threshold is 0.1, the preset time interval is 50ms, and the preset variation coefficient is 1/10. The adjustment process of the output volume is as follows:
第一个过渡音量值为V0=50+[-20-(50-50)]*(1/10)=48,即第一次调整为将该车载扬声器的输出音量从50刻度调整至48刻度;The first transition volume value is V0=50+[-20-(50-50)]*(1/10)=48, which is the first adjustment to adjust the output volume of the car speaker from 50 to 48. ;
50ms后,计算第二个过渡音量值为V0=48+[-20-(48-50)]*(1/10)=46.2刻度,即第一次调整为将该车载扬声器的输出音量从48刻度调整至46.2刻度;After 50ms, calculate the second transition volume value as V0=48+[-20-(48-50)]*(1/10)=46.2 scale, which is the first time to adjust the output volume of the car speaker from 48 The scale is adjusted to 46.2 scale;
再一个50ms后,计算第三个过渡音量值为V0=46.2+[-20-(46.2-50)]*(1/10)=44.58刻度,即第一次调整为将该车载扬声器的输出音量从46.2刻度调整至44.58刻度;After another 50ms, calculate the third transition volume value as V0=46.2+[-20-(46.2-50)]*(1/10)=44.58, which is the first time to adjust the output volume of the car speaker. Adjusted from 46.2 scale to 44.58 scale;
依次类推,直至该车载扬声器的当前输出音量与其目标音量值的差的绝对值小于预设的阈值0.1时,停止计算过渡音量值,调整输出音量的任务完成。And so on, until the absolute value of the difference between the current output volume of the on-board speaker and its target volume value is less than the preset threshold value of 0.1, the calculation of the transition volume value is stopped, and the task of adjusting the output volume is completed.
优选地,所述方法还包括: Preferably, the method further includes:
对于满足所述预设条件的车载扬声器,分别将其当前过渡音量值设置为其目标音量值。For the on-board speaker that satisfies the preset condition, its current transition volume value is set to its target volume value, respectively.
需要说明的是,在上述实施方式中,调整过程中计算得到的最后一个过渡音量值可能不会恰好等于目标音量值,而是等于一个极为接近目标音量值的值,这样就会来带调整误差,因此,在本实施方式中,还包括一个步骤,即对于当前输出音量与其目标音量值的差的绝对小于预设的阈值的车载扬声器,分别将其过渡音量值直接设置为其目标音量值,这样的话,就能保证每次都能恰好将输出音量调整至目标音量值,提高了调整的准确度。It should be noted that, in the foregoing embodiment, the last transition volume value calculated during the adjustment process may not be exactly equal to the target volume value, but is equal to a value that is very close to the target volume value, so that the adjustment error is brought. Therefore, in the embodiment, the method further includes a step of setting the transition volume value directly to the target volume value for the car speaker whose absolute difference between the current output volume and the target volume value is less than a preset threshold. In this case, you can ensure that the output volume is adjusted to the target volume value every time, which improves the accuracy of the adjustment.
相应的,本发明实施例的一个方面还提供一种车载扬声器的音量控制装置,能够实现本发明实施例的一个方面提供的车载扬声器的音量控制方法中的所有流程。Correspondingly, an aspect of the embodiment of the present invention further provides a volume control device for a vehicle-mounted speaker, which can implement all the processes in the volume control method of the vehicle-mounted speaker provided by one aspect of the embodiments of the present invention.
请参阅图2,是本发明提供的车载扬声器的音量控制装置10的一个实施例的结构示意图,所述车载扬声器的音量控制装置10包括:2 is a schematic structural diagram of an embodiment of a volume control device 10 for a vehicle-mounted speaker provided by the present invention. The volume control device 10 of the vehicle-mounted speaker includes:
声音信号获取模块11,用于分别获取N个车载麦克风拾取到的声音信号;The sound signal acquiring module 11 is configured to respectively acquire sound signals picked up by the N car microphones;
音量影响值设置模块12,用于根据所述声音信号分别设置所述N个车载麦克风中每个车载麦克风的音量影响值;The volume influence value setting module 12 is configured to separately set a volume influence value of each of the N car microphones according to the sound signal;
加权音量调整值计算模块13,用于根据所述N个车载麦克风中每个车载麦克风的音量影响值和所述每个车载麦克风对M个车载扬声器中的第m个车载扬声器的影响权重值计算所述第m个车载扬声器的加权音量调整值,以获取所述M个车载扬声器中每个车载扬声器的加权音量调整值;其中,所述影响权重值是根据所述每个车载麦克风和所述第m个车载扬声器之间的距离来确定的;m为小于或者等于M的正整数;以及,The weighted volume adjustment value calculation module 13 is configured to calculate, according to a volume influence value of each of the N car microphones and an influence weight value of each of the car microphones on the mth car speaker in the M car speakers a weighted volume adjustment value of the mth car speaker to obtain a weighted volume adjustment value of each of the M car speakers; wherein the influence weight value is according to each of the car microphones and the The distance between the mth car speakers is determined; m is a positive integer less than or equal to M; and,
输出音量调整模块14,用于根据所述每个车载扬声器的加权音量调整值调整对应车载扬声器的输出音量。The output volume adjustment module 14 is configured to adjust an output volume of the corresponding car speaker according to the weighted volume adjustment value of each of the car speakers.
优选地,所述音量影响值设置模块12包括:Preferably, the volume influence value setting module 12 includes:
第一音量影响值设置单元,用于当需要进行人声检测,且检测到所述声音信号中至少有一个具有所述人声信号时,将拾取到所述人声信号的车载麦克风的音量影响值设置为第一预设值,并将未拾取到所述人声信号的车载麦克风的音量影响值设置为第二预设值。a first volume influence value setting unit, configured to: when a vocal sound detection is required, and when at least one of the sound signals is detected to have the vocal signal, a volume effect of a car microphone that picks up the vocal signal The value is set to a first preset value, and a volume influence value of the in-vehicle microphone that has not been picked up to the vocal signal is set to a second preset value.
优选地,所述音量影响值设置模块12还包括:Preferably, the volume influence value setting module 12 further includes:
第二音量影响值设置单元,用于当需要进行人声检测,且检测到所述声音信号中都不具有所述人声信号时,根据所述每个车载麦克风拾取到的声音信号中的噪声信号分别计算所述每个车载麦克风的音量影响值。a second volume influence value setting unit, configured to detect noise in the sound signal picked up by each of the vehicle-mounted microphones when vocal sound detection is required, and when the vocal signal is not detected in the sound signal The signals respectively calculate the volume influence value of each of the in-vehicle microphones.
进一步地,所述第二音量影响值设置单元具体包括:Further, the second volume influence value setting unit specifically includes:
第一噪声强度获取子单元,用于当需要进行人声检测,且检测到所述声音信号中都不具有所述人声信号时,分别获取所述每个车载麦克风拾取到的声音信号中的噪声信号强度; a first noise intensity acquisition subunit, configured to acquire, in the sound signal picked up by each of the vehicle microphones, when the voice signal is detected and the voice signal is detected Noise signal strength;
第一音量影响值计算子单元,用于分别将每个噪声信号强度乘以影响系数,以得到所述每个车载麦克风的音量影响值;其中,所述影响系数是由噪声对音量的影响强度来确定的。a first volume influence value calculation subunit, configured to respectively multiply each noise signal strength by an influence coefficient to obtain a volume influence value of each of the onboard microphones; wherein the influence coefficient is an influence intensity of the noise on the volume To determine.
优选地,所述音量影响值设置模块12包括:Preferably, the volume influence value setting module 12 includes:
第三音量影响值设置单元,用于当不需要进行人声检测时,根据所述每个车载麦克风拾取到的声音信号中的噪声信号分别计算所述每个车载麦克风的音量影响值。And a third volume influence value setting unit configured to calculate, respectively, a volume influence value of each of the in-vehicle microphones according to a noise signal in the sound signal picked up by each of the in-vehicle microphones when the human voice detection is not required.
进一步地,所述第三音量影响值设置单元具体包括:Further, the third volume influence value setting unit specifically includes:
第二噪声强度获取子单元,用于分别获取所述每个车载麦克风拾取到的声音信号中的噪声信号强度;a second noise intensity acquisition subunit, configured to respectively acquire a noise signal strength in the sound signal picked up by each of the vehicle microphones;
第二音量影响值计算子单元,用于分别将每个噪声信号强度乘以影响系数,以得到所述每个车载麦克风的音量影响值;其中,所述影响系数是由噪声对音量的影响强度来确定的。a second volume influence value calculation subunit, configured to respectively multiply each noise signal strength by an influence coefficient to obtain a volume influence value of each of the onboard microphones; wherein the influence coefficient is an influence intensity of the noise on the volume To determine.
优选地,所述车载扬声器的音量控制装置10还包括:Preferably, the volume control device 10 of the vehicle-mounted speaker further includes:
音频类型检测模块,用于检测所述M个车载扬声器当前输出的音频信号的类型;其中,每一个音频信号的类型预先配置了与其对应的人声检测信息;所述人声检测信息用于判断是否需要进行人声检测;以及,An audio type detecting module, configured to detect a type of an audio signal currently output by the M car speakers; wherein each type of the audio signal is pre-configured with a corresponding voice detection information; the voice detection information is used for determining Whether vocal testing is required; and,
人声检测需求判定模块,用于根据当前输出的音频信号的类型所配置的人声检测信息判断是否需要进行人声检测。The vocal detection requirement determination module is configured to determine whether vocal detection is required according to the vocal detection information configured by the type of the currently output audio signal.
具体地,所述输出音量调整模块14包括:Specifically, the output volume adjustment module 14 includes:
目标音量值获取单元,用于分别计算所述每个车载扬声器的加权音量调整值和其设定音量值的和,以分别获得所述每个车载扬声器的目标音量值;以及,a target volume value obtaining unit, configured to separately calculate a sum of a weighted volume adjustment value of each of the onboard speakers and a set volume value thereof to obtain a target volume value of each of the onboard speakers, respectively;
输出音量调整单元,用于将所述每个车载扬声器的输出音量调整至对应的目标音量值。And an output volume adjusting unit, configured to adjust an output volume of each of the car speakers to a corresponding target volume value.
优选地,所述输出音量调整单元具体用于:Preferably, the output volume adjustment unit is specifically configured to:
将所述每个车载扬声器的输出音量逐渐调整至对应的目标音量值。The output volume of each of the onboard speakers is gradually adjusted to a corresponding target volume value.
进一步地,所述输出音量调整单元包括:Further, the output volume adjustment unit includes:
当前输出音量获取子单元,用于获取所述每个车载扬声器的当前输出音量;a current output volume acquisition subunit, configured to acquire a current output volume of each of the onboard speakers;
差值计算子单元,用于分别计算所述每个车载扬声器的当前输出音量与其目标音量值的差;a difference calculation subunit, configured to separately calculate a difference between a current output volume of each of the onboard speakers and a target volume value thereof;
预设条件判断子单元,用于分别判断所述每个车载扬声器的当前输出音量与其目标音量值的差的绝对值是否满足预设条件;其中,预设条件为所述车载扬声器的当前输出音量与其目标音量值的差的绝对值小于预设的阈值;a preset condition determining subunit, configured to respectively determine whether an absolute value of a difference between a current output volume of each of the onboard speakers and a target volume value thereof satisfies a preset condition; wherein the preset condition is a current output volume of the onboard speaker The absolute value of the difference from the target volume value is less than a preset threshold;
过渡音量值计算子单元,用于对于不满足所述预设条件的车载扬声器,按照预设的时间间隔分别计算其当前过渡音量值,且所述当前过渡音量值的计算公式为:V0=V3+[V2- (V3-V1)]·K;其中,V0为所述车载扬声器的当前过渡音量值;V1为所述车载扬声器的设定音量值,V2为所述车载扬声器的加权音量调整值,V3为所述车载扬声器的当前输出音量;K为预设的变化系数,K为小于1的正数;以及,The transition volume value calculation subunit is configured to calculate, for a car speaker that does not satisfy the preset condition, a current transition volume value according to a preset time interval, and the current transition volume value is calculated as: V0=V3+ [V2- (V3-V1)]·K; wherein, V0 is the current transition volume value of the car speaker; V1 is the set volume value of the car speaker, and V2 is the weighted volume adjustment value of the car speaker, and V3 is The current output volume of the car speaker; K is the preset coefficient of variation, K is a positive number less than 1;
输出音量调整子单元,用于分别将所述每个车载扬声器的输出音量调整至对应的当前过渡音量值。And an output volume adjustment subunit, configured to respectively adjust an output volume of each of the onboard speakers to a corresponding current transition volume value.
优选地,所述装置还包括:Preferably, the device further comprises:
过渡音量值设置子单元,对于满足所述预设条件的车载扬声器,分别将其当前过渡音量值设置为其目标音量值。The transition volume value setting subunit, for the onboard speaker that satisfies the preset condition, respectively sets its current transition volume value to its target volume value.
相应的,本发明还提供一种车载扬声器的音量控制系统的一个实施例。Accordingly, the present invention also provides an embodiment of a volume control system for a car speaker.
请参阅图3,是本发明提供的车载扬声器的音量控制系统的一个实施例的结构示意图,所述车载扬声器的音量控制系统包括:Please refer to FIG. 3 , which is a schematic structural diagram of an embodiment of a volume control system for a vehicle-mounted speaker provided by the present invention. The volume control system of the vehicle-mounted speaker includes:
N个车载扬声器30、M个车载麦克风20以及上述实施例所提供的车载扬声器的音量控制装置10。 N car speakers 30, M car microphones 20, and a volume control device 10 for the car speakers provided in the above embodiments.
本发明实施例提供的车载扬声器的音量控制方法、装置及系统,通过分别获取每个车载麦克风拾取到的声音信号,根据每个车载麦克风对各个车载扬声器的不同影响权重,不同幅度地调整分布在车厢各处的车载扬声器的输出音量,其中,影响权重由车载麦克风和车载扬声器之间的距离来确定,可见,本发明实施例能够根据麦克风采集到的声音信号的声源位置不同幅度地调整分布在车厢各处的扬声器的输出音量,有效地提高了用户体验。The method, device and system for controlling the volume of the vehicle-mounted speaker provided by the embodiment of the present invention acquire the sound signals picked up by each of the vehicle-mounted microphones respectively, and adjust the distribution weights according to the different influence weights of each of the vehicle-mounted microphones on the respective vehicle-mounted speakers. The output volume of the vehicle-mounted speaker in the vehicle compartment, wherein the influence weight is determined by the distance between the vehicle-mounted microphone and the vehicle-mounted speaker. It can be seen that the embodiment of the present invention can adjust the distribution according to the sound source position of the sound signal collected by the microphone. The output volume of the speakers throughout the compartment effectively improves the user experience.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。One of ordinary skill in the art can understand that all or part of the process of implementing the foregoing embodiments can be completed by a computer program to instruct related hardware, and the program can be stored in a computer readable storage medium. When executed, the flow of an embodiment of the methods as described above may be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
以上所述是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和变形,这些改进和变形也视为本发明的保护范围。 The above is a preferred embodiment of the present invention, and it should be noted that those skilled in the art can also make several improvements and modifications without departing from the principles of the present invention. It is the scope of protection of the present invention.

Claims (15)

  1. 一种车载扬声器的音量控制方法,其特征在于,所述方法包括:A volume control method for a vehicle-mounted speaker, characterized in that the method comprises:
    S11、分别获取N个车载麦克风拾取到的声音信号;S11. Acquire sound signals picked up by N car microphones respectively;
    S12、根据所述声音信号分别设置所述N个车载麦克风中每个车载麦克风的音量影响值;S12. Set a volume influence value of each of the N car microphones according to the sound signal.
    S13、根据所述N个车载麦克风中每个车载麦克风的音量影响值和所述每个车载麦克风对M个车载扬声器中的第m个车载扬声器的影响权重值计算所述第m个车载扬声器的加权音量调整值,以获取所述M个车载扬声器中每个车载扬声器的加权音量调整值;其中,所述影响权重值是根据所述每个车载麦克风和所述第m个车载扬声器之间的距离来确定的;m为小于或者等于M的正整数;S13. Calculate, according to a volume influence value of each of the N car microphones and an influence weight value of each of the car microphones on the mth car speakers of the M car speakers, calculate the mth car speaker Weighting the volume adjustment value to obtain a weighted volume adjustment value of each of the M car speakers; wherein the influence weight value is based on between each of the car microphones and the mth car speaker Distance determined; m is a positive integer less than or equal to M;
    S14、根据所述每个车载扬声器的加权音量调整值调整对应车载扬声器的输出音量。S14. Adjust an output volume of the corresponding car speaker according to the weighted volume adjustment value of each of the car speakers.
  2. 如权利要求1所述的车载扬声器的音量控制方法,其特征在于,所述步骤S12包括:The volume control method of the vehicle-mounted speaker according to claim 1, wherein the step S12 comprises:
    当需要进行人声检测,且检测到所述声音信号中至少有一个具有所述人声信号时,将拾取到所述人声信号的车载麦克风的音量影响值设置为第一预设值,并将未拾取到所述人声信号的车载麦克风的音量影响值设置为第二预设值。When vocal detection is required, and at least one of the sound signals is detected to have the vocal signal, the volume influence value of the onboard microphone picked up to the vocal signal is set to a first preset value, and The volume influence value of the in-vehicle microphone that has not picked up the vocal signal is set to a second preset value.
  3. 如权利要求2所述的车载扬声器的音量控制方法,其特征在于,所述步骤S12还包括:The method of controlling the volume of the vehicle-mounted speaker according to claim 2, wherein the step S12 further comprises:
    当需要进行人声检测,且检测到所述声音信号中都不具有所述人声信号时,根据所述每个车载麦克风拾取到的声音信号中的噪声信号分别计算所述每个车载麦克风的音量影响值。When it is required to perform vocal detection, and detecting that the vocal signal is not included in the sound signal, calculating, according to the noise signal in the sound signal picked up by each of the vehicle microphones, each of the vehicle microphones The volume affects the value.
  4. 如权利要求1所述的车载扬声器的音量控制方法,其特征在于,所述步骤S12包括:The volume control method of the vehicle-mounted speaker according to claim 1, wherein the step S12 comprises:
    当不需要进行人声检测时,根据所述每个车载麦克风拾取到的声音信号中的噪声信号分别计算所述每个车载麦克风的音量影响值。When the vocal detection is not required, the volume influence value of each of the on-vehicle microphones is separately calculated according to the noise signal in the sound signal picked up by each of the on-vehicle microphones.
  5. 如权利要求3或4所述的车载扬声器的音量控制方法,其特征在于,所述根据所述每个车载麦克风拾取到的声音信号中的噪声信号分别计算所述每个车载麦克风的音量影响值,具体包括:The volume control method for a vehicle-mounted speaker according to claim 3 or 4, wherein the sound volume influence value of each of the vehicle-mounted microphones is separately calculated according to a noise signal in the sound signal picked up by each of the vehicle-mounted microphones Specifically, including:
    分别获取所述每个车载麦克风拾取到的声音信号中的噪声信号强度;Obtaining, respectively, a noise signal strength in the sound signal picked up by each of the vehicle microphones;
    分别将每个噪声信号强度乘以影响系数,以得到所述每个车载麦克风的音量影响值;其中,所述影响系数是由噪声对音量的影响强度来确定的。 Each noise signal strength is multiplied by an influence coefficient to obtain a volume influence value of each of the in-vehicle microphones; wherein the influence coefficient is determined by the intensity of the influence of the noise on the volume.
  6. 如权利要求2至4任一项所述的车载扬声器的音量控制方法,其特征在于,在所述步骤S11之后,所述步骤S12之前,还包括:The method of controlling the volume of the vehicle-mounted speaker according to any one of claims 2 to 4, wherein after the step S11, before the step S12, the method further comprises:
    检测所述M个车载扬声器当前输出的音频信号的类型;其中,每一个音频信号的类型预先配置了与其对应的人声检测信息;所述人声检测信息用于判断是否需要进行人声检测;Detecting a type of the audio signal currently output by the M car speakers; wherein each type of the audio signal is pre-configured with vocal detection information corresponding thereto; the vocal detection information is used to determine whether vocal detection is required;
    根据当前输出的音频信号的类型所配置的人声检测信息判断是否需要进行人声检测。The vocal detection information configured according to the type of the currently outputted audio signal determines whether vocal detection is required.
  7. 如权利要求1所述的车载扬声器的音量控制方法,其特征在于,所述步骤S14具体包括:The method of controlling the volume of the vehicle-mounted speaker according to claim 1, wherein the step S14 specifically comprises:
    分别计算所述每个车载扬声器的加权音量调整值和其设定音量值的和,以分别获得所述每个车载扬声器的目标音量值;Calculating, respectively, a sum of the weighted volume adjustment value of each of the onboard speakers and a set volume value thereof to obtain a target volume value of each of the onboard speakers;
    将所述每个车载扬声器的输出音量调整至对应的目标音量值。The output volume of each of the onboard speakers is adjusted to a corresponding target volume value.
  8. 如权利要求7所述的车载扬声器的音量控制方法,其特征在于,所述将每个车载扬声器的输出音量调整至对应的目标音量值具体为:The volume control method for a vehicle-mounted speaker according to claim 7, wherein the adjusting the output volume of each of the vehicle-mounted speakers to a corresponding target volume value is specifically:
    将所述每个车载扬声器的输出音量逐渐调整至对应的目标音量值。The output volume of each of the onboard speakers is gradually adjusted to a corresponding target volume value.
  9. 如权利要求8所述的车载扬声器的音量控制方法,其特征在于,所述将每个车载扬声器的输出音量逐渐调整至对应的目标音量值,包括:The volume control method of the vehicle-mounted speaker according to claim 8, wherein the gradually adjusting the output volume of each of the on-board speakers to the corresponding target volume value comprises:
    获取所述每个车载扬声器的当前输出音量;Obtaining a current output volume of each of the onboard speakers;
    分别计算所述每个车载扬声器的当前输出音量与其目标音量值的差;Calculating, respectively, a difference between a current output volume of each of the onboard speakers and a target volume value thereof;
    分别判断所述每个车载扬声器的当前输出音量与其目标音量值的差的绝对值是否满足预设条件;其中,预设条件为所述车载扬声器的当前输出音量与其目标音量值的差的绝对值小于预设的阈值;Determining, respectively, whether an absolute value of a difference between a current output volume of each of the onboard speakers and a target volume value thereof satisfies a preset condition; wherein the preset condition is an absolute value of a difference between a current output volume of the onboard speaker and a target volume value thereof Less than a preset threshold;
    对于不满足所述预设条件的车载扬声器,按照预设的时间间隔分别计算其当前过渡音量值,且所述当前过渡音量值的计算公式为:V0=V3+[V2-(V3-V1)]·K;其中,V0为所述车载扬声器的当前过渡音量值;V1为所述车载扬声器的设定音量值,V2为所述车载扬声器的加权音量调整值,V3为所述车载扬声器的当前输出音量;K为预设的变化系数,K为小于1的正数;For the onboard speaker that does not satisfy the preset condition, the current transition volume value is respectively calculated according to the preset time interval, and the calculation formula of the current transition volume value is: V0=V3+[V2-(V3-V1)] K; wherein V0 is the current transition volume value of the car speaker; V1 is the set volume value of the car speaker, V2 is the weighted volume adjustment value of the car speaker, and V3 is the current output of the car speaker Volume; K is the preset coefficient of variation, and K is a positive number less than one;
    分别将所述每个车载扬声器的输出音量调整至对应的当前过渡音量值。The output volume of each of the car speakers is adjusted to a corresponding current transition volume value.
  10. 如权利要求9所述的车载扬声器的音量控制方法,其特征在于,所述方法还包括: The method of controlling the volume of a vehicle-mounted speaker according to claim 9, wherein the method further comprises:
    对于满足所述预设条件的车载扬声器,分别将其当前过渡音量值设置为其目标音量值。For the on-board speaker that satisfies the preset condition, its current transition volume value is set to its target volume value, respectively.
  11. 一种车载扬声器的音量控制装置,其特征在于,所述装置包括:A volume control device for a vehicle-mounted speaker, characterized in that the device comprises:
    声音信号获取模块,用于分别获取N个车载麦克风拾取到的声音信号;a sound signal acquiring module, configured to respectively acquire sound signals picked up by the N car microphones;
    音量影响值设置模块,用于根据所述声音信号分别设置所述N个车载麦克风中每个车载麦克风的音量影响值;a volume influence value setting module, configured to respectively set a volume influence value of each of the N car microphones according to the sound signal;
    加权音量调整值计算模块,用于根据所述N个车载麦克风中每个车载麦克风的音量影响值和所述每个车载麦克风对M个车载扬声器中的第m个车载扬声器的影响权重值计算所述第m个车载扬声器的加权音量调整值,以获取所述M个车载扬声器中每个车载扬声器的加权音量调整值;其中,所述影响权重值是根据所述每个车载麦克风和所述第m个车载扬声器之间的距离来确定的;m为小于或者等于M的正整数;以及,a weighted volume adjustment value calculation module, configured to calculate, according to a volume influence value of each of the N car microphones and an influence weight value of each of the car microphones on the mth car speaker of the M car speakers a weighted volume adjustment value of the mth car speaker to obtain a weighted volume adjustment value of each of the M car speakers; wherein the influence weight value is according to each of the car microphones and the first m is determined by the distance between the car speakers; m is a positive integer less than or equal to M; and,
    输出音量调整模块,用于根据所述每个车载扬声器的加权音量调整值调整对应车载扬声器的输出音量。And an output volume adjustment module, configured to adjust an output volume of the corresponding car speaker according to the weighted volume adjustment value of each of the car speakers.
  12. 如权利要求11所述的车载扬声器的音量控制装置,其特征在于,所述音量影响值设置模块包括:The volume control device for a vehicle-mounted speaker according to claim 11, wherein the volume influence value setting module comprises:
    第一音量影响值设置单元,用于当需要进行人声检测,且检测到所述声音信号中至少有一个具有所述人声信号时,将拾取到所述人声信号的车载麦克风的音量影响值设置为第一预设值,并将未拾取到所述人声信号的车载麦克风的音量影响值设置为第二预设值。a first volume influence value setting unit, configured to: when a vocal sound detection is required, and when at least one of the sound signals is detected to have the vocal signal, a volume effect of a car microphone that picks up the vocal signal The value is set to a first preset value, and a volume influence value of the in-vehicle microphone that has not been picked up to the vocal signal is set to a second preset value.
  13. 如权利要求12所述的车载扬声器的音量控制装置,其特征在于,所述音量影响值设置模块还包括:The volume control device for a vehicle-mounted speaker according to claim 12, wherein the volume influence value setting module further comprises:
    第二音量影响值设置单元,用于当需要进行人声检测,且检测到所述声音信号中都不具有所述人声信号时,根据所述每个车载麦克风拾取到的声音信号中的噪声信号分别计算所述每个车载麦克风的音量影响值。a second volume influence value setting unit, configured to detect noise in the sound signal picked up by each of the vehicle-mounted microphones when vocal sound detection is required, and when the vocal signal is not detected in the sound signal The signals respectively calculate the volume influence value of each of the in-vehicle microphones.
  14. 如权利要求11所述的车载扬声器的音量控制装置,其特征在于,所述音量影响值设置模块包括:The volume control device for a vehicle-mounted speaker according to claim 11, wherein the volume influence value setting module comprises:
    第三音量影响值设置单元,用于当不需要进行人声检测时,根据所述每个车载麦克风拾取到的声音信号中的噪声信号分别计算所述每个车载麦克风的音量影响值。 And a third volume influence value setting unit configured to calculate, respectively, a volume influence value of each of the in-vehicle microphones according to a noise signal in the sound signal picked up by each of the in-vehicle microphones when the human voice detection is not required.
  15. 如权利要求11所述的车载扬声器的音量控制装置,其特征在于,所述输出音量调整模块包括:The volume control device for a vehicle-mounted speaker according to claim 11, wherein the output volume adjustment module comprises:
    目标音量值获取单元,用于分别计算所述每个车载扬声器的加权音量调整值和其设定音量值的和,以分别获得所述每个车载扬声器的目标音量值;以及,a target volume value obtaining unit, configured to separately calculate a sum of a weighted volume adjustment value of each of the onboard speakers and a set volume value thereof to obtain a target volume value of each of the onboard speakers, respectively;
    输出音量调整单元,用于将所述每个车载扬声器的输出音量调整至对应的目标音量值。 And an output volume adjusting unit, configured to adjust an output volume of each of the car speakers to a corresponding target volume value.
PCT/CN2016/113664 2016-10-27 2016-12-30 Volume control method, device and system for on-board speakers WO2018076540A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610970269.1A CN106535042B (en) 2016-10-27 2016-10-27 Method for controlling volume, the apparatus and system of vehicle-mounted loudspeaker
CN201610970269.1 2016-10-27

Publications (1)

Publication Number Publication Date
WO2018076540A1 true WO2018076540A1 (en) 2018-05-03

Family

ID=58327100

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/113664 WO2018076540A1 (en) 2016-10-27 2016-12-30 Volume control method, device and system for on-board speakers

Country Status (2)

Country Link
CN (1) CN106535042B (en)
WO (1) WO2018076540A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023045080A1 (en) * 2021-09-22 2023-03-30 博泰车联网科技(上海)股份有限公司 Method and device for controlling vehicle-mounted external loudspeakers, and vehicle-mounted external loudspeakers
CN117221786A (en) * 2023-11-07 2023-12-12 苏州爱情之音科技有限公司 Loudness compensation method of vehicle-mounted sound system and vehicle-mounted sound system

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107943448B (en) * 2017-11-28 2021-03-05 Oppo广东移动通信有限公司 Volume adjusting method and device, electronic equipment and computer readable storage medium
CN109862468B (en) * 2017-11-30 2021-06-22 长城汽车股份有限公司 System and method for controlling volume partition of audio equipment in vehicle
CN109857360B (en) * 2017-11-30 2022-06-17 长城汽车股份有限公司 Volume control system and control method for audio equipment in vehicle
CN110352600B (en) * 2018-02-06 2020-12-25 雅马哈株式会社 Sound equipment
CN109471608A (en) * 2018-10-31 2019-03-15 北京羽扇智信息科技有限公司 A kind of method of adjustment and device of volume
CN111327990B (en) * 2018-12-13 2022-04-26 宝马股份公司 Method, device and system for controlling multi-channel audio playing, vehicle and storage medium
CN109922411A (en) * 2019-01-29 2019-06-21 惠州市华智航科技有限公司 Sound field control method and sound field control system
CN110381416B (en) * 2019-07-04 2021-07-09 北京奇艺世纪科技有限公司 Media playing volume control method and device, electronic equipment and storage medium
CN110996238B (en) * 2019-12-17 2022-02-01 杨伟锋 Binaural synchronous signal processing hearing aid system and method
CN112397084B (en) * 2020-11-04 2022-12-06 佛吉亚歌乐电子(丰城)有限公司 Method for adaptively adjusting multimedia volume, vehicle-mounted terminal and computer storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070019825A1 (en) * 2005-07-05 2007-01-25 Toru Marumoto In-vehicle audio processing apparatus
JP2010156826A (en) * 2008-12-26 2010-07-15 Fujitsu Ten Ltd Acoustic control device
CN102350970A (en) * 2010-03-02 2012-02-15 通用汽车环球科技运作有限责任公司 Device for communication improvement in vehicles
CN103188587A (en) * 2011-12-29 2013-07-03 哈曼贝克自动系统股份有限公司 Sound system with individual playback zones
CN103945062A (en) * 2014-04-16 2014-07-23 华为技术有限公司 User terminal volume adjusting method, device and terminal
CN105933819A (en) * 2016-04-25 2016-09-07 乐视控股(北京)有限公司 Method and device for adjusting volume of car stereo

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070019825A1 (en) * 2005-07-05 2007-01-25 Toru Marumoto In-vehicle audio processing apparatus
JP2010156826A (en) * 2008-12-26 2010-07-15 Fujitsu Ten Ltd Acoustic control device
CN102350970A (en) * 2010-03-02 2012-02-15 通用汽车环球科技运作有限责任公司 Device for communication improvement in vehicles
CN103188587A (en) * 2011-12-29 2013-07-03 哈曼贝克自动系统股份有限公司 Sound system with individual playback zones
CN103945062A (en) * 2014-04-16 2014-07-23 华为技术有限公司 User terminal volume adjusting method, device and terminal
CN105933819A (en) * 2016-04-25 2016-09-07 乐视控股(北京)有限公司 Method and device for adjusting volume of car stereo

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023045080A1 (en) * 2021-09-22 2023-03-30 博泰车联网科技(上海)股份有限公司 Method and device for controlling vehicle-mounted external loudspeakers, and vehicle-mounted external loudspeakers
CN117221786A (en) * 2023-11-07 2023-12-12 苏州爱情之音科技有限公司 Loudness compensation method of vehicle-mounted sound system and vehicle-mounted sound system
CN117221786B (en) * 2023-11-07 2024-03-19 苏州爱情之音科技有限公司 Loudness compensation method of vehicle-mounted sound system and vehicle-mounted sound system

Also Published As

Publication number Publication date
CN106535042A (en) 2017-03-22
CN106535042B (en) 2019-05-07

Similar Documents

Publication Publication Date Title
WO2018076540A1 (en) Volume control method, device and system for on-board speakers
JP5551176B2 (en) Audio source proximity estimation using sensor array for noise reduction
CN106231497B (en) Vehicle-mounted loudspeaker playing volume adjusting device and method and vehicle
US8018328B2 (en) Adaptive audio content generation system
EP2249337B1 (en) Acoustic device
US9508344B2 (en) Automatic volume control based on speech recognition
WO2012097148A2 (en) Automotive constant signal-to-noise ratio system for enhanced situation awareness
CN107409256B (en) Sound field correction apparatus, sound field correction method, and computer readable medium
CN104737475A (en) Wind noise detection for in-car communication systems with multiple acoustic zones
CN105393560B (en) Automatic tone color, loudness and Balance route
CN103873982B (en) Volume adjustment method and electronic device
US20070188308A1 (en) Vehicular indicator audio controlling
JP4349972B2 (en) Sound field measuring device
US11501758B2 (en) Environment aware voice-assistant devices, and related systems and methods
JP2010141468A (en) Onboard acoustic apparatus
US9128874B2 (en) Method of using microphones to measure particle velocity
CN108573718A (en) A kind of in-vehicle player
WO2020142600A1 (en) In-car headphone acoustical augmented reality system
JP2002236497A (en) Noise reduction system
US20180115851A1 (en) Apparatus and Method for Intelligent Audio Levels for Car, Home or Public Entertainment
JP2008124627A (en) Sound output device and sound quality correcting method
WO2020242758A1 (en) Multi-channel microphone signal gain equalization based on evaluation of cross talk components
CN215552855U (en) Indicator sound control system of steering lamp and vehicle
US20230402049A1 (en) Microphone system
US20220262389A1 (en) Method and apparatus for improving speech intelligibility in a room

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16920149

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS (EPO FORM 1205A DATED 05.09.2019)

122 Ep: pct application non-entry in european phase

Ref document number: 16920149

Country of ref document: EP

Kind code of ref document: A1