[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN108427549B - Method and device for processing sound of notification message, storage medium and terminal - Google Patents

Method and device for processing sound of notification message, storage medium and terminal Download PDF

Info

Publication number
CN108427549B
CN108427549B CN201810294410.XA CN201810294410A CN108427549B CN 108427549 B CN108427549 B CN 108427549B CN 201810294410 A CN201810294410 A CN 201810294410A CN 108427549 B CN108427549 B CN 108427549B
Authority
CN
China
Prior art keywords
audio data
notification
status bar
sound
application program
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201810294410.XA
Other languages
Chinese (zh)
Other versions
CN108427549A (en
Inventor
韦宇杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810294410.XA priority Critical patent/CN108427549B/en
Publication of CN108427549A publication Critical patent/CN108427549A/en
Application granted granted Critical
Publication of CN108427549B publication Critical patent/CN108427549B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/167Audio in a user interface, e.g. using voice commands for navigating, audio feedback
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/542Event management; Broadcasting; Multicasting; Notifications

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the application discloses a method, a device, a storage medium and a terminal for processing sound of notification messages, wherein the method comprises the following steps: when a status bar notification is created, setting the sound attribute of the status bar notification as first audio data, wherein the first audio data is non-default audio data; when the status bar notification is sent, acquiring a target application program corresponding to the status bar notification; setting the sound attribute of the status bar notification as second audio data, wherein the second audio data is audio data corresponding to the target application program; and when the status bar notification is output, the second audio data is played, and before the status bar notification is output, the sound attribute of the status bar is set according to the application program corresponding to the status bar notification, so that the user can modify the playing ring of the status bar notification, and the usability is improved.

Description

Method and device for processing sound of notification message, storage medium and terminal
Technical Field
The embodiment of the application relates to the technical field of mobile terminal application, in particular to a sound processing method and device of a notification message, a storage medium and a terminal.
Background
With the continuous intellectualization of the mobile terminal, more and more application programs are installed in the mobile terminal. From time to time, the application program may send notifications to the user, for example, the instant chat application may display instant messaging information received by the user by way of the notifications, and the user may view the received notifications through the status bar.
In order to distinguish the application program from other application programs, the playing sound of the notification is set in the execution code of the application program, so that the playing ring tone of the notification of each application program is different. However, the editing interface for playing the ring tone notified by the user is not open to the user, so that the user cannot set the playing ring tone notified by the application program, and usability is poor.
Disclosure of Invention
An object of the embodiments of the present application is to provide a method, an apparatus, a storage medium, and a terminal for processing a notification message sound, which can implement user setting of a ring tone played for notification by an application program, and provide usability.
In a first aspect, an embodiment of the present application provides a method for processing a notification message by sound, including:
when a status bar notification is created, setting the sound attribute of the status bar notification as first audio data, wherein the first audio data is non-default audio data;
when the status bar notification is sent, acquiring a target application program corresponding to the status bar notification;
setting the sound attribute of the status bar notification as second audio data, wherein the second audio data is audio data corresponding to the target application program;
playing the second audio data while outputting the status bar notification.
In a second aspect, an embodiment of the present application provides a sound processing apparatus for notifying a message, including:
the system comprises a first sound configuration module, a second sound configuration module and a third sound configuration module, wherein the first sound configuration module is used for setting the sound attribute of a status bar notification as first audio data when the status bar notification is created, and the first audio data is non-default audio data;
the acquisition module is used for acquiring a target application program corresponding to the status bar notification when the status bar notification is sent;
the second sound configuration module is used for setting the sound attribute notified by the status bar as second audio data, and the second audio data is the audio data corresponding to the target application program acquired by the acquisition module;
and the playing module is used for playing the second audio data configured by the second audio configuration module when the status bar notification is output.
In a third aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the sound processing method for a notification message as shown in the first aspect.
In a fourth aspect, an embodiment of the present application provides a terminal, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the sound processing method for notification messages according to the first aspect when executing the computer program.
According to the sound processing scheme of the notification message, firstly, when the status bar notification is created, the sound attribute of the status bar notification is set as first audio data, and the first audio data is non-default audio data; secondly, when the status bar notification is sent out, a target application program corresponding to the status bar notification is obtained; setting the sound attribute notified by the status bar as second audio data, wherein the second audio data is audio data corresponding to the target application program; and finally, when the status bar notification is output, the second audio data is played, so that the sound attribute of the status bar is set according to the application program corresponding to the status bar notification before the status bar notification is output, the user can modify the playing ring tone of the status bar notification, and the usability is improved.
Drawings
Fig. 1 is a flowchart illustrating a method for processing a notification message according to an embodiment of the present application;
fig. 2 is a flowchart illustrating another notification message sound processing method according to an embodiment of the present application;
fig. 3 is a flowchart illustrating another notification message sound processing method according to an embodiment of the present application;
fig. 4 is a flowchart illustrating another notification message sound processing method according to an embodiment of the present application;
fig. 5 is a flowchart illustrating another notification message sound processing method according to an embodiment of the present application;
fig. 6 is a flowchart illustrating another notification message sound processing method according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a sound processing apparatus for notification messages according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application.
Detailed Description
The technical scheme of the application is further explained by the specific implementation mode in combination with the attached drawings. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be further noted that, for the convenience of description, only some of the structures related to the present application are shown in the drawings, not all of the structures.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the steps as a sequential process, many of the steps can be performed in parallel, concurrently or simultaneously. In addition, the order of the steps may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
With the continuous intellectualization of the mobile terminal, more and more application programs are installed in the mobile terminal. From time to time, the application may send notifications to the user, who may view the received notifications through the status bar. For example, instant chat applications (e.g., WeChat, Tencent QQ, viber, Watson's ordinary chat app, etc.) or social applications (Facebook, microblog, etc.) may display messages received by a user by way of status bar notifications. Each application has its own unique notification ring tone to distinguish it from the other applications.
During use, it was found that there were cases: the user installs a plurality of instant messaging applications, and the user does not pay attention to which application program receives the information, but only pays attention to whether the information of the instant messaging is received. At this time, each application plays its own notification ring tone, which may interfere with the judgment of the user. This applies not only to instant messaging applications, but also to other types of applications, such as shopping applications, browser applications, gaming applications, and the like.
In another case, the user dislikes the notification ring tone provided by the application after installing one or more applications, but the user cannot modify the ring tone of the application, which is inconvenient to use.
The sound processing scheme of the notification message provided by the embodiment of the application can provide a modification interface of the notification ring tone for a user, so that the user can set the notification ring tone according to the self requirement. For example, the notification ring tone of the same type of application is set to the same ring tone, etc. The specific scheme is as follows:
fig. 1 is a flowchart illustrating a sound processing method for a notification message according to an embodiment of the present application, where the method is used for modifying a playing ring of a message bar notification of an application, and the method may be executed by a mobile terminal capable of generating and outputting a status bar notification, where the mobile terminal may be a smart phone, a tablet computer, a wearable device (a smart watch or smart glasses), a notebook computer, and the method specifically includes the following steps:
step 110, when creating the status bar notification, setting the sound attribute of the status bar notification as first audio data, where the first audio data is non-default audio data.
The application builds a state notification object by: notification ═ new Notification. After the application establishes the status bar notification object, the SOUND attribute (SOUND), the light attribute (LIGHTS) and the vibration attribute (vibrant) of the status bar notification object are set. Default options may be set, such as:
default | ═ notification.default _ LIGHTS; // setting default notification lights
Default | ═ notification.defiault _ vibrant; // setting default notification shock
The above statements are used to set default lights and default shocks. But the SOUND attribute (SOUND) is not set as a default in the present application but as non-default audio data. Since the default sound properties cannot be subsequently modified if set to default. At this time, the application program can set the sound information as any one of the audio files. For example:
notification.sound=Uri.parse("file:///sdcard/notification/ringer.mp3")
mp3 is a "ringer" file in the notification file in the SD card, and the format of this file is mp 3.
And step 120, when the status bar notification is sent, acquiring the target application program corresponding to the status bar notification.
After generating the status bar notification, the application sends the status bar notification to a notification manager (NotificationManager). The notification manager may provide a notification service (notificationmanageservice) for the user, and the notification service may acquire an application program that creates the status bar notification, that is, a target application program corresponding to the status bar notification. Illustratively, the status bar may be obtained to notify the corresponding target application by: mcontext.getpcackagename (), which returns a string variable (string), which may be newly created to record the result value returned by mcontext.getpcackagename (), for example: string pkg ═ mcontext.
The settings of a status bar notification include the ring tone of the notification, the notification title, the notification content, etc., but no matter how the notification is created, the id of the notification is eventually sent to the NotificationManager. NOTIFICATION of the status bar can be acquired by NOTIFICATION manager. By accessing the notification manager, the notification method can find an initiator (target application) that the notification is, through getheadagenname (), and then modify the first audio data notified by the status bar into the second audio data that is desired to be changed, thereby realizing the setting of the notification ring tone of the status bar.
Step 130, setting the sound attribute of the status bar notification as second audio data.
And the second audio data is the audio data corresponding to the target application program. The user can set the ring tone notified by the status bar of the plurality of applications through one setting interface. The terminal associates the ringtone (second audio data) selected by the user with the application program to form a corresponding relationship between the application program and the second audio data (audio data address), such as a key value pair (application program identifier, second audio data address).
When the target application is acquired in step 120, it is first searched whether the user has set the sound attribute of the target application. And if the setting is carried out, searching second audio data corresponding to the target application program. The address of the second audio data is assigned to the sound attribute of the status bar notification by an assignment statement. And after the assignment is carried out, the first audio data of the sound attribute line notified by the status bar is changed into second audio data, wherein the second audio data is audio data set by a user.
The user may set the ring tone of the status bar notifications for multiple applications of the same type to be the same ring tone. The ring tone may be a ring tone used by any one of the above-mentioned application programs, or a ring tone file or the like introduced by a user through a network or an external device.
Step 140, playing the second audio data when the status bar notification is output.
After the sound attribute notified by the status bar is changed in step 130, when the status bar is output, the second audio data is found according to the sound attribute notified by the status bar, and the second audio data is played.
According to the sound processing method of the notification message provided by the embodiment of the application, firstly, when the status bar notification is created, the sound attribute of the status bar notification is set as first audio data, and the first audio data is non-default audio data. And secondly, when the status bar notification is sent out, acquiring a target application program corresponding to the status bar notification. And setting the sound attribute notified by the status bar as second audio data, wherein the second audio data is the audio data corresponding to the target application program. And finally, when the status bar notification is output, the second audio data is played, so that the sound attribute of the status bar is set according to the application program corresponding to the status bar notification before the status bar notification is output, the user can modify the playing ring tone of the status bar notification, and the usability is improved.
Fig. 2 is a flowchart of a method for processing a notification message by sound according to an embodiment of the present application, which includes, as a further description of the foregoing embodiment:
step 210, when creating the status bar notification, setting the sound attribute of the status bar notification as first audio data, where the first audio data is non-default audio data.
Step 220, when the status bar notification is sent, the target application program corresponding to the status bar notification is acquired.
Step 230, determining whether the target application is a preset application, where the preset application is an application of the ring tone to be adjusted.
Optionally, the application program of the ring tone to be adjusted selected by the user is used as a preset application program. The user may select a plurality of applications as the preset applications from among the applications installed in the terminal.
Optionally, the terminal sorts the applications according to the number and/or frequency of notifications in the status bar corresponding to each application in the recent period (e.g., 1 month or 1 week), preferentially sorts the applications in a descending order, and uses the application with higher number and/or frequency as the preset application. Wherein, the application with higher number and/or frequency is the application with higher number, higher frequency, or both higher number and frequency in the sequence. It should be noted that the above-mentioned higher means an application program arranged N bits before the descending sequence, where N is greater than 2 and less than 10. Further, the application programs with higher quantity and frequency are pushed to the user, and the user can determine the final preset application program.
The preset applications may be stored in a list. The list may be stored using a structure of queues or linked lists. Upon making the determination, each element in the list is compared to the target application in turn. And if the certain element in the list is the same as the target application program, judging that the target application program is the preset application program, otherwise, if all the elements in the list are different from the target application program, judging that the target application program is not the preset application program.
Further, the user may set the second audio data to be null, and cancel the ring tone played in the status bar notification of a certain application program.
Illustratively, the sound information of status bar notifications for WeChat, Facebook (Facebook), and Temple may be configured by:
string pkg ═ mcontext. getpcackagenname (); // obtaining target application initiating notification
if (Pkg. equivalents ("com.ent.mm"))/"com.ent.mm" is the application name of the WeChat
{
Sound 1; v/set Notification Ring for WeChat all being Ring 1
}
else if (pkg.equivalents ("com.facebook. katana"))/"com.facebook. katana" is the application name of facebook
{
Sound 2; v/set Facebook Notification Ring-tone as Ring-tone 2, wherein Ring-tone 2 can also be set as Ring-tone 1 to realize Wechat has the same Ring-tone as Facebook
}
else if (Pkg. equals ("com. tmall. wireless"))// "com. tmall. wireless" is the application name of the Doraemon mall
{
Sound ═ null; v/set the notification ring tone of the Tianmao mall to null, i.e. no sound, to achieve anti-disturb
}
By analogy, the ring tone making of any application can be set, and the customization of the ring tone notification of the status bar is realized.
And 240, if the target application program is a preset application program, searching corresponding second audio data according to the preset application program.
The user presets the corresponding relation between the preset application program and the ring tone, so that the corresponding second audio data can be searched according to the preset application program.
Step 250, setting the sound attribute of the status bar notification as second audio data.
And the second audio data is the audio data corresponding to the target application program.
Step 260, playing the second audio data when the status bar notification is output.
And 270, if the target application program is not the preset application program, playing first audio data corresponding to the target application program.
If the target application is not the preset application, the user is not modified to the status bar notification of the application, and therefore the first audio data is used for playing. If the application sets the sound option of the status bar notification to default, the default audio data is played.
According to the method and the device, the second audio data corresponding to the preset application program set by the user can determine whether to change the ringtone notified by the status bar of the target application program by judging whether the target application program is the preset application program, so that the usability is improved.
Fig. 3 is a flowchart of a method for processing a notification message by sound according to an embodiment of the present application, which includes, as a further description of the foregoing embodiment:
step 310, when the status bar notification is created, setting the sound attribute of the status bar notification as first audio data, where the first audio data is non-default audio data.
And step 320, when the status bar notification is sent, acquiring the target application program corresponding to the status bar notification.
Step 330, receiving the corresponding relation between the status bar notice input by the user and the second audio data. Alternatively, the correspondence between the status bar notification and the second audio data is generated from the machine learning model.
The correspondence of the target application program and the second audio data may be input by a user. The input mode includes that the user selects a certain application program first and then selects second audio data for the application program. Further comprising: the user selects a plurality of applications in sequence and then selects the same second audio data for the plurality of applications.
It is also possible to learn a mapping relationship of at least one application program suitable for using the same certain ringtone through a machine learning model, and then establish a mapping relationship of the second audio data (ringtone) and the at least one application program according to the mapping relationship. The machine learning model is trained by taking as input application installation lists of a plurality of users (e.g., 100 users or 100 users) and ring tone setting information. And then taking the application installation list of the current user as input to obtain ring configuration information.
And 340, setting the sound attribute notified by the status bar as second audio data, wherein the second audio data is audio data corresponding to the target application program.
Step 350, playing the second audio data when the status bar notification is output.
According to the method and the device, the second audio data corresponding to the target application program can be set by the user, the application installation list can be predicted through the machine learning model, the corresponding relation between the application program and the second audio data is obtained, the ringtone setting of the status bar notification is realized more quickly, and the operation efficiency is improved.
Fig. 4 is a flowchart of a method for processing a notification message by sound according to an embodiment of the present application, which includes, as a further description of the foregoing embodiment:
step 410, when creating the status bar notification, setting the sound attribute of the status bar notification as first audio data, wherein the first audio data is non-default audio data.
And step 420, when the status bar notification is sent, acquiring the target application program corresponding to the status bar notification.
Step 430, obtaining the application types of the plurality of application programs.
Step 440, classifying the application types, and setting the sound attributes of the plurality of applications in the same classification as the same audio data.
The applications using the same second audio data may be the same category of applications. The classification may be based on the type of application. Applications may be categorized according to their tags, such as shopping, social interactions, games, instant messaging, fitness, aids, and the like.
Further, the multiple applications in the same category are adjusted according to the adjustment instruction input by the user or the usage record of the applications.
After the classification is obtained, the user may manually modify the application in the classification as well as the second audio data. The modification includes adding and/or deleting an application, and modifying the second audio data.
The classification may be adjusted according to the number of status bar notifications actually received. For example, the instant messaging category includes three applications, application a, application B, and application C, and if only the status bar notification transmitted by application a and application B is received within 1 week, application C is deleted in the category.
Step 450, determining the second audio data according to the application type of the target application program.
Step 460, setting the sound attribute notified by the status bar as second audio data, where the second audio data is audio data corresponding to the target application program.
Step 470, playing the second audio data when the status bar notification is output.
According to the sound processing method for the notification message, the application programs can be classified and the classification can be adjusted according to the types of the application programs, so that the ringtone can be adjusted more accurately, and the adjustment efficiency is improved.
Fig. 5 is a flowchart of a method for processing a notification message by sound according to an embodiment of the present application, which includes, as a further description of the foregoing embodiment:
step 510, when creating the status bar notification, setting the sound attribute of the status bar notification as first audio data, where the first audio data is non-default audio data.
And step 520, when the status bar notification is sent, acquiring the target application program corresponding to the status bar notification.
Step 530, obtaining notification types of status bar notifications corresponding to the plurality of applications.
And 540, classifying the notification types, and setting the sound attributes of the plurality of application programs in the same classification as the same audio data.
The types of status bar notifications may include: chat message prompts, news and events, advertisements, etc. The chat message prompt class includes chat information received by the instant chat application. The news and event classes include event reminders that are strongly relevant to the application, such as congestion messages pushed by a map application and event information pushed by a news application. The advertisement class includes information weakly related to the application program, such as catering information pushed by a map application, application download information pushed by a news application, commodity promotion information pushed by a shopping application, and the like.
Further, the multiple applications in the same category are adjusted according to the adjustment instruction input by the user or the usage record of the applications.
After being classified, the user may manually modify the type of status bar notification in the classification as well as the second audio data. The modification includes adding and/or deleting an application, and modifying the second audio data.
Step 550, determining the second audio data according to the notification type notified by the status bar.
And step 560, setting the sound attribute notified by the status bar as second audio data, where the second audio data is audio data corresponding to the target application program.
Step 570, playing the second audio data when the status bar notification is output.
According to the sound processing method of the notification message, the application programs can be classified and the classification can be adjusted according to the type of the notification of the status bar, so that the ring tone can be adjusted more accurately, and the adjustment efficiency is improved.
Fig. 6 is a flowchart of a method for processing a notification message by sound according to an embodiment of the present application, which includes, as a further description of the foregoing embodiment:
step 610, when creating the status bar notification, setting the sound attribute of the status bar notification as first audio data, where the first audio data is non-default audio data.
And step 620, when the status bar notification is sent, acquiring the target application program corresponding to the status bar notification.
Step 630, setting the sound attribute notified by the status bar as second audio data, where the second audio data is audio data corresponding to the target application program.
In step 640, when the status bar notification is output, the notification content of the status bar notification is acquired.
Step 650, determine whether there is advertisement information in the notification content.
The text information contained in the notification can be acquired, the text information is analyzed, and whether the advertisement information exists in the text information or not is judged.
The text information comprises text information in the title and text information in the notification content. Whether the text information is advertisement information may be determined through semantic analysis. Or obtaining keywords contained in the text information through word segmentation processing, and determining whether the text information is advertisement information according to the keywords.
Step 660, if the advertisement information does not exist in the notification content, playing the second audio data.
Step 670, if the advertisement information exists in the notification content, canceling the playing of the second audio data.
According to the sound processing method for the notification message, when the status bar notification contains the advertisement information, the ring tone of the notification message can be cancelled, so that the advertisement is free from disturbance, and the usability is improved.
Fig. 7 is a schematic structural diagram of a sound processing apparatus for notification messages according to an embodiment of the present application. As shown in fig. 7, the apparatus includes: a first sound configuration module 710, an acquisition module 720, a second sound configuration module 730, and a play module 740.
A first sound configuration module 710, configured to set a sound attribute of a status bar notification as first audio data when the status bar notification is created, where the first audio data is non-default audio data;
an obtaining module 720, configured to obtain a target application corresponding to the status bar notification when the status bar notification is sent;
a second sound configuration module 730, configured to set a sound attribute of the status bar notification to be second audio data, where the second audio data is audio data corresponding to the target application acquired by the acquisition module 720;
a playing module 740, configured to play the second audio data configured by the second audio configuration module 730 when the status bar notification is output.
Further, the second sound configuration module 730 is configured to:
judging whether the target application program is a preset application program, wherein the preset application program is an application program of the ring tone to be adjusted;
if the target application program is a preset application program, searching corresponding second audio data according to the preset application program;
setting a sound attribute of the status bar notification to be the second audio data.
Further, the second sound configuration module 730 is configured to:
receiving a corresponding relation between the status bar notice input by a user and second audio data; or,
and generating the corresponding relation between the status bar notice and the second audio data according to a machine learning model.
Further, the second sound configuration module 730 is configured to:
acquiring application types of a plurality of application programs;
classifying the application types, and setting the sound attributes of a plurality of application programs in the same classification as the same audio data;
and determining second audio data according to the application type of the target application program.
Further, the second sound configuration module 730 is configured to:
acquiring notification types of status bar notifications corresponding to a plurality of application programs;
classifying the notification types, and setting the sound attributes of a plurality of application programs in the same classification as the same audio data;
and determining second audio data according to the notification type notified by the status bar.
Further, the second sound configuration module 730 is configured to:
adjusting a plurality of application programs in the same classification according to an adjusting instruction input by a user or the use record of the application programs;
and setting the adjusted sound attributes of the plurality of application programs as the same audio data.
Further, the playing module 740 is configured to:
when the status bar notification is output, acquiring the notification content of the status bar notification;
judging whether the notification content has advertisement information or not;
and if the advertisement information does not exist in the notification content, playing the second audio data.
In the sound processing apparatus for notification messages provided in the embodiment of the present application, the first sound configuration module 710 firstly sets a sound attribute of a status bar notification as first audio data when the status bar notification is created, where the first audio data is non-default audio data; secondly, when the status bar notification is sent, the obtaining module 720 obtains a target application program corresponding to the status bar notification; thirdly, the second sound configuration module 730 sets the sound attribute notified by the status bar as second audio data, where the second audio data is audio data corresponding to the target application program; finally, the playing module 740 plays the second audio data when outputting the status bar notification, so as to realize that the user can modify the playing ring tone of the status bar notification according to the sound attribute of the status bar set by the application program corresponding to the status bar notification before outputting the status bar notification, thereby improving the usability.
The device can execute the methods provided by all the embodiments of the application, and has corresponding functional modules and beneficial effects for executing the methods. For details of the technology not described in detail in this embodiment, reference may be made to the methods provided in all the foregoing embodiments of the present application.
Fig. 8 is a schematic structural diagram of another terminal device provided in an embodiment of the present application. As shown in fig. 8, the terminal may include: a housing (not shown), a memory 801, a Central Processing Unit (CPU) 802 (also called a processor, hereinafter referred to as CPU), a computer program stored in the memory 801 and operable on the processor 802, a circuit board (not shown), and a power circuit (not shown). The circuit board is arranged in a space enclosed by the shell; the CPU802 and the memory 801 are provided on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the terminal; the memory 801 is used for storing executable program codes; the CPU802 executes a program corresponding to the executable program code by reading the executable program code stored in the memory 801.
The terminal further comprises: peripheral interface 803, RF (Radio Frequency) circuitry 805, audio circuitry 806, speakers 811, power management chip 808, input/output (I/O) subsystem 809, touch screen 812, other input/control devices 810, and external port 804, which communicate over one or more communication buses or signal lines 807.
It should be understood that the illustrated terminal device 800 is merely one example of a terminal, and that the terminal device 800 may have more or fewer components than shown in the figures, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
The following describes in detail a terminal device provided in this embodiment, where the terminal device is a smart phone as an example.
A memory 801, the memory 801 being accessible by the CPU802, the peripheral interface 803, and the like, the memory 801 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other volatile solid state storage devices.
A peripheral interface 803, said peripheral interface 803 allowing input and output peripherals of the device to be connected to the CPU802 and the memory 801.
I/O subsystem 809, which I/O subsystem 809 may connect input and output peripherals on the device, such as touch screen 812 and other input/control devices 810, to peripheral interface 803. The I/O subsystem 809 may include a display controller 8091 and one or more input controllers 8092 for controlling other input/control devices 810. Where one or more input controllers 8092 receive electrical signals from or transmit electrical signals to other input/control devices 810, other input/control devices 810 may include physical buttons (push buttons, rocker buttons, etc.), dials, slide switches, joysticks, click wheels. It is worth noting that the input controller 8092 may be connected to any of the following: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
The touch screen 812 may be a resistive type, a capacitive type, an infrared type, or a surface acoustic wave type, according to the operating principle of the touch screen and the classification of media for transmitting information. The touch screen 812 may be classified by installation method: external hanging, internal or integral. Classified according to technical principles, the touch screen 812 may be: a vector pressure sensing technology touch screen, a resistive technology touch screen, a capacitive technology touch screen, an infrared technology touch screen, or a surface acoustic wave technology touch screen.
A touch screen 812, which touch screen 812 is an input interface and an output interface between the user terminal and the user, displays visual output to the user, which may include graphics, text, icons, video, and the like. Optionally, the touch screen 812 sends an electrical signal (e.g., an electrical signal of the touch surface) triggered by the user on the touch screen to the processor 802.
The display controller 8091 in the I/O subsystem 809 receives electrical signals from the touch screen 812 or sends electrical signals to the touch screen 812. The touch screen 812 detects a contact on the touch screen, and the display controller 8091 converts the detected contact into an interaction with a user interface object displayed on the touch screen 812, that is, implements a human-computer interaction, and the user interface object displayed on the touch screen 812 may be an icon for running a game, an icon networked to a corresponding network, or the like. It is worth mentioning that the device may also comprise a light mouse, which is a touch sensitive surface that does not show visual output, or an extension of the touch sensitive surface formed by the touch screen.
The RF circuit 805 is mainly used to establish communication between the smart speaker and a wireless network (i.e., a network side), and implement data reception and transmission between the smart speaker and the wireless network. Such as sending and receiving short messages, e-mails, etc.
The audio circuit 806 is mainly used to receive audio data from the peripheral interface 803, convert the audio data into an electric signal, and transmit the electric signal to the speaker 811.
Speaker 811 is used to convert the voice signals received by the smart speaker from the wireless network through RF circuit 805 into sound and play the sound to the user.
And the power management chip 808 is used for supplying power and managing power to the hardware connected with the CPU802, the I/O subsystem and the peripheral interface.
In this embodiment, the cpu802 is configured to:
when a status bar notification is created, setting the sound attribute of the status bar notification as first audio data, wherein the first audio data is non-default audio data;
when the status bar notification is sent, acquiring a target application program corresponding to the status bar notification;
setting the sound attribute of the status bar notification as second audio data, wherein the second audio data is audio data corresponding to the target application program;
playing the second audio data while outputting the status bar notification.
Further, the setting of the sound attribute of the status bar notification to be second audio data includes:
judging whether the target application program is a preset application program, wherein the preset application program is an application program of the ring tone to be adjusted;
if the target application program is a preset application program, searching corresponding second audio data according to the preset application program;
setting a sound attribute of the status bar notification to be the second audio data.
Further, before setting the sound attribute of the status bar notification as the second audio data, the method further includes:
receiving a corresponding relation between the status bar notice input by a user and second audio data; or,
and generating the corresponding relation between the status bar notice and the second audio data according to a machine learning model.
Further, before setting the sound attribute of the status bar notification as the second audio data, the method further includes:
acquiring application types of a plurality of application programs;
classifying the application types, and setting the sound attributes of a plurality of application programs in the same classification as the same audio data;
and determining second audio data according to the application type of the target application program.
Further, before setting the sound attribute of the status bar notification as the second audio data, the method further includes:
acquiring notification types of status bar notifications corresponding to a plurality of application programs;
classifying the notification types, and setting the sound attributes of a plurality of application programs in the same classification as the same audio data;
and determining second audio data according to the notification type notified by the status bar.
Further, the setting of the sound attributes of the plurality of applications in the same category as the same audio data includes:
adjusting a plurality of application programs in the same classification according to an adjusting instruction input by a user or the use record of the application programs;
and setting the adjusted sound attributes of the plurality of application programs as the same audio data.
Further, the playing the second audio data while outputting the status bar notification includes:
when the status bar notification is output, acquiring the notification content of the status bar notification;
judging whether the notification content has advertisement information or not;
and if the advertisement information does not exist in the notification content, playing the second audio data.
Embodiments of the present application further provide a storage medium containing terminal device-executable instructions, which when executed by a terminal device processor, are configured to perform a sound processing method for notification messages, the method including:
when a status bar notification is created, setting the sound attribute of the status bar notification as first audio data, wherein the first audio data is non-default audio data;
when the status bar notification is sent, acquiring a target application program corresponding to the status bar notification;
setting the sound attribute of the status bar notification as second audio data, wherein the second audio data is audio data corresponding to the target application program;
playing the second audio data while outputting the status bar notification.
Further, the setting of the sound attribute of the status bar notification to be second audio data includes:
judging whether the target application program is a preset application program, wherein the preset application program is an application program of the ring tone to be adjusted;
if the target application program is a preset application program, searching corresponding second audio data according to the preset application program;
setting a sound attribute of the status bar notification to be the second audio data.
Further, before setting the sound attribute of the status bar notification as the second audio data, the method further includes:
receiving a corresponding relation between the status bar notice input by a user and second audio data; or,
and generating the corresponding relation between the status bar notice and the second audio data according to a machine learning model.
Further, before setting the sound attribute of the status bar notification as the second audio data, the method further includes:
acquiring application types of a plurality of application programs;
classifying the application types, and setting the sound attributes of a plurality of application programs in the same classification as the same audio data;
and determining second audio data according to the application type of the target application program.
Further, before setting the sound attribute of the status bar notification as the second audio data, the method further includes:
acquiring notification types of status bar notifications corresponding to a plurality of application programs;
classifying the notification types, and setting the sound attributes of a plurality of application programs in the same classification as the same audio data;
and determining second audio data according to the notification type notified by the status bar.
Further, the setting of the sound attributes of the plurality of applications in the same category as the same audio data includes:
adjusting a plurality of application programs in the same classification according to an adjusting instruction input by a user or the use record of the application programs;
and setting the adjusted sound attributes of the plurality of application programs as the same audio data.
Further, the playing the second audio data while outputting the status bar notification includes:
when the status bar notification is output, acquiring the notification content of the status bar notification;
judging whether the notification content has advertisement information or not;
and if the advertisement information does not exist in the notification content, playing the second audio data.
The computer storage media of the embodiments of the present application may take any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, or the like, as well as conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
Of course, the storage medium provided in the embodiments of the present application and containing computer-executable instructions is not limited to the above-described application recommendation operation, and may also perform related operations in the application recommendation method provided in any embodiment of the present application.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present application and the technical principles employed. It will be understood by those skilled in the art that the present application is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the application. Therefore, although the present application has been described in more detail with reference to the above embodiments, the present application is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present application, and the scope of the present application is determined by the scope of the appended claims.

Claims (6)

1. A method for voice processing of notification messages, comprising:
when a status bar notification is created, setting the sound attribute of the status bar notification as first audio data, wherein the first audio data is non-default audio data;
when the status bar notification is sent, acquiring a target application program corresponding to the status bar notification;
setting the sound attribute of the status bar notification as second audio data, wherein the second audio data is audio data corresponding to the target application program;
playing the second audio data while outputting the status bar notification;
the playing the second audio data while outputting the status bar notification comprises:
when the status bar notification is output, acquiring text information contained in notification content of the status bar notification, wherein the text information comprises text information in a title and text information in the notification content;
determining whether the text information is the advertisement information or not through semantic analysis, or obtaining keywords contained in the text information through word segmentation processing, and determining whether the text information is the advertisement information or not according to the keywords;
if the text information is not advertisement information, playing the second audio data;
if the text information is advertisement information, canceling to play the second audio data;
before setting the sound attribute of the status bar notification as the second audio data, the method further comprises:
acquiring application types of a plurality of application programs;
classifying the application types, and adjusting a plurality of application programs in the same classification according to an adjusting instruction input by a user; setting the adjusted sound attributes of the plurality of application programs as the same audio data;
determining second audio data according to the application type of the target application program;
or before the setting of the sound attribute of the status bar notification as the second audio data, further comprising:
acquiring notification types of status bar notifications corresponding to a plurality of application programs;
classifying the notification types, and adjusting a plurality of application programs in the same classification according to an adjusting instruction input by a user; setting the adjusted sound attributes of the plurality of application programs as the same audio data;
determining second audio data according to the notification type notified by the status bar; the types of status bar notifications include: chat message prompts, news and events, or advertisements.
2. The sound processing method of a notification message according to claim 1, wherein the setting of the sound attribute of the status bar notification to be second audio data comprises:
judging whether the target application program is a preset application program, wherein the preset application program is an application program of the ring tone to be adjusted;
if the target application program is a preset application program, searching corresponding second audio data according to the preset application program;
setting a sound attribute of the status bar notification to be the second audio data.
3. The sound processing method of a notification message according to claim 1, further comprising, before setting the sound attribute of the status bar notification to be the second audio data:
receiving a corresponding relation between the status bar notice input by a user and second audio data; or,
and generating the corresponding relation between the status bar notice and the second audio data according to a machine learning model.
4. A sound processing apparatus for notifying a message, comprising:
the system comprises a first sound configuration module, a second sound configuration module and a third sound configuration module, wherein the first sound configuration module is used for setting the sound attribute of a status bar notification as first audio data when the status bar notification is created, and the first audio data is non-default audio data;
the acquisition module is used for acquiring a target application program corresponding to the status bar notification when the status bar notification is sent;
the second sound configuration module is used for setting the sound attribute notified by the status bar as second audio data, and the second audio data is the audio data corresponding to the target application program acquired by the acquisition module;
a playing module, configured to play the second audio data configured by the second audio configuration module when the status bar notification is output;
the playing module is used for: when the status bar notification is output, acquiring text information contained in notification content of the status bar notification, wherein the text information comprises text information in a title and text information in the notification content;
determining whether the text information is the advertisement information or not through semantic analysis, or obtaining keywords contained in the text information through word segmentation processing, and determining whether the text information is the advertisement information or not according to the keywords;
if the text information is not advertisement information, playing the second audio data;
if the text information is advertisement information, canceling to play the second audio data;
the second sound configuration module is used for acquiring application types of a plurality of application programs;
classifying the application types, and adjusting a plurality of application programs in the same classification according to an adjusting instruction input by a user; setting the adjusted sound attributes of the plurality of application programs as the same audio data;
determining second audio data according to the application type of the target application program;
the second sound configuration module is to:
acquiring notification types of status bar notifications corresponding to a plurality of application programs;
classifying the notification types, and adjusting a plurality of application programs in the same classification according to an adjusting instruction input by a user; setting the adjusted sound attributes of the plurality of application programs as the same audio data;
determining second audio data according to the notification type notified by the status bar; the types of status bar notifications include: chat message prompts, news and events, or advertisements.
5. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a sound processing method of a notification message according to any one of claims 1 to 3.
6. A terminal comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the sound processing method of a notification message according to any of claims 1-3 when executing the computer program.
CN201810294410.XA 2018-03-30 2018-03-30 Method and device for processing sound of notification message, storage medium and terminal Expired - Fee Related CN108427549B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810294410.XA CN108427549B (en) 2018-03-30 2018-03-30 Method and device for processing sound of notification message, storage medium and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810294410.XA CN108427549B (en) 2018-03-30 2018-03-30 Method and device for processing sound of notification message, storage medium and terminal

Publications (2)

Publication Number Publication Date
CN108427549A CN108427549A (en) 2018-08-21
CN108427549B true CN108427549B (en) 2021-09-28

Family

ID=63160399

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810294410.XA Expired - Fee Related CN108427549B (en) 2018-03-30 2018-03-30 Method and device for processing sound of notification message, storage medium and terminal

Country Status (1)

Country Link
CN (1) CN108427549B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112087543A (en) * 2019-06-14 2020-12-15 青岛海信移动通信技术股份有限公司 Terminal and processing method
CN110430322A (en) * 2019-07-31 2019-11-08 深圳传音控股股份有限公司 A kind of method, medium and the terminal of the information alert based on intelligent terminal
CN112162869A (en) * 2020-09-09 2021-01-01 北京如影智能科技有限公司 Message prompting method and device
CN115604542B (en) * 2021-07-08 2024-10-25 腾讯科技(北京)有限公司 Audio data output method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102572089A (en) * 2010-12-31 2012-07-11 联想(北京)有限公司 Mobile terminal and method for changing prompt tone of mobile terminal
CN102932547A (en) * 2012-11-01 2013-02-13 广东欧珀移动通信有限公司 Method and device for setting message alert tones of applications
CN105847959A (en) * 2016-03-29 2016-08-10 乐视控股(北京)有限公司 Playing method and playing device for application warning tone, and mobile terminal
CN105898032A (en) * 2016-03-24 2016-08-24 北京小米移动软件有限公司 Adjusting method and apparatus for warning tone
CN107122158A (en) * 2017-04-14 2017-09-01 北京小米移动软件有限公司 The method and device of broadcast information prompting audio, electronic equipment
CN107656719A (en) * 2017-09-05 2018-02-02 百度在线网络技术(北京)有限公司 The method to set up and electronic equipment of device for prompt tone of electronic

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8359382B1 (en) * 2010-01-06 2013-01-22 Sprint Communications Company L.P. Personalized integrated audio services
CN103294442B (en) * 2013-06-03 2016-04-13 小米科技有限责任公司 A kind of method of playing alert tones, device and terminal device
CN103593127A (en) * 2013-11-25 2014-02-19 华为终端有限公司 Method for selecting audio output devices and terminal
CN105228109A (en) * 2014-05-30 2016-01-06 中兴通讯股份有限公司 A kind of method of smart message prompting and device
CN105791099A (en) * 2016-04-25 2016-07-20 上海云睦网络科技有限公司 Message prompting method, device and system
CN106126530B (en) * 2016-06-15 2019-01-22 腾讯科技(深圳)有限公司 A kind of message content methods of exhibiting, system and terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102572089A (en) * 2010-12-31 2012-07-11 联想(北京)有限公司 Mobile terminal and method for changing prompt tone of mobile terminal
CN102932547A (en) * 2012-11-01 2013-02-13 广东欧珀移动通信有限公司 Method and device for setting message alert tones of applications
CN105898032A (en) * 2016-03-24 2016-08-24 北京小米移动软件有限公司 Adjusting method and apparatus for warning tone
CN105847959A (en) * 2016-03-29 2016-08-10 乐视控股(北京)有限公司 Playing method and playing device for application warning tone, and mobile terminal
CN107122158A (en) * 2017-04-14 2017-09-01 北京小米移动软件有限公司 The method and device of broadcast information prompting audio, electronic equipment
CN107656719A (en) * 2017-09-05 2018-02-02 百度在线网络技术(北京)有限公司 The method to set up and electronic equipment of device for prompt tone of electronic

Also Published As

Publication number Publication date
CN108427549A (en) 2018-08-21

Similar Documents

Publication Publication Date Title
JP6695092B2 (en) Method for a device to display a user interface and the device
CN108027706B (en) Application interface display method and terminal equipment
US11500507B2 (en) Notification display method and terminal
CN115174733B (en) Interface display method, device and equipment
EP3627311B1 (en) Computer application promotion
JP7138676B2 (en) Method and device for device to display user interface
CN110049456B (en) Method and device for displaying rich media on mobile terminal and mobile terminal
US20140179377A1 (en) Mobile electronic device having program notification function and program notification method thereof
CN108427549B (en) Method and device for processing sound of notification message, storage medium and terminal
CN107181858B (en) Method and terminal for displaying notification message
CN110059273B (en) Method for displaying rich media on mobile terminal and mobile terminal
KR20140143028A (en) Method for operating program and an electronic device thereof
AU2010327453A1 (en) Method and apparatus for providing user interface of portable device
WO2018128677A1 (en) Dynamically generating a subset of actions
CN107844992A (en) comment information processing method, device, terminal device and storage medium
CN108156508B (en) Barrage information processing method and device, mobile terminal, server and system
CN103702297A (en) Short message enhancement method, device and system
US9602652B2 (en) Method for controlling communication setting of mobile terminal and mobile terminal thereof
KR20130073974A (en) Apparatus and methods of extending application services
WO2020186928A1 (en) Data sharing method and apparatus, electronic device and computer-readable storage medium
CN106484479B (en) A kind of management method, device and intelligent terminal for opening application more
GB2558350A (en) Dynamically generating custom sets of application settings
US10241772B1 (en) Recommending substitute applications
CN110431582B (en) Outputting re-interface alerts by a computing device
WO2024109786A1 (en) Instant messaging session information processing method and apparatus, and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210928

CF01 Termination of patent right due to non-payment of annual fee