WO2023126011A1 - Vehicle sound playback method and apparatus, storage medium and device - Google Patents
Vehicle sound playback method and apparatus, storage medium and device Download PDFInfo
- Publication number
- WO2023126011A1 WO2023126011A1 PCT/CN2023/070018 CN2023070018W WO2023126011A1 WO 2023126011 A1 WO2023126011 A1 WO 2023126011A1 CN 2023070018 W CN2023070018 W CN 2023070018W WO 2023126011 A1 WO2023126011 A1 WO 2023126011A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- sound
- target
- vehicle
- speed
- preprocessed
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 77
- 238000007781 pre-processing Methods 0.000 claims abstract description 15
- 230000001133 acceleration Effects 0.000 claims description 23
- 230000003111 delayed effect Effects 0.000 claims description 4
- 230000000694 effects Effects 0.000 abstract description 14
- 238000004088 simulation Methods 0.000 abstract description 13
- 238000004880 explosion Methods 0.000 abstract 1
- 230000008569 process Effects 0.000 description 8
- 101100361283 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) RPM2 gene Proteins 0.000 description 6
- 230000006870 function Effects 0.000 description 6
- 238000013461 design Methods 0.000 description 5
- 101150085390 RPM1 gene Proteins 0.000 description 4
- 238000005070 sampling Methods 0.000 description 4
- 230000015572 biosynthetic process Effects 0.000 description 3
- 230000008859 change Effects 0.000 description 3
- 230000007423 decrease Effects 0.000 description 3
- 238000011161 development Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000001965 increasing effect Effects 0.000 description 3
- 239000002245 particle Substances 0.000 description 3
- 238000003786 synthesis reaction Methods 0.000 description 3
- 238000004590 computer program Methods 0.000 description 2
- 230000002708 enhancing effect Effects 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 101001064774 Homo sapiens Peroxidasin-like protein Proteins 0.000 description 1
- 101001038163 Homo sapiens Sperm protamine P1 Proteins 0.000 description 1
- 102100031894 Peroxidasin-like protein Human genes 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 230000007704 transition Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R3/00—Circuits for transducers, loudspeakers or microphones
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R3/00—Circuits for transducers, loudspeakers or microphones
- H04R3/04—Circuits for transducers, loudspeakers or microphones for correcting frequency response
Definitions
- the present application relates to the field of vehicle technology, and in particular to a method, device, storage medium and equipment for playing vehicle sound.
- the utilization rate of cars has gradually increased, and more and more cars have entered people's lives, bringing great convenience to all aspects of people's lives.
- the noise level in the car has been reduced year by year.
- the quiet driving environment also makes the car lack the sense of power brought by the sound of the engine, which reduces the driving pleasure of some consumers.
- the method of simulated playback of vehicle sound effects can be used to actively emit sound through the speakers in the car, thereby improving the sound quality in the car and enhancing driving pleasure.
- the main purpose of the embodiments of the present application is to provide a vehicle sound playback method, device, storage medium and equipment, which can realize intelligent simulation playback of vehicle sounds, make the user's sense of hearing more natural, and further improve the user's driving experience.
- An embodiment of the present application provides a method for playing vehicle sound, including:
- the preprocessed target sound is played in the target vehicle according to the playback frequency.
- the target sound includes multiple pieces of preprocessed sound data, and the multiple pieces of sound data are the interior sounds collected separately when the vehicle of the preset model type runs to multiple different constant working conditions data.
- the acquiring the rotational speed of the target vehicle, and determining the preprocessed target sound and the playback frequency according to the rotational speed of the target vehicle and the preset correspondence between the rotational speed and the playback frequency include: :
- the playback frequency of the at least one piece of preprocessed sound data is determined according to the rotation speed of the target vehicle and the preset correspondence between the rotation speed and the playback frequency.
- the multiple different constant working conditions include an idling working condition.
- the preprocessing the target sound to obtain the preprocessed target sound, so as to eliminate the pop sound generated when playing the target sound includes:
- the sound of the first second preset duration of the first sound segment is set to fade-in mode to obtain an updated first sound segment; and the sound of the second preset duration of the second sound segment is set to fade out mode to obtain the updated second sound segment;
- the sequence of the updated first sound segment and the updated second sound segment are exchanged, and an overlap of a second preset duration is set between the two to obtain a pre-processed target sound to eliminate the need to play the Popping sound when the target sounds.
- the second preset duration is one-third or one-half of the first preset duration, or the second preset duration is not longer than the first preset duration half of the duration.
- the method further includes:
- the preprocessed target sound corresponding to the previous speed interval and the preprocessed target sound corresponding to the next speed interval of the overlapping speed interval are simultaneously played.
- the simultaneously playing the preprocessed target sound corresponding to the previous speed interval and the preprocessed target sound corresponding to the next speed interval in the speed overlapping interval includes:
- the preprocessed target sound corresponding to the previous speed interval of the speed overlapping interval is played in fade-out mode, and the preprocessed target sound corresponding to the subsequent speed interval of the speed overlapping interval is played in fade-in mode.
- the method further includes:
- the volume of the preprocessed target sound played in the target vehicle is reduced to a preset volume threshold.
- the method further includes:
- the target vehicle is in an acceleration or deceleration state; if yes, the preprocessed target sound is played in the target vehicle.
- the method after acquiring the first preset number of accelerator pedal strokes of the target vehicle, the method includes:
- the determining whether the target vehicle is in an acceleration or deceleration condition according to the first preset number of accelerator pedal strokes; if so, playing the preprocessed target sound in the target vehicle includes:
- the method further includes:
- the target vehicle is in an acceleration or deceleration state; if yes, the preprocessed target sound is played in the target vehicle.
- the method after acquiring the second preset number of instantaneous vehicle speeds of the target vehicle, the method includes:
- the shifted second preset number of instantaneous vehicle speeds is obtained, and the average of the shifted second preset number of instantaneous vehicle speeds is calculated value; and further calculate the average value of the average value of the instantaneous vehicle speed after the shift of the third preset number; the average value of the instantaneous vehicle speed after the shift of the third preset number is compared to the The mean is lagged;
- the determining whether the target vehicle is in an acceleration or deceleration condition according to the second preset number of instantaneous vehicle speeds; if so, playing the preprocessed target sound in the target vehicle includes:
- the threshold is set, then it is determined that the target vehicle is in an acceleration condition, or, if the difference is less than the fourth preset threshold, it is determined that the target vehicle is in a deceleration condition, and the pre-processing is played in the target vehicle after the target sound.
- the embodiment of the present application also provides a vehicle sound playback device, the device comprising:
- an acquisition unit configured to acquire the target sound
- a preprocessing unit configured to preprocess the target sound to obtain the preprocessed target sound
- the first determining unit is configured to acquire the rotational speed of the target vehicle, and determine the preprocessed target sound and the playback frequency according to the rotational speed of the target vehicle and the preset correspondence between the rotational speed and the playback frequency;
- a playback unit configured to play the preprocessed target sound in the target vehicle according to the playback frequency.
- the target sound includes multiple pieces of preprocessed sound data, and the multiple pieces of sound data are the interior sounds collected separately when the vehicle of the preset model type runs to multiple different constant working conditions data.
- the first determination unit includes:
- a selection subunit configured to select at least one piece of preprocessed sound data from the plurality of pieces of preprocessed sound data according to the rotational speed of the target vehicle;
- the determination subunit is configured to determine the playback frequency of the at least one piece of preprocessed sound data according to the rotation speed of the target vehicle and the preset correspondence between the rotation speed and playback frequency.
- the multiple different constant working conditions include an idling working condition.
- the preprocessing unit includes:
- Dividing subunits used to sequentially divide the target sound into a first sound segment and a second sound segment; the sound time lengths of the first sound segment and the second sound segment are both greater than or equal to a first preset duration;
- a subunit is set, which is used to set the sound of the first second preset duration of the first sound segment to fade-in mode to obtain an updated first sound segment; and set the rear second preset of the second sound segment The duration sound is set to fade-out mode, and the updated second sound segment is obtained;
- the exchange subunit is used to exchange the order of the updated first sound segment and the updated second sound segment, and set a second preset duration of overlap between the two to obtain the preprocessed target sound, to eliminate popping sounds when the target sound is played.
- the second preset duration is one-third or one-half of the first preset duration, or the second preset duration is not longer than the first preset duration half of the duration.
- the device further includes:
- a judging unit configured to judge whether the speed of the target vehicle is located in a speed overlapping interval after the speed of the target vehicle is acquired;
- a switching unit configured to simultaneously play the preprocessed target sound corresponding to the previous speed interval of the speed overlapping interval and the preprocessed sound corresponding to the subsequent speed interval if it is determined that the speed of the target vehicle is located in the speed overlapping interval.
- the processed target sound
- the switching unit is specifically configured to:
- the preprocessed target sound corresponding to the previous speed interval of the speed overlapping interval is played in fade-out mode, and the preprocessed target sound corresponding to the subsequent speed interval of the speed overlapping interval is played in fade-in mode.
- the device further includes:
- a reducing unit configured to reduce the volume of the preprocessed target sound played in the target vehicle to within the range of a third preset duration when the vehicle speed of the target vehicle is in a preset stable working condition Preset volume threshold.
- the device further includes:
- a first acquiring unit configured to acquire a first preset number of accelerator pedal strokes of the target vehicle
- the second determining unit is configured to determine whether the target vehicle is in an acceleration or deceleration state according to the first preset number of accelerator pedal strokes; if so, play the preprocessed target in the target vehicle sound.
- the device further includes:
- the first shifting unit is configured to sequentially shift the first preset number of accelerator pedal strokes of the target vehicle forward one bit after the acquisition of the first preset number of accelerator pedal strokes of the target vehicle After that, the first preset amount of accelerator pedal travel after shifting is obtained;
- the second determining unit is specifically used for:
- the device further includes:
- a second acquiring unit configured to acquire a second preset number of instantaneous vehicle speeds of the target vehicle
- a third determining unit configured to determine whether the target vehicle is in an acceleration or deceleration state according to the second preset number of instantaneous vehicle speeds; if so, play the preprocessed target sound in the target vehicle .
- the device further includes:
- the second shifting unit is used to obtain the shifted second preset number of instantaneous vehicle speeds by sequentially shifting the second preset number of instantaneous vehicle speeds one bit forward, and calculate the second preset number The average value of the instantaneous vehicle speed after the shift; and further calculate the average value of the average value of the instantaneous vehicle speed after the shift of the third preset number; the average value of the instantaneous vehicle speed after the shift of the third preset number is compared The average value of the instantaneous vehicle speed after the shift is lagged;
- the third determining unit is specifically used for:
- the threshold is set, then it is determined that the target vehicle is in an acceleration condition, or, if the difference is less than the fourth preset threshold, it is determined that the target vehicle is in a deceleration condition, and the pre-processing is played in the target vehicle after the target sound.
- the embodiment of the present application also provides a vehicle sound playback device, including: a processor, a memory, and a system bus;
- the processor and the memory are connected through the system bus;
- the memory is used to store one or more programs, and the one or more programs include instructions, and the instructions, when executed by the processor, cause the processor to execute any one of the above-mentioned vehicle sound playing methods. Way.
- An embodiment of the present application also provides a vehicle, the vehicle includes the above-mentioned vehicle sound playback device.
- the embodiment of the present application also provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the instructions are run on the terminal device, the terminal device is made to perform the above-mentioned vehicle sound playing method. any implementation of the .
- the embodiment of the present application also provides a computer program product, which, when running on a terminal device, enables the terminal device to execute any one of the above methods for playing vehicle sound.
- a vehicle sound playback method, device, storage medium, and equipment provided in the embodiments of the present application first obtain the target sound; then perform preprocessing on the target sound to obtain the preprocessed target sound; then, obtain the speed of the target vehicle, and According to the rotational speed of the target vehicle and the corresponding relationship between the preset rotational speed and the playback frequency, the preprocessed target sound and the playback frequency are determined; furthermore, the preprocessed target sound can be played in the target vehicle according to the playback frequency.
- this application not only realizes the sound simulation effect of the vehicle's full working condition by using the collected target sounds of the preset model vehicle running under different constant working conditions, but also needs to repeatedly play a certain sound sample when the vehicle speed is in a certain constant working condition At the same time, there will be no popping sound, which makes the user's sense of hearing more natural, thereby improving the user's driving experience.
- Fig. 1 is a schematic flow chart of a vehicle sound playing method provided by an embodiment of the present application
- FIG. 2 is a schematic diagram of playing target sounds in different speed ranges provided by the embodiment of the present application.
- Fig. 3 is a schematic composition diagram of a vehicle sound playback device provided by an embodiment of the present application.
- the noise level in the car has been reduced year by year.
- the quiet driving environment also makes the car lack the sense of power brought by the sound of the engine, reducing the driving pleasure of some consumers.
- the method of simulated playback of vehicle sound effects can be used to actively emit sound through the speakers in the car, thereby improving the sound quality in the car and enhancing driving pleasure.
- the existing vehicle sound effect sound simulation playback methods generally include the following two types:
- the first is the formula method, such as deriving the order frequency, amplitude, and phase to be enhanced according to the engine speed signal, and then calculating the output value based on the sine wave formula, but this method can only generate a limited number of single-frequency signals, which cannot be realized The full-band sound simulation results in a poor sound simulation playback effect in the vehicle.
- the second is the particle synthesis algorithm.
- the sound of all working conditions is pre-recorded, and then the sound is cut into multiple sound segments and pre-processed. Each sound segment seems to be a sound of a certain constant working condition. According to different working conditions Play different sound segments.
- the algorithm can realize full-band sound simulation, the design is complicated. If the design is not good, it will produce "popping sound" when switching different sound segments. When the vehicle operating condition is in a certain constant operating condition, playing a certain short section of sound repeatedly will sound unnatural, which reduces the user's driving experience.
- the present application provides a method for playing vehicle sound.
- the target sound to be played is obtained; then the target sound is preprocessed to obtain the preprocessed target sound;
- the rotational speed of the target vehicle and the corresponding relationship between the preset rotational speed and the playback frequency determine the playback frequency of the target sound; furthermore, the target sound can be played in the target vehicle according to the playback frequency.
- this application not only realizes the sound simulation effect of the vehicle's full working condition by using the collected target sounds of the preset model vehicle running under different constant working conditions, but also needs to repeatedly play a certain sound sample when the vehicle speed is in a certain constant working condition At the same time, there will be no popping sound, which makes the user's sense of hearing more natural, thereby improving the user's driving experience.
- Fig. 1 it is a schematic flow chart of a method for playing vehicle sound provided by this embodiment, the method includes the following steps:
- the target sound may include multiple pieces of preprocessed sound data, and the multiple pieces of sound data are in-vehicle sound data collected respectively when the vehicle of a preset model type is running in multiple different constant working conditions.
- Preset models of vehicles can be selected arbitrarily. For example, when the vehicle of the preset model type is running to a different constant working condition, the noise data inside the vehicle is collected as the target sound to be played to perform the subsequent step S102.
- the target sound generally includes multiple.
- RecordRate1, RecordRate2, RecordRate3, and RecordRate4 are sampling rates, and the unit is sample/s, which is used to indicate that different sampling rates can be used to collect the target sound under the above four working conditions.
- these sampling rates may also be the same, or any of them may be the same.
- the number of constant-speed conditions is not limited to the three in Table 1 above, and the speed and rotation speed of different conditions should be significantly different.
- the collection time is not limited to the recommended time of 3-5 seconds, and the specific value can be set according to the actual situation, which is not set in this application.
- the target sound to be played is acquired through step S101, in order to eliminate the popping sound that may be generated when the target sound is played, so as to make the user's sense of hearing more natural, the target sound can be preprocessed to obtain the preprocessed
- the final target sound is used to execute the subsequent step S103.
- the target sound can be divided into a first sound segment and a second sound segment in sequence; wherein, the sound time lengths of the first sound segment and the second sound segment are both greater than or It is equal to the first preset duration, and the specific value of the first preset duration can be set according to actual conditions and experience values, which is not limited in this application, for example, the first preset duration can be set to 1 second.
- the intercepted first sound segment and the second sound segment may be 1.5 seconds respectively.
- the sound of the first second preset duration of the first sound segment can be set to fade-in mode to obtain the updated first sound segment; and the sound of the second preset duration of the second sound segment can be set to fade-out mode , to obtain the updated second sound segment, wherein the specific value of the second preset duration can be set according to the actual situation and experience value, which is not limited in this application, for example, the second preset duration can be the first preset One-third or one-half of the duration, or not more than one-half, etc. For example, when the first preset duration is set to 1 second, the second preset duration can be set to 0.5 seconds.
- the order of the updated first sound segment and the updated second sound segment can be exchanged, and a second preset duration (such as 0.5 seconds) of overlapping can be set between the two to obtain the preprocessed target sound, to eliminate popping sounds when the target sound is played. It can be seen that the preprocessed target sound is shorter than the original template sound by the second preset duration (for example, 0.5 seconds).
- S103 Obtain the rotation speed of the target vehicle, and determine the preprocessed target sound and the playback frequency according to the rotation speed of the target vehicle and the preset corresponding relationship between the rotation speed and the playback frequency.
- the content of the rotational speed of the target vehicle is determined according to the type of the target vehicle.
- the rotational speed of the target vehicle can be the rotational speed of the engine, and the acquisition method is not limited, for example, it can be obtained by using an on-board sensor;
- the speed of the target vehicle may be the virtual speed of the electric car, and the specific acquisition method is not limited, for example, it may be provided by the system of the target vehicle.
- an optional The implementation method is that the specific implementation process of this step S103 is: first, according to the speed of the target vehicle, select at least one piece of pre-processed sound data from a plurality of pieces of pre-processed sound data; and then according to the speed of the target vehicle and preset The corresponding relationship between the rotation speed and the playback frequency determines the playback frequency of at least one piece of preprocessed sound data for subsequent sound playback.
- the method for determining the preprocessed target sound to be played and its playing frequency according to the rotational speed of the target vehicle is specifically described as follows.
- S104 Play the preprocessed target sound in the target vehicle according to the playback frequency.
- the time length of the target sound collected in this application is much longer than the sound segments segmented by the current particle synthesis algorithm, it can improve the ability of the target vehicle to repeatedly play a certain sound segment under a certain constant working condition. realism.
- the rate of the preprocessed target sound played (that is, the playing frequency) can be changed in real time according to the rotational speed signal of the target vehicle.
- the timer interrupt function can be used to , and transmit the preprocessed target sound data to the DAC pin one by one in real time and output to the analog power amplifier chip.
- the time interval of timer interruption is controlled by the real-time change of the speed, so that the preprocessed target sound at idle speed or constant speed can be played with a variable rate of hearing.
- the corresponding relationship between the preset rotation speed and the playback frequency at each level is used to control the time interval of the timer interruption, that is, to determine the playback frequency of the pre-processed target sound.
- the timer interruption function is triggered, the Pass a preprocessed target sound data to the DAC pin, and then transmit it to the analog power amplifier chip through the DAC pin, so that the speaker in the target connected to the output end of the analog power amplifier chip can sound and play the preprocessed target sound. Therefore, according to the real-time change of the speed signal of the target vehicle, the trigger time interval of the timer interrupt function can also be used to realize the effect of changing the speed of the preprocessed target sound at idle speed or constant speed.
- the corresponding relationship between the preset rotation speed and the playback frequency can be set according to the actual situation.
- the playback frequency corresponding to 600 rotation speed is 0.01 seconds
- the playback frequency corresponding to 700 rotation speed is 0.009 seconds
- the playback frequency corresponding to 800 rotation speed is 0.001 seconds. Seconds, etc., so that when the rotational speed of the target vehicle is 600 rpm, the timer interrupt function can be triggered every 0.01 second, that is, the preprocessed target sound is played in the target vehicle every 0.01 second.
- the multiple different constant operating conditions include at least four operating conditions
- the specific implementation process of "obtaining the target sound to be played" in the above step S101 may include: when the vehicle of the preset model type is in the idle state, Under constant low-speed working conditions, constant medium-speed working conditions, and constant high-speed working conditions, respectively collect the first target sound, the second target sound, the third target sound, and the fourth target sound to be played, and record the corresponding first speed,
- the second rotation speed, the third rotation speed, and the fourth rotation speed are shown in the above table 1; wherein, when the preset vehicle gear is fixed, when it is in a constant low-speed working condition, a constant medium-speed working condition, or a constant high-speed working condition , it means that the speed of the vehicle is constant, which means that the speed of the vehicle is also stable.
- the vehicle of the preset model when the vehicle of the preset model is in the idling condition, the constant low-speed condition, the constant medium-speed condition, and the constant high-speed condition, not only Different target sounds can be collected correspondingly, and four fixed rotational speeds of the vehicle can be recorded and defined as the first rotational speed, the second rotational speed, the third rotational speed, and the fourth rotational speed respectively. Further, after obtaining the rotational speed of the target vehicle, it is necessary to determine whether the rotational speed of the target vehicle is in the rotational speed overlapping interval, and if so, it is necessary to simultaneously play the preprocessed target sound corresponding to the previous rotational speed interval of the rotational speed overlapping interval and the subsequent rotational speed interval The corresponding preprocessed target sound.
- the preprocessed target sound corresponding to the previous speed interval of the speed overlapping interval can be played in a fade-out mode
- the preprocessed target sound corresponding to the subsequent speed interval of the speed overlapping interval can be played in a fade-out mode. Playback in fade-in mode for better playback.
- the rotational speed overlapping interval may be an overlapping portion of the playing rotational speed ranges of any two preprocessed target sounds.
- the preset model vehicle is vehicle A
- the target vehicle is vehicle B.
- the first rotation speed is 600 rpm (idling mode)
- the second rotation speed is 1500 rpm
- the third rotation speed is 2500 rpm.
- the preprocessed second target sound is selected to be played.
- the preprocessed third target sound is selected to be played.
- it can be determined proportionally according to the speed range.
- the speed range of vehicle B is from 800 rpm (during idle speed) to 8000 rpm, and when the speed of vehicle B is 3200, 5600, 8000, the speed of vehicle A corresponds to 1500.
- the preprocessed second target sound is selected to be played, and when the acquired speed of vehicle B is within a certain range around 4800 rpm, the preprocessed third target sound is selected to be played.
- a playback speed range for example, it can be centered on the corresponding speed (for example, for the convenience of description, take the determination of the target sound directly according to the speed as an example, the corresponding speed can be preprocessed Acquisition speed of the target sound after that), several speed ranges before and after it (for example, plus or minus 600), that is, when the speed of the acquired target vehicle B is at any value between 900-2100, it is selected to collect when the speed of vehicle A is 1500
- the preprocessed second target sound is used as the target sound to be played.
- the preset corresponding relationship between the rotational speed and the playback frequency means that when the rotational speed of the second car is 1500, the preprocessed target sound is played normally; , the more the frequency decreases.
- the speed of car B is greater than 1500, then increase its frequency to play, and the higher the speed, the more the frequency increases.
- the preprocessed third target sound is selected for playback.
- the rotation speed overlap interval is 1900 to 3100 rotation speeds.
- the second pre-processed target sound corresponding to the previous speed range and the pre-processed third target sound corresponding to the next speed range will be played at the same time.
- a fade-in and fade-out control that is, a gain control, will be added.
- the third target sound gain ie volume
- the preprocessed second target sound gain will gradually decrease until it is 0.
- the rotational speed overlapping interval is the overlapping portion of the playing rotational speed ranges of any two preprocessed target sounds. It can be understood that in practical applications, the setting of the speed range must also ensure that there are overlapping intervals.
- the preprocessed target sounds to be played are collected respectively as sound A, sound B, and sound C.
- the speed range of the preprocessed target sound played by vehicle B is plus or minus 400 rpm
- the playback speed range of sound A is from 1100 to 1900 rpm
- the playback speed range of sound B is from 1600 to 2400 rpm
- the playback speed range of C is from 2100 to 2900 rpm
- the overlapping speed range includes 1600-1900 rpm and 2100-2400 rpm.
- the sound B starts to be played in a manner of gradually increasing frequency, and the volume of sound B is gradually increased until the speed of vehicle B reaches 2000 rpm, and the frequency of sound B is normal.
- the rotational speed of vehicle B gradually increases from 2000 to 2400 rpm, its playing frequency continues to increase, and when entering the next overlapping interval of rotational speed (that is, starting at 2100 rpm), the volume of playing sound B also gradually decreases until the vehicle B's
- the rotation speed reaches 2400 rpm
- the lowest volume of sound B reaches 0, that is, sound B stops playing, and sound B is played in fade-out mode.
- the interval from 2100 rpm to 2400 rpm is also an overlapping interval of rotational speeds, and sound B and sound C need to be played overlappingly.
- the switching between adjacent processed target sounds needs to achieve a smooth and natural transition.
- the time interval of the timer interruption is linearly inversely proportional to the current speed information of the target vehicle, that is, the higher the speed, the shorter the time interval of the timer interruption, the faster the DAC output signal, and the faster the sound playback rate. faster.
- the idling condition, constant low-speed condition, constant medium-speed condition, and constant high-speed condition respectively correspond to the preprocessed first target sound, second target sound, and third target sound.
- the sound, the fourth target sound, and the speed corresponding to the idling condition are between PRM1 and RPM2
- the speed corresponding to the constant low speed condition is between RPM3 and RPM4
- the speed corresponding to the constant medium speed condition is between RPM5 and RPM6
- the speed corresponding to the constant high-speed condition is between RPM7 and RPM8 as an example, preferably the median value of each interval
- the engine speed of the target vehicle satisfies: RPM1 ⁇ RPM2 ⁇ RPM3 ⁇ RPM4 ⁇ RPM6 ⁇ RPM7 ⁇ RPM8.
- the playback target sound in this speed range is as follows:
- the former pre-processed target sound should add the fade-out algorithm
- the latter pre-processed target sound should add the fade-in algorithm.
- the values of parameters RPM1, RPM2, RPM3, RPM4, RPM5, RPM6, RPM7, and RPM8 can be set according to actual conditions, and this embodiment of the present application does not limit this.
- RPM8 should be greater than the maximum speed of the vehicle engine to meet the target sound and can be produced under all working conditions of the vehicle.
- the playback of the pre-processed target sound can be started when the target vehicle is in an acceleration or deceleration condition, so as to avoid the driver driving at a constant speed for a long time (such as in driving on the highway) caused hearing fatigue.
- the specific playback process please refer to the above steps S101-S104.
- An optional implementation is to first determine whether the speed of the target vehicle is in a relatively stable state, that is, to determine whether the driver of the target vehicle is driving at a constant speed for a long time (such as driving on a highway), and if so, Then, in order to avoid hearing fatigue, the volume of the preprocessed target sound that has been played in the target vehicle can be reduced to the preset volume threshold within the third preset duration, and wait until the subsequent target vehicle is accelerating or accelerating again. When decelerating, turn on the playback of the target sound.
- the specific value of the range of the third preset duration can be set according to the actual situation and experience value, which is not limited in this application, for example, the range of the third preset duration can be set to 5 seconds to 10 seconds, etc.
- the specific value of the preset volume threshold can also be set according to actual conditions and experience values, and the present application does not limit it.
- the preset volume threshold can be set to 0, etc., such as within 5 seconds to 10 seconds. In the target vehicle, the volume of the pre-processed target sound that has been played in the target vehicle is reduced to 0, even if the virtual sound wave disappears.
- an optional implementation method is to obtain the first preset number of the target vehicle (here, it is defined as P num , the specific value is not limited, and can be set according to the actual situation, for example, The value is 10) of the accelerator pedal stroke (here it is defined as P), and then according to the accelerator pedal stroke P of the first preset quantity P num , it is determined whether the target vehicle is in an acceleration or deceleration condition; if so, in the target The pre-processed target sound is played in the vehicle.
- P num the specific value is not limited, and can be set according to the actual situation, for example, The value is 10.
- the difference between the latest accelerator pedal stroke and the most lagging accelerator pedal stroke among the first preset number of accelerator pedal strokes after shifting can be calculated, that is, calculating P array [P num -1]-P array [0]
- the value is less than the first preset threshold (here it is defined as P1 Difference , the specific value is not limited, it can be set according to the actual situation, for example, the value can be -20, etc.), then determine The target vehicle is in a deceleration condition, and the preprocessed target sound can be played in the target vehicle, and the countdown variable for turning off the sound effect is set to a preset time (here, it is defined as TimerCount, and the specific value is not limited, and can be determined according to Actual situation setting, for example, can take a value of 10 seconds, etc.), or, if the value of P array [P num -1]-P array [0] is greater than the second preset threshold (here it is defined as P2 Difference , the specific value is not limited, it can
- Another optional implementation method is to firstly obtain the second preset number of the target vehicle (here, it is defined as V1 num , the specific value is not limited, and can be set according to the actual situation, for example, the value can be 15, etc.), then determine whether the target vehicle is in an acceleration or deceleration condition according to the instantaneous vehicle speed V of the second preset quantity V1 num ; if so, then play in the target vehicle The preprocessed target sound.
- V1 num the second preset number of the target vehicle
- V1 array [V1 num -1] V1 array [V1 num -1]
- V1 array [V1 num -1] V new can be defined, and the value of calculating the average V1 ave is as follows:
- V1 ave represents the average value of the instantaneous vehicle speed after the shift of the second preset number V1num; the dimension of the V1array array is the second preset number V1num.
- V2 num the specific value is not limited, and can be set according to the actual situation, for example, the value can be 20, etc.
- V2 ave represents the average value of the average value of the instantaneous vehicle speed after the shift of the third preset number V2 num ; the dimension of the V2 array is the second preset number V2 num .
- the difference between the average value of the second preset number of shifted instantaneous vehicle speeds and the third preset number of shifted instantaneous vehicle speeds can be calculated, that is, the value of V1 ave -V2 ave can be calculated.
- the value is greater than the third preset threshold (here, it is defined as V1 Difference , the specific value is not limited, it can be set according to the actual situation, for example, the value can be 5, etc.), then it is determined that the target vehicle is in the acceleration mode.
- V1 Difference the third preset threshold
- the preprocessed target sound can be played in the target vehicle, and the countdown variable for turning off the sound effect is set to the preset time TimerCount (such as 10 seconds, etc.), or, if the value of V1 ave -V2 ave is less than the fourth preset Set the threshold (here it is defined as V2Difference, the specific value is not limited, it can be set according to the actual situation, for example, the value can be -5, etc.), then it is determined that the target vehicle is in a deceleration condition and can be played in the target vehicle
- the target sound is preprocessed, and the countdown variable for closing the sound effect is set to the preset time TimerCount. When the preset time is reached, the target sound is gradually faded out until it is turned off.
- the vehicle sound playing method provided by this embodiment first obtains the target sound; then preprocesses the target sound to obtain the preprocessed target sound; then obtains the speed of the target vehicle, and And the corresponding relationship between the preset rotational speed and the playback frequency determines the pre-processed target sound and the playback frequency; and then the pre-processed target sound can be played in the target vehicle according to the playback frequency.
- This embodiment will introduce a vehicle sound playback device, and for relevant content, please refer to the foregoing method embodiments.
- the device 300 includes:
- An acquisition unit 301 configured to acquire a target sound
- the first determination unit 303 is configured to obtain the rotational speed of the target vehicle, and determine the preprocessed target sound and the playback frequency according to the rotational speed of the target vehicle and the preset correspondence between the rotational speed and the playback frequency;
- the playing unit 304 is configured to play the preprocessed target sound in the target vehicle according to the playing frequency.
- the target sound includes multiple pieces of preprocessed sound data, and the multiple pieces of sound data are respectively collected when the vehicle of a preset model type runs to multiple different constant working conditions In-vehicle sound data.
- the first determining unit 303 includes:
- a selection subunit configured to select at least one piece of preprocessed sound data from the plurality of pieces of preprocessed sound data according to the rotational speed of the target vehicle;
- the determination subunit is configured to determine the playback frequency of the at least one piece of preprocessed sound data according to the rotation speed of the target vehicle and the preset correspondence between the rotation speed and playback frequency.
- the multiple different constant working conditions include an idling working condition.
- the preprocessing unit 302 includes:
- Dividing subunits used to sequentially divide the target sound into a first sound segment and a second sound segment; the sound time lengths of the first sound segment and the second sound segment are both greater than or equal to a first preset duration;
- a subunit is set, which is used to set the sound of the first second preset duration of the first sound segment to fade-in mode to obtain an updated first sound segment; and set the rear second preset of the second sound segment The duration sound is set to fade-out mode, and the updated second sound segment is obtained;
- the exchange subunit is used to exchange the order of the updated first sound segment and the updated second sound segment, and set a second preset duration of overlap between the two to obtain the preprocessed target sound, to eliminate popping sounds when the target sound is played.
- the second preset duration is one-third or one-half of the first preset duration, or the second preset duration is not longer than the first preset duration. One-half of a preset duration.
- the device further includes:
- a judging unit configured to judge whether the speed of the target vehicle is located in a speed overlapping interval after the speed of the target vehicle is acquired;
- a switching unit configured to simultaneously play the preprocessed target sound corresponding to the previous speed interval of the speed overlapping interval and the preprocessed sound corresponding to the subsequent speed interval if it is determined that the speed of the target vehicle is located in the speed overlapping interval.
- the processed target sound
- the switching unit is specifically configured to:
- the preprocessed target sound corresponding to the previous speed interval of the speed overlapping interval is played in fade-out mode, and the preprocessed target sound corresponding to the subsequent speed interval of the speed overlapping interval is played in fade-in mode.
- the device further includes:
- a reducing unit configured to reduce the volume of the preprocessed target sound played in the target vehicle to within the range of a third preset duration when the vehicle speed of the target vehicle is in a preset stable working condition Preset volume threshold.
- the device further includes:
- a first acquiring unit configured to acquire a first preset number of accelerator pedal strokes of the target vehicle
- the second determining unit is configured to determine whether the target vehicle is in an acceleration or deceleration state according to the first preset number of accelerator pedal strokes; if so, play the preprocessed target in the target vehicle sound.
- the device further includes:
- the first shifting unit is configured to sequentially shift the first preset number of accelerator pedal strokes of the target vehicle forward one bit after the acquisition of the first preset number of accelerator pedal strokes of the target vehicle After that, the first preset amount of accelerator pedal travel after shifting is obtained;
- the second determining unit is specifically used for:
- the device further includes:
- a second acquiring unit configured to acquire a second preset number of instantaneous vehicle speeds of the target vehicle
- a third determining unit configured to determine whether the target vehicle is in an acceleration or deceleration state according to the second preset number of instantaneous vehicle speeds; if so, play the preprocessed target sound in the target vehicle .
- the device further includes:
- the second shifting unit is used to obtain the shifted second preset number of instantaneous vehicle speeds by sequentially shifting the second preset number of instantaneous vehicle speeds one bit forward, and calculate the second preset number The average value of the instantaneous vehicle speed after the shift; and further calculate the average value of the average value of the instantaneous vehicle speed after the shift of the third preset number; the average value of the instantaneous vehicle speed after the shift of the third preset number is compared The average value of the instantaneous vehicle speed after the shift is lagged;
- the third determining unit is specifically used for:
- the threshold is set, then it is determined that the target vehicle is in an acceleration condition, or, if the difference is less than the fourth preset threshold, it is determined that the target vehicle is in a deceleration condition, and the pre-processing is played in the target vehicle after the target sound.
- the embodiment of the present application also provides a vehicle sound playback device, including: a processor, a memory, and a system bus;
- the processor and the memory are connected through the system bus;
- the memory is used to store one or more programs, and the one or more programs include instructions, and the instructions, when executed by the processor, cause the processor to perform any implementation method of the above-mentioned vehicle sound playing method .
- an embodiment of the present application also provides a vehicle, the vehicle includes the above-mentioned vehicle sound playback device.
- the embodiment of the present application also provides a computer-readable storage medium, the computer-readable storage medium stores instructions, and when the instructions are run on the terminal device, the terminal device executes the above-mentioned vehicle sound Any implementation of the play method.
- an embodiment of the present application also provides a computer program product, which, when running on a terminal device, enables the terminal device to execute any implementation method of the above-mentioned vehicle sound playing method.
- each embodiment in this specification is described in a progressive manner, each embodiment focuses on the differences from other embodiments, and the same and similar parts of each embodiment can be referred to each other.
- the description is relatively simple, and for relevant details, please refer to the description of the method part.
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Acoustics & Sound (AREA)
- Signal Processing (AREA)
- Fittings On The Vehicle Exterior For Carrying Loads, And Devices For Holding Or Mounting Articles (AREA)
Abstract
Disclosed in the present application are a vehicle sound playback method and apparatus, a storage medium and device. The method comprises: firstly obtaining a target sound; then preprocessing the target sound to obtain a preprocessed target sound; obtaining a rotating speed of a target vehicle, and according to the rotating speed and a preset corresponding relationship between the rotating speed and a playback frequency, determining the preprocessed target sound and the playback frequency; and then playing back the preprocessed target sound in the target vehicle according to the playback frequency. According to the present application, a sound simulation effect of a whole working condition of a vehicle is realized by utilizing collected target sounds under different constant working conditions, and when a vehicle speed is at a certain constant working condition and a certain section of a sound sample needs to be repeatedly played back, no sound explosion will be generated, so that the sound sounds more natural to a user, thereby improving the driving experience of the user.
Description
本公开要求于2021年12月31日提交中国专利局、申请号为202111679086.1、发明名称为“一种车辆声音播放方法、装置、存储介质及设备”的中国专利申请的优先权,其全部内容通过引用结合在本公开中。This disclosure claims the priority of the Chinese patent application submitted to the China Patent Office on December 31, 2021, with the application number 202111679086.1, and the title of the invention is "A Method, Device, Storage Medium, and Equipment for Playing Vehicle Sound", the entire content of which is passed References are incorporated in this disclosure.
本申请涉及车辆技术领域,尤其涉及一种车辆声音播放方法、装置、存储介质及设备。The present application relates to the field of vehicle technology, and in particular to a method, device, storage medium and equipment for playing vehicle sound.
随着人们生活水平的提高和社会经济的快速发展,汽车的使用率逐渐增高,越来越多的汽车走进了人们的生活,为人们生活的各个方面都带来了极大的便利。但随着汽车技术及制造工艺的不断发展,车内噪声水平逐年降低。然而,安静的驾驶环境也让汽车缺少了由引擎声带来的动力感,降低了部分消费者的驾驶乐趣。对此,可采用车辆音效声模拟播放的方法,通过车内喇叭主动发声,从而改善车内声品质,提高驾驶乐趣。With the improvement of people's living standards and the rapid development of social economy, the utilization rate of cars has gradually increased, and more and more cars have entered people's lives, bringing great convenience to all aspects of people's lives. However, with the continuous development of automobile technology and manufacturing process, the noise level in the car has been reduced year by year. However, the quiet driving environment also makes the car lack the sense of power brought by the sound of the engine, which reduces the driving pleasure of some consumers. In this regard, the method of simulated playback of vehicle sound effects can be used to actively emit sound through the speakers in the car, thereby improving the sound quality in the car and enhancing driving pleasure.
目前,车辆音效声模拟播放方法通常包含两种:一种是公式法,虽然该方法设计简单,但只能生成有限数量的单频信号,无法实现全频段的声音模拟;另一种则是粒子合成算法,该算法虽然可以实现全频段的声音模拟,但设计复杂,设计不好会在切换不同的声音小段时产生“爆音”,并且由于切分的声音小段时间长度非常短,当车辆工况处于某一恒定工况时,重复播放某一小段的声音听起来会很不自然,降低了用户的驾驶体验。At present, there are usually two methods for vehicle sound simulation and playback: one is the formula method, although the design of this method is simple, but it can only generate a limited number of single-frequency signals, and it is impossible to achieve full-band sound simulation; the other is the particle method. Synthesis algorithm, although the algorithm can realize full-band sound simulation, but the design is complicated, and if the design is not good, it will produce "popping sound" when switching different sound segments, and because the duration of the segmented sound segments is very short, when the vehicle operating condition In a certain constant working condition, playing a certain short section of sound repeatedly will sound unnatural, which reduces the user's driving experience.
因此,如何实现车辆声音的智能模拟播放,使得用户听感更加自然,以提高用户的驾驶体验是目前亟待解决的技术问题。Therefore, how to realize the intelligent simulated playback of vehicle sound to make the user's sense of hearing more natural and to improve the user's driving experience is a technical problem to be solved urgently at present.
发明内容Contents of the invention
本申请实施例的主要目的在于提供一种车辆声音播放方法、装置、存储介质及设备,能够实现车辆声音的智能模拟播放,使得用户听感更加自然,进而提高了用户的驾驶体验。The main purpose of the embodiments of the present application is to provide a vehicle sound playback method, device, storage medium and equipment, which can realize intelligent simulation playback of vehicle sounds, make the user's sense of hearing more natural, and further improve the user's driving experience.
本申请实施例提供了一种车辆声音播放方法,包括:An embodiment of the present application provides a method for playing vehicle sound, including:
获取目标声音;Get target sound;
对所述目标声音进行预处理,得到预处理后的目标声音;Preprocessing the target sound to obtain the preprocessed target sound;
获取目标车辆的转速,并根据所述目标车辆的转速以及预设的转速和播放频率的对应关系,确定所述预处理后的目标声音以及播放频率;Acquiring the rotational speed of the target vehicle, and determining the preprocessed target sound and the playing frequency according to the rotational speed of the target vehicle and the correspondence between the preset rotational speed and the playing frequency;
按照所述播放频率,在所述目标车辆内播放所述预处理后的目标声音。The preprocessed target sound is played in the target vehicle according to the playback frequency.
一种可能的实现方式中,所述目标声音包括多条预处理后的声音数据,所述多条声音数据是在预设车型车辆运行到多个不同恒定工况时,分别采集的车内声音数据。In a possible implementation manner, the target sound includes multiple pieces of preprocessed sound data, and the multiple pieces of sound data are the interior sounds collected separately when the vehicle of the preset model type runs to multiple different constant working conditions data.
一种可能的实现方式中,所述获取目标车辆的转速,并根据所述目标车辆的转速以及预设的转速和播放频率的对应关系,确定所述预处理后的目标声音以及播放频率,包括:In a possible implementation manner, the acquiring the rotational speed of the target vehicle, and determining the preprocessed target sound and the playback frequency according to the rotational speed of the target vehicle and the preset correspondence between the rotational speed and the playback frequency include: :
根据所述目标车辆的转速,从所述多条预处理后的声音数据中选择至少一条预处理后的声音数据;selecting at least one piece of preprocessed sound data from the plurality of pieces of preprocessed sound data according to the rotational speed of the target vehicle;
根据所述目标车辆的转速以及预设的转速和播放频率的对应关系,确定所述至少一条预处理后的声音数据的播放频率。The playback frequency of the at least one piece of preprocessed sound data is determined according to the rotation speed of the target vehicle and the preset correspondence between the rotation speed and the playback frequency.
一种可能的实现方式中,所述多个不同恒定工况包括怠速工况。In a possible implementation manner, the multiple different constant working conditions include an idling working condition.
一种可能的实现方式中,所述对所述目标声音进行预处理,得到预处理后的目标声音,以消除播放所述目标声音时产生的爆音,包括:In a possible implementation manner, the preprocessing the target sound to obtain the preprocessed target sound, so as to eliminate the pop sound generated when playing the target sound, includes:
将所述目标声音按序划分为第一声音段和第二声音段;所述第一声音段和第二声音段的声音时间长度均大于等于第一预设时长;Dividing the target sound into a first sound segment and a second sound segment in sequence; the sound time lengths of the first sound segment and the second sound segment are both greater than or equal to a first preset duration;
将所述第一声音段的前第二预设时长的声音设置为淡入模式,得到更新后的第一声音段;并将所述第二声音段的后第二预设时长的声音设置为淡出模式,得到更新后的第二声音段;The sound of the first second preset duration of the first sound segment is set to fade-in mode to obtain an updated first sound segment; and the sound of the second preset duration of the second sound segment is set to fade out mode to obtain the updated second sound segment;
将所述更新后的第一声音段和更新后的第二声音段的排序调换,并在二者之间设置重叠第二预设时长的,得到预处理后的目标声音,以消除播放所述目标声音时产生的爆音。The sequence of the updated first sound segment and the updated second sound segment are exchanged, and an overlap of a second preset duration is set between the two to obtain a pre-processed target sound to eliminate the need to play the Popping sound when the target sounds.
一种可能的实现方式中,所述第二预设时长为所述第一预设时长的三分之一或二分之一,或者所述第二预设时长不大于所述第一预设时长的二分之一。In a possible implementation manner, the second preset duration is one-third or one-half of the first preset duration, or the second preset duration is not longer than the first preset duration half of the duration.
一种可能的实现方式中,在所述获取目标车辆的转速后,所述方法还包括:In a possible implementation manner, after the acquisition of the rotational speed of the target vehicle, the method further includes:
判断所述目标车辆的转速是否位于转速重叠区间;judging whether the speed of the target vehicle is in a speed overlapping interval;
若是,则同时播放所述转速重叠区间的前一转速区间对应的预处理后的目标声音和后一转速区间对应的预处理后的目标声音。If so, the preprocessed target sound corresponding to the previous speed interval and the preprocessed target sound corresponding to the next speed interval of the overlapping speed interval are simultaneously played.
一种可能的实现方式中,所述同时播放所述转速重叠区间的前一转速区间对应的预处理后的目标声音和后一转速区间对应的预处理后的目标声音,包括:In a possible implementation manner, the simultaneously playing the preprocessed target sound corresponding to the previous speed interval and the preprocessed target sound corresponding to the next speed interval in the speed overlapping interval includes:
所述转速重叠区间的前一转速区间对应的预处理后的目标声音采用淡出模式播放,且所述转速重叠区间的后一转速区间对应的预处理后的目标声音采用淡入模式播放。The preprocessed target sound corresponding to the previous speed interval of the speed overlapping interval is played in fade-out mode, and the preprocessed target sound corresponding to the subsequent speed interval of the speed overlapping interval is played in fade-in mode.
一种可能的实现方式中,所述方法还包括:In a possible implementation, the method further includes:
当所述目标车辆的车速处于预设稳定工况时,在第三预设时长的范围内,将所述目标车辆内播放的所述预处理后的目标声音的音量降低到预设音量阈值。When the vehicle speed of the target vehicle is in a preset stable working condition, within the range of a third preset duration, the volume of the preprocessed target sound played in the target vehicle is reduced to a preset volume threshold.
一种可能的实现方式中,所述方法还包括:In a possible implementation, the method further includes:
获取所述目标车辆的第一预设数量的油门踏板行程;Obtaining a first preset number of accelerator pedal strokes of the target vehicle;
根据所述第一预设数量的油门踏板行程,确定所述目标车辆是否处于加速或减速工况;若是,则在所述目标车辆内播放所述预处理后的目标声音。According to the first preset number of accelerator pedal strokes, it is determined whether the target vehicle is in an acceleration or deceleration state; if yes, the preprocessed target sound is played in the target vehicle.
一种可能的实现方式中,在所述获取所述目标车辆的第一预设数量的油门踏板行程之后,所述方法包括:In a possible implementation manner, after acquiring the first preset number of accelerator pedal strokes of the target vehicle, the method includes:
通过将所述目标车辆的第一预设数量的油门踏板行程依次向前移动一位后,得到移位后的第一预设数量的油门踏板行程;By sequentially shifting the first preset number of accelerator pedal strokes of the target vehicle one bit forward, the shifted first preset number of accelerator pedal strokes are obtained;
所述根据所述第一预设数量的油门踏板行程,确定所述目标车辆是否处于加速或减速工况;若是,则在所述目标车辆内播放所述预处理后的目标声音,包括:The determining whether the target vehicle is in an acceleration or deceleration condition according to the first preset number of accelerator pedal strokes; if so, playing the preprocessed target sound in the target vehicle includes:
计算移位后的第一预设数量的油门踏板行程中最新油门踏板行程与最滞后的油门踏板行程之间的差值;若所述差值小于第一预设阈值,则确定所述目标车辆处于减速工况,或 者,若所述差值大于第二预设阈值,则确定所述目标车辆处于加速工况,在所述目标车辆内播放所述预处理后的目标声音。calculating the difference between the newest accelerator pedal stroke and the most delayed accelerator pedal stroke among the shifted first preset number of accelerator pedal strokes; if the difference is smaller than a first preset threshold value, then determining the target vehicle It is in a deceleration state, or if the difference is greater than a second preset threshold, it is determined that the target vehicle is in an acceleration state, and the preprocessed target sound is played in the target vehicle.
一种可能的实现方式中,所述方法还包括:In a possible implementation, the method further includes:
获取所述目标车辆的第二预设数量的瞬时车速;Obtaining a second preset number of instantaneous vehicle speeds of the target vehicle;
根据所述第二预设数量的瞬时车速,确定所述目标车辆是否处于加速或减速工况;若是,则在所述目标车辆内播放所述预处理后的目标声音。According to the second preset number of instantaneous vehicle speeds, it is determined whether the target vehicle is in an acceleration or deceleration state; if yes, the preprocessed target sound is played in the target vehicle.
一种可能的实现方式中,在所述获取所述目标车辆的第二预设数量的瞬时车速之后,所述方法包括:In a possible implementation manner, after acquiring the second preset number of instantaneous vehicle speeds of the target vehicle, the method includes:
通过将所述第二预设数量的瞬时车速依次向前移动一位后,得到移位后的第二预设数量的瞬时车速,并计算出第二预设数量的移位后瞬时车速的平均值;并进一步计算出第三预设数量的移位后瞬时车速的平均值的平均值;所述第三预设数量的移位后瞬时车速的平均值相比所述移位后瞬时车速的平均值是滞后的;By shifting the second preset number of instantaneous vehicle speeds one bit forward sequentially, the shifted second preset number of instantaneous vehicle speeds is obtained, and the average of the shifted second preset number of instantaneous vehicle speeds is calculated value; and further calculate the average value of the average value of the instantaneous vehicle speed after the shift of the third preset number; the average value of the instantaneous vehicle speed after the shift of the third preset number is compared to the The mean is lagged;
所述根据所述第二预设数量的瞬时车速,确定所述目标车辆是否处于加速或减速工况;若是,则在所述目标车辆内播放所述预处理后的目标声音,包括:The determining whether the target vehicle is in an acceleration or deceleration condition according to the second preset number of instantaneous vehicle speeds; if so, playing the preprocessed target sound in the target vehicle includes:
计算所述第二预设数量的移位后瞬时车速的平均值与第三预设数量的移位后瞬时车速的平均值的平均值之间的差值;若所述差值大于第三预设阈值,则确定所述目标车辆处于加速工况,或者,若所述差值小于第四预设阈值,则确定所述目标车辆处于减速工况,在所述目标车辆内播放所述预处理后的目标声音。calculating the difference between the average value of the second preset number of shifted instantaneous vehicle speeds and the average value of the third preset number of shifted instantaneous vehicle speeds; if the difference is greater than the third preset If the threshold is set, then it is determined that the target vehicle is in an acceleration condition, or, if the difference is less than the fourth preset threshold, it is determined that the target vehicle is in a deceleration condition, and the pre-processing is played in the target vehicle after the target sound.
本申请实施例还提供了一种车辆声音播放装置,所述装置包括:The embodiment of the present application also provides a vehicle sound playback device, the device comprising:
获取单元,用于获取目标声音;an acquisition unit, configured to acquire the target sound;
预处理单元,用于对所述目标声音进行预处理,得到预处理后的目标声音;a preprocessing unit, configured to preprocess the target sound to obtain the preprocessed target sound;
第一确定单元,用于获取目标车辆的转速,并根据所述目标车辆的转速以及预设的转速和播放频率的对应关系,确定所述预处理后的目标声音以及播放频率;The first determining unit is configured to acquire the rotational speed of the target vehicle, and determine the preprocessed target sound and the playback frequency according to the rotational speed of the target vehicle and the preset correspondence between the rotational speed and the playback frequency;
播放单元,用于按照所述播放频率,在所述目标车辆内播放所述预处理后的目标声音。A playback unit, configured to play the preprocessed target sound in the target vehicle according to the playback frequency.
一种可能的实现方式中,所述目标声音包括多条预处理后的声音数据,所述多条声音数据是在预设车型车辆运行到多个不同恒定工况时,分别采集的车内声音数据。In a possible implementation manner, the target sound includes multiple pieces of preprocessed sound data, and the multiple pieces of sound data are the interior sounds collected separately when the vehicle of the preset model type runs to multiple different constant working conditions data.
一种可能的实现方式中,所述第一确定单元包括:In a possible implementation manner, the first determination unit includes:
选择子单元,用于根据所述目标车辆的转速,从所述多条预处理后的声音数据中选择至少一条预处理后的声音数据;A selection subunit, configured to select at least one piece of preprocessed sound data from the plurality of pieces of preprocessed sound data according to the rotational speed of the target vehicle;
确定子单元,用于根据所述目标车辆的转速以及预设的转速和播放频率的对应关系,确定所述至少一条预处理后的声音数据的播放频率。The determination subunit is configured to determine the playback frequency of the at least one piece of preprocessed sound data according to the rotation speed of the target vehicle and the preset correspondence between the rotation speed and playback frequency.
一种可能的实现方式中,所述多个不同恒定工况包括怠速工况。In a possible implementation manner, the multiple different constant working conditions include an idling working condition.
一种可能的实现方式中,所述预处理单元包括:In a possible implementation manner, the preprocessing unit includes:
划分子单元,用于将所述目标声音按序划分为第一声音段和第二声音段;所述第一声音段和第二声音段的声音时间长度均大于等于第一预设时长;Dividing subunits, used to sequentially divide the target sound into a first sound segment and a second sound segment; the sound time lengths of the first sound segment and the second sound segment are both greater than or equal to a first preset duration;
设置子单元,用于将所述第一声音段的前第二预设时长的声音设置为淡入模式,得到更新后的第一声音段;并将所述第二声音段的后第二预设时长的声音设置为淡出模式,得 到更新后的第二声音段;A subunit is set, which is used to set the sound of the first second preset duration of the first sound segment to fade-in mode to obtain an updated first sound segment; and set the rear second preset of the second sound segment The duration sound is set to fade-out mode, and the updated second sound segment is obtained;
调换子单元,用于将所述更新后的第一声音段和更新后的第二声音段的排序调换,并在二者之间设置重叠第二预设时长,得到预处理后的目标声音,以消除播放所述目标声音时产生的爆音。The exchange subunit is used to exchange the order of the updated first sound segment and the updated second sound segment, and set a second preset duration of overlap between the two to obtain the preprocessed target sound, to eliminate popping sounds when the target sound is played.
一种可能的实现方式中,所述第二预设时长为所述第一预设时长的三分之一或二分之一,或者所述第二预设时长不大于所述第一预设时长的二分之一。In a possible implementation manner, the second preset duration is one-third or one-half of the first preset duration, or the second preset duration is not longer than the first preset duration half of the duration.
一种可能的实现方式中,所述装置还包括:In a possible implementation manner, the device further includes:
判断单元,用于在所述获取目标车辆的转速后,判断所述目标车辆的转速是否位于转速重叠区间;A judging unit, configured to judge whether the speed of the target vehicle is located in a speed overlapping interval after the speed of the target vehicle is acquired;
切换单元,用于若判断出所述目标车辆的转速位于所述转速重叠区间,则同时播放所述转速重叠区间的前一转速区间对应的预处理后的目标声音和后一转速区间对应的预处理后的目标声音。A switching unit, configured to simultaneously play the preprocessed target sound corresponding to the previous speed interval of the speed overlapping interval and the preprocessed sound corresponding to the subsequent speed interval if it is determined that the speed of the target vehicle is located in the speed overlapping interval. The processed target sound.
一种可能的实现方式中,所述切换单元具体用于:In a possible implementation manner, the switching unit is specifically configured to:
所述转速重叠区间的前一转速区间对应的预处理后的目标声音采用淡出模式播放,且所述转速重叠区间的后一转速区间对应的预处理后的目标声音采用淡入模式播放。The preprocessed target sound corresponding to the previous speed interval of the speed overlapping interval is played in fade-out mode, and the preprocessed target sound corresponding to the subsequent speed interval of the speed overlapping interval is played in fade-in mode.
一种可能的实现方式中,所述装置还包括:In a possible implementation manner, the device further includes:
降低单元,用于当所述目标车辆的车速处于预设稳定工况时,在第三预设时长的范围内,将所述目标车辆内播放的所述预处理后的目标声音的音量降低到预设音量阈值。A reducing unit, configured to reduce the volume of the preprocessed target sound played in the target vehicle to within the range of a third preset duration when the vehicle speed of the target vehicle is in a preset stable working condition Preset volume threshold.
一种可能的实现方式中,所述装置还包括:In a possible implementation manner, the device further includes:
第一获取单元,用于获取所述目标车辆的第一预设数量的油门踏板行程;a first acquiring unit, configured to acquire a first preset number of accelerator pedal strokes of the target vehicle;
第二确定单元,用于根据所述第一预设数量的油门踏板行程,确定所述目标车辆是否处于加速或减速工况;若是,则在所述目标车辆内播放所述预处理后的目标声音。The second determining unit is configured to determine whether the target vehicle is in an acceleration or deceleration state according to the first preset number of accelerator pedal strokes; if so, play the preprocessed target in the target vehicle sound.
一种可能的实现方式中,所述装置还包括:In a possible implementation manner, the device further includes:
第一移位单元,用于在所述获取所述目标车辆的第一预设数量的油门踏板行程之后,通过将所述目标车辆的第一预设数量的油门踏板行程依次向前移动一位后,得到移位后的第一预设数量的油门踏板行程;The first shifting unit is configured to sequentially shift the first preset number of accelerator pedal strokes of the target vehicle forward one bit after the acquisition of the first preset number of accelerator pedal strokes of the target vehicle After that, the first preset amount of accelerator pedal travel after shifting is obtained;
所述第二确定单元具体用于:The second determining unit is specifically used for:
计算移位后的第一预设数量的油门踏板行程中最新油门踏板行程与最滞后的油门踏板行程之间的差值;若所述差值小于第一预设阈值,则确定所述目标车辆处于减速工况,或者,若所述差值大于第二预设阈值,则确定所述目标车辆处于加速工况,在所述目标车辆内播放所述预处理后的目标声音。calculating the difference between the newest accelerator pedal stroke and the most delayed accelerator pedal stroke among the shifted first preset number of accelerator pedal strokes; if the difference is smaller than a first preset threshold value, then determining the target vehicle It is in a deceleration state, or if the difference is greater than a second preset threshold, it is determined that the target vehicle is in an acceleration state, and the preprocessed target sound is played in the target vehicle.
一种可能的实现方式中,所述装置还包括:In a possible implementation manner, the device further includes:
第二获取单元,用于获取所述目标车辆的第二预设数量的瞬时车速;a second acquiring unit, configured to acquire a second preset number of instantaneous vehicle speeds of the target vehicle;
第三确定单元,用于根据所述第二预设数量的瞬时车速,确定所述目标车辆是否处于加速或减速工况;若是,则在所述目标车辆内播放所述预处理后的目标声音。A third determining unit, configured to determine whether the target vehicle is in an acceleration or deceleration state according to the second preset number of instantaneous vehicle speeds; if so, play the preprocessed target sound in the target vehicle .
一种可能的实现方式中,所述装置还包括:In a possible implementation manner, the device further includes:
第二移位单元,用于通过将所述第二预设数量的瞬时车速依次向前移动一位后,得到 移位后的第二预设数量的瞬时车速,并计算出第二预设数量的移位后瞬时车速的平均值;并进一步计算出第三预设数量的移位后瞬时车速的平均值的平均值;所述第三预设数量的移位后瞬时车速的平均值相比所述移位后瞬时车速的平均值是滞后的;The second shifting unit is used to obtain the shifted second preset number of instantaneous vehicle speeds by sequentially shifting the second preset number of instantaneous vehicle speeds one bit forward, and calculate the second preset number The average value of the instantaneous vehicle speed after the shift; and further calculate the average value of the average value of the instantaneous vehicle speed after the shift of the third preset number; the average value of the instantaneous vehicle speed after the shift of the third preset number is compared The average value of the instantaneous vehicle speed after the shift is lagged;
所述第三确定单元具体用于:The third determining unit is specifically used for:
计算所述第二预设数量的移位后瞬时车速的平均值与第三预设数量的移位后瞬时车速的平均值的平均值之间的差值;若所述差值大于第三预设阈值,则确定所述目标车辆处于加速工况,或者,若所述差值小于第四预设阈值,则确定所述目标车辆处于减速工况,在所述目标车辆内播放所述预处理后的目标声音。calculating the difference between the average value of the second preset number of shifted instantaneous vehicle speeds and the average value of the third preset number of shifted instantaneous vehicle speeds; if the difference is greater than the third preset If the threshold is set, then it is determined that the target vehicle is in an acceleration condition, or, if the difference is less than the fourth preset threshold, it is determined that the target vehicle is in a deceleration condition, and the pre-processing is played in the target vehicle after the target sound.
本申请实施例还提供了一种车辆声音播放设备,包括:处理器、存储器、系统总线;The embodiment of the present application also provides a vehicle sound playback device, including: a processor, a memory, and a system bus;
所述处理器以及所述存储器通过所述系统总线相连;The processor and the memory are connected through the system bus;
所述存储器用于存储一个或多个程序,所述一个或多个程序包括指令,所述指令当被所述处理器执行时使所述处理器执行上述车辆声音播放方法中的任意一种实现方式。The memory is used to store one or more programs, and the one or more programs include instructions, and the instructions, when executed by the processor, cause the processor to execute any one of the above-mentioned vehicle sound playing methods. Way.
本申请实施例还提供了一种车辆,所述车辆包括上述车辆声音播放设备。An embodiment of the present application also provides a vehicle, the vehicle includes the above-mentioned vehicle sound playback device.
本申请实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当所述指令在终端设备上运行时,使得所述终端设备执行上述车辆声音播放方法中的任意一种实现方式。The embodiment of the present application also provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the instructions are run on the terminal device, the terminal device is made to perform the above-mentioned vehicle sound playing method. any implementation of the .
本申请实施例还提供了一种计算机程序产品,所述计算机程序产品在终端设备上运行时,使得所述终端设备执行上述车辆声音播放方法中的任意一种实现方式。The embodiment of the present application also provides a computer program product, which, when running on a terminal device, enables the terminal device to execute any one of the above methods for playing vehicle sound.
本申请实施例提供的一种车辆声音播放方法、装置、存储介质及设备,首先获取目标声音;然后对目标声音进行预处理,得到预处理后的目标声音;接着,获取目标车辆的转速,并根据目标车辆的转速以及预设的转速和播放频率的对应关系,确定预处理后的目标声音以及播放频率;进而可以按照播放频率,在目标车辆内播放预处理后的目标声音。可见,由于本申请不仅利用采集的预设车型车辆运行到不同恒定工况下的目标声音实现了车辆全工况的声音模拟效果,而且当车速处于某一恒定工况需要重复播放某一段声音样本时,也不会产生爆音,使得用户的听感更加自然,进而提高了用户的驾驶体验。A vehicle sound playback method, device, storage medium, and equipment provided in the embodiments of the present application, first obtain the target sound; then perform preprocessing on the target sound to obtain the preprocessed target sound; then, obtain the speed of the target vehicle, and According to the rotational speed of the target vehicle and the corresponding relationship between the preset rotational speed and the playback frequency, the preprocessed target sound and the playback frequency are determined; furthermore, the preprocessed target sound can be played in the target vehicle according to the playback frequency. It can be seen that this application not only realizes the sound simulation effect of the vehicle's full working condition by using the collected target sounds of the preset model vehicle running under different constant working conditions, but also needs to repeatedly play a certain sound sample when the vehicle speed is in a certain constant working condition At the same time, there will be no popping sound, which makes the user's sense of hearing more natural, thereby improving the user's driving experience.
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are For some embodiments of the present application, those of ordinary skill in the art can also obtain other drawings based on these drawings without creative effort.
图1为本申请实施例提供的一种车辆声音播放方法的流程示意图;Fig. 1 is a schematic flow chart of a vehicle sound playing method provided by an embodiment of the present application;
图2为本申请实施例提供的在不同转速区间内播放目标声音情况的示意图;FIG. 2 is a schematic diagram of playing target sounds in different speed ranges provided by the embodiment of the present application;
图3为本申请实施例提供的一种车辆声音播放装置的组成示意图。Fig. 3 is a schematic composition diagram of a vehicle sound playback device provided by an embodiment of the present application.
随着汽车技术及制造工艺的不断发展,车内噪声水平逐年降低。然而,安静的驾驶环 境也让汽车缺少了由引擎声带来的动力感,降低了部分消费者的驾驶乐趣。对此,可采用车辆音效声模拟播放的方法,通过车内喇叭主动发声,从而改善车内声品质,提高驾驶乐趣。With the continuous development of automobile technology and manufacturing process, the noise level in the car has been reduced year by year. However, the quiet driving environment also makes the car lack the sense of power brought by the sound of the engine, reducing the driving pleasure of some consumers. In this regard, the method of simulated playback of vehicle sound effects can be used to actively emit sound through the speakers in the car, thereby improving the sound quality in the car and enhancing driving pleasure.
对此,现有的车辆音效声模拟播放方法通常包括以下两种:In this regard, the existing vehicle sound effect sound simulation playback methods generally include the following two types:
第一种是公式法,比如根据引擎的转速信号推导待增强的阶次频率、幅值、相位,然后基于正弦波公式计算输出值,但该方法只能生成有限数量的单频信号,无法实现全频段的声音模拟,导致车辆内音效声模拟播放的效果较差。The first is the formula method, such as deriving the order frequency, amplitude, and phase to be enhanced according to the engine speed signal, and then calculating the output value based on the sine wave formula, but this method can only generate a limited number of single-frequency signals, which cannot be realized The full-band sound simulation results in a poor sound simulation playback effect in the vehicle.
第二种是粒子合成算法,预先录好全工况的声音,然后将声音切成多个声音小段并进行前处理,每个声音小段看似成某个恒定工况的声音,根据不同工况播放不同的声音小段,该算法虽然可以实现全频段的声音模拟,但设计复杂,设计不好会在切换不同的声音小段时产生“爆音”,并且由于切分的声音小段时间长度非常短,当车辆工况处于某一恒定工况时,重复播放某一小段的声音听起来会很不自然,降低了用户的驾驶体验。The second is the particle synthesis algorithm. The sound of all working conditions is pre-recorded, and then the sound is cut into multiple sound segments and pre-processed. Each sound segment seems to be a sound of a certain constant working condition. According to different working conditions Play different sound segments. Although the algorithm can realize full-band sound simulation, the design is complicated. If the design is not good, it will produce "popping sound" when switching different sound segments. When the vehicle operating condition is in a certain constant operating condition, playing a certain short section of sound repeatedly will sound unnatural, which reduces the user's driving experience.
所以,如何实现车辆声音的智能模拟播放,使得用户听感更加自然,以提高用户的驾驶体验是目前亟待解决的技术问题。Therefore, how to realize the intelligent simulated playback of vehicle sound to make the user's sense of hearing more natural, so as to improve the user's driving experience is a technical problem to be solved urgently.
为解决上述缺陷,本申请提供了一种车辆声音播放方法,首先获取待播放的目标声音;然后对目标声音进行预处理,得到预处理后的目标声音;接着,获取目标车辆的转速,并根据目标车辆的转速以及预设的转速和播放频率的对应关系,确定目标声音的播放频率;进而可以按照播放频率,在目标车辆内播放目标声音。可见,由于本申请不仅利用采集的预设车型车辆运行到不同恒定工况下的目标声音实现了车辆全工况的声音模拟效果,而且当车速处于某一恒定工况需要重复播放某一段声音样本时,也不会产生爆音,使得用户的听感更加自然,进而提高了用户的驾驶体验。In order to solve the above-mentioned defects, the present application provides a method for playing vehicle sound. First, the target sound to be played is obtained; then the target sound is preprocessed to obtain the preprocessed target sound; The rotational speed of the target vehicle and the corresponding relationship between the preset rotational speed and the playback frequency determine the playback frequency of the target sound; furthermore, the target sound can be played in the target vehicle according to the playback frequency. It can be seen that this application not only realizes the sound simulation effect of the vehicle's full working condition by using the collected target sounds of the preset model vehicle running under different constant working conditions, but also needs to repeatedly play a certain sound sample when the vehicle speed is in a certain constant working condition At the same time, there will be no popping sound, which makes the user's sense of hearing more natural, thereby improving the user's driving experience.
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments It is a part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.
第一实施例first embodiment
参见图1,为本实施例提供的一种车辆声音播放方法的流程示意图,该方法包括以下步骤:Referring to Fig. 1, it is a schematic flow chart of a method for playing vehicle sound provided by this embodiment, the method includes the following steps:
S101:获取待播放的目标声音。S101: Obtain a target sound to be played.
在本实施例中,将在车内进行音效模拟播放的任一声音定义为待播放的目标声音,并将播放目标声音的车辆定义为目标车辆。在一些实施例中,目标声音可以包括多条预处理后的声音数据,且所述多条声音数据是在预设车型车辆运行到多个不同恒定工况时,分别采集的车内声音数据。预设车型车辆可以任意选择。例如,在预设车型车辆运行到不同恒定工况时,采集车内噪声数据作为待播放的目标声音,用以执行后续步骤S102。在一些实施例中,目标声音一般包括多个。In this embodiment, any sound that is simulated and played in the car is defined as the target sound to be played, and the vehicle that plays the target sound is defined as the target vehicle. In some embodiments, the target sound may include multiple pieces of preprocessed sound data, and the multiple pieces of sound data are in-vehicle sound data collected respectively when the vehicle of a preset model type is running in multiple different constant working conditions. Preset models of vehicles can be selected arbitrarily. For example, when the vehicle of the preset model type is running to a different constant working condition, the noise data inside the vehicle is collected as the target sound to be played to perform the subsequent step S102. In some embodiments, the target sound generally includes multiple.
举例说明,可以分别采集预设车型车辆运行到怠速工况、恒定低速工况、恒定中速工况、恒定高速工况时的目标声音,如下表1所示:For example, it is possible to collect the target sound when the vehicle of the preset model is running to the idling condition, constant low-speed condition, constant medium-speed condition, and constant high-speed condition, as shown in Table 1 below:
表1Table 1
其中,RecordRate1、RecordRate2、RecordRate3、RecordRate4均为采样率,单位sample/s,用于表示上述四种工况下可采用不同的采样率来采集目标声音。或者,在一些实施例中,这几个采样率也可以相同,或者其中任意几个相同。Among them, RecordRate1, RecordRate2, RecordRate3, and RecordRate4 are sampling rates, and the unit is sample/s, which is used to indicate that different sampling rates can be used to collect the target sound under the above four working conditions. Alternatively, in some embodiments, these sampling rates may also be the same, or any of them may be the same.
需要说明的是,在本实施例中,除怠速工况外,恒速工况的数量不仅限于上述表1中的三种,不同工况的车速、转速应差异明显。且采集时间也不仅限于3~5秒的推荐时间,具体取值可根据实际情况设定,本申请对此不进行设定。It should be noted that, in this embodiment, except for the idling condition, the number of constant-speed conditions is not limited to the three in Table 1 above, and the speed and rotation speed of different conditions should be significantly different. Moreover, the collection time is not limited to the recommended time of 3-5 seconds, and the specific value can be set according to the actual situation, which is not set in this application.
S102:对目标声音进行预处理,得到预处理后的目标声音。S102: Preprocessing the target sound to obtain the preprocessed target sound.
在本实施例中,通过步骤S101获取到待播放的目标声音后,为了能够消除播放目标声音时可能产生的爆音,以使得用户听感更加自然,进一步可以对目标声音进行预处理,得到预处理后的目标声音,用以执行后续步骤S103。In this embodiment, after the target sound to be played is acquired through step S101, in order to eliminate the popping sound that may be generated when the target sound is played, so as to make the user's sense of hearing more natural, the target sound can be preprocessed to obtain the preprocessed The final target sound is used to execute the subsequent step S103.
具体来讲,一种可选的实现方式是,首先可以将目标声音按序划分为第一声音段和第二声音段;其中,第一声音段和第二声音段的声音时间长度均大于或等于第一预设时长,且第一预设时长的具体取值可根据实际情况和经验值进行设定,本申请不做限定,比如可以将第一预设时长设定为1秒。此时,假设目标声音为3秒时间长度,则截取后第一声音段和第二声音段可以分别为1.5秒。然后,可以将第一声音段的前第二预设时长的声音设置为淡入模式,得到更新后的第一声音段;并将第二声音段的后第二预设时长的声音设置为淡出模式,得到更新后的第二声音段,其中,第二预设时长的具体取值可根据实际情况和经验值进行设定,本申请不做限定,比如第二预设时长可以为第一预设时长的三分之一或二分之一,或者不大于二分之一等,例如,当第一预设时长设定为1秒时,可以将第二预设时长设定为0.5秒。接着,可以将更新后的第一声音段和更新后的第二声音段的排序调换,并在二者之间设置重叠第二预设时长(如0.5秒),得到预处理后的目标声音,以消除播放目标声音时产生的爆音。可见,预处理后的目标声音相比于原模板声音要少了第二预设时长(如0.5秒)的时间长度。Specifically, an optional implementation is that first, the target sound can be divided into a first sound segment and a second sound segment in sequence; wherein, the sound time lengths of the first sound segment and the second sound segment are both greater than or It is equal to the first preset duration, and the specific value of the first preset duration can be set according to actual conditions and experience values, which is not limited in this application, for example, the first preset duration can be set to 1 second. At this time, assuming that the target sound is 3 seconds long, the intercepted first sound segment and the second sound segment may be 1.5 seconds respectively. Then, the sound of the first second preset duration of the first sound segment can be set to fade-in mode to obtain the updated first sound segment; and the sound of the second preset duration of the second sound segment can be set to fade-out mode , to obtain the updated second sound segment, wherein the specific value of the second preset duration can be set according to the actual situation and experience value, which is not limited in this application, for example, the second preset duration can be the first preset One-third or one-half of the duration, or not more than one-half, etc. For example, when the first preset duration is set to 1 second, the second preset duration can be set to 0.5 seconds. Then, the order of the updated first sound segment and the updated second sound segment can be exchanged, and a second preset duration (such as 0.5 seconds) of overlapping can be set between the two to obtain the preprocessed target sound, to eliminate popping sounds when the target sound is played. It can be seen that the preprocessed target sound is shorter than the original template sound by the second preset duration (for example, 0.5 seconds).
S103:获取目标车辆的转速,并根据目标车辆的转速以及预设的转速和播放频率的对应关系,确定预处理后的目标声音以及播放频率。S103: Obtain the rotation speed of the target vehicle, and determine the preprocessed target sound and the playback frequency according to the rotation speed of the target vehicle and the preset corresponding relationship between the rotation speed and the playback frequency.
其中,目标车辆的转速内容根据目标车辆的类型来确定,比如,当目标车辆为油车时,目标车辆的转速可以为发动机的转速,且获取方式不做限定,比如可以利用车载传感器获得等;或者,当目标车辆为电车时,目标车辆的转速可以为电车的虚拟转速,且具体获取方式也不做限定,比如可以由目标车辆的系统提供等。Wherein, the content of the rotational speed of the target vehicle is determined according to the type of the target vehicle. For example, when the target vehicle is a petrol vehicle, the rotational speed of the target vehicle can be the rotational speed of the engine, and the acquisition method is not limited, for example, it can be obtained by using an on-board sensor; Alternatively, when the target vehicle is an electric car, the speed of the target vehicle may be the virtual speed of the electric car, and the specific acquisition method is not limited, for example, it may be provided by the system of the target vehicle.
当目标声音包括多条预处理后的声音数据,且所述多条声音数据是在预设车型车辆运 行到多个不同恒定工况时,分别采集的车内声音数据时,一种可选的实现方式是,本步骤S103的具体实现过程为:先根据目标车辆的转速,从多条预处理后的声音数据中选择至少一条预处理后的声音数据;然后再根据目标车辆的转速以及预设的转速和播放频率的对应关系,确定至少一条预处理后的声音数据的播放频率进行后续的声音播放。When the target sound includes multiple pieces of preprocessed sound data, and the multiple pieces of sound data are in-vehicle sound data collected separately when the vehicle of the preset model type runs to multiple different constant working conditions, an optional The implementation method is that the specific implementation process of this step S103 is: first, according to the speed of the target vehicle, select at least one piece of pre-processed sound data from a plurality of pieces of pre-processed sound data; and then according to the speed of the target vehicle and preset The corresponding relationship between the rotation speed and the playback frequency determines the playback frequency of at least one piece of preprocessed sound data for subsequent sound playback.
根据目标车辆的转速确定待播放的预处理后的目标声音及其播放频率的方法具体如下文所述。The method for determining the preprocessed target sound to be played and its playing frequency according to the rotational speed of the target vehicle is specifically described as follows.
S104:按照播放频率,在目标车辆内播放预处理后的目标声音。S104: Play the preprocessed target sound in the target vehicle according to the playback frequency.
需要说明的是,由于本申请中的采集的目标声音的时间长度均远大于目前粒子合成算法切分的声音小段,因此,可改善目标车辆在某个恒定工况下重复播放某个声音片段的真实感。当目标车辆工况发生改变时,可以根据目标车辆的转速信号实时改变播放的预处理后的目标声音的速率(即播放频率)。It should be noted that since the time length of the target sound collected in this application is much longer than the sound segments segmented by the current particle synthesis algorithm, it can improve the ability of the target vehicle to repeatedly play a certain sound segment under a certain constant working condition. realism. When the working condition of the target vehicle changes, the rate of the preprocessed target sound played (that is, the playing frequency) can be changed in real time according to the rotational speed signal of the target vehicle.
具体来讲,在执行本步骤S103之前,还需要预先在硬件方面进行配置,控制芯片DAC管脚与模拟功放芯片的信号输入管脚相接,这样,在软件方面,即可利用定时器中断函数,实时将预处理后的目标声音数据逐个传至DAC管脚并输出至模拟功放芯片。同时,获取目标车辆的转速后,通过该转速的实时改变来控制定时器中断的时间间隔,从而实现怠速或恒速的预处理后的目标声音播放出变速率的听感。即,各级预设的转速和播放频率的对应关系,来控制定时器中断的时间间隔,即,确定出预处理后的目标声音的播放频率,这样,每次定时器中断函数被触发,就传一个预处理后的目标声音数据至DAC管脚,再由DAC管脚传至模拟功放芯片,从而使接在模拟功放芯片输出端的目标内的喇叭可以发声播放预处理后的目标声音。从而根据目标车辆的转速信号的实时改变,也可以定时器中断函数的触发时间间隔,进而实现怠速或恒速的预处理后的目标声音播放出变速率的效果。Specifically, before executing this step S103, it is necessary to configure the hardware in advance, and the DAC pin of the control chip is connected to the signal input pin of the analog power amplifier chip. In this way, in terms of software, the timer interrupt function can be used to , and transmit the preprocessed target sound data to the DAC pin one by one in real time and output to the analog power amplifier chip. At the same time, after obtaining the speed of the target vehicle, the time interval of timer interruption is controlled by the real-time change of the speed, so that the preprocessed target sound at idle speed or constant speed can be played with a variable rate of hearing. That is, the corresponding relationship between the preset rotation speed and the playback frequency at each level is used to control the time interval of the timer interruption, that is, to determine the playback frequency of the pre-processed target sound. In this way, each time the timer interruption function is triggered, the Pass a preprocessed target sound data to the DAC pin, and then transmit it to the analog power amplifier chip through the DAC pin, so that the speaker in the target connected to the output end of the analog power amplifier chip can sound and play the preprocessed target sound. Therefore, according to the real-time change of the speed signal of the target vehicle, the trigger time interval of the timer interrupt function can also be used to realize the effect of changing the speed of the preprocessed target sound at idle speed or constant speed.
其中,预设的转速和播放频率的对应关系可根据实际情况进行设定,比如,600转速对应的播放频率为0.01秒、700转速对应的播放频率为0.009秒、800转速对应的播放频率为0.001秒等等,这样,当获取到目标车辆的转速为600转时,即可每隔0.01秒触发定时器中断函数,即,每隔0.01秒在目标车辆内播放一次预处理后的目标声音。Among them, the corresponding relationship between the preset rotation speed and the playback frequency can be set according to the actual situation. For example, the playback frequency corresponding to 600 rotation speed is 0.01 seconds, the playback frequency corresponding to 700 rotation speed is 0.009 seconds, and the playback frequency corresponding to 800 rotation speed is 0.001 seconds. Seconds, etc., so that when the rotational speed of the target vehicle is 600 rpm, the timer interrupt function can be triggered every 0.01 second, that is, the preprocessed target sound is played in the target vehicle every 0.01 second.
可见,目标车辆的转速越高,定时器中断时间间隔应越短,从而使DAC输出信号越快,实现模拟功放芯片输出端的喇叭变速率播放预处理后的目标声音。It can be seen that the higher the speed of the target vehicle, the shorter the timer interruption interval should be, so that the DAC output signal will be faster, and the speaker at the output end of the analog power amplifier chip will play the preprocessed target sound at a variable rate.
在一些实施例中,所述多个不同恒定工况包括至少4种工况,上述步骤S101中“获取待播放的目标声音”的具体实现过程可以包括:在预设车型车辆处于怠速工况、恒定低速工况、恒定中速工况、恒定高速工况时,分别采集待播放的第一目标声音、第二目标声音、第三目标声音、第四目标声音,并记录各自对应第一转速、第二转速、第三转速、第四转速,如上述表1所示;其中,当预设车型车辆档位固定时,当其处于恒定低速工况、恒定中速工况、或恒定高速工况时,均表明车辆的车速恒定,则意味着车辆的转速也是稳定的,由此,在预设车型车辆处于怠速工况、恒定低速工况、恒定中速工况、恒定高速工况时,不仅可以对应采集不同的目标声音还可以记录到车辆的四个固定转速并分别定义为第一转速、第二转速、第三转速、第四转速。进一步的,在获取目标车辆的转速后,需要判断目标车辆的转速是否位于转速重叠区间,若是,则需要同时播放转速重叠区间的前一转速区 间对应的预处理后的目标声音和后一转速区间对应的预处理后的目标声音。并且,在同时播放的过程中,转速重叠区间的前一转速区间对应的预处理后的目标声音可以采用淡出模式播放,且转速重叠区间的后一转速区间对应的预处理后的目标声音可以采用淡入模式播放,以提高播放效果。In some embodiments, the multiple different constant operating conditions include at least four operating conditions, and the specific implementation process of "obtaining the target sound to be played" in the above step S101 may include: when the vehicle of the preset model type is in the idle state, Under constant low-speed working conditions, constant medium-speed working conditions, and constant high-speed working conditions, respectively collect the first target sound, the second target sound, the third target sound, and the fourth target sound to be played, and record the corresponding first speed, The second rotation speed, the third rotation speed, and the fourth rotation speed are shown in the above table 1; wherein, when the preset vehicle gear is fixed, when it is in a constant low-speed working condition, a constant medium-speed working condition, or a constant high-speed working condition , it means that the speed of the vehicle is constant, which means that the speed of the vehicle is also stable. Therefore, when the vehicle of the preset model is in the idling condition, the constant low-speed condition, the constant medium-speed condition, and the constant high-speed condition, not only Different target sounds can be collected correspondingly, and four fixed rotational speeds of the vehicle can be recorded and defined as the first rotational speed, the second rotational speed, the third rotational speed, and the fourth rotational speed respectively. Further, after obtaining the rotational speed of the target vehicle, it is necessary to determine whether the rotational speed of the target vehicle is in the rotational speed overlapping interval, and if so, it is necessary to simultaneously play the preprocessed target sound corresponding to the previous rotational speed interval of the rotational speed overlapping interval and the subsequent rotational speed interval The corresponding preprocessed target sound. Moreover, in the process of simultaneous playback, the preprocessed target sound corresponding to the previous speed interval of the speed overlapping interval can be played in a fade-out mode, and the preprocessed target sound corresponding to the subsequent speed interval of the speed overlapping interval can be played in a fade-out mode. Playback in fade-in mode for better playback.
其中,需要说明的是,转速重叠区间可以为任意两个预处理后的目标声音的播放转速范围的重叠部分。举例说明:假设预设车型车辆为车辆甲,目标车辆为车辆乙,上述实施例中的第一转速为600转(怠速工况),第二转速为1500转,第三转速为2500转,第四转速为3500转。当获取乙车的转速时,需要先确定待播放的预处理后的目标声音。在一些实施例中,可以直接根据转速对应确定,例如,当获取到的车辆乙的转速为1500转前后一定范围内时,则选择预处理后的第二目标声音播放,当获取到的车辆乙的转速为2500转前后一定范围内时,则选择预处理后的第三目标声音播放。在另一些实施例中,可以根据转速范围按比例对应确定,例如,车辆乙的转速区间为800转(怠速时)到8000转,则乙车转速3200,5600,8000时对应甲车转速1500,2500,3500,或者扣除部分上限(例如减去1200)后按比例,则乙车转速2800,4800,6800时对应甲车转速为1500,2500,3500,当获取到乙车转速在2800前后一定范围内时则选择预处理后的第二目标声音播放,当获取到的车辆乙的转速为4800转前后一定范围内时,则选择预处理后的第三目标声音播放。对于任一预处理后的目标声音,都有一个播放的转速范围,例如可以是以对应转速为中心(例如,为方便描述,以直接根据转速对应确定目标声音为例,对应转速可以是预处理后的目标声音的采集转速),其前后若干转速范围(例如正负600),即当获取到的目标车辆乙的转速在900-2100之间的任意值时,都选择甲车转速1500时采集到的预处理后的第二目标声音作为待播放的目标声音。而预设的转速与播放频率的对应关系是指,当乙车转速为1500时,是正常播放该预处理后的目标声音,当乙车转速小于1500,则降低其频率播放,且转速越小,频率降低越多。当乙车转速大于1500时,则增加其频率播放,且转速越高,频率增加越多。Wherein, it should be noted that the rotational speed overlapping interval may be an overlapping portion of the playing rotational speed ranges of any two preprocessed target sounds. For example: assume that the preset model vehicle is vehicle A, and the target vehicle is vehicle B. In the above embodiment, the first rotation speed is 600 rpm (idling mode), the second rotation speed is 1500 rpm, and the third rotation speed is 2500 rpm. Four revs at 3,500 rpm. When obtaining the speed of car B, it is necessary to determine the preprocessed target sound to be played. In some embodiments, it can be determined directly according to the rotational speed. For example, when the acquired rotational speed of vehicle B is within a certain range around 1500 rpm, the preprocessed second target sound is selected to be played. When the acquired vehicle B When the rotating speed is within a certain range around 2500 rpm, the preprocessed third target sound is selected to be played. In other embodiments, it can be determined proportionally according to the speed range. For example, the speed range of vehicle B is from 800 rpm (during idle speed) to 8000 rpm, and when the speed of vehicle B is 3200, 5600, 8000, the speed of vehicle A corresponds to 1500. 2500, 3500, or after deducting part of the upper limit (for example, minus 1200) proportionally, when the speed of car B is 2800, 4800, 6800, the corresponding speed of car A is 1500, 2500, 3500, when the speed of car B is obtained within a certain range around 2800 When it is inside, the preprocessed second target sound is selected to be played, and when the acquired speed of vehicle B is within a certain range around 4800 rpm, the preprocessed third target sound is selected to be played. For any preprocessed target sound, there is a playback speed range, for example, it can be centered on the corresponding speed (for example, for the convenience of description, take the determination of the target sound directly according to the speed as an example, the corresponding speed can be preprocessed Acquisition speed of the target sound after that), several speed ranges before and after it (for example, plus or minus 600), that is, when the speed of the acquired target vehicle B is at any value between 900-2100, it is selected to collect when the speed of vehicle A is 1500 The preprocessed second target sound is used as the target sound to be played. The preset corresponding relationship between the rotational speed and the playback frequency means that when the rotational speed of the second car is 1500, the preprocessed target sound is played normally; , the more the frequency decreases. When the speed of car B is greater than 1500, then increase its frequency to play, and the higher the speed, the more the frequency increases.
同样,当乙车转速为1900-3100时,则选择预处理后的第三目标声音进行播放。此时,转速重叠区间就是1900转-3100转,在这个转速范围内,会同时播放前一转速区间对应的第二预处理后的目标声音和后一转速区间对应的预处理后的第三目标声音,同时还会增加一个淡入淡出的控制,即增益控制,第三目标声音增益(即音量)逐渐升高,预处理后的第二目标声音增益逐渐降低直至为0。转速重叠区间就是任意两个预处理后的目标声音的播放转速范围的重叠部分。可以理解的是,实际应用中,转速范围的设置也必须要保证具有重叠区间。Similarly, when the rotational speed of the second car is 1900-3100, the preprocessed third target sound is selected for playback. At this time, the rotation speed overlap interval is 1900 to 3100 rotation speeds. Within this rotation speed range, the second pre-processed target sound corresponding to the previous speed range and the pre-processed third target sound corresponding to the next speed range will be played at the same time. At the same time, a fade-in and fade-out control, that is, a gain control, will be added. The third target sound gain (ie volume) will gradually increase, and the preprocessed second target sound gain will gradually decrease until it is 0. The rotational speed overlapping interval is the overlapping portion of the playing rotational speed ranges of any two preprocessed target sounds. It can be understood that in practical applications, the setting of the speed range must also ensure that there are overlapping intervals.
再举例说明,在车辆甲处于转速1500、2000、2500时,分别采集到的待播放的预处理后的目标声音为声音A、声音B、声音C。假设对于车辆乙播放预处理后的目标声音而言的转速区间为正负400转,则声音A的播放转速区间为1100转到1900转,声音B的播放转速区间为1600转到2400转,声音C的播放转速区间为2100转到2900转,转速重叠区间包括1600-1900转,2100-2400转。则在车辆乙的转速达到1100转时,开始播放声音A,且随着车辆乙的转速增加,声音A的播放频率也逐渐增加,且播放声音A的音量也逐渐增 加,直至车辆乙的转速达到1500转时,声音A的播放频率达到正常,在车辆乙的转速由1500逐渐增加到1900转时,其播放频率继续增加,且当进入转速重叠区间时(即1600转开始),播放声音A的音量也逐渐降低,直至车辆乙的转速达到1900转时,达到声音A的最低音量0,即停止播放声音A,实现淡出模式播放。其中,1600转~1900转区间为转速重叠区间,需要重叠播放声音A、声音B,即在车辆乙的转速由1600转逐渐增加到1900转时,不仅需要采用淡出模式播放声音A,还需要在车辆乙的转速达到1600转时,开始按照频率逐渐增加的方式来播放声音B,且播放声音B的音量也逐渐增加,直至车辆乙的转速达到2000转时,声音B的播放频率达到正常。并在车辆乙的转速由2000逐渐增加到2400转时,其播放频率继续增加,且当进入下一个转速重叠区间时(即2100转开始),播放声音B的音量也逐渐降低,直至车辆乙的转速达到2400转时,达到声音B的最低音量0,即停止播放声音B,实现声音B的淡出模式播放。As another example, when vehicle A is at speeds of 1500, 2000, and 2500, the preprocessed target sounds to be played are collected respectively as sound A, sound B, and sound C. Assuming that the speed range of the preprocessed target sound played by vehicle B is plus or minus 400 rpm, the playback speed range of sound A is from 1100 to 1900 rpm, and the playback speed range of sound B is from 1600 to 2400 rpm. The playback speed range of C is from 2100 to 2900 rpm, and the overlapping speed range includes 1600-1900 rpm and 2100-2400 rpm. Then, when the rotational speed of vehicle B reaches 1100 rpm, sound A starts to be played, and as the rotational speed of vehicle B increases, the playing frequency of sound A gradually increases, and the volume of sound A gradually increases until the rotational speed of vehicle B reaches At 1500 rpm, the playback frequency of sound A reaches normal. When the speed of vehicle B gradually increases from 1500 to 1900 rpm, its playback frequency continues to increase. The volume is also gradually reduced until the speed of vehicle B reaches 1900 rpm, the lowest volume of sound A is 0, that is, the playback of sound A is stopped, and playback in fade-out mode is realized. Among them, the interval between 1600 rpm and 1900 rpm is the speed overlap interval, and sound A and sound B need to be played overlappingly. When the speed of vehicle B reaches 1600 rpm, the sound B starts to be played in a manner of gradually increasing frequency, and the volume of sound B is gradually increased until the speed of vehicle B reaches 2000 rpm, and the frequency of sound B is normal. And when the rotational speed of vehicle B gradually increases from 2000 to 2400 rpm, its playing frequency continues to increase, and when entering the next overlapping interval of rotational speed (that is, starting at 2100 rpm), the volume of playing sound B also gradually decreases until the vehicle B's When the rotation speed reaches 2400 rpm, the lowest volume of sound B reaches 0, that is, sound B stops playing, and sound B is played in fade-out mode.
同理,2100转~2400转区间也为转速重叠区间,需要重叠播放声音B、声音C,声音C的淡入淡出播放同声音B类似,在此不再赘述。Similarly, the interval from 2100 rpm to 2400 rpm is also an overlapping interval of rotational speeds, and sound B and sound C need to be played overlappingly.
在本实现方式中,相邻处理后的目标声音的切换是需要实现平滑、自然的过度。基于上述陈述可知,定时器中断的时间间隔与目标车辆的当前转速信息呈线性反比关系,即,转速越高,定时器中断的时间间隔越短,DAC输出信号越快,那么声音播放的速率就越快。In this implementation, the switching between adjacent processed target sounds needs to achieve a smooth and natural transition. Based on the above statement, it can be seen that the time interval of the timer interruption is linearly inversely proportional to the current speed information of the target vehicle, that is, the higher the speed, the shorter the time interval of the timer interruption, the faster the DAC output signal, and the faster the sound playback rate. faster.
在此基础上,如图2所示,以怠速工况、恒定低速工况、恒定中速工况、恒定高速工况分别对应预处理后的第一目标声音、第二目标声音、第三目标声音、第四目标声音,以及怠速工况对应的转速是在PRM1和RPM2之间,恒定低速工况对应的转速在RPM3和RPM4之间,恒定中速工况对应的转速在RPM5和RPM6之间,恒定高速工况对应的转速在RPM7和RPM8之间为例,优选为各区间的中值,且目标车辆的发动机转速满足:RPM1<RPM2<RPM3<RPM4<RPM6<RPM7<RPM8。则在此转速区间内的播放目标声音情况如下:On this basis, as shown in Figure 2, the idling condition, constant low-speed condition, constant medium-speed condition, and constant high-speed condition respectively correspond to the preprocessed first target sound, second target sound, and third target sound. The sound, the fourth target sound, and the speed corresponding to the idling condition are between PRM1 and RPM2, the speed corresponding to the constant low speed condition is between RPM3 and RPM4, and the speed corresponding to the constant medium speed condition is between RPM5 and RPM6 , the speed corresponding to the constant high-speed condition is between RPM7 and RPM8 as an example, preferably the median value of each interval, and the engine speed of the target vehicle satisfies: RPM1<RPM2<RPM3<RPM4<RPM6<RPM7<RPM8. Then the playback target sound in this speed range is as follows:
1)当目标车辆的发动机转速介于RPM1和RPM2之间时,仅播放怠速工况对应的预处理后的第一目标声音。1) When the engine speed of the target vehicle is between RPM1 and RPM2, only the preprocessed first target sound corresponding to the idling condition is played.
2)当目标车辆的发动机转速介于RPM2和RPM3之间时,同时播放怠速工况对应的预处理后的第一目标声音和恒定低速工况对应的预处理后的第二目标声音。2) When the engine speed of the target vehicle is between RPM2 and RPM3, simultaneously play the preprocessed first target sound corresponding to the idling condition and the preprocessed second target sound corresponding to the constant low speed condition.
3)当目标车辆的发动机转速介于RPM3和RPM4之间时,仅播放恒定低速工况对应的预处理后的第二目标声音。3) When the engine speed of the target vehicle is between RPM3 and RPM4, only the preprocessed second target sound corresponding to the constant low speed condition is played.
4)当目标车辆的发动机转速介于RPM4和RPM5之间时,同时播放恒速恒定低速工况对应的预处理后的第二目标声音和恒定中速工况对应的预处理后的第三目标声音。4) When the engine speed of the target vehicle is between RPM4 and RPM5, play the preprocessed second target sound corresponding to the constant speed constant low speed condition and the preprocessed third target sound corresponding to the constant medium speed condition sound.
5)当目标车辆的发动机转速介于RPM5和RPM6之间时,仅播放恒定中速工况对应的预处理后的第三目标声音。5) When the engine speed of the target vehicle is between RPM5 and RPM6, only the preprocessed third target sound corresponding to the constant medium speed condition is played.
6)当目标车辆的发动机转速介于RPM6和RPM7之间时,同时播放恒定中速工况对应的预处理后的第三目标声音和恒定高速工况对应的预处理后的第四目标声音。6) When the engine speed of the target vehicle is between RPM6 and RPM7, simultaneously play the preprocessed third target sound corresponding to the constant medium speed condition and the preprocessed fourth target sound corresponding to the constant high speed condition.
7)当目标车辆的发动机转速介于RPM7和RPM8之间时,仅播放恒定高速工况对应的预处理后的第四目标声音。7) When the engine speed of the target vehicle is between RPM7 and RPM8, only the preprocessed fourth target sound corresponding to the constant high speed condition is played.
其中,同时播放两个预处理后的目标声音时,前一个预处理后的目标声音应增加淡出 算法,后一个预处理后的目标声音应增加淡入算法。而参数RPM1、RPM2、RPM3、RPM4、RPM5、RPM6、RPM7、RPM8的取值可根据实际情况设定,本申请实施例对此不进行限定,比如,通常情况下,RPM1应小于车辆怠速时发动机的转速,RPM8应大于车辆发动机的最高转速,以满足目标声音可在车辆全工况下均可发声。例如:假设某一款车型车辆的发动机转速区间在700~6000转之间,那么可设定RPM1=400、RPM2=1200、RPM3=1500、RPM4=2500、RPM5=3000、RPM6=3500、RPM7=5000、RPM8=7000等。Among them, when playing two pre-processed target sounds at the same time, the former pre-processed target sound should add the fade-out algorithm, and the latter pre-processed target sound should add the fade-in algorithm. The values of parameters RPM1, RPM2, RPM3, RPM4, RPM5, RPM6, RPM7, and RPM8 can be set according to actual conditions, and this embodiment of the present application does not limit this. RPM8 should be greater than the maximum speed of the vehicle engine to meet the target sound and can be produced under all working conditions of the vehicle. For example: Assuming that the engine speed range of a certain model vehicle is between 700 and 6000 rpm, then RPM1=400, RPM2=1200, RPM3=1500, RPM4=2500, RPM5=3000, RPM6=3500, RPM7= 5000, RPM8=7000, etc.
需要说明的是,由于现有的车辆音效声模拟播放方法,仅有开启或关闭音效声的功能,缺少更多的定制化功能,用户驾驶体验较差。因此,在本实施例中,为了进一步提高驾驶员的驾驶体验,可以在目标车辆处于加速或减速工况开启预处理后的目标声音的播放,从而避免驾驶员长时间恒速驾驶时(比如在高速公路上行驶)产生的听觉疲劳。具体播放过程可参见上述步骤S101-S104,接下来,本申请将对如何确定何时开启预处理后的目标声音播放的过程进行详细介绍:It should be noted that due to the existing vehicle sound simulation playback method, there is only the function of turning on or off the sound effect, lacking more customization functions, and the user's driving experience is poor. Therefore, in this embodiment, in order to further improve the driving experience of the driver, the playback of the pre-processed target sound can be started when the target vehicle is in an acceleration or deceleration condition, so as to avoid the driver driving at a constant speed for a long time (such as in driving on the highway) caused hearing fatigue. For the specific playback process, please refer to the above steps S101-S104. Next, this application will introduce in detail the process of how to determine when to start the playback of the preprocessed target sound:
一种可选的实现方式是,首先需要判断目标车辆的车速是否处于相对稳定的状态,即,判断目标车辆的驾驶员是否长时间处于恒速驾驶时(比如在高速公路上行驶),若是,则为了避免其产生听觉疲劳,可以在第三预设时长的范围内,将已经在目标车辆内播放的预处理后的目标声音的音量降低到预设音量阈值,等到后续目标车辆再次处于加速或减速工况时,再开启目标声音的播放。An optional implementation is to first determine whether the speed of the target vehicle is in a relatively stable state, that is, to determine whether the driver of the target vehicle is driving at a constant speed for a long time (such as driving on a highway), and if so, Then, in order to avoid hearing fatigue, the volume of the preprocessed target sound that has been played in the target vehicle can be reduced to the preset volume threshold within the third preset duration, and wait until the subsequent target vehicle is accelerating or accelerating again. When decelerating, turn on the playback of the target sound.
其中,第三预设时长的范围的具体取值可根据实际情况和经验值进行设定,本申请不做限定,比如可以将第三预设时长的范围设定为5秒至10秒等。并且,预设音量阈值的具体取值也可根据实际情况和经验值进行设定,本申请也不做限定,比如可以将预设音量阈值设定为0等,如可以在5秒至10秒内,将已经在目标车辆内播放的预处理后的目标声音的音量降低至0,即使该虚拟声浪消失。Wherein, the specific value of the range of the third preset duration can be set according to the actual situation and experience value, which is not limited in this application, for example, the range of the third preset duration can be set to 5 seconds to 10 seconds, etc. Moreover, the specific value of the preset volume threshold can also be set according to actual conditions and experience values, and the present application does not limit it. For example, the preset volume threshold can be set to 0, etc., such as within 5 seconds to 10 seconds. In the target vehicle, the volume of the pre-processed target sound that has been played in the target vehicle is reduced to 0, even if the virtual sound wave disappears.
在此基础上,在目标车辆再次处于加速、减速、或油门变化的工况下,还可以在满足预设条件时,再次开启预处理后的目标声音的播放。具体来讲,一种可选的实现方式是,首先可以获取目标车辆的第一预设数量(此处将其定义为P
num,具体取值不做限定,可根据实际情况设定,比如可以取值为10)的油门踏板行程(此处将其定义为P),然后根据第一预设数量P
num的油门踏板行程P,确定目标车辆是否处于加速或减速工况;若是,则在目标车辆内播放预处理后的目标声音。
On this basis, when the target vehicle is again in the acceleration, deceleration, or throttle change condition, the preprocessed target sound can be played again when the preset condition is met. Specifically, an optional implementation method is to obtain the first preset number of the target vehicle (here, it is defined as P num , the specific value is not limited, and can be set according to the actual situation, for example, The value is 10) of the accelerator pedal stroke (here it is defined as P), and then according to the accelerator pedal stroke P of the first preset quantity P num , it is determined whether the target vehicle is in an acceleration or deceleration condition; if so, in the target The pre-processed target sound is played in the vehicle.
在本实现方式中,在获取目标车辆的P
num的油门踏板行程后,定义油门踏板行程历史数据数组为P
array[P
num-1],然后通过将其依次向前移动一位后,得到移位后的P
num的油门踏板行程,即,将P
array[0]=P
array[1],P
array[1]=P
array[2],…,P
array[P
num-2]=P
array[P
num-1],然后将P
array[P
num-1]=P
new,其中P
array数组的大小为P
num。进而可以计算移位后的第一预设数量的油门踏板行程中最新油门踏板行程与最滞后的油门踏板行程之间的差值,即计算P
array[P
num-1]-P
array[0]的取值,若该取值小于第一预设阈值(此处将其定义为P1
Difference,具体取值不做限定,可根据实际情况设定,比如可以取值为-20等),则确定目标车辆处于减速工况,可以在目标车辆内播放预处理后的目标声音,并将音效声关闭倒计时变量设为预设时间(此处将其定义为TimerCount,具体取值不做限定,可根据实际情况设定,比如可 以取值为10秒等),或者,若P
array[P
num-1]-P
array[0]的取值大于第二预设阈值(此处将其定义为P2
Difference,具体取值不做限定,可根据实际情况设定,比如可以取值为20等),则确定目标车辆处于加速工况,可以在目标车辆内播放预处理后的目标声音,并将音效声关闭倒计时变量设为预设时间TimerCount,在达到该预设时间时控制目标声音逐渐淡出直至关闭。
In this implementation, after obtaining the P num accelerator pedal stroke of the target vehicle, define the accelerator pedal stroke history data array as P array [P num -1], and then move it forward one bit in turn to obtain the shift Accelerator pedal stroke of P num after digit, that is, P array [0]=P array [1], P array [1]=P array [2],..., P array [P num -2]=P array [P num -1], then P array [P num -1]=P new , wherein the size of P array is P num . Furthermore, the difference between the latest accelerator pedal stroke and the most lagging accelerator pedal stroke among the first preset number of accelerator pedal strokes after shifting can be calculated, that is, calculating P array [P num -1]-P array [0] If the value is less than the first preset threshold (here it is defined as P1 Difference , the specific value is not limited, it can be set according to the actual situation, for example, the value can be -20, etc.), then determine The target vehicle is in a deceleration condition, and the preprocessed target sound can be played in the target vehicle, and the countdown variable for turning off the sound effect is set to a preset time (here, it is defined as TimerCount, and the specific value is not limited, and can be determined according to Actual situation setting, for example, can take a value of 10 seconds, etc.), or, if the value of P array [P num -1]-P array [0] is greater than the second preset threshold (here it is defined as P2 Difference , the specific value is not limited, it can be set according to the actual situation, for example, the value can be 20, etc.), then it is determined that the target vehicle is in the acceleration condition, the preprocessed target sound can be played in the target vehicle, and the sound effect sound The closing countdown variable is set to the preset time TimerCount, and when the preset time is reached, the control target sound gradually fades out until it is turned off.
另一种可选的实现方式是,首先可以获取目标车辆的第第二预设数量(此处将其定义为V1
num,具体取值不做限定,可根据实际情况设定,比如可以取值为15等)的瞬时车速(此处将其定义为V),然后根据第二预设数量V1
num的瞬时车速V,确定目标车辆是否处于加速或减速工况;若是,则在目标车辆内播放预处理后的目标声音。
Another optional implementation method is to firstly obtain the second preset number of the target vehicle (here, it is defined as V1 num , the specific value is not limited, and can be set according to the actual situation, for example, the value can be 15, etc.), then determine whether the target vehicle is in an acceleration or deceleration condition according to the instantaneous vehicle speed V of the second preset quantity V1 num ; if so, then play in the target vehicle The preprocessed target sound.
在本实现方式中,在获取目标车辆的V1
num的瞬时车速后,定义目标车辆的瞬时车速历史数据数组为V1
array[V1
num-1],然后通过将该数据数组中的数值依次向前移动一位后,得到移位后的V1
num的瞬时车速,即,V1
array[0]=V1
array[1],V1
array[1]=V1
array[2],…,V1
array[V1
num-2]=V1
array[V1
num-1],然后,可以定义V1
array[V1
num-1]=V
new,并计算平均值V1
ave的取值如下:
In this implementation, after obtaining the instantaneous vehicle speed of V1 num of the target vehicle, define the historical data array of instantaneous vehicle speed of the target vehicle as V1 array [V1 num -1], and then move the values in the data array forward sequentially After one bit, get the instantaneous vehicle speed of V1 num after shifting, that is, V1 array [0] = V1 array [1], V1 array [1] = V1 array [2], ..., V1 array [V1 num -2 ]=V1 array [V1 num -1], then, V1 array [V1 num -1]=V new can be defined, and the value of calculating the average V1 ave is as follows:
其中,V1
ave表示第二预设数量V1num的移位后瞬时车速的平均值;V1array数组的维度为第二预设数量V1num。
Wherein, V1 ave represents the average value of the instantaneous vehicle speed after the shift of the second preset number V1num; the dimension of the V1array array is the second preset number V1num.
进一步,可以计算出第三预设数量(此处将其定义为V2
num,具体取值不做限定,可根据实际情况设定,比如可以取值为20等)的移位后瞬时车速的平均值的平均值,具体的,可以定义目标车辆的平均车速历史数据数组为V2
array[V2
num-1],然后通过将该数据数组中的数值依次向前移动一位后,得到V2
array[0]=V2
array[1],V2
array[1]=V2
array[2],…,V2
array[V1
num-2]=V2
array[V1
num-1],然后将V2
array[V2
num-1]=V1
ave,并计算平均值V2
ave的取值如下:
Further, it is possible to calculate the average of the shifted instantaneous vehicle speed of the third preset quantity (here, it is defined as V2 num , the specific value is not limited, and can be set according to the actual situation, for example, the value can be 20, etc.) The average value of the value, specifically, the average vehicle speed historical data array of the target vehicle can be defined as V2 array [V2 num -1], and then the values in the data array are moved forward one by one to obtain V2 array [0 ] = V2 array [1], V2 array [1] = V2 array [2], ..., V2 array [V1 num -2] = V2 array [V1 num -1], then V2 array [V2 num -1] =V1 ave , and calculate the value of the average value V2 ave as follows:
其中,V2
ave表示第三预设数量V2
num的移位后瞬时车速的平均值的平均值;V2
array数组的维度为第二预设数量V2
num。
Wherein, V2 ave represents the average value of the average value of the instantaneous vehicle speed after the shift of the third preset number V2 num ; the dimension of the V2 array is the second preset number V2 num .
进而可以计算第二预设数量的移位后瞬时车速的平均值与第三预设数量的移位后瞬时车速的平均值的平均值之间的差值,即计算V1
ave-V2
ave的取值,
Furthermore, the difference between the average value of the second preset number of shifted instantaneous vehicle speeds and the third preset number of shifted instantaneous vehicle speeds can be calculated, that is, the value of V1 ave -V2 ave can be calculated. value,
若该取值大于第三预设阈值(此处将其定义为V1
Difference,具体取值不做限定,可根据实际情况设定,比如可以取值为5等),则确定目标车辆处于加速工况,可以在目标车辆内播放预处理后的目标声音,并将音效声关闭倒计时变量设为预设时间TimerCount(如10秒等),或者,若V1
ave-V2
ave的取值小于第四预设阈值(此处将其定义为V2Difference,具体取值不做限定,可根据实际情况设定,比如可以取值为-5等),则确定目标车辆处于减速工况,可以在目标车辆内播放预处理后的目标声音,并将音效声关闭倒计时变量设为预设时间TimerCount,在达到该预设时间时控制目标声音逐渐淡出直至关闭。
If the value is greater than the third preset threshold (here, it is defined as V1 Difference , the specific value is not limited, it can be set according to the actual situation, for example, the value can be 5, etc.), then it is determined that the target vehicle is in the acceleration mode. In this case, the preprocessed target sound can be played in the target vehicle, and the countdown variable for turning off the sound effect is set to the preset time TimerCount (such as 10 seconds, etc.), or, if the value of V1 ave -V2 ave is less than the fourth preset Set the threshold (here it is defined as V2Difference, the specific value is not limited, it can be set according to the actual situation, for example, the value can be -5, etc.), then it is determined that the target vehicle is in a deceleration condition and can be played in the target vehicle The target sound is preprocessed, and the countdown variable for closing the sound effect is set to the preset time TimerCount. When the preset time is reached, the target sound is gradually faded out until it is turned off.
综上,本实施例提供的一种车辆声音播放方法,首先获取目标声音;然后对目标声音进行预处理,得到预处理后的目标声音;接着,获取目标车辆的转速,并根据目标车辆的转速以及预设的转速和播放频率的对应关系,确定预处理后的目标声音以及播放频率;进而可以按照播放频率,在目标车辆内播放预处理后的目标声音。可见,由于本申请实施例不仅利用采集的预设车型车辆运行到不同恒定工况下的目标声音实现了车辆全工况的声音模拟效果,而且当车速处于某一恒定工况需要重复播放某一段声音样本时,也不会产生爆音,使得用户的听感更加自然,进而提高了用户的驾驶体验。To sum up, the vehicle sound playing method provided by this embodiment first obtains the target sound; then preprocesses the target sound to obtain the preprocessed target sound; then obtains the speed of the target vehicle, and And the corresponding relationship between the preset rotational speed and the playback frequency determines the pre-processed target sound and the playback frequency; and then the pre-processed target sound can be played in the target vehicle according to the playback frequency. It can be seen that, since the embodiment of the present application not only utilizes the collected target sounds of vehicles of preset models running under different constant working conditions to realize the sound simulation effect of the full working condition of the vehicle, but also needs to play a certain section repeatedly when the vehicle speed is in a certain constant working condition. When sampling sound samples, there will be no popping sound, which makes the user's sense of hearing more natural, thereby improving the user's driving experience.
第二实施例second embodiment
本实施例将对一种车辆声音播放装置进行介绍,相关内容请参见上述方法实施例。This embodiment will introduce a vehicle sound playback device, and for relevant content, please refer to the foregoing method embodiments.
参见图3,为本实施例提供的一种车辆声音播放装置的组成示意图,该装置300包括:Referring to FIG. 3 , it is a schematic diagram of the composition of a vehicle sound playback device provided in this embodiment. The device 300 includes:
获取单元301,用于获取目标声音;An acquisition unit 301, configured to acquire a target sound;
预处理单元302,用于对所述目标声音进行预处理,得到预处理后的目标声音;A preprocessing unit 302, configured to preprocess the target sound to obtain the preprocessed target sound;
第一确定单元303,用于获取目标车辆的转速,并根据所述目标车辆的转速以及预设的转速和播放频率的对应关系,确定所述预处理后的目标声音以及播放频率;The first determination unit 303 is configured to obtain the rotational speed of the target vehicle, and determine the preprocessed target sound and the playback frequency according to the rotational speed of the target vehicle and the preset correspondence between the rotational speed and the playback frequency;
播放单元304,用于按照所述播放频率,在所述目标车辆内播放所述预处理后的目标声音。The playing unit 304 is configured to play the preprocessed target sound in the target vehicle according to the playing frequency.
在本实施例的一种实现方式中,所述目标声音包括多条预处理后的声音数据,所述多条声音数据是在预设车型车辆运行到多个不同恒定工况时,分别采集的车内声音数据。In an implementation manner of this embodiment, the target sound includes multiple pieces of preprocessed sound data, and the multiple pieces of sound data are respectively collected when the vehicle of a preset model type runs to multiple different constant working conditions In-vehicle sound data.
在本实施例的一种实现方式中,所述第一确定单元303包括:In an implementation manner of this embodiment, the first determining unit 303 includes:
选择子单元,用于根据所述目标车辆的转速,从所述多条预处理后的声音数据中选择至少一条预处理后的声音数据;A selection subunit, configured to select at least one piece of preprocessed sound data from the plurality of pieces of preprocessed sound data according to the rotational speed of the target vehicle;
确定子单元,用于根据所述目标车辆的转速以及预设的转速和播放频率的对应关系,确定所述至少一条预处理后的声音数据的播放频率。The determination subunit is configured to determine the playback frequency of the at least one piece of preprocessed sound data according to the rotation speed of the target vehicle and the preset correspondence between the rotation speed and playback frequency.
在本实施例的一种实现方式中,所述多个不同恒定工况包括怠速工况。In an implementation manner of this embodiment, the multiple different constant working conditions include an idling working condition.
在本实施例的一种实现方式中,所述预处理单元302包括:In an implementation manner of this embodiment, the preprocessing unit 302 includes:
划分子单元,用于将所述目标声音按序划分为第一声音段和第二声音段;所述第一声音段和第二声音段的声音时间长度均大于等于第一预设时长;Dividing subunits, used to sequentially divide the target sound into a first sound segment and a second sound segment; the sound time lengths of the first sound segment and the second sound segment are both greater than or equal to a first preset duration;
设置子单元,用于将所述第一声音段的前第二预设时长的声音设置为淡入模式,得到更新后的第一声音段;并将所述第二声音段的后第二预设时长的声音设置为淡出模式,得到更新后的第二声音段;A subunit is set, which is used to set the sound of the first second preset duration of the first sound segment to fade-in mode to obtain an updated first sound segment; and set the rear second preset of the second sound segment The duration sound is set to fade-out mode, and the updated second sound segment is obtained;
调换子单元,用于将所述更新后的第一声音段和更新后的第二声音段的排序调换,并在二者之间设置重叠第二预设时长,得到预处理后的目标声音,以消除播放所述目标声音时产生的爆音。The exchange subunit is used to exchange the order of the updated first sound segment and the updated second sound segment, and set a second preset duration of overlap between the two to obtain the preprocessed target sound, to eliminate popping sounds when the target sound is played.
在本实施例的一种实现方式中,所述第二预设时长为所述第一预设时长的三分之一或二分之一,或者所述第二预设时长不大于所述第一预设时长的二分之一。In an implementation manner of this embodiment, the second preset duration is one-third or one-half of the first preset duration, or the second preset duration is not longer than the first preset duration. One-half of a preset duration.
在本实施例的一种实现方式中,所述装置还包括:In an implementation manner of this embodiment, the device further includes:
判断单元,用于在所述获取目标车辆的转速后,判断所述目标车辆的转速是否位于转 速重叠区间;A judging unit, configured to judge whether the speed of the target vehicle is located in a speed overlapping interval after the speed of the target vehicle is acquired;
切换单元,用于若判断出所述目标车辆的转速位于所述转速重叠区间,则同时播放所述转速重叠区间的前一转速区间对应的预处理后的目标声音和后一转速区间对应的预处理后的目标声音。A switching unit, configured to simultaneously play the preprocessed target sound corresponding to the previous speed interval of the speed overlapping interval and the preprocessed sound corresponding to the subsequent speed interval if it is determined that the speed of the target vehicle is located in the speed overlapping interval. The processed target sound.
在本实施例的一种实现方式中,所述切换单元具体用于:In an implementation manner of this embodiment, the switching unit is specifically configured to:
所述转速重叠区间的前一转速区间对应的预处理后的目标声音采用淡出模式播放,且所述转速重叠区间的后一转速区间对应的预处理后的目标声音采用淡入模式播放。The preprocessed target sound corresponding to the previous speed interval of the speed overlapping interval is played in fade-out mode, and the preprocessed target sound corresponding to the subsequent speed interval of the speed overlapping interval is played in fade-in mode.
在本实施例的一种实现方式中,所述装置还包括:In an implementation manner of this embodiment, the device further includes:
降低单元,用于当所述目标车辆的车速处于预设稳定工况时,在第三预设时长的范围内,将所述目标车辆内播放的所述预处理后的目标声音的音量降低到预设音量阈值。A reducing unit, configured to reduce the volume of the preprocessed target sound played in the target vehicle to within the range of a third preset duration when the vehicle speed of the target vehicle is in a preset stable working condition Preset volume threshold.
在本实施例的一种实现方式中,所述装置还包括:In an implementation manner of this embodiment, the device further includes:
第一获取单元,用于获取所述目标车辆的第一预设数量的油门踏板行程;a first acquiring unit, configured to acquire a first preset number of accelerator pedal strokes of the target vehicle;
第二确定单元,用于根据所述第一预设数量的油门踏板行程,确定所述目标车辆是否处于加速或减速工况;若是,则在所述目标车辆内播放所述预处理后的目标声音。The second determining unit is configured to determine whether the target vehicle is in an acceleration or deceleration state according to the first preset number of accelerator pedal strokes; if so, play the preprocessed target in the target vehicle sound.
在本实施例的一种实现方式中,所述装置还包括:In an implementation manner of this embodiment, the device further includes:
第一移位单元,用于在所述获取所述目标车辆的第一预设数量的油门踏板行程之后,通过将所述目标车辆的第一预设数量的油门踏板行程依次向前移动一位后,得到移位后的第一预设数量的油门踏板行程;The first shifting unit is configured to sequentially shift the first preset number of accelerator pedal strokes of the target vehicle forward one bit after the acquisition of the first preset number of accelerator pedal strokes of the target vehicle After that, the first preset amount of accelerator pedal travel after shifting is obtained;
所述第二确定单元具体用于:The second determining unit is specifically used for:
计算移位后的第一预设数量的油门踏板行程中最新油门踏板行程与最滞后的油门踏板行程之间的差值;若所述差值小于第一预设阈值,则确定所述目标车辆处于减速工况,或者,若所述差值大于第二预设阈值,则确定所述目标车辆处于加速工况,在所述目标车辆内播放所述预处理后的目标声音。calculating the difference between the newest accelerator pedal stroke and the most delayed accelerator pedal stroke among the shifted first preset number of accelerator pedal strokes; if the difference is smaller than a first preset threshold value, then determining the target vehicle It is in a deceleration state, or if the difference is greater than a second preset threshold, it is determined that the target vehicle is in an acceleration state, and the preprocessed target sound is played in the target vehicle.
在本实施例的一种实现方式中,所述装置还包括:In an implementation manner of this embodiment, the device further includes:
第二获取单元,用于获取所述目标车辆的第二预设数量的瞬时车速;a second acquiring unit, configured to acquire a second preset number of instantaneous vehicle speeds of the target vehicle;
第三确定单元,用于根据所述第二预设数量的瞬时车速,确定所述目标车辆是否处于加速或减速工况;若是,则在所述目标车辆内播放所述预处理后的目标声音。A third determining unit, configured to determine whether the target vehicle is in an acceleration or deceleration state according to the second preset number of instantaneous vehicle speeds; if so, play the preprocessed target sound in the target vehicle .
在本实施例的一种实现方式中,所述装置还包括:In an implementation manner of this embodiment, the device further includes:
第二移位单元,用于通过将所述第二预设数量的瞬时车速依次向前移动一位后,得到移位后的第二预设数量的瞬时车速,并计算出第二预设数量的移位后瞬时车速的平均值;并进一步计算出第三预设数量的移位后瞬时车速的平均值的平均值;所述第三预设数量的移位后瞬时车速的平均值相比所述移位后瞬时车速的平均值是滞后的;The second shifting unit is used to obtain the shifted second preset number of instantaneous vehicle speeds by sequentially shifting the second preset number of instantaneous vehicle speeds one bit forward, and calculate the second preset number The average value of the instantaneous vehicle speed after the shift; and further calculate the average value of the average value of the instantaneous vehicle speed after the shift of the third preset number; the average value of the instantaneous vehicle speed after the shift of the third preset number is compared The average value of the instantaneous vehicle speed after the shift is lagged;
所述第三确定单元具体用于:The third determining unit is specifically used for:
计算所述第二预设数量的移位后瞬时车速的平均值与第三预设数量的移位后瞬时车速的平均值的平均值之间的差值;若所述差值大于第三预设阈值,则确定所述目标车辆处于加速工况,或者,若所述差值小于第四预设阈值,则确定所述目标车辆处于减速工况,在所述目标车辆内播放所述预处理后的目标声音。calculating the difference between the average value of the second preset number of shifted instantaneous vehicle speeds and the average value of the third preset number of shifted instantaneous vehicle speeds; if the difference is greater than the third preset If the threshold is set, then it is determined that the target vehicle is in an acceleration condition, or, if the difference is less than the fourth preset threshold, it is determined that the target vehicle is in a deceleration condition, and the pre-processing is played in the target vehicle after the target sound.
进一步地,本申请实施例还提供了一种车辆声音播放设备,包括:处理器、存储器、系统总线;Further, the embodiment of the present application also provides a vehicle sound playback device, including: a processor, a memory, and a system bus;
所述处理器以及所述存储器通过所述系统总线相连;The processor and the memory are connected through the system bus;
所述存储器用于存储一个或多个程序,所述一个或多个程序包括指令,所述指令当被所述处理器执行时使所述处理器执行上述车辆声音播放方法的任一种实现方法。The memory is used to store one or more programs, and the one or more programs include instructions, and the instructions, when executed by the processor, cause the processor to perform any implementation method of the above-mentioned vehicle sound playing method .
进一步地,本申请实施例还提供了一种车辆,所述车辆包括上述车辆声音播放设备。Further, an embodiment of the present application also provides a vehicle, the vehicle includes the above-mentioned vehicle sound playback device.
进一步地,本申请实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当所述指令在终端设备上运行时,使得所述终端设备执行上述车辆声音播放方法的任一种实现方法。Further, the embodiment of the present application also provides a computer-readable storage medium, the computer-readable storage medium stores instructions, and when the instructions are run on the terminal device, the terminal device executes the above-mentioned vehicle sound Any implementation of the play method.
进一步地,本申请实施例还提供了一种计算机程序产品,所述计算机程序产品在终端设备上运行时,使得所述终端设备执行上述车辆声音播放方法的任一种实现方法。Further, an embodiment of the present application also provides a computer program product, which, when running on a terminal device, enables the terminal device to execute any implementation method of the above-mentioned vehicle sound playing method.
通过以上的实施方式的描述可知,本领域的技术人员可以清楚地了解到上述实施例方法中的全部或部分步骤可借助软件加必需的通用硬件平台的方式来实现。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者诸如媒体网关等网络通信设备,等等)执行本申请各个实施例或者实施例的某些部分所述的方法。From the above description of the implementation manners, it can be seen that those skilled in the art can clearly understand that all or part of the steps in the methods of the above embodiments can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the essence of the technical solution of this application or the part that contributes to the prior art can be embodied in the form of software products, and the computer software products can be stored in storage media, such as ROM/RAM, disk , optical disc, etc., including several instructions to make a computer device (which can be a personal computer, a server, or a network communication device such as a media gateway, etc.) execute the various embodiments or some parts of the embodiments of the present application. method.
需要说明的是,本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。It should be noted that each embodiment in this specification is described in a progressive manner, each embodiment focuses on the differences from other embodiments, and the same and similar parts of each embodiment can be referred to each other. As for the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and for relevant details, please refer to the description of the method part.
还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should also be noted that in this article, relational terms such as first and second etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that these entities or operations Any such actual relationship or order exists between. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements of or also include elements inherent in such a process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.
对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使用本申请。对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本申请的精神或范围的情况下,在其它实施例中实现。因此,本申请将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。The above description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the application. Therefore, the present application will not be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (15)
- 一种车辆声音播放方法,其特征在于,包括:A method for playing vehicle sound, comprising:获取目标声音;Get target sound;对所述目标声音进行预处理,得到预处理后的目标声音;Preprocessing the target sound to obtain the preprocessed target sound;获取目标车辆的转速,并根据所述目标车辆的转速以及预设的转速和播放频率的对应关系,确定所述预处理后的目标声音以及播放频率;Acquiring the rotational speed of the target vehicle, and determining the preprocessed target sound and the playing frequency according to the rotational speed of the target vehicle and the correspondence between the preset rotational speed and the playing frequency;按照所述播放频率,在所述目标车辆内播放所述预处理后的目标声音。The preprocessed target sound is played in the target vehicle according to the playback frequency.
- 根据权利要求1所述的方法,其特征在于,所述目标声音包括多条预处理后的声音数据,所述多条声音数据是在预设车型车辆运行到多个不同恒定工况时,分别采集的车内声音数据。The method according to claim 1, wherein the target sound comprises a plurality of pieces of preprocessed sound data, and the plurality of pieces of sound data are respectively generated when the vehicle of a preset model type operates under a plurality of different constant working conditions. Acquired in-vehicle sound data.
- 根据权利要求2所述的方法,其特征在于,所述获取目标车辆的转速,并根据所述目标车辆的转速以及预设的转速和播放频率的对应关系,确定所述预处理后的目标声音以及播放频率,包括:The method according to claim 2, characterized in that the acquisition of the rotational speed of the target vehicle, and determining the preprocessed target sound according to the rotational speed of the target vehicle and the corresponding relationship between the preset rotational speed and the playback frequency and play frequency, including:根据所述目标车辆的转速,从所述多条预处理后的声音数据中选择至少一条预处理后的声音数据;selecting at least one piece of preprocessed sound data from the plurality of pieces of preprocessed sound data according to the rotational speed of the target vehicle;根据所述目标车辆的转速以及预设的转速和播放频率的对应关系,确定所述至少一条预处理后的声音数据的播放频率。The playback frequency of the at least one piece of preprocessed sound data is determined according to the rotation speed of the target vehicle and the preset correspondence between the rotation speed and the playback frequency.
- 根据权利要求2所述的方法,其特征在于,所述多个不同恒定工况包括怠速工况。The method of claim 2, wherein the plurality of different constant operating conditions includes an idle operating condition.
- 根据权利要求1所述的方法,其特征在于,所述对所述目标声音进行预处理,得到预处理后的目标声音,包括:The method according to claim 1, wherein the preprocessing the target sound to obtain the preprocessed target sound comprises:将所述目标声音按序划分为第一声音段和第二声音段;所述第一声音段和第二声音段的声音时间长度均大于等于第一预设时长;Dividing the target sound into a first sound segment and a second sound segment in sequence; the sound time lengths of the first sound segment and the second sound segment are both greater than or equal to a first preset duration;将所述第一声音段的前第二预设时长的声音设置为淡入模式,得到更新后的第一声音段;并将所述第二声音段的后第二预设时长的声音设置为淡出模式,得到更新后的第二声音段;The sound of the first second preset duration of the first sound segment is set to fade-in mode to obtain an updated first sound segment; and the sound of the second preset duration of the second sound segment is set to fade out mode to obtain the updated second sound segment;将所述更新后的第一声音段和更新后的第二声音段的排序调换,并在二者之间设置重叠第二预设时长,得到预处理后的目标声音。The order of the updated first sound segment and the updated second sound segment is reversed, and a second preset duration of overlap is set between the two to obtain the preprocessed target sound.
- 根据权利要求5所述的方法,其特征在于,所述第二预设时长为所述第一预设时长的三分之一或二分之一,或者所述第二预设时长不大于所述第一预设时长的二分之一。The method according to claim 5, wherein the second preset duration is one-third or one-half of the first preset duration, or the second preset duration is not greater than the half of the first preset duration.
- 根据权利要求1所述的方法,其特征在于,在所述获取目标车辆的转速后,所述方法还包括:The method according to claim 1, characterized in that, after acquiring the rotational speed of the target vehicle, the method further comprises:判断所述目标车辆的转速是否位于转速重叠区间;judging whether the speed of the target vehicle is in a speed overlapping interval;若是,则同时播放所述转速重叠区间的前一转速区间对应的预处理后的目标声音和后一转速区间对应的预处理后的目标声音。If so, the preprocessed target sound corresponding to the previous speed interval and the preprocessed target sound corresponding to the next speed interval of the overlapping speed interval are simultaneously played.
- 根据权利要求7所述的方法,其特征在于,所述同时播放所述转速重叠区间的前一转速区间对应的预处理后的目标声音和后一转速区间对应的预处理后的目标声音,包括:The method according to claim 7, wherein the simultaneously playing the preprocessed target sound corresponding to the previous speed interval of the speed overlapping interval and the preprocessed target sound corresponding to the next speed interval includes: :所述转速重叠区间的前一转速区间对应的预处理后的目标声音采用淡出模式播放,且 所述转速重叠区间的后一转速区间对应的预处理后的目标声音采用淡入模式播放。The pre-processed target sound corresponding to the previous speed interval of the speed overlapping interval is played in fade-out mode, and the pre-processed target sound corresponding to the next speed interval of the speed overlapping interval is played in fade-in mode.
- 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, further comprising:当所述目标车辆的车速处于预设稳定工况时,在第三预设时长的范围内,将所述目标车辆内播放的所述预处理后的目标声音的音量降低到预设音量阈值。When the vehicle speed of the target vehicle is in a preset stable working condition, within the range of a third preset duration, the volume of the preprocessed target sound played in the target vehicle is reduced to a preset volume threshold.
- 根据权利要求9所述的方法,其特征在于,所述方法还包括:The method according to claim 9, characterized in that the method further comprises:获取所述目标车辆的第一预设数量的油门踏板行程;Obtaining a first preset number of accelerator pedal strokes of the target vehicle;根据所述第一预设数量的油门踏板行程,确定所述目标车辆是否处于加速或减速工况;若是,则在所述目标车辆内播放所述预处理后的目标声音。According to the first preset number of accelerator pedal strokes, it is determined whether the target vehicle is in an acceleration or deceleration state; if yes, the preprocessed target sound is played in the target vehicle.
- 根据权利要求10所述的方法,其特征在于,在所述获取所述目标车辆的第一预设数量的油门踏板行程之后,所述方法包括:The method according to claim 10, characterized in that, after said acquisition of the first preset number of accelerator pedal strokes of said target vehicle, said method comprises:通过将所述目标车辆的第一预设数量的油门踏板行程依次向前移动一位后,得到移位后的第一预设数量的油门踏板行程;By sequentially shifting the first preset number of accelerator pedal strokes of the target vehicle one bit forward, the shifted first preset number of accelerator pedal strokes are obtained;所述根据所述第一预设数量的油门踏板行程,确定所述目标车辆是否处于加速或减速工况;若是,则在所述目标车辆内播放所述预处理后的目标声音,包括:The determining whether the target vehicle is in an acceleration or deceleration condition according to the first preset number of accelerator pedal strokes; if so, playing the preprocessed target sound in the target vehicle includes:计算移位后的第一预设数量的油门踏板行程中最新油门踏板行程与最滞后的油门踏板行程之间的差值;若所述差值小于第一预设阈值,则确定所述目标车辆处于减速工况,或者,若所述差值大于第二预设阈值,则确定所述目标车辆处于加速工况,在所述目标车辆内播放所述预处理后的目标声音。calculating the difference between the newest accelerator pedal stroke and the most delayed accelerator pedal stroke among the shifted first preset number of accelerator pedal strokes; if the difference is smaller than a first preset threshold value, then determining the target vehicle It is in a deceleration state, or if the difference is greater than a second preset threshold, it is determined that the target vehicle is in an acceleration state, and the preprocessed target sound is played in the target vehicle.
- 一种车辆声音播放装置,其特征在于,包括:A vehicle sound player, characterized in that it comprises:获取单元,用于获取目标声音;an acquisition unit, configured to acquire the target sound;预处理单元,用于对所述目标声音进行预处理,得到预处理后的目标声音;a preprocessing unit, configured to preprocess the target sound to obtain the preprocessed target sound;第一确定单元,用于获取目标车辆的转速,并根据所述目标车辆的转速以及预设的转速和播放频率的对应关系,确定所述预处理后的目标声音以及播放频率;The first determining unit is configured to acquire the rotational speed of the target vehicle, and determine the preprocessed target sound and the playback frequency according to the rotational speed of the target vehicle and the preset correspondence between the rotational speed and the playback frequency;播放单元,用于按照所述播放频率,在所述目标车辆内播放所述预处理后的目标声音。A playback unit, configured to play the preprocessed target sound in the target vehicle according to the playback frequency.
- 一种车辆声音播放设备,其特征在于,包括:处理器、存储器、系统总线;A vehicle sound playback device, characterized in that it includes: a processor, a memory, and a system bus;所述处理器以及所述存储器通过所述系统总线相连;The processor and the memory are connected through the system bus;所述存储器用于存储一个或多个程序,所述一个或多个程序包括指令,所述指令当被所述处理器执行时使所述处理器执行权利要求1-11任一项所述的方法。The memory is used to store one or more programs, and the one or more programs include instructions that, when executed by the processor, cause the processor to perform the method described in any one of claims 1-11. method.
- 一种车辆,其特征在于,所述车辆包括权利要求13所述的车辆声音播放设备。A vehicle, characterized in that the vehicle comprises the vehicle sound playback device as claimed in claim 13 .
- 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有指令,当所述指令在终端设备上运行时,使得所述终端设备执行权利要求1-11任一项所述的方法。A computer-readable storage medium, characterized in that instructions are stored in the computer-readable storage medium, and when the instructions are run on a terminal device, the terminal device is made to perform the operation described in any one of claims 1-11. described method.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111679086.1 | 2021-12-31 | ||
CN202111679086.1A CN114339546B (en) | 2021-12-31 | 2021-12-31 | Vehicle sound playing method and device, storage medium and equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2023126011A1 true WO2023126011A1 (en) | 2023-07-06 |
Family
ID=81023663
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2023/070018 WO2023126011A1 (en) | 2021-12-31 | 2023-01-03 | Vehicle sound playback method and apparatus, storage medium and device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN114339546B (en) |
WO (1) | WO2023126011A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118061906A (en) * | 2024-04-17 | 2024-05-24 | 深圳唯创知音电子有限公司 | Audio playing method, device, equipment and medium for automobile |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114339546B (en) * | 2021-12-31 | 2024-07-23 | 科大讯飞(苏州)科技有限公司 | Vehicle sound playing method and device, storage medium and equipment |
CN118163739A (en) * | 2024-04-18 | 2024-06-11 | 重庆赛力斯凤凰智创科技有限公司 | Sound adjusting method and device, electronic equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107097718A (en) * | 2017-06-15 | 2017-08-29 | 北京普瑞众创科技有限公司 | Active speech synthesizing device and the vehicles |
CN109346102A (en) * | 2018-09-18 | 2019-02-15 | 腾讯音乐娱乐科技(深圳)有限公司 | Detection method, device and the storage medium of audio beginning sonic boom |
CN109808593A (en) * | 2019-01-31 | 2019-05-28 | 北京首汽智行科技有限公司 | A kind of automobile engine voice analogy method and system |
CN110718206A (en) * | 2019-09-02 | 2020-01-21 | 中国第一汽车股份有限公司 | Sound target setting method of active sound production system and active sound production system |
US10555076B1 (en) * | 2018-09-21 | 2020-02-04 | GM Global Technology Operations LLC | Pop and burble condition detection and calibration modification |
CN114339546A (en) * | 2021-12-31 | 2022-04-12 | 科大讯飞(苏州)科技有限公司 | Vehicle sound playing method and device, storage medium and equipment |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7302396B1 (en) * | 1999-04-27 | 2007-11-27 | Realnetworks, Inc. | System and method for cross-fading between audio streams |
JP4747830B2 (en) * | 2005-12-22 | 2011-08-17 | 株式会社ケンウッド | Audio apparatus and output switching method |
KR20170003785A (en) * | 2015-06-30 | 2017-01-10 | 엘에스오토모티브 주식회사 | Sound Generating System for Environment Friendly Vehicle and a method for controlling the system |
CN106228993B (en) * | 2016-09-29 | 2020-02-07 | 北京奇艺世纪科技有限公司 | Method and device for eliminating noise and electronic equipment |
KR101856935B1 (en) * | 2016-12-19 | 2018-05-11 | 현대자동차주식회사 | Virtual engine sound output apparatus of vehicle and method thereof |
CN109842840B (en) * | 2017-11-29 | 2020-12-25 | 比亚迪股份有限公司 | Method and system for optimizing sound environment in vehicle and active sound equipment |
EP3553772A1 (en) * | 2018-04-09 | 2019-10-16 | Harman International Industries, Incorporated | Method and apparatus for controlling vehicle sound in a vehicle |
-
2021
- 2021-12-31 CN CN202111679086.1A patent/CN114339546B/en active Active
-
2023
- 2023-01-03 WO PCT/CN2023/070018 patent/WO2023126011A1/en unknown
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107097718A (en) * | 2017-06-15 | 2017-08-29 | 北京普瑞众创科技有限公司 | Active speech synthesizing device and the vehicles |
CN109346102A (en) * | 2018-09-18 | 2019-02-15 | 腾讯音乐娱乐科技(深圳)有限公司 | Detection method, device and the storage medium of audio beginning sonic boom |
US10555076B1 (en) * | 2018-09-21 | 2020-02-04 | GM Global Technology Operations LLC | Pop and burble condition detection and calibration modification |
CN109808593A (en) * | 2019-01-31 | 2019-05-28 | 北京首汽智行科技有限公司 | A kind of automobile engine voice analogy method and system |
CN110718206A (en) * | 2019-09-02 | 2020-01-21 | 中国第一汽车股份有限公司 | Sound target setting method of active sound production system and active sound production system |
CN114339546A (en) * | 2021-12-31 | 2022-04-12 | 科大讯飞(苏州)科技有限公司 | Vehicle sound playing method and device, storage medium and equipment |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118061906A (en) * | 2024-04-17 | 2024-05-24 | 深圳唯创知音电子有限公司 | Audio playing method, device, equipment and medium for automobile |
Also Published As
Publication number | Publication date |
---|---|
CN114339546A (en) | 2022-04-12 |
CN114339546B (en) | 2024-07-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2023126011A1 (en) | Vehicle sound playback method and apparatus, storage medium and device | |
JP4079518B2 (en) | Engine simulated sound generator | |
US6859539B1 (en) | Vehicle sound synthesizer | |
JP5579339B2 (en) | Notification sound control unit of vehicle approach notification device | |
US11628767B2 (en) | Method of playing virtual after-burn sound in electric vehicle | |
JP4094729B2 (en) | Vehicle engine sound generator | |
US11275550B2 (en) | Systems for generating audio signals and associated methods | |
JP2020095260A (en) | System and method for controlling engine tone by artificial intelligence based on sound quality index of vehicle | |
US11772554B2 (en) | Method of providing virtual sound in electric vehicle | |
JP4298620B2 (en) | ENGINE SOUND SYNTHESIS DEVICE, VEHICLE AND GAME MACHINE USING THE SAME, ENGINE SOUND SYNTHESIS METHOD, COMPUTER PROGRAM FOR ENGINE SOUND SYNTHESIS, GAME PROGRAM INCLUDING THE SAME, AND RECORDING MEDIUM CONTAINING COMPUTER PROGRAM FOR ENGINE SOUND SYNTHESIS | |
CN108621931B (en) | Method and system for matching engine sound waves with acceleration of automobile accelerator | |
Fortino et al. | Acoustic vehicle alerting systems (AVAS)-regulations, realization and sound design challenges | |
TWI657437B (en) | Electric vehicle and method for playing, generating associated audio signals | |
EP4380823A1 (en) | Sound experience generator | |
CN109842840A (en) | Optimize method, system and the active sound device of interior acoustic environment | |
JP2022033720A (en) | Improvement of engine sound | |
TWM618141U (en) | Vehicle acoustic alert system | |
WO2022217430A1 (en) | Method and system for simulating sound of vehicle gear-shifting | |
KR101848779B1 (en) | Electric car driving sound control device | |
CN117547821A (en) | Sound effect processing method, device, equipment and medium for virtual vehicle in game | |
EP3821427B1 (en) | Method for generating an audio signal, in particular for active control of the sound of the engine of a land vehicle, and corresponding apparatus | |
US20230322094A1 (en) | Emulation of internal combustion engine for driver of electric vehicle | |
CN114379468B (en) | Vehicle sound self-adaptive adjusting method, device, equipment and storage medium | |
CN110753960A (en) | Sound pressure signal output device, sound pressure signal output method, and sound pressure signal output program | |
WO2023011911A1 (en) | Sound experience generator |
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: 23735116 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |