CN112073294A - Voice playing method and device of notification message, electronic equipment and medium - Google Patents

Voice playing method and device of notification message, electronic equipment and medium Download PDF

Info

Publication number
CN112073294A
CN112073294A CN202010763572.0A CN202010763572A CN112073294A CN 112073294 A CN112073294 A CN 112073294A CN 202010763572 A CN202010763572 A CN 202010763572A CN 112073294 A CN112073294 A CN 112073294A
Authority
CN
China
Prior art keywords
message
voice
notification
type
playing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010763572.0A
Other languages
Chinese (zh)
Other versions
CN112073294B (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.)
Beijing Sankuai Online Technology Co Ltd
Original Assignee
Beijing Sankuai Online Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Sankuai Online Technology Co Ltd filed Critical Beijing Sankuai Online Technology Co Ltd
Priority to CN202010763572.0A priority Critical patent/CN112073294B/en
Publication of CN112073294A publication Critical patent/CN112073294A/en
Application granted granted Critical
Publication of CN112073294B publication Critical patent/CN112073294B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/07User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
    • H04L51/10Multimedia information
    • 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/07User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
    • H04L51/18Commands or executable codes
    • 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/214Monitoring or handling of messages using selective forwarding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • User Interface Of Digital Computer (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the application discloses a voice playing method, a voice playing device, electronic equipment and a storage medium of a notification message, wherein the method comprises the following steps: acquiring a notification message in a text form, and determining the message type of the notification message; correspondingly adding the notification message and the message type into a queue to be played corresponding to the current user; when a broadcast time interval preset by a current user is reached, acquiring a notification message and a message type corresponding to the current user from the queue to be played to obtain at least one notification message and a corresponding message type; converting the at least one notification message into a voice message according to the message type corresponding to the at least one notification message and the splicing prompt corresponding to the message type; and playing the voice message. The embodiment of the application realizes the voice playing of the notification message, so that the content of the notification message can be known even if a user cannot actively read in a production management scene, the user is prevented from missing important messages, and the reach rate of the messages is improved.

Description

Voice playing method and device of notification message, electronic equipment and medium
Technical Field
The embodiment of the application relates to the technical field of internet, in particular to a voice playing method and device of a notification message, electronic equipment and a storage medium.
Background
At present, the message reaching mode of the take-out merchant mainly includes traditional in-station messages, Banner messages (Banner), push messages and the like. The in-station message means that the server sends a message to the merchant terminal and displays the message at a fixed position of the merchant terminal. The banner message means that the server sends a message to the merchant and displays the message in a banner form at the merchant. The push message means that the server sends a message to the merchant terminal, and the merchant terminal can perform vibration or ring alert after receiving the message.
However, in the above manners, the merchant user needs to actively check and read the content of the message to know the content of the message, and the merchant user often cannot actively check and read the message in the production and operation scene, so that the merchant user easily misses part of important messages, that is, the message reach rate is low.
Disclosure of Invention
The embodiment of the application provides a voice playing method and device of a notification message, electronic equipment and a storage medium, which are beneficial to improving the message reach rate and avoiding a user missing an important message.
In order to solve the above problem, in a first aspect, an embodiment of the present application provides a method for playing a notification message in voice, including:
acquiring a notification message in a text form, and determining the message type of the notification message;
correspondingly adding the notification message and the message type into a queue to be played corresponding to the current user;
when a broadcast time interval preset by a current user is reached, acquiring a notification message and a message type corresponding to the current user from the queue to be played to obtain at least one notification message and a corresponding message type;
converting the at least one notification message into a voice message according to the message type corresponding to the at least one notification message and the splicing prompt corresponding to the message type;
and playing the voice message.
In a second aspect, an embodiment of the present application provides a voice playing apparatus for notifying a message, including:
the first message acquisition module is used for acquiring the notification message in a text form and determining the message type of the notification message;
the message caching module is used for correspondingly adding the notification message and the message type to a queue to be played corresponding to the current user;
the second message acquisition module is used for acquiring the notification message and the message type corresponding to the current user from the queue to be played when the preset broadcast time interval of the current user is reached, so as to obtain at least one notification message and the corresponding message type;
the message conversion module is used for converting the at least one notification message into a voice message according to the message type corresponding to the at least one notification message and the splicing prompt corresponding to the message type;
and the message playing module is used for playing the voice message.
In a third aspect, an embodiment of the present application further provides an electronic device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the voice playing method of the notification message according to the first aspect when executing the computer program.
In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the voice playing method for notification messages disclosed in the first aspect.
The method, the device, the electronic device and the storage medium for playing the notification message provided by the embodiment of the application acquire the notification message in the text form and determine the message type of the notification message, correspondingly add the notification message and the message type to the queue to be played corresponding to the current user, acquire the notification message and the message type corresponding to the current user from the queue to be played when the preset broadcast time period of the current user is reached, acquire at least one notification message and the corresponding message type, convert the at least one notification message into the voice message according to the message type corresponding to the at least one notification message and the splicing prompt corresponding to the message type, and play the voice message, thereby realizing the voice playing of the notification message, and further acquiring the content of the notification message even if the user cannot actively read in the production and management scene, and avoiding the user missing important messages, the reach rate of the message is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a flowchart of a voice playing method of a notification message according to a first embodiment of the present application;
fig. 2 is a schematic structural diagram of a voice playing apparatus for notification messages according to a second embodiment of the present application;
fig. 3 is a schematic structural diagram of an electronic device according to a third embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Example one
As shown in fig. 1, a voice playing method for a notification message provided in this embodiment includes: step 110 to step 150.
Step 110, obtaining a notification message in a text form, and determining a message type of the notification message.
The notification message may be generated based on manual editing and configuration, or may be automatically generated based on a preset trigger condition. When the notification message is edited and configured manually, the configuration of information such as a message pattern, a push range, push time, terminal equipment, an application version, reminding intensity and the like is supported. The pushing range comprises multiple dimensions such as cities, categories, distribution modes, merchants and the like, and user-defined pushing dimensions can be added; the push time is the push time of the notification message, and the terminal device is the type of the terminal device receiving the notification message, such as an android device or an IOS device; the application version is the version of the application program that received the notification message; the reminding strength refers to a reminding form after the notification message is sent to the client, and may include weak or strong, and different reminding forms may be used for reminding the notification messages with different reminding strengths, for example, the notification messages with weak reminding strength may be only reminded in a voice playing or displaying form, and the notification messages with strong reminding strength may be simultaneously played and displayed in a voice.
And acquiring the notification message of the manual editing configuration to obtain the notification message in a text form, or generating the notification message in a corresponding text form based on a preset trigger condition. The message type of each notification message is determined when the notification message is generated, so that after the notification message in a text form is acquired, the message type of the notification message can be determined. The message type of the notification message may be, for example, an operation type, a marketing type, an emergency (e.g., epidemic situation, etc.) type, a commodity screening type (e.g., strictly online wildlife, etc.), a fraud alert type, and the like.
And step 120, correspondingly adding the notification message and the message type to a queue to be played corresponding to the current user.
Each user corresponds to one queue to be played, and the queue to be played corresponding to the current user is used for storing the notification message to be played by the current user.
After the notification message in the text form is acquired, the notification message and the message type of the notification message are added to a queue to be played corresponding to the current user, so that the notification message is acquired when a playing time period preset by the current user is reached and is converted into voice for playing.
Step 130, when a broadcast time interval preset by the current user is reached, obtaining the notification message and the message type corresponding to the current user from the queue to be played, and obtaining at least one notification message and the corresponding message type.
The broadcasting time interval is a time interval which is preset by a current user and can be used for voice broadcasting the notification message. Each user can set the announcement time period based on his own needs, for example, breakfast merchant users generally need to receive notification messages about breakfast, and the announcement time period can be set to 7:00-9:00 morning.
The method and the device have the advantages that the opening option and the closing option of the voice broadcasting function of the notification message can be set, and the user can set the opening or closing of the voice broadcasting function of the notification message based on the opening option and the closing option of the voice broadcasting function in the client. Under the condition that the voice broadcasting function is closed, the voice message corresponding to the notification message does not need to be played.
Under the condition that a voice broadcasting function is started, after the notification message and the message type corresponding to the notification message are added into a queue to be played, whether the current time is within a broadcasting time interval preset by a current user is judged, if the current time is within the broadcasting time interval, the notification message and the message type corresponding to the current user are obtained from the queue to be played, and if the current time is not within the broadcasting time interval, the notification message and the message type corresponding to the current user are obtained from the queue to be played when the broadcasting time interval is reached.
Step 140, converting the at least one notification message into a voice message according to the message type corresponding to the at least one notification message and the splicing prompt corresponding to the message type.
When only one notification message exists, the notification message can be directly converted into a voice message, or a welcome word and the like can be spliced in front of the notification message according to a preset splicing prompt word, and a closing word can be spliced behind the notification message. When at least two pieces of notification messages exist, at least two pieces of notification messages to be played are spliced and converted into voice messages according to message types corresponding to the notification messages and preset splicing prompts, so that a target user can distinguish two different pieces of notification messages and can distinguish different message types. For example, the notification messages with the same message type are spliced together, the notification messages with different message types are spliced according to the preset sequence of the message types, a welcome word can be spliced at the forefront of the notification message, a message prompt word can be spliced between two notification messages, an ending word can be spliced at the backmost of the notification messages, and the like. The converted voice message is an audio file, so that the voice message corresponding to the at least one notification message can be played at one time during playing.
In an embodiment of the present application, the converting the at least one notification message into a voice message according to a message type corresponding to the at least one notification message and a concatenation hint corresponding to the message type includes: screening out the notification messages with the message types being preset types from the at least one notification message; and converting the screened notification message into a voice message according to the message type of the screened notification message and the splicing prompt corresponding to the message type.
Wherein the preset type is a predetermined message type to be played.
After at least one notification message corresponding to the current user and the corresponding message type are acquired from the queue to be played, the notification message with the message type being the preset type is screened out from the at least one notification message, the screened notification message is converted into a voice message according to the message type of the screened notification message and the splicing prompt corresponding to the message type, so that the voice message corresponding to the screened notification message is played later, the notification message which is not the preset type in the at least one notification message is abandoned, and the notification message with the preset type is played according to the intention of the user.
In an embodiment of the present application, before the screening out the notification message with the message type being the preset type from the at least one notification message, the method further includes:
acquiring the type of the message to be played, which is preset by the current user, as the preset type; and/or
And determining the message type preferred by the current user as the preset type according to the user portrait information and the historical behavior information of the current user.
The user portrait information may include information such as a category, a city, a sales amount, and an order amount corresponding to the current user. The historical behavior information may be reading behavior information, playing behavior information, etc. of the user on the received notification message.
The current user can preset the message type of the notification message to be played, and after the message type to be played preset by the current user is obtained, the message type to be played is used as the preset type. The method can further determine the message type preferred by the current user according to the user portrait information and the historical behavior information of the current user, for example, if the category corresponding to the current user in the user portrait information is a fragrant pan, the message type preferred by the current user is a fragrant pan, or if the message concerning the marketing type in the historical behavior information is more, the message type preferred by the current user is determined to be the marketing type. In determining the message type preferred by each user, a machine learning method may be specifically used for the determination.
The message type preset by the current user or the message type preferred by the current user and determined according to the user portrait information and the historical behavior information of the current user is used as the preset type, so that the notification message interested by the user can be played, and personalized accurate content pushing can be realized.
In one embodiment of the present application, the method further comprises: when the at least one notification message is converted into a voice message, two adjacent notification messages are converted into voice messages of different sounds.
When the at least one notification message is converted into a voice message according to the message type corresponding to the at least one notification message and the splicing prompt corresponding to the message type, the concatenation prompt can be concatenated and converted into corresponding voice during the conversion of the notification message into a voice message, after a first notification message is converted into a voice message through one sound, a splicing prompt spliced between the first notification message and a second notification message is converted into voice, then another sound is switched to convert the second notification message into the voice message, the splicing prompt spliced between the second notification message and a third notification message is converted into the voice, then a sound is switched to convert the third notification message into the voice message, and the like until all the at least one notification message is converted into the voice message.
When at least one notification message is converted into a voice message, two adjacent notification messages are converted into voice messages with different sounds, so that a user can easily distinguish different messages played before and after playing.
In an embodiment of the present application, the converting the at least one notification message into a voice message according to a message type corresponding to the at least one notification message and a concatenation hint corresponding to the message type includes: splicing the at least one notification message into a text message according to the message type corresponding to the at least one notification message and the splicing prompt corresponding to the message type; converting the text message to a voice message.
The notification messages can be classified according to message types, then the notification messages of the same message type are spliced into a text message according to the splicing prompt words corresponding to the message types, then the text messages of the different message types are spliced into a text message, so that at least one notification message is spliced into a text message, and then the text message is uniformly converted into a voice message. By splicing at least one notification message into one text message and then converting the text message into a voice message, the processing speed can be improved compared with the process of splicing different voice messages.
Step 150, playing the voice message.
After converting at least one notification message into a voice message, a player may be invoked to play the voice message.
In one embodiment of the present application, the method further comprises: and correspondingly displaying the text message in the process of playing the voice message. The text message is correspondingly displayed in the process of playing the voice message, so that the user can clearly and definitely know the message content.
Wherein, the displaying the text message correspondingly in the process of playing the voice message optionally includes: and in the process of playing the voice message, scrolling and displaying the text content corresponding to the currently played voice message in the text message.
In the playing process of the voice message, the text content corresponding to the currently played voice message in the text message can be displayed in a rolling manner, namely the text content of a sentence corresponding to the currently played voice message can be displayed, and the rolling display can be performed only by using a small window, so that the electric quantity is saved.
In an embodiment of the application, the playing the voice message includes: if the instant message is played currently, the voice message is played after the instant message is played; and if the instant message is not played currently, playing the voice message.
The instant message is a message with high real-time requirement, and comprises an order related message, such as receiving a new order.
After converting at least one notification message into a voice message, determining whether the instant message is played currently, and if the instant message is not played currently, calling a player to play the voice message; if the instant message is being played, the player is called to play the voice message after the instant message is played. The instant message is played preferentially when the voice message is played, and the voice message is played after the instant message is played, so that the user can preferentially answer the message with higher real-time requirement.
The voice playing method of the notification message provided by the embodiment of the application obtains the notification message in the form of text, determining the message type of the notification message, correspondingly adding the notification message and the message type into a queue to be played corresponding to the current user, when the broadcast time interval preset by the current user is reached, acquiring the notification message and the message type corresponding to the current user from the queue to be played to obtain at least one notification message and the corresponding message type, converting at least one notification message into a voice message according to the message type corresponding to the at least one notification message and the splicing prompt corresponding to the message type, and playing the voice message to realize voice playing of the notification message, therefore, even if the user can not actively read in the production management scene, the content of the notification message can be obtained, the user is prevented from missing important messages, and the reaching rate of the messages is improved.
On the basis of the technical scheme, the method further comprises the following steps: when a viewing instruction of a history message is received, acquiring the history message corresponding to the current user, and generating a history message list; displaying a history message list, displaying history messages in the history message list, and displaying a reply button corresponding to each history message; when the triggering operation of the answering button is detected, taking the history message corresponding to the answering button as the history message to be played, and converting the history message to be played into a voice message; and playing the voice message corresponding to the historical message to be played.
A viewing operation control of the historical message can be set, when the triggering operation of the viewing operation control is detected, the viewing instruction of the historical message is determined to be received, obtaining the history information corresponding to the current user according to the user identification of the current user, generating a history information list, displaying the history information list, and displaying each history information in the history information list, a reply button is displayed corresponding to each history message, if the current user wants to listen to the voice broadcast of the history message, the reply button can be triggered, when the triggering operation of the replay button is detected, the history message corresponding to the replay button is used as the history message to be played, the history message to be played is converted into the voice message, the player is called to play the voice message corresponding to the history message to be played, the replay and the replay of the history message are achieved, and the problem that the history message cannot be replayed in the prior art is solved.
On the basis of the technical scheme, the method further comprises the following steps: in the process of playing the voice message corresponding to the historical message to be played, if a previous instruction or a next instruction is received, converting the previous message or the next message into the voice message; and playing the voice message corresponding to the previous message or the next message.
In the process of playing the voice message corresponding to the history message to be played, the user can switch to play different voice messages to listen to the voice message of the previous message or the next message, if the previous instruction or the next instruction is received, the previous message or the next message of the history message to be played is converted into the voice message, and the player is called to play the voice message corresponding to the previous message or the next message, so that the purpose of switching to play the message in the playing process of the history message is achieved.
On the basis of the technical scheme, the method further comprises the following steps: in the process of playing the voice message, if a pause instruction is received, pausing the playing of the voice message and recording the pause time point of the voice message; and after receiving a play continuing instruction, continuing to play the voice message from the pause time point.
In the process of playing the voice message, if the current user does not have time to listen to or has important things to do, the pause button can be clicked, the electronic device pauses playing the voice message when receiving a pause instruction, records the pause time point of the voice message, and continues playing the voice message from the pause time point after receiving a play continuation instruction. The pause and the continuous playing are realized according to the instruction of the user in the playing process of the voice message.
On the basis of the technical scheme, the method further comprises the following steps: and in the process of playing the voice message, if a closing instruction is received, stopping playing the voice message.
In the process of playing the voice message, if the user does not want to listen to the voice message, the user can operate the close button, the electronic device detects that the user operates the close button, determines that a close instruction is received, and then stops playing the voice message.
Example two
As shown in fig. 2, a voice playing apparatus 200 for a notification message provided in this embodiment is applied to a server, and includes:
a first message obtaining module 210, configured to obtain a notification message in a text form, and determine a message type of the notification message;
the message caching module 220 is configured to correspondingly add the notification message and the message type to a queue to be played corresponding to the current user;
a second message obtaining module 230, configured to obtain, when a broadcast period preset by a current user is reached, a notification message and a message type corresponding to the current user from the queue to be played, to obtain at least one notification message and a corresponding message type;
a message conversion module 240, configured to convert the at least one notification message into a voice message according to a message type corresponding to the at least one notification message and a splicing prompt corresponding to the message type;
a message playing module 250, configured to play the voice message.
Optionally, the message conversion module includes:
the message screening unit is used for screening out the notification messages with the message types being preset types from the at least one notification message;
and the message conversion unit is used for converting the screened notification messages into voice messages according to the message types of the screened notification messages and the splicing prompts corresponding to the message types.
Optionally, the apparatus further comprises:
a preset type obtaining module, configured to obtain a type of the message to be played, which is preset by the current user, as the preset type; and/or determining the message type preferred by the current user as the preset type according to the user portrait information and the historical behavior information of the current user.
Optionally, the apparatus further comprises:
and the sound distinguishing and converting module is used for converting two adjacent notification messages into the voice messages with different sounds when the at least one notification message is converted into the voice message.
Optionally, the message conversion module includes:
the message splicing module is used for splicing the at least one notification message into one text message according to the message type corresponding to the at least one notification message and the splicing prompt corresponding to the message type;
and the message conversion module is used for converting the text message into a voice message.
Optionally, the apparatus further comprises:
and the message display module is used for correspondingly displaying the text message in the process of playing the voice message.
Optionally, the message display module is specifically configured to:
and in the process of playing the voice message, scrolling and displaying the text content corresponding to the currently played voice message in the text message.
Optionally, the apparatus further comprises:
the historical message acquisition module is used for acquiring the historical message corresponding to the current user and generating a historical message list when a viewing instruction of the historical message is received;
the history message display module is used for displaying a history message list, displaying history messages in the history message list and displaying a reply button corresponding to each history message;
the first history message conversion module is used for taking the history message corresponding to the listen-back button as the history message to be played and converting the history message to be played into a voice message when the trigger operation of the listen-back button is detected;
and the historical message playing module is used for playing the voice message corresponding to the historical message to be played.
Optionally, the apparatus further comprises:
the second historical message conversion module is used for converting the previous message or the next message into the voice message if the previous instruction or the next instruction is received in the process of playing the voice message corresponding to the historical message to be played;
and the message switching and playing module is used for playing the voice message corresponding to the previous message or the next message.
Optionally, the message playing module is specifically configured to:
if the instant message is played currently, the voice message is played after the instant message is played;
and if the instant message is not played currently, playing the voice message.
Optionally, the apparatus further comprises:
the pause playing module is used for pausing the playing of the voice message and recording the pause time point of the voice message if a pause instruction is received in the process of playing the voice message;
and the continuous playing module is used for continuously playing the voice message from the pause time point after receiving a continuous playing instruction.
Optionally, the apparatus further comprises:
and the playing stopping module is used for stopping playing the voice message if a closing instruction is received in the process of playing the voice message.
The voice playing device for notification messages provided in the embodiment of the present application is configured to implement each step of the voice playing method for notification messages described in the first embodiment of the present application, and specific implementation manners of each module of the device refer to the corresponding step, which is not described herein again.
The voice playing device for notification messages, provided by the embodiment of the application, acquires a notification message in a text form through a first message acquisition module, and determines a message type of the notification message, a message cache module correspondingly adds the notification message and the message type to a queue to be played corresponding to a current user, a second message acquisition module acquires the notification message and the message type corresponding to the current user from the queue to be played when a broadcast period preset by the current user is reached, so as to obtain at least one notification message and a corresponding message type, a message conversion module converts at least one notification message into a voice message according to the message type corresponding to at least one notification message and a splicing prompt corresponding to the message type, and a message playing module plays the voice message, so that voice playing of the notification message is realized, and even if a user cannot actively read the content of the notification message in a production scene, the method and the device avoid the user missing important messages and improve the reach rate of the messages.
EXAMPLE III
Embodiments of the present application also provide an electronic device, as shown in fig. 3, the electronic device 300 may include one or more processors 310 and one or more memories 320 connected to the processors 310. Electronic device 300 may also include input interface 330 and output interface 340 for communicating with another apparatus or system. Program code executed by processor 310 may be stored in memory 320.
The processor 310 in the electronic device 300 calls the program code stored in the memory 320 to perform the voice playing method of the notification message in the above-described embodiment.
The above elements in the above electronic device may be connected to each other by a bus, such as one of a data bus, an address bus, a control bus, an expansion bus, and a local bus, or any combination thereof.
Embodiments of the present application also provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the voice playing method for notification messages according to embodiments of the present application.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The above detailed description is given to a voice playing method, an apparatus, an electronic device, and a storage medium for notification messages provided in the embodiments of the present application, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the above embodiments is only used to help understanding the method and the core idea of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.

Claims (15)

1. A voice playing method of a notification message is characterized by comprising the following steps:
acquiring a notification message in a text form, and determining the message type of the notification message;
correspondingly adding the notification message and the message type into a queue to be played corresponding to the current user;
when a broadcast time interval preset by a current user is reached, acquiring a notification message and a message type corresponding to the current user from the queue to be played to obtain at least one notification message and a corresponding message type;
converting the at least one notification message into a voice message according to the message type corresponding to the at least one notification message and the splicing prompt corresponding to the message type;
and playing the voice message.
2. The method of claim 1, wherein converting the at least one notification message into a voice message according to a message type corresponding to the at least one notification message and a concatenation prompt corresponding to the message type comprises:
screening out the notification messages with the message types being preset types from the at least one notification message;
and converting the screened notification message into a voice message according to the message type of the screened notification message and the splicing prompt corresponding to the message type.
3. The method according to claim 2, further comprising, before said screening out the notification messages with the message type of the preset type from the at least one notification message:
acquiring the type of the message to be played, which is preset by the current user, as the preset type; and/or
And determining the message type preferred by the current user as the preset type according to the user portrait information and the historical behavior information of the current user.
4. The method of claim 1, further comprising:
when the at least one notification message is converted into a voice message, two adjacent notification messages are converted into voice messages of different sounds.
5. The method of claim 1, wherein converting the at least one notification message into a voice message according to a message type corresponding to the at least one notification message and a concatenation prompt corresponding to the message type comprises:
splicing the at least one notification message into a text message according to the message type corresponding to the at least one notification message and the splicing prompt corresponding to the message type;
converting the text message to a voice message.
6. The method of claim 5, further comprising:
and correspondingly displaying the text message in the process of playing the voice message.
7. The method of claim 5, wherein the displaying the text message during the playing of the voice message comprises:
and in the process of playing the voice message, scrolling and displaying the text content corresponding to the currently played voice message in the text message.
8. The method of claim 1, further comprising:
when a viewing instruction of a history message is received, acquiring the history message corresponding to the current user, and generating a history message list;
displaying a history message list, displaying history messages in the history message list, and displaying a reply button corresponding to each history message;
when the triggering operation of the answering button is detected, taking the history message corresponding to the answering button as the history message to be played, and converting the history message to be played into a voice message;
and playing the voice message corresponding to the historical message to be played.
9. The method of claim 8, further comprising:
in the process of playing the voice message corresponding to the historical message to be played, if a previous instruction or a next instruction is received, converting the previous message or the next message into the voice message;
and playing the voice message corresponding to the previous message or the next message.
10. The method of claim 1, wherein the playing the voice message comprises:
if the instant message is played currently, the voice message is played after the instant message is played;
and if the instant message is not played currently, playing the voice message.
11. The method of claim 1, further comprising:
in the process of playing the voice message, if a pause instruction is received, pausing the playing of the voice message and recording the pause time point of the voice message;
and after receiving a play continuing instruction, continuing to play the voice message from the pause time point.
12. The method of claim 1, further comprising:
and in the process of playing the voice message, if a closing instruction is received, stopping playing the voice message.
13. A voice playback apparatus for notification messages, comprising:
the first message acquisition module is used for acquiring the notification message in a text form and determining the message type of the notification message;
the message caching module is used for correspondingly adding the notification message and the message type to a queue to be played corresponding to the current user;
the second message acquisition module is used for acquiring the notification message and the message type corresponding to the current user from the queue to be played when the preset broadcast time interval of the current user is reached, so as to obtain at least one notification message and the corresponding message type;
the message conversion module is used for converting the at least one notification message into a voice message according to the message type corresponding to the at least one notification message and the splicing prompt corresponding to the message type;
and the message playing module is used for playing the voice message.
14. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the voice playing method of a notification message according to any one of claims 1 to 12 when executing the computer program.
15. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, carries out the steps of the method of voice playing of a notification message according to any one of claims 1 to 12.
CN202010763572.0A 2020-07-31 2020-07-31 Voice playing method and device of notification message, electronic equipment and medium Active CN112073294B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010763572.0A CN112073294B (en) 2020-07-31 2020-07-31 Voice playing method and device of notification message, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010763572.0A CN112073294B (en) 2020-07-31 2020-07-31 Voice playing method and device of notification message, electronic equipment and medium

Publications (2)

Publication Number Publication Date
CN112073294A true CN112073294A (en) 2020-12-11
CN112073294B CN112073294B (en) 2023-01-17

Family

ID=73657022

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010763572.0A Active CN112073294B (en) 2020-07-31 2020-07-31 Voice playing method and device of notification message, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN112073294B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112989103A (en) * 2021-05-20 2021-06-18 广州朗国电子科技有限公司 Message playing method, device and storage medium
CN113364669A (en) * 2021-06-02 2021-09-07 中国工商银行股份有限公司 Message processing method and device, electronic equipment and medium
CN113434309A (en) * 2021-06-23 2021-09-24 东风汽车有限公司东风日产乘用车公司 Message broadcasting method, device and storage medium
CN113489833A (en) * 2021-06-29 2021-10-08 维沃移动通信有限公司 Information broadcasting method, device, equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1816173A (en) * 2005-02-05 2006-08-09 华为技术有限公司 Method for integrating short-message to be transmitted
CN101136873A (en) * 2006-08-31 2008-03-05 腾讯科技(深圳)有限公司 Method and system for transmitting advertisement to users on instant communication platform
CN105141496A (en) * 2014-05-29 2015-12-09 腾讯科技(深圳)有限公司 Instant communication message playback method and device
CN105827516A (en) * 2016-05-09 2016-08-03 腾讯科技(深圳)有限公司 Message processing method and device
CN106357509A (en) * 2016-08-31 2017-01-25 维沃移动通信有限公司 Method for checking received messages and mobile terminal
CN108629045A (en) * 2018-05-14 2018-10-09 平安科技(深圳)有限公司 A kind of information push method, storage medium and server
CN109147831A (en) * 2018-09-26 2019-01-04 深圳壹账通智能科技有限公司 A kind of voice connection playback method, terminal device and computer readable storage medium
CN109728994A (en) * 2017-10-27 2019-05-07 腾讯科技(深圳)有限公司 Call method, device and computer readable storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1816173A (en) * 2005-02-05 2006-08-09 华为技术有限公司 Method for integrating short-message to be transmitted
CN101136873A (en) * 2006-08-31 2008-03-05 腾讯科技(深圳)有限公司 Method and system for transmitting advertisement to users on instant communication platform
CN105141496A (en) * 2014-05-29 2015-12-09 腾讯科技(深圳)有限公司 Instant communication message playback method and device
CN105827516A (en) * 2016-05-09 2016-08-03 腾讯科技(深圳)有限公司 Message processing method and device
CN106357509A (en) * 2016-08-31 2017-01-25 维沃移动通信有限公司 Method for checking received messages and mobile terminal
CN109728994A (en) * 2017-10-27 2019-05-07 腾讯科技(深圳)有限公司 Call method, device and computer readable storage medium
CN108629045A (en) * 2018-05-14 2018-10-09 平安科技(深圳)有限公司 A kind of information push method, storage medium and server
CN109147831A (en) * 2018-09-26 2019-01-04 深圳壹账通智能科技有限公司 A kind of voice connection playback method, terminal device and computer readable storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112989103A (en) * 2021-05-20 2021-06-18 广州朗国电子科技有限公司 Message playing method, device and storage medium
CN113364669A (en) * 2021-06-02 2021-09-07 中国工商银行股份有限公司 Message processing method and device, electronic equipment and medium
CN113434309A (en) * 2021-06-23 2021-09-24 东风汽车有限公司东风日产乘用车公司 Message broadcasting method, device and storage medium
CN113489833A (en) * 2021-06-29 2021-10-08 维沃移动通信有限公司 Information broadcasting method, device, equipment and storage medium
CN113489833B (en) * 2021-06-29 2022-11-04 维沃移动通信有限公司 Information broadcasting method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN112073294B (en) 2023-01-17

Similar Documents

Publication Publication Date Title
CN112073294B (en) Voice playing method and device of notification message, electronic equipment and medium
CN111817943B (en) Data processing method and device based on instant messaging application
CN111935554B (en) Live information processing method, device, equipment and computer readable storage medium
CN108847214B (en) Voice processing method, client, device, terminal, server and storage medium
CN104038473B (en) For intercutting the method, apparatus of audio advertisement, equipment and system
CN106059904B (en) Method and system for scoring live broadcast songs based on instant messaging software
CN109474562B (en) Display method and device of identifier, and response method and device of request
CN115329206B (en) Voice outbound processing method and related device
CN111629253A (en) Video processing method and device, computer readable storage medium and electronic equipment
CN109831690A (en) It has been shown that, sending method, device, terminal and the server of barrage message
US20200243085A1 (en) Voice Processing Method, Apparatus and Device
CN108696763A (en) Advertisement broadcast method and device
CN111294606A (en) Live broadcast processing method and device, live broadcast client and medium
CN110943908A (en) Voice message sending method, electronic device and medium
CN112073740A (en) Information display method, device, server and storage medium
CN110601962B (en) Message prompting method, device, terminal and storage medium
CN110536147A (en) The method, apparatus and system of processing is broadcast live
KR100641754B1 (en) Method of providing user's message for broadcasting equipment and apparatus thereof
CN113691762A (en) Data transmission method and device for video conference and computer readable storage medium
US20140006167A1 (en) Systems and methods for integrating advertisements with messages in mobile communication devices
WO2008004844A1 (en) Method and system for providing voice analysis service, and apparatus therefor
CN112565913B (en) Video call method and device and electronic equipment
CN111309935B (en) Song recommendation method and device and computer storage medium
CN108052578B (en) Method and apparatus for information processing
CN114095745A (en) Live broadcast interaction method and device, computer storage medium and electronic equipment

Legal Events

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