CN114500728A - Incoming call ringtone setting method, incoming call prompting method and electronic equipment - Google Patents

Incoming call ringtone setting method, incoming call prompting method and electronic equipment Download PDF

Info

Publication number
CN114500728A
CN114500728A CN202011270133.2A CN202011270133A CN114500728A CN 114500728 A CN114500728 A CN 114500728A CN 202011270133 A CN202011270133 A CN 202011270133A CN 114500728 A CN114500728 A CN 114500728A
Authority
CN
China
Prior art keywords
audio file
network
incoming call
positioning information
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011270133.2A
Other languages
Chinese (zh)
Other versions
CN114500728B (en
Inventor
李明旭
崔晓青
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Device Co Ltd
Original Assignee
Huawei Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Device Co Ltd filed Critical Huawei Device Co Ltd
Priority to CN202011270133.2A priority Critical patent/CN114500728B/en
Publication of CN114500728A publication Critical patent/CN114500728A/en
Application granted granted Critical
Publication of CN114500728B publication Critical patent/CN114500728B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/14Details of searching files based on file metadata
    • G06F16/148File search processing

Abstract

The embodiment of the application provides a method for setting incoming call ringtone, an incoming call prompt method and electronic equipment. According to the embodiment of the application, the online audio file can be set as the incoming call ringtone, so that more audio file candidate items of the incoming call ringtone can be set by a user, and the user experience is improved.

Description

Incoming call ringtone setting method, incoming call prompting method and electronic equipment
Technical Field
The application relates to the technical field of intelligent terminals, in particular to an incoming call ringtone setting method, an incoming call prompting method and electronic equipment.
Background
When a user sets an incoming call ringtone in an electronic device, such as a mobile phone, an audio file serving as a source of the incoming ringtone is generally an audio file stored inside the electronic device or an audio file stored in an external storage device, such as a Secure Digital Memory Card (SD Card). Audio files stored in the electronic device and the external storage device are relatively fixed and monotonous, so that a user cannot set favorite music as incoming call ringtone at will, and user experience is influenced.
Disclosure of Invention
The application provides a method for setting incoming call ringtone and electronic equipment, which can provide more audio file candidate items for setting the incoming call ringtone for a user and improve user experience.
In a first aspect, the present application provides a method for setting an incoming call ringtone, applied to an electronic device, including: displaying description information of at least one online audio file; detecting a first setting operation for first description information in the displayed description information, wherein the first description information is description information of a first online audio file, and the first setting operation is used for indicating that the first online audio file is set as a first incoming call ringtone; sending a first request message to a first server, the first server being a server providing a first online audio file; the first request message is used for requesting to set the first online audio file as an incoming call ringtone; receiving file positioning information sent by a first server, wherein the file positioning information is positioning information of a first online audio file; and storing the file positioning information as first positioning information, wherein the first positioning information is used for recording the positioning information of the first incoming call ringtone of the electronic equipment. The method can enable the user to set the online audio file as the incoming call ringtone, thereby providing more selection possibilities for the user to set the incoming call ringtone and improving the user experience.
In a possible implementation manner, before presenting the description information of the at least one online audio file, the method further includes: sending a second request message to the first server, wherein the second request message is used for requesting the description information of the online audio file; receiving audio file information sent by the first server in response to the second request message, wherein the audio file information comprises: description information of the online audio file;
presenting description information of at least one online audio file, comprising: and displaying the description information of the online audio file included in the audio file information. In one possible implementation, the file location information is a uniform resource identifier, URI.
In one possible implementation manner, the method further includes: the electronic device sends the first positioning information to the second server so that the second server stores the first positioning information.
In a second aspect, an embodiment of the present application provides an incoming call prompting method, which is applied to an electronic device, where first location information is preset in the electronic device, and the first location information is used to indicate a first audio file stored in a first server, and the method includes: receiving incoming call information; after the electronic equipment is determined to be connected with at least one network and the network quality of the first network meets a preset first condition, a first audio file is obtained from a first server according to first positioning information, and the first audio file is played as incoming call ringtone; the first network is a network being used by the electronic device among at least one network to which the electronic device has been connected.
According to the method, after the incoming call information is received, the online audio file is obtained to serve as the incoming call ring, and therefore incoming call prompt is achieved.
In a possible implementation manner, second positioning information is further preset in the electronic device, and the second positioning information is used for indicating a second audio file locally stored in the electronic device; the method further comprises the following steps: and after the electronic equipment is determined not to be connected with the network or the electronic equipment is determined to be connected with the network and the network quality of the first network does not meet the preset first condition, acquiring a second audio file according to the second positioning information, and playing the second audio file as the incoming call ringtone.
According to the method, when the network quality meets a first condition, an online first audio file is played as the incoming call ringtone, and when the network quality does not meet the first condition, a local second audio file is played as the incoming ringtone, so that the requirement that a user plays favorite music as the incoming ringtone is met, and the local audio file is played as the incoming ringtone when the online audio file cannot be played as the incoming ringtone in time, so that the incoming call prompt is ensured to be carried out in time.
In one possible implementation manner, acquiring a first audio file from a first server according to first positioning information, and playing the first audio file as an incoming call ringtone includes: determining that the network quality of the first network meets a preset second condition, wherein the network quality corresponding to the second condition is higher than the network quality corresponding to the first condition, and starting to play a complete audio stream as a ring tone after obtaining and caching the complete audio stream of the first audio file from the first server according to the first positioning information; and determining that the network quality of the first network does not meet a preset second condition, acquiring and caching the audio stream of the first audio file from the first server according to the first positioning information, and starting to play the cached audio stream as the incoming call ringtone after the data volume of the cached audio stream reaches a preset first numerical value.
In one possible implementation, determining that the network quality of the first network satisfies a preset first condition includes: and determining that the network delay of the first network is not greater than a second value and/or the data transmission speed of the first network is not less than a third value.
In one possible implementation, determining that the network quality of the first network satisfies the preset second condition includes: determining that the network delay of the first network is smaller than a fourth numerical value and the data transmission speed of the first network is larger than a fifth numerical value; the fourth value is less than or equal to the second value, and the fifth value is greater than the third value.
In a third aspect, the present application provides an electronic device, comprising:
one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more computer programs comprising instructions which, when executed by the apparatus, cause the apparatus to perform the method of any of the first aspects.
In a fourth aspect, the present application provides an electronic device, comprising:
one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more computer programs comprising instructions which, when executed by the apparatus, cause the apparatus to perform the method of any of the second aspects.
In a fifth aspect, the present application provides a computer readable storage medium having stored thereon a computer program which, when run on a computer, causes the computer to perform the method of any of the first or second aspects.
In a sixth aspect, the present application provides a computer program for performing the method of the first aspect when the computer program is executed by a computer.
In a possible design, the program in the sixth aspect may be stored in whole or in part on a storage medium packaged with the processor, or in part or in whole on a memory not packaged with the processor.
Drawings
FIG. 1 is a flow chart of an example incoming ringtone setting method;
FIG. 2 is a flowchart of an example of an incoming call alert method;
FIG. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
FIG. 4 is a block diagram of a software architecture of an electronic device according to an embodiment of the present application;
fig. 5 is a GUI example diagram of an incoming call ringtone setting method according to an embodiment of the present application;
FIG. 6 is a flowchart illustrating an embodiment of a method for setting incoming ring tones according to the present application;
fig. 7 is a diagram illustrating another example of a GUI of a method for setting an incoming call ringtone according to the embodiment of the present application;
FIG. 8 is a flowchart illustrating another embodiment of a method for setting incoming ring tones according to the present application;
FIG. 9 is a flowchart of an embodiment of an incoming call alert method of the present application;
FIG. 10 is a flowchart of another embodiment of an incoming call alert method of the present application;
fig. 11 is a diagram illustrating a software structure implemented by the incoming call ringtone setting method and the incoming call alert method according to the present application;
FIG. 12 is a flowchart of a method for backing up and synchronizing location information of incoming ring tones according to the present application;
FIG. 13A is a diagram illustrating an example of a UI of a first electronic device of the present application;
FIGS. 13B and 13C are exemplary UI interfaces of a second electronic device of the present application;
fig. 14 is a block diagram of an embodiment of an incoming call ringtone setting device according to the present application;
fig. 15 is a structural diagram of an embodiment of the incoming call prompt apparatus of the present application.
Detailed Description
The terminology used in the description of the embodiments section of the present application is for the purpose of describing particular embodiments of the present application only and is not intended to be limiting of the present application.
Taking a mobile phone as an example, at present, an audio file set by a user as an incoming call ringtone is generally an audio file stored in the mobile phone or an audio file stored in an SD card of the mobile phone.
In an example, referring to the incoming call ringtone setting flow shown in fig. 1, if a user selects an audio file in a mobile phone and sets the audio file as an incoming ringtone, the mobile phone obtains a Uniform Resource Identifier (URI) of the audio file, and stores the URI of the audio file in a preset database in the mobile phone; then, referring to the incoming call ringtone playing flow shown in fig. 2, when the mobile phone receives an incoming call, the URI of the incoming call ringtone is read from the database, a specific audio file is located according to the URI, and the audio file is played, thereby playing the incoming call ringtone.
Audio files stored in the electronic device and the external storage device are relatively fixed and monotonous, so that a user cannot set favorite music as incoming call ringtone at will, and user experience is influenced.
The application provides a method for setting incoming call ringtone and electronic equipment, which can provide more audio file candidate items for setting the incoming call ringtone for a user and improve user experience.
The application also provides an incoming call prompting method, and the incoming call prompting is realized based on the incoming call ringtone set by the incoming call ringtone setting method.
The method provided by the embodiment of the application can be applied to electronic equipment with a communication function, for example: a mobile phone, a smart watch, or a vehicle-mounted communication device.
For example, fig. 3 shows a schematic structural diagram of the electronic device 300. The electronic device 300 may include a processor 310, an external memory interface 320, an internal memory 321, a Universal Serial Bus (USB) interface 330, a charging management module 340, a power management module 341, a battery 342, an antenna 1, an antenna 2, a mobile communication module 350, a wireless communication module 360, an audio module 370, a speaker 370A, a receiver 370B, a microphone 370C, an earphone interface 370D, a sensor module 380, keys 390, a motor 391, an indicator 392, a camera 393, a display 394, and a Subscriber Identification Module (SIM) card interface 395, and the like. The sensor module 380 may include a pressure sensor 380A, a gyroscope sensor 380B, an air pressure sensor 380C, a magnetic sensor 380D, an acceleration sensor 380E, a distance sensor 380F, a proximity light sensor 380G, a fingerprint sensor 380H, a temperature sensor 380J, a touch sensor 380K, an ambient light sensor 380L, a bone conduction sensor 380M, and the like.
It is to be understood that the illustrated structure of the embodiment of the present invention does not specifically limit the electronic device 300. In other embodiments of the present application, electronic device 300 may include more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 310 may include one or more processing units, such as: the processor 310 may include an Application Processor (AP), a modem processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), etc. The different processing units may be separate devices or may be integrated into one or more processors.
The controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 310 for storing instructions and data. In some embodiments, the memory in the processor 310 is a cache memory. The memory may hold instructions or data that have just been used or recycled by the processor 310. If the processor 310 needs to reuse the instruction or data, it can be called directly from the memory. Avoiding repeated accesses reduces the latency of the processor 310, thereby increasing the efficiency of the system.
In some embodiments, processor 310 may include one or more interfaces. The interface may include an integrated circuit (I2C) interface, an integrated circuit built-in audio (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.
The I2C interface is a bi-directional synchronous serial bus that includes a serial data line (SDA) and a Serial Clock Line (SCL). In some embodiments, the processor 310 may include multiple sets of I2C buses. The processor 310 may be coupled to the touch sensor 380K, the charger, the flash, the camera 393, etc. through different I2C bus interfaces. For example: the processor 310 may be coupled to the touch sensor 380K via an I2C interface, such that the processor 310 and the touch sensor 380K communicate via an I2C bus interface to implement the touch functionality of the electronic device 300.
The I2S interface may be used for audio communication. In some embodiments, the processor 310 may include multiple sets of I2S buses. The processor 310 may be coupled to the audio module 370 via an I2S bus to enable communication between the processor 310 and the audio module 370. In some embodiments, the audio module 370 can transmit audio signals to the wireless communication module 360 through the I2S interface, so as to receive phone calls through the bluetooth headset.
The PCM interface may also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 370 and the wireless communication module 360 may be coupled by a PCM bus interface. In some embodiments, the audio module 370 may also transmit audio signals to the wireless communication module 360 through the PCM interface, so as to implement a function of answering a call through a bluetooth headset. Both the I2S interface and the PCM interface may be used for audio communication.
The UART interface is a universal serial data bus used for asynchronous communications. The bus may be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is generally used to connect the processor 310 with the wireless communication module 360. For example: the processor 310 communicates with the bluetooth module in the wireless communication module 360 through the UART interface to implement the bluetooth function. In some embodiments, the audio module 370 may transmit the audio signal to the wireless communication module 360 through a UART interface, so as to realize the function of playing music through a bluetooth headset.
The MIPI interface may be used to connect processor 310 with peripheral devices such as display 394, camera 393, and the like. The MIPI interface includes a Camera Serial Interface (CSI), a Display Serial Interface (DSI), and the like. In some embodiments, processor 310 and camera 393 communicate over a CSI interface to implement the capture functionality of electronic device 300. The processor 310 and the display screen 394 communicate via the DSI interface to implement the display functions of the electronic device 300.
The GPIO interface may be configured by software. The GPIO interface may be configured as a control signal and may also be configured as a data signal. In some embodiments, a GPIO interface may be used to connect the processor 310 with the camera 393, the display 394, the wireless communication module 360, the audio module 370, the sensor module 380, and the like. The GPIO interface may also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, and the like.
The USB interface 330 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 330 may be used to connect a charger to charge the electronic device 300, and may also be used to transmit data between the electronic device 300 and peripheral devices. And the earphone can also be used for connecting an earphone and playing audio through the earphone. The interface may also be used to connect other electronic devices, such as AR devices and the like.
It should be understood that the connection relationship between the modules according to the embodiment of the present invention is only illustrative, and is not limited to the structure of the electronic device 300. In other embodiments of the present application, the electronic device 300 may also adopt different interface connection manners or a combination of multiple interface connection manners in the above embodiments.
The charging management module 340 is configured 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 340 may receive charging input from a wired charger via the USB interface 330. In some wireless charging embodiments, the charging management module 340 may receive a wireless charging input through a wireless charging coil of the electronic device 300. The charging management module 340 may also supply power to the electronic device through the power management module 341 while charging the battery 342.
The power management module 341 is configured to connect the battery 342, the charging management module 340 and the processor 310. The power management module 341 receives input from the battery 342 and/or the charge management module 340 and provides power to the processor 310, the internal memory 321, the display 394, the camera 393, and the wireless communication module 360. The power management module 341 may also be configured to monitor parameters such as battery capacity, battery cycle count, and battery state of health (leakage, impedance). In other embodiments, the power management module 341 may also be disposed in the processor 310. In other embodiments, the power management module 341 and the charging management module 340 may be disposed in the same device.
The wireless communication function of the electronic device 300 may be implemented by the antenna 1, the antenna 2, the mobile communication module 350, the wireless communication module 360, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 300 may be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 350 may provide a solution including 2G/3G/4G/5G wireless communication applied to the electronic device 300. The mobile communication module 350 may include at least one filter, a switch, a power amplifier, a Low Noise Amplifier (LNA), and the like. The mobile communication module 350 may receive the electromagnetic wave from the antenna 1, filter, amplify, etc. the received electromagnetic wave, and transmit the filtered electromagnetic wave to the modem processor for demodulation. The mobile communication module 350 may also amplify the signal modulated by the modem processor, and convert the signal into electromagnetic wave through the antenna 1 to radiate the electromagnetic wave. In some embodiments, at least some of the functional modules of the mobile communication module 350 may be disposed in the processor 310. In some embodiments, at least some of the functional modules of the mobile communication module 350 may be disposed in the same device as at least some of the modules of the processor 310.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating a low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then passes the demodulated low frequency baseband signal to a baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs sound signals through an audio device (not limited to the speaker 370A, the receiver 370B, etc.) or displays images or video through the display 394. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be separate from the processor 310, and may be disposed in the same device as the mobile communication module 350 or other functional modules.
The wireless communication module 360 may provide solutions for wireless communication applied to the electronic device 300, including Wireless Local Area Networks (WLANs) (e.g., wireless fidelity (Wi-Fi) networks), bluetooth (bluetooth, BT), Global Navigation Satellite System (GNSS), Frequency Modulation (FM), Near Field Communication (NFC), Infrared (IR), and the like. The wireless communication module 360 may be one or more devices integrating at least one communication processing module. The wireless communication module 360 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on electromagnetic wave signals, and transmits the processed signals to the processor 310. The wireless communication module 360 may also receive a signal to be transmitted from the processor 310, frequency-modulate and amplify the signal, and convert the signal into electromagnetic waves via the antenna 2 to radiate the electromagnetic waves.
In some embodiments, antenna 1 of electronic device 300 is coupled to mobile communication module 350 and antenna 2 is coupled to wireless communication module 360 such that electronic device 300 may communicate with networks and other devices via wireless communication techniques. The wireless communication technology may include global system for mobile communications (GSM), General Packet Radio Service (GPRS), code division multiple access (code division multiple access, CDMA), Wideband Code Division Multiple Access (WCDMA), time-division code division multiple access (time-division code division multiple access, TD-SCDMA), Long Term Evolution (LTE), LTE, BT, GNSS, WLAN, NFC, FM, and/or IR technologies, etc. 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).
The electronic device 300 implements display functionality via the GPU, the display screen 394, and the application processor, among other things. The GPU is an image processing microprocessor coupled to a display 394 and an application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 310 may include one or more GPUs that execute program instructions to generate or alter display information.
The display screen 394 is used to display images, video, and the like. The display screen 394 includes a display panel. The display panel may adopt a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode, AMOLED), a flexible light-emitting diode (FLED), a miniature, a Micro-oeld, a quantum dot light-emitting diode (QLED), and the like. In some embodiments, the electronic device 300 may include 1 or N display screens 394, N being a positive integer greater than 1.
The electronic device 300 may implement a shooting function through the ISP, the camera 393, the video codec, the GPU, the display 394, the application processor, and the like.
The ISP is used to process the data fed back by the camera 393. For example, when a photo is taken, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converting into an image visible to naked eyes. The ISP can also carry out algorithm optimization on the noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be located in camera 393.
Camera 393 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image to the photosensitive element. The photosensitive element may be a Charge Coupled Device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The light sensing element converts the optical signal into an electrical signal, which is then passed to the ISP where it is converted into a digital image signal. And 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 and other formats. In some embodiments, electronic device 300 may include 1 or N cameras 393, N being a positive integer greater than 1.
The digital signal processor is used for processing digital signals, and can process digital image signals and other digital signals. For example, when the electronic device 300 selects a frequency bin, the digital signal processor is used to perform fourier transform or the like on the frequency bin energy.
Video codecs are used to compress or decompress digital video. The electronic device 300 may support one or more video codecs. In this way, the electronic device 300 may play or record video in a variety of encoding formats, such as: moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, and the like.
The NPU is a neural-network (NN) computing processor that processes input information quickly by using a biological neural network structure, for example, by using a transfer mode between neurons of a human brain, and can also learn by itself continuously. The NPU can realize applications such as intelligent recognition of the electronic device 300, for example: image recognition, face recognition, speech recognition, text understanding, and the like.
The external memory interface 320 may be used to connect an external memory card, such as a Micro SD card, to extend the memory capability of the electronic device 300. The external memory card communicates with the processor 310 through the external memory interface 320 to implement a data storage function. For example, files such as music, video, etc. are saved in an external memory card.
The internal memory 321 may be used to store computer-executable program code, which includes instructions. The internal memory 321 may include a program storage area and a data storage area. The storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required by at least one function, and the like. The data storage area may store data (e.g., audio data, phone book, etc.) created during use of the electronic device 300, and the like. In addition, the internal memory 321 may include a high-speed random access memory, and may further include a nonvolatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (UFS), and the like. The processor 310 executes various functional applications of the electronic device 300 and data processing by executing instructions stored in the internal memory 321 and/or instructions stored in a memory provided in the processor.
The electronic device 300 may implement audio functions through the audio module 370, the speaker 370A, the receiver 370B, the microphone 370C, the earphone interface 370D, and the application processor. Such as music playing, recording, etc.
The audio module 370 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 370 may also be used to encode and decode audio signals. In some embodiments, the audio module 370 may be disposed in the processor 310, or some functional modules of the audio module 370 may be disposed in the processor 310.
The speaker 370A, also called a "horn", is used to convert the audio electrical signal into an acoustic signal. The electronic device 300 can listen to music through the speaker 370A or listen to a hands-free conversation.
The receiver 370B, also called "earpiece", is used to convert the electrical audio signal into an acoustic signal. When the electronic device 300 receives a call or voice information, it can receive voice by placing the receiver 370B close to the ear of the person.
Microphone 370C, also known as a "microphone," is used to convert sound signals into electrical signals. When making a call or transmitting voice information, the user can input a voice signal into the microphone 370C by speaking the user's mouth near the microphone 370C. The electronic device 300 may be provided with at least one microphone 370C. In other embodiments, the electronic device 300 may be provided with two microphones 370C to achieve a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 300 may further include three, four or more microphones 370C to collect sound signals, reduce noise, identify sound sources, perform directional recording, and so on.
The headphone interface 370D is used to connect wired headphones. The headset interface 370D may be the USB interface 330, or may be a 3.5mm open mobile electronic device platform (OMTP) standard interface, a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
The pressure sensor 380A is used for sensing a pressure signal, and converting the pressure signal into an electrical signal. In some embodiments, the pressure sensor 380A may be disposed on the display screen 394. The pressure sensor 380A can be of a wide variety, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, or the like. The capacitive pressure sensor may be a sensor comprising at least two parallel plates having an electrically conductive material. When a force acts on the pressure sensor 380A, the capacitance between the electrodes changes. The electronic device 300 determines the intensity of the pressure from the change in capacitance. When a touch operation is applied to the display screen 394, the electronic apparatus 300 detects the intensity of the touch operation according to the pressure sensor 380A. The electronic apparatus 300 may also calculate the touched position from the detection signal of the pressure sensor 380A. In some embodiments, the touch operations that are applied to the same touch position but different touch operation intensities may correspond to different operation instructions. For example: and when the touch operation with the touch operation intensity smaller than the first pressure threshold value acts on the short message application icon, executing an instruction for viewing the short message. And when the touch operation with the touch operation intensity larger than or equal to the first pressure threshold value acts on the short message application icon, executing an instruction of newly building the short message.
The gyro sensor 380B may be used to determine the motion pose of the electronic device 300. In some embodiments, the angular velocity of electronic device 100 about three axes (i.e., the x, y, and z axes) may be determined by gyroscope sensor 380B. The gyro sensor 380B may be used for photographing anti-shake. For example, when the shutter is pressed, the gyro sensor 380B detects the shake angle of the electronic device 300, calculates the distance to be compensated for by the lens module according to the shake angle, and allows the lens to counteract the shake of the electronic device 300 through a reverse movement, thereby achieving anti-shake. The gyro sensor 380B may also be used for navigation, somatosensory gaming scenes.
The air pressure sensor 380C is used to measure air pressure. In some embodiments, electronic device 300 calculates altitude, aiding in positioning and navigation, from barometric pressure values measured by barometric pressure sensor 380C.
The magnetic sensor 380D includes a hall sensor. The electronic device 300 may detect the opening and closing of the flip holster using the magnetic sensor 380D. In some embodiments, when the electronic device 300 is a flip phone, the electronic device 300 may detect the opening and closing of the flip according to the magnetic sensor 380D. And then according to the opening and closing state of the leather sheath or the opening and closing state of the flip cover, the automatic unlocking of the flip cover is set.
The acceleration sensor 380E may detect the magnitude of acceleration of the electronic device 300 in various directions (typically three axes). The magnitude and direction of gravity can be detected when the electronic device 300 is stationary. The method can also be used for recognizing the posture of the electronic equipment, and is applied to horizontal and vertical screen switching, pedometers and other applications.
A distance sensor 380F for measuring distance. The electronic device 300 may measure the distance by infrared or laser. In some embodiments, taking a picture of a scene, the electronic device 300 may utilize the distance sensor 380F to range for fast focus.
The proximity light sensor 380G 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 electronic device 300 emits infrared light to the outside through the light emitting diode. The electronic device 300 detects infrared reflected light from nearby objects using a photodiode. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 300. When insufficient reflected light is detected, the electronic device 300 may determine that there are no objects near the electronic device 300. The electronic device 300 can utilize the proximity sensor 380G to detect that the user holds the electronic device 300 close to the ear for talking, so as to automatically turn off the screen to achieve the purpose of saving power. The proximity light sensor 380G may also be used in a holster mode, a pocket mode automatically unlocks and locks the screen.
The ambient light sensor 380L is used to sense the ambient light level. The electronic device 300 may adaptively adjust the brightness of the display 394 based on the perceived ambient light level. The ambient light sensor 380L may also be used to automatically adjust the white balance when taking a picture. The ambient light sensor 380L may also cooperate with the proximity light sensor 380G to detect whether the electronic device 300 is in a pocket to prevent inadvertent contact.
The fingerprint sensor 380H is used to capture a fingerprint. The electronic device 300 may utilize the collected fingerprint characteristics to implement fingerprint unlocking, access an application lock, fingerprint photographing, fingerprint incoming call answering, and the like.
The temperature sensor 380J is used to detect temperature. In some embodiments, the electronic device 300 implements a temperature processing strategy using the temperature detected by the temperature sensor 380J. For example, when the temperature reported by the temperature sensor 380J exceeds a threshold, the electronic device 300 performs a reduction in performance of a processor located near the temperature sensor 380J, so as to reduce power consumption and implement thermal protection. In other embodiments, the electronic device 300 heats the battery 342 when the temperature is below another threshold to avoid the low temperature causing the electronic device 300 to shut down abnormally. In other embodiments, when the temperature is below a further threshold, the electronic device 300 performs a boost on the output voltage of the battery 342 to avoid an abnormal shutdown due to low temperature.
The touch sensor 380K is also referred to as a "touch device". The touch sensor 380K may be disposed on the display screen 394, and the touch sensor 380K and the display screen 394 form a touch screen, which is also referred to as a "touch screen". The touch sensor 380K is used to detect a touch operation applied thereto or thereabout. The touch sensor can communicate the detected touch operation to the application processor to determine the touch event type. Visual output associated with the touch operation may be provided via the display 394. In other embodiments, the touch sensor 380K can be disposed on a surface of the electronic device 300 at a different location than the display 394.
The bone conduction sensor 380M can acquire a vibration signal. In some embodiments, the bone conduction transducer 380M can acquire a vibration signal of the vibrating bone mass of the human voice. The bone conduction sensor 380M may also contact the human body pulse to receive the blood pressure pulsation signal. In some embodiments, the bone conduction sensor 380M may also be disposed in a headset, integrated into a bone conduction headset. The audio module 370 may analyze a voice signal based on the vibration signal of the bone mass vibrated by the sound part acquired by the bone conduction sensor 380M, so as to implement a voice function. The application processor can analyze heart rate information based on the blood pressure beating signal acquired by the bone conduction sensor 380M, so as to realize the heart rate detection function.
Keys 390 include a power-on key, a volume key, etc. The keys 390 may be mechanical keys. Or may be touch keys. The electronic device 300 may receive a key input, and generate a key signal input related to user setting and function control of the electronic device 300.
The motor 391 may generate a vibration cue. Motor 391 may be used for incoming call vibration prompts, as well as for touch vibration feedback. For example, touch operations applied to different applications (e.g., photographing, audio playing, etc.) may correspond to different vibration feedback effects. The motor 391 may also respond to different vibration feedback effects by performing touch operations on different areas of the display 394. Different application scenes (such as time reminding, receiving information, alarm clock, game and the like) can also correspond to different vibration feedback effects. The touch vibration feedback effect may also support customization.
Indicator 392 may be an indicator light that may be used to indicate a state of charge, a change in charge, or a message, missed call, notification, etc.
The SIM card interface 395 is for connecting a SIM card. The SIM card can be brought into and out of contact with the electronic apparatus 300 by being inserted into and pulled out of the SIM card interface 395. The electronic device 300 may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The SIM card interface 395 may support a Nano SIM card, a Micro SIM card, a SIM card, etc. Multiple cards can be inserted into the same SIM card interface 395 at the same time. The types of the plurality of cards may be the same or different. The SIM card interface 395 may also be compatible with different types of SIM cards. The SIM card interface 395 may also be compatible with an external memory card. The electronic device 300 interacts with the network through the SIM card to implement functions such as communication and data communication. In some embodiments, the electronic device 300 employs esims, namely: an embedded SIM card. The eSIM card can be embedded in the electronic device 300 and cannot be separated from the electronic device 300.
The software system of the electronic device 300 may employ a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present invention uses an Android system with a layered architecture as an example to exemplarily illustrate a software structure of the electronic device 300.
Fig. 4 is a block diagram of a software configuration of the electronic device 300 according to the embodiment of the present invention.
The layered architecture divides the software into several layers, each layer having a clear role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, an application layer, an application framework layer, an Android runtime (Android runtime) and system library, and a kernel layer from top to bottom.
The application layer may include a series of application packages.
As shown in fig. 4, the application package may include camera, gallery, calendar, phone call, map, navigation, WLAN, bluetooth, music, video, short message, etc. applications.
The application framework layer provides an Application Programming Interface (API) and a programming framework for the application program of the application layer. The application framework layer includes a number of predefined functions.
As shown in FIG. 4, the application framework layers may include a window manager, content provider, view system, phone manager, resource manager, notification manager, and the like.
The window manager is used for managing window programs. The window manager can obtain the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make it accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
The view system includes visual controls such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, the display interface including the short message notification icon may include a view for displaying text and a view for displaying pictures.
The phone manager is used to provide communication functions of the electronic device 100. Such as management of call status (including on, off, etc.).
The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and the like.
The notification manager enables the application to display notification information in the status bar, can be used to convey notification-type messages, can disappear automatically after a short dwell, and does not require user interaction. Such as a notification manager used to inform download completion, message alerts, etc. The notification manager may also be a notification that appears in the form of a chart or scroll bar text at the top status bar of the system, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, prompting text information in the status bar, sounding a prompt tone, vibrating the electronic device, flashing an indicator light, etc.
The Android Runtime comprises a core library and a virtual machine. The Android runtime is responsible for scheduling and managing an Android system.
The core library comprises two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. The virtual machine executes java files of the application layer and the application framework layer as binary files. The virtual machine is used for performing the functions of object life cycle management, stack management, thread management, safety and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface managers (surface managers), Media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), and the like.
The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.
The media library supports a variety of commonly used audio, video format playback and recording, and still image files, among others. The media library may support a variety of audio-video encoding formats, such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, and the like.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
For convenience of understanding, the following embodiments of the present application will specifically describe the method provided by the embodiments of the present application by taking an electronic device having a structure shown in fig. 3 and fig. 4 as an example, with reference to the accompanying drawings and application scenarios.
The incoming call ringtone setting method according to the embodiment of the present application can set the online music as an incoming call ringtone, which is specifically described below by way of an example.
Fig. 5 is an exemplary diagram of a Graphical User Interface (GUI) of the method for setting an incoming ringtone according to the present application, including:
a user enters an incoming call ring setting interface 51 provided by an operating system of the mobile phone, the incoming call ring setting interface 51 comprises an online ring control, and the user selects the online ring control by clicking with a finger or the like to enter an online ring setting interface 52;
an online audio file list is displayed in the online ring setting interface 52, and description information of the online audio file is displayed in the list, where the description information is used to describe information of audio stored in the online audio file, such as a song title, a singer name, a name of an album to which the online audio file belongs, and the embodiment of the present application is not limited; each online audio file corresponds to a "ring" control 521, and after a user selects an online audio file, the user selects the "ring" control 521 corresponding to the online audio file by clicking with a finger or the like, so as to complete setting of the online audio file as an incoming call ring, for example, in fig. 5, the online audio file corresponding to song name 2 is selected as an example.
Based on the exemplary GUI diagram shown in fig. 5, a flowchart of an embodiment of a method for setting an incoming ringtone shown in fig. 6 is provided, which includes:
step 601: the mobile phone detects an online ring setting operation of a user and sends a file list request message to the server, wherein the online ring setting operation is used for indicating that an online audio file is set to be an incoming ring, and the file list request message is used for requesting an online audio file list which can be set to be an online ring from the server.
The server in the embodiment of the present application may be a server provided by a mobile phone manufacturer.
For example, the online ringtone setting operation may be an operation in fig. 5 in which the user selects an "online ringtone" control.
The list of online audio files includes: identification information of the audio file, and description information. The identification information of the audio file is used to uniquely identify the audio file.
Step 602: the server responds to the file list request message and sends an online audio file list to the mobile phone.
The list of online audio files may include identification information and description information of a number of online audio files. Wherein the identification information is used to identify the online audio file. For example, continuing the example shown in FIG. 5, the list of online audio files may be as shown in Table 1 below.
Identification information Song (song) Singer Album
xxx01 Song name 1 Singer name 1 Album name 1
xxx02 Song name 2 Singer name 1 Album name 1
xxx03 Song name 3 Singer name 2 Album name 2
xxx04 Song name 4 Singer name 3 Album name 3
xxx05 Song name 5 Singer name 4 Album name 4
TABLE 1
Step 603: the mobile phone receives the online audio file list and displays the description information of each online audio file in the online audio file list to the user.
For example, an implementation of presenting to a user descriptive information for each online audio file in a list of online audio files may refer to interface 52 shown in FIG. 5.
Step 604: the mobile phone detects a first setting operation of a user for the displayed first description information, wherein the first description information is description information of a first online audio file, and the first setting operation is used for indicating that the first online audio file corresponding to the first description information is set as a first incoming call ringtone.
The first description information is, for example, "song title 2, singer title 1, album title 1" shown in fig. 5, and the first setting operation is, for example, the selection operation of the user for the "set ring" control corresponding to "song title 2, singer title 1, album title 1" shown in fig. 5.
Step 605: the mobile phone sends a ringtone setting request message to the server, wherein the ringtone setting request message comprises first identification information corresponding to the first description information; the ring tone setting request message is for requesting setting of the first online audio file indicated by the first identification information as an incoming ring tone.
The first identification information is used to uniquely identify the first online audio file.
Step 606: and the server responds to the ringtone setting request message and sends file positioning information corresponding to the first identification information to the mobile phone.
The file location information may be a URI of the first online audio file indicated by the first identification information.
Step 607: the mobile phone receives the file positioning information and stores the file positioning information as first positioning information.
The first positioning information is positioning information of an incoming call ringtone set in the mobile phone.
By the method, the online audio file can be set as the incoming call ringtone, so that another implementation way for setting the incoming ringtone is provided for a user, more audio file candidates are provided for setting the incoming ringtone for the user, the user can set favorite audio as the incoming ringtone at will, and the user experience is improved.
Fig. 7 is another exemplary diagram of a GUI of the incoming call ringtone setting method of the present application, including:
a user opens a third-party app (application), which is a music playing app, that is, the user can play online music in the app, in fig. 7, taking application 1 as an example, a music list display interface 71 is entered in the third-party app, an online audio file list capable of being played is displayed in the music list display interface 71, and description information of each online audio file, such as a song title, a singer name, an album name, and the like, is displayed in the list, which is not limited in the embodiment of the present application; after a user selects a certain audio file, a corresponding control of 'setting to ring' is selected through operations such as finger clicking and the like, and therefore the setting of the online audio file to the ring of the incoming call is completed. It should be noted that fig. 7 is only a possible implementation example, for example, a user may set a certain online audio file as an incoming call ring after entering a playing interface of the online audio file, and so on, which is not illustrated here too much.
Based on the exemplary GUI diagram shown in fig. 7, a flowchart of another embodiment of the incoming ringtone setting method shown in fig. 8 is provided, which includes:
step 801: the mobile phone displays a music list display interface of the first application to the user.
And the music list display interface is used for showing the description information of each online audio file to the user. The information can be sent to the mobile phone by the server.
The music list display interface is shown, for example, as interface 71 in fig. 7.
Step 802: the mobile phone detects a first setting operation of a user for the displayed first description information, wherein the first setting operation is used for indicating that a first online audio file indicated by the first description information is set as a first incoming call ringtone.
Step 803: the mobile phone sends a ring setting request message to the server, wherein the ring setting request message comprises first identification information corresponding to the first description information; the ring tone setting request message is for requesting setting of the first online audio file indicated by the first identification information as an incoming ring tone.
First description information such as "song title 2, singer title 1, album title 1" shown in fig. 7, and a first setting operation such as a selection operation by the user for a "set ring" control corresponding to "song title 2, singer title 1, album title 1" shown in fig. 7.
The server in this step may be a server of a third party app provider.
Step 804: and the server responds to the ringtone setting request message and sends file positioning information corresponding to the first identification information to the mobile phone.
Step 805: the mobile phone receives the file positioning information and stores the file positioning information as first positioning information.
In the above method for setting the incoming call ringtone, the audio file set as the incoming call ringtone does not need to be downloaded to the mobile phone for storage, so that the incoming call ringtone can be set as the incoming call ringtone as long as the audio file can be played online by the user, even if some music can be downloaded only under the VIP (very important person) authority, more candidates of the incoming call ringtone can be provided for the user, and the user experience is improved.
By the method, the online audio files in the third-party app can be set as the incoming call ring, so that another implementation way for setting the incoming call ring is provided for the user, more audio file candidates are provided for setting the incoming call ring for the user, the user can set favorite audio as the incoming call ring at will, and the user experience is improved.
Based on the set incoming call ringtone, the embodiment of the application also provides an incoming call prompting method. In the incoming call prompting method in the following embodiments of the present application, in addition to the online audio file set in the incoming call ringtone setting method described above as an incoming call ringtone, an audio file locally stored in a mobile phone may also be set by a user as another incoming call ringtone. Specifically, the mobile phone may be configured with positioning information of two incoming ring tones, namely, the first positioning information and the second positioning information. The first positioning information is used for recording positioning information of a first online audio file, such as a URI (Uniform resource identifier), and the second positioning information is used for recording positioning information of a first audio file, such as a URI (Uniform resource identifier), which is locally stored in the mobile phone. For example, the incoming call ringtone setting method shown in fig. 1 may be referred to as a setting method of the second positioning information, which is not described herein. The audio file locally stored in the mobile phone includes both the audio file stored in the internal memory of the mobile phone and the audio file stored in the external memory of the mobile phone, such as an SD card of the mobile phone, and the embodiment of the present application is not limited.
As shown in fig. 9, a schematic flow chart of an embodiment of the incoming call prompt method of the present application includes:
step 901: the mobile phone receives incoming call information;
step 902: the mobile phone determines to play the incoming call ringtone.
The notification method for the incoming call in the mobile phone may include, but is not limited to: ringing, ringing simultaneously vibrating, only vibrating, muting and the like, and whether to play the incoming call ringtone can be judged based on the incoming call notification mode stored in the mobile phone. For example, if the incoming call is notified only by vibration, it may be determined that the incoming call ringtone is not to be played, and if the incoming call is notified by ringing or vibrates simultaneously with ringing, it may be determined that the incoming call ringtone is to be played.
Step 903: the mobile phone acquires first positioning information and judges whether the first positioning information is empty or not; if so, step 904 is performed, and if not, step 905 is performed.
If the user does not set the online audio file as the incoming call ringtone, the first positioning information can be null, that is, the positioning information of the online audio file is not recorded; the location information of the online audio file is used to indicate the online audio file.
Step 904: and the mobile phone acquires the second positioning information, acquires a second audio file indicated by the second positioning information, plays the acquired second audio file as the incoming call ringtone, and ends the branching process.
Step 905: the handset determines whether a network has been connected, if so, performs step 906, and if not, performs step 904.
The network here refers to a network capable of connecting to the internet and enabling a mobile phone to acquire an online audio file, such as a WiFi network, a 4G network, a 5G network, and the like.
Step 906: the mobile phone judges whether the network quality of the currently used network meets a preset first condition, if so, step 907 is executed, and if not, step 904 is executed.
Wherein, if the handset is connected to only one network, the network currently in use is the connected network. Or, if the mobile phone is connected to more than 1 network at the same time, for example, connected to a WiFi network and a 4G network at the same time, or connected to a WiFi network and a 5G network at the same time, at this time, one of the networks, for example, the WiFi network, is generally used in the mobile phone for transmitting network data, where the currently used network is: the network used by the mobile phone for transmitting the network data is selected from 1 or more networks connected to the mobile phone.
The first condition is used for enabling the mobile phone to timely acquire the audio stream of the online audio file for playing under the network quality. The judgment of the step aims at: the method and the device prevent the mobile phone from being incapable of acquiring the audio stream of the online audio file in time due to the network quality problem, so that the incoming call ringtone cannot be played in time to prompt the user of the incoming call. Through the processing of the step, the mobile phone can play the online audio file as the incoming call ringtone under the condition that the network quality is good and the audio stream of the online audio file can be timely acquired, and play the audio file locally stored in the mobile phone as the incoming ringtone under the condition that the network quality is poor and the audio stream of the online audio file cannot be guaranteed to be timely acquired, so that the mobile phone can normally prompt the incoming call through the incoming ringtone.
Optionally, the first condition may include, but is not limited to: the network delay is not greater than a preset second value, and/or the data transmission speed is not less than a preset third value. The specific value of the second value is not limited in the embodiments of the present application, and for example, the second value may be 100 ms. The specific value of the third numerical value is not limited in the embodiments of the present application.
Step 907: the mobile phone acquires a first online audio file from the server according to the first positioning information, and plays the acquired first online audio file as incoming call ringtone.
According to the method, when the network quality meets a first condition, an online audio file is played as the incoming call ringtone, and when the network quality does not meet the first condition, a local audio file is played as the incoming ringtone, so that the requirement that a user plays favorite music as the incoming ringtone is met, and the local audio file is played as the incoming ringtone when the online audio file cannot be played as the incoming ringtone in time, so that the mobile phone can be ensured to prompt for the incoming call in time.
In the embodiment of the present application shown in fig. 10, an audio stream playing policy after the network quality of the mobile phone that is using the network meets the first condition is further subdivided. Specifically, referring to fig. 10, step 907 is replaced by the following steps 1001 to 1003:
step 1001: the mobile phone judges whether the network quality of the network in use meets a second condition, if so, step 1002 is executed, and if not, step 1003 is executed;
wherein, the determining, by the mobile phone, whether the network quality of the network in use satisfies the second condition may include:
the mobile phone judges whether the network delay of the using network is not more than a second numerical value or not, and whether the data transmission speed of the using network is not less than a third numerical value or not;
if the network delay of the using network is not more than the second value and the data transmission speed of the using network is not less than the third value, the judgment result is yes; otherwise, judging whether the result is negative.
Step 1002: and the mobile phone starts to play the complete audio stream of the first audio file as the incoming call ringtone after obtaining and caching the complete audio stream of the first audio file from the first server according to the first positioning information.
Step 1003: and the mobile phone acquires and caches the audio stream of the first audio file from the first server according to the first positioning information, and starts to play the cached audio stream as the incoming call ringtone after the data volume of the cached audio stream reaches a preset first numerical value.
If the network delay of the network in which the mobile phone is using is not greater than the second value and the data transmission speed of the network in which the mobile phone is using is not less than the third value, it indicates that the time for the mobile phone to cache and obtain the complete audio stream of the first audio file is very short, and the timeliness of the mobile phone playing the first audio file as the incoming call ringtone cannot be affected, so that step 1002 is executed, and the mobile phone plays the complete audio stream after caching the complete audio stream;
otherwise, it indicates that the mobile phone may cache the complete audio stream of the obtained first audio file, but the time may be relatively long, which may affect the timeliness of playing the first audio file as the ring tone, so as to execute step 1003, in the process of caching, the cached audio stream is started to be played, thereby ensuring that the first audio file can be played as the ring tone, and the first audio file can be played as the ring tone in time to prompt the incoming call.
In the above embodiments, a mobile phone is taken as an example for explanation, and the embodiments of the present application may be further extended from a mobile phone to other electronic devices that need to perform incoming call prompting, such as a vehicle-mounted device, a smart watch, and the like.
In the above embodiments, the prompt of the incoming call information is taken as an example, and the embodiments of the present application may further be extended to prompt of other information received by the electronic device, such as a short message, and details are not described here.
Referring to fig. 11, in conjunction with the software system of the electronic device shown in fig. 4, the above ring tone setting may be implemented at the application layer and the application framework layer. Specifically, the incoming call ringtone setting method may set a setting entry of an incoming call ringtone in an application Layer, and needs to be supported by an operating system side of a mobile phone, specifically, the positioning information that needs to be supported by a Telecom module of the application framework Layer of the operating system side to set the incoming call ringtone may be a network address such as a HyperText Transfer Protocol (HTTP), a HyperText Transfer security Protocol (HTTP), a Socket (Socket), and the like, and the setting of the URI of the incoming call ringtone in the Telecom module is realized by a multimedia management module in the application framework Layer; in the incoming call prompting method, incoming call information is reported to a Telecom module through a modem (modem)/Real Time Clock (RTC) (modem call or Voice over Internet Protocol (VoIP) call based on IP), the Telecom module selects to use first positioning information or second positioning information according to network quality information such as network delay, whether to register a 5G network, whether to connect WiFi, whether to register a 4G network and the like, namely, an online audio file is played as an incoming call ring or a locally stored audio file is played as the incoming call ring, and the selected positioning information is sent to a multimedia management module; the audio stream management module is used for acquiring and caching the audio stream according to the positioning information; the multimedia management module can acquire the audio stream from the audio stream management module to play.
In the incoming call ringtone setting method in the embodiment of the application, the electronic device may further store the first positioning information and the second positioning information in a second server, and the second server is a backup server of the positioning information of the incoming call ringtone of the electronic device, so that the user may further synchronize the first positioning information and the second positioning information to other electronic devices of the user. Specifically, referring to fig. 12, a user may log in a second server on a first electronic device, such as a mobile phone, through an account, and send first positioning information and second positioning information to the second server; the second server correspondingly stores the account information, the first positioning information and the second positioning information; then, the user can log in a second server through the same account on a second electronic device, for example, another mobile phone, the second electronic device obtains the first positioning information and the second positioning information from the second server, and the second electronic device sets the first positioning information and the second positioning information in the second electronic device correspondingly according to the obtained first positioning information and second positioning information. It should be noted that, besides the positioning information, the setting source of the first positioning information, the information of the first online audio file (such as the name of the song, the name of the singer, the name of the album, etc.) may be further sent to the second server for backup, and synchronized with the first positioning information to the second electronic device. The setting source refers to a providing platform of the first online audio file indicated by the first positioning information, for example, the setting source corresponding to the first positioning information in the method shown in fig. 5 may be a name set by a mobile phone manufacturer for the providing platform of the online audio file: XX music, for example, the setting source corresponding to the first positioning information in the method shown in fig. 7 may be a name set by the provider of the third-party app for the third-party app: YY music, and the like. Referring to fig. 13A, assume that an incoming call ring setting interface in the first electronic device is shown as interface 131; then, referring to fig. 13B, after synchronizing the positioning information of the first electronic device to the second electronic device, the incoming ring setting interface in the second electronic device may be as shown in interface 132, where the setting information for the local music under the incoming ring and the online ring are the same. Referring to fig. 13B, if the second electronic device can access the setting source of the online ringtone, for example, if the second electronic device and the first electronic device are both mobile phones manufactured by the same mobile phone manufacturer and can access XX music provided by the mobile phone manufacturer, the user may present an online ringtone setting interface, for example, as shown in interface 133, when operating the "online ringtone" control in selection interface 132 by clicking with a finger or the like, and if the second electronic device cannot access XX music, the second electronic device may present an inaccessible alert, for example, as shown in interface 134. Referring to fig. 13C, it is assumed that the setting source of the first positioning information in the first electronic device is the third-party app: YY music, the incoming ringtone setting interface in the second electronic device after the synchronization of the positioning information may be as shown in interface 135, if the third-party app is installed in the second electronic device: YY music, the second electronic device may open the third-party app when the user operates the "online ringtone" control in the selection interface 135 by clicking with a finger or the like: YY music and play the first online audio file indicated by the first positioning information, for example, as shown in interface 136; if the third-party app is not installed in the second electronic device: YY music, the second electronic device may present a prompt to install the YY music, such as shown in interface 137.
It is to be understood that some or all of the steps or operations in the above-described embodiments are merely examples, and other operations or variations of various operations may be performed by the embodiments of the present application. Further, the various steps may be performed in a different order presented in the above-described embodiments, and it is possible that not all of the operations in the above-described embodiments are performed.
Fig. 14 is a schematic structural diagram of an embodiment of an apparatus for setting incoming ringtone according to the present application, and as shown in fig. 14, the apparatus 1400 may include:
a presentation unit 1410 for presenting description information of at least one online audio file;
a detecting unit 1420 configured to detect a first setting operation with respect to first description information among the description information, the first description information being description information of a first online audio file, the first setting operation indicating that the first online audio file is set as a first incoming call ringtone;
a sending unit 1430 for sending a first request message to a first server, the first server being a server that provides the first online audio file; the first request message is used for requesting to set the first online audio file as an incoming call ringtone;
a receiving unit 1440, configured to receive file location information sent by the first server, where the file location information is location information of the first online audio file;
the storage unit 1450 is configured to store the file location information as first location information, where the first location information is used to record location information of a first incoming call ringtone of the electronic device.
In a possible implementation manner, the sending unit may be further configured to: sending a second request message to the first server, wherein the second request message is used for requesting description information of an online audio file;
the receiving unit may be further configured to: receiving audio file information sent by the first server in response to the second request message, wherein the audio file information comprises: description information of the online audio file;
the display unit may specifically be configured to: and displaying the description information of the online audio file included in the audio file information.
In one possible implementation, the location information is a URI.
In a possible implementation manner, the sending unit may be further configured to: and sending the first positioning information to the second server so that the second server stores the first positioning information.
Fig. 15 is a schematic structural diagram of an embodiment of an incoming call prompt apparatus according to the present application, in which first positioning information is preset, where the first positioning information is used to indicate a first audio file stored in a first server; as shown in fig. 15, the apparatus 1500 may include:
a receiving unit 1510 configured to receive incoming call information;
a playing unit 1520, configured to acquire the first audio file from the first server according to the first positioning information after determining that the device is connected to at least one network and the network quality of the first network meets a preset first condition, and play the first audio file as an incoming call ringtone; the first network is a network being used by the electronic device among at least one network to which the electronic device has been connected.
In a possible implementation manner, second positioning information is further preset in the apparatus, where the second positioning information is used to indicate a second audio file locally stored in the electronic device; the playback unit may be further operable to: and after the electronic equipment is determined not to be connected with the network or the electronic equipment is determined to be connected with the network and the network quality of the first network does not meet a preset first condition, acquiring the second audio file according to the second positioning information, and playing the second audio file as an incoming call ringtone.
In a possible implementation manner, the playing unit may specifically be configured to: determining that the network quality of the first network meets a preset second condition, wherein the network quality corresponding to the second condition is higher than the network quality corresponding to the first condition, and starting to play the complete audio stream of the first audio file as a ring tone after the complete audio stream is obtained from the first server and cached according to the first positioning information; and determining that the network quality of the first network does not meet a preset second condition, acquiring and caching the audio stream of the first audio file from the first server according to the first positioning information, and starting to play the cached audio stream as a ring tone after the data volume of the cached audio stream reaches a preset first numerical value.
In a possible implementation manner, the playing unit may specifically be configured to: and determining that the network delay of the first network is not greater than a second value, and/or the data transmission speed of the first network is not less than a third value.
In a possible implementation manner, the playing unit may specifically be configured to: determining that the network delay of the first network is smaller than a fourth numerical value and the data transmission speed of the first network is larger than a fifth numerical value; the fourth value is less than or equal to the second value, and the fifth value is greater than the third value.
The apparatuses provided in the embodiments shown in fig. 14 to 15 can be used to implement the technical solutions of the method embodiments shown in fig. 5 to 11 of the present application, and the implementation principles and technical effects thereof can be further described with reference to the related descriptions in the method embodiments.
An embodiment of the present application further provides an electronic device, including: a display screen; one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more computer programs comprising instructions which, when executed by the apparatus, cause the apparatus to perform the methods illustrated in fig. 5-11.
Embodiments of the present application further provide a computer-readable storage medium, in which a computer program is stored, and when the computer program runs on a computer, the computer is enabled to execute the method provided by the embodiments shown in fig. 5 to 11 of the present application.
Embodiments of the present application further provide a computer program product, which includes a computer program, when the computer program runs on a computer, causing the computer to execute the method provided by the embodiments shown in fig. 5 to 11 of the present application.
In the embodiments of the present application, "at least one" means one or more, "a plurality" means two or more. "and/or" describes the association relationship of the associated objects, and means that there may be three relationships, for example, a and/or B, and may mean that a exists alone, a and B exist simultaneously, and B exists alone. Wherein A and B can be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one of the following" and similar expressions refer to any combination of these items, including any combination of singular or plural items. For example, at least one of a, b, and c may represent: a, b, c, a and b, a and c, b and c or a and b and c, wherein a, b and c can be single or multiple.
Those of ordinary skill in the art will appreciate that the various elements and algorithm steps described in connection with the embodiments disclosed herein can be implemented as electronic hardware, computer software, or combinations of electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, any function, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present application, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present disclosure, and all the changes or substitutions should be covered by the protection scope of the present application. The protection scope of the present application shall be subject to the protection scope of the claims.

