Control method and electronic equipment
By detecting the user's distance and switching the speakers and sound-producing components to output sound, the problem of privacy and noise pollution in audio and video public play mode is solved, and a better audio and video playback experience and privacy are achieved.
Patent Information
- Application Number
- CN202410633194.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-21
- Publication Date
- 2024-09-03
AI Technical Summary
The existing audio and video public playback mode has problems of poor privacy and high noise pollution.
By detecting the distance between the screen component and the target user, if the distance is less than the threshold, the speaker is used to output audible sound waves; if the distance is greater than or equal to the threshold, the sound component is used to output ultrasonic sound waves. The sound of the ultrasonic sound waves is within the self-demodulation distance. Smaller, directional propagation to avoid noise pollution.
It improves the privacy and auditory experience of audio and video playback, reduces the scope of noise pollution, and ensures that target users can hear the sound clearly without affecting people within the distance threshold.
Smart Images

Figure CN118590579A
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of electronic equipment, and specifically relates to a control method and electronic equipment. Background Art
[0002] With the development of smart devices such as mobile phones and tablets, users have put forward higher requirements for the user experience of smart devices. For example, when using smart devices to play audio and video, although wearing headphones allows users to enjoy audio and video without generating noise pollution and affecting people around, smart devices have the ability to play audio and video privately.
[0003] However, earphones are accessories of smart devices, and there may be situations where they are not brought with them when needed, so that users can choose to play audio and video publicly, and the volume of the public playback decreases as the distance from the smart device increases. However, the current audio and video public playback mode has the problems of poor playback privacy and high noise pollution. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a control method and an electronic device, which can solve the problems of poor playback privacy and high noise pollution in the current audio and video public playback mode.
[0005] In a first aspect, an embodiment of the present application provides a control method, which is applied to an electronic device, wherein the electronic device includes a screen component, a sound component, and a speaker, wherein the sound component is disposed on one side of the screen component, and the method includes:
[0006] When a voice command is obtained, detecting the distance between the screen component and the target user;
[0007] When the distance between the screen assembly and the target user is less than a distance threshold, controlling the speaker to output an audible sound wave;
[0008] When the distance between the screen component and the target user is greater than or equal to the distance threshold, the sound-generating component is controlled to output ultrasonic sound waves, and the distance threshold is at least equal to the self-demodulation distance of the ultrasonic sound waves.
[0009] In a second aspect, an embodiment of the present application provides an electronic device, the electronic device comprising: a housing, a screen assembly, a sound assembly, and a speaker;
[0010] The speaker is arranged inside the housing, and the sound-generating component is arranged on one side of the screen component.
[0011] The speaker is used to output audible sound waves when the distance between the screen assembly and the target user is less than a distance threshold;
[0012] The sound-generating component is used to output ultrasonic sound waves when the distance between the screen component and the target user is greater than or equal to the distance threshold, and the distance threshold is at least equal to the self-demodulation distance of the ultrasonic sound waves.
[0013] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.
[0014] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
[0015] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.
[0016] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the first aspect.
[0017] In an embodiment of the present application, the electronic device includes a screen component, a speaker, and a sound component disposed on one side of the screen component. Among them, when the electronic device obtains a sound instruction, it can detect the distance between the screen component and the target user, so that when the distance between the screen component and the target user is less than the distance threshold, the speaker is controlled to output an audible sound wave; when the distance between the screen component and the target user is greater than or equal to the distance threshold, the sound component is controlled to output an ultrasonic sound wave. In this technical solution, since the distance threshold is at least equal to the self-demodulation distance of the ultrasonic sound wave, and the sound of the ultrasonic sound wave within the self-demodulation distance is small, or even in a silent propagation state. Therefore, when the distance between the screen component and the target user is greater than or equal to the distance threshold, the sound component can be directed to propagate sound to the target user outside the distance threshold, to a certain extent, avoid noise pollution to the crowd within the distance threshold, and improve the privacy of the audio and video playback of the electronic device. Moreover, although when the distance between the screen component and the target user is less than the distance threshold, the electronic device can use a speaker to output audible sound waves to play sound. However, in this case, the distance between the target user and the electronic device is relatively close. Therefore, the speaker can ensure the target user's auditory experience at a lower playback volume, reduce the noise pollution range to a certain extent, and improve the privacy of audio and video playback of electronic devices. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 is a structural diagram of an electronic device provided in an embodiment of the present application;
[0019] Figure 2 is a structural diagram of another electronic device provided in an embodiment of the present application;
[0020] Figure 3 This is a schematic diagram of changes in sound wave amplitude and sound wave frequency provided in an embodiment of the present application;
[0021] Figure 4 It is a structural schematic diagram of a sound-generating component provided in an embodiment of the present application;
[0022] Figure 5 It is a schematic diagram of the arrangement of a sound-generating component group provided in an embodiment of the present application;
[0023] Figure 6 is a working principle diagram of an electronic device provided in an embodiment of the present application;
[0024] Figure 7 is a working principle diagram of another electronic device provided in an embodiment of the present application;
[0025] Figure 8 is a flow chart of a control method provided by an embodiment of the present application;
[0026] Fig. 9 is a flow chart of another control method provided by an embodiment of the present application;
[0027] Fig.10 is a block diagram of a control device provided in an embodiment of the present application;
[0028] Fig.11 is a block diagram of another electronic device provided in an embodiment of the present application;
[0029] Fig.12 It is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0030] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0031] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0032] The control method and electronic device provided in the embodiments of the present application are described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0033] Please refer to Figure 1 and Figure 2 , which respectively show a schematic diagram of the structure of an electronic device provided by an embodiment of the present application. Figure 1 and Figure 2 As shown, the electronic device 100 includes: a screen component 101, a sound-emitting component 102, a speaker 103 and a housing 105.
[0034] The screen assembly 101, the sound assembly 102 and the speaker 103 are arranged in the housing 105. The sound assembly 102 is arranged on one side of the screen assembly 101. In an optional case, the sound assembly 102 is arranged on the non-light-emitting side of the screen assembly 101. In another optional case, Figure 1 As shown, the sound component 102 can be arranged on the light-emitting side of the screen component 101. In this case, the electronic device further includes: a protective film 104. The protective film 104 is arranged on the side of the sound component 102 away from the screen component 101. That is, the light-emitting side of the screen component 101 is sequentially provided with the sound component 102 and the protective film 104. In this way, the protective film 104 can provide effective protection for the sound component 102 to avoid damage to the sound component 102. Further optionally, the sound component 102 can be a transparent component to avoid hindering the display function of the screen component 101.
[0035] The speaker 103 is used to output audible sound waves when the distance between the screen assembly 101 and the target user is less than a distance threshold. The sound generating assembly 102 is used to output ultrasonic sound waves when the distance between the screen assembly 101 and the target user is greater than or equal to the distance threshold.
[0036] The target user refers to a user who operates the electronic device to play the sound. For example, the target user may be the user to whom the electronic device belongs. Optionally, the distance between the screen assembly 101 and the target user may refer to the straight-line distance between the screen assembly 101 and the face of the target user. Alternatively, the distance between the screen assembly 101 and the target user may refer to the straight-line distance between the screen assembly 101 and the ear of the target user.
[0037] The distance threshold may be at least equal to the self-demodulation distance of the ultrasonic sound wave, that is, the distance threshold may be greater than or equal to the self-demodulation distance of the ultrasonic sound wave. Ultrasonic sound waves, also known as ultrasonic beams, will undergo self-demodulation when propagating in the air to form audible sound waves that propagate in a directionally manner, and have a high propagation directivity. The self-demodulation distance refers to the minimum distance at which ultrasonic sound waves produce self-demodulation. The sound of ultrasonic sound waves within the self-demodulation distance is relatively small, or even in a silent propagation state. Optionally, the self-demodulation distance is typically 30 centimeters (cm). In this way, the range of values of the distance threshold may be [30, +∞). Of course, the self-demodulation distance of ultrasonic sound waves is proportional to the sound wave frequency of the ultrasonic sound waves, and the sound wave frequency is proportional to the playback volume of the electronic device. Therefore, the specific value of the distance threshold changes positively with the change in the current playback volume of the electronic device.
[0038] In some embodiments of the present application, the electronic device 100 may include at least two speakers 103. For example, Figure 2 As shown, the number of speakers 103 is two. One speaker 103 is arranged at Figure 2 The upper end of the electronic device shown is called the upper speaker. Another speaker 103 is arranged at Figure 2 The lower end of the electronic device shown is called the lower speaker. The two speakers 103 can output audible sound waves simultaneously to provide multi-directional sound to the target user and enhance the sound playback experience of the target user.
[0039] In an optional case, the electronic device 100 may also include a distance sensor. The distance sensor is used to detect the distance between the screen assembly 101 and the target user. In another optional case, the electronic device 100 may also include at least one of the following devices: a depth of field camera module, a 3D structured light sensor, etc. The depth of field camera module is used to capture the depth value of the target user in its shooting scene. The electronic device can use the depth value captured by the depth of field camera module as the distance between the screen assembly 101 and the target user. The 3D structured light sensor is used to measure the depth value of the target user, that is, the distance between the 3D structured light sensor and the target user. The electronic device can use the depth value measured by the 3D structured light sensor as the distance between the screen assembly 101 and the target user. Further optionally, the depth of field camera module can be used to capture the depth value of each position point on the target user's ear in its shooting scene. The 3D structured light sensor is used to measure the depth value of each position point on the target user's ear. The electronic device can use the depth value of any position point on the target user's ear as the distance between the screen assembly 101 and the target user. Alternatively, the electronic device may use the average value of the depth values of various positions on the target user's ears as the distance between the screen component 101 and the target user, etc.
[0040] In an optional practical application, the electronic device 100 can detect the distance between the screen component 101 and the target user when a voice command is obtained. When the distance between the screen component 101 and the target user is less than the distance threshold, only the speaker 103 is used to output audible sound waves to play the sound. When the distance between the screen component 101 and the target user is greater than or equal to the distance threshold, only the sound component 102 is used to output ultrasonic sound waves, so that the ultrasonic sound waves are self-demodulated in the air to generate demodulated audible sound, so that the target user outside the distance threshold can hear the played sound.
[0041] In some embodiments of the present application, the electronic device 100 further includes: a battery 107 , a rear camera module 108 , and a mainboard 109 . The battery 107 , the rear camera module 108 , and the mainboard 109 are all disposed in the housing 105 .
[0042] In an embodiment of the present application, the electronic device includes a housing, a screen assembly, a speaker arranged inside the housing, and a sound-generating assembly arranged on one side of the screen assembly. The speaker is used to output audible sound waves when the distance between the screen assembly and the target user is less than the distance threshold; the sound-generating assembly is used to output ultrasonic sound waves when the distance between the screen assembly and the target user is greater than or equal to the distance threshold. In this technical solution, since the distance threshold is at least equal to the self-demodulation distance of the ultrasonic sound wave, and the sound of the ultrasonic sound wave within the self-demodulation distance is small, or even in a silent propagation state. Therefore, when the distance between the screen assembly and the target user is greater than or equal to the distance threshold, the sound-generating assembly can be directed to propagate sound to the target user outside the distance threshold, to a certain extent avoiding noise pollution to the crowd within the distance threshold, and improving the privacy of audio and video playback of the electronic device. Moreover, although when the distance between the screen assembly and the target user is less than the distance threshold, the electronic device can use a speaker to output audible sound waves to play sound. However, in this case, the distance between the target user and the electronic device is relatively close. Therefore, the speaker can guarantee the auditory experience of the target user at a relatively small playback volume, to a certain extent reducing the scope of noise pollution and improving the privacy of audio and video playback of the electronic device.
[0043] In some embodiments of the present application, when the distance between the screen assembly 101 and the human body is greater than or equal to the distance threshold, and the sound-emitting assembly 102 outputs directional ultrasonic sound waves, the speaker 103 may also cooperate to output audible sound waves to compensate for the low-frequency energy of the sound waves output by the electronic device, and improve the output sound quality of the electronic device, so that the target user can obtain a higher sound experience. Optionally, the speaker 103 is also used to output ultrasonic sound waves synchronously with the sound-emitting assembly 102 when the distance between the screen assembly 101 and the human body is greater than or equal to the distance threshold.
[0044] Among them, the amplitude of the self-demodulated audible sound wave of the ultrasonic sound wave synchronously output by the sound-generating component 102 is proportional to the frequency of the sound wave emitted by the electronic device, and the amplitude of the audible sound wave synchronously output by the speaker 103 is inversely proportional to the frequency of the sound wave. That is, when the distance between the screen component 101 and the human body is greater than or equal to the distance threshold, if the frequency of the sound wave emitted by the electronic device is higher, the amplitude of the self-demodulated audible sound wave of the ultrasonic sound wave output by the sound-generating component 102 is higher, and the amplitude of the audible sound wave output by the speaker 103 is lower. The self-demodulated audible sound wave of the ultrasonic sound wave refers to the demodulated audible sound wave generated by the self-demodulation of the ultrasonic sound wave in the air.
[0045] In this way, the speaker can be used as an auxiliary sound source to compensate for some low-frequency sound waves to improve the sound quality of the electronic device. And because the amplitude of the audible sound waves output by the speaker decreases as the frequency of the sound waves emitted by the electronic device increases, and the frequency of the sound waves emitted by the electronic device is proportional to the playback volume of the electronic device. Therefore, when the playback volume of the electronic device is louder, the amplitude of the audible sound waves output by the speaker is smaller, that is, the smaller the output volume of the speaker, the more difficult it is for people within the distance threshold range of the electronic device to perceive. Therefore, while improving the playback quality of the electronic device, the playback privacy of the electronic device is also guaranteed to a certain extent.
[0046] For example, Figure 3 As shown, it shows a schematic diagram of the change curve of the amplitude and sound wave frequency of the self-demodulated audible sound wave of the ultrasonic sound wave, the audible sound wave, and the combined sound wave. Among them, the combined sound wave refers to the synthetic sound wave of the self-demodulated audible sound wave of the ultrasonic sound wave and the audible sound wave when the ultrasonic sound wave and the audible sound wave are output synchronously. Figure 3 As shown, the amplitude of the combined sound wave in the sound wave frequency range of 300Hz-1000Hz is better than the amplitude of the self-demodulated audible sound wave of the ultrasonic sound wave, and has better sound quality. In addition, in the sound wave frequency range of 300Hz-1000Hz, the amplitude of the audible sound wave (i.e., the compensation sound wave) synchronously output by the speaker decreases as the sound wave frequency increases, so as to avoid the audible sound wave output by the speaker interfering with people within the distance threshold range of the electronic device, thereby improving the playback privacy of the electronic device.
[0047] Further optionally, the sound-emitting component 102 may include a plurality of tiny sound-emitting units 1021. Figure 4 As shown, the micro sound unit 1021 may include: a vibration layer 10211, a support layer 10212 and a substrate layer 10213. The support layer 10212 includes: two support members, and the two support members are arranged between the vibration layer 10211 and the substrate layer 10213 to form a vibration space between the vibration layer 10211 and the substrate layer 10213. It should be noted that Figure 4 The structure of the micro sound generating unit is schematically described by taking the three array-arranged micro sound generating units 1021 included in the sound generating component 102 as an example. For example, the materials of the vibration layer 10211, the support layer 10212 and the substrate layer 10213 can be transparent film materials, transparent glass materials, etc. In this way, the sound generating component 102 can also be called a composite film / glass component.
[0048] Among them, the vibration layer 10211 is used to vibrate under the control of the control voltage signal so that the tiny sound-emitting unit 1021 outputs ultrasonic sound waves. The vibration layer 10211 is also used to vibrate when receiving sound waves so that the tiny sound-emitting unit 1021 outputs electrical signals. Optionally, the vibration layer 10211 can vibrate under the control of the control voltage signal using the piezoelectric effect so that the tiny sound-emitting unit 1021 outputs ultrasonic sound waves. The vibration layer 10211 can also vibrate under the control of the control voltage signal using the inverse piezoelectric effect so that the tiny sound-emitting unit 1021 outputs electrical signals. Of course, the vibration layer 10211 can also vibrate under the control of the control voltage signal using the electrostatic effect so that the tiny sound-emitting unit 1021 outputs ultrasonic sound waves; and vibrate when receiving sound waves so that the tiny sound-emitting unit 1021 outputs electrical signals. Alternatively, the vibration layer 10211 may utilize the combined effect of the electrostatic effect and the piezoelectric effect to vibrate under the control of a control voltage signal so that the tiny sound-emitting unit 1021 outputs ultrasonic sound waves; and vibrate when receiving sound waves so that the tiny sound-emitting unit 1021 outputs electrical signals.
[0049] Further optionally, the vibration layer 10211 is also used to form vibrations under the control of control voltage signals with different phases, so that the tiny sound-emitting units 1021 output ultrasonic sound waves in different directions. The vibration layer 10211 of multiple tiny sound-emitting units 1021 is also used to vibrate under the control of the control voltage signal, so that the multiple tiny sound-emitting units 1021 output ultrasonic sound waves in the same direction to form ultrasonic sound waves with high directivity. Among them, the phase of the control voltage signal can adjust the vibration direction of the vibration layer 10211 in the tiny sound-emitting unit 1021 to adjust the transmission direction of the ultrasonic sound waves output by the tiny sound-emitting unit 1021.
[0050] It should be noted that in some embodiments of the present application, the multiple tiny sound units 1021 included in the sound component 102 can be arranged in an array on one side of the screen component 101. Optionally, the multiple tiny sound units 1021 can be arranged in an array in a specific topological shape. Exemplarily, the multiple tiny sound units 1021 included in the sound component 102 can be arranged in a rectangular array. It is worth noting that the setting position of each tiny sound unit 1021 in the sound component 102 and the phase of the control voltage signal are related to the direction of the ultrasonic sound wave output by it. The setting position of each tiny sound unit 1021 in the sound component 102 and the phase of the control voltage signal can be set according to the position of the ultrasonic sound wave actually required to be output, and the embodiments of the present application are not limited to this.
[0051] Further optionally, the sound-emitting component 102 includes a plurality of sound-emitting unit groups. Each sound-emitting unit group includes a plurality of tiny sound-emitting units 1021 arranged in an array.
[0052] Among them, the multiple tiny sounding units 1021 of each sounding unit group are used to transmit ultrasonic sound waves in the same propagation direction under the control of the control voltage signal. The propagation directions of the ultrasonic sound waves output by the multiple sounding unit groups may be different. In this way, different sounding unit groups can form different sound channels. That is, multiple sounding unit groups can be responsible for outputting sounds of different sound channels to achieve spatial sound with higher differentiation and a wider sound field. In an optional case, each sounding unit group can be individually controlled to output ultrasonic sound waves in a specific propagation direction. Exemplarily, each tiny sounding unit of a single sounding unit group can also be individually controlled to output ultrasonic sound waves in the same propagation direction as the entire sounding unit group.
[0053] Optionally, the multiple tiny sound-emitting units 1021 in each sound-emitting unit group can be arranged in an array in a specific topological shape. For example, the multiple tiny sound-emitting units 1021 included in the sound-emitting component 102 can be arranged in a rectangular array. For example, Figure 5 As shown, the sound component 102 includes two sound unit groups. The two sound unit groups include a first sound unit group 1022 and a second sound unit group 1023. The first sound unit group 1022 is arranged at Figure 5 The left side of the electronic device shown in the figure can provide left channel sound. The second sound unit group 1023 is arranged at Figure 5 The left side of the electronic device shown in the figure can provide right channel sound. It should be noted that, in an optional embodiment, the division of the two sound unit groups can be flexibly changed according to the actual use of the electronic device. Figure 5 As an example of the electronic device shown in FIG. 1 , when the electronic device is in a horizontal screen display state, the first sound unit group 1022 is arranged at Figure 5 The first sound unit group 1022 is composed of a plurality of small sound units on the upper side of the electronic device shown. The first sound unit group 1022 is used to output ultrasonic sound waves in the same propagation direction under the control of the control voltage signal, so that the first sound unit group 1022 provides left channel sound. The second sound unit group 1023 is composed of a plurality of small sound units arranged at Figure 5 The second sound unit group 1023 is composed of a plurality of micro sound units at the bottom of the electronic device. The plurality of micro sound units of the second sound unit group 1023 are used to output ultrasonic sound waves in the same propagation direction under the control of the control voltage signal, so that the second sound unit group 1023 provides right channel sound.
[0054] When the electronic device is in a vertical screen display state, the first sound unit group 1022 is set at Figure 5 The first sound unit group 1022 is controlled by the control voltage signal to provide left channel sound. The second sound unit group 1023 is composed of a small sound unit 1021 arranged at the left side of the electronic device shown. Figure 5The second sound unit group 1023 is used to provide right channel sound under the control of the control voltage signal. In this way, whether the user uses the electronic device in the vertical screen state or the horizontal screen state, an excellent spatial sound field experience can be obtained.
[0055] In some embodiments of the present application, the sound component 102 is used to output ultrasonic sound waves propagating toward the target user according to the relative position of the target user and the electronic device when the distance between the screen component 101 and the target user is greater than or equal to the distance threshold. Optionally, when the sound component 102 includes multiple sound unit groups, each sound unit group is used to output ultrasonic sound waves propagating toward the target user corresponding to the sound unit group according to the relative position of the target user and the electronic device when the distance between the screen component 101 and the target user is greater than or equal to the distance threshold. For example, Figure 5 The first sound unit group 1022 is arranged at Figure 5 The left side of the electronic device shown in the figure is used to provide left channel sound; the second sound unit group 1023 is arranged on Figure 5 The left side of the electronic device shown is used to provide right channel sound as an example. If the target user is located in front of the electronic device, the first sound unit group 1022 is used to output ultrasonic sound waves propagating rightward toward the target user; the second sound unit group 1023 is used to output ultrasonic sound waves propagating leftward toward the target user.
[0056] Exemplarily, the processing component is also used to adjust the phase of the control voltage signal corresponding to each tiny sound unit 1021 according to the arrangement position of each tiny sound unit 1021 and the propagation direction of the sound unit group where the tiny sound unit 1021 is located, so as to obtain the control voltage signal corresponding to each tiny sound unit 1021; and is also used to transmit the corresponding control voltage signal to each tiny sound unit 1021, so that each sound unit group outputs the ultrasonic sound wave corresponding to the sound unit group that propagates toward the target user.
[0057] In an optional case, the propagation direction of each sound unit group can be a set fixed propagation direction. For example, in the above example, when the electronic device is in a horizontal screen display state, the propagation direction of the first sound unit group 1022 located on the left side of the screen assembly is fixed; the propagation direction of the second sound unit group 1023 located on the right side of the screen assembly is fixed, and both point to a certain position point directly in front of the center position of the screen assembly.
[0058] Based on this, when the arrangement position of each tiny sounding unit 1021 is fixed, the phase of the control voltage signal corresponding to each tiny sounding unit 1021 is fixed. When the arrangement position of the tiny sounding unit 1021 refers to its overall arrangement position on the electronic device, the arrangement position can identify the tiny sounding unit 1021. The processing component can adjust the phase of the control voltage signal corresponding to each tiny sounding unit 1021 according to the arrangement position of each tiny sounding unit 1021. When the arrangement position of the tiny sounding unit 1021 refers to its arrangement position on the sounding unit group, the processing component can adjust the phase of the control voltage signal corresponding to each tiny sounding unit 1021 according to the arrangement position of each tiny sounding unit 1021 and the sounding unit group where the tiny sounding unit 1021 is located, and obtain the control voltage signal corresponding to each tiny sounding unit 1021.
[0059] In another optional case, the propagation method of the sound unit group can be adjusted according to the relative position of the target user and the electronic device. The propagation direction of each sound unit group can be directed to the target user. The processing component is also used to determine the propagation direction of each sound unit group according to the relative position of the target user and the electronic device; according to the arrangement position of each tiny sound unit 1021 and the propagation direction of the sound unit group where the tiny sound unit 1021 is located, adjust the phase of the control voltage signal corresponding to each tiny sound unit 1021 to obtain the control voltage signal corresponding to each tiny sound unit 1021.
[0060] In some embodiments of the present application, the electronic device 100 may also include at least one of the following devices: a common camera module, a gyroscope, a depth of field camera module, a three-dimensional (3D) structured light sensor and other sensors. The electronic device 100 also includes a processing component. The processing component is used to obtain the relative position of the target user and the electronic device, and the distance between the screen component 101 and the target user through the sensor; judge the size of the distance and the distance threshold; when the distance is greater than or equal to the distance threshold, according to the relative position of the target user and the electronic device, output a control voltage signal to each tiny sound unit 1021 in the sound component 102, so that each sound unit group outputs its corresponding ultrasonic sound wave propagating toward the target user. The processing component is also used to control the speaker 103 to output audible sound waves when the distance is less than the distance threshold.
[0061] In this way, the propagation direction of the ultrasonic sound waves output by the sound unit group in the sound component 102 can change according to the change of the position of the target user relative to the electronic device, so that the propagation direction of the sound unit group adapts to the position of the target user, so as to propagate sound to the target user in a direction, and try to avoid the ultrasonic sound waves from propagating to other directions and causing sound pollution. Therefore, the sound component 102 in the technical solution of the present application has a high flexibility in adjusting the propagation direction of the ultrasonic sound waves, and thus has a high flexibility in adjusting the sound propagation direction, which improves the user's listening experience, has strong feasibility, and has broad application prospects.
[0062] Optionally, the sound-generating component 102 is further configured to output ultrasonic sound waves propagating toward the target user according to the relative position of the target user and the electronic device when the electronic device recognizes the target user and detects that the distance between the target user and the screen component 101 is greater than or equal to the distance threshold. The speaker 103 is further configured to output audible sound waves when the electronic device recognizes the target user and detects that the distance between the target user and the screen component 101 is less than the distance threshold.
[0063] In some embodiments of the present application, the electronic device 100 may also include at least one of the following devices: a common camera module, a gyroscope, a depth of field camera module, a 3D structured light sensor and other sensors. The electronic device 100 also includes a processing component. The processing component is used to identify whether the face in the face image belongs to the target user by collecting the face image within the shooting range of the electronic device. If so, the processing component is also used to determine the relative position of the target user and the electronic device according to the face position in the face image, and is also used to detect the distance between the screen component 101 and the target user through the depth of field camera module / 3D structured light sensor; judge the size of the distance and the distance threshold; when the distance is greater than or equal to the distance threshold, according to the determined relative position of the target user and the electronic device, output a control voltage signal to each tiny sound unit 1021 in the sound component 102, so that each sound unit group outputs its corresponding ultrasonic sound wave propagating toward the target user. The processing component is also used to control the speaker 103 to output audible sound waves when the distance is less than the distance threshold.
[0064] For example, the processing component is also used to output a control voltage signal to each tiny sound unit 1021 in the sound component 102 when the distance is greater than or equal to the distance threshold, based on the relative position of the target user and the electronic device, and the frequency of the sound wave emitted to the outside corresponding to the current playback volume of the electronic device, so that each sound unit group outputs its corresponding ultrasonic sound wave propagating toward the target user, and the amplitude of the ultrasonic sound wave corresponds to the sound wave frequency. In addition, the processing component is also used to synchronously control the speaker 103 to output an audible sound wave according to the frequency of the sound wave emitted to the outside corresponding to the current playback volume of the electronic device, and the amplitude of the audible sound wave corresponds to the sound wave frequency.
[0065] In this way, since the electronic device can adjust the sound object (speaker / sound component) according to the distance between the target user and the electronic device through face recognition technology when it recognizes the target user, it avoids the situation where the electronic device adjusts the sound object due to the non-target user changing the distance between the electronic device and the non-target user, shields the non-target user from interfering with the adjustment of the sound object during the sound playing process of the electronic device, and improves the privacy of sound playing.
[0066] In some embodiments of the present application, the electronic device 100 further includes: a processing component. The processing component may be connected to the sound generating component 102 .
[0067] Among them, the sound-generating component 102 is used to output ultrasonic sound waves to the photographed object of the electronic device under the control of the control voltage signal. The sound-generating component 102 is also used to receive the sound waves reflected back from each position point of the photographed object, convert the sound waves into electrical signals, and transmit the electrical signals to the processing component. Among them, the duration L from the output moment of the ultrasonic sound wave to the reception moment of the reflected sound wave of the ultrasonic sound wave (that is, the sound wave reflected back by the object) of the photographed object can be approximately equal to the product of 2 times the first distance X1 and the propagation speed of the ultrasonic sound wave. The first distance X1 is the distance between the photographed object and the sound-generating component 102. And because the distance between the sound-generating component 102 and the screen component 101 is relatively close. Therefore, the duration L from the output moment of the ultrasonic sound wave to the reception moment of its reflected sound wave can be understood as the product of 2 times the second distance X2 and the propagation speed of the ultrasonic sound wave. The second distance X2 is the distance between the photographed object and the screen component 101. Therefore, the distance between the photographed object and the screen component 101 can be calculated according to the duration L from the output moment of the ultrasonic sound wave to the reception moment of its reflected sound wave. This distance is also the depth value of the object.
[0068] The processing component is used to calculate the sound wave emission duration for each position point of the photographed object according to the output time of the ultrasonic sound wave and the generation time of the electric signal, and determine the depth information of the photographed object. Optionally, the processing component can send a control voltage signal to the sound component 102 to control the sound component 102 to output the ultrasonic sound wave to the photographed object of the electronic device when the image recognition instruction is obtained. The processing component can record the sending time of the control voltage signal as the output time of the ultrasonic sound wave. In addition, when the processing component receives the electric signal corresponding to each position point of the photographed object transmitted by the sound component 102, it records the receiving time of the electric signal corresponding to each position point as the time of the electric signal. For each position point of the photographed object, the processing component calculates the difference between the generation time of the electric signal corresponding to the position point and the output time of the ultrasonic sound wave, and obtains the sound wave emission duration of the position point to obtain the sound wave emission duration of each position point. For each position point, the processing component calculates the depth value of the position point according to the target formula and the sound wave emission duration of the position point to obtain the depth value of each position point and generate depth information. The depth information of the photographed object includes the depth value of each position point of the photographed object. The target formula satisfies: Y = T ÷ 2 ÷ V. Y represents the depth value of the location point. T represents the duration of the sound wave emission at the location point. V represents the propagation speed of the ultrasonic sound wave in the air.
[0069] The processing component is also used to construct a 3D image of the photographed object based on the depth information, and perform target processing based on the 3D image. Among them, the target processing may include at least one of the following processing: photographed object recognition processing, imaging display processing, and distance recognition processing between the photographed object and the screen component. The photographed object recognition processing is used to identify the photographed object in the 3D image. By way of example, the photographed object recognition processing may refer to fingerprint recognition processing, face recognition processing, etc. The imaging display processing is used to display the constructed 3D image of the photographed object. The distance recognition processing between the photographed object and the screen component is used to extract the distance between the photographed object and the screen component from the 3D image. For example, the photographed object is the face of the target user. The distance extracted from the 3D image may be the depth value of the ear on the face of the target user.
[0070] Optionally, the 3D image constructed according to the depth information may be referred to as a 3D depth image. Further optionally, as Figure 2 As shown, the electronic device 100 may further include: a front camera module 106. The front camera module 106 is connected to the processing component. The front camera module 106 is used to collect the plane information of the photographed object and send the plane information to the processing component. Optionally, the plane information of the photographed object may include a two-dimensional image of the photographed object, which includes information such as the color and texture of the photographed object.
[0071] The processing component is also used to construct a 3D image of the photographed object according to the depth information and the plane information, so as to draw a highly clear and three-dimensional image and image features. Optionally, the 3D image constructed according to the depth information and the plane information may refer to a 3D color image. For example, the processing component includes a digital signal processing (DSP) module. The processing component can construct a 3D image of the photographed object according to the depth information through the DSP module. Similarly, the processing component can also construct a 3D image of the photographed object according to the depth information and the plane information through the DSP module. In an optional application scenario, a 3D fingerprint image can be constructed by the sound component and the processing component, and a high-definition recognition image and a high-precision fingerprint feature are provided for the fingerprint recognition of the electronic device. Similarly, a 3D palm print image can be constructed by the sound component and the processing component, and a high-definition recognition image and a high-precision palm print feature are provided for the fingerprint recognition of the electronic device. Similarly, a 3D face image can be constructed by the sound component and the processing component, and a high-definition recognition image and a high-precision face feature are provided for the fingerprint recognition of the electronic device.
[0072] In this way, since the processing component can use the depth information of the photographed object determined by the sound generating component to reconstruct the image that can be captured by the front camera module based on the plane information captured by the front camera module, a 3D image of the photographed object with higher definition can be obtained. Therefore, the light transmittance and definition requirements of the front camera module on the electronic device can be reduced.
[0073] Moreover, the method of using the sound-emitting component to determine the depth information of the photographed object overlaps with the function provided by the 3D structured light sensor. Therefore, the electronic device in the technical solution of the present application may not need to be provided with a 3D structured light sensor. Similarly, the processing component may use the sound-emitting component to reconstruct a 3D fingerprint image / palmprint image for fingerprint / palmprint recognition. Therefore, the electronic device in the technical solution of the present application may not need to be provided with a fingerprint / palmprint recognition module to collect fingerprint features / palmprint features for fingerprint / palmprint recognition. Based on this, the electronic device provided by the technical solution of the present application can realize the full-screen setting of the screen component, reduce internal components, save stacking space, and save device materials while taking into account the privacy of audio and video playback.
[0074] For ease of understanding, the working principle of the electronic device provided by the technical solution of the present application is further explained with the following two examples.
[0075] In one example, the electronic device includes a Figure 5 The electronic device shown in the figure has an upper speaker on the upper side and a lower speaker on the lower side. The electronic device also includes a depth of field camera module / 3D structured light sensor. Figure 6As shown, when the processing component obtains the privacy external speaker mode instruction and turns on the privacy external speaker mode, it collects the depth values of each facial key point within the shooting range through the depth of field camera module / 3D structured light sensor to obtain a facial depth image.
[0076] The processing component identifies whether the face depth image is a face image of the target user. In the case where the face image is identified as a face image of the target user, the depth value of the ear in the face depth image (i.e., the distance between the target user and the screen component) and the relative orientation of the face and the electronic device (i.e., the relative orientation of the target user and the electronic device) are calculated. The processing component determines whether the depth value of the ear is greater than or equal to the distance threshold.
[0077] When the depth value of the ear is greater than or equal to the distance threshold, the processing component controls the sound-generating component to output ultrasonic sound waves under the control of the control voltage signal, and synchronously controls the upper and lower speakers to output audible sound waves. In this way, when the depth value of the ear is greater than or equal to the distance threshold, the tiny sound-generating unit in the sound-generating component serves as the main sound source, and uses air self-demodulation under the action of the modulation signal (i.e., the control voltage signal) to form a self-demodulated audible sound wave that propagates directionally. The upper and lower speakers serve as auxiliary sound sources to compensate for the low-frequency energy of the sound waves output by the electronic device, thereby improving the sound quality of the electronic device output.
[0078] When the depth value of the ear is less than the distance threshold, the processing component controls the upper speaker and the lower speaker to output audible sound waves. In this way, when the depth value of the ear is less than the distance threshold, the upper speaker and the lower speaker serve as the main sound source. In addition, the processing component can also adaptively adjust the sound volume and sound field range of the upper speaker and the lower speaker according to the distance between the target user and the screen component and the angle change of the electronic device detected by the gyroscope and the gravity sensor (G_sensor).
[0079] In another example, the image recognition instruction includes a selfie instruction and a face recognition instruction. Figure 7 As shown, the processing component can determine whether the screen component is in a bright screen state. When the screen component is in a bright screen state, the processing component can determine the current working mode of the electronic device. The working state can be a front camera module selfie mode, a face recognition mode, and a privacy external speaker mode. When the processing component obtains a privacy external speaker instruction, it enters the privacy external speaker mode. If the distance between the target user and the screen component is greater than or equal to the distance threshold, the processing component controls the sound-generating component to output ultrasonic sound waves, so as to use air self-demodulation to form a self-demodulated audible sound wave that propagates in a direction. If the distance between the target user and the screen component is less than the distance threshold, the speaker is controlled to output an audible sound wave.
[0080] When the processing component obtains the face recognition instruction, it enters the face recognition mode. The processing component controls the tiny sound unit of the sound generating component to vibrate to output ultrasonic sound waves to the photographed object. After receiving the electrical signal converted by the tiny sound generating unit, the processing component can calculate the sound wave emission duration for each position point of the photographed object according to the output time of the ultrasonic sound wave and the generation time of the electrical signal, determine the depth information of the photographed object, and construct a 3D face image of the photographed object according to the depth information for face recognition.
[0081] When the processing component obtains the selfie instruction, it enters the selfie mode of the front camera module. The tiny sound unit of the sound component is controlled to vibrate to output ultrasonic sound waves to the subject. The processing component can calculate the duration of sound wave emission for each position point of the subject according to the output time of the ultrasonic sound wave and the generation time of the electrical signal after receiving the electrical signal converted by the tiny sound unit, and determine the depth information of the subject. The plane information of the subject is obtained through the front camera module, and a 3D selfie image of the subject is constructed according to the depth information and the plane information for selfie image display. That is, the processing component controls the tiny sound unit of the sound component to vibrate to output ultrasonic sound waves to the subject, and obtains the plane information of the subject through the front camera module, so as to construct a 3D selfie image in combination with the plane information and the depth information obtained by the sound component, so as to display the selfie image.
[0082] When the screen component is not in the screen-on state, the processing component controls the tiny sound-emitting unit in the target area of the sound-emitting component to vibrate to output ultrasonic sound waves to the photographed object when the gravity sensor detects that the electronic device is picked up, or when the screen component detects that the screen component is touched. After receiving the electrical signal converted by the tiny sound-emitting unit, the processing component can calculate the duration of the sound wave emission for each position point of the photographed object according to the output time of the ultrasonic sound wave and the generation time of the electrical signal, determine the depth information of the photographed object, and construct a 3D image of the photographed object according to the depth information for face recognition / fingerprint recognition / palmprint recognition, etc.
[0083] In an embodiment of the present application, the electronic device includes a screen component, a speaker, and a sound component disposed on one side of the screen component. Wherein, when the electronic device obtains a sound instruction, it can detect the distance between the screen component and the target user, so that when the distance between the screen component and the target user is less than the distance threshold, the speaker is controlled to output an audible sound wave; when the distance between the screen component and the target user is greater than or equal to the distance threshold, the sound component is controlled to output an ultrasonic sound wave. In this technical solution, since the distance threshold is at least equal to the self-demodulation distance of the ultrasonic sound wave, and the sound of the ultrasonic sound wave within the self-demodulation distance is small, or even in a silent propagation state. Therefore, when the distance between the screen component and the target user is greater than or equal to the distance threshold, the sound component can be directed to propagate sound to the target user outside the distance threshold, to a certain extent, avoid noise pollution to the crowd within the distance threshold, and improve the privacy of the audio and video playback of the electronic device. Moreover, although when the distance between the screen component and the target user is less than the distance threshold, the electronic device can use a speaker to output audible sound waves to play sound. However, in this case, the distance between the target user and the electronic device is relatively close. Therefore, the speaker can ensure the target user's auditory experience at a lower playback volume, reduce the noise pollution range to a certain extent, and improve the privacy of audio and video playback of electronic devices.
[0084] Please refer to Figure 8 , which shows a flow chart of a control method provided by an embodiment of the present application. The control method can be applied to the electronic device provided by an embodiment of the present application. Optionally, the control method can be executed by a processing component in the electronic device. Figure 8 As shown, the control method includes:
[0085] Step 801: When a voice command is obtained, the distance between the screen component and the target user is detected.
[0086] In an optional case, the electronic device 100 may further include a distance sensor. The processing component may detect the distance between the screen component 101 and the target user through the distance sensor.
[0087] In another optional case, the electronic device 100 may also include at least one of the following devices: a depth of field camera module, a 3D structured light sensor, etc. The depth of field camera module is used to capture the depth value of the target user in its shooting scene. The electronic device can capture the depth value of the target user through the depth of field camera module to determine the distance between the detected screen assembly and the target user. The 3D structured light sensor is used to measure the depth value of the target user, that is, the distance between the 3D structured light sensor and the target user. The electronic device can detect the depth value of the target user through the 3D structured light sensor to determine the distance between the screen assembly 101 and the target user.
[0088] Further optionally, the depth of field camera module can be used to capture the depth value of each position point on the target user's ear within the shooting scene. The 3D structured light sensor is used to measure the depth value of each position point on the target user's ear. The electronic device can use the depth value of any position point on the target user's ear as the distance between the screen component 101 and the target user. Alternatively, the electronic device can use the average value of the depth values of each position point on the target user's ear as the distance between the screen component 101 and the target user, etc.
[0089] In some embodiments of the present application, the processing component can control the sound component to output ultrasonic sound waves to the object of the electronic device when the sound instruction is obtained, and the sound waves reflected back from each position point of the object are converted into electrical signals by the sound component, and the sound wave emission duration for each position point of the object is calculated according to the output time of the ultrasonic sound wave and the generation time of the electrical signal, and the depth information of the object is determined, and the depth value of the ear on the face is determined from the depth information to obtain the distance between the screen component and the target user. Wherein, the object of the shot is the face of the target user.
[0090] In the embodiment of the present application, after detecting the distance between the screen component and the target user, the processing component can determine whether the distance is greater than or equal to the distance threshold. When the distance between the screen component and the target user is less than the distance threshold, step 602 is executed to control the speaker to output audible sound waves. When the distance between the screen component and the target user is greater than or equal to the distance threshold, step 603 is executed to control the sound-generating component to output ultrasonic sound waves.
[0091] Step 802: When the distance between the screen component and the target user is less than a distance threshold, control the speaker to output audible sound waves.
[0092] Optionally, when the distance between the screen component and the target user is less than a distance threshold, the processing component can adaptively adjust the audible sound waves output by the speaker according to the distance between the target user and the screen component and the angle change of the electronic device detected by the gyroscope and the gravity sensor to adjust the sound volume and sound field range of the speaker.
[0093] Step 803: When the distance between the screen component and the target user is greater than or equal to the distance threshold, control the sound-generating component to output ultrasonic sound waves.
[0094] Wherein, the distance threshold is at least equal to the self-demodulation distance of the ultrasonic sound wave. Optionally, the sound-generating component includes a plurality of tiny sound-generating units, and the process of the processing component controlling the sound-generating component to output the ultrasonic sound wave may include: generating and sending a control voltage signal to each tiny sound-generating unit. The control voltage signal is used to vibrate the tiny sound-generating unit to output the ultrasonic sound wave.
[0095] In some embodiments, the sound-generating component includes a plurality of sound-generating unit groups, each of which includes a plurality of tiny sound-generating units arranged in an array. The process of the processing component generating and sending a control voltage signal to each tiny sound-generating unit may include:
[0096] According to the arrangement position of each tiny sound unit and the propagation direction of the sound unit group where the tiny sound unit is located, the phase of the control voltage signal corresponding to each tiny sound unit is adjusted to obtain the control voltage signal corresponding to each tiny sound unit. The corresponding control voltage signal is transmitted to each tiny sound unit.
[0097] Further optionally, when the distance between the screen component and the target user is greater than or equal to the distance threshold, the process of the processing component controlling the sound generating component to output the ultrasonic sound wave may also include:
[0098] When the distance between the screen component and the target user is greater than or equal to the distance threshold, the sound-generating component is controlled to output ultrasonic sound waves, and the speaker is controlled to synchronously output audible sound waves. The amplitude of the self-demodulated audible sound waves of the synchronously output ultrasonic sound waves is proportional to the frequency of the sound waves emitted by the electronic device. The amplitude of the synchronously output audible sound waves is inversely proportional to the frequency of the sound waves.
[0099] In an optional implementation, Fig. 9 As shown, the control method also includes:
[0100] Step 901: When an image recognition instruction is obtained, control the sound-generating component to output ultrasonic sound waves to the object being photographed by the electronic device.
[0101] Step 902: Convert the sound waves reflected from various positions of the photographed object into electrical signals through the sound-generating component.
[0102] Step 903: Calculate the duration of sound wave emission at each position point of the photographed object according to the output time of the ultrasonic sound wave and the generation time of the electric signal, and determine the depth information of the photographed object.
[0103] Step 904: construct a 3D image of the object according to the depth information.
[0104] Step 905: Execute target processing according to the 3D image. The target processing includes at least one of the following processing: object recognition processing, imaging display processing, and distance recognition processing between the object and the screen component.
[0105] Further optionally, when the electronic device also includes a front camera module, the process of the processor constructing a 3D image of the object based on the depth information may include: constructing a 3D image of the object based on the depth information and planar information of the object captured by the front camera module.
[0106] It should be noted that the explanation and implementation of each step in the method embodiment of the present application can refer to the relevant function introduction of each module in the aforementioned electronic device side, and the present application embodiment will not elaborate on this.
[0107] In an embodiment of the present application, the electronic device includes a screen component, a speaker, and a sound component disposed on one side of the screen component. Wherein, when the electronic device obtains a sound instruction, it can detect the distance between the screen component and the target user, so that when the distance between the screen component and the target user is less than the distance threshold, the speaker is controlled to output an audible sound wave; when the distance between the screen component and the target user is greater than or equal to the distance threshold, the sound component is controlled to output an ultrasonic sound wave. In this technical solution, since the distance threshold is at least equal to the self-demodulation distance of the ultrasonic sound wave, and the sound of the ultrasonic sound wave within the self-demodulation distance is small, or even in a silent propagation state. Therefore, when the distance between the screen component and the target user is greater than or equal to the distance threshold, the sound component can be directed to propagate sound to the target user outside the distance threshold, to a certain extent, avoid noise pollution to the crowd within the distance threshold, and improve the privacy of the audio and video playback of the electronic device. Moreover, although when the distance between the screen component and the target user is less than the distance threshold, the electronic device can use a speaker to output audible sound waves to play sound. However, in this case, the distance between the target user and the electronic device is relatively close. Therefore, the speaker can ensure the target user's auditory experience at a lower playback volume, reduce the noise pollution range to a certain extent, and improve the privacy of audio and video playback of electronic devices.
[0108] In the control method provided in the embodiment of the present application, the execution subject may be a control device. In the embodiment of the present application, the control device provided in the embodiment of the present application is described by taking the control method executed by the control device as an example.
[0109] Please refer to Fig.10 , which shows a block diagram of a control device provided in an embodiment of the present application. The control device can be applied to the electronic device provided in an embodiment of the present application. Optionally, the control device can be applied to a processing component in the electronic device provided in an embodiment of the present application. Fig.10 As shown, the control device 1000 includes:
[0110] The detection module 1001 is used to detect the distance between the screen component and the target user when a voice command is obtained;
[0111] The control module 1002 is used to control the speaker to output audible sound waves when the distance between the screen component and the target user is less than a distance threshold; and is also used to control the sound-generating component to output ultrasonic sound waves when the distance between the screen component and the target user is greater than or equal to a distance threshold, and the distance threshold is at least equal to the self-demodulation distance of the ultrasonic sound waves.
[0112] Optionally, the control module 1002 is also used to control the sound-emitting component to output ultrasonic sound waves, and to control the speaker to synchronously output audible sound waves when the distance between the screen component and the target user is greater than or equal to a distance threshold, wherein the amplitude of the self-demodulated audible sound wave of the synchronously output ultrasonic sound wave is proportional to the frequency of the sound wave emitted by the electronic device, and the amplitude of the synchronously output audible sound wave is inversely proportional to the sound wave frequency.
[0113] Optionally, the sound-generating component includes a plurality of tiny sound-generating units, and the control module 1002 is further used to generate and send a control voltage signal to each tiny sound-generating unit, wherein the control voltage signal is used to vibrate the tiny sound-generating unit to output ultrasonic sound waves.
[0114] Optionally, the sound-generating component includes a plurality of sound-generating unit groups, each of which includes a plurality of tiny sound-generating units arranged in an array. The control module 1002 is further configured to:
[0115] According to the arrangement position of each tiny sound unit and the propagation direction of the sound unit group where the tiny sound unit is located, the phase of the control voltage signal corresponding to each tiny sound unit is adjusted to obtain the control voltage signal corresponding to each tiny sound unit;
[0116] The corresponding control voltage signal is transmitted to each tiny sound unit.
[0117] Optionally, the control module 1002 is further configured to: when an image recognition instruction is obtained, control the sound generating component to output ultrasonic sound waves to the photographed object of the electronic device;
[0118] The control device 1000 further includes: a receiving module, configured to convert the sound waves reflected from each position point of the photographed object received by the sound generating component into electrical signals;
[0119] A determination module, used to calculate the duration of sound wave emission at each position point of the photographed object according to the output time of the ultrasonic sound wave and the generation time of the electrical signal, and determine the depth information of the photographed object;
[0120] A construction module, used to construct a 3D image of the photographed object according to the depth information;
[0121] The execution module is used to perform target processing according to the 3D image, and the target processing includes at least one of the following processing: object recognition processing, imaging display processing, and distance recognition processing between the object and the screen component.
[0122] Optionally, the electronic device further includes: a front camera module; and a construction module, further used to construct a 3D image of the object based on the depth information and the plane information of the object collected by the front camera module.
[0123] Optionally, the photographed object is the face of a target user; the detection module 1001 is further used to determine the depth value of the ear on the face from the depth information to obtain the distance between the screen component and the target user.
[0124] In an embodiment of the present application, the electronic device includes a screen component, a speaker, and a sound component disposed on one side of the screen component. Wherein, when the electronic device obtains a sound instruction, it can detect the distance between the screen component and the target user, so that when the distance between the screen component and the target user is less than the distance threshold, the speaker is controlled to output an audible sound wave; when the distance between the screen component and the target user is greater than or equal to the distance threshold, the sound component is controlled to output an ultrasonic sound wave. In this technical solution, since the distance threshold is at least equal to the self-demodulation distance of the ultrasonic sound wave, and the sound of the ultrasonic sound wave within the self-demodulation distance is small, or even in a silent propagation state. Therefore, when the distance between the screen component and the target user is greater than or equal to the distance threshold, the sound component can be directed to propagate sound to the target user outside the distance threshold, to a certain extent, avoid noise pollution to the crowd within the distance threshold, and improve the privacy of the audio and video playback of the electronic device. Moreover, although when the distance between the screen component and the target user is less than the distance threshold, the electronic device can use a speaker to output audible sound waves to play sound. However, in this case, the distance between the target user and the electronic device is relatively close. Therefore, the speaker can ensure the target user's auditory experience at a lower playback volume, reduce the noise pollution range to a certain extent, and improve the privacy of audio and video playback of electronic devices.
[0125] The control device in the embodiment of the present application can be a component in an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or it can be other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0126] The control device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0127] The control device provided in the embodiment of the present application can achieve Figures 6 to 9 To avoid repetition, the various processes implemented by the method embodiment are not described here.
[0128] Alternatively, if Fig.11 As shown, the electronic device 1100 provided in the embodiment of the present application also includes a processor 1101 and a memory 1102. The memory 1102 stores programs or instructions that can be executed on the processor 1101. When the program or instructions are executed by the processor 1101, the various steps of the above-mentioned control method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, they are not repeated here.
[0129] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0130] Fig.12A schematic diagram of the hardware structure of an electronic device for implementing an embodiment of the present application. The electronic device 1200 may include, on the basis of the components provided by the electronic device 100 provided by the embodiment of the present application, also include but are not limited to: a radio frequency unit 1201, a network module 1202, an audio output unit 1203, an input unit 1204, a sensor 1205, a display unit 1206, a user input unit 1207, an interface unit 1208, a memory 1209, and a processor 1210 and other components.
[0131] Those skilled in the art will appreciate that the electronic device 1200 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 1210 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.12 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0132] The processor 1210 is used to detect the distance between the screen component and the target user when a voice command is obtained;
[0133] Processor 1210 is also used to control the speaker to output audible sound waves when the distance between the screen assembly and the target user is less than a distance threshold; and to control the sound-generating assembly to output ultrasonic sound waves when the distance between the screen assembly and the target user is greater than or equal to the distance threshold, and the distance threshold is at least equal to the self-demodulation distance of the ultrasonic sound waves.
[0134] In the embodiment of the present application, since the distance threshold is at least equal to the self-demodulation distance of the ultrasonic sound wave, and the sound of the ultrasonic sound wave within the self-demodulation distance is small, or even in a silent propagation state. Therefore, when the distance between the screen component and the target user is greater than or equal to the distance threshold, the sound-emitting component can be directed to propagate sound to the target user outside the distance threshold, to a certain extent avoiding noise pollution to the crowd within the distance threshold, and improving the privacy of audio and video playback of the electronic device. Moreover, although when the distance between the screen component and the target user is less than the distance threshold, the electronic device can use a speaker to output audible sound waves to play sound. However, in this case, the distance between the target user and the electronic device is relatively close. Therefore, the speaker can ensure the auditory experience of the target user at a relatively small playback volume, to a certain extent reducing the scope of noise pollution and improving the privacy of audio and video playback of the electronic device.
[0135] Optionally, the processor 1210 is further used to control the sound-emitting component to output ultrasonic sound waves, and to control the speaker to synchronously output audible sound waves when the distance between the screen component and the target user is greater than or equal to the distance threshold, wherein the amplitude of the self-demodulated audible sound wave of the synchronously output ultrasonic sound wave is proportional to the frequency of the sound wave emitted by the electronic device, and the amplitude of the synchronously output audible sound wave is inversely proportional to the sound wave frequency.
[0136] Optionally, the sound generating component includes a plurality of micro sound generating units. The processor 1210 is further configured to generate and send a control voltage signal to each of the micro sound generating units, wherein the control voltage signal is used to vibrate the micro sound generating unit to output ultrasonic sound waves.
[0137] Optionally, the sound component includes a plurality of sound unit groups, each of which includes a plurality of tiny sound units arranged in an array. The processor 1210 is further configured to adjust the phase of the control voltage signal corresponding to each tiny sound unit according to the arrangement position of each tiny sound unit and the propagation direction of the sound unit group where the tiny sound unit is located, so as to obtain the control voltage signal corresponding to each tiny sound unit; and transmit the corresponding control voltage signal to each tiny sound unit.
[0138] Optionally, the processor 1210 is further configured to control the sound generating component to output ultrasonic sound waves to the photographed object of the electronic device when an image recognition instruction is obtained;
[0139] The processor 1210 is further configured to convert the sound waves reflected from each position point of the photographed object received by the sound generating component into electrical signals;
[0140] The processor 1210 is further configured to calculate the duration of sound wave emission at each position point of the photographed object according to the output time of the ultrasonic sound wave and the generation time of the electrical signal, and determine the depth information of the photographed object;
[0141] The processor 1210 is further configured to construct a 3D image of the photographed object according to the depth information;
[0142] The processor 1210 is further configured to perform target processing according to the 3D image, wherein the target processing includes at least one of the following processing: object recognition processing, imaging display processing, and distance recognition processing between the object and the screen component.
[0143] Optionally, the electronic device further includes: a front camera module. The processor 1210 is further configured to construct a 3D image of the object according to the depth information and the plane information of the object collected by the front camera module.
[0144] Optionally, the photographed object is the face of the target user. The processor 1210 is further configured to determine a depth value of an ear on the face from the depth information to obtain a distance between the screen component and the target user.
[0145] In an embodiment of the present application, the electronic device includes a screen component, a speaker, and a sound component disposed on one side of the screen component. Wherein, when the electronic device obtains a sound instruction, it can detect the distance between the screen component and the target user, so that when the distance between the screen component and the target user is less than the distance threshold, the speaker is controlled to output an audible sound wave; when the distance between the screen component and the target user is greater than or equal to the distance threshold, the sound component is controlled to output an ultrasonic sound wave. In this technical solution, since the distance threshold is at least equal to the self-demodulation distance of the ultrasonic sound wave, and the sound of the ultrasonic sound wave within the self-demodulation distance is small, or even in a silent propagation state. Therefore, when the distance between the screen component and the target user is greater than or equal to the distance threshold, the sound component can be directed to propagate sound to the target user outside the distance threshold, to a certain extent, avoid noise pollution to the crowd within the distance threshold, and improve the privacy of the audio and video playback of the electronic device. Moreover, although when the distance between the screen component and the target user is less than the distance threshold, the electronic device can use a speaker to output audible sound waves to play sound. However, in this case, the distance between the target user and the electronic device is relatively close. Therefore, the speaker can ensure the target user's auditory experience at a lower playback volume, reduce the noise pollution range to a certain extent, and improve the privacy of audio and video playback of electronic devices.
[0146] It should be understood that in the embodiment of the present application, the input unit 1204 may include a graphics processor (Graphics Processing Unit, GPU) 12041 and a microphone 12042, and the graphics processor 12041 processes the image data of the static picture or video obtained by the image capture device (such as a common camera module) in the video capture mode or the image capture mode. The display unit 1206 may include a display panel 12061, and the display panel 12061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1207 includes a touch panel 12071 and at least one of other input devices 12072. The touch panel 12071 is also called a touch screen. The touch panel 12071 may include two parts: a touch detection device and a touch controller. Other input devices 12072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
[0147] The memory 1209 can be used to store software programs and various data. The memory 1209 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 1209 may include a volatile memory or a non-volatile memory, or the memory 1209 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 1209 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0148] The processor 1210 may include one or more processing units; optionally, the processor 1210 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 1210.
[0149] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned control method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0150] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
[0151] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned control method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0152] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0153] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned control method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0154] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0155] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0156] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A control method, characterized in that: Applied to an electronic device, the electronic device includes a screen component, a sound component, and a speaker, the sound component is arranged on one side of the screen component, and the method includes: When a voice command is obtained, detecting the distance between the screen component and the target user; When the distance between the screen assembly and the target user is less than a distance threshold, controlling the speaker to output an audible sound wave; When the distance between the screen component and the target user is greater than or equal to the distance threshold, the sound-generating component is controlled to output ultrasonic sound waves, and the distance threshold is at least equal to the self-demodulation distance of the ultrasonic sound waves.
2. The method according to claim 1, characterized in that When the distance between the screen component and the target user is greater than or equal to the distance threshold, controlling the sound generating component to output ultrasonic sound waves comprises: When the distance between the screen component and the target user is greater than or equal to the distance threshold, the sound generating component is controlled to output ultrasonic sound waves, and the speaker is controlled to synchronously output audible sound waves, The amplitude of the self-demodulated audible sound wave of the synchronously output ultrasonic sound wave is proportional to the frequency of the sound wave emitted by the electronic device, and the amplitude of the synchronously output audible sound wave is inversely proportional to the frequency of the sound wave.
3. The method according to claim 1 or 2, characterized in that: The sound-generating component includes a plurality of tiny sound-generating units, and the controlling the sound-generating component to output ultrasonic sound waves includes: A control voltage signal is generated and sent to each of the micro sound-generating units, wherein the control voltage signal is used to vibrate the micro sound-generating unit to output ultrasonic sound waves.
4. The method according to claim 3, characterized in that The sound-generating component includes a plurality of sound-generating unit groups, each of which includes a plurality of tiny sound-generating units arranged in an array, and the generating and sending of a control voltage signal to each of the tiny sound-generating units includes: According to the arrangement position of each of the tiny sounding units and the propagation direction of the sounding unit group where the tiny sounding unit is located, the phase of the control voltage signal corresponding to each of the tiny sounding units is adjusted to obtain the control voltage signal corresponding to each of the tiny sounding units; A corresponding control voltage signal is transmitted to each of the micro sound-emitting units.
5. The method according to claim 1, characterized in that The method further comprises: When an image recognition instruction is obtained, controlling the sound-generating component to output ultrasonic sound waves to a photographed object of the electronic device; The sound waves reflected from each position of the photographed object are converted into electrical signals by the sound-generating component; According to the output time of the ultrasonic sound wave and the generation time of the electrical signal, the sound wave emission duration for each position point of the photographed object is calculated to determine the depth information of the photographed object; constructing a three-dimensional 3D image of the photographed object according to the depth information; Target processing is performed according to the 3D image, and the target processing includes at least one of the following processes: object recognition processing, imaging display processing, and distance recognition processing between the object and the screen component.
6. The method according to claim 5, characterized in that The electronic device further includes: a front camera module; and constructing a three-dimensional 3D image of the photographed object according to the depth information includes: A three-dimensional 3D image of the object is constructed based on the depth information and the plane information of the object captured by the front camera module.
7. The method according to claim 5, characterized in that The photographed object is the face of the target user; and the detecting the distance between the screen component and the target user includes: The depth value of the ear on the face is determined from the depth information to obtain the distance between the screen component and the target user.
8. An electronic device, characterized in that: The electronic device comprises: a housing, a screen component (101), a sound generating component, and a speaker; The speaker is arranged inside the housing, and the sound-generating component is arranged on one side of the screen component. The speaker is used to output audible sound waves when the distance between the screen assembly and the target user is less than a distance threshold; The sound-generating component is used to output ultrasonic sound waves when the distance between the screen component and the target user is greater than or equal to the distance threshold, and the distance threshold is at least equal to the self-demodulation distance of the ultrasonic sound waves.
9. The electronic device according to claim 8, characterized in that: The speaker is also used to output audible sound waves synchronously with the sound-generating component when the distance between the screen component and the target user is greater than or equal to a distance threshold. The amplitude of the self-demodulated audible sound wave of the synchronously output ultrasonic sound wave is proportional to the frequency of the sound wave emitted by the electronic device, and the amplitude of the synchronously output audible sound wave is inversely proportional to the frequency of the sound wave.
10. The electronic device according to claim 8 or 9, characterized in that: The sound-generating component comprises: a plurality of tiny sound-generating units, the tiny sound-generating units comprise: a vibration layer, a support layer and a substrate layer, the support layer comprises: two support members, the two support members are arranged between the vibration layer and the substrate layer to form a vibration space between the vibration layer and the substrate layer; The vibration layer is used to vibrate under the control of a control voltage signal so that the tiny sound-emitting unit outputs an ultrasonic sound wave; the vibration layer is also used to vibrate when receiving a sound wave so that the tiny sound-emitting unit outputs an electrical signal.
11. The electronic device according to claim 10, characterized in that: The plurality of micro sound generating unit arrays are arranged on one side of the screen assembly.
12. The electronic device according to claim 11, characterized in that: The sound-generating component comprises: a plurality of sound-generating unit groups, each of which comprises: a plurality of the micro sound-generating units arranged in an array; The multiple tiny sound-generating units of each sound-generating unit group are used to transmit ultrasonic sound waves in the same propagation direction under the control of a control voltage signal, and the propagation directions of the ultrasonic sound waves output by the multiple sound-generating unit groups are different.
13. The electronic device according to claim 8, characterized in that: The electronic device further includes: a protective film, and the sound-emitting component and the protective film are sequentially arranged on the light-emitting side of the screen component.
14. The electronic device according to claim 8, characterized in that: The sound-generating component is a transparent component.
15. An electronic device, characterized in that: The electronic device includes a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the control method according to any one of claims 1 to 7 are implemented.
