CN112667192A - Shell display state control method and device, electronic equipment and storage medium - Google Patents

Shell display state control method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112667192A
CN112667192A CN202011534339.1A CN202011534339A CN112667192A CN 112667192 A CN112667192 A CN 112667192A CN 202011534339 A CN202011534339 A CN 202011534339A CN 112667192 A CN112667192 A CN 112667192A
Authority
CN
China
Prior art keywords
audio
driving waveform
state
driving
audio file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011534339.1A
Other languages
Chinese (zh)
Inventor
师璐
宁鹏钢
古蒋林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202011534339.1A priority Critical patent/CN112667192A/en
Publication of CN112667192A publication Critical patent/CN112667192A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

The disclosure relates to a shell display state control method and device, electronic equipment and a storage medium. The method comprises the following steps: mapping the audio file into a driving waveform according to the audio playing effect; driving the state-tunable-device based on the driving waveform to cause the display state of the state-tunable-device to follow the audio change. In this embodiment, the display state of the electronic device shell can be adjusted by adjusting the display state of the state-adjustable device, so that the effect of the display state and the audio information following or synchronous following is achieved, and the use experience is improved.

Description

Shell display state control method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of control technologies, and in particular, to a method and an apparatus for controlling a display state of a housing, an electronic device, and a storage medium.
Background
At present, with the progress of science and technology, electronic devices are more and more important in the work and life of people, mobile terminals such as mobile phones and tablet computers have become an indispensable part of people to carry with them, and mobile terminals not only provide more diversified functions for users, but also have to provide product models with texture for users in industrial design due to the requirement on quality, so that the aesthetic feeling is more and more emphasized in the model design of mobile terminals. The housing is an essential component of the mobile terminal, and generally includes a metal housing and a plastic housing, and the color of the housing greatly affects the overall aesthetic quality of the mobile terminal.
Disclosure of Invention
The present disclosure provides a method and an apparatus for controlling a display status of a housing, an electronic device, and a storage medium, to solve the deficiencies of the related art.
According to a first aspect of the embodiments of the present disclosure, a method for controlling a display state of a housing is provided, which is adapted to include an electronic device, where a state-adjustable device is disposed in a housing of the electronic device; the state-adjustable device is used for adjusting the display state of the shell, and the method comprises the following steps:
mapping the audio file into a driving waveform according to the audio playing effect;
driving the state-tunable-device based on the driving waveform to cause the display state of the state-tunable-device to follow the audio change.
Optionally, mapping the audio file into a driving waveform according to the audio playing effect includes:
acquiring audio characteristic information of the audio file;
acquiring a driving waveform corresponding to the audio characteristic information based on a preset corresponding relation between the audio characteristic information and the driving waveform;
and the audio characteristic information and the amplitude value of the driving waveform in the corresponding relation are in a linear relation, or the amplitude values of the driving waveform are the same.
Optionally, mapping the audio file into a driving waveform according to the audio playing effect includes:
acquiring audio characteristic information of the audio file;
acquiring a target amplitude value corresponding to audio characteristic information based on a preset corresponding relation between the audio characteristic information and the amplitude value;
and adjusting the amplitude of a preset driving waveform to the target amplitude value to obtain the driving waveform corresponding to the audio characteristic information.
Optionally, mapping the audio file into a driving waveform according to the audio playing effect includes:
acquiring a characteristic value of each audio clip of the audio file;
acquiring a plurality of adjacent audio segments with characteristic values exceeding a characteristic value threshold value, and acquiring a segment combination consisting of the plurality of adjacent audio segments;
and acquiring a driving waveform corresponding to each audio segment in the segment combination.
Optionally, the driving waveforms corresponding to each audio segment in the segment combination are the same; or the amplitude of the driving waveform corresponding to each audio segment in the segment combination is linearly related to the audio characteristic information of the audio segment; or, the driving waveform corresponding to each audio segment in the segment combination is related to the audio characteristic information with the maximum variation in the audio segment.
Optionally, the audio file is an audio file stored locally or an audio file obtained from information about an environment where the electronic device of the audio acquisition device is located.
Optionally, the driving the state-adjustable device based on the driving waveform to make the display state of the state-adjustable device follow the audio change includes:
and playing the audio file, and driving the state-adjustable device based on the driving waveform to follow the playing of the audio file.
Optionally, driving the state-tunable-device based on the driving waveform comprises:
acquiring a trigger node of the audio file;
and playing the audio file, and driving the state-adjustable device at the trigger node of the audio file according to the driving waveform of each trigger node so as to ensure that the display state of the state-adjustable device synchronously changes along with the audio file.
Optionally, the acquiring the trigger node of the audio file includes:
acquiring the beat of the audio file, and taking the beat as the trigger node;
alternatively, the first and second electrodes may be,
and acquiring an audio clip of which the playing effect change difference value exceeds a preset threshold value in the audio file, and taking the audio clip starting node as the trigger node.
Optionally, the mapping the audio file to the driving waveform according to the audio playing effect includes:
dividing the audio file into a plurality of audio segments;
acquiring each audio clip and a driving waveform corresponding to each audio clip;
the method further comprises the following steps:
and when a preset number of audio segments and driving waveforms corresponding to the preset number of audio segments are acquired, executing a step of driving the state-adjustable device based on the driving waveforms so that the display state of the state-adjustable device changes along with the audio.
Optionally, the mapping the audio file to the driving waveform according to the audio playing effect includes:
acquiring an audio clip with a preset length of the audio file;
acquiring a driving waveform corresponding to the audio segment with the preset length;
driving the state-tunable-device based on the driving waveform to cause the display state of the state-tunable-device to follow the audio change, comprising:
and controlling the display state of the state adjustable device to synchronously change along with the audio segment with the preset length.
Optionally, driving the state-tunable-device based on the driving waveform includes:
filtering the drive waveform;
amplifying the filtered driving waveform;
and driving the state-adjustable device by using the amplified driving waveform.
Optionally, the method further comprises:
acquiring a service scene after the audio file is played;
acquiring a driving waveform template corresponding to the service scene;
and controlling the state-adjustable device to follow the waveform change in the driving waveform template according to the driving waveform template.
Optionally, the state-tunable-device is an electrochromic device or a polymer dispersed liquid crystal.
Optionally, the state change of the state-tunable-device comprises at least one of: the color state, the transparency and the saturation of the same color are changed.
According to a second aspect of the embodiments of the present disclosure, there is provided a housing display state control apparatus adapted to include an electronic device, a state-adjustable device being disposed in a housing of the electronic device; the state-adjustable device is used for adjusting the display state of the shell, and the device comprises:
the driving waveform acquisition module is used for mapping the audio file into a driving waveform according to the audio playing effect;
and the display state control module is used for driving the state-adjustable device based on the driving waveform so as to enable the display state of the state-adjustable device to follow the audio frequency change.
Optionally, the driving waveform obtaining module includes:
the audio characteristic acquisition unit is used for acquiring audio characteristic information of the audio file;
the driving waveform obtaining unit is used for obtaining a driving waveform corresponding to the audio characteristic information based on the corresponding relation between the preset audio characteristic information and the driving waveform;
and the audio characteristic information and the amplitude value of the driving waveform in the corresponding relation are in a linear relation, or the amplitude values of the driving waveform are the same.
Optionally, the driving waveform obtaining module includes:
the audio characteristic acquisition unit is used for acquiring audio characteristic information of the audio file;
the driving waveform obtaining unit is used for obtaining a target amplitude value corresponding to the audio characteristic information based on the corresponding relation between the preset audio characteristic information and the amplitude value;
and the driving waveform obtaining unit is used for adjusting the amplitude of a preset driving waveform to the target amplitude value and obtaining the driving waveform corresponding to the audio characteristic information.
Optionally, the driving waveform obtaining module includes:
the characteristic value acquisition unit is used for acquiring the characteristic value of each audio clip of the audio file;
the characteristic value acquisition unit is used for acquiring a plurality of adjacent audio segments of which the characteristic values exceed a characteristic value threshold value and acquiring a segment combination consisting of the plurality of adjacent audio segments;
and the driving waveform acquisition unit is used for acquiring the driving waveform corresponding to each audio segment in the segment combination.
Optionally, the driving waveforms corresponding to each audio segment in the segment combination are the same; or the amplitude of the driving waveform corresponding to each audio segment in the segment combination is linearly related to the audio characteristic information of the audio segment; or, the driving waveform corresponding to each audio segment in the segment combination is related to the audio characteristic information with the maximum variation in the audio segment.
Optionally, the audio file is an audio file stored locally or an audio file obtained from information about an environment where the electronic device of the audio acquisition device is located.
Optionally, the display state control module includes:
and the display state control unit is used for playing the audio file and driving the state adjustable device to follow the playing of the audio file based on the driving waveform.
Optionally, the display state control module includes:
the trigger node acquisition unit is used for acquiring the trigger node of the audio file;
and the display state control unit is used for playing the audio file and driving the state-adjustable device at the trigger nodes of the audio file according to the driving waveforms of the trigger nodes so as to ensure that the display state of the state-adjustable device synchronously changes along with the audio file.
Optionally, the trigger node acquiring unit is configured to acquire a beat of the audio file, and use the beat as the trigger node;
alternatively, the first and second electrodes may be,
and the audio file processing unit is further configured to acquire an audio clip in the audio file, where the play effect change difference exceeds a preset threshold, and use the start node of the audio clip as the trigger node.
Optionally, the driving waveform obtaining module includes:
an audio segment dividing unit for dividing the audio file into a plurality of audio segments;
the driving waveform acquiring unit is used for acquiring each audio segment and a driving waveform corresponding to each audio segment;
the device further comprises:
and the driving waveform counting module is used for triggering the display state control module when the preset number of audio segments and the driving waveforms corresponding to the preset number of audio segments are acquired.
Optionally, the driving waveform obtaining module includes:
the audio clip acquisition unit is used for acquiring an audio clip with a preset length of the audio file;
the driving waveform obtaining unit is used for obtaining a driving waveform corresponding to the audio segment with the preset length;
the display state control module is also used for controlling the display state of the state adjustable device to change along with the audio segment with the preset length.
Optionally, the display state control module includes:
the driving waveform filtering unit is used for filtering the driving waveform;
the drive waveform amplifying unit is used for amplifying the filtered drive waveform;
and the adjustable device driving unit is used for driving the state adjustable device by using the amplified driving waveform.
Optionally, the apparatus further comprises:
the service scene acquisition module is used for acquiring a service scene after the audio file is played;
the waveform template acquisition module is used for acquiring a driving waveform template corresponding to the service scene;
and the adjustable device driving module is used for controlling the state adjustable device to follow the waveform change in the driving waveform template according to the driving waveform template.
Optionally, the state-tunable-device is an electrochromic device or a polymer dispersed liquid crystal.
Optionally, the state change of the state-tunable-device comprises at least one of: the color state, the transparency and the saturation of the same color are changed.
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including:
a housing provided with a state-adjustable device;
a processor;
a memory for storing a computer program executable by the processor;
wherein the processor is configured to execute the computer program in the memory to implement the method described above.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium, in which an executable computer program is capable of the above-described method when executed by a processor.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
as can be seen from the above embodiments, the embodiments of the present disclosure can map an audio file into a driving waveform according to an audio playing effect; then, the state-adjustable device is driven based on the driving waveform to cause the display state of the state-adjustable device to follow the audio change. Like this, the display state of electronic equipment casing can be adjusted through the display state of the adjustable device of adjustment state in this embodiment, reaches the effect that display state and audio information follow or follow in step, promotes to use and experiences.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flowchart illustrating a case display state control method according to an exemplary embodiment.
Fig. 2 is a flow chart illustrating a method of acquiring a drive waveform according to an exemplary embodiment.
FIG. 3 is a flow chart illustrating another method of acquiring drive waveforms in accordance with an exemplary embodiment.
FIG. 4 is a flow chart illustrating yet another method of acquiring drive waveforms in accordance with an exemplary embodiment.
FIG. 5 is a flow chart illustrating yet another method of acquiring drive waveforms in accordance with an exemplary embodiment.
FIG. 6 is a flow chart illustrating yet another method of acquiring drive waveforms in accordance with an exemplary embodiment.
Fig. 7 is a flow chart illustrating another method of controlling a display status of a housing according to an exemplary embodiment.
FIG. 8 is a timing diagram illustrating synchronized triggered play of audio and actuation of a state-tunable device according to an exemplary embodiment.
FIG. 9 is a flow diagram illustrating preprocessing of drive waveforms according to an exemplary embodiment.
Fig. 10 is a flowchart illustrating yet another method of controlling a display state of a housing according to an exemplary embodiment.
Fig. 11 is a block diagram illustrating a housing display state control device according to an exemplary embodiment.
FIG. 12 is a block diagram illustrating an electronic device in accordance with an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The following exemplary described embodiments do not represent all embodiments consistent with the present disclosure. Rather, they are merely examples of devices consistent with certain aspects of the present disclosure as recited in the claims below.
In order to solve the above technical problem, an embodiment of the present disclosure provides a method for controlling a display state of a housing, which may be applied to an electronic device, where a state-adjustable device is disposed in a housing of the electronic device, and a display state of the housing may be adjusted by adjusting a display state of the state-adjustable device. The electronic equipment can control the display state of the state-adjustable device to synchronously change along with the audio information, so that the effect of changing the display state of the shell and the audio information is achieved, and the use experience is improved.
It should be noted that the state change of the state-adjustable device may include at least one of the following: the display area is changed by changing different color states, transparency, saturation and area of the display area.
Taking the example of the variation between different color states, the state-tunable-device may be an electrovariable film, which may be disposed at the outermost layer or at an intermediate layer or at the innermost layer of the housing of the electronic device. When disposed in the interlayer or innermost layer of the electronic device, a transparent layer or other single color layer may be disposed outside the electrochromic film so that light thereof may be radiated to the outside to form different colors. The electrovariable film can display different colors such as red, green and the like when the input voltage is different, and can be selected according to specific scenes.
Taking the example of the change between different transparencies or the change between different saturations of the same color, the state-tunable-device may be a Polymer Dispersed Liquid Crystal (PDLC), and the PDLC layer may be disposed at the outermost layer or at an intermediate layer or at the innermost layer of the housing of the electronic device. When disposed in the interlayer or innermost layer of the electronic device, the PDLC layer may be provided with a transparent layer in addition to the PDLC layer so that light thereof may be radiated to the outside, resulting in different transparency. The PDLC layer can adjust the optical axis orientation of the liquid crystal when the input voltage is different, the refractive index of the optical axis of the small droplet formed by the liquid crystal molecules is matched with that of the matrix, the display state of the state adjustable device is a transparent state, and after the input voltage is cancelled, the liquid crystal restores the original light scattering state, so that the opaque or semitransparent milky white state is displayed. Of course, the default state of the PDLC layer may also be set to a transparent state, which works in the same way as the opaque state, and will not be described in detail here.
Considering the working principle of the PDLC layer and the audio characteristics of the audio file, the period of the driving waveform is less than or equal to the minimum time length between two adjacent trigger nodes of the audio file, so that the driving waveform can be changed at least once in one beat. Taking the example that the trigger node is a beat, the period of the driving waveform is less than or equal to the period of one beat of the audio file, thereby ensuring that the period can be changed at least once within one beat.
Referring to fig. 1, a method for controlling a display state of a housing includes steps 11 to 12:
in step 11, the audio file is mapped to a driving waveform according to the audio playing effect.
In this embodiment, the processor in the electronic device may detect whether a service request for playing an audio file is indicated, where the service request includes, but is not limited to, playing an audio and video, reminding an incoming call, reminding a short message, and the like, and the service request requires the electronic device to play a section of audio file to achieve an effect of reminding a user.
In this embodiment, when the processor detects a service request including an audio playing scene, an audio file corresponding to the service request may be acquired.
In an example, the electronic device may pre-store audio files corresponding to various service types, such as an audio file a corresponding to an incoming call reminder, an audio file B corresponding to a short message reminder, and the like. That is to say, an audio file is preset in the electronic device, and when the processor obtains the service request, the processor can obtain the service type of the service request, and then the local memory queries the audio file corresponding to the service type and reads the audio file. In another example, an audio capture device, such as a microphone, is provided in the electronic device. When the processor acquires the service request, the audio acquisition device can be started. The audio acquisition device can acquire the information of the environment where the electronic equipment is located to obtain the audio file. In this way, the processor may retrieve the audio file captured by the audio capture device.
In this embodiment, after obtaining the audio file, the processor may obtain an audio playing effect of the audio file. The audio playing effect may include, but is not limited to, classical music, pop music, jazz, rock, normal, etc., and may be set according to a specific scene. The processor may map to the drive waveform according to the audio playback effect described above. In this example, the driving waveform is a waveform for representing a voltage value applied to the state-tunable device, and may include, but is not limited to: sine wave, square wave, sawtooth and PWM waveforms. In view of the performance of the state-tunable-device, the driving waveform in this example is a waveform that is more beneficial to the lifetime of the state-tunable-device, such as a driving waveform that is at least one of: sine wave, square wave or PWM waveform, thereby prolonging the service life of the state-adjustable device. It will be appreciated that the above examples are for illustration only and may in practice be determined from the lifetime practice of the state-tunable device.
In an example, the processor may map the driving waveforms by audio feature information, see fig. 2, including: in step 21, the processor may obtain audio characteristic information of the audio file, which may include, but is not limited to, tempo, pitch, audio segment energy, audio envelope level, subwoofer, and the like. Then, in step 22, the processor may obtain a driving waveform corresponding to the audio feature information based on the preset correspondence relationship between the audio feature information and the driving waveform. In the preset corresponding relationship between the audio characteristic information and the driving waveform, the audio characteristic information and the amplitude value of the driving waveform are in a linear relationship, or the amplitude values of the driving waveform are the same. The audio characteristic information and the amplitude value of the driving waveform are in a linear relation, and the linear relation can comprise positive correlation or negative correlation; taking the positive correlation as an example, when the audio characteristic information is the audio envelope level, if the audio envelope level is larger, the amplitude value of the corresponding driving waveform is larger, the driving waveform can be selected from the preset driving waveforms according to the audio included level, and each driving waveform driving state adjustable device has different display effects. Taking the same amplitude value of the driving waveforms in the corresponding relationship as an example, all the driving waveforms have the same amplitude value, so that each driving waveform driving state adjustable device has the same display effect.
In another embodiment, the electronic device may further store a preset correspondence between the audio characteristic signal and the transparency. In this way, after the electronic device acquires the audio feature signal, the target transparency corresponding to the audio feature signal can be acquired based on the correspondence. Then, based on a preset correspondence between the transparency and the driving waveform, the electronic device may obtain the driving waveform corresponding to the target transparency according to the transparency. In this embodiment, the driving waveform is obtained according to the transparency of the state-adjustable device, so that the state-adjustable device can be accurately controlled, and the control effect is improved.
In yet another example, the processor maps the driving waveforms by audio feature information, see fig. 3, including: in step 31, the processor may obtain audio characteristic information of the audio file, which may include, but is not limited to, tempo, pitch, audio segment energy, audio envelope level, subwoofer, and the like. In step 32, the processor may obtain an amplitude value of the driving waveform corresponding to the audio characteristic information based on a preset correspondence relationship between the audio characteristic information and the amplitude value. In the preset corresponding relationship between the audio characteristic information and the amplitude value, the audio characteristic information and the amplitude value may be in a linear relationship, or the amplitude values of the driving waveforms are the same. For example, the preset correspondence between the audio characteristic signal and the amplitude value may be a correspondence between audio segment energy and a driving waveform, and after the electronic device acquires the audio segment energy, a target amplitude value corresponding to the audio segment energy, for example, 10Vpp, may be found in the correspondence, where Vpp refers to a peak value of a sine wave; and then, adjusting the amplitude of a preset driving waveform (1Vpp) to 10Vpp so as to obtain a target driving waveform, and driving the state-adjustable device by using the 10Vpp driving waveform.
In an alternative example, step 33 is performed if the target amplitude value is greater than a preset threshold, otherwise it is not performed. In the example, larger audio characteristic information can be selected by screening the audio amplitude value, and the change of the audio can be fully sensed when the audio is played, so that the following effect of the display state and the audio playing can be better observed.
In step 33, the electronic device stores a preset driving waveform, and the processor may adjust the amplitude value of the driving waveform according to the amplitude value to obtain a target driving waveform; or setting a waveform generator, and taking the amplitude value as the gain (i.e. amplification factor) of the waveform generator, so that the waveform generator outputs a driving waveform corresponding to the amplitude value, and each driving waveform driving state adjustable device has different display effects. In addition, in this example, only one preset driving waveform needs to be stored, so that the occupied storage resource is reduced. Moreover, the amplitude value can be understood as the amplification factor of the control amplitude value, and can be used as the amplification gain of the amplification device, that is, the amplification factor of the amplification device is adjusted without adjusting the input drive waveform.
In yet another example, the processor maps the drive waveform by a characteristic value of each audio segment of the audio file, see fig. 4, including: in step 41, the processor may divide the audio file to obtain a plurality of audio segments; the length of the audio piece can be set, such as 5-20 ms. Taking an audio file stored locally as an example, the electronic device may obtain one or more audio clips of the audio file to be played. For example, the electronic device may adopt a preset window, for example, the window length is 20ms, and perform sliding processing according to a step length of 5ms each time to obtain each audio clip of the audio file; or, the audio file is equally divided to obtain one or more audio segments.
In step 41, the processor may obtain a feature value of each audio segment, where the feature value may include, but is not limited to, a value of one of features such as tempo, pitch, audio segment energy, audio envelope level, subwoofer, and the like. The feature value of each audio piece may be an average, a maximum, or a minimum of the feature values at different times of the audio piece. Taking the feature value as the audio segment energy as an example, the electronic device may obtain an energy spectrum of the audio segment, calculate the audio segment energy of the audio segment according to the energy spectrum, and use the audio segment energy as the feature value of the audio segment.
It should be noted that, in practical applications, the electronic device may also obtain a feature value in the audio file in advance, where the feature value reflects an audio playing effect, and store the feature value in the local storage. In this way, the processor can directly acquire the feature values of the audio segments in the audio file.
In step 42, the processor may obtain a feature value threshold corresponding to the feature of the audio segment, and compare the obtained feature value with the feature value threshold, so as to obtain a plurality of adjacent audio segments of which the feature values exceed the feature value threshold, and a segment combination composed of the plurality of adjacent audio segments. In step 43, the processor may obtain a driving waveform corresponding to each audio segment in the segment combination.
In this example, the driving waveforms corresponding to the segment combinations may have the following characteristics: the driving waveform corresponding to each audio segment in the segment combination is the same, or the amplitude of the driving waveform corresponding to each audio segment in the segment combination is linearly related to the audio characteristic information of the audio segment, or the driving waveform corresponding to each audio segment in the segment combination is related to the audio characteristic information with the maximum variation in the audio segment.
Taking the example that the driving waveforms corresponding to each audio segment in the segment combination are the same, the processor may output the same driving waveforms for each audio segment according to the range corresponding to the segment combination, so that the state-adjustable devices may change to the same state, for example, from transparent to opaque, from opaque to transparent, from the current color to another color, and from the current color to transparent.
Taking the example that the amplitude of the driving waveform corresponding to each audio segment in the segment combination is linearly related to the audio characteristic information of the audio segment, the processor may output a driving waveform whose amplitude is linearly related to the audio characteristic information, so that the state change of the state-adjustable device is kept synchronous with the change of the audio file.
Taking as an example that the driving waveform corresponding to each audio segment in the segment combination is related to the audio characteristic information with the largest variation in the audio segment, the processor may output a driving waveform with a magnitude related to the audio characteristic information with the largest variation, for example, if the envelope level of the first audio segment varies greatly, a driving waveform related to the envelope level is determined, and if the pitch variation of the second audio segment varies greatly, a driving waveform related to the pitch is determined, and the display state of the state-adjustable device is driven by the driving waveform, so that the variation of the display state is richer.
In an embodiment, considering that an audio file corresponding to a service request may be relatively large, if the audio file is played again after processing a complete audio file, a delay between playing and displaying states may be too large, and therefore, in this embodiment, the processor maps the audio file into a driving waveform according to an audio playing effect, as shown in fig. 5, including: in step 51, the processor may divide the audio file into a plurality of audio segments. In step 52, the processor may obtain each audio segment and a driving waveform corresponding to each audio segment; when a preset number (for example, 2 to 5, which may be set according to the length of the audio clip) of audio clips and driving waveforms corresponding to the preset number of audio clips are obtained, step 12 is executed again.
In another embodiment, considering that the audio file corresponding to the service request may be relatively large, if the audio file is played again after processing the entire audio file, the delay between the playing state and the displaying state may be too large, and therefore, in this embodiment, the processor maps the audio file to the driving waveform according to the audio playing effect, as shown in fig. 6, including: in step 61, the processor may obtain an audio segment of a preset length (e.g., 5-10 ms) of the audio file each time. In step 62, a driving waveform corresponding to the preset length of the audio segment is obtained. Step 12 is then performed. In this way, in this embodiment, the time for preprocessing can be reduced by acquiring the audio file as the audio clip, so as to shorten the time between the acquisition of the service request and the playing of the audio, thereby making the user unaware of the process of audio preprocessing. Or, the user can play audio and control the display state of the shell after selecting corresponding services.
In step 12, the state-adjustable device is driven based on the driving waveform so that the display state of the state-adjustable device follows the audio change.
In this embodiment, after the processor in the electronic device acquires the driving waveform, the state-adjustable device may be driven by using the driving waveform. Taking the example where the state-tunable-device is a PDLC layer, the default state of the PDLC layer may be a transparent state or an opaque state, and taking the example of the opaque state, the processor may send a driving waveform to the driving circuit, and the driving circuit applies a corresponding voltage to the input terminal of the state-tunable-device according to the driving waveform. Alternatively, the processor may send an instruction corresponding to the driving waveform to the driving circuit, and the driving circuit generates the corresponding driving waveform and outputs the driving waveform to the state-tunable device, or the driving circuit sequentially outputs electric signals according to the driving waveform and applies the electric signals to the input end of the state-tunable device.
It can be understood that after the voltage is input to the input end of the state-adjustable device, the state can be switched from the opaque state to the transparent state according to the voltage, and when the voltage of the input end disappears, the state is switched from the transparent state to the opaque state, so that the display state of the state-adjustable device is adjusted. The driving waveform is obtained in real time according to the audio signal and is applied to the input end of the state adjustable device in real time, so that the display state of the state adjustable device can be ensured to change along with the audio characteristic signal of the audio signal.
In the above embodiment, it is considered that the electronic device starts playing the audio file after acquiring the audio file, and the processor may drive the display state of the state-adjustable device after acquiring the driving waveform. In case the computing resources of the electronic device are sufficient, the audio file playing is substantially in synchronization with the change of the display state of the state-tunable device, i.e. the delay between visual and audible recognition by the user is not recognizable.
In practical applications, the electronic device may have situations such as insufficient computing resources, which may cause a delay between visual perception and auditory perception of a user, that is, considering that a certain duration (for example, 20ms) is required for a processor to acquire a driving waveform according to an audio file, a certain delay exists between a change of a display state and playing of an audio, and therefore, in an embodiment, driving the state-adjustable device based on the driving waveform to make the display state of the state-adjustable device follow the change of the audio includes: the processor may also not play the audio file first after obtaining the audio file, but obtain the driving waveform of the audio file first, and the manner of obtaining the driving waveform may refer to step 11, which is not described herein again. Then, after the processor obtains the driving waveform corresponding to the audio file, or the driving waveform corresponding to each audio segment of the audio file, or the driving waveform corresponding to a part of the audio file (an audio segment with preset duration or a preset number of audio segments), the processor may start playing the audio file, and drive the display state of the state-adjustable device based on the driving waveform corresponding to the audio file to follow the playing of the audio file. Thus, in the embodiment, by simultaneously triggering the audio trigger and the display state change, the delay between the audio trigger and the display state change can be reduced, and a better audio-visual effect can be achieved.
In an embodiment, the processor can perform follow-up control in the process of playing an audio file besides triggering the audio playing and driving the state-adjustable device at the same time, so as to achieve a better follow-up effect. Referring to fig. 7, in step 71, the processor may obtain a trigger node of the audio file, which may include, but is not limited to, a beat, a rhythm, or a play effect change point in audio, etc. In step 72, when playing the audio file, the state-adjustable device is driven at the trigger node of the audio file according to the driving waveform of each trigger node, so that the display state of the state-adjustable device changes synchronously with the audio file, and the trigger timing sequence is as shown in fig. 8. Referring to fig. 8, during the playing of an audio file, at each beat T, a voltage corresponding to a driving waveform is applied to the PDLC layer, thereby switching the PDLC layer from the opaque state to the transparent state.
Taking the example where the trigger node is a beat, the processor may perform a frequency domain transform, such as a fourier transform or a fast fourier transform, on the audio file to obtain frequency domain data. The processor may then perform a difference process on the frequency domain data to obtain difference data. Then, the processor may take the node corresponding to the differential signal exceeding the preset threshold in the differential data as a beat.
In practical application, the processor may further obtain an audio change difference in the audio file, for example, a difference between envelope voltages of two adjacent sampling points, or a difference between audio energies of two adjacent sampling points; and acquiring an audio frequency point of which the audio frequency change difference value is greater than a first preset threshold value in the audio file, and taking the audio frequency point as a trigger node. Therefore, the trigger node with the largest audio change difference can be selected in the example, the change of the audio can be fully sensed when the audio is played, and the following effect of the display state and the audio playing can be better observed. Or the processor may acquire an audio point in the audio file, where the audio change difference is smaller than a second preset threshold, and delete the audio point from the trigger node. Therefore, in this example, the trigger node with a small audio variation difference can be removed, the consumption of computing resources consumed by obtaining the driving waveform and the consumption of subsequent driving state adjustable devices can be reduced, and the following effect of the display state and the audio playing can be improved.
In one embodiment, the processor may drive the state-tunable-device based on the driving waveform, and pre-process the driving waveform before driving, see fig. 9, and in step 91, may filter the driving waveform; in step 92, the filtered drive waveform is amplified; in step 93, the state-tunable-device is driven with the amplified driving waveform. In this embodiment, the voltage of the driving waveform can meet the requirement of the state-adjustable device through filtering and amplification, and the stable operation of the state-adjustable device is ensured.
In an embodiment, it is considered that audio files corresponding to some service scenarios are small, and the playing time is short, for example, the incoming call audio reminding is usually 5-10 seconds, and if a user is busy, the user cannot timely hear the incoming call. In this scenario, referring to fig. 10, in step 101, the processor may acquire a service scenario after the audio file playing is finished. In step 102, the processor may obtain a driving waveform template corresponding to the service scene, where the driving waveform template may be set according to the service scene, for example, a driving waveform template corresponding to a flicker effect in an incoming call missed scene, a driving waveform template corresponding to a respiratory effect in an unread information scene, and the like. In step 103, the processor may control the state-tunable-device to follow the waveform changes in the drive waveform template according to the drive waveform template. Therefore, in the embodiment, the purpose of reminding the user is achieved by setting different display effects for different service scenes.
Therefore, the embodiment of the present disclosure may map the audio file into the driving waveform according to the audio playing effect; then, the state-adjustable device is driven based on the driving waveform to cause the display state of the state-adjustable device to follow the audio change. Like this, the display state of electronic equipment casing can be adjusted through the display state of the adjustable device of adjustment state in this embodiment, reaches the effect that display state and audio information follow or follow in step, promotes to use and experiences.
The embodiment of the disclosure also provides a device for controlling the display state of the shell, which is suitable for comprising electronic equipment, wherein a state-adjustable device is arranged in the shell of the electronic equipment; the state-adjustable device is used for adjusting the display state of the housing, referring to fig. 11, and the apparatus includes:
a driving waveform obtaining module 111, configured to map an audio file into a driving waveform according to an audio playing effect;
a display state control module 112, configured to drive the state-adjustable device based on the driving waveform, so that the display state of the state-adjustable device follows the audio change.
In one embodiment, the driving waveform obtaining module includes:
the audio characteristic acquisition unit is used for acquiring audio characteristic information of the audio file;
the driving waveform obtaining unit is used for obtaining a driving waveform corresponding to the audio characteristic information based on the corresponding relation between the preset audio characteristic information and the driving waveform;
and the audio characteristic information and the amplitude value of the driving waveform in the corresponding relation are in a linear relation, or the amplitude values of the driving waveform are the same.
In one embodiment, the driving waveform obtaining module includes:
the audio characteristic acquisition unit is used for acquiring audio characteristic information of the audio file;
the driving waveform obtaining unit is used for obtaining a target amplitude value corresponding to the audio characteristic information based on the corresponding relation between the preset audio characteristic information and the amplitude value;
and the driving waveform obtaining unit is used for adjusting the amplitude of a preset driving waveform to the target amplitude value and obtaining the driving waveform corresponding to the audio characteristic information.
In one embodiment, the driving waveform obtaining module includes:
the characteristic value acquisition unit is used for acquiring the characteristic value of each audio clip of the audio file;
the characteristic value acquisition unit is used for acquiring a plurality of adjacent audio segments of which the characteristic values exceed a characteristic value threshold value and acquiring a segment combination consisting of the plurality of adjacent audio segments;
and the driving waveform acquisition unit is used for acquiring the driving waveform corresponding to each audio segment in the segment combination.
In one embodiment, the driving waveforms corresponding to each audio segment in the segment combination are the same; or the amplitude of the driving waveform corresponding to each audio segment in the segment combination is linearly related to the audio characteristic information of the audio segment; or, the driving waveform corresponding to each audio segment in the segment combination is related to the audio characteristic information with the maximum variation in the audio segment.
In an embodiment, the audio file is an audio file stored locally or an audio file obtained from information about an environment where the electronic device of the audio acquisition device is located.
In one embodiment, the display state control module includes:
and the display state control unit is used for playing the audio file and driving the state adjustable device to follow the playing of the audio file based on the driving waveform.
In one embodiment, the display state control module includes:
the trigger node acquisition unit is used for acquiring the trigger node of the audio file;
and the display state control unit is used for playing the audio file and driving the state-adjustable device at the trigger nodes of the audio file according to the driving waveforms of the trigger nodes so as to ensure that the display state of the state-adjustable device synchronously changes along with the audio file.
In an embodiment, the trigger node acquiring unit is configured to acquire a beat of the audio file, and use the beat as the trigger node;
alternatively, the first and second electrodes may be,
and the audio file processing unit is further configured to acquire an audio clip in the audio file, where the play effect change difference exceeds a preset threshold, and use the start node of the audio clip as the trigger node.
In one embodiment, the driving waveform obtaining module includes:
an audio segment dividing unit for dividing the audio file into a plurality of audio segments;
the driving waveform acquiring unit is used for acquiring each audio segment and a driving waveform corresponding to each audio segment;
the device further comprises:
and the driving waveform counting module is used for triggering the display state control module when the preset number of audio segments and the driving waveforms corresponding to the preset number of audio segments are acquired.
In one embodiment, the driving waveform obtaining module includes:
the audio clip acquisition unit is used for acquiring an audio clip with a preset length of the audio file;
the driving waveform obtaining unit is used for obtaining a driving waveform corresponding to the audio segment with the preset length;
the display state control module is also used for controlling the display state of the state adjustable device to change along with the audio segment with the preset length.
In one embodiment, the display state control module includes:
the driving waveform filtering unit is used for filtering the driving waveform;
the drive waveform amplifying unit is used for amplifying the filtered drive waveform;
and the adjustable device driving unit is used for driving the state adjustable device by using the amplified driving waveform.
In one embodiment, the apparatus further comprises:
the service scene acquisition module is used for acquiring a service scene after the audio file is played;
the waveform template acquisition module is used for acquiring a driving waveform template corresponding to the service scene;
and the adjustable device driving module is used for controlling the state adjustable device to follow the waveform change in the driving waveform template according to the driving waveform template.
In an embodiment, the state-tunable-device is an electrochromic device or a polymer dispersed liquid crystal.
In one embodiment, the change of state of the state-tunable-device comprises at least one of: the color state, the transparency and the saturation of the same color are changed.
It can be understood that the apparatus provided in the embodiment of the present disclosure corresponds to the method shown in fig. 1, and specific contents may refer to the contents of each embodiment of the method, which are not described herein again.
FIG. 12 is a block diagram illustrating an electronic device in accordance with an example embodiment. For example, the electronic device 1200 may be a smartphone, a computer, a digital broadcast terminal, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
Referring to fig. 12, electronic device 1200 may include one or more of the following components: a processing component 1202, a memory 1204, a power component 1206, a multimedia component 1208, an audio component 1210, an input/output (I/O) interface 1212, a sensor component 1214, a communications component 1216, and an image capture component 1218.
The processing component 1202 generally controls overall operation of the electronic device 1200, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 1202 may include one or more processors 1220 to execute computer programs. Further, the processing component 1202 can include one or more modules that facilitate interaction between the processing component 1202 and other components. For example, the processing component 1202 can include a multimedia module to facilitate interaction between the multimedia component 1208 and the processing component 1202.
The memory 1204 is configured to store various types of data to support operation at the electronic device 1200. Examples of such data include computer programs, contact data, phonebook data, messages, pictures, videos, etc. for any application or method operating on the electronic device 1200. The memory 1204 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 1206 provides power to the various components of the electronic device 1200. The power components 1206 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the electronic device 1200. The power supply assembly 1206 may include a power chip, and the controller may communicate with the power chip to control the power chip to turn on or off the switching device, so that the battery supplies power or does not supply power to the main board circuit.
The multimedia component 1208 includes a screen that provides an output interface between the electronic device 1200 and the target object. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input information from the target object. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.
Audio component 1210 is configured to output and/or input audio information. For example, the audio component 1210 includes a Microphone (MIC) configured to receive external audio information when the electronic device 1200 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio information may further be stored in the memory 1204 or transmitted via the communication component 1216. In some embodiments, audio assembly 1210 further includes a speaker for outputting audio information.
The I/O interface 1212 provides an interface between the processing component 1202 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc.
The sensor assembly 1214 includes one or more sensors for providing various aspects of state assessment for the electronic device 1200. For example, the sensor assembly 1214 may detect an open/closed state of the electronic device 1200, the relative positioning of components, such as a display and keypad of the electronic device 1200, the sensor assembly 1214 may also detect a change in the position of the electronic device 1200 or one of the components, the presence or absence of a target object in contact with the electronic device 1200, orientation or acceleration/deceleration of the electronic device 1200, and a change in the temperature of the electronic device 1200. In this example, the sensor assembly 1214 may include a magnetic sensor, a gyroscope, and a magnetic field sensor, wherein the magnetic field sensor includes at least one of: hall sensor, thin film magneto-resistance sensor, magnetic liquid acceleration sensor.
The communications component 1216 is configured to facilitate communications between the electronic device 1200 and other devices in a wired or wireless manner. The electronic device 1200 may access a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G, 5G, or a combination thereof. In an exemplary embodiment, the communication component 1216 receives the broadcast information or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communications component 1216 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 1200 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital information processors (DSPs), digital information processing devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors, or other electronic components.
In an exemplary embodiment, a non-transitory readable storage medium is also provided that includes an executable computer program, such as the memory 1204 that includes instructions, that are executable by the processor. The readable storage medium may be, among others, ROM, Random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (32)

1. A shell display state control method is characterized by comprising electronic equipment, wherein a state-adjustable device is arranged in a shell of the electronic equipment; the state-adjustable device is used for adjusting the display state of the shell, and the method comprises the following steps:
mapping the audio file into a driving waveform according to the audio playing effect;
driving the state-tunable-device based on the driving waveform to cause the display state of the state-tunable-device to follow the audio change.
2. The method of claim 1, wherein mapping the audio file to the driving waveform according to the audio playback effect comprises:
acquiring audio characteristic information of the audio file;
acquiring a driving waveform corresponding to the audio characteristic information based on a preset corresponding relation between the audio characteristic information and the driving waveform;
and the audio characteristic information and the amplitude value of the driving waveform in the corresponding relation are in a linear relation, or the amplitude values of the driving waveform are the same.
3. The method of claim 1, wherein mapping the audio file to the driving waveform according to the audio playback effect comprises:
acquiring audio characteristic information of the audio file;
acquiring a target amplitude value corresponding to audio characteristic information based on a preset corresponding relation between the audio characteristic information and the amplitude value;
and adjusting the amplitude of a preset driving waveform to the target amplitude value to obtain the driving waveform corresponding to the audio characteristic information.
4. The method of claim 1, wherein mapping the audio file to the driving waveform according to the audio playback effect comprises:
acquiring a characteristic value of each audio clip of the audio file;
acquiring a plurality of adjacent audio segments with characteristic values exceeding a characteristic value threshold value, and acquiring a segment combination consisting of the plurality of adjacent audio segments;
and acquiring a driving waveform corresponding to each audio segment in the segment combination.
5. The method of claim 4, wherein the driving waveform for each audio segment in the segment combination is the same; or the amplitude of the driving waveform corresponding to each audio segment in the segment combination is linearly related to the audio characteristic information of the audio segment; or, the driving waveform corresponding to each audio segment in the segment combination is related to the audio characteristic information with the maximum variation in the audio segment.
6. The method of claim 1, wherein the audio file is a locally stored audio file or an audio file derived from information about the environment where the audio capture device electronic device is located.
7. The method of claim 1, wherein the driving the state-tunable-devices based on the driving waveform to cause the display states of the state-tunable-devices to follow the audio changes comprises:
and playing the audio file, and driving the state-adjustable device based on the driving waveform to follow the playing of the audio file.
8. The method of claim 1, wherein driving the state-tunable-devices based on the drive waveform comprises:
acquiring a trigger node of the audio file;
and playing the audio file, and driving the state-adjustable device at the trigger node of the audio file according to the driving waveform of each trigger node so as to ensure that the display state of the state-adjustable device synchronously changes along with the audio file.
9. The method of claim 8, wherein obtaining the trigger node for the audio file comprises:
acquiring the beat of the audio file, and taking the beat as the trigger node;
alternatively, the first and second electrodes may be,
and acquiring an audio clip of which the playing effect change difference value exceeds a preset threshold value in the audio file, and taking the audio clip starting node as the trigger node.
10. The method of claim 1, wherein mapping the audio file to the driving waveform according to the audio playing effect comprises:
dividing the audio file into a plurality of audio segments;
acquiring each audio clip and a driving waveform corresponding to each audio clip;
the method further comprises the following steps:
and when a preset number of audio segments and driving waveforms corresponding to the preset number of audio segments are acquired, executing a step of driving the state-adjustable device based on the driving waveforms so that the display state of the state-adjustable device changes along with the audio.
11. The method of claim 1, wherein mapping the audio file to the driving waveform according to the audio playing effect comprises:
acquiring an audio clip with a preset length of the audio file;
acquiring a driving waveform corresponding to the audio segment with the preset length;
driving the state-tunable-device based on the driving waveform to cause the display state of the state-tunable-device to follow the audio change, comprising:
and controlling the display state of the state adjustable device to synchronously change along with the audio segment with the preset length.
12. The method of claim 1, wherein driving the state-tunable-device based on the drive waveform comprises:
filtering the drive waveform;
amplifying the filtered driving waveform;
and driving the state-adjustable device by using the amplified driving waveform.
13. The method of claim 1, further comprising:
acquiring a service scene after the audio file is played;
acquiring a driving waveform template corresponding to the service scene;
and controlling the state-adjustable device to follow the waveform change in the driving waveform template according to the driving waveform template.
14. The method of claim 1, wherein the state-tunable-device is an electrochromic device or a polymer dispersed liquid crystal.
15. The method of claim 1, wherein the change of state of the state-tunable-device comprises at least one of: the color state, the transparency and the saturation of the same color are changed.
16. A shell display state control device is characterized by comprising electronic equipment, wherein a state adjustable device is arranged in a shell of the electronic equipment; the state-adjustable device is used for adjusting the display state of the shell, and the device comprises:
the driving waveform acquisition module is used for mapping the audio file into a driving waveform according to the audio playing effect;
and the display state control module is used for driving the state-adjustable device based on the driving waveform so as to enable the display state of the state-adjustable device to follow the audio frequency change.
17. The apparatus of claim 16, wherein the drive waveform acquisition module comprises:
the audio characteristic acquisition unit is used for acquiring audio characteristic information of the audio file;
the driving waveform obtaining unit is used for obtaining a driving waveform corresponding to the audio characteristic information based on the corresponding relation between the preset audio characteristic information and the driving waveform;
and the audio characteristic information and the amplitude value of the driving waveform in the corresponding relation are in a linear relation, or the amplitude values of the driving waveform are the same.
18. The apparatus of claim 16, wherein the drive waveform acquisition module comprises:
the audio characteristic acquisition unit is used for acquiring audio characteristic information of the audio file;
the driving waveform obtaining unit is used for obtaining a target amplitude value corresponding to the audio characteristic information based on the corresponding relation between the preset audio characteristic information and the amplitude value;
and the driving waveform obtaining unit is used for adjusting the amplitude of a preset driving waveform to the target amplitude value and obtaining the driving waveform corresponding to the audio characteristic information.
19. The apparatus of claim 16, wherein the drive waveform acquisition module comprises:
the characteristic value acquisition unit is used for acquiring the characteristic value of each audio clip of the audio file;
the characteristic value acquisition unit is used for acquiring a plurality of adjacent audio segments of which the characteristic values exceed a characteristic value threshold value and acquiring a segment combination consisting of the plurality of adjacent audio segments;
and the driving waveform acquisition unit is used for acquiring the driving waveform corresponding to each audio segment in the segment combination.
20. The apparatus of claim 19, wherein the driving waveform for each audio segment in the segment combination is the same; or the amplitude of the driving waveform corresponding to each audio segment in the segment combination is linearly related to the audio characteristic information of the audio segment; or, the driving waveform corresponding to each audio segment in the segment combination is related to the audio characteristic information with the maximum variation in the audio segment.
21. The apparatus of claim 16, wherein the audio file is a locally stored audio file or an audio file derived from information about the environment where the audio capture device electronic device is located.
22. The apparatus of claim 16, wherein the display state control module comprises:
and the display state control unit is used for playing the audio file and driving the state adjustable device to follow the playing of the audio file based on the driving waveform.
23. The apparatus of claim 16, wherein the display state control module comprises:
the trigger node acquisition unit is used for acquiring the trigger node of the audio file;
and the display state control unit is used for playing the audio file and driving the state-adjustable device at the trigger nodes of the audio file according to the driving waveforms of the trigger nodes so as to ensure that the display state of the state-adjustable device synchronously changes along with the audio file.
24. The apparatus according to claim 23, wherein the trigger node obtaining unit is configured to obtain a beat of the audio file, and use the beat as the trigger node;
alternatively, the first and second electrodes may be,
and the audio file processing unit is further configured to acquire an audio clip in the audio file, where the play effect change difference exceeds a preset threshold, and use the start node of the audio clip as the trigger node.
25. The apparatus of claim 16, wherein the drive waveform acquisition module comprises:
an audio segment dividing unit for dividing the audio file into a plurality of audio segments;
the driving waveform acquiring unit is used for acquiring each audio segment and a driving waveform corresponding to each audio segment;
the device further comprises:
and the driving waveform counting module is used for triggering the display state control module when the preset number of audio segments and the driving waveforms corresponding to the preset number of audio segments are acquired.
26. The apparatus of claim 16, wherein the drive waveform acquisition module comprises:
the audio clip acquisition unit is used for acquiring an audio clip with a preset length of the audio file;
the driving waveform obtaining unit is used for obtaining a driving waveform corresponding to the audio segment with the preset length;
the display state control module is also used for controlling the display state of the state adjustable device to change along with the audio segment with the preset length.
27. The apparatus of claim 16, wherein the display state control module comprises:
the driving waveform filtering unit is used for filtering the driving waveform;
the drive waveform amplifying unit is used for amplifying the filtered drive waveform;
and the adjustable device driving unit is used for driving the state adjustable device by using the amplified driving waveform.
28. The apparatus of claim 16, further comprising:
the service scene acquisition module is used for acquiring a service scene after the audio file is played;
the waveform template acquisition module is used for acquiring a driving waveform template corresponding to the service scene;
and the adjustable device driving module is used for controlling the state adjustable device to follow the waveform change in the driving waveform template according to the driving waveform template.
29. The apparatus of claim 16, wherein the state-tunable-device is an electrochromic device or a polymer dispersed liquid crystal.
30. The apparatus of claim 16, wherein the change in state of the state-tunable-device comprises at least one of: the color state, the transparency and the saturation of the same color are changed.
31. An electronic device, comprising:
a housing provided with a state-adjustable device;
a processor;
a memory for storing a computer program executable by the processor;
wherein the processor is configured to execute the computer program in the memory to implement the method of any of claims 1-15.
32. A computer-readable storage medium, characterized in that an executable computer program in the storage medium, when executed by a processor, is capable of implementing the method according to any one of claims 1 to 15.
CN202011534339.1A 2020-12-22 2020-12-22 Shell display state control method and device, electronic equipment and storage medium Pending CN112667192A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011534339.1A CN112667192A (en) 2020-12-22 2020-12-22 Shell display state control method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011534339.1A CN112667192A (en) 2020-12-22 2020-12-22 Shell display state control method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112667192A true CN112667192A (en) 2021-04-16

Family

ID=75407912

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011534339.1A Pending CN112667192A (en) 2020-12-22 2020-12-22 Shell display state control method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112667192A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113257287A (en) * 2021-04-27 2021-08-13 天九共享网络科技集团有限公司 Audio file visualization method and device, storage medium and electronic equipment
WO2023141786A1 (en) * 2022-01-25 2023-08-03 邱册瑜 Magnetic fluid display apparatus having pickup function

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107728400A (en) * 2017-10-19 2018-02-23 维沃移动通信有限公司 The display methods and mobile terminal of a kind of information
CN109240415A (en) * 2018-08-14 2019-01-18 Oppo广东移动通信有限公司 Control method of electronic device, device, storage medium and electronic equipment
CN111083289A (en) * 2019-12-26 2020-04-28 惠州Tcl移动通信有限公司 Audio playing method and device, storage medium and mobile terminal
CN111836437A (en) * 2017-09-27 2020-10-27 杭州博联智能科技股份有限公司 Control method and device for light display
CN111880349A (en) * 2020-08-29 2020-11-03 努比亚技术有限公司 Electrochromic display control method, device and computer readable storage medium
CN112087536A (en) * 2019-06-13 2020-12-15 北京小米移动软件有限公司 Shell color control device and mobile terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111836437A (en) * 2017-09-27 2020-10-27 杭州博联智能科技股份有限公司 Control method and device for light display
CN107728400A (en) * 2017-10-19 2018-02-23 维沃移动通信有限公司 The display methods and mobile terminal of a kind of information
CN109240415A (en) * 2018-08-14 2019-01-18 Oppo广东移动通信有限公司 Control method of electronic device, device, storage medium and electronic equipment
CN112087536A (en) * 2019-06-13 2020-12-15 北京小米移动软件有限公司 Shell color control device and mobile terminal
CN111083289A (en) * 2019-12-26 2020-04-28 惠州Tcl移动通信有限公司 Audio playing method and device, storage medium and mobile terminal
CN111880349A (en) * 2020-08-29 2020-11-03 努比亚技术有限公司 Electrochromic display control method, device and computer readable storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113257287A (en) * 2021-04-27 2021-08-13 天九共享网络科技集团有限公司 Audio file visualization method and device, storage medium and electronic equipment
WO2023141786A1 (en) * 2022-01-25 2023-08-03 邱册瑜 Magnetic fluid display apparatus having pickup function

Similar Documents

Publication Publication Date Title
US10324682B2 (en) Method, apparatus, and storage medium for controlling audio playing based on playing environment
CN106024009B (en) Audio processing method and device
CN105845124B (en) Audio processing method and device
US9661132B2 (en) Method, apparatus, and storage medium for displaying a conversation interface
CN111381746B (en) Parameter adjusting method, device and storage medium
CN109147714A (en) The refresh rate method of adjustment and device of screen, computer readable storage medium
CN108804179B (en) Method, device, terminal and storage medium for displaying notification bar message
CN112667192A (en) Shell display state control method and device, electronic equipment and storage medium
CN108986053A (en) Screen display method and device
CN106775235B (en) Screen wallpaper display method and device
CN109862169B (en) Electronic equipment control method, device and storage medium
CN108122195A (en) Image processing method and device
CN112667027A (en) Shell display state control method and device, electronic equipment and storage medium
CN112667193A (en) Shell display state control method and device, electronic equipment and storage medium
CN109725806A (en) Website edit methods and device
CN112612438A (en) Shell display state control method and device, electronic equipment and storage medium
CN106101372B (en) Using prompting setting method and device
CN112904774B (en) Circuit and method for driving display state of housing, electronic device, and storage medium
CN108132736A (en) Display control method and device in window
CN107885571B (en) Display page control method and device
CN107426401B (en) Mute reminding method, device and terminal
CN110069310B (en) Method and device for switching desktop wallpaper and storage medium
CN111736798A (en) Volume adjusting method, volume adjusting device and computer readable storage medium
CN107886956B (en) Audio recognition method and device and computer storage medium
CN112188133A (en) Video acquisition method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination