CN114500728B - Incoming call bell setting method, incoming call prompting method and electronic equipment - Google Patents
Incoming call bell setting method, incoming call prompting method and electronic equipment Download PDFInfo
- Publication number
- CN114500728B CN114500728B CN202011270133.2A CN202011270133A CN114500728B CN 114500728 B CN114500728 B CN 114500728B CN 202011270133 A CN202011270133 A CN 202011270133A CN 114500728 B CN114500728 B CN 114500728B
- Authority
- CN
- China
- Prior art keywords
- audio file
- network
- incoming call
- information
- positioning 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.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/14—Details of searching files based on file metadata
- G06F16/148—File search processing
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Library & Information Science (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Telephone Function (AREA)
Abstract
The embodiment of the application provides a setting method of an incoming call bell, an incoming call prompting method and electronic equipment, wherein in the setting method of the incoming call bell, description information of at least one online audio file is displayed, first setting operation of first description information in the displayed description information is detected, a first request message is sent to a first server, file positioning information sent by the first server is received, the file positioning information is stored as first positioning information, and the first positioning information is used for recording positioning information of the incoming call bell in the electronic equipment. According to the embodiment of the invention, the online audio file can be set as the incoming call bell, so that the user can set more candidates of the audio file of the incoming call bell, and the user experience is improved.
Description
Technical Field
The application relates to the technical field of intelligent terminals, in particular to an incoming call bell setting method, an incoming call prompting method and electronic equipment.
Background
When a user sets an incoming ring tone in an electronic device such as a mobile phone, the source of an audio file as an incoming ring tone is typically an audio file stored internally in the electronic device or an audio file stored in an external storage device such as a secure data memory card (Secure Digital Memory Card, SD card). The audio files stored in the electronic equipment and the external storage device are relatively fixed and monotonous, so that a user cannot set favorite music as an incoming call bell at will, and the user experience is affected.
Disclosure of Invention
The application provides a method for setting an incoming call ringtone and electronic equipment, which can provide more audio file candidates 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 ring tone, which is applied to an electronic device, and includes: displaying the description information of at least one online audio file; detecting a first setting operation for first descriptive information in the presented descriptive information, the first descriptive information being descriptive information of a first online audio file, the first setting operation being used to indicate setting the first online audio file as a first incoming ring tone; 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 bell; receiving file positioning information sent by a first server, wherein the file positioning information is the positioning information of a first online audio file; the file positioning information is stored as first positioning information, and the first positioning information is used for recording positioning information of a first incoming call bell of the electronic equipment. The method can enable the user to set the online audio file as the incoming call ringtone, thereby providing more choices for the user to set the incoming call ringtone and improving the user experience.
In one possible implementation, 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: descriptive information of the online audio file;
presenting descriptive 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, the method further includes: the electronic device sends the first positioning information to the second server to cause the second server to store 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 positioning information is preset in the electronic device, where the first positioning 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 a first network meets a preset first condition, acquiring a first audio file from a first server according to first positioning information, and playing the first audio file as an incoming call bell; 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 the method, after receiving the incoming call information, an online audio file is acquired as an incoming call bell, so that the incoming call prompt is realized.
In a possible implementation manner, 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 steps of: and after the electronic equipment is determined to be not 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 an incoming call bell.
In the method, when the network quality meets the first condition, the online first audio file is played as the incoming call bell, and when the network quality does not meet the first condition, the local second audio file is played as the incoming call bell, so that the requirement that the user plays favorite music as the incoming call bell is met, and when the online audio file cannot be played in time as the incoming call bell, the local audio file is played as the incoming call bell, and the incoming call prompt is ensured.
In one possible implementation, obtaining a first audio file from a first server according to first positioning information, playing the first audio file as an incoming ring tone, 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 that corresponding to the first condition, acquiring and caching the complete audio stream of the first audio file from the first server according to the first positioning information, and starting to play the complete audio stream as an incoming call bell; 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 an incoming call bell after the data volume of the cached audio stream reaches a preset first value.
In one possible implementation manner, determining that the network quality of the first network meets a preset first condition includes: and determining that the network delay of the first network is not more than the second value and/or the data transmission speed of the first network is not less than the third value.
In one possible implementation manner, determining that the network quality of the first network meets the preset second condition includes: determining that the network delay of the first network is smaller than a fourth value, and the data transmission speed of the first network is larger than a fifth 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, including:
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, including:
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 a computer program stored therein, which when run on a computer causes the computer to perform the method of any one 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 one 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 flowchart of an example of a method for setting an incoming ring tone;
FIG. 2 is a flow chart of one example of a call prompting 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 diagram illustrating a GUI example of a ring tone setting method according to an embodiment of the present application;
FIG. 6 is a flowchart of one embodiment of a method for setting an incoming ring tone of the present application;
fig. 7 is a diagram illustrating another GUI example of the incoming ring tone setting method according to the embodiment of the present application;
FIG. 8 is a flowchart of another embodiment of a method for setting an incoming ring tone according to the present application;
FIG. 9 is a flow chart of one embodiment of an incoming call prompting method of the present application;
FIG. 10 is a flowchart of another embodiment of an incoming call prompting method of the present application;
FIG. 11 is a diagram showing an exemplary software architecture for implementing the incoming ring tone setting method and incoming prompting method of the present application;
FIG. 12 is a flowchart of a method for backup and synchronization of location information of incoming ring tones of the present application;
FIG. 13A is an exemplary diagram of a UI interface of a first electronic device of the present application;
fig. 13B and 13C are diagrams illustrating UI interfaces of a second electronic device of the present application;
FIG. 14 is a block diagram of one embodiment of an incoming ring tone setting device of the present application;
fig. 15 is a block diagram of an embodiment of an incoming call prompting apparatus according to the present application.
Detailed Description
The terminology used in the description 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 ring is generally an audio file stored in the mobile phone or an audio file stored in an SD card of the mobile phone.
In one example, referring to the incoming ring setting flow shown in fig. 1, if a user selects a certain audio file in a mobile phone, the audio file is set as an incoming ring, the mobile phone obtains a uniform resource identifier (Uniform Resource Identifier, URI) of the audio file, and stores the URI of the audio file in a database preset in the mobile phone; then, referring to the incoming ring playing flow shown in fig. 2, when the mobile phone receives an incoming call, the URI of the incoming ring is read from the database, and a specific audio file is located according to the URI, and the audio file is played, so that the playing of the incoming ring is realized.
The audio files stored in the electronic equipment and the external storage device are relatively fixed and monotonous, so that a user cannot set favorite music as an incoming call bell at will, and the user experience is affected.
The application provides a method for setting an incoming call ringtone and electronic equipment, which can provide more audio file candidates for setting the incoming call ringtone for a user and improve user experience.
The application also provides a call prompting method, which realizes call prompting based on the call ringtone set by the call ringtone setting method.
The method provided by the embodiment of the application can be applied to the electronic equipment with the call function, for example: a mobile phone, a smart watch, or a car phone device, etc.
By way of example, fig. 3 shows a schematic structural diagram of an 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 (universal serial bus, USB) interface 330, a charge 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 ear-piece interface 370D, a sensor module 380, keys 390, a motor 391, an indicator 392, a camera 393, a display screen 394, and a user identification module (subscriber identification module, SIM) card interface 395, among others. 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 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 should be understood that the illustrated structure of the embodiment of the present invention does not constitute a specific limitation on the electronic device 300. In other embodiments of the present application, electronic device 300 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 310 may include one or more processing units, such as: the processor 310 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish 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 the processor 310 has just used or recycled. If the processor 310 needs to reuse the instruction or data, it may be called directly from the memory. Repeated accesses are avoided and the latency of the processor 310 is reduced, thereby improving the efficiency of the system.
In some embodiments, processor 310 may include one or more interfaces. The interfaces may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface, among others.
The I2C interface is a bi-directional synchronous serial bus comprising a serial data line (SDA) and a serial clock line (derail clock line, SCL). In some embodiments, the processor 310 may contain multiple sets of I2C buses. The processor 310 may be coupled to the touch sensor 380K, charger, flash, camera 393, etc., respectively, via different I2C bus interfaces. For example: the processor 310 may couple the touch sensor 380K through an I2C interface, such that the processor 310 communicates with the touch sensor 380K through an I2C bus interface, implementing the touch functionality of the electronic device 300.
The I2S interface may be used for audio communication. In some embodiments, the processor 310 may contain 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 may communicate audio signals to the wireless communication module 360 via the I2S interface to enable answering calls via the bluetooth headset.
PCM interfaces may also be used for audio communication to sample, quantize and encode 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 via the PCM interface to enable phone answering via the 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 for asynchronous communications. The bus may be a bi-directional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is typically used to connect the processor 310 with the wireless communication module 360. For example: the processor 310 communicates with a bluetooth module in the wireless communication module 360 through a UART interface to implement a bluetooth function. In some embodiments, the audio module 370 may transmit audio signals to the wireless communication module 360 through a UART interface to implement a function of playing music through a bluetooth headset.
The MIPI interface may be used to connect the processor 310 to peripheral devices such as the display screen 394, the camera 393, and the like. The MIPI interfaces include camera serial interfaces (camera serial interface, CSI), display serial interfaces (display serial interface, DSI), and the like. In some embodiments, processor 310 and camera 393 communicate through a CSI interface, implementing the photographing function of electronic device 300. The processor 310 and the display screen 394 communicate via a 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 or as a data signal. In some embodiments, a GPIO interface may be used to connect processor 310 with camera 393, display 394, wireless communication module 360, audio module 370, sensor module 380, and the like. The GPIO interface may also be configured as an I2C interface, an I2S interface, a UART interface, an MIPI interface, etc.
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, or may be used to transfer data between the electronic device 300 and a peripheral device. And can also be used for connecting with a headset, and playing audio through the headset. The interface may also be used to connect other electronic devices, such as AR devices, etc.
It should be understood that the interfacing relationship between the modules illustrated in the embodiments of the present invention is only illustrative, and is not meant to limit the structure of the electronic device 300. In other embodiments of the present application, the electronic device 300 may also use different interfacing manners, or a combination of multiple interfacing manners in the foregoing embodiments.
The charge management module 340 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charge management module 340 may receive a charging input of a wired charger through the USB interface 330. In some wireless charging embodiments, the charge management module 340 may receive wireless charging input through a wireless charging coil of the electronic device 300. The battery 342 is charged by the charge management module 340, and the electronic device may be powered by the power management module 341.
The power management module 341 is configured to connect the battery 342, the charge 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 to power the processor 310, the internal memory 321, the display screen 394, the camera 393, the wireless communication module 360, and the like. The power management module 341 may also be configured to monitor battery capacity, battery cycle number, battery health (leakage, impedance), and other parameters. 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 also 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 may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into 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 for wireless communication, including 2G/3G/4G/5G, etc., applied on the electronic device 300. The mobile communication module 350 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA), etc. The mobile communication module 350 may receive electromagnetic waves from the antenna 1, perform processes such as filtering, amplifying, and the like on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation. The mobile communication module 350 may amplify the signal modulated by the modem processor, and convert the signal into electromagnetic waves through the antenna 1 to radiate the electromagnetic waves. 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 provided 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 the 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 transmits the demodulated low frequency baseband signal to the 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 speaker 370A, receiver 370B, etc.), or displays images or video through display screen 394. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 350 or other functional module, independent of the processor 310.
The wireless communication module 360 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wireless fidelity (wireless fidelity, wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field wireless communication technology (near field communication, NFC), infrared technology (IR), etc., as applied to the electronic device 300. The wireless communication module 360 may be one or more devices that integrate at least one communication processing module. The wireless communication module 360 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signals, filters the 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 it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 2.
In some embodiments, antenna 1 and mobile communication module 350 of electronic device 300 are coupled, and antenna 2 and wireless communication module 360 are coupled, such that electronic device 300 may communicate with a network and other devices via wireless communication techniques. The wireless communication techniques may include the Global System for Mobile communications (global system for mobile communications, GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), wideband code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC, FM, and/or IR techniques, among others. The GNSS may include a global satellite positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a beidou satellite navigation system (beidou navigation satellite system, BDS), a quasi zenith satellite system (quasi-zenith satellite system, QZSS) and/or a satellite based augmentation system (satellite based augmentation systems, SBAS).
The electronic device 300 implements display functions through a GPU, a display screen 394, an application processor, and the like. The GPU is a microprocessor for image processing, connected to the display screen 394 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 310 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 394 is used for displaying images, videos, and the like. The display screen 394 includes a display panel. The display panel may employ a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED) or an active-matrix organic light-emitting diode (matrix organic light emitting diode), a flexible light-emitting diode (flex), a mini, a Micro led, a Micro-OLED, a quantum dot light-emitting diode (quantum dot light emitting diodes, QLED), or 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.
Electronic device 300 may implement capture functionality through an ISP, camera 393, video codec, GPU, display 394, and application processor, among others.
The ISP is used to process the data fed back by camera 393. For example, when photographing, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electric signal, and the camera photosensitive element transmits the electric signal to the ISP for processing and is converted into an image visible to naked eyes. ISP can also optimize 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 provided in the 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 onto the photosensitive element. The photosensitive element may be a charge coupled device (charge coupled device, CCD) or a Complementary Metal Oxide Semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, which is then transferred to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV, or the like format. 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 other digital signals besides digital image signals. For example, when the electronic device 300 is selecting a frequency bin, the digital signal processor is used to fourier transform the frequency bin energy, or the like.
Video codecs are used to compress or decompress digital video. The electronic device 300 may support one or more video codecs. Thus, the electronic device 300 may play or record video in a variety of encoding formats, such as: dynamic picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
The NPU is a neural-network (NN) computing processor, and can rapidly process input information by referencing a biological neural network structure, for example, referencing a transmission mode between human brain neurons, and can also continuously perform self-learning. Applications such as intelligent cognition of the electronic device 300 may be implemented by the NPU, for example: image recognition, face recognition, speech recognition, text understanding, etc.
The external memory interface 320 may be used to connect an external memory card, such as a Micro SD card, to enable expansion of the memory capabilities of the electronic device 300. The external memory card communicates with the processor 310 through an external memory interface 320 to implement data storage functions. For example, files such as music, video, etc. are stored in an external memory card.
The internal memory 321 may be used to store computer executable program code comprising instructions. The internal memory 321 may include a storage program area and a storage data area. The storage program area may store an application program (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system, etc. The storage data area may store data created during use of the electronic device 300 (e.g., audio data, phonebook, etc.), and so on. In addition, the internal memory 321 may include a high-speed random access memory, and may also include a nonvolatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like. The processor 310 performs 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 functionality through an audio module 370, a speaker 370A, a receiver 370B, a microphone 370C, an ear-headphone interface 370D, and an application processor, among others. 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 of the functional modules of the audio module 370 may be disposed in the processor 310.
Speaker 370A, also known as a "horn," is used to convert audio electrical signals into sound signals. The electronic device 300 may listen to music, or to hands-free conversations, through the speaker 370A.
A receiver 370B, also referred to as a "earpiece", is used to convert the audio electrical signal into a sound signal. When electronic device 300 is answering a telephone call or voice message, voice may be received by placing receiver 370B close to the human ear.
Microphone 370C, also referred to as a "microphone," is used to convert sound signals into electrical signals. When making a call or transmitting voice information, the user can sound near the microphone 370C through the mouth, inputting a sound signal to 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, and may implement a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 300 may also be provided with three, four, or more microphones 370C to enable collection of sound signals, noise reduction, identification of sound sources, directional recording functions, etc.
The earphone interface 370D is for connecting a wired earphone. The headset interface 370D may be a USB interface 330 or a 3.5mm open mobile electronic device platform (open mobile terminal platform, OMTP) standard interface, a american cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
The pressure sensor 380A is configured to sense a pressure signal and convert 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 is of various types, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a capacitive pressure sensor comprising at least two parallel plates with conductive material. When a force is applied to the pressure sensor 380A, the capacitance between the electrodes changes. The electronic device 300 determines the strength 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 touch operation intensity according to the pressure sensor 380A. The electronic device 300 may also calculate the location of the touch based on the detection signal of the pressure sensor 380A. In some embodiments, touch operations that act on the same touch location, but at different touch operation strengths, may correspond to different operation instructions. For example: and executing an instruction for checking the short message when the touch operation with the touch operation intensity smaller than the first pressure threshold acts on the short message application icon. And executing an instruction for newly creating the short message when the touch operation with the touch operation intensity being greater than or equal to the first pressure threshold acts on the short message application icon.
The gyro sensor 380B may be used to determine a motion gesture of the electronic device 300. In some embodiments, the angular velocity of electronic device 100 about three axes (i.e., x, y, and z axes) may be determined by gyro 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 by the lens module according to the angle, and makes the lens counteract the shake of the electronic device 300 through the reverse motion, so as to realize anti-shake. The gyro sensor 380B may also be used for navigating, somatosensory game scenes.
The air pressure sensor 380C is used to measure air pressure. In some embodiments, the electronic device 300 calculates altitude from barometric pressure values measured by the barometric pressure sensor 380C, aiding in positioning and navigation.
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 machine, the electronic device 300 may detect the opening and closing of the flip according to the magnetic sensor 380D. And then according to the detected opening and closing state of the leather sheath or the opening and closing state of the flip, the characteristics of automatic unlocking of the flip and the like are 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 may be detected when the electronic device 300 is stationary. The electronic equipment gesture recognition method can also be used for recognizing the gesture 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, the electronic device 300 may range using the distance sensor 380F to achieve 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 outward through the light emitting diode. The electronic device 300 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it may be determined that an object is in the vicinity of the electronic device 300. When insufficient reflected light is detected, the electronic device 300 may determine that there is no object in the vicinity of the electronic device 300. The electronic device 300 can detect that the user holds the electronic device 300 close to the ear by using the proximity light sensor 380G, so as to automatically extinguish the screen to achieve the purpose of saving power. The proximity light sensor 380G may also be used in holster mode, pocket mode to automatically unlock and lock the screen.
The ambient light sensor 380L is used to sense ambient light level. The electronic device 300 may adaptively adjust the brightness of the display screen 394 based on the perceived ambient light level. The ambient light sensor 380L may also be used to automatically adjust white balance during photographing. The ambient light sensor 380L may also cooperate with the proximity light sensor 380G to detect if the electronic device 300 is in a pocket to prevent false touches.
The fingerprint sensor 380H is used to collect a fingerprint. The electronic device 300 can utilize the collected fingerprint characteristics to realize 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 performs a temperature processing strategy using the temperature detected by the temperature sensor 380J. For example, when the temperature reported by temperature sensor 380J exceeds a threshold, electronic device 300 performs a reduction in performance of a processor located in the vicinity of temperature sensor 380J in order to reduce power consumption to implement thermal protection. In other embodiments, when the temperature is below another threshold, the electronic device 300 heats the battery 342 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 boosting of the output voltage of the battery 342 to avoid abnormal shutdown caused by low temperatures.
Touch sensor 380K, also known 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 for detecting a touch operation acting thereon or thereabout. The touch sensor may communicate the detected touch operation to the application processor to determine the touch event type. Visual output related to touch operations may be provided through the display screen 394. In other embodiments, touch sensor 380K may also be located on a surface of electronic device 300 other than at display 394.
The bone conduction sensor 380M may acquire a vibration signal. In some embodiments, bone conduction sensor 380M may acquire a vibration signal of a human vocal tract vibrating bone pieces. The bone conduction sensor 380M may also contact the pulse of the human body to receive the blood pressure pulsation signal. In some embodiments, bone conduction sensor 380M may also be provided in the headset, in combination with an osteoinductive headset. The audio module 370 may analyze the voice signal based on the vibration signal of the sound portion vibration bone block obtained 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 beat signals acquired by the bone conduction sensor 380M, so as to realize a heart rate detection function.
The keys 390 include a power on key, a volume key, etc. Key 390 may be a mechanical key. Or may be a touch key. The electronic device 300 may receive key inputs, generating key signal inputs related to user settings and function controls of the electronic device 300.
The motor 391 may generate a vibration alert. The motor 391 may be used for incoming call vibration alerting as well as for touch vibration feedback. For example, touch operations acting on different applications (e.g., photographing, audio playing, etc.) may correspond to different vibration feedback effects. The motor 391 may also correspond to different vibration feedback effects by touch operations applied to different areas of the display screen 394. Different application scenarios (such as time reminding, receiving information, alarm clock, game, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect may also support customization.
The indicator 392 may be an indicator light, which may be used to indicate a state of charge, a change in charge, a message indicating a missed call, a notification, etc.
The SIM card interface 395 is for interfacing with a SIM card. The SIM card may be inserted into the SIM card interface 395 or removed from the SIM card interface 395 to enable contact and separation with the electronic device 300. 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 Nano SIM cards, micro SIM cards, and the like. The same SIM card interface 395 can be used to insert multiple cards simultaneously. 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 external memory cards. The electronic device 300 interacts with the network through the SIM card to realize 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 microkernel architecture, a microservice architecture, or a cloud architecture. In the embodiment of the invention, taking an Android system with a layered architecture as an example, a software structure of the electronic device 300 is illustrated.
Fig. 4 is a software architecture block diagram of an electronic device 300 according to an embodiment of the invention.
The layered architecture divides the software into several layers, each with distinct roles and branches. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, from top to bottom, an application layer, an application framework layer, an Zhuoyun row (Android run) and system libraries, and a kernel layer, respectively.
The application layer may include a series of application packages.
As shown in fig. 4, the application package may include applications for cameras, gallery, calendar, phone calls, maps, navigation, WLAN, bluetooth, music, video, short messages, etc.
The application framework layer provides an application programming interface (application programming interface, API) and programming framework for application programs of the application layer. The application framework layer includes a number of predefined functions.
As shown in fig. 4, the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.
The window manager is used for managing window programs. The window manager can acquire 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 such data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebooks, 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, a display interface including a text message notification icon may include a view displaying text and a view displaying a picture.
The telephony manager is used to provide the communication functions of the electronic device 100. Such as the management of call status (including on, hung-up, etc.).
The resource manager provides various resources for the application program, such as localization strings, icons, pictures, layout files, video files, and the like.
The notification manager allows the application to display notification information in a status bar, can be used to communicate notification type messages, can automatically disappear after a short dwell, and does not require user interaction. Such as notification manager is used to inform that the download is complete, message alerts, etc. The notification manager may also be a notification in the form of a chart or scroll bar text that appears on the system top status bar, 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, a text message is prompted in a status bar, a prompt tone is emitted, the electronic device vibrates, and an indicator light blinks, etc.
Android run time includes a core library and virtual machines. Android run time is responsible for scheduling and management of the Android system.
The core library consists of 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 program layer and the application program framework layer as binary files. The virtual machine is used for executing the functions of object life cycle management, stack management, thread management, security and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface manager (surface manager), media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., openGL ES), 2D graphics engines (e.g., SGL), etc.
The surface manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
Media libraries support a variety of commonly used audio, video format playback and recording, still image files, and the like. The media library may support a variety of audio and video encoding formats, such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, etc.
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 easy understanding, the following embodiments of the present application will take an electronic device having a structure shown in fig. 3 and fig. 4 as an example, and specifically describe a method provided by the embodiments of the present application with reference to the accompanying drawings and application scenarios.
The method for setting the incoming call ringtone can set the online music as the incoming call ringtone, and is specifically described by an example.
Fig. 5 is an exemplary diagram of a graphical user interface (Graphical User Interface, GUI) of the incoming ring tone setting method of the present application, comprising:
the user enters a call ringtone setting interface 51 provided by an operating system of the mobile phone, the call ringtone setting interface 51 comprises an online ringtone control, and the user selects the online ringtone control in a mode of clicking by fingers and the like to enter an online ringtone setting interface 52;
the online ringtone setting interface 52 displays a list of online audio files, in which description information of the online audio files is displayed, where the description information is used to describe information of audio stored in the online audio files, such as song names, singer names, album names, etc. corresponding to the online audio files, and the embodiment of the present application is not limited; each online audio file corresponds to a "set ring" control 521, after the user selects a certain online audio file, the "set ring" control 521 corresponding to the online audio file is selected by means of clicking with a finger, so as to complete setting the online audio file as an incoming ring, for example, in fig. 5, the online audio file corresponding to the song name 2 is selected as an example.
Based on the GUI example diagram shown in fig. 5, a flowchart of one embodiment of the incoming ring tone setting method shown in fig. 6 is provided, including:
step 601: the mobile phone detects an online ring setting operation of a user, sends a file list request message to the server, the online ring setting operation is used for indicating that an online audio file is set as an incoming ring, and the file list request message is used for requesting the server for an online audio file list which can be set as the online ring.
The server in the embodiment of the application may be a server provided by a mobile phone manufacturer.
For example, the online ringtone setting operation may be the operation of the user selecting the "online ringtone" control in fig. 5.
The online audio file list 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 online audio file list may include identification information and description information of a plurality of online audio files. Wherein the identification information is used to identify the online audio file. For example, continuing with 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 the user with descriptive information for each online audio file in the list of online audio files may be found in interface 52 shown in FIG. 5.
Step 604: the mobile phone detects a first setting operation of a user aiming at the displayed first descriptive information, wherein the first descriptive information is descriptive 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 descriptive information is set as a first incoming call bell.
The first description information such as "song title 2, artist name 1, album name 1" shown in fig. 5, and the first setting operation such as the user selection operation for the "set to ringtone" control shown in fig. 5 are directed to "song title 2, artist name 1, album name 1" correspondence.
Step 605: 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.
The first identification information is used to uniquely identify the first online audio file.
Step 606: and the server responds to the ring 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 bell 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 of the incoming call ringtone setting is provided for the user, more audio file candidates are provided for the user to set the incoming call ringtone, the user can set favorite audio at will as the incoming call ringtone, and the user experience is improved.
Fig. 7 is a diagram of another GUI example of the incoming ring tone setting method of the present application, including:
a user opens a third party application (app), 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, a list of online audio files that can be played is displayed in the music list display interface 71, and description information of each online audio file, such as song name, singer name, album name, etc., is displayed in the list, which is not limited in this embodiment of the present application; after the user selects a certain audio file, the corresponding control of setting the ring tone is selected through operations such as finger clicking, so that the setting of the online audio file as the ring tone is completed. It should be noted that fig. 7 is only a possible implementation example, and for example, a user may set a play interface of an online audio file to an incoming ring after entering the play interface, etc., which is not illustrated here.
Based on the GUI exemplary diagram shown in fig. 7, a flowchart of another embodiment of the incoming ring tone setting method shown in fig. 8 is provided, including:
step 801: the mobile phone displays a music list display interface of the first application to the user.
The music list display interface is used for displaying 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 aiming at the displayed first descriptive information, wherein the first setting operation is used for indicating that a first online audio file indicated by the first descriptive information is set as a first incoming call bell.
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.
The first description information such as "song title 2, artist name 1, album name 1" shown in fig. 7, and the first setting operation such as the user selection operation shown in fig. 7 for the "set to ringtone" control corresponding to "song title 2, artist name 1, album name 1".
The server in this step may be a server of a third party app provider.
Step 804: and the server responds to the ring 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 method for setting the incoming call ringtone, the audio file set as the incoming call ringtone is not required to be downloaded to the mobile phone for storage, so that the incoming call ringtone candidates provided for the user can be more as long as the audio file can be played online by the user, even if certain music only has the authority of a guest (very important person, VIP) can be downloaded, the incoming call ringtone can be set, and the user experience is improved.
By the method, the online audio file in the third-party app can be set as the incoming ring, so that another implementation way of the incoming ring setting is provided for the user, more audio file candidates are provided for the user to set the incoming ring, the user can set favorite audio at will as the incoming ring, 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 following incoming call prompting method of the embodiment of the present application, in addition to the online audio file set in the above incoming call ringtone setting method being used as an incoming call ringtone, the user may set an audio file locally stored in the mobile phone as another incoming call ringtone. Specifically, the mobile phone can be provided with positioning information of two incoming call ringtones, namely the first positioning information and the second positioning information. The first positioning information is used for recording positioning information, such as URI, of the first online audio file, and the second positioning information is used for recording positioning information, such as URI, of the first audio file stored locally by the mobile phone. The setting method of the second positioning information may refer to, for example, the ring tone setting method shown in fig. 1, which is not described herein. The audio files locally stored in the mobile phone not only comprise audio files stored in the internal memory of the mobile phone, but also comprise audio files stored in the external memory of the mobile phone such as the SD card of the mobile phone.
As shown in fig. 9, a flow chart of an embodiment of an incoming call prompting method of the present application includes:
step 901: the mobile phone receives the incoming call information;
step 902: the mobile phone determines to play the incoming call bell.
The notification manner for the incoming call in the mobile phone can include, but is not limited to: the method can judge whether to play the incoming call bell or not based on the incoming call notification mode stored in the mobile phone by the modes of ringing, vibration, silence and the like. For example, if the notification mode of the incoming call is vibration only, it may be judged that the incoming call ringtone is not played, whereas if the notification mode of the incoming call is ringing, or the ringing vibrates simultaneously, it may be judged that the incoming call ringtone is 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 bell, the first positioning information can be empty, i.e. 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: the mobile phone acquires second positioning information, acquires a second audio file indicated by the second positioning information, plays the acquired second audio file as an incoming call bell, and finishes the branching procedure.
Step 905: the handset determines whether a network has been connected, if so, step 906 is performed, and if not, step 904 is performed.
The network herein refers to a network capable of connecting to the internet, enabling a mobile phone to acquire an online audio file, such as a WiFi network, a 4G network, a 5G network, or the like.
Step 906: the mobile phone determines whether the network quality of the network currently being used meets a preset first condition, if yes, step 907 is executed, and if no, step 904 is executed.
If the mobile phone is connected with only one network, the network currently in use is the connected network. Alternatively, if the mobile phone connects more than 1 network simultaneously, for example, connects a WiFi network and a 4G network simultaneously, or connects a WiFi network and a 5G network simultaneously, one of the networks, for example, the WiFi network, is generally used in the mobile phone to transmit network data, where the network currently being used is: and the mobile phone is connected with more than 1 network for transmitting network data.
The first condition is used for enabling the mobile phone to timely acquire the audio stream of the online audio file under the network quality for playing. The purpose of the judgment in this step is to: the problem that the mobile phone cannot timely acquire the audio stream of the online audio file due to the network quality problem is prevented, so that the incoming call bell cannot be timely played to prompt the user for an incoming call. Through the processing of the step, the mobile phone can play the online audio file as the incoming call bell 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 call bell under the condition that the network quality is poor and the audio stream of the online audio file cannot be timely acquired, so that the mobile phone can normally carry out incoming call prompt through the incoming call bell.
Alternatively, 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 this embodiment of the present application, and for example, the second value may be 100ms. The specific value of the third numerical value is not limited in the embodiment 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 an incoming call bell.
In the method, when the network quality meets the first condition, the online audio file is played as the incoming call bell, and when the network quality does not meet the first condition, the local audio file is played as the incoming call bell, so that the requirement that the user plays favorite music as the incoming call bell is met, and when the online audio file cannot be played in time as the incoming call bell, the local audio file is played as the incoming call bell, and the mobile phone can prompt incoming calls in time.
In the embodiment of the present application shown in fig. 10, the audio stream playing policy after the mobile phone is using the network quality of the network to satisfy 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 being used meets the second condition, if yes, step 1002 is executed, and if no, step 1003 is executed;
wherein, the mobile phone judging whether the network quality of the using network meets the second condition may include:
the mobile phone judges whether the network delay of the network being used is not more than a second numerical value and whether the data transmission speed of the network being used is not less than a third numerical value;
if the network delay of the network being used is not greater than the second numerical value and the data transmission speed of the network being used is not less than the third numerical value, the judgment result is yes; otherwise, the judgment result is no.
Step 1002: and after the mobile phone acquires and caches the complete audio stream of the first audio file from the first server according to the first positioning information, starting to play the complete audio stream as an incoming call bell.
Step 1003: 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 playing the cached audio stream as an incoming call bell after the data amount of the cached audio stream reaches a preset first value.
If the network delay of the network being used by the mobile phone is not greater than the second numerical value and the data transmission speed of the network being used is not less than the third numerical value, the time for caching the complete audio stream of the first audio file by the mobile phone is little, and the timeliness of playing the first audio file as an incoming call bell by the mobile phone is not affected, so that step 1002 is executed, and the mobile phone plays the complete audio stream after caching the complete audio stream;
Otherwise, it is indicated that the mobile phone may buffer the complete audio stream of the first audio file, but the time may be relatively long, which may affect the timeliness of playing the first audio file as an incoming ring by the mobile phone, so that step 1003 is performed, and in the buffering process, the buffered audio stream is started to play, so that it is ensured that the first audio file can be played as an incoming ring, and it is ensured that the first audio file can be played in time as an incoming ring to prompt an incoming call.
In the above embodiments, the mobile phone is taken as an example for illustration, and the embodiments of the present application may further be extended from the mobile phone to other electronic devices that need to make an incoming call prompt, for example, vehicle-mounted settings, smart watches, and so on.
In the above embodiment, the prompting of the incoming call information is taken as an example, and the embodiment of the present application may further be extended to prompting of other information received by the electronic device, for example, a short message, etc., which is not described herein again.
Referring to fig. 11, the above ring tone settings may be implemented at an application layer and an application framework layer in conjunction with the software system of the electronic device shown in fig. 4. Specifically, the incoming ring setting method can set a setting entry of an incoming ring at an application program layer and needs to be supported by an operating system side of the mobile phone, specifically, positioning information of the incoming ring which needs to be supported by a Telecom module of an application program framework layer at the operating system side can be a network address such as a hypertext transfer protocol (HyperText Transfer Protocol, HTTP), a hypertext transfer security protocol (HyperText Transfer Protocol over SecureSocket Layer, HTTPS), a Socket and the like, and the multimedia management module in the application program framework layer realizes the setting of a URI of the incoming ring in the Telecom module; in the incoming call prompting method, incoming call information is reported to a Telecom module through a modem/Real-Time Clock (RTC) (modem call or voice over IP (Voice over Internet Protocol, voIP) call), and 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, whether to play an online audio file as an incoming call bell or a locally stored audio file as an incoming call bell, 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 for playing.
In the method for setting the incoming call ringtone, the electronic device can store the first positioning information and the second positioning information into the second server, the second server is a backup server of the positioning information of the incoming call ringtone of the electronic device, and further the user can 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, for example, 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; and then, the user can log in a second server through the same account on a second electronic device such as another mobile phone, the second electronic device acquires the first positioning information and the second positioning information from the second server, and the second electronic device correspondingly sets the first positioning information and the second positioning information in the second electronic device according to the acquired first positioning information and second positioning information. It should be noted that, in addition to the positioning information, the setting source of the first positioning information, the information of the first online audio file (for example, song name, singer name, album name, etc.) may be further transmitted 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 under the method shown in fig. 5 may be a name set by a handset manufacturer for the providing platform of the online audio file: the setting source corresponding to the first positioning information under the method shown in fig. 7 may be the name set by the provider of the third party app for the third party app: YY music, etc. Referring to fig. 13A, assume that an incoming call ringtone 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 ring tone setting interface in the second electronic device may be the same as the setting information of the local music and the online ring tone under the ring tone as shown in the interface 132. Referring to fig. 13B, if the second electronic device can access the setting source of the online ringtone, for example, assuming that the second electronic device and the first electronic device are mobile phones manufactured by the same mobile phone manufacturer, and can both access XX music provided by the mobile phone manufacturer, when the user selects the "online ringtone" control in the interface 132 by clicking with a finger or the like, an online ringtone setting interface, for example, shown in the interface 133, may appear, and if the second electronic device cannot access the XX music, the second electronic device may display an inaccessible prompt, for example, shown in the interface 134. Referring to fig. 13C, assume that the set source of the first positioning information in the first electronic device is a third party app: YY music, the ring tone setting interface in the second electronic device after the positioning information is synchronized 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 finger clicking or the like: YY music and play a first online audio file indicated by the first positioning information, such as shown by interface 136; if the third party app is not installed in the second electronic device: YY music, the second electronic device may present a reminder to install YY music, such as shown by interface 137.
It is to be understood that some or all of the steps or operations in the above embodiments are merely examples, and embodiments of the present application may also perform other operations or variations of various operations. Furthermore, the various steps may be performed in a different order presented in the above embodiments, and it is possible that not all of the operations in the above embodiments are performed.
Fig. 14 is a schematic structural diagram of an embodiment of a setting device for an incoming ring tone of the present application, as shown in fig. 14, the device 1400 may include:
a display unit 1410 for displaying the description information of at least one online audio file;
a detection unit 1420 configured to detect a first setting operation for first description information among 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 ring tone;
a transmitting unit 1430 for transmitting a first request message to a first server, the first server being a server providing the first online audio file; the first request message is used for requesting to set the first online audio file as an incoming call bell;
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;
a storage unit 1450, configured to store the file positioning information as first positioning information, where the first positioning information is used to record positioning information of a first incoming call ring of the electronic device.
In one possible implementation, the sending unit may also be configured to: 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;
the receiving unit may further be configured to: receiving audio file information sent by the first server in response to the second request message, wherein the audio file information comprises: descriptive information of the online audio file;
the display unit may be specifically 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 one possible implementation, the sending unit may also be configured to: the first positioning information is sent 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 prompting 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 for receiving incoming call information;
a playing unit 1520, configured to obtain, from the first server, the first audio file 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 ring; 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 preset in the device, wherein the second positioning information is used for indicating a second audio file stored locally by the electronic equipment; the playback unit may also be configured to: and after the electronic equipment is determined to be not connected with a network or the network quality of the first network is determined to be not met with 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 bell.
In one possible implementation, 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 that of the first condition, acquiring and caching the complete audio stream of the first audio file from the first server according to the first positioning information, and starting to play the complete audio stream as an incoming call bell; 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 playing the cached audio stream as an incoming call bell after the data amount of the cached audio stream reaches a preset first value.
In one possible implementation, the playing unit may specifically be configured to: and determining that the network delay of the first network is not more 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, the playing unit may specifically be configured to: determining that the network delay of the first network is smaller than a fourth value and the data transmission speed of the first network is larger than a fifth value; the fourth value is smaller than or equal to the second value, and the fifth value is larger than the third value.
The apparatus provided in the embodiments shown in fig. 14 to 15 may be used to implement the technical solutions of the method embodiments shown in fig. 5 to 11 of the present application, and the implementation principle and technical effects may be further referred to in the related description of the method embodiments.
The embodiment of the application also provides electronic equipment, which comprises: 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 device, cause the device to perform the methods of figures 5-11.
The embodiments of the present application also provide a computer-readable storage medium having a computer program stored therein, which when run on a computer, causes the computer to perform the methods provided by the embodiments shown in fig. 5 to 11 of the present application.
The present embodiments also provide a computer program product comprising a computer program which, when run on a computer, causes the computer to perform the methods provided by the embodiments shown in fig. 5-11 of the present application.
In the embodiments of the present application, "at least one" means one or more, and "a plurality" means two or more. "and/or", describes an association relation of association objects, and indicates that there may be three kinds of relations, for example, a and/or B, and may indicate that a alone exists, a and B together, and B alone exists. Wherein A, B may be singular or plural. The character "/" generally indicates that the context-dependent object is an "or" relationship. "at least one of the following" and the like means any combination of these items, including any combination of single 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 the embodiments disclosed herein can be implemented as a combination of electronic hardware, computer software, and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. 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 will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, and are not repeated herein.
In several embodiments provided herein, any of the functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a Read-Only Memory (hereinafter referred to as ROM), a random access Memory (Random Access Memory) and various media capable of storing program codes such as a magnetic disk or an optical disk.
The foregoing is merely specific embodiments of the present application, and any person skilled in the art may easily conceive of changes or substitutions within the technical scope of the present application, which 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. The setting method of the incoming call bell is applied to the electronic equipment and is characterized by comprising the following steps:
displaying the description information of at least one online audio file;
detecting a first setting operation for first descriptive information in the descriptive information, wherein the first descriptive information is descriptive 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 ring tone;
sending a first request message to a first server, wherein the first server is a server for providing the first online audio file; the first request message is used for requesting to set the first online audio file as an incoming call bell;
receiving file positioning information sent by the first server, wherein the file positioning information is the 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 bell of the electronic equipment.
2. The method of claim 1, further comprising, prior to presenting the descriptive information of the at least one online audio file:
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: descriptive information of the online audio file;
the presentation of the descriptive information of the at least one online audio file comprises:
and displaying the description information of the online audio file included in the audio file information.
3. A method according to claim 1 or 2, wherein the file location information is a uniform resource identifier, URI.
4. A method according to any one of claims 1 to 3, further comprising:
the electronic device sends the first positioning information to a second server so that the second server stores the first positioning information.
5. The incoming call prompting method is applied to electronic equipment and is characterized in that first positioning information is preset in the electronic equipment, the first positioning information is 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 bell; 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 of claim 5, wherein second positioning information is further preset in the electronic device, the second positioning information being used to indicate a second audio file stored locally in the electronic device; the method further comprises the steps of:
and after the electronic equipment is determined to be not connected with a network or the network quality of the first network is determined to be not met with 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 bell.
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, playing the first audio file as an incoming ring tone, 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 that of the first condition, acquiring and caching the complete audio stream of the first audio file from the first server according to the first positioning information, and starting to play the complete audio stream as an incoming call bell;
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 playing the cached audio stream as an incoming call bell after the data amount of the cached audio stream reaches a preset first value.
8. The method according to any one of claims 5 to 7, wherein determining that the network quality of the first network meets a preset first condition comprises: and determining that the network delay of the first network is not more 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 meets a preset second condition comprises:
determining that the network delay of the first network is smaller than a fourth value and the data transmission speed of the first network is larger than a fifth value; the fourth value is smaller than or equal to the second value, and the fifth value is larger 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 device, cause the device to perform the method of any of claims 1-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 device, cause the device to perform the method of any of claims 5-9.
12. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program which, when run on a computer, causes the computer to perform the method of any of claims 1 to 9.
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 CN114500728A (en) | 2022-05-13 |
CN114500728B true 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) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116708630B (en) * | 2022-09-01 | 2024-04-16 | 荣耀终端有限公司 | Alarm clock setting method and terminal equipment |
Citations (8)
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 |
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 |
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 |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
US8553852B2 (en) * | 2008-02-28 | 2013-10-08 | Computer Product Introductions Corp. | Method and apparatus for conversation based ringtone |
US10511707B2 (en) * | 2017-05-16 | 2019-12-17 | Apple Inc. | Voice communication method |
-
2020
- 2020-11-13 CN CN202011270133.2A patent/CN114500728B/en active Active
Patent Citations (8)
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 |
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 |
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)
Title |
---|
基于ims的多媒体彩铃业务的设计与实现;段朝辉;宫长龙;;中国新通信(第20期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN114500728A (en) | 2022-05-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN115866121B (en) | Application interface interaction method, electronic device and computer readable storage medium | |
CN113542839B (en) | Screen projection method of electronic equipment and electronic equipment | |
CN111095723B (en) | Wireless charging method and electronic equipment | |
CN113067940B (en) | Method for presenting video when electronic equipment is in call and electronic equipment | |
CN111666119A (en) | UI component display method and electronic equipment | |
CN113254409B (en) | File sharing method, system and related equipment | |
CN115333941B (en) | Method for acquiring application running condition and related equipment | |
CN114500728B (en) | Incoming call bell setting method, incoming call prompting method and electronic equipment | |
CN114338913A (en) | Fault diagnosis method and electronic device | |
CN116048831B (en) | Target signal processing method and electronic equipment | |
CN116095224B (en) | Notification display method and terminal device | |
CN114691248B (en) | Method, device, equipment and readable storage medium for displaying virtual reality interface | |
CN117348894A (en) | Software upgrading method, terminal equipment and system | |
CN117009005A (en) | Display method, automobile and electronic equipment | |
CN113645595B (en) | Equipment interaction method and device | |
CN111339513B (en) | Data sharing method and device | |
CN115460445B (en) | Screen projection method of electronic equipment and electronic equipment | |
CN116668763B (en) | Screen recording method and device | |
CN114205318B (en) | Head portrait display method and electronic equipment | |
CN117133311B (en) | Audio scene recognition method and electronic equipment | |
CN113626115B (en) | Method for generating dial plate and related device | |
CN117435309A (en) | Task migration method, electronic equipment and system | |
CN117972134A (en) | Tone color recommendation method, electronic device, and computer storage medium | |
CN116954770A (en) | Display method and electronic equipment | |
CN118113952A (en) | Data processing method, device and system |
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 |