CN112637047B - Notification prompt tone processing method and device and electronic equipment - Google Patents

Notification prompt tone processing method and device and electronic equipment Download PDF

Info

Publication number
CN112637047B
CN112637047B CN202011518518.6A CN202011518518A CN112637047B CN 112637047 B CN112637047 B CN 112637047B CN 202011518518 A CN202011518518 A CN 202011518518A CN 112637047 B CN112637047 B CN 112637047B
Authority
CN
China
Prior art keywords
notification
prompt tone
tone
playing
last
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
Application number
CN202011518518.6A
Other languages
Chinese (zh)
Other versions
CN112637047A (en
Inventor
高钊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202011518518.6A priority Critical patent/CN112637047B/en
Publication of CN112637047A publication Critical patent/CN112637047A/en
Priority to PCT/CN2021/128079 priority patent/WO2022134869A1/en
Application granted granted Critical
Publication of CN112637047B publication Critical patent/CN112637047B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/21Monitoring or handling of messages
    • H04L51/224Monitoring or handling of messages providing notification on incoming messages, e.g. pushed notifications of received messages

Abstract

The application relates to a notification prompt tone processing method and device, electronic equipment and a storage medium. The method comprises the following steps: under the condition that a notification prompt tone playing event is monitored, determining the playing time of the last notification prompt tone; under the condition that the time interval between the current time and the playing time of the last notification prompt tone is less than the time interval threshold, determining the next notification prompt tone which belongs to the same melody as the last notification prompt tone and is adjacent to the last notification prompt tone as the current notification prompt tone; and playing the current notification prompt tone. The method can enrich the content of the notification tone.

Description

Notification prompt tone processing method and device and electronic equipment
Technical Field
The present application relates to the field of internet technologies, and in particular, to a notification alert tone processing method and apparatus, an electronic device, and a computer-readable storage medium.
Background
With the development of internet technology, various software applications are widely applied to life, work and entertainment of people, such as social applications, news media applications, game applications, office applications, and the like. At present, when a message prompt is sent, various applications need to perform message notification in a manner of playing a prompt tone while popping up a message prompt box. However, the content of the conventional notification tone is still relatively simple, because the notification tone is set by default by the application or by the user according to the preference of the user.
Disclosure of Invention
The embodiment of the application provides a notification prompt tone processing method, a notification prompt tone processing device, electronic equipment and a computer readable storage medium, and the content of the notification prompt tone can be enriched.
A notification prompt tone processing method comprises the following steps:
under the condition that a notification prompt tone playing event is monitored, determining the playing time of the last notification prompt tone;
under the condition that the time interval between the current time and the playing time of the last notification prompt tone is less than the time interval threshold, determining the next notification prompt tone which belongs to the same melody as the last notification prompt tone and is adjacent to the last notification prompt tone as the current notification prompt tone;
and playing the current notification prompt tone.
A notification alert tone processing apparatus, the apparatus comprising:
the play event response module is used for determining the play time of the last notification prompt tone under the condition that the notification prompt tone play event is monitored;
the prompt tone determining module is used for determining the next adjacent notification prompt tone which belongs to the same melody as the last notification prompt tone as the current notification prompt tone under the condition that the time interval between the current time and the playing time of the last notification prompt tone is less than a time interval threshold;
and the prompt tone playing module is used for playing the current notification prompt tone.
An electronic device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
under the condition that a notification prompt tone playing event is monitored, determining the playing time of the last notification prompt tone;
under the condition that the time interval between the current time and the playing time of the last notification prompt tone is less than the time interval threshold, determining the next notification prompt tone which belongs to the same melody as the last notification prompt tone and is adjacent to the last notification prompt tone as the current notification prompt tone;
and playing the current notification prompt tone.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
under the condition that a notification prompt tone playing event is monitored, determining the playing time of the last notification prompt tone;
under the condition that the time interval between the current time and the playing time of the last notification prompt tone is less than the time interval threshold, determining the next notification prompt tone which belongs to the same melody as the last notification prompt tone and is adjacent to the last notification prompt tone as the current notification prompt tone;
and playing the current notification prompt tone.
According to the notification alert tone processing method, the notification alert tone processing device, the computer equipment and the storage medium, under the condition that a notification alert tone playing event is monitored and the time interval between the current moment and the playing moment of the last notification alert tone is smaller than the time interval threshold value, the current notification alert tone determined according to the next notification alert tone which belongs to the same melody as the last notification alert tone and is adjacent to the last notification alert tone is played, so that the played notification alert tone forms a complete melody when the notification alert tone playing event is frequently triggered, and the content of the notification alert tone is enriched.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a diagram of an application environment of a notification alert tone processing method in one embodiment;
FIG. 2 is a flow diagram of a method for notification alert tone processing in one embodiment;
FIG. 3 is a diagram illustrating an interface for displaying notification alert messages, according to an embodiment;
FIG. 4 is a flow diagram of determining a current notification alert tone in one embodiment;
FIG. 5 is a diagram of an audio repository in one embodiment;
FIG. 6 is an interface diagram of a prompt tone configuration interface in one embodiment;
FIG. 7 is a schematic diagram of an audio repository in another embodiment;
FIG. 8 is a block diagram showing the structure of a notification tone processing apparatus according to an embodiment;
FIG. 9 is a diagram illustrating an internal structure of an electronic device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
It will be understood that, as used herein, the terms "first," "second," and the like may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another. For example, a first client may be referred to as a second client, and similarly, a second client may be referred to as a first client, without departing from the scope of the present application. Both the first client and the second client are clients, but they are not the same client.
Fig. 1 is a schematic diagram of an application environment of a notification alert tone processing method in one embodiment. As shown in fig. 1, the application environment includes an electronic device 102 and a server 104 connected over a network. The server 104 may push a message to the electronic device 102, for example, a service message that may be pushed by the server 104, or a message that is forwarded by the server 104 and sent by another user, and the electronic device 102 receives the push message from the server 104 and performs a notification prompt, for example, performs a message notification prompt through a notification prompt box of the electronic device 102 and plays a notification prompt tone to perform a prompt. Specifically, when the electronic device 102 monitors that the notification alert tone is played, and when a time interval between the current time and the playing time of the last notification alert tone is smaller than a time interval threshold, the current notification alert tone determined according to the next notification alert tone which belongs to the same melody as the last notification alert tone and is adjacent to the last notification alert tone is played, so that the notification message is prompted. The electronic device 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and the server 104 may be implemented by an independent server or a server cluster formed by multiple servers.
FIG. 2 is a flow diagram of a notification alert tone processing method in one embodiment. The notification alert tone processing method in this embodiment is described by taking the electronic device in fig. 1 as an example. As shown in fig. 2, the notification alert tone processing method includes steps 202 to 206.
Step 202, under the condition that the event of playing the notification prompt tone is monitored, the playing time of the last notification prompt tone is determined.
The notification alert tone playing event refers to a behavior of triggering playing of the notification alert tone, and specifically may be a behavior of receiving and displaying the notification message. Generally, after the electronic device receives the notification message, the message can be prompted through a message notification box on the interface of the electronic device. In specific implementation, the notification alert tone playing event can be monitored and obtained based on a instrumentation technology, the instrumentation technology is to insert a probe into a program on the basis of ensuring the logic integrity of the original program, and insert a code segment at a specific position by acquiring information (a method, a method parameter value, a return value and the like) in a code through the probe, so as to collect dynamic context information during program operation, and specifically, the notification alert tone playing event can be monitored by performing instrumentation interception in a system notification service of electronic equipment. As shown in fig. 3, in the interface of the electronic device, messages pushed by the applications 1-3 are respectively shown through 3 message notification boxes. When the electronic equipment pops up the message notification box to display the notification message, the user is prompted by playing the notification prompt tone. As shown in fig. 3, when the application 1 pushes a message to the electronic device, a notification alert tone playing event is triggered, the electronic device plays a corresponding notification alert tone for message prompt while popping up a message notification box for message prompt on the interface, and similarly, when the application 2 and the application 3 trigger the notification alert tone playing event, the electronic device correspondingly plays the notification alert tone. The last notification prompt tone is the notification prompt tone which is correspondingly played when the notification prompt tone playing event is triggered last time. As shown in fig. 3, the application programs 1 to 3 respectively trigger the notification alert tone playing events in sequence, that is, the application program 1 triggers the notification alert tone playing event first, and the application program 3 triggers the notification alert tone playing event last, so that when the application program 2 triggers the notification alert tone playing event, the last notification alert tone is the notification alert tone that is played correspondingly when the application program 1 triggers the notification alert tone playing event; for the application 3, the last notification alert tone is the notification alert tone that is played when the application 2 triggers the notification alert tone playing event.
Specifically, the electronic device monitors a notification alert tone playing event, and when the notification alert tone playing event is monitored, it indicates that the electronic device needs to perform message prompting by playing the notification alert tone, and then the electronic device determines the playing time of the last notification alert tone, and specifically, the electronic device may obtain the playing time of the last notification alert tone by querying from a notification alert tone information library recording information of each notification alert tone, and in addition, may also determine the playing time of the last notification alert tone according to the monitored last notification alert tone playing event.
And 204, under the condition that the time interval between the current time and the playing time of the last notification prompt tone is less than the time interval threshold, determining the next notification prompt tone which belongs to the same melody as the last notification prompt tone and is adjacent to the last notification prompt tone as the current notification prompt tone.
Wherein, the current time is the current time, namely the time of the notification prompt tone playing event is monitored; the time interval is determined according to the difference between the current time and the playing time of the last notification prompt tone, and reflects the time span of the two previous and next notification prompt tone playing events; the duration interval threshold is used for judging the trigger frequency of the notification alert tone playing event, the specific numerical value of the duration interval threshold can be set according to actual requirements, for example, 10 seconds can be set, if the time span of two adjacent notification alert tone playing events is smaller than the duration interval threshold, namely, less than 10 seconds, the trigger frequency of the notification alert tone playing event can be considered to be higher, otherwise, the trigger frequency of the notification alert tone playing event is considered to be lower. Melody is the primary element of music, and generally refers to an organized, rhythmic sequence formed by several musical tones through artistic conception. The melody is carried out according to a single sound part with logic factors and composed of a certain pitch, duration and volume, and is organically combined by a plurality of basic music elements such as mode, rhythm, beat, dynamics, timbre performance method and the like. The current notification prompt tone is a notification prompt tone corresponding to the current notification prompt tone playing event, that is, the monitored notification prompt tone playing event correspondingly plays the current notification prompt tone for message prompt.
Specifically, after the playing time of the last notification alert tone is determined, the electronic device further obtains a preset time interval threshold, and determines the time interval between the current time and the playing time of the last notification alert tone, the electronic device compares the time interval with the time interval threshold, if the time interval is smaller than the time interval threshold, it indicates that the triggering time span between the playing event of the current notification alert tone and the playing event of the last notification alert tone is small, and it can be considered that the triggering frequency of the playing event of the notification alert tone is higher, the next notification alert tone which belongs to the same melody as the last notification alert tone and is adjacent to the last notification alert tone is determined as the current notification alert tone, for example, the electronic device can determine a music resource set which belongs to the same melody as the last notification alert tone, and the music resource set which is adjacent to the last notification alert tone is used as the current notification alert tone, so that the notification alert tone played in response to the notification alert tone and the last notification alert tone can be played in sequence.
Step 206, the current notification alert tone is played.
After the current notification prompt tone corresponding to the current notification prompt tone playing event is determined, the electronic equipment plays the current notification prompt tone, so that the notification prompt tone played by responding to the notification prompt tone playing event and the last notification prompt tone can form a melody in sequence for playing.
As shown in fig. 3, if the span of the notification message triggering time corresponding to the application program 1-3 is small, and the user cannot watch the electronic device in time, the notification message corresponding to the application program 1-3 frequently sounds, and the electronic device plays the corresponding notification prompt tone 3 times continuously, and the single and boring notification tone may make the user feel hearing fatigue and affect the user experience of the electronic device. In the embodiment, for the problem of auditory fatigue easily caused by single content of a dynamic notification sound with repeated high frequency, the played current notification sound and the played last notification sound form a continuous and complete melody, and for the melody a including 3 continuous audio resources such as A1, A2, A3 and the like, the notification sound played by the application program 1 is a music resource A1 in the melody a, the notification sound played by the application program 2 is a music resource A2 in the melody a, and the notification sound played by the application program 3 is a music resource A3 in the melody a, so that the notification sounds respectively played by the application programs 1 to 3 form a complete melody of A1 to A2 to A3, thereby effectively enriching the content of the notification sounds, increasing intelligence, improving the expectation of a user on the notification sound, and improving the use experience of the user on the electronic device.
In the notification alert tone processing method in this embodiment, when a notification alert tone playing event is monitored, and a time interval between a current time and a last time of the notification alert tone is smaller than a time interval threshold, the current notification alert tone determined according to a next notification alert tone that belongs to the same melody as the last time of the notification alert tone and is adjacent to the last time of the notification alert tone is played, so that the played notification alert tone forms a complete melody when the notification alert tone playing event is frequently triggered, and the content of the notification alert tone is enriched.
In one embodiment, as shown in fig. 4, determining the current notification alert tone, that is, determining the next notification alert tone which belongs to the same melody as the last notification alert tone and is adjacent to the last notification alert tone as the current notification alert tone, in the case that the time interval between the current time and the playing time of the last notification alert tone is less than the time interval threshold value, includes:
step 402, determining the time interval between the current time and the playing time of the last notification tone.
The time interval reflects the time span of the two previous and next notification alert tone playing events, and can be specifically determined according to the difference between the current time and the last notification alert tone playing time, so that the triggering frequency between the two adjacent notification alert tone playing events can be judged. For example, when the time interval is short, it indicates that the notification alert tone playing event is triggered after a short time since the last notification alert tone playing, so that the notification alert tone playing is performed again.
Specifically, after the playing time of the last notification alert tone is determined, the electronic device may further determine the current time, where the current time is the time for triggering the playing event of the current notification alert tone, and the electronic device obtains the time interval according to a difference between the current time and the playing time of the last notification alert tone.
In step 404, when the time interval is smaller than the time interval threshold, the audio melody corresponding to the last notification alert tone is determined.
The duration interval threshold is used for judging the trigger frequency of the notification prompt tone playing event, and the specific numerical value of the duration interval threshold can be set according to actual requirements. In a specific implementation, the time interval threshold may be specifically set according to a time period, a location, a user type, or a user habit. For example, the duration interval threshold is dynamically adjusted based on the time period, such as the working time period may set the duration interval threshold to be larger, and the non-working time period may set the duration interval threshold to be smaller; for another example, a larger time interval threshold may be set when the user is at the office location, while a smaller time interval threshold may be set when the electronic device is at the user's home location; in addition, the electronic equipment can also analyze the notification messages of the electronic equipment according to the historical use data of the user, and determine the frequency of receiving the notification messages by the user, so as to determine the corresponding time interval threshold, so that the trigger frequency of each notification prompt tone playing event can be accurately determined based on the habit of the user, and the prompt effect of the notification prompt tones can be ensured. The audio melody is the melody of the audio resource corresponding to the notification tone. Different audio melodies may correspond to multiple consecutive audio resources, which may be played in sequence to form a complete melody. In a specific implementation, the audio melody to which the last notification alert sound belongs may be determined according to the audio resource corresponding to the last notification alert sound, for example, the audio melody to which the last notification alert sound belongs may be determined according to the information of the audio resource corresponding to the last notification alert sound.
Specifically, after the time interval between the current time and the playing time of the last notification alert tone is determined, the electronic device compares the time interval with a time interval threshold value, so as to determine whether the two successive notification alert tone playing events belong to a high-frequency triggered event. If the duration interval is smaller than the preset duration interval threshold, the electronic device determines the audio melody to which the last notification alert tone belongs, specifically, the electronic device determines the audio resource to which the last notification alert tone corresponds, queries the information of the audio resource, and determines the audio melody to which the last notification alert tone belongs based on the information of the audio resource, so that the audio melody to which the last notification alert tone belongs is obtained.
In step 406, the next audio resource adjacent to the audio resource corresponding to the last notification alert tone in the audio resources of the audio melody is determined as the current notification alert tone.
Specifically, after determining the audio melody to which the last notification alert tone corresponds, the electronic device selects the next audio resource adjacent to the audio resource corresponding to the last notification alert tone from the audio resources of the audio melody as the current notification alert tone, so that the current notification alert tone and the last notification alert tone are the same melody and adjacent audio resources, the played current notification alert tone and the last notification alert tone can form a continuous melody, single playing of the notification alert tones is avoided, and the content of the notification alert tones is enriched.
In this embodiment, whether the current notification alert tone playing event and the last notification alert tone playing event belong to a high-frequency trigger is determined according to a time interval between the current time and the last notification alert tone playing time, and if so, a next audio resource adjacent to an audio resource corresponding to the last notification alert tone from among the audio resources of the audio melody corresponding to the last notification alert tone is selected as the current notification alert tone, so that the current notification alert tone and the last notification alert tone belong to the same melody and are adjacent to each other, the played current notification alert tone and the last notification alert tone can form a continuous melody, single playing of the notification alert tone is avoided, and the content of the notification alert tone is enriched.
In one embodiment, the notification alert tone processing method further includes: under the condition that the time interval between the current time and the playing time of the last notification prompt tone is not less than the time interval threshold, determining a target melody different from the melody to which the last notification prompt tone belongs; and determining the current notification prompt tone from the audio resource corresponding to the target melody, and playing the current notification prompt tone.
Wherein, the target melody is a melody different from the melody to which the last notification alert tone belongs. Different melodies are provided with corresponding multiple sections of music resources. For example, as shown in fig. 5, the audio resource library of the notification alert is provided with melodies a, B, C and D, the melody a may be provided with music resources A1 and A2 \8230a10, 10 music resources in total, and when 10 music resources are played continuously, the melody a may be formed; similarly, the melody B can be correspondingly provided with music resources B1 and B2 \8230, B10, the melody C can be correspondingly provided with music resources C1 and C2 \8230, C10, and the melody D can be correspondingly provided with music resources D1 and D2 \8230andD 10. If the melody corresponding to the last notification alert tone is melody A and the time interval between the current time and the playing time of the last notification alert tone is not smaller than the time interval threshold, namely the time interval between the current notification alert tone playing event and the last notification alert tone playing event is longer, the two notification alert tone playing events are not considered to be high-frequency triggered events, the target melody can be determined from melodies B, C and D, and if the target melody is determined to be C, the new melody is replaced again to play the notification alert tone, and the playing effect of the notification alert tone is ensured.
Specifically, after the electronic device compares that the time interval between the current time and the playing time of the last notification alert tone is not less than the time interval threshold, if the time interval is not less than the time interval threshold, that is, it indicates that the two notification alert tone playing events are not high-frequency triggered events, and the melody played continuously by the last notification alert tone has been interrupted, the electronic device may switch to the next melody. The target melody different from the melody to which the last notification alert sound belongs is determined by the electronic device, and for example, a melody different from the melody to which the last notification alert sound belongs may be determined as the target melody from various audio melodies set in a predetermined audio resource library, and the target melody may be selected at random from the melodies other than the melody to which the last notification alert sound belongs. After the target melody is determined, the electronic equipment determines the current notification prompt tone from the audio resource corresponding to the target melody and plays the current notification prompt tone. In a specific application, as shown in fig. 5, after the target melody is switched to the melody C, the current notification alert tone may be determined from the music resources C1 and C2 \8230c10, for example, the first audio resource C1 in the melody C may be determined as the current notification alert tone, and the determined current notification alert tone may be played, so as to respond to the current notification alert tone playing event, and play the current notification alert tone after the melody is switched to perform message alert.
In this embodiment, when it is determined that the two notification alert tone playing events are not high-frequency triggered events, and the melody of the last notification alert tone that is played continuously is interrupted, the next melody is switched to, and the current notification alert tone is determined and played through the audio resource corresponding to the switched target melody, so that the melody is switched to be prompted after the continuous melody of the notification alert tone is interrupted, and the melody playing effect of the notification alert tone can be ensured.
In one embodiment, the notification alert tone processing method further includes: determining a prompt tone type corresponding to an application triggering a notification prompt tone playing event under the condition that the notification prompt tone playing event is monitored; and under the condition that the prompt tone type is the user-defined prompt tone type, determining the user-defined prompt tone corresponding to the application type as the current notification prompt tone, and playing the current notification prompt tone.
The prompt tone type comprises a user-defined prompt tone type and a default prompt tone type and is used for distinguishing the definition mode of the notification prompt tone. Specifically, the user-defined prompt tone type indicates that the notification prompt tone is user-defined by the application, that is, for the application of the user-defined prompt tone type, the message notification from the application is performed by playing the user-defined notification prompt tone, if a user-defined notification tone is set in a third-party application such as a social application and a game application, the corresponding user-defined notification prompt tone is played when the third-party application pushes the notification message; and the default prompt tone type indicates that the notification prompt tone is set by the default of the system, namely when the system application or other applications trigger the notification prompt tone playing event, the default notification prompt tone is played for message prompting.
Specifically, when the notification alert tone playing event is monitored, the electronic device determines an alert tone type corresponding to an application that triggers the notification alert tone playing event, and specifically may determine a corresponding triggered application according to trigger information that informs the alert tone playing event, and determine the corresponding alert tone type based on the triggered application. If the type of the prompt tone is the self-defined prompt tone, the fact that the notification prompt tone of the notification prompt tone playing event needs to carry out message prompt according to the application self-defined notification prompt tone is shown, the electronic equipment determines the self-defined prompt tone corresponding to the application type as the current notification prompt tone, and plays the current notification prompt tone to carry out message prompt. In specific application, under the condition that a notification prompt tone playing event is monitored, the type of the prompt tone corresponding to the application triggering the notification prompt tone playing event is determined firstly, so that whether message prompt is required to be performed by playing a self-defined prompt tone is judged, and whether message prompt is required to be performed by playing the self-defined prompt tone is judged again after the current notification prompt tone is determined according to the playing time of the last notification prompt tone, so that the current notification prompt tone is comprehensively determined to be played.
In this embodiment, when the alert tone type corresponding to the application that triggers the alert tone play event is the user-defined alert tone type, the user-defined alert tone corresponding to the application type is played to perform message prompting, so that the user-defined personalized setting of the third party application can be compatible, and the content of the notification alert tone can be further enriched.
In one embodiment, the notification alert tone processing method further includes: under the condition that a notification prompt tone playing event is monitored, determining an audio resource corresponding to the last notification prompt tone; determining a target melody under the condition that the audio resource corresponding to the last notification prompt tone is the audio resource type defined by the application; and determining the current notification prompt tone from the audio resource corresponding to the target melody, and playing the current notification prompt tone.
Under the condition that the notification prompt tone playing event is monitored, the electronic equipment needs to judge whether the melody of the notification tone is interrupted by the self-defined notification prompt tone, and if so, the melody is switched to prompt the message. Specifically, when monitoring a notification alert tone playing event, the electronic device determines an audio resource corresponding to a last notification alert tone, may specifically query a notification alert tone played corresponding to the last notification alert tone playing event, and determine an audio resource corresponding to the last notification alert tone. The electronic equipment judges whether the audio resource corresponding to the last notification prompt tone is an application-defined audio resource type, specifically, the electronic equipment determines the audio resource type of the audio resource corresponding to the last notification prompt tone, if so, the corresponding audio resource type can be determined according to the information of the audio resource corresponding to the last notification prompt tone, if so, the electronic equipment indicates that a notification prompt tone playing event corresponding to the last notification prompt tone is set by third party application definition, namely, the continuous playing of the notification prompt tone melody is interrupted, and the electronic equipment re-determines the target melody, specifically, a melody can be selected from an audio database of the notification prompt tone as the target melody, if so, a melody can be randomly selected and determined as the target melody, and the current notification prompt tone is determined from the audio resource corresponding to the target melody for playing so as to prompt the message.
In this embodiment, when a notification alert tone playing event is monitored and it is determined that the audio resource corresponding to the notification alert tone at the last time is of the type of the audio resource defined by the application, which indicates that the melody of the notification alert tone is interrupted by the defined alert tone, the melody is determined again, and the notification alert tone is played through the replaced melody, so that the playing effect of the notification alert tone is ensured.
In one embodiment, before determining the playing time of the last notification alert tone, the method further includes: determining an application type corresponding to an application triggering a notification prompt tone playing event; and under the condition that the application type is a default prompt tone type and is in a dynamic prompt tone activation state, executing the step of determining the playing time of the last notification prompt tone.
Specifically, under the condition that a notification alert tone playing event is monitored, the electronic device determines an application type corresponding to an application triggering the notification alert tone playing event, specifically, the electronic device determines a correspondingly triggered application according to trigger information of the notification alert tone playing event, determines an application type corresponding to the application, and executes a step of determining a playing time of a last notification alert tone when the application type is a default alert tone, that is, message alerting is performed according to the default notification alert tone, and when the electronic device is in a dynamic alert tone activated state, it indicates that message alerting can be performed through the dynamic alert tone, so that a current notification alert tone is determined according to a next notification alert tone which belongs to the same melody as the last notification alert tone and is adjacent to the last notification alert tone, message alerting is performed through alert tones of dynamic continuous melodies, and content of the notification alert tones is enriched.
As shown in fig. 6, the electronic device may configure the notification alert through the alert interface, and activate the dynamic alert state of the electronic device through the dynamic alert switch, so that the electronic device may play the message notification in sequence through multiple audio resources belonging to the same melody, thereby implementing dynamic change of the notification alert and enriching the content of the notification alert. When the dynamic prompt tone state is not activated, the electronic equipment can perform static prompt through a fixed prompt tone according to a traditional notification mode. In addition, the user can also set that the electronic equipment can vibrate along with the played notification prompt tone when the electronic equipment carries out message prompt through a vibration following effect provided in the prompt tone interface; the audio resource of the notification prompt tone can also be configured in a self-defined way through the self-defined prompt tone function.
In this embodiment, when the electronic device determines that the application type corresponding to the application triggering the notification alert tone playing event is the default alert tone type and the electronic device is already in the dynamic alert tone activated state, the electronic device executes the step of determining the playing time of the last notification alert tone, so as to determine the current notification alert tone according to the next notification alert tone which belongs to the same melody as the last notification alert tone and is adjacent to the last notification alert tone, so as to implement message alert by the alert tone of a dynamic continuous melody, and enrich the content of the notification alert tone.
In one embodiment, the notification alert tone processing method further includes: and under the condition that the application type is a default prompt tone type and is in a dynamic prompt tone activation state, configuring a vibration waveform of the notification prompt vibration to correspond to the notification prompt tone.
Specifically, the electronic device further determines whether the electronic device starts a vibration following effect or not when determining that the application type corresponding to the application triggering the notification prompt tone play event is the default prompt tone type and the electronic device is already in the dynamic prompt tone activation state, and if so, the electronic device configures the vibration waveform of the notification prompt vibration to correspond to the notification prompt tone. Specifically, the electronic device may configure the vibration waveform of the notification prompt vibration to correspond to the melody or rhythm of the notification prompt tone, so that the electronic device vibrates according to the corresponding vibration waveform when playing the corresponding notification prompt tone, thereby further enriching the content of the message prompt and ensuring the message prompt effect. As shown in fig. 6, the vibration effect of the notification alert sound may be configured at the alert sound interface, and after turning on the vibration follow-up effect, the electronic device may vibrate according to the vibration waveform adapted to the notification alert sound while playing the notification alert sound.
In this embodiment, the electronic device may configure the vibration waveform of the notification alert vibration to correspond to the melody or rhythm of the notification alert sound, so that the electronic device vibrates according to the corresponding vibration waveform when playing the corresponding notification alert sound, thereby further enriching the content of the message alert and ensuring the message alert effect.
In one embodiment, the notification alert tone processing method further includes: under the condition that a notification prompt tone playing event of a delay notification type is monitored, determining a last delay notification prompt tone corresponding to the notification prompt tone playing event of the last delay notification type; determining the next adjacent notification prompt tone which belongs to the same melody as the previous notification prompt tone as the delay notification prompt tone corresponding to the current notification prompt tone playing event; when the delay notice is released, the corresponding delay notice prompt tones are played in sequence according to the triggering time of the notice prompt tone playing event of each delay notice type.
The message notification corresponding to the delayed notification type representation needs to be released in a delayed manner, but is not released immediately after the message notification is received. For example, the message notification may be released with a delay of 1 hour, and when monitoring the notification alert tone playing event, the electronic device pops up the message prompt box corresponding to the notification alert tone playing event of the delayed notification type for prompting after delaying for 1 hour, and simultaneously plays the corresponding notification alert tone.
Specifically, the electronic device further determines a notification type of the notification alert sound playing event when monitoring the notification alert sound playing event, and if the notification type is a delayed notification type, it indicates that the notification alert sound playing event does not pop up a message prompt box instantly for prompting, but performs message prompting when corresponding publishing conditions are met, for example, after a preset time is delayed, or a preset time is reached, or a preset place is reached, and the like. When the delayed notification type notification alert tone playing event is monitored, the electronic equipment determines a last delayed notification alert tone corresponding to the last delayed notification type notification alert tone playing event, specifically, the electronic equipment inquires a historical notification alert record, and determines a last delayed notification alert tone corresponding to the last delayed notification type notification alert tone playing event from the historical notification alert record. After determining the last delayed notification alert tone, the electronic device determines the next notification alert tone which belongs to the same melody as the last delayed notification alert tone and is adjacent to the last delayed notification alert tone as the delayed notification alert tone corresponding to the current notification alert tone playing event. Specifically, the electronic device may determine a music resource set belonging to the same melody as the last delayed notification alert tone, and use a music resource adjacent to the last delayed notification alert tone in the music resource set as a delayed notification alert tone corresponding to the current notification alert tone playing event, so as to configure a notification alert tone with a continuous melody for the notification alert tone playing events of the continuous delayed notification types, so that each notification alert tone played by the electronic device may form a continuous melody when the notification message of each delayed notification type is issued.
Further, when the condition that the triggering of the delayed notification is released is monitored, the electronic equipment plays the corresponding delayed notification prompt tones in sequence according to the triggering time of the notification prompt tone playing event of each delayed notification type. Specifically, the electronic device monitors whether to trigger the delayed notification issuance, for example, whether to meet a delayed notification issuance condition, such as whether to reach the delay time, whether to reach the delayed notification issuance location, whether to receive a delayed notification issuance instruction, and the like, where the delayed notification issuance condition may be set individually by a user. If the condition of issuing the delayed notification is met and the delayed notification is issued, the electronic device plays the corresponding delayed notification alert tones in sequence according to the trigger time of the notification alert tone play events of each delayed notification type, for example, the delayed notification alert tones configured corresponding to the notification alert tone play events can be played according to the time sequence of the trigger time of the notification alert tone play events, so that the notification alert tones played by the electronic device can form continuous melodies.
In this embodiment, the electronic device configures notification alert tones with continuous melodies for the continuous notification alert tone playing events of the delayed notification types, and when the notification messages of each delayed notification type are issued, the notification alert tones played by the electronic device can form continuous melodies, so that the alert tone content of the notification messages of the delayed notification types is enriched, and the message alert effect is improved.
In one embodiment, determining the last delayed notification alert tone corresponding to the notification alert tone play event of the last delayed notification type comprises: determining an application type triggering a current notification prompt tone play event; and determining the last delay notification prompt tone corresponding to the notification prompt tone playing event of the last delay notification type triggered by the application corresponding to the application type.
In this embodiment, different notification tones are configured for delayed notification messages of different applications, so that the delayed notification messages of different applications can be prompted by the notification tones of different melodies, and the prompting effect of the delayed notification messages is improved. Specifically, when the electronic device monitors a notification alert tone playing event of a delayed notification type, the electronic device determines an application type that triggers a current notification alert tone playing event, that is, the electronic device determines an application type that triggers the notification alert tone playing event of the delayed notification type, and based on the application type, may determine an application that triggers the notification alert tone playing event of the delayed notification type. The electronic equipment determines the last delayed notification prompt tone corresponding to the notification prompt tone playing event of the last delayed notification type triggered by the application corresponding to the application type, so that the notification prompt tones corresponding to the same melody continuity can be configured for different applications triggering the notification prompt tone playing event of the delayed notification type. Specifically, after determining the last delayed notification alert tone corresponding to the notification alert tone playing event of the last delayed notification type triggered by the application corresponding to the application type triggering the current notification alert tone playing event, the electronic device determines the next notification alert tone which belongs to the same melody and is adjacent to the last delayed notification alert tone as the delayed notification alert tone corresponding to the current notification alert tone playing event, so that different application configurations triggering the notification alert tone playing event of the delayed notification type correspond to notification alert tones with continuous same melody.
Further, in the case of issuing a triggered delayed notification, playing corresponding delayed notification tones in sequence according to the trigger time of the notification tone play event of each delayed notification type, including: under the condition of triggering the delayed notification to be issued, determining the playing sequence of the prompt tone corresponding to each application type; and playing the corresponding delayed notification prompt tones in sequence according to the prompt tone playing sequence and the triggering time of the notification prompt tone playing event of each delayed notification type corresponding to each application type.
The prompt tone playing sequence is correspondingly set according to the application type of the application, and if the delay notice of the application of the social class can be set to be published with the highest priority, the delay notice is published first; the delayed notice release priority of the application of the office class is set to be middle, and the delayed notice release priority of the application of other news classes is the lowest, so that the corresponding notice prompt tones can be sequentially played according to the prompt tone playing sequence corresponding to each application type.
Specifically, under the condition of triggering the delayed notification to be issued, the electronic device determines a prompt tone playing sequence corresponding to each application type, where the prompt tone playing sequence is preset according to actual needs, specifically may be set by default of a system, and may also be set by a user in a personalized manner. After the prompt tone playing sequence corresponding to each application type is determined, the electronic equipment plays the corresponding delayed notification prompt tones in sequence according to the prompt tone playing sequence and the triggering time of the notification prompt tone playing event of each delayed notification type corresponding to each application type. Specifically, the electronic device determines the playing sequence of each application type according to the playing sequence of the warning tones, and for the delayed notification warning tones of each application type, the corresponding delayed notification warning tones are played in sequence according to the triggering time of the notification warning tone playing event of each delayed notification type, so that the corresponding notification warning tones are played in sequence according to the playing sequence of the warning tones corresponding to each application type.
In this embodiment, the electronic device plays the corresponding delayed notification alert tones in sequence according to the alert tone playing sequence and the trigger time of the notification alert tone playing event of each delayed notification type corresponding to each application type, so that the delayed notification messages can be played in sequence according to the alert tone playing sequence of the corresponding application type, and the played notification alert tones can form a complete melody correspondingly, thereby enriching the content of the notification alert tones.
In one embodiment, the notification alert tone processing method further includes: under the condition that a notification prompt tone playing event is monitored, determining playing event trigger information for triggering the notification prompt tone playing event; determining the type of the audio resource corresponding to the notification prompt tone playing event according to the playing event triggering information; and determining the current notification prompt tone corresponding to the notification prompt tone playing event from the audio resources corresponding to the audio resource types, and playing the current notification prompt tone.
The playing event trigger information is associated information of a triggered notification alert tone playing event, such as a playing event trigger time, a playing event trigger location, a playing event trigger user, a playing event trigger action, and the like. The playing event triggering time is the time for triggering the notification prompt tone playing event, the playing event triggering place is the position of the electronic equipment when the notification prompt tone playing event is triggered, the playing event triggering user is a user for triggering the notification prompt tone playing event, and the playing event triggering is used as an instruction for triggering the notification prompt tone playing event. The type of the audio resource is the type of the audio resource corresponding to the notification alert tone, such as but not limited to the type of melody, type of instrument, and so on.
Specifically, under the condition that the notification alert tone playing event is monitored, the electronic device determines the playing event trigger information for triggering the notification alert tone playing event, and the specific electronic device may acquire the playing event trigger information for triggering the notification alert tone playing event based on the instrumentation technology. After the play event trigger information is obtained, the electronic equipment determines the audio resource type corresponding to the notification prompt tone play event based on the play event trigger information. In a specific implementation, the corresponding audio resource types may be configured in advance based on the play event trigger information, for example, the audio resources of different musical instruments or the audio resources of different melodies may be configured for the notification alert tone play events of different play event trigger information as the corresponding notification alert tones, and the configured audio resource configuration table is stored in advance. The electronic device can query a mapping relation between the preset playing event trigger information and the audio resource type, and determine the audio resource type based on the playing event trigger information corresponding to the current notification prompt tone playing event. Different audio resource types are correspondingly set with different audio resources, the electronic equipment determines the current notification prompt tone corresponding to the notification prompt tone playing event from the audio resources corresponding to the determined audio resource types, and carries out message prompt by playing the current notification prompt tone.
In this embodiment, according to the notification alert tone play event corresponding to different play event trigger information, the current notification alert tone is determined from the audio resources corresponding to different audio resource types for play alert, so that the audio resources corresponding to the notification alert tone correspond to the play event trigger information of the notification alert tone play event, the notification alert tone is further enriched, and the alert effect is improved.
In one embodiment, the play event trigger information includes at least one of a play event trigger time, a play event trigger location, a play event trigger user, and a play event trigger action.
The playing event triggering time is the time for triggering the notification prompt tone playing event, the playing event triggering place is the position of the electronic equipment when the notification prompt tone playing event is triggered, the playing event triggering user is a user for triggering the notification prompt tone playing event, and the playing event triggers an instruction for triggering the notification prompt tone playing event. The playing event trigger information can be flexibly set according to actual needs, for example, the playing event trigger time, the playing event trigger location and the playing event trigger user can be set, that is, the corresponding audio resource type is determined according to the playing event trigger time, the playing event trigger location and the playing event trigger user, and the current notification prompt tone corresponding to the prompt tone playing event is determined from the audio resources corresponding to the audio resource type for playing prompt. In the embodiment, different audio resource types are configured based on the play event trigger information of the notification prompt tone play event, and the notification prompt tone play event of different play event trigger information can be distinguished through the notification prompt tone, so that the carrying information of the notification prompt tone is enriched, and the message prompt effect is improved.
In one embodiment, the notification alert tone processing method further includes: acquiring notification prompt tone configuration information; and under the condition that a notification prompt tone playing event is monitored for the first time, determining the notification prompt tone according to the configuration information of the notification prompt tone, and playing the notification prompt tone.
The notification prompt tone configuration information is user configuration information, for example, the notification prompt tone configuration information can be configured on a notification tone configuration interface by a user, and the electronic device obtains the notification prompt tone configuration information configured by the user. Specifically, the electronic device obtains notification alert tone configuration information, determines a notification alert tone according to the notification alert tone configuration information and plays the notification alert tone when a notification alert tone playing event is monitored for the first time. For example, when a notification alert tone playing event is monitored for the first time, the electronic device may determine a corresponding audio resource based on the notification alert tone configuration information configured by the user, determine the audio resource as a notification alert tone, and play the notification alert tone for message prompting. When the event of playing the notification alert tone is monitored subsequently, the electronic device can determine the next notification alert tone which belongs to the same melody as the notification alert tone and is adjacent to the notification alert tone as the current notification alert tone and play the notification alert tone, so that the notification alert tone configured by the user can be continuously played for message alert.
In this embodiment, the notification alert tone is determined based on the notification alert tone configuration information configured in advance by the user, and continuous playing is performed based on the audio resource of the notification alert tone belonging to the same melody, so as to implement message alert, support user-defined configuration, and expand the applicable scenes of the notification alert tone.
In one embodiment, before playing the current notification alert tone, the method further comprises: acquiring play event trigger information for triggering a notification prompt tone play event; and determining the playing parameters corresponding to the current notification prompt tone according to the playing event trigger information.
The playing event trigger information is associated information of a triggered notification alert tone playing event, such as a playing event trigger time, a playing event trigger location, a playing event trigger user, a playing event trigger action, and the like. The playing event triggering time is the time for triggering the notification prompt tone playing event, the playing event triggering place is the position of the electronic equipment when the notification prompt tone playing event is triggered, the playing event triggering user is a user for triggering the notification prompt tone playing event, and the playing event trigger is used as an instruction for triggering the notification prompt tone playing event. The playing parameters may include playing duration, playing volume, and other parameters related to the play control of the notification alert tone.
Specifically, before playing the current notification alert tone, the electronic device may further configure the playing parameter of the current notification alert tone based on the playing event trigger information of the notification alert tone playing event, so as to implement playing control of the notification alert tone. Further, before playing the current notification alert tone, the electronic device obtains the play event trigger information for triggering the play event of the notification alert tone, and specifically, the electronic device may obtain the play event trigger information for triggering the play event of the notification alert tone based on the instrumentation technology. And after the playing event triggering information is obtained, the electronic equipment determines the playing parameters corresponding to the current notification prompt tone according to the playing event triggering information. In specific implementation, the corresponding playing parameters may be configured in advance based on the playing event trigger information, and a mapping relationship between the playing event trigger information and the playing parameters is stored, and the electronic device may determine the corresponding playing parameters, such as playing volume, playing duration, and the like, based on the playing event trigger information and the mapping relationship.
Further, playing the current notification alert tone includes: and playing the current notification prompt tone according to the playing parameters.
When the current notification prompt tone is played, the electronic device plays the current notification prompt tone according to the determined playing parameters, for example, the current notification prompt tone is played according to the determined playing volume or playing duration.
In this embodiment, different playing parameters are configured according to the notification alert tone playing event corresponding to different playing event trigger information, and the corresponding notification alert tone is played according to the configured playing parameters, so that the playing of the notification alert tone corresponds to the playing event trigger information of the notification alert tone playing event, the notification alert tone is further enriched, and the alert effect is improved.
In one embodiment, a notification alert processing method is provided, as shown in fig. 7, the audio resources of the notification alert processing method include audio resources of 4 musical instrument types, such as electronic tones, glass harps, marimbas, and classical guitars, and 4 music resources are mapped under each musical instrument, wherein each music resource is composed of a plurality of independent small music resources generated by the musical instrument type, and the music resources are played together to form a complete melody. When the user selects the system default notification sound to be an electronic sound, the system of the electronic device monitors the notification frequency, and randomly selects a melody to be played sequentially when the two notification intervals are within 10 s. When the interval exceeds 10s or is interrupted by other customized ringtones, the next melody is randomly switched to.
Specifically, the electronic device performs instrumentation interception at a position where the system notification service plays ring vibrations, performs ring resource replacement if the current notification sound is a system default notification sound and the dynamic alert sound switch state is on, that is, performs message alert through the determined notification alert sound in the audio resource library, that is, replaces the default notification alert sound with a corresponding dynamic alert sound resource, and modifies a vibration effect to adapt to a vibration waveform of a corresponding ring. And for the set personalized notification ring tone of some third-party applications, the effect of the third party is continuously kept. If the dynamic prompt tone is interrupted by the user-defined prompt tones of the three parties, the electronic equipment randomly switches a melody to continue playing.
In the embodiment, in a high-frequency notification scene, the tone of the notification sound can be accompanied by the change of the rhythm, and in a continuous notification scene, the notification sounds are connected to form a complete rhythm, so that the disturbance brought to the user by the high-frequency notification scene can be solved, the content of the notification sound is effectively enriched, the intelligence and interest are increased, the expectation of the user on the notification sound is improved, and the use experience of the user on the electronic equipment is improved.
It should be understood that although the steps in the flowcharts of fig. 2 or 4 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2 or 4 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or stages is not necessarily sequential, but may be performed alternately or alternately with other steps or at least some of the sub-steps or stages of other steps.
Fig. 8 is a block diagram showing a configuration of a notification alert sound processing apparatus 800 according to an embodiment. As shown in fig. 8, the notification alert tone processing apparatus 800 includes a play event response module 802, an alert tone determination module 804, and an alert tone play module 806, wherein:
a play event response module 802, configured to determine, when a notification alert tone play event is monitored, a play time of a last notification alert tone;
a prompt tone determining module 804, configured to determine, as the current notification prompt tone, a next notification prompt tone that belongs to the same melody as the previous notification prompt tone and is adjacent to the previous notification prompt tone when a time interval between the current time and a playing time of the previous notification prompt tone is smaller than a time interval threshold;
and an alert tone playing module 806, configured to play the current notification alert tone.
In one embodiment, the alert tone determination module 804 includes a duration interval determination module, an audio melody determination module, and an audio resource selection module; wherein: the time interval determining module is used for determining the time interval between the current moment and the playing moment of the last notification prompt tone; the audio melody determining module is used for determining the audio melody corresponding to the last notification prompt tone under the condition that the time interval is smaller than the time interval threshold; and the audio resource selection module is used for determining the next audio resource adjacent to the audio resource corresponding to the last notification prompt tone in all the audio resources of the audio melody as the current notification prompt tone.
In one embodiment, the system further comprises an interrupt switching module, configured to determine a target melody different from the melody to which the last notification alert sound belongs, if a time interval between the current time and the playing time of the last notification alert sound is not less than a time interval threshold; and determining the current notification prompt tone from the audio resource corresponding to the target melody, and playing the current notification prompt tone.
In one embodiment, the system further comprises a custom notification module, configured to determine a prompt tone type corresponding to an application that triggers a notification prompt tone play event when the notification prompt tone play event is monitored; and under the condition that the prompt tone type is the user-defined prompt tone type, determining the user-defined prompt tone corresponding to the application type as the current notification prompt tone, and playing the current notification prompt tone.
In one embodiment, the system further comprises an audio resource determination module, an application interruption determination module and an application interruption notification processing module; wherein: the audio resource determining module is used for determining the audio resource corresponding to the last notification prompt tone under the condition that the notification prompt tone playing event is monitored; the application interruption determining module is used for determining the target melody under the condition that the audio resource corresponding to the prompt tone is notified last time and is of the type of the audio resource defined by the application; and the application interruption notification processing module is used for determining the current notification prompt tone from the audio resource corresponding to the target melody and playing the current notification prompt tone.
In one embodiment, the system further comprises an application type determining module and a dynamic prompting module; wherein: the application type determining module is used for determining an application type corresponding to an application triggering the notification prompt tone playing event; and the dynamic prompt module is used for controlling the play event response module to execute the step of determining the play time of the last notification prompt tone under the condition that the application type is the default prompt tone type and the application type is in the dynamic prompt tone activation state.
In one embodiment, the method further comprises a vibration configuration module, configured to configure a vibration waveform of the notification prompt vibration to correspond to the notification prompt tone if the application type is the default prompt tone type and is in the dynamic prompt tone activation state.
In one embodiment, the system further comprises a delay notice monitoring module, a delay prompt tone determining module and a delay notice issuing module; wherein: the delay notice monitoring module is used for determining a last delay notice prompt tone corresponding to the notice prompt tone play event of the last delay notice type under the condition that the notice prompt tone play event of the delay notice type is monitored; the delay prompt tone determining module is used for determining the next adjacent notification prompt tone which belongs to the same melody as the previous delay notification prompt tone as the delay notification prompt tone corresponding to the playing event of the current notification prompt tone; and the delayed notification issuing module is used for sequentially playing the corresponding delayed notification prompt tones according to the triggering time of the notification prompt tone playing event of each delayed notification type under the condition of triggering the delayed notification issuing.
In one embodiment, the delayed notification monitoring module comprises a delayed application type determination module and a previous delayed notification determination module; wherein: the delay application type determining module is used for determining the application type of the current notification prompt tone playing event; the system comprises a previous delay notification determining module, a previous delay notification prompting tone generating module and a previous delay notification prompting tone generating module, wherein the previous delay notification determining module is used for determining a previous delay notification prompting tone corresponding to a notification prompting tone playing event of a previous delay notification type triggered by an application corresponding to an application type; the delay notice issuing module comprises a playing sequence determining module and a sequential playing processing module; wherein: the playing sequence determining module is used for determining the playing sequence of the prompt tone corresponding to each application type under the condition of triggering the delayed notification to be issued; and the sequential playing processing module is used for playing the corresponding delayed notification prompt tones in sequence according to the prompt tone playing sequence and the triggering time of the notification prompt tone playing event of each delayed notification type corresponding to each application type.
In one embodiment, the device also comprises a trigger information determination module, an audio resource type determination module and an audio resource type processing module; wherein: the trigger information determining module is used for determining the play event trigger information for triggering the notice prompt tone play event under the condition that the notice prompt tone play event is monitored; the audio resource type determining module is used for determining the audio resource type corresponding to the notification prompt tone playing event according to the playing event triggering information; and the audio resource type processing module is used for determining the current notification prompt tone corresponding to the notification prompt tone playing event from the audio resources corresponding to the audio resource types and playing the current notification prompt tone.
In one embodiment, the play event trigger information includes at least one of a play event trigger time, a play event trigger location, a play event trigger user, and a play event trigger action.
In one embodiment, the system further comprises a configuration information acquisition module and a first notification processing module; wherein: the configuration information acquisition module is used for acquiring the configuration information of the notification prompt tone; and the first notification processing module is used for determining the notification prompt tone according to the configuration information of the notification prompt tone and playing the notification prompt tone under the condition that a notification prompt tone playing event is monitored for the first time.
In one embodiment, the system further comprises a trigger information acquisition module and a playing parameter determination module; wherein: the trigger information acquisition module is used for acquiring play event trigger information for triggering a prompt tone play event; the playing parameter determining module is used for determining the playing parameters corresponding to the current notification prompt tone according to the playing event trigger information; the prompt tone playing module 806 is further configured to play the current notification prompt tone according to the playing parameters.
The division of the modules in the notification alert sound processing apparatus is merely for illustration, and in other embodiments, the notification alert sound processing apparatus may be divided into different modules as needed to complete all or part of the functions of the notification alert sound processing apparatus.
For specific limitations of the notification alert sound processing apparatus, reference may be made to the above limitations of the notification alert sound processing method, which are not described herein again. The modules in the notification alert sound processing apparatus may be wholly or partially implemented by software, hardware, or a combination thereof. The modules can be embedded in a hardware form or independent of a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
Fig. 9 is a schematic diagram of an internal structure of an electronic device in one embodiment. As shown in fig. 9, the electronic device includes a processor and a memory connected by a system bus. Wherein, the processor is used for providing calculation and control capability and supporting the operation of the whole electronic equipment. The memory may include a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The computer program is executable by a processor for implementing a notification alert tone processing method provided in the following embodiments. The internal memory provides a cached operating environment for operating system computer programs in the non-volatile storage medium. The electronic device may be any terminal device such as a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), a vehicle-mounted computer, and a wearable device.
The implementation of each module in the notification alert tone processing apparatus provided in the embodiment of the present application may be in the form of a computer program. The computer program may be run on a terminal or a server. Program modules constituted by such computer programs may be stored on the memory of the electronic device. Which when executed by a processor, performs the steps of the method described in the embodiments of the present application.
The embodiment of the application also provides a computer readable storage medium. One or more non-transitory computer-readable storage media containing computer-executable instructions that, when executed by one or more processors, cause the processors to perform the steps of the notification alert tone processing method.
A computer program product containing instructions which, when run on a computer, cause the computer to perform a notification alert tone processing method.
Any reference to memory, storage, database or other medium used herein may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM), which acts as external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), rambus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (16)

