Audio control method and electronic equipment
By monitoring the working status of the audio component in an electronic device and switching the audio output mode, the sound attenuation problem caused by the occlusion of the audio component is solved, and the stability and integrity of the sound effect are achieved.
Patent Information
- Application Number
- CN202411506449.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-25
- Publication Date
- 2025-02-25
AI Technical Summary
Audio components in electronic devices are easily blocked due to changes in position state, resulting in changes in output sound and affecting the sound effect.
By acquiring the working state of the first audio component, when it is in the target state, the second audio component is controlled to switch from the first audio output mode to the second audio output mode, ensuring that the frequency range of the second audio output mode includes the first audio component when it is in the target state, ensuring that the frequency range of the second audio output mode is included in the first audio component initial frequency range.
When the first audio component is blocked, by switching the audio output mode of the second audio component, the lost sound can be compensated, sound attenuation can be avoided, and sound effects can be maintained.
Smart Images

Figure CN119521082A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of audio processing, and in particular to an audio control method and electronic equipment. Background Art
[0002] The audio components in electronic devices are easily blocked by other objects due to the change of their position, which may cause the sound output by the audio components to change and affect the sound effect of the audio components. Therefore, it is necessary to adopt certain methods to compensate for the sound loss of the audio components when the audio components are blocked. Summary of the invention
[0003] In view of this, the embodiments of the present application at least provide an audio control method and an electronic device.
[0004] The technical solution of the embodiment of the present application is implemented as follows:
[0005] On the one hand, an embodiment of the present application provides an audio control method, which is applied to an electronic device, wherein the electronic device includes a first audio component and a second audio component, and the method includes: obtaining a working state of the first audio component; when the working state of the first audio component is in a target state, controlling the second audio component to switch from a first audio output mode to a second audio output mode; wherein an initial frequency range of the first audio component is different from a frequency range of the first audio output mode, and a frequency range of the second audio output mode includes at least part of the initial frequency range.
[0006] On the other hand, an embodiment of the present application provides an electronic device, comprising: a supporting body, abutting a bearing surface; a first audio component and a second audio component, the first audio component having an initial frequency range, the second audio component having a first audio output mode and a second audio output mode; an identification module, signal-connected to the supporting body, the first audio component, and the second audio component, respectively; and a control module, which controls the second audio component to switch from the first audio output mode to the second audio output mode when the identification module identifies that the working state of the first audio component is in a target state, and the frequency range of the second audio output mode includes the initial frequency range.
[0007] It should be understood that the above general description and the following detailed description are merely exemplary and explanatory, and are not intended to limit the technical solutions of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0008] The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present application and are used together with the specification to illustrate the technical solution of the present application.
[0009] Figure 1 A schematic diagram of an implementation process of an audio control method provided in an embodiment of the present application Figure 1 ;
[0010] Figure 2 A schematic diagram of an implementation process of an audio control method provided in an embodiment of the present application Figure 2 ;
[0011] Figure 3 A schematic diagram of an implementation process of an audio control method provided in an embodiment of the present application Figure 3 ;
[0012] Figure 4 A schematic diagram of an implementation process of an audio control method provided in an embodiment of the present application Figure 4 ;
[0013] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0014] Figure 6 Schematic diagram of the tweeter position provided in the embodiment of the present application Figure 1 ;
[0015] Figure 7 Schematic diagram of the tweeter position provided in the embodiment of the present application Figure 2 ;
[0016] Figure 8 A schematic diagram of the position of a bass speaker provided in an embodiment of the present application;
[0017] Fig. 9 The whole machine layout diagram provided for the embodiment of the present application;
[0018] Fig.10 A schematic diagram of sound intensity at different frequencies provided in an embodiment of the present application;
[0019] Fig.11 A schematic diagram of the structure of an audio control device provided in an embodiment of the present application;
[0020] Fig.12 A hardware entity diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0021] In order to make the purpose, technical solutions and advantages of the present application clearer, the technical solutions of the present application are further elaborated in detail below in conjunction with the drawings and embodiments. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.
[0022] In the following description, reference is made to "some embodiments", which describe a subset of all possible embodiments, but it is understood that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict. The terms "first / second / third" involved are merely used to distinguish similar objects and do not represent a specific order for the objects. It is understood that "first / second / third" may be interchanged in a specific order or sequence where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.
[0023] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing this application and are not intended to limit this application.
[0024] The present application provides an audio control method, which can be executed by a processor of a computer device. The computer device may refer to a server, a laptop, a tablet computer, a desktop computer, a smart TV, a set-top box, a mobile device (such as a mobile phone, a portable video player, a personal digital assistant, a dedicated messaging device, a portable gaming device), or other device with data processing capabilities.
[0025] In some embodiments, the electronic device includes a first audio component and a second audio component. The position state of the first audio component in the electronic device changes, and it is easily blocked by other objects, which can easily cause the sound output by the first audio component to attenuate. For example, other components in the electronic device approach the first audio component during rotation or movement, causing the first audio component to be blocked; or, the first audio component is covered by other objects during rotation, causing the first audio component to be blocked. In the case where the first audio component is blocked, the sound in the target frequency range of its output is attenuated. At this time, the second audio component is not blocked. Therefore, the frequency range of the output mode of the second audio component can be adjusted so that the frequency range of the second audio component output includes the target frequency range, so as to compensate for the sound lost due to the blocking of the first audio component by controlling the output mode of the second audio component.
[0026] Figure 1 A schematic diagram of an implementation flow of an audio control method provided in an embodiment of the present application, such as Figure 1 As shown, the audio control method is applied to an electronic device, the electronic device includes a first audio component and a second audio component; the method includes the following steps S101 to S102:
[0027] Step S101, obtaining the working status of the first audio component.
[0028] Among them, the first audio component and the second audio component are components in the electronic device that can output audio. Under normal working conditions, the first audio component can output sound in the initial frequency range, and the second audio component can output sound in the frequency range of the first audio output mode. The electronic device can be any device, including a computer, a mobile phone, a tablet, a laptop computer, etc. The positions of the first audio component and the second audio component in the electronic device can be arbitrary. The first audio component and the second audio component can be any components with audio playback functions, including tweeters, woofers, etc. Exemplarily, the electronic device is an all-in-one machine, the first audio component is a tweeter in the all-in-one machine, and the second audio component is a woofer in the all-in-one machine. Exemplarily, the first audio component is on the base of the electronic device, and the second audio component is on the screen of the electronic device.
[0029] The working state of the first audio component includes a state in which the first audio component works normally in the electronic device and a state in which the first audio component is blocked and works abnormally. For example, the first audio component is in the base of the electronic device, and the base is covered with rubber feet. The first audio component can rotate with the screen in the base. When the first audio component rotates to different angles, it is easy to be blocked by the rubber feet on the base and be in an abnormal state.
[0030] In some embodiments, the working state of the first audio component is determined based on the sound intensity. The sound intensity of the target frequency range of the first audio component is collected by a microphone, and the sound intensity of the target frequency range is compared with a first intensity threshold. If the sound intensity is lower than the first intensity threshold, it is determined that the first audio component is blocked and is in an abnormal working state; if the sound intensity is not lower than the first intensity threshold, it is determined that the first audio component is in a normal working state.
[0031] In some embodiments, the electronic device further includes a base, the first audio component is located in the base, and the working state of the first audio component is determined based on the posture state between the first audio component and the base. The posture state includes the rotation angle of the first audio component, and the rotation angle of the first audio component in the base is detected in real time by an angle sensor. Different rotation angles correspond to different posture states. When the rotation angle is greater than an angle threshold, it is determined that the first audio component is blocked and is in an abnormal working state; when the rotation angle is not greater than the angle threshold, it is determined that the first audio component is in a normal working state.
[0032] In some embodiments, the first audio component is located on other components outside the base (for example, on the screen). During the rotation of the screen, the first audio component will also move with it, and the distance between the first audio component and the base will constantly change. When the distance between the first audio component and the base is less than a distance threshold, it is determined that the first audio component is blocked and is in an abnormal working state; when the distance between the first audio component and the base is not less than the distance threshold, it is determined that the first audio component is in a normal working state.
[0033] Step S102: When the working state of the first audio component is in the target state, control the second audio component to switch from the first audio output mode to the second audio output mode; wherein, the initial frequency range of the first audio component is different from the frequency range of the first audio output mode, and the frequency range of the second audio output mode includes at least part of the initial frequency range.
[0034] Among them, the target state includes all states in which the first audio component is blocked and is in an abnormal state. Exemplarily, the target state includes the state in which the first audio component is covered by a hand, the state in which the first audio component is covered by other objects, the state in which the first audio component is blocked by a rubber foot pad, and the state in which the first audio component is blocked due to a change in the posture state (the specific position of the first audio component is not limited here). Exemplarily, the posture state includes the distance between the first audio component and the support body and the angle between the first audio component and the support body, and the support body can be the base of an electronic device.
[0035] In some embodiments, whether the working state of the first audio component is in the target state is determined based on the sound intensity. The sound intensity of the target frequency range of the first audio component is collected by a microphone, the sound intensity of the target frequency range is compared with a first intensity threshold, and when the sound intensity is lower than the first intensity threshold, it is determined that the working state of the first audio component is in the target state.
[0036] In some embodiments, whether the working state of the first audio component is in the target state is determined based on the posture state between the first audio component and the base. The posture state includes the rotation angle of the first audio component or the distance between the first audio component and the base. When the rotation angle is greater than the angle threshold, it is determined that the working state of the first audio component is in the target state; when the distance between the first audio component and the base is less than the distance threshold, it is determined that the working state of the first audio component is in the target state.
[0037] Among them, the first audio output mode is the working mode of the second audio component in the initial state or normal state. The initial frequency range is the frequency range of the sound output by the first audio component in the normal working state. The initial frequency range of the first audio component is different from the frequency range of the first audio output mode. Exemplarily, the frequency range of the first audio output mode is 20Hz to 800Hz. The initial frequency range of the first audio component is 800Hz to 20KHz.
[0038] Among them, the second audio output mode is the working mode of the second audio component when the first audio component is in the target state. The frequency range of the second audio output mode includes at least part of the initial frequency range. When the first audio component is in the target state, the sound in the target frequency range of the first audio component is attenuated, and the target frequency range is compensated by the second audio output mode. Therefore, the frequency range of the second audio output mode at least includes the target frequency range, and the target frequency range belongs to the initial frequency range.
[0039] In some embodiments, when the first audio component is in a target state, the sound of the entire initial frequency range of the first audio component is attenuated, the initial frequency range is the target frequency range, and the frequency range of the second audio output mode includes the entire initial frequency range.
[0040] In some embodiments, when the working state of the first audio component is in the target state, the second audio component is controlled to switch from the first audio output mode to the second audio output mode, and the frequency range of the second audio output mode includes at least part of the initial frequency range (the target frequency range of the first audio component). In this way, the second audio component can be controlled to output sound in the target frequency range to avoid the first audio component being blocked and causing sound attenuation.
[0041] Among them, first, the sound frequency range of the second audio component is enabled to cover the range blocked by the first audio component, so as to realize the sound of this frequency; then the sound intensity of the corresponding frequency range is adjusted to reach above the threshold, so as to compensate the sound intensity of this part of the frequency to a normal value.
[0042] Exemplarily, when the working state of the first audio component is in the target state, the target frequency range of the first audio component is 5KHz to 8KHz, and the frequency range of the first audio output mode is 20Hz to 800Hz, so the frequency range of the second audio output mode can be set to 20Hz to 8KHz. When the working state of the first audio component is in the target state, the working frequency of the second audio component is controlled to switch from 20Hz to 800Hz to 20Hz to 8KHz.
[0043] In the embodiment of the present application, the working state of the first audio component is obtained, and when the working state of the first audio component is in the target state, the second audio component is controlled to switch from the first audio output mode to the second audio output mode. In this way, when the first audio component is blocked and in the target state, by switching the audio output mode of the second audio component, the second audio component is allowed to additionally output the sound of the damaged frequency in the first audio component, thereby avoiding the problem of sound attenuation caused by the first audio component being blocked.
[0044] Figure 2 This is a schematic diagram of the implementation process of an audio control method provided in an embodiment of the present application. Figure 2 .based on Figure 1 , Figure 1 S102 in can be updated to S201 to S202, which will be combined Figure 2 The steps shown are explained.
[0045] Step S201: Obtain the sound intensity of the target frequency range of the first audio component.
[0046] The sound intensity is used to characterize the strength of a sound of a specific frequency. For example, the sound intensity is the sound pressure level (SPL), which is an important indicator for measuring the strength of a sound.
[0047] In some embodiments, the sound output by the first audio component is collected by a microphone, and the sound is analyzed to obtain the sound intensity of each frequency of the first audio component, from which the sound intensity of the target frequency range is selected. The sound intensity of the target frequency range corresponds to a curve (or straight line), and each sound intensity value corresponds to a single frequency point. The sound intensities at different frequency points can be the same or different.
[0048] In some embodiments, the sound output by the first audio component within a specific time (e.g., 30 seconds) is collected through a microphone, and multiple sound intensities in the target frequency range are averaged to obtain an average sound intensity in the target frequency range. The average sound intensity in the target frequency range is used as the sound intensity in the target frequency range.
[0049] In some embodiments, the target frequency range is a pre-set frequency range, which is a range summarized based on a large number of experiments. For example, in multiple experiments in which the first audio component is blocked, the sound intensity within the target frequency range is always lower than the first intensity threshold, so the target frequency range can be determined based on the experiments.
[0050] In some embodiments, when obtaining the sound intensity of the target frequency range of the first audio component, it is necessary to first determine the target frequency range. The sound intensity of all frequencies in the initial frequency range of the first audio component can be obtained, and the range of frequencies corresponding to the sound intensity below the second intensity threshold is determined as the target frequency range. Among them, all frequencies in the initial frequency range correspond to a second intensity threshold, or each frequency corresponds to a second intensity threshold.
[0051] Step S202: When the sound intensity in the target frequency range is lower than a first intensity threshold, control the second audio component to switch from the first audio output mode to the second audio output mode; wherein the frequency range of the second audio output mode includes the target frequency range.
[0052] Among them, the sound intensity of the target frequency range is lower than the first intensity threshold, indicating that the sound of the target frequency range is blocked, resulting in sound attenuation. At this time, the second audio component needs to be switched from the first audio output mode to the second audio output mode. The frequency range of the second audio output mode includes the target frequency range. Therefore, the sound of the target frequency range is output by the second audio component to compensate for the sound attenuation caused by the blocking of the first audio component.
[0053] In some embodiments, the target frequency range corresponds to a sound intensity curve, and when all sound intensities in the target frequency range are lower than a first intensity threshold, the second audio component is controlled to switch from the first audio output mode to the second audio output mode.
[0054] In some embodiments, as long as there is a sound intensity within the target frequency range that is lower than the first intensity threshold, the second audio component will be controlled to switch from the first audio output mode to the second audio output mode. At this time, it is not necessary to ensure that the sound intensity of all frequencies within the target frequency range is lower than the first intensity threshold.
[0055] The first intensity threshold may be a value, indicating that all frequencies within the target frequency range correspond to the first intensity threshold; the first intensity threshold may also be a curve (or a straight line), indicating that each frequency point within the target frequency range corresponds to a first intensity threshold.
[0056] In the embodiment of the present application, the sound intensity of the target frequency range of the first audio component is obtained; when the sound intensity of the target frequency range is lower than the first intensity threshold, the second audio component is controlled to switch from the first audio output mode to the second audio output mode; wherein the frequency range of the second audio output mode includes the target frequency range. In this way, the sound intensity of the sound output by the first audio component can be used to determine whether the first audio component is blocked, and then determine whether to control the second audio component to switch the output mode; when the sound intensity of the target frequency range is lower than the first intensity threshold, the second audio component is controlled to switch the mode to avoid sound attenuation in the target frequency range.
[0057] In some embodiments, the method also includes: determining the larger value between the maximum value of the target frequency range and the maximum value of the frequency range of the first audio output mode as the maximum value of the frequency range of the second audio output mode; and / or determining the smaller value between the minimum value of the target frequency range and the minimum value of the frequency range of the first audio output mode as the minimum value of the frequency range of the second audio output mode.
[0058] The frequency range of the second audio output mode is determined based on the target frequency range and the frequency range of the first audio output mode.
[0059] In some embodiments, the larger value between the maximum value of the target frequency range and the maximum value of the frequency range of the first audio output mode is determined as the maximum value of the frequency range of the second audio output mode. At this time, the minimum value of the frequency range of the second audio output mode remains the minimum value of the frequency range of the first audio output mode. Exemplarily, the frequency range of the first audio output mode is 20Hz to 800Hz, the target frequency range is 5KHz to 8KHz, and the maximum value of the frequency range of the second audio output mode is the larger value 8KHz between 800Hz and 8KHz. At this time, the minimum value 20Hz of the frequency range of the first audio output mode is directly used as the minimum value of the frequency range of the second audio output mode. This embodiment can correspond to the scenario where the first audio component is a tweeter and the second audio component is a woofer.
[0060] In some embodiments, the smaller value between the minimum value of the target frequency range and the minimum value of the frequency range of the first audio output mode is determined as the minimum value of the frequency range of the second audio output mode. At this time, the maximum value of the frequency range of the second audio output mode remains the maximum value of the frequency range of the first audio output mode. Exemplarily, the frequency range of the first audio output mode is 800Hz to 20KHz, the target frequency range is 500Hz to 800Hz, and the minimum value of the frequency range of the second audio output mode is 500Hz, which is the smaller value between 800Hz and 500Hz. At this time, the maximum value of the frequency range of the first audio output mode, 20KHz, is directly used as the maximum value of the frequency range of the second audio output mode. This embodiment can correspond to the scenario where the first audio component is a woofer and the second audio component is a tweeter.
[0061] In some embodiments, the larger value between the maximum value of the target frequency range and the maximum value of the frequency range of the first audio output mode is determined as the maximum value of the frequency range of the second audio output mode; and the smaller value between the minimum value of the target frequency range and the minimum value of the frequency range of the first audio output mode is determined as the minimum value of the frequency range of the second audio output mode. Exemplarily, the frequency range of the first audio output mode is 800Hz to 2KHz, the target frequency range is 500Hz to 5KHz, the minimum value of the frequency range of the second audio output mode is 500Hz, which is the smaller value between 800Hz and 500Hz, and the maximum value of the frequency range of the second audio output mode is 5KHz, which is the larger value between 2KHz and 5KHz. This embodiment can correspond to the situation where the operating frequency range of the first audio component can cover the operating frequency range of the second audio component, and all frequencies of the first audio component are blocked. For example, the first audio component is a full-band speaker, and the second audio component is a single-band speaker.
[0062] In the embodiment of the present application, the larger value between the maximum value of the target frequency range and the maximum value of the frequency range of the first audio output mode is determined as the maximum value of the frequency range of the second audio output mode; and / or, the smaller value between the minimum value of the target frequency range and the minimum value of the frequency range of the first audio output mode is determined as the minimum value of the frequency range of the second audio output mode. In this way, the frequency range of the second audio output mode can be determined based on the target frequency range and the frequency range of the first audio output mode, so that the frequency range of the second audio output mode includes the target frequency range.
[0063] Figure 3 This is a schematic diagram of the implementation process of an audio control method provided in an embodiment of the present application. Figure 3 .based on Figure 2 , the method also includes step S301 and step S302.
[0064] Step S301: Acquire the sound intensity of all frequencies in the initial frequency range of the first audio component.
[0065] In order to determine the target frequency range, it is necessary to obtain the sound intensity of all frequencies in the initial frequency range of the first audio component.
[0066] In some embodiments, the sound output by the first audio component is collected by a microphone, and the sound is analyzed to obtain the sound intensity of all frequencies in the initial frequency range of the first audio component. Exemplarily, after acquiring the audio signal, the audio signal is subjected to spectrum analysis to obtain the sound intensity of all frequencies.
[0067] In some embodiments, the sound output by the first audio component within a specific time (for example, 30 seconds) is collected through a microphone, and the sound is analyzed to obtain the average sound intensity of all frequencies in the initial frequency range of the first audio component, and the average sound intensity of each frequency is used as the sound intensity of the frequency.
[0068] Step S302: determine a frequency range corresponding to sound intensities lower than a second intensity threshold as the target frequency range.
[0069] In some embodiments, each frequency in the initial frequency range corresponds to a second intensity threshold, and the second intensity threshold corresponding to the entire initial frequency range can be regarded as a curve. The sound intensity of all frequencies is compared with the second intensity threshold, and the frequency range corresponding to the sound intensity below the second intensity threshold is determined as the target frequency range.
[0070] In some embodiments, all frequencies within the initial frequency range correspond to a second intensity threshold, the sound intensities of all frequencies are compared with the second intensity threshold, and the frequency range corresponding to the sound intensity below the second intensity threshold is determined as the target frequency range.
[0071] In the embodiment of the present application, the sound intensity of all frequencies in the initial frequency range of the first audio component is obtained, and the range of frequencies corresponding to the sound intensity below the second intensity threshold is determined as the target frequency range. In this way, the sound intensity of all frequencies of the first audio component can be analyzed to determine the accurate target frequency range.
[0072] Figure 4 This is a schematic diagram of the implementation process of an audio control method provided in an embodiment of the present application. Figure 4 .based on Figure 3 , Figure 3 S302 in can be updated to S401 to S402, which will be combined Figure 4 The steps shown are explained.
[0073] Step S401: Based on the sound intensities of all frequencies within a specific time, determine the average sound intensities of all frequencies.
[0074] In some embodiments, the frequencies obtained by analyzing the sound signal at a single moment cannot cover all the initial frequencies, or the sound intensity of a single frequency cannot objectively represent the average level of the sound intensity of the frequency. Therefore, it is necessary to collect the sound within a specific time, analyze the sound intensity of all frequencies within the specific time, and determine the average sound intensity of all frequencies. The specific time refers to a period of time, such as 30 seconds.
[0075] The sound signal collected at each sampling moment can be analyzed based on the preset sampling moment to obtain multiple sound intensities corresponding to each frequency, and then the multiple sound intensities corresponding to each frequency are averaged to obtain the average sound intensity of all frequencies.
[0076] Step S402: determine a frequency range corresponding to average sound intensities lower than a second intensity threshold as the target frequency range.
[0077] After obtaining the average sound intensity of all frequencies, the average sound intensity is compared with the second intensity threshold, and the range of frequencies corresponding to the average sound intensity below the second intensity threshold is determined as the target frequency range. Here, the average sound intensity of all frequencies can be regarded as a curve, and the curve is compared with the second intensity threshold.
[0078] In the embodiment of the present application, based on the sound intensity of all frequencies within a specific time, the average sound intensity of all frequencies is determined; the range of frequencies corresponding to the average sound intensity below the second intensity threshold is determined as the target frequency range. In this way, the average sound intensity within a period of time can be comprehensively considered to determine an accurate target frequency range and reduce errors.
[0079] In some embodiments, the method further includes: if the sound intensity of the target frequency range of the first audio component is lower than a first intensity threshold, adjusting the sound intensity of the target frequency range in the second audio output mode to be no lower than the first intensity threshold.
[0080] When the sound intensity of the target frequency range of the first audio component is lower than the first intensity threshold, the sound of the target frequency range of the first audio component is damaged, and the sound of the target frequency range is output through the second audio component.
[0081] Here, switching the first audio output mode of the second audio component to the second audio output mode can ensure that the sound frequency range of the second audio component covers the frequency range blocked by the first audio component, so that the second audio component has sound in the target frequency range. At this time, it is necessary to adjust the sound intensity of the target frequency range to reach the first intensity threshold so as to compensate the sound intensity of this part of the frequency to a normal value. Therefore, when the sound intensity of the target frequency range of the first audio component is lower than the first intensity threshold, the sound intensity of the target frequency range in the second audio output mode is adjusted to be not lower than the first intensity threshold.
[0082] By setting the parameters of the second audio component, the sound intensity of the target frequency range in the second audio component can be adjusted.
[0083] In the embodiment of the present application, when the sound intensity of the target frequency range of the first audio component is lower than the first intensity threshold, the sound intensity of the target frequency range in the second audio output mode is adjusted to be no lower than the first intensity threshold. In this way, by adjusting the sound intensity of the target frequency range in the second audio output mode, the sound of the target frequency range can be played normally through the second audio component.
[0084] In some embodiments, the electronic device also includes a supporting body, and the method also includes: determining a working state of the first audio component based on a posture state between the first audio component and the supporting body; the posture state includes a distance between the first audio component and the supporting body, and / or an angle between the first audio component and the supporting body.
[0085] The supporting body is a component that supports the main body components of the electronic device. Exemplarily, the supporting body is a base of the electronic device.
[0086] The first audio component and the supporting body have different posture states, and different posture states mean different working states of the first audio component. Exemplarily, the first posture state between the first audio component and the supporting body is a state in which the first audio component works normally, and the second posture state between the first audio component and the supporting body is a state in which the first audio component is blocked and is in an abnormal state.
[0087] In some embodiments, the posture state includes the distance between the first audio component and the supporting body. Exemplarily, the first audio component is located on the screen of the electronic device, and the screen can be rotated. Therefore, in the process of the first audio component rotating with the screen, the distance between the first audio component and the supporting body will change. When the distance between the first audio component and the supporting body is less than the distance threshold, the first audio component is relatively close to the supporting body, and the supporting body will block the first audio component, causing the first audio component to be in a blocked state. When the distance between the first audio component and the supporting body is not less than the distance threshold, the supporting body will not block the first audio component. Therefore, based on the distance between the first audio component and the supporting body, the working state of the first audio component is determined.
[0088] In some embodiments, the posture state includes the angle between the first audio component and the supporting body. Exemplarily, the first audio component is located inside the supporting body, and during the rotation of the screen, the first audio component rotates with the screen inside the supporting body, and the angle between the first audio component and the supporting body changes. When the angle between the first audio component and the supporting body is within the target angle range, the first audio component will be blocked, for example, the first audio component will be blocked by the rubber foot pad on the supporting body. When the angle between the first audio component and the supporting body is not within the target angle range, the first audio component will not be blocked. Therefore, based on the angle between the first audio component and the supporting body, the working state of the first audio component is determined.
[0089] In some embodiments, the posture state includes the distance between the first audio component and the support body, and the angle between the first audio component and the support body, that is, the working state of the first audio component is determined based on the distance and angle between the first audio component and the support body. When the distance between the first audio component and the support body is less than the distance threshold, and the angle between the first audio component and the support body is within the target angle range, it is determined that the first audio component is blocked and is in an abnormal working state; in other cases, it is determined that the first audio component is in a normal working state.
[0090] In the embodiment of the present application, the working state of the first audio component is determined based on the posture state between the first audio component and the supporting body; the posture state includes the distance between the first audio component and the supporting body, and / or the angle between the first audio component and the supporting body. In this way, based on the posture state between the first audio component and the supporting body, the working state of the first audio component can be accurately obtained.
[0091] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is shown in FIG. Figure 5As shown, the electronic device 500 includes: a supporting body 510, which is abutted against the bearing surface; a first audio component 520 and a second audio component 530, the first audio component has an initial frequency range, and the second audio component has a first audio output mode and a second audio output mode; an identification module 540, which is signal-connected to the supporting body 510, the first audio component 520, and the second audio component 530 respectively; and a control module 550, which controls the second audio component 530 to switch from the first audio output mode to the second audio output mode when the identification module 540 identifies that the working state of the first audio component 520 is in the target state, and the frequency range of the second audio output mode includes the initial frequency range.
[0092] Among them, the supporting body is a component in the electronic device for supporting the main body of the electronic device. Exemplarily, the supporting body is the base of the electronic device. "Abutting against the bearing surface" means that the supporting body is in contact with another object or surface. This bearing surface can be the ground, wall, desktop or any other plane that can support the supporting body. The abutment can be direct contact or can be achieved through some form of connecting parts (such as bolts, nuts, brackets, etc.). The purpose of the abutment is to ensure that the supporting body can be stably fixed on the bearing surface to prevent it from moving or tilting.
[0093] In some embodiments, the first audio component has an initial frequency range, that is, the first audio component operates normally according to the frequencies within the initial frequency range in the initial stage, and the initial frequency range is a standard setting of the first audio component.
[0094] The second audio component has a first audio output mode and a second audio output mode, the first audio output mode can be regarded as a working mode of the second audio component in normal operation in the initial stage, and the second audio output mode can be regarded as a working mode of the second audio component when the first audio component is in a target state. The frequency range of the first audio output mode is the standard setting of the second audio component.
[0095] The initial frequency range of the first audio component is different from the frequency range of the first audio output mode, and the frequency range of the second audio output mode includes the initial frequency range.
[0096] In some embodiments, the working state of the first audio component includes a state in which the first audio component works normally in the electronic device and a state in which the first audio component is blocked and works abnormally.
[0097] The target state includes all states where the first audio component is blocked and in an abnormal state. Exemplarily, the target state includes a state where the first audio component is covered by a hand, a state where the first audio component is covered by other objects, a state where the first audio component is blocked by a rubber foot pad, and a state where the first audio component is blocked due to a change in posture state (the specific position of the first audio component is not limited here).
[0098] In some embodiments, the recognition module can recognize whether the working state of the first audio component is in the target state. The recognition module is respectively connected to the support body, the first audio component, and the second audio component by signals.
[0099] In some embodiments, the recognition module is a distance sensor, and the recognition module determines whether the working state of the first audio component is in the target state based on the distance between the first audio component and the support body. When the distance between the first audio component and the support body is less than a distance threshold, it is determined that the working state of the first audio component is in the target state.
[0100] In some embodiments, the recognition module is an angle sensor, and the recognition module determines whether the working state of the first audio component is in the target state based on the angle between the first audio component and the support body. When the angle between the first audio component and the support body is in the target angle range, it is determined that the working state of the first audio component is in the target state.
[0101] In some embodiments, the recognition module is a microphone, which collects the sound intensity of the target frequency range of the first audio component, compares the sound intensity of the target frequency range with a first intensity threshold, and determines that the working state of the first audio component is in the target state when the sound intensity is lower than the first intensity threshold.
[0102] In some embodiments, the control module controls the second audio component to switch from the first audio output mode to the second audio output mode when the recognition module recognizes that the working state of the first audio component is in the target state, and the frequency range of the second audio output mode includes the initial frequency range.
[0103] In an embodiment of the present application, the electronic device includes a supporting body, a first audio component and a second audio component, an identification module, and a control module. The electronic device can achieve that when the first audio component is blocked but in a target state, by switching the audio output mode of the second audio component, the second audio component can additionally output the sound of the damaged frequency in the first audio component, thereby avoiding the problem of sound attenuation caused by the first audio component being blocked.
[0104] In some embodiments, the first audio component has a first posture state and a second posture state relative to the supporting body; when the first audio component is in the first posture state relative to the supporting body, the first audio component outputs an initial frequency range, and the second audio component outputs a first audio output mode, and the initial frequency range is different from the frequency range of the first audio output mode; when the first audio component is in the second posture state relative to the supporting body, the first audio component is in the target state, and the second audio component outputs a second audio output mode, and the frequency range of the second audio output mode includes at least part of the initial frequency range; wherein, the first posture state and the second posture state are different.
[0105] In some embodiments, the first audio component has different posture states relative to the supporting body, and in different posture states, the output mode of the second audio component is different. Two posture states are considered here: the first posture state and the second posture state. When the first audio component is in the first posture state relative to the supporting body, the first audio component is not blocked, and the first audio component and the second audio component can both work according to the standard settings, that is, the first audio component outputs an initial frequency range, and the second audio component outputs a first audio output mode, and the initial frequency range is different from the frequency range of the first audio output mode. When the first audio component is in the second posture state relative to the supporting body, it is considered that the first audio component is blocked by the supporting body. At this time, the first audio component is in the target state, and the second audio component outputs a second audio output mode, and the frequency range of the second audio output mode includes at least part of the initial frequency range.
[0106] The first audio component is in a target state, indicating that the sound in the target frequency range of the first audio component is attenuated, and therefore, the frequency range of the second audio output mode includes the target frequency range.
[0107] Among them, the first posture state and the second posture state are different. Exemplarily, when the distance between the first audio component and the supporting body is not less than the distance threshold, it is determined that the first audio component is in the first posture state relative to the supporting body; when the distance between the first audio component and the supporting body is less than the distance threshold, it is determined that the first audio component is in the second posture state relative to the supporting body. Exemplarily, when the angle between the first audio component and the supporting body is not within the target angle range, it is determined that the first audio component is in the first posture state relative to the supporting body; when the angle between the first audio component and the supporting body is within the target angle range, it is determined that the first audio component is in the second posture state relative to the supporting body.
[0108] In the embodiment of the present application, the first audio component has a first posture state and a second posture state relative to the supporting body. When the first audio component is in different posture states relative to the supporting body, the first audio component is in different working states, and the audio output mode of the second audio component is different. In this way, based on the posture state between the first audio component and the second audio component, the audio output mode of the second audio component can be accurately determined, and when the first audio component is blocked, the output sound is prevented from being damaged by the second audio component.
[0109] In some embodiments, the recognition module identifies the sound intensity of a target frequency range of a first audio component in different posture states; when the sound intensity in the target frequency range is lower than a first intensity threshold, the control module controls the second audio component to switch from a first audio output mode to a second audio output mode.
[0110] Among them, the recognition module has a sound collection function, which can collect the sound output by the first audio component. Here, the recognition module can identify the sound intensity of the target frequency range of the first audio component in different posture states. Different posture states refer to the posture state between the first audio component and the supporting body. The posture state includes the distance between the first audio component and the supporting body, and / or the angle between the first audio component and the supporting body. In different posture states, the first audio component is blocked by the supporting body, and the output sound intensity is different. Exemplarily, the recognition module is a microphone.
[0111] Among them, when the sound intensity in the target frequency range is lower than the first intensity threshold, the control module controls the second audio component to switch from the first audio output mode to the second audio output mode. Here, the sound intensity in the target frequency range can be regarded as a sound intensity curve, and each sound intensity in the curve corresponds to a frequency. The first intensity threshold can be a value, indicating that the target frequency range corresponds to a first intensity threshold; the first intensity threshold can also be a curve, indicating that each frequency in the target frequency range corresponds to a first intensity threshold.
[0112] In some embodiments, when the sound intensity of all frequencies within the target frequency range is lower than a first intensity threshold, the control module controls the second audio component to switch from the first audio output mode to the second audio output mode.
[0113] In some embodiments, as long as there is a sound intensity within the target frequency range that is lower than a first intensity threshold, the control module controls the second audio component to switch from the first audio output mode to the second audio output mode.
[0114] In the embodiment of the present application, the recognition module can recognize the sound intensity of the target frequency range of the first audio component in different posture states, and then control the mode switching of the second audio component through the control module when the sound intensity of the target frequency range is lower than the first intensity threshold. In this way, the mode of the second audio component can be effectively switched based on the recognition of the sound intensity of the first audio component, avoiding the sound attenuation caused by the obstruction of the first audio component.
[0115] In some embodiments, the control module determines the larger value between the maximum value of the target frequency range and the maximum value of the frequency range of the first audio output mode as the maximum value of the frequency range of the second audio output mode; and / or determines the smaller value between the minimum value of the target frequency range and the minimum value of the frequency range of the first audio output mode as the minimum value of the frequency range of the second audio output mode.
[0116] In some embodiments, the recognition module obtains the sound intensity of all frequencies in the initial frequency range of the first audio component; and determines the frequency range corresponding to the sound intensity lower than the second intensity threshold as the target frequency range.
[0117] In some embodiments, the recognition module determines the average sound intensity of all frequencies based on the sound intensity of all frequencies within a specific time; and determines the frequency range corresponding to the average sound intensity below the second intensity threshold as the target frequency range.
[0118] In some embodiments, the control module adjusts the sound intensity of the target frequency range in the second audio output mode to be not less than the first intensity threshold when the sound intensity of the target frequency range of the first audio component is lower than the first intensity threshold.
[0119] In some embodiments, the recognition module determines the working state of the first audio component based on the posture state between the first audio component and the supporting body; the posture state includes the distance between the first audio component and the supporting body, and / or the angle between the first audio component and the supporting body.
[0120] The following describes the application of the audio control method provided in the embodiment of the present application in actual scenarios.
[0121] The tweeters on all-in-one AIO machines are designed to be unobstructed, but some products need to support the screen rotation function. When the screen rotates, the tweeters will be blocked by the rubber feet on the chassis, causing the treble to attenuate. In the relevant technology, there is no solution to the problem of blocked tweeters.
[0122] In an embodiment of the present application, when the tweeter is blocked, the sensor on the AIO will be triggered and notify the speaker's firmware. After receiving the notification, the speaker adjusts the woofer, adjusting the woofer into a woofer and a tweeter, and uses this part of the tweeter to compensate for the loss of the blocked tweeter.
[0123] Figure 6 Schematic diagram of the tweeter position provided in the embodiment of the present application Figure 1 .like Figure 6 As shown, rubber pads 602 are installed at different positions on the base 601, the tweeter 603 is in the solid frame position in the base in the figure, and the dense holes in the figure are sound outlet holes 604. The current position of the tweeter 603 in the figure is the position of the rotation angle 0 degree, the position indicated by the first dotted line 605 is the position of the tweeter 603 rotated 30 degrees, and the position indicated by the second dotted line 606 is the position of the tweeter 603 rotated -30 degrees. The angle between the two tweeters is 120 degrees.
[0124] Figure 7 Schematic diagram of the tweeter position provided in the embodiment of the present application Figure 2 The position of the tweeter 701 in the base is as follows. Figure 7 The tweeter 701 is located below the sound outlet 702 in the base.
[0125] Figure 8 This is a schematic diagram of the location of the bass speaker provided in the embodiment of the present application. Figure 8 As shown, the bass speaker 801 is distributed in the center of the screen 802.
[0126] Fig. 9 This is a layout diagram of the entire machine provided in the embodiment of this application. Fig. 9 As shown, there is a gravity sensor 901 on the back of the screen, a woofer 902 is also located on the back of the screen, and a tweeter 903 is located in the base of the whole machine.
[0127] Fig.10 This is a schematic diagram of the sound intensity of different frequencies provided in the embodiment of the present application. Fig.10 As shown, the first curve 1001 is the relationship curve between the frequency and the sound intensity at the default position of the tweeter, and the second curve 1002 is the relationship curve between the frequency and the sound intensity when the tweeter is rotated 30 degrees. The horizontal axis is the frequency Hz, and the vertical axis is dB re 1SPL / FS is the decibel relative to 1 sound pressure level / full scale, indicating the sound intensity. Among them, the standard setting frequency of the woofer is 20Hz to 800Hz, and the standard setting frequency of the tweeter is 800Hz to 20KHz. Fig.10It can be seen that when the tweeter is rotated to a 30-degree position, the sound intensity in the frequency range of 5KHz to 8KHz is significantly reduced compared to the sound intensity in the default position, indicating that the sound in the frequency range of 5KHz to 8KHz is blocked.
[0128] In some embodiments, when the host is rotated 30 degrees to the left or right, the tweeter will be blocked by the rubber foot pad at the bottom; when the tweeter is blocked, the microphone recognizes that the sound intensity of the tweeter at a treble frequency of 5KHz to 8KHz is lower than the setting value in the speaker firmware, and the G sensor senses that the screen angle is switched to 30 degrees or -30 degrees; at this time, the speaker firmware automatically switches the woofer to the firmware setting value of 30 degrees, that is, the woofer is used to play the sound in the 5KHz to 8KHz area originally played by the tweeter. Among them, when the tweeter rotates 30 degrees, the frequency of the woofer is set to 20Hz to 8KHz, and the frequency of the tweeter is set to 8KHz to 20KHz.
[0129] In some embodiments, the working logic of the speaker firmware is: perform default settings of the tweeter and woofer based on standard settings; when the gravity sensor detects that the screen is rotated to 30 degrees or minus 30 degrees, the speaker firmware switches to the 30-degree setting, that is, uses the woofer to play the sound in the 5KHz to 8KHz range originally played by the tweeter.
[0130] Based on the foregoing embodiments, an embodiment of the present application provides an audio control device, which includes the units included and the modules included in the units, which can be implemented by a processor in a computer device; of course, it can also be implemented by a specific logic circuit; in the implementation process, the processor can be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP) or a field programmable gate array (FPGA), etc.
[0131] Fig.11 A schematic diagram of the structure of an audio control device provided in an embodiment of the present application is shown in FIG. Fig.11 As shown, the audio control device 1100 includes: an acquisition module 1110 and a control module 1120, wherein:
[0132] An acquisition module 1110 is used to acquire the working status of the first audio component;
[0133] The control module 1120 is used to control the second audio component to switch from a first audio output mode to a second audio output mode when the working state of the first audio component is in a target state; wherein the initial frequency range of the first audio component is different from the frequency range of the first audio output mode, and the frequency range of the second audio output mode includes at least part of the initial frequency range.
[0134] In some embodiments, the control module 1120 is also used to obtain the sound intensity of the target frequency range of the first audio component; when the sound intensity in the target frequency range is lower than a first intensity threshold, control the second audio component to switch from the first audio output mode to the second audio output mode; wherein the frequency range of the second audio output mode includes the target frequency range.
[0135] In some embodiments, the control module 1120 is also used to determine the larger value between the maximum value of the target frequency range and the maximum value of the frequency range of the first audio output mode as the maximum value of the frequency range of the second audio output mode; and / or, to determine the smaller value between the minimum value of the target frequency range and the minimum value of the frequency range of the first audio output mode as the minimum value of the frequency range of the second audio output mode.
[0136] In some embodiments, the control module 1120 is further configured to obtain the sound intensity of all frequencies in the initial frequency range of the first audio component; and determine the frequency range corresponding to the sound intensity lower than the second intensity threshold as the target frequency range.
[0137] In some embodiments, the control module 1120 is further configured to determine the average sound intensity of all frequencies based on the sound intensity of all frequencies within a specific time period; and determine the frequency range corresponding to the average sound intensity below the second intensity threshold as the target frequency range.
[0138] In some embodiments, the control module 1120 is further configured to adjust the sound intensity of the target frequency range in the second audio output mode to be not less than a first intensity threshold when the sound intensity of the target frequency range of the first audio component is lower than a first intensity threshold.
[0139] In some embodiments, the acquisition module 1120 is also used to determine the working state of the first audio component based on the posture state between the first audio component and the supporting body; the posture state includes the distance between the first audio component and the supporting body, and / or the angle between the first audio component and the supporting body.
[0140] The description of the above device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. In some embodiments, the functions or modules included in the device provided in the embodiment of the present application can be used to execute the method described in the above method embodiment. For technical details not disclosed in the device embodiment of the present application, please refer to the description of the method embodiment of the present application for understanding.
[0141] It should be noted that in the embodiment of the present application, if the above-mentioned audio control method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, which is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a disk or an optical disk. In this way, the embodiment of the present application is not limited to any specific hardware, software or firmware, or any combination of hardware, software, and firmware.
[0142] An embodiment of the present application provides a computer device, including a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the processor executes the program, some or all of the steps in the above method are implemented.
[0143] The embodiment of the present application provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, some or all of the steps in the above method are implemented. The computer-readable storage medium can be transient or non-transient.
[0144] An embodiment of the present application provides a computer program, including a computer-readable code. When the computer-readable code is run in a computer device, a processor in the computer device executes some or all of the steps for implementing the above method.
[0145] The embodiment of the present application provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and when the computer program is read and executed by a computer, some or all of the steps in the above method are implemented. The computer program product can be implemented specifically by hardware, software or a combination thereof. In some embodiments, the computer program product is specifically embodied as a computer storage medium, and in other embodiments, the computer program product is specifically embodied as a software product, such as a software development kit (SDK) and the like.
[0146] It should be noted here that the description of the various embodiments above tends to emphasize the differences between the various embodiments, and the same or similar aspects can be referenced to each other. The description of the above device, storage medium, computer program and computer program product embodiments is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the embodiments of the device, storage medium, computer program and computer program product of this application, please refer to the description of the method embodiment of this application for understanding.
[0147] Fig.12 A hardware entity diagram of a computer device provided in an embodiment of the present application is shown in FIG. Fig.12 As shown, the hardware entity of the computer device 1200 includes: a processor 1201 and a memory 1202, wherein the memory 1202 stores a computer program that can be run on the processor 1201, and the processor 1201 implements the steps in the method of any of the above embodiments when executing the program.
[0148] The memory 1202 stores computer programs that can be run on the processor. The memory 1202 is configured to store instructions and applications executable by the processor 1201. It can also cache data to be processed or processed by the processor 1201 and various modules in the computer device 1200 (for example, image data, audio data, voice communication data, and video communication data). This can be achieved through flash memory (FLASH) or random access memory (Random Access Memory, RAM).
[0149] When the processor 1201 executes the program, the steps of any of the above audio control methods are implemented. The processor 1201 generally controls the overall operation of the computer device 1200.
[0150] An embodiment of the present application provides a computer storage medium, which stores one or more programs. The one or more programs can be executed by one or more processors to implement the steps of the audio control method of any of the above embodiments.
[0151] It should be noted here that the description of the above storage medium and device embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium and device embodiments of this application, please refer to the description of the method embodiments of this application for understanding.
[0152] The processor may be at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a Central Processing Unit (CPU), a controller, a microcontroller, and a microprocessor. It is understandable that the electronic device that implements the functions of the processor may also be other, and the embodiments of the present application are not specifically limited.
[0153] The above-mentioned computer storage medium / memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory (Flash Memory), a magnetic surface memory, an optical disk, or a compact disc read-only memory (CD-ROM) and the like; it can also be various terminals including one or any combination of the above-mentioned memories, such as mobile phones, computers, tablet devices, personal digital assistants, etc.
[0154] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.
Claims
1. An audio control method, applied to an electronic device, wherein the electronic device comprises a first audio component and a second audio component, the method comprising: Obtaining the working status of the first audio component; When the working state of the first audio component is in the target state, controlling the second audio component to switch from the first audio output mode to the second audio output mode; The initial frequency range of the first audio component is different from the frequency range of the first audio output mode, and the frequency range of the second audio output mode includes at least part of the initial frequency range.
2. The method according to claim 1, wherein when the working state of the first audio component is in the target state, controlling the second audio component to switch from the first audio output mode to the second audio output mode comprises: Acquire the sound intensity of the target frequency range of the first audio component; When the sound intensity in the target frequency range is lower than a first intensity threshold, controlling the second audio component to switch from the first audio output mode to the second audio output mode; The frequency range of the second audio output mode includes the target frequency range.
3. The method according to claim 2, further comprising: Determine the larger value between the maximum value of the target frequency range and the maximum value of the frequency range of the first audio output mode as the maximum value of the frequency range of the second audio output mode; and / or, A smaller value between a minimum value of the target frequency range and a minimum value of the frequency range of the first audio output mode is determined as the minimum value of the frequency range of the second audio output mode.
4. The method according to claim 2, further comprising: Obtain the sound intensity of all frequencies in the initial frequency range of the first audio component; A frequency range corresponding to sound intensities lower than a second intensity threshold is determined as the target frequency range.
5. The method according to claim 4, wherein determining the frequency range corresponding to the sound intensity lower than the second intensity threshold as the target frequency range comprises: Determining an average sound intensity of all frequencies based on the sound intensity of all frequencies within a specific period of time; A frequency range corresponding to average sound intensities below the second intensity threshold is determined as the target frequency range.
6. The method according to claim 2, further comprising: When the sound intensity of the target frequency range of the first audio component is lower than a first intensity threshold, the sound intensity of the target frequency range in the second audio output mode is adjusted to be no lower than the first intensity threshold.
7. The method according to any one of claims 1 to 6, wherein the electronic device further comprises a supporting body, and the method further comprises: Determining a working state of the first audio component based on a posture state between the first audio component and the supporting body; The posture state includes the distance between the first audio component and the support body, and / or the angle between the first audio component and the support body.
8. An electronic device comprising: A supporting body abutting against the bearing surface; a first audio component and a second audio component, the first audio component having an initial frequency range, the second audio component having a first audio output mode and a second audio output mode; The identification module is respectively connected to the support body, the first audio component, and the second audio component by signals; The control module controls the second audio component to switch from the first audio output mode to the second audio output mode when the recognition module recognizes that the working state of the first audio component is in the target state, and the frequency range of the second audio output mode includes the initial frequency range.
9. The electronic device according to claim 8, wherein: The first audio component has a first posture state and a second posture state relative to the supporting body; When the first audio component is in a first posture state relative to the supporting body, the first audio component outputs an initial frequency range, and the second audio component outputs a first audio output mode, and the initial frequency range is different from the frequency range of the first audio output mode; When the first audio component is in a second posture state relative to the supporting body, the first audio component is in the target state, the second audio component outputs a second audio output mode, and the frequency range of the second audio output mode includes at least part of the initial frequency range; Wherein, the first posture state and the second posture state are different.
10. The electronic device according to claim 8, wherein: The recognition module recognizes the sound intensity of the target frequency range of the first audio component in different posture states; When the sound intensity in the target frequency range is lower than a first intensity threshold, the control module controls the second audio component to switch from the first audio output mode to the second audio output mode.