Natural wind simulation method, device and equipment and readable storage medium

By controlling the air conditioner wind speed based on natural wind data, the user fatigue problem caused by the fixed air conditioner wind speed is solved, the natural wind simulation is realized, and the user experience is improved.

CN120576468APending Publication Date: 2025-09-02CHONGQING JINKANG NEW ENERGY VEHICLE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510762643.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-09
Publication Date
2025-09-02

AI Technical Summary

Technical Problem

The air conditioner blows towards the user at a fixed wind speed for a long time, which can easily cause fatigue and discomfort for users and poor user experience.

Method used

Based on the audio data of natural wind, the audio amplitude set is determined, and the air conditioner gear is determined according to the size of the audio amplitude, and the air conditioner wind speed is controlled to simulate natural wind.

Benefits of technology

By capturing the fluctuations and random characteristics of natural wind, we can accurately simulate natural wind, avoid fatigue caused by fixed wind speed, and improve user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120576468A_ABST
    Figure CN120576468A_ABST
Patent Text Reader

Abstract

The invention provides a natural wind simulation method, device and equipment and a readable storage medium, and is applied to the technical field of air conditioners. The method comprises the steps that based on audio data of natural wind, an audio amplitude set of the audio data is determined; determining an air conditioner gear corresponding to each audio amplitude according to the size of each audio amplitude in the audio amplitude set; the size of the audio amplitude is in positive correlation with the size of the air conditioner gear; and according to the air conditioner gear corresponding to each audio amplitude in the audio amplitude set, the air speed of the air conditioner is controlled to simulate natural wind. The fatigue discomfort of a user caused by the air conditioner working at a fixed wind speed can be avoided, and the use experience of the air conditioner is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of air-conditioning technology, and in particular to a natural wind simulation method, device, electronic device, and readable storage medium. Background Art

[0002] Air conditioners have transformed users' lives and work environments, breaking through the temperature limits of natural climates while also promoting air circulation and exchange, significantly improving user comfort. Air conditioners generate different wind speeds when operating in different settings.

[0003] In the related art, the air-conditioning wind speed is usually constant, or is manually adjusted to achieve a constant wind speed, thereby changing the temperature of the user's environment and promoting air circulation.

[0004] However, the air conditioner blows towards the user at a fixed wind speed for a long time, which can easily cause fatigue and discomfort to the user, resulting in a poor user experience. Summary of the Invention

[0005] In view of the above problems, the embodiments of the present application are proposed to provide a natural wind simulation method, device, electronic device and readable storage medium that overcome the above problems or at least partially solve the above problems.

[0006] In a first aspect, the embodiments of the present application disclose a natural wind simulation method, comprising:

[0007] determining, based on the audio data of natural wind, an audio amplitude set of the audio data;

[0008] determining, based on the magnitude of each audio amplitude in the audio amplitude set, an air conditioning gear corresponding to each audio amplitude; wherein there is a positive correlation between the magnitude of the audio amplitude and the magnitude of the air conditioning gear;

[0009] The wind speed of the air conditioner is controlled in sequence according to the air conditioner gear corresponding to each audio amplitude in the audio amplitude set to simulate natural wind.

[0010] Optionally, the step of determining the air conditioning gear corresponding to each audio amplitude according to the magnitude of each audio amplitude in the audio amplitude set includes:

[0011] determining an amplitude interval based on a maximum audio amplitude and a minimum audio amplitude in the audio data;

[0012] According to a preset number of air-conditioning gear positions, a preset number of marked amplitudes are determined in the amplitude interval to obtain a marked amplitude set; the marked amplitudes correspond to the air-conditioning gear positions;

[0013] Traversing the audio amplitudes in the audio amplitude set, and comparing each audio amplitude with the marked amplitude set;

[0014] For any audio amplitude, if there is a marked amplitude identical to the audio amplitude in the marked amplitude set, determining a target marked amplitude identical to the audio amplitude, and using the air conditioning gear corresponding to the target marked amplitude as the target air conditioning gear corresponding to the audio amplitude; or

[0015] For any audio amplitude, if there is no marked amplitude identical to the audio amplitude in the marked amplitude set, a target marked amplitude adjacent to the audio amplitude is determined in the marked amplitude set, and the air conditioning gear corresponding to the target marked amplitude is used as the target air conditioning gear corresponding to the audio amplitude.

[0016] Optionally, the step of determining the air conditioning gear corresponding to each audio amplitude according to the magnitude of each audio amplitude in the audio amplitude set includes:

[0017] determining an amplitude interval based on a maximum audio amplitude and a minimum audio amplitude in the audio data;

[0018] According to a preset number of air conditioning gears, the amplitude interval is divided into the preset number of amplitude sub-intervals; there is a corresponding relationship between the amplitude sub-intervals and the air conditioning gears;

[0019] According to the size of each audio amplitude in the audio amplitude set, the target amplitude sub-interval of each audio amplitude is determined, and the air conditioning gear corresponding to the target amplitude sub-interval is used as the target air conditioning gear corresponding to the audio amplitude.

[0020] Optionally, the step of sequentially controlling the wind speed of the air conditioner according to the air conditioner gear corresponding to each audio amplitude in the audio amplitude set to simulate natural wind includes:

[0021] Determining time information corresponding to each audio amplitude in the audio amplitude set, and determining an audio amplitude sequence based on the time information corresponding to each audio amplitude, wherein the time information is used to indicate a time point at which the audio amplitude was collected;

[0022] Based on a first audio amplitude in the audio amplitude sequence and time information corresponding to the first audio amplitude, triggering control of a wind speed of the air conditioner according to an air conditioner gear corresponding to the first audio amplitude;

[0023] Continue to control the wind speed of the air conditioner according to the air conditioner gear corresponding to the next audio amplitude based on the next audio amplitude in the audio amplitude sequence and the time information corresponding to the next audio amplitude, until the audio amplitude sequence is traversed.

[0024] Optionally, the step of determining an audio amplitude set of the audio data based on the audio data of natural wind includes:

[0025] Determining a candidate audio amplitude set based on the audio data of natural wind; wherein the candidate audio amplitude set includes all audio amplitudes in the audio data;

[0026] According to a preset sampling parameter, a plurality of key audio amplitudes corresponding to the sampling parameter are determined in the candidate audio amplitude set; a magnitude of the sampling parameter and the number of the key audio amplitudes are correlated;

[0027] A final audio amplitude set is obtained based on the multiple key audio amplitudes.

[0028] Optionally, the method further includes:

[0029] While controlling the air conditioner wind speed according to the air conditioner gear corresponding to each audio amplitude in turn, the audio data is played synchronously; wherein, the synchronization means that the time information corresponding to the audio amplitude used to control the air conditioner gear at any moment matches the time information corresponding to the playback progress of the audio data.

[0030] Optionally, the method further includes:

[0031] At any moment, determining target time information corresponding to the playback progress of the audio data, and determining the real-time audio amplitude of the audio data at the target time information;

[0032] When a current air-conditioning gear of the air-conditioner is different from a real-time air-conditioning gear corresponding to the real-time audio amplitude, the air-conditioner is controlled to operate at the real-time air-conditioning gear.

[0033] In a second aspect, an embodiment of the present application discloses a natural wind simulation device, comprising:

[0034] An audio amplitude module, configured to determine an audio amplitude set of the audio data based on the audio data of natural wind;

[0035] an amplitude gear module, configured to determine an air conditioning gear corresponding to each audio amplitude according to the magnitude of each audio amplitude in the audio amplitude set; wherein there is a positive correlation between the magnitude of the audio amplitude and the magnitude of the air conditioning gear;

[0036] The amplitude control module is used to control the wind speed of the air conditioner in turn according to the air conditioner gear corresponding to each audio amplitude in the audio amplitude set to simulate natural wind.

[0037] Optional, amplitude gear module, including:

[0038] A first interval submodule, configured to determine an amplitude interval based on a maximum audio amplitude and a minimum audio amplitude in the audio data;

[0039] An interval marking submodule, configured to determine a preset number of marked amplitudes in the amplitude interval according to a preset number of air-conditioning gear positions; the marked amplitudes correspond to the air-conditioning gear positions;

[0040] a tag comparison submodule, configured to traverse the audio amplitudes in the audio amplitude set and compare each audio amplitude with the tag amplitude set;

[0041] The same-mark submodule is configured to determine, for any audio amplitude, a target marked amplitude that is the same as the audio amplitude if there is a marked amplitude that is the same as the audio amplitude in the marked amplitude set, and use the air conditioning gear corresponding to the target marked amplitude as the target air conditioning gear corresponding to the audio amplitude;

[0042] The tag difference submodule is configured to, for any audio amplitude, determine a target tag amplitude adjacent to the audio amplitude in the tag amplitude set if there is no tag amplitude identical to the audio amplitude in the tag amplitude set, and use the air conditioning gear corresponding to the target tag amplitude as the target air conditioning gear corresponding to the audio amplitude.

[0043] Optional, amplitude gear module, including:

[0044] A second interval submodule, configured to determine an amplitude interval based on a maximum audio amplitude and a minimum audio amplitude in the audio data;

[0045] An interval division submodule, configured to divide the amplitude interval into a preset number of amplitude sub-intervals according to a preset number of air-conditioning gears; the amplitude sub-intervals correspond to the air-conditioning gears;

[0046] The amplitude interval submodule is used to determine the target amplitude subinterval of each audio amplitude according to the size of each audio amplitude in the audio amplitude set, and use the air conditioning gear corresponding to the target amplitude subinterval as the target air conditioning gear corresponding to the audio amplitude.

[0047] Optional, amplitude control module, including:

[0048] an amplitude sequence submodule, configured to determine time information corresponding to each audio amplitude in the audio amplitude set, and determine an audio amplitude sequence based on the time information corresponding to each audio amplitude; the time information is used to indicate a time point at which the audio amplitude is collected;

[0049] a first control submodule, configured to trigger, based on a first audio amplitude in the audio amplitude sequence and time information corresponding to the first audio amplitude, control the wind speed of the air conditioner according to the air conditioner gear corresponding to the first audio amplitude;

[0050] The subsequent control submodule is used to continue to trigger the air conditioner gear corresponding to the next audio amplitude based on the next audio amplitude in the audio amplitude sequence and the time information corresponding to the next audio amplitude, and control the wind speed of the air conditioner until the audio amplitude sequence is traversed.

[0051] Optional, audio amplitude module, including:

[0052] A candidate set submodule is configured to determine a candidate audio amplitude set based on the natural wind audio data; the candidate audio amplitude set includes all audio amplitudes in the audio data;

[0053] an audio amplitude screening submodule, configured to determine, based on a preset sampling parameter, a plurality of key audio amplitudes corresponding to the sampling parameter from the candidate audio amplitude set; wherein a magnitude of the sampling parameter is associated with the number of the key audio amplitudes;

[0054] The screening set submodule is configured to obtain a final audio amplitude set based on the plurality of key audio amplitudes.

[0055] Optionally, the device further includes:

[0056] A synchronous audio module is used to synchronously play the audio data while controlling the air conditioner wind speed according to the air conditioner gear corresponding to each audio amplitude in sequence; wherein the synchronization means that the time information corresponding to the audio amplitude used to control the air conditioner gear at any moment matches the time information corresponding to the playback progress of the audio data.

[0057] Optionally, the device further includes:

[0058] A time search module, configured to determine, at any moment, target time information corresponding to the playback progress of the audio data, and determine the real-time audio amplitude of the audio data at the target time information;

[0059] The gear correction module is used to control the air conditioner to operate at the real-time air conditioner gear when the current air conditioner gear of the air conditioner is different from the real-time air conditioner gear corresponding to the real-time audio amplitude.

[0060] On the third aspect, an embodiment of the present application also discloses an electronic device, including a processor, a communication interface, a memory and a communication bus; wherein the processor, the communication interface and the memory communicate with each other through the communication bus; the memory is used to store computer programs; the processor is used to implement the steps of the above-mentioned natural wind simulation method when executing the program stored in the memory.

[0061] In a fourth aspect, an embodiment of the present application further discloses a readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the above-mentioned natural wind simulation method.

[0062] By implementing the embodiments of the present application, an audio amplitude set of the audio data is determined based on the audio data of natural wind, and the air conditioning gear corresponding to each audio amplitude is determined according to the size of each audio amplitude in the audio amplitude set. In turn, according to the air conditioning gear corresponding to each audio amplitude in the audio amplitude set, the wind speed of the air conditioner is controlled to simulate natural wind. The audio amplitude carried by the audio data of natural wind can capture the strong and weak fluctuation characteristics and random characteristics of the natural wind, and then the air conditioning wind speed can be controlled based on the air conditioning gear corresponding to the audio amplitude. Natural wind can be accurately simulated, and fatigue and discomfort of the user caused by a fixed wind speed can be avoided, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] Figure 1 This is a step diagram of a natural wind simulation method provided in an embodiment of the present application;

[0064] Figure 2 This is a step diagram of another natural wind simulation method provided in an embodiment of the present application;

[0065] Figure 3 This is a flow chart of generating an air volume change curve provided by an embodiment of the present application;

[0066] Figure 4 This is a flow chart of wind speed control provided by an embodiment of the present application;

[0067] Figure 5 is a block diagram of a natural wind simulation device provided in an embodiment of the present application;

[0068] Figure 6 This is a block diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0069] The following describes exemplary embodiments of the present application in more detail with reference to the accompanying drawings. Although exemplary embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided to enable a more thorough understanding of the present application and to fully convey the scope of the present application to those skilled in the art.

[0070] Figure 1 This is a step diagram of a natural wind simulation method provided in an embodiment of the present application, the method comprising:

[0071] Step 101: Determine an audio amplitude set of the audio data based on audio data of natural wind.

[0072] In an embodiment of the present application, the execution subject of the method can be a device with data processing capabilities, such as a smart air conditioner. In a vehicle application scenario, it can also be executed and controlled by an on-board terminal. There is no specific restriction here.

[0073] Audio data collected by audio acquisition devices such as microphones can be a continuously varying analog voltage signal, with the audio amplitude representing the energy intensity of the sound wave. Analog-to-digital conversion (ADC) converts the analog signal into a discrete digital signal, where each sampling point of the discrete digital signal corresponds to an audio amplitude.

[0074] The audio amplitude set may be an array based on a number of discrete audio amplitude values. Since the audio amplitude of the collected audio is larger when the natural wind speed is higher, and the audio amplitude of the collected audio is smaller when the natural wind speed is lower, the audio amplitude set may represent the dynamic change characteristics of the natural wind.

[0075] The audio data can be preprocessed. For example, low-pass filtering can be used to remove high-frequency noise, such as sharp noises or high-frequency animal calls. A low-pass filter can be used to allow signals below a certain frequency to pass through and attenuate signals above that frequency. High-pass filtering can also be used to remove low-frequency noise, such as low-frequency humming sounds. A high-pass filter can be used to allow signals above a certain frequency to pass through and attenuate signals below that frequency. Band-pass filtering can also be used to remove noise within a known frequency range, retaining signals within a specific frequency range. The preprocessing process is not specifically limited here.