Claims (12)

1. A method for setting incoming call ringtone, which is applied to electronic equipment, is characterized by comprising the following steps:
displaying description information of at least one online audio file;
detecting a first setting operation for first description information in the description information, the first description information being description information of a first online audio file, the first setting operation being for indicating that the first online audio file is set as a first incoming call ringtone;
sending a first request message to a first server, the first server being a server that provides the first online audio file; the first request message is used for requesting to set the first online audio file as an incoming call ringtone;
receiving file positioning information sent by the first server, wherein the file positioning information is positioning information of the first online audio file;
and storing the file positioning information as first positioning information, wherein the first positioning information is used for recording the positioning information of a first incoming call ringtone of the electronic equipment.
2. The method of claim 1, wherein before presenting the description information of the at least one online audio file, further comprising:
sending a second request message to the first server, wherein the second request message is used for requesting description information of an online audio file;
receiving audio file information sent by the first server in response to the second request message, wherein the audio file information comprises: description information of the online audio file;
the displaying the description information of at least one online audio file comprises the following steps:
and displaying the description information of the online audio file included in the audio file information.
3. Method according to claim 1 or 2, wherein said file location information is a uniform resource identifier, URI.
4. The method of any of claims 1 to 3, further comprising:
the electronic equipment sends the first positioning information to a second server so that the second server stores the first positioning information.
5. An incoming call prompting method is applied to electronic equipment, and is characterized in that first positioning information is preset in the electronic equipment and used for indicating a first audio file stored in a first server, and the method comprises the following steps:
receiving incoming call information;
after the electronic equipment is determined to be connected with at least one network and the network quality of a first network meets a preset first condition, acquiring the first audio file from the first server according to the first positioning information, and playing the first audio file as an incoming call ringtone; the first network is a network being used by the electronic device among at least one network to which the electronic device has been connected.
6. The method according to claim 5, wherein second positioning information is preset in the electronic device, and the second positioning information is used for indicating a second audio file stored locally in the electronic device; the method further comprises the following steps:
and after the electronic equipment is determined not to be connected with the network or the electronic equipment is determined to be connected with the network and the network quality of the first network does not meet a preset first condition, the second audio file is obtained according to the second positioning information, and the second audio file is played as an incoming call ringtone.
7. The method according to claim 5 or 6, wherein the obtaining the first audio file from the first server according to the first positioning information, and playing the first audio file as an incoming call ring comprises:
determining that the network quality of the first network meets a preset second condition, wherein the network quality corresponding to the second condition is higher than the network quality corresponding to the first condition, and starting to play the complete audio stream of the first audio file as a ring tone after the complete audio stream is obtained from the first server and cached according to the first positioning information;
and determining that the network quality of the first network does not meet a preset second condition, acquiring and caching the audio stream of the first audio file from the first server according to the first positioning information, and starting to play the cached audio stream as a ring tone after the data volume of the cached audio stream reaches a preset first numerical value.
8. The method of any of claims 5 to 7, wherein determining that the network quality of the first network satisfies a preset first condition comprises: and determining that the network delay of the first network is not greater than a second value, and/or the data transmission speed of the first network is not less than a third value.
9. The method of claim 8, wherein determining that the network quality of the first network satisfies a predetermined second condition comprises:
determining that the network delay of the first network is smaller than a fourth numerical value and the data transmission speed of the first network is larger than a fifth numerical value; the fourth value is less than or equal to the second value, and the fifth value is greater than the third value.
10. An electronic device, comprising:
one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more computer programs comprising instructions which, when executed by the apparatus, cause the apparatus to perform the method of any of claims 1 to 4.
11. An electronic device, comprising:
one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more computer programs comprising instructions which, when executed by the apparatus, cause the apparatus to perform the method of any of claims 5 to 9.
12. A computer-readable storage medium, in which a computer program is stored which, when run on a computer, causes the computer to carry out the method of any one of claims 1 to 9.
CN202011270133.2A 2020-11-13 2020-11-13 Incoming call bell setting method, incoming call prompting method and electronic equipment Active CN114500728B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011270133.2A CN114500728B (en) 2020-11-13 2020-11-13 Incoming call bell setting method, incoming call prompting method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011270133.2A CN114500728B (en) 2020-11-13 2020-11-13 Incoming call bell setting method, incoming call prompting method and electronic equipment

