Method for adjusting folding angle of electronic device and electronic device
By adjusting the folding angle of the folding screen phone according to the volume and distance of the earpiece and microphone, the problem of low call quality when talking is performed by users, and equipment adjustments that are more suitable for the user's face are achieved, improving call quality and user experience.
Patent Information
- Application Number
- CN201910943098.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-09-30
- Publication Date
- 2025-06-06
- Estimated Expiration
- 2039-09-30
AI Technical Summary
How to adjust the folding angle of the folding screen phone to ensure that users get higher call quality when talking and improve user experience.
By receiving the user's voice, and adjusting the folding angle of the electronic device to make it more suitable for the user's face according to the distance from the earpiece to the user's ear, the distance from the microphone to the user's mouth, the volume of the earpiece and the microphone, and the folding angle determined by the user.
It realizes that when users use folding screen mobile phones to make calls, improve call quality, reduce sound leakage, reduce power consumption, and improve user experience.
Smart Images

Figure CN112671953B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of artificial intelligence technology, and in particular to a method for adjusting the folding angle of an electronic device and the electronic device. Background Art
[0002] Traditional mobile phones are flat-surface designs, with the receiver and microphone on the same plane. Figure 1A When a user uses a mobile phone to make a call, the receiver is far from the ear or the microphone is far from the mouth, and the phone and the user's face are not in good contact. If the user sets the call volume of the mobile phone to a high level, sound leakage is likely to occur, affecting privacy; and a high volume consumes more power for the mobile phone. If the user sets the call volume of the mobile phone to a low level, the other party's voice may not be heard clearly or may be transmitted to the other party's low voice, affecting the call quality.
[0003] Currently, foldable screen mobile phones are becoming increasingly popular. Figure 1B , the foldable screen mobile phone can be folded inward (toward the display screen) or outward (toward the back of the display screen) along the axis, and the folding angle is α. When using the mobile phone to make a call, the user can fold the mobile phone at a certain angle to make the mobile phone fit the user's face better, such as Figure 1C shown.
[0004] How to adjust the folding angle α of the foldable screen mobile phone so that users can obtain higher call quality and improve user experience when using the foldable screen mobile phone to make calls is a problem that needs to be solved. Summary of the invention
[0005] The present application provides a method for adjusting the folding angle of an electronic device and an electronic device, which can adjust the electronic device to a suitable folding angle so that the electronic device fits the user's face more closely and ensures the call quality of the user using the electronic device.
[0006] In order to achieve the above-mentioned purpose, this application adopts the following technical solution.
[0007] The present application provides a method, a device and an electronic device for adjusting a folding angle of an electronic device.
[0008] In one possible design, the method may include: the electronic device receives the user's call voice; and adjusts the folding angle of the electronic device based on at least one of the distance from the earpiece of the electronic device to the user's ear, the distance from the microphone of the electronic device to the user's mouth, the volume of the earpiece, the volume of the microphone and the folding angle determined by the user.
[0009] In this method, when a user uses a foldable screen electronic device to make a call, the folding angle of the electronic device can be adjusted to a suitable angle according to the user's actual situation, so that the electronic device and the user's face fit better, ensuring the call quality of the user using the electronic device.
[0010] In a possible design, the electronic device determines one of a plurality of preset recommended folding angles as a first target folding angle according to the user's selection; and adjusts the folding angle of the electronic device to the first target folding angle. In this method, a plurality of recommended folding angles are preset on the electronic device, and the user can select one from them; then, the user manually adjusts the folding angle of the electronic device to the folding angle selected by the user; or, the electronic device automatically adjusts the folding angle to the folding angle selected by the user. The user can actively select a folding angle that is more suitable for him / her, thereby improving the user experience.
[0011] In one possible design, multiple recommended folding angles are determined based on folding angle data stored in the electronic device.
[0012] In a possible design, at least one of the multiple recommended folding angles is obtained through a machine learning algorithm based on the folding angles of the user during multiple calls.
[0013] In one possible design, if the electronic device determines that the distance from the earpiece to the user's ear is greater than a first threshold, the folding angle of the electronic device is adjusted until the distance from the earpiece to the user's ear is less than or equal to the first threshold. If the electronic device determines that the distance from the microphone to the user's mouth is greater than a second threshold, the folding angle of the electronic device is adjusted until the distance from the microphone to the user's mouth is less than or equal to the second threshold. In this way, by adjusting the folding angle of the electronic device, the electronic device and the user's face are more closely fitted, thereby improving the call quality of the user when using a folding screen mobile phone for a call.
[0014] In one possible design, if it is determined that the distance from the receiver to the user's ear is less than or equal to the first threshold, the electronic device lowers the volume of the receiver; if it is determined that the distance from the receiver to the user's ear is greater than or equal to the third threshold, the electronic device increases the volume of the receiver. If it is determined that the distance from the microphone to the user's mouth is less than or equal to the second threshold, the electronic device lowers the volume of the microphone; if it is determined that the distance from the microphone to the user's mouth is greater than or equal to the fourth threshold, the electronic device increases the volume of the microphone. In this way, on the one hand, the call quality of the user using a folding screen mobile phone can be improved; on the other hand, the power consumption of the mobile phone can be reduced.
[0015] In one possible design, if the electronic device determines that the volume of the receiver is less than a first value, the folding angle of the electronic device is adjusted until the distance from the receiver to the user's ear is less than or equal to a first threshold; if the electronic device determines that the volume of the microphone is less than a second value, the folding angle of the electronic device is adjusted until the distance from the microphone to the user's mouth is less than or equal to a second threshold. In this way, the folding angle of the electronic device can be adjusted to a suitable angle according to the actual volume of the user during a call, thereby improving the call quality of the user using a folding screen mobile phone during a call.
[0016] Accordingly, the present application also provides a device for adjusting the folding angle of an electronic device, which can implement the method for adjusting the folding angle of an electronic device described in the first aspect. The device can implement the above method through software, hardware, or through hardware executing corresponding software.
[0017] In a possible design, the device may include: a receiving module, a detection module and an angle adjustment module. The receiving module is used to receive the user's call voice and the folding angle determined by the user; the detection module is used to detect the distance from the earpiece to the user's ear, the distance from the microphone to the user's mouth, the volume of the earpiece, and the volume of the microphone; the angle adjustment module is used to adjust the folding angle of the electronic device according to at least one of the distance from the earpiece to the user's ear, the distance from the microphone to the user's mouth, the volume of the earpiece, the volume of the microphone and the folding angle determined by the user.
[0018] In a possible design, the angle adjustment module is specifically used to determine one of a plurality of preset recommended folding angles as a first target folding angle according to a user's selection; and adjust the folding angle of the electronic device to the first target folding angle. The plurality of recommended folding angles are determined according to folding angle data stored in the electronic device; or at least one of the plurality of recommended folding angles is obtained through a machine learning algorithm based on the folding angles of the user during multiple calls.
[0019] In one possible design, the detection module is further used to determine whether the distance from the earpiece to the user's ear is greater than a first threshold; the angle adjustment module is specifically used to, if the detection module determines that the distance from the earpiece to the user's ear is greater than the first threshold, adjust the folding angle of the electronic device until the distance from the earpiece to the user's ear is less than or equal to the first threshold. The detection module is also used to determine whether the distance from the microphone to the user's mouth is greater than a second threshold; if the detection module determines that the distance from the microphone to the user's mouth is greater than the second threshold, adjust the folding angle of the electronic device until the distance from the microphone to the user's mouth is less than or equal to the second threshold.
[0020] In one possible design, the device further includes a volume adjustment module. The volume adjustment module is used to reduce the volume of the earpiece if the detection module determines that the distance from the earpiece to the user's ear is less than or equal to the first threshold; to increase the volume of the earpiece if the detection module determines that the distance from the earpiece to the user's ear is greater than or equal to the third threshold; to reduce the volume of the microphone if the detection module determines that the distance from the microphone to the user's mouth is less than or equal to the second threshold; and to increase the volume of the microphone if the detection module determines that the distance from the microphone to the user's mouth is greater than or equal to the fourth threshold.
[0021] In one possible design, the detection module is further used to determine whether the volume of the earpiece is less than a first value; and is also used to determine whether the volume of the microphone is less than a second value; the angle adjustment module is specifically used to adjust the folding angle of the electronic device until the distance from the earpiece to the user's ear is less than or equal to a first threshold if the detection module determines that the volume of the earpiece is less than the first value; if the detection module determines that the volume of the microphone is less than the second value, adjust the folding angle of the electronic device until the distance from the microphone to the user's mouth is less than or equal to a second threshold.
[0022] Accordingly, the present application also provides an electronic device, which may include an earpiece, a microphone, a processor and a memory. The memory is used to couple with the processor and store necessary program instructions and data for the electronic device.
[0023] In one possible design, the microphone is used to receive the user's call voice; the processor is used to adjust the folding angle of the electronic device based on at least one of the distance from the earpiece to the user's ear, the distance from the microphone to the user's mouth, the volume of the earpiece, the volume of the microphone and the folding angle determined by the user.
[0024] In one possible design, the processor is specifically used to, based on a user's selection, determine one of a plurality of preset recommended folding angles as a first target folding angle; and adjust the folding angle of the electronic device to the first target folding angle.
[0025] In one possible design, the processor is specifically used to, if it is determined that the distance from the earpiece to the user's ear is greater than a first threshold, adjust the folding angle of the electronic device so that the distance from the earpiece to the user's ear is less than or equal to the first threshold.
[0026] In one possible design, the processor is specifically used to, if it is determined that the distance from the microphone to the user's mouth is greater than a second threshold, adjust the folding angle of the electronic device so that the distance from the microphone to the user's mouth is less than or equal to the second threshold.
[0027] In one possible design, the processor is further used to, if it is determined that the distance from the earpiece to the user's ear is less than or equal to a first threshold, reduce the volume of the earpiece; if it is determined that the distance from the earpiece to the user's ear is greater than or equal to a third threshold, increase the volume of the earpiece.
[0028] In one possible design, the processor is also used to, if it is determined that the distance from the microphone to the user's mouth is less than or equal to a second threshold, lower the volume of the microphone; if it is determined that the distance from the microphone to the user's mouth is greater than or equal to a fourth threshold, increase the volume of the microphone.
[0029] In one possible design, the processor is specifically used to, if it is determined that the volume of the earpiece is less than a first value, adjust the folding angle of the electronic device so that the distance from the earpiece to the user's ear is less than or equal to a first threshold; if it is determined that the volume of the microphone is less than a second value, adjust the folding angle of the electronic device so that the distance from the microphone to the user's mouth is less than or equal to a second threshold.
[0030] The present application also provides a computer storage medium, in which instructions are stored. When the computer storage medium is run on an electronic device, the electronic device executes the above method.
[0031] The present application also provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the above method.
[0032] Any of the above-mentioned devices, electronic devices, computer storage media, or computer program products are used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects of the corresponding schemes in the corresponding methods provided above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1A A schematic diagram of a user call scenario;
[0034] Figure 1B This is a schematic diagram of the structure of a folding screen mobile phone;
[0035] Figure 1C A schematic diagram of a scenario in which a user uses a foldable screen mobile phone to make a call;
[0036] Figure 2A A schematic diagram of the hardware structure of an electronic device applicable to a method for adjusting a folding angle of an electronic device provided in an embodiment of the present application;
[0037] Figure 2B A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;
[0038] Figure 3 A flowchart of a method for adjusting the folding angle of an electronic device provided in an embodiment of the present application is shown in FIG1;
[0039] Figure 4A Schematic diagram 1 of an example display interface of an electronic device provided in an embodiment of the present application;
[0040] Figure 4B A second schematic diagram of an example display interface of an electronic device provided in an embodiment of the present application;
[0041] Figure 5 A second flow chart of a method for adjusting the folding angle of an electronic device provided in an embodiment of the present application;
[0042] Figure 6 A schematic diagram of the structural composition of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0043] The method for adjusting the folding angle of an electronic device provided in the embodiment of the present application can be applied to an electronic device with a folding screen and a calling function. The electronic device can be a mobile phone, a tablet computer, a laptop computer, an ultra-mobile personal computer (UMPC), a handheld computer, a netbook, a personal digital assistant (PDA), a wearable device, a virtual reality device, etc. The embodiment of the present application does not impose any restrictions on this.
[0044] Taking the mobile phone 100 as an example of the electronic device, Figure 2A A schematic structural diagram of the mobile phone 100 is shown.
[0045] The mobile phone 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, a micro motor 191A, an indicator 192, a camera 193, a flexible screen 194 (in the embodiment of the present application, the flexible screen is also called a folding screen), and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, a structured light sensor 180N, etc.
[0046] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the mobile phone 100. In other embodiments of the present application, the mobile phone 100 may include more or fewer components than shown in the figure, or combine some components, or separate some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0047] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0048] The controller may be the nerve center and command center of the mobile phone 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
[0049] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0050] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0051] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple groups of I2C buses. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces. For example, the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 communicates with the touch sensor 180K through the I2C bus interface to realize the touch function of the mobile phone 100.
[0052] The I2S interface can be used for audio communication. In some embodiments, the processor 110 can include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to achieve communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 via the I2S interface to achieve the function of answering a call through a Bluetooth headset.
[0053] The PCM interface can also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface to realize the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
[0054] The UART interface is a universal serial data bus for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is generally used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 through the UART interface to implement the function of playing music through a Bluetooth headset.
[0055] The MIPI interface can be used to connect the processor 110 with peripheral devices such as the flexible screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to realize the shooting function of the mobile phone 100. The processor 110 and the flexible screen 194 communicate via the DSI interface to realize the display function of the mobile phone 100.
[0056] The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with the camera 193, the flexible screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.
[0057] The USB interface 130 is an interface that complies with the USB standard specification, and can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the mobile phone 100, and can also be used to transfer data between the mobile phone 100 and peripheral devices. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other electronic devices, such as AR devices, etc.
[0058] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the mobile phone 100. In other embodiments of the present application, the mobile phone 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0059] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the mobile phone 100. While the charging management module 140 is charging the battery 142, it may also power the electronic device through the power management module 141.
[0060] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the flexible screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.
[0061] The wireless communication function of the mobile phone 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0062] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in mobile phone 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0063] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the mobile phone 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0064] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a flexible screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
[0065] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the mobile phone 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0066] In some embodiments, the antenna 1 of the mobile phone 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the mobile phone 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).
[0067] The mobile phone 100 realizes the display function through a GPU, a flexible screen 194, and an application processor. The GPU is a microprocessor for image processing, connecting the flexible screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs, which execute program instructions to generate or change display information. In an embodiment of the present application, the flexible screen 194 may include a display and a touch panel (TP). The display is used to output display content to the user, and the touch panel is used to receive touch events input by the user on the flexible screen 194.
[0068] The mobile phone 100 can realize the shooting function through ISP, camera 193, video codec, GPU, flexible screen 194 and application processor.
[0069] ISP is used to process the data fed back by camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to ISP for processing and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, ISP can be set in camera 193.
[0070] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the mobile phone 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
[0071] In the embodiment of the present application, the camera 193 can be used to capture the image of the user's ear during a call, and determine the distance between the user's ear and the camera 193 based on the image information of the ear. For example, the camera 193 can capture and save the image of the user's ear when the ear is close to the camera 193; and compare the image of the ear captured during the call with the image of the ear when the ear is close to the camera 193; and determine the distance between the user's ear and the camera 193 during the call based on the ratio of the image of the ear captured during the call to the image of the ear when the ear is close to the camera 193.
[0072] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the mobile phone 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
[0073] Video codecs are used to compress or decompress digital videos. Mobile phone 100 may support one or more video codecs. Thus, mobile phone 100 may play or record videos in various coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
[0074] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. Through NPU, the intelligent cognition of the mobile phone 100 can be realized, such as: image recognition, face recognition, voice recognition, text understanding, etc.
[0075] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the mobile phone 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.
[0076] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the mobile phone 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area can store data created during the use of the mobile phone 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
[0077] The mobile phone 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor.
[0078] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.
[0079] The speaker 170A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The mobile phone 100 can listen to music or listen to a hands-free call through the speaker 170A.
[0080] The receiver 170B, also called a "handset", is used to convert audio electrical signals into sound signals. When the mobile phone 100 receives a call or voice message, the voice can be received by placing the receiver 170B close to the human ear.
[0081] Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to the microphone 170C to input the sound signal into the microphone 170C. The mobile phone 100 can be provided with at least one microphone 170C. In other embodiments, the mobile phone 100 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the mobile phone 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify the sound source, realize directional recording function, etc.
[0082] The earphone interface 170D is used to connect a wired earphone and can be a USB interface 130 or a 3.5 mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.
[0083] The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be set on the flexible screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. The capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The mobile phone 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the flexible screen 194, the mobile phone 100 detects the touch operation intensity according to the pressure sensor 180A. The mobile phone 100 can also calculate the touch position according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
[0084] The gyroscope sensor 180B can be used to determine the motion posture of the mobile phone 100. In some embodiments, the angular velocity of the mobile phone 100 around three axes (i.e., x, y, and z axes) can be determined by the gyroscope sensor 180B. The gyroscope sensor 180B can be used for anti-shake shooting. Exemplarily, when the shutter is pressed, the gyroscope sensor 180B detects the angle of the shaking of the mobile phone 100, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the mobile phone 100 through reverse movement to achieve anti-shake. The gyroscope sensor 180B can also be used for navigation and somatosensory game scenes.
[0085] The air pressure sensor 180C is used to measure air pressure. In some embodiments, the mobile phone 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
[0086] The magnetic sensor 180D includes a Hall sensor, a magnetometer, etc. The Hall sensor can detect the direction of the magnetic field; the magnetometer is used to measure the magnitude and direction of the magnetic field. The magnetometer can measure the strength of the ambient magnetic field. For example, the magnetometer can be used to measure the magnetic field strength and then obtain the azimuth information of the carrier of the magnetometer.
[0087] The acceleration sensor 180E can detect the magnitude of the acceleration of the mobile phone 100 in various directions (generally three axes). When the mobile phone 100 is stationary, the magnitude and direction of gravity can be detected. In some embodiments, the mobile phone 100 can determine the posture (i.e., the tilt angle) of the mobile phone 100 by the magnitude and direction of gravity. For example, after the mobile phone 100 with a folding screen is folded to a certain angle along the rotating axis, the mobile phone 100 is divided into two parts. The two parts of the mobile phone 100 are respectively installed with acceleration sensors 180E. The mobile phone 100 determines the tilt angles of the two parts according to the magnitude and direction of gravity detected by the acceleration sensors 180E of the two parts, thereby determining the folding angle α of the mobile phone 100.
[0088] The distance sensor 180F is used to measure the distance. The mobile phone 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the mobile phone 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.
[0089] In the embodiment of the present application, the distance sensor 180F can be used to measure the distance between the user's ear and the distance sensor 180F, or the distance between the user's mouth and the distance sensor 180F during a call.
[0090] The proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The mobile phone 100 emits infrared light outward through the light emitting diode. The mobile phone 100 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the mobile phone 100. When insufficient reflected light is detected, the mobile phone 100 can determine that there is no object near the mobile phone 100. The mobile phone 100 can use the proximity light sensor 180G to detect that the user holds the mobile phone 100 close to the ear to talk, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in the leather case mode and the pocket mode to automatically unlock and lock the screen.
[0091] The ambient light sensor 180L is used to sense the ambient light brightness. The mobile phone 100 can adaptively adjust the brightness of the flexible screen 194 according to the perceived ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the mobile phone 100 is in a pocket to prevent accidental touches.
[0092] The mobile phone 100 can also determine whether there are objects blocking the phone 100 and the distance between the blocking object and the mobile phone 100 based on the perceived ambient light brightness. For example, the mobile phone 100 can preset the correspondence between the perceived ambient light brightness and the distance between the blocking object and the mobile phone 100; and determine the distance between the blocking object and the mobile phone 100 based on the perceived ambient light brightness. In the embodiment of the present application, the ambient light sensor 180L can be used to measure the distance between the user's ear and the ambient light sensor 180L, or the distance between the user's mouth and the ambient light sensor 180L during a call.
[0093] The fingerprint sensor 180H is used to collect fingerprints. The mobile phone 100 can use the collected fingerprint characteristics to achieve fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.
[0094] The temperature sensor 180J is used to detect temperature. In some embodiments, the mobile phone 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the mobile phone 100 reduces the performance of the processor located near the temperature sensor 180J to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the mobile phone 100 heats the battery 142 to avoid abnormal shutdown of the mobile phone 100 due to low temperature. In other embodiments, when the temperature is lower than another threshold, the mobile phone 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown due to low temperature.
[0095] The touch sensor 180K is also called a "touch panel". The touch sensor 180K can be arranged on the flexible screen 194, and the touch sensor 180K and the flexible screen 194 form a touch screen, also called a "touch screen". The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the flexible screen 194. In other embodiments, the touch sensor 180K can also be arranged on the surface of the mobile phone 100, which is different from the position of the flexible screen 194.
[0096] The bone conduction sensor 180M can obtain a vibration signal. In some embodiments, the bone conduction sensor 180M can obtain a vibration signal of a vibrating bone block of the vocal part of the human body. The bone conduction sensor 180M can also contact the human pulse to receive a blood pressure beat signal. In some embodiments, the bone conduction sensor 180M can also be set in an earphone and combined into a bone conduction earphone. The audio module 170 can parse out a voice signal based on the vibration signal of the vibrating bone block of the vocal part obtained by the bone conduction sensor 180M to realize a voice function. The application processor can parse the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M to realize a heart rate detection function.
[0097] The structured light sensor 180N can calculate the position and depth of the object according to the change of the light signal caused by the object, and then restore the entire three-dimensional space. In some embodiments, the mobile phone 100 can use the structured light sensor 180N to measure the distance between the object and the mobile phone 100. In the embodiment of the present application, the structured light sensor 180N can be used to measure the distance between the user's ear and the structured light sensor 180N, or the distance between the user's mouth and the structured light sensor 180N during a call.
[0098] The key 190 includes a power key, a volume key, etc. The key 190 can be a mechanical key or a touch key. The mobile phone 100 can receive key input and generate key signal input related to the user settings and function control of the mobile phone 100.
[0099] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the flexible screen 194, motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
[0100] The micro motor 191A can be used to generate power. In the embodiment of the present application, the micro motor 191A can be used to adjust the folding angle α of the mobile phone 100. For example, the micro motor 191A can be installed on the rotating shaft of the mobile phone 100 and drive the rotating shaft to rotate, thereby adjusting the folding angle α of the mobile phone 100.
[0101] Indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, messages, missed calls, notifications, etc.
[0102] The SIM card interface 195 is used to connect the SIM card. The SIM card can be connected to and separated from the mobile phone 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195. The mobile phone 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The mobile phone 100 interacts with the network through the SIM card to realize functions such as calls and data communications. In some embodiments, the mobile phone 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the mobile phone 100 and cannot be separated from the mobile phone 100.
[0103] When a user uses a mobile phone to make a call, he hopes to obtain a higher call quality. In the embodiment of the present application, the call quality is recorded as Q, and the larger the value of Q, the higher the call quality.
[0104] In the embodiment of the present application, the call quality is related to the volume of the voice received by the user's ear and the volume of the voice emitted by the user's mouth during the call. For example, the volume of the voice received by the user's ear and the volume of the voice emitted by the user's mouth can be weighted and summed to obtain the call volume q, which is used to measure the call quality. When the value of q meets the set conditions, it is considered to be the highest call quality, and the corresponding Q value is the largest. For example, when the value of q meets q 1 <=q<=q 2 , the user experience is the best, and the corresponding Q value is the largest. 1 and q 2 is the default value. 1 , the volume of the voice received by the user's ear may be too low, causing the user to not be able to hear the call clearly; or the volume of the voice emitted by the user's mouth may be too low, causing the other party to not be able to hear the call clearly. The closer the value of q is to q 1 , the corresponding Q value is larger. When q>q 2 , the volume of the voice received by the user's ear may be too loud, which may cause sound leakage, affecting the privacy of the user's call and causing greater power consumption for the mobile phone. The closer the value of q is to q 2 , the larger the corresponding Q value.
[0105] The correspondence between the Q value and the q value can be preset. For example, when 50db<=q<=60db, the corresponding Q value is 10; when q<50db, the larger the q value is, the larger the corresponding Q value is, and the Q value is less than 10; when q>60db, the smaller the q value is, the larger the corresponding Q value is, and the Q value is less than 10.
[0106] The call volume q (call quality Q) is affected by many factors. For example, the factors affecting the call volume q may include: the folding angle α of the folding screen mobile phone, the earpiece volume V e , the phone's microphone volume V m , the distance from the mobile phone receiver to the user's ear is L e , the distance from the mobile phone microphone to the user's mouth L m When V e When L e The smaller it is, the larger q is; when V m When L m The smaller it is, the larger q is. The value of α will affect L e and L m And, the earpiece volume V e and microphone volume V m It can also be adjusted according to user operations or automatically adjusted by the mobile phone.
[0107] How to adjust the folding angle α of the foldable screen mobile phone so that the user can obtain higher call quality when using the foldable screen mobile phone to make a call is a problem that needs to be solved in the foldable screen mobile phone call scenario.
[0108] The embodiment of the present application provides a method for adjusting the folding angle of an electronic device, which can recommend a suitable folding angle α to a user, so that the user can obtain higher call quality when using an electronic device with a folding screen to make a call, thereby improving the user experience.
[0109] Please continue to refer to Figure 2B , which shows a schematic diagram of a hardware structure of the mobile phone 100. The mobile phone 100 has a foldable flexible screen (folding screen), which can be folded along a rotation axis, and the folding angle is α, where 0°<=α<=180°.
[0110] The upper frame of the mobile phone 100 is provided with a receiver 201 (for example, it can be Figure 2A The lower frame of the mobile phone 100 is provided with a microphone 202 (for example, it can be Figure 2ADuring a call, the user can listen to the call through the receiver 201 and can output the call to the other party through the microphone 202.
[0111] The upper frame of the mobile phone 100 may also be provided with one or more of a distance sensor 203A, an ambient light sensor 204A, a structured light sensor 205A, and a camera 206. The lower frame of the mobile phone 100 may also be provided with one or more of a distance sensor 203B, an ambient light sensor 204B, and a structured light sensor 205B. The distance sensor 203A and the distance sensor 203B may be Figure 2A The distance sensor 180F in the embodiment; the ambient light sensor 204A and the ambient light sensor 204B may be Figure 2A The ambient light sensor 180L in the embodiment; the structured light sensor 205A and the structured light sensor 205B may be Figure 2A The structured light sensor 180N in the embodiment; the camera 206 may be Figure 2A Camera 193 in.
[0112] In the embodiment of the present application, the distance L between the receiver 201 of the mobile phone 100 and the user's ear can be detected by the distance sensor 203A, the ambient light sensor 204A, the structured light sensor 205A or the camera 206. e The distance L between the microphone 202 of the mobile phone 100 and the user's mouth can be detected by the distance sensor 203B, the ambient light sensor 204B or the structured light sensor 205B. m For example, during a call, the distance between the user's ear and the distance sensor 203A measured by the distance sensor 203A can be determined as the distance L from the receiver 201 of the mobile phone 100 to the user's ear. e The distance between the user's mouth and the distance sensor 203B measured by the distance sensor 203B can be determined as the distance L from the microphone 202 of the mobile phone 100 to the user's mouth. m .
[0113] The distance L between the receiver 201 of the mobile phone 100 and the user's ear is detected. e The device used is used to detect the distance L between the microphone 202 of the mobile phone 100 and the user's mouth. m The devices used may be the same device; for example, a distance sensor 203A is used to detect the distance L between the receiver 201 of the mobile phone 100 and the user's ear. e , using distance sensor 203B to detect the distance L between the microphone 202 of the mobile phone 100 and the user's mouth m Detect the distance L between the receiver 201 of the mobile phone 100 and the user's ear e The device used is used to detect the distance L between the microphone 202 of the mobile phone 100 and the user's mouth.m The devices used may also be different types of devices; for example, a distance sensor 203A is used to detect the distance L between the receiver 201 of the mobile phone 100 and the user's ear. e , using ambient light sensor 204B to detect the distance L between the microphone 202 of the mobile phone 100 and the user's mouth m For example, the camera 206 is used to detect the distance L between the receiver 201 of the mobile phone 100 and the user's ear e , using a structured light sensor 180N to detect the distance L between the microphone 202 of the mobile phone 100 and the user's mouth m .
[0114] It should be noted that the above detection of the distance L between the receiver 201 of the mobile phone 100 and the user's ear e Components used, and the positions of the components on the mobile phone 100; detecting the distance L between the microphone 202 of the mobile phone 100 and the user's mouth m The devices used and the positions of the devices on the mobile phone 100 are only for illustrative purposes. In actual use, other types of devices may also be used to detect L e or L m The position of the device on the mobile phone 100 can also be adjusted as needed. For example, a camera can be set at the bottom frame of the mobile phone 100 to detect the distance L between the microphone 202 and the user's mouth. m The embodiments of the present application do not limit this.
[0115] A micro motor 207 may also be provided on the rotating shaft of the mobile phone 100 to drive the rotating shaft to rotate, thereby adjusting the folding angle α of the mobile phone 100. For example, the micro motor 207 may be Figure 2A The micro motor 191A in.
[0116] The following is a detailed description of the method for adjusting the folding angle of an electronic device provided in an embodiment of the present application in conjunction with the accompanying drawings. The embodiment of the present application is described by taking a folding screen mobile phone as an example of an electronic device with a folding screen.
[0117] Please refer to Figure 3 , the user uses the foldable screen mobile phone to make a call. The foldable screen mobile phone receives the user's call voice. After the foldable screen mobile phone receives the user's call voice, the folding angle of the foldable screen mobile phone can be adjusted to make the foldable screen mobile phone and the user's face fit better, thereby improving the user's call quality. In one implementation, the foldable screen mobile phone can adjust the folding angle of the foldable screen mobile phone based on at least one of the distance from the earpiece to the user's ear, the distance from the microphone to the user's mouth, the volume of the earpiece, the volume of the microphone, and the folding angle determined by the user.
[0118] In some embodiments, the mobile phone can adjust the folding angle of the foldable screen mobile phone according to the user's choice, thereby improving the call quality Q when the user uses the foldable screen mobile phone.
[0119] For example, the mobile phone has multiple preset recommended folding angles. For example, the mobile phone has 5 preset recommended folding angles α 1 , α 2 , α 3 , α 4 and α 5 . In one example, the preset recommended folding angle may be obtained based on big data of folding angles of multiple users when they are talking on different mobile phones. For example, the preset recommended folding angle may be the top 5 folding angles that appear most frequently in the big data. In one example, the preset recommended folding angle may be obtained based on the data of folding angles saved on the mobile phone. For example, the preset recommended folding angle may be the top 5 folding angles that appear most frequently in the data saved on the mobile phone. In one implementation, during the process of the user using the mobile phone, the preferred folding angle may be obtained through a machine learning algorithm based on the folding angle of the user during each call; and the preset recommended folding angle may be updated. Among them, the specific method for obtaining the preferred folding angle through a machine learning algorithm will be described in detail in the following embodiments and will not be repeated here.
[0120] Before or during a call, the user can select α 1 , α 2 , α 3 , α 4 and α 5 As a first target folding angle, the mobile phone is folded to the first target folding angle as the folding angle for this call.
[0121] For example, Figure 4A , the mobile phone can display a "folding angle recommendation" interface 401, and the "folding angle recommendation" interface 401 may include a "select angle" prompt message 402, which is used to prompt the user to select one from multiple recommended folding angles. For example, the "select angle" prompt message 402 is "You can choose one of the following 5 recommended angles to make a call." The "folding angle recommendation" interface 401 also includes a "recommended angle" option 403, and the "recommended angle" option 403 includes 5 angle options. The user can select one from the 5 angle options. For example, the mobile phone can receive a user's click operation on one of the 5 angle options, and in response to the user's click operation on one of the 5 angle options, determine that the user has selected the angle. The "folding angle recommendation" interface 401 can also include a "current angle" prompt message 404, which is used to prompt the user of the current folding angle of the mobile phone.
[0122] After the user selects a recommended angle in the "folding angle recommendation" interface 401, the mobile phone determines that the recommended angle selected by the user is the first target folding angle. Afterwards, the folding angle of the mobile phone can be adjusted to the first target folding angle.
[0123] In one implementation, the user can manually adjust the folding angle of the mobile phone. In one example, when the user manually adjusts the folding angle of the mobile phone to the first target folding angle, the mobile phone can display a prompt message, or emit a prompt sound, or generate vibration, etc., to remind the user that the current folding angle of the mobile phone is the first target folding angle. For example, the recommended angle selected by the user in the "folding angle recommendation" interface 401 is 160°. After that, the user manually adjusts the folding angle of the mobile phone. The current folding angle of the mobile phone is 180°, and the user folds the mobile phone inward. When the mobile phone is folded to 160°, the mobile phone vibrates to remind the user that the current folding angle of the mobile phone is 160°. The user stops folding the mobile phone inward. In this way, the user adjusts the folding angle of the mobile phone to a selected recommended angle through manual adjustment.
[0124] In another implementation, the mobile phone automatically adjusts the folding angle to the recommended angle selected by the user (the first target folding angle). For example, after the user selects a recommended angle in the "folding angle recommendation" interface 401, the mobile phone determines that the user has selected the recommended angle. In response to the user selecting a recommended angle, the mobile phone activates a micro motor (for example, the micro motor is Figure 2B The micro motor 207 in the mobile phone folding device drives the rotating shaft to rotate, thereby adjusting the folding angle of the mobile phone to the recommended angle selected by the user.
[0125] In one example, the user can select each recommended folding angle for trial use, and determine one of the recommended folding angles as the folding angle for calls based on the user experience. 2 (155°) as the folding angle for this call; if the phone does not fit the user's face well, the folding angle of the phone can be reduced to α 1 (145°); or increase the folding angle of the phone and adjust the folding angle to α 3 (160°); until the phone and the user's face fit well.
[0126] Optionally, the mobile phone may not have a preset recommended folding angle, and the user may manually adjust the folding angle of the folding screen mobile phone to the best position for the user experience to make a call. In other words, the mobile phone may receive the user's adjustment operation on the folding angle of the mobile phone, and according to the user's adjustment operation on the folding angle of the mobile phone, the folding angle is set to the angle set by the user.
[0127] In some embodiments, when a user is using a foldable screen mobile phone to make a call, the mobile phone can automatically adjust the folding angle of the mobile phone to improve the call quality Q of the user using the foldable screen mobile phone.
[0128] For example, when a user is using a foldable screen mobile phone to make a call, the mobile phone detects the distance L from the receiver to the user's ear. e , and detect the distance L from the microphone to the user's mouth m .
[0129] In one implementation, if it is determined that L e >L 1 , then start the micro motor (for example, the micro motor is Figure 2B The micro motor 207 in the mobile phone drives the rotating shaft to rotate and fold the mobile phone inward or outward. e <=L 1 When the phone is turned on, the micro motor stops working.
[0130] In one implementation, if it is determined that L m >L 2 , then start the micro motor (for example, the micro motor is Figure 2B The micro motor 207 in the mobile phone drives the rotating shaft to rotate and fold the mobile phone inward or outward. m <=L 2 When the phone is turned on, the micro motor stops working.
[0131] Among them, L 1 and L 2 It can be a preset value. For example, L 1 0.5cm, L 2 The folding angle of the mobile phone is adjusted automatically, so that the receiver of the mobile phone is closer to the user's ear, the microphone of the mobile phone is closer to the user's mouth, and the mobile phone fits the user's face more closely. This can avoid sound leakage during the call and affect privacy, and ensure the call quality of the user using the mobile phone.
[0132] In one implementation, L 1 and L 2 The value of is related to the hardware configuration of the phone. For example, the higher the noise reduction capability of the phone's microphone, the higher the corresponding L 2 For example, the higher the ability of the mobile phone to recognize human voice and ambient sound, the higher the corresponding L 2 The larger the value of .
[0133] In one implementation, when a user is using a foldable screen mobile phone to make a call, if the mobile phone determines that the function of automatically adjusting the folding angle of the mobile phone is turned on, the folding angle of the mobile phone can be automatically adjusted; if the mobile phone determines that the function of automatically adjusting the folding angle of the mobile phone is turned off, the automatic adjustment of the folding angle of the mobile phone is not started. The mobile phone can turn on or off the function of automatically adjusting the folding angle of the mobile phone according to the user's settings.
[0134] For example, Figure 4B , the mobile phone can receive a user's click operation (such as a single click operation) on the "settings" application icon. In response to the user's click operation on the "settings" application icon, the mobile phone can "set" interface 405. The "settings" interface 405 may include an "airplane mode" option, a "WLAN" option, a "Bluetooth" option, a "mobile network" option, and an "intelligent assistance" option 406, etc. Among them, the specific functions of the "airplane mode" option, the "WLAN" option, the "Bluetooth" option, and the "mobile network" option can refer to the specific description in the conventional technology, and the embodiment of the present application is not repeated here. The mobile phone can receive a user's click operation (such as a single click operation) on the "intelligent assistance" option 406. In response to the user's click operation on the "intelligent assistance" option 406, the mobile phone can display the "intelligent assistance" interface 407. The "intelligent assistance" interface 407 includes an "intelligent adjustment of call angle" option 408, etc. Among them, the "intelligent adjustment of call angle" option 408 is used to control the function of triggering the mobile phone to open or close the mobile phone to automatically adjust the folding angle of the mobile phone. The user can turn on or off the function of the mobile phone automatically adjusting the folding angle of the mobile phone by clicking the “intelligently adjust call angle” option 408 .
[0135] In some embodiments, if the phone determines that L e <=L 1 , or L m <=L 2 , indicating that the phone fits the user's face well, and the phone determines that its folding angle is a better angle. For example, if the phone determines that L e <=L 1 , the earpiece volume can be automatically reduced V e ; If the phone determines L m <=L 2 , the microphone volume V can be automatically reduced m ; Improve the call quality Q when users use foldable screen mobile phones, and reduce the power consumption of mobile phones.
[0136] In one implementation, the mobile phone can e or L m Set the earpiece volume V e Or microphone volume V mReduce the corresponding ratio. For example, the preset earpiece volume in the mobile phone is V e '; If the phone determines L 1a <L e <=L 1 , then the earpiece volume V e Adjust to V e '90%; if the phone determines L 1b <L e <=L 1a , then the earpiece volume V e Adjust to V e '80%; if the phone determines L 1c <L e <=L 1b , then the earpiece volume V e Adjust to V e '60%. Among them, L 1a , L 1b and L 1c is the default value; for example, L 1a 0.4cm, L 1b 0.3cm, L 1c is 0.2cm.
[0137] Optional, mobile phone confirms L e >=L 3 , you can automatically increase the earpiece volume V e ; Mobile phone confirms L m >=L 4 , the microphone volume V can be automatically increased m ; Improve the call quality Q when users use foldable screen mobile phones. Among them, L 3 and L 4 It can be a preset value. For example, L 3 2cm, L 4 is 3cm.
[0138] In some embodiments, the mobile phone detects that the call application of the mobile phone is running and receives the user's operation of the volume button of the mobile phone, and can increase or decrease the earpiece volume V according to the user's operation of the volume button of the mobile phone. e and microphone volume V m .
[0139] In some embodiments, if the mobile phone determines that the earpiece volume V e <V 1 , or microphone volume V m <V 2 , you can adjust the folding angle of the phone to reduce L e or L m; Improve the call quality Q when users use foldable screen mobile phones.
[0140] For example, when a user is using a foldable screen mobile phone to make a call, the mobile phone detects the receiver volume V e , and detect the microphone volume V m .
[0141] If V e <V 1 , then start the micro motor (for example, the micro motor is Figure 2B The micro motor 207 in the mobile phone body drives the rotating shaft to rotate and fold the mobile phone inward. e <=L 1 When the phone is turned on, the micro motor stops working.
[0142] If V m <V 2 , then start the micro motor (for example, the micro motor is Figure 2B The micro motor 207 in the mobile phone body drives the rotating shaft to rotate and fold the mobile phone inward. m <=L 2 When the phone is turned on, the micro motor stops working.
[0143] Among them, V 1 、V 2 , L 1 and L 2 It can be a preset value. In this way, when the earpiece volume or the microphone volume is low, the folding angle of the mobile phone is automatically adjusted to make the earpiece of the mobile phone closer to the user's ear, the microphone of the mobile phone closer to the user's mouth, and the mobile phone and the user's face fit better; the volume of the call voice heard by the user can be increased, ensuring the call quality of the user using the mobile phone.
[0144] In some embodiments, the mobile phone can record and save the corresponding folding angle α, earpiece volume V and other information each time the user uses the folding screen mobile phone to make a call. e , microphone volume V m , the distance from the earpiece to the user's ear is L e , and the distance L from the microphone to the user's mouth m . A set of data corresponding to each call can be recorded as {α i , V ei , V mi , L ei , L mi}, where i represents the i-th group of data, i>0.
[0145] Further, the mobile phone can obtain the second target folding angle through a machine learning algorithm based on the saved data, and use the second target folding angle as the preferred folding angle and recommend it to the user. For example, after the mobile phone obtains the second target folding angle, every time it detects that the user uses the folding screen mobile phone for a call, it automatically adjusts the folding angle of the mobile phone to the second target folding angle. Exemplarily, the mobile phone can activate a micro motor to drive the rotation shaft to rotate and adjust the folding angle of the mobile phone to the second target folding angle. For example, after the mobile phone obtains the second target folding angle, it can add the second target folding angle to a preset plurality of recommended folding angles.
[0146] In one implementation, as Figure 5 shown, the method for the mobile phone to obtain the second target folding angle through a machine learning algorithm based on the saved data may include:
[0147] S500. Obtain a preset call quality calculation model.
[0148] In one implementation, the call quality calculation model is preset in the mobile phone.
[0149] In one example, n groups of preset model samples are obtained in advance, where the j-th group of preset model samples can be expressed as {Q j , α j , V ej , V mj , L ej , L mj}; n>0, 0<j<=n. Q represents the call quality, α represents the folding angle of the folding screen mobile phone, V e represents the earpiece volume, V m represents the microphone volume, L e represents the distance from the earpiece to the user's ear, L m represents the distance from the microphone to the user's mouth. For example, the n groups of preset model samples can be data collected when n different users use the mobile phone for calls, and the face shapes of the n users may be different, and their usage habits may also be different; for example, the n groups of preset model samples can be data collected during n calls made by multiple users using the mobile phone.
[0150] Then, model training is performed based on the n groups of preset model samples, that is, the call quality calculation model is obtained. The call quality calculation model is used to characterize the corresponding relationship between Q and {α, V e , V m , L e , L m}. Exemplarily, the call quality calculation model can be expressed as Q = f 1 (α, V e , V m , Le , L m ).
[0151] S501. Obtain k groups of data samples according to the stored k groups of data and a preset call quality calculation model.
[0152] The mobile phone obtains k groups of data samples according to the stored k groups of data and the preset call quality calculation model, where k>0. The i-th group of data samples can be expressed as {Q i , α i , V ei , V mi , L ei , L mi}.
[0153] In one implementation, the mobile phone can store the i-th group of data {α i , V ei , V mi , L ei , L mi}, and the preset call quality calculation model, to obtain the i-th group of data samples. In one example, the preset call quality calculation model is Q=f 1 (α,V e , V m , L e , L m ), and {α i , V ei , V mi , L ei , L mi}, substitute it into the call quality calculation model, and calculate Q i , that is, to obtain {Q i , α i , V ei , V mi , L ei , L mi}.
[0154] S502: Use k groups of data samples to train a machine learning model.
[0155] In one implementation, each time a preset condition is met, k groups of data samples are used to train the machine learning model.
[0156] In one example, the preset condition may be that the number of data samples acquired by the mobile phone is greater than or equal to a preset threshold value N (i.e., k>=N); for example, N=1000. In another example, the preset condition may be that the usage time of the mobile phone is greater than or equal to the first time; for example, the preset first time may be 30 days. In yet another example, the preset condition may be that the cumulative time of the user's use of the mobile phone for calls is greater than or equal to the second time; for example, the second time is 200 minutes. In yet another example, the preset condition may be that the number of times the user uses the mobile phone for calls is greater than or equal to S times; for example, S=100. Of course, the preset condition may also be a combination of the preset conditions in the above examples.
[0157] The machine learning model is trained using k groups of data samples, that is, k groups of data samples are substituted into the machine learning model, and the trained machine learning model is obtained through machine learning. The machine learning model is used to characterize the call quality Q and the folding angle α, V e , V m , L e , L m Exemplarily, the machine learning model can be expressed as Q = f 2 (α,V e , V m , L e , L m ). The specific process of using k groups of data samples to train the machine learning model can refer to the description in conventional technology and will not be repeated here.
[0158] S503: Obtain a second target folding angle according to the trained machine learning model.
[0159] In one implementation, when a user uses a foldable screen mobile phone to make a call, the first folding angle is input into the trained machine learning model to obtain the second target folding angle. The first folding angle may be one of the recommended folding angles preset in the mobile phone, or the first folding angle may be the folding angle selected by the user, or the first folding angle may be the folding angle when the user last used the foldable screen mobile phone to make a call. The second target folding angle is the folding angle corresponding to the peak value of Q in the iterative calculation process according to the trained machine learning model.
[0160] The method for adjusting the folding angle of an electronic device provided in the embodiment of the present application can adjust the folding angle of the electronic device to a suitable angle when the user is using the folding screen electronic device for a call, so that the electronic device fits the user's face more closely, thereby ensuring the call quality of the user using the electronic device for a call. In addition, when the electronic device fits the user's face more closely, the earpiece volume and the microphone volume can be reduced, thereby reducing the power consumption of the electronic device.
[0161] It is understandable that, in order to realize the above functions, the above electronic device includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the embodiments of the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the embodiments of the present application.
[0162] The embodiment of the present application can divide the functional modules of the above-mentioned electronic device according to the above-mentioned method example. For example, each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0163] In the case of an integrated unit, Figure 6 A possible structural diagram of the electronic device involved in the above embodiment is shown. The electronic device 600 includes: a processing unit 601 , a storage unit 602 , an input unit 603 and an output unit 604 .
[0164] The processing unit 601 is used to control and manage the actions of the electronic device 600. For example, it can be used to adjust the folding angle α of the mobile phone, the distance L from the earpiece to the user's ear, etc. in the embodiment of the present application. e , the distance from the microphone to the user's mouth is L m , Earpiece volume V e , microphone volume V m etc.; it can also be used to perform Figure 3 The relevant processing steps in Figure 5 S501, S502, S503 and other processing steps; and / or other processes for the technology described in this article.
[0165] The storage unit 602 is used to store program codes and data of the electronic device 600. For example, it can be used to store preset recommended folding angles and the like.
[0166] The input unit 603 is used to collect the user's voice input, etc. For example, it can be used to collect the user's conversation voice.
[0167] The output unit 604 is used to output the user's voice, etc. For example, it can be used to output the call voice during the user's call.
[0168] Of course, the unit modules in the above-mentioned electronic device 600 include but are not limited to the above-mentioned processing unit 601, storage unit 602, input unit 603 and output unit 604. For example, the electronic device 600 may also include a display unit, a detection unit, etc. The display unit is used to display the interface of the electronic device. For example, it can be used to display the "folding angle recommendation" interface, the "settings" interface, etc. The detection unit is used to detect and obtain data of the electronic device 600. For example, it can be used to detect the folding angle α of the mobile phone, the distance L from the earpiece to the user's ear, and the distance L from the earpiece to the user's ear. e , the distance from the microphone to the user's mouth is L m wait.
[0169] Among them, the processing unit 601 can be a processor or a controller, for example, a central processing unit (CPU), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. The processor may include an application processor and a baseband processor. It can implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of the present application. The processor may also be a combination that implements a computing function, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc. The storage unit 602 may be a memory. The input unit 603 may include a microphone, a fingerprint sensor, etc. The output unit 604 may include a receiver, etc. The display unit may be a display screen. The detection unit may include a camera, a distance sensor, an ambient light sensor, a structured light sensor, etc.
[0170] For example, the processing unit 601 is a processor (such as Figure 2A The processor 110 shown in FIG. 1 ), the storage unit 602 may be a memory (eg, Figure 2A The internal memory 121 shown in FIG. 1 ), the input unit 603 may include a microphone (eg, Figure 2A Microphone 170C shown), fingerprint sensor (such as Figure 2A The fingerprint sensor 180H in the sensor module 180 shown in the figure), the output unit 604 may include a receiver (such as Figure 2A The receiver 170B shown in FIG. 1 is a display screen (such as Figure 2AThe flexible screen 194 shown in the figure may be a touch screen in which a display panel and a touch panel may be integrated), and the detection unit may include a camera (such as Figure 2A The camera 193 shown), the distance sensor (such as Figure 2A The distance sensor 180F in the sensor module 180 shown in the figure), the ambient light sensor (such as Figure 2A The ambient light sensor 180L and the structured light sensor (such as Figure 2A The structured light sensor 180N in the sensor module 180 shown in the figure. The electronic device 600 provided in the embodiment of the present application can be Figure 2A The mobile phone 100 is shown. The processor, memory, etc. mentioned above may be coupled together, for example, via a bus.
[0171] An embodiment of the present application further provides a computer storage medium, in which a computer program code is stored. When the processor executes the computer program code, the electronic device executes the relevant method steps in the above embodiments.
[0172] The embodiments of the present application also provide a computer program product. When the computer program product is run on a computer, the computer is enabled to execute the relevant method steps in the above embodiments.
[0173] Among them, the electronic device 600, computer storage medium or computer program product provided in the embodiments of the present application are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here.
[0174] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0175] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0176] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0177] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0178] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard drives, ROM, RAM, magnetic disks or optical disks.
[0179] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for adjusting a folding angle of an electronic device, wherein the electronic device comprises a microphone and an earpiece, It is characterized in that The method comprises: The electronic device receives the user's call voice; The electronic device adjusts the folding angle of the electronic device according to the distance from the microphone to the user's mouth and the distance from the earpiece to the user's ear; The electronic device adjusts the folding angle of the electronic device according to the distance from the microphone to the user's mouth and the distance from the earpiece to the user's ear, including: If the electronic device determines that the distance from the microphone to the user's mouth is greater than a second threshold, the folding angle of the electronic device is adjusted so that the distance from the microphone to the user's mouth is less than or equal to the second threshold; the second threshold is determined according to the noise reduction capability, human voice recognition capability, and ambient sound recognition capability of the electronic device, and the noise reduction capability, human voice recognition capability, and ambient sound recognition capability of the electronic device are positively correlated with the second threshold; If the electronic device determines that the distance from the earpiece to the user's ear is greater than a first threshold, adjusting the folding angle of the electronic device until the distance from the earpiece to the user's ear is less than or equal to the first threshold; The method further comprises: If it is determined that the distance from the microphone to the user's mouth is less than or equal to the second threshold, the electronic device reduces the volume of the microphone according to the difference between the distance from the microphone to the user's mouth and the second threshold; If it is determined that the distance from the earpiece to the user's ear is less than or equal to the first threshold, the electronic device reduces the volume of the earpiece according to the difference between the distance from the earpiece to the user's ear and the first threshold.
2. The method according to claim 1, It is characterized in that The method further comprises: If it is determined that the distance from the earpiece to the user's ear is greater than or equal to a third threshold, the electronic device increases the volume of the earpiece.
3. The method according to claim 2, It is characterized in that The method further comprises: If it is determined that the distance from the microphone to the user's mouth is greater than or equal to a fourth threshold, the electronic device increases the volume of the microphone.
4. An electronic device, It is characterized in that include: Microphone, receiver, processor, The microphone is used to receive the user's voice. The processor is used to adjust the folding angle of the electronic device according to the distance from the microphone to the user's mouth and the distance from the earpiece to the user's ear; The electronic device adjusts the folding angle of the electronic device according to the distance from the microphone to the user's mouth and the distance from the earpiece to the user's ear, including: If the electronic device determines that the distance from the microphone to the user's mouth is greater than a second threshold, the folding angle of the electronic device is adjusted so that the distance from the microphone to the user's mouth is less than or equal to the second threshold; the second threshold is determined according to the noise reduction capability, human voice recognition capability, and ambient sound recognition capability of the electronic device, and the noise reduction capability, human voice recognition capability, and ambient sound recognition capability of the electronic device are positively correlated with the second threshold; If the electronic device determines that the distance from the earpiece to the user's ear is greater than a first threshold, adjusting the folding angle of the electronic device until the distance from the earpiece to the user's ear is less than or equal to the first threshold; The processor is further configured to: If it is determined that the distance from the microphone to the user's mouth is less than or equal to the second threshold, the electronic device reduces the volume of the microphone according to the difference between the distance from the microphone to the user's mouth and the second threshold; If it is determined that the distance from the earpiece to the user's ear is less than or equal to the first threshold, the electronic device reduces the volume of the earpiece according to the difference between the distance from the earpiece to the user's ear and the first threshold.
5. The electronic device according to claim 4, It is characterized in that The processor is further configured to: If it is determined that the distance from the earpiece to the user's ear is greater than or equal to a third threshold, the volume of the earpiece is increased.
6. The electronic device according to claim 5, It is characterized in that The processor is further configured to: If it is determined that the distance from the microphone to the user's mouth is greater than or equal to a fourth threshold, the volume of the microphone is increased.
7. A computer storage medium, It is characterized in that The computer storage medium includes computer instructions, and when the computer instructions are executed on an electronic device, the electronic device executes the method according to any one of claims 1 to 3.
Citation Information
Patent Citations
Motion based compensation of downlinked audio
CN104396277A
Information processing method and electronic device
CN106856539A
Method and device for adjusting angle of display screen, mobile terminal and storage medium
CN107885277A
Terminal control method, terminal and computer readable storage medium
CN108200267A
Call adjustment method, terminal and computer readable storage medium
CN109842718A