[0076] Step 102 : determining the air conditioning gear corresponding to each audio amplitude according to the magnitude of each audio amplitude in the audio amplitude set; there is a positive correlation between the magnitude of the audio amplitude and the magnitude of the air conditioning gear.

[0077] In the embodiment of the present application, different audio amplitudes represent different corresponding natural wind speeds. When simulating natural wind using an air conditioner, the wind speed needs to be controlled by the air conditioner gear. Therefore, for each audio amplitude in the audio amplitude set, a corresponding air conditioner gear can be determined: a larger audio amplitude indicates a higher air conditioner gear, and a smaller audio amplitude indicates a lower air conditioner gear.

[0078] Based on the audio amplitude value, a corresponding target value can be obtained through mathematical calculations. The target value, for example, 1, 2, or 3, can represent the air conditioning gear. Alternatively, a model can be pre-trained, and by inputting the audio amplitude into the model, the model outputs the corresponding air conditioning gear. A mapping table between audio amplitude and air conditioning gear can also be established, and the air conditioning gear can be determined by looking up the table. There is no specific limitation on how to determine the air conditioning gear corresponding to the audio amplitude based on the size of the audio amplitude.

[0079] Step 103 : Controlling the wind speed of the air conditioner according to the air conditioner gear corresponding to each audio amplitude in the audio amplitude set in turn to simulate natural wind.

[0080] In an embodiment of the present application, a corresponding wind speed control instruction can be generated according to the determined air conditioner gear. Based on the communication protocol between the control device and the air conditioner, the instruction can be packaged in the format specified by the protocol. The instruction may include information such as the air conditioner identifier, the control type (wind speed control), and the target air conditioner gear. If infrared control is used, the gear information can be converted into a corresponding infrared code. The process of how to control the air conditioner based on the determined air conditioner gear is not specifically limited here.

[0081] Among them, in order to simulate natural wind more realistically, the duration of each gear can be set and adjusted. According to the changing pattern of natural wind, each gear can be set to maintain the same or different lengths of time. For example, the low gear is maintained for a longer time (such as 10 to 15 seconds) to simulate a continuous breeze; the high gear is maintained for a shorter time (such as 3 to 5 seconds) to simulate gusts. After the end of each gear time, the air conditioning gear corresponding to the next audio amplitude in the audio amplitude set continues to be controlled.

[0082] It's understandable that the length of audio data is limited, so the audio amplitudes in the resulting audio amplitude set are also limited. Consequently, the duration of natural wind simulation based on a segment of audio data is also limited. Therefore, after completing control based on the air conditioning gears corresponding to all the audio amplitudes in the audio amplitude set, the air conditioning gears corresponding to all the audio amplitudes can be cycled through to continue controlling the air conditioning.

[0083] In summary, by implementing the embodiments of the present application, based on the audio data of natural wind, an audio amplitude set of the audio data is determined, and according to the size of each audio amplitude in the audio amplitude set, the air-conditioning gear corresponding to each audio amplitude is determined, and in turn, according to the air-conditioning gear corresponding to each audio amplitude in the audio amplitude set, the wind speed of the air-conditioning is controlled to simulate natural wind. The audio amplitude carried by the audio data of natural wind can capture the strong and weak fluctuation characteristics and random characteristics of natural wind, and then the air-conditioning wind speed can be controlled based on the air-conditioning gear corresponding to the audio amplitude. Natural wind can be accurately simulated, and fatigue and discomfort of the user caused by a fixed wind speed can be avoided, thereby improving the user experience, especially in long-distance driving, and reducing the user's fatigue.

[0084] refer to Figure 2 , which shows a flowchart of the steps of another natural wind simulation method provided by an embodiment of the present application, the method comprising:

[0085] Step 201: determining an audio amplitude set of the audio data based on the audio data of natural wind;

[0086] Step 202: Determine the air conditioning gear corresponding to each audio amplitude according to the magnitude of each audio amplitude in the audio amplitude set; there is a positive correlation between the magnitude of the audio amplitude and the magnitude of the air conditioning gear;

[0087] Step 203 : Control the wind speed of the air conditioner according to the air conditioner gear corresponding to each audio amplitude in the audio amplitude set in turn to simulate natural wind.

[0088] The above steps 201 to 203 can refer to the above Figure 1 The contents of the embodiments will not be repeated here.

[0089] Optionally, the method further includes:

[0090] Step A1, in response to a user recording operation, recording audio data of natural wind in the current environment; or

[0091] Step A2: In response to a user selection operation, determine audio data corresponding to the user selection operation in a preset audio library.

[0092] In the embodiments of the present application, in different usage scenarios, such as in a vehicle, an audio acquisition device, such as a microphone, may be provided. When a user triggers a recording operation, the microphone converts the natural wind sound vibrations in the environment into electrical signals. The audio acquisition program samples and quantizes these electrical signals at a specific sampling frequency (e.g., the common 44100 Hz) and quantization bit number (e.g., 16 bits), converts them into digital audio data, and encodes and stores them for extraction of audio amplitude for air conditioning control.

[0093] Users can also select specific audio from the preset audio library. The preset audio library can be a collection of audio resources pre-established and stored in a storage device, which contains natural wind audio data of various types and characteristics. When the user makes a selection operation, the user's selection instruction can be obtained through the user interface (such as the display screen of the vehicle terminal, the display screen of the air conditioner, the operating interface of the mobile phone program, etc.). The system searches and matches in the preset audio library according to the instruction, and determines the audio data corresponding to the user's selection operation by comparing the identification information of the audio data (such as file name, label, audio feature description, etc.). The audio data is then read from the storage device for use in air conditioning control after extracting the audio amplitude.

[0094] For example, when a user opens a car terminal, the interface provides a "Natural Wind Audio Selection" menu. The menu displays multiple options, such as "Seaside Breeze," "Forest Gust," and "Grassland Wind." The user clicks on "Forest Gust," generating a selection command. Based on this selection command, the car terminal searches the preset audio library for audio data with the file name containing "Forest Gust" or tagged with "Forest Gust" to simulate the effect of a forest gust.

[0095] By implementing the embodiments of the present application, users can record specific natural wind audio data according to their specific environment, flexibly meeting the user's personalized needs; and the preset audio library provides users with a variety of natural wind audio options, and natural wind audio data can be determined through simple selection operations, thereby improving the efficiency of users using air conditioning to simulate natural wind.

[0096] If the sampling frequency (the number of times data is collected per second) is high when sampling audio data, the audio data may contain a large amount of audio amplitude data, which will occupy a large amount of computing resources during processing, resulting in slow processing speed and high storage pressure. It may also affect the air conditioning control efficiency, and ultimately affect the user experience.

[0097] Optionally, the step 201 of determining an audio amplitude set of the audio data based on the audio data of natural wind includes:

[0098] Sub-step 2011: determining a candidate audio amplitude set based on the audio data of natural wind; the candidate audio amplitude set includes all audio amplitudes in the audio data;

[0099] Sub-step 2012: determining, based on a preset sampling parameter, a plurality of key audio amplitudes corresponding to the sampling parameter in the candidate audio amplitude set; a correlation relationship being established between the magnitude of the sampling parameter and the number of the key audio amplitudes;

[0100] Sub-step 2013: obtaining a final audio amplitude set based on the plurality of key audio amplitudes.

[0101] In this embodiment, the natural wind audio data is analyzed to extract all the audio amplitudes, forming a candidate audio amplitude set. This candidate audio amplitude set includes all the audio amplitude information in the audio, and can more comprehensively reflect the intensity changes of the natural wind sound, thereby more comprehensively reflecting the dynamic characteristics of natural wind.

[0102] Preset sampling parameters are used to screen candidate audio amplitude sets. Different types of sampling parameters have different correlations with the number of audio amplitudes. Sampling parameters can include sampling intervals, audio amplitude change thresholds, and so on. If the sampling parameter is the sampling interval, there is a negative correlation between the interval and the number of key audio amplitudes. If the sampling parameter is the audio amplitude change threshold, there is a negative correlation between the audio amplitude change threshold and the number of key audio amplitudes. If the sampling parameter is the sampling frequency, there is a positive correlation between the sampling frequency and the number of key audio amplitudes. The types of sampling parameters are not specifically limited here.

[0103] When sampling is performed within a longer time interval (i.e., low sampling frequency) or at a higher audio amplitude change threshold, the number of key audio amplitudes screened out is smaller; conversely, when sampling is performed within a shorter time interval (i.e., high sampling frequency) or at a lower audio amplitude change threshold, the number of key audio amplitudes increases. By adjusting the sampling parameters, the data volume and the degree of retention of the original signal characteristics can be balanced.

[0104] Taking the audio amplitude change threshold as an example of a sampling parameter, if the change in audio amplitude is small enough to reach the audio amplitude change threshold, the corresponding audio amplitude data can be deleted. For example, if the audio amplitude change threshold is 2, for the audio amplitude sequence 1, 2, 6, 3, 1 (only relative values ​​are used as an example), the difference between adjacent points is calculated. If the difference from 1 to 2 is 1, which does not reach the audio amplitude change threshold of 2, the audio amplitude 2 data is deleted. If the difference from 2 to 6 is 4, which reaches the audio amplitude change threshold of 2, the audio amplitude 6 data can be retained. This captures the key parts of the sound signal where the audio amplitude changes dramatically, better reflects the dynamic changes of the sound, and reduces the amount of data.

[0105] For example, there is currently 60 seconds of natural wind audio data. Within these 60 seconds, there are a large number of audio amplitude values. Based on these audio amplitude values, a candidate audio amplitude set is constructed. If the preset sampling parameter is to sample once every 10 seconds (that is, the time interval is 10 seconds), then a total of 6 samples will be sampled in the 60-second audio. In the candidate audio amplitude set, the audio amplitude values ​​corresponding to the 10th second, 20th second, 30th second, 40th second, 50th second, and 60th second moments are selected as key audio amplitudes. If the sampling parameter is adjusted to sampling once every 5 seconds, the number of sampling times becomes 12 times, and the number of key audio amplitudes selected also increases accordingly. After the above sampling process, 6 key audio amplitudes (taking sampling once every 10 seconds as an example) are obtained, such as 30, 80, 100, 60, 40, and 120. These key audio amplitudes can constitute the final audio amplitude set, and the related equipment can be controlled based on this set to simulate the effect of natural wind.

[0106] In implementing the embodiments of the present application, by determining a candidate audio amplitude set and then filtering the key audio amplitudes according to the sampling parameters, the final audio amplitude set obtained reduces the number of audio amplitudes in the original audio data, simplifies the data, and thereby reduces the complexity and computational complexity of data processing, thereby improving processing efficiency. Although the amount of data is reduced, the final audio amplitude set still retains some of the key audio amplitude characteristics in the natural wind audio data and can still reflect the changing trends of natural wind, such as changes in wind force and the appearance of gusts, and can more accurately simulate the actual conditions of natural wind, thereby improving the user experience. By adjusting the sampling parameters, the final audio amplitude set can be flexibly determined according to different application requirements and scenarios. For application scenarios with high precision requirements, more key audio amplitudes can be obtained by adjusting the sampling parameters. For scenarios with high real-time requirements or limited data processing capabilities, the number of key audio amplitudes can also be reduced by adjusting the sampling parameters, thereby improving the flexibility of air conditioning control.

[0107] Audio amplitude can reflect the dynamic laws of natural wind. When determining the corresponding air conditioning gear based on the audio amplitude, if the air conditioning gear corresponding to the audio amplitude cannot be accurately determined, the simulation effect will be poor when simulating natural wind based on the determined air conditioning gear, and the natural wind experience will not be restored.

[0108] Optionally, the step 202 of determining the air conditioning gear corresponding to each audio amplitude according to the magnitude of each audio amplitude in the audio amplitude set includes:

[0109] Sub-step 2021, determining an amplitude range based on the maximum audio amplitude and the minimum audio amplitude in the audio data;

[0110] Sub-step 2022: determining a preset number of marked amplitudes in the amplitude interval according to a preset number of air conditioning gear positions to obtain a marked amplitude set; the marked amplitudes correspond to the air conditioning gear positions;

[0111] Sub-step 2023, traversing the audio amplitudes in the audio amplitude set, and comparing each audio amplitude with the marked amplitude set;

[0112] Sub-step 2024: For any audio amplitude, if there is a marked amplitude identical to the audio amplitude in the marked amplitude set, determining a target marked amplitude identical to the audio amplitude, and using the air conditioning gear corresponding to the target marked amplitude as the target air conditioning gear corresponding to the audio amplitude; or

[0113] In sub-step 2025, for any audio amplitude, if there is no marked amplitude identical to the audio amplitude in the marked amplitude set, a target marked amplitude adjacent to the audio amplitude is determined in the marked amplitude set, and the air conditioning gear corresponding to the target marked amplitude is used as the target air conditioning gear corresponding to the audio amplitude.

[0114] In an embodiment of the present application, the audio amplitude in the audio data reflects the energy strength of the sound. When determining the correspondence between the air conditioning gear and the audio amplitude, the maximum audio amplitude and the minimum audio amplitude in the audio data can be determined first. The maximum audio amplitude and the minimum audio amplitude can define the amplitude variation range of the entire audio data, that is, the amplitude interval.

[0115] When it is known that there is a preset number of air-conditioning gears (for example, common air conditioners have four gears: low, medium, high, and strong, and the preset number is 4), within the determined amplitude range, determine the same mark amplitude as the number of air-conditioning gears, and then obtain a mark amplitude set including several mark amplitudes. For example, the amplitude range is [0,100], and the preset number of air-conditioning gears is 4, then the mark amplitudes can be 25, 50, 75, and 100. Among them, the difference between each mark amplitude is fixed, that is, the amplitude range is simply divided evenly according to the preset number, and it can also be divided based on a more complex method, such as the difference between adjacent mark amplitudes is increasing. For example, the amplitude range is [0,100], the preset number of air-conditioning gears is 4, and the mark amplitudes can be 10, 30, 60, and 100.

[0116] The marker amplitude can be thought of as a "scale" within the amplitude range, dividing the entire amplitude range into several segments. Since both the marker amplitude and the air conditioning gear can be preset, a one-to-one correspondence can be established between marker amplitudes and air conditioning gears. The corresponding air conditioning gear can be determined based on any marker amplitude.

[0117] For each audio amplitude in the audio amplitude set, compare it with each marker amplitude in the marker amplitude set. When an audio amplitude is the same as a marker amplitude, it means that the current audio amplitude falls directly on the "scale" within the amplitude range. The marker amplitude can be directly used as the target marker amplitude, and the air-conditioning gear corresponding to the target marker amplitude is determined as the target air-conditioning gear corresponding to the audio amplitude. For example, if there is an audio amplitude of 50 in the audio amplitude set, since 50 is the same as one of the marker amplitudes (25, 50, 75, 100), and the air-conditioning gear corresponding to the target marker amplitude 50 is the third gear, the third gear can be used as the target air-conditioning gear corresponding to the current audio amplitude 50.

[0118] In actual audio data, the audio amplitude varies continuously and is relatively large, while the set marker amplitudes are discrete and finite. If the current audio amplitude is not equal to any marker amplitude, that is, if there is no marker amplitude identical to the audio amplitude in the marker amplitude set, this indicates that the current audio amplitude does not fall on the "scale" (i.e., marker amplitude) within the amplitude range, but instead falls between two marker amplitudes. For example, an audio amplitude of 30 falls between marker amplitudes 25 and 50. It is understood that 0 can also be used as a marker amplitude, for example, an audio amplitude of 10 falls between 0 and marker amplitude 25.

[0119] The marker amplitude that is closest to the current audio amplitude among the marker amplitudes smaller than the current audio amplitude, and the marker amplitude that is closest to the current audio amplitude among the marker amplitudes greater than the current audio amplitude, are the marker amplitudes adjacent to the current audio amplitude. For example, marker amplitude 25 and marker amplitude 50 are adjacent marker amplitudes for audio amplitude 30.

[0120] It is understood that when there are multiple, for example, two, adjacent marked amplitudes, the air conditioning gear corresponding to each adjacent marked amplitude can be determined based on the two adjacent marked amplitudes simultaneously, thereby obtaining two target air conditioning gears corresponding to the current audio amplitude. Furthermore, the air conditioning control can be performed alternately based on the two target air conditioning gears, for example, switching to the other target air conditioning gear for air conditioning control every time a specific time period has passed. Other methods can also be used to control the air conditioning based on the two target air conditioning gears, which are not limited here.

[0121] Alternatively, the target air conditioning gear position can be determined by calculating the difference between the current audio amplitude and different adjacent marked amplitudes. Specifically, by comparing the distance between the audio amplitude and adjacent marked amplitudes within the amplitude range, the current audio amplitude is determined to be closer to the adjacent marked amplitude. This allows control based on a target air conditioning gear position to more closely reflect the actual situation reflected by the audio data.

[0122] For example, four marker amplitudes have been identified: 10, 28, 46, and 64, corresponding to the four air conditioner gears, arranged in order from low to high. An audio amplitude in the audio amplitude set is 35, which is different from any of the marker amplitudes. At this point, the difference between it and the adjacent marker amplitudes can be determined. The difference between 35 and 28 is 7, the difference between 35 and 46 is 11, and the difference between 35 and 28 is even smaller, meaning 35 is closer to the marker amplitude of 28. Therefore, the air conditioner gear corresponding to the target marker amplitude of 28 can be determined as the target air conditioner gear corresponding to the audio amplitude of 35.

[0123] In addition, another audio amplitude in the audio amplitude set is 55, which has a difference of 9 with the marker amplitude 46 and a difference of 9 with the marker amplitude 64. At this time, the audio amplitude 55 has the same difference as the two adjacent marker amplitudes. The target marker amplitude can also be determined according to a pre-set method. For example, when the difference is the same, the smaller marker amplitude is taken, and the air-conditioning gear corresponding to the marker amplitude 46 is used as the target air-conditioning gear; a larger marker amplitude can also be taken, or it can be determined based on other factors, which are not specifically limited here.

[0124] In an embodiment of the present application, an amplitude range is determined based on the maximum audio amplitude and the minimum audio amplitude, and a preset number of mark amplitudes are determined based on a preset number of air-conditioning gears. When the audio amplitude is the same as any mark amplitude, the air-conditioning gear corresponding to the target mark amplitude is used as the target air-conditioning gear. When the audio amplitude is different from any mark amplitude, the adjacent target mark amplitude and the target air-conditioning gear are determined. This can convert several continuously changing audio amplitudes into a finite number of discrete air-conditioning gears, and quickly determine the air-conditioning gears corresponding to different audio amplitudes through the mark amplitude, thereby improving the air-conditioning control efficiency.

[0125] In addition, the target air-conditioning gear corresponding to the audio amplitude between the marked amplitudes is determined by difference calculation, which makes the gear determination process more robust and adaptable, and improves the stability and reliability of air-conditioning control based on audio data.

[0126] Optionally, the step 202 of determining the air conditioning gear corresponding to each audio amplitude according to the magnitude of each audio amplitude in the audio amplitude set includes:

[0127] Sub-step 2025, determining an amplitude range based on the maximum audio amplitude and the minimum audio amplitude in the audio data;

[0128] Sub-step 2026: dividing the amplitude interval into the preset number of amplitude sub-intervals according to the preset number of air conditioning gear positions; the amplitude sub-intervals correspond to the air conditioning gear positions;

[0129] Sub-step 2027: Determine the target amplitude sub-interval of each audio amplitude in the audio amplitude set according to the magnitude of each audio amplitude, and use the air conditioning gear corresponding to the target amplitude sub-interval as the target air conditioning gear corresponding to the audio amplitude.

[0130] In the embodiment of the present application, the preset number of amplitude intervals and air-conditioning gears is determined, which will not be repeated here. According to the preset number, the determined amplitude interval is evenly divided or divided into a corresponding number of amplitude sub-intervals in a specific manner (for example, the range of the amplitude sub-interval is increasing or decreasing, without limitation). Each amplitude sub-interval corresponds to its own air-conditioning gear. The interval division realizes the process of discretizing the continuous audio amplitude range, which is convenient for corresponding different air-conditioning gears according to different audio amplitudes.

[0131] For each audio amplitude in the audio amplitude set, the current audio amplitude is compared with the ranges of the respective amplitude subranges to determine the amplitude subrange that the current audio amplitude falls into. The air conditioning setting corresponding to that amplitude subrange is the target air conditioning setting for that audio amplitude.

[0132] For example, consider the amplitude interval [20, 200]. If the air conditioner has five settings (preset to 5), the amplitude interval [20, 200] is divided into subintervals. First, calculate the interval length as 200 - 20 = 180, and the length of each subinterval as 36. The resulting five amplitude subintervals are: [20, 55], [56, 91], [92, 127], [128, 164], and [165, 200], corresponding to the five settings of the air conditioner. Consider an audio amplitude set with an amplitude of 110. Comparison shows that the current audio amplitude falls within the amplitude subinterval [92, 127]. Since the subinterval [92, 127] corresponds to the third setting of the air conditioner, the third setting can be used as the target setting for the audio amplitude of 110.

[0133] By implementing the embodiments of the present application, by determining the amplitude interval and dividing it into a preset number of amplitude sub-intervals, the amplitude sub-interval in which each audio amplitude is located is determined according to the size of the audio amplitude, and the corresponding target air-conditioning gear is determined. This allows for convenient determination of the target air-conditioning gear for each audio amplitude, and allows for mapping a large number of audio amplitudes of different sizes to their respective air-conditioning gears, thereby controlling the air-conditioning to simulate natural wind and improving the efficiency of air-conditioning control.

[0134] Since there are multiple audio amplitudes in the audio amplitude set, and each audio amplitude may correspond to a different air conditioner gear, to simulate natural wind, the air conditioner must be controlled in an orderly manner according to each audio amplitude. Otherwise, the experience of natural wind cannot be simulated, and the air conditioner control process may even become chaotic.

[0135] Optionally, step 203 of controlling the wind speed of the air conditioner to simulate natural wind according to the air conditioner gear corresponding to each audio amplitude in the audio amplitude set includes:

[0136] Sub-step 2031: determining time information corresponding to each audio amplitude in the audio amplitude set, and determining an audio amplitude sequence based on the time information corresponding to each audio amplitude; the time information is used to indicate the time point at which the audio amplitude was collected;

[0137] Sub-step 2032: Based on a first audio amplitude in the audio amplitude sequence and time information corresponding to the first audio amplitude, triggering control of the air speed of the air conditioner according to the air conditioner gear corresponding to the first audio amplitude;

[0138] Sub-step 2033: Continue to trigger, based on the next audio amplitude in the audio amplitude sequence and the time information corresponding to the next audio amplitude, control the air speed of the air conditioner according to the air conditioner gear corresponding to the next audio amplitude, until the audio amplitude sequence is traversed.

[0139] In the embodiment of the present application, in a scene simulating natural wind, the intensity of the natural wind changes dynamically over time, and the audio amplitude in the audio data can reflect the changes in wind intensity. Each audio amplitude corresponds to a specific point in time when it was collected. When the audio amplitude and the corresponding time information are associated, it can be understood as marking each audio amplitude with a "time coordinate." Arranging the audio amplitudes in the audio amplitude set in chronological order can form an audio amplitude sequence.

[0140] Based on each audio amplitude in the audio amplitude sequence and its corresponding time information, a wind sound audio amplitude characteristic curve can be generated. This curve can represent the state changes of the audio amplitude. Furthermore, since each audio amplitude corresponds to an air conditioner gear, combining the air conditioner gear and its corresponding time information can generate a gear change curve. Since the air conditioner gear determines the air speed and thus affects the air volume generated by the air conditioner, this curve can also be called an air volume change curve.

[0141] Figure 3 This is a flow chart of generating an air volume change curve provided by an embodiment of the present application;

[0142] Step 301, determining audio data;

[0143] Step 302, extracting the audio amplitude of the audio data;

[0144] Step 303: determining an amplitude range according to the maximum and minimum values ​​of the audio amplitude;

[0145] Step 304, determining the mark amplitude in the amplitude interval;

[0146] Step 305, determining the air conditioning gear corresponding to each audio amplitude;

[0147] Step 306: Determine the air volume variation curve.

[0148] The first audio amplitude in the audio amplitude sequence and its corresponding time information mark the starting point of the entire natural wind simulation process. At the time corresponding to the first audio amplitude, the air conditioner's wind speed is controlled, causing the air conditioner to start operating at a speed corresponding to the natural wind intensity at that moment.

[0149] Natural wind is constantly changing, so each audio amplitude needs to be processed sequentially, following the order in which it appears in the audio amplitude sequence. For the next audio amplitude in the sequence, the air conditioner's wind speed is adjusted again based on its timing information and the corresponding air conditioner gear. This ensures that the air conditioner's wind speed changes are synchronized with the changes in natural wind intensity over time. Simulating the dynamic changes of natural wind continues until the entire audio amplitude sequence is traversed, fully simulating the natural wind corresponding to the audio data.

[0150] For example, consider 10 minutes of natural wind audio data, with 60 audio amplitude values, A1, A2, ..., A60, corresponding to acquisition times of t1 = 10 seconds, t2 = 20 seconds, ..., t60 = 600 seconds. These audio amplitudes are arranged in chronological order to form an audio amplitude sequence {A1, A2, ..., A60}. This audio amplitude sequence can represent the change in natural wind intensity over time over 10 minutes. The first audio amplitude of 20 corresponds to the air conditioner gear position 2. When the time reaches 10 seconds, a command can be sent to the air conditioner to adjust the air speed to the corresponding wind speed of gear 2, simulating the natural wind intensity at that moment. Control is then continued based on the next audio amplitude, processing each audio amplitude in the audio amplitude sequence in turn until the last audio amplitude is processed, completing the simulation of the natural wind for the 10 minutes.

[0151] By implementing the embodiments of the present application, the air conditioner wind speed is controlled by combining the time information corresponding to the audio amplitude, which can accurately reproduce the dynamic changes in the natural wind intensity over time. The wind force of natural wind is sometimes strong and sometimes weak and fluctuates continuously. Through the above-mentioned control process, the adjustment of the air conditioner wind speed is synchronized with the actual changes in the natural wind, which improves the accuracy of the natural wind simulation and allows users to experience a similar experience to the outdoor natural wind in enclosed spaces such as indoors and in cars, thereby improving the comfort level. In addition, the air conditioner wind speed is dynamically adjusted according to the actual situation of the natural wind. When the natural wind is weak, the air conditioner is operated at a lower wind speed to avoid unnecessary high wind speed operation, thereby reducing the energy consumption of the air conditioner.

[0152] People's perception of natural wind mainly includes the intuitive physical sensation of wind speed or wind volume, but if only the wind speed of natural wind is simulated, there may still be a problem that the natural wind experience is too monotonous.

[0153] Optionally, the method further includes:

[0154] Step B1, while controlling the air conditioner wind speed according to each audio amplitude corresponding to the air conditioner gear, synchronously playing the audio data; wherein, the synchronization means that the time information corresponding to the audio amplitude used to control the air conditioner gear at any moment matches the time information corresponding to the playback progress of the audio data.

[0155] In this embodiment of the present application, when controlling the air conditioner settings based on each audio amplitude to generate different wind speeds, the audio data used to extract the audio amplitude can be played synchronously to achieve a more realistic simulation effect. Synchronization means that at any moment, the time information corresponding to the audio amplitude used to control the air conditioner settings matches the time information corresponding to the playback progress of the audio data.

[0156] Since the audio amplitude used to control the air conditioning gear is extracted from the audio data, the entire audio amplitude set matches the audio data. When the audio data starts playing, the air conditioning control can be synchronized based on the air conditioning gear corresponding to the audio amplitude set. This ensures that at any moment, the wind speed simulated by the air conditioner is consistent with the natural wind intensity represented by the audio playing at that time, thereby achieving the effect of sound and wind synchronization and restoring the experience of natural wind.

[0157] For example, when the playback progress of the audio data reaches 1 minute, the corresponding audio amplitude is 30. At this time, the wind sound can be relatively small, and the air conditioning gear corresponding to the audio amplitude of 30 is gear 3, so the air conditioner can be adjusted to gear 3; when the playback progress of the audio data reaches 2 minutes, the corresponding audio amplitude is 50. At this time, the wind sound can be relatively large, and the air conditioning gear corresponding to the audio amplitude of 50 is gear 5, so the air conditioner can be adjusted to gear 5. The user can hear the natural wind sound of the corresponding intensity and feel the corresponding wind speed, realizing the natural wind simulation effect with synchronized sound and wind.

[0158] By implementing the embodiments of the present application, while controlling the air conditioner wind speed according to the air conditioner gear corresponding to each audio amplitude in turn, the audio data is played synchronously, and natural wind is simulated by synchronizing sound and wind, which can enhance the realism of the simulation effect, achieve sensory synergy of hearing and touch, and enhance the experience of natural wind simulation.

[0159] Optionally, the method further includes:

[0160] Step B2: at any moment, determining target time information corresponding to the playback progress of the audio data, and determining the real-time audio amplitude of the audio data at the target time information;

[0161] Step B3: When the current air-conditioning gear of the air-conditioner is different from the real-time air-conditioning gear corresponding to the real-time audio amplitude, control the air-conditioner to operate at the real-time air-conditioning gear.

[0162] In an embodiment of the present application, the air conditioner gear can also be corrected in real time based on the time information corresponding to the audio data playback progress. For example, when the audio data plays to one minute, the real-time audio amplitude corresponding to the time information is determined, and then the real-time air conditioner gear corresponding to the real-time audio amplitude is determined. The real-time air conditioner gear is the theoretical operating gear of the air conditioner at that moment.

[0163] It can communicate with the air conditioner to obtain the current air conditioner gear of the air conditioner. If the current air conditioner gear is inconsistent with the real-time air conditioner gear, a control instruction can be sent to the air conditioner to correct the working gear of the air conditioner to the real-time air conditioner gear.

[0164] Figure 4This is a flow chart of wind speed control provided by an embodiment of the present application;

[0165] Step 401: Play audio data

[0166] Step 402: Check if audio is playing

[0167] Step 403: End if not played;

[0168] Step 404: Get the time point corresponding to the playback progress during playback.

[0169] Step 405: Determine the real-time air conditioning gear corresponding to the time point

[0170] Step 406: Determine whether the real-time air conditioning gear position is different from the current air conditioning gear position.

[0171] Step 407: If the real-time air conditioning gear position is the same as the current air conditioning gear position, maintain the current gear position and proceed to step 402;

[0172] Step 408: If the real-time air conditioning gear position is different from the current air conditioning gear position, an air conditioning gear position switching instruction is sent;

[0173] Step 409 , update the current gear and go to step 402 .

[0174] In summary, by implementing the embodiments of the present application, based on the audio data of natural wind, an audio amplitude set of the audio data is determined, and according to the size of each audio amplitude in the audio amplitude set, the air conditioning gear corresponding to each audio amplitude is determined. In turn, according to the air conditioning gear corresponding to each audio amplitude in the audio amplitude set, the wind speed of the air conditioner is controlled to simulate natural wind. The audio amplitude carried by the audio data of natural wind can capture the strong and weak fluctuation characteristics and random characteristics of the natural wind, and then the air conditioning wind speed can be controlled based on the air conditioning gear corresponding to the audio amplitude. Natural wind can be accurately simulated, and fatigue and discomfort of the user caused by a fixed wind speed can be avoided, thereby improving the user experience.

[0175] Figure 5 The embodiment of the present application provides a natural wind simulation device, the device 50 comprising:

[0176] An audio amplitude module 501 is configured to determine an audio amplitude set of the audio data based on the audio data of natural wind;

[0177] An amplitude range module 502 is configured to determine an air conditioning range corresponding to each audio amplitude in the audio amplitude set according to the amplitude of each audio amplitude; there is a positive correlation between the amplitude of the audio amplitude and the air conditioning range;

[0178] The amplitude control module 503 is configured to control the wind speed of the air conditioner according to the air conditioner gear corresponding to each audio amplitude in the audio amplitude set in turn to simulate natural wind.

[0179] Optional, amplitude gear module, including:

[0180] A first interval submodule, configured to determine an amplitude interval based on a maximum audio amplitude and a minimum audio amplitude in the audio data;

[0181] An interval marking submodule, configured to determine a preset number of marked amplitudes in the amplitude interval according to a preset number of air conditioner gear positions, so as to obtain a marked amplitude set; wherein the marked amplitudes correspond to the air conditioner gear positions;

[0182] a tag comparison submodule, configured to traverse the audio amplitudes in the audio amplitude set and compare each audio amplitude with the tag amplitude set;

[0183] The same-mark submodule is configured to determine, for any audio amplitude, a target marked amplitude that is the same as the audio amplitude if there is a marked amplitude that is the same as the audio amplitude in the marked amplitude set, and use the air conditioning gear corresponding to the target marked amplitude as the target air conditioning gear corresponding to the audio amplitude;

[0184] The tag difference submodule is configured to, for any audio amplitude, determine a target tag amplitude adjacent to the audio amplitude in the tag amplitude set if there is no tag amplitude identical to the audio amplitude in the tag amplitude set, and use the air conditioning gear corresponding to the target tag amplitude as the target air conditioning gear corresponding to the audio amplitude.

[0185] Optional, amplitude gear module, including:

[0186] A second interval submodule, configured to determine an amplitude interval based on a maximum audio amplitude and a minimum audio amplitude in the audio data;

[0187] An interval division submodule, configured to divide the amplitude interval into a preset number of amplitude sub-intervals according to a preset number of air-conditioning gears; the amplitude sub-intervals correspond to the air-conditioning gears;

[0188] The amplitude interval submodule is used to determine the target amplitude subinterval of each audio amplitude according to the size of each audio amplitude in the audio amplitude set, and use the air conditioning gear corresponding to the target amplitude subinterval as the target air conditioning gear corresponding to the audio amplitude.

[0189] Optional, amplitude control module, including:

[0190] an amplitude sequence submodule, configured to determine time information corresponding to each audio amplitude in the audio amplitude set, and determine an audio amplitude sequence based on the time information corresponding to each audio amplitude; the time information is used to indicate a time point at which the audio amplitude is collected;

[0191] a first control submodule, configured to trigger, based on a first audio amplitude in the audio amplitude sequence and time information corresponding to the first audio amplitude, control the wind speed of the air conditioner according to the air conditioner gear corresponding to the first audio amplitude;

[0192] The subsequent control submodule is used to continue to trigger the air conditioner gear corresponding to the next audio amplitude based on the next audio amplitude in the audio amplitude sequence and the time information corresponding to the next audio amplitude, and control the wind speed of the air conditioner until the audio amplitude sequence is traversed.

[0193] Optional, audio amplitude module, including:

[0194] A candidate set submodule is configured to determine a candidate audio amplitude set based on the natural wind audio data; the candidate audio amplitude set includes all audio amplitudes in the audio data;

[0195] an audio amplitude screening submodule, configured to determine, based on a preset sampling parameter, a plurality of key audio amplitudes corresponding to the sampling parameter from the candidate audio amplitude set; wherein a magnitude of the sampling parameter is associated with the number of the key audio amplitudes;

[0196] The screening set submodule is configured to obtain a final audio amplitude set based on the plurality of key audio amplitudes.

[0197] Optionally, the device further includes:

[0198] A synchronous audio module is used to synchronously play the audio data while controlling the air conditioner wind speed according to the air conditioner gear corresponding to each audio amplitude in sequence; wherein the synchronization means that the time information corresponding to the audio amplitude used to control the air conditioner gear at any moment matches the time information corresponding to the playback progress of the audio data.

[0199] Optionally, the device further includes:

[0200] A time search module, configured to determine, at any moment, target time information corresponding to the playback progress of the audio data, and determine the real-time audio amplitude of the audio data at the target time information;

[0201] The gear correction module is used to control the air conditioner to operate at the real-time air conditioner gear when the current air conditioner gear of the air conditioner is different from the real-time air conditioner gear corresponding to the real-time audio amplitude.

[0202] In summary, by implementing the embodiments of the present application, based on the audio data of natural wind, an audio amplitude set of the audio data is determined, and according to the size of each audio amplitude in the audio amplitude set, the air conditioning gear corresponding to each audio amplitude is determined. In turn, according to the air conditioning gear corresponding to each audio amplitude in the audio amplitude set, the wind speed of the air conditioner is controlled to simulate natural wind. The audio amplitude carried by the audio data of natural wind can capture the strong and weak fluctuation characteristics and random characteristics of the natural wind, and then the air conditioning wind speed can be controlled based on the air conditioning gear corresponding to the audio amplitude. Natural wind can be accurately simulated, and fatigue and discomfort of the user caused by a fixed wind speed can be avoided, thereby improving the user experience.

[0203] The present application also provides an electronic device, such as Figure 6 As shown, it includes a processor 1001 , a communication interface 1002 , a memory 1003 and a communication bus 1004 , wherein the processor 1001 , the communication interface 1002 , and the memory 1003 communicate with each other via the communication bus 1004 .

[0204] The memory 1003 is used to store computer programs.

[0205] When the processor 1001 is used to execute the program stored in the memory 1003, the steps in the above-mentioned natural wind simulation method are implemented, which will not be repeated here.

[0206] The communication bus mentioned in the electronic device mentioned above may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. This communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is used in the figure, but this does not mean that there is only one bus or only one type of bus.

[0207] The communication interface is used for communication between the above electronic device and other devices.

[0208] The memory may include random access memory (RAM) or non-volatile memory, such as at least one disk storage. Alternatively, the memory may be at least one storage device located away from the processor.

[0209] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, and discrete hardware components.

[0210] In another embodiment provided in the present application, a readable storage medium is further provided, on which a computer program is stored. When the program is executed by a processor, the natural wind simulation method described in the above embodiment is implemented.

[0211] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When software is used for implementation, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a readable storage medium or transmitted from one readable storage medium to another readable storage medium. For example, the computer instructions can be transmitted from a website, computer, server or data center to another website, computer, server or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. The readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrations. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)).

[0212] It should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply the existence of any such actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or device comprising the element.

[0213] Each embodiment in this specification is described in a related manner. Similar portions between the various embodiments can be referenced to each other. Each embodiment focuses on the differences from other embodiments. The embodiments of the apparatus, electronic device, readable storage medium, and computer program product containing instructions thereof are generally similar to the method embodiments, so their description is relatively simple. For related portions, reference can be made to the description of the method embodiments.

[0214] The above description is only a preferred embodiment of the present application and is not intended to limit the scope of protection of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application are included in the scope of protection of the present application.

Claims

1. A natural wind simulation method, characterized in that: The method comprises: determining, based on the audio data of natural wind, an audio amplitude set of the audio data; determining, based on the magnitude of each audio amplitude in the audio amplitude set, an air conditioning gear corresponding to each audio amplitude; wherein there is a positive correlation between the magnitude of the audio amplitude and the magnitude of the air conditioning gear; The wind speed of the air conditioner is controlled in sequence according to the air conditioner gear corresponding to each audio amplitude in the audio amplitude set to simulate natural wind.

2. The method according to claim 1, characterized in that The step of determining the air conditioning gear corresponding to each audio amplitude according to the magnitude of each audio amplitude in the audio amplitude set includes: determining an amplitude interval based on a maximum audio amplitude and a minimum audio amplitude in the audio data; According to a preset number of air-conditioning gear positions, a preset number of marked amplitudes are determined in the amplitude interval to obtain a marked amplitude set; the marked amplitudes correspond to the air-conditioning gear positions; Traversing the audio amplitudes in the audio amplitude set, and comparing each audio amplitude with the marked amplitude set; For any audio amplitude, if there is a marked amplitude identical to the audio amplitude in the marked amplitude set, determining a target marked amplitude identical to the audio amplitude, and using the air conditioning gear corresponding to the target marked amplitude as the target air conditioning gear corresponding to the audio amplitude; or For any audio amplitude, if there is no marked amplitude identical to the audio amplitude in the marked amplitude set, a target marked amplitude adjacent to the audio amplitude is determined in the marked amplitude set, and the air conditioning gear corresponding to the target marked amplitude is used as the target air conditioning gear corresponding to the audio amplitude.

3. The method according to claim 1, characterized in that The step of determining the air conditioning gear corresponding to each audio amplitude according to the magnitude of each audio amplitude in the audio amplitude set includes: determining an amplitude interval based on a maximum audio amplitude and a minimum audio amplitude in the audio data; According to a preset number of air conditioning gears, the amplitude interval is divided into the preset number of amplitude sub-intervals; there is a corresponding relationship between the amplitude sub-intervals and the air conditioning gears; According to the magnitude of each audio amplitude in the audio amplitude set, a target amplitude sub-interval of the audio amplitude is determined, and the air conditioning gear corresponding to the target amplitude sub-interval is used as the target air conditioning gear corresponding to the audio amplitude.

4. The method according to claim 1, wherein The step of controlling the wind speed of the air conditioner to simulate natural wind according to the air conditioner gear corresponding to each audio amplitude in the audio amplitude set includes: Determining time information corresponding to each audio amplitude in the audio amplitude set, and determining an audio amplitude sequence based on the time information corresponding to each audio amplitude, wherein the time information is used to indicate a time point at which the audio amplitude was collected; Based on a first audio amplitude in the audio amplitude sequence and time information corresponding to the first audio amplitude, triggering control of a wind speed of the air conditioner according to an air conditioner gear corresponding to the first audio amplitude; Continue to control the wind speed of the air conditioner according to the air conditioner gear corresponding to the next audio amplitude based on the next audio amplitude in the audio amplitude sequence and the time information corresponding to the next audio amplitude, until the audio amplitude sequence is traversed.

5. The method according to claim 1, wherein The step of determining an audio amplitude set of the audio data based on the audio data of natural wind comprises: Determining a candidate audio amplitude set based on the audio data of natural wind; wherein the candidate audio amplitude set includes all audio amplitudes in the audio data; According to a preset sampling parameter, a plurality of key audio amplitudes corresponding to the sampling parameter are determined in the candidate audio amplitude set; a magnitude of the sampling parameter and the number of the key audio amplitudes are correlated; A final audio amplitude set is obtained based on the multiple key audio amplitudes.

6. The method according to claim 1, characterized in that The method further comprises: While controlling the air conditioner wind speed according to the air conditioner gear corresponding to each audio amplitude in turn, the audio data is played synchronously; wherein, the synchronization means that the time information corresponding to the audio amplitude used to control the air conditioner gear at any moment matches the time information corresponding to the playback progress of the audio data.

7. The method according to claim 6, characterized in that The method further comprises: At any moment, determining target time information corresponding to the playback progress of the audio data, and determining the real-time audio amplitude of the audio data at the target time information; When a current air-conditioning gear of the air-conditioner is different from a real-time air-conditioning gear corresponding to the real-time audio amplitude, the air-conditioner is controlled to operate at the real-time air-conditioning gear.

8. A natural wind simulation device, characterized in that: The device comprises: An audio amplitude module, configured to determine an audio amplitude set of the audio data based on the audio data of natural wind; an amplitude gear module, configured to determine an air conditioning gear corresponding to each audio amplitude according to the magnitude of each audio amplitude in the audio amplitude set; wherein there is a positive correlation between the magnitude of the audio amplitude and the magnitude of the air conditioning gear; The amplitude control module is used to control the wind speed of the air conditioner in turn according to the air conditioner gear corresponding to each audio amplitude in the audio amplitude set to simulate natural wind.

9. An electronic device, characterized in that: include: A processor, a communication interface, a memory, and a communication bus; wherein the processor, the communication interface, and the memory communicate with each other via the communication bus; Memory for storing computer programs; The processor is configured to implement the steps of the natural wind simulation method according to any one of claims 1 to 7 when executing the program stored in the memory.

10. A readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the natural wind simulation method according to any one of claims 1 to 7 are implemented.