WO2022134869A1 - Notification prompt tone processing method and apparatus, and electronic device - Google Patents

Notification prompt tone processing method and apparatus, and electronic device Download PDF

Info

Publication number
WO2022134869A1
WO2022134869A1 PCT/CN2021/128079 CN2021128079W WO2022134869A1 WO 2022134869 A1 WO2022134869 A1 WO 2022134869A1 CN 2021128079 W CN2021128079 W CN 2021128079W WO 2022134869 A1 WO2022134869 A1 WO 2022134869A1
Authority
WO
WIPO (PCT)
Prior art keywords
notification sound
notification
playback
sound
last
Prior art date
Application number
PCT/CN2021/128079
Other languages
French (fr)
Chinese (zh)
Inventor
高钊
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2022134869A1 publication Critical patent/WO2022134869A1/en

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

Definitions

  • the present application relates to the field of Internet technology, and in particular, to a notification sound processing method, apparatus, electronic device and computer-readable storage medium.
  • Various embodiments of the present application provide a notification sound processing method, apparatus, electronic device, and computer-readable storage medium.
  • a notification sound processing method comprising:
  • the next notification tone that belongs to the same melody and is adjacent to the last notification tone is determined as the current notification tone
  • a notification sound processing device comprising:
  • the playback event response module is used to determine the playback time of the last notification sound when the notification sound playback event is detected
  • the prompt tone determination module is used to determine the next notification prompt tone belonging to the same melody and adjacent to the last notification prompt tone as The current notification tone;
  • the prompt tone playback module is used to play the current notification tone.
  • An electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:
  • the next notification tone that belongs to the same melody and is adjacent to the last notification tone is determined as the current notification tone
  • the next notification tone that belongs to the same melody and is adjacent to the last notification tone is determined as the current notification tone
  • FIG. 1 is an application environment diagram of a notification sound processing method in one embodiment.
  • FIG. 2 is a flowchart of a method for processing notification sound in one embodiment.
  • FIG. 3 is a schematic diagram of an interface for displaying a notification prompt message in an embodiment.
  • FIG. 4 is a flow chart of determining the current notification tone in one embodiment.
  • FIG. 5 is a schematic diagram of an audio resource library in one embodiment.
  • FIG. 6 is a schematic interface diagram of a prompt tone configuration interface in an embodiment.
  • FIG. 7 is a schematic diagram of an audio resource library in another embodiment.
  • FIG. 8 is a structural block diagram of a notification sound processing apparatus in an embodiment.
  • FIG. 9 is an internal structure diagram of an electronic device in one embodiment.
  • first, second, etc. used in this application may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish a first element from another element.
  • 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 this 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 sound processing method in an embodiment.
  • the application environment includes an electronic device 102 and a server 104 connected through a network.
  • the server 104 can push messages to the electronic device 102, such as service messages that can be pushed by the server 104, or messages sent by other users forwarded by the server 104, etc.
  • a notification prompt is performed, such as through the electronic device
  • the notification prompt box of 102 performs a message notification prompt, and simultaneously plays a notification prompt sound for prompting.
  • the electronic device 102 monitors the notification sound playing event, and the time interval between the current time and the playback time of the last notification sound is less than the time interval threshold, the electronic device 102 will be based on the fact that the notification sound belongs to the same The current notification sound determined by the melody and the adjacent next notification sound is played, so as to realize the prompting of the notification message.
  • the electronic device 102 can be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers and portable wearable devices, and the server 104 can be implemented by an independent server or a server cluster composed of multiple servers.
  • FIG. 2 is a flowchart of a method for processing notification sound in one embodiment.
  • the method for processing a notification sound in this embodiment is described by taking the electronic device in FIG. 1 as an example for description.
  • the notification sound processing method includes operations 202 to 206 .
  • operation 202 in the case of monitoring the playing event of the notification sound, determine the playback time of the last notification sound.
  • the notification sound playing event refers to the behavior of triggering the playing of the notification sound, which may specifically be the behavior of receiving the notification message and displaying it.
  • a message prompt can be performed through a message notification box on the interface of the electronic device.
  • the notification sound playback event can be monitored based on the instrumentation technology.
  • the instrumentation technology refers to inserting a probe into the program on the basis of ensuring the integrity of the original program logic, and collecting the information in the code through the probe ( The method itself, method parameter value, return value, etc.) insert a code segment in a specific position to collect dynamic context information when the program is running.
  • the notification sound can be detected by instrumentation interception in the system notification service of the electronic device. Play the event.
  • the messages pushed by the application programs 1-3 are respectively displayed through three message notification boxes.
  • the electronic device pops up a message notification box to display the notification message, the user will be prompted by playing the notification sound at the same time.
  • a notification sound playback event is triggered, and the electronic device pops up a message notification box on the interface for message prompting while playing the corresponding notification sound for message prompting.
  • application 2 and application 3 trigger a notification sound playing event, the electronic device plays the notification sound correspondingly.
  • the last notification sound is the notification sound played when the notification sound playback event was triggered last time.
  • applications 1-3 trigger the notification sound playback event successively, that is, application 1 triggers the notification sound playback event first, and application 3 triggers the notification sound playback event last, then the notification sound is triggered for application 2.
  • the last notification sound is the notification sound played when application 1 triggers the notification sound playback event; for application 3, the last notification sound is the notification sound when application 2 triggers the notification sound.
  • the electronic device monitors the notification sound playback event, and when monitoring the notification sound playback event, it indicates that the electronic device needs to play the notification sound for a message prompt, and the electronic device determines the playback time of the last notification sound. Specifically, it can be The playback time of the last notification sound can be obtained by querying the electronic device from the notification sound information database that records the information of each notification sound. In addition, the playback time of the last notification sound can also be determined according to the monitored playback event of the last notification sound. Play time.
  • Operation 204 when the time interval between the current moment and the playback time of the last notification tone is less than the duration interval threshold, the next notification tone that belongs to the same melody and adjacent to the last notification tone is determined as the current notification tone .
  • the current time is the current time, that is, the time when the notification sound playback event is monitored; the time interval is determined according to the difference between the current time and the playback time of the last notification sound, reflecting the two notification sound playback events before and after time span; the time interval threshold is used to determine the trigger frequency of the notification sound playback event.
  • the specific value of the time interval threshold can be set according to actual needs, for example, it can be set to 10 seconds. If the time span is less than the duration interval threshold, that is, less than 10 seconds, it can be considered that the trigger frequency of the notification sound playback event is high, otherwise, the trigger frequency of the notification sound playback event is considered to be low.
  • Melody is the primary element of music, which usually refers to an organized, rhythmic sequence of several musical tones formed through artistic conception.
  • the melody is carried out in a single part with a logical factor composed of a certain pitch, time value and volume.
  • the melody is organically combined with many basic elements of music, such as mode, rhythm, beat, dynamics, timbre performance methods, etc. made.
  • the current notification sound is the notification sound corresponding to the current notification sound playing event, that is, the monitored notification sound playing event corresponds to playing the current notification sound for message prompting.
  • the electronic device after determining the playback time of the last notification sound, the electronic device further obtains a preset time interval threshold, and determines the time interval between the current time and the playback time of the last notification sound, and the electronic device compares the time interval and Duration interval threshold, if the duration interval is less than the duration interval threshold, it indicates that the triggering time span between the current notification tone playback event and the last notification tone playback event is small, and it can be considered that the trigger frequency of the notification tone playback event is high, and the triggering frequency of the notification tone playback event is high.
  • the last notification sound belongs to the same melody and the next adjacent notification sound is determined as the current notification sound.
  • the electronic device can determine the music resource set that belongs to the same melody as the last notification sound, and integrate the music resource with the same melody.
  • the music resource adjacent to the last notification sound is used as the current notification sound, so that the notification sound played this time in response to the notification sound playing event and the last notification sound can form a melody and play in sequence.
  • the electronic device After determining the current notification sound corresponding to the current notification sound playback event, the electronic device plays the current notification sound, so that the notification sound played this time in response to the notification sound playback event and the last notification sound can be formed in sequence The melody is played.
  • the notification messages corresponding to applications 1-3 are frequently sounded, and the electronic device plays three consecutive times.
  • the corresponding notification sound, and a single, boring notification sound may make the user feel fatigued and affect the user's experience of using the electronic device.
  • the content of the dynamic notification sound with high frequency repetition is single and easy to cause auditory fatigue, so that the current notification sound played and the last notification sound played form a continuous and complete melody.
  • the notification sound played by application 1 is the music resource A1 in melody A
  • the notification sound played by application 2 is the music resource A2 in melody A
  • the notification sound played by application 3 is the music resource of A2 in melody A.
  • the notification sound played is the music resource of A3 in melody A, so that the notification sound played by the applications 1-3 respectively form the complete melody of A1-A2-A3, which can effectively enrich the content of the notification sound, increase the intelligent interest, and improve the The user's sense of expectation for the notification sound improves the user's experience of using the electronic device.
  • the notification sound processing method in this embodiment when a notification sound playback event is monitored, and the time interval between the current moment and the playback time of the last notification sound is smaller than the time interval threshold, the The notification sound belongs to the same melody and the current notification sound determined by the adjacent next notification sound is played, so that when the notification sound playback event is frequently triggered, the played notification sound forms a complete melody, which enriches the notification sound. content of the sound.
  • the current notification sound is determined, that is, when the time interval between the current moment and the playback time of the last notification sound is smaller than the time interval threshold, it will belong to the same notification sound as the last notification sound.
  • the next notification tone that is adjacent to the melody is determined as the current notification tone, including:
  • the time interval between the current time and the playback time of the last notification sound is determined.
  • the time interval reflects the time span of the two notification sound playback events before and after, which can be determined according to the difference between the current moment and the playback time of the last notification sound, so that it can be judged that the two adjacent notification sounds are played.
  • the trigger frequency between events For example, when the time interval is short, it indicates that the notification sound playing event is triggered a short time after the last notification sound is played, so that the notification sound is played again.
  • the electronic device may further determine the current time, which is the time when the playback event of the notification sound is triggered. The difference between the moments gets the duration interval.
  • the time interval threshold is used to determine the trigger frequency of the notification sound playing event, and the specific value of the time interval threshold can be set according to actual needs.
  • the time interval threshold may be specifically set according to the time period, location, user type or user habit.
  • the time interval threshold can be dynamically adjusted based on the time period.
  • the time interval threshold can be set to a larger value during the working time period, and a smaller time interval threshold value can be set during the non-working time period.
  • a larger time interval threshold value can be set when the user's office is located.
  • a smaller time interval threshold is set; in addition, the electronic device can also analyze the notification messages of the electronic device according to the user's historical usage data to determine the frequency of the user receiving notification messages. , so as to determine the corresponding time interval threshold, so as to accurately determine the trigger frequency of each notification sound playback event based on user habits, and ensure the prompt effect of the notification sound.
  • the audio melody is the melody to which the audio resource corresponding to the notification tone belongs. Different audio melodies may correspond to multiple segments of continuous audio resources, and multiple segments of continuous audio resources can be played in sequence to form a complete melody.
  • the audio melody corresponding to the last notification sound can be determined according to the audio resource corresponding to the last notification sound, for example, according to the information of the audio resource corresponding to the last notification sound audio melody.
  • the electronic device compares the time interval with the time interval threshold, thereby determining whether the two successive notification sound playback events belong to high-frequency trigger events. If the time interval is less than the preset time interval threshold, the electronic device determines the audio melody corresponding to the last notification tone. Specifically, the electronic device may determine the audio resource corresponding to the last notification tone, and query the information of the audio resource, based on The information of the audio resource determines the audio melody to which it belongs, so as to obtain the audio melody corresponding to the last notification sound.
  • the next audio resource adjacent to the audio resource corresponding to the last notification sound in each audio resource of the audio melody is determined as the current notification sound.
  • the electronic device selects the next audio resource adjacent to the audio resource corresponding to the last notification sound from the audio resources of the audio melody as the current notification sound, Therefore, the current notification sound and the last notification sound belong to the same melody and are adjacent audio resources, so that the current notification sound and the last notification sound can form a continuous melody, avoiding the single notification sound. Play to enrich the content of the notification sound.
  • the current notification sound playback event and the last notification sound playback event belong to the high-frequency triggering situation, and if so, from the Among the audio resources of the audio melody corresponding to the last notification sound, the next audio resource adjacent to the audio resource corresponding to the last notification sound is selected as the current notification sound, so that the current notification sound and the last notification sound.
  • the audio resources belong to the same melody and are adjacent to each other, so that the current notification sound and the last notification sound can form a continuous melody, which avoids the single playback of the notification sound and enriches the content of the notification sound.
  • the notification sound processing method further includes: determining a target melody different from the melody to which the last notification sound belongs when the time interval between the current moment and the playback time of the last notification sound is not less than a time interval threshold ; Determine the current notification sound from the audio resource corresponding to the target melody, and play the current notification sound.
  • the target melody is a different melody from the melody to which the last notification tone belongs.
  • Different melodies have corresponding multi-segment music resources.
  • melody A, B, C, and D are set in the audio resource library of the notification tone, and melody A can be correspondingly set with music resources A1, A2...A10, a total of 10 pieces of music resources, 10 pieces of music
  • melody A can be formed; similarly, melody B can have corresponding music resources B1, B2...B10, melody C can have corresponding music resources C1, C2...C10, and melody D can have corresponding music resources D1 , D2...D10.
  • the target melody can be determined from the melody B, C, and D. For example, if the target melody is determined to be C, the Replace the new melody to play the notification sound to ensure the playback effect of the notification sound.
  • the electronic device determines a target melody different from the melody to which the last notification tone belongs. For example, a melody different from the melody to which the last notification tone belongs can be determined as the target melody from various audio melodies set in the preset audio resource library. , specifically, the target melody can be randomly selected from other melody except the melody to which the last notification tone belongs.
  • the electronic device After determining the target melody, the electronic device determines the current notification sound from the audio resource corresponding to the target melody, and plays the current notification sound.
  • the current notification tone can be determined from the music resources C1, C2...C10, for example, the first audio resource C1 in the melody C can be determined as the current The notification sound is played, and the determined current notification sound is played, so as to respond to the current notification sound playback event, the current notification sound after the switching melody is played for message prompting.
  • the audio resource determines the current notification tone and plays it, so that the melody is switched for prompting after the continuous melody of the notification tone is interrupted, which can ensure the melody playback effect of the notification tone.
  • the notification sound processing method further includes: when a notification sound playing event is monitored, determining a sound type corresponding to an application that triggers the notification sound playing event; when the sound type is a custom sound type In this case, the custom notification sound corresponding to the application type is determined as the current notification sound, and the current notification sound is played.
  • the prompt tone type includes a custom prompt tone type and a default prompt tone type, which are used to distinguish the definition manner of the notification prompt tone.
  • the custom tone type indicates that the notification tone is customized by the application, that is, for an application with a custom tone type, the message notification from the application is notified by playing its customized notification tone, such as social networking. If a third-party application such as an app or game application is set with a custom notification sound, when the third-party application pushes a notification message, the corresponding custom notification sound is played; for the default sound type, the notification sound is set by the system by default. That is, when a system application or other application triggers a notification sound playback event, the default notification sound is played for message prompting.
  • the electronic device determines the sound type corresponding to the application that triggers the notification sound playback event.
  • the corresponding triggered application may be determined according to the trigger information of the notification sound playback event, and based on the notification sound playback event.
  • the triggered application determines the corresponding prompt tone type. If the prompt tone type is a custom prompt tone type, indicating that the notification prompt tone of the notification prompt tone playback event needs to be prompted according to the application-defined notification prompt tone, the electronic device determines the custom prompt tone corresponding to the application type. It is the current notification sound, and plays the current notification sound for message prompting.
  • the type of sound corresponding to the application that triggers the notification sound playback event can be determined first, so as to determine whether it is necessary to play a custom sound for message prompting, or you can After the current notification sound is determined according to the playback time of the last notification sound, it is then determined whether it is necessary to play the custom sound for message prompting, so as to comprehensively determine the current notification sound for playback.
  • the prompt tone type corresponding to the application that triggers the prompt tone playback event is a custom prompt tone type
  • the user-defined prompt tone corresponding to the application type is played for message prompting, so as to be compatible with the custom personality of third-party applications Customized settings can further enrich the content of the notification sound.
  • the notification sound processing method further includes: in the case of monitoring the notification sound playing event, determining the audio resource corresponding to the last notification sound; the audio resource corresponding to the last notification sound is application-defined In the case of the type of audio resource, the target melody is determined; the current notification tone is determined from the audio resource corresponding to the target melody, and the current notification tone is played.
  • the electronic device In the case of monitoring the notification sound playing event, the electronic device needs to determine whether the melody of the notification sound is interrupted by the customized notification sound, and if so, switch the melody for message prompting. Specifically, when the electronic device detects a notification sound playback event, it determines the audio resource corresponding to the last notification sound. Specifically, it can query the notification sound played corresponding to the last notification sound playback event, and determine the audio resource corresponding to the last notification sound playback event. audio resources. The electronic device determines whether the audio resource corresponding to the last notification sound is an application-defined audio resource type. Specifically, the electronic device can determine the audio resource type of the audio resource corresponding to the last notification sound. For example, it can be based on the last notification sound.
  • the information of the corresponding audio resource determines the corresponding audio resource type. If the audio resource type is application-defined, it indicates that the notification sound playback event corresponding to the last notification sound was customized by a third-party application, that is, the notification sound melody was interrupted. For continuous playback, the electronic device re-determines the target melody, specifically, a melody can be selected from the audio database of the notification tone as the target melody, for example, a melody can be randomly selected and determined as the target melody, and determined from the audio resources corresponding to the target melody The current notification sound is played for message notification.
  • the notification sound playback event when the notification sound playback event is monitored, and it is determined that the audio resource corresponding to the last notification sound is an application-defined audio resource type, it indicates that the melody of the notification sound is interrupted by the customized sound, Then, the melody is re-determined, and the notification sound is played through the newly replaced melody, so as to ensure the playback effect of the notification sound.
  • the method before determining the playing time of the last notification sound, the method further includes: determining the application type corresponding to the application that triggers the notification sound playing event; when the application type is the default sound type and the dynamic sound is activated In this case, the operation of determining the playback time of the last notification sound is performed.
  • the electronic device determines the application type corresponding to the application that triggers the notification sound playback event. Specifically, the electronic device may determine the corresponding triggered application according to the trigger information of the notification sound playback event. , and determine the application type corresponding to the application.
  • the application type is the default prompt tone type, that is, the message prompt is performed according to the default notification prompt tone, and the electronic device is in the dynamic prompt tone activation state, it indicates that the dynamic prompt tone can be used.
  • the operation of determining the playback time of the last notification sound is performed by the electronic device, so as to determine the current notification sound according to the next notification sound that belongs to the same melody and adjacent to the last notification sound, so as to realize the prompt of the dynamic continuous melody.
  • the electronic device can configure the notification tone through the prompt tone interface.
  • the dynamic prompt tone state of the electronic device can be activated, so that the electronic device can press multiple audio resources belonging to the same melody. It can realize the dynamic change of the notification sound and enrich the content of the notification sound.
  • the electronic device can perform a static prompt through a fixed notification prompt sound according to the traditional notification method.
  • the user can also set the electronic device to vibrate with the played notification sound when the electronic device prompts the message through the vibration follow effect provided in the sound interface; the audio of the notification sound can also be adjusted by the custom sound function. resources for custom configuration.
  • the electronic device executes the determination of the last notification prompt The operation of the playing time of the sound to determine the current notification sound according to the next notification sound that belongs to the same melody and adjacent to the last notification sound, so as to realize the dynamic continuous melody sound for message prompting, which enriches the notification sound Content.
  • the notification sound processing method further includes: when the application type is the default sound type and the dynamic sound is activated, configuring the vibration waveform of the notification sound to correspond to the notification sound.
  • the electronic device determines that the application type corresponding to the application that triggers the notification sound playback event is the default prompt sound type, and the electronic device is already in the dynamic prompt sound activation state, it further determines whether the electronic device has enabled the vibration following effect, and if so, Then, the electronic device configures the vibration waveform of the notification prompt vibration to correspond to the notification prompt sound. Specifically, the electronic device can configure the vibration waveform of the notification prompt vibration to correspond to the melody or rhythm of the notification prompt sound, so that when the electronic device plays the corresponding notification prompt sound, it vibrates according to the corresponding vibration waveform, which further enriches the message prompt. content to ensure the message prompt effect. As shown in Figure 6, the vibration effect of the notification sound can be configured on the sound interface. After the vibration follow effect is enabled, the electronic device can vibrate according to the vibration waveform adapted to the notification sound while playing the notification sound. .
  • the electronic device can configure the vibration waveform of the notification prompt vibration to correspond to the melody or rhythm of the notification prompt sound, so that when the electronic device plays the corresponding notification prompt sound, it vibrates according to the corresponding vibration waveform, which further enriches the message The content of the prompt to ensure the effect of the message prompt.
  • the notification sound processing method further includes: in the case of monitoring a notification sound playback event of a delayed notification type, determining a last delayed notification sound corresponding to the notification sound playback event of the last delayed notification type; Determine the next notification sound that belongs to the same melody and is adjacent to the previous delay notification sound as the delay notification sound corresponding to the playback event of the current notification sound; in the case of triggering the release of delay notification, the notification according to each delay notification type The triggering moment of the prompt sound playback event plays the corresponding delayed notification prompt sound in sequence.
  • the delayed notification type indicates that the corresponding message notification needs to be delayed to be published, instead of being published immediately after receiving the message notification.
  • a message notification can be released with a delay of 1 hour, then when the electronic device detects a notification sound playback event, it will pop up a message prompt box corresponding to the notification sound playback event of the delayed notification type after a delay of 1 hour for prompting, and play the corresponding notification sound at the same time. notification sound.
  • the electronic device when it detects the notification sound playback event, it further determines the notification type of the notification sound playback event. If it is a delayed notification type, it indicates that the notification sound playback event will not pop up a message prompt box immediately. Instead, a message prompt is made when the corresponding release conditions are met, for example, after a preset time delay, or reaching a preset time, or reaching a preset location, etc.
  • the electronic device determines the last delayed notification sound corresponding to the notification sound playback event of the last delayed notification type. In the notification prompt record, determine the last delayed notification prompt sound corresponding to the notification prompt sound playback event of the last delayed notification type.
  • the electronic device After determining the last delayed notification tone, the electronic device determines the next notification tone that belongs to the same melody and is adjacent to the last delayed notification tone as the delayed notification tone corresponding to the current notification tone playing event. Specifically, the electronic device may determine a music resource set that belongs to the same melody as the last delay notification sound, and use the music resource set adjacent to the last delay notification sound as the delay corresponding to the current notification sound playback event Notification sound, so as to configure a unified melody and continuous notification sound for the notification sound playback events of the continuous delayed notification type. In this way, when the notification message of each delayed notification type is released, the notification sound played by the electronic device can form a continuous notification sound. melody.
  • the electronic device plays the corresponding delay notification sound in sequence according to the trigger time of the notification sound playing event of each delay notification type. Specifically, the electronic device monitors whether the release of the delay notice is triggered, such as monitoring whether the conditions for the release of the delay notice are met, such as whether the delay time has been reached, whether the delay notice release time has been reached, whether the delay notice release location has been reached, whether the delay notice release instruction has been received, etc., Delay notification release conditions can be personalized by the user. In the event that the delay notification release conditions are met and the delay notification release is triggered, the electronic device plays the corresponding delay notification sound in sequence according to the triggering time of the notification sound playback event of each delay notification type. The delayed notification tones configured corresponding to the playback events of the notification tones are played in the time sequence of time, so that the notification tones played by the electronic device can form a continuous melody.
  • the electronic device configures a notification prompt tone with a unified melody and continuous notification tone for the notification tone playback event of the continuous delayed notification type.
  • the notification tone played by the electronic device can form a continuous
  • the melody of the notification message enriches the content of the prompt tone of the notification message of the delayed notification type, and improves the effect of the message prompt.
  • determining the last delayed notification sound corresponding to the notification sound playback event of the last delayed notification type includes: determining the application type that triggers the current notification sound playback event; determining the application triggered by the application corresponding to the application type. The last delayed notification sound corresponding to the notification sound playback event of the last delayed notification type.
  • different notification tones are configured for the delayed notification messages of different applications, so that the delayed notification messages of different applications can be prompted through the notification tones of different melodies, which improves the prompting effect of the delayed notification messages.
  • the electronic device detects the notification sound playback event of the delayed notification type, the electronic device determines the application type that triggers the current notification sound playback event, that is, the electronic device determines the application type that triggers the notification sound playback event of the delayed notification type.
  • Application type based on the application type, the application that triggers the notification sound playing event of the delayed notification type can be determined.
  • the electronic device determines the last delayed notification sound corresponding to the notification sound playback event of the last delayed notification type triggered by the application corresponding to the application type, so that different applications that trigger the notification sound playback event of the delayed notification type can be configured to correspond to the same notification sound.
  • Melodic continuous notification tone Specifically, after determining the last delayed notification sound corresponding to the notification sound playback event of the last delayed notification type triggered by the application corresponding to the application type that triggered the current notification sound playback event, the electronic device will match the last delayed notification sound with the last delayed notification sound.
  • the notification sound belongs to the same melody and the next adjacent notification sound is determined as the delayed notification sound corresponding to the current notification sound playback event, so that different application configurations that trigger the notification sound playback event of the delayed notification type correspond to the same melody continuous. Notification sound.
  • playing the corresponding delayed notification sound in sequence according to the triggering time of the notification sound playback event of each delayed notification type including: in the case of triggering the release of the delayed notification, determining that each application type corresponds to According to the playing sequence of the prompt sound and the trigger time of the notification prompt sound playback event of each delayed notification type corresponding to each application type, the corresponding delayed notification prompt sound is played in sequence.
  • the playback order of the prompt sound is set according to the application type of the application.
  • the delayed notification release priority of social applications can be set to be the highest, and the release priority is first;
  • News applications have the lowest priority for releasing delayed notifications, so that the corresponding notification sounds can be played in sequence according to the playing sequence of the notification sounds corresponding to each application type.
  • the electronic device determines the playing sequence of the prompt sound corresponding to each application type, and the playing order of the prompt sound is pre-set according to actual needs, which can be set by default by the system, or can be personalized by the user. .
  • the electronic device plays the corresponding delayed notification prompt sound in sequence according to the playing order of the prompt sound and the triggering time of the notification prompt sound playing event of each delayed notification type corresponding to each application type.
  • the electronic device determines the playing order of each application type according to the playing sequence of the prompt sound, and for the delayed notification prompt sound of each application type, plays the corresponding delayed notification in sequence according to the trigger time of the notification prompt sound playback event of each delayed notification type.
  • Prompt tones so that the corresponding notification prompt tones are played in sequence according to the play sequence of the prompt tones corresponding to each application type.
  • the electronic device plays the corresponding delayed notification prompt sounds in sequence according to the playing sequence of the prompt sound and the triggering time of the notification prompt sound playback event of each delayed notification type corresponding to each application type, so that the delayed notification message can be based on the corresponding application type.
  • the types of prompt sounds are played in an orderly manner, and the notification prompt sounds played at the same time can correspond to form a complete melody, which enriches the content of the notification prompt tone.
  • the notification sound processing method further includes: in the case of monitoring the notification sound playback event, determining playback event trigger information that triggers the notification sound playback event; determining the notification sound playback event corresponding to the notification sound playback event according to the playback event trigger information
  • the audio resource type of the audio resource type determine the current notification sound corresponding to the notification sound playback event from the audio resources corresponding to the audio resource type, and play the current notification sound.
  • the play event trigger information is related information of the triggered notification sound play event, such as play event trigger time, play event trigger location, play event trigger user, play event trigger action, and the like.
  • the playback event trigger time is the time when the notification sound playback event is triggered
  • the playback event trigger location is the location of the electronic device when the notification sound playback event is triggered
  • the playback event trigger user is the user who triggered the notification sound playback event.
  • An event-triggered action is an instruction that triggers a notification sound playback event.
  • the audio resource type is the type of the audio resource corresponding to the notification sound, which may include, but is not limited to, a melody type, a musical instrument type, and the like.
  • the electronic device determines the playback event trigger information that triggers the notification sound playback event, and the specific electronic device can obtain the playback event trigger information that triggers the notification sound playback event based on the instrumentation technology. After obtaining the playback event trigger information, the electronic device determines the audio resource type corresponding to the notification sound playback event based on the playback event trigger information.
  • the corresponding audio resource type can be configured in advance based on the playback event trigger information, for example, the audio resources of different musical instruments or the audio resources of different melodies are configured for the notification sound playback events of different playback event trigger information as the corresponding notification sound. And pre-store the configured audio resource configuration table.
  • the electronic device may query the mapping relationship between the preconfigured playback event trigger information and the audio resource type, and determine the audio resource type based on the playback event trigger information corresponding to the current notification sound playback event. Different audio resource types are correspondingly provided with different audio resources. The electronic device determines the current notification sound corresponding to the notification sound playback event from the audio resources corresponding to the determined audio resource type, and performs a message prompt by playing the current notification sound. .
  • the current notification sound is determined from the audio resources corresponding to different audio resource types to play a prompt, so that the audio resources corresponding to the notification sound can be matched with the notification sound.
  • the corresponding playback event trigger information of the audio playback event further enriches the notification sound and improves the notification effect.
  • 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 playback event trigger time is the time when the notification sound playback event is triggered
  • the playback event trigger location is the location of the electronic device when the notification sound playback event is triggered
  • the playback event trigger user is the user who triggered the notification sound playback event.
  • An event-triggered action is an instruction that triggers a notification sound playback event.
  • the playback event trigger information can be flexibly set according to actual needs. For example, it can be set to include the playback event trigger time, playback event trigger location, and playback event trigger user, that is, according to the playback event trigger time, playback event trigger location, and playback event trigger user three.
  • the aspect determines the corresponding audio resource type, and determines the current notification prompt tone corresponding to the prompt tone playing event from the audio resources corresponding to the audio resource type to play the prompt.
  • different audio resource types are configured based on the playback event trigger information of the notification sound playback event, and the notification sound playback events of different playback event trigger information can be distinguished by the notification sound, which enriches the information carried by the notification sound. Improved the message prompt effect.
  • the notification sound processing method further includes: acquiring notification sound configuration information; when a notification sound playing event is monitored for the first time, determining a notification sound according to the notification sound configuration information, and playing the notification sound.
  • the notification sound configuration information is user configuration information.
  • the user can configure the notification sound configuration interface, and the electronic device obtains the notification sound configuration information configured by the user.
  • the electronic device obtains the notification sound configuration information, and when the notification sound playing event is detected for the first time, the electronic device determines the notification sound according to the notification sound configuration information, and plays the notification sound.
  • the electronic device may determine the corresponding audio resource based on the notification sound configuration information configured by the user, determine the audio resource as the notification sound, and play the notification sound for message prompting .
  • the electronic device can determine the next notification sound belonging to the same melody and adjacent to the notification sound as the current notification sound and play it, so that the user configuration can be continuously played.
  • the notification sound for message prompts are user configuration information.
  • the notification sound is determined based on the notification sound configuration information pre-configured by the user, and the notification sound is continuously played based on the audio resources belonging to the same melody, so as to realize the message prompt, which can support user-defined configuration, expand the Applicable scenarios for notification sound.
  • the method before playing the current notification sound, the method further includes: acquiring playback event trigger information that triggers the playback event of the notification sound; and determining playback parameters corresponding to the current notification sound according to the playback event trigger information.
  • the play event trigger information is related information of the triggered notification sound play event, such as play event trigger time, play event trigger location, play event trigger user, play event trigger action, and the like.
  • the playback event trigger time is the time when the notification sound playback event is triggered
  • the playback event trigger location is the location of the electronic device when the notification sound playback event is triggered
  • the playback event trigger user is the user who triggered the notification sound playback event
  • the action is the instruction that triggers the notification sound play event.
  • the playback parameters may include playback duration, playback volume and other parameters related to notification sound playback control.
  • the electronic device may further configure playback parameters of the current notification sound based on the playback event trigger information of the notification sound playback event, so as to control the playback of the notification sound. Further, before playing the current notification sound, the electronic device obtains the playback event trigger information that triggers the notification sound playback event. Specifically, the electronic device may obtain the playback event trigger information that triggers the notification sound playback event based on the instrumentation technology. After obtaining the playback event trigger information, the electronic device determines playback parameters corresponding to the current notification sound according to the playback event trigger information.
  • the corresponding playback parameters may be configured in advance based on the playback event trigger information, and the mapping relationship between the playback event trigger information and the playback parameters may be stored, and the electronic device may determine the corresponding playback parameters based on the playback event trigger information and the mapping relationship.
  • the mapping relationship between the playback event trigger information and the playback parameters may be stored, and the electronic device may determine the corresponding playback parameters based on the playback event trigger information and the mapping relationship.
  • playing the current notification sound includes: playing the current notification sound according to playback parameters.
  • the electronic device plays the current notification sound according to the determined playback parameters, such as playing the current notification sound according to the determined playback volume or playback duration.
  • different playback parameters are configured according to the notification sound playback events corresponding to different playback event trigger information, and the corresponding notification sound is played according to the configured playback parameters, so that the notification sound can be played and the notification sound can be played.
  • the corresponding playback event trigger information of the event further enriches the notification sound and improves the prompt effect.
  • a notification sound processing method is provided, as shown in FIG. 7 , the audio resources of the notification sound processing method include electronic sound, glass harp, marimba, and classical guitar. Audio resources, and 4 music resources are mapped under each instrument, each of which consists of several independent small music resources generated by the instrument type. These music resources can be played together to form a complete melody.
  • the system of the electronic device When the user selects the electronic sound as the default notification sound of the system, the system of the electronic device will monitor the frequency of the notification. When the interval between the two notifications is within 10s, a melody will be randomly selected and played in sequence. When the interval exceeds 10s or is interrupted by other custom ringtones, it will switch to the next melody randomly.
  • the electronic device performs instrumentation interception at the place where the system notification service plays the ringtone vibration. If the current notification sound is the system default notification sound, and the dynamic notification sound switch status is on, the ringtone resource is replaced, that is, through the audio resource library.
  • the determined notification sound is used for message prompting, that is, the default notification sound is replaced with the resource of the corresponding dynamic sound, and the vibration effect is modified to adapt to the vibration waveform of the corresponding ringtone.
  • the personalized notification ringtones set by some third-party applications the effects of the third-party itself continue to be retained. If the dynamic prompt tone is interrupted by the three-party custom prompt tone, the electronic device switches to a melody randomly and continues to play.
  • the tone of the notification tone can be accompanied by a melody change.
  • the notification tones can be connected to form a complete melody, which can solve the high-frequency notification scenario.
  • the disturbance brought to the user effectively enriches the content of the notification sound, increases the intelligent interest, improves the user's sense of expectation for the notification sound, and improves the user's experience of using the electronic device.
  • FIG. 8 is a structural block diagram of a notification sound processing apparatus 800 according to an embodiment.
  • the notification prompt sound processing apparatus 800 includes a playback event response module 802, a prompt sound determination module 804 and a prompt sound playing module 806, wherein:
  • the playback event response module 802 is used to determine the playback time of the last notification sound when the notification sound playback event is monitored;
  • the prompt tone determination module 804 is used to determine the next notification prompt tone that belongs to the same melody and is adjacent to the last notification prompt tone when the time interval between the current moment and the playback time of the last notification prompt tone is less than the time length interval threshold is the current notification sound;
  • the prompt sound playing module 806 is used to play the current notification prompt sound.
  • the prompt tone determination module 804 includes a duration interval determination module, an audio melody determination module and an audio resource selection module; wherein: a duration interval determination module for determining the difference between the current moment and the playback moment of the last notification tone Time interval; the audio melody determination module is used to determine the audio melody corresponding to the last notification sound when the time interval is less than the time interval threshold; the audio resource selection module is used to compare the audio resources of the audio melody with the above. The next audio resource adjacent to the audio resource corresponding to one notification sound is determined as the current notification sound.
  • an interrupt switching module is also included, for determining a target melody different from the melody to which the last notification tone belongs when the time interval between the current moment and the playback time of the last notification tone is not less than the time interval threshold ; Determine the current notification sound from the audio resource corresponding to the target melody, and play the current notification sound.
  • a custom notification module is also included, which is used to determine the prompt tone type corresponding to the application that triggers the notification prompt tone playback event when the notification prompt tone play event is monitored; when the prompt tone type is a custom prompt tone In the case of the type, the custom notification sound corresponding to the application type is determined as the current notification sound, and the current notification sound is played.
  • it also includes an audio resource determination module, an application interruption determination module, and an application interruption notification processing module; wherein: the audio resource determination module is configured to determine the last notification when a notification sound playback event is detected. The audio resource corresponding to the prompt tone; the application interruption determination module is used to determine the target melody when the audio resource corresponding to the last notification prompt tone is an application-defined audio resource type; the application interruption notification processing module is used to retrieve the The current notification sound is determined in the audio resource corresponding to the target melody, and the current notification sound is played.
  • it also includes an application type determination module and a dynamic prompt module; wherein: an application type determination module is used to determine the application type corresponding to the application that triggers the notification prompt sound playback event; the dynamic prompt module is used to determine the application type when the application type is In the case of the default prompt tone type and the dynamic prompt tone activation state, the playback event response module is controlled to perform the operation of determining the playback time of the last notification prompt tone.
  • a vibration configuration module is further included, configured to configure the vibration waveform of the notification prompt vibration to correspond to the notification prompt sound when the application type is the default prompt tone type and the dynamic prompt tone is activated.
  • a delay notification monitoring module is used to determine a notification sound playback event of a delayed notification type when a notification sound playback event of a delayed notification type is detected.
  • the last delayed notification tone corresponding to the notification tone playback event of a delayed notification type is used to determine the next notification tone that belongs to the same melody and is adjacent to the last delayed notification tone as the current notification tone
  • the delay notification sound corresponding to the notification sound playback event is used to play the corresponding delay notification sound in sequence according to the trigger time of the notification sound playback event of each delay notification type when the delay notification release is triggered.
  • the delayed notification monitoring module includes a delayed application type determination module and a previous delayed notification determination module; wherein: the delayed application type determination module is used to determine the application type that triggers the current notification sound playback event; the previous delayed notification The notification determination module is used to determine the last delayed notification prompt sound corresponding to the notification prompt sound playback event of the last delayed notification type triggered by the application corresponding to the application type; the delayed notification issuing module includes a playback sequence determination module and a sequential playback processing module; Among them: the playback sequence determination module is used to determine the playback sequence of the prompt sound corresponding to each application type in the case of triggering the release of the delayed notification; the sequential playback processing module is used to follow the playback sequence of the prompt sound and each delay notification corresponding to each application type. The triggering moment of the notification sound playback event of the type, and the corresponding delayed notification sound is played in sequence.
  • a trigger information determination module is used to determine the trigger notification sound when a notification sound playback event is detected. Play event trigger information of the play event; the audio resource type determination module is used to determine the audio resource type corresponding to the notification sound playback event according to the play event trigger information; the audio resource type processing module is used to select the audio resource corresponding to the audio resource type from the audio resource type Determine the current notification sound corresponding to the notification sound playback event, and play the current notification sound.
  • 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.
  • it also includes a configuration information acquisition module and a first notification processing module; wherein: a configuration information acquisition module is used to acquire notification sound configuration information; a first notification processing module is used to monitor the notification sound playback event for the first time In this case, the notification sound is determined according to the notification sound configuration information, and the notification sound is played.
  • a trigger information acquisition module is used to acquire playback event trigger information that triggers a notification sound playback event
  • a playback parameter determination module is used to obtain playback event trigger information according to the playback event
  • the trigger information determines the playback parameters corresponding to the current notification sound
  • the sound playing module 806 is further configured to play the current notification sound according to the playback parameters.
  • each module in the above-mentioned notification sound processing apparatus is only used for illustration. In other embodiments, the notification sound processing apparatus may be divided into different modules as required, so as to complete all or part of the above notification sound processing apparatus Function.
  • Each module in the above notification sound processing apparatus may be implemented in whole or in part by software, hardware and combinations thereof.
  • the above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
  • FIG. 9 is a schematic diagram of the internal structure of an electronic device in one embodiment.
  • the electronic device includes a processor and a memory connected by a system bus.
  • the processor is used to provide computing and control capabilities to support the operation of the entire electronic device.
  • the memory may include non-volatile storage media and internal memory.
  • the nonvolatile storage medium stores an operating system and a computer program.
  • the computer program can be executed by the processor to implement a notification sound processing method provided by the following embodiments.
  • Internal memory provides a cached execution environment for operating system computer programs in non-volatile storage media.
  • 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 sales terminal), a vehicle-mounted computer, a wearable device, and the like.
  • each module in the notification sound processing apparatus provided in the embodiment of the present application may be in the form of a computer program.
  • the computer program can be run on a terminal or server.
  • the program modules constituted by the computer program can be stored on the memory of the electronic device.
  • the operations of the methods described in the embodiments of the present application are implemented.
  • Embodiments of the present application also provide a computer-readable storage medium.
  • One or more non-volatile computer-readable storage media containing computer-executable instructions that, when executed by one or more processors, cause the processors to perform operations of a notification tone processing method .
  • Nonvolatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory may include random access memory (RAM), which acts as external cache memory.
  • RAM is available in various forms such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), Memory Bus (Rambus) Direct RAM (RDRAM), Direct Memory Bus Dynamic RAM (DRDRAM), and Memory Bus Dynamic RAM (RDRAM).
  • SRAM static RAM
  • DRAM dynamic RAM
  • SDRAM synchronous DRAM
  • DDR SDRAM double data rate SDRAM
  • ESDRAM enhanced SDRAM
  • SLDRAM synchronous Link (Synchlink) DRAM
  • SLDRAM synchronous Link (Synchlink) DRAM
  • Memory Bus Radbus
  • RDRAM Direct RAM
  • DRAM Direct Memory Bus Dynamic RAM
  • RDRAM Memory Bus Dynamic RAM

