Ultrasonic processing method, electronic device, and computer-readable medium
AssigneeGuangdong Oppo Mobile Telecommunications Corp., Ltd.
InventorHai Yang
Life of this patent
Estimating the term…
Abstract
Disclosed are an ultrasonic processing method and apparatus, an electronic device, and a computer-readable medium, wherein same relate to the technical field of mobile terminals. The method includes: when it is monitored that an electronic device outputs a ringing sound, acquiring audio data of an ultrasonic signal received by an ultrasonic receiving apparatus, wherein the ultrasonic signal is a signal that is transmitted by an ultrasonic transmitting apparatus and returned after same is reflected by an object; determining, according to the audio data, a change in the distance between the electronic device and the object; and adjusting the volume of the ringing according to the change in the distance.
Claims19
An ultrasonic processing method performed by an electronic device, wherein the electronic device comprises an ultrasonic transmitting apparatus and an ultrasonic receiving apparatus, and the method comprises:
- in response to monitoring that the electronic device outputs ringing, acquiring audio data of an ultrasonic signal received by the ultrasonic receiving apparatus, wherein the ultrasonic signal is a signal that is transmitted by the ultrasonic transmitting apparatus and returns after being reflected by an object;
- determining a change of a distance between the electronic device and the object according to the audio data;
- and
- adjusting a volume of the ringing according to the change of the distance;
- wherein adjusting the volume of the ringing according to the change of the distance comprises:
- determining a distance-change value corresponding to the change of the distance;
- and
- adjusting the volume of the ringing according to the distance-change value, comprising:
- determining a target volume corresponding to the change value of the distance between the electronic device and the object according to a preset corresponding relationship between the distance-change value and the volume, and adjusting the volume of the ringing according to the target volume.
An electronic device, comprising:
- one or more processor;
- a memory;
- an ultrasonic transmitting apparatus and an ultrasonic receiving apparatus;
- and
- one or more application program;
- wherein the one or more application program is stored in the memory and configured to be executed by the one or more processor, and the one or more application program is configured to execute a method comprising:
- in response to monitoring that the electronic device outputs ringing, acquiring audio data of an ultrasonic signal received by the ultrasonic receiving apparatus, wherein the ultrasonic signal is a signal that is transmitted by the ultrasonic transmitting apparatus and returns after being reflected by an object;
- determining a change of a distance between the electronic device and the object according to the audio data;
- and
- adjusting a volume of the ringing according to the change of the distance;
- wherein adjusting the volume of the ringing according to the change of the distance comprises:
- determining a distance-change value corresponding to the change of the distance;
- and
- adjusting the volume of the ringing according to the distance-change value, comprising:
- determining a target volume corresponding to the change value of the distance between the electronic device and the object according to a preset corresponding relationship between the distance-change value and the volume, and adjusting the volume of the ringing according to the target volume.
A non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores program codes therein, wherein the program codes is capable of being called by a processor to execute a method comprising:
- in response to monitoring that an electronic device ultrasonic comprising an ultrasonic transmitting apparatus and an ultrasonic receiving apparatus outputs ringing, acquiring audio data of an ultrasonic signal received by the ultrasonic receiving apparatus, wherein the ultrasonic signal is a signal that is transmitted by the ultrasonic transmitting apparatus and returns after being reflected by an object;
- determining a change of a distance between the electronic device and the object according to the audio data;
- and
- adjusting a volume of the ringing according to the change of the distance;
- wherein adjusting the volume of the ringing according to the change of the distance comprises:
- determining a distance-change value corresponding to the change of the distance;
- and
- adjusting the volume of the ringing according to the distance-change value, comprising:
- determining a target volume corresponding to the change value of the distance between the electronic device and the object according to a preset corresponding relationship between the distance-change value and the volume, and adjusting the volume of the ringing according to the target volume.
Dependencies are inferred from the claim text.