WO2023088126A1 - Electronic device, sound control method, and storage medium - Google Patents
Electronic device, sound control method, and storage medium Download PDFInfo
- Publication number
- WO2023088126A1 WO2023088126A1 PCT/CN2022/130470 CN2022130470W WO2023088126A1 WO 2023088126 A1 WO2023088126 A1 WO 2023088126A1 CN 2022130470 W CN2022130470 W CN 2022130470W WO 2023088126 A1 WO2023088126 A1 WO 2023088126A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- placement state
- audio components
- audio
- electronic device
- data
- Prior art date
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/16—Sound input; Sound output
Definitions
- the present application belongs to the technical field of electronic equipment, and in particular relates to an electronic equipment, a sound control method and a storage medium.
- the television may include a display device for displaying images and a speaker assembly for sound generation, etc., wherein the speaker assembly may be arranged inside or below the display device, or may be separately arranged from the display device.
- the positional relationship between the speaker assembly and the display device corresponds to different placement methods of electronic equipment, but in different placement methods, since the position of the speaker used for sounding in the speaker assembly is fixed, the direction cannot be automatically adjusted, thus When the electronic device is placed in a position that cannot directly emit sound to the user's position, the sound effect will be affected, resulting in poor user experience.
- the positional relationship between the speaker assembly and the display device corresponds to different placement methods of electronic equipment, but in different placement methods, since the position of the speaker used for sounding in the speaker assembly is fixed, the direction cannot be automatically adjusted, thus When the electronic device is placed in a position that cannot directly emit sound to the user's position, the sound effect will be affected, resulting in poor user experience.
- Embodiments of the present application provide an electronic device, a sound control method, and a storage medium of an electronic device, so that the electronic device has better sound effects in different placement states, and improves user experience.
- an electronic device including:
- a detection device the detection device is used to detect the placement state of the electronic equipment
- a controller the controller is electrically connected to the detection device and the plurality of audio components respectively, and the controller is used for:
- the embodiment of the present application provides another electronic device, including:
- a display device for displaying images
- a speaker assembly which establishes a wireless communication connection with the display device, and the speaker assembly includes multiple sets of audio components
- a detection device arranged on the speaker assembly, is used to detect the placement state of the speaker assembly
- a controller the controller is electrically connected to the display device, the speaker assembly and the detection device respectively, and the controller is used for:
- the embodiment of the present application also provides a sound control method, which is applied to an electronic device, and the electronic device includes multiple sets of audio components, and the sound control method includes:
- the embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed on a computer, the computer executes the sound described in any one of the above items. Control Method.
- the embodiment of the present application provides that the electronic device includes multiple sets of audio components, a detection device and a controller.
- the detection device is used to detect the placement state of the electronic device, and is used to determine the current placement state of the electronic device through the detection device. , select the target audio component corresponding to the current placement state from multiple groups of audio components, and control the sound of the target audio component.
- the present application detects the placement state of the electronic device through the detection device, and selects an audio component at a corresponding position to produce sound according to the placement state, so that the electronic device has better sound effects in different placement states, and improves user experience.
- Fig. 1 is a first structural block diagram of an electronic device provided by an embodiment of the present application.
- Fig. 2 is a first structural schematic diagram of an electronic device provided by an embodiment of the present application.
- FIG. 3 is a schematic diagram of a second structure of an electronic device provided by an embodiment of the present application.
- Fig. 4 is a schematic structural diagram of a detection device provided by an embodiment of the present application.
- FIG. 5 is a second structural block diagram of an electronic device provided by an embodiment of the present application.
- Fig. 6 is a schematic flowchart of a sound control method provided by an embodiment of the present application.
- FIG. 7 is a third structural block diagram of an electronic device provided by an embodiment of the present application.
- An embodiment of the present application provides an electronic device, including:
- a detection device the detection device is used to detect the placement state of the electronic equipment
- a controller the controller is electrically connected to the detection device and the plurality of audio components respectively, and the controller is used for:
- the placement state includes a vertical placement state, a horizontal placement state and an oblique placement state
- the detection device is used for:
- force data is detected both in the vertical direction and in the horizontal direction, it is determined that the electronic device is placed in a tilted state.
- the multiple sets of audio components include a first set of audio components and a second set of audio components, and the controller is further configured to:
- the current placement state is the vertical placement state, selecting the first group of audio components corresponding to the vertical placement state from the multiple groups of audio components as the target audio component;
- the current placement state is the horizontal placement state, selecting the second group of audio components corresponding to the horizontal placement state from the multiple groups of audio components as the target audio component;
- If the current placement state is the inclined placement state, compare the first data of the force detected by the detection device in the vertical direction with the first data of the force detected in the horizontal direction The size of the second data;
- the multiple sets of audio components include a first set of audio components, and the controller is also used for:
- the current placement state is the vertical placement state, selecting the first group of audio components corresponding to the vertical placement state from the multiple groups of audio components as the target audio component.
- the multiple sets of audio components include a second set of audio components, and the controller is also used for:
- the current placement state is the horizontal placement state
- selecting the second group of audio components corresponding to the horizontal placement state from the multiple groups of audio components as the target audio component is the horizontal placement state
- the multiple sets of audio components include a third set of audio components, and the controller is also used for:
- the current placement state is the inclined placement state
- selecting the third group of audio components corresponding to the inclined placement state from the multiple groups of audio components as the target audio component is the inclined placement state
- the embodiment of the present application also provides another electronic device, including:
- a display device for displaying images
- a speaker assembly which establishes a wireless communication connection with the display device, and the speaker assembly includes multiple sets of audio components
- a detection device arranged on the speaker assembly, is used to detect the placement state of the speaker assembly
- a controller the controller is electrically connected to the display device, the speaker assembly and the detection device respectively, and the controller is used for:
- the placement state includes a vertical placement state, a horizontal placement state and an oblique placement state
- the detection device is used for:
- the embodiment of the present application also provides a sound control method, which is applied to an electronic device, and the electronic device includes multiple sets of audio components, and the sound control method includes:
- the placement state includes a vertical placement state, a horizontal placement state, and an oblique placement state
- the determination of the current placement state of the electronic device includes:
- force data is detected both in the vertical direction and in the horizontal direction, it is determined that the electronic device is placed in a tilted state.
- the multiple sets of audio components include a first set of audio components and a second set of audio components, and according to the current placement state, select from the multiple sets of audio components corresponding to the current placement state
- the target audio components including:
- the current placement state is the vertical placement state, selecting the first group of audio components corresponding to the vertical placement state from the multiple groups of audio components as the target audio component;
- the current placement state is the horizontal placement state, selecting the second group of audio components corresponding to the horizontal placement state from the multiple groups of audio components as the target audio component;
- If the current placement state is the inclined placement state, compare the first data of the force detected by the detection device in the vertical direction with the first data of the force detected in the horizontal direction The size of the second data;
- the plurality of groups of audio components includes a first group of audio components, and selecting a target audio component corresponding to the current placement state from the plurality of groups of audio components according to the current placement state includes :
- the current placement state is the vertical placement state, selecting the first group of audio components corresponding to the vertical placement state from the multiple groups of audio components as the target audio component.
- the plurality of groups of audio components includes a second group of audio components, and selecting a target audio component corresponding to the current placement state from the plurality of groups of audio components according to the current placement state includes :
- the current placement state is the horizontal placement state
- selecting the second group of audio components corresponding to the horizontal placement state from the multiple groups of audio components as the target audio component is the horizontal placement state
- the multiple groups of audio components include a third group of audio components, and selecting a target audio component corresponding to the current placement state from the multiple groups of audio components according to the current placement state includes :
- the current placement state is the inclined placement state
- selecting the third group of audio components corresponding to the inclined placement state from the multiple groups of audio components as the target audio component is the inclined placement state
- the embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed on the computer, the computer executes:
- the placement state includes a vertical placement state, a horizontal placement state, and an oblique placement state, and to determine the current placement state of the electronic device, the computer executes:
- force data is detected both in the vertical direction and in the horizontal direction, it is determined that the electronic device is placed in a tilted state.
- the multiple sets of audio components include a first set of audio components and a second set of audio components, and according to the current placement state, select from the multiple sets of audio components corresponding to the current placement state
- the current placement state is the vertical placement state, selecting the first group of audio components corresponding to the vertical placement state from the multiple groups of audio components as the target audio component;
- the current placement state is the horizontal placement state, selecting the second group of audio components corresponding to the horizontal placement state from the multiple groups of audio components as the target audio component;
- If the current placement state is the inclined placement state, compare the first data of the force detected by the detection device in the vertical direction with the first data of the force detected in the horizontal direction The size of the second data;
- the multiple groups of audio components include a first group of audio components, and according to the current placement state, selecting a target audio component corresponding to the current placement state from the multiple groups of audio components, the Said computer executes:
- the current placement state is the vertical placement state, selecting the first group of audio components corresponding to the vertical placement state from the multiple groups of audio components as the target audio component.
- the multiple groups of audio components include a second group of audio components, and according to the current placement state, selecting a target audio component corresponding to the current placement state from the multiple groups of audio components, the Said computer executes:
- the current placement state is the horizontal placement state
- selecting the second group of audio components corresponding to the horizontal placement state from the multiple groups of audio components as the target audio component is the horizontal placement state
- the multiple groups of audio components include a third group of audio components, and according to the current placement state, selecting a target audio component corresponding to the current placement state from the multiple groups of audio components, the Said computer executes:
- the current placement state is the inclined placement state
- selecting the third group of audio components corresponding to the inclined placement state from the multiple groups of audio components as the target audio component is the inclined placement state
- electronic devices such as televisions include a display device for displaying pictures and a speaker assembly for sounding, etc., wherein the positional relationship between the speaker assembly and the display device corresponds to the different placement methods of the electronic equipment, but because the speaker assembly uses Because the position of the loudspeaker that produces sound in the speaker assembly is fixed, therefore, when the electronic device is placed in different ways, the sound emitting direction of the speaker assembly does not necessarily face the direction that the user needs to receive the sound, therefore, it will cause the user to be unable to receive the sound. to the best sound effect, thereby affecting the user experience.
- embodiments of the present application provide an electronic device, a sound control method, and a storage medium.
- the embodiment of the present application takes the electronic device as an example of a TV for illustration.
- electronic devices such as independent speaker components can also be applied to the embodiments of the present application, and all belong to the embodiments of the present application. scope of protection.
- FIG. 1 is a first structural block diagram of an electronic device provided by an embodiment of the present application.
- the electronic device 100 may include multiple sets of audio components 110 , detection means 120 and controller 130 .
- the electronic device 100 is described as a television.
- the electronic device 100 may include a display device for displaying images and a speaker assembly for sounding corresponding to the display screen.
- the speaker assembly may be arranged inside the display device to integrate the electronic device 100. type structure; the speaker assembly can also be arranged under the display device, and be electrically connected to the display device through a connector; the speaker assembly can also be arranged separately from the display device, so that the electronic device 100 is a split arrangement.
- the placement state of the display device and the speaker assembly is the same, and corresponds to the placement state of the electronic device 100; if the speaker assembly is arranged below the display device or the speaker assembly and the display device are separately arranged , then the placement states of the display device and the speaker assembly may be the same or different.
- the display device Since the display device is usually opposite to the user's viewing line of sight, it needs to be installed perpendicular to the desktop or parallel to the wall, that is, floor-standing. It can be understood that the display device is placed in a fixed state, but if the speaker assembly is not installed Inside, in order to correspond to different placement states of the display device, the speaker assembly needs to have different placement states to ensure the installation stability and appearance of the electronic device 100 .
- the support structure supporting the display device needs to be fixed on the desktop, and the speaker assembly is arranged on the support structure or the speaker assembly is directly used as a support structure to support the display device; If the placed state is parallel to the wall, the speaker assembly needs to be placed in parallel to the wall, so as to ensure that the electronic device 100 can be in contact with the wall as much as possible to reduce the occupied space.
- the placement state of the electronic device 100 corresponds to the placement state of the speaker assembly.
- the present embodiment arranges multiple groups of audio components 110 in the speaker assembly, and the multiple groups of audio components 110 are respectively arranged in different positions of the speaker assembly, and each group of audio components corresponds to different placement states of the electronic device 100, so that When the electronic device 100 is in different placement states, it is guaranteed that at least one group of audio components can emit sound toward the user's position, so that the user can hear a good speaker effect.
- Each audio component may include a power amplifier and a speaker.
- the power amplifier can amplify the sound signal, and send out the amplified sound signal through the speaker for the user to hear.
- each audio component can include a plurality of power amplifiers and a plurality of loudspeakers, so that each audio component forms a multi-channel audio channel switching system, such as, each audio component can include 5 power amplifiers and 5 loudspeakers, each A power amplifier and each loudspeaker correspond to one channel, that is, each audio component includes five channels, namely the left channel, the center channel, the right channel and two channels facing the display device.
- FIG. 2 is a schematic diagram of the first structure of the electronic device provided by the embodiment of the present application
- FIG. 3 is a schematic diagram of the second structure of the electronic device provided by the embodiment of the present application.
- the speaker assembly disposed at the lower part of the display device as an example.
- FIG. 2 when the electronic device 100 is placed on the desktop, the display device is placed perpendicular to the desktop, and the speaker assembly is connected to the display device through a connector and placed parallel to the desktop.
- the electronic device 100 and The placement state of the speaker components is the same, that is, it is in the horizontal placement state.
- a group of audio components is provided in the speaker component corresponding to the horizontal placement state and facing the direction where the user watches the display device.
- the audio components include 5 corresponding channels. They are a1, a2, a3, a4 and a5, where a1 corresponds to the left channel, a2 corresponds to the middle channel, a3 corresponds to the right channel, and a4 and a5 correspond to the channel facing the display device, that is, the upward channel.
- stereo multi-channel audio switching system is divided into different types corresponding to different power amplifiers and speakers, such as 2.0-channel, 3.0-channel, 5.0-channel, 5.1-channel and 5.1.2-channel wait.
- the 2.0 channel contains two channels, namely the left channel and the right channel; the 3.0 channel contains three channels, namely the left channel, the center channel and the right channel; the 5.0 channel contains 5 channels , that is, the left channel, the middle channel, the right channel and the two channels facing the display device; the 5.1 channel includes 6 channels, and on the basis of the 5.0 channel, a bass channel is added, and the bass channel It can be arranged on the connecting piece between the sound box assembly and the display device; the 5.1.2 sound channel includes eight sound channels, and on the basis of the 5.1 sound channel, two stereo channels are added on the back of the display device.
- the electronic device 100 when the electronic device 100 is hung on the wall, the display device is parallel to the wall, and the speaker assembly is connected to the display device through a connector and placed parallel to the wall. At this time, the electronic device 100 can be regarded as The placement state is the same as that of the speaker assembly, that is, it is in a vertical placement state.
- a group of audio components 110 is provided corresponding to the vertical placement state and facing the direction in which the user watches the display device.
- the audio component includes 5 corresponding sound channels.
- b1, b2, b3, b4 and b5 respectively, where b1 corresponds to the left channel, b2 corresponds to the center channel, b3 corresponds to the right channel, and b4 and b5 correspond to the channel facing the display device, that is, the upward channel.
- a bass channel is provided at the position of the connector and two channels are provided at the back of the display device to form a 5.1.2 multi-channel system.
- the electronic device 100 may be placed in a tilted state in addition to the vertically placed state and the horizontally placed state, so as to be applicable to different scenarios.
- a group of audio components 110 corresponding to the obliquely disposed state can be provided in the speaker assembly, and the vertically placed state or the horizontally placed state can also be selected according to the inclination angle of the electronic device 100.
- the audio component 110 corresponding to the playback state is used as a sound unit, so that the number of audio components can be reduced.
- the detection device 120 in the electronic device 100 can be set in the speaker assembly, and can detect the placement state of the electronic device 100 , which corresponds to the placement state of the speaker assembly.
- FIG. 4 is a schematic structural diagram of a detection device provided by an embodiment of the present application.
- the detection device 120 can be a sensor assembly for detecting force, and the detection device 120 can detect data of forces in different directions, specifically, data of forces in the x direction, the -x direction, the y direction, the -y direction, the z direction, and the -z direction, as shown in Fig. Only the positive directions of x, y and z are shown in , and the negative directions are not shown.
- the placement state of the electronic device 100 may include a vertical placement state, a horizontal placement state, and an oblique placement state.
- the vertical placement state of the electronic device 100 is that the display device of the electronic device 100 is set perpendicular to the horizontal direction, and the speaker assembly is also perpendicular to the horizontal direction, that is, the electronic device 100 is hung on the wall surface;
- the horizontal placement state of the electronic device 100 is display The device is arranged perpendicular to the horizontal direction, and the speaker assembly is parallel to the horizontal direction, that is, the electronic device 100 is placed on the desktop;
- the oblique placement state of the electronic device 100 is that at least one of the display device and the speaker assembly is placed obliquely in the horizontal direction or in the vertical direction .
- the detection device 120 detects force data perpendicular to the vertical direction, and does not detect force data in the horizontal direction, it is determined that the electronic device 100 is in a vertical placement state; if the detection device 120 detects force data in the horizontal direction If the force data is detected, and no force data is detected in the vertical direction, it is determined that the electronic device is placed horizontally; if the detection device 120 detects force data in both the horizontal direction and the vertical direction, it is determined that the electronic device 100 is on a tilt.
- the controller 130 in the electronic device 100 may be a processor, or other control devices, and the controller 130 may be disposed in a display device or a speaker assembly, and specifically integrated on a circuit board.
- the controller 130 is electrically connected to multiple sets of audio components 110 and the detection device 120 respectively.
- the controller 130 can determine the current placement state of the electronic device 100 through the data detected by the detection device 120; according to the current placement state, select a target audio component corresponding to the current placement state from multiple groups of audio components 110; and control The target audio component emits a sound, so as to control the sound of the audio component through the placement state of the electronic device 100 .
- the multiple groups of audio components 110 may include three groups of audio components, respectively corresponding to different placement states of the electronic device 100.
- the multiple groups of audio components 110 include the first group of audio components, the second A second set of audio components and a third set of audio components. If the current placement state is a vertical placement state, then select the first group of audio components corresponding to the vertical placement state from multiple groups of audio components 110 as the target audio component; if the current placement state is a horizontal placement state, Then select the second group of audio components corresponding to the horizontal placement state from multiple groups of audio components 110 as the target audio component; The corresponding third group of audio components serves as target audio components.
- two sets of audio components can be set in the speaker assembly, for example, multiple sets of audio components 110 include the first set of audio components. component and the second set of audio components.
- the first group of audio components or the second group of audio components may be respectively selected as the target audio components.
- the corresponding current placement state is an oblique placement state
- the first data is greater than the second data, that is, the force perpendicular to the vertical direction is greater than the force perpendicular to the horizontal direction, indicating that the electronic device is more inclined to the vertical direction, then select from multiple groups of audio components 110 in the vertical placement state
- the corresponding first group of audio components is used as the target audio component;
- the first data is smaller than the second data, that is, the force perpendicular to the vertical direction is smaller than the force perpendicular to the horizontal direction, indicating that the electronic device is more inclined to the horizontal direction, then from more Select the second group of audio components corresponding to the horizontal placement state in the group of audio components 110 as the target audio component;
- the first data is about the second data, that is, the force perpendicular to the vertical direction is equal to the force
- the detection device 120 can detect the force data of the electronic device 100 in various directions in real time, And after the electronic device 100 is in a stable state, the placement state of the electronic device 100 is determined according to the data of forces in various directions in the stable state of the electronic device 100 .
- the detection device 120 can perform the detection work when the electronic device 100 is in the state where the placement state is switched, or can automatically perform the detection work within a certain period of time.
- the specific working mode is not specifically limited here. It only needs that the detection device 120 is in the working state during the switching process of the placing state.
- the electronic equipment provided in this embodiment includes multiple sets of audio components 110, detection means 120 and controller 130, the current placement state of the electronic equipment is determined through the detection means 120, and the multiple sets of audio components 110 are selected according to the current placement state. Select the target audio component corresponding to the current placement state, and control the sound of the target audio component.
- the placement state of the electronic device 100 is detected by the detection device 120 , and an audio component at a corresponding position is selected to produce sound according to the placement state, so that the electronic device 100 has better sound effects in different placement states, and user experience is improved.
- the embodiment of the present application also provides another electronic device, please refer to FIG. 5 , which is a second structural block diagram of the electronic device provided in the embodiment of the present application.
- the electronic device 200 is used as an example for illustration.
- the TV can be divided into a split structure, that is, the display device and the sound box assembly are set separately, but in the previous embodiment, the display device and the sound box assembly are connected through a connector.
- the speaker assembly is arranged at the lower part of the display device. This structure cannot realize the scene where the display device and the speaker assembly are set separately and are not physically connected through connectors. Therefore, the electronic device 200 in this embodiment connects the display device and the speaker assembly Physical isolation, establish a communication connection between the display device and the speaker assembly through the wireless communication module, and realize the control of the sound.
- the electronic device 200 may include a display device 210 , a speaker assembly 220 , a detection device 230 and a controller 240 .
- the controller 240 is electrically connected to the display device 210 , the speaker assembly 220 and the detection device 230 respectively.
- the controller 240 can determine the current placement state of the speaker assembly 220 through the detection device 230; according to the current placement state, select the target audio component corresponding to the current placement state from multiple groups of audio components; control the target audio component to send and display the picture corresponding sound.
- the display device 210 may be a liquid crystal display device such as LCD, LED, etc., capable of displaying images.
- the speaker assembly 220 can establish a communication connection with the display device 210 through a wireless communication module, such as wireless communication modules such as WIFI and Bluetooth.
- the speaker assembly 220 includes multiple groups of audio components, such as the multiple groups of audio components 110 in the previous embodiment.
- the specific structure and function The implementation is the same as that of the multiple sets of audio components 110, and details are not repeated here.
- the detecting device 230 is disposed on the speaker assembly 220 and is used for detecting the placement state of the speaker assembly 220 .
- the placement state of the speaker assembly 220 includes a vertical placement state, a horizontal placement state and an oblique placement state.
- the detecting device 230 can determine the placement state of the speaker assembly 220 by detecting the data of forces in various directions of the speaker assembly 220 .
- the detection device 230 detects the data of the force perpendicular to the vertical direction, it is determined that the sound box assembly 220 is in a vertically placed state; if the detection device 230 detects the data of the force perpendicular to the horizontal direction, it is determined that the sound box assembly is in Horizontal placement state; if the detection device 230 detects the direction of the force in both the vertical direction and the horizontal direction, it is determined that the speaker assembly 220 is in the tilted placement state.
- the installation position and the realization function of the detection device 230 can refer to the previous embodiment, and details are not repeated here.
- the difference between this embodiment and the previous embodiment is that the wireless connection between the display device 210 and the speaker assembly 220 is established through a wireless communication module, which can be applied to the scene where the display device 210 and the speaker assembly 220 Switching between different audio components in the playing state, without losing the audio effect, increases the application range of the scene and further improves the user experience.
- FIG. 6 is a schematic flowchart of a sound control method provided by an embodiment of the present application.
- the specific process of this method can be as follows:
- the electronic device is described as a television.
- the electronic device may include a display device for displaying images and a speaker assembly for emitting sound corresponding to the display screen.
- the speaker assembly may be arranged inside the display device so that the electronic device is Integral structure; the speaker assembly can also be arranged under the display device, and be electrically connected to the display device through a connector; the speaker assembly can also be arranged separately from the display device, so that the electronic equipment is set in a split type.
- the placement state of the display device and the speaker assembly is the same, and corresponds to the placement state of the electronic equipment; if the speaker assembly is arranged below the display device or the speaker assembly and the display device are separately arranged, Then, the placement states of the display device and the speaker assembly may be the same or different.
- the display device Since the display device is usually opposite to the user's viewing line of sight, it needs to be installed perpendicular to the desktop or parallel to the wall, that is, floor-standing. It can be understood that the display device is placed in a fixed state, but if the speaker assembly is not installed Internally, in order to correspond to different placement states of the display device, the speaker assembly needs to have different placement states to ensure the installation stability and appearance of the electronic equipment.
- the support structure supporting the display device needs to be fixed on the desktop, and the speaker assembly is arranged on the support structure or the speaker assembly is directly used as a support structure to support the display device; If the placed state is parallel to the wall, the speaker components need to be placed parallel to the wall to ensure that the electronic equipment can be in contact with the wall as much as possible to reduce the occupied space.
- the detection device can be arranged in the sound box assembly, and can detect the placement state of the electronic equipment, and the placement state of the electronic equipment corresponds to the placement state of the sound box assembly.
- the placement state of the electronic device may include a vertical placement state, a horizontal placement state, and an oblique placement state.
- the vertical placement state of the electronic equipment is that the display device of the electronic equipment is set perpendicular to the horizontal direction, and the speaker assembly is also perpendicular to the horizontal direction, that is, the electronic equipment is hung on the wall surface;
- the horizontal placement state of the electronic equipment is that the display device is perpendicular to the horizontal direction.
- the speaker assembly is parallel to the horizontal direction, that is, the electronic device is placed on the table; the oblique placement state of the electronic device is that at least one of the display device and the speaker assembly is placed obliquely in the horizontal direction or vertical direction.
- the detection device detects force data perpendicular to the vertical direction, and does not detect force data in the horizontal direction, it is determined that the electronic device is in a vertically placed state; if the detection device detects force data in the horizontal direction data, and no force data is detected in the vertical direction, it is determined that the electronic device is placed in a horizontal state; if the detection device detects force data in both the horizontal direction and the vertical direction, it is determined that the electronic device is in a tilted state.
- the current placement state select a target audio component corresponding to the current placement state from multiple groups of audio components.
- multiple groups of audio components are arranged in the speaker assembly, and the multiple groups of audio components are respectively arranged at different positions of the speaker assembly, and each group of audio components corresponds to a different placement state of the electronic device, so that the electronic device is placed in a different position.
- the playback state at least one set of audio components is guaranteed to be able to sound toward the user's position, so that the user can hear a good speaker effect.
- Each audio component may include a power amplifier and a speaker.
- the power amplifier can amplify the sound signal, and send out the amplified sound signal through the speaker for the user to hear.
- each audio component can include a plurality of power amplifiers and a plurality of loudspeakers, so that each audio component forms a multi-channel audio channel switching system, such as, each audio component can include 5 power amplifiers and 5 loudspeakers, each A power amplifier and each speaker correspond to a channel, that is, each audio component 110 includes 5 channels, namely a left channel, a center channel, a right channel and two channels facing the display device.
- the electronic device in addition to the vertically placed state and the horizontally placed state, the electronic device can also be placed in an obliquely placed state, so as to be applicable to different scenarios.
- a group of audio components corresponding to the inclined state can be set in the speaker assembly, and it can also be selected to correspond to the vertically placed state or the horizontally placed state according to the inclination angle of the electronic device.
- the audio components are used as the sound unit, so that the number of audio components can be reduced.
- the multiple sets of audio components may include three sets of audio components, respectively corresponding to different placement states of the electronic equipment, for example, the multiple sets of audio components include the first set of audio components, the second set of audio components and a third set of audio components. If the current placement state is a vertical placement state, select the first group of audio components corresponding to the vertical placement state from multiple groups of audio components as the target audio component; if the current placement state is a horizontal placement state, then Select the second group of audio components corresponding to the horizontal placement state from multiple groups of audio components as the target audio component; The third set of audio components acts as the target audio component.
- two sets of audio components can be set in the speaker component.
- multiple sets of audio components include the first set of audio components and the second set of audio components.
- Two sets of audio components corresponding to the current placement state of the electronic device being a vertical placement state and a horizontal placement state, the first group of audio components or the second group of audio components may be respectively selected as the target audio components.
- the corresponding current placement state is an oblique placement state
- a set of audio components is used as the target audio component; when the first data is smaller than the second data, that is, the force perpendicular to the vertical direction is smaller than the force perpendicular to the horizontal direction, indicating that the electronic device is more inclined to the horizontal direction, then multiple sets of audio components Select the second group of audio components corresponding to the horizontal placement state as the target audio component; when the first data is about the second data, that is, the force perpendicular to the vertical direction is equal to the force perpendicular to the horizontal direction, indicating that the electronic device is relatively If the angles of the horizontal direction and the vertical direction are both 45°, then the first group of audio components or the second group of audio components is selected from the multiple groups of audio components as the target audio component.
- the detection device can detect the force data of the electronic device in various directions in real time, and After the equipment is in a stable state, the placement state of the electronic equipment is determined according to the data of forces in various directions in the stable state of the electronic equipment.
- the detection device can perform the detection work when the electronic equipment is placed in the state of switching, and can also automatically perform the detection work within a certain period of time.
- the specific working mode is not specifically limited here. It only needs to ensure that the electronic equipment is placed. It is sufficient that the detection device is in the working state during the switching process.
- the target audio component is controlled to emit a sound corresponding to the picture displayed by the display device, and the sound can correspond to the multi-channel audio switching system in the target audio component to realize stereo playback, so as to be applicable to different application scenarios.
- the detection device determines the current placement state of the electronic device, selects a target audio component corresponding to the current placement state from multiple groups of audio components according to the current placement state, and controls the target audio component to produce sound.
- the placement state of the electronic device is detected by the detection device, and the audio component at the corresponding position is selected to produce sound according to the placement state, so that the electronic device has better sound effects in different placement states, and the user experience is improved.
- FIG. 7 is a third structural block diagram of an electronic device provided by an embodiment of the present application.
- the electronic device 300 includes a processor 310 with one or more processing cores, a memory 320 with one or more computer-readable storage media, and computer programs stored in the memory 320 and executable on the processor 310 .
- the processor 310 is electrically connected to the memory 320 .
- the structure of the electronic device shown in the figure does not constitute a limitation on the electronic device, and may include more or less components than those shown in the figure, or combine some components, or arrange different components.
- the processor 310 is the control center of the electronic device 300, using various interfaces and lines to connect various parts of the entire electronic device 300, by running or loading software programs and/or modules stored in the memory 320, and calling the software programs stored in the memory 320 Execute various functions of the electronic device 300 and process data, so as to monitor the electronic device 300 as a whole.
- the processor 310 in the electronic device 300 will follow the steps below to load the instructions corresponding to the process of one or more application programs into the memory 320, and the processor 310 will run the instructions stored in the memory.
- 320 applications so as to achieve various functions:
- the current placement state select a target audio component corresponding to the current placement state from multiple groups of audio components
- an embodiment of the present application provides a computer-readable storage medium, which stores a plurality of computer programs that can be loaded by a processor to execute any of the sound control methods provided in the embodiments of the present application. A step of.
- the storage medium may include: a read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes.
- ROM Read Only Memory
- RAM Random Access Memory
- magnetic disk or optical disk and other media that can store program codes.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Audiology, Speech & Language Pathology (AREA)
- General Health & Medical Sciences (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Circuit For Audible Band Transducer (AREA)
Abstract
The present application provides an electronic device, a sound control method, and a storage medium. The electronic device comprises a plurality of groups of audio components; a detection apparatus, which is used for detecting the placement state of the electronic device; and a controller, which is used for determining the current placement state of the electronic device by means of the detection apparatus; selecting, from among the plurality of groups of audio components and according to the current placement state, a target audio component corresponding to the current placement state; and controlling the target audio component to produce a sound.
Description
本申请要求于2021年11月17日提交中国专利局、申请号为202111362462.4、发明名称为“电子设备、声音控制方法及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202111362462.4 and the title of the invention "electronic equipment, sound control method and storage medium" filed with the China Patent Office on November 17, 2021, the entire contents of which are incorporated herein by reference. Applying.
本申请属于电子设备技术领域,尤其涉及一种电子设备、声音控制方法及存储介质。The present application belongs to the technical field of electronic equipment, and in particular relates to an electronic equipment, a sound control method and a storage medium.
随着电子设备技术的不断发展,如电视等家电设备已成为人们生活中广泛应用的电子设备。电视可包括用于显示画面的显示装置和用于发声的音箱组件等,其中,音箱组件可以设置在显示装置的内部或者下部,也可以与显示装置分体式设置。With the continuous development of electronic equipment technology, home appliances such as televisions have become electronic equipment widely used in people's lives. The television may include a display device for displaying images and a speaker assembly for sound generation, etc., wherein the speaker assembly may be arranged inside or below the display device, or may be separately arranged from the display device.
相关技术中,对于音箱组件与显示装置的位置关系对应电子设备的不同摆放方式,但不同的摆放方式中由于音箱组件中用于发声的扬声器等位置是固定的,不能自动调节方向,从而在电子设备的摆放位置无法正对用户位置发声时,会影响音效,导致用户体验效果不佳。In the related art, the positional relationship between the speaker assembly and the display device corresponds to different placement methods of electronic equipment, but in different placement methods, since the position of the speaker used for sounding in the speaker assembly is fixed, the direction cannot be automatically adjusted, thus When the electronic device is placed in a position that cannot directly emit sound to the user's position, the sound effect will be affected, resulting in poor user experience.
相关技术中,对于音箱组件与显示装置的位置关系对应电子设备的不同摆放方式,但不同的摆放方式中由于音箱组件中用于发声的扬声器等位置是固定的,不能自动调节方向,从而在电子设备的摆放位置无法正对用户位置发声时,会影响音效,导致用户体验效果不佳。In the related art, the positional relationship between the speaker assembly and the display device corresponds to different placement methods of electronic equipment, but in different placement methods, since the position of the speaker used for sounding in the speaker assembly is fixed, the direction cannot be automatically adjusted, thus When the electronic device is placed in a position that cannot directly emit sound to the user's position, the sound effect will be affected, resulting in poor user experience.
本申请实施例提供一种电子设备的电子设备、声音控制方法及存储介质,使电子设备在不同摆放状态下均具有较好的声音效果,提升了用户体验。Embodiments of the present application provide an electronic device, a sound control method, and a storage medium of an electronic device, so that the electronic device has better sound effects in different placement states, and improves user experience.
第一方面,本申请实施例提供一种电子设备,包括:In a first aspect, an embodiment of the present application provides an electronic device, including:
多组音频组件;multiple sets of audio components;
检测装置,所述检测装置用于检测所述电子设备的摆放状态;A detection device, the detection device is used to detect the placement state of the electronic equipment;
控制器,所述控制器分别与所述检测装置和所述多个音频组件电连接,所述控制器用于:A controller, the controller is electrically connected to the detection device and the plurality of audio components respectively, and the controller is used for:
通过所述检测装置确定所述电子设备的当前摆放状态;Determining the current placement state of the electronic device through the detection device;
根据所述当前摆放状态,从所述多组音频组件中选择与所述当前摆放状态对应的目标音频组件;Selecting a target audio component corresponding to the current placement state from the multiple groups of audio components according to the current placement state;
控制所述目标音频组件发声。Controls the target audio component to sound.
第二方面,本申请实施例提供另一种电子设备,包括:In the second aspect, the embodiment of the present application provides another electronic device, including:
显示装置,用于显示画面;a display device for displaying images;
音箱组件,与所述显示装置建立无线通信连接,所述音箱组件包括多组音频组件;A speaker assembly, which establishes a wireless communication connection with the display device, and the speaker assembly includes multiple sets of audio components;
检测装置,设置于所述音箱组件,用于检测所述音箱组件的摆放状态;A detection device, arranged on the speaker assembly, is used to detect the placement state of the speaker assembly;
控制器,所述控制器分别与所述显示装置、所述音箱组件及所述检测装置电连接,所述控制器用于:A controller, the controller is electrically connected to the display device, the speaker assembly and the detection device respectively, and the controller is used for:
通过所述检测装置确定所述音箱组件的当前摆放状态;Determining the current placement state of the speaker assembly through the detection device;
根据所述当前摆放状态,从所述多组音频组件中选择与所述当前摆放状态对应的目标音频组件;Selecting a target audio component corresponding to the current placement state from the multiple groups of audio components according to the current placement state;
控制所述目标音频组件发出与所述显示画面对应的声音。and controlling the target audio component to emit a sound corresponding to the display image.
第三方面,本申请实施例还提供一种声音控制方法,应用于电子设备,所述电子设备包括多组音频组件,所述声音控制方法包括:In the third aspect, the embodiment of the present application also provides a sound control method, which is applied to an electronic device, and the electronic device includes multiple sets of audio components, and the sound control method includes:
确定所述电子设备的当前摆放状态;determining the current placement state of the electronic device;
根据所述当前摆放状态,从所述多组音频组件中选择与所述当前摆放状态对应的目标音频组件;Selecting a target audio component corresponding to the current placement state from the multiple groups of audio components according to the current placement state;
控制所述目标音频组件发声。Controls the target audio component to sound.
第四方面,本申请实施例还提供一种计算机可读的存储介质,其上存储有计算机程序,当所述计算机程序在计算机上执行时,使得所述计算机执行以上任一项所述的声音控制方法。In the fourth aspect, the embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed on a computer, the computer executes the sound described in any one of the above items. Control Method.
本申请实施例提供电子设备包括多组音频组件、检测装置和控制器,检测装置用于检测电子设备的摆放状态,用于通过检测装置确定电子设备的当前摆放状态,根据当前摆放状态,从多组音频组件中选择与当前摆放状态对应的目标音频组件,控制目标音频组件发声。本申请通过检测装置检测电子设备的摆放状态,根据摆放状态选择对应位置的音频组件发声,使电子设备在不同摆放状态下均具有较好的声音效果,提升了用户体验。The embodiment of the present application provides that the electronic device includes multiple sets of audio components, a detection device and a controller. The detection device is used to detect the placement state of the electronic device, and is used to determine the current placement state of the electronic device through the detection device. , select the target audio component corresponding to the current placement state from multiple groups of audio components, and control the sound of the target audio component. The present application detects the placement state of the electronic device through the detection device, and selects an audio component at a corresponding position to produce sound according to the placement state, so that the electronic device has better sound effects in different placement states, and improves user experience.
图1是本申请实施例提供的电子设备的第一种结构框图。Fig. 1 is a first structural block diagram of an electronic device provided by an embodiment of the present application.
图2是本申请实施例提供的电子设备的第一种结构示意图。Fig. 2 is a first structural schematic diagram of an electronic device provided by an embodiment of the present application.
图3是本申请实施例提供的电子设备的第二种结构示意图。FIG. 3 is a schematic diagram of a second structure of an electronic device provided by an embodiment of the present application.
图4是本申请实施例提供的检测装置的结构示意图。Fig. 4 is a schematic structural diagram of a detection device provided by an embodiment of the present application.
图5是本申请实施例提供的电子设备的第二种结构框图。FIG. 5 is a second structural block diagram of an electronic device provided by an embodiment of the present application.
图6是本申请实施例提供的声音控制方法的流程示意图。Fig. 6 is a schematic flowchart of a sound control method provided by an embodiment of the present application.
图7是本申请实施例提供的电子设备的第三种结构框图。FIG. 7 is a third structural block diagram of an electronic device provided by an embodiment of the present application.
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。显然,所描述的实施例仅仅是本申请一部分的实施例,而不是全部的实施例。基于本申请中的实施例,本领域技术人员在没有作出创造性劳动的前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Apparently, the described embodiments are only some of the embodiments of the present application, not all of them. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without making creative efforts belong to the scope of protection of this application.
本申请实施例提供一种电子设备,包括:An embodiment of the present application provides an electronic device, including:
多组音频组件;multiple sets of audio components;
检测装置,所述检测装置用于检测所述电子设备的摆放状态;A detection device, the detection device is used to detect the placement state of the electronic equipment;
控制器,所述控制器分别与所述检测装置和所述多个音频组件电连接,所述控制器用于:A controller, the controller is electrically connected to the detection device and the plurality of audio components respectively, and the controller is used for:
通过所述检测装置确定所述电子设备的当前摆放状态;Determining the current placement state of the electronic device through the detection device;
根据所述当前摆放状态,从所述多组音频组件中选择与所述当前摆放状态对应的目标音频组件;Selecting a target audio component corresponding to the current placement state from the multiple groups of audio components according to the current placement state;
控制所述目标音频组件发声。Controls the target audio component to sound.
可选的,所述摆放状态包括竖直摆放状态、水平摆放状态和倾斜摆放状态,所述检测装置用于:Optionally, the placement state includes a vertical placement state, a horizontal placement state and an oblique placement state, and the detection device is used for:
若在垂直于竖直方向上检测到力的数据,则确定所述电子设备处于所述竖直摆放状态;If the force data is detected in a direction perpendicular to the vertical direction, then determining that the electronic device is in the vertical placement state;
若在垂直于水平方向上检测到力的数据,则确定所述电子设备处于所述水平摆放状态;If force data is detected in a direction perpendicular to the horizontal, then determining that the electronic device is in the horizontally placed state;
若在垂直于竖直方向和水平方向上均检测到力的数据,则确定所述电子设备处于倾斜摆放状态。If force data is detected both in the vertical direction and in the horizontal direction, it is determined that the electronic device is placed in a tilted state.
可选的,所述多组音频组件包括第一组音频组件和第二组音频组件,所述控制器还用于:Optionally, the multiple sets of audio components include a first set of audio components and a second set of audio components, and the controller is further configured to:
若所述当前摆放状态为所述竖直摆放状态,则从所述多组音频组件中选择与所述竖直摆放状态对应的所述第一组音频组件作为所述目标音频组件;If the current placement state is the vertical placement state, selecting the first group of audio components corresponding to the vertical placement state from the multiple groups of audio components as the target audio component;
若所述当前摆放状态为所述水平摆放状态,则从所述多组音频组件中选择与所述水平摆放状态对应的所述第二组音频组件作为所述目标音频组件;If the current placement state is the horizontal placement state, selecting the second group of audio components corresponding to the horizontal placement state from the multiple groups of audio components as the target audio component;
若所述当前摆放状态为所述倾斜摆放状态,则比较所述检测装置在垂直于所述竖直方向检测到的力的第一数据与垂直于所述水平方向检测到的力的第二数据的大小;If the current placement state is the inclined placement state, compare the first data of the force detected by the detection device in the vertical direction with the first data of the force detected in the horizontal direction The size of the second data;
当所述第一数据大于所述第二数据时,从所述多组音频组件中选择与所述竖直摆放状态对应的所述第一组音频组件作为所述目标音频组件;When the first data is greater than the second data, selecting the first group of audio components corresponding to the vertical placement state from the plurality of groups of audio components as the target audio component;
当所述第一数据小于所述第二数据时,从所述多组音频组件中选择与所述水平摆放状态对应的所述第二组音频组件作为所述目标音频组件;When the first data is smaller than the second data, selecting the second group of audio components corresponding to the horizontal placement state from the plurality of groups of audio components as the target audio component;
当所述第一数据等于所述第二数据时,从所述多组音频组件中选择所述第一组音频组件或所述第二组音频组件作为所述目标音频组件。When the first data is equal to the second data, selecting the first group of audio components or the second group of audio components as the target audio component from the plurality of groups of audio components.
可选的,所述多组音频组件包括第一组音频组件,所述控制器还用于:Optionally, the multiple sets of audio components include a first set of audio components, and the controller is also used for:
若所述当前摆放状态为所述竖直摆放状态,则从所述多组音频组件中选择与所述竖直摆放状态对应的所述第一组音频组件作为所述目标音频组件。If the current placement state is the vertical placement state, selecting the first group of audio components corresponding to the vertical placement state from the multiple groups of audio components as the target audio component.
可选的,所述多组音频组件包括第二组音频组件,所述控制器还用于:Optionally, the multiple sets of audio components include a second set of audio components, and the controller is also used for:
若所述当前摆放状态为所述水平摆放状态,则从所述多组音频组件中选择与所述水平摆放状态对应的所述第二组音频组件作为所述目标音频组件。If the current placement state is the horizontal placement state, selecting the second group of audio components corresponding to the horizontal placement state from the multiple groups of audio components as the target audio component.
可选的,所述多组音频组件包括第三组音频组件,所述控制器还用于:Optionally, the multiple sets of audio components include a third set of audio components, and the controller is also used for:
若所述当前摆放状态为所述倾斜摆放状态,则从所述多组音频组件中选择与所述倾斜摆放状态对应的所述第三组音频组件作为所述目标音频组件。If the current placement state is the inclined placement state, selecting the third group of audio components corresponding to the inclined placement state from the multiple groups of audio components as the target audio component.
本申请实施例还提供另一种电子设备,包括:The embodiment of the present application also provides another electronic device, including:
显示装置,用于显示画面;a display device for displaying images;
音箱组件,与所述显示装置建立无线通信连接,所述音箱组件包括多组音频组件;A speaker assembly, which establishes a wireless communication connection with the display device, and the speaker assembly includes multiple sets of audio components;
检测装置,设置于所述音箱组件,用于检测所述音箱组件的摆放状态;A detection device, arranged on the speaker assembly, is used to detect the placement state of the speaker assembly;
控制器,所述控制器分别与所述显示装置、所述音箱组件及所述检测装置电连接,所述控制器用于:A controller, the controller is electrically connected to the display device, the speaker assembly and the detection device respectively, and the controller is used for:
通过所述检测装置确定所述音箱组件的当前摆放状态;Determining the current placement state of the speaker assembly through the detection device;
根据所述当前摆放状态,从所述多组音频组件中选择与所述当前摆放状态对应的目标音频组件;Selecting a target audio component corresponding to the current placement state from the multiple groups of audio components according to the current placement state;
控制所述目标音频组件发出与所述显示画面对应的声音。and controlling the target audio component to emit a sound corresponding to the display image.
可选的,所述摆放状态包括竖直摆放状态、水平摆放状态和倾斜摆放状态,所述检测装置用于:Optionally, the placement state includes a vertical placement state, a horizontal placement state and an oblique placement state, and the detection device is used for:
若在垂直于竖直方向上检测到力的数据,则确定所述音箱组件处于所述竖直摆放状态;If the force data is detected perpendicular to the vertical direction, it is determined that the sound box assembly is in the vertical placement state;
若在垂直于水平方向上检测到力的数据,则确定所述音箱组件处于所述水平摆放状态;If force data is detected in a direction perpendicular to the horizontal, it is determined that the speaker assembly is in the horizontal placement state;
若在垂直于竖直方向和水平方向上均检测到力的方向,则确定所述音频组件处于所述倾斜摆放状态。If the direction of the force is detected in both the vertical direction and the horizontal direction, it is determined that the audio component is in the tilted placement state.
本申请实施例还提供一种声音控制方法,应用于电子设备,所述电子设备包括多组音频组件,所述声音控制方法包括:The embodiment of the present application also provides a sound control method, which is applied to an electronic device, and the electronic device includes multiple sets of audio components, and the sound control method includes:
确定所述电子设备的当前摆放状态;determining the current placement state of the electronic device;
根据所述当前摆放状态,从所述多组音频组件中选择与所述当前摆放状态对应的目标音频组件;Selecting a target audio component corresponding to the current placement state from the multiple groups of audio components according to the current placement state;
控制所述目标音频组件发声。Controls the target audio component to sound.
可选的,所述摆放状态包括竖直摆放状态、水平摆放状态和倾斜摆放状态,所述确定所述电子设备的当前摆放状态,包括:Optionally, the placement state includes a vertical placement state, a horizontal placement state, and an oblique placement state, and the determination of the current placement state of the electronic device includes:
若在垂直于竖直方向上检测到力的数据,则确定所述电子设备处于所述竖直摆放状态;If the force data is detected in a direction perpendicular to the vertical direction, then determining that the electronic device is in the vertical placement state;
若在垂直于水平方向上检测到力的数据,则确定所述电子设备处于所述水平摆放状态;If force data is detected in a direction perpendicular to the horizontal, then determining that the electronic device is in the horizontally placed state;
若在垂直于竖直方向和水平方向上均检测到力的数据,则确定所述电子设备处于倾斜摆放状态。If force data is detected both in the vertical direction and in the horizontal direction, it is determined that the electronic device is placed in a tilted state.
可选的,所述多组音频组件包括第一组音频组件和第二组音频组件,所述根据所述当前摆放状态,从所述多组音频组件中选择与所述当前摆放状态对应的目标音频组件,包括:Optionally, the multiple sets of audio components include a first set of audio components and a second set of audio components, and according to the current placement state, select from the multiple sets of audio components corresponding to the current placement state The target audio components, including:
若所述当前摆放状态为所述竖直摆放状态,则从所述多组音频组件中选择与所述竖直摆放状态对应的所述第一组音频组件作为所述目标音频组件;If the current placement state is the vertical placement state, selecting the first group of audio components corresponding to the vertical placement state from the multiple groups of audio components as the target audio component;
若所述当前摆放状态为所述水平摆放状态,则从所述多组音频组件中选择与所述水平摆放状态对应的所述第二组音频组件作为所述目标音频组件;If the current placement state is the horizontal placement state, selecting the second group of audio components corresponding to the horizontal placement state from the multiple groups of audio components as the target audio component;
若所述当前摆放状态为所述倾斜摆放状态,则比较所述检测装置在垂直于所述竖直方向检测到的力的第一数据与垂直于所述水平方向检测到的力的第二数据的大小;If the current placement state is the inclined placement state, compare the first data of the force detected by the detection device in the vertical direction with the first data of the force detected in the horizontal direction The size of the second data;
当所述第一数据大于所述第二数据时,从所述多组音频组件中选择与所述竖直摆放状态对应的所述第一组音频组件作为所述目标音频组件;When the first data is greater than the second data, selecting the first group of audio components corresponding to the vertical placement state from the plurality of groups of audio components as the target audio component;
当所述第一数据小于所述第二数据时,从所述多组音频组件中选择与所述水平摆放状态对应的所述第二组音频组件作为所述目标音频组件;When the first data is smaller than the second data, selecting the second group of audio components corresponding to the horizontal placement state from the plurality of groups of audio components as the target audio component;
当所述第一数据等于所述第二数据时,从所述多组音频组件中选择所述第一组音频组件或所述第二组音频组件作为所述目标音频组件。When the first data is equal to the second data, selecting the first group of audio components or the second group of audio components as the target audio component from the plurality of groups of audio components.
可选的,所述多组音频组件包括第一组音频组件,所述根据所述当前摆放状态,从所述多组音频组件中选择与所述当前摆放状态对应的目标音频组件,包括:Optionally, the plurality of groups of audio components includes a first group of audio components, and selecting a target audio component corresponding to the current placement state from the plurality of groups of audio components according to the current placement state includes :
若所述当前摆放状态为所述竖直摆放状态,则从所述多组音频组件中选择与所述竖直摆放状态对应的所述第一组音频组件作为所述目标音频组件。If the current placement state is the vertical placement state, selecting the first group of audio components corresponding to the vertical placement state from the multiple groups of audio components as the target audio component.
可选的,所述多组音频组件包括第二组音频组件,所述根据所述当前摆放状态,从所述多组音频组件中选择与所述当前摆放状态对应的目标音频组件,包括:Optionally, the plurality of groups of audio components includes a second group of audio components, and selecting a target audio component corresponding to the current placement state from the plurality of groups of audio components according to the current placement state includes :
若所述当前摆放状态为所述水平摆放状态,则从所述多组音频组件中选择与所述水平摆放状态对应的所述第二组音频组件作为所述目标音频组件。If the current placement state is the horizontal placement state, selecting the second group of audio components corresponding to the horizontal placement state from the multiple groups of audio components as the target audio component.
可选的,所述多组音频组件包括第三组音频组件,所述根据所述当前摆放状态,从所述多组音频组件中选择与所述当前摆放状态对应的目标音频组件,包括:Optionally, the multiple groups of audio components include a third group of audio components, and selecting a target audio component corresponding to the current placement state from the multiple groups of audio components according to the current placement state includes :
若所述当前摆放状态为所述倾斜摆放状态,则从所述多组音频组件中选择与所述倾斜摆放状态对应的所述第三组音频组件作为所述目标音频组件。If the current placement state is the inclined placement state, selecting the third group of audio components corresponding to the inclined placement state from the multiple groups of audio components as the target audio component.
本申请实施例还提供一种计算机可读的存储介质,其上存储有计算机程序,当所述计算机程序在计算机上执行时,使得所述计算机执行:The embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed on the computer, the computer executes:
确定所述电子设备的当前摆放状态;determining the current placement state of the electronic device;
根据所述当前摆放状态,从所述多组音频组件中选择与所述当前摆放状态对应的目标音频组件;Selecting a target audio component corresponding to the current placement state from the multiple groups of audio components according to the current placement state;
控制所述目标音频组件发声。Controls the target audio component to sound.
可选的,所述摆放状态包括竖直摆放状态、水平摆放状态和倾斜摆放状态,所述确定所述电子设备的当前摆放状态,所述计算机执行:Optionally, the placement state includes a vertical placement state, a horizontal placement state, and an oblique placement state, and to determine the current placement state of the electronic device, the computer executes:
若在垂直于竖直方向上检测到力的数据,则确定所述电子设备处于所述竖直摆放状态;If the force data is detected in a direction perpendicular to the vertical direction, then determining that the electronic device is in the vertical placement state;
若在垂直于水平方向上检测到力的数据,则确定所述电子设备处于所述水平摆放状态;If force data is detected in a direction perpendicular to the horizontal, then determining that the electronic device is in the horizontal placement state;
若在垂直于竖直方向和水平方向上均检测到力的数据,则确定所述电子设备处于倾斜摆放状态。If force data is detected both in the vertical direction and in the horizontal direction, it is determined that the electronic device is placed in a tilted state.
可选的,所述多组音频组件包括第一组音频组件和第二组音频组件,所述根据所述当前摆放状态,从所述多组音频组件中选择与所述当前摆放状态对应的目标音频组件,所述计算机执行:Optionally, the multiple sets of audio components include a first set of audio components and a second set of audio components, and according to the current placement state, select from the multiple sets of audio components corresponding to the current placement state The target audio component that the computer executes:
若所述当前摆放状态为所述竖直摆放状态,则从所述多组音频组件中选择与所述竖直摆放状态对应的所述第一组音频组件作为所述目标音频组件;If the current placement state is the vertical placement state, selecting the first group of audio components corresponding to the vertical placement state from the multiple groups of audio components as the target audio component;
若所述当前摆放状态为所述水平摆放状态,则从所述多组音频组件中选择与所述水平摆放状态对应的所述第二组音频组件作为所述目标音频组件;If the current placement state is the horizontal placement state, selecting the second group of audio components corresponding to the horizontal placement state from the multiple groups of audio components as the target audio component;
若所述当前摆放状态为所述倾斜摆放状态,则比较所述检测装置在垂直于所述竖直方向检测到的力的第一数据与垂直于所述水平方向检测到的力的第二数据的大小;If the current placement state is the inclined placement state, compare the first data of the force detected by the detection device in the vertical direction with the first data of the force detected in the horizontal direction The size of the second data;
当所述第一数据大于所述第二数据时,从所述多组音频组件中选择与所述竖直摆放状态对应的所述第一组音频组件作为所述目标音频组件;When the first data is greater than the second data, selecting the first group of audio components corresponding to the vertical placement state from the plurality of groups of audio components as the target audio component;
当所述第一数据小于所述第二数据时,从所述多组音频组件中选择与所述水平摆放状态对应的所述第二组音频组件作为所述目标音频组件;When the first data is smaller than the second data, selecting the second group of audio components corresponding to the horizontal placement state from the plurality of groups of audio components as the target audio component;
当所述第一数据等于所述第二数据时,从所述多组音频组件中选择所述第一组音频组件或所述第二组音频组件作为所述目标音频组件。When the first data is equal to the second data, selecting the first group of audio components or the second group of audio components as the target audio component from the plurality of groups of audio components.
可选的,所述多组音频组件包括第一组音频组件,所述根据所述当前摆放状态,从所述多组音频组件中选择与所述当前摆放状态对应的目标音频组件,所述计算机执行:Optionally, the multiple groups of audio components include a first group of audio components, and according to the current placement state, selecting a target audio component corresponding to the current placement state from the multiple groups of audio components, the Said computer executes:
若所述当前摆放状态为所述竖直摆放状态,则从所述多组音频组件中选择与所述竖直摆放状态对应的所述第一组音频组件作为所述目标音频组件。If the current placement state is the vertical placement state, selecting the first group of audio components corresponding to the vertical placement state from the multiple groups of audio components as the target audio component.
可选的,所述多组音频组件包括第二组音频组件,所述根据所述当前摆放状态,从所述多组音频组件中选择与所述当前摆放状态对应的目标音频组件,所述计算机执行:Optionally, the multiple groups of audio components include a second group of audio components, and according to the current placement state, selecting a target audio component corresponding to the current placement state from the multiple groups of audio components, the Said computer executes:
若所述当前摆放状态为所述水平摆放状态,则从所述多组音频组件中选择与所述水平摆放状态对应的所述第二组音频组件作为所述目标音频组件。If the current placement state is the horizontal placement state, selecting the second group of audio components corresponding to the horizontal placement state from the multiple groups of audio components as the target audio component.
可选的,所述多组音频组件包括第三组音频组件,所述根据所述当前摆放状态,从所述多组音频组件中选择与所述当前摆放状态对应的目标音频组件,所述计算机执行:Optionally, the multiple groups of audio components include a third group of audio components, and according to the current placement state, selecting a target audio component corresponding to the current placement state from the multiple groups of audio components, the Said computer executes:
若所述当前摆放状态为所述倾斜摆放状态,则从所述多组音频组件中选择与所述倾斜摆放状态对应的所述第三组音频组件作为所述目标音频组件。If the current placement state is the inclined placement state, selecting the third group of audio components corresponding to the inclined placement state from the multiple groups of audio components as the target audio component.
相关技术中,电子设备如电视包括用于显示画面的显示装置和用于发声的音箱组件等,其中,音箱组件与显示装置的位置关系对应电子设备的不同摆放方式,但由于音箱组件中用于发声的扬声器等在音箱组件中的位置是固定的,因此,当电子设备处于不同摆放方式时,音箱组件的发声方向并不一定朝向用户需要接收声音的方向,因此,会造成用户无法接收到最佳的音效,从而影响用户体验。In the related art, electronic devices such as televisions include a display device for displaying pictures and a speaker assembly for sounding, etc., wherein the positional relationship between the speaker assembly and the display device corresponds to the different placement methods of the electronic equipment, but because the speaker assembly uses Because the position of the loudspeaker that produces sound in the speaker assembly is fixed, therefore, when the electronic device is placed in different ways, the sound emitting direction of the speaker assembly does not necessarily face the direction that the user needs to receive the sound, therefore, it will cause the user to be unable to receive the sound. to the best sound effect, thereby affecting the user experience.
为解决上述问题,本申请实施例提供一种电子设备、声音控制方法及存储介质。其中,本申请实施例以电子设备为电视为例进行举例说明,当然,并不限于电子设备,对于独立的音箱组件等电子设备也可应用至本申请的实施例中,都属于本申请实施例所保护的范围。To solve the above problems, embodiments of the present application provide an electronic device, a sound control method, and a storage medium. Among them, the embodiment of the present application takes the electronic device as an example of a TV for illustration. Of course, it is not limited to electronic devices. Electronic devices such as independent speaker components can also be applied to the embodiments of the present application, and all belong to the embodiments of the present application. scope of protection.
请参阅图1,图1是本申请实施例提供的电子设备的第一种结构框图。其中,该电子设备100可以包括多组音频组件110、检测装置120和控制器130。Please refer to FIG. 1 . FIG. 1 is a first structural block diagram of an electronic device provided by an embodiment of the present application. Wherein, the electronic device 100 may include multiple sets of audio components 110 , detection means 120 and controller 130 .
其中,以电子设备100为电视进行说明,电子设备100可以包括用于显示画面的显示装置和用于对应显示画面所发声的音箱组件,音箱组件可以设置在显示装置的内部使电子设备100为一体式结构;音箱组件还可以设置在显示装置的下方,通过连接件与显示装置电连接;音箱组件还可以与显示装置分开设置,使电子设备100为分体式设置。Wherein, the electronic device 100 is described as a television. The electronic device 100 may include a display device for displaying images and a speaker assembly for sounding corresponding to the display screen. The speaker assembly may be arranged inside the display device to integrate the electronic device 100. type structure; the speaker assembly can also be arranged under the display device, and be electrically connected to the display device through a connector; the speaker assembly can also be arranged separately from the display device, so that the electronic device 100 is a split arrangement.
若音箱组件设置在显示装置的内部,那么显示装置与音箱组件的摆放状态相同,且对应电子设备100的摆放状态;若音箱组件设置在显示装置的下方或者音箱组件与显示装置分体设置,那么显示装置与音箱组件的摆放状态可以相同也可以不同。If the speaker assembly is arranged inside the display device, then the placement state of the display device and the speaker assembly is the same, and corresponds to the placement state of the electronic device 100; if the speaker assembly is arranged below the display device or the speaker assembly and the display device are separately arranged , then the placement states of the display device and the speaker assembly may be the same or different.
由于显示装置通常与用户的观看视线相对,因此需要垂直于桌面设置或者平行于墙体即落地式设置,可以理解为显示装置的摆放状态为固定状态,但如果音箱组件未设置在显示装置的内部,为了对应显示装置的不同摆放状态,需要音箱组件具有不同的摆放状态以保证电子设备100的安装稳定性及外观性。比如,显示装置的摆放状态与桌面垂直,则需要支撑显示装置的支撑结构固定在桌面上,音箱组件设置在该支撑结构或音箱组件直接作为支撑结构支撑显示装置;再比如,显示装置的摆放状态与墙体平行,则需要音箱组件的摆放状态与墙体平行,保证电子设备100能够尽可能与墙体接触减少占用空间。Since the display device is usually opposite to the user's viewing line of sight, it needs to be installed perpendicular to the desktop or parallel to the wall, that is, floor-standing. It can be understood that the display device is placed in a fixed state, but if the speaker assembly is not installed Inside, in order to correspond to different placement states of the display device, the speaker assembly needs to have different placement states to ensure the installation stability and appearance of the electronic device 100 . For example, if the placement state of the display device is perpendicular to the desktop, the support structure supporting the display device needs to be fixed on the desktop, and the speaker assembly is arranged on the support structure or the speaker assembly is directly used as a support structure to support the display device; If the placed state is parallel to the wall, the speaker assembly needs to be placed in parallel to the wall, so as to ensure that the electronic device 100 can be in contact with the wall as much as possible to reduce the occupied space.
因此,本实施例中电子设备100的摆放状态与音箱组件的摆放状态对应,为了解决音箱组件处于不同摆放状态时所发出的音效不能始终朝向用户所观看显示装置的方向,而造成的音箱效果不佳的技术问题。Therefore, in this embodiment, the placement state of the electronic device 100 corresponds to the placement state of the speaker assembly. A technical problem with poor speaker performance.
为此,本实施例在音箱组件中设置多组音频组件110,该多组音频组件110分别设置在音箱组件的不同位置,并且每一组音频组件对应电子设备100的不同摆放状态,以使电子设备100处于不同的摆放状态时,保证有至少一组音频组件可以朝向用户位置发声,使得用户听到良好的音箱效果。For this reason, the present embodiment arranges multiple groups of audio components 110 in the speaker assembly, and the multiple groups of audio components 110 are respectively arranged in different positions of the speaker assembly, and each group of audio components corresponds to different placement states of the electronic device 100, so that When the electronic device 100 is in different placement states, it is guaranteed that at least one group of audio components can emit sound toward the user's position, so that the user can hear a good speaker effect.
每一音频组件可以包括功率放大器和扬声器,功率放大器能够将声音信号放大,并通过扬声器将放大后的声音信号发出使用户能够听到。其中,每一音频组件可以包括多个功率放大器和多个扬声器,以使每一音频组件形成多声道音频通道切换系统,比如,每一音频组件可以包括5个功率放大器和5个扬声器,每一功率放大器和每一扬声器对应一个声道,即每一音频组件包括5个声道,分别为左声道、中声道、右声道以及朝向显示装置的两个声道。Each audio component may include a power amplifier and a speaker. The power amplifier can amplify the sound signal, and send out the amplified sound signal through the speaker for the user to hear. Wherein, each audio component can include a plurality of power amplifiers and a plurality of loudspeakers, so that each audio component forms a multi-channel audio channel switching system, such as, each audio component can include 5 power amplifiers and 5 loudspeakers, each A power amplifier and each loudspeaker correspond to one channel, that is, each audio component includes five channels, namely the left channel, the center channel, the right channel and two channels facing the display device.
请参阅图2和图3,图2是本申请实施例提供的电子设备的第一种结构示意图,图3是本申请实施例提供的电子设备的第二种结构示意图。其中,以音箱组件设置在显示装置的下部为例进行说明。如图2所示,当电子设备100置于桌面上时,显示装置为垂直于桌面摆放,音箱组件通过连接件与显示装置连接,并平行于桌面摆放,此时可以认为电子设备100与音箱组件的摆放状态相同即处于水平摆放状态,此时,音箱组件中对应水平摆放状态且朝向用户观看显示装置的方向设置有一组音频组件,该音频组件包括5个对应的声道分别为a1、a2、a3、a4和a5,其中,a1对应左声道,a2对应中声道、a3对应右声道,a4和a5对应朝向显示装置的声道即朝上声道。Please refer to FIG. 2 and FIG. 3 . FIG. 2 is a schematic diagram of the first structure of the electronic device provided by the embodiment of the present application, and FIG. 3 is a schematic diagram of the second structure of the electronic device provided by the embodiment of the present application. Wherein, it is described by taking the speaker assembly disposed at the lower part of the display device as an example. As shown in FIG. 2, when the electronic device 100 is placed on the desktop, the display device is placed perpendicular to the desktop, and the speaker assembly is connected to the display device through a connector and placed parallel to the desktop. At this time, it can be considered that the electronic device 100 and The placement state of the speaker components is the same, that is, it is in the horizontal placement state. At this time, a group of audio components is provided in the speaker component corresponding to the horizontal placement state and facing the direction where the user watches the display device. The audio components include 5 corresponding channels. They are a1, a2, a3, a4 and a5, where a1 corresponds to the left channel, a2 corresponds to the middle channel, a3 corresponds to the right channel, and a4 and a5 correspond to the channel facing the display device, that is, the upward channel.
针对电子设备100所处的不同场景,需要不同的音频组件110发出不同的立体声以保证在不同位置的用户均可以听到良好的音效。需要说明的是,形成立体声的多声道音频切换系统对应不同的功率放大器和扬声器的数量分为不同种类,比如2.0声道、3.0声道、5.0声道、5.1声道及5.1.2声道等。其中,2.0声道包含两个声道,即左声道和右声道;3.0声道包含三个声道,即左声道、中声道和右声道;5.0声道包含5个声道,即左声道、中声道、右声道和朝向显示装置的两个声道;5.1声道包含6个声道,在5.0声道的基础上,增加了低音声道,该低音声道可以设置在音箱组件与显示装置之间的连接件上;5.1.2声道包含八个声道,在5.1声道的基础上,在显示装置的背部增加了两个立体声道。For different scenarios where the electronic device 100 is located, different audio components 110 are required to emit different stereo sounds to ensure that users in different positions can hear good sound effects. It should be noted that the stereo multi-channel audio switching system is divided into different types corresponding to different power amplifiers and speakers, such as 2.0-channel, 3.0-channel, 5.0-channel, 5.1-channel and 5.1.2-channel wait. Among them, the 2.0 channel contains two channels, namely the left channel and the right channel; the 3.0 channel contains three channels, namely the left channel, the center channel and the right channel; the 5.0 channel contains 5 channels , that is, the left channel, the middle channel, the right channel and the two channels facing the display device; the 5.1 channel includes 6 channels, and on the basis of the 5.0 channel, a bass channel is added, and the bass channel It can be arranged on the connecting piece between the sound box assembly and the display device; the 5.1.2 sound channel includes eight sound channels, and on the basis of the 5.1 sound channel, two stereo channels are added on the back of the display device.
如图3所示,当电子设备100挂于墙体上时,显示装置为平行于墙体,音箱组件通过连接件与显示装置连接,并平行于墙体摆放,此时可以认为电子设备100与音箱组件的摆放状态相同即处于竖直摆放状态,音箱组件中对应竖直摆放状态且朝向用户观看显示装置的方向设置有一组音频组件110,该音频组件包括5个对应的声道分别为b1、b2、b3、b4和b5,其中,b1对应左声道,b2对应中声道、b3对应右声道,b4和b5对应朝向显示装置的声道即朝上声道。为实现更好的立体声音效果,在连接件位置设置低音声道及在显示装置背部设置两个声道,以形成5.1.2多声道系统。As shown in FIG. 3 , when the electronic device 100 is hung on the wall, the display device is parallel to the wall, and the speaker assembly is connected to the display device through a connector and placed parallel to the wall. At this time, the electronic device 100 can be regarded as The placement state is the same as that of the speaker assembly, that is, it is in a vertical placement state. In the speaker assembly, a group of audio components 110 is provided corresponding to the vertical placement state and facing the direction in which the user watches the display device. The audio component includes 5 corresponding sound channels. They are b1, b2, b3, b4 and b5 respectively, where b1 corresponds to the left channel, b2 corresponds to the center channel, b3 corresponds to the right channel, and b4 and b5 correspond to the channel facing the display device, that is, the upward channel. In order to achieve a better stereo sound effect, a bass channel is provided at the position of the connector and two channels are provided at the back of the display device to form a 5.1.2 multi-channel system.
需要说明的是,电子设备100在处于竖直摆放状态和水平摆放状态以外,还可以处于倾斜摆放状态,以适用于不同的场景。当电子设备100处于倾斜摆放状态时,可以在音箱组件中设置与倾斜摆放状态对应的一组音频组件110,也可以根据电子设备100的倾斜角度对应选择与竖直摆放状态或水平摆放状态对应的音频组件110作为发声单元,从而可以减少音频组件的个数。It should be noted that the electronic device 100 may be placed in a tilted state in addition to the vertically placed state and the horizontally placed state, so as to be applicable to different scenarios. When the electronic device 100 is placed in an oblique state, a group of audio components 110 corresponding to the obliquely disposed state can be provided in the speaker assembly, and the vertically placed state or the horizontally placed state can also be selected according to the inclination angle of the electronic device 100. The audio component 110 corresponding to the playback state is used as a sound unit, so that the number of audio components can be reduced.
请继续参阅图1,电子设备100中的检测装置120可以设置在音箱组件中,能够检测电子设备100的摆放状态,该电子设备100的摆放状态对应音箱组件的摆放状态。请参阅图4,图4是本申请实施例提供的检测装置的结构示意图。检测装置120可以为检测力的传感器组件,该检测装置120可检测不同方向力的数据,具体为x方向、-x方向、y方向、-y方向、z方向和-z方向力的数据,图中仅示出x、y和z的正方向,负方向未示出。Please continue to refer to FIG. 1 , the detection device 120 in the electronic device 100 can be set in the speaker assembly, and can detect the placement state of the electronic device 100 , which corresponds to the placement state of the speaker assembly. Please refer to FIG. 4 . FIG. 4 is a schematic structural diagram of a detection device provided by an embodiment of the present application. The detection device 120 can be a sensor assembly for detecting force, and the detection device 120 can detect data of forces in different directions, specifically, data of forces in the x direction, the -x direction, the y direction, the -y direction, the z direction, and the -z direction, as shown in Fig. Only the positive directions of x, y and z are shown in , and the negative directions are not shown.
其中,电子设备100的摆放状态可以包括竖直摆放状态、水平摆放状态和倾斜摆放状态。电子设备100的竖直摆放状态为电子设备100的显示装置垂直于水平方向设置,音箱组件也垂直于水平方向,即将电子设备100挂于墙体表面;电子设备100的水平摆放状态为显示装置垂直于水平方向设置,音箱组件平行于水平方向,即电子设备100放置于桌面;电子设备100的倾斜摆放状态为显示装置和音箱组件中的至少一个倾斜于水平方向或竖直方向摆放。Wherein, the placement state of the electronic device 100 may include a vertical placement state, a horizontal placement state, and an oblique placement state. The vertical placement state of the electronic device 100 is that the display device of the electronic device 100 is set perpendicular to the horizontal direction, and the speaker assembly is also perpendicular to the horizontal direction, that is, the electronic device 100 is hung on the wall surface; the horizontal placement state of the electronic device 100 is display The device is arranged perpendicular to the horizontal direction, and the speaker assembly is parallel to the horizontal direction, that is, the electronic device 100 is placed on the desktop; the oblique placement state of the electronic device 100 is that at least one of the display device and the speaker assembly is placed obliquely in the horizontal direction or in the vertical direction .
若检测装置120在垂直于竖直方向上检测到力的数据,并且在水平方向上未检测到力的数据,则确定电子设备100处于竖直摆放状态;若检测装置120在水平方向上检测到力的数据,并且在竖直方向上未检测到力的数据,则确定电子设备处于水平摆放状态;若检测装置120在水平方向和竖直方向均检测到力的数据,则确定电子设备100处于倾斜状态。If the detection device 120 detects force data perpendicular to the vertical direction, and does not detect force data in the horizontal direction, it is determined that the electronic device 100 is in a vertical placement state; if the detection device 120 detects force data in the horizontal direction If the force data is detected, and no force data is detected in the vertical direction, it is determined that the electronic device is placed horizontally; if the detection device 120 detects force data in both the horizontal direction and the vertical direction, it is determined that the electronic device 100 is on a tilt.
电子设备100中的控制器130可以为处理器,也可以为其他控制装置,控制器130可以设置于显示装置或音箱组件中,具体集成在电路板上。控制器130分别与多组音频组件110和检测装置120电连接。控制器130可以通过检测装置120所检测到的数据确定电子设备100的当前摆放状态;根据当前摆放状态,从多组音频组件110中选择与当前摆放状态对应的目标音频组件;并控制该目标音频组件发声,以通过电子设备100的摆放状态实现对音频组件发声的控制。The controller 130 in the electronic device 100 may be a processor, or other control devices, and the controller 130 may be disposed in a display device or a speaker assembly, and specifically integrated on a circuit board. The controller 130 is electrically connected to multiple sets of audio components 110 and the detection device 120 respectively. The controller 130 can determine the current placement state of the electronic device 100 through the data detected by the detection device 120; according to the current placement state, select a target audio component corresponding to the current placement state from multiple groups of audio components 110; and control The target audio component emits a sound, so as to control the sound of the audio component through the placement state of the electronic device 100 .
其中,对应电子设备100的三种摆放状态,多组音频组件110可以包括三组音频组件,分别对应电子设备100的不同摆放状态,比如多组音频组件110包括第一组音频组件、第二组音频组件和第三组音频组件。若当前摆放状态为竖直摆放状态,则从多组音频组件110中选择与竖直摆放状态对应的第一组音频组件作为目标音频组件;若当前摆放状态为水平摆放状态,则从多组音频组件110中选择与水平摆放状态对应的第二组音频组件作为目标音频组件;若当前摆放状态为倾斜摆放状态,则从多组音频组件中选择与倾斜摆放状态对应的第三组音频组件作为目标音频组件。Among them, corresponding to the three placement states of the electronic device 100, the multiple groups of audio components 110 may include three groups of audio components, respectively corresponding to different placement states of the electronic device 100. For example, the multiple groups of audio components 110 include the first group of audio components, the second A second set of audio components and a third set of audio components. If the current placement state is a vertical placement state, then select the first group of audio components corresponding to the vertical placement state from multiple groups of audio components 110 as the target audio component; if the current placement state is a horizontal placement state, Then select the second group of audio components corresponding to the horizontal placement state from multiple groups of audio components 110 as the target audio component; The corresponding third group of audio components serves as target audio components.
另外,对应电子设备100的三种摆放状态,为减少音箱组件中设置音频组件110的数量,减少成本,可以在音箱组件中设置两组音频组件,比如多组音频组件110包括第一组音频组件和第二组音频组件。其中,对应电子设备100的当前摆放状态为竖直摆放状态和水平摆放状态,可以分别选择第一组音频组件或第二组音频组件作为目标音频组件。In addition, corresponding to the three placement states of the electronic device 100, in order to reduce the number of audio components 110 in the speaker assembly and reduce costs, two sets of audio components can be set in the speaker assembly, for example, multiple sets of audio components 110 include the first set of audio components. component and the second set of audio components. Wherein, corresponding to the current placement state of the electronic device 100 being the vertical placement state and the horizontal placement state, the first group of audio components or the second group of audio components may be respectively selected as the target audio components.
而对应当前摆放状态为倾斜摆放状态时,则需要比较检测装置120在垂直于竖直方向检测到的力的第一数据与垂直于水平方向检测到的力的第二数据的大小;当第一数据大于第二数据时,即垂直于竖直方向的力大于垂直于水平方向的力,说明电子设备更倾斜于竖直方向,则从多组音频组件110中选择于竖直摆放状态对应的第一组音频组件作为目标音频组件;当第一数据小于第二数据时,即垂直于竖直方向的力小于垂直于水平方向的力,说明电子设备更倾斜于水平方向,则从多组音频组件110中选择水平摆放状态对应的第二组音频组件作为目标音频组件;当第一数据的关于第二数据时,即垂直于竖直方向的力等于垂直于水平方向的力,说明电子设备相对于水平方向和竖直方向的角度均为45度,则从多组音频组件110中选择第一组音频组件或第二组音频组件作为目标音频组件。When the corresponding current placement state is an oblique placement state, it is necessary to compare the first data of the force detected by the detection device 120 perpendicular to the vertical direction with the second data of the force detected perpendicular to the horizontal direction; When the first data is greater than the second data, that is, the force perpendicular to the vertical direction is greater than the force perpendicular to the horizontal direction, indicating that the electronic device is more inclined to the vertical direction, then select from multiple groups of audio components 110 in the vertical placement state The corresponding first group of audio components is used as the target audio component; when the first data is smaller than the second data, that is, the force perpendicular to the vertical direction is smaller than the force perpendicular to the horizontal direction, indicating that the electronic device is more inclined to the horizontal direction, then from more Select the second group of audio components corresponding to the horizontal placement state in the group of audio components 110 as the target audio component; when the first data is about the second data, that is, the force perpendicular to the vertical direction is equal to the force perpendicular to the horizontal direction, indicating The angles of the electronic device relative to the horizontal direction and the vertical direction are both 45 degrees, then the first group of audio components or the second group of audio components is selected from the multiple groups of audio components 110 as the target audio component.
需要说明的是,当电子设备100由三种摆放状态中的其中一种摆放状态切换至另外一种摆放状态时,检测装置120可以实时检测电子设备100在各个方向上力的数据,并在电子设备100处于稳定状态后,根据电子设备100稳定状态下各个方向力的数据,确定电子设备100的摆放状态。其中,检测装置120可以在电子设备100存在摆放状态切换的状态下进行检测工作,也可以在一定时间内自动进行检测工作,具体工作模式在此不作具体限定,只需保证在电子设备100存在摆放状态切换的过程中检测装置120处于工作状态即可。It should be noted that when the electronic device 100 is switched from one of the three placement states to another placement state, the detection device 120 can detect the force data of the electronic device 100 in various directions in real time, And after the electronic device 100 is in a stable state, the placement state of the electronic device 100 is determined according to the data of forces in various directions in the stable state of the electronic device 100 . Among them, the detection device 120 can perform the detection work when the electronic device 100 is in the state where the placement state is switched, or can automatically perform the detection work within a certain period of time. The specific working mode is not specifically limited here. It only needs that the detection device 120 is in the working state during the switching process of the placing state.
由上可知,本实施例提供电子设备包括多组音频组件110、检测装置120和控制器130,通过检测装置120确定电子设备的当前摆放状态,根据当前摆放状态,从多组音频组件110中选择与当前摆放状态对应的目标音频组件,控制目标音频组件发声。通过检测装置120检测电子设备100的摆放状态,根据摆放状态选择对应位置的音频组件发声,使电子设备100在不同摆放状态下均具有较好的声音效果,提升了用户体验。It can be seen from the above that the electronic equipment provided in this embodiment includes multiple sets of audio components 110, detection means 120 and controller 130, the current placement state of the electronic equipment is determined through the detection means 120, and the multiple sets of audio components 110 are selected according to the current placement state. Select the target audio component corresponding to the current placement state, and control the sound of the target audio component. The placement state of the electronic device 100 is detected by the detection device 120 , and an audio component at a corresponding position is selected to produce sound according to the placement state, so that the electronic device 100 has better sound effects in different placement states, and user experience is improved.
另外,本申请实施例还提供另一种电子设备,请参阅图5,图5是本申请实施例提供的电子设备的第二种结构框图。其中,以电子设备200为电视进行举例说明,如上所述,电视可分具有分体式结构,即显示装置与音箱组件分开设置,但上一实施例中显示装置与音箱组件是通过连接件连接的,即音箱组件设置在显示装置的下部,此结构无法实现显示装置与音箱组件分开设置且不通过连接件实现物理连接的场景,因此,本实施例中的电子设备200将显示装置和音箱组件进行物理隔离,通过无线通信模块将显示装置与音箱组件建立通信连接,实现对声音的控制。In addition, the embodiment of the present application also provides another electronic device, please refer to FIG. 5 , which is a second structural block diagram of the electronic device provided in the embodiment of the present application. Wherein, the electronic device 200 is used as an example for illustration. As mentioned above, the TV can be divided into a split structure, that is, the display device and the sound box assembly are set separately, but in the previous embodiment, the display device and the sound box assembly are connected through a connector. , that is, the speaker assembly is arranged at the lower part of the display device. This structure cannot realize the scene where the display device and the speaker assembly are set separately and are not physically connected through connectors. Therefore, the electronic device 200 in this embodiment connects the display device and the speaker assembly Physical isolation, establish a communication connection between the display device and the speaker assembly through the wireless communication module, and realize the control of the sound.
具体地,电子设备200可以包括显示装置210、音箱组件220、检测装置230和控制器240。其中,控制器240分别与显示装置210、音箱组件220以及检测装置230电连接。控制器240可以通过检测装置230确定音箱组件220的当前摆放状态;根据当前摆放状态,从多组音频组件中选择与当前摆放状态对应的目标音频组件;控制目标音频组件发出与显示画面对应的声音。Specifically, the electronic device 200 may include a display device 210 , a speaker assembly 220 , a detection device 230 and a controller 240 . Wherein, the controller 240 is electrically connected to the display device 210 , the speaker assembly 220 and the detection device 230 respectively. The controller 240 can determine the current placement state of the speaker assembly 220 through the detection device 230; according to the current placement state, select the target audio component corresponding to the current placement state from multiple groups of audio components; control the target audio component to send and display the picture corresponding sound.
其中,显示装置210可以为LCD、LED等液晶显示装置,能够显示画面。Wherein, the display device 210 may be a liquid crystal display device such as LCD, LED, etc., capable of displaying images.
音箱组件220能够通过无线通信模块与显示装置210建立通信连接,比如WIFI、蓝牙等无线通信模块,音箱组件220中包括多组音频组件,如上一实施例中多组音频组件110,具体结构和功能实现与多组音频组件110相同,在此不作具体赘述。The speaker assembly 220 can establish a communication connection with the display device 210 through a wireless communication module, such as wireless communication modules such as WIFI and Bluetooth. The speaker assembly 220 includes multiple groups of audio components, such as the multiple groups of audio components 110 in the previous embodiment. The specific structure and function The implementation is the same as that of the multiple sets of audio components 110, and details are not repeated here.
检测装置230设置于音箱组件220上,用于检测音箱组件220的摆放状态。其中,音箱组件220的摆放状态包括竖直摆放状态、水平摆放状态和倾斜摆放状态。检测装置230可以通过检测音箱组件220各个方向力的数据确定音箱组件220的摆放状态。The detecting device 230 is disposed on the speaker assembly 220 and is used for detecting the placement state of the speaker assembly 220 . Wherein, the placement state of the speaker assembly 220 includes a vertical placement state, a horizontal placement state and an oblique placement state. The detecting device 230 can determine the placement state of the speaker assembly 220 by detecting the data of forces in various directions of the speaker assembly 220 .
若检测装置230在垂直于竖直方向上检测到力的数据,则确定音箱组件220处于竖直摆放状态;若检测装置230在垂直于水平方向上检测到力的数据,则确定音箱组件处于水平摆放状态;若检测装置230在垂直于竖直方向和水平方向上均检测到力的方向,则确定音箱组件220处于所述倾斜摆放状态。If the detection device 230 detects the data of the force perpendicular to the vertical direction, it is determined that the sound box assembly 220 is in a vertically placed state; if the detection device 230 detects the data of the force perpendicular to the horizontal direction, it is determined that the sound box assembly is in Horizontal placement state; if the detection device 230 detects the direction of the force in both the vertical direction and the horizontal direction, it is determined that the speaker assembly 220 is in the tilted placement state.
其中,检测装置230的设置位置和实现功能可以参阅上一实施例,在此不作具体赘述。Wherein, the installation position and the realization function of the detection device 230 can refer to the previous embodiment, and details are not repeated here.
本实施例与上一实施例的区别在于将显示装置210与音箱组件220通过无线通信模块建立无线连接,可以适用于显示装置210与音箱组件220无法通过物理连接的场景,在通过音箱组件220摆放状态切换不同的音频组件,不损失音频效果的基础上,增加了场景的应用范围,进一步提升了用户体验。The difference between this embodiment and the previous embodiment is that the wireless connection between the display device 210 and the speaker assembly 220 is established through a wireless communication module, which can be applied to the scene where the display device 210 and the speaker assembly 220 Switching between different audio components in the playing state, without losing the audio effect, increases the application range of the scene and further improves the user experience.
请参阅图6,图6是本申请实施例提供的声音控制方法的流程示意图。该方法的具体流程可以如下:Please refer to FIG. 6 . FIG. 6 is a schematic flowchart of a sound control method provided by an embodiment of the present application. The specific process of this method can be as follows:
301,确定电子设备的当前摆放状态。301. Determine the current placement state of the electronic device.
本实施例中其中,以电子设备为电视进行说明,电子设备可以包括用于显示画面的显示装置和用于对应显示画面所发声的音箱组件,音箱组件可以设置在显示装置的内部使电子设备为一体式结构;音箱组件还可以设置在显示装置的下方,通过连接件与显示装置电连接;音箱组件还可以与显示装置分开设置,使电子设备为分体式设置。若音箱组件设置在显示装置的内部,那么显示装置与音箱组件的摆放状态相同,且对应电子设备的摆放状态;若音箱组件设置在显示装置的下方或者音箱组件与显示装置分体设置,那么显示装置与音箱组件的摆放状态可以相同也可以不同。In this embodiment, the electronic device is described as a television. The electronic device may include a display device for displaying images and a speaker assembly for emitting sound corresponding to the display screen. The speaker assembly may be arranged inside the display device so that the electronic device is Integral structure; the speaker assembly can also be arranged under the display device, and be electrically connected to the display device through a connector; the speaker assembly can also be arranged separately from the display device, so that the electronic equipment is set in a split type. If the speaker assembly is arranged inside the display device, the placement state of the display device and the speaker assembly is the same, and corresponds to the placement state of the electronic equipment; if the speaker assembly is arranged below the display device or the speaker assembly and the display device are separately arranged, Then, the placement states of the display device and the speaker assembly may be the same or different.
由于显示装置通常与用户的观看视线相对,因此需要垂直于桌面设置或者平行于墙体即落地式设置,可以理解为显示装置的摆放状态为固定状态,但如果音箱组件未设置在显示装置的内部,为了对应显示装置的不同摆放状态,需要音箱组件具有不同的摆放状态以保证电子设备的安装稳定性及外观性。比如,显示装置的摆放状态与桌面垂直,则需要支撑显示装置的支撑结构固定在桌面上,音箱组件设置在该支撑结构或音箱组件直接作为支撑结构支撑显示装置;再比如,显示装置的摆放状态与墙体平行,则需要音箱组件的摆放状态与墙体平行,保证电子设备能够尽可能与墙体接触减少占用空间。Since the display device is usually opposite to the user's viewing line of sight, it needs to be installed perpendicular to the desktop or parallel to the wall, that is, floor-standing. It can be understood that the display device is placed in a fixed state, but if the speaker assembly is not installed Internally, in order to correspond to different placement states of the display device, the speaker assembly needs to have different placement states to ensure the installation stability and appearance of the electronic equipment. For example, if the placement state of the display device is perpendicular to the desktop, the support structure supporting the display device needs to be fixed on the desktop, and the speaker assembly is arranged on the support structure or the speaker assembly is directly used as a support structure to support the display device; If the placed state is parallel to the wall, the speaker components need to be placed parallel to the wall to ensure that the electronic equipment can be in contact with the wall as much as possible to reduce the occupied space.
检测装置可以设置在音箱组件中,能够检测电子设备的摆放状态,该电子设备的摆放状态对应音箱组件的摆放状态。其中,电子设备的摆放状态可以包括竖直摆放状态、水平摆放状态和倾斜摆放状态。电子设备的竖直摆放状态为电子设备的显示装置垂直于水平方向设置,音箱组件也垂直于水平方向,即将电子设备挂于墙体表面;电子设备的水平摆放状态为显示装置垂直于水平方向设置,音箱组件平行于水平方向,即电子设备放置于桌面;电子设备的倾斜摆放状态为显示装置和音箱组件中的至少一个倾斜于水平方向或竖直方向摆放。The detection device can be arranged in the sound box assembly, and can detect the placement state of the electronic equipment, and the placement state of the electronic equipment corresponds to the placement state of the sound box assembly. Wherein, the placement state of the electronic device may include a vertical placement state, a horizontal placement state, and an oblique placement state. The vertical placement state of the electronic equipment is that the display device of the electronic equipment is set perpendicular to the horizontal direction, and the speaker assembly is also perpendicular to the horizontal direction, that is, the electronic equipment is hung on the wall surface; the horizontal placement state of the electronic equipment is that the display device is perpendicular to the horizontal direction. Direction setting, the speaker assembly is parallel to the horizontal direction, that is, the electronic device is placed on the table; the oblique placement state of the electronic device is that at least one of the display device and the speaker assembly is placed obliquely in the horizontal direction or vertical direction.
若检测装置在垂直于竖直方向上检测到力的数据,并且在水平方向上未检测到力的数据,则确定电子设备处于竖直摆放状态;若检测装置在水平方向上检测到力的数据,并且在竖直方向上未检测到力的数据,则确定电子设备处于水平摆放状态;若检测装置在水平方向和竖直方向均检测到力的数据,则确定电子设备处于倾斜状态。If the detection device detects force data perpendicular to the vertical direction, and does not detect force data in the horizontal direction, it is determined that the electronic device is in a vertically placed state; if the detection device detects force data in the horizontal direction data, and no force data is detected in the vertical direction, it is determined that the electronic device is placed in a horizontal state; if the detection device detects force data in both the horizontal direction and the vertical direction, it is determined that the electronic device is in a tilted state.
302,根据当前摆放状态,从多组音频组件中选择与当前摆放状态对应的目标音频组件。302. According to the current placement state, select a target audio component corresponding to the current placement state from multiple groups of audio components.
本实施例在音箱组件中设置多组音频组件,该多组音频组件分别设置在音箱组件的不同位置,并且每一组音频组件对应电子设备的不同摆放状态,以使电子设备处于不同的摆放状态时,保证有至少一组音频组件可以朝向用户位置发声,使得用户听到良好的音箱效果。In this embodiment, multiple groups of audio components are arranged in the speaker assembly, and the multiple groups of audio components are respectively arranged at different positions of the speaker assembly, and each group of audio components corresponds to a different placement state of the electronic device, so that the electronic device is placed in a different position. In the playback state, at least one set of audio components is guaranteed to be able to sound toward the user's position, so that the user can hear a good speaker effect.
每一音频组件可以包括功率放大器和扬声器,功率放大器能够将声音信号放大,并通过扬声器将放大后的声音信号发出使用户能够听到。其中,每一音频组件可以包括多个功率放大器和多个扬声器,以使每一音频组件形成多声道音频通道切换系统,比如,每一音频组件可以包括5个功率放大器和5个扬声器,每一功率放大器和每一扬声器对应一个声道,即每一音频组件110包括5个声道,分别为左声道、中声道、右声道以及朝向显示装置的两个声道。Each audio component may include a power amplifier and a speaker. The power amplifier can amplify the sound signal, and send out the amplified sound signal through the speaker for the user to hear. Wherein, each audio component can include a plurality of power amplifiers and a plurality of loudspeakers, so that each audio component forms a multi-channel audio channel switching system, such as, each audio component can include 5 power amplifiers and 5 loudspeakers, each A power amplifier and each speaker correspond to a channel, that is, each audio component 110 includes 5 channels, namely a left channel, a center channel, a right channel and two channels facing the display device.
需要说明的是,电子设备在处于竖直摆放状态和水平摆放状态以外,还可以处于倾斜摆放状态,以适用于不同的场景。当电子设备处于倾斜摆放状态时,可以在音箱组件中设置与倾斜摆放状态对应的一组音频组件,也可以根据电子设备的倾斜角度对应选择与竖直摆放状态或水平摆放状态对应的音频组件作为发声单元,从而可以减少音频组件的个数。It should be noted that, in addition to the vertically placed state and the horizontally placed state, the electronic device can also be placed in an obliquely placed state, so as to be applicable to different scenarios. When the electronic device is placed in an inclined state, a group of audio components corresponding to the inclined state can be set in the speaker assembly, and it can also be selected to correspond to the vertically placed state or the horizontally placed state according to the inclination angle of the electronic device. The audio components are used as the sound unit, so that the number of audio components can be reduced.
其中,对应电子设备的三种摆放状态,多组音频组件可以包括三组音频组件,分别对应电子设备的不同摆放状态,比如多组音频组件包括第一组音频组件、第二组音频组件和第三组音频组件。若当前摆放状态为竖直摆放状态,则从多组音频组件中选择与竖直摆放状态对应的第一组音频组件作为目标音频组件;若当前摆放状态为水平摆放状态,则从多组音频组件中选择与水平摆放状态对应的第二组音频组件作为目标音频组件;若当前摆放状态为倾斜摆放状态,则从多组音频组件中选择与倾斜摆放状态对应的第三组音频组件作为目标音频组件。Among them, corresponding to the three placement states of the electronic equipment, the multiple sets of audio components may include three sets of audio components, respectively corresponding to different placement states of the electronic equipment, for example, the multiple sets of audio components include the first set of audio components, the second set of audio components and a third set of audio components. If the current placement state is a vertical placement state, select the first group of audio components corresponding to the vertical placement state from multiple groups of audio components as the target audio component; if the current placement state is a horizontal placement state, then Select the second group of audio components corresponding to the horizontal placement state from multiple groups of audio components as the target audio component; The third set of audio components acts as the target audio component.
另外,对应电子设备的三种摆放状态,为减少音箱组件中设置音频组件的数量,减少成本,可以在音箱组件中设置两组音频组件,比如多组音频组件包括第一组音频组件和第二组音频组件。其中,对应电子设备的当前摆放状态为竖直摆放状态和水平摆放状态,可以分别选择第一组音频组件或第二组音频组件作为目标音频组件。In addition, corresponding to the three placement states of the electronic equipment, in order to reduce the number of audio components in the speaker component and reduce the cost, two sets of audio components can be set in the speaker component. For example, multiple sets of audio components include the first set of audio components and the second set of audio components. Two sets of audio components. Wherein, corresponding to the current placement state of the electronic device being a vertical placement state and a horizontal placement state, the first group of audio components or the second group of audio components may be respectively selected as the target audio components.
对应当前摆放状态为倾斜摆放状态时,则需要比较检测装置在垂直于竖直方向检测到的力的第一数据与垂直于水平方向检测到的力的第二数据的大小;当第一数据大于第二数据时,即垂直于竖直方向的力大于垂直于水平方向的力,说明电子设备更倾斜于竖直方向,则从多组音频组件中选择于竖直摆放状态对应的第一组音频组件作为目标音频组件;当第一数据小于第二数据时,即垂直于竖直方向的力小于垂直于水平方向的力,说明电子设备更倾斜于水平方向,则从多组音频组件中选择水平摆放状态对应的第二组音频组件作为目标音频组件;当第一数据的关于第二数据时,即垂直于竖直方向的力等于垂直于水平方向的力,说明电子设备相对于水平方向和竖直方向的角度均为45°,则从多组音频组件中选择第一组音频组件或第二组音频组件作为目标音频组件。When the corresponding current placement state is an oblique placement state, it is necessary to compare the first data of the force detected by the detection device perpendicular to the vertical direction with the second data of the force detected perpendicular to the horizontal direction; when the first When the data is greater than the second data, that is, the force perpendicular to the vertical direction is greater than the force perpendicular to the horizontal direction, indicating that the electronic device is more inclined to the vertical direction, then select the first audio component corresponding to the vertical placement state from multiple groups of audio components. A set of audio components is used as the target audio component; when the first data is smaller than the second data, that is, the force perpendicular to the vertical direction is smaller than the force perpendicular to the horizontal direction, indicating that the electronic device is more inclined to the horizontal direction, then multiple sets of audio components Select the second group of audio components corresponding to the horizontal placement state as the target audio component; when the first data is about the second data, that is, the force perpendicular to the vertical direction is equal to the force perpendicular to the horizontal direction, indicating that the electronic device is relatively If the angles of the horizontal direction and the vertical direction are both 45°, then the first group of audio components or the second group of audio components is selected from the multiple groups of audio components as the target audio component.
需要说明的是,当电子设备由三种摆放状态中的其中一种摆放状态切换至另外一种摆放状态时,检测装置可以实时检测电子设备在各个方向上力的数据,并在电子设备处于稳定状态后,根据电子设备稳定状态下各个方向力的数据,确定电子设备的摆放状态。其中,检测装置可以在电子设备存在摆放状态切换的状态下进行检测工作,也可以在一定时间内自动进行检测工作,具体工作模式在此不作具体限定,只需保证在电子设备存在摆放状态切换的过程中检测装置处于工作状态即可。It should be noted that when the electronic device is switched from one of the three placement states to another placement state, the detection device can detect the force data of the electronic device in various directions in real time, and After the equipment is in a stable state, the placement state of the electronic equipment is determined according to the data of forces in various directions in the stable state of the electronic equipment. Among them, the detection device can perform the detection work when the electronic equipment is placed in the state of switching, and can also automatically perform the detection work within a certain period of time. The specific working mode is not specifically limited here. It only needs to ensure that the electronic equipment is placed. It is sufficient that the detection device is in the working state during the switching process.
303,控制目标音频组件发声。303. Control the target audio component to sound.
控制目标音频组件发出与显示装置所显示的画面对应的声音,该声音可以对应目标音频组件中的多声道音频切换系统实现立体声的播放,以适用于不同的应用场景。The target audio component is controlled to emit a sound corresponding to the picture displayed by the display device, and the sound can correspond to the multi-channel audio switching system in the target audio component to realize stereo playback, so as to be applicable to different application scenarios.
由上可知,本实施例通过检测装置确定电子设备的当前摆放状态,根据当前摆放状态,从多组音频组件中选择与当前摆放状态对应的目标音频组件,控制目标音频组件发声。通过检测装置检测电子设备的摆放状态,根据摆放状态选择对应位置的音频组件发声,使电子设备在不同摆放状态下均具有较好的声音效果,提升了用户体验。It can be seen from the above that in this embodiment, the detection device determines the current placement state of the electronic device, selects a target audio component corresponding to the current placement state from multiple groups of audio components according to the current placement state, and controls the target audio component to produce sound. The placement state of the electronic device is detected by the detection device, and the audio component at the corresponding position is selected to produce sound according to the placement state, so that the electronic device has better sound effects in different placement states, and the user experience is improved.
请继续参阅图7,图7是本申请实施例提供的电子设备的第三种结构框图。该电子设备300包括有一个或者一个以上处理核心的处理器310、有一个或者一个以上计算机可读存储介质的存储器320及存储在存储器320上并可在处理器310上运行的计算机程序。其中,处理器310与存储器320电性连接。本领域技术人员可以理解,图中示出的电子设备结构并不构成对电子设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Please continue to refer to FIG. 7 , which is a third structural block diagram of an electronic device provided by an embodiment of the present application. The electronic device 300 includes a processor 310 with one or more processing cores, a memory 320 with one or more computer-readable storage media, and computer programs stored in the memory 320 and executable on the processor 310 . Wherein, the processor 310 is electrically connected to the memory 320 . Those skilled in the art can understand that the structure of the electronic device shown in the figure does not constitute a limitation on the electronic device, and may include more or less components than those shown in the figure, or combine some components, or arrange different components.
处理器310是电子设备300的控制中心,利用各种接口和线路连接整个电子设备300的各个部分,通过运行或加载存储在存储器320内的软件程序和/或模块,以及调用存储在存储器320内的数据,执行电子设备300的各种功能和处理数据,从而对电子设备300进行整体监控。The processor 310 is the control center of the electronic device 300, using various interfaces and lines to connect various parts of the entire electronic device 300, by running or loading software programs and/or modules stored in the memory 320, and calling the software programs stored in the memory 320 Execute various functions of the electronic device 300 and process data, so as to monitor the electronic device 300 as a whole.
在本申请实施例中,电子设备300中的处理器310会按照如下的步骤,将一个或一个以上的应用程序的进程对应的指令加载到存储器320中,并由处理器310来运行存储在存储器320中的应用程序,从而实现各种功能:In this embodiment of the application, the processor 310 in the electronic device 300 will follow the steps below to load the instructions corresponding to the process of one or more application programs into the memory 320, and the processor 310 will run the instructions stored in the memory. 320 applications, so as to achieve various functions:
确定电子设备的当前摆放状态;Determining the current placement status of the electronic device;
根据当前摆放状态,从多组音频组件中选择与当前摆放状态对应的目标音频组件;According to the current placement state, select a target audio component corresponding to the current placement state from multiple groups of audio components;
控制目标音频组件发声。Controls the target audio component to emit sound.
以上各个操作的具体实施可参见前面的实施例,在此不再赘述。For the specific implementation of the above operations, reference may be made to the foregoing embodiments, and details are not repeated here.
本领域普通技术人员可以理解,上述实施例的各种方法中的全部或部分步骤可以通过指令来完成,或通过指令控制相关的硬件来完成,该指令可以存储于一计算机可读存储介质中,并由处理器进行加载和执行。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructions, or by instructions controlling related hardware, and the instructions can be stored in a computer-readable storage medium, and is loaded and executed by the processor.
为此,本申请实施例提供一种计算机可读存储介质,其中存储有多条计算机程序,该计算机程序能够被处理器进行加载,以执行本申请实施例所提供的任一种声音控制方法中的步骤。To this end, an embodiment of the present application provides a computer-readable storage medium, which stores a plurality of computer programs that can be loaded by a processor to execute any of the sound control methods provided in the embodiments of the present application. A step of.
其中,该存储介质可以包括:只读存储器(ROM,Read
Only Memory)、随机存取存储器(RAM,Random
Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。Wherein, the storage medium may include: a read-only memory (ROM, Read
Only Memory), random access memory (RAM, Random
Access Memory), magnetic disk or optical disk and other media that can store program codes.
由于该存储介质中所存储的计算机程序,可以执行本申请实施例所提供的任一种声音控制方法中的步骤,因此,可以实现本申请实施例所提供的任一种声音控制方法所能实现的有益效果,详见前面实施例,在此不再赘述。Since the computer program stored in the storage medium can execute the steps in any sound control method provided by the embodiment of the present application, it can realize any sound control method provided by the embodiment of the present application. For the beneficial effects, see the previous embodiments for details, and will not be repeated here.
以上对本申请实施例所提供的一种电子设备、声音控制方法及存储介质进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上,本说明书内容不应理解为对本申请的限制。An electronic device, a sound control method, and a storage medium provided by the embodiments of the present application have been described above in detail. In this paper, specific examples are used to illustrate the principles and implementation methods of the present application. The descriptions of the above embodiments are only for To help understand the method and its core idea of this application; at the same time, for those skilled in the art, according to the idea of this application, there will be changes in the specific implementation and scope of application. In summary, the content of this specification should not be understood For the limitation of this application.
Claims (20)
- 一种电子设备,其中,包括:An electronic device, comprising:多组音频组件;multiple sets of audio components;检测装置,所述检测装置用于检测所述电子设备的摆放状态;A detection device, the detection device is used to detect the placement state of the electronic equipment;控制器,所述控制器分别与所述检测装置和所述多个音频组件电连接,所述控制器用于:A controller, the controller is electrically connected to the detection device and the plurality of audio components respectively, and the controller is used for:通过所述检测装置确定所述电子设备的当前摆放状态;Determining the current placement state of the electronic device through the detection device;根据所述当前摆放状态,从所述多组音频组件中选择与所述当前摆放状态对应的目标音频组件;Selecting a target audio component corresponding to the current placement state from the multiple groups of audio components according to the current placement state;控制所述目标音频组件发声。Controls the target audio component to sound.
- 根据权利要求1所述的电子设备,其中,所述摆放状态包括竖直摆放状态、水平摆放状态和倾斜摆放状态,所述检测装置用于:The electronic device according to claim 1, wherein the placement state includes a vertical placement state, a horizontal placement state and an oblique placement state, and the detection device is used for:若在垂直于竖直方向上检测到力的数据,则确定所述电子设备处于所述竖直摆放状态;If the force data is detected in a direction perpendicular to the vertical direction, then determining that the electronic device is in the vertical placement state;若在垂直于水平方向上检测到力的数据,则确定所述电子设备处于所述水平摆放状态;If force data is detected in a direction perpendicular to the horizontal, then determining that the electronic device is in the horizontally placed state;若在垂直于竖直方向和水平方向上均检测到力的数据,则确定所述电子设备处于倾斜摆放状态。If force data is detected both in the vertical direction and in the horizontal direction, it is determined that the electronic device is placed in a tilted state.
- 根据权利要求2所述的电子设备,其中,所述多组音频组件包括第一组音频组件和第二组音频组件,所述控制器还用于:The electronic device according to claim 2, wherein the multiple sets of audio components include a first set of audio components and a second set of audio components, and the controller is further configured to:若所述当前摆放状态为所述竖直摆放状态,则从所述多组音频组件中选择与所述竖直摆放状态对应的所述第一组音频组件作为所述目标音频组件;If the current placement state is the vertical placement state, selecting the first group of audio components corresponding to the vertical placement state from the multiple groups of audio components as the target audio component;若所述当前摆放状态为所述水平摆放状态,则从所述多组音频组件中选择与所述水平摆放状态对应的所述第二组音频组件作为所述目标音频组件;If the current placement state is the horizontal placement state, selecting the second group of audio components corresponding to the horizontal placement state from the multiple groups of audio components as the target audio component;若所述当前摆放状态为所述倾斜摆放状态,则比较所述检测装置在垂直于所述竖直方向检测到的力的第一数据与垂直于所述水平方向检测到的力的第二数据的大小;If the current placement state is the inclined placement state, compare the first data of the force detected by the detection device in the vertical direction with the first data of the force detected in the horizontal direction The size of the second data;当所述第一数据大于所述第二数据时,从所述多组音频组件中选择与所述竖直摆放状态对应的所述第一组音频组件作为所述目标音频组件;When the first data is greater than the second data, selecting the first group of audio components corresponding to the vertical placement state from the plurality of groups of audio components as the target audio component;当所述第一数据小于所述第二数据时,从所述多组音频组件中选择与所述水平摆放状态对应的所述第二组音频组件作为所述目标音频组件;When the first data is smaller than the second data, selecting the second group of audio components corresponding to the horizontal placement state from the plurality of groups of audio components as the target audio component;当所述第一数据等于所述第二数据时,从所述多组音频组件中选择所述第一组音频组件或所述第二组音频组件作为所述目标音频组件。When the first data is equal to the second data, selecting the first group of audio components or the second group of audio components as the target audio component from the plurality of groups of audio components.
- 根据权利要求2所述的电子设备,其中,所述多组音频组件包括第一组音频组件,所述控制器还用于:The electronic device according to claim 2, wherein the multiple sets of audio components include a first set of audio components, and the controller is further configured to:若所述当前摆放状态为所述竖直摆放状态,则从所述多组音频组件中选择与所述竖直摆放状态对应的所述第一组音频组件作为所述目标音频组件。If the current placement state is the vertical placement state, selecting the first group of audio components corresponding to the vertical placement state from the multiple groups of audio components as the target audio component.
- 根据权利要求2所述的电子设备,其中,所述多组音频组件包括第二组音频组件,所述控制器还用于:The electronic device according to claim 2, wherein the plurality of sets of audio components includes a second set of audio components, and the controller is further configured to:若所述当前摆放状态为所述水平摆放状态,则从所述多组音频组件中选择与所述水平摆放状态对应的所述第二组音频组件作为所述目标音频组件。If the current placement state is the horizontal placement state, selecting the second group of audio components corresponding to the horizontal placement state from the multiple groups of audio components as the target audio component.
- 根据权利要求2所述的电子设备,其中,所述多组音频组件包括第三组音频组件,所述控制器还用于:The electronic device according to claim 2, wherein the multiple sets of audio components include a third set of audio components, and the controller is further configured to:若所述当前摆放状态为所述倾斜摆放状态,则从所述多组音频组件中选择与所述倾斜摆放状态对应的所述第三组音频组件作为所述目标音频组件。If the current placement state is the inclined placement state, selecting the third group of audio components corresponding to the inclined placement state from the multiple groups of audio components as the target audio component.
- 一种电子设备,其中,包括:An electronic device, comprising:显示装置,用于显示画面;a display device for displaying images;音箱组件,与所述显示装置建立无线通信连接,所述音箱组件包括多组音频组件;A speaker assembly, which establishes a wireless communication connection with the display device, and the speaker assembly includes multiple sets of audio components;检测装置,设置于所述音箱组件,用于检测所述音箱组件的摆放状态;A detection device, arranged on the speaker assembly, is used to detect the placement state of the speaker assembly;控制器,所述控制器分别与所述显示装置、所述音箱组件及所述检测装置电连接,所述控制器用于:A controller, the controller is electrically connected to the display device, the speaker assembly and the detection device respectively, and the controller is used for:通过所述检测装置确定所述音箱组件的当前摆放状态;Determining the current placement state of the speaker assembly through the detection device;根据所述当前摆放状态,从所述多组音频组件中选择与所述当前摆放状态对应的目标音频组件;Selecting a target audio component corresponding to the current placement state from the multiple groups of audio components according to the current placement state;控制所述目标音频组件发出与所述显示画面对应的声音。and controlling the target audio component to emit a sound corresponding to the display image.
- 根据权利要求7所述的电子设备,其中,所述摆放状态包括竖直摆放状态、水平摆放状态和倾斜摆放状态,所述检测装置用于:The electronic device according to claim 7, wherein the placement state includes a vertical placement state, a horizontal placement state and an oblique placement state, and the detection device is used for:若在垂直于竖直方向上检测到力的数据,则确定所述音箱组件处于所述竖直摆放状态;If the force data is detected perpendicular to the vertical direction, it is determined that the sound box assembly is in the vertical placement state;若在垂直于水平方向上检测到力的数据,则确定所述音箱组件处于所述水平摆放状态;If force data is detected in a direction perpendicular to the horizontal, it is determined that the speaker assembly is in the horizontal placement state;若在垂直于竖直方向和水平方向上均检测到力的方向,则确定所述音频组件处于所述倾斜摆放状态。If the direction of the force is detected in both the vertical direction and the horizontal direction, it is determined that the audio component is in the tilted placement state.
- 一种声音控制方法,应用于电子设备,其中,所述电子设备包括多组音频组件,所述声音控制方法包括:A sound control method applied to an electronic device, wherein the electronic device includes multiple sets of audio components, and the sound control method includes:确定所述电子设备的当前摆放状态;determining the current placement state of the electronic device;根据所述当前摆放状态,从所述多组音频组件中选择与所述当前摆放状态对应的目标音频组件;Selecting a target audio component corresponding to the current placement state from the multiple groups of audio components according to the current placement state;控制所述目标音频组件发声。Controls the target audio component to sound.
- 根据权利要求9所述的声音控制方法,其中,所述摆放状态包括竖直摆放状态、水平摆放状态和倾斜摆放状态,所述确定所述电子设备的当前摆放状态,包括:The sound control method according to claim 9, wherein the placement state includes a vertical placement state, a horizontal placement state, and an oblique placement state, and determining the current placement state of the electronic device includes:若在垂直于竖直方向上检测到力的数据,则确定所述电子设备处于所述竖直摆放状态;If the force data is detected in a direction perpendicular to the vertical direction, then determining that the electronic device is in the vertical placement state;若在垂直于水平方向上检测到力的数据,则确定所述电子设备处于所述水平摆放状态;If force data is detected in a direction perpendicular to the horizontal, then determining that the electronic device is in the horizontally placed state;若在垂直于竖直方向和水平方向上均检测到力的数据,则确定所述电子设备处于倾斜摆放状态。If force data is detected both in the vertical direction and in the horizontal direction, it is determined that the electronic device is placed in a tilted state.
- 根据权利要求10所述的声音控制方法,其中,所述多组音频组件包括第一组音频组件和第二组音频组件,所述根据所述当前摆放状态,从所述多组音频组件中选择与所述当前摆放状态对应的目标音频组件,包括:The sound control method according to claim 10, wherein the multiple sets of audio components include a first set of audio components and a second set of audio components, and the audio components selected from the multiple sets of audio components are selected according to the current placement state. Selecting a target audio component corresponding to the current placement state, including:若所述当前摆放状态为所述竖直摆放状态,则从所述多组音频组件中选择与所述竖直摆放状态对应的所述第一组音频组件作为所述目标音频组件;If the current placement state is the vertical placement state, selecting the first group of audio components corresponding to the vertical placement state from the multiple groups of audio components as the target audio component;若所述当前摆放状态为所述水平摆放状态,则从所述多组音频组件中选择与所述水平摆放状态对应的所述第二组音频组件作为所述目标音频组件;If the current placement state is the horizontal placement state, selecting the second group of audio components corresponding to the horizontal placement state from the multiple groups of audio components as the target audio component;若所述当前摆放状态为所述倾斜摆放状态,则比较所述检测装置在垂直于所述竖直方向检测到的力的第一数据与垂直于所述水平方向检测到的力的第二数据的大小;If the current placement state is the inclined placement state, compare the first data of the force detected by the detection device in the vertical direction with the first data of the force detected in the horizontal direction The size of the second data;当所述第一数据大于所述第二数据时,从所述多组音频组件中选择与所述竖直摆放状态对应的所述第一组音频组件作为所述目标音频组件;When the first data is greater than the second data, selecting the first group of audio components corresponding to the vertical placement state from the plurality of groups of audio components as the target audio component;当所述第一数据小于所述第二数据时,从所述多组音频组件中选择与所述水平摆放状态对应的所述第二组音频组件作为所述目标音频组件;When the first data is smaller than the second data, selecting the second group of audio components corresponding to the horizontal placement state from the plurality of groups of audio components as the target audio component;当所述第一数据等于所述第二数据时,从所述多组音频组件中选择所述第一组音频组件或所述第二组音频组件作为所述目标音频组件。When the first data is equal to the second data, selecting the first group of audio components or the second group of audio components as the target audio component from the plurality of groups of audio components.
- 根据权利要求10所述的声音控制方法,其中,所述多组音频组件包括第一组音频组件,所述根据所述当前摆放状态,从所述多组音频组件中选择与所述当前摆放状态对应的目标音频组件,包括:The sound control method according to claim 10, wherein the multiple groups of audio components include a first group of audio components, and according to the current placement state, selecting a The target audio component corresponding to the playback state, including:若所述当前摆放状态为所述竖直摆放状态,则从所述多组音频组件中选择与所述竖直摆放状态对应的所述第一组音频组件作为所述目标音频组件。If the current placement state is the vertical placement state, selecting the first group of audio components corresponding to the vertical placement state from the multiple groups of audio components as the target audio component.
- 根据权利要求10所述的声音控制方法,其中,所述多组音频组件包括第二组音频组件,所述根据所述当前摆放状态,从所述多组音频组件中选择与所述当前摆放状态对应的目标音频组件,包括:The sound control method according to claim 10, wherein the multiple groups of audio components include a second group of audio components, and according to the current placement state, selecting a The target audio component corresponding to the playback state, including:若所述当前摆放状态为所述水平摆放状态,则从所述多组音频组件中选择与所述水平摆放状态对应的所述第二组音频组件作为所述目标音频组件。If the current placement state is the horizontal placement state, selecting the second group of audio components corresponding to the horizontal placement state from the multiple groups of audio components as the target audio component.
- 根据权利要求10所述的声音控制方法,其中,所述多组音频组件包括第三组音频组件,所述根据所述当前摆放状态,从所述多组音频组件中选择与所述当前摆放状态对应的目标音频组件,包括:The sound control method according to claim 10, wherein the multiple groups of audio components include a third group of audio components, and according to the current placement state, selecting a The target audio component corresponding to the playback state, including:若所述当前摆放状态为所述倾斜摆放状态,则从所述多组音频组件中选择与所述倾斜摆放状态对应的所述第三组音频组件作为所述目标音频组件。If the current placement state is the inclined placement state, selecting the third group of audio components corresponding to the inclined placement state from the multiple groups of audio components as the target audio component.
- 一种计算机可读的存储介质,其上存储有计算机程序,其中,当所述计算机程序在计算机上执行时,使得所述计算机执行:A computer-readable storage medium, on which a computer program is stored, wherein, when the computer program is executed on a computer, the computer is caused to perform:确定所述电子设备的当前摆放状态;determining the current placement state of the electronic device;根据所述当前摆放状态,从所述多组音频组件中选择与所述当前摆放状态对应的目标音频组件;Selecting a target audio component corresponding to the current placement state from the multiple groups of audio components according to the current placement state;控制所述目标音频组件发声。Controls the target audio component to sound.
- 根据权利要求15所述的计算机可读的存储介质,其中,所述摆放状态包括竖直摆放状态、水平摆放状态和倾斜摆放状态,所述确定所述电子设备的当前摆放状态,所述计算机执行:The computer-readable storage medium according to claim 15, wherein the placement state includes a vertical placement state, a horizontal placement state, and an oblique placement state, and the determination of the current placement state of the electronic device , the computer executes:若在垂直于竖直方向上检测到力的数据,则确定所述电子设备处于所述竖直摆放状态;If the force data is detected in a direction perpendicular to the vertical direction, then determining that the electronic device is in the vertical placement state;若在垂直于水平方向上检测到力的数据,则确定所述电子设备处于所述水平摆放状态;If force data is detected in a direction perpendicular to the horizontal, then determining that the electronic device is in the horizontally placed state;若在垂直于竖直方向和水平方向上均检测到力的数据,则确定所述电子设备处于倾斜摆放状态。If force data is detected both in the vertical direction and in the horizontal direction, it is determined that the electronic device is placed in a tilted state.
- 根据权利要求16所述的计算机可读的存储介质,其中,所述多组音频组件包括第一组音频组件和第二组音频组件,所述根据所述当前摆放状态,从所述多组音频组件中选择与所述当前摆放状态对应的目标音频组件,所述计算机执行:The computer-readable storage medium according to claim 16, wherein the plurality of sets of audio components comprises a first set of audio components and a second set of audio components, and the set of Select a target audio component corresponding to the current placement state in the audio component, and the computer executes:若所述当前摆放状态为所述竖直摆放状态,则从所述多组音频组件中选择与所述竖直摆放状态对应的所述第一组音频组件作为所述目标音频组件;If the current placement state is the vertical placement state, selecting the first group of audio components corresponding to the vertical placement state from the multiple groups of audio components as the target audio component;若所述当前摆放状态为所述水平摆放状态,则从所述多组音频组件中选择与所述水平摆放状态对应的所述第二组音频组件作为所述目标音频组件;If the current placement state is the horizontal placement state, selecting the second group of audio components corresponding to the horizontal placement state from the multiple groups of audio components as the target audio component;若所述当前摆放状态为所述倾斜摆放状态,则比较所述检测装置在垂直于所述竖直方向检测到的力的第一数据与垂直于所述水平方向检测到的力的第二数据的大小;If the current placement state is the inclined placement state, compare the first data of the force detected by the detection device in the vertical direction with the first data of the force detected in the horizontal direction The size of the second data;当所述第一数据大于所述第二数据时,从所述多组音频组件中选择与所述竖直摆放状态对应的所述第一组音频组件作为所述目标音频组件;When the first data is greater than the second data, selecting the first group of audio components corresponding to the vertical placement state from the plurality of groups of audio components as the target audio component;当所述第一数据小于所述第二数据时,从所述多组音频组件中选择与所述水平摆放状态对应的所述第二组音频组件作为所述目标音频组件;When the first data is smaller than the second data, selecting the second group of audio components corresponding to the horizontal placement state from the plurality of groups of audio components as the target audio component;当所述第一数据等于所述第二数据时,从所述多组音频组件中选择所述第一组音频组件或所述第二组音频组件作为所述目标音频组件。When the first data is equal to the second data, selecting the first group of audio components or the second group of audio components as the target audio component from the plurality of groups of audio components.
- 根据权利要求16所述的计算机可读的存储介质,其中,所述多组音频组件包括第一组音频组件,所述根据所述当前摆放状态,从所述多组音频组件中选择与所述当前摆放状态对应的目标音频组件,所述计算机执行:The computer-readable storage medium according to claim 16, wherein the plurality of sets of audio components includes a first set of audio components, and the selection from the plurality of sets of audio components according to the current placement state is consistent with the set of audio components. Describe the target audio component corresponding to the current placement state, and the computer executes:若所述当前摆放状态为所述竖直摆放状态,则从所述多组音频组件中选择与所述竖直摆放状态对应的所述第一组音频组件作为所述目标音频组件。If the current placement state is the vertical placement state, selecting the first group of audio components corresponding to the vertical placement state from the multiple groups of audio components as the target audio component.
- 根据权利要求16所述的计算机可读的存储介质,其中,所述多组音频组件包括第二组音频组件,所述根据所述当前摆放状态,从所述多组音频组件中选择与所述当前摆放状态对应的目标音频组件,所述计算机执行:The computer-readable storage medium according to claim 16 , wherein the plurality of sets of audio components includes a second set of audio components, and the selection from the plurality of sets of audio components according to the current placement state corresponds to the set of audio components. Describe the target audio component corresponding to the current placement state, and the computer executes:若所述当前摆放状态为所述水平摆放状态,则从所述多组音频组件中选择与所述水平摆放状态对应的所述第二组音频组件作为所述目标音频组件。If the current placement state is the horizontal placement state, selecting the second group of audio components corresponding to the horizontal placement state from the multiple groups of audio components as the target audio component.
- 根据权利要求16所述的计算机可读的存储介质,其中,所述多组音频组件包括第三组音频组件,所述根据所述当前摆放状态,从所述多组音频组件中选择与所述当前摆放状态对应的目标音频组件,所述计算机执行:The computer-readable storage medium according to claim 16, wherein the multiple sets of audio components include a third set of audio components, and the selection from the multiple sets of audio components according to the current placement state Describe the target audio component corresponding to the current placement state, and the computer executes:若所述当前摆放状态为所述倾斜摆放状态,则从所述多组音频组件中选择与所述倾斜摆放状态对应的所述第三组音频组件作为所述目标音频组件。If the current placement state is the inclined placement state, selecting the third group of audio components corresponding to the inclined placement state from the multiple groups of audio components as the target audio component.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111362462.4A CN114115791B (en) | 2021-11-17 | 2021-11-17 | Electronic device, sound control method, and storage medium |
CN202111362462.4 | 2021-11-17 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2023088126A1 true WO2023088126A1 (en) | 2023-05-25 |
Family
ID=80396086
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2022/130470 WO2023088126A1 (en) | 2021-11-17 | 2022-11-08 | Electronic device, sound control method, and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN114115791B (en) |
WO (1) | WO2023088126A1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114115791B (en) * | 2021-11-17 | 2024-02-06 | 惠州视维新技术有限公司 | Electronic device, sound control method, and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5440351A (en) * | 1992-01-06 | 1995-08-08 | Ichino; Ted | Television with user-selectable radio sound |
CN101754082A (en) * | 2008-12-09 | 2010-06-23 | 北京歌尔泰克科技有限公司 | Method and device for switching sound tracks according to horizontal or vertical arrangement of loudspeaker box |
CN103297878A (en) * | 2013-04-27 | 2013-09-11 | 惠州三星电子有限公司 | Wall-mounted loudspeaker capable of automatically adjusting sound effect and displaying |
US20140044286A1 (en) * | 2012-08-10 | 2014-02-13 | Motorola Mobility Llc | Dynamic speaker selection for mobile computing devices |
CN103974167A (en) * | 2013-02-06 | 2014-08-06 | 辉达公司 | Flat-panel electronic device and audio player thereof |
CN104640029A (en) * | 2013-11-06 | 2015-05-20 | 索尼公司 | Audio outputting method and device, and electronic device |
CN114115791A (en) * | 2021-11-17 | 2022-03-01 | 惠州视维新技术有限公司 | Electronic device, sound control method, and storage medium |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9866961B2 (en) * | 2004-12-01 | 2018-01-09 | Todd Beauchamp | Multi-channel loudspeaker enclosure with laterally projecting wings and method for orienting and driving multiple loudspeakers |
CN104238990B (en) * | 2013-06-14 | 2021-09-14 | 联想(北京)有限公司 | Electronic equipment and audio output method |
CN104703087B (en) * | 2015-02-16 | 2019-01-01 | 青岛海信电器股份有限公司 | A kind of effect adjusting method and device |
WO2017099667A1 (en) * | 2015-12-07 | 2017-06-15 | Creative Technology Ltd | An audio system |
CN105549950A (en) * | 2015-12-23 | 2016-05-04 | 小米科技有限责任公司 | Sound production method and apparatus for portable electronic device |
CN108762715B (en) * | 2018-06-21 | 2021-04-02 | Oppo广东移动通信有限公司 | Electronic equipment sound control method, device and equipment |
CN112185394A (en) * | 2019-07-02 | 2021-01-05 | 北京小鸟听听科技有限公司 | Playing method, device and playing system of equipment group |
CN111638779A (en) * | 2020-04-27 | 2020-09-08 | 维沃移动通信有限公司 | Audio playing control method and device, electronic equipment and readable storage medium |
-
2021
- 2021-11-17 CN CN202111362462.4A patent/CN114115791B/en active Active
-
2022
- 2022-11-08 WO PCT/CN2022/130470 patent/WO2023088126A1/en unknown
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5440351A (en) * | 1992-01-06 | 1995-08-08 | Ichino; Ted | Television with user-selectable radio sound |
CN101754082A (en) * | 2008-12-09 | 2010-06-23 | 北京歌尔泰克科技有限公司 | Method and device for switching sound tracks according to horizontal or vertical arrangement of loudspeaker box |
US20140044286A1 (en) * | 2012-08-10 | 2014-02-13 | Motorola Mobility Llc | Dynamic speaker selection for mobile computing devices |
CN103974167A (en) * | 2013-02-06 | 2014-08-06 | 辉达公司 | Flat-panel electronic device and audio player thereof |
CN103297878A (en) * | 2013-04-27 | 2013-09-11 | 惠州三星电子有限公司 | Wall-mounted loudspeaker capable of automatically adjusting sound effect and displaying |
CN104640029A (en) * | 2013-11-06 | 2015-05-20 | 索尼公司 | Audio outputting method and device, and electronic device |
CN114115791A (en) * | 2021-11-17 | 2022-03-01 | 惠州视维新技术有限公司 | Electronic device, sound control method, and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN114115791B (en) | 2024-02-06 |
CN114115791A (en) | 2022-03-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11444375B2 (en) | Frequency routing based on orientation | |
US7813118B2 (en) | Device bracket with integrated device hub | |
US8364866B2 (en) | Automatic device function control based on device hub coupling selection | |
WO2019173664A1 (en) | Dynamic multi-speaker optimization | |
WO2023088126A1 (en) | Electronic device, sound control method, and storage medium | |
EP2605490A1 (en) | Terminal having a plurality of speakers and method of operating the same | |
US10310803B2 (en) | Systems and methods for controlling a modular speaker system | |
JP2002345079A (en) | Image display device and sound reproduction method for the device | |
CN112913258B (en) | Electronic device comprising a plurality of loudspeakers | |
US20240089656A1 (en) | Systems and methods for casting to multiple wireless speakers |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 22894663 Country of ref document: EP Kind code of ref document: A1 |