CN112019677A - Electronic equipment control method and device - Google Patents

Electronic equipment control method and device Download PDF

Info

Publication number
CN112019677A
CN112019677A CN201910465645.5A CN201910465645A CN112019677A CN 112019677 A CN112019677 A CN 112019677A CN 201910465645 A CN201910465645 A CN 201910465645A CN 112019677 A CN112019677 A CN 112019677A
Authority
CN
China
Prior art keywords
human
distance
loudness
sound
electronic equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910465645.5A
Other languages
Chinese (zh)
Other versions
CN112019677B (en
Inventor
项吉
李竹新
张百能
冯长军
张鹏飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201910465645.5A priority Critical patent/CN112019677B/en
Publication of CN112019677A publication Critical patent/CN112019677A/en
Application granted granted Critical
Publication of CN112019677B publication Critical patent/CN112019677B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Telephone Function (AREA)

Abstract

The disclosure relates to an electronic device control method and device. The method comprises the following steps: acquiring working state information of the electronic equipment; when the electronic equipment is determined to be in a call according to the working state information of the electronic equipment, acquiring a first human sound loudness and a second human sound loudness; acquiring a human sound loudness difference between the first human sound loudness and the second human sound loudness; and determining the distance between the human voice sound source and the electronic equipment according to the human voice loudness difference. According to the technical scheme, the distance between the electronic equipment and the human voice sound source can be detected on the premise that the electronic equipment is not required to be provided with the distance sensor, so that the manufacturing cost of the electronic equipment is reduced, the screen occupation ratio of the electronic equipment is improved, and the user experience is improved.

Description

Electronic equipment control method and device
Technical Field
The present disclosure relates to the field of control technologies, and in particular, to a method and an apparatus for controlling an electronic device.
Background
With the development of technology, electronic devices such as intelligent mobile communication terminals, tablet computers, intelligent wearable devices and the like have been widely appeared in the lives of people in recent years. When the electronic equipment is used, the working mode of the electronic equipment is often adjusted according to the distance between a human voice source and the electronic equipment, for example, when a user uses the electronic equipment to communicate with other people, the electronic equipment can work in a handheld mode when the distance between the human voice source, such as a mouth of the user, and the electronic equipment is determined to be close to the electronic equipment, namely, a screen is turned off and corresponding voice information is played through a receiver; when the electronic equipment determines that the distance between the human voice source and the electronic equipment is far, the electronic equipment can work in a hands-free mode, namely, the screen is lightened, and corresponding voice information is played through the loudspeaker.
In the related art, detection may be performed by a distance sensor (P-sensor) provided on the electronic device to acquire a distance between the electronic device and a human voice sound source.
Disclosure of Invention
In order to overcome the problems in the related art, embodiments of the present disclosure provide an electronic device control method and apparatus. The technical scheme is as follows:
according to a first aspect of embodiments of the present disclosure, there is provided an electronic device control method, applied to an electronic device, including:
acquiring working state information of the electronic equipment;
when the electronic equipment is determined to be in a call according to the working state information of the electronic equipment, acquiring a first human sound loudness and a second human sound loudness, wherein the first human sound loudness is collected by a first sound receiving module positioned at one end of the electronic equipment, and the second human sound loudness is collected by a second sound receiving module positioned at the other end of the electronic equipment;
acquiring a human sound loudness difference between the first human sound loudness and the second human sound loudness;
and determining the distance between the human voice sound source and the electronic equipment according to the human voice loudness difference.
In the technical scheme provided by the embodiment of the disclosure, by acquiring the working state information of the electronic device, when the electronic device is determined to be in a call according to the working state information of the electronic device, a first human loudness acquired by a first sound receiving module located at one end of the electronic device and a second human loudness acquired by a second sound receiving module located at the other end of the electronic device are acquired, a human loudness difference between the first human loudness and the second human loudness is acquired, and a human sound source distance between a human sound source and the electronic device is determined according to the human loudness difference. Wherein, when the human sound source is closer to the electronic device, the human sound source may be closer to either the first sound receiving module or the second sound receiving module, at this time, the difference between the first human sound loudness and the second human sound loudness is larger, and when the human sound source is farther from the electronic device, the human sound source is farther from both the first sound receiving module and the second sound receiving module, and the first human sound loudness and the second human sound loudness collected by the first sound receiving module and the second sound receiving module are both possibly smaller, so the difference between the human sound loudness is smaller, therefore, the human sound source distance between the human sound source and the electronic device can be determined by the human sound loudness difference, thereby detecting the distance between the electronic device and the human sound source on the premise of not equipping a distance sensor for the electronic device, reducing the manufacturing cost of the electronic device, and improving the screen occupation ratio of the electronic device, the user experience is improved.
In one embodiment, determining a human voice source distance between a human voice source and an electronic device according to a human voice loudness difference comprises:
and when the human sound loudness difference is smaller than or equal to the hands-free loudness difference threshold value, determining that the human sound source distance is larger than or equal to the hands-free distance.
In one embodiment, the method further comprises:
and when the distance of the human voice sound source is greater than or equal to the hands-free distance, the communication working state of the electronic equipment is adjusted to be the hands-free communication state.
In one embodiment, determining a human voice source distance between a human voice source and an electronic device according to a human voice loudness difference comprises:
and when the human sound loudness difference is larger than or equal to the handheld loudness difference threshold value, determining that the human sound source distance is smaller than or equal to the handheld distance.
In one embodiment, the method further comprises:
and when the distance of the human voice sound source is less than or equal to the handheld distance, the communication working state of the electronic equipment is adjusted to be the handheld communication state.
In one embodiment, the method further comprises
Controlling a sound production module in the electronic equipment to emit ultrasonic signals and acquiring the emission time of the sound production module for emitting the ultrasonic signals;
acquiring the receiving time of a first sound receiving module or a second sound receiving module for receiving an echo signal, wherein the echo signal is an ultrasonic signal reflected by a human sound source;
acquiring a time difference between receiving time and transmitting time;
acquiring a measurement distance between the electronic equipment and a human voice sound source according to the time difference;
determining a human voice sound source distance between a human voice sound source and an electronic device according to a human voice loudness difference, comprising:
determining a candidate distance according to the human sound loudness difference;
and when the distance difference between the measured distance and the candidate distance is smaller than or equal to a preset distance difference threshold value, determining the candidate distance as the human sound source distance.
According to a second aspect of embodiments of the present disclosure, there is provided an electronic device control apparatus, the apparatus being located at an electronic device, including:
the working state information acquisition module is used for acquiring the working state information of the electronic equipment;
the system comprises an electronic equipment, a first sound receiving module, a second sound receiving module and a human loudness acquiring module, wherein the electronic equipment is used for acquiring a first human loudness and a second human loudness when the electronic equipment is determined to be in a call according to working state information of the electronic equipment;
the human sound loudness difference acquisition module is used for acquiring a human sound loudness difference between the first human sound loudness and the second human sound loudness;
and the human sound source distance determining module is used for determining the human sound source distance between the human sound source and the electronic equipment according to the human sound loudness difference.
In one embodiment, a human voice source distance determination module includes:
and the first human sound source distance determining submodule is used for determining that the human sound source distance is greater than or equal to the hands-free distance when the human sound loudness difference is less than or equal to the hands-free loudness difference threshold value.
In one embodiment, the apparatus further comprises:
and the first call working state adjusting module is used for adjusting the call working state of the electronic equipment to be the hands-free call state when the distance of the human voice sound source is greater than or equal to the hands-free distance.
In one embodiment, a human voice source distance determination module includes:
and the second human sound source distance determining submodule is used for determining that the human sound source distance is smaller than or equal to the handheld distance when the human sound loudness difference is larger than or equal to the handheld loudness difference threshold value.
In one embodiment, the apparatus further comprises:
and the second communication working state adjusting module is used for adjusting the communication working state of the electronic equipment to a handheld communication state when the distance of the human voice sound source is less than or equal to the handheld distance.
In one embodiment, the apparatus further comprises
The ultrasonic signal sending module is used for controlling a sound production module in the electronic equipment to emit ultrasonic signals and acquiring the emission time of the sound production module for emitting the ultrasonic signals;
a receiving time acquiring module for acquiring receiving time of the first sound receiving module or the second sound receiving module for receiving echo signals, wherein the echo signals are ultrasonic signals reflected by a human sound source;
the time difference acquisition module is used for acquiring the time difference between the receiving time and the transmitting time;
the measuring distance acquisition module is used for acquiring the measuring distance between the electronic equipment and the human voice sound source according to the time difference;
the human voice sound source distance determining module comprises:
the candidate distance determining submodule is used for determining a candidate distance according to the human sound loudness difference;
and the human sound source distance determining submodule is used for determining the candidate distance as the human sound source distance when the distance difference between the measured distance and the candidate distance is smaller than or equal to a preset distance difference threshold value.
According to a third aspect of embodiments of the present disclosure, there is provided an electronic device control apparatus including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring working state information of the electronic equipment;
when the electronic equipment is determined to be in a call according to the working state information of the electronic equipment, acquiring a first human sound loudness and a second human sound loudness, wherein the first human sound loudness is collected by a first sound receiving module positioned at one end of the electronic equipment, and the second human sound loudness is collected by a second sound receiving module positioned at the other end of the electronic equipment;
acquiring a human sound loudness difference between the first human sound loudness and the second human sound loudness;
and determining the distance between the human voice sound source and the electronic equipment according to the human voice loudness difference.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer readable storage medium having stored thereon computer instructions which, when executed by a processor, implement the steps of the method of any one of the first aspects of the embodiments of the present disclosure.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1a is a schematic flow diagram illustrating an electronic device control method according to an exemplary embodiment;
FIG. 1b is a schematic flow diagram illustrating an electronic device control method according to an exemplary embodiment;
FIG. 2a is a schematic diagram illustrating the structure of an electronic device control apparatus according to an exemplary embodiment;
FIG. 2b is a schematic diagram illustrating the structure of an electronic device control apparatus according to an exemplary embodiment;
FIG. 2c is a schematic diagram of the configuration of an electronic device control apparatus shown in accordance with an exemplary embodiment;
FIG. 2d is a schematic diagram illustrating the structure of an electronic device control apparatus according to an exemplary embodiment;
FIG. 2e is a schematic diagram illustrating the structure of an electronic device control apparatus according to an exemplary embodiment;
FIG. 2f is a schematic diagram illustrating the structure of an electronic device control apparatus according to an exemplary embodiment;
FIG. 3 is a block diagram illustrating an apparatus in accordance with an exemplary embodiment;
FIG. 4 is a block diagram illustrating an apparatus in accordance with an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
With the development of technology, electronic devices such as intelligent mobile communication terminals, tablet computers, intelligent wearable devices and the like have been widely appeared in the lives of people in recent years. When the electronic equipment is used, the working mode of the electronic equipment is often adjusted according to the distance between a human voice source and the electronic equipment, for example, when a user uses the electronic equipment to communicate with other people, the electronic equipment can work in a handheld mode when the distance between the human voice source, such as a mouth of the user, and the electronic equipment is determined to be close to the electronic equipment, namely, a screen is turned off and corresponding voice information is played through a receiver; when the electronic equipment determines that the distance between the human voice source and the electronic equipment is far, the electronic equipment can work in a hands-free mode, namely, the screen is lightened, and corresponding voice information is played through the loudspeaker.
In the related art, detection may be performed by a distance sensor (P-sensor) provided on the electronic device to acquire a distance between the electronic device and a human voice sound source.
Although the above-mentioned scheme can detect the distance between the electronic equipment and the human voice sound source through the P-sensor arranged on the electronic equipment, the above-mentioned scheme needs to set up an opening for the P-sensor on the panel of the electronic equipment, thereby increasing the manufacturing cost of the electronic equipment, and reducing the screen occupation ratio of the electronic equipment, and impairing the user experience.
In order to solve the above problem, in the technical solution provided in the embodiment of the present disclosure, by acquiring the operating state information of the electronic device, when it is determined that the electronic device is in a call according to the operating state information of the electronic device, a first human loudness acquired by a first sound receiving module located at one end of the electronic device and a second human loudness acquired by a second sound receiving module located at the other end of the electronic device are acquired, a human loudness difference between the first human loudness and the second human loudness is acquired, and a human sound source distance between a human sound source and the electronic device is determined according to the human loudness difference. Wherein, when the human sound source is closer to the electronic device, the human sound source may be closer to either the first sound receiving module or the second sound receiving module, at this time, the difference between the first human sound loudness and the second human sound loudness is larger, and when the human sound source is farther from the electronic device, the human sound source is farther from both the first sound receiving module and the second sound receiving module, and the first human sound loudness and the second human sound loudness collected by the first sound receiving module and the second sound receiving module are both possibly smaller, so the difference between the human sound loudness is smaller, therefore, the human sound source distance between the human sound source and the electronic device can be determined by the human sound loudness difference, thereby detecting the distance between the electronic device and the human sound source on the premise of not equipping a distance sensor for the electronic device, reducing the manufacturing cost of the electronic device, and improving the screen occupation ratio of the electronic device, the user experience is improved.
An embodiment of the present disclosure provides an electronic device control method, where the electronic device may be an intelligent mobile communication terminal, a tablet device, a digital broadcast terminal, a messaging device, a game console, a medical device, a fitness device, or a personal digital assistant, as shown in fig. 1a, including the following steps 101 to 102:
in step 101, operating state information of the electronic device is acquired.
For example, the operating state information of the electronic device may be used to indicate an operating state of the electronic device, and determine whether the electronic device is in a call state according to the operating state, where the electronic device is in the call state, which may be understood as a user using the electronic device to perform a voice call with another electronic device through a wireless communication network. Such as a user making a call using the electronic device, or a user talking to another user using an application installed on the electronic device, etc.
In step 102, when it is determined that the electronic device is in a call according to the operating state information of the electronic device, the first human loudness and the second human loudness are obtained.
The first human sound loudness is collected by a first sound receiving module located at one end of the electronic equipment, and the second human sound loudness is collected by a second sound receiving module located at the other end of the electronic equipment.
For example, the first sound receiving module and the second sound receiving module may be microphones, for example, the first sound receiving module may be a microphone located at the top end of the electronic device, and the second sound receiving module may be a microphone located at the bottom end of the electronic device; the second sound receiving module may be a microphone located at the top end of the electronic device, and the first sound receiving module may be a microphone located at the bottom end of the electronic device.
In step 103, a human loudness difference between the first human loudness and the second human loudness is obtained.
In step 104, the human voice source distance between the human voice source and the electronic device is determined according to the human voice loudness difference.
For example, when the electronic device is in a call, the human voice source can be understood as the mouth of the user. Because when the human sound source is relatively close to the electronic equipment, the human sound source may be relatively close to any one of the first sound receiving module or the second sound receiving module, at this moment, the human sound loudness difference between the first human sound loudness and the second human sound loudness is relatively large, and when the human sound source is relatively far away from the electronic equipment, the human sound source is relatively far away from the first sound receiving module and the second sound receiving module, the first human sound loudness and the second human sound loudness collected by the first sound receiving module and the second sound receiving module are relatively small, so the human sound loudness difference is relatively small, and therefore the human sound loudness difference can be understood as being inversely related to the human sound source distance. The method comprises the steps of determining the distance between a human sound source and the electronic equipment according to the human sound loudness difference, and inquiring in a loudness difference distance database according to the human sound loudness difference to obtain the distance between the human sound source corresponding to the human sound loudness difference, wherein the loudness difference distance database is used for indicating the corresponding relation between the human sound loudness difference and the distance between the human sound sources. And determining the distance between the human voice source and the electronic equipment according to the human voice loudness difference, or substituting the human voice loudness difference into a preset algorithm for calculation, and acquiring the distance between the human voice sources according to the calculation result. It should be noted that the human voice sound source distance may be one or more distance intervals, or may be one or more distance values.
For example, when the human sound loudness difference is less than or equal to the hands-free loudness difference threshold, it is determined that the human sound source distance is greater than or equal to the hands-free distance. For another example, when the human sound loudness difference is greater than or equal to the handheld loudness difference threshold, the human sound source distance is determined to be less than or equal to the handheld distance. It should be noted that, the hands-free loudness difference threshold and the handheld loudness difference threshold may be the same loudness difference threshold, or may be different loudness difference thresholds. For example, the handheld loudness difference threshold may be 16dB and the hands-free loudness difference threshold may be 40 dB.
Further, for example, when the human voice source distance is greater than or equal to the handsfree distance, the call operation state of the electronic device may be adjusted to the handsfree call state. For another example, when the human voice source distance is less than or equal to the handheld distance, the call operating state of the electronic device may be adjusted to a handheld call state. The communication working state of the electronic equipment is adjusted to be a handheld communication state, which can be understood as that the electronic equipment extinguishes a screen and plays corresponding voice information through a receiver; the adjustment of the call operating state of the electronic device to the hands-free call state can be understood as the electronic device lighting up the screen and playing corresponding voice information through the speaker.
In the technical scheme provided by the embodiment of the disclosure, by acquiring the working state information of the electronic device, when the electronic device is determined to be in a call according to the working state information of the electronic device, a first human loudness acquired by a first sound receiving module located at one end of the electronic device and a second human loudness acquired by a second sound receiving module located at the other end of the electronic device are acquired, a human loudness difference between the first human loudness and the second human loudness is acquired, and a human sound source distance between a human sound source and the electronic device is determined according to the human loudness difference. Wherein, when the human sound source is closer to the electronic device, the human sound source may be closer to either the first sound receiving module or the second sound receiving module, at this time, the difference between the first human sound loudness and the second human sound loudness is larger, and when the human sound source is farther from the electronic device, the human sound source is farther from both the first sound receiving module and the second sound receiving module, and the first human sound loudness and the second human sound loudness collected by the first sound receiving module and the second sound receiving module are both possibly smaller, so the difference between the human sound loudness is smaller, therefore, the human sound source distance between the human sound source and the electronic device can be determined by the human sound loudness difference, thereby detecting the distance between the electronic device and the human sound source on the premise of not equipping a distance sensor for the electronic device, reducing the manufacturing cost of the electronic device, and improving the screen occupation ratio of the electronic device, the user experience is improved.
In one embodiment, as shown in fig. 1b, the electronic device control method provided by the embodiment of the present disclosure further includes the following steps 105 to 108:
in step 105, a sound generation module in the electronic device is controlled to emit an ultrasonic signal, and the emission time of the sound generation module for emitting the ultrasonic signal is acquired.
In step 106, the receiving time of the echo signal received by the first sound receiving module or the second sound receiving module is obtained.
Wherein, the echo signal is an ultrasonic signal reflected by a human voice sound source.
In step 107, the time difference between the reception time and the transmission time is acquired.
In step 108, the measured distance between the electronic device and the human voice source is obtained according to the time difference.
In step 104, determining a human voice sound source distance between the human voice sound source and the electronic device according to the human voice loudness difference, which may be implemented through steps 1041 to 1042:
in step 1041, a candidate distance is determined based on the difference in human loudness.
In step 1042, when the distance difference between the measured distance and the candidate distance is less than or equal to a preset distance difference threshold, the candidate distance is determined as the human sound source distance.
The method comprises the steps of controlling a sound production module in the electronic equipment to emit ultrasonic signals, obtaining the emitting time of the sound production module to emit the ultrasonic signals, obtaining the receiving time of a first sound receiving module or a second sound receiving module to receive echo signals, obtaining the time difference between the receiving time and the emitting time, obtaining the measuring distance between the electronic equipment and a human sound source according to the time difference, determining a candidate distance according to the human sound loudness difference, considering that the two distance measuring modes are mutually verified when the distance difference between the measuring distance and the candidate distance is smaller than or equal to a preset distance difference threshold value, namely the measuring results obtained by the two different distance measuring modes (measuring by emitting the ultrasonic waves and measuring by obtaining the loudness difference) are not greatly different, and then determining the candidate distance as the human sound source distance, so that the accuracy of the obtained human sound source distance can be ensured, user experience is improved
The following are embodiments of the disclosed apparatus that may be used to perform embodiments of the disclosed methods.
Fig. 2a is a block diagram of an electronic device control apparatus 20 according to an exemplary embodiment, where the electronic device control apparatus 20 may be an electronic device or a part of an electronic device, and the electronic device control apparatus 20 may be implemented as a part or all of an electronic device through software, hardware, or a combination of the two. As shown in fig. 2a, the electronic device control apparatus 20 includes:
the working state information acquiring module 201 is configured to acquire working state information of the electronic device.
The human loudness acquiring module 202 is configured to acquire a first human loudness and a second human loudness when it is determined that the electronic device is in a call according to the working state information of the electronic device, where the first human loudness is acquired by a first sound receiving module located at one end of the electronic device, and the second human loudness is acquired by a second sound receiving module located at the other end of the electronic device.
And the human sound loudness difference acquiring module 203 is configured to acquire a human sound loudness difference between the first human sound loudness and the second human sound loudness.
And the human voice source distance determining module 204 is configured to determine a human voice source distance between the human voice source and the electronic device according to the human voice loudness difference.
In one embodiment, as shown in fig. 2b, the human voice source distance determining module 204 includes:
the first human voice source distance determining submodule 2041 is configured to determine that the human voice source distance is greater than or equal to the hands-free distance when the human voice loudness difference is less than or equal to the hands-free loudness difference threshold.
In one embodiment, as shown in fig. 2c, the electronic device control apparatus 20 further includes:
the first call operating state adjusting module 205 is configured to adjust a call operating state of the electronic device to a hands-free call state when the distance of the human voice source is greater than or equal to the hands-free distance.
In one embodiment, as shown in fig. 2d, the human voice source distance determining module 204 includes:
the second human voice sound source distance determining submodule 2042 is configured to determine that the human voice sound source distance is less than or equal to the handheld distance when the human voice loudness difference is greater than or equal to the handheld loudness difference threshold.
In one embodiment, as shown in fig. 2e, the electronic device control apparatus 20 further includes:
and the second communication working state adjusting module 206 is configured to adjust the communication working state of the electronic device to a handheld communication state when the distance of the human voice source is less than or equal to the handheld distance.
In one embodiment, as shown in FIG. 2f, the electronic device control apparatus 20 further comprises
And the ultrasonic signal sending module 207 is used for controlling a sound generation module in the electronic device to send an ultrasonic signal and acquiring the sending time of the ultrasonic signal sent by the sound generation module.
A receiving time obtaining module 208, configured to obtain a receiving time for the first sound receiving module or the second sound receiving module to receive an echo signal, where the echo signal is an ultrasonic signal reflected by a human sound source.
A time difference obtaining module 209, configured to obtain a time difference between the receiving time and the transmitting time;
and a measurement distance obtaining module 210, configured to obtain a measurement distance between the electronic device and the human voice source according to the time difference.
The human voice sound source distance determining module 204 includes:
and the candidate distance determining submodule 2043 is configured to determine a candidate distance according to the difference in loudness of human voice.
The human sound source distance determining sub-module 2044 is configured to determine the candidate distance as the human sound source distance when a distance difference between the measured distance and the candidate distance is less than or equal to a preset distance difference threshold.
The embodiment of the disclosure provides an electronic device control device, which can acquire working state information of an electronic device, acquire a first human loudness acquired by a first sound receiving module located at one end of the electronic device and a second human loudness acquired by a second sound receiving module located at the other end of the electronic device when the electronic device is determined to be in a call according to the working state information of the electronic device, acquire a human loudness difference between the first human loudness and the second human loudness, and determine a human sound source distance between a human sound source and the electronic device according to the human loudness difference. Wherein, when the human sound source is closer to the electronic device, the human sound source may be closer to either the first sound receiving module or the second sound receiving module, at this time, the difference between the first human sound loudness and the second human sound loudness is larger, and when the human sound source is farther from the electronic device, the human sound source is farther from both the first sound receiving module and the second sound receiving module, and the first human sound loudness and the second human sound loudness collected by the first sound receiving module and the second sound receiving module are both possibly smaller, so the difference between the human sound loudness is smaller, therefore, the human sound source distance between the human sound source and the electronic device can be determined by the human sound loudness difference, thereby detecting the distance between the electronic device and the human sound source on the premise of not equipping a distance sensor for the electronic device, reducing the manufacturing cost of the electronic device, and improving the screen occupation ratio of the electronic device, the user experience is improved.
Fig. 3 is a block diagram of an electronic device control apparatus 30 according to an exemplary embodiment, where the electronic device control apparatus 30 may be a terminal or a part of the terminal, and the electronic device control apparatus 30 includes:
a processor 301;
a memory 302 for storing instructions executable by the processor 301;
wherein the processor 301 is configured to:
acquiring working state information of the electronic equipment;
when the electronic equipment is determined to be in a call according to the working state information of the electronic equipment, acquiring a first human sound loudness and a second human sound loudness, wherein the first human sound loudness is collected by a first sound receiving module positioned at one end of the electronic equipment, and the second human sound loudness is collected by a second sound receiving module positioned at the other end of the electronic equipment;
acquiring a human sound loudness difference between the first human sound loudness and the second human sound loudness;
and determining the distance between the human voice sound source and the electronic equipment according to the human voice loudness difference.
In one embodiment, the processor 301 may be further configured to:
determining a human voice sound source distance between a human voice sound source and an electronic device according to a human voice loudness difference, comprising:
and when the human sound loudness difference is smaller than or equal to the hands-free loudness difference threshold value, determining that the human sound source distance is larger than or equal to the hands-free distance.
In one embodiment, the processor 301 may be further configured to:
and when the distance of the human voice sound source is greater than or equal to the hands-free distance, the communication working state of the electronic equipment is adjusted to be the hands-free communication state.
In one embodiment, the processor 301 may be further configured to:
determining a human voice sound source distance between a human voice sound source and an electronic device according to a human voice loudness difference, comprising:
and when the human sound loudness difference is larger than or equal to the handheld loudness difference threshold value, determining that the human sound source distance is smaller than or equal to the handheld distance.
In one embodiment, the processor 301 may be further configured to:
and when the distance of the human voice sound source is less than or equal to the handheld distance, the communication working state of the electronic equipment is adjusted to be the handheld communication state.
In one embodiment, the processor 301 may be further configured to:
controlling a sound production module in the electronic equipment to emit ultrasonic signals and acquiring the emission time of the sound production module for emitting the ultrasonic signals;
acquiring the receiving time of a first sound receiving module or a second sound receiving module for receiving an echo signal, wherein the echo signal is an ultrasonic signal reflected by a human sound source;
acquiring a time difference between receiving time and transmitting time;
acquiring a measurement distance between the electronic equipment and a human voice sound source according to the time difference;
determining a human voice sound source distance between a human voice sound source and an electronic device according to a human voice loudness difference, comprising:
determining a candidate distance according to the human sound loudness difference;
and when the distance difference between the measured distance and the candidate distance is smaller than or equal to a preset distance difference threshold value, determining the candidate distance as the human sound source distance.
The embodiment of the disclosure provides an electronic device control device, which can acquire working state information of an electronic device, acquire a first human loudness acquired by a first sound receiving module located at one end of the electronic device and a second human loudness acquired by a second sound receiving module located at the other end of the electronic device when the electronic device is determined to be in a call according to the working state information of the electronic device, acquire a human loudness difference between the first human loudness and the second human loudness, and determine a human sound source distance between a human sound source and the electronic device according to the human loudness difference. Wherein, when the human sound source is closer to the electronic device, the human sound source may be closer to either the first sound receiving module or the second sound receiving module, at this time, the difference between the first human sound loudness and the second human sound loudness is larger, and when the human sound source is farther from the electronic device, the human sound source is farther from both the first sound receiving module and the second sound receiving module, and the first human sound loudness and the second human sound loudness collected by the first sound receiving module and the second sound receiving module are both possibly smaller, so the difference between the human sound loudness is smaller, therefore, the human sound source distance between the human sound source and the electronic device can be determined by the human sound loudness difference, thereby detecting the distance between the electronic device and the human sound source on the premise of not equipping a distance sensor for the electronic device, reducing the manufacturing cost of the electronic device, and improving the screen occupation ratio of the electronic device, the user experience is improved.
Fig. 4 is a block diagram illustrating an apparatus 400 for controlling an electronic device, the apparatus 400 being suitable for use with the electronic device, according to an example embodiment. For example, the apparatus 400 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
The apparatus 400 may include one or more of the following components: processing components 402, memory 404, power components 406, multimedia components 408, audio components 410, input/output (I/O) interfaces 412, sensor components 414, and communication components 416.
The processing component 402 generally controls overall operation of the apparatus 400, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing element 402 may include one or more processors 420 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 402 can include one or more modules that facilitate interaction between the processing component 402 and other components. For example, the processing component 402 can include a multimedia module to facilitate interaction between the multimedia component 408 and the processing component 402.
The memory 404 is configured to store no various types of data to support operations at the apparatus 400. Examples of such data include instructions for any application or method operating on the device 400, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 404 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power supply components 406 provide power to the various components of device 400. The power components 406 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 400.
The multimedia component 408 includes a screen that provides an output interface between the device 400 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 408 includes a front facing camera and a rear facing camera. The front camera and the rear camera can receive external multimedia data when the device 400 is in an operation mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 410 is configured to output an input audio signal. For example, audio component 410 includes a Microphone (MIC) configured to receive external audio signals when apparatus 400 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 404 or transmitted via the communication component 416. In some embodiments, audio component 410 also includes a speaker for outputting audio signals.
The I/O interface 412 provides an interface between the processing component 402 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 414 includes one or more sensors for providing various aspects of status assessment for the apparatus 400. For example, the sensor assembly 414 may detect an open/closed state of the apparatus 400, the relative positioning of the components, such as a display and keypad of the apparatus 400, the sensor assembly 414 may also detect a change in the position of the apparatus 400 or a component of the apparatus 400, the presence or absence of user contact with the apparatus 400, orientation or acceleration/deceleration of the apparatus 400, and a change in the temperature of the apparatus 400. The sensor assembly 414 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 414 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 414 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 416 is configured to facilitate wired or wireless communication between the apparatus 400 and other devices. The apparatus 400 may access a wireless network based on a communication standard, such as a walkie-talkie private network, WiFi, 2G, 3G, 4G, or 5G, or a combination thereof. In an exemplary embodiment, the communication component 416 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 416 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 400 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 404 comprising instructions, executable by the processor 420 of the apparatus 400 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium, wherein instructions of the storage medium, when executed by a processor of an apparatus 400, enable the apparatus 400 to perform the above-described electronic device control method, the method comprising:
acquiring working state information of the electronic equipment;
when the electronic equipment is determined to be in a call according to the working state information of the electronic equipment, acquiring a first human sound loudness and a second human sound loudness, wherein the first human sound loudness is collected by a first sound receiving module positioned at one end of the electronic equipment, and the second human sound loudness is collected by a second sound receiving module positioned at the other end of the electronic equipment;
acquiring a human sound loudness difference between the first human sound loudness and the second human sound loudness;
and determining the distance between the human voice sound source and the electronic equipment according to the human voice loudness difference.
In one embodiment, determining a human voice source distance between a human voice source and an electronic device according to a human voice loudness difference comprises:
and when the human sound loudness difference is smaller than or equal to the hands-free loudness difference threshold value, determining that the human sound source distance is larger than or equal to the hands-free distance.
In one embodiment, the method further comprises:
and when the distance of the human voice sound source is greater than or equal to the hands-free distance, the communication working state of the electronic equipment is adjusted to be the hands-free communication state.
In one embodiment, determining a human voice source distance between a human voice source and an electronic device according to a human voice loudness difference comprises:
and when the human sound loudness difference is larger than or equal to the handheld loudness difference threshold value, determining that the human sound source distance is smaller than or equal to the handheld distance.
In one embodiment, the method further comprises:
and when the distance of the human voice sound source is less than or equal to the handheld distance, the communication working state of the electronic equipment is adjusted to be the handheld communication state.
In one embodiment, the method further comprises
Controlling a sound production module in the electronic equipment to emit ultrasonic signals and acquiring the emission time of the sound production module for emitting the ultrasonic signals;
acquiring the receiving time of a first sound receiving module or a second sound receiving module for receiving an echo signal, wherein the echo signal is an ultrasonic signal reflected by a human sound source;
acquiring a time difference between receiving time and transmitting time;
acquiring a measurement distance between the electronic equipment and a human voice sound source according to the time difference;
determining a human voice sound source distance between a human voice sound source and an electronic device according to a human voice loudness difference, comprising:
determining a candidate distance according to the human sound loudness difference;
and when the distance difference between the measured distance and the candidate distance is smaller than or equal to a preset distance difference threshold value, determining the candidate distance as the human sound source distance.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (14)

1. An electronic device control method, applied to an electronic device, includes:
acquiring working state information of the electronic equipment;
when the electronic equipment is determined to be in a call according to the working state information of the electronic equipment, acquiring a first human sound loudness and a second human sound loudness, wherein the first human sound loudness is collected by a first sound receiving module located at one end of the electronic equipment, and the second human sound loudness is collected by a second sound receiving module located at the other end of the electronic equipment;
acquiring a human loudness difference between the first human loudness and the second human loudness;
and determining the distance between the human voice sound source and the electronic equipment according to the human voice loudness difference.
2. The electronic device control method of claim 1, wherein determining the human voice source distance between the human voice source and the electronic device according to the human voice loudness difference comprises:
and when the human sound loudness difference is smaller than or equal to a hands-free loudness difference threshold value, determining that the human sound source distance is larger than or equal to a hands-free distance.
3. The electronic device control method according to claim 2, characterized in that the method further comprises:
and when the distance of the human voice sound source is greater than or equal to the hands-free distance, the communication working state of the electronic equipment is adjusted to be a hands-free communication state.
4. The electronic device control method of claim 1, wherein determining the human voice source distance between the human voice source and the electronic device according to the human voice loudness difference comprises:
and when the human sound loudness difference is larger than or equal to a handheld loudness difference threshold value, determining that the human sound source distance is smaller than or equal to a handheld distance.
5. The electronic device control method according to claim 4, characterized in that the method further comprises:
and when the distance of the human voice sound source is smaller than or equal to the handheld distance, the communication working state of the electronic equipment is adjusted to be the handheld communication state.
6. The electronic device control method according to any one of claims 1 to 5, characterized in that the method further comprises:
controlling a sound production module in the electronic equipment to emit an ultrasonic signal, and acquiring the emission time of the sound production module for emitting the ultrasonic signal;
acquiring receiving time of the first sound receiving module or the second sound receiving module for receiving echo signals, wherein the echo signals are the ultrasonic signals reflected by a human sound source;
acquiring a time difference between the receiving time and the transmitting time;
acquiring the measurement distance between the electronic equipment and a human voice sound source according to the time difference;
the determining the human voice sound source distance between the human voice sound source and the electronic equipment according to the human voice loudness difference comprises:
determining a candidate distance according to the human sound loudness difference;
and when the distance difference between the measured distance and the candidate distance is smaller than or equal to a preset distance difference threshold value, determining the candidate distance as the human voice sound source distance.
7. An electronic device control apparatus, wherein the apparatus is located in an electronic device, comprising:
the working state information acquisition module is used for acquiring the working state information of the electronic equipment;
the electronic equipment comprises an electronic equipment, a first sound receiving module, a second sound receiving module and a human loudness acquiring module, wherein the electronic equipment is used for acquiring a first human loudness and a second human loudness when the electronic equipment is determined to be in a call according to the working state information of the electronic equipment, the first human loudness is acquired by the first sound receiving module positioned at one end of the electronic equipment, and the second human loudness is acquired by the second sound receiving module positioned at the other end of the electronic equipment;
the human sound loudness difference acquisition module is used for acquiring the human sound loudness difference between the first human sound loudness and the second human sound loudness;
and the human sound source distance determining module is used for determining the human sound source distance between the human sound source and the electronic equipment according to the human sound loudness difference.
8. The electronic device control apparatus according to claim 7, wherein the human voice sound source distance determination module includes:
and the first human sound source distance determining submodule is used for determining that the human sound source distance is greater than or equal to the hands-free distance when the human sound loudness difference is less than or equal to the hands-free loudness difference threshold value.
9. The electronic device control apparatus according to claim 8, characterized in that the apparatus further comprises:
and the first communication working state adjusting module is used for adjusting the communication working state of the electronic equipment to a hands-free communication state when the distance of the human voice sound source is greater than or equal to the hands-free distance.
10. The electronic device control apparatus according to claim 7, wherein the human voice sound source distance determination module includes:
and the second human sound source distance determining submodule is used for determining that the human sound source distance is smaller than or equal to the handheld distance when the human sound loudness difference is larger than or equal to the handheld loudness difference threshold value.
11. The electronic device control apparatus according to claim 10, characterized in that the apparatus further comprises:
and the second communication working state adjusting module is used for adjusting the communication working state of the electronic equipment to a handheld communication state when the distance of the human voice sound source is less than or equal to the handheld distance.
12. The electronic device control apparatus according to any one of claims 7 to 11, wherein the apparatus further comprises
The ultrasonic signal sending module is used for controlling a sound production module in the electronic equipment to emit an ultrasonic signal and acquiring the emission time of the sound production module for emitting the ultrasonic signal;
a receiving time acquiring module, configured to acquire receiving time for the first sound receiving module or the second sound receiving module to receive an echo signal, where the echo signal is the ultrasonic signal reflected by a human sound source;
a time difference acquisition module for acquiring a time difference between the receiving time and the transmitting time;
the measurement distance acquisition module is used for acquiring the measurement distance between the electronic equipment and the human voice sound source according to the time difference;
the human voice sound source distance determining module comprises:
the candidate distance determining submodule is used for determining a candidate distance according to the human sound loudness difference;
and the human voice sound source distance determining submodule is used for determining the candidate distance as the human voice sound source distance when the distance difference between the measured distance and the candidate distance is smaller than or equal to a preset distance difference threshold value.
13. An electronic device control apparatus, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the steps of the method of any one of claims 1-6.
14. A computer-readable storage medium having stored thereon computer instructions, which when executed by a processor, perform the steps of the method of any one of claims 1 to 6.
CN201910465645.5A 2019-05-30 2019-05-30 Electronic equipment control method and device Active CN112019677B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910465645.5A CN112019677B (en) 2019-05-30 2019-05-30 Electronic equipment control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910465645.5A CN112019677B (en) 2019-05-30 2019-05-30 Electronic equipment control method and device

Publications (2)

Publication Number Publication Date
CN112019677A true CN112019677A (en) 2020-12-01
CN112019677B CN112019677B (en) 2023-03-24

Family

ID=73501908

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910465645.5A Active CN112019677B (en) 2019-05-30 2019-05-30 Electronic equipment control method and device

Country Status (1)

Country Link
CN (1) CN112019677B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106453835A (en) * 2016-09-09 2017-02-22 深圳市金立通信设备有限公司 Method and terminal for switching answering modes
CN107371097A (en) * 2017-08-30 2017-11-21 京东方科技集团股份有限公司 The method that intellectuality provides a user voice prompt

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106453835A (en) * 2016-09-09 2017-02-22 深圳市金立通信设备有限公司 Method and terminal for switching answering modes
CN107371097A (en) * 2017-08-30 2017-11-21 京东方科技集团股份有限公司 The method that intellectuality provides a user voice prompt

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
蔡阳生: "声源定位及立体声的实现", 《音响技术》 *

Also Published As

Publication number Publication date
CN112019677B (en) 2023-03-24

Similar Documents

Publication Publication Date Title
CN106797416B (en) Screen control method and device
CN107493500B (en) Multimedia resource playing method and device
CN104902059A (en) Call reminding method and device
EP3125512A1 (en) Silent ring indication while listening music over a headset
US10027785B2 (en) Method for switching screen state of terminal, terminal thereof, and computer-readable medium thereof
EP3745747A1 (en) Method and apparatus for controlling electronic device
US10439660B2 (en) Method and device for adjusting frequencies of intercom apparatuses
US10009283B2 (en) Method and device for processing information
CN106406175B (en) Door opening reminding method and device
CN111007462A (en) Positioning method, positioning device, positioning equipment and electronic equipment
US20210307104A1 (en) Method and apparatus for controlling intelligent voice control device and storage medium
CN110392334B (en) Microphone array audio signal self-adaptive processing method, device and medium
CN111123716A (en) Remote control method, remote control apparatus, and computer-readable storage medium
CN109769191B (en) Audio output detection method and device and electronic equipment
CN108206884B (en) Terminal, adjusting method for communication signal transmitted by terminal and electronic equipment
CN109194808B (en) Volume adjusting method and device
CN111698593B (en) Active noise reduction method and device, and terminal
US20200106936A1 (en) Full screen terminal, operation control method, and device based on full screen terminal
CN107682101B (en) Noise detection method and device and electronic equipment
CN109788530B (en) Device and method for adjusting radiation power and electronic equipment
CN112019677B (en) Electronic equipment control method and device
CN110868495A (en) Message display method and device
CN111694539B (en) Method, device and medium for switching between earphone and loudspeaker
CN111246009B (en) Sliding cover type terminal, distance detection method and device and storage medium
CN112185353A (en) Audio signal processing method and device, terminal and storage medium

Legal Events

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