CN107465595B - Equipment message playing control method and device, message playing equipment and storage medium - Google Patents

Equipment message playing control method and device, message playing equipment and storage medium Download PDF

Info

Publication number
CN107465595B
CN107465595B CN201710612872.7A CN201710612872A CN107465595B CN 107465595 B CN107465595 B CN 107465595B CN 201710612872 A CN201710612872 A CN 201710612872A CN 107465595 B CN107465595 B CN 107465595B
Authority
CN
China
Prior art keywords
message
played
playing
queue
playing device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710612872.7A
Other languages
Chinese (zh)
Other versions
CN107465595A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201710612872.7A priority Critical patent/CN107465595B/en
Publication of CN107465595A publication Critical patent/CN107465595A/en
Application granted granted Critical
Publication of CN107465595B publication Critical patent/CN107465595B/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/18Commands or executable codes
    • 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/162Interface to dedicated audio devices, e.g. audio drivers, interface to CODECs
    • 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/165Management of the audio stream, e.g. setting of volume, audio stream path
    • 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/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/046Interoperability with other network applications or services

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Health & Medical Sciences (AREA)
  • Multimedia (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Information Transfer Between Computers (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention discloses a device message playing control method and device, message playing equipment and a storage medium, and belongs to the technical field of internet information processing. The method comprises the following steps: receiving a message to be processed, wherein the message to be processed is a message to be played or a notification message for indicating the message to be played; detecting a current time point of receiving the message to be processed; determining a first time period; inquiring whether a control record aiming at the equipment is recorded in the first time period adjacent to the current time point or not, and obtaining an inquiry result; and playing the message to be played or playing the notification message according to the query result. Because the message playing device can determine whether the message has interacted with the user recently according to the query result and further determine whether the user is convenient to listen to the message currently, the user can be ensured to listen to the message in time when the message is played according to the query result, and the flexibility of the message playing control method is higher.

Description

Equipment message playing control method and device, message playing equipment and storage medium
Technical Field
The present invention relates to the field of internet information processing technologies, and in particular, to a method and an apparatus for controlling playback of a device message, a message playback device, and a storage medium.
Background
With the rapid development of the mobile internet technology, the functions of the sound box are more and more abundant. For example, the current speaker may establish a connection with the terminal and play an audio file stored in the terminal, and may also establish a communication connection with an instant messaging client in the terminal and play a voice message received by the instant messaging client.
In the related art, after the instant messaging client establishes communication connection with the sound box, the received voice message can be pushed to the sound box, and the sound box can directly play the voice message so as to be listened by a user.
However, if the speaker is not near when playing the voice message, the user cannot hear the voice message, and the flexibility of the message playing control method is low.
Disclosure of Invention
In order to solve the problem of low flexibility of a message playing control method in the related art, the invention provides a device message playing control method, a device, message playing equipment and a storage medium. The technical scheme is as follows:
in a first aspect, a device message play control method is provided, where the method includes:
receiving a message to be processed, wherein the message to be processed is a message to be played or a notification message for indicating the message to be played;
detecting a current time point of receiving the message to be processed;
determining a first time period;
inquiring whether a control record aiming at the equipment is recorded in the first time period adjacent to the current time point or not, and obtaining an inquiry result;
and playing the message to be played or playing the notification message according to the query result.
In a second aspect, an apparatus for controlling device message playing is provided, the apparatus comprising:
the device comprises a receiving module, a playing module and a processing module, wherein the receiving module is used for receiving a message to be processed, and the message to be processed is a message to be played or a notification message for indicating the message to be played;
the detection module is used for detecting the current time point of the received message to be processed;
a determining module for determining a first time period;
the query module is used for querying whether a control record for the equipment is recorded in the first time period adjacent to the current time point and obtaining a query result;
and the first playing module is used for playing the message to be played or the notification message according to the query result.
In a third aspect, there is provided a message playing device comprising a processor and a memory, the memory having stored therein at least one instruction, at least one program, set of codes, or set of instructions, which is loaded and executed by the processor to implement the device message playing control method according to the first aspect.
In a fourth aspect, there is provided a computer-readable storage medium having at least one instruction, at least one program, a set of codes, or a set of instructions stored therein, the at least one instruction, the at least one program, the set of codes, or the set of instructions being loaded and executed by the processor to implement the device message play control method according to the first aspect.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
the invention provides a device message playing control method, a device, a message playing device and a storage medium, wherein when receiving a message to be played or a notification message, the message playing device can inquire whether a control record for the device is recorded in an adjacent first time period before the current time point, and play the message to be played or the notification message according to the inquiry result. Because the message playing device can determine whether the message playing device has interacted with the user recently according to the query result and further can determine whether the user is convenient to listen to the message currently, the user can be ensured to listen to the message in time when the message is played according to the query result, and the flexibility of the message playing control method is higher.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1-1 is a schematic diagram of an application scenario related to a device message play control method according to an embodiment of the present invention;
fig. 1-2 is a flowchart of a device message play control method according to an embodiment of the present invention;
fig. 2 is a flowchart of another device message playing control method according to an embodiment of the present invention;
fig. 3 is a flowchart of a method for playing a message to be played according to an embodiment of the present invention;
fig. 4 is a flowchart of another method for playing a message to be played according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a message queue according to an embodiment of the present invention;
FIG. 6 is a diagram of another message queue provided by an embodiment of the present invention;
FIG. 7 is a diagram illustrating a plurality of message queues according to an embodiment of the present invention;
fig. 8 is a schematic diagram illustrating a message to be played being inserted into an unread sub-queue according to an embodiment of the present invention;
fig. 9 is a flowchart of a further device message playing control method according to an embodiment of the present invention;
fig. 10 is a flowchart of a method for responding to a play control command according to an embodiment of the present invention;
FIG. 11 is a diagram illustrating a message box according to an embodiment of the present invention;
fig. 12 is a flowchart of a further method for controlling message playing of a device according to an embodiment of the present invention;
fig. 13 is a schematic structural diagram of a device message play control apparatus according to an embodiment of the present invention;
fig. 14 is a schematic structural diagram of another device message play control apparatus according to an embodiment of the present invention;
fig. 15 is a schematic structural diagram of a message playing device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
Referring to fig. 1-1, a schematic diagram of an application scenario related to a device message play control method according to an embodiment of the present invention is shown. Referring to fig. 1-1, the application scenario may include a message playing device 01, a message playing server 02, an instant messaging server 03, and a terminal 04. The message playing device 01 may be a device with a multimedia playing function, such as a sound box or a voice robot. The instant messaging client can be installed in the terminal 04, and the terminal 04 can be a smart phone, a computer, an e-reader or a wearable device with a network connection function. Each of the message playing server 02 and the instant messaging server 03 may be a server, a server cluster composed of a plurality of servers, or a cloud computing service center. Communication connections can be established between the message playing device 01 and the message playing server 02, between the message playing server 02 and the instant messaging server 03, between the instant messaging server 03 and the terminal 04, and between the terminal 04 and the message playing device 01 through a wireless network or a wired network.
On one hand, the instant messaging server 03 can send the received instant messaging message to the terminal 04 and the message playing server 02 at the same time, and the message playing server 02 can forward the instant messaging message to the message playing device 01 for the message playing device 01 to play; on the other hand, the instant messaging server 03 may send the received instant messaging message to the terminal 04, and the terminal 04 may forward the instant messaging message to the message playing device 01 again for the message playing device 01 to play.
It should be noted that the message playing device 01 may receive, in addition to the instant messaging message, other types of messages, for example, notification messages such as short messages, incoming call reminders, system updates, and application updates sent by the terminal 04, or messages sent by other clients, for example, news sent by a news client, or messages and comments sent by a social client.
Fig. 1-2 are flowcharts of a device message play control method according to an embodiment of the present invention. The method can be applied to the message playing device 01 shown in fig. 1-1. Referring to fig. 1-2, the method may include:
step 101, receiving a message to be processed.
In the embodiment of the present invention, the message to be processed may be a message to be played, or may also be a notification message for indicating a message to be played. The message to be processed may be sent by the terminal, or may be sent by the message playing server.
Step 102, detecting the current time point of receiving the message to be processed.
After receiving the message to be processed, the message playing device can detect the current time point in time so as to judge whether to play the message to be processed.
Step 103, determining a first time period.
In the embodiment of the present invention, the first time period may be a short time period preset in the message playing device, for example, one minute. Alternatively, the first time period may be set autonomously by the user. Or, the first time period may also be dynamically adjusted by the message playing device, for example, the message playing device may dynamically adjust the first time period according to the frequency of the user operating the message playing device within the preset time period every preset time period, and the first time period is inversely related to the frequency of the user operating the message playing device, that is, the higher the frequency of the user operating the message playing device is, the shorter the first time period is. The using habit of the user can be accurately reflected according to the length of the first time period after the frequency of the user control device is dynamically adjusted, so that whether the user is convenient to listen to the message or not can be accurately reflected according to the query result determined by the control record query of the first time period, and the flexibility and the accuracy in the message playing control process can be further improved.
For example, assuming that the message playing device adjusts the first time period once every month, if the message playing device detects that the frequency of the user operating the message device in the month is higher than the operating frequency in the previous month, the message playing device may shorten the first time period, for example, the first time period may be adjusted from one minute to 50 seconds.
And 104, inquiring whether a control record aiming at the message playing equipment is recorded in the first time period adjacent to the current time point or not, and obtaining an inquiry result.
In order to ensure that the user timely listens to the message to be played, the message playing device may query the control record, so as to determine whether the user is currently nearby according to the control record, and further determine whether the user is currently convenient to listen to the message.
And 105, playing the message to be played or playing the notification message according to the query result.
When the query result is that a control record for the message playing device is recorded in a first time period adjacent to the current time point, the message playing device may determine that the user may be currently nearby, that is, the user may currently hear the message. Therefore, in order to ensure the timeliness of message playing, the message playing device can play the message to be played or play the notification message.
In summary, the present invention provides a device message playing control method, in which a message playing device can determine whether a user has interacted with the device recently according to an inquiry result, and further determine whether the user is currently convenient to listen to the message, so that when playing a message according to the inquiry result, the user can be ensured to listen to the message in time, and the flexibility of the message playing control method is high.
Fig. 2 is a flowchart of another device message play control method according to an embodiment of the present invention. The method can be applied to the message playing device 01 shown in fig. 1-1. Referring to fig. 2, the method may specifically include:
step 201, when receiving a message to be played, detecting whether a message being played exists in a message playing device.
In the embodiment of the present invention, when the terminal 04 or the message playing server 02 obtains the message to be played, the message to be played may be directly pushed to the message playing device 01. After the message playing device 01 receives the message to be played through the preset message interface, in order to ensure that the user normally receives the message to be played, it may first detect whether a message being played exists in the message playing device, that is, detect whether the current working state of the message playing device is the playing state. When there is no message being played in the message playing device, step 202 may be executed; step 208 may be performed when there is a message being played in the message playing device.
For example, suppose that the terminal 04 establishes a communication connection with the message playing device 01, two instant messaging clients a and B are installed in the terminal 04, and the user is currently chatting with the friend a1 using the client a. If the friend a1 sends a voice message "there is a room at night, having a meal bar together" to the a client in the terminal 04 through the a client installed in another terminal, the a client installed in the terminal 04 may receive the voice message through the instant messaging server, and may directly send the voice message to the message playing device 01. After receiving the voice message, the message playing device 01 may determine that there is no message currently being played if it is detected that it is currently in the standby state, and execute step 202.
Step 202, detecting the current time point of receiving the message to be played. Step 203 is performed.
In the embodiment of the present invention, if there is no message being played in the message playing device, that is, the message playing device is not in the playing state, the message playing device does not determine whether the current user is convenient to listen to the message, and in order to further determine whether the message to be played needs to be played, the message playing device may first detect the current time point at which the message to be played is received.
Step 203, determining a first time period. Step 204 is performed.
In the embodiment of the present invention, the first time period may be a short time period preset in the message playing device, for example, one minute. Alternatively, the first time period may be set autonomously by the user. Still alternatively, the first time period may also be dynamically adjusted by the message playing device, for example, when the message playing device detects that the frequency of the user operating the message playing device is increased, the first time period may be shortened; the first time period may be extended when the message playing device detects that the frequency with which the user manipulates the message playing device decreases. The using habit of the user can be accurately reflected according to the length of the first time period after the frequency of the user operation device is dynamically adjusted, so that whether the user is convenient to listen to the message or not can be accurately reflected according to the query result determined by the first time period, the control record query and the query, and the flexibility and the accuracy in the message playing control process can be further improved.
Step 204, inquiring whether a control record aiming at the message playing device is recorded in a first time period adjacent to the current time point.
The control record is recorded by the message playing device when a control instruction triggered by a user is received. The control instruction may be any instruction triggered by a user through operations such as voice, touch, key pressing, or gesture, and used for controlling the message playing device. If the query result obtained by the message playing device after querying the control record is: if a control instruction for the message playing device is recorded in a first time period adjacent to the current time point, the message playing device may determine that the message playing device has interacted with the user recently, and the user can currently listen to the message to be played, so step 205 may be executed; if the query result is: if no control record for the message playing device is recorded in the first time period adjacent to the current time point, the message playing device may determine that there is no recent interaction with the user, and the user may not be able to listen to the message to be played currently, so as to avoid the user missing to listen to the message to be played, the message playing device may perform step 206 and step 207.
For example, assuming that the first time period is 1 minute, after receiving the voice message sent by the a client at 16:00, the message playing device 01 may query whether a control record for the message playing device is recorded in the time period between 15:59 and 16:00, and if the message playing device queries that the control record for starting the message playing device 01 is received at 15:59:35, step 205 may be executed.
It should be noted that, in the embodiment of the present invention, a timer may be set in the message playing device, and the message playing device may trigger the timer to count time after the control record for the message playing device is recorded each time. Therefore, when the message playing device receives the message to be played, the time length recorded by the timer can be directly acquired, and when the time length is greater than the first time period, it can be determined that the control record for the message playing device is not recorded in the adjacent first time period before the current time point; when the duration is not greater than the first time period, it may be determined that a control record for the message playing device is recorded in the first time period adjacent to the current time point.
It should be further noted that, in the embodiment of the present invention, since the message playing device 01 may establish communication connections with multiple terminals, or establish communication connections with multiple different types of clients in the same terminal, in order to ensure privacy of information, when receiving a message to be played, the message playing device 01 may also determine a home subscriber of the message to be played, that is, a receiver of the message to be played. Specifically, when the terminal or the message playing server sends the message to be played to the message playing device 01, the attribution information of the message to be played may be sent synchronously, and the message playing device 01 may determine the attribution user of the message to be played according to the attribution information.
Accordingly, when querying the control record, the message playing device 01 may query in a targeted manner whether the control record for the device triggered by the home subscriber is recorded in the first time period adjacent to the current time point. If the query result is that the control record for the message playing device triggered by the home subscriber is recorded in the first time period adjacent to the current time point, the message playing device may determine that the message playing device has interacted with the home subscriber recently, and the home subscriber can currently listen to the message to be played, so step 205 may be executed; otherwise, the message playing device may perform step 206 and step 207.
For example, suppose that a terminal 04 establishes a communication connection with a message playing device 01, and two instant messaging clients a and B are installed in the terminal 04, where a login user of the client a is user 1, and a login user of the client B is user 2. When the client a in the terminal 04 receives the voice message "there is a room at night, eating a bar together", the terminal 04 may send the voice message and its attribution information to the message playing device 01, where the attribution information is used to indicate that the attribution user of the voice message is user 1. Assuming that the first time period is 1 minute, the message playing device 01 receives the voice message sent by the a client at 16:00, and after determining that the home subscriber of the voice message is user 1, the message playing device 01 may query whether a control record triggered by the user 1 for the message playing device is recorded in a time period between 15:59 and 16:00, and if the message playing device queries the control record triggered by the user 1 in a time period between 15:59 and 16:00, step 205 may be executed.
Step 205, the message to be played is played.
If the query result obtained by the message playing device is: if a control instruction for the message playing device is recorded in an adjacent first time period before the current time point, the message playing device can determine that the message playing device has interacted with the user recently, and the user can currently receive the message to be played, so that the message to be played can be played in time, and the user can be ensured to receive the message to be played in time.
Further, in the embodiment of the present invention, a plurality of different types of players may be configured in the message playing device 01 to support the playing of different types of messages. Fig. 3 is a flowchart of a method for playing a message to be played according to an embodiment of the present invention, and referring to fig. 3, the method may specifically include:
step 2051a detects the type of the message to be played.
After receiving the message to be played, the message playing device may first detect a type of the message to be played, where the type may include a voice type, a text type, a picture type, a video type, and the like. And then, the message playing device can select a corresponding player to play according to the type of the message to be played so as to ensure the effective playing of the message to be played.
And step 2052a, when the message to be played is of a voice type, playing the message to be played by using a streaming media player. Step 2054a is performed.
In this embodiment of the present invention, the message playing device 01 may be configured with a streaming media player, and the streaming media player may play a voice-type message, so that when the message playing device detects that the message to be played is a voice message, the streaming media player may be started to play the message to be played.
And step 2053a, when the message to be played is of the text type, playing the message to be played by using a TTS player. Step 2054a is performed.
In the embodiment of the present invention, a Text To Speech (TTS) player may be further configured in the message playing device 01, and the TTS player may convert a message of a Text type into a Speech and then play the Speech, so that when the message playing device 01 detects that the message To be played is a Text message, the TTS player may be started To play the message To be played.
For example, assuming that the message playing device receives a control instruction for starting the message playing device 01 at 15:59:35, after the message playing device receives the voice message sent by the client a at 16:00, the voice message "there is no room at night, and a dining bar together" can be played directly through the streaming media player. Since the user has manipulated the message playing device within 1 minute, the probability that the current user is still located near the message playing device is high, thereby ensuring that the user can normally listen to the voice message.
It should be noted that, when the message playing device detects that the message to be played is of a video type, if a display module is configured in the message playing device, the video message may be played through the streaming media player; if the message playing device is not configured with a display module, the streaming media player may play audio information in the video message, or may play preset voice information, such as voice "video". When the message playing device detects that the message to be played is of a picture type, preset voice information, such as a voice 'picture', can be played; or, the message playing device may further match the received picture with a picture in a preset picture database, where each picture in the picture database corresponds to preset language information, for example, the voice information corresponding to the smiling face picture may be "haha" voice. The message playing device can acquire the corresponding voice information to play according to the result of the picture matching.
Step 2054a marks the message to be played as read. Step 2055a is performed.
After the message playing device has played the message to be played, the message to be played that has already been played may be marked as read in order to distinguish it from other messages that have not been played. For example, the play tag of the message to be played may be set as: has already been read.
Step 2055a, store the read message to be played.
Further, the message playing device may also store the played message to be played in the read sub-queue in the message queue. Of course, in order to save the storage space of the message playing device, the message playing device may also delete the played message to be played.
It should be noted that, in order to facilitate the user to accurately know the source of the message when listening to the message, in step 201, after the message playing device receives the message to be played, the source identifier of the message to be played may also be obtained. The source identifier is used for indicating the source of the message to be played. Correspondingly, in step 205, when the message playing device plays the message to be played, the message playing device may also play the source identifier of the message to be played first, and then play the message to be played.
Specifically, the source identifier may include at least one of an identifier indicating a client that sends the message to be played, an identifier of a user that sends the message to be played, and an identifier of a group that sends the message to be played. The identifier of the client may be a name of the client, such as chat a, news B, and the like; the user's identification may be the user's account number, nickname, or remark name, etc., and the group's identification may be the group name.
For example, assuming that the voice message received by the message playing device 01 is sent by the a client in the terminal, and the voice message comes from the user a1, the source identifier obtained by the message playing device 01 may include: and (3) client identification: a, user identification: A1. accordingly, the voice played by the message playing device 01 may be "a message from the a client user a 1: get a meal bar together with the air at night ".
It should be further noted that, if the message playing device receives the message to be played and also receives the attribution information of the message to be played, when the message playing device 01 plays the message to be played, referring to fig. 4, the following operations may be specifically executed:
and step 2051b, the attribution information of the message to be played is played.
The attribution information is used for indicating the attribution user of the message to be played, the attribution information is played before the message to be played is played, so that the attribution user can independently select whether to listen to the message to be played, and the flexibility of message playing control is further improved. For example, assuming that the attribution information received by the message playing device 01 is used to indicate that the attribution user of the voice message is user 1, the message playing device 01 may play voice "user 1, you have a new message, please confirm whether to play".
And step 2052b, detecting whether a playing instruction triggered by the attribution user is received in an adjacent second time period after the attribution information is played.
Wherein the second time period may be set in a manner similar to the first time period. That is, the second time period may be a short time period preset in the message playing device, and may be, for example, 10 seconds. Alternatively, the second period of time may be set autonomously by the user. Still alternatively, the second time period may be dynamically adjusted by the message playing device, for example, the message playing device may dynamically adjust the second time period according to a frequency of the user operating the message playing device within a preset time period. The using habit of the user can be accurately reflected by the length of the second time period after the frequency of the user operation device is dynamically adjusted, so that correspondingly, the accuracy of detection according to the second time period is higher.
Further, the message playing device may identify the user triggering the playing instruction by means of voiceprint authentication. Specifically, after determining the home subscriber of the message to be played according to the home information, the message playing device may determine the voiceprint template of the home subscriber from the voiceprint templates of at least one pre-stored subscriber. When the message playing device receives the target voice message in the adjacent second time period after the attribution message is played, whether the voiceprint of the target voice message is matched with the voiceprint template of the attribution user can be detected. If the voiceprint of the target voice message matches the voiceprint template of the home subscriber, the message playing device may determine that the playing instruction triggered by the home subscriber is received. The target voice message is a voice message containing a preset content for indicating to play a message, for example, the preset content may be "play message" or "confirm play".
And step 2053b, when a play instruction triggered by the attribution user is received in an adjacent second time period after the attribution information is played, playing the message to be played.
After determining that the playing instruction triggered by the home subscriber is received, the message playing device can determine that the home subscriber really has the intention of listening to the message currently, so that the message to be played can be played, and the user experience is ensured; and the message to be played is played after the trigger user of the playing instruction is verified to be the home user, so that the privacy of the user can be prevented from being revealed, and the privacy of the message is ensured.
For example, assuming that the second time period is 10 seconds, and the message playing device detects the voice message "confirm playing" of the user 1 after playing the home information for 5 seconds, it may be determined that the home-user-triggered play instruction is received, and thus the message to be played "message from the a client user a 1: get a meal bar together with the air at night ".
If the message playing apparatus does not receive the playing instruction triggered by the home subscriber in the adjacent second time period after playing the home information, step 206 and step 207 may be executed.
Step 206, storing the message to be played.
If the message playing device does not receive the control command in the first time period adjacent to the current time point detected in the step 204; or, if the message playing device detects that the control instruction triggered by the home subscriber has not been received in the first time period adjacent to the current time point in step 204; or, if the message playing apparatus detects in the step 2052b that the playing instruction triggered by the home subscriber is not received in the second time period adjacent to the time period after the home information is played, the message playing apparatus may determine that there is no recent interaction with the user (or the home subscriber), and the user (or the home subscriber) may not be able to listen to or is inconvenient to listen to the message to be played currently, so that the message to be played may be stored first, so as to ensure that the message playing apparatus may obtain and play the message to be played from the stored record when the user listens conveniently in the later period.
In an optional implementation manner of the embodiment of the present invention, referring to fig. 5, a message queue R may be configured in a message storage module of the message playing device, where the message queue R is used to store all messages received by the message playing device, and a plurality of messages in the message queue may be stored sequentially according to a receiving time sequence. As shown in fig. 5, the message playing device may: the message N is stored to the tail of the message queue R.
In addition, referring to fig. 6, the message queue R may be further divided into: the device comprises a read sub-queue and an unread sub-queue, wherein messages stored in the unread sub-queue are unread messages, namely messages which are not played; the messages stored in the read sub-queue are played messages. In the embodiment of the present invention, each time a message to be played is received by a message playing device, a playing tag may be allocated to the message to be played, and the initial value of the playing tag is: unread, and store the message to be played to the tail of the unread sub-queue; after the message playing device finishes playing a message in the unread sub-queue, the playing tag of the played message can be updated to: read, and store the played message to the tail of the read sub-queue. For example, after the message playing device has played the unread message N in the unread sub-queue, the unread message N may be marked as read and stored to the tail of the read sub-queue.
In another optional implementation manner of the embodiment of the present invention, at least two message queues corresponding to different source identifiers may be configured in the message storage module of the message playing device. After receiving the message to be played, the message playing device may first obtain the source identifier of the message to be played, then determine, from the at least two message queues, a target message queue corresponding to the source identifier of the message to be played, and store the message to be played in the target message queue. If the message storage module does not store the message queue corresponding to the source identifier of the message to be played, the message playing device may create a new message queue for the source identifier of the message to be played in the message storage module, and when the message playing device receives the message to be played with the same source identifier again, the message to be played that is received again may be stored in the new message queue. Similarly, each message queue may be further divided into a read sub-queue and an unread sub-queue, which is not described herein again.
For example, referring to fig. 7, assuming that the message playing device establishes communication connections with the a client and the B client in the terminal at the same time, the message storage module of the message playing device includes 3 message queues: r1, R2 and R3. Wherein, the source identifier corresponding to the message queue R1 is: and (3) client identification: a, user identification: a1; the source identifier corresponding to the message queue R2 is: and (3) client identification: a, group identification: c1; the source identifier corresponding to the message queue R3 is: and (3) client identification: B. therefore, when the voice message "available at night, eating together with bar" is received by the message playing device, the source of the voice message is identified as: and (3) client identification: a, and user identification: at a1, the message playing device may determine that the target message queue corresponding to the source identifier is R1, and store the voice message to the end of the target message queue R1. When the message playing device receives a message from client B, the message may be stored to the end of message queue R3.
The messages with different source identifications are classified and stored through the plurality of message queues, so that the classified management and the playing of the messages with different source identifications are conveniently realized, and the flexibility of message playing control is further improved.
And step 207, playing the prompt tone.
Further, after the message playing device stores the message to be played, a warning tone may also be played, where the audio content of the warning tone may be configured in advance in the message playing device, or may be set by the user autonomously, which is not limited in the embodiment of the present invention. The prompt tone is used for indicating that the message playing device receives a message to be played, if a user hears the prompt tone and wants to listen to the message to be played, a playing control instruction can be triggered through voice or touch control and other operations, and the message playing device can play the stored message to be played according to the playing control instruction, so that the user can be ensured not to miss the message to be played when listening to the message conveniently.
It should be noted that, since the prompt tone played by the message playing device may not be heard by the user in step 207, after step 207, when the message playing device receives the control instruction again, it may be determined that the user is nearby, and in order to ensure that the user listens to the message to be played in time, the message playing device may play the prompt tone again to prompt the user.
And step 208, after the current message is played, playing the message to be played.
In step 201, if it is detected that there is a currently playing message, the message playing device may play the message to be played immediately after the current message is played, so as to ensure that the user can listen to the latest received message in time. Of course, in practical applications, when the message to be played is received by the message playing device in the playing state, the message to be played may also be stored to the tail of the queue to be played. That is, the message playing device may play the message to be played after all the messages to be played are played. The specific process of playing the message to be played by the message playing device may refer to step 205, which is not described herein again.
For example, referring to fig. 8, it is assumed that the message playing device is currently playing the messages in the unread sub-queue in the first-in-last-out order, and N +1 messages are recorded in the unread sub-queue, and the message playing device is currently playing the message N. When the message playing device receives the message N +1 to be played, the message N +1 to be played may be inserted between the message N and the message N-1 in the unread sub-queue, so as to ensure that the message N +1 to be played is played in time.
In summary, according to the device message playing control method provided in the embodiment of the present invention, when receiving a message to be played, a message playing device may determine whether the message has been interacted with a user recently according to a control record, and if the message playing device determines that the message has been interacted with the user recently according to the control record, the message to be played may be directly played, so as to ensure that the user can listen to the message in time; if the message playing device determines that the message playing device has not interacted with the user recently according to the control record, the message playing control method can play a prompt tone so as to prevent the user from missing the message to be played. The message playing control method has higher flexibility.
Fig. 9 is a flowchart of another device message playing control method according to an embodiment of the present invention. The method may be applied to the application scenario shown in fig. 1-1, and referring to fig. 9, the method may include:
step 301, the message push end sends a notification message for indicating that the message is to be played to the message playing device.
The message pushing end may be the message playing server 02 or the terminal 04 in the application scenario shown in fig. 1-1. In the embodiment of the present invention, in order to avoid occupying too much storage space of the message playing device, after the message push end acquires the message to be played, the message to be played may not be directly sent to the message playing device 01, but a notification message for indicating that the message to be played is sent to the message playing device 01 first.
Step 302, the message playing device detects whether there is a message being played.
After receiving the notification message, the message playing device may detect whether there is a message currently being played, that is, whether the current working state is the playing state. When there is no message being played in the message playing device, step 303 may be executed; step 305 may be performed when there is a message being played in the message playing device.
Step 303, the message playing device queries whether a control record for the message playing device is recorded in a first time period adjacent to the current time point.
After the message playing device queries the control record and obtains the query result, if the query result indicates that the control record for the message playing device is not recorded in the adjacent first time period before the current time point, step 304 may be executed; if the query result is that the control command for the message playing device is recorded in the first time period adjacent to the current time point, step 305 may be executed.
And step 304, playing the prompt tone.
The prompt tone is used for prompting the user that the message playing device receives the message to be played. The audio content of the alert tone may be configured in advance in the message playing device, or may be set by the user, or the alert tone may be the notification message, which is not limited in the embodiment of the present invention. The prompt tone can be played to avoid that the user misses the message to be played when the user conveniently listens to the message.
The specific implementation process of the above steps 302 to 304 may refer to corresponding steps in the embodiment shown in fig. 2, and is not described herein again.
Step 305, the message playing device sends a response message for acquiring the message to be played to the message pushing end.
If the query result is that a control instruction for the message playing device is recorded in an adjacent first time period before the current time point, the message playing device may determine that the message playing device has interacted with the user recently, and the user can currently receive the message to be played, so that the message playing device may send a response message for acquiring the message to be played to the message push terminal.
Step 306, the message pushing end sends the message to be played to the message playing device.
After receiving the response message, the message push terminal may send the message to be played to the message playing device. For example, the terminal 04 may transmit a voice message "there is a room at night, a dining bar together" to the message playing apparatus 01.
Step 307, the message playing device plays the message to be played.
After receiving the message to be played sent by the message pushing end, the message playing device may select a corresponding player to play the message to be played according to the type of the message to be played. When there is no message currently being played by the message playing device, the specific process of playing the message to be played by the message playing device may refer to step 205 above; when the message playing device is currently playing a message, the specific process of the message playing device playing the message to be played may refer to step 208 above. And will not be described in detail herein.
It should be noted that, after the step 304, when the message playing apparatus receives a playing control instruction for instructing to play the message, the message may be acquired and played by the method shown in the steps 305 to 307. By the method, the message to be played is cached in the message pushing end firstly, and the message is acquired when the message playing equipment meets the playing condition, so that the storage space of the message playing equipment can be saved.
In summary, according to the device message playing control method provided in the embodiment of the present invention, when receiving a notification message indicating a message to be played, a message playing device may determine whether the message has interacted with a user recently according to a control record, and if the message playing device determines that the message has interacted with the user recently according to the control record, the message playing device may obtain and play the message to be played from a message push end, so as to ensure that the user listens in time; if the message playing device determines that the message playing device has not interacted with the user recently according to the control record, the message playing control method can play the prompt tone without acquiring the message to be played. The message playing control method has high flexibility and can avoid occupying excessive memory resources in the message playing equipment.
Fig. 10 is a flowchart of a method for responding to a play control command according to an embodiment of the present invention. The method may be applied to the message playing device 01 shown in fig. 1-1, and referring to fig. 10, the method may include:
step 209, receiving a play control command.
The play control instruction is used to instruct any one of playing a message, playing a previous message, playing a next message, replaying a message, and stopping playing a message. The play control command may be a voice command, and the control command for instructing to play a message may be a voice "play message", the control command for instructing to play a previous message may be a voice "previous", the control command for instructing to play a next message may be a voice "next", the control command for instructing to replay a message may be a voice "replay", and the control command for instructing to stop playing a message may be a voice "stop".
In the embodiment of the present invention, a microphone may be disposed in the message playing device, and when the message playing device is in a start state, the microphone may collect voice information of a user in real time, and may detect whether the voice information is a playing control instruction according to a preset voice recognition algorithm. For example, the message playing device may detect whether the voice message includes a preset content for instructing playing of the control message, and when it is detected that the voice message includes the preset content, may determine that a playing control instruction corresponding to the preset content is received. Or, the message playing device may match the voice information with each instruction template in the playing control instruction library, and when it is detected that the voice information matches any instruction template, it may be determined that the playing control instruction corresponding to the instruction template is received.
For example, it is assumed that the voice information of the user collected by the message playing device at a certain time is "play message", and the message playing device detects that the voice information matches with an instruction template in the play control instruction library for instructing to play the message, so that the message playing device may determine that the play control instruction for instructing to play the message is received.
Step 210, detecting whether the voiceprint of the play control instruction is matched with a pre-stored voiceprint template.
In the embodiment of the invention, in order to ensure the privacy of the user, the message playing device can acquire the voice sample of the user to be bound in advance, then extract the voiceprint features of the voice sample and generate the voiceprint template. When the play control instruction received by the message playing device is a voice instruction, the message playing device can perform voiceprint verification on the play control instruction according to the voiceprint template. Specifically, the message playing device may extract the voiceprint feature of the play control instruction, then detect whether the similarity between the extracted voiceprint feature and the feature recorded in the voiceprint template is greater than a preset threshold, and when the similarity between the extracted voiceprint feature and the feature recorded in the voiceprint template is greater than the preset threshold, the message playing device may determine that the voiceprint of the play control instruction matches the pre-stored voiceprint template, and execute step 211; when the similarity between the two is not greater than the preset threshold, the message playing device may determine that the voiceprint of the playing control instruction does not match the pre-stored voiceprint template, and execute step 212.
It should be noted that the play control instruction may also be an instruction triggered by a user through touch operation or key operation, and when the play control instruction is an instruction triggered by touch operation or key operation, the message playing device may also verify the identity of the user according to a fingerprint or a password, which is not limited in the embodiment of the present invention.
Step 211, responding the play control command.
When the voiceprint of the play control instruction matches the pre-stored voiceprint template, the message playing device may determine that the play control instruction is triggered by the bound user, and may therefore respond to the play control instruction. According to the difference of the content indicated by the playing control instruction, the mode of responding to the playing control instruction is also different, and the specific response mode is as follows:
(1) when the play control instruction is used to instruct to play the message, the message playing device may obtain the unread sub-queue from the message queue stored in the message storage module, and play the messages in the unread sub-queue according to a first-in first-out or last-in first-out order. The first-in first-out playing is that the messages are played from far to near in sequence according to the receiving time of the messages, namely the earliest received message is played first; the playing in the last-in first-out order refers to that the messages are played from near to far in sequence according to the receiving time of the messages, namely the messages received recently are played first.
For example, as shown in fig. 6, after receiving a voice message "play message" of a user, the message playing device may obtain an unread sub-queue in the message queue R, and sequentially play the messages in the unread sub-queue from the unread message N at the tail of the unread sub-queue in a first-in-last-out order.
It should be noted that, when the message storage module includes at least two message queues, the message playing device may further divide the at least two message queues into a priority queue and a regular queue according to the source identifier corresponding to each message queue. The source identifier corresponding to the priority queue is a preset priority source identifier, and the priority source identifier may be set by a user. Accordingly, when the message playing device receives the playing instruction, the unread messages in the priority queue can be played first, and then the unread messages in the regular queue can be played. If the priority queue or the regular queue includes a plurality of message queues, the message playing device may play the unread messages in each message queue in sequence according to the receiving time sequence of the unread messages in each message queue.
For example, for an instant messaging message, a user may set a priority of a certain friend or a certain group as high, and accordingly, the message playing device may set a user identifier of the friend or a message queue corresponding to a group identifier of the group as a priority queue. Therefore, the user can be ensured to listen to the important message with higher priority in time, and the flexibility of message playing is effectively improved.
Assume that, as shown in fig. 7, the message queue stored in the message storage module of the message playing device includes: r1, R2 and R3. If the user wishes to preferentially play the message from user a1 in client a, the user may identify the source: the client identifier a and the user identifier a1 are set as the prior source identifiers. Accordingly, the message playing device can identify the message queue R1 corresponding to the priority source identifier as a priority queue and identify the other two queues R2 and R3 as regular queues according to the setting of the user. Then, when the message playing device receives the voice message "play message" of the user, it may play the messages of the unread sub-queue in the message queue R1 first, and then sequentially play the messages of the unread sub-queue in the message queues R2 and R3 according to the receiving time sequence of the messages. Thus, the user is assured of listening to the message from user a1 in client a in a timely manner.
It should be further noted that, if the message playing device receives a new message to be played in the process of playing the unread message in the priority queue, the message playing device may directly insert the recently received message to be played into the unread sub-queue of the priority queue. That is, no matter whether the message queue corresponding to the source identifier of the recently received message to be played is the priority queue, the message playing device may store the message to be played in the priority queue, so as to ensure that the recently received message can be played in time.
Of course, after the message to be played is played, the message playing device may determine the message queue corresponding to the source identifier of the message to be played again, and then store the read message to be played into the read sub-queue of the corresponding message queue.
(2) When the play control instruction is used to instruct to play the previous message, if the message playing device is currently playing the unread message in the first message queue, the message playing device may then play the read message stored last in the first message queue; if a read message in the first message queue is currently being played, the message playing device may then play a read message in the first message queue that precedes the currently playing read message.
For example, referring to fig. 6, assuming that the message playing device is currently playing the unread message N in the unread sub-queue, when the message playing device receives a play instruction for instructing to play the previous message, the read message N-1 in the read sub-queue may be acquired and played. Or, if the message playing device receives the play instruction for instructing to play the previous message, there is no message being played, and the message played last time is the read message N-1 in the read sub-queue, the message playing device may play the read message N-2 in the read sub-queue according to the play control instruction.
(3) When the play control instruction is used to instruct to play the next message, the message playing device may play a message to be played after the message currently being played in the first message queue.
For example, as shown in fig. 6, assuming that the message playing device is currently playing the unread message N of the unread sub-queue in the message queue R, when the message playing device receives a playing instruction for instructing to play the next message, the unread message N-1 in the unread sub-queue may be acquired and played. If the message playing device is currently playing the read message 0 of the read sub-queue in the message queue R, when the message playing device receives a playing instruction for instructing to play the next message, the read message 1 in the read sub-queue may be acquired and played.
(4) When the play control instruction is used to instruct the replay of the message, the message playing device may repeatedly play the message played most recently in the first message queue. The repeatedly played message is no longer stored to the read sub-queue of the first message queue.
For example, assuming that the message playing device receives a play control instruction for instructing to play back a message, and the recently played message is a read message N-1 of the read sub-queue in the message queue R, the message playing device may repeatedly play the read message N-1 of the read sub-queue.
(5) When the play control instruction is used to instruct to stop playing the message, the message playing device may stop playing and clear the message list to be played cached in the message playing device. The message to be played, which is obtained from the message queue by the message playing device, is recorded in the message list to be played.
It should be noted that, if the message playing device receives a play control instruction for instructing to play a message, no message is stored in the unread sub-queue in the message queue, or the message playing device has already played to the head of the message queue when the message playing device receives a play control instruction for instructing to play the previous message; or, when the message playing device receives a play control instruction for instructing to play the next message, and the message playing device has already played to the tail of the message queue, the message playing device may return a prompt message, where the prompt message may be a voice message "no more messages", and is used to prompt the user that there is no message available for playing.
It should be noted that, in practical applications, since the message playing device may be used for playing messages, and may also be used for playing music, intelligent conversations, intelligent question and answer, and other scenes, in order to ensure the accuracy of the message playing device in responding to the playing control instruction, the message playing device may receive and respond to the playing control instruction after receiving the playing start instruction. And when the message playing equipment does not receive the playing starting instruction, the message playing equipment does not respond to a playing control instruction triggered by a user. The starting playing instruction can be triggered by preset voice, touch control or key operation. For example, the user may trigger the initiate play instruction by a voice "initiate message box". Alternatively, the start play instruction may be an instruction for instructing to play a message, such as voice "play message". When the message playing device does not detect the voice 'playing message', the voice 'previous strip', 'next strip', 'replay' and 'stop' sent by the user cannot control the message playing device, so that the message playing device can be prevented from responding incorrectly in other application scenes.
Step 211, playing a warning tone for indicating the verification failure.
When the voiceprint of the play control instruction received by the message playing device is not matched with the pre-stored voiceprint template, in order to ensure the privacy of the user, the play control instruction may not be responded, and a prompt tone for indicating that the verification fails is played.
The method for responding the playing control instruction enables the user to flexibly select the message to be listened, thereby effectively improving the flexibility of the message playing control; moreover, voiceprint verification is carried out before the play control instruction is responded, so that the privacy of the user can be prevented from being revealed, and the privacy of the message is ensured.
It should be noted that, the order of steps of the method for controlling playing of a device message according to the embodiment of the present invention may be appropriately adjusted, and the steps may also be increased or decreased according to the situation. For example, step 207 may also be performed simultaneously with step 206, or before step 206, and steps 209 to 212 may be performed before step 208. Any method that can be easily conceived by those skilled in the art within the technical scope of the present disclosure is covered by the protection scope of the present disclosure, and thus, the detailed description thereof is omitted.
It should be further noted that, in the embodiment of the present invention, a message box application may be configured in the message playing device 01, and the message box application may be configured to receive, store, play, and manage a message sent by a message pushing end. Fig. 11 is a schematic structural diagram of a message box according to an embodiment of the present invention, and as can be seen from fig. 11, the message box may specifically include:
a message management module 011 for managing an internal state of the message box,
the receiving module 012 is configured to receive a message pushed by a message pushing end.
The command receiving module 013 is configured to receive a play control command, such as a voice-type play control command.
And a state management module 014 for managing the working state of the message box.
A message storage module 015, configured to store or delete the received message.
A voiceprint verification module 016 for verifying whether the user identity is legal or not through voiceprint
Referring to fig. 12, assuming that a message box application is configured in the message playing device, and a first time period referred by the message playing device when determining whether to play a message is 1 minute, the device message playing control method according to the embodiment of the present invention can be summarized as the following steps:
(a) a message is received.
(b) The message box stores the received message.
(c) The current device state is detected. The device state may include a play state and a non-play state.
(d) Controlling the received message according to the device state.
(e) The presence or absence of interaction was detected within 1 minute. Wherein, the interaction refers to interaction with a user, and when the message playing device detects that a control record for the device is recorded within 1 minute adjacent to the current time point, the interaction can be determined, and the step (h) is executed; otherwise, no interaction may be determined and steps (f) and (g) are performed.
(f) The message is stored. The message playing device may mark the received message as unread and store the unread message in the unread sub-queue of the message storage module.
(g) And playing the ring tone. The ring tone is the alert tone described above for alerting the user that a message is to be played.
(h) And playing the message. If the message playing device detects that the interaction with the user is performed within 1 minute, the message playing device can directly play the message so that the user can listen to the message in time. Thereafter, the message playing device may perform step (i).
(i) The flag is read. Further, the message playing device may mark the played message as read and store the read message in the read sub-queue of the message storage module.
Further, as shown in fig. 12, the message box in the message playing device may further perform the following operations:
(j) an instruction is received. The instruction can be a voice instruction, or an instruction triggered by touch control or key operation.
(k) And controlling the message according to the received instruction. I.e. in response to the instruction. As can be seen in fig. 12, the operation indicated by the instruction may include at least: playing an unread message, playing a previous message, playing a next message, replaying a message, and stopping playing a message.
In addition, as can be seen from fig. 12, in order to protect the privacy of the user, the message box also has a function of voiceprint recognition, and the message box can carry out voiceprint recognition and verification on the received voice command and then respond to the voice command when the verification is passed.
The specific implementation process of each step shown in fig. 12 may refer to corresponding steps in the embodiments shown in fig. 1-2 to fig. 4 and fig. 9 and fig. 10, and details are not repeated here.
In summary, the present invention provides a device message playing control method, in which a message playing device can determine whether a user has interacted with the device recently according to an inquiry result, and further determine whether the user is currently convenient to listen to the message, so that when playing a message according to the inquiry result, the user can be ensured to listen to the message in time, and the flexibility of the message playing control method is high.
Fig. 13 is a schematic structural diagram of a device message playing control apparatus according to an embodiment of the present invention, where the apparatus may be configured in the message playing device 01 shown in fig. 1-1, and referring to fig. 13, the apparatus may include:
the receiving module 401 is configured to receive a message to be processed, where the message to be processed is a message to be played, or is a notification message for indicating the message to be played.
A detecting module 402, configured to detect a current time point when the message to be processed is received.
A determining module 403 is configured to determine the first time period.
The query module 404 is configured to query whether a control record for the device is recorded in the first time period adjacent to the current time point, and obtain a query result.
A first playing module 405, configured to play the message to be played or play the notification message according to the query result.
The first playing module 405 may be specifically configured to:
and when the query result is that the control record aiming at the equipment is recorded in the first time period adjacent to the current time point, playing the message to be played or playing the notification message.
Fig. 14 is a schematic structural diagram of another device message play control apparatus according to an embodiment of the present invention, and referring to fig. 14, the apparatus may further include:
a second playing module 406, configured to play a warning tone when the query result is that no control record for the device is recorded in the first time period adjacent to the current time point.
Optionally, the query module 404 may specifically be configured to: determining the attributive user of the message to be played; and inquiring whether a control record aiming at the equipment triggered by the home subscriber is recorded in the first time period adjacent to the current time point.
Optionally, the first playing module 405 is specifically configured to:
the attribution information of the message to be played is played, and the attribution information is used for indicating an attribution user of the message to be played;
detecting whether a playing instruction triggered by the attribution user is received in an adjacent second time period after the attribution information is played;
and when a playing instruction triggered by the attribution user is received in an adjacent second time period after the attribution information is played, playing the message to be played or playing the notification message.
Optionally, the first playing module 405 may be further configured to:
when target voice information is received in an adjacent second time period after the attribution information is played, whether the voiceprint of the target voice information is matched with the voiceprint template of the attribution user or not is detected, and the target voice information contains preset content used for indicating playing information;
and if the voiceprint of the target voice message is matched with the voiceprint template of the attribution user, determining that a playing instruction triggered by the attribution user is received.
Optionally, the query module 404 is specifically configured to:
detecting whether a message being played exists in the equipment;
and when the message which is being played does not exist in the equipment, inquiring whether a control record for the equipment is recorded in the first time period adjacent to the current time point.
Optionally, the message to be processed is a notification message sent by the message push end and used for indicating that the message to be played, and the first playing module 405 is specifically configured to:
according to the query result, sending a response message for requesting to acquire the message to be played to the message pushing end;
receiving the message to be played sent by the message pushing end;
and playing the message to be played.
Optionally, at least one message queue for recording messages is stored in the device, where each message queue corresponds to a source identifier. Referring to fig. 14, the apparatus may further include:
an obtaining module 407, configured to obtain a source identifier of the message to be played when the query result is that no control record for the device is recorded in the first time period adjacent to the current time point.
The queue determining module 408 is configured to determine a target message queue corresponding to the source identifier of the message to be played.
The storage module 409 is configured to store the message to be played in the target message queue.
Wherein the source identifier comprises: the identifier of the client sending the message to be played, at least one of the identifier of the user sending the message to be played and the identifier of the group sending the message to be played.
Optionally, at least two message queues are stored in the device, where the at least two message queues include: the device may further include:
the third playing module 410 is configured to, when receiving a playing instruction, play the unread messages in the priority queue first, and then play the unread messages in the regular queue.
Optionally, as shown in fig. 14, the apparatus may further include:
the inserting module 411 is configured to, in the process of playing the unread message in the priority queue, insert the message to be played into the unread sub-queue of the priority queue if the message to be played is received.
Optionally, the third playing module 410 may be further configured to:
when a play control instruction for instructing to play the previous message is received, if the unread message in the first message queue is currently being played, then the read message stored last in the first message queue is played, and if the read message in the first message queue is currently being played, then the read message positioned before the currently-playing read message in the first message queue is played.
When a play control instruction for instructing to play the next message is received, the message in the first message queue that is positioned after the message currently being played is played.
When a play control instruction for instructing replay of the message is received, the message played most recently in the first message queue is repeatedly played.
And stopping playing the message when receiving a playing control instruction for instructing to stop playing the message.
In summary, the present invention provides an apparatus message playing control device, in which a message playing apparatus can determine whether a user has interacted with a message recently according to an inquiry result, and further determine whether the user is currently convenient to listen to the message, so that when playing the message according to the inquiry result, the user can be ensured to listen to the message in time, and flexibility of playing the message is improved.
It should be noted that: in the device message playing control apparatus provided in the foregoing embodiment, when playing a control message, only the division of the functional modules is illustrated, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the apparatus is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the device message playing control apparatus and the device message playing control method provided in the foregoing embodiments belong to the same concept, and specific implementation processes thereof are detailed in the foregoing method embodiments and are not described herein again.
An embodiment of the present invention provides a message playing device, where the message playing device includes a processor and a memory, where the memory stores at least one instruction, at least one program, a code set, or an instruction set, and the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by the processor to implement the device message playing control method provided in the foregoing method embodiment.
The embodiment of the present invention further provides a computer-readable storage medium, where at least one instruction, at least one program, a code set, or an instruction set is stored in the storage medium, and the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by the processor to implement the device message playing control method provided in the foregoing method embodiment.
Fig. 15 is a schematic structural diagram of a message playing device according to an embodiment of the present invention. The voice chat client in the above embodiment may be installed in the message playing device. Referring to fig. 15, the message playing device 500 may include components such as a communication unit 510, a memory 520 including one or more computer-readable storage media, an input unit 530, a display unit 540, a sensor 550, an audio circuit 560, a wireless communication unit 570, a processor 580 including one or more processing cores, and a power supply 590. Those skilled in the art will appreciate that the message playing device configuration shown in fig. 15 does not constitute a limitation of the message playing device and may include more or fewer components than those shown, or some components in combination, or a different arrangement of components. Wherein:
the communication unit 510 may be used for receiving and transmitting signals during transceiving, and the communication unit 510 may be an RF (Radio Frequency) circuit, a router, a modem, or other network communication devices. Generally, the RF circuit as the communication unit includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, an LNA (Low noise amplifier), a duplexer, and the like. In addition, the communication unit 510 may also communicate with a network and other devices through wireless communication. The memory 520 may be used to store software programs and modules, and the processor 580 executes various functional applications and data processing by operating the software programs and modules stored in the memory 520. The memory 520 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program (such as a sound playing function) required by at least one function, and the like; the storage data area may store data (such as audio data) created according to the use of the message playing device 500, and the like. Further, the memory 520 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 520 may also include a memory controller to provide the processor 580 and the input unit 530 access to the memory 520.
The input unit 530 may be used to receive input numeric or character information and generate key or voice signal inputs related to user settings and function control. Preferably, the input unit 530 may include a touch-sensitive surface 531 and other input devices 532. The touch sensitive surface 531, also referred to as a touch display screen or a touch pad, may collect touch operations by a user on or near the touch sensitive surface 531 (e.g. operations by a user on or near the touch sensitive surface 531 using any suitable object such as a finger, a stylus, etc.) and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 531 may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, and sends the touch point coordinates to the processor 580, and can receive and execute commands sent by the processor 580. In addition, the touch sensitive surface 531 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 530 may comprise other input devices 532 in addition to the touch sensitive surface 531. Preferably, other input devices 532 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a microphone, a trackball, a mouse, a joystick, and the like.
The display unit 540 may be used to display information input by or provided to the user and various graphical user interfaces of the message playing device 500, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 540 may include a Display panel 541, and optionally, the Display panel 541 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch-sensitive surface 531 can overlie the display panel 541 such that, when a touch event is detected at or near the touch-sensitive surface 531, it is passed to the processor 580 for determining the type of touch event, whereupon the processor 580 provides a corresponding visual output on the display panel 541 in dependence upon the type of touch event. Although in FIG. 15 the touch sensitive surface 531 and the display panel 541 are implemented as two separate components to implement input and output functions, in some embodiments the touch sensitive surface 531 and the display panel 541 can be integrated to implement input and output functions.
The message playing device 500 may also include at least one sensor 550, such as a light sensor, motion sensor, and other sensors. The light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 541 according to the brightness of the ambient light. As for other sensors such as a gravitational acceleration sensor, a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which are also configurable in the message playing device 500, detailed descriptions thereof are omitted.
Audio circuitry 560, speaker 561, microphone 562 may provide an audio interface between a user and message playing device 500. The audio circuit 560 may transmit the electrical signal converted from the received audio data to the speaker 561, and convert the electrical signal into a sound signal by the speaker 561 for output; on the other hand, the microphone 562 converts the collected sound signal into an electrical signal, which is received by the audio circuit 560 and converted into audio data, which is then processed by the audio data output processor 580, and then transmitted to, for example, another message playing device via the communication unit 510, or output to the memory 520 for further processing.
In order to implement wireless communication, a wireless communication unit 570 may be configured on the message playing device, and the wireless communication unit 570 may be a WIFI module. Although the wireless communication unit 570 is shown in the drawing, it is understood that it does not belong to the essential constitution of the message playing device 500, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 580 is a control center of the message playing device 500, connects various parts of the entire message playing device by using various interfaces and lines, and performs various functions and processes data of the message playing device 500 by running or executing software programs and/or modules stored in the memory 520 and calling data stored in the memory 520, thereby performing overall monitoring of the message playing device. Optionally, processor 580 may include one or more processing cores; preferably, the processor 580 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 580.
The message playing device 500 further comprises a power supply 590 (such as a battery) for supplying power to various components, which may preferably be logically connected to the processor 580 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system. The power supply 560 may also include one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, or any other component. Although not shown, the message playing device 500 may further include a camera, a bluetooth module, and the like, which are not described in detail herein.
In this embodiment, the message playing apparatus further includes one or more programs, which are stored in the memory and configured to be executed by one or more processors, and the one or more programs include instructions for executing the above-described apparatus message playing control method provided by the embodiment of the present invention.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (15)

1. A device message play control method, the method comprising:
receiving a message to be processed, wherein the message to be processed is a message to be played or a notification message for indicating the message to be played;
detecting a current time point of receiving the message to be processed;
determining a first time period;
inquiring whether a control record aiming at the equipment is recorded in the first time period adjacent to the current time point or not, and obtaining an inquiry result;
and when the query result is that the control record for the equipment is recorded in the first time period adjacent to the current time point, playing the message to be played or playing the notification message according to the query result.
2. The method according to claim 1, wherein the playing the message to be played or the playing the notification message according to the query result comprises:
when the query result is that a control record for the equipment is recorded in the first time period adjacent to the current time point, playing the message to be played or playing the notification message;
the method further comprises the following steps:
and when the query result is that the control record aiming at the equipment is not recorded in the first time period adjacent to the current time point, playing a prompt tone.
3. The method of claim 1, wherein the querying whether a control record for a device is recorded in the first time period adjacent to the current time point comprises:
determining the attributive user of the message to be played;
and inquiring whether a control record aiming at the equipment triggered by the home subscriber is recorded in the first time period adjacent to the current time point.
4. The method according to claim 1, wherein the playing the message to be played or the playing the notification message according to the query result comprises:
the attribution information of the message to be played is played, and the attribution information is used for indicating an attribution user of the message to be played;
detecting whether a playing instruction triggered by the attribution user is received in an adjacent second time period after the attribution information is played;
and when a playing instruction triggered by the attribution user is received in an adjacent second time period after the attribution information is played, playing the message to be played or playing the notification message.
5. The method of claim 4, wherein after the attribution information of the message to be played is played, the method further comprises:
when target voice information is received in an adjacent second time period after the attribution information is played, whether a voiceprint of the target voice information is matched with a voiceprint template of the attribution user is detected, wherein the target voice information comprises preset content used for indicating a played message;
and if the voiceprint of the target voice message is matched with the voiceprint template of the attribution user, determining that a playing instruction triggered by the attribution user is received.
6. The method according to any one of claims 1 to 5, wherein said querying whether a control record for the device is recorded in the first time period adjacent to the current time point comprises:
detecting whether a message being played exists in the equipment;
and when no message being played exists in the equipment, inquiring whether a control record for the equipment is recorded in the first time period adjacent to the current time point.
7. The method according to any one of claims 1 to 5, wherein the message to be processed is a notification message sent by a message push terminal for indicating that a message is to be played, and the playing the message to be played comprises:
sending a response message for requesting to acquire the message to be played to the message pushing end;
receiving the message to be played sent by the message pushing end;
and playing the message to be played.
8. The method according to any one of claims 1 to 5, wherein at least one message queue for recording messages is stored in the device, wherein each message queue corresponds to a source identifier;
after obtaining the query result, the method further comprises:
when the query result is that no control record for the equipment is recorded in the first time period adjacent to the current time point, acquiring a source identifier of the message to be played;
determining a target message queue corresponding to the source identifier of the message to be played;
storing the message to be played to the target message queue;
wherein the source identification comprises: and the identifier of the client side sending the message to be played, at least one of the identifier of the user sending the message to be played and the identifier of the group sending the message to be played.
9. The method of claim 8, wherein at least two message queues are stored in the device, the at least two message queues comprising: the method comprises the following steps that a priority queue and a conventional queue are arranged, a source identifier corresponding to the priority queue is a preset priority source identifier, and the method further comprises the following steps:
and when a playing instruction is received, firstly playing the unread messages in the priority queue, and then playing the unread messages in the conventional queue.
10. The method of claim 9, further comprising:
and in the process of playing the unread messages in the priority queue, if a message to be played is received, inserting the message to be played into the unread sub-queue of the priority queue.
11. The method of claim 8, further comprising:
when a play control instruction for indicating to play the previous message is received, if the unread message in the first message queue is currently played, then playing the read message stored last in the first message queue, and if the read message in the first message queue is currently played, then playing the read message positioned before the currently played read message in the first message queue;
when a playing control instruction for indicating to play the next message is received, playing the message positioned behind the message currently being played in the first message queue;
when a play control instruction for indicating replay of the message is received, repeatedly playing the message played last time in the first message queue;
and stopping playing the message when receiving a playing control instruction for instructing to stop playing the message.
12. An apparatus message play control apparatus, comprising:
the device comprises a receiving module, a playing module and a processing module, wherein the receiving module is used for receiving a message to be processed, and the message to be processed is a message to be played or a notification message for indicating the message to be played;
the detection module is used for detecting the current time point of the received message to be processed;
a determining module for determining a first time period;
the query module is used for querying whether a control record for the equipment is recorded in the first time period adjacent to the current time point and obtaining a query result;
and the first playing module is used for playing the message to be played or playing the notification message according to the query result when the query result indicates that the control record for the equipment is recorded in the first time period adjacent to the current time point.
13. The apparatus of claim 12, wherein the first playing module is configured to:
when the query result is that a control record for the equipment is recorded in the first time period adjacent to the current time point, playing the message to be played or playing the notification message;
the device further comprises:
and the second playing module is used for playing a prompt tone when the query result is that the control record aiming at the equipment is not recorded in the first time period adjacent to the current time point.
14. A message playing device, characterized in that the message playing device comprises a processor and a memory, in which at least one instruction, at least one program, set of codes or set of instructions is stored, which is loaded and executed by the processor to implement the device message playing control method according to any one of claims 1 to 11.
15. A computer-readable storage medium, having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by a processor to implement the device message play control method according to any one of claims 1 to 11.
CN201710612872.7A 2017-07-25 2017-07-25 Equipment message playing control method and device, message playing equipment and storage medium Active CN107465595B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710612872.7A CN107465595B (en) 2017-07-25 2017-07-25 Equipment message playing control method and device, message playing equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710612872.7A CN107465595B (en) 2017-07-25 2017-07-25 Equipment message playing control method and device, message playing equipment and storage medium

Publications (2)

Publication Number Publication Date
CN107465595A CN107465595A (en) 2017-12-12
CN107465595B true CN107465595B (en) 2021-01-12

Family

ID=60547025

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710612872.7A Active CN107465595B (en) 2017-07-25 2017-07-25 Equipment message playing control method and device, message playing equipment and storage medium

Country Status (1)

Country Link
CN (1) CN107465595B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108055406B (en) * 2017-12-27 2020-12-25 广东小天才科技有限公司 Communication message interaction method and mobile terminal
CN108156603B (en) * 2017-12-29 2021-03-19 海能达通信股份有限公司 Method and system for user identity authentication in private network call
CN110213153B (en) * 2018-05-21 2021-12-28 腾讯科技(深圳)有限公司 Display method, acquisition method, device, terminal and storage medium of unread messages
CN108804898A (en) * 2018-05-25 2018-11-13 维沃移动通信有限公司 A kind of message playback method and mobile terminal
CN111104088B (en) * 2018-10-25 2023-10-03 阿里巴巴集团控股有限公司 Method and system for broadcasting information through voice equipment
CN109889643A (en) * 2019-03-29 2019-06-14 广东小天才科技有限公司 Voice message broadcasting method and device and storage medium
CN110086941B (en) * 2019-04-30 2021-03-26 Oppo广东移动通信有限公司 Voice playing method and device and terminal equipment
CN110618783B (en) * 2019-09-12 2021-04-13 北京小米移动软件有限公司 Text broadcasting method, device and medium
CN111061418A (en) * 2019-11-13 2020-04-24 深圳市优必选科技股份有限公司 Voice message listening method and device, computer equipment and storage medium
CN113448725A (en) * 2021-05-27 2021-09-28 深圳震有科技股份有限公司 Data pushing method, device, terminal and storage medium
CN114866963B (en) * 2022-03-16 2024-06-25 青岛海尔科技有限公司 Message sending method, storage medium and electronic device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102097044A (en) * 2009-12-11 2011-06-15 鸿富锦精密工业(深圳)有限公司 Play equipment and play control method
CN202374281U (en) * 2010-11-08 2012-08-08 新华电脑股份有限公司 Voice data broadcasting apparatus
CN104125132A (en) * 2013-04-25 2014-10-29 腾讯科技(深圳)有限公司 Voice message playing method and device thereof
CN104394137A (en) * 2014-11-18 2015-03-04 小米科技有限责任公司 Voice call reminding method and device
CN105682011A (en) * 2016-03-22 2016-06-15 广东欧珀移动通信有限公司 Playback device Bluetooth module control method and device, and audio and video playing system
US9484030B1 (en) * 2015-12-02 2016-11-01 Amazon Technologies, Inc. Audio triggered commands
CN106487642A (en) * 2015-08-28 2017-03-08 中兴通讯股份有限公司 A kind of method and apparatus of pushed information

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102097044A (en) * 2009-12-11 2011-06-15 鸿富锦精密工业(深圳)有限公司 Play equipment and play control method
CN202374281U (en) * 2010-11-08 2012-08-08 新华电脑股份有限公司 Voice data broadcasting apparatus
CN104125132A (en) * 2013-04-25 2014-10-29 腾讯科技(深圳)有限公司 Voice message playing method and device thereof
CN104394137A (en) * 2014-11-18 2015-03-04 小米科技有限责任公司 Voice call reminding method and device
CN106487642A (en) * 2015-08-28 2017-03-08 中兴通讯股份有限公司 A kind of method and apparatus of pushed information
US9484030B1 (en) * 2015-12-02 2016-11-01 Amazon Technologies, Inc. Audio triggered commands
CN105682011A (en) * 2016-03-22 2016-06-15 广东欧珀移动通信有限公司 Playback device Bluetooth module control method and device, and audio and video playing system

Also Published As

Publication number Publication date
CN107465595A (en) 2017-12-12

Similar Documents

Publication Publication Date Title
CN107465595B (en) Equipment message playing control method and device, message playing equipment and storage medium
CN106210755B (en) A kind of methods, devices and systems playing live video
CN111722824B (en) Voice control method, device and computer storage medium
CN109921976B (en) Group-based communication control method, device and storage medium
CN108320744B (en) Voice processing method and device, electronic equipment and computer readable storage medium
WO2016169465A1 (en) Method, apparatus and system for displaying screen information
KR101978590B1 (en) Message updating method, device and terminal
CN107393548B (en) Method and device for processing voice information collected by multiple voice assistant devices
US10951557B2 (en) Information interaction method and terminal
CN106302996B (en) Message display method and device
CN106528545B (en) Voice information processing method and device
CN106375774B (en) Method, device and system for controlling display content of live broadcast room
CN110152307B (en) Virtual article issuing method, device and storage medium
CN106940997B (en) Method and device for sending voice signal to voice recognition system
CN107948729B (en) Rich media processing method and device, storage medium and electronic equipment
CN103747141A (en) Method and system for controlling applications loaded in mobile terminal
CN103294442A (en) Method, device and terminal unit for playing prompt tones
CN112269842A (en) Information processing method and device, storage medium and computer equipment
WO2018161788A1 (en) Multimedia data sharing method and device
CN111862965A (en) Awakening processing method and device, intelligent sound box and electronic equipment
CN109728918B (en) Virtual article transmission method, virtual article reception method, device, and storage medium
CN107948408B (en) Media file playing method and device
CN111274463B (en) Information display method, device and storage medium based on IM contact person grouping setting
CN105577712B (en) A kind of file uploading method, device and system
CN105357388A (en) Information recommending method 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