Abstract

A notification prompt tone processing method, comprising: determining a playback moment of the previous notification prompt tone when a notification prompt tone playback event is detected (202); when a time interval between the current moment and the playback moment of the previous notification prompt tone is less than a time interval threshold, determining that the next notification prompt tone which has the same melody and which is adjacent to the previous notification prompt tone is a current notification prompt tone (204); and playing back the current notification prompt tone (206).

Description

通知提示音处理方法、装置和电子设备Notification sound processing method, device and electronic device
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本申请要求于2020年12月21日提交中国专利局、申请号为2020115185186、发明名称为“通知提示音处理方法、装置和电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 2020115185186 and the invention title "Notification sound processing method, device and electronic device" filed with the China Patent Office on December 21, 2020, the entire contents of which are incorporated by reference in in this application.
技术领域technical field
本申请涉及互联网技术邻域,特别是涉及一种通知提示音处理方法、装置、电子设备和计算机可读存储介质。The present application relates to the field of Internet technology, and in particular, to a notification sound processing method, apparatus, electronic device and computer-readable storage medium.
背景技术Background technique
随着互联网技术的发展,各种软件应用在人们的生活、工作和娱乐中得到广泛的应用,如社交应用、新闻媒体应用、游戏应用、办公应用等。目前,各种应用需要在发出消息提示时,会通过在弹出消息提示框的同时播放提示音的方式进行消息通知。然而,传统的通知提示音由应用默认设置,或由用户根据自己喜好进行设置,通知提示音的内容形式仍然较为单一。With the development of Internet technology, various software applications are widely used in people's life, work and entertainment, such as social applications, news media applications, game applications, office applications, etc. Currently, various applications need to perform message notification by playing a prompt sound while popping up a message prompt box when a message prompt is issued. However, the traditional notification sound is set by default by the application or set by the user according to their own preferences, and the content form of the notification sound is still relatively simple.
发明内容SUMMARY OF THE INVENTION
根据本申请的各种实施例提供了一种通知提示音处理方法、装置、电子设备、计算机可读存储介质。Various embodiments of the present application provide a notification sound processing method, apparatus, electronic device, and computer-readable storage medium.
一种通知提示音处理方法,包括:A notification sound processing method, comprising:
在监测到通知提示音播放事件情况下,确定上一次通知提示音的播放时刻;In the case of monitoring the notification sound playback event, determine the playback time of the last notification sound;
在当前时刻与上一次通知提示音的播放时刻的时长间隔小于时长间隔阈值情况下,将与上一次通知提示音属于同一旋律且相邻的下一通知提示音确定为当前通知提示音;及When the time interval between the current time and the playback time of the last notification tone is less than the time interval threshold, the next notification tone that belongs to the same melody and is adjacent to the last notification tone is determined as the current notification tone; and
播放当前通知提示音。Play the current notification sound.
一种通知提示音处理装置,所述装置包括:A notification sound processing device, the device comprising:
播放事件响应模块,用于在监测到通知提示音播放事件情况下,确定上一次通知提示音的播放时刻;The playback event response module is used to determine the playback time of the last notification sound when the notification sound playback event is detected;
提示音确定模块,用于在当前时刻与上一次通知提示音的播放时刻的时长间隔小于时长间隔阈值情况下,将与上一次通知提示音属于同一旋律且相邻的下一通知提示音确定为当前通知提示音;及The prompt tone determination module is used to determine the next notification prompt tone belonging to the same melody and adjacent to the last notification prompt tone as The current notification tone; and
提示音播放模块,用于播放当前通知提示音。The prompt tone playback module is used to play the current notification tone.
一种电子设备,包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现以下步骤:An electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:
在监测到通知提示音播放事件情况下,确定上一次通知提示音的播放时刻;In the case of monitoring the notification sound playback event, determine the playback time of the last notification sound;
在当前时刻与上一次通知提示音的播放时刻的时长间隔小于时长间隔阈值情况下,将与上一次通知提示音属于同一旋律且相邻的下一通知提示音确定为当前通知提示音;及When the time interval between the current time and the playback time of the last notification tone is less than the time interval threshold, the next notification tone that belongs to the same melody and is adjacent to the last notification tone is determined as the current notification tone; and
播放当前通知提示音。Play the current notification sound.
一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现以下步骤:A computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
在监测到通知提示音播放事件情况下,确定上一次通知提示音的播放时刻;In the case of monitoring the notification sound playback event, determine the playback time of the last notification sound;
在当前时刻与上一次通知提示音的播放时刻的时长间隔小于时长间隔阈值情况下,将与上一次通知提示音属于同一旋律且相邻的下一通知提示音确定为当前通知提示音;及When the time interval between the current time and the playback time of the last notification tone is less than the time interval threshold, the next notification tone that belongs to the same melody and is adjacent to the last notification tone is determined as the current notification tone; and
播放当前通知提示音。Play the current notification sound.
附图说明Description of drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the accompanying drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are only These are some embodiments of the present application. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings without any creative effort.
图1为一个实施例中通知提示音处理方法的应用环境图。FIG. 1 is an application environment diagram of a notification sound processing method in one embodiment.
图2为一个实施例中通知提示音处理方法的流程图。FIG. 2 is a flowchart of a method for processing notification sound in one embodiment.
图3为一个实施例中通知提示消息展示的界面示意图。FIG. 3 is a schematic diagram of an interface for displaying a notification prompt message in an embodiment.
图4为一个实施例中确定当前通知提示音的流程图。FIG. 4 is a flow chart of determining the current notification tone in one embodiment.
图5为一个实施例中音频资源库的示意图。FIG. 5 is a schematic diagram of an audio resource library in one embodiment.
图6为一个实施例中提示音配置界面的界面示意图。FIG. 6 is a schematic interface diagram of a prompt tone configuration interface in an embodiment.
图7为另一个实施例中音频资源库的示意图。FIG. 7 is a schematic diagram of an audio resource library in another embodiment.
图8为一个实施例中通知提示音处理装置的结构框图。FIG. 8 is a structural block diagram of a notification sound processing apparatus in an embodiment.
图9为一个实施例中电子设备的内部结构图。FIG. 9 is an internal structure diagram of an electronic device in one embodiment.
具体实施方式Detailed ways
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application will be described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, but not to limit the present application.
可以理解,本申请所使用的术语“第一”、“第二”等可在本文中用于描述各种元件,但这些元件不受这些术语限制。这些术语仅用于将第一个元件与另一个元件区分。举例来说,在不脱离本申请的范围的情况下,可以将第一客户端称为第二客户端,且类似地,可将第二客户端称为第一客户端。第一客户端和第二客户端两者都是客户端,但其不是同一客户端。It will be understood that the terms "first", "second", etc. used in this application may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish a first element from another element. 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 this application. Both the first client and the second client are clients, but they are not the same client.
图1为一个实施例中通知提示音处理方法的应用环境示意图。如图1所示,该应用环境包括通过网络进行连接的电子设备102和服务器104。服务器104可以向电子设备102推送消息,如可以为服务器104推送的服务消息,或者服务器104转发的其他用户发送的消息等,电子设备102接收服务器104的推送消息后进行通知提示,如通过电子设备102的通知提示框进行消息通知提示,同时播放通知提示音进行提示。具体地,电子设备102在监测到通知提示音播放事件情况下,且当前时刻和上一次通知提示音的播放时刻之间的时长间隔小于时长间隔阈值情况下,根据与上一次通知提示音属于同一旋律且相邻的下一通知提示音确定的当前通知提示音进行播放,从而实现对通知消息的提示。其中,电子设备102可以但不限于是各种个人计算机、笔记本电脑、智能手机、平板电脑和便携式可穿戴设备,服务器104可以用独立的服务器或者是多个服务器组成的服务器集群来实现。FIG. 1 is a schematic diagram of an application environment of a notification sound processing method in an embodiment. As shown in FIG. 1 , the application environment includes an electronic device 102 and a server 104 connected through a network. The server 104 can push messages to the electronic device 102, such as service messages that can be pushed by the server 104, or messages sent by other users forwarded by the server 104, etc. After the electronic device 102 receives the push message from the server 104, a notification prompt is performed, such as through the electronic device The notification prompt box of 102 performs a message notification prompt, and simultaneously plays a notification prompt sound for prompting. Specifically, when the electronic device 102 monitors the notification sound playing event, and the time interval between the current time and the playback time of the last notification sound is less than the time interval threshold, the electronic device 102 will be based on the fact that the notification sound belongs to the same The current notification sound determined by the melody and the adjacent next notification sound is played, so as to realize the prompting of the notification message. The electronic device 102 can be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers and portable wearable devices, and the server 104 can be implemented by an independent server or a server cluster composed of multiple servers.
图2为一个实施例中通知提示音处理方法的流程图。本实施例中的通知提示音处理方法,以运行于图1中的电子设备上为例进行描述。如图2所示,通知提示音处理方法包括操作202至操作206。FIG. 2 is a flowchart of a method for processing notification sound in one embodiment. The method for processing a notification sound in this embodiment is described by taking the electronic device in FIG. 1 as an example for description. As shown in FIG. 2 , the notification sound processing method includes operations 202 to 206 .
操作202,在监测到通知提示音播放事件情况下,确定上一次通知提示音的播放时刻。In operation 202, in the case of monitoring the playing event of the notification sound, determine the playback time of the last notification sound.
其中,通知提示音播放事件指触发播放通知提示音的行为,具体可以为接收到通知消息并进行展示的行为。一般地,在电子设备接收到通知消息后,可以通过电子设备界面上的消息通知框进行消息提示。在具体实现时,通知提示音播放事件可以基于插桩技术监测得到,插桩技术指在保证原有程序逻辑完整性的基础上,在程序中插入探针,通过探针采集代码中的信息(方法本身、方法参数值、返回值等)在特定的位置插入代码段,从而收集程序运行时的动态上下文信息,具体可以通过在电子设备的系统通知服务中进行插桩拦截以监测到通知提示音播放事件。如图3所示,在电子设备的界面中,通过3个消息通知框分别展示了应用程序1-3推送的消息。在电子设备弹出消息通知框进行通知消息展示时,同时会通过播放通知提示音提示用户。如图3中,在应用程序1推送消息至电子设备时,触发通知提示音播 放事件,电子设备在界面弹出消息通知框进行消息提示的同时播放对应的通知提示音进行消息提示,同样的,在应用程序2和应用程序3触发通知提示音播放事件时,电子设备对应播放通知提示音。上一次通知提示音为上一次触发通知提示音播放事件时对应播放的通知提示音。如图3中,应用程序1-3分别先后触发通知提示音播放事件,即应用程序1最先触发通知提示音播放事件,应用程序3最后触发通知提示音播放事件,则对于应用程序2触发通知提示音播放事件时,上一次通知提示音为应用程序1触发通知提示音播放事件时对应播放的通知提示音;而对于应用程序3而言,上一次通知提示音为应用程序2触发通知提示音播放事件时对应播放的通知提示音。Wherein, the notification sound playing event refers to the behavior of triggering the playing of the notification sound, which may specifically be the behavior of receiving the notification message and displaying it. Generally, after the electronic device receives the notification message, a message prompt can be performed through a message notification box on the interface of the electronic device. In the specific implementation, the notification sound playback event can be monitored based on the instrumentation technology. The instrumentation technology refers to inserting a probe into the program on the basis of ensuring the integrity of the original program logic, and collecting the information in the code through the probe ( The method itself, method parameter value, return value, etc.) insert a code segment in a specific position to collect dynamic context information when the program is running. Specifically, the notification sound can be detected by instrumentation interception in the system notification service of the electronic device. Play the event. As shown in FIG. 3 , in the interface of the electronic device, the messages pushed by the application programs 1-3 are respectively displayed through three message notification boxes. When the electronic device pops up a message notification box to display the notification message, the user will be prompted by playing the notification sound at the same time. As shown in Figure 3, when application 1 pushes a message to the electronic device, a notification sound playback event is triggered, and the electronic device pops up a message notification box on the interface for message prompting while playing the corresponding notification sound for message prompting. Similarly, in When application 2 and application 3 trigger a notification sound playing event, the electronic device plays the notification sound correspondingly. The last notification sound is the notification sound played when the notification sound playback event was triggered last time. As shown in Figure 3, applications 1-3 trigger the notification sound playback event successively, that is, application 1 triggers the notification sound playback event first, and application 3 triggers the notification sound playback event last, then the notification sound is triggered for application 2. When the notification sound is played, the last notification sound is the notification sound played when application 1 triggers the notification sound playback event; for application 3, the last notification sound is the notification sound when application 2 triggers the notification sound. The notification sound to play when the event is played.
具体地,电子设备监测通知提示音播放事件,在监测到通知提示音播放事件时,表明电子设备需要通过播放通知提示音进行消息提示,则电子设备确定上一次通知提示音的播放时刻,具体可以由电子设备从记录各通知提示音信息的通知提示音信息库中查询得到上一次通知提示音的播放时刻,此外,也可以根据监测到的上一次通知提示音播放事件确定上一次通知提示音的播放时刻。Specifically, the electronic device monitors the notification sound playback event, and when monitoring the notification sound playback event, it indicates that the electronic device needs to play the notification sound for a message prompt, and the electronic device determines the playback time of the last notification sound. Specifically, it can be The playback time of the last notification sound can be obtained by querying the electronic device from the notification sound information database that records the information of each notification sound. In addition, the playback time of the last notification sound can also be determined according to the monitored playback event of the last notification sound. Play time.
操作204,在当前时刻与上一次通知提示音的播放时刻的时长间隔小于时长间隔阈值情况下,将与上一次通知提示音属于同一旋律且相邻的下一通知提示音确定为当前通知提示音。 Operation 204, when the time interval between the current moment and the playback time of the last notification tone is less than the duration interval threshold, the next notification tone that belongs to the same melody and adjacent to the last notification tone is determined as the current notification tone .
其中,当前时刻为当前时间,即监测到通知提示音播放事件的时间;时长间隔根据当前时刻与上一次通知提示音的播放时刻之间的差值确定,反映了前后两次通知提示音播放事件的时间跨度;时长间隔阈值用于判定通知提示音播放事件的触发频率,时长间隔阈值的具体数值可以根据实际需求进行设置,如可以设置为10秒,若相邻两次通知提示音播放事件的时间跨度小于时长间隔阈值,即小于10秒,则可以认为通知提示音播放事件的触发频率较高,否则认为通知提示音播放事件的触发频率较低。旋律是音乐的首要要素,通常指若干乐音经过艺术构思而形成的有组织、节奏的序列。旋律按一定的音高、时值和音量构成的、具有逻辑因素的单声部进行的,旋律是由许多音乐基本要素,如调式、节奏、节拍、力度、音色表演方法方式等,有机地结合而成。当前通知提示音为与当前的通知提示音播放事件对应的通知提示音,即监测到的通知提示音播放事件对应播放当前通知提示音进行消息提示。Among them, the current time is the current time, that is, the time when the notification sound playback event is monitored; the time interval is determined according to the difference between the current time and the playback time of the last notification sound, reflecting the two notification sound playback events before and after time span; the time interval threshold is used to determine the trigger frequency of the notification sound playback event. The specific value of the time interval threshold can be set according to actual needs, for example, it can be set to 10 seconds. If the time span is less than the duration interval threshold, that is, less than 10 seconds, it can be considered that the trigger frequency of the notification sound playback event is high, otherwise, the trigger frequency of the notification sound playback event is considered to be low. Melody is the primary element of music, which usually refers to an organized, rhythmic sequence of several musical tones formed through artistic conception. The melody is carried out in a single part with a logical factor composed of a certain pitch, time value and volume. The melody is organically combined with many basic elements of music, such as mode, rhythm, beat, dynamics, timbre performance methods, etc. made. The current notification sound is the notification sound corresponding to the current notification sound playing event, that is, the monitored notification sound playing event corresponds to playing the current notification sound for message prompting.
具体地,确定上一次通知提示音的播放时刻后,电子设备进一步获取预先设定的时长间隔阈值,并确定当前时刻与上一次通知提示音的播放时刻的时长间隔,电子设备比较该时长间隔和时长间隔阈值,若时长间隔小于时长间隔阈值,表明本次通知提示音播放事件与上一次通知提示音播放事件的触发时间跨度小,可以认为通知提示音播放事件的触发频率较高,则将与上一次通知提示音属于同一旋律且相邻的下一通知提示音确定为当前通知提示音,如电子设备可以确定与上一次通知提示音属于同一旋律的音乐资源集,并将该音乐资源集中与上一次通知提示音相邻的音乐资源作为当前通知提示音,从而使本次响应通知提示音播放事件播放的通知提示音与上一次通知提示音可以按序形成旋律进行播放。Specifically, after determining the playback time of the last notification sound, the electronic device further obtains a preset time interval threshold, and determines the time interval between the current time and the playback time of the last notification sound, and the electronic device compares the time interval and Duration interval threshold, if the duration interval is less than the duration interval threshold, it indicates that the triggering time span between the current notification tone playback event and the last notification tone playback event is small, and it can be considered that the trigger frequency of the notification tone playback event is high, and the triggering frequency of the notification tone playback event is high. The last notification sound belongs to the same melody and the next adjacent notification sound is determined as the current notification sound. For example, the electronic device can determine the music resource set that belongs to the same melody as the last notification sound, and integrate the music resource with the same melody. The music resource adjacent to the last notification sound is used as the current notification sound, so that the notification sound played this time in response to the notification sound playing event and the last notification sound can form a melody and play in sequence.
操作206,播放当前通知提示音。In operation 206, the current notification sound is played.
在确定当前的通知提示音播放事件对应的当前通知提示音后,电子设备播放当前通知提示音,从而使本次响应通知提示音播放事件播放的通知提示音与上一次通知提示音可以按序形成旋律进行播放。After determining the current notification sound corresponding to the current notification sound playback event, the electronic device plays the current notification sound, so that the notification sound played this time in response to the notification sound playback event and the last notification sound can be formed in sequence The melody is played.
如图3中,若应用程序1-3对应的通知消息触发时间的跨度较小,而用户无法及时观看电子设备时,应用程序1-3对应的通知消息频繁响起,同时电子设备连续3次播放对应的通知提示音,而单一、枯燥的通知音可能让用户感到听觉疲劳、影响用户对于电子设备的使用体验。而本实施例中,对于高频重复的动态通知音内容单一,容易产生的听觉疲劳的问题,使得播放的当前通知提示音与播放的上一次通知提示音构成连续完整的旋律,如对于旋律A包括A1、A2和A3等3段连续的音频资源,则应用程序1播放的通知提示音为旋律A中A1音乐资源,应用程序2播放的通知提示音为旋律A中A2音乐资源,应用程序3播放的通知提示音为旋律A中A3音乐资源,从而使得应用程序1-3分别播放的通知提示音形成A1-A2-A3的完整旋律,能够有效丰富通知提示音的内容,增加智能趣味,提高用户对通知音的期待感, 提升用户对电子设备的使用体验。As shown in Figure 3, if the triggering time span of the notification messages corresponding to applications 1-3 is small, and the user cannot watch the electronic device in time, the notification messages corresponding to applications 1-3 are frequently sounded, and the electronic device plays three consecutive times. The corresponding notification sound, and a single, boring notification sound may make the user feel fatigued and affect the user's experience of using the electronic device. However, in this embodiment, the content of the dynamic notification sound with high frequency repetition is single and easy to cause auditory fatigue, so that the current notification sound played and the last notification sound played form a continuous and complete melody. For example, for melody A Including 3 continuous audio resources such as A1, A2 and A3, the notification sound played by application 1 is the music resource A1 in melody A, the notification sound played by application 2 is the music resource A2 in melody A, and the notification sound played by application 3 is the music resource of A2 in melody A. The notification sound played is the music resource of A3 in melody A, so that the notification sound played by the applications 1-3 respectively form the complete melody of A1-A2-A3, which can effectively enrich the content of the notification sound, increase the intelligent interest, and improve the The user's sense of expectation for the notification sound improves the user's experience of using the electronic device.
本实施例中的通知提示音处理方法,在监测到通知提示音播放事件情况下,且当前时刻和上一次通知提示音的播放时刻之间的时长间隔小于时长间隔阈值情况下,根据与上一次通知提示音属于同一旋律且相邻的下一通知提示音确定的当前通知提示音进行播放,从而可以在频繁触发通知提示音播放事件时,使播放的通知提示音形成完整旋律,丰富了通知提示音的内容。In the notification sound processing method in this embodiment, when a notification sound playback event is monitored, and the time interval between the current moment and the playback time of the last notification sound is smaller than the time interval threshold, the The notification sound belongs to the same melody and the current notification sound determined by the adjacent next notification sound is played, so that when the notification sound playback event is frequently triggered, the played notification sound forms a complete melody, which enriches the notification sound. content of the sound.
在一个实施例中,如图4所示,确定当前通知提示音,即在当前时刻与上一次通知提示音的播放时刻的时长间隔小于时长间隔阈值情况下,将与上一次通知提示音属于同一旋律且相邻的下一通知提示音确定为当前通知提示音,包括:In one embodiment, as shown in FIG. 4 , the current notification sound is determined, that is, when the time interval between the current moment and the playback time of the last notification sound is smaller than the time interval threshold, it will belong to the same notification sound as the last notification sound. The next notification tone that is adjacent to the melody is determined as the current notification tone, including:
操作402,确定当前时刻与上一次通知提示音的播放时刻的时长间隔。In operation 402, the time interval between the current time and the playback time of the last notification sound is determined.
其中,时长间隔反映了前后两次通知提示音播放事件的时间跨度,具体可以根据当前时刻与上一次通知提示音的播放时刻之间的差值确定,从而可以判断相邻两次通知提示音播放事件之间的触发频率。例如,时长间隔短时,表明在上一次通知提示音播放后较短时间后又触发通知提示音播放事件,从而再次进行通知提示音播放。Among them, the time interval reflects the time span of the two notification sound playback events before and after, which can be determined according to the difference between the current moment and the playback time of the last notification sound, so that it can be judged that the two adjacent notification sounds are played. The trigger frequency between events. For example, when the time interval is short, it indicates that the notification sound playing event is triggered a short time after the last notification sound is played, so that the notification sound is played again.
具体地,在确定上一次通知提示音的播放时刻后,电子设备可以进一步确定当前时刻,当前时刻为触发本次通知提示音播放事件的时间,电子设备根据当前时刻与上一次通知提示音的播放时刻之间的差值得到时长间隔。Specifically, after determining the playback time of the last notification sound, the electronic device may further determine the current time, which is the time when the playback event of the notification sound is triggered. The difference between the moments gets the duration interval.
操作404,在时长间隔小于时长间隔阈值情况下,确定上一次通知提示音对应所属的音频旋律。In operation 404, if the duration interval is less than the duration interval threshold, determine the audio melody to which the last notification sound corresponds to.
其中,时长间隔阈值用于判定通知提示音播放事件的触发频率,时长间隔阈值的具体数值可以根据实际需求进行设置。在具体实现时,时长间隔阈值具体可以根据时间段、地点、用户类型或用户习惯进行设置。例如,基于时间段动态调整时长间隔阈值,如工作时间段可以将时长间隔阈值设置较大,而在非工作时间段设置较小的时长间隔阈值;又如,可以在用户办公地点时设置较大的时长间隔阈值,而电子设备在用户居家地点时,设置较小的时长间隔阈值;此外,电子设备也可以根据用户历史使用数据,对电子设备的通知消息进行分析,确定用户接收通知消息的频率,从而确定对应的时长间隔阈值,以便基于用户习惯准确地确定各通知提示音播放事件的触发频率,确保通知提示音的提示效果。音频旋律为通知提示音对应的音频资源所属的旋律。不同的音频旋律可以对应于多段连续的音频资源,多段连续的音频资源按序播放则可以形成完整的旋律。在具体实现时,上一次通知提示音对应所属的音频旋律可以根据上一次通知提示音对应的音频资源确定,如根据上一次通知提示音对应的音频资源的信息确定上一次通知提示音对应所属的音频旋律。The time interval threshold is used to determine the trigger frequency of the notification sound playing event, and the specific value of the time interval threshold can be set according to actual needs. During specific implementation, the time interval threshold may be specifically set according to the time period, location, user type or user habit. For example, the time interval threshold can be dynamically adjusted based on the time period. For example, the time interval threshold can be set to a larger value during the working time period, and a smaller time interval threshold value can be set during the non-working time period. For another example, a larger time interval threshold value can be set when the user's office is located. When the electronic device is at the user's home location, a smaller time interval threshold is set; in addition, the electronic device can also analyze the notification messages of the electronic device according to the user's historical usage data to determine the frequency of the user receiving notification messages. , so as to determine the corresponding time interval threshold, so as to accurately determine the trigger frequency of each notification sound playback event based on user habits, and ensure the prompt effect of the notification sound. The audio melody is the melody to which the audio resource corresponding to the notification tone belongs. Different audio melodies may correspond to multiple segments of continuous audio resources, and multiple segments of continuous audio resources can be played in sequence to form a complete melody. In the specific implementation, the audio melody corresponding to the last notification sound can be determined according to the audio resource corresponding to the last notification sound, for example, according to the information of the audio resource corresponding to the last notification sound audio melody.
具体地,确定当前时刻与上一次通知提示音的播放时刻的时长间隔后,电子设备比较时长间隔与时长间隔阈值,从而判断先后两次通知提示音播放事件是否属于高频触发的事件。若时长间隔小于预设的时长间隔阈值,电子设备确定上一次通知提示音对应所属的音频旋律,具体可以由电子设备确定上一次通知提示音对应的音频资源,并查询该音频资源的信息,基于该音频资源的信息确定其所属的音频旋律,从而得到上一次通知提示音对应所属的音频旋律。Specifically, after determining the time interval between the current time and the last time the notification sound was played, the electronic device compares the time interval with the time interval threshold, thereby determining whether the two successive notification sound playback events belong to high-frequency trigger events. If the time interval is less than the preset time interval threshold, the electronic device determines the audio melody corresponding to the last notification tone. Specifically, the electronic device may determine the audio resource corresponding to the last notification tone, and query the information of the audio resource, based on The information of the audio resource determines the audio melody to which it belongs, so as to obtain the audio melody corresponding to the last notification sound.
操作406,将音频旋律的各音频资源中与上一次通知提示音对应音频资源相邻的下一音频资源确定为当前通知提示音。In operation 406, the next audio resource adjacent to the audio resource corresponding to the last notification sound in each audio resource of the audio melody is determined as the current notification sound.
具体地,确定上一次通知提示音对应所属的音频旋律后,电子设备从该音频旋律的各音频资源中选择与上一次通知提示音对应音频资源相邻的下一音频资源作为当前通知提示音,从而使当前通知提示音与上一次通知提示音为属于同一旋律且相邻的音频资源,使得播放的当前通知提示音与上一次通知提示音可以形成一段连续的旋律,避免了通知提示音的单一播放,丰富了通知提示音的内容。Specifically, after determining the audio melody corresponding to the last notification sound, the electronic device selects the next audio resource adjacent to the audio resource corresponding to the last notification sound from the audio resources of the audio melody as the current notification sound, Therefore, the current notification sound and the last notification sound belong to the same melody and are adjacent audio resources, so that the current notification sound and the last notification sound can form a continuous melody, avoiding the single notification sound. Play to enrich the content of the notification sound.
本实施例中,根据当前时刻和上一次通知提示音的播放时刻之间的时长间隔判定本次通知提示音播放事件与上一次通知提示音播放事件是否属于高频触发的情况,若是则从与上一 次通知提示音对应所属的音频旋律的各音频资源中选择与上一次通知提示音对应音频资源相邻的下一音频资源作为当前通知提示音,从而使当前通知提示音与上一次通知提示音为属于同一旋律且相邻的音频资源,使得播放的当前通知提示音与上一次通知提示音可以形成一段连续的旋律,避免了通知提示音的单一播放,丰富了通知提示音的内容。In this embodiment, according to the time interval between the current time and the playback time of the last notification sound, it is determined whether the current notification sound playback event and the last notification sound playback event belong to the high-frequency triggering situation, and if so, from the Among the audio resources of the audio melody corresponding to the last notification sound, the next audio resource adjacent to the audio resource corresponding to the last notification sound is selected as the current notification sound, so that the current notification sound and the last notification sound The audio resources belong to the same melody and are adjacent to each other, so that the current notification sound and the last notification sound can form a continuous melody, which avoids the single playback of the notification sound and enriches the content of the notification sound.
在一个实施例中,通知提示音处理方法还包括:在当前时刻与上一次通知提示音的播放时刻的时刻间隔不小于时刻间隔阈值情况下,确定与上一次通知提示音所属旋律不同的目标旋律;从目标旋律对应的音频资源中确定当前通知提示音,并播放当前通知提示音。In one embodiment, the notification sound processing method further includes: determining a target melody different from the melody to which the last notification sound belongs when the time interval between the current moment and the playback time of the last notification sound is not less than a time interval threshold ; Determine the current notification sound from the audio resource corresponding to the target melody, and play the current notification sound.
其中,目标旋律为与上一次通知提示音所属旋律不同的旋律。不同的旋律设有对应的多段音乐资源。例如,如图5所示,通知提示音的音频资源库中设置有旋律A、B、C和D,旋律A可以对应设有音乐资源A1、A2…A10,共10段音乐资源,10段音乐资源连续播放时,可以形成旋律A;同样的,旋律B可以对应设有音乐资源B1、B2…B10,旋律C可以对应设有音乐资源C1、C2…C10,旋律D可以对应设有音乐资源D1、D2…D10。若上一次通知提示音对应的旋律为旋律A,且当前时刻与上一次通知提示音的播放时刻的时刻间隔不小于时刻间隔阈值情况下,即当前的通知提示音播放事件与上一次通知提示音播放事件之间的时间间隔较长,则认为该两次通知提示音播放事件不是高频触发的事件,则可以从旋律B、C和D中确定目标旋律,如确定目标旋律为C,从而重新更换新的旋律进行通知提示音播放,确保通知提示音的播放效果。The target melody is a different melody from the melody to which the last notification tone belongs. Different melodies have corresponding multi-segment music resources. For example, as shown in Figure 5, melody A, B, C, and D are set in the audio resource library of the notification tone, and melody A can be correspondingly set with music resources A1, A2...A10, a total of 10 pieces of music resources, 10 pieces of music When the resources are played continuously, melody A can be formed; similarly, melody B can have corresponding music resources B1, B2...B10, melody C can have corresponding music resources C1, C2...C10, and melody D can have corresponding music resources D1 , D2...D10. If the melody corresponding to the last notification sound is melody A, and the time interval between the current time and the playback time of the last notification sound is not less than the time interval threshold, that is, the current notification sound playback event and the last notification sound If the time interval between the playback events is long, it is considered that the two notification sound playback events are not high-frequency triggered events, and the target melody can be determined from the melody B, C, and D. For example, if the target melody is determined to be C, the Replace the new melody to play the notification sound to ensure the playback effect of the notification sound.
具体地,电子设备比较当前时刻与上一次通知提示音的播放时刻的时刻间隔不小于时刻间隔阈值后,若时刻间隔不小于时刻间隔阈值,即表明两次通知提示音播放事件不是高频触发的事件,上一次通知提示音连续播放的旋律已经被打断,则可以切换成下一旋律。具体由电子设备确定与上一次通知提示音所属旋律不同的目标旋律,如可以从预设的音频资源库中设置的各种音频旋律中确定与上一次通知提示音所属旋律不同的旋律作为目标旋律,具体可以随机从除上一次通知提示音所属旋律外其他旋律中选取目标旋律。确定目标旋律后,电子设备从目标旋律对应的音频资源中确定当前通知提示音,并播放当前通知提示音。具体应用中,如图5所示,若目标旋律切换成旋律C后,可以从音乐资源C1、C2…C10中确定当前通知提示音,如可以将旋律C中的首段音频资源C1确定为当前通知提示音,并播放确定的当前通知提示音,从而响应当前的通知提示音播放事件,播放切换旋律后的当前通知提示音进行消息提示。Specifically, after the electronic device compares the time interval between the current time and the last time the notification sound is played, the time interval is not less than the time interval threshold, and if the time interval is not less than the time interval threshold, it means that the two notification sound playback events are not triggered by high frequency If the melody played continuously by the last notification sound has been interrupted, it can be switched to the next melody. Specifically, the electronic device determines a target melody different from the melody to which the last notification tone belongs. For example, a melody different from the melody to which the last notification tone belongs can be determined as the target melody from various audio melodies set in the preset audio resource library. , specifically, the target melody can be randomly selected from other melody except the melody to which the last notification tone belongs. After determining the target melody, the electronic device determines the current notification sound from the audio resource corresponding to the target melody, and plays the current notification sound. In a specific application, as shown in Figure 5, if the target melody is switched to melody C, the current notification tone can be determined from the music resources C1, C2...C10, for example, the first audio resource C1 in the melody C can be determined as the current The notification sound is played, and the determined current notification sound is played, so as to respond to the current notification sound playback event, the current notification sound after the switching melody is played for message prompting.
本实施例中,在确定两次通知提示音播放事件不是高频触发的事件,上一次通知提示音连续播放的旋律已经被打断,则切换成下一旋律,通过切换成的目标旋律对应的音频资源确定当前通知提示音并进行播放,从而在通知提示音的连续旋律被打断后切换旋律进行提示,可以确保通知提示音的旋律播放效果。In this embodiment, after it is determined that the two notification sound playback events are not high-frequency triggered events, and the melody played continuously by the last notification sound has been interrupted, the next melody is switched to, and the target melody corresponding to the switched The audio resource determines the current notification tone and plays it, so that the melody is switched for prompting after the continuous melody of the notification tone is interrupted, which can ensure the melody playback effect of the notification tone.
在一个实施例中,通知提示音处理方法还包括:在监测到通知提示音播放事件情况下,确定触发通知提示音播放事件的应用对应的提示音类型;在提示音类型为自定义提示音类型情况下,将应用类型对应的自定义提示音确定为当前通知提示音,并播放当前通知提示音。In one embodiment, the notification sound processing method further includes: when a notification sound playing event is monitored, determining a sound type corresponding to an application that triggers the notification sound playing event; when the sound type is a custom sound type In this case, the custom notification sound corresponding to the application type is determined as the current notification sound, and the current notification sound is played.
其中,提示音类型包括自定义提示音类型和默认提示音类型,用于区分通知提示音的定义方式。具体地,自定义提示音类型表明通知提示音由应用进行自定义,即对于自定义提示音类型的应用,来自该应用的消息通知,通过播放其自定义的通知提示音进行消息通知,如社交应用、游戏应用等第三方应用设置有自定义的通知音,则该第三方应用推送通知消息时,播放对应自定义的通知提示音;而对于默认提示音类型表明通知提示音由系统默认设置,即系统应用或其他应用触发通知提示音播放事件时,播放默认的通知提示音进行消息提示。The prompt tone type includes a custom prompt tone type and a default prompt tone type, which are used to distinguish the definition manner of the notification prompt tone. Specifically, the custom tone type indicates that the notification tone is customized by the application, that is, for an application with a custom tone type, the message notification from the application is notified by playing its customized notification tone, such as social networking. If a third-party application such as an app or game application is set with a custom notification sound, when the third-party application pushes a notification message, the corresponding custom notification sound is played; for the default sound type, the notification sound is set by the system by default. That is, when a system application or other application triggers a notification sound playback event, the default notification sound is played for message prompting.
具体地,在监测到通知提示音播放事件情况下,电子设备确定触发通知提示音播放事件的应用对应的提示音类型,具体可以根据通知提示音播放事件的触发信息确定对应触发的应用,并基于触发的应用确定对应的提示音类型。若提示音类型为自定义提示音类型,表明该通知提示音播放事件的通知提示音需要按照应用自定义的通知提示音进行消息提示,则由电子设备将该应用类型对应的自定义提示音确定为当前通知提示音,并播放当前通知提示音进 行消息提示。在具体应用时,可以在监测到通知提示音播放事件情况下,即先确定触发通知提示音播放事件的应用对应的提示音类型,从而判定是否需要通过播放自定义提示音进行消息提示,也可以在根据上一次通知提示音的播放时刻,确定当前通知提示音后,再判定是否需要通过播放自定义提示音进行消息提示,从而综合确定当前通知提示音进行播放。Specifically, in the case of monitoring the notification sound playback event, the electronic device determines the sound type corresponding to the application that triggers the notification sound playback event. Specifically, the corresponding triggered application may be determined according to the trigger information of the notification sound playback event, and based on the notification sound playback event. The triggered application determines the corresponding prompt tone type. If the prompt tone type is a custom prompt tone type, indicating that the notification prompt tone of the notification prompt tone playback event needs to be prompted according to the application-defined notification prompt tone, the electronic device determines the custom prompt tone corresponding to the application type. It is the current notification sound, and plays the current notification sound for message prompting. In a specific application, when a notification sound playback event is detected, the type of sound corresponding to the application that triggers the notification sound playback event can be determined first, so as to determine whether it is necessary to play a custom sound for message prompting, or you can After the current notification sound is determined according to the playback time of the last notification sound, it is then determined whether it is necessary to play the custom sound for message prompting, so as to comprehensively determine the current notification sound for playback.
本实施例中,在触发提示音播放事件的应用对应的提示音类型为自定义提示音类型情况下,播放应用类型对应的自定义提示音进行消息提示,从而可以兼容第三方应用的自定义个性化设置,可以进一步丰富通知提示音的内容。In this embodiment, in the case where the prompt tone type corresponding to the application that triggers the prompt tone playback event is a custom prompt tone type, the user-defined prompt tone corresponding to the application type is played for message prompting, so as to be compatible with the custom personality of third-party applications Customized settings can further enrich the content of the notification sound.
在一个实施例中,通知提示音处理方法还包括:在监测到通知提示音播放事件情况下,确定上一次通知提示音对应的音频资源;在上一次通知提示音对应的音频资源为应用自定义的音频资源类型情况下,确定目标旋律;从目标旋律对应的音频资源中确定当前通知提示音,并播放当前通知提示音。In one embodiment, the notification sound processing method further includes: in the case of monitoring the notification sound playing event, determining the audio resource corresponding to the last notification sound; the audio resource corresponding to the last notification sound is application-defined In the case of the type of audio resource, the target melody is determined; the current notification tone is determined from the audio resource corresponding to the target melody, and the current notification tone is played.
在监测到通知提示音播放事件情况下,电子设备需要判断通知音的旋律是否被自定义的通知提示音打断,若是,则切换旋律进行消息提示。具体地,电子设备监测到通知提示音播放事件时,确定上一次通知提示音对应的音频资源,具体可以查询上一次通知提示音播放事件对应播放的通知提示音,确定上一次通知提示音对应的音频资源。电子设备判定上一次通知提示音对应的音频资源是否为应用自定义的音频资源类型,具体可以由电子设备确定上一次通知提示音对应的音频资源的音频资源类型,如可以根据上一次通知提示音对应的音频资源的信息确定对应的音频资源类型,若音频资源类型为应用自定义,表明上一次通知提示音对应的通知提示音播放事件由第三方应用自定义设置,即中断了通知提示音旋律的连续播放,电子设备重新确定目标旋律,具体可以从通知提示音的音频数据库中选取一旋律作为目标旋律,如可以随机选取一旋律确定为目标旋律,并从该目标旋律对应的音频资源中确定当前通知提示音进行播放,以进行消息提示。In the case of monitoring the notification sound playing event, the electronic device needs to determine whether the melody of the notification sound is interrupted by the customized notification sound, and if so, switch the melody for message prompting. Specifically, when the electronic device detects a notification sound playback event, it determines the audio resource corresponding to the last notification sound. Specifically, it can query the notification sound played corresponding to the last notification sound playback event, and determine the audio resource corresponding to the last notification sound playback event. audio resources. The electronic device determines whether the audio resource corresponding to the last notification sound is an application-defined audio resource type. Specifically, the electronic device can determine the audio resource type of the audio resource corresponding to the last notification sound. For example, it can be based on the last notification sound. The information of the corresponding audio resource determines the corresponding audio resource type. If the audio resource type is application-defined, it indicates that the notification sound playback event corresponding to the last notification sound was customized by a third-party application, that is, the notification sound melody was interrupted. For continuous playback, the electronic device re-determines the target melody, specifically, a melody can be selected from the audio database of the notification tone as the target melody, for example, a melody can be randomly selected and determined as the target melody, and determined from the audio resources corresponding to the target melody The current notification sound is played for message notification.
本实施例中,在监测到通知提示音播放事件,且确定上一次通知提示音对应的音频资源为应用自定义的音频资源类型时,表明通知提示音的旋律被自定义的提示音打断,则重新确定旋律,通过重新更换的旋律进行通知提示音播放,确保通知提示音的播放效果。In this embodiment, when the notification sound playback event is monitored, and it is determined that the audio resource corresponding to the last notification sound is an application-defined audio resource type, it indicates that the melody of the notification sound is interrupted by the customized sound, Then, the melody is re-determined, and the notification sound is played through the newly replaced melody, so as to ensure the playback effect of the notification sound.
在一个实施例中,在确定上一次通知提示音的播放时刻之前,还包括:确定触发通知提示音播放事件的应用对应的应用类型;在应用类型为默认提示音类型且处于动态提示音激活状态情况下,执行确定上一次通知提示音的播放时刻的操作。In one embodiment, before determining the playing time of the last notification sound, the method further includes: determining the application type corresponding to the application that triggers the notification sound playing event; when the application type is the default sound type and the dynamic sound is activated In this case, the operation of determining the playback time of the last notification sound is performed.
具体地,在监测到通知提示音播放事件的情况下,电子设备确定触发通知提示音播放事件的应用对应的应用类型,具体可以由电子设备根据通知提示音播放事件的触发信息确定对应触发的应用,并确定应用对应的应用类型,在应用类型为默认提示音类型,即按照默认的通知提示音进行消息提示,且电子设备处于动态提示音激活状态时,表明可以通过动态提示音进行消息提示,则由电子设备执行确定上一次通知提示音的播放时刻的操作,以根据与上一次通知提示音属于同一旋律且相邻的下一通知提示音确定当前通知提示音,以实现动态连续旋律的提示音进行消息提示,丰富了通知提示音的内容。Specifically, in the case of monitoring the notification sound playback event, the electronic device determines the application type corresponding to the application that triggers the notification sound playback event. Specifically, the electronic device may determine the corresponding triggered application according to the trigger information of the notification sound playback event. , and determine the application type corresponding to the application. When the application type is the default prompt tone type, that is, the message prompt is performed according to the default notification prompt tone, and the electronic device is in the dynamic prompt tone activation state, it indicates that the dynamic prompt tone can be used. Then the operation of determining the playback time of the last notification sound is performed by the electronic device, so as to determine the current notification sound according to the next notification sound that belongs to the same melody and adjacent to the last notification sound, so as to realize the prompt of the dynamic continuous melody. Tones for message prompts, enriching the content of notification prompt sounds.
如图6所示,电子设备可以通过提示音界面对通知提示音进行配置,通过动态提示音开关,可以激活电子设备动态提示音状态,以使电子设备可以通过多段属于同一旋律的音频资源进行按序播放进行消息通知,以实现通知提示音的动态变化,丰富通知提示音的内容。在动态提示音状态未激活时,电子设备可以按照传统的通知方式,通过固定的通知提示音进行静态提示。此外,用户还可以通过提示音界面中提供的振动跟随效果设置电子设备在进行消息提示时,电子设备可以跟随播放的通知提示音进行振动;也可以通过自定义提示音功能对通知提示音的音频资源进行自定义配置。As shown in Figure 6, the electronic device can configure the notification tone through the prompt tone interface. Through the dynamic prompt tone switch, the dynamic prompt tone state of the electronic device can be activated, so that the electronic device can press multiple audio resources belonging to the same melody. It can realize the dynamic change of the notification sound and enrich the content of the notification sound. When the dynamic prompt sound state is not activated, the electronic device can perform a static prompt through a fixed notification prompt sound according to the traditional notification method. In addition, the user can also set the electronic device to vibrate with the played notification sound when the electronic device prompts the message through the vibration follow effect provided in the sound interface; the audio of the notification sound can also be adjusted by the custom sound function. resources for custom configuration.
本实施例中,在电子设备确定触发通知提示音播放事件的应用对应的应用类型为默认提示音类型,且电子设备已处于动态提示音激活状态情况下,则由电子设备执行确定上一次通知提示音的播放时刻的操作,以根据与上一次通知提示音属于同一旋律且相邻的下一通知提示音确定当前通知提示音,以实现动态连续旋律的提示音进行消息提示,丰富了通知提示音 的内容。In this embodiment, when the electronic device determines that the application type corresponding to the application that triggers the notification sound playback event is the default prompt sound type, and the electronic device is already in the dynamic prompt sound activation state, the electronic device executes the determination of the last notification prompt The operation of the playing time of the sound to determine the current notification sound according to the next notification sound that belongs to the same melody and adjacent to the last notification sound, so as to realize the dynamic continuous melody sound for message prompting, which enriches the notification sound Content.
在一个实施例中,通知提示音处理方法还包括:在应用类型为默认提示音类型且处于动态提示音激活状态情况下,配置通知提示振动的振动波形与通知提示音对应。In one embodiment, the notification sound processing method further includes: when the application type is the default sound type and the dynamic sound is activated, configuring the vibration waveform of the notification sound to correspond to the notification sound.
具体地,电子设备在确定触发通知提示音播放事件的应用对应的应用类型为默认提示音类型,且电子设备已处于动态提示音激活状态情况下,进一步确定电子设备是否开启振动跟随效果,若是,则电子设备配置通知提示振动的振动波形与通知提示音对应。具体地,电子设备可以配置通知提示振动的振动波形与通知提示音的旋律或节奏对应,以使电子设备在播放对应的通知提示音时,按照相应的振动波形进行振动,进一步丰富了消息提示的内容,确保消息提示效果。如图6所示,可以在提示音界面对通知提示音的振动效果进行配置,在开启振动跟随效果后,电子设备可以在播放通知提示音的同时按照与通知提示音适配的振动波形进行振动。Specifically, when the electronic device determines that the application type corresponding to the application that triggers the notification sound playback event is the default prompt sound type, and the electronic device is already in the dynamic prompt sound activation state, it further determines whether the electronic device has enabled the vibration following effect, and if so, Then, the electronic device configures the vibration waveform of the notification prompt vibration to correspond to the notification prompt sound. Specifically, the electronic device can configure the vibration waveform of the notification prompt vibration to correspond to the melody or rhythm of the notification prompt sound, so that when the electronic device plays the corresponding notification prompt sound, it vibrates according to the corresponding vibration waveform, which further enriches the message prompt. content to ensure the message prompt effect. As shown in Figure 6, the vibration effect of the notification sound can be configured on the sound interface. After the vibration follow effect is enabled, the electronic device can vibrate according to the vibration waveform adapted to the notification sound while playing the notification sound. .
本实施例中,电子设备可以配置通知提示振动的振动波形与通知提示音的旋律或节奏对应,以使电子设备在播放对应的通知提示音时,按照相应的振动波形进行振动,进一步丰富了消息提示的内容,确保消息提示效果。In this embodiment, the electronic device can configure the vibration waveform of the notification prompt vibration to correspond to the melody or rhythm of the notification prompt sound, so that when the electronic device plays the corresponding notification prompt sound, it vibrates according to the corresponding vibration waveform, which further enriches the message The content of the prompt to ensure the effect of the message prompt.
在一个实施例中,通知提示音处理方法还包括:在监测到延迟通知类型的通知提示音播放事件情况下,确定上一延迟通知类型的通知提示音播放事件对应的上一延迟通知提示音;将与上一延迟通知提示音属于同一旋律且相邻的下一通知提示音确定为当前通知提示音播放事件对应的延迟通知提示音;在触发延迟通知发布情况下,按照各延迟通知类型的通知提示音播放事件的触发时刻按序播放对应的延迟通知提示音。In one embodiment, the notification sound processing method further includes: in the case of monitoring a notification sound playback event of a delayed notification type, determining a last delayed notification sound corresponding to the notification sound playback event of the last delayed notification type; Determine the next notification sound that belongs to the same melody and is adjacent to the previous delay notification sound as the delay notification sound corresponding to the playback event of the current notification sound; in the case of triggering the release of delay notification, the notification according to each delay notification type The triggering moment of the prompt sound playback event plays the corresponding delayed notification prompt sound in sequence.
其中,延迟通知类型表征对应的消息通知需要延迟进行发布,而非在接收到消息通知后即时发布。例如,消息通知可以延迟1小时进行发布,则电子设备在监测到通知提示音播放事件时,延迟1小时后弹出该延迟通知类型的通知提示音播放事件对应的消息提示框进行提示,同时播放对应的通知提示音。Among them, the delayed notification type indicates that the corresponding message notification needs to be delayed to be published, instead of being published immediately after receiving the message notification. For example, a message notification can be released with a delay of 1 hour, then when the electronic device detects a notification sound playback event, it will pop up a message prompt box corresponding to the notification sound playback event of the delayed notification type after a delay of 1 hour for prompting, and play the corresponding notification sound at the same time. notification sound.
具体地,电子设备在监测到通知提示音播放事件情况下,进一步确定该通知提示音播放事件的通知类型,若为延迟通知类型,表明该通知提示音播放事件并不会即时弹出消息提示框进行提示,而是在满足相应的发布条件情况下进行消息提示,例如延迟预设时间后,或者达到预设时刻,或到达预设地点等。在监测到延迟通知类型的通知提示音播放事件情况下,电子设备确定上一延迟通知类型的通知提示音播放事件对应的上一延迟通知提示音,具体由电子设备查询历史通知提示记录,从历史通知提示记录中确定上一延迟通知类型的通知提示音播放事件对应的上一延迟通知提示音。确定上一延迟通知提示音后,电子设备将与该上一延迟通知提示音属于同一旋律且相邻的下一通知提示音确定为当前通知提示音播放事件对应的延迟通知提示音。具体地,电子设备可以确定与上一次延迟通知提示音属于同一旋律的音乐资源集,并将该音乐资源集中与上一次延迟通知提示音相邻的音乐资源作为当前通知提示音播放事件对应的延迟通知提示音,从而为连续的延迟通知类型的通知提示音播放事件配置统一旋律连续的通知提示音,如此,在发布各延迟通知类型的通知消息时,电子设备播放的各通知提示音可以形成连续的旋律。Specifically, when the electronic device detects the notification sound playback event, it further determines the notification type of the notification sound playback event. If it is a delayed notification type, it indicates that the notification sound playback event will not pop up a message prompt box immediately. Instead, a message prompt is made when the corresponding release conditions are met, for example, after a preset time delay, or reaching a preset time, or reaching a preset location, etc. In the case of monitoring the notification sound playback event of the delayed notification type, the electronic device determines the last delayed notification sound corresponding to the notification sound playback event of the last delayed notification type. In the notification prompt record, determine the last delayed notification prompt sound corresponding to the notification prompt sound playback event of the last delayed notification type. After determining the last delayed notification tone, the electronic device determines the next notification tone that belongs to the same melody and is adjacent to the last delayed notification tone as the delayed notification tone corresponding to the current notification tone playing event. Specifically, the electronic device may determine a music resource set that belongs to the same melody as the last delay notification sound, and use the music resource set adjacent to the last delay notification sound as the delay corresponding to the current notification sound playback event Notification sound, so as to configure a unified melody and continuous notification sound for the notification sound playback events of the continuous delayed notification type. In this way, when the notification message of each delayed notification type is released, the notification sound played by the electronic device can form a continuous notification sound. melody.
进一步地,在监测到触发延迟通知发布情况下,电子设备按照各延迟通知类型的通知提示音播放事件的触发时刻按序播放对应的延迟通知提示音。具体地,电子设备监测是否触发延迟通知发布,如监测是否满足延迟通知发布条件,如是否达到延迟时间、是否达到延迟通知发布时间、是否抵达延迟通知发布地点、是否接收到延迟通知发布指令等,延迟通知发布条件可以由用户进行个性化设置。在满足延迟通知发布条件,触发延迟通知发布情况下,电子设备按照各延迟通知类型的通知提示音播放事件的触发时刻按序播放对应的延迟通知提示音,如可以按照通知提示音播放事件的触发时刻的时间先后顺序播放各通知提示音播放事件对应配置的延迟通知提示音,从而使得电子设备播放的各通知提示音可以形成连续的旋律。Further, in the case of monitoring the release of the trigger delay notification, the electronic device plays the corresponding delay notification sound in sequence according to the trigger time of the notification sound playing event of each delay notification type. Specifically, the electronic device monitors whether the release of the delay notice is triggered, such as monitoring whether the conditions for the release of the delay notice are met, such as whether the delay time has been reached, whether the delay notice release time has been reached, whether the delay notice release location has been reached, whether the delay notice release instruction has been received, etc., Delay notification release conditions can be personalized by the user. In the event that the delay notification release conditions are met and the delay notification release is triggered, the electronic device plays the corresponding delay notification sound in sequence according to the triggering time of the notification sound playback event of each delay notification type. The delayed notification tones configured corresponding to the playback events of the notification tones are played in the time sequence of time, so that the notification tones played by the electronic device can form a continuous melody.
本实施例中,电子设备为连续的延迟通知类型的通知提示音播放事件配置统一旋律连续的通知提示音,在发布各延迟通知类型的通知消息时,电子设备播放的各通知提示音可以形 成连续的旋律,从而丰富了延迟通知类型的通知消息的提示音内容,提升了消息提示的效果。In this embodiment, the electronic device configures a notification prompt tone with a unified melody and continuous notification tone for the notification tone playback event of the continuous delayed notification type. When publishing notification messages of each delayed notification type, the notification tone played by the electronic device can form a continuous The melody of the notification message enriches the content of the prompt tone of the notification message of the delayed notification type, and improves the effect of the message prompt.
在一个实施例中,确定上一延迟通知类型的通知提示音播放事件对应的上一延迟通知提示音,包括:确定触发当前的通知提示音播放事件的应用类型;确定应用类型对应的应用触发的上一延迟通知类型的通知提示音播放事件对应的上一延迟通知提示音。In one embodiment, determining the last delayed notification sound corresponding to the notification sound playback event of the last delayed notification type includes: determining the application type that triggers the current notification sound playback event; determining the application triggered by the application corresponding to the application type. The last delayed notification sound corresponding to the notification sound playback event of the last delayed notification type.
本实施例中,对于不同应用的延迟通知消息,配置不同的通知提示音,从而可以通过不同旋律的通知提示音提示不同应用的延迟通知消息,提升了延迟通知消息的提示效果。具体地,电子设备在监测到延迟通知类型的通知提示音播放事件情况下,电子设备确定触发当前的通知提示音播放事件的应用类型,即电子设备确定触发延迟通知类型的通知提示音播放事件的应用类型,基于该应用类型可以确定触发延迟通知类型的通知提示音播放事件的应用。电子设备确定该应用类型对应的应用触发的上一延迟通知类型的通知提示音播放事件对应的上一延迟通知提示音,从而可以为触发延迟通知类型的通知提示音播放事件的不同应用配置对应同一旋律连续的通知提示音。具体地,在确定触发当前的通知提示音播放事件的应用类型对应的应用触发的上一延迟通知类型的通知提示音播放事件对应的上一延迟通知提示音后,电子设备将与上一延迟通知提示音属于同一旋律且相邻的下一通知提示音确定为当前通知提示音播放事件对应的延迟通知提示音,从而使得触发延迟通知类型的通知提示音播放事件的不同应用配置对应同一旋律连续的通知提示音。In this embodiment, different notification tones are configured for the delayed notification messages of different applications, so that the delayed notification messages of different applications can be prompted through the notification tones of different melodies, which improves the prompting effect of the delayed notification messages. Specifically, when the electronic device detects the notification sound playback event of the delayed notification type, the electronic device determines the application type that triggers the current notification sound playback event, that is, the electronic device determines the application type that triggers the notification sound playback event of the delayed notification type. Application type, based on the application type, the application that triggers the notification sound playing event of the delayed notification type can be determined. The electronic device determines the last delayed notification sound corresponding to the notification sound playback event of the last delayed notification type triggered by the application corresponding to the application type, so that different applications that trigger the notification sound playback event of the delayed notification type can be configured to correspond to the same notification sound. Melodic continuous notification tone. Specifically, after determining the last delayed notification sound corresponding to the notification sound playback event of the last delayed notification type triggered by the application corresponding to the application type that triggered the current notification sound playback event, the electronic device will match the last delayed notification sound with the last delayed notification sound. The notification sound belongs to the same melody and the next adjacent notification sound is determined as the delayed notification sound corresponding to the current notification sound playback event, so that different application configurations that trigger the notification sound playback event of the delayed notification type correspond to the same melody continuous. Notification sound.
进一步地,在触发延迟通知发布情况下,按照各延迟通知类型的通知提示音播放事件的触发时刻按序播放对应的延迟通知提示音,包括:在触发延迟通知发布情况下,确定各应用类型对应的提示音播放顺序;按照提示音播放顺序和各应用类型对应的各延迟通知类型的通知提示音播放事件的触发时刻,按序播放对应的延迟通知提示音。Further, in the case of triggering the release of the delayed notification, playing the corresponding delayed notification sound in sequence according to the triggering time of the notification sound playback event of each delayed notification type, including: in the case of triggering the release of the delayed notification, determining that each application type corresponds to According to the playing sequence of the prompt sound and the trigger time of the notification prompt sound playback event of each delayed notification type corresponding to each application type, the corresponding delayed notification prompt sound is played in sequence.
其中,提示音播放顺序根据应用的应用类型对应设置,如可以设置社交类的应用的延迟通知发布优先级最高,最先进行发布;设置办公类的应用的延迟通知发布优先级居中,而对于其他新闻类的应用的延迟通知发布优先级最低,从而可以按照各应用类型对应的提示音播放顺序依次播放对应的通知提示音。Among them, the playback order of the prompt sound is set according to the application type of the application. For example, the delayed notification release priority of social applications can be set to be the highest, and the release priority is first; News applications have the lowest priority for releasing delayed notifications, so that the corresponding notification sounds can be played in sequence according to the playing sequence of the notification sounds corresponding to each application type.
具体地,在触发延迟通知发布情况下,电子设备确定各应用类型对应的提示音播放顺序,提示音播放顺序根据实际需要预先进行设置,具体可以由系统默认设置,也可以由用户进行个性化设置。确定各应用类型对应的提示音播放顺序后,电子设备按照提示音播放顺序和各应用类型对应的各延迟通知类型的通知提示音播放事件的触发时刻,按序播放对应的延迟通知提示音。具体地,电子设备按照提示音播放顺序确定各应用类型的播放顺序,对于各应用类型的延迟通知提示音,按照各延迟通知类型的通知提示音播放事件的触发时刻,按序播放对应的延迟通知提示音,从而按照各应用类型对应的提示音播放顺序依次播放对应的通知提示音。Specifically, in the case of triggering the release of a delayed notification, the electronic device determines the playing sequence of the prompt sound corresponding to each application type, and the playing order of the prompt sound is pre-set according to actual needs, which can be set by default by the system, or can be personalized by the user. . After determining the playing sequence of the prompt sound corresponding to each application type, the electronic device plays the corresponding delayed notification prompt sound in sequence according to the playing order of the prompt sound and the triggering time of the notification prompt sound playing event of each delayed notification type corresponding to each application type. Specifically, the electronic device determines the playing order of each application type according to the playing sequence of the prompt sound, and for the delayed notification prompt sound of each application type, plays the corresponding delayed notification in sequence according to the trigger time of the notification prompt sound playback event of each delayed notification type. Prompt tones, so that the corresponding notification prompt tones are played in sequence according to the play sequence of the prompt tones corresponding to each application type.
本实施例中,电子设备按照提示音播放顺序和各应用类型对应的各延迟通知类型的通知提示音播放事件的触发时刻,按序播放对应的延迟通知提示音,使得延迟通知消息可以根据对应应用类型的提示音播放顺序有序进行播放,同时播放的通知提示音可以对应形成完整的旋律,丰富了通知提示音的内容。In this embodiment, the electronic device plays the corresponding delayed notification prompt sounds in sequence according to the playing sequence of the prompt sound and the triggering time of the notification prompt sound playback event of each delayed notification type corresponding to each application type, so that the delayed notification message can be based on the corresponding application type. The types of prompt sounds are played in an orderly manner, and the notification prompt sounds played at the same time can correspond to form a complete melody, which enriches the content of the notification prompt tone.
在一个实施例中,通知提示音处理方法还包括:在监测到通知提示音播放事件情况下,确定触发通知提示音播放事件的播放事件触发信息;根据播放事件触发信息确定通知提示音播放事件对应的音频资源类型;从音频资源类型对应的音频资源中确定通知提示音播放事件对应的当前通知提示音,并播放当前通知提示音。In one embodiment, the notification sound processing method further includes: in the case of monitoring the notification sound playback event, determining playback event trigger information that triggers the notification sound playback event; determining the notification sound playback event corresponding to the notification sound playback event according to the playback event trigger information The audio resource type of the audio resource type; determine the current notification sound corresponding to the notification sound playback event from the audio resources corresponding to the audio resource type, and play the current notification sound.
其中,播放事件触发信息为触发的通知提示音播放事件的关联信息,如播放事件触发时刻、播放事件触发地点、播放事件触发用户和播放事件触发动作等。其中,播放事件触发时刻为触发通知提示音播放事件的时间,播放事件触发地点为触发通知提示音播放事件时电子设备所处位置,播放事件触发用户为触发通知提示音播放事件的使用用户,播放事件触发动作为触发通知提示音播放事件的指令。音频资源类型为通知提示音对应的音频资源的类型,如可以包括但不限于包括旋律类型、乐器类型等。The play event trigger information is related information of the triggered notification sound play event, such as play event trigger time, play event trigger location, play event trigger user, play event trigger action, and the like. The playback event trigger time is the time when the notification sound playback event is triggered, the playback event trigger location is the location of the electronic device when the notification sound playback event is triggered, and the playback event trigger user is the user who triggered the notification sound playback event. An event-triggered action is an instruction that triggers a notification sound playback event. The audio resource type is the type of the audio resource corresponding to the notification sound, which may include, but is not limited to, a melody type, a musical instrument type, and the like.
具体地,在监测到通知提示音播放事件情况下,电子设备确定触发通知提示音播放事件的播放事件触发信息,具体电子设备可以基于插桩技术获取触发通知提示音播放事件的播放事件触发信息。得到播放事件触发信息后,电子设备基于该播放事件触发信息确定通知提示音播放事件对应的音频资源类型。具体实现时,可以预先基于播放事件触发信息配置对应的音频资源类型,如为不同播放事件触发信息的通知提示音播放事件配置不同乐器的音频资源或不同旋律的音频资源作为对应的通知提示音,并将配置的音频资源配置表预先存储。电子设备可以查询预先配置的播放事件触发信息与音频资源类型之间的映射关系,基于当前的通知提示音播放事件对应的播放事件触发信息确定音频资源类型。不同的音频资源类型对应设有不同的音频资源,电子设备从确定的音频资源类型对应的音频资源中确定通知提示音播放事件对应的当前通知提示音,并通过播放该当前通知提示音进行消息提示。Specifically, in the case of monitoring the notification sound playback event, the electronic device determines the playback event trigger information that triggers the notification sound playback event, and the specific electronic device can obtain the playback event trigger information that triggers the notification sound playback event based on the instrumentation technology. After obtaining the playback event trigger information, the electronic device determines the audio resource type corresponding to the notification sound playback event based on the playback event trigger information. In specific implementation, the corresponding audio resource type can be configured in advance based on the playback event trigger information, for example, the audio resources of different musical instruments or the audio resources of different melodies are configured for the notification sound playback events of different playback event trigger information as the corresponding notification sound. And pre-store the configured audio resource configuration table. The electronic device may query the mapping relationship between the preconfigured playback event trigger information and the audio resource type, and determine the audio resource type based on the playback event trigger information corresponding to the current notification sound playback event. Different audio resource types are correspondingly provided with different audio resources. The electronic device determines the current notification sound corresponding to the notification sound playback event from the audio resources corresponding to the determined audio resource type, and performs a message prompt by playing the current notification sound. .
本实施例中,根据不同播放事件触发信息对应的通知提示音播放事件,从不同音频资源类型对应的音频资源中确定当前通知提示音进行播放提示,可以使通知提示音对应的音频资源与通知提示音播放事件的播放事件触发信息对应,进一步丰富了通知提示音,提升了提示效果。In this embodiment, according to the notification sound playback events corresponding to different playback event trigger information, the current notification sound is determined from the audio resources corresponding to different audio resource types to play a prompt, so that the audio resources corresponding to the notification sound can be matched with the notification sound. The corresponding playback event trigger information of the audio playback event further enriches the notification sound and improves the notification effect.
在一个实施例中,播放事件触发信息包括播放事件触发时刻、播放事件触发地点、播放事件触发用户和播放事件触发动作中的至少一种。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 playback event trigger time is the time when the notification sound playback event is triggered, the playback event trigger location is the location of the electronic device when the notification sound playback event is triggered, and the playback event trigger user is the user who triggered the notification sound playback event. An event-triggered action is an instruction that triggers a notification sound playback event. The playback event trigger information can be flexibly set according to actual needs. For example, it can be set to include the playback event trigger time, playback event trigger location, and playback event trigger user, that is, according to the playback event trigger time, playback event trigger location, and playback event trigger user three. The aspect determines the corresponding audio resource type, and determines the current notification prompt tone corresponding to the prompt tone playing event from the audio resources corresponding to the audio resource type to play the prompt. In this embodiment, different audio resource types are configured based on the playback event trigger information of the notification sound playback event, and the notification sound playback events of different playback event trigger information can be distinguished by the notification sound, which enriches the information carried by the notification sound. Improved the message prompt effect.
在一个实施例中,通知提示音处理方法还包括:获取通知提示音配置信息;在首次监测到通知提示音播放事件情况下,根据通知提示音配置信息确定通知提示音,并播放通知提示音。In one embodiment, the notification sound processing method further includes: acquiring notification sound configuration information; when a notification sound playing event is monitored for the first time, determining a notification sound according to the notification sound configuration information, and playing the notification sound.
其中,通知提示音配置信息为用户配置信息,如可以由用户在通知音配置界面进行配置,电子设备获取用户配置的通知提示音配置信息。具体地,电子设备获取通知提示音配置信息,在首次监测到通知提示音播放事件情况下,电子设备根据通知提示音配置信息确定通知提示音,并播放通知提示音。例如,在首次监测到通知提示音播放事件时,电子设备可以基于用户配置的通知提示音配置信息确定对应的音频资源,将该音频资源确定为通知提示音,并播放该通知提示音进行消息提示。而在后续监测到通知提示音播放事件时,电子设备则可以将与该通知提示音属于同一旋律且相邻的下一通知提示音确定为当前通知提示音并进行播放,从而可以连续播放用户配置的通知提示音进行消息提示。The notification sound configuration information is user configuration information. For example, the user can configure the notification sound configuration interface, and the electronic device obtains the notification sound configuration information configured by the user. Specifically, the electronic device obtains the notification sound configuration information, and when the notification sound playing event is detected for the first time, the electronic device determines the notification sound according to the notification sound configuration information, and plays the notification sound. For example, when monitoring the notification sound playing event for the first time, the electronic device may determine the corresponding audio resource based on the notification sound configuration information configured by the user, determine the audio resource as the notification sound, and play the notification sound for message prompting . When the notification sound playing event is subsequently monitored, the electronic device can determine the next notification sound belonging to the same melody and adjacent to the notification sound as the current notification sound and play it, so that the user configuration can be continuously played. The notification sound for message prompts.
本实施例中,基于用户预先配置的通知提示音配置信息确定通知提示音,并基于该通知提示音属于同一旋律的音频资源进行连续播放,以实现消息提示,可以支持用户自定义配置,扩展了通知提示音的适用场景。In this embodiment, the notification sound is determined based on the notification sound configuration information pre-configured by the user, and the notification sound is continuously played based on the audio resources belonging to the same melody, so as to realize the message prompt, which can support user-defined configuration, expand the Applicable scenarios for notification sound.
在一个实施例中,在播放当前通知提示音之前,还包括:获取触发通知提示音播放事件的播放事件触发信息;根据播放事件触发信息确定当前通知提示音对应的播放参数。In one embodiment, before playing the current notification sound, the method further includes: acquiring playback event trigger information that triggers the playback event of the notification sound; and determining playback parameters corresponding to the current notification sound according to the playback event trigger information.
其中,播放事件触发信息为触发的通知提示音播放事件的关联信息,如播放事件触发时刻、播放事件触发地点、播放事件触发用户和播放事件触发动作等。播放事件触发时刻为触发通知提示音播放事件的时间,播放事件触发地点为触发通知提示音播放事件时电子设备所处位置,播放事件触发用户为触发通知提示音播放事件的使用用户,播放事件触发动作为触发通知提示音播放事件的指令。播放参数可以包括播放时长、播放音量等与通知提示音播放 控制相关的参数。The play event trigger information is related information of the triggered notification sound play event, such as play event trigger time, play event trigger location, play event trigger user, play event trigger action, and the like. The playback event trigger time is the time when the notification sound playback event is triggered, the playback event trigger location is the location of the electronic device when the notification sound playback event is triggered, the playback event trigger user is the user who triggered the notification sound playback event, and the playback event triggers The action is the instruction that triggers the notification sound play event. The playback parameters may include playback duration, playback volume and other parameters related to notification sound playback control.
具体地,在播放当前通知提示音之前,电子设备还可以基于通知提示音播放事件的播放事件触发信息对当前通知提示音的播放参数进行配置,以实现对通知提示音的播放控制。进一步地,电子设备在播放当前通知提示音之前,获取触发通知提示音播放事件的播放事件触发信息,具体可以由电子设备基于插桩技术获取触发通知提示音播放事件的播放事件触发信息。得到播放事件触发信息后,电子设备根据播放事件触发信息确定当前通知提示音对应的播放参数。具体实现时,可以预先基于播放事件触发信息配置对应的播放参数,并存储播放事件触发信息与播放参数之间的映射关系,电子设备可以基于播放事件触发信息和该映射关系确定对应的播放参数,如播放音量、播放时长等。Specifically, before playing the current notification sound, the electronic device may further configure playback parameters of the current notification sound based on the playback event trigger information of the notification sound playback event, so as to control the playback of the notification sound. Further, before playing the current notification sound, the electronic device obtains the playback event trigger information that triggers the notification sound playback event. Specifically, the electronic device may obtain the playback event trigger information that triggers the notification sound playback event based on the instrumentation technology. After obtaining the playback event trigger information, the electronic device determines playback parameters corresponding to the current notification sound according to the playback event trigger information. During specific implementation, the corresponding playback parameters may be configured in advance based on the playback event trigger information, and the mapping relationship between the playback event trigger information and the playback parameters may be stored, and the electronic device may determine the corresponding playback parameters based on the playback event trigger information and the mapping relationship. Such as playback volume, playback duration, etc.
进一步地,播放当前通知提示音,包括:按照播放参数播放当前通知提示音。Further, playing the current notification sound includes: playing the current notification sound according to playback parameters.
在播放当前通知提示音时,电子设备按照确定的播放参数播放当前通知提示音,如按照确定的播放音量或播放时长播放当前通知提示音。When playing the current notification sound, the electronic device plays the current notification sound according to the determined playback parameters, such as playing the current notification sound according to the determined playback volume or playback duration.
本实施例中,根据不同播放事件触发信息对应的通知提示音播放事件,配置不同的播放参数,并按照配置的播放参数播放对应的通知提示音,可以使通知提示音的播放与通知提示音播放事件的播放事件触发信息对应,进一步丰富了通知提示音,提升了提示效果。In this embodiment, different playback parameters are configured according to the notification sound playback events corresponding to different playback event trigger information, and the corresponding notification sound is played according to the configured playback parameters, so that the notification sound can be played and the notification sound can be played. The corresponding playback event trigger information of the event further enriches the notification sound and improves the prompt effect.
在一个实施例中,提供了一种通知提示音处理方法,如图7所示,该通知提示音处理方法的音频资源包括电子音、玻璃竖琴、马林巴以及古典吉他等4中乐器类型的音频资源,而每种乐器下均映射4首音乐资源,其中每一首都由若干个独立的由该乐器类型生成的小的音乐资源,这些音乐资源连起来播放即可形成一首完整的旋律。当用户选择系统默认通知声为电子音之后,电子设备的系统会监测来通知的频率,当两个通知间隔在10s之内,则随机选择一首旋律依次播放下去。当间隔超过10s或者被其他自定义的铃声打断之后,则随机切换到下一首旋律。In one embodiment, a notification sound processing method is provided, as shown in FIG. 7 , the audio resources of the notification sound processing method include electronic sound, glass harp, marimba, and classical guitar. Audio resources, and 4 music resources are mapped under each instrument, each of which consists of several independent small music resources generated by the instrument type. These music resources can be played together to form a complete melody. When the user selects the electronic sound as the default notification sound of the system, the system of the electronic device will monitor the frequency of the notification. When the interval between the two notifications is within 10s, a melody will be randomly selected and played in sequence. When the interval exceeds 10s or is interrupted by other custom ringtones, it will switch to the next melody randomly.
具体地,电子设备在系统通知服务播放铃声震动处进行插桩拦截,若当前通知声为系统默认通知声,且动态提示音开关状态为开,则进行铃声资源的替换,即通过音频资源库中确定的通知提示音进行消息提示,即将默认的通知提示音替换成对应的动态提示音的资源,并修改震动效果,适配对应铃声的震动波形。而对于一些第三方应用的设置的个性化的通知铃声,继续保留三方自身效果。如果动态提示音被三方的自定义提示音打断,则电子设备随机切换一首旋律继续播放。Specifically, the electronic device performs instrumentation interception at the place where the system notification service plays the ringtone vibration. If the current notification sound is the system default notification sound, and the dynamic notification sound switch status is on, the ringtone resource is replaced, that is, through the audio resource library. The determined notification sound is used for message prompting, that is, the default notification sound is replaced with the resource of the corresponding dynamic sound, and the vibration effect is modified to adapt to the vibration waveform of the corresponding ringtone. As for the personalized notification ringtones set by some third-party applications, the effects of the third-party itself continue to be retained. If the dynamic prompt tone is interrupted by the three-party custom prompt tone, the electronic device switches to a melody randomly and continues to play.
本实施例中,在高频通知场景下,可以将通知的提示音的音调附带有旋律的变化,在连续来通知的场景下,通知音连起来可形成完整的旋律,能够解决高频通知场景给用户带来的打扰,有效丰富了通知提示音的内容,增加智能趣味,提高用户对通知音的期待感,提升用户对电子设备的使用体验。In this embodiment, in the high-frequency notification scenario, the tone of the notification tone can be accompanied by a melody change. In the continuous notification scenario, the notification tones can be connected to form a complete melody, which can solve the high-frequency notification scenario. The disturbance brought to the user effectively enriches the content of the notification sound, increases the intelligent interest, improves the user's sense of expectation for the notification sound, and improves the user's experience of using the electronic device.
应该理解的是,虽然图2或图4的流程图中的各个操作按照箭头的指示依次显示,但是这些操作并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些操作的执行并没有严格的顺序限制,这些操作可以以其它的顺序执行。而且,图2或图4中的至少一部分操作可以包括多个子操作或者多个阶段,这些子操作或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子操作或者阶段的执行顺序也不必然是依次进行,而是可以与其它操作或者其它操作的子操作或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the respective operations in the flowchart of FIG. 2 or FIG. 4 are displayed in sequence according to the arrows, these operations are not necessarily performed sequentially in the order indicated by the arrows. Unless otherwise specified herein, the execution of these operations is not strictly limited in order, and these operations may be performed in other orders. Moreover, at least a part of the operations in FIG. 2 or FIG. 4 may include multiple sub-operations or multiple stages. These sub-operations or stages are not necessarily executed and completed at the same time, but may be executed at different times. These sub-operations or The order of execution of the stages is also not necessarily sequential, but may be performed alternately or alternately with other operations or sub-operations of other operations or at least a portion of a stage.
图8为一个实施例的通知提示音处理装置800的结构框图。如图8所示,通知提示音处理装置800包括播放事件响应模块802、提示音确定模块804和提示音播放模块806,其中:FIG. 8 is a structural block diagram of a notification sound processing apparatus 800 according to an embodiment. As shown in FIG. 8 , the notification prompt sound processing apparatus 800 includes a playback event response module 802, a prompt sound determination module 804 and a prompt sound playing module 806, wherein:
播放事件响应模块802,用于在监测到通知提示音播放事件情况下,确定上一次通知提示音的播放时刻;The playback event response module 802 is used to determine the playback time of the last notification sound when the notification sound playback event is monitored;
提示音确定模块804,用于在当前时刻与上一次通知提示音的播放时刻的时长间隔小于时长间隔阈值情况下,将与上一次通知提示音属于同一旋律且相邻的下一通知提示音确定为当前通知提示音;The prompt tone determination module 804 is used to determine the next notification prompt tone that belongs to the same melody and is adjacent to the last notification prompt tone when the time interval between the current moment and the playback time of the last notification prompt tone is less than the time length interval threshold is the current notification sound;
提示音播放模块806,用于播放当前通知提示音。The prompt sound playing module 806 is used to play the current notification prompt sound.
在一个实施例中,提示音确定模块804包括时长间隔确定模块、音频旋律确定模块和音频资源选定模块;其中:时长间隔确定模块,用于确定当前时刻与上一次通知提示音的播放时刻的时长间隔;音频旋律确定模块,用于在时长间隔小于时长间隔阈值情况下,确定上一次通知提示音对应所属的音频旋律;音频资源选定模块,用于将音频旋律的各音频资源中与上一次通知提示音对应音频资源相邻的下一音频资源确定为当前通知提示音。In one embodiment, the prompt tone determination module 804 includes a duration interval determination module, an audio melody determination module and an audio resource selection module; wherein: a duration interval determination module for determining the difference between the current moment and the playback moment of the last notification tone Time interval; the audio melody determination module is used to determine the audio melody corresponding to the last notification sound when the time interval is less than the time interval threshold; the audio resource selection module is used to compare the audio resources of the audio melody with the above. The next audio resource adjacent to the audio resource corresponding to one notification sound is determined as the current notification sound.
在一个实施例中,还包括中断切换模块,用于在当前时刻与上一次通知提示音的播放时刻的时刻间隔不小于时刻间隔阈值情况下,确定与上一次通知提示音所属旋律不同的目标旋律;从目标旋律对应的音频资源中确定当前通知提示音,并播放当前通知提示音。In one embodiment, an interrupt switching module is also included, for determining a target melody different from the melody to which the last notification tone belongs when the time interval between the current moment and the playback time of the last notification tone is not less than the time interval threshold ; Determine the current notification sound from the audio resource corresponding to the target melody, and play the current notification sound.
在一个实施例中,还包括自定义通知模块,用于在监测到通知提示音播放事件情况下,确定触发通知提示音播放事件的应用对应的提示音类型;在提示音类型为自定义提示音类型情况下,将应用类型对应的自定义提示音确定为当前通知提示音,并播放当前通知提示音。In one embodiment, a custom notification module is also included, which is used to determine the prompt tone type corresponding to the application that triggers the notification prompt tone playback event when the notification prompt tone play event is monitored; when the prompt tone type is a custom prompt tone In the case of the type, the custom notification sound corresponding to the application type is determined as the current notification sound, and the current notification sound is played.
在一个实施例中,还包括音频资源确定模块、应用打断确定模块和应用打断通知处理模块;其中:音频资源确定模块,用于在监测到通知提示音播放事件情况下,确定上一次通知提示音对应的音频资源;应用打断确定模块,用于在上一次通知提示音对应的音频资源为应用自定义的音频资源类型情况下,确定目标旋律;应用打断通知处理模块,用于从目标旋律对应的音频资源中确定当前通知提示音,并播放当前通知提示音。In one embodiment, it also includes an audio resource determination module, an application interruption determination module, and an application interruption notification processing module; wherein: the audio resource determination module is configured to determine the last notification when a notification sound playback event is detected. The audio resource corresponding to the prompt tone; the application interruption determination module is used to determine the target melody when the audio resource corresponding to the last notification prompt tone is an application-defined audio resource type; the application interruption notification processing module is used to retrieve the The current notification sound is determined in the audio resource corresponding to the target melody, and the current notification sound is played.
在一个实施例中,还包括应用类型确定模块和动态提示模块;其中:应用类型确定模块,用于确定触发通知提示音播放事件的应用对应的应用类型;动态提示模块,用于在应用类型为默认提示音类型且处于动态提示音激活状态情况下,控制播放事件响应模块执行确定上一次通知提示音的播放时刻的操作。In one embodiment, it also includes an application type determination module and a dynamic prompt module; wherein: an application type determination module is used to determine the application type corresponding to the application that triggers the notification prompt sound playback event; the dynamic prompt module is used to determine the application type when the application type is In the case of the default prompt tone type and the dynamic prompt tone activation state, the playback event response module is controlled to perform the operation of determining the playback time of the last notification prompt tone.
在一个实施例中,还包括振动配置模块,用于在应用类型为默认提示音类型且处于动态提示音激活状态情况下,配置通知提示振动的振动波形与通知提示音对应。In one embodiment, a vibration configuration module is further included, configured to configure the vibration waveform of the notification prompt vibration to correspond to the notification prompt sound when the application type is the default prompt tone type and the dynamic prompt tone is activated.
在一个实施例中,还包括延迟通知监测模块、延迟提示音确定模块和延迟通知发布模块;其中:延迟通知监测模块,用于在监测到延迟通知类型的通知提示音播放事件情况下,确定上一延迟通知类型的通知提示音播放事件对应的上一延迟通知提示音;延迟提示音确定模块,用于将与上一延迟通知提示音属于同一旋律且相邻的下一通知提示音确定为当前通知提示音播放事件对应的延迟通知提示音;延迟通知发布模块,用于在触发延迟通知发布情况下,按照各延迟通知类型的通知提示音播放事件的触发时刻按序播放对应的延迟通知提示音。In one embodiment, it also includes a delay notification monitoring module, a delay notification sound determination module, and a delay notification issuing module; wherein: a delay notification monitoring module is used to determine a notification sound playback event of a delayed notification type when a notification sound playback event of a delayed notification type is detected. The last delayed notification tone corresponding to the notification tone playback event of a delayed notification type; the delayed notification tone determination module is used to determine the next notification tone that belongs to the same melody and is adjacent to the last delayed notification tone as the current notification tone The delay notification sound corresponding to the notification sound playback event; the delay notification release module is used to play the corresponding delay notification sound in sequence according to the trigger time of the notification sound playback event of each delay notification type when the delay notification release is triggered. .
在一个实施例中,延迟通知监测模块包括延迟应用类型确定模块和在前延迟通知确定模块;其中:延迟应用类型确定模块,用于确定触发当前的通知提示音播放事件的应用类型;在前延迟通知确定模块,用于确定应用类型对应的应用触发的上一延迟通知类型的通知提示音播放事件对应的上一延迟通知提示音;延迟通知发布模块包括播放顺序确定模块和按序播放处理模块;其中:播放顺序确定模块,用于在触发延迟通知发布情况下,确定各应用类型对应的提示音播放顺序;按序播放处理模块,用于按照提示音播放顺序和各应用类型对应的各延迟通知类型的通知提示音播放事件的触发时刻,按序播放对应的延迟通知提示音。In one embodiment, the delayed notification monitoring module includes a delayed application type determination module and a previous delayed notification determination module; wherein: the delayed application type determination module is used to determine the application type that triggers the current notification sound playback event; the previous delayed notification The notification determination module is used to determine the last delayed notification prompt sound corresponding to the notification prompt sound playback event of the last delayed notification type triggered by the application corresponding to the application type; the delayed notification issuing module includes a playback sequence determination module and a sequential playback processing module; Among them: the playback sequence determination module is used to determine the playback sequence of the prompt sound corresponding to each application type in the case of triggering the release of the delayed notification; the sequential playback processing module is used to follow the playback sequence of the prompt sound and each delay notification corresponding to each application type. The triggering moment of the notification sound playback event of the type, and the corresponding delayed notification sound is played in sequence.
在一个实施例中,还包括触发信息确定模块、音频资源类型确定模块和音频资源类型处理模块;其中:触发信息确定模块,用于在监测到通知提示音播放事件情况下,确定触发通知提示音播放事件的播放事件触发信息;音频资源类型确定模块,用于根据播放事件触发信息确定通知提示音播放事件对应的音频资源类型;音频资源类型处理模块,用于从音频资源类型对应的音频资源中确定通知提示音播放事件对应的当前通知提示音,并播放当前通知提示音。In one embodiment, it also includes a trigger information determination module, an audio resource type determination module, and an audio resource type processing module; wherein: a trigger information determination module is used to determine the trigger notification sound when a notification sound playback event is detected. Play event trigger information of the play event; the audio resource type determination module is used to determine the audio resource type corresponding to the notification sound playback event according to the play event trigger information; the audio resource type processing module is used to select the audio resource corresponding to the audio resource type from the audio resource type Determine the current notification sound corresponding to the notification sound playback event, and play the current notification sound.
在一个实施例中,播放事件触发信息包括播放事件触发时刻、播放事件触发地点、播放事件触发用户和播放事件触发动作中的至少一种。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, it also includes a configuration information acquisition module and a first notification processing module; wherein: a configuration information acquisition module is used to acquire notification sound configuration information; a first notification processing module is used to monitor the notification sound playback event for the first time In this case, the notification sound is determined according to the notification sound configuration information, and the notification sound is played.
在一个实施例中,还包括触发信息获取模块和播放参数确定模块;其中:触发信息获取模块,用于获取触发通知提示音播放事件的播放事件触发信息;播放参数确定模块,用于根据播放事件触发信息确定当前通知提示音对应的播放参数;提示音播放模块806,还用于按照播放参数播放当前通知提示音。In one embodiment, it also includes a trigger information acquisition module and a playback parameter determination module; wherein: a trigger information acquisition module is used to acquire playback event trigger information that triggers a notification sound playback event; a playback parameter determination module is used to obtain playback event trigger information according to the playback event The trigger information determines the playback parameters corresponding to the current notification sound; the sound playing module 806 is further configured to play the current notification sound according to the playback parameters.
上述通知提示音处理装置中各个模块的划分仅仅用于举例说明,在其他实施例中,可将通知提示音处理装置按照需要划分为不同的模块,以完成上述通知提示音处理装置的全部或部分功能。The division of each module in the above-mentioned notification sound processing apparatus is only used for illustration. In other embodiments, the notification sound processing apparatus may be divided into different modules as required, so as to complete all or part of the above notification sound processing apparatus Function.
关于通知提示音处理装置的具体限定可以参见上文中对于通知提示音处理方法的限定,在此不再赘述。上述通知提示音处理装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。For the specific limitation of the notification sound processing apparatus, reference may be made to the limitation of the notification sound processing method above, which will not be repeated here. Each module in the above notification sound processing apparatus may be implemented in whole or in part by software, hardware and combinations thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
图9为一个实施例中电子设备的内部结构示意图。如图9所示,该电子设备包括通过系统总线连接的处理器和存储器。其中,该处理器用于提供计算和控制能力,支撑整个电子设备的运行。存储器可包括非易失性存储介质及内存储器。非易失性存储介质存储有操作系统和计算机程序。该计算机程序可被处理器所执行,以用于实现以下各个实施例所提供的一种通知提示音处理方法。内存储器为非易失性存储介质中的操作系统计算机程序提供高速缓存的运行环境。该电子设备可以是手机、平板电脑、PDA(Personal Digital Assistant,个人数字助理)、POS(Point of Sales,销售终端)、车载电脑、穿戴式设备等任意终端设备。FIG. 9 is a schematic diagram of the 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. Among them, the processor is used to provide computing and control capabilities to support the operation of the entire electronic device. The memory may include non-volatile storage media and internal memory. The nonvolatile storage medium stores an operating system and a computer program. The computer program can be executed by the processor to implement a notification sound processing method provided by the following embodiments. Internal memory provides a cached execution environment for operating system computer programs in non-volatile storage media. 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 sales terminal), a vehicle-mounted computer, a wearable device, and the like.
本申请实施例中提供的通知提示音处理装置中的各个模块的实现可为计算机程序的形式。该计算机程序可在终端或服务器上运行。该计算机程序构成的程序模块可存储在电子设备的存储器上。该计算机程序被处理器执行时,实现本申请实施例中所描述方法的操作。The implementation of each module in the notification sound processing apparatus provided in the embodiment of the present application may be in the form of a computer program. The computer program can be run on a terminal or server. The program modules constituted by the computer program can be stored on the memory of the electronic device. When the computer program is executed by the processor, the operations of the methods described in the embodiments of the present application are implemented.
本申请实施例还提供了一种计算机可读存储介质。一个或多个包含计算机可执行指令的非易失性计算机可读存储介质,当所述计算机可执行指令被一个或多个处理器执行时,使得所述处理器执行通知提示音处理方法的操作。Embodiments of the present application also provide a computer-readable storage medium. One or more non-volatile computer-readable storage media containing computer-executable instructions that, when executed by one or more processors, cause the processors to perform operations of a notification tone processing method .
一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行通知提示音处理方法。A computer program product containing instructions, when run on a computer, causes the computer to execute a notification sound processing method.
本申请所使用的对存储器、存储、数据库或其它介质的任何引用可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM),它用作外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDR SDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)。Any reference to a memory, storage, database, or other medium as used herein may include non-volatile and/or volatile memory. Nonvolatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM), which acts as external cache memory. By way of illustration and not limitation, RAM is available in various forms such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), Memory Bus (Rambus) Direct RAM (RDRAM), Direct Memory Bus Dynamic RAM (DRDRAM), and Memory Bus Dynamic RAM (RDRAM).
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本申请专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only represent several embodiments of the present application, and the descriptions thereof are relatively specific and detailed, but should not be construed as a limitation on the scope of the patent of the present application. It should be noted that, for those skilled in the art, without departing from the concept of the present application, several modifications and improvements can be made, which all belong to the protection scope of the present application. Therefore, the scope of protection of the patent of the present application shall be subject to the appended claims.