Publications (2)

Publication Number Publication Date
CN114500728A true CN114500728A (en) 2022-05-13
CN114500728B CN114500728B (en) 2023-07-18

Family

ID=81490765

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011270133.2A Active CN114500728B (en) 2020-11-13 2020-11-13 Incoming call bell setting method, incoming call prompting method and electronic equipment

Country Status (1)

Country Link
CN (1) CN114500728B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116708630A (en) * 2022-09-01 2023-09-05 荣耀终端有限公司 Alarm clock setting method and terminal equipment

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6757360B1 (en) * 1998-07-07 2004-06-29 Intel Corporation Method and apparatus for filtering incoming telephone calls
US20070112977A1 (en) * 2005-11-10 2007-05-17 Hornal Daniel J Online ringtone creation utility and service
US20080167968A1 (en) * 2007-01-07 2008-07-10 Eddy Cue Creating and Purchasing Ringtones
US20090220067A1 (en) * 2008-02-28 2009-09-03 Richard Leeds Method and apparatus for conversation based ringtone
WO2015038211A1 (en) * 2013-09-13 2015-03-19 Facebook, Inc. Techniques for mobile device personalization
CN106254655A (en) * 2016-08-10 2016-12-21 北京小米移动软件有限公司 The tinkle of bells method to set up and device
WO2018076444A1 (en) * 2016-10-31 2018-05-03 宇龙计算机通信科技(深圳)有限公司 Method and apparatus for turning off terminal audio
CN108184016A (en) * 2017-12-22 2018-06-19 深圳市金立通信设备有限公司 A kind of method, terminal and computer readable storage medium that ringing tone is set
US20180338035A1 (en) * 2017-05-16 2018-11-22 Apple Inc. Voice communication method
CN109766036A (en) * 2018-12-24 2019-05-17 华为终端有限公司 Message treatment method and electronic equipment
CN110351437A (en) * 2019-06-05 2019-10-18 北京达佳互联信息技术有限公司 Incoming call reminding method, device, electronic equipment and readable storage medium storing program for executing
WO2020119492A1 (en) * 2018-12-10 2020-06-18 华为技术有限公司 Message processing method and related apparatus

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6757360B1 (en) * 1998-07-07 2004-06-29 Intel Corporation Method and apparatus for filtering incoming telephone calls
US20070112977A1 (en) * 2005-11-10 2007-05-17 Hornal Daniel J Online ringtone creation utility and service
US20080167968A1 (en) * 2007-01-07 2008-07-10 Eddy Cue Creating and Purchasing Ringtones
US20090220067A1 (en) * 2008-02-28 2009-09-03 Richard Leeds Method and apparatus for conversation based ringtone
WO2015038211A1 (en) * 2013-09-13 2015-03-19 Facebook, Inc. Techniques for mobile device personalization
CN106254655A (en) * 2016-08-10 2016-12-21 北京小米移动软件有限公司 The tinkle of bells method to set up and device
WO2018076444A1 (en) * 2016-10-31 2018-05-03 宇龙计算机通信科技(深圳)有限公司 Method and apparatus for turning off terminal audio
US20180338035A1 (en) * 2017-05-16 2018-11-22 Apple Inc. Voice communication method
CN108184016A (en) * 2017-12-22 2018-06-19 深圳市金立通信设备有限公司 A kind of method, terminal and computer readable storage medium that ringing tone is set
WO2020119492A1 (en) * 2018-12-10 2020-06-18 华为技术有限公司 Message processing method and related apparatus
CN109766036A (en) * 2018-12-24 2019-05-17 华为终端有限公司 Message treatment method and electronic equipment
CN110351437A (en) * 2019-06-05 2019-10-18 北京达佳互联信息技术有限公司 Incoming call reminding method, device, electronic equipment and readable storage medium storing program for executing

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
段朝辉;宫长龙;: "基于ims的多媒体彩铃业务的设计与实现", 中国新通信 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116708630A (en) * 2022-09-01 2023-09-05 荣耀终端有限公司 Alarm clock setting method and terminal equipment
CN116708630B (en) * 2022-09-01 2024-04-16 荣耀终端有限公司 Alarm clock setting method and terminal equipment

