一种电动车音效模拟方法、装置、系统及汽车An electric vehicle sound effect simulation method, device, system and vehicle
技术领域technical field
本发明涉及电动车的电气系统,尤其涉及电动车音效模拟方法、装置、系统及汽车。The present invention relates to an electrical system of an electric vehicle, in particular to a sound effect simulation method, device, system and automobile of an electric vehicle.
背景技术Background technique
电动车在不同行驶工况下,车内存在不同的电机减速器的声音。由于不同电动车型具有不同的系统共振特征,不同运动工况下的电驱声音与油门踏板的开合程度以及车速之间不是线性关系,导致乘客在驾驶电动车过程中,缺少声音对油门踏板以及车速的反馈,缺乏驾驶乐趣。现有技术中,针对电动车声音小的特点,通过在车内主动加入传统发动机的声音,形成声音对油门踏板的反馈,以增加驾驶体验感;或者通过播放提前录制的音频文件,根据车辆不同的驾驶工况,播放相应工况的音频,此种电动车声音的补偿方法得到的声音通常不能反映电动车的电驱声音特性。Under different driving conditions of electric vehicles, there are different sounds of motor reducers in the vehicle. Since different electric vehicles have different system resonance characteristics, there is no linear relationship between the electric drive sound under different motion conditions, the opening and closing degree of the accelerator pedal and the speed of the vehicle. Speed feedback, lack of driving pleasure. In the prior art, according to the characteristics of low sound of electric vehicles, the sound of the traditional engine is actively added in the car to form a feedback of the sound to the accelerator pedal, so as to increase the driving experience; or by playing the audio files recorded in advance, according to different vehicles The sound of the electric vehicle sound compensation method usually cannot reflect the electric drive sound characteristics of the electric vehicle.
发明内容SUMMARY OF THE INVENTION
本发明的目的在于提供一种电动车音效模拟方法、装置、系统及汽车,解决现有电动车声音效果不能反映电动车动力特性的问题。The purpose of the present invention is to provide a sound effect simulation method, device, system and automobile of an electric vehicle, so as to solve the problem that the sound effect of the existing electric vehicle cannot reflect the dynamic characteristics of the electric vehicle.
为了解决上述技术问题,本发明实施例公开了一种电动车音效模拟方法,所述方法包括:获取车辆的振动信息、电驱转速信息和车况信息;根据所述振动信息和所述电驱转速信息确定阶次集合,所述阶次集合包括至少一个阶次,每个阶次对应一个声音信号;对所述阶次集合中的每个阶次执行补偿处理,得到与各阶次对应的补偿音频;对得到的各补偿音频进行合成,得到目标补偿音频;播放所述目标补偿音频;其中,对所述阶次执行补偿处理包括:确定目标音调值;根据所述目标音调值从所述阶次所对应的声音信号中确定第一声音信号;根据各阶次的声压值从所述第一声音信号中确定第二声音信号,所述第二声音信号为需要进行补偿的声音信号;根据所述车况信息对所述第二声音信号 进行补偿,得到与所述阶次对应的补偿音频。In order to solve the above technical problem, an embodiment of the present invention discloses a method for simulating sound effects of an electric vehicle. The method includes: acquiring vibration information, electric drive speed information and vehicle condition information of a vehicle; according to the vibration information and the electric drive speed The information determines an order set, the order set includes at least one order, and each order corresponds to a sound signal; compensation processing is performed on each order in the order set to obtain the compensation corresponding to each order audio; synthesizing the obtained compensation audio to obtain target compensation audio; playing the target compensation audio; wherein, performing compensation processing on the order includes: determining a target pitch value; The first sound signal is determined from the sound signal corresponding to the order; the second sound signal is determined from the first sound signal according to the sound pressure value of each order, and the second sound signal is the sound signal that needs to be compensated; according to The vehicle condition information compensates the second sound signal to obtain a compensation audio corresponding to the order.
进一步地,所述根据所述振动信息和所述电驱转速信息确定阶次集合,包括:根据所述振动信息确定振动频域信号,根据所述电驱转速信息确定电驱转速信号;根据所述振动频域信号和所述电驱转速信号确定目标阶次集合。Further, determining the order set according to the vibration information and the electric drive rotational speed information includes: determining a vibration frequency domain signal according to the vibration information, and determining an electric drive rotational speed signal according to the electric drive rotational speed information; The vibration frequency domain signal and the electric drive rotational speed signal determine a target order set.
进一步地,所述确定目标音调值,包括:获取预设音调值;根据所述阶次对应的音调值与预设音调值得到目标音调值。Further, the determining of the target pitch value includes: obtaining a preset pitch value; and obtaining the target pitch value according to the pitch value corresponding to the order and the preset pitch value.
进一步地,所述获取预设音调值,包括:根据车内背景噪声的音调值确定参照音调值;将所述参照音调值作为预设音调值。Further, the acquiring the preset tone value includes: determining a reference tone value according to the tone value of the background noise in the vehicle; and using the reference tone value as the preset tone value.
进一步地,所述根据所述阶次对应的音调值与预设音调值得到目标音调值,包括:获取第一评价音调值;根据所述第一评价音调值和所述预设音调值确定第二评价音调值;将所述阶次对应的音调值小于所述第二评价音调值的音调值确定为目标音调值。Further, the obtaining the target pitch value according to the pitch value corresponding to the order and the preset pitch value includes: obtaining a first evaluation pitch value; determining the first evaluation pitch value according to the first evaluation pitch value and the preset pitch value. The second evaluation pitch value; the pitch value whose pitch value corresponding to the order is smaller than the second evaluation pitch value is determined as the target pitch value.
进一步地,所述根据所述目标音调值从所述阶次所对应的声音信号中确定第一声音信号,包括:确定所述目标音调值所对应的声音信号;将所述目标音调值所对应的声音信号确定为第一声音信号。Further, the determining the first sound signal from the sound signal corresponding to the order according to the target pitch value includes: determining the sound signal corresponding to the target pitch value; The sound signal is determined as the first sound signal.
进一步地,所述根据各阶次声压值从所述第一声音信号中确定第二声音信号,包括:提取第一声音信号中各阶次声压值的特征;根据各阶次声压值的特征确定第二声音信号。Further, the determining the second sound signal from the first sound signal according to the sound pressure values of each order includes: extracting the features of the sound pressure values of each order in the first sound signal; The characteristics of determine the second sound signal.
进一步地,所述车况信息包括加速踏板开度、刹车踏板开度或电机扭矩信息。Further, the vehicle condition information includes accelerator pedal opening, brake pedal opening or motor torque information.
进一步地,所述根据所述车况信息对所述第二声音信号进行补偿,包括:根据所述加速踏板开度、所述刹车踏板开度或所述电机扭矩信息确定补偿系数;依据所述补偿系数对所述第二声音信号进行补偿。Further, the compensating the second sound signal according to the vehicle condition information includes: determining a compensation coefficient according to the accelerator pedal opening, the brake pedal opening or the motor torque information; The coefficients compensate the second sound signal.
进一步地,所述对得到的各补偿音频进行合成,得到目标补偿音频的步骤之前,进一步包括:确定所述阶次对应的转速相关的阶次补偿信号,其中,所述阶次对应的转速相关的阶次补偿信号根据所述电驱转速信号确定;根据所述转速相关的阶次补偿信号确定与所述阶次对应的所述补偿音频。Further, before the step of synthesizing the obtained compensation audio to obtain the target compensation audio, the step further includes: determining an order compensation signal related to the rotation speed corresponding to the order, wherein the rotation speed corresponding to the order is related to the order. The order compensation signal of the electric drive is determined according to the electric drive rotational speed signal; the compensation audio frequency corresponding to the order is determined according to the order compensation signal related to the rotational speed.
进一步地,所述播放所述目标补偿音频的步骤之后,还包括:采集车内声音;根据所述车内声音,调整所述目标补偿音频。Further, after the step of playing the target compensation audio, the method further includes: collecting in-vehicle sound; and adjusting the target compensation audio according to the in-vehicle sound.
进一步地,所述根据所述车内声音,调整所述目标补偿音频,包括:获取 所述车内声音特征;根据所述车内声音特征得到声音数据分析结果;根据所述声音数据分析结果调整所述目标补偿音频。Further, adjusting the target compensation audio according to the in-vehicle sound includes: acquiring the in-vehicle sound feature; obtaining a sound data analysis result according to the in-vehicle sound feature; adjusting according to the sound data analysis result The target compensates audio.
本发明实施例还提供了一种电动车音效模拟装置,包括信号获取模块、识别分析模块、补偿声音处理模块、补偿声音生成模块和补偿实现模块,所述信号获取模块用于获取车辆的振动信息、电驱转速信息和车况信息;所述识别分析模块用于根据所述振动信息和所述电驱转速信息确定阶次集合,所述阶次集合包括至少一个阶次,每个阶次对应一个声音信号;所述补偿声音处理模块用于对所述阶次集合中的每个阶次执行补偿处理,得到与各阶次对应的补偿音频;其中,对所述阶次执行补偿处理包括:确定目标音调值;根据所述目标音调值从阶次所对应的声音信号中确定第一声音信号;根据各阶次的声压值从所述第一声音信号中确定第二声音信号,所述第二声音信号为需要进行补偿的声音信号;根据所述车况信息对所述第二声音信号进行声音补偿,得到与所述阶次对应的补偿音频;所述补偿声音生成模块用于对得到的各补偿音频进行合成,得到目标补偿音频;所述补偿实现模块用于播放所述目标补偿音频。The embodiment of the present invention also provides an electric vehicle sound effect simulation device, which includes a signal acquisition module, an identification analysis module, a compensation sound processing module, a compensation sound generation module and a compensation realization module, and the signal acquisition module is used to obtain the vibration information of the vehicle , electric drive speed information and vehicle condition information; the identification and analysis module is used to determine an order set according to the vibration information and the electric drive speed information, the order set includes at least one order, and each order corresponds to one a sound signal; the compensated sound processing module is configured to perform compensation processing on each order in the order set to obtain compensated audio corresponding to each order; wherein performing compensation processing on the orders includes: determining the target pitch value; the first sound signal is determined from the sound signal corresponding to the order according to the target pitch value; the second sound signal is determined from the first sound signal according to the sound pressure value of each order, the first sound signal is The second sound signal is the sound signal that needs to be compensated; the sound compensation is performed on the second sound signal according to the vehicle condition information to obtain the compensation audio corresponding to the order; the compensation sound generation module is used for each obtained sound signal. The compensation audio is synthesized to obtain the target compensation audio; the compensation realization module is used for playing the target compensation audio.
进一步地,所述补偿声音处理模块还包括目标定义模块和补偿计算模块,所述目标定义模块用于确定目标音调值;所述补偿计算模块用于根据所述目标音调值从阶次所对应的声音信号中确定第一声音信号;根据各阶次的声压值从所述第一声音信号中确定第二声音信号,所述第二声音信号为需要进行补偿的声音信号;根据所述车况信息对所述第二声音信号进行声音补偿,得到与所述阶次对应的补偿音频。Further, the compensation sound processing module also includes a target definition module and a compensation calculation module, the target definition module is used to determine a target pitch value; the compensation calculation module is used to determine the target pitch value from the corresponding order of The first sound signal is determined from the sound signal; the second sound signal is determined from the first sound signal according to the sound pressure value of each order, and the second sound signal is the sound signal that needs to be compensated; according to the vehicle condition information Perform sound compensation on the second sound signal to obtain the compensation audio corresponding to the order.
本发明实施例还提供了一种电动车音效模拟系统,包括音频采集设备、音频播放设备和如权利要求上任一所述的电动车音效模拟装置,所述电动车音效模拟装置分别与所述音频采集设备和所述音频播放设备连接。An embodiment of the present invention further provides an electric vehicle sound effect simulation system, including an audio collection device, an audio playback device, and the electric vehicle sound effect simulation device according to any one of the claims, wherein the electric vehicle sound effect simulation device is respectively connected with the audio The acquisition device is connected with the audio playback device.
本发明实施例还提供了一种汽车,所述汽车配置如上所述的电动车音效模拟系统。An embodiment of the present invention also provides an automobile, the automobile is configured with the electric vehicle sound effect simulation system as described above.
实施本发明,具有如下有益效果:Implement the present invention, have the following beneficial effects:
本发明根据振动信息和所述电驱转速信息确定阶次集合,所述阶次集合与电驱的设置相关,由此根据振动信息和电驱转速信息得到的所述阶次集合为能够反映电动车电驱声音特性的阶次集合,本发明通过对所述阶次集合中的每个阶次执行补偿处理,得到与各阶次对应的补偿音频;且通过设置目标音调值对 声音信号进行筛选,获得满足筛选条件的第一声音信号,进而根据声压值从第一声音信号中得到需要补偿的第二声音信号,通过目标音调值和根据声压值进行筛选的设置,保证了需要进行声音补偿的信号是根据电动车电驱声音的特点设置的;通过对得到的各补偿音频进行合成,得到目标补偿音频;通过播放所述目标补偿音频,得到反映电动车电驱声音特性的声音效果,提高驾乘人员的驾驶体验。In the present invention, an order set is determined according to the vibration information and the electric drive speed information, and the order set is related to the setting of the electric drive, so that the order set obtained according to the vibration information and the electric drive speed information can reflect the electric drive The order collection of the sound characteristics of the electric vehicle drive, the present invention obtains the compensation audio corresponding to each order by performing compensation processing on each order in the order collection; and filters the sound signal by setting the target pitch value , obtain the first sound signal that satisfies the screening conditions, and then obtain the second sound signal that needs to be compensated from the first sound signal according to the sound pressure value. The compensated signal is set according to the characteristics of the sound of the electric drive of the electric vehicle; by synthesizing the obtained compensation audio, the target compensation audio is obtained; by playing the target compensation audio, the sound effect reflecting the sound characteristics of the electric drive of the electric vehicle is obtained, Improve the driving experience of drivers and passengers.
附图说明Description of drawings
为了更清楚地说明本发明的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它附图。In order to illustrate the technical solutions of the present invention more clearly, the following briefly introduces the accompanying drawings required in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. , for those of ordinary skill in the art, other drawings can also be obtained based on these drawings without any creative effort.
图1是本发明一实施例提供的电动车音效模拟方法流程示意图。FIG. 1 is a schematic flowchart of a method for simulating sound effects of an electric vehicle according to an embodiment of the present invention.
图2是本发明一实施例提供的根据振动信息和电驱转速信息确定阶次集合的流程示意图。2 is a schematic flowchart of determining an order set according to vibration information and electric drive rotational speed information according to an embodiment of the present invention.
图3是本发明一实施例提供的确定目标音调值的流程示意图。FIG. 3 is a schematic flowchart of determining a target pitch value according to an embodiment of the present invention.
图4是本发明一实施例提供的获取预设音调值的流程示意图。FIG. 4 is a schematic flowchart of obtaining a preset pitch value according to an embodiment of the present invention.
图5是本发明一实施例提供的根据阶次对应的音调值与预设音调值得到目标音调值的流程示意图。FIG. 5 is a schematic flowchart of obtaining a target pitch value according to a pitch value corresponding to an order and a preset pitch value according to an embodiment of the present invention.
图6是本发明一实施例提供的根据目标音调值从阶次所对应的声音信号中确定第一声音信号的流程示意图。6 is a schematic flowchart of determining a first sound signal from a sound signal corresponding to an order according to a target pitch value according to an embodiment of the present invention.
图7是本发明一实施例提供的根据各阶次声压值从第一声音信号中确定第二声音信号的流程示意图。7 is a schematic flowchart of determining a second sound signal from a first sound signal according to sound pressure values of various orders according to an embodiment of the present invention.
图8是本发明一实施例提供的根据车况信息对第二声音信号进行补偿的流程示意图。FIG. 8 is a schematic flowchart of compensation for a second sound signal according to vehicle condition information according to an embodiment of the present invention.
图9是本发明一实施例提供的确定与阶次对应的补偿音频的流程示意图。FIG. 9 is a schematic flowchart of determining a compensation audio corresponding to an order according to an embodiment of the present invention.
图10是本发明一实施例提供的根据车内声音,调整目标补偿音频的流程示意图。FIG. 10 is a schematic flowchart of adjusting target compensation audio according to in-vehicle sound according to an embodiment of the present invention.
图11是本发明一实施例提供的电动车音效模拟装置的结构示意图。FIG. 11 is a schematic structural diagram of an electric vehicle sound effect simulation device according to an embodiment of the present invention.
图12是本发明一实施例提供的补偿声音处理模块的结构示意图。FIG. 12 is a schematic structural diagram of a compensated sound processing module provided by an embodiment of the present invention.
图13是本发明一实施例提供的电动车音效模拟系统的结构示意图。FIG. 13 is a schematic structural diagram of an electric vehicle sound effect simulation system according to an embodiment of the present invention.
其中,图中附图标记对应为:600-电动车音效模拟装置,610-信号获取模块,620-识别分析模块,630-补偿声音处理模块,631-目标定义模块,632-补偿计算模块,640-补偿声音生成模块,650-补偿实现模块,700-电动车音效模拟系统,710-音频采集设备,720-音频播放设备。Among them, the reference numerals in the figure correspond to: 600-electric vehicle sound effect simulation device, 610-signal acquisition module, 620-recognition analysis module, 630-compensation sound processing module, 631-target definition module, 632-compensation calculation module, 640 -Compensation sound generation module, 650-Compensation realization module, 700-Electric vehicle sound effect simulation system, 710-Audio collection equipment, 720-Audio playback equipment.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明的实施例,本领域普通技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present invention.
下面的描述中,为描述得清楚和简明,并没有对图中所示的所有多个部件进行描述,附图中示出了多个部件为本领域普通技术人员提供本发明的完全能够实现的公开内容。对于本领域技术人员来说,许多部件的操作都是熟悉而且明显的。In the following description, for the sake of clarity and conciseness, all the various components shown in the drawings are not described, which are shown in the drawings to provide those of ordinary skill in the art with fully achievable implementations of the present invention. public content. The operation of many components will be familiar and obvious to those skilled in the art.
此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量,由此限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个所述特征,在本发明的描述中,“多个”的含义是两个或两个以上,除非另有明确具体的限定。In addition, the terms "first" and "second" are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implying the number of indicated technical features, thereby defining "first", "" The "second" feature may explicitly or implicitly include one or more of the stated features, and in the description of the present invention, "multiple" means two or more, unless otherwise explicitly and specifically defined.
本实施例提供的电动车音效模拟方法,用于电动车在不同行驶工况下模拟电动车音效,如图1所示,所述方法包括以下步骤。The method for simulating sound effects of an electric vehicle provided in this embodiment is used for simulating the sound effects of an electric vehicle under different driving conditions. As shown in FIG. 1 , the method includes the following steps.
步骤100:获取车辆的振动信息、电驱转速信息和车况信息。Step 100: Obtain the vibration information, electric drive speed information and vehicle condition information of the vehicle.
在此步骤中,所述车辆的振动信息为电机、电机驱动系统或电机驱动系统壳体的振动信息中的一种或几种,车辆的振动信息为反映电机驱动系统自身振动特性的振动信息,车辆的振动信息的获取可以根据不同电动车的电机驱动系统的配置获取不同的电机驱动系统部件的能够反映电机驱动系统自身振动特性的振动信息。所述电驱转速信息可以是电机的转速信息、车轮的转速信息或者设置于电机和车轮之间的传动装置的转速信息。所述车况信息包括油门踏板的开合信息、刹车踏板的开合信息或电机扭矩信息中的一种或几种,所述车辆的驾驶信息用于反映车辆的工况,所述车辆的驾驶信息还包括能够反映车辆工况 的其他信息,本发明对此不做限定。In this step, the vibration information of the vehicle is one or more of the vibration information of the motor, the motor drive system or the housing of the motor drive system, and the vibration information of the vehicle is the vibration information reflecting the vibration characteristics of the motor drive system itself, The acquisition of the vibration information of the vehicle can be based on the configuration of the motor drive system of different electric vehicles to obtain the vibration information of different motor drive system components that can reflect the vibration characteristics of the motor drive system itself. The rotational speed information of the electric drive may be rotational speed information of the motor, rotational speed information of the wheel, or rotational speed information of the transmission device disposed between the motor and the wheel. The vehicle condition information includes one or more of the opening and closing information of the accelerator pedal, the opening and closing information of the brake pedal, or the motor torque information, and the driving information of the vehicle is used to reflect the working conditions of the vehicle. It also includes other information that can reflect the working conditions of the vehicle, which is not limited in the present invention.
步骤200:根据所述振动信息和所述电驱转速信息确定阶次集合,所述阶次集合包括至少一个阶次,每个阶次对应一个声音信号。Step 200: Determine an order set according to the vibration information and the electric drive rotational speed information, where the order set includes at least one order, and each order corresponds to a sound signal.
在此步骤中,对比所述振动信息和所述电驱转速信息,获取能够反映电机驱动系统振动特性的阶次,依据所述能够反映电机驱动系统震动特性的阶次确定所述阶次集合。In this step, the vibration information and the electric drive rotational speed information are compared to obtain an order that can reflect the vibration characteristics of the motor drive system, and the order set is determined according to the order that can reflect the vibration characteristics of the motor drive system.
步骤300:对所述阶次集合中的每个阶次执行补偿处理,得到与各阶次对应的补偿音频,其中,对所述阶次执行补偿处理包括:Step 300: Perform compensation processing on each order in the order set to obtain compensation audio corresponding to each order, wherein performing compensation processing on the order includes:
确定目标音调值;Determine the target pitch value;
根据所述目标音调值从所述阶次所对应的声音信号中确定第一声音信号;Determine the first sound signal from the sound signal corresponding to the order according to the target pitch value;
根据各阶次的声压值从所述第一声音信号中确定第二声音信号,所述第二声音信号为需要进行补偿的声音信号;Determine a second sound signal from the first sound signal according to the sound pressure value of each order, and the second sound signal is a sound signal that needs to be compensated;
根据所述车况信息对所述第二声音信号进行补偿,得到与所述阶次对应的补偿音频。The second sound signal is compensated according to the vehicle condition information to obtain the compensated audio corresponding to the order.
在此步骤中,通过设置目标音调值对声音信号进行筛选,获得满足筛选条件的第一声音信号,进而根据声压值从第一声音信号中得到需要补偿的第二声音信号,通过目标音调值和根据声压值进行筛选的设置,保证了需要进行声音补偿的信号是根据电动车电驱声音的特点确定的,进而保证了得到的补偿音频能够反映电动车的声音特性。In this step, the sound signal is screened by setting the target pitch value to obtain a first sound signal that satisfies the screening conditions, and then the second sound signal that needs to be compensated is obtained from the first sound signal according to the sound pressure value, and the target pitch value And the setting of screening according to the sound pressure value ensures that the signal that needs sound compensation is determined according to the characteristics of the electric drive sound of the electric vehicle, thereby ensuring that the compensated audio can reflect the sound characteristics of the electric vehicle.
步骤400:对得到的各补偿音频进行合成,得到目标补偿音频。Step 400: Synthesize the obtained compensation audio to obtain the target compensation audio.
步骤500:播放所述目标补偿音频。Step 500: Play the target compensation audio.
在此步骤中,播放所述目标补偿音频,所述目标补偿音频与已有的电驱声音叠加,实现了电动车电驱声音的连续性,保证了电动车的电驱声音的品质。In this step, the target compensation audio is played, and the target compensation audio is superimposed with the existing electric drive sound to realize the continuity of the electric drive sound of the electric vehicle and ensure the quality of the electric drive sound of the electric vehicle.
本发明根据振动信息和所述电驱转速信息确定阶次集合,所述阶次集合与电动车电机驱动系统的设置相关,由此根据振动信息和电驱转速信息得到的所述阶次集合为能够反映电动车电驱声音特性的阶次集合,本发明通过目标音调值和根据声压值进行筛选的设置,保证了需要进行声音补偿的信号是根据电动车电驱声音的特点设置的;通过对得到的各补偿音频进行合成,得到目标补偿音频;通过播放所述目标补偿音频,得到反映电动车电驱声音特性的声音效果,提高驾乘人员的驾驶体验。The present invention determines an order set according to the vibration information and the electric drive speed information, and the order set is related to the setting of the electric vehicle motor drive system, and the order set obtained according to the vibration information and the electric drive speed information is: The set of orders that can reflect the sound characteristics of the electric drive of the electric vehicle, the present invention ensures that the signal that needs to be compensated for the sound is set according to the characteristics of the sound of the electric drive of the electric vehicle through the setting of the target pitch value and the screening according to the sound pressure value; The obtained compensation audio is synthesized to obtain the target compensation audio; by playing the target compensation audio, the sound effect reflecting the sound characteristics of the electric drive of the electric vehicle is obtained, and the driving experience of the driver and passenger is improved.
在本发明一实施例中,在根据所述振动信息和所述电驱转速信息确定阶次集合的步骤中,如图2所示,进一步包括以下步骤:In an embodiment of the present invention, in the step of determining the order set according to the vibration information and the electric drive rotational speed information, as shown in FIG. 2 , the following steps are further included:
步骤201:根据所述振动信息确定振动频域信号,根据所述电驱转速信息确定电驱转速信号。Step 201: Determine a vibration frequency domain signal according to the vibration information, and determine an electric drive rotation speed signal according to the electric drive rotation speed information.
步骤202:根据所述振动频域信号和所述电驱转速信号确定目标阶次集合。Step 202: Determine a target order set according to the vibration frequency domain signal and the electric drive rotational speed signal.
在本发明一实施例中,在所述确定目标音调值的步骤中,如图3所示,进一步包括以下步骤:In an embodiment of the present invention, in the step of determining the target pitch value, as shown in FIG. 3 , the following steps are further included:
步骤311:获取预设音调值。Step 311: Acquire a preset tone value.
在此步骤中,所述预设音调值可以根据环境噪声的音调值确定。In this step, the preset tone value may be determined according to the tone value of ambient noise.
步骤312:根据所述阶次对应的音调值与预设音调值得到目标音调值。Step 312: Obtain a target pitch value according to the pitch value corresponding to the order and the preset pitch value.
在此步骤中,基于预设音调值的参照标准,将高于所述预设音调值且满足预定条件的所述阶次对应的音调值确定为目标音调值。In this step, based on the reference standard of the preset pitch value, the pitch value corresponding to the order higher than the preset pitch value and satisfying the predetermined condition is determined as the target pitch value.
在本发明一实施例中,在获取预设音调值的步骤中,如图4所示,进一步包括以下步骤:In an embodiment of the present invention, in the step of acquiring the preset pitch value, as shown in FIG. 4 , the following steps are further included:
步骤3111:根据车内背景噪声的音调值确定参照音调值。Step 3111: Determine the reference pitch value according to the pitch value of the background noise in the vehicle.
在此步骤中,通过采集车内的背景噪声,得到车内背景噪声的音调值。In this step, the pitch value of the background noise in the vehicle is obtained by collecting the background noise in the vehicle.
步骤3112:将所述参照音调值作为预设音调值。Step 3112: Use the reference pitch value as a preset pitch value.
在此步骤中,将车内背景噪声的音调值直接作为预设音调值,以在此音调值的基础上对所述阶次对应的音调值进行后续处理,所述预设音调值根据车内背景噪声的动态大小不断进行调整,进而所述目标音调值的计算能够更加贴切地反映音调的突出程度,使得后续对电动车音效的模拟更能符合人耳对音调声音的感知。In this step, the pitch value of the background noise in the vehicle is directly used as the preset pitch value, so as to perform subsequent processing on the pitch value corresponding to the order on the basis of the pitch value, and the preset pitch value is based on the in-vehicle pitch value. The dynamic size of the background noise is continuously adjusted, and the calculation of the target pitch value can more accurately reflect the prominence of the pitch, so that the subsequent simulation of the sound effects of the electric vehicle is more in line with the human ear's perception of the pitch sound.
在本发明一实施例中,在根据所述阶次对应的音调值与预设音调值得到目标音调值的步骤中,如图5所示,进一步包括以下步骤:In an embodiment of the present invention, the step of obtaining the target pitch value according to the pitch value corresponding to the order and the preset pitch value, as shown in FIG. 5 , further includes the following steps:
步骤3121:获取第一评价音调值。Step 3121: Obtain the first evaluation pitch value.
在此步骤中,所述第一评价音调值可以根据不同车型的预设的声音效果确定,也可以根据客观频谱分析与主观试听的方法确定,还可以根据不同的声场环境进行设置。In this step, the first evaluation tone value may be determined according to preset sound effects of different vehicle models, or may be determined according to methods of objective spectrum analysis and subjective audition, or may be set according to different sound field environments.
步骤3122:根据所述第一评价音调值和所述预设音调值确定第二评价音调值。Step 3122: Determine a second evaluation pitch value according to the first evaluation pitch value and the preset pitch value.
在此步骤中,将所述第一评价音调值和所述预设音调值进行加和得到第二评价音调值。或者分别将所述第一评价音调值和所述预设音调值设置不同的加权值后进行加和,以控制所述第一评价音调值和所述预设音调值在所述第二评价音调值中的比重,由此调节所述第一评价音调值和所述预设音调值对目标音调值确定的影响。第二评价音调值为在预设音调值的参考背景下,能够确定车内存在啸叫的音调值,而第二评价音调值的设定,使得能够参考所述第二评价音调值对该车内啸叫的声音进行调整,以获得电动车良好的音效模拟效果。In this step, the first evaluation pitch value and the preset pitch value are added to obtain a second evaluation pitch value. Or set different weighting values for the first evaluation pitch value and the preset pitch value and add them to control the first evaluation pitch value and the preset pitch value in the second evaluation pitch. The proportion in the value, thereby adjusting the influence of the first evaluation pitch value and the preset pitch value on the determination of the target pitch value. The second evaluation tone value is in the reference background of the preset tone value, which can determine the tone value of whistling in the vehicle, and the setting of the second evaluation tone value enables the vehicle to be determined with reference to the second evaluation tone value. The sound of internal whistling is adjusted to obtain a good sound effect simulation effect of electric vehicles.
步骤3123:将所述阶次对应的音调值小于所述第二评价音调值的音调值确定为目标音调值。Step 3123: Determine the pitch value whose pitch value corresponding to the order is smaller than the second evaluation pitch value as the target pitch value.
在此步骤中,将小于所述第二评价音调值的音调值确定为目标音调值,以所述阶次对应的小于所述第二评价音调值的音调值进行后续处理,其中,小于所述第二评价音调值的音调值对应的声音信号则对应车内不满足条件的车内啸叫声音,本发明所述电动车音效模拟方法则针对上述不满足条件的车内啸叫声音进行调整,以获得电动车良好的音效模拟效果,提升驾乘人员的驾驶体验。In this step, a pitch value smaller than the second evaluation pitch value is determined as a target pitch value, and subsequent processing is performed with a pitch value corresponding to the order that is smaller than the second evaluation pitch value, wherein The sound signal corresponding to the pitch value of the second evaluation pitch value corresponds to the in-vehicle whistling sound that does not meet the conditions, and the electric vehicle sound effect simulation method of the present invention is adjusted for the above-mentioned in-vehicle whistling sound that does not meet the conditions. In order to obtain a good sound simulation effect of electric vehicles, and improve the driving experience of drivers and passengers.
在本发明一实施例中,在根据所述目标音调值从所述阶次所对应的声音信号中确定第一声音信号的步骤中,如图6所示,进一步包括以下步骤:In an embodiment of the present invention, the step of determining the first sound signal from the sound signal corresponding to the order according to the target pitch value, as shown in FIG. 6 , further includes the following steps:
步骤321:确定所述目标音调值所对应的声音信号。Step 321: Determine the sound signal corresponding to the target pitch value.
步骤322:将所述目标音调值所对应的声音信号确定为第一声音信号。Step 322: Determine the sound signal corresponding to the target pitch value as the first sound signal.
在此步骤中,将所述目标音调值所对应的声音信号确定为第一声音信号,以对第一声音信号进行处理。In this step, the sound signal corresponding to the target pitch value is determined as the first sound signal, so as to process the first sound signal.
在本发明一实施例中,在根据各阶次声压值从所述第一声音信号中确定第二声音信号的步骤中,如图7所示,进一步包括以下步骤:In an embodiment of the present invention, in the step of determining the second sound signal from the first sound signal according to the sound pressure values of various orders, as shown in FIG. 7 , the following steps are further included:
步骤331:提取第一声音信号中各阶次声压值的特征。Step 331 : Extract the features of the sound pressure values of each order in the first sound signal.
步骤332:根据各阶次声压值的特征确定第二声音信号。Step 332: Determine the second sound signal according to the characteristics of the sound pressure values of each order.
在此步骤中,将各阶次的声压值特征满足一定条件的第一声音信号确定为第二声音信号,具体地,可以通过判断第一声音信号与预设音调值的差值是否满足预设的条件,所述预设条件可以包括以下情况:比如当第一声音信号与预设音调值的差值不连续时,会导致人耳对第一声音信号与预设音调值的差值所表征的车内啸叫声音的感知不能与电动车的运行状态相匹配,则将满足该条件的第一声音信号确定为第二声信号;或者比如当第一声音信号与预设音调值的 差值不能随车况信息的变化而线性变化,进而影响人耳对第一声音信号与预设音调值的差值所表征的车内啸叫声音的感知时,此种情况使人耳对车内啸叫声音的感知不能随着车况信息的变化而变化影响驾驶体验,则将满足该条件的第一声音信号确定为第二声信号;或者根据不同汽车产品定位,将能够产生满足预设的车内主动声浪的各阶次对应的第一声音信号确定为第二声音信号,此时的第二声音信号的确定最终取决于汽车产品定位和主观评价。In this step, the first sound signal whose sound pressure value characteristic of each order satisfies a certain condition is determined as the second sound signal. The preset conditions may include the following situations: for example, when the difference between the first sound signal and the preset pitch value is discontinuous, it will cause the human ear to perceive the difference between the first sound signal and the preset pitch value. If the perception of the in-vehicle whistling sound represented cannot match the running state of the electric vehicle, the first sound signal satisfying this condition is determined as the second sound signal; or, for example, when the difference between the first sound signal and the preset tone value is When the value cannot change linearly with the change of vehicle condition information, thus affecting the human ear's perception of the car whistling sound represented by the difference between the first sound signal and the preset tone value, this situation makes the human ear perceive the car whistling sound. If the perception of sound cannot change with the change of vehicle condition information and affect the driving experience, the first sound signal satisfying this condition is determined as the second sound signal; The first sound signal corresponding to each order of the active sound wave is determined as the second sound signal, and the determination of the second sound signal at this time ultimately depends on the positioning of the automobile product and subjective evaluation.
在本发明一实施例中,所述车况信息包括加速踏板开度、刹车踏板开度或电机扭矩信息。所述车况信息用于实时反馈驾乘人员的驾驶意图。In an embodiment of the present invention, the vehicle condition information includes accelerator pedal opening, brake pedal opening or motor torque information. The vehicle condition information is used to feed back the driving intention of the driver and passenger in real time.
在本发明一实施例中,在根据所述车况信息对所述第二声音信号进行补偿的步骤中,如图8所示,进一步包括以下步骤:In an embodiment of the present invention, the step of compensating the second sound signal according to the vehicle condition information, as shown in FIG. 8 , further includes the following steps:
步骤341:根据所述加速踏板开度、所述刹车踏板开度或所述电机扭矩信息确定补偿系数。Step 341: Determine a compensation coefficient according to the accelerator pedal opening, the brake pedal opening or the motor torque information.
在此步骤中,具体地,可以根据加速踏板开度、所述刹车踏板开度或所述电机扭矩信息的一种或几种,确定所述补偿系数。In this step, specifically, the compensation coefficient may be determined according to one or more of the accelerator pedal opening, the brake pedal opening or the motor torque information.
步骤342:依据所述补偿系数对所述第二声音信号进行补偿。Step 342: Compensate the second sound signal according to the compensation coefficient.
在此步骤中,依据所述补偿系数对所述第二声音信号进行补偿,具体地,可以先确定第二声音信号需要补偿的初始量,获得所述初始量后与所述补偿系数相乘得到第二声音信号对应的补偿量。通过在车内或车外播放补偿后的音频,使得车内和车外环境中,人耳均能根据所述目标补偿音频和电车自身音频的叠加音效获得对车辆工况的预判,提高车内乘员的驾驶体验,方便车外行人对电动车的行车趋势做出反应,减少事故的发生。In this step, the second sound signal is compensated according to the compensation coefficient. Specifically, the initial amount to be compensated for the second sound signal may be determined first, and then the initial amount is obtained and then multiplied by the compensation coefficient to obtain The compensation amount corresponding to the second sound signal. By playing the compensated audio in the car or outside the car, the human ear can predict the working conditions of the vehicle according to the superimposed sound effects of the target compensation audio and the tram's own audio in both the car and the outside environment, so as to improve the performance of the car. The driving experience of the occupants is convenient for pedestrians outside the car to respond to the driving trend of electric vehicles and reduce the occurrence of accidents.
在本发明一实施例中,在对得到的各补偿音频进行合成,得到目标补偿音频的步骤之前,如图9所示,进一步包括以下步骤:In an embodiment of the present invention, before the step of synthesizing the obtained compensation audio to obtain the target compensation audio, as shown in FIG. 9 , the following steps are further included:
步骤351:确定所述阶次对应的转速相关的阶次补偿信号,其中,所述阶次对应的转速相关的阶次补偿信号根据所述电驱转速信号确定。Step 351 : Determine a rotational speed-related order compensation signal corresponding to the order, wherein the rotational speed-related order compensation signal corresponding to the order is determined according to the electric drive rotational speed signal.
在此步骤中,所述转速相关的阶次补偿信号实现了增加电驱声音的厚重感,减少了阶次尖锐度,提高了电驱车电驱声音的品质。In this step, the order compensation signal related to the rotational speed can increase the heavy feeling of the electric drive sound, reduce the order sharpness, and improve the quality of the electric drive sound of the electric drive car.
步骤352:根据所述转速相关的阶次补偿信号确定与所述阶次对应的所述补偿音频。Step 352: Determine the compensation audio corresponding to the order according to the order compensation signal related to the rotational speed.
其中,所述补偿音频根据所述第二声音信号的各阶次声压值的特征确定。 具体地,比如当第二声音信号与预设音调值的差值不连续时,会导致人耳对第二声音信号与预设音调值的差值所表征的车内啸叫声音的感知不能与电动车的运行状态相匹配,则通过补偿根据该第二声音信号确定的补偿音频后,能够使得人耳将第二声信号与预设音调值的差值所表征的车内啸叫声音的感知与电动车的运行状态相匹配;或者比如当第二声音信号与预设音调值的差值不能随车况信息的变化而线性变化,进而影响人耳对第一声音信号与预设音调值的差值所表征的车内啸叫声音的感知时,此种情况使人耳对车内啸叫声音的感知不能随着车况信息的变化而变化影响驾驶体验,则通过补偿根据该第二声音信号确定的补偿音频后,能够使得人耳对车内啸叫声音的感知随着车况信息的变化而变化进而提升驾驶体验;或者根据不同汽车产品定位,设计车内主动的声浪,使得通过补偿根据该第二声音信号确定的补偿音频后能够满足车内主动声浪的要求,如汽车需要动感的声音,则需要主动补偿随振动幅值和扭矩变化的中低阶次主动声浪以确定补偿音频,如汽车需要科幻声音,则需要主动补偿随振动幅值和扭矩变化的中高阶次主动声浪以确定补偿音频。Wherein, the compensation audio is determined according to the characteristics of the sound pressure values of each order of the second sound signal. Specifically, for example, when the difference between the second sound signal and the preset pitch value is discontinuous, the human ear's perception of the in-vehicle whistling sound represented by the difference between the second sound signal and the preset pitch value may not match the If the operating state of the electric vehicle matches, after compensating the compensation audio determined according to the second sound signal, the human ear can perceive the whistling sound in the vehicle represented by the difference between the second sound signal and the preset tone value. Matches the running state of the electric vehicle; or when the difference between the second sound signal and the preset tone value cannot change linearly with the change of vehicle condition information, thereby affecting the human ear's perception of the difference between the first sound signal and the preset tone value. When the perception of the whistling sound in the car represented by the value, the human ear's perception of the whistling sound in the car cannot change with the change of the vehicle condition information and affect the driving experience, then the compensation is determined according to the second sound signal. After the compensation audio, the human ear's perception of the whistling sound in the car changes with the change of the vehicle condition information, thereby improving the driving experience; The compensated audio frequency determined by the second sound signal can meet the requirements of active sound waves in the car. If the car needs dynamic sound, it is necessary to actively compensate for the middle and low-order active sound waves that change with the vibration amplitude and torque to determine the compensation audio. Sci-fi sound requires active compensation of mid- and high-order active sound waves that vary with vibration amplitude and torque to determine compensation audio.
在本发明一实施例中,在所述播放所述目标补偿音频的步骤之后,如图10所示,进一步包括以下步骤:In an embodiment of the present invention, after the step of playing the target compensation audio, as shown in FIG. 10 , the following steps are further included:
步骤361:采集车内声音。Step 361: Collect in-vehicle sound.
在此步骤中,采集播放所述目标补偿音频后的车内声音,以对播放所述目标补偿音频后的车内声音进行调整。In this step, the in-vehicle sound after the target compensation audio is played is collected to adjust the in-vehicle sound after the target compensation audio is played.
步骤362:获取所述车内声音特征;Step 362: Acquire the in-vehicle sound feature;
步骤363:根据所述车内声音特征得到声音数据分析结果;Step 363: Obtain a sound data analysis result according to the in-vehicle sound feature;
步骤364:根据所述声音数据分析结果调整所述目标补偿音频。Step 364: Adjust the target compensation audio according to the sound data analysis result.
在此步骤中,根据播放所述目标补偿音频后的车内声音,进行声音数据分析,根据声音数据分析的结果,适当调整所述目标补偿音频,以获得更好的电车音效模拟效果。In this step, sound data analysis is performed according to the in-vehicle sound after playing the target compensation audio, and according to the result of the sound data analysis, the target compensation audio is appropriately adjusted to obtain a better simulation effect of tram sound effects.
本发明实施例还公开了一种电动车音效模拟装置600,如图11所示,包括信号获取模块610、识别分析模块620、补偿声音处理模块630、补偿声音生成模块640和补偿实现模块650,The embodiment of the present invention also discloses an electric vehicle sound effect simulation device 600, as shown in FIG. 11, including a signal acquisition module 610, an identification analysis module 620, a compensation sound processing module 630, a compensation sound generation module 640, and a compensation realization module 650,
所述信号获取模块610用于获取车辆的振动信息、电驱转速信息和车况信息;所述识别分析模块620用于根据所述振动信息和所述电驱转速信息确定阶 次集合,所述阶次集合包括至少一个阶次,每个阶次对应一个声音信号;所述补偿声音处理模块630用于对所述阶次集合中的每个阶次执行补偿处理,得到与各阶次对应的补偿音频;其中,对所述阶次执行补偿处理包括:确定目标音调值;根据所述目标音调值从阶次所对应的声音信号中确定第一声音信号;根据各阶次的声压值从所述第一声音信号中确定第二声音信号,所述第二声音信号为需要进行补偿的声音信号;根据所述车况信息对所述第二声音信号进行声音补偿,得到与所述阶次对应的补偿音频;所述补偿声音生成模块640用于对得到的各补偿音频进行合成,得到目标补偿音频;所述补偿实现模块650用于播放所述目标补偿音频。The signal acquisition module 610 is used to acquire the vibration information, electric drive speed information and vehicle condition information of the vehicle; the identification analysis module 620 is used to determine an order set according to the vibration information and the electric drive speed information, the order The sub-set includes at least one order, and each order corresponds to a sound signal; the compensation sound processing module 630 is configured to perform compensation processing on each order in the order set to obtain the compensation corresponding to each order audio; wherein performing compensation processing on the order includes: determining a target pitch value; determining a first sound signal from the sound signals corresponding to the order according to the target pitch value; The second sound signal is determined from the first sound signal, and the second sound signal is the sound signal that needs to be compensated; the sound compensation is performed on the second sound signal according to the vehicle condition information to obtain a sound signal corresponding to the order. Compensation audio; the compensation sound generation module 640 is used for synthesizing each obtained compensation audio to obtain the target compensation audio; the compensation realization module 650 is used for playing the target compensation audio.
在本发明一实施例中,如图11所示,所述补偿声音处理模块630还包括目标定义模块631和补偿计算模块632,所述目标定义模块631用于确定目标音调值;所述补偿计算模块632用于根据所述目标音调值从阶次所对应的声音信号中确定第一声音信号;根据各阶次的声压值从所述第一声音信号中确定第二声音信号,所述第二声音信号为需要进行补偿的声音信号;根据所述车况信息对所述第二声音信号进行声音补偿,得到与所述阶次对应的补偿音频。In an embodiment of the present invention, as shown in FIG. 11 , the compensation sound processing module 630 further includes a target definition module 631 and a compensation calculation module 632, and the target definition module 631 is used to determine a target pitch value; the compensation calculation Module 632 is configured to determine the first sound signal from the sound signal corresponding to the order according to the target pitch value; determine the second sound signal from the first sound signal according to the sound pressure value of each order, and the first sound signal is The second sound signal is a sound signal that needs to be compensated; sound compensation is performed on the second sound signal according to the vehicle condition information to obtain a compensated audio frequency corresponding to the order.
本发明实施例还公开了一种电动车音效模拟系统700,如图12所示,包括音频采集设备710、音频播放设备720和如上任一所述的电动车音效模拟装置600,所述电动车音效模拟装置600分别与所述音频采集设备710和所述音频播放设备720连接。The embodiment of the present invention also discloses an electric vehicle sound effect simulation system 700, as shown in FIG. 12, including an audio collection device 710, an audio playback device 720, and the electric vehicle sound effect simulation device 600 described above, the electric vehicle The sound effect simulation apparatus 600 is respectively connected to the audio collection device 710 and the audio playback device 720 .
本发明实施例还公开了一种汽车,所述汽车配置如上所述的电动车音效模拟系统700。所述音频采集设备710包括麦克风,所述麦克风可以设置一个或多个,以能够准确采集车内声音为准。所述音频播放设备720包括音响设备,所述音响设备可以是整车多媒体设备,也可以是独立于整车多媒体的播放设备。所述信号获取模块610包括振动传感器,所述振动传感器用于获取车辆的振动信息,所述振动传感器采集的振动信号的频率为10赫兹-5000赫兹,所述振动信号具有鲁棒性,受环境和使用时间的影响较小。所述振动传感器的安装位置可以是前后电驱的壳体位置,也可以是悬置侧位置,以保证安装方便且能够稳定采集振动信号。The embodiment of the present invention also discloses an automobile, and the automobile is configured with the electric vehicle sound effect simulation system 700 as described above. The audio collection device 710 includes a microphone, and one or more microphones may be provided, whichever can accurately collect the sound in the vehicle. The audio playback device 720 includes an audio device, and the audio device may be a vehicle multimedia device, or may be a playback device independent of the vehicle multimedia. The signal acquisition module 610 includes a vibration sensor, and the vibration sensor is used to acquire vibration information of the vehicle. The frequency of the vibration signal collected by the vibration sensor is 10 Hz to 5000 Hz. The vibration signal is robust and can be affected by the environment. and use time is less affected. The installation position of the vibration sensor may be the housing position of the front and rear electric drives, or the position of the suspension side, so as to ensure convenient installation and stable collection of vibration signals.
以上所揭露的仅为本发明的几个较佳实施例而已,当然不能以此来限定本发明之权利范围,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。The above disclosures are only a few preferred embodiments of the present invention, which of course cannot limit the scope of the rights of the present invention. Therefore, equivalent changes made according to the claims of the present invention are still within the scope of the present invention.