Claims (20)

  1. 一种通知提示音处理方法,其特征在于,包括:A method for processing notification sound, comprising:
    在监测到通知提示音播放事件情况下,确定上一次通知提示音的播放时刻;In the case of monitoring the notification sound playback event, determine the playback time of the last notification sound;
    在当前时刻与上一次通知提示音的播放时刻的时长间隔小于时长间隔阈值情况下,将与所述上一次通知提示音属于同一旋律且相邻的下一通知提示音确定为当前通知提示音;及When the time interval between the current moment and the playback time of the last notification sound is less than the time interval threshold, the next notification sound that belongs to the same melody and is adjacent to the last notification sound is determined as the current notification sound; and
    播放所述当前通知提示音。Play the current notification sound.
  2. 根据权利要求1所述的方法,其特征在于,所述在当前时刻与上一次通知提示音的播放时刻的时长间隔小于时长间隔阈值情况下,将与所述上一次通知提示音属于同一旋律且相邻的下一通知提示音确定为当前通知提示音,包括:The method according to claim 1, wherein when the time interval between the current time and the playback time of the last notification sound is less than a time interval threshold, the last notification sound belongs to the same melody and The next adjacent notification sound is determined as the current notification sound, including:
    确定当前时刻与上一次通知提示音的播放时刻的时长间隔;Determine the time interval between the current time and the playback time of the last notification sound;
    在所述时长间隔小于时长间隔阈值情况下,确定所述上一次通知提示音对应所属的音频旋律;及In the case that the duration interval is less than the duration interval threshold, determining the audio melody corresponding to the last notification tone; and
    将所述音频旋律的各音频资源中与所述上一次通知提示音对应音频资源相邻的下一音频资源确定为当前通知提示音。The next audio resource adjacent to the audio resource corresponding to the last notification sound in each audio resource of the audio melody is determined as the current notification sound.
  3. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    在当前时刻与上一次通知提示音的播放时刻的时刻间隔不小于时刻间隔阈值情况下,确定与所述上一次通知提示音所属旋律不同的目标旋律;及Under the condition that the time interval between the current time and the playback time of the last notification sound is not less than the time interval threshold, determine a target melody different from the melody to which the last notification sound belongs; and
    从所述目标旋律对应的音频资源中确定当前通知提示音,并播放所述当前通知提示音。The current notification sound is determined from the audio resource corresponding to the target melody, and the current notification sound is played.
  4. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    在监测到通知提示音播放事件情况下,确定触发所述通知提示音播放事件的应用对应的提示音类型;及In the case of monitoring the notification sound playing event, determining the sound type corresponding to the application that triggered the notification sound playing event; and
    在所述提示音类型为自定义提示音类型情况下,将所述应用类型对应的自定义提示音确定为当前通知提示音,并播放所述当前通知提示音。In the case that the prompt tone type is a custom prompt tone type, the custom prompt tone corresponding to the application type is determined as the current notification prompt tone, and the current notification prompt tone is played.
  5. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    在监测到通知提示音播放事件情况下,确定上一次通知提示音对应的音频资源;In the case of monitoring the notification sound playback event, determine the audio resource corresponding to the last notification sound;
    在所述上一次通知提示音对应的音频资源为应用自定义的音频资源类型情况下,确定目标旋律;及In the case where the audio resource corresponding to the last notification sound is an application-defined audio resource type, determine the target melody; and
    从所述目标旋律对应的音频资源中确定当前通知提示音,并播放所述当前通知提示音。The current notification sound is determined from the audio resource corresponding to the target melody, and the current notification sound is played.
  6. 根据权利要求1所述的方法,其特征在于,在所述确定上一次通知提示音的播放时刻之前,还包括:The method according to claim 1, wherein before the determining the playing time of the last notification sound, the method further comprises:
    确定触发所述通知提示音播放事件的应用对应的应用类型;及Determine the application type corresponding to the application that triggers the notification sound playback event; and
    在所述应用类型为默认提示音类型且处于动态提示音激活状态情况下,执行确定上一次通知提示音的播放时刻的操作。When the application type is the default prompt tone type and the dynamic prompt tone is activated, the operation of determining the playback time of the last notification prompt tone is performed.
  7. 根据权利要求6所述的方法,其特征在于,所述方法还包括:The method according to claim 6, wherein the method further comprises:
    在所述应用类型为默认提示音类型且处于动态提示音激活状态情况下,配置通知提示振动的振动波形与通知提示音对应。When the application type is the default prompt tone type and the dynamic prompt tone is activated, the vibration waveform of the notification prompt vibration is configured to correspond to the notification prompt tone.
  8. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    在监测到延迟通知类型的通知提示音播放事件情况下,确定上一延迟通知类型的通知提示音播放事件对应的上一延迟通知提示音;In the case of monitoring the notification sound playback event of the delayed notification type, determine the last delayed notification sound corresponding to the notification sound playback event of the last delayed notification type;
    将与所述上一延迟通知提示音属于同一旋律且相邻的下一通知提示音确定为当前通知提示音播放事件对应的延迟通知提示音;及Determining the next notification prompt tone that belongs to the same melody and is adjacent to the last delayed notification prompt tone as the delayed notification prompt tone corresponding to the current notification prompt tone playback event; and
    在触发延迟通知发布情况下,按照各延迟通知类型的通知提示音播放事件的触发时刻按序播放对应的延迟通知提示音。In the case of the release of the triggered delayed notification, the corresponding delayed notification sound is played in sequence according to the triggering time of the notification sound playback event of each delayed notification type.
  9. 根据权利要求8所述的方法,其特征在于,所述确定上一延迟通知类型的通知提示音播放事件对应的上一延迟通知提示音,包括:The method according to claim 8, wherein the determining the last delayed notification sound corresponding to the notification sound playing event of the last delayed notification type comprises:
    确定触发当前的通知提示音播放事件的应用类型;及Determine the type of application that triggered the current notification tone play event; and
    确定所述应用类型对应的应用触发的上一延迟通知类型的通知提示音播放事件对应的上一延迟通知提示音;determining the last delayed notification sound corresponding to the notification sound playback event of the last delayed notification type triggered by the application corresponding to the application type;
    所述在触发延迟通知发布情况下,按照各延迟通知类型的通知提示音播放事件的触发时刻按序播放对应的延迟通知提示音,包括:In the case of the release of the trigger delay notification, the corresponding delay notification sound is played in sequence according to the triggering time of the notification sound playback event of each delay notification type, including:
    在触发延迟通知发布情况下,确定各所述应用类型对应的提示音播放顺序;及In the case of triggering the release of a delayed notification, determining the playback sequence of the prompt sound corresponding to each of the application types; and
    按照所述提示音播放顺序和各所述应用类型对应的各延迟通知类型的通知提示音播放事件的触发时刻,按序播放对应的延迟通知提示音。According to the playing sequence of the prompt sound and the trigger time of the notification prompt sound playing event of each delayed notification type corresponding to each application type, the corresponding delayed notification prompt sound is played in sequence.
  10. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    在监测到通知提示音播放事件情况下,确定触发所述通知提示音播放事件的播放事件触发信息;In the case of monitoring the notification sound playback event, determine the playback event trigger information that triggers the notification sound playback event;
    根据所述播放事件触发信息确定所述通知提示音播放事件对应的音频资源类型;及Determine the audio resource type corresponding to the notification sound playback event according to the playback event trigger information; and
    从所述音频资源类型对应的音频资源中确定所述通知提示音播放事件对应的当前通知提示音,并播放所述当前通知提示音。The current notification sound corresponding to the notification sound playback event is determined from the audio resources corresponding to the audio resource type, and the current notification sound is played.
  11. 根据权利要求10所述的方法,其特征在于,所述播放事件触发信息包括播放事件触发时刻、播放事件触发地点、播放事件触发用户和播放事件触发动作中的至少一种。The method according to claim 10, wherein the playback event trigger information includes at least one of a playback event trigger time, a playback event trigger location, a playback event trigger user, and a playback event trigger action.
  12. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    获取通知提示音配置信息;及Get notification tone configuration information; and
    在首次监测到通知提示音播放事件情况下,根据所述通知提示音配置信息确定通知提示音,并播放所述通知提示音。When a notification sound playing event is detected for the first time, a notification sound is determined according to the notification sound configuration information, and the notification sound is played.
  13. 根据权利要求1至12任意一项所述的方法,其特征在于,在所述播放所述当前通知提示音之前,还包括:The method according to any one of claims 1 to 12, wherein before the playing the current notification sound, the method further comprises:
    获取触发所述通知提示音播放事件的播放事件触发信息;及Acquire play event trigger information that triggers the notification sound play event; and
    根据所述播放事件触发信息确定所述当前通知提示音对应的播放参数;Determine the playback parameters corresponding to the current notification sound according to the playback event trigger information;
    所述播放所述当前通知提示音,包括:The playing the current notification sound includes:
    按照所述播放参数播放所述当前通知提示音。Play the current notification sound according to the playback parameter.
  14. 一种通知提示音处理装置,其特征在于,包括:A notification sound processing device, characterized in that it includes:
    播放事件响应模块,用于在监测到通知提示音播放事件情况下,确定上一次通知提示音的播放时刻;The playback event response module is used to determine the playback time of the last notification sound when the notification sound playback event is detected;
    提示音确定模块,用于在当前时刻与上一次通知提示音的播放时刻的时长间隔小于时长间隔阈值情况下,将与所述上一次通知提示音属于同一旋律且相邻的下一通知提示音确定为当前通知提示音;及The prompt tone determination module is used to determine the next notification prompt tone that belongs to the same melody and is adjacent to the last notification prompt tone when the time interval between the current moment and the playback time of the last notification prompt tone is less than the time interval threshold Determined to be the current notification tone; and
    提示音播放模块,用于播放所述当前通知提示音。A prompt sound playing module is used to play the current notification prompt sound.
  15. 根据权利要求14所述的装置,其特征在于,所述提示音确定模块包括:The device according to claim 14, wherein the prompt tone determination module comprises:
    时长间隔确定模块,用于确定当前时刻与上一次通知提示音的播放时刻的时长间隔;a duration interval determination module, used to determine the duration interval between the current moment and the playback moment of the last notification sound;
    音频旋律确定模块,用于在所述时长间隔小于时长间隔阈值情况下,确定所述上一次通知提示音对应所属的音频旋律;及An audio melody determination module, configured to determine the audio melody to which the last notification tone corresponds when the duration interval is less than the duration interval threshold; and
    音频资源选定模块,用于将所述音频旋律的各音频资源中与所述上一次通知提示音对应音频资源相邻的下一音频资源确定为当前通知提示音。The audio resource selection module is configured to determine the next audio resource adjacent to the audio resource corresponding to the last notification sound in each audio resource of the audio melody as the current notification sound.
  16. 根据权利要求14所述的装置,其特征在于,所述装置还包括:The apparatus of claim 14, wherein the apparatus further comprises:
    中断切换模块,用于在当前时刻与上一次通知提示音的播放时刻的时刻间隔不小于时刻间隔阈值情况下,确定与所述上一次通知提示音所属旋律不同的目标旋律;及从所述目标旋律对应的音频资源中确定当前通知提示音,并播放所述当前通知提示音。The interrupt switching module is used to determine a target melody different from the melody to which the last notification sound belongs when the time interval between the current moment and the playback time of the last notification sound is not less than the time interval threshold; and from the target The current notification sound is determined in the audio resource corresponding to the melody, and the current notification sound is played.
  17. 根据权利要求14所述的装置,其特征在于,所述装置还包括:The apparatus of claim 14, wherein the apparatus further comprises:
    自定义通知模块,用于在监测到通知提示音播放事件情况下,确定触发所述通知提示音播放事件的应用对应的提示音类型;及在所述提示音类型为自定义提示音类型情况下,将所述应用类型对应的自定义提示音确定为当前通知提示音,并播放所述当前通知提示音。A custom notification module for determining a notification sound type corresponding to an application that triggers the notification sound playback event when a notification sound playback event is detected; and when the notification sound type is a custom sound type , determine the custom prompt tone corresponding to the application type as the current notification prompt tone, and play the current notification prompt tone.
  18. 根据权利要求14所述的装置,其特征在于,所述装置还包括:The apparatus of claim 14, wherein the apparatus further comprises:
    音频资源确定模块,用于在监测到通知提示音播放事件情况下,确定上一次通知提示音对应的音频资源;The audio resource determination module is used to determine the audio resource corresponding to the last notification sound when the notification sound playback event is monitored;
    应用打断确定模块,用于在所述上一次通知提示音对应的音频资源为应用自定义的音频资源类型情况下,确定目标旋律;及an application interruption determination module, for determining a target melody when the audio resource corresponding to the last notification sound is an application-defined audio resource type; and
    应用打断通知处理模块,用于从所述目标旋律对应的音频资源中确定当前通知提示音,并播放所述当前通知提示音。The application interruption notification processing module is configured to determine the current notification sound from the audio resource corresponding to the target melody, and play the current notification sound.
  19. 一种电子设备,包括存储器及处理器,所述存储器中储存有计算机程序,其特征在于,所述计算机程序被所述处理器执行时,使得所述处理器执行如权利要求1至13中任一项所述的通知提示音处理方法的操作。An electronic device comprising a memory and a processor, wherein a computer program is stored in the memory, characterized in that, when the computer program is executed by the processor, the processor executes any one of claims 1 to 13. One of the operations of the notification sound processing method.
  20. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至13中任一项所述的方法的操作。A computer-readable storage medium on which a computer program is stored, characterized in that, when the computer program is executed by a processor, the operation of the method according to any one of claims 1 to 13 is implemented.