Also Published As

Publication number Publication date
CN114500728B (en) 2023-07-18

Similar Documents

Publication Publication Date Title
CN112231025B (en) UI component display method and electronic equipment
WO2020211701A1 (en) Model training method, emotion recognition method, related apparatus and device
CN113542839B (en) Screen projection method of electronic equipment and electronic equipment
CN111095723B (en) Wireless charging method and electronic equipment
CN111628916B (en) Method for cooperation of intelligent sound box and electronic equipment
CN109981885B (en) Method for presenting video by electronic equipment in incoming call and electronic equipment
CN114466107A (en) Sound effect control method and device, electronic equipment and computer readable storage medium
CN112543447A (en) Device discovery method based on address list, audio and video communication method and electronic device
CN113821767A (en) Application program authority management method and device and electronic equipment
CN114095599B (en) Message display method and electronic equipment
CN114579389A (en) Application management method, device, equipment and storage medium
CN111343326A (en) Method and related device for acquiring test log
CN113571035A (en) Noise reduction method and noise reduction device
CN114338913B (en) Fault diagnosis method, electronic device and readable storage medium
CN114064160A (en) Application icon layout method and related device
CN114500728B (en) Incoming call bell setting method, incoming call prompting method and electronic equipment
CN114995715B (en) Control method of floating ball and related device
CN113380240B (en) Voice interaction method and electronic equipment
CN117009005A (en) Display method, automobile and electronic equipment
CN113950045B (en) Subscription data downloading method and electronic equipment
CN114003241A (en) Interface adaptation display method and system of application program, electronic device and medium
CN111339513A (en) Data sharing method and device
CN114691248B (en) Method, device, equipment and readable storage medium for displaying virtual reality interface
CN113254409B (en) File sharing method, system and related equipment
WO2023197999A1 (en) Display method and electronic device

Legal Events

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