Sound effect processing method and apparatus, computer device, and computer-readable storage medium
By obtaining the operational parameters of the operation of virtual mobile vehicles in the game, adjust the sound material materials to match the working status of the vehicle, solve the problem that traditional game sound effects cannot match the player's operation, realize a more realistic sound experience, improve the immersion of the game, the immersion of the game Feeling and player experience.
Patent Information
- Application Number
- PCT/CN2024/103183
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-07-21
- Filing Date
- 2024-07-02
- Publication Date
- 2025-01-30
Smart Images

Figure CN2024103183_30012025_PF_FP_ABST
Abstract
Description
Sound effect processing method, device, computer equipment and computer readable storage medium
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This disclosure claims priority to Chinese patent application number 202310906948.2, filed on July 21, 2023, entitled “Sound Effect Processing Method, Apparatus, Computer Device and Computer-Readable Storage Medium”, the entire contents of which are incorporated herein by reference. Technical Field
[0003] The present disclosure relates to the field of communication technology, and in particular to a sound effect processing method, apparatus, computer equipment, and computer-readable storage medium, wherein the storage medium is a computer-readable storage medium and the product is a computer program product. Background Art
[0004] Game sound effects can provide the necessary event feedback for the game and enhance the game immersion. In traditional game sound effect development, sound effects usually use existing sound effect materials in the material library. These sound effects cannot be matched according to the player's operation feedback and do not conform to the real scene. This affects the realism of the game and the player's gaming experience is poor.
[0005] Summary of the Invention
[0006] The embodiments of the present disclosure provide a sound effect processing method, apparatus, computer device, and computer-readable storage medium, which can increase the realism and immersion of games and enhance the gaming experience of players.
[0007] The present disclosure provides a method for processing sound effects, including:
[0008] Acquiring operation-related parameters of a target vehicle component of a virtual mobile vehicle in a game scene, wherein the operation-related parameters affect a working state of the vehicle component;
[0009] Determining component sound effect materials corresponding to the component subcomponents of the target vehicle component and a preset audio playback strategy, wherein the audio playback strategy includes a regulation relationship between the operation-related parameters and the component sound effect materials;
[0010] According to the operation-related parameters and the corresponding audio playback strategy, the component sound effect material corresponding to the component sub-part is adjusted and processed to obtain the component sound effect data of the component sub-part;
[0011] Output the component sound effect data.
[0012] Accordingly, the present disclosure also provides a sound effect processing device, including:
[0013] an acquisition unit configured to acquire operation-related parameters of a target vehicle component of a virtual mobile vehicle in a game scene, wherein the operation-related parameters affect a working state of the vehicle component;
[0014] a determining unit configured to determine component sound effect materials corresponding to the constituent subcomponents of the target vehicle component and a preset audio playback strategy, wherein the audio playback strategy includes a regulating relationship between the operation-related parameters and the component sound effect materials;
[0015] an adjusting unit configured to perform an adjustment process on the component sound effect material corresponding to the component sub-part according to the operation-related parameters and the corresponding audio playback strategy, so as to obtain the component sound effect data of the component sub-part;
[0016] The output unit is configured to output the component sound effect data.
[0017] Correspondingly, an embodiment of the present disclosure also provides a computer device, including a memory and a processor; the memory stores a computer program, and the processor is configured to execute the computer program in the memory to perform any sound effect processing method provided by the embodiment of the present disclosure.
[0018] Accordingly, an embodiment of the present disclosure further provides a computer-readable storage medium, which is configured to execute and store a computer program, and the computer program is loaded by a processor to execute any one of the sound effect processing methods provided in the embodiments of the present disclosure.
[0019] The disclosed embodiment obtains the operation-related parameters of the target vehicle component of the virtual mobile vehicle in the game scene, where the operation-related parameters affect the working state of the vehicle component; determines the component sound effect materials corresponding to the constituent sub-components of the target vehicle component and a preset audio playback strategy, where the audio playback strategy includes the adjustment relationship between the operation-related parameters and the component sound effect materials; adjusts and processes the component sound effect materials corresponding to the constituent sub-components according to the operation-related parameters and the corresponding audio playback strategy to obtain component sound effect data of the constituent sub-parts; and outputs the component sound effect data.
[0020] The disclosed embodiment adjusts and processes the component sound effect materials of the sub-components of the target vehicle parts according to the operation-related parameters of the virtual mobile vehicle during operation, so that the sound effect data corresponding to the sub-components are similar to the sounds emitted by the sub-components in the real scene. The working status of the virtual mobile vehicle can be fed back in real time through the sound effect data, which can increase the realism and immersion of the game and enhance the player's gaming experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present disclosure. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0022] FIG1 is a flow chart of a sound effect processing method provided by one embodiment of the present disclosure;
[0023] FIG2 is a spectrum diagram of a sound effect material of a pressure relief valve of a turbine engine provided by one embodiment of the present disclosure;
[0024] FIG3 is a schematic diagram of processing turbine engine impeller wind sound effect materials according to one embodiment of the present disclosure;
[0025] FIG4 is a schematic diagram of processing a bearing sound effect material of a turbine engine according to one embodiment of the present disclosure;
[0026] FIG5 is a schematic diagram of a volume adjustment strategy for a pressure relief valve sound effect material provided by one embodiment of the present disclosure;
[0027] FIG6 is a schematic diagram of a volume adjustment strategy for an impeller sound effect material provided by one embodiment of the present disclosure;
[0028] FIG7 is a schematic diagram of a volume adjustment strategy for a bearing sound effect material provided by one embodiment of the present disclosure;
[0029] FIG8 is a schematic diagram of another volume adjustment strategy for a bearing sound effect material provided by one embodiment of the present disclosure;
[0030] FIG9 is a schematic diagram of a frequency adjustment strategy for a bearing sound effect material provided by one embodiment of the present disclosure;
[0031] FIG10 is a schematic diagram of a sound effect processing device provided by one embodiment of the present disclosure;
[0032] FIG11 is a schematic diagram of the structure of a computer device provided in one embodiment of the present disclosure. DETAILED DESCRIPTION
[0033] The following will be combined with the accompanying drawings in the embodiments of the present disclosure to clearly and completely describe the technical solutions in the embodiments of the present disclosure. Obviously, the embodiments described are only part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without making any creative efforts shall fall within the scope of protection of the present disclosure.
[0034] The present disclosure provides a method, apparatus, computer device, and computer-readable storage medium for processing sound effects. The sound effect processing apparatus can be integrated into a computer device, which can be a server or a terminal.
[0035] The terminal may include a mobile phone, a wearable smart device, a tablet computer, a laptop computer, a personal computer (PC), and a vehicle-mounted computer.
[0036] Among them, the server can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, as well as big data and artificial intelligence platforms.
[0037] It should be noted that the order of description of the following embodiments is not intended to limit the preferred order of the embodiments.
[0038] This embodiment will be described from the perspective of a sound effect processing device. The sound effect processing device can be integrated into a computer device, which can be a server or a terminal.
[0039] An embodiment of the present disclosure provides a sound effect processing method, as shown in FIG1 , and the specific process of the sound effect processing method can be as follows:
[0040] 101. Obtain operation-related parameters of a target vehicle component of a virtual mobile vehicle in a game scene, where the operation-related parameters affect a working state of the vehicle component.
[0041] The virtual mobile vehicle may be a vehicle including a target vehicle component, and the target vehicle component may be a component constituting the virtual mobile vehicle.
[0042] Among them, the operation-related parameters may include parameters that affect the working state of the target vehicle components, for example, they may include the throttle depth of the virtual mobile vehicle, the moving speed, the turbine speed of the turbine engine (which can be considered as the speed of the impeller of the turbine engine), the bearing speed, the turbine pressure, the wheel speed, the tire material and the wheel pressure, etc.
[0043] In one embodiment, the target vehicle component may be a load-bearing component of a virtual mobile vehicle, namely a virtual wheel. The virtual mobile vehicle may be a vehicle equipped with virtual wheels, such as a virtual mobile vehicle, such as a virtual car, a virtual motorcycle, and a virtual racing car. The virtual wheel may include components such as tires and rotating shafts.
[0044] In another embodiment, the target vehicle component may also be an engine, such as a turbine engine or a turbocharged engine, and the virtual mobile vehicle may be a vehicle including an engine, such as a virtual motor vehicle, such as a virtual car, a virtual motorcycle, a virtual racing car, and a virtual ship, etc. The turbine engine may include components such as an impeller, a bearing, and a pressure relief valve.
[0045] For a turbine engine, the throttle depth, turbine pressure, and turbine speed will all affect the working state of the turbine engine. For example, as the throttle depth deepens, the turbine engine takes in more air, the turbine pressure increases, and the turbine speed increases. Correspondingly, the turbine speed increases, and the turbine pressure also increases. There is an interaction between the throttle depth, turbine pressure, and turbine speed, which affects the working state of the turbine engine and thus controls the operation of the virtual mobile vehicle.
[0046] That is, the target vehicle component includes a turbine engine, the operation-related parameters include at least one of the throttle depth of the virtual mobile vehicle, the turbine speed and turbine pressure of the turbine engine, and the constituent subcomponents of the target vehicle component include at least one of a pressure relief valve, an impeller and a bearing.
[0047] For example, a game program is installed in the terminal device, and the terminal device displays a user graphical interface and interacts with the game player by running the game program. In the game scene provided by the terminal device, the virtual mobile vehicle can be regarded as a prop in the game, and the player can use the virtual mobile vehicle to move the virtual character or virtual materials in the game. For example, the player can speed up the movement speed of the virtual character through the virtual car, virtual motorcycle, etc. in the game, or if the game is a racing game, the player can race through the car in the space game scene.
[0048] In the game scene, simulating the driving operation of a mobile vehicle in a real scene can give users a better gaming experience. In the real scene, in addition to producing sounds related to the operation of the mobile vehicle during driving, in the game scene, the sound effects can be fed back according to the operation-related parameters of the virtual mobile vehicle to enhance the player's gaming experience.
[0049] In the disclosed embodiment, the sound effects generated by the target vehicle components are the superposition of the sound effects of their constituent sub-components. According to the operation-related parameters of the virtual mobile vehicle, the sound effects of the constituent sub-components of the target vehicle components are processed separately and played in a superimposed manner so that during the operation of the virtual mobile vehicle, the sound effects corresponding to the operation of the target vehicle components are more realistic.
[0050] 102. Determine the component sound effect material and the preset audio playback strategy corresponding to the constituent sub-components of the target vehicle component, wherein the audio playback strategy includes the adjustment relationship between the operation-related parameters and the component sound effect material.
[0051] Among them, the component sound effect material is audio data. Based on the component sound effect material, the sound effect generated by the component sub-component when the virtual mobile vehicle runs based on the running associated parameters can be output, so that the player can perceive the changes in the current virtual mobile vehicle according to the sound effect, thereby enhancing the interaction with the player.
[0052] The audio playback strategy is configured to control the playback effect of the component sound effect material according to the operation-related parameters. For example, the audio playback strategy may include adjusting the volume, frequency, etc. of the component sound effect material.
[0053] Different target vehicle components have different components. For example, a virtual wheel may include components such as a tire and a rotating shaft, and a turbine engine may include components such as an impeller, a bearing, and a pressure relief valve.
[0054] The sound effects produced by each component during the operation of the virtual vehicle component are different, and are affected differently by the operation-related parameters. Therefore, the sound effect materials and audio playback strategies corresponding to each component can be different.
[0055] The component sound effect materials and audio playback strategies corresponding to different component sub-components of the target vehicle component can be determined based on the preset configuration information.
[0056] The audio playback strategy can be implemented through code written by the developer. Optionally, the component sound effects and playback strategies corresponding to the different sub-components of the target vehicle component can be configured through an audio engine. The audio engine can be configured to execute rules that can trigger component sound effects and strategies that adjust and process component sound effects based on real-time runtime parameters. For example, the audio engine can be Wwise.
[0057] That is, in one embodiment, before the step of "determining the component sound effect materials and the preset audio playback strategy corresponding to the component sub-components of the target vehicle component", the sound effect processing method provided by the embodiment of the present disclosure further includes:
[0058] Obtain component sound effect materials of target vehicle components corresponding to different types of virtual mobile vehicles;
[0059] Based on the component sound effect materials, constructing a vehicle component sound effect framework for each type of virtual mobile vehicle through an audio engine, wherein the vehicle component sound effect framework encapsulates the component sound effect materials of the subcomponents of the target vehicle component;
[0060] An audio trigger mechanism and an audio adjustment method are set for the component subcomponents of the target vehicle component within the vehicle component sound effect framework to obtain an audio playback strategy corresponding to each component subcomponent.
[0061] Among them, different types of virtual mobile vehicles may refer to virtual vehicles of different models, or may refer to vehicles with different target vehicle components. Due to the different types, the corresponding component sound effect materials are different, and the sound effects of different types of virtual mobile vehicles can be restored in the game scene to highlight the sound effect characteristics of different virtual mobile vehicles.
[0062] For example, specifically, component sound effect materials corresponding to target vehicle components corresponding to different types of virtual mobile vehicles may be obtained, which may be uploaded to the audio engine by a developer.
[0063] The target vehicle component is a turbine engine as an example for description.
[0064] 1. Sound Effect Material Production:
[0065] Audio obtained through recording, manual production or AI production can be produced to obtain component sound effect materials corresponding to the impeller of the turbine engine, component sound effect materials corresponding to the bearing, and component sound effect materials corresponding to the pressure relief valve.
[0066] In real-world scenarios, the sound of a pressure relief valve is produced during vehicle driving. The sound of this pressure relief valve varies with the turbine pressure, sometimes being short and sometimes lasting longer, and with varying pitches.
[0067] Therefore, for the pressure relief valve subcomponent, the audio can be categorized based on its audio length, volume, and other characteristics, resulting in high-pressure, medium-pressure, and low-pressure sound effects. In one embodiment, the spectrogram of the pressure relief valve component sound effects can be shown in Figure 2. High-pressure sound effects have a higher volume and are embellished with vibrato-like sonic details. Medium-pressure sound effects have a lower volume and slightly fewer sonic details than high-pressure sound effects. Low-pressure sound effects have the lowest volume, are short, and lack almost no detail.
[0068] The sound effect for a turbine engine's impeller is the "hissing" sound it produces when the turbine is running, similar to the gentle noise produced by gas flow. The volume and pitch of the impeller sound effect changes with the turbine's speed. This allows you to configure the playback strategy for the impeller's component sound effect assets in the audio engine to reproduce realistic impeller sound effects in your game scenes.
[0069] Since the engine of a mobile vehicle is in operation when its impeller is working, the recorded impeller audio is usually accompanied by the roar of the mobile vehicle's engine. The impeller audio can be post-processed through an equalizer. Since the sound of the impeller is a high-frequency sound, the equalizer can be used to filter out the sound frequency that matches the impeller. For example, sounds below 2000Hz and above 20000Hz in the impeller audio can be filtered out.
[0070] The spectrum diagram of the recorded impeller audio can be shown in FIG3 , and the processing of the equalizer can be shown in FIG3 .
[0071] Similarly, the recorded bearing audio also includes the roar of the mobile vehicle engine. The sound of the turbine bearing is higher in frequency than the sound of the impeller, and the high-frequency sound is also sharper. The equalizer can be used to filter out the frequencies that match the bearing sound effects. For example, the sounds below 2000Hz and above 20000Hz in the impeller audio can be filtered out, and the volume of the sounds at 6000Hz and adjacent frequency domains can be increased to highlight the sharpness of the turbine bearing sound effects.
[0072] The spectrum diagram of the recorded bearing audio can be shown in FIG4 , and the processing of the equalizer can be shown in FIG4 .
[0073] It is understandable that for other target vehicle components, the audio of the component subcomponents can be processed according to the sound characteristics of the subcomponents emitted during the operation of the mobile vehicle to obtain corresponding component sound effect materials.
[0074] 2. Audio engine implementation:
[0075] First, you need to build a turbine sound effect framework. Specifically, you can create an Actor-Mixer for the turbine engine in the audio engine, name it "turbo", and create switch containers (Switch Containers) corresponding to the pressure relief valve, impeller, and bearing in its directory. For example, mec_turbo_dump is the Switch Container corresponding to the pressure relief valve, mec_turbo_hiss is the Switch Container corresponding to the impeller, and mec_turbo_spindle is the Switch Container corresponding to the bearing.
[0076] Add the impeller's component sound effect material to the impeller's corresponding Switch Container, and add the bearing's component sound effect material to the bearing's Switch Container to encapsulate the impeller and bearing's component sound effect materials in the audio engine.
[0077] In one embodiment, the pressure relief valve should have a component sound effect material. The component sound effect material corresponding to the pressure relief valve can be added to the Switch Container corresponding to the pressure relief valve to encapsulate the component sound effect material of the pressure relief valve in the audio engine.
[0078] In another embodiment, the pressure relief valve corresponds to multiple component sound effect materials. The component sound effect materials corresponding to the pressure relief valve can be encapsulated specifically to create a Switch Container for the pressure relief valve sound effects of different virtual mobile vehicles under the mec_turbo_dump directory, and two sequence containers (Sequence Container) are created under the Switch Container directory of the pressure relief valve sound effect of the virtual mobile vehicle, one of which is related to the high-pressure sound effect material in the component sound effect material of the pressure relief valve, and the other is related to the low-pressure sound effect material, which can be named dump_high and dump_low respectively.
[0079] In the dump_low directory, create a random container (RandomContainer) and add low-pressure sound effects.
[0080] In one embodiment, a random container may be created in the dump_high directory, and high-voltage sound effect material may be added.
[0081] In another embodiment, a variety of component sound effect materials can be added to the dump_high directory to create a sense of frustration when the pressure relief valve releases pressure. Specifically, two random containers (RandomContainer) can be established in the dump_high directory. The high-pressure sound effect material and the medium-pressure sound effect material of the pressure relief valve are added to the first RandomContainer, and the low-pressure sound effect material is added to the second RandomContainer to encapsulate the component sound effect material of the pressure relief valve in the audio engine. Stringing together the high-pressure sound effect material, the medium-pressure sound effect material, and the low-pressure sound effect material in this way can extend the playback time of the sound effect, and can create a sense of frustration for the turbine pressure relief valve sound effect, enriching the details of the pressure relief valve sound effect.
[0082] Create a switch group named "turbo_rpm_normalized" to differentiate the turbine speed intensity of the turbine engine. Create two switches under this switch group and name them high and low. Add a "dump_high" Sequence Container to the "high" switch and associate it with the "dump_high" Sequence Container. Add a "dump_low" Sequence Container to the "low" switch.
[0083] Assume that the turbine speed of a turbine engine is set to a value between 0 and 1.1 in the game. You can set it so that when the turbine speed is less than 0.35, the impeller speed is insufficient and the pressure relief valve sound effect is not triggered; when 0.35 ≤ turbine speed < 0.7, the low-pressure sound effect material in "dump_low" is played; when 0.7 ≤ turbine speed ≤ 1.1, the component sound effect material in "dump_high" is played. "dump_high" contains two RandomContainers. The corresponding audio playback strategy randomly plays one sound effect material from the high-pressure sound effect material and the medium-pressure sound effect material of the pressure relief valve in the first RandomContainer. After the sound effect material in the first RandomContainer is played, the medium-low pressure sound effect material in the second RandomContainer is randomly played.
[0084] Different switches can be created for the impeller sound effects of different types of virtual mobile vehicles.
[0085] In order to match the turbo sound effects with the triggering mechanism in the game, it is necessary to set up real-time parameter controls (RTPCs) for these sounds.
[0086] For example, for a pressure relief valve, you can create a new RTPC named "turbo_pressure" to adjust the volume of the pressure relief valve component sound material based on the turbo pressure parameter of the virtual mobile vehicle in the game scene.
[0087] For example, you can set the turbo_pressure value range to 0 to 2, which corresponds to the turbo pressure range of the vehicle in the game.
[0088] The "turbo_pressure" RTPC should be configured to execute turbo_dump in the same directory as the one used to execute turbo_dump, so that the pressure relief valve component sound assets can be adjusted based on the runtime-dependent parameters in real time.
[0089] When the turbine pressure is less than the threshold of the pressure relief valve, the turbine can store the pressure, and the volume of the pressure relief valve sound will change with the size of the turbine pressure (turbo_pressure). When the turbine pressure reaches the threshold, the pressure relief valve opens to release the pressure. The pressure in the pressure relief valve will no longer increase, and the sound of the pressure relief valve will not change due to the change in pressure. Therefore, the volume of the component sound effect material can be adjusted according to this feature. For example, as shown in Figure 5, in the "turbo_pressure" RTPC, when 0≤turbo_pressure≤1.1, the volume of the component sound effect material of the pressure relief valve increases linearly with the change of turbine pressure. When 1.1≤turbo_pressure≤2, the volume of the component sound effect material of the pressure relief valve remains unchanged. The vertical axis in Figure 5 can be the amplitude of the sound effect change. The oblique line part can be considered as reducing the volume of the component sound effect material, and the horizontal line part can be considered as keeping the volume of the component sound effect material unchanged.
[0090] For the impeller, the sound of the impeller will be affected by the turbine pressure. Since the sound effect of the impeller is the airflow noise generated by the rotation of the turbine blades, it feels rough to listen to. When the initial blade rotation speed is low, the sound generated is small. Therefore, the audio playback strategy can be set according to the relationship between the impeller sound effect and the turbine pressure. For example, as shown in Figure 6, when 0≤turbo_pressure≤1.1, the volume of the component sound effect material corresponding to the impeller changes with the change of the turbine pressure. You can choose to use a smooth sine curve to set the volume of the component sound effect material to change with the turbine pressure; when 1.1≤turbo_pressure≤2, the turbine pressure has exceeded the threshold of the turbine pressure relief valve, the pressure relief valve no longer stores excess turbine pressure, and the volume of the component sound effect material of the impeller no longer changes.
[0091] Optionally, you can also set the frequency of the component sound material corresponding to the impeller to change as the throttle depth changes.
[0092] The impeller component sound effect is a looping segment. Simply playing a loop would be too monotonous. Changing the impeller component sound effect in response to physical manipulation provides players with better audio feedback, allowing them to better understand the changes in vehicle physics and creating a more interactive experience.
[0093] For bearings, the sound emitted by the bearings will be affected by the turbine pressure (turbo_pressure). The sound emitted by the bearings is higher-frequency. When the turbine starts working, the bearings also emit sound, and the sound emitted by the bearings increases with the increase of the turbine pressure. The turbine pressure has exceeded the threshold of the turbine pressure relief valve, and the pressure relief valve will no longer store excess turbine pressure, and the volume of the sound emitted by the bearings will not change accordingly. For example, as shown in Figure 7, when 0≤turbo_pressure≤1.1, the volume of the component sound effect material corresponding to the bearing changes with the change of turbine pressure; when 1.1≤turbo_pressure≤2, the turbine pressure has exceeded the threshold of the turbine pressure relief valve, and the pressure relief valve will no longer store excess turbine pressure, and the volume of the component sound effect material corresponding to the bearing remains fixed.
[0094] The sound produced by the bearing is also affected by the throttle depth. You can set the volume of the component sound effect material corresponding to the bearing to increase as the throttle depth increases, for example, as shown in Figure 8.
[0095] Optionally, the frequency of the component sound material corresponding to the bearing can be set to change with the rotational speed of the bearing. For example, as shown in Figure 9, the value of the vertical axis in Figure 9 can be considered as the amplitude of the frequency change. The volume, frequency and other parameters of the component sound material corresponding to the bearing change with the change of operating parameters. This can provide players with better sound feedback, allow players to better understand the changes in vehicle physics, and be more interactive.
[0096] The component sound effect materials and playback strategies corresponding to the different sub-components of the target vehicle component are set through the audio engine.
[0097] 103. According to the operation-related parameters and the corresponding audio playback strategy, the component sound effect material corresponding to the component sub-part is adjusted and processed to obtain the component sound effect data of the component sub-part;
[0098] For example, the component sound effect material may be adjusted and processed according to the component sound effect material and audio playback strategy corresponding to the constituent sub-components to obtain component sound effect data that matches the component sub-parts with the operation-related parameters.
[0099] For example, the operation-related parameters include throttle depth, and the audio playback strategy includes the adjustment relationship between the throttle depth and the volume of the component sound effect material corresponding to the sub-components of the target vehicle component. For example, the volume of the component sound effect material may increase linearly with the increase of the throttle depth. Then, the volume of the component sound effect material can be dynamically adjusted according to the throttle depth during the operation of the virtual mobile vehicle.
[0100] The adjustment processing of the component sound effect materials corresponding to the constituent sub-components depends on the audio playback strategy.
[0101] Optionally, in order to increase the authenticity of the sound effect, the sound effect material that meets the current operation-related parameters can be played through a sound effect set. For example, different operation-related parameters correspond to different component sound effect material sets, and the target component sound effect material currently being played is selected from the corresponding component sound effect material set. Alternatively, a subset can be set in the sound effect material set, and then the target material sound effect set is selected from the subset. That is, in one embodiment, the component sound effect material corresponding to the component sub-component belongs to the component sound effect material set. The step of "adjusting and processing the component sound effect material corresponding to the component sub-component according to the operation-related parameters and the corresponding audio playback strategy to obtain the component sound effect data of the component sub-component" can specifically include:
[0102] Determining, based on the audio playback strategy of the component subcomponents, a set of component sound effect materials that matches the operation-related parameters;
[0103] If the component sound effect material set includes at least two subsets set with a play order, then selecting a target component sound effect material from the target subset according to the play order, wherein different subsets include different types of component sound effect materials;
[0104] Based on the audio playback strategy of the component sub-part and the operation-related parameters, the target component sound effect material is adjusted and processed to obtain the component sound effect data of the component sub-part.
[0105] For example, the audio playback strategy of one or more sub-components in the target vehicle component is configured with a component sound effect material set corresponding to different operation-related parameters. After determining the sound effect material set that matches the current operation-related parameters of the virtual mobile vehicle, if the component sound effect material set does not contain a sub-set, the target component sound effect material is directly determined from the low-pressure sound effect material set.
[0106] If a component sound effect material set contains at least two sub-sets, and the sub-sets are configured with a playback order, assuming that there are sub-sets A, B and C in the component sound effect material set, and the playback order is ABC, then when all the component sound effect materials in sub-set A are played, the component sound effect materials in sub-set B are played, and so on.
[0107] The types of component sound effect materials in different subsets are different, and they can present the sound effects of the constituent sub-components with different effects. For example, for the pressure relief valve of a turbine engine, some subsets are component sound effect materials collected when the turbine pressure in the pressure relief valve is large, and some subsets are component sound effect materials collected when the turbine pressure is small. Changes in the pressure of the pressure relief valve can be presented in different subsets.
[0108] The target component sound effect material may be selected from the sub-collection by random selection or by selection according to the arrangement order of the component sound effect materials in the sub-collection.
[0109] For example, if the target vehicle component is a turbine engine, and one of the subcomponents of the turbine engine is a pressure relief valve, during operation of the pressure relief valve, the faster the turbine speed, the more gas enters the turbine engine at the same time, and the faster the turbine pressure increases. The turbine pressure needs to be relieved through the pressure relief valve. Therefore, the sound of the turbine engine's pressure relief valve is related to the turbine speed and turbine pressure. The audio playback strategy may include a strategy for selecting component sound effect materials based on the turbine speed, and a strategy for adjusting the volume of the component sound effect materials based on the turbine pressure. That is, in one embodiment, the pressure relief valve corresponds to multiple component sound effect materials. The step of "adjusting and processing the component sound effect materials corresponding to the subcomponent according to the operation-related parameters and the corresponding audio playback strategy to obtain the component sound effect data of the subcomponent" may specifically include:
[0110] selecting, according to the audio playback strategy corresponding to the pressure relief valve, a target component sound effect material that matches the turbine speed from a plurality of component sound effect materials corresponding to the pressure relief valve;
[0111] According to the audio playback strategy of the turbine pressure and the pressure relief valve, the volume of the target component sound effect material is adjusted to obtain component sound effect data corresponding to the pressure relief valve.
[0112] Among them, the audio playback strategy corresponding to the pressure relief valve is a strategy for adjusting and processing the component sound effect materials of the pressure relief valve. If a component sub-component corresponds to multiple component sound effect materials, then the audio playback strategy may include a strategy for selecting the component sound effect material to be played and adjusting the selected component sound effect material.
[0113] For example, the audio playback strategy configures the correspondence between the turbine speed and the component sound effect material. Based on the audio playback strategy and the turbine speed of the virtual mobile vehicle, the corresponding target component sound effect material is determined.
[0114] The audio playback strategy also includes the correspondence between the volume of the component sound effect materials of the turbine pressure and the pressure relief valve, so the volume of the target component sound effect material can be adjusted according to the audio playback strategy to obtain component sound effect data.
[0115] It is understandable that if the turbine speed changes, the corresponding target component sound effect material will change, and the material to be played needs to be switched; otherwise, the current component sound effect material will continue to be played.
[0116] Optionally, in order to increase the authenticity of the sound effects, sound effect materials that match the current turbine speed can be played through a sound effect collection. For example, different turbine speeds correspond to different component sound effect material collections, and the target component sound effect material currently being played is selected from the component sound effect material collection. Alternatively, a subcollection can be set in the sound effect material collection, and then the target material sound effect collection can be selected from the subcollection.
[0117] That is, in one embodiment, the component sound effect materials corresponding to the pressure relief valve can be divided into three types: high-pressure sound effect materials, medium-pressure sound effect materials, and low-pressure sound effect materials. The component sound effect material set can include a high-pressure sound effect material set and a low-pressure sound effect material set. The audio playback strategy corresponding to the pressure relief valve is configured with sound effect material sets corresponding to different turbine speed ranges. For example, assuming that the turbine speed in the game is defined as 0-1.1, the audio playback strategy can be that when the turbine speed is <0.35, the pressure relief valve sound effect is not triggered; when 0.35≤turbine speed<0.7, the component sound effect materials in the low-pressure sound effect material set are triggered to play; when 0.7≤turbine speed≤1.1, the component sound effect materials in the high-pressure sound effect material set are triggered to play.
[0118] A component sound effect material can be selected from the sound effect material collection corresponding to the turbine speed for playback. When the component sound effect material is finished playing, another component sound effect material can be selected from the sound effect material collection for playback. The selection method can be random selection or selection according to the arrangement order of the component sound effect materials in the sound effect material collection.
[0119] Optionally, the high-pressure sound effect material includes two subsets, a first subset and a second subset. The first subset includes high-pressure sound effect material and medium-pressure sound effect material, and the second subset includes low-pressure sound effect material to present the jerky sound effect of the pressure relief valve. The low-pressure sound effect material set includes low-pressure sound effect material. That is, in one embodiment, the multiple component sound effect materials are materials from the high-pressure sound effect material set and the low-pressure material set. The step of "the audio playback strategy corresponding to the pressure relief valve, selecting a target component sound effect material that matches the turbine speed from the multiple component sound effect materials corresponding to the pressure relief valve" includes:
[0120] The step of “if the component sound effect material set includes at least two subsets set with a play order, selecting a target component sound effect material from a target subset according to the play order” may specifically include:
[0121] If the component sound effect material set is a low-pressure sound effect material set, determining a target component sound effect material from the low-pressure sound effect material set;
[0122] If the component sound effect material set is a high-voltage sound effect material set, and all component sound effect materials in the first subset of the high-voltage sound effect material set have been played, selecting a target component sound effect material from the second subset of the high-voltage sound effect material set;
[0123] If the first subset of the high-voltage sound effect material set includes unplayed component sound effect materials, target component sound effect materials are selected from the first subset.
[0124] For example, if the component sound effect material set that matches the turbine speed is a low-pressure sound effect material set, the target component sound effect material is directly determined from the low-pressure sound effect material set; if the component sound effect material set that matches the turbine speed is a high-pressure sound effect material set, first determine whether all the sound effect materials in the first subset have been played. If so, select the target component sound effect material from the second subset; if not, select the target component sound effect material from the component sound effect material in the first subset that has not been played.
[0125] It is understandable that if all the component sound effect materials in the second subset of the high-voltage sound effect material set have been played, the playback record can be cleared and the component sound effect materials in the high-voltage sound effect material set can be replayed in the playback order.
[0126] For an impeller of a turbine engine, its corresponding audio playback strategy may include the component sound effect material corresponding to the impeller and the adjustment relationship of the component sound effect material according to the turbine pressure in the operation-related parameter. That is, in one embodiment, the step of "adjusting the component sound effect material corresponding to the sub-component according to the operation-related parameter and the corresponding audio playback strategy to obtain the component sound effect data of the sub-component" may specifically include:
[0127] adjusting the volume of the component sound effect material corresponding to the impeller according to the turbine pressure and the adjustment relationship between the turbine pressure and the volume indicated in the audio playback strategy corresponding to the impeller;
[0128] According to the adjustment relationship between the throttle depth and the audio indicated in the audio playback strategy corresponding to the impeller and the throttle depth of the virtual mobile vehicle, the frequency of the component sound effect material corresponding to the impeller is adjusted to obtain the component sound effect data of the impeller.
[0129] For example, the audio playback strategy corresponding to the impeller includes a regulation relationship between turbine pressure and volume, which can be a linear relationship or a regulation curve. According to the regulation relationship, the volume of the component sound effect material can be determined under the current turbine pressure.
[0130] Then, according to the adjustment relationship between the throttle depth and the audio indicated in the audio playback strategy corresponding to the impeller and the throttle depth of the virtual mobile vehicle, the frequency of the component sound effect material corresponding to the impeller is adjusted to obtain the component sound effect data of the impeller.
[0131] For example, you can change the frequency of an audio track by adjusting the pitch parameter. The pitch parameter is typically expressed as a semitone, which indirectly affects the frequency of the audio track. Increasing the pitch parameter raises the pitch of the audio track, which in turn raises the frequency of the audio track. Decreasing the pitch parameter lowers the pitch of the audio track, which in turn lowers the frequency of the audio track.
[0132] For a turbine engine bearing, its component sound effect material can be adjusted according to the turbine pressure and the bearing speed. That is, in one embodiment, the step of "adjusting the component sound effect material corresponding to the component sub-component according to the operation-related parameters and the corresponding audio playback strategy to obtain the component sound effect data of the component sub-component" may specifically include:
[0133] adjusting the volume of the component sound effect material corresponding to the bearing according to the adjustment relationship between the turbine pressure and the volume indicated in the audio playback strategy corresponding to the bearing and the turbine pressure;
[0134] According to the adjustment relationship between the bearing speed and audio indicated in the audio playback strategy corresponding to the bearing and the bearing speed of the turbine engine, the audio of the component sound effect material corresponding to the bearing is adjusted to obtain the component sound effect data of the bearing.
[0135] For example, the adjustment relationship between the turbine pressure and volume indicated in the audio playback strategy corresponding to the bearing can be a curve as shown in Figure 7. The corresponding volume can be determined based on the turbine pressure of the virtual mobile vehicle, and then the volume of the component sound effect material corresponding to the bearing can be adjusted.
[0136] According to the adjustment relationship between the bearing speed and the audio indicated in the audio playback strategy corresponding to the bearing and the bearing speed of the turbine engine, the audio of the component sound effect material corresponding to the bearing is adjusted to obtain the component sound effect data of the bearing.
[0137] 104. Output the component sound effect data.
[0138] The terminal device outputs the processed component sound effect data so that the output sound effect conforms to the sound that the target vehicle component in the virtual mobile vehicle working with the operation-related parameters will emit.
[0139] From the above, it can be seen that the embodiment of the present disclosure obtains the operation-related parameters of the target vehicle component of the virtual mobile vehicle in the game scene, and the operation-related parameters affect the working state of the vehicle component; determines the component sound effect materials corresponding to the constituent sub-components of the target vehicle component and the preset audio playback strategy, and the audio playback strategy includes the adjustment relationship between the operation-related parameters and the component sound effect materials; according to the operation-related parameters and the corresponding audio playback strategy, the component sound effect materials corresponding to the constituent sub-components are adjusted and processed to obtain the component sound effect data of the constituent sub-parts; and outputs the component sound effect data.
[0140] The disclosed embodiment adjusts and processes the component sound effect materials of the sub-components of the target vehicle parts according to the operation-related parameters of the virtual mobile vehicle during operation, so that the sound effect data corresponding to the sub-components are similar to the sounds emitted by the sub-components in the real scene. The working status of the virtual mobile vehicle can be fed back in real time through the sound effect data, which can increase the realism and immersion of the game and the gaming experience of the substitute player.
[0141] In order to facilitate better implementation of the sound effect processing method provided in the embodiment of the present disclosure, a sound effect processing device is also provided in one embodiment. The meanings of the terms are the same as those in the above-mentioned sound effect processing method, and the specific implementation details can be referred to the description in the method embodiment.
[0142] The sound effect processing device can be integrated into a computer device. As shown in FIG10 , the sound effect processing device may include: an acquisition unit 301, a determination unit 302, an adjustment unit 303, and an output unit 304, as follows:
[0143] (1) Acquisition unit 301: configured to execute acquisition of operation-related parameters of a target vehicle component of a virtual mobile vehicle in a game scene, where the operation-related parameters affect the working state of the vehicle component.
[0144] In one embodiment, the target vehicle component includes a turbine engine, the operation-related parameters include at least one of a throttle depth of the virtual mobile vehicle, a turbine speed, and a turbine pressure of the turbine engine, and the component subcomponents of the target vehicle component include at least one of a pressure relief valve, an impeller, and a bearing.
[0145] (2) Determination unit 302: configured to execute determination of component sound effect materials corresponding to the constituent sub-components of the target vehicle component and a preset audio playback strategy, wherein the audio playback strategy includes an adjustment relationship between the operating associated parameters and the component sound effect materials.
[0146] In one embodiment, before determining the component sound effect materials and the preset audio playback strategy corresponding to the component sub-components of the target vehicle component, the sound effect processing device may further include:
[0147] A material acquisition unit is configured to acquire component sound effect materials of target vehicle components corresponding to different types of virtual mobile vehicles;
[0148] A construction unit is configured to execute, based on the component sound effect material, a vehicle component sound effect framework for each type of virtual mobile vehicle through an audio engine, wherein the vehicle component sound effect framework encapsulates the component sound effect material of the subcomponents of the target vehicle component;
[0149] Strategy setting unit: configured to execute the audio trigger mechanism and audio adjustment method for the component sub-components of the target vehicle component within the vehicle component sound effect framework, and obtain the audio playback strategy corresponding to each component sub-component.
[0150] (3) Adjustment unit 303: configured to perform adjustment processing on the component sound effect materials corresponding to the constituent sub-parts according to the operation association parameters and the corresponding audio playback strategy, and obtain the component sound effect data of the constituent sub-parts.
[0151] In one embodiment, the component sound effect materials corresponding to the constituent subcomponents belong to a component sound effect material set, and the adjustment unit 303 may include:
[0152] A set determination subunit is configured to execute an audio playback strategy according to the constituent subcomponents and determine a set of component sound effect materials that matches the operation-related parameters;
[0153] A first material selection subunit is configured to select a target component sound effect material from a target sub-set according to the play order if the component sound effect material set includes at least two sub-sets with play orders set, wherein different sub-sets include different types of component sound effect materials;
[0154] The first adjustment processing sub-unit is configured to execute the audio playback strategy and operation-related parameters based on the constituent sub-components, adjust the target component sound effect material, and obtain the component sound effect data of the constituent sub-parts.
[0155] In one embodiment, the pressure relief valve corresponds to multiple component sound effect materials, and the adjustment unit 303 may include:
[0156] The second material selection subunit is configured to execute the audio playback strategy corresponding to the pressure relief valve and select a target component sound effect material that matches the turbine speed from the multiple component sound effect materials corresponding to the pressure relief valve;
[0157] The second adjustment processing subunit is configured to execute an audio playback strategy according to the turbine pressure and the pressure relief valve, adjust the volume of the target component sound effect material, and obtain component sound effect data corresponding to the pressure relief valve.
[0158] In one embodiment, the plurality of component sound effect materials are materials from a high-voltage sound effect material set and a low-voltage sound effect material set, and the second material selection subunit may include:
[0159] A set selection module is configured to execute an audio playback strategy corresponding to the pressure relief valve and determine a target component sound effect material set that matches the turbine speed;
[0160] A first sound effect material selection module is configured to determine a target component sound effect material from the low-pressure sound effect material set if the component sound effect material set is a low-pressure sound effect material set;
[0161] A second sound effect material selection module is configured to select a target component sound effect material from the second subset of the high-pressure sound effect material set if the component sound effect material set is a high-pressure sound effect material set and all component sound effect materials in the first subset of the high-pressure sound effect material set have been played;
[0162] The third sound effect material selection module is configured to select a target component sound effect material from the first subset if the first subset in the high-voltage sound effect material set contains unplayed component sound effect materials.
[0163] In one embodiment, the adjustment unit 303 may include:
[0164] A first volume adjustment subunit is configured to adjust the volume of the component sound effect material corresponding to the impeller according to the adjustment relationship between the turbine pressure and the volume indicated in the audio playback strategy corresponding to the impeller and the turbine pressure;
[0165] The first frequency adjustment subunit: is configured to adjust the frequency of the component sound effect material corresponding to the impeller according to the adjustment relationship between the throttle depth and the audio indicated in the audio playback strategy corresponding to the impeller and the throttle depth of the virtual mobile vehicle, so as to obtain the component sound effect data of the impeller.
[0166] In one embodiment, the adjustment unit 303 may include:
[0167] The second volume adjustment subunit is configured to adjust the volume of the component sound effect material corresponding to the bearing according to the adjustment relationship between the turbine pressure and the volume indicated in the audio playback strategy corresponding to the bearing and the turbine pressure;
[0168] The second frequency adjustment subunit is configured to adjust the audio of the component sound effect material corresponding to the bearing according to the adjustment relationship between the bearing speed and the audio indicated in the audio playback strategy corresponding to the bearing and the bearing speed of the turbine engine, and obtain the component sound effect data of the bearing.
[0169] (4) Output unit 304: configured to output the component sound effect data.
[0170] As can be seen from the above, the sound effect processing device of the embodiment of the present disclosure obtains the operation-related parameters of the target vehicle component of the virtual mobile vehicle in the game scene through the acquisition unit 301, and the operation-related parameters affect the working state of the vehicle component; the determination unit 302 determines the component sound effect materials corresponding to the constituent sub-components of the target vehicle component and the preset audio playback strategy, and the audio playback strategy includes the adjustment relationship between the operation-related parameters and the component sound effect materials; the adjustment unit 303 adjusts the component sound effect materials corresponding to the constituent sub-components according to the operation-related parameters and the corresponding audio playback strategy to obtain the component sound effect data of the constituent sub-parts; the output unit 304 outputs the component sound effect data.
[0171] The disclosed embodiment adjusts and processes the component sound effect materials of the sub-components of the target vehicle parts according to the operation-related parameters of the virtual mobile vehicle during operation, so that the sound effect data corresponding to the sub-components are similar to the sounds emitted by the sub-components in the real scene. The working status of the virtual mobile vehicle can be fed back in real time through the sound effect data, which can increase the realism and immersion of the game and the gaming experience of the substitute player.
[0172] Accordingly, an embodiment of the present disclosure further provides a computer device, which may be a terminal. As shown in Figure 11, Figure 11 is a schematic diagram of the structure of a computer device provided in an embodiment of the present disclosure. The computer device 500 includes a processor 501 having one or more processing cores, a memory 502 having one or more computer-readable storage media, and a computer program stored in the memory 502 and executable on the processor. The processor 501 is electrically connected to the memory 502. Those skilled in the art will appreciate that the computer device structure shown in the figure does not constitute a limitation on the computer device, and may include more or fewer components than shown, or a combination of certain components, or a different arrangement of components.
[0173] The processor 501 is the control center of the computer device 500. It uses various interfaces and lines to connect various parts of the entire computer device 500. By running or loading software programs and / or modules stored in the memory 502 and calling data stored in the memory 502, it executes various functions of the computer device 500 and processes data, thereby monitoring the computer device 500 as a whole.
[0174] In the embodiment of the present disclosure, the processor 501 in the computer device 500 loads instructions corresponding to one or more application processes into the memory 502 according to the following steps, and the processor 501 runs the application stored in the memory 502 to implement various functions:
[0175] Obtaining operation-related parameters of a target vehicle component of a virtual mobile vehicle in a game scene, where the operation-related parameters affect the working state of the vehicle component;
[0176] Determining component sound effect materials and preset audio playback strategies corresponding to the constituent sub-components of the target vehicle component, wherein the audio playback strategy includes regulating relationships between operating associated parameters and the component sound effect materials;
[0177] According to the operation association parameters and the corresponding audio playback strategy, the component sound effect materials corresponding to the constituent sub-parts are adjusted and processed to obtain the component sound effect data of the constituent sub-parts;
[0178] Output component sound effect data.
[0179] In one embodiment, the component sound effect materials corresponding to the component sub-components belong to a component sound effect material set, and the step of "adjusting and processing the component sound effect materials corresponding to the component sub-components according to the operation-related parameters and the corresponding audio playback strategy to obtain component sound effect data of the component sub-components" includes:
[0180] Determine a set of component sound effect materials that match the run-related parameters based on the audio playback strategy of the component subcomponents;
[0181] If the component sound effect material set includes at least two sub-sets with a set play order, then selecting a target component sound effect material from the target sub-set according to the play order, wherein different sub-sets include different types of component sound effect materials;
[0182] Based on the audio playback strategy and operation-related parameters of the constituent sub-components, the target component sound effect material is adjusted and processed to obtain the component sound effect data of the constituent sub-parts.
[0183] In one embodiment, the target vehicle component includes a turbine engine, the operation-related parameters include at least one of a throttle depth of the virtual mobile vehicle, a turbine speed, and a turbine pressure of the turbine engine, and the component subcomponents of the target vehicle component include at least one of a pressure relief valve, an impeller, and a bearing.
[0184] In one embodiment, the pressure relief valve corresponds to a plurality of component sound effect materials. The step of "adjusting and processing the component sound effect materials corresponding to the component sub-components according to the operation-related parameters and the corresponding audio playback strategy to obtain component sound effect data for the component sub-parts" includes:
[0185] According to the audio playback strategy corresponding to the pressure relief valve, a target component sound effect material that matches the turbine speed is selected from multiple component sound effect materials corresponding to the pressure relief valve;
[0186] According to the audio playback strategy of the turbine pressure and the pressure relief valve, the volume of the target component sound effect material is adjusted to obtain the component sound effect data corresponding to the pressure relief valve.
[0187] In one embodiment, the plurality of component sound effect materials are materials from a high-pressure sound effect material set and a low-pressure sound effect material set. The step of "selecting a target component sound effect material that matches the turbine speed from the plurality of component sound effect materials corresponding to the pressure relief valve according to the audio playback strategy corresponding to the pressure relief valve" includes:
[0188] According to the audio playback strategy corresponding to the pressure relief valve, a target component sound effect material set that matches the turbine speed is determined;
[0189] If the component sound effect material set is a low-pressure sound effect material set, determining the target component sound effect material from the low-pressure sound effect material set;
[0190] If the component sound effect material set is a high-voltage sound effect material set, and all the component sound effect materials in the first sub-set of the high-voltage sound effect material set have been played, then selecting the target component sound effect material from the second sub-set of the high-voltage sound effect material set;
[0191] If the first sub-collection in the high-voltage sound effect material collection includes unplayed component sound effect materials, a target component sound effect material is selected from the first sub-collection.
[0192] In one embodiment, the step of “adjusting and processing the component sound effect material corresponding to the component sub-part according to the operation-related parameters and the corresponding audio playback strategy to obtain the component sound effect data of the component sub-part” includes:
[0193] Adjusting the volume of the component sound effect material corresponding to the impeller according to the adjustment relationship between the turbine pressure and the volume indicated in the audio playback strategy corresponding to the impeller and the turbine pressure;
[0194] According to the adjustment relationship between the throttle depth and the audio indicated in the audio playback strategy corresponding to the impeller and the throttle depth of the virtual mobile vehicle, the frequency of the component sound effect material corresponding to the impeller is adjusted to obtain the component sound effect data of the impeller.
[0195] In one embodiment, the step of “adjusting and processing the component sound effect material corresponding to the component sub-part according to the operation-related parameters and the corresponding audio playback strategy to obtain the component sound effect data of the component sub-part” includes:
[0196] Adjusting the volume of the component sound effect material corresponding to the bearing according to the adjustment relationship between the turbine pressure and the volume indicated in the audio playback strategy corresponding to the bearing and the turbine pressure;
[0197] According to the adjustment relationship between the bearing speed and the audio indicated in the audio playback strategy corresponding to the bearing and the bearing speed of the turbine engine, the audio of the component sound effect material corresponding to the bearing is adjusted to obtain the component sound effect data of the bearing.
[0198] In one embodiment, before the step of “determining the component sound effect materials and the preset audio playback strategy corresponding to the subcomponents of the target vehicle component”, the sound effect processing method provided by the embodiment of the present disclosure further includes:
[0199] Obtain component sound effect materials of target vehicle components corresponding to different types of virtual mobile vehicles;
[0200] Based on the component sound effect materials, a vehicle component sound effect framework for each type of virtual mobile vehicle is constructed through the audio engine. The vehicle component sound effect framework encapsulates the component sound effect materials of the sub-components of the target vehicle component.
[0201] An audio trigger mechanism and an audio adjustment method are set for the subcomponents of the target vehicle component within the vehicle component sound effect framework to obtain an audio playback strategy corresponding to each subcomponent.
[0202] From the above, it can be seen that the embodiment of the present disclosure obtains the operation-related parameters of the target vehicle component of the virtual mobile vehicle in the game scene, and the operation-related parameters affect the working state of the vehicle component; determines the component sound effect materials corresponding to the constituent sub-components of the target vehicle component and the preset audio playback strategy, and the audio playback strategy includes the adjustment relationship between the operation-related parameters and the component sound effect materials; according to the operation-related parameters and the corresponding audio playback strategy, the component sound effect materials corresponding to the constituent sub-components are adjusted and processed to obtain the component sound effect data of the constituent sub-parts; and outputs the component sound effect data.
[0203] The disclosed embodiment adjusts and processes the component sound effect materials of the sub-components of the target vehicle parts according to the operation-related parameters of the virtual mobile vehicle during operation, so that the sound effect data corresponding to the sub-components are similar to the sounds emitted by the sub-components in the real scene. The working status of the virtual mobile vehicle can be fed back in real time through the sound effect data, which can increase the realism and immersion of the game and the gaming experience of the substitute player.
[0204] The specific implementation of the above operations can be found in the previous embodiments and will not be repeated here.
[0205] Optionally, as shown in FIG11 , the computer device 500 further includes: a touch screen 503, a radio frequency circuit 504, an audio circuit 505, an input unit 506, and a power supply 507. The processor 501 is electrically connected to the touch screen 503, the radio frequency circuit 504, the audio circuit 505, the input unit 506, and the power supply 507. Those skilled in the art will appreciate that the computer device structure shown in FIG11 does not limit the computer device, and may include more or fewer components than shown, or combine certain components, or arrange the components differently.
[0206] The touch display screen 503 can be configured to execute and display a graphical user interface and receive user operations configured to execute the operation instructions generated by the graphical user interface. The touch display screen 503 can include a display panel and a touch panel. Among them, the display panel can be configured to execute and display the information input by the user or the information provided to the user and various graphical user interfaces of the computer device, and these graphical user interfaces can be composed of graphics, text, icons, videos and any combination thereof. Optionally, the display panel can be configured in the form of a liquid crystal display (LCD), an organic light emitting diode (OLED), or the like. The touch panel can be configured to execute and collect the touch operations of the user thereon or near it (such as the user uses any suitable object or accessory such as a finger, a stylus, etc. on the touch panel or near the touch panel), and generate corresponding operation instructions, and the operation instructions execute corresponding programs. Optionally, the touch panel can include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch direction, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the touch point coordinates, and then sends it to the processor 501, and can receive the command sent by the processor 501 and execute it. The touch panel can cover the display panel. When the touch panel detects a touch operation on or near it, it is transmitted to the processor 501 to determine the type of touch event, and then the processor 501 provides a corresponding visual output on the display panel according to the type of touch event. In the embodiment of the present disclosure, the touch panel and the display panel can be integrated into the touch display screen 503 to realize the input and output functions. However, in some embodiments, the touch panel and the touch panel can be used as two independent components to realize the input and output functions. That is, the touch display screen 503 can also be used as part of the input unit 506 to realize the input function.
[0207] The RF circuit 504 may be configured to perform transceiver of RF signals to establish wireless communication with a network device or other computer device via wireless communication, and to transmit and receive signals with the network device or other computer device.
[0208] The audio circuit 505 can be configured to provide an audio interface between the user and the computer device via a speaker and microphone. The audio circuit 505 can convert received audio data into electrical signals and transmit them to the speaker, which then converts the signals into sound signals for output. The microphone, on the other hand, converts the collected sound signals into electrical signals, which are then received by the audio circuit 505 and converted into audio data. The audio data is then processed by the processor 501 and transmitted via the RF circuit 504 to, for example, another computer device, or the audio data is output to the memory 502 for further processing. The audio circuit 505 may also include an earphone jack to provide communication between an external headset and the computer device.
[0209] The input unit 506 can be configured to receive input numbers, character information or user feature information (such as fingerprint, iris, facial information, etc.), and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
[0210] The power supply 507 is configured to supply power to the various components of the computer device 500. Optionally, the power supply 507 can be logically connected to the processor 501 via a power management system, thereby enabling the power management system to manage charging, discharging, and power consumption. The power supply 507 can also include one or more DC or AC power supplies, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and other arbitrary components.
[0211] Although not shown in FIG. 11 , the computer device 500 may further include a camera, a sensor, a wireless fidelity module, a Bluetooth module, etc., which will not be described in detail here.
[0212] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0213] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be accomplished by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0214] To this end, embodiments of the present disclosure provide a computer-readable storage medium storing a plurality of computer programs that can be loaded by a processor to execute the steps of any of the virtual item marking methods provided in embodiments of the present disclosure. For example, the computer program may execute the following steps:
[0215] Obtaining operation-related parameters of a target vehicle component of a virtual mobile vehicle in a game scene, where the operation-related parameters affect the working state of the vehicle component;
[0216] Determining component sound effect materials and preset audio playback strategies corresponding to the constituent sub-components of the target vehicle component, wherein the audio playback strategy includes regulating relationships between operating associated parameters and the component sound effect materials;
[0217] According to the operation association parameters and the corresponding audio playback strategy, the component sound effect materials corresponding to the constituent sub-parts are adjusted and processed to obtain the component sound effect data of the constituent sub-parts;
[0218] Output component sound effect data.
[0219] In one embodiment, the component sound effect materials corresponding to the component sub-components belong to a component sound effect material set, and the step of "adjusting and processing the component sound effect materials corresponding to the component sub-components according to the operation-related parameters and the corresponding audio playback strategy to obtain component sound effect data of the component sub-components" includes:
[0220] Determine a set of component sound effect materials that match the run-related parameters based on the audio playback strategy of the component subcomponents;
[0221] If the component sound effect material set includes at least two sub-sets with a set play order, then selecting a target component sound effect material from the target sub-set according to the play order, wherein different sub-sets include different types of component sound effect materials;
[0222] Based on the audio playback strategy and operation-related parameters of the constituent sub-components, the target component sound effect material is adjusted and processed to obtain the component sound effect data of the constituent sub-parts.
[0223] In one embodiment, the target vehicle component includes a turbine engine, the operation-related parameters include at least one of a throttle depth of the virtual mobile vehicle, a turbine speed, and a turbine pressure of the turbine engine, and the component subcomponents of the target vehicle component include at least one of a pressure relief valve, an impeller, and a bearing.
[0224] In one embodiment, the pressure relief valve corresponds to a plurality of component sound effect materials. The step of "adjusting and processing the component sound effect materials corresponding to the component sub-components according to the operation-related parameters and the corresponding audio playback strategy to obtain component sound effect data for the component sub-parts" includes:
[0225] According to the audio playback strategy corresponding to the pressure relief valve, a target component sound effect material that matches the turbine speed is selected from multiple component sound effect materials corresponding to the pressure relief valve;
[0226] According to the audio playback strategy of the turbine pressure and the pressure relief valve, the volume of the target component sound effect material is adjusted to obtain the component sound effect data corresponding to the pressure relief valve.
[0227] In one embodiment, the plurality of component sound effect materials are materials from a high-pressure sound effect material set and a low-pressure sound effect material set. The step of "selecting a target component sound effect material that matches the turbine speed from the plurality of component sound effect materials corresponding to the pressure relief valve according to the audio playback strategy corresponding to the pressure relief valve" includes:
[0228] According to the audio playback strategy corresponding to the pressure relief valve, a target component sound effect material set that matches the turbine speed is determined;
[0229] If the component sound effect material set is a low-pressure sound effect material set, determining the target component sound effect material from the low-pressure sound effect material set;
[0230] If the component sound effect material set is a high-voltage sound effect material set, and all the component sound effect materials in the first sub-set of the high-voltage sound effect material set have been played, then selecting the target component sound effect material from the second sub-set of the high-voltage sound effect material set;
[0231] If the first sub-collection in the high-voltage sound effect material collection includes unplayed component sound effect materials, a target component sound effect material is selected from the first sub-collection.
[0232] In one embodiment, the step of “adjusting and processing the component sound effect material corresponding to the component sub-part according to the operation-related parameters and the corresponding audio playback strategy to obtain the component sound effect data of the component sub-part” includes:
[0233] Adjusting the volume of the component sound effect material corresponding to the impeller according to the adjustment relationship between the turbine pressure and the volume indicated in the audio playback strategy corresponding to the impeller and the turbine pressure;
[0234] According to the adjustment relationship between the throttle depth and the audio indicated in the audio playback strategy corresponding to the impeller and the throttle depth of the virtual mobile vehicle, the frequency of the component sound effect material corresponding to the impeller is adjusted to obtain the component sound effect data of the impeller.
[0235] In one embodiment, the step of “adjusting and processing the component sound effect material corresponding to the component sub-part according to the operation-related parameters and the corresponding audio playback strategy to obtain the component sound effect data of the component sub-part” includes:
[0236] Adjusting the volume of the component sound effect material corresponding to the bearing according to the adjustment relationship between the turbine pressure and the volume indicated in the audio playback strategy corresponding to the bearing and the turbine pressure;
[0237] According to the adjustment relationship between the bearing speed and the audio indicated in the audio playback strategy corresponding to the bearing and the bearing speed of the turbine engine, the audio of the component sound effect material corresponding to the bearing is adjusted to obtain the component sound effect data of the bearing.
[0238] In one embodiment, before the step of “determining the component sound effect materials and the preset audio playback strategy corresponding to the subcomponents of the target vehicle component”, the sound effect processing method provided by the embodiment of the present disclosure further includes:
[0239] Obtain component sound effect materials of target vehicle components corresponding to different types of virtual mobile vehicles;
[0240] Based on the component sound effect materials, a vehicle component sound effect framework for each type of virtual mobile vehicle is constructed through the audio engine. The vehicle component sound effect framework encapsulates the component sound effect materials of the sub-components of the target vehicle component.
[0241] An audio trigger mechanism and an audio adjustment method are set for the subcomponents of the target vehicle component within the vehicle component sound effect framework to obtain an audio playback strategy corresponding to each subcomponent.
[0242] From the above, it can be seen that the embodiment of the present disclosure obtains the operation-related parameters of the target vehicle component of the virtual mobile vehicle in the game scene, and the operation-related parameters affect the working state of the vehicle component; determines the component sound effect materials corresponding to the constituent sub-components of the target vehicle component and the preset audio playback strategy, and the audio playback strategy includes the adjustment relationship between the operation-related parameters and the component sound effect materials; according to the operation-related parameters and the corresponding audio playback strategy, the component sound effect materials corresponding to the constituent sub-components are adjusted and processed to obtain the component sound effect data of the constituent sub-parts; and outputs the component sound effect data.
[0243] The disclosed embodiment adjusts and processes the component sound effect materials of the sub-components of the target vehicle parts according to the operation-related parameters of the virtual mobile vehicle during operation, so that the sound effect data corresponding to the sub-components are similar to the sounds emitted by the sub-components in the real scene. The working status of the virtual mobile vehicle can be fed back in real time through the sound effect data, which can increase the realism and immersion of the game and the gaming experience of the substitute player.
[0244] The specific implementation of the above operations can be found in the previous embodiments and will not be repeated here.
[0245] The storage medium may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0246] The above is a detailed introduction to a sound effect processing method, device, computer equipment and computer storage medium provided by the embodiments of the present disclosure. Specific examples are used herein to illustrate the principles and implementation methods of the present disclosure. The description of the above embodiments is only configured to help understand the method and core ideas of the present disclosure. At the same time, for those skilled in the art, according to the ideas of the present disclosure, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as a limitation on the present disclosure.
Claims
1. A sound effect processing method, comprising: Acquire operation-related parameters of a target vehicle component of a virtual mobile vehicle in a game scene, wherein the operation-related parameters affect a working state of the vehicle component; Determining component sound effect materials and preset audio playback strategies corresponding to the constituent subcomponents of the target vehicle component, wherein the audio playback strategy includes a regulating relationship between the operation-related parameters and the component sound effect materials; According to the operation association parameters and the corresponding audio playback strategy, the component sound effect material corresponding to the component sub-part is adjusted and processed to obtain the component sound effect data of the component sub-part; Output the component sound effect data.
2. The method according to claim 1, wherein: The component sound effect material corresponding to the component sub-component belongs to a component sound effect material set, and the component sound effect material corresponding to the component sub-component is adjusted and processed according to the operation association parameter and the corresponding audio playback strategy to obtain the component sound effect data of the component sub-component, including: Determining a set of component sound effect materials that match the operation-related parameters according to the audio playback strategy of the component subcomponents; If the component sound effect material set includes at least two subsets with a play order set, then selecting a target component sound effect material from the target subset according to the play order, wherein different subsets include different types of component sound effect materials; Based on the audio playback strategy of the component sub-part and the operation-related parameters, the target component sound effect material is adjusted and processed to obtain the component sound effect data of the component sub-part.
3. The method according to claim 1, wherein: The target vehicle component includes a turbine engine, the operation-related parameters include at least one of a throttle depth of the virtual mobile vehicle, a turbine speed and a turbine pressure of the turbine engine, and the constituent subcomponents of the target vehicle component include at least one of a pressure relief valve, an impeller and a bearing.
4. The method according to claim 3, wherein: The pressure relief valve corresponds to a plurality of component sound effect materials. According to the operation-related parameters and the corresponding audio playback strategy, the component sound effect materials corresponding to the component sub-components are adjusted and processed to obtain the component sound effect data of the component sub-parts, including: According to the audio playback strategy corresponding to the pressure relief valve, a target component sound effect material matching the turbine speed is selected from a plurality of component sound effect materials corresponding to the pressure relief valve; According to the audio playback strategy of the turbine pressure and the pressure relief valve, the volume of the target component sound effect material is adjusted to obtain the component sound effect data corresponding to the pressure relief valve.
5. The method according to claim 4, wherein: The multiple component sound effect materials are materials of a high-pressure sound effect material set and a low-pressure sound effect material set, and selecting a target component sound effect material matching the turbine speed from the multiple component sound effect materials corresponding to the pressure relief valve according to the audio playback strategy corresponding to the pressure relief valve includes: Determine a target component sound effect material set that matches the turbine speed according to the audio playback strategy corresponding to the pressure relief valve; If the component sound effect material set is a low-pressure sound effect material set, determining a target component sound effect material from the low-pressure sound effect material set; If the component sound effect material set is a high-voltage sound effect material set, and the component sound effect materials in the first subset of the high-voltage sound effect material set have all been played, then selecting a target component sound effect material from the second subset of the high-voltage sound effect material set; If the first subset of the high-voltage sound effect material set contains unplayed component sound effect materials, a target component sound effect material is selected from the first subset.
6. The method according to claim 3, wherein: The step of adjusting and processing the component sound effect material corresponding to the component sub-part according to the operation association parameter and the corresponding audio playback strategy to obtain the component sound effect data of the component sub-part includes: adjusting the volume of the component sound effect material corresponding to the impeller according to the adjustment relationship between the turbine pressure and the volume indicated in the audio playback strategy corresponding to the impeller and the turbine pressure; According to the adjustment relationship between the throttle depth and the audio indicated in the audio playback strategy corresponding to the impeller and the throttle depth of the virtual mobile vehicle, the frequency of the component sound effect material corresponding to the impeller is adjusted to obtain the component sound effect data of the impeller.
7. The method according to claim 3, wherein: The step of adjusting and processing the component sound effect material corresponding to the component sub-part according to the operation association parameter and the corresponding audio playback strategy to obtain the component sound effect data of the component sub-part includes: adjusting the volume of the component sound effect material corresponding to the bearing according to the adjustment relationship between the turbine pressure and the volume indicated in the audio playback strategy corresponding to the bearing and the turbine pressure; According to the adjustment relationship between the bearing speed and the audio indicated in the audio playback strategy corresponding to the bearing and the bearing speed of the turbine engine, the audio of the component sound effect material corresponding to the bearing is adjusted to obtain the component sound effect data of the bearing.
8. The method according to any one of claims 1 to 7, wherein: Before determining the component sound effect materials and the preset audio playback strategy corresponding to the constituent subcomponents of the target vehicle component, the method further includes: Obtain component sound effect materials of target vehicle components corresponding to different types of virtual mobile vehicles; Based on the component sound effect material, a vehicle component sound effect framework of each type of virtual mobile vehicle is constructed through an audio engine, wherein the vehicle component sound effect framework encapsulates component sound effect materials of subcomponents of the target vehicle component; An audio trigger mechanism and an audio adjustment method are set for the component subcomponents of the target vehicle component within the vehicle component sound effect framework to obtain an audio playback strategy corresponding to each component subcomponent.
9. A sound effect processing device, comprising: An acquisition unit is configured to execute acquisition of operation-related parameters of a target vehicle component of a virtual mobile vehicle in a game scene, wherein the operation-related parameters affect a working state of the vehicle component; A determination unit configured to determine the component sound effect material corresponding to the component subcomponent of the target vehicle component and a preset audio playback strategy, wherein the audio playback strategy includes a regulation relationship between the operation association parameter and the component sound effect material; An adjustment unit is configured to perform adjustment processing on the component sound effect material corresponding to the component sub-part according to the operation association parameter and the corresponding audio playback strategy to obtain the component sound effect data of the component sub-part; The output unit is configured to output the component sound effect data.
10. A computer device comprising a memory and a processor; the memory stores a computer program, and the processor is configured to execute the computer program in the memory to perform the sound effect processing method according to any one of claims 1 to 8.
11. A computer-readable storage medium, wherein the computer-readable storage medium is configured to execute and store a computer program, wherein the computer program is loaded by a processor to execute the sound effect processing method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Engine sound simulator
CN104174170A
An electronic sound effect system that simulates the sound effect of a fuel engine system
CN109460610A
Game sound effect control method and device, storage medium and computer equipment
CN114272606A
Audio control method and device, electronic equipment and storage medium
CN114307148A
Audio data processing method and device, storage medium and processor
CN114404974A