PCT/CN2021/128079 2020-12-21 2021-11-02 Notification prompt tone processing method and apparatus, and electronic device WO2022134869A1 (en)

Applications Claiming Priority (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
CN202011518518.6 2020-12-21

Publications (1)

Publication Number Publication Date
WO2022134869A1 true WO2022134869A1 (en) 2022-06-30

Family

ID=75320743

Family Applications (1)

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

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
CN115550503B (en) * 2021-06-30 2024-04-23 华为技术有限公司 Method and device for generating multiple sound effects, terminal equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103294442A (en) * 2013-06-03 2013-09-11 北京小米科技有限责任公司 Method, device and terminal unit for playing prompt tones
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
US10825330B1 (en) * 2015-12-08 2020-11-03 Massachusetts Mutual Life Insurance Company Notification system for mobile devices
CN112637047A (en) * 2020-12-21 2021-04-09 Oppo广东移动通信有限公司 Notification prompt tone processing method and device and electronic equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103294442A (en) * 2013-06-03 2013-09-11 北京小米科技有限责任公司 Method, device and terminal unit for playing prompt tones
US10825330B1 (en) * 2015-12-08 2020-11-03 Massachusetts Mutual Life Insurance Company Notification system for mobile devices
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
CN112637047A (en) * 2020-12-21 2021-04-09 Oppo广东移动通信有限公司 Notification prompt tone processing method and device and electronic equipment

Also Published As

Publication number Publication date
CN112637047B (en) 2023-01-03
CN112637047A (en) 2021-04-09

Similar Documents

Publication Publication Date Title
WO2022134869A1 (en) Notification prompt tone processing method and apparatus, and electronic device
US10116783B2 (en) Providing and using a media control profile to manipulate various functionality of a mobile communication device
JP4550068B2 (en) System and method for preparing and playing media presentations
US20140121797A1 (en) System and Method for Combining a Song and Non-Song Musical Content
CN107656719B (en) Electronic equipment prompt tone setting method and electronic equipment
KR20170094306A (en) Digital assistant alarm system
CN110430326B (en) Ring editing method and device, mobile terminal and storage medium
CN109428968B (en) Method and device for controlling terminal and storage medium
US20160070702A1 (en) Method and system to enable user related content preferences intelligently on a headphone
WO2014068309A1 (en) Generative scheduling method
AU2014352423B2 (en) Method and device for processing application of mobile terminal
GB2523635A (en) Audio and video synchronizing
US20180096063A1 (en) Audio file acquisition and update notification sending method, device, and system
US20200410967A1 (en) Method for displaying triggered by audio, computer apparatus and storage medium
US20180336915A1 (en) Mechanism and instrumentation for metering conversations
CN108600526A (en) Alarm clock control method and related product
CN108694035A (en) The report management method and device of voice messaging
CN111459370B (en) Song playing control method and device and computer readable storage medium
US20180176274A1 (en) Preset assignments for streaming music players
US9734674B1 (en) Sonification of performance metrics
CN107295391B (en) Data processing method, device, storage medium and electronic equipment
WO2021103906A1 (en) Content distribution method based on playing page, computing device, and computer storage medium
JP2016024236A (en) Musical sound reproduction device, method, and program
CN112019621A (en) Method and equipment for customizing push message
CA3075378A1 (en) Computer implemented method and computer system for customized execution of a media file

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21908870

Country of ref document: EP

Kind code of ref document: A1