1. A notification tone processing method, comprising:
under the condition that a notice prompt tone playing event is monitored and the audio resource corresponding to the last notice prompt tone is of an application-defined audio resource type, determining a notice prompt tone melody from a preset audio resource library, and determining a current notice prompt tone from the audio resource corresponding to the notice prompt tone melody;
under the condition that the audio resource corresponding to the last notification prompt tone does not belong to the type of the audio resource defined by the application, determining the playing time of the last notification prompt tone;
under the condition that the time interval between the current time and the playing time of the last notification prompt tone is less than a time interval threshold value, determining the next notification prompt tone which belongs to the same melody as the last notification prompt tone and is adjacent to the last notification prompt tone as the current notification prompt tone;
under the condition that the time interval between the current time and the playing time of the last notification prompt tone is not less than the time interval threshold, determining a target melody different from the melody to which the last notification prompt tone belongs from the audio resource library; determining a current notification prompt tone from the audio resource corresponding to the target melody;
and playing the current notification prompt tone.
2. The method according to claim 1, wherein in the case that the time interval between the current time and the playing time of the last notification alert tone is less than the time interval threshold, determining the next notification alert tone which belongs to the same melody as the last notification alert tone and is adjacent to the last notification alert tone as the current notification alert tone comprises:
determining the time interval between the current time and the playing time of the last notification prompt tone;
determining the audio melody corresponding to the last notification prompt tone under the condition that the duration interval is smaller than the duration interval threshold;
and determining the next audio resource adjacent to the audio resource corresponding to the last notification prompt tone in the audio resources of the audio melody as the current notification prompt tone.
3. The method of claim 1, wherein the notification alert tone play event is monitored based on instrumentation techniques.
4. The method of claim 1, further comprising:
determining a prompt tone type corresponding to an application triggering a notification prompt tone playing event under the condition that the notification prompt tone playing event is monitored;
and under the condition that the prompt tone type is the custom prompt tone type, determining the custom prompt tone corresponding to the application type as the current notification prompt tone, and playing the current notification prompt tone.
5. The method of claim 1, wherein when a notification alert tone playing event is monitored and an audio resource corresponding to a last notification alert tone is an application-defined audio resource type, determining a notification alert tone melody from a preset audio resource library, and determining a current notification alert tone from the audio resource corresponding to the notification alert tone melody, comprises:
under the condition that a notification prompt tone playing event is monitored, determining an audio resource corresponding to the last notification prompt tone;
determining the melody of the notification prompt tone under the condition that the audio resource corresponding to the last notification prompt tone is the audio resource type defined by the application;
and determining the current notification prompt tone from the audio resource corresponding to the notification prompt tone melody.
6. The method according to claim 1, further comprising, before said determining the playing time of the last notification alert tone:
determining an application type corresponding to an application triggering the notification prompt tone playing event;
and under the condition that the application type is a default prompt tone type and is in a dynamic prompt tone activation state, executing a step of determining the playing time of the last notification prompt tone.
7. The method of claim 6, further comprising:
and configuring a vibration waveform of the notification prompt vibration to correspond to the notification prompt sound under the condition that the application type is a default prompt sound type and is in a dynamic prompt sound activation state.
8. The method of claim 1, further comprising:
under the condition that a notification prompt tone playing event of a delay notification type is monitored, determining a last delay notification prompt tone corresponding to the notification prompt tone playing event of the last delay notification type;
determining the next adjacent notification prompt tone which belongs to the same melody as the previous notification prompt tone as the delay notification prompt tone corresponding to the current notification prompt tone playing event;
when the delay notice is released, the corresponding delay notice prompt tones are played in sequence according to the triggering time of the notice prompt tone playing event of each delay notice type.
9. The method of claim 8, wherein the determining the last delayed notification alert tone corresponding to the notification alert tone play event of the last delayed notification type comprises:
determining an application type triggering a current notification prompt tone play event;
determining a last delayed notification prompt tone corresponding to a notification prompt tone play event of a last delayed notification type triggered by the application corresponding to the application type;
the method for playing the corresponding delay notice prompt tones in sequence according to the trigger time of the notice prompt tone playing event of each delay notice type under the condition of triggering the release of the delay notice comprises the following steps:
under the condition of triggering the delayed notification to be issued, determining the playing sequence of the prompt tone corresponding to each application type;
and playing the corresponding delayed notification prompt tones in sequence according to the prompt tone playing sequence and the triggering time of the notification prompt tone playing event of each delayed notification type corresponding to each application type.
10. The method of claim 1, further comprising:
under the condition that a notification prompt tone playing event is monitored, determining playing event triggering information for triggering the notification prompt tone playing event;
determining the type of the audio resource corresponding to the notification prompt tone playing event according to the playing event triggering information;
and determining the current notification prompt tone corresponding to the notification prompt tone playing event from the audio resources corresponding to the audio resource types, and playing the current notification prompt tone.
11. The method of claim 10, wherein the play event trigger information comprises at least one of a play event trigger time, a play event trigger location, a play event trigger user, and a play event trigger action.
12. The method of claim 1, further comprising:
acquiring notification prompt tone configuration information;
and under the condition that a notification prompt tone playing event is monitored for the first time, determining a notification prompt tone according to the configuration information of the notification prompt tone, and playing the notification prompt tone.
13. The method according to any one of claims 1 to 12, further comprising, before said playing said current notification alert tone:
acquiring play event trigger information for triggering the notice prompt tone play event;
determining a playing parameter corresponding to the current notification prompt tone according to the playing event trigger information;
the playing the current notification alert tone includes:
and playing the current notification prompt tone according to the playing parameters.
14. A notification alert sound processing apparatus characterized by comprising:
the system comprises a playing event response module, a notification prompt tone processing module and a display module, wherein the playing event response module is used for determining a notification prompt tone melody from a preset audio resource library and determining a current notification prompt tone from an audio resource corresponding to the notification prompt tone melody under the condition that a notification prompt tone playing event is monitored and the audio resource corresponding to the last notification prompt tone is an application-defined audio resource type; under the condition that the audio resource corresponding to the last notification prompt tone does not belong to the type of the audio resource defined by the application, determining the playing time of the last notification prompt tone;
the prompt tone determining module is used for determining the next adjacent prompt tone which belongs to the same melody as the last prompt tone as the current prompt tone under the condition that the time interval between the current time and the playing time of the last prompt tone is less than a time interval threshold; under the condition that the time interval between the current time and the playing time of the last notification prompt tone is not less than the time interval threshold, determining a target melody different from the melody to which the last notification prompt tone belongs from the audio resource library; determining a current notification prompt tone from an audio resource corresponding to the target melody;
and the prompt tone playing module is used for playing the current notification prompt tone.
15. An electronic device comprising a memory and a processor, the memory having stored therein a computer program, wherein the computer program, when executed by the processor, causes the processor to perform the steps of the notification alert tone processing method according to any one of claims 1 to 13.
16. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 13.
CN202011518518.6A 2020-12-21 2020-12-21 Notification prompt tone processing method and device and electronic equipment Active CN112637047B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202011518518.6A CN112637047B (en) 2020-12-21 2020-12-21 Notification prompt tone processing method and device and electronic equipment
PCT/CN2021/128079 WO2022134869A1 (en) 2020-12-21 2021-11-02 Notification prompt tone processing method and apparatus, and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011518518.6A CN112637047B (en) 2020-12-21 2020-12-21 Notification prompt tone processing method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN112637047A CN112637047A (en) 2021-04-09
CN112637047B true CN112637047B (en) 2023-01-03

Family

ID=75320743

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011518518.6A Active CN112637047B (en) 2020-12-21 2020-12-21 Notification prompt tone processing method and device and electronic equipment

Country Status (2)

Country Link
CN (1) CN112637047B (en)
WO (1) WO2022134869A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112637047B (en) * 2020-12-21 2023-01-03 Oppo广东移动通信有限公司 Notification prompt tone processing method and device and electronic equipment
WO2023273440A1 (en) * 2021-06-30 2023-01-05 华为技术有限公司 Method and apparatus for generating plurality of sound effects, and terminal device

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103294442B (en) * 2013-06-03 2016-04-13 小米科技有限责任公司 A kind of method of playing alert tones, device and terminal device
US9875645B1 (en) * 2015-12-08 2018-01-23 Massachusetts Mutual Life Insurance Company Notification system for mobile devices
CN105847551A (en) * 2016-03-25 2016-08-10 乐视控股(北京)有限公司 Volume prompting method and apparatus by using alarm clock and cell phone
CN108696640A (en) * 2018-05-14 2018-10-23 深圳市零度智控科技有限公司 Method for controlling of prompt tone, mobile terminal and computer readable storage medium
CN110958351A (en) * 2019-11-26 2020-04-03 东莞市鼎酷科技有限公司 Message prompt tone processing method and device, storage medium and terminal
CN111225109A (en) * 2019-11-26 2020-06-02 东莞市鼎酷科技有限公司 Message prompt tone processing method, device, storage medium and terminal
CN112637047B (en) * 2020-12-21 2023-01-03 Oppo广东移动通信有限公司 Notification prompt tone processing method and device and electronic equipment

Also Published As

Publication number Publication date
CN112637047A (en) 2021-04-09
WO2022134869A1 (en) 2022-06-30

Similar Documents

Publication Publication Date Title
CN112637047B (en) Notification prompt tone processing method and device and electronic equipment
US9891963B2 (en) System and method for optimizing user notifications for small computer devices
KR101376954B1 (en) Personality-based device
JP4550068B2 (en) System and method for preparing and playing media presentations
US9836346B2 (en) Error troubleshooting using a correlated knowledge base
US10559323B2 (en) Audio and video synchronizing perceptual model
WO2016192244A1 (en) Message management method and device, mobile terminal and storage medium
CN112350873B (en) Application service information processing method, application service calling method, device and system
US20120224719A1 (en) Vibration control
AU2014352423B2 (en) Method and device for processing application of mobile terminal
US20180336915A1 (en) Mechanism and instrumentation for metering conversations
CN110430326B (en) Ring editing method and device, mobile terminal and storage medium
CN108694035A (en) The report management method and device of voice messaging
CN104902058A (en) Method and device for setting call reminder
US20180176274A1 (en) Preset assignments for streaming music players
CN112099755A (en) Method for simultaneously calling input audio stream by multiple applications and readable medium
CN104978398A (en) Method for music playing and terminal device
CN110139187B (en) Intelligent sound box control method and device and terminal
CN110275981B (en) Content recommendation method and device
CN107767857B (en) Information playing method, first electronic equipment and computer storage medium
CN109729218B (en) Message processing method and system and mobile phone
JP4729005B2 (en) Service scenario creation device, service scenario creation method, and service scenario creation program
CN110958351A (en) Message prompt tone processing method and device, storage medium and terminal
JP2005274582A (en) Character message output device
CN117198337A (en) Audio generation method and device, readable storage medium and electronic equipment

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