CN111399797B - Voice message playing method and device, electronic equipment and storage medium - Google Patents

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

Info

Publication number
CN111399797B
CN111399797B CN202010158858.6A CN202010158858A CN111399797B CN 111399797 B CN111399797 B CN 111399797B CN 202010158858 A CN202010158858 A CN 202010158858A CN 111399797 B CN111399797 B CN 111399797B
Authority
CN
China
Prior art keywords
voice message
message
voice
playing
play
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
CN202010158858.6A
Other languages
Chinese (zh)
Other versions
CN111399797A (en
Inventor
刘硕
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202010158858.6A priority Critical patent/CN111399797B/en
Publication of CN111399797A publication Critical patent/CN111399797A/en
Application granted granted Critical
Publication of CN111399797B publication Critical patent/CN111399797B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/167Audio in a user interface, e.g. using voice commands for navigating, audio feedback
    • 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/043Real-time or near real-time messaging, e.g. instant messaging [IM] using or handling presence information

Abstract

The disclosure relates to a voice message playing method, a voice message playing device, electronic equipment and a storage medium, and belongs to the technical field of computers. The method comprises the following steps: displaying voice messages sent by the associated user identifiers through an interactive interface; when a first playing operation of a first voice message is detected, acquiring a plurality of voice messages which are sent by an associated user identifier and are in an unplayed state, wherein the first playing operation is used for indicating to play the voice message in the unplayed state, and the first voice message is any voice message displayed in an interactive interface; the plurality of voice messages are played in sequence. Each voice message is not required to be played respectively, and the first voice message in the plurality of voice messages is not required to be played by sliding up and down, and the plurality of voice messages can be played by executing the first playing operation on any voice message, so that the user operation is simplified, the time consumption is reduced, the playing efficiency of the voice messages is improved, and the flexibility of the playing mode of the voice messages is enhanced.

Description

Voice message playing method and device, electronic equipment and storage medium
Technical Field
The disclosure relates to the field of computer technology, and in particular, to a method and device for playing a voice message, an electronic device and a storage medium.
Background
With rapid development of computer technology and wide application of instant messaging functions, user interaction demands are gradually increased. When a plurality of voice messages are received, how to flexibly play the plurality of voice messages directly influences the interaction efficiency of the user.
In the related art, a plurality of received voice messages are displayed in an interactive interface, a user can select any voice message from the plurality of received voice messages to play, or can slide up and down in the interactive interface, a first unreflected voice message in the plurality of voice messages is displayed, and the plurality of voice messages are sequentially played from the voice message.
In the above scheme, if a plurality of voice messages are desired to be played, the first unplayed voice message needs to be found by sliding up and down, so that the operation is complex, and the consumed time is too long.
Disclosure of Invention
The disclosure provides a voice message playing method, a voice message playing device, an electronic device and a storage medium, which can simplify user operation, reduce time consumption and improve playing efficiency.
According to a first aspect of an embodiment of the present disclosure, there is provided a voice message playing method, including:
Displaying voice messages sent by the associated user identifiers through an interactive interface;
when a first playing operation of a first voice message is detected, acquiring a plurality of voice messages which are sent by the associated user identifier and are in an unplayed state, wherein the first playing operation is used for indicating to play the voice message in the unplayed state, and the first voice message is any voice message displayed in the interactive interface;
and sequentially playing the voice messages.
In one possible implementation manner, when the first playing operation of the first voice message is detected, acquiring a plurality of voice messages sent by the associated user identifier and in an unplayed state, where the voice messages include:
when a first triggering operation on the first voice message is detected, displaying a play mode list in the interactive interface, wherein the play mode list at least comprises a first play option, and the first play option is used for indicating to play all voice messages in the non-play state;
and when the selection operation of the first playing option is detected, acquiring all voice messages which are sent by the associated user identification and are in the non-playing state.
In another possible implementation manner, after the voice message sent by the associated user identifier is displayed through the interactive interface, the method further includes:
when a second playing operation of the first voice message is detected, at least one voice message and the first voice message which are sent by the associated user identifier and are positioned in front of the first voice message are acquired, wherein the second playing operation is used for indicating to play the first voice message and the voice message positioned in front of the first voice message;
and sequentially playing the at least one voice message and the first voice message.
In another possible implementation manner, when the second playing operation of the first voice message is detected, at least one voice message sent by the associated user identifier and located before the first voice message and the first voice message are acquired, including:
when a first triggering operation on the first voice message is detected, displaying a play mode list in the interactive interface, wherein the play mode list at least comprises a second play option, and the second play option is used for indicating the first voice message and the voice message before the first voice message is played;
And when the selection operation of the second playing option is detected, at least one voice message and the first voice message which are sent by the associated user identifier and are positioned before the first voice message are acquired.
In another possible implementation manner, when the second playing operation of the first voice message is detected, at least one voice message sent by the associated user identifier and located before the first voice message and the first voice message are acquired, including:
when a second playing operation of the first voice message is detected, acquiring the first voice message and a first sending time of the first voice message;
and acquiring at least one voice message sent by the associated user identifier, wherein the sending time of the voice message is within a preset duration before the first sending time.
In another possible implementation manner, when the second playing operation of the first voice message is detected, at least one voice message sent by the associated user identifier and located before the first voice message and the first voice message are acquired, including:
when a second playing operation of the first voice message is detected, the first voice message and a preset number of voice messages positioned in front of the first voice message are acquired.
In another possible implementation manner, when the second playing operation of the first voice message is detected, at least one voice message sent by the associated user identifier and located before the first voice message and the first voice message are acquired, including:
when a second playing operation of the first voice message is detected, a first message identifier of the first voice message is obtained;
querying a database for a plurality of message identifications with sender user identifications as the associated user identifications and state identifications as first state identifications, wherein the plurality of message identifications comprise at least one message identification and the first message identification which are positioned before the first message identification;
and acquiring a plurality of voice messages corresponding to the message identifiers.
In another possible implementation manner, after the voice message sent by the associated user identifier is displayed through the interactive interface, the method further includes:
when a third playing operation of the first voice message is detected, acquiring the first voice message and at least one voice message which is sent by the associated user identifier and is positioned behind the first voice message, wherein the third playing operation is used for indicating to play the first voice message and the voice message positioned behind the first voice message;
And sequentially playing the first voice message and the at least one voice message.
In another possible implementation manner, when the third playing operation of the first voice message is detected, the acquiring the first voice message and at least one voice message sent by the associated user identifier and located after the first voice message includes:
when a first triggering operation on the first voice message is detected, displaying a play mode list in the interactive interface, wherein the play mode list at least comprises a third play option, and the third play option is used for indicating to play the first voice message and the voice message positioned behind the first voice message;
and when the selection operation of the third playing option is detected, acquiring the first voice message and at least one voice message which is sent by the associated user identifier and is positioned behind the first voice message.
In another possible implementation manner, when detecting the third play operation of the first voice message, acquiring the first voice message and at least one voice message sent by the associated user identifier and located after the first voice message, including:
When a third playing operation of the first voice message is detected, a first message identifier of the first voice message is obtained;
querying a database for a plurality of message identifications with sender user identifications as the associated user identifications and state identifications as first state identifications, wherein the plurality of message identifications comprise the first message identifications and at least one message identification positioned after the first message identifications;
and acquiring a plurality of voice messages corresponding to the message identifiers.
In another possible implementation manner, when the first playing operation of the first voice message is detected, the acquiring the plurality of voice messages sent by the associated user identifier and in the unplayed state includes:
when the first playing operation of the first voice message is detected, a voice message list is obtained, wherein the voice message list comprises a plurality of voice messages sent by the associated user identifier, and the first voice message in the voice message list is the first voice message in the unplayed state;
the sequentially playing the plurality of voice messages comprises the following steps:
and sequentially playing the plurality of voice messages in the voice message list.
In another possible implementation manner, after the voice message sent by the associated user identifier is displayed through the interactive interface, the method further includes:
and playing the first voice message when a fourth playing operation of the first voice message is detected, wherein the fourth playing operation is used for indicating to play the first voice message.
In another possible implementation manner, when the fourth playing operation of the first voice message is detected, after the first voice message is played, the method further includes:
acquiring the voice message which is sent by the associated user identifier, is positioned behind the first voice message and is in the unplayed state;
and playing the acquired voice message.
In another possible implementation, the method further includes:
stopping playing the voice message when detecting the playing stopping operation of the voice message currently being played.
In another possible implementation manner, when the first playing operation of the first voice message is detected, the acquiring the plurality of voice messages sent by the associated user identifier and in the unplayed state includes:
and when the first playing operation of the first voice message is detected, inquiring a plurality of voice messages with sender user identification as the associated user identification and state identification as a first state identification from a database.
In another possible implementation manner, when the first playing operation of the first voice message is detected, the acquiring the plurality of voice messages sent by the associated user identifier and in the unplayed state includes:
when the first playing operation of the first voice message is detected, a first message identifier of the first voice message is obtained;
querying a plurality of message identifications with sender user identifications as the associated user identifications and state identifications as first state identifications from a database;
and acquiring a plurality of voice messages corresponding to the message identifiers.
In another possible implementation, the method further includes:
when any voice message is played, the state identifier corresponding to the voice message in the database is switched from the first state identifier to the second state identifier.
According to a second aspect of embodiments of the present disclosure, there is provided a voice message playing device, the device comprising:
the display unit is configured to display the voice message sent by the associated user identifier through the interactive interface;
the acquisition unit is configured to acquire a plurality of voice messages which are sent by the associated user identifier and are in an unplayed state when a first playing operation of a first voice message is detected, wherein the first playing operation is used for indicating to play the voice message in the unplayed state, and the first voice message is any voice message displayed in the interactive interface;
And the playing unit is configured to sequentially play the plurality of voice messages.
In one possible implementation manner, the acquiring unit includes:
a list display subunit, configured to display a play mode list in the interactive interface when detecting a first trigger operation on the first voice message, where the play mode list includes at least a first play option, where the first play option is used to indicate to play all voice messages in the unplayed state;
and the message acquisition subunit is configured to acquire all voice messages which are sent by the associated user identifier and are in the unplayed state when the selection operation of the first play option is detected.
In another possible implementation, the apparatus further includes:
the obtaining unit is further configured to obtain at least one voice message and the first voice message sent by the associated user identifier and located before the first voice message when a second play operation of the first voice message is detected, where the second play operation is used to instruct to play the first voice message and the voice message located before the first voice message;
The playing unit is further configured to sequentially play the at least one voice message and the first voice message.
In another possible implementation manner, the acquiring unit includes:
a list display subunit, configured to display a play mode list in the interactive interface when detecting a first trigger operation on the first voice message, where the play mode list includes at least a second play option, where the second play option is used to indicate the first voice message and a voice message before the first voice message is played;
and the message acquisition subunit is configured to acquire at least one voice message and the first voice message, which are sent by the associated user identifier and are positioned before the first voice message, when the selection operation of the second play option is detected.
In another possible implementation manner, the acquiring unit further includes:
a time acquisition subunit configured to acquire the first voice message and a first sending time of the first voice message when a second playing operation of the first voice message is detected;
and the message acquisition subunit is configured to acquire at least one voice message sent by the associated user identifier, wherein the sending time of the voice message is within a preset duration before the first sending time.
In another possible implementation manner, the acquiring unit further includes:
and the quantity acquisition subunit is configured to acquire the first voice message and a preset quantity of voice messages positioned before the first voice message when the second playing operation of the first voice message is detected.
In another possible implementation manner, the acquiring unit further includes:
an identification acquisition subunit configured to acquire a first message identification of the first voice message when a second play operation on the first voice message is detected;
a query subunit configured to query, from a database, a plurality of message identifications having a sender user identification as the associated user identification and a status identification as a first status identification, the plurality of message identifications including at least one message identification preceding the first message identification and the first message identification;
and the message acquisition subunit is configured to acquire a plurality of voice messages corresponding to the plurality of message identifiers.
In another possible implementation, the apparatus further includes:
the obtaining unit is further configured to obtain the first voice message and at least one voice message sent by the associated user identifier and located after the first voice message when a third play operation of the first voice message is detected, where the third play operation is used to instruct to play the first voice message and the voice message located after the first voice message;
The playing unit is further configured to sequentially play the first voice message and the at least one voice message.
In another possible implementation manner, the acquiring unit further includes:
a list display subunit configured to display a play mode list in the interactive interface when a first trigger operation on the first voice message is detected, wherein the play mode list at least comprises a third play option, and the third play option is used for indicating to play the first voice message and a voice message positioned behind the first voice message;
a message obtaining subunit configured to obtain, when detecting the selection operation of the third play option, the first voice message, and at least one voice message sent by the associated user identifier and located after the first voice message.
In another possible implementation manner, the acquiring unit further includes:
an identification acquisition subunit configured to acquire a first message identification of the first voice message when a third play operation on the first voice message is detected;
a query subunit configured to query, from a database, a plurality of message identifications having a sender user identification as the associated user identification and a status identification as a first status identification, the plurality of message identifications including the first message identification and at least one message identification located after the first message identification;
And the message acquisition subunit is configured to acquire a plurality of voice messages corresponding to the plurality of message identifiers.
In another possible implementation manner, the acquiring unit further includes:
a message list obtaining subunit configured to obtain, when the first play operation on the first voice message is detected, a voice message list, where the voice message list includes a plurality of voice messages sent by the associated user identifier, and a first voice message in the voice message list is a first voice message in the unplayed state;
the playing unit further includes:
and the playing subunit is configured to sequentially play the plurality of voice messages in the voice message list.
In another possible implementation, the apparatus further includes:
the playing unit is further configured to play the first voice message when a fourth playing operation of the first voice message is detected, wherein the fourth playing operation is used for indicating to play the first voice message.
In another possible implementation, the apparatus further includes:
the acquiring unit is further configured to acquire the voice message which is sent by the associated user identifier and is located behind the first voice message and is in the unplayed state;
The playing unit is further configured to play the acquired voice message.
In another possible implementation, the apparatus further includes:
and a play stopping unit configured to stop playing the voice message when a play stopping operation of the currently playing voice message is detected.
In another possible implementation manner, the acquiring unit includes:
and the message acquisition subunit is configured to query a database for a plurality of voice messages with sender user identifications as the associated user identifications and state identifications as first state identifications when the first playing operation of the first voice message is detected.
In another possible implementation manner, the acquiring unit includes:
an identification acquisition subunit configured to acquire a first message identification of the first voice message when the first play operation on the first voice message is detected;
a querying subunit configured to query, from a database, a plurality of message identities whose sender user identities are the associated user identities and whose status identities are first status identities;
and the message acquisition subunit is configured to acquire a plurality of voice messages corresponding to the plurality of message identifiers.
In another possible implementation, the apparatus further includes:
and the switching unit is configured to switch the state identifier corresponding to the voice message in the database from the first state identifier to the second state identifier when any voice message is played.
According to a third aspect of embodiments of the present disclosure, there is provided an electronic device for playing a voice message, the electronic device comprising:
one or more processors;
volatile or non-volatile memory for storing the one or more processor-executable commands;
wherein the one or more processors are configured to perform the voice message playing method of the first aspect.
According to a fourth aspect of embodiments of the present disclosure, there is provided a non-transitory computer readable storage medium, which when executed by a processor of an electronic device, causes the electronic device to perform the voice message playing method of the first aspect.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer program product, which when executed by a processor of an electronic device, causes the electronic device to perform the voice message playing method of the first aspect.
According to the voice message playing method, the voice message playing device, the electronic equipment and the storage medium, voice messages sent by the associated user identifiers are displayed through the interactive interface, when a first playing operation of the first voice message is detected, a plurality of voice messages which are sent by the associated user identifiers and are in an unplayed state are obtained, and the voice messages are sequentially played, wherein the first playing operation is used for indicating to play the voice messages in the unplayed state, and the first voice message is any voice message displayed in the interactive interface. The user does not need to play each voice message respectively, and also does not need to find the first voice message in the plurality of voice messages by sliding up and down, and then starts playing from the first voice message, and all voice messages in an unplayed state, which are sent by the associated user identification, can be played only by executing a first playing operation on any voice message, even if the number of voice messages is huge, too many operations are not needed to be executed, the consumed time is reduced, and the playing efficiency of the voice messages is improved. In addition, the playing of a plurality of voice messages can be triggered at any position, so that the flexibility of the voice message playing mode is enhanced.
In addition, in the method provided by the embodiment of the disclosure, the voice message is used as a category, the voice message is played, and even if a text message, a picture message or a video message is inserted between any two voice messages, the playing of a plurality of voice messages is not affected, so that missing of part of voice messages can be avoided.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flowchart illustrating a voice message playing method according to an exemplary embodiment.
Fig. 2 is a flowchart illustrating another voice message playing method according to an exemplary embodiment.
Fig. 3 is a flowchart illustrating another voice message playing method according to an exemplary embodiment.
Fig. 4 is a flowchart illustrating another voice message playing method according to an exemplary embodiment.
Fig. 5 is a flowchart illustrating another voice message playing method according to an exemplary embodiment.
Fig. 6 is a schematic diagram illustrating a structure of a voice message playing apparatus according to an exemplary embodiment.
Fig. 7 is a schematic diagram illustrating the structure of another voice message playing apparatus according to an exemplary embodiment.
Fig. 8 is a block diagram of a terminal according to an exemplary embodiment.
Fig. 9 is a schematic diagram illustrating a structure of a server according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
Fig. 1 is a schematic diagram of a voice message playing method according to an exemplary embodiment, referring to fig. 1, including the following steps:
101. and displaying the voice message sent by the associated user identifier through the interactive interface.
102. When a first playing operation of the first voice message is detected, a plurality of voice messages which are sent by the associated user identifier and are in an unplayed state are acquired, the first playing operation is used for indicating to play the voice message in the unplayed state, and the first voice message is any voice message displayed in the interactive interface.
103. And sequentially playing the plurality of voice messages.
According to the method provided by the embodiment of the disclosure, voice messages sent by the associated user identifiers are displayed through the interactive interface, when a first playing operation of the first voice messages is detected, a plurality of voice messages which are sent by the associated user identifiers and are in an unplayed state are obtained, and the voice messages are sequentially played, wherein the first playing operation is used for indicating to play the voice messages in the unplayed state, and the first voice messages are any voice messages displayed in the interactive interface. The user does not need to play each voice message respectively, and also does not need to find the first voice message in the plurality of voice messages by sliding up and down, and then starts playing from the first voice message, and all voice messages in an unplayed state, which are sent by the associated user identification, can be played only by executing a first playing operation on any voice message, even if the number of voice messages is huge, too many operations are not needed to be executed, the consumed time is reduced, and the playing efficiency of the voice messages is improved. In addition, the playing of a plurality of voice messages can be triggered at any position, so that the flexibility of the voice message playing mode is enhanced.
In addition, in the method provided by the embodiment of the disclosure, the voice message is used as a category, the voice message is played, and even if a text message, a picture message or a video message is inserted between any two voice messages, the playing of a plurality of voice messages is not affected, so that missing of part of voice messages can be avoided.
In one possible implementation manner, when detecting a first play operation on a first voice message, acquiring a plurality of voice messages sent by an associated user identifier and in an unplayed state, including:
when a first triggering operation on the first voice message is detected, displaying a play mode list in the interactive interface, wherein the play mode list at least comprises a first play option, and the first play option is used for indicating to play all voice messages in an unrepeated state;
when the selection operation of the first playing option is detected, all voice messages which are sent by the associated user identification and are in an unplayed state are acquired.
In another possible implementation manner, after displaying the voice message sent by the associated user identifier through the interactive interface, the method further includes:
when a second playing operation of the first voice message is detected, at least one voice message and the first voice message which are sent by the associated user identifier and are positioned in front of the first voice message are acquired, wherein the second playing operation is used for indicating to play the first voice message and the voice message positioned in front of the first voice message;
And sequentially playing at least one voice message and the first voice message.
In another possible implementation manner, when the second playing operation of the first voice message is detected, at least one voice message and the first voice message sent by the associated user identifier and located before the first voice message are acquired, including:
when a first triggering operation on the first voice message is detected, displaying a play mode list in the interactive interface, wherein the play mode list at least comprises a second play option, and the second play option is used for indicating the first voice message and the voice message before the first voice message is played;
when the selection operation of the second playing option is detected, at least one voice message and the first voice message which are sent by the associated user identifier and are positioned before the first voice message are acquired.
In another possible implementation manner, when the second playing operation of the first voice message is detected, at least one voice message and the first voice message sent by the associated user identifier and located before the first voice message are acquired, including:
when a second playing operation of the first voice message is detected, the first voice message and a first sending time of the first voice message are obtained;
At least one voice message sent by the associated user identifier and with the sending time being within a preset duration before the first sending time is obtained.
In another possible implementation manner, when the second playing operation of the first voice message is detected, at least one voice message and the first voice message sent by the associated user identifier and located before the first voice message are acquired, including:
when the second playing operation of the first voice message is detected, the first voice message and a preset number of voice messages positioned in front of the first voice message are acquired.
In another possible implementation manner, when the second playing operation of the first voice message is detected, at least one voice message and the first voice message sent by the associated user identifier and located before the first voice message are acquired, including:
when a second playing operation of the first voice message is detected, a first message identifier of the first voice message is obtained;
querying a database for a plurality of message identifications with sender user identifications as associated user identifications and state identifications as first state identifications, wherein the plurality of message identifications comprise at least one message identification and the first message identification which are positioned before the first message identification;
And acquiring a plurality of voice messages corresponding to the message identifiers.
In another possible implementation manner, after displaying the voice message sent by the associated user identifier through the interactive interface, the method further includes:
when a third playing operation of the first voice message is detected, the first voice message and at least one voice message which is sent by the associated user identifier and is positioned behind the first voice message are acquired, and the third playing operation is used for indicating to play the first voice message and the voice message positioned behind the first voice message;
and sequentially playing the first voice message and at least one voice message.
In another possible implementation manner, when detecting the third play operation on the first voice message, acquiring the first voice message and associating at least one voice message sent by the user identifier and located after the first voice message, including:
when a first triggering operation on the first voice message is detected, displaying a play mode list in the interactive interface, wherein the play mode list at least comprises a third play option, and the third play option is used for indicating to play the first voice message and the voice message positioned behind the first voice message;
when the selection operation of the third playing option is detected, the first voice message and at least one voice message which is sent by the associated user identifier and is positioned behind the first voice message are acquired.
In another possible implementation manner, when detecting the third play operation on the first voice message, acquiring the first voice message and associating at least one voice message sent by the user identifier and located after the first voice message, including:
when a third playing operation of the first voice message is detected, a first message identifier of the first voice message is obtained;
querying a database for a plurality of message identifications with sender user identifications as associated user identifications and state identifications as first state identifications, wherein the plurality of message identifications comprise the first message identifications and at least one message identification positioned behind the first message identifications;
and acquiring a plurality of voice messages corresponding to the message identifiers.
In another possible implementation manner, when detecting the first play operation on the first voice message, acquiring a plurality of voice messages sent by the associated user identifier and in an unplayed state, including:
when a first playing operation of a first voice message is detected, a voice message list is obtained, the voice message list comprises a plurality of voice messages sent by an associated user identifier, and the first voice message in the voice message list is the first voice message in an unplayed state;
Sequentially playing a plurality of voice messages, including:
and sequentially playing the plurality of voice messages in the voice message list.
In another possible implementation manner, after displaying the voice message sent by the associated user identifier through the interactive interface, the method further includes:
and when the fourth playing operation of the first voice message is detected, playing the first voice message, wherein the fourth playing operation is used for indicating to play the first voice message.
In another possible implementation manner, when detecting the fourth play operation on the first voice message, after playing the first voice message, the method further includes:
acquiring a voice message which is sent by an associated user identifier and is positioned behind a first voice message and is in an unplayed state;
and playing the acquired voice message.
In another possible implementation, the method further includes:
when a stop play operation of the voice message currently being played is detected, the voice message is stopped being played.
In another possible implementation manner, when detecting the first play operation on the first voice message, acquiring a plurality of voice messages sent by the associated user identifier and in an unplayed state, including:
when a first play operation on the first voice message is detected, querying a database for a plurality of voice messages with sender user identifications as associated user identifications and state identifications as first state identifications.
In another possible implementation manner, when detecting the first play operation on the first voice message, acquiring a plurality of voice messages sent by the associated user identifier and in an unplayed state, including:
when a first playing operation of the first voice message is detected, a first message identifier of the first voice message is obtained;
querying a plurality of message identifications with sender user identifications as associated user identifications and state identifications as first state identifications from a database;
and acquiring a plurality of voice messages corresponding to the message identifiers.
In another possible implementation, the method further includes:
when any voice message is played, the state identifier corresponding to the voice message in the database is switched from the first state identifier to the second state identifier.
The method for carrying out interaction based on the instant messaging function is more and more popular in life of people, and the interaction based on the method brings convenience to the interaction of people and can improve the interaction efficiency between people. Text messages, voice messages, picture messages, video messages, or other forms of messages may be sent through instant messaging functionality.
In view of the wide variety of situations where editing text messages is inconvenient, voice messages are becoming more popular in current interactive processes. When a plurality of voice messages are received, a user can select any voice message to play independently, or can select to play the voice messages sequentially.
The present disclosure provides a voice message playing method, which can play a plurality of voice messages in different manners by performing different playing operations on the voice messages. Depending on the play operation performed on the voice message, the present disclosure may include a number of embodiments as follows.
The method can be applied to electronic equipment, the electronic equipment comprises a terminal and also comprises a server, the terminal can be a mobile phone, a computer, a tablet personal computer and the like, and the server can be a server, a server cluster formed by a plurality of servers or a cloud computing service center.
When the electronic device includes a terminal, the terminal may acquire the voice message and play the voice message.
When the electronic device includes a server and a terminal, the server transmits a voice message to the terminal, and the terminal plays the received voice message.
Fig. 2 is a flowchart of a voice message playing method according to an exemplary embodiment, applied to an electronic device, see fig. 2, including the following steps:
201. and displaying the voice message sent by the associated user identifier through the interactive interface.
In the embodiment of the disclosure, the electronic device may log in based on a user identifier, where the user identifier is used to determine a unique user, and may be a nickname, an account number, a mobile phone number, or other identifier that may determine a unique user. Each user identifier can establish an association relationship with other user identifiers, and one user identifier can be called an associated user identifier of the other user identifier in any two user identifiers establishing the association relationship.
In addition, each user identifier can also establish an association relationship with the group identifier, which means that the user identifier is added into the group corresponding to the group identifier, and the group identifier can also be called as an association user identifier of the user identifier. The group identifier is used to determine a unique group, and may be a group name, a group account number, or other identifier that may determine a unique group.
The electronic equipment can display an interactive interface corresponding to any associated user identifier, send a message to the associated user identifier through the interactive interface or display the message sent by the associated user identifier, and realize interaction with the associated user identifier through the receiving and sending of the message.
For example, the electronic device installs the instant messaging application, logs in the instant messaging application based on the user identifier, establishes an association relationship with other user identifiers through the instant messaging application, sends a message to the associated user identifier or receives a message sent by the associated user identifier, and achieves interaction with the associated user identifier.
The message may be any one of a text message, a voice message, a picture message and a video message, and may also be other forms of messages. The embodiment of the disclosure takes a voice message as an example, and describes a process of playing the voice message.
The electronic device may receive voice messages sent by any of the associated user identities, the electronic device further having a database for storing received voice messages. And each time a voice message is received, the electronic equipment adds the voice message and description information corresponding to the voice message into a database. When a plurality of voice messages are received, the database comprises the voice messages and description information corresponding to each voice message.
The description information at least comprises a message identifier, a sender user identifier, a sending time and a playing state. The message identifier is used to determine a unique voice message, and may be a code determined according to the receiving order, or may be an identifier determined in other manners. The sender user identity is the user identity that sent the voice message, such as a certain associated user identity of the user identity. The transmission time is used to represent the time when the sender user identification transmitted the voice message. The play state indicates the play condition of the voice message, including a played state and an unplayed state. Alternatively, the play status may be represented by a status identifier, where the status identifier includes a first status identifier and a second status identifier, where the first status identifier indicates that the voice message is in an unplayed state and the second status identifier indicates that the voice message is in a played state.
It should be noted that, the message received by the electronic device may include multiple forms, and each time a message is received, the electronic device may determine the type of the message, determine whether the message is a voice message, and may also obtain a message identifier, a sending time, a corresponding download path, a sender user identifier, a playing state, and the like of the message.
In the embodiment of the disclosure, taking any associated user identifier as an example, when the electronic device receives a plurality of voice messages sent by the associated user identifier, the electronic device stores each voice message in the plurality of voice messages and corresponding description information in a database.
In one possible implementation, each time the electronic device receives a voice message, the voice message and the corresponding description information are stored in a database in the form of a table, each line in the table represents the voice message and each corresponding description information, or each column in the table represents the voice message and each corresponding description information.
After the electronic equipment receives the voice message sent by the associated user identifier, the voice message can be displayed in an interactive interface corresponding to the associated user identifier, and the voice message can be played later.
In one possible implementation manner, after the electronic device logs in based on the user identifier, an information display interface is displayed, wherein the information display interface comprises a plurality of interaction inlets, each interaction inlet is used for entering a corresponding interaction interface, and the electronic device can display the interaction interface of the associated user identifier corresponding to the interaction inlet by triggering the interaction inlet. The plurality of interactive portals comprise target interactive portals corresponding to the associated user identifiers, and when triggering operation of the target interactive portals is detected, interactive interfaces corresponding to the associated user identifiers are displayed, wherein the interactive interfaces comprise voice messages sent by the associated user identifiers.
The triggering operation may be a clicking operation, a long-pressing operation, a left sliding operation or a right sliding operation, and may also be other triggering operations, which are not limited in particular in the embodiments of the present disclosure.
In another possible implementation manner, the electronic device receives an interactive interface display instruction, where the interactive interface display instruction carries the associated user identifier, queries a database according to the associated user identifier, obtains a plurality of voice messages sent by the associated user identifier, and displays the plurality of voice messages through the interactive interface.
When the number of the voice messages is small, the plurality of voice messages can be displayed through the interactive interface, when the number of the voice messages is large, the plurality of voice messages cannot be simultaneously displayed through the interactive interface, and at least one voice message which is sent recently and is associated with the user identifier can be displayed through the interactive interface. When the user wishes to view other voice messages sent by the associated user identifier, the user can slide up and down in the interactive interface, so that other voice messages can be displayed.
The user may perform a play operation, a delete operation, or a set to viewed operation based on any voice message currently displayed, or may perform other operations as well.
202. And when the first playing operation of the first voice message is detected, acquiring a plurality of voice messages which are sent by the associated user identification and are in an unplayed state.
When a user identity receives a plurality of voice messages sent in association with the user identity, it is generally desirable to be able to play the plurality of voice messages in sequence, starting with the first voice message of the plurality of voice messages. However, considering that the number of the plurality of voice messages is large, the interactive interface cannot display the first voice message currently, so in the embodiment of the disclosure, the plurality of voice messages may be sequentially played by executing the first playing operation on any voice message currently displayed.
In the embodiment of the disclosure, a first voice message is taken as an example, and a process of playing a plurality of voice messages is described. The first playing operation is used for indicating to play the voice message in the non-playing state, and the first voice message is any voice message displayed in the interactive interface. The first play operation may be any one of a click operation, a long press operation, a left slide operation, and a right slide operation, and may also be other operations.
In one possible implementation manner, when detecting a first play operation on a first voice message, acquiring a plurality of voice messages sent by an associated user identifier and in an unplayed state, including: when a first triggering operation on the first voice message is detected, a play mode list is displayed in an interactive interface corresponding to the associated user identifier, wherein the play mode list at least comprises a first play option and can also comprise other play options, and the first play option is used for indicating to play all voice messages which are sent by the associated user identifier and are in an unplayed state. And when the selection operation of the first playing option is detected, acquiring all voice messages which are sent by the associated user identifier and are in an unplayed state.
The first playing operation and the selecting operation may be any one of a clicking operation, a long pressing operation, a left sliding operation and a right sliding operation, and may also be other operations, which may be the same or different.
For example, when a long-press operation on the first voice message is detected, a play mode list is displayed, the play mode list comprises a first play option, and when a click operation on the first play option is detected, all voice messages which are sent by the associated user identifier and are in an unplayed state are acquired.
In another possible implementation manner, since the database includes the voice message and the description information of the voice message, the description information includes the sender user identifier and the status identifier, when the first play operation of the first voice message is detected, acquiring a plurality of voice messages sent by the associated user identifier and in an unplayed state includes: when a first play operation is detected on the first voice message, a plurality of voice messages with sender user identification as the associated user identification and state identification as a first state identification are queried from a database.
In another possible implementation manner, since the description information further includes a message identifier, and the database further includes a message identifier of a voice message, when a first play operation on the first voice message is detected, acquiring a plurality of voice messages sent by the associated user identifier and in an unplayed state includes: when a first play operation of the first voice message is detected, a first message identification of the first voice message is acquired. And inquiring a plurality of message identifications with the sender user identification as the associated user identification and the state identification as the first state identification from the database, and acquiring a plurality of voice messages corresponding to the plurality of message identifications.
For example, when receiving 3 voice messages with message identifiers of 10001, 10002 and 10003, and detecting a long-press operation on the voice message with message identifier of 10003, the user a displays a first play option, and when detecting a click operation on the first play option, queries out message identifiers 10001, 10002 and 10003 corresponding to all voice messages in an unplayed state. At this time, the electronic device queries the message identifier that is less than 10003 and the corresponding state identifier is the message identifier of the first state identifier. Subsequently, the electronic device may sequentially play the voice messages corresponding to the message identifier 10001, the message identifier 10002, and the message identifier 10003.
In another possible implementation, considering that when a plurality of voice messages are received, a user may trigger any voice message displayed at present by mistake, so that the voice message is in a played state, in one possible implementation, when a first playing operation on a first voice message is detected, not only a plurality of voice messages sent by an associated user identifier and in an unplayed state, but also a voice message sent by an associated user identifier and in a played state are obtained, and the voice message in the played state is located after the first voice message in the unplayed state.
By acquiring all the voice messages after the first voice message in the unplayed state, even if the plurality of voice messages comprise the played voice messages, the voice messages can be played in sequence later when being played, so that the continuity and the integrity of the plurality of voice messages can be ensured, the situation that the content known by the user is interrupted due to the lack of part of voice messages is avoided, and the listening and understanding of the user are facilitated.
In another possible implementation manner, when detecting the first play operation on the first voice message, acquiring a plurality of voice messages sent by the associated user identifier and in an unplayed state, including: when a first playing operation of the first voice message is detected, a voice message list is obtained, the voice message list comprises a plurality of voice messages sent by the associated user identification, and the first voice message in the voice message list is the first voice message in an unplayed state.
In the related art, a user searches for a first voice message in an unplayed state by sliding up and down, however, in the case that a non-voice message is inserted between any two adjacent voice messages, it may result in that a voice message in an unplayed state before the one or more non-voice messages is ignored or a voice message in an unplayed state after the one or more non-voice messages is ignored due to the user's negligence. Wherein the non-voice form of the message may be at least one of a text message, a picture message, and a video message.
In the implementation of the present disclosure, when the first play operation of the first voice message is detected, a plurality of voice messages in an unplayed state are directly obtained, and whether a non-voice message is inserted between the plurality of voice messages has no influence on the process of obtaining the plurality of voice messages, and the situation that the voice messages in the unplayed state are ignored does not exist, so that the play accuracy of the voice messages is improved, and the user experience is improved.
203. The plurality of voice messages are played in sequence.
After a plurality of voice messages are acquired, the electronic equipment sequentially plays the plurality of voice messages from the first voice message in the plurality of voice messages until the last voice message is played, so that a user can listen to the voice messages, and the user can acquire the content of the plurality of voice messages.
In one possible implementation, in the case of obtaining the voice message list in step 202, playing the plurality of voice messages sequentially includes: and sequentially playing the plurality of voice messages in the voice message list.
The process of sequentially playing the plurality of voice messages in the voice message list comprises the following steps: and starting from the first voice message in the voice message list, sequentially playing a plurality of voice messages in the voice message list until the last voice message in the voice message list is played. Continuous play of a plurality of voice messages can be achieved even if the voice message list includes a played voice message or a message in a non-voice form.
204. When any voice message is played, the playing state of the voice message is switched from the non-playing state to the played state.
Each of the plurality of voice messages may be a voice message in an unplayed state, or may include at least one voice message in an unplayed state and at least one voice message in a played state, which is not specifically limited.
For any voice message in the unplayed state, when the playing of the voice message is completed, the electronic equipment switches the playing state of the voice message from the unplayed state to the played state, and the voice message is indicated to be played completely. When the obtained voice messages are played, the playing states of the voice messages are played.
In one possible implementation, the playing state is represented by a state identifier, and the database includes the plurality of voice messages and the state identifier of each voice message, for any voice message, if the state identifier of the voice message is a first state identifier, the voice message is in an unplayed state, and if the state identifier of the voice message is a second state identifier, the voice message is in a played state. When any voice message is played, switching the playing state of the voice message from the non-playing state to the played state, wherein the method comprises the following steps: when any voice message is played, the state identifier corresponding to the voice message in the database is switched from the first state identifier to the second state identifier.
For example, the first state is identified as 0, the second state is identified as 1, the target voice message is in an unplayed state, and the database includes the target voice message and the state identification 0 of the target voice message. After the electronic device plays the target voice message, the state identifier of the target voice message is switched from 0 to 1.
According to the method provided by the embodiment of the disclosure, voice messages sent by the associated user identifiers are displayed through the interactive interface, when a first playing operation of the first voice messages is detected, a plurality of voice messages which are sent by the associated user identifiers and are in an unplayed state are obtained, the plurality of voice messages are sequentially played, and when any voice message is played, the playing state of the voice message is switched from the unplayed state to the played state. The user does not need to play each voice message respectively, and also does not need to find the first voice message in the plurality of voice messages by sliding up and down, and then starts playing from the first voice message, and all voice messages in an unplayed state, which are sent by the associated user identification, can be played only by executing a first playing operation on any voice message, even if the number of voice messages is huge, too many operations are not needed to be executed, the consumed time is reduced, and the playing efficiency of the voice messages is improved. In addition, the playing of a plurality of voice messages can be triggered at any position, so that the flexibility of the voice message playing mode is enhanced.
In addition, in the method provided by the embodiment of the disclosure, the voice message is used as a category, the voice message is played, and even if a text message, a picture message or a video message is inserted between any two voice messages, the playing of a plurality of voice messages is not affected, so that missing of part of voice messages can be avoided.
Fig. 3 is a flowchart of another voice message playing method according to an exemplary embodiment, applied to an electronic device, see fig. 3, including the following steps:
301. and displaying the voice message sent by the associated user identifier through the interactive interface.
Step 301 is similar to step 201 in the above embodiment, and will not be described again.
302. When the second playing operation of the first voice message is detected, at least one voice message and the first voice message which are sent by the associated user identifier and are positioned in front of the first voice message are acquired.
In view of the fact that a user may wish to play a certain voice message and a voice message located before the voice message, but is not interested in voice messages located after the voice message, the embodiment of the disclosure takes a first voice message as an example, and when a second play operation of the first voice message is detected, obtains at least one voice message and the first voice message sent by an associated user identifier and located before the first voice message. The second playing operation is used for indicating to play the first voice message and the voice message positioned before the first voice message. The second play operation may be any one of a click operation, a long press operation, a left slide operation, and a right slide operation, and may also be other operations.
In one possible implementation manner, when the second playing operation of the first voice message is detected, at least one voice message and the first voice message sent by the associated user identifier and located before the first voice message are acquired, including: when a first triggering operation on the first voice message is detected, a play mode list is displayed in an interactive interface corresponding to the associated user identifier, wherein the play mode list at least comprises a second play option and can also comprise other play options, and the second play option is used for indicating the first voice message and the voice message before the first voice message is played. When the selection operation of the second playing option is detected, at least one voice message and the first voice message which are sent by the associated user identifier and are positioned in front of the first voice message are acquired.
For example, when a long-press operation on a first voice message is detected, a play mode list is displayed, wherein the play mode list comprises a first play option and a second play option, and when a click operation on the second play option is detected, at least one voice message sent by an associated user identifier and located before the first voice message and the first voice message are acquired.
In another possible implementation manner, considering that the user may have a low interest in the voice message sent by the associated user identifier in a long time and a high interest in the recently sent voice message, the preset duration is preset, and when the second play operation on the first voice message is detected, at least one voice message and the first voice message sent by the associated user identifier and located before the first voice message are acquired, including: when the second playing operation of the first voice message is detected, the first voice message and the first sending time of the first voice message are obtained, and at least one voice message sent by the associated user identifier and with the sending time being within the preset duration before the first sending time is obtained. Wherein the first sending time is the time when the associated user identifier sends the first voice message.
By setting the preset duration, only the latest received voice message of the user identifier can be obtained, the voice message received for a long time and the latest received voice message are prevented from being played together, the consumed duration can be shortened, the user time can be saved, and the relevance between the content of the voice message and the current situation can be improved.
In another possible implementation manner, considering that the number of voice messages that the user identifier may receive in a period of time is huge, and the user only wants to listen to the recently sent multiple voice messages, the preset number is preset, when the second playing operation on the first voice message is detected, at least one voice message and the first voice message that are sent by the associated user identifier and are located before the first voice message are acquired, including: when a second playing operation of the first voice message is detected, the first voice message and a preset number of voice messages positioned in front of the first voice message are acquired.
By setting the preset number, only the preset number of voice messages which are received recently can be obtained, so that the user can be ensured to place the attention point on the content of the voice messages which are received recently, the time consumption can be shortened, and the time of the user can be saved.
In another possible implementation manner, since the description information further includes a message identifier, when the second play operation on the first voice message is detected, at least one voice message and the first voice message sent by the associated user identifier and located before the first voice message are acquired, including: and when the second playing operation of the first voice message is detected, acquiring a first message identification of the first voice message. And inquiring a plurality of message identifications with the sender user identification as the associated user identification and the state identification as the first state identification from a database, and acquiring a plurality of voice messages corresponding to the plurality of message identifications.
Wherein the plurality of message identifications includes at least one message identification preceding the first message identification and the first message identification.
It should be noted that, even if the playing of the plurality of voice messages sent by the associated user identifier is completed, the electronic device may perform the second playing operation on the first voice message, and sequentially play each of the played voice messages from the first voice message in the plurality of voice messages until the first voice message is played again.
In one possible implementation, an electronic device obtains a first message identification of a first voice message and a message identification that is not greater than the first message identification. Subsequently, the voice message corresponding to each message identifier can be played from the voice message corresponding to the first message identifier in turn until the voice message corresponding to the first message identifier is played. In the embodiment of the disclosure, message identifications of voice messages are set according to the receiving sequence from front to back, and the message identifications are smaller when the sequence is higher, and the message identifications are larger when the sequence is lower.
In another possible implementation manner, when the second playing operation of the first voice message is detected, at least one voice message and the first voice message sent by the associated user identifier and located before the first voice message are acquired, including: when the second playing operation of the first voice message is detected, a voice message list is obtained, wherein the voice message list comprises at least one voice message and a first voice message which are sent by the associated user identifier and are positioned in front of the first voice message, the first voice message in the voice message list is the first voice message in an unplayed state, and the last voice message is the first voice message.
303. And sequentially playing the at least one voice message and the first voice message.
After at least one voice message and a first voice message which are sent by the associated user identifier and are positioned before the first voice message are acquired, the electronic equipment sequentially plays the plurality of voice messages from the first voice message in the plurality of voice messages until the playing of the first voice message is completed.
In one possible implementation manner, referring to step 302, in a manner of obtaining the voice message list, sequentially playing at least one voice message and the first voice message, including: and sequentially playing the plurality of voice messages in the voice message list. The process of sequentially playing the plurality of voice messages in the voice message list comprises the following steps: sequentially playing a plurality of voice messages in the voice message list from the first voice message in the voice message list until the last voice message (the first voice message) in the voice message list is played. Continuous play of a plurality of voice messages can be achieved even if the voice message list includes a played voice message or a message in a non-voice form.
The user can select any voice message position, the voice message before playing the voice message and the voice message are flexible in playing form, and various requirements of the user are met.
304. When any voice message is played, the playing state of the voice message is switched from the non-playing state to the played state.
Step 304 is similar to step 204 in the embodiment described in fig. 2 and will not be described again.
According to the method provided by the embodiment of the disclosure, voice messages sent by the associated user identifiers are displayed through the interactive interface, when a second playing operation of the first voice messages is detected, at least one voice message and the first voice message which are sent by the associated user identifiers and are positioned in front of the first voice messages are acquired, the at least one voice message and the first voice message are sequentially played, and when any voice message is played, the playing state of the voice message is switched from an unreplaying state to a played state. The user does not need to play each voice message respectively, and also does not need to find the first voice message in the plurality of voice messages by sliding up and down, and then starts playing from the first voice message, and at least one voice message and the first voice message which are sent by the associated user identifier and are positioned in front of the first voice message can be played by executing the second playing operation on any voice message, so that even if the number of voice messages between the first voice message and the first voice message of the plurality of voice messages is huge, too many operations are not needed to be executed, the consumed time is reduced, and the playing efficiency of the voice message is improved. In addition, the playing of a plurality of voice messages can be triggered at any position, so that the flexibility of the voice message playing mode is enhanced.
In addition, in the method provided by the embodiment of the disclosure, the voice message is used as a category, the voice message is played, and even if a text message, a picture message or a video message is inserted between any two voice messages, the playing of a plurality of voice messages is not affected, so that missing of part of voice messages can be avoided.
Fig. 4 is a flowchart of another voice message playing method according to an exemplary embodiment, applied to an electronic device, see fig. 4, including the following steps:
401. and displaying the voice message sent by the associated user identifier through the interactive interface.
Step 401 is similar to step 201 in the above embodiment, and will not be described again.
402. When a third playing operation of the first voice message is detected, the first voice message and at least one voice message which is sent by the associated user identifier and is positioned behind the first voice message are acquired.
In view of the fact that a user may wish to play a certain voice message and a voice message located after the voice message, but is not interested in a voice message before the voice message, the embodiment of the disclosure takes a first voice message as an example, when detecting a third play operation on the first voice message, the electronic device may acquire the first voice message, and the associated user identifies at least one voice message that is sent and located after the first voice message. The third playing operation is used for indicating to play the first voice message and the voice message positioned behind the first voice message. The third play operation may be any one of a click operation, a long press operation, a left slide operation, and a right slide operation, and may be other operations.
In one possible implementation manner, when detecting the third play operation on the first voice message, acquiring the first voice message and associating at least one voice message sent by the user identifier and located after the first voice message, including: when the first triggering operation on the first voice message is detected, a play mode list is displayed in an interactive interface corresponding to the associated user identifier, wherein the play mode list at least comprises a third play option and can also comprise other play options. The third playing option is used for indicating to play the first voice message and the voice message positioned behind the first voice message. When detecting the selection operation of the third play option, the first voice message and at least one voice message which is sent by the associated user identifier and is positioned behind the first voice message are acquired.
For example, when a long press operation on the first voice message is detected, a play mode list is displayed, wherein the play mode list comprises a first play option, a second play option and a third play option, and when a click operation on the third play option is detected, the first voice message and at least one voice message which is sent by the associated user identifier and is located behind the first voice message are acquired.
In another possible implementation manner, since the description information further includes a message identifier, the database further includes a voice message and a message identifier of the voice message, when detecting the third play operation on the first voice message, acquiring the first voice message, and associating at least one voice message sent by the user identifier and located after the first voice message, including: and when detecting a third playing operation of the first voice message, acquiring a first message identification of the first voice message. And inquiring a plurality of message identifications with the sender user identification as the associated user identification and the state identification as the first state identification from a database, and acquiring a plurality of voice messages corresponding to the plurality of message identifications.
Wherein the plurality of message identifications includes the first message identification and at least one message identification located after the first message identification.
In one possible implementation, an electronic device obtains a first message identification of a first voice message and a message identification that is not less than the first message identification. Subsequently, the voice message corresponding to each message identifier can be played in turn from the first voice message. In the embodiment of the disclosure, message identifications of voice messages are set according to the receiving sequence from front to back, and the message identifications are smaller when the sequence is higher, and the message identifications are larger when the sequence is lower.
In another possible implementation manner, when detecting the third play operation on the first voice message, acquiring the first voice message and at least one voice message sent by the associated user identifier and located after the first voice message, including: when a third playing operation of the first voice message is detected, a voice message list is obtained, wherein the voice message list comprises the first voice message and at least one voice message which is sent by the associated user identifier and is positioned behind the first voice message, the first voice message in the voice message list is the first voice message, and the last voice message is the last voice message sent by the associated user identifier.
403. And sequentially playing the first voice message and the at least one voice message.
After the first voice message and at least one voice message which is sent by the associated user identifier and is positioned behind the first voice message are acquired, the electronic equipment sequentially plays the plurality of voice messages from the first voice message until the last voice message sent by the associated user identifier is played.
In one possible implementation manner, referring to step 402, in a manner of obtaining the voice message list, playing the first voice message and the at least one voice message sequentially includes: and sequentially playing the plurality of voice messages in the voice message list. The process of sequentially playing the plurality of voice messages in the voice message list comprises the following steps: starting from the first voice message (the first voice message) in the voice message list, sequentially playing a plurality of voice messages in the voice message list until the last voice message in the voice message list is played. Continuous play of a plurality of voice messages can be achieved even if the voice message list includes a played voice message or a message in a non-voice form.
The user can select any voice message position, play the voice message and the voice message positioned behind the voice message, the playing form is flexible, and various requirements of the user are met.
404. When any voice message is played, the playing state of the voice message is switched from the non-playing state to the played state.
Step 404 is similar to step 204 in the embodiment described in fig. 2 and will not be described again.
According to the method provided by the embodiment of the disclosure, the voice message sent by the associated user identifier is displayed through the interactive interface, when the third playing operation of the first voice message is detected, the first voice message and at least one voice message which is sent by the associated user identifier and is positioned behind the first voice message are obtained, the first voice message and the at least one voice message are sequentially played, and when any voice message is played, the playing state of the voice message is switched from the non-playing state to the played state. The user can play the first voice message and at least one voice message which is sent by the associated user identifier and is positioned behind the first voice message only by executing a third playing operation on the first voice message which is displayed currently without playing each voice message, so that the time consumption is reduced, and the playing efficiency of the voice message is improved. In addition, the playing of a plurality of voice messages can be triggered at any position, so that the flexibility of the voice message playing mode is enhanced.
In addition, in the method provided by the embodiment of the disclosure, the voice message is used as a category, the voice message is played, and even if a text message, a picture message or a video message is inserted between any two voice messages, the playing of a plurality of voice messages is not affected, so that missing of part of voice messages can be avoided.
Fig. 5 is a flowchart of another voice message playing method according to an exemplary embodiment, applied to an electronic device, see fig. 5, including the following steps:
501. and displaying the voice message sent by the associated user identifier through the interactive interface.
Step 501 is similar to step 201 in the above embodiment, and will not be described again.
502. And playing the first voice message when the fourth playing operation of the first voice message is detected.
Considering that a user may wish to play any one of the currently displayed voice messages, the embodiment of the present disclosure will take a first voice message as an example, and a process of playing the first voice message will be described.
And when the fourth playing operation of the first voice message is detected, acquiring the first voice message. Wherein the fourth play operation is used for indicating to play the first voice message. The fourth play operation may be any one of a click operation, a long press operation, a left slide operation, and a right slide operation, and may be other operations.
The process of acquiring the first voice message is similar to that of the first voice message in the above embodiment, and will not be described here again.
After the first voice message is acquired, the electronic equipment plays the first voice message for the user to listen to so that the user can acquire the content of the first voice message.
503. And acquiring the voice message which is sent by the associated user identifier and is positioned behind the first voice message and is in an unplayed state.
If the first voice message is further followed by a voice message sent by the associated user identifier and in an unplayed state, the voice message which is sent by the associated user identifier and is in an unplayed state can be automatically played for the user after the first voice message is played, wherein the voice message is indicated to be in an unplayed state after the first voice message is played.
Thus, after the first voice message is played, the electronic device obtains the voice message which is sent by the associated user identifier and is located behind the first voice message and is in an unplayed state.
The process of obtaining the voice message that is sent by the associated user id and is located after the first voice message and in the unplayed state is similar to steps 202 and 402 in the above embodiment, and will not be described herein again.
504. And playing the acquired voice message.
And acquiring the voice message which is sent by the associated user identifier and is positioned behind the first voice message and is in an unplayed state, and playing the acquired voice message by the electronic equipment.
If the number of the voice messages is one, the voice messages are directly played. And if the number of the voice messages is a plurality of voice messages, sequentially playing the acquired voice messages.
The process of playing the acquired voice message is similar to the above-mentioned steps 203 and 403, and will not be described here again.
505. When any voice message is played, the playing state of the voice message is switched from the non-playing state to the played state.
Step 505 is similar to step 204 in the embodiment described in fig. 2 and will not be described again.
According to the method provided by the embodiment of the disclosure, the voice message sent by the associated user identifier is displayed through the interactive interface, when the fourth playing operation of the first voice message is detected, the first voice message is played, the voice message which is sent by the associated user identifier and is positioned behind the first voice message and in an unplayed state is obtained, the obtained voice message is played, and when any voice message is played, the playing state of the voice message is switched from the unplayed state to the played state. The user does not need to play each voice message in the unplayed state respectively, and can play the voice message only by executing a fourth playing operation on any voice message, and can play the voice message which is sent by the associated user identifier and is positioned behind the voice message and in the unplayed state, so that the consumed time is reduced, and the playing efficiency of the voice message is improved. Any voice message can be selected from the voice messages to play according to the own requirements of the user, and the voice message in an unplayed state after the voice message is played can be started from the voice message, so that the flexibility of a voice message playing mode is enhanced.
In addition, in the method provided by the embodiment of the disclosure, the voice message is used as a category, the voice message is played, and even if a text message, a picture message or a video message is inserted between any two voice messages, the playing of a plurality of voice messages is not affected, so that missing of part of voice messages can be avoided.
It should be noted that, with the above-described embodiments, when a stop play operation of a currently playing voice message is detected, the playing of the voice message is stopped. The play stopping operation may be any one of a click operation, a long press operation, a left slide operation, and a right slide operation, and may also be other operations.
Fig. 6 is a block diagram of a voice message playing apparatus according to an exemplary embodiment, see fig. 6, comprising:
a display unit 601 configured to display a voice message sent by the associated user identifier through the interactive interface;
the obtaining unit 602 is configured to obtain, when a first play operation on a first voice message is detected, a plurality of voice messages sent by an associated user identifier and in an unplayed state, where the first play operation is used to instruct to play the voice message in the unplayed state, and the first voice message is any voice message displayed in the interactive interface;
A playing unit 603 configured to sequentially play a plurality of voice messages.
In one possible implementation, referring to fig. 7, the acquiring unit 602 includes:
a list display subunit 6021 configured to display, when detecting the first trigger operation on the first voice message, a play mode list in the interactive interface, where the play mode list includes at least a first play option, and the first play option is used to indicate to play all the voice messages in the unplayed state;
the message obtaining subunit 6022 is configured to obtain, when detecting the selection operation of the first play option, all the voice messages sent by the associated user identifier and in the unplayed state.
In another possible implementation, referring to fig. 7, the apparatus further includes:
the obtaining unit 602 is further configured to obtain at least one voice message and the first voice message sent by the associated user identifier and located before the first voice message when a second play operation of the first voice message is detected, where the second play operation is used to instruct to play the first voice message and the voice message located before the first voice message;
the playing unit 603 is further configured to sequentially play at least one voice message and the first voice message.
In another possible implementation, referring to fig. 7, the acquiring unit 602 includes:
a list display subunit 6021 configured to display, when detecting the first trigger operation on the first voice message, a play mode list in the interactive interface, where the play mode list includes at least a second play option, where the second play option is used to indicate the first voice message and a voice message before the first voice message is played;
the message obtaining subunit 6022 is configured to obtain, when detecting the selection operation of the second play option, at least one voice message and the first voice message sent by the associated user identifier and located before the first voice message.
In another possible implementation manner, referring to fig. 7, the acquiring unit 602 further includes:
a time acquisition subunit 6023 configured to acquire the first voice message and the first transmission time of the first voice message when the second play operation of the first voice message is detected;
the message obtaining subunit 6022 is configured to obtain at least one voice message sent by the associated user identifier, where the sending time is within a preset duration before the first sending time.
In another possible implementation manner, referring to fig. 7, the acquiring unit 602 further includes:
The number acquisition subunit 6024 is configured to acquire the first voice message and a preset number of voice messages located before the first voice message when the second play operation on the first voice message is detected.
In another possible implementation manner, referring to fig. 7, the acquiring unit 602 further includes:
an identification acquisition subunit 6025 configured to acquire a first message identification of the first voice message when the second play operation on the first voice message is detected;
a query subunit 6026 configured to query the database for a plurality of message identifications, including at least one message identification preceding the first message identification and the first message identification, with the sender user identification being an associated user identification and the status identification being a first status identification;
message acquisition subunit 6022 is configured to acquire a plurality of voice messages corresponding to the plurality of message identifications.
In another possible implementation, referring to fig. 7, the apparatus further includes:
the obtaining unit 602 is further configured to obtain the first voice message and at least one voice message sent by the associated user identifier and located after the first voice message when a third play operation on the first voice message is detected, where the third play operation is used to instruct to play the first voice message and the voice message located after the first voice message;
The playing unit 603 is further configured to sequentially play the first voice message and the at least one voice message.
In another possible implementation manner, referring to fig. 7, the acquiring unit 602 further includes:
a list display subunit 6021 configured to display, when detecting the first trigger operation on the first voice message, a play mode list in the interactive interface, where the play mode list includes at least a third play option, where the third play option is used to instruct to play the first voice message and a voice message located after the first voice message;
a message acquisition subunit 6022 configured to acquire the first voice message and at least one voice message sent in association with the user identification and located after the first voice message when the selection operation of the third play option is detected.
In another possible implementation manner, referring to fig. 7, the acquiring unit 602 further includes:
an identification acquisition subunit 6025 configured to acquire a first message identification of the first voice message when the third play operation on the first voice message is detected;
a query subunit 6026 configured to query the database for a plurality of message identifications, including the first message identification and at least one message identification located after the first message identification, with the sender user identification being an associated user identification and the status identification being a first status identification;
Message acquisition subunit 6022 is configured to acquire a plurality of voice messages corresponding to the plurality of message identifications.
In another possible implementation manner, referring to fig. 7, the acquiring unit 602 further includes:
a message list obtaining subunit 6021 configured to obtain, when a first play operation on the first voice message is detected, a voice message list including a plurality of voice messages sent in association with the user identifier, and the first voice message in the voice message list being a first voice message in an unplayed state;
the playing unit 603 further includes:
a play subunit 6031 configured to sequentially play the plurality of voice messages in the voice message list.
In another possible implementation, referring to fig. 7, the apparatus further includes:
the playing unit 603 is further configured to play the first voice message when a fourth playing operation of the first voice message is detected, the fourth playing operation being used for indicating to play the first voice message.
In another possible implementation, referring to fig. 7, the apparatus further includes:
an obtaining unit 602, configured to obtain a voice message sent by the associated user identifier and located after the first voice message and in an unplayed state;
The playing unit 603 is further configured to play the acquired voice message.
In another possible implementation, referring to fig. 7, the apparatus further includes:
the play stopping unit 604 is configured to stop playing the voice message when a play stopping operation of the voice message currently being played is detected.
In another possible implementation, referring to fig. 7, the acquiring unit 602 includes:
the message obtaining subunit 6022 is configured to query the database for a plurality of voice messages whose sender user identities are associated user identities and whose status identities are first status identities when a first play operation of the first voice message is detected.
In another possible implementation, referring to fig. 7, the acquiring unit 602 includes:
an identification acquisition subunit 6025 configured to acquire a first message identification of the first voice message when the first play operation of the first voice message is detected;
a querying subunit 6026 configured to query the database for a plurality of message identifications having a sender user identification as an associated user identification and a status identification as a first status identification;
message acquisition subunit 6022 is configured to acquire a plurality of voice messages corresponding to the plurality of message identifications.
In another possible implementation, referring to fig. 7, the apparatus further includes:
and a switching unit 605 configured to switch the state identifier corresponding to the voice message in the database from the first state identifier to the second state identifier when any voice message is played.
The specific manner in which the individual units perform the operations in relation to the apparatus of the above embodiments has been described in detail in relation to the embodiments of the method and will not be described in detail here.
Fig. 8 is a block diagram illustrating a terminal 800 for playing a voice message according to an exemplary embodiment. The terminal 800 is configured to perform the steps performed by the terminal in the above-mentioned voice message playing method, and may be a portable mobile terminal, for example: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, motion picture expert compression standard audio plane 3), an MP4 (Moving Picture Experts Group Audio Layer IV, motion picture expert compression standard audio plane 4) player, a notebook computer, or a desktop computer. Terminal 800 may also be referred to by other names of user devices, portable terminals, laptop terminals, desktop terminals, and the like.
In general, the terminal 800 includes: one or more processors 801, and one or more memories 802.
Processor 801 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The processor 801 may be implemented in at least one hardware form of DSP (Digital Signal Processing ), FPGA (Field-Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array ). The processor 801 may also include a main processor, which is a processor for processing data in an awake state, also referred to as a CPU (Central Processing Unit ), and a coprocessor; a coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 801 may integrate a GPU (Graphics Processing Unit, image processor) for rendering and rendering of content required to be displayed by the display screen. In some embodiments, the processor 801 may also include an AI (Artificial Intelligence ) processor for processing computing operations related to machine learning.
Memory 802 may include one or more computer-readable storage media, which may be non-transitory. Memory 802 may also include volatile memory or non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 802 is used to store at least one instruction for being possessed by processor 801 to implement the voice message playing method provided by the method embodiments of the present application.
In some embodiments, the terminal 800 may further optionally include: a peripheral interface 803, and at least one peripheral. The processor 801, the memory 802, and the peripheral interface 803 may be connected by a bus or signal line. Individual peripheral devices may be connected to the peripheral device interface 803 by buses, signal lines, or a circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 804, a touch display 805, a camera 806, audio circuitry 807, a positioning component 808, and a power supply 809.
Peripheral interface 803 may be used to connect at least one Input/Output (I/O) related peripheral to processor 801 and memory 802. In some embodiments, processor 801, memory 802, and peripheral interface 803 are integrated on the same chip or circuit board; in some other embodiments, either or both of the processor 801, the memory 802, and the peripheral interface 803 may be implemented on separate chips or circuit boards, which is not limited in this embodiment.
The Radio Frequency circuit 804 is configured to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 804 communicates with a communication network and other communication devices via electromagnetic signals. The radio frequency circuit 804 converts an electrical signal into an electromagnetic signal for transmission, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 804 includes: antenna systems, RF transceivers, one or more amplifiers, tuners, oscillators, digital signal processors, codec chipsets, subscriber identity module cards, and so forth. The radio frequency circuitry 804 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: metropolitan area networks, various generations of mobile communication networks (2G, 3G, 4G, and 13G), wireless local area networks, and/or WiFi (Wireless Fidelity ) networks. In some embodiments, the radio frequency circuit 804 may also include NFC (Near Field Communication ) related circuits, which the present application is not limited to.
The display screen 805 is used to display a UI (user interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display 805 is a touch display, the display 805 also has the ability to collect touch signals at or above the surface of the display 805. The touch signal may be input as a control signal to the processor 801 for processing. At this time, the display 805 may also be used to provide virtual buttons and/or virtual keyboards, also referred to as soft buttons and/or soft keyboards. In some embodiments, the display 805 may be one, providing a front panel of the terminal 800; in other embodiments, the display 805 may be at least two, respectively disposed on different surfaces of the terminal 800 or in a folded design; in still other embodiments, the display 805 may be a flexible display disposed on a curved surface or a folded surface of the terminal 800. Even more, the display 805 may be arranged in an irregular pattern other than rectangular, i.e., a shaped screen. The display 805 may be made of LCD (Liquid Crystal Display ), OLED (Organic Light-Emitting Diode) or other materials.
The camera assembly 806 is used to capture images or video. Optionally, the camera assembly 806 includes a front camera and a rear camera. Typically, the front camera is disposed on the front panel of the terminal and the rear camera is disposed on the rear surface of the terminal. In some embodiments, the at least two rear cameras are any one of a main camera, a depth camera, a wide-angle camera and a tele camera, so as to realize that the main camera and the depth camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize a panoramic shooting and Virtual Reality (VR) shooting function or other fusion shooting functions. In some embodiments, the camera assembly 806 may also include a flash. The flash lamp can be a single-color temperature flash lamp or a double-color temperature flash lamp. The dual-color temperature flash lamp refers to a combination of a warm light flash lamp and a cold light flash lamp, and can be used for light compensation under different color temperatures.
Audio circuitry 807 may include a microphone and a speaker. The microphone is used for collecting sound waves of users and the environment, converting the sound waves into electric signals, inputting the electric signals to the processor 801 for processing, or inputting the electric signals to the radio frequency circuit 804 for voice communication. For stereo acquisition or noise reduction purposes, a plurality of microphones may be respectively disposed at different portions of the terminal 800. The microphone may also be an array microphone or an omni-directional pickup microphone. The speaker is used to convert electrical signals from the processor 801 or the radio frequency circuit 804 into sound waves. The speaker may be a conventional thin film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, not only the electric signal can be converted into a sound wave audible to humans, but also the electric signal can be converted into a sound wave inaudible to humans for ranging and other purposes. In some embodiments, audio circuit 807 may also include a headphone jack.
The location component 808 is utilized to locate the current geographic location of the terminal 800 to enable navigation or LBS (Location Based Service, location-based services). The positioning component 808 may be a positioning component based on the United states GPS (Global Positioning System ), the Beidou system of China, the Granati system of Russia, or the Galileo system of the European Union.
A power supply 809 is used to power the various components in the terminal 800. The power supply 809 may be an alternating current, direct current, disposable battery, or rechargeable battery. When the power supply 809 includes a rechargeable battery, the rechargeable battery may support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, the terminal 800 also includes one or more sensors 810. The one or more sensors 810 include, but are not limited to: acceleration sensor 811, gyroscope sensor 812, pressure sensor 813, fingerprint sensor 814, optical sensor 815, and proximity sensor 816.
The acceleration sensor 811 can detect the magnitudes of accelerations on three coordinate axes of the coordinate system established with the terminal 800. For example, the acceleration sensor 811 may be used to detect components of gravitational acceleration in three coordinate axes. The processor 801 may control the touch display screen 805 to display a user interface in a landscape view or a portrait view according to the gravitational acceleration signal acquired by the acceleration sensor 811. Acceleration sensor 811 may also be used for the acquisition of motion data of a game or user.
The gyro sensor 812 may detect a body direction and a rotation angle of the terminal 800, and the gyro sensor 812 may collect a 3D motion of the user to the terminal 800 in cooperation with the acceleration sensor 811. The processor 801 may implement the following functions based on the data collected by the gyro sensor 812: motion sensing (e.g., changing UI according to a tilting operation by a user), image stabilization at shooting, game control, and inertial navigation.
The pressure sensor 813 may be disposed at a side frame of the terminal 800 and/or at a lower layer of the touch display 805. When the pressure sensor 813 is disposed on a side frame of the terminal 800, a grip signal of the terminal 800 by a user may be detected, and the processor 801 performs left-right hand recognition or shortcut operation according to the grip signal collected by the pressure sensor 813. When the pressure sensor 813 is disposed at the lower layer of the touch display screen 805, the processor 801 controls the operability control on the UI interface according to the pressure operation of the user on the touch display screen 805. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.
The fingerprint sensor 814 is used to collect a fingerprint of a user, and the processor 801 identifies the identity of the user based on the fingerprint collected by the fingerprint sensor 814, or the fingerprint sensor 814 identifies the identity of the user based on the collected fingerprint. Upon recognizing that the user's identity is a trusted identity, the user is authorized by the processor 801 to have associated sensitive operations including unlocking the screen, viewing encrypted information, downloading software, paying for and changing settings, etc. The fingerprint sensor 814 may be provided on the front, back, or side of the terminal 800. When a physical key or vendor Logo is provided on the terminal 800, the fingerprint sensor 814 may be integrated with the physical key or vendor Logo.
The optical sensor 815 is used to collect the ambient light intensity. In one embodiment, the processor 801 may control the display brightness of the touch display screen 805 based on the intensity of ambient light collected by the optical sensor 815. Specifically, when the intensity of the ambient light is high, the display brightness of the touch display screen 805 is turned up; when the ambient light intensity is low, the display brightness of the touch display screen 805 is turned down. In another embodiment, the processor 801 may also dynamically adjust the shooting parameters of the camera module 806 based on the ambient light intensity collected by the optical sensor 815.
A proximity sensor 816, also referred to as a distance sensor, is typically provided on the front panel of the terminal 800. The proximity sensor 816 is used to collect the distance between the user and the front of the terminal 800. In one embodiment, when the proximity sensor 816 detects that the distance between the user and the front of the terminal 800 gradually decreases, the processor 801 controls the touch display 805 to switch from the bright screen state to the off screen state; when the proximity sensor 816 detects that the distance between the user and the front surface of the terminal 800 gradually increases, the processor 801 controls the touch display 805 to switch from the off-screen state to the on-screen state.
Those skilled in the art will appreciate that the structure shown in fig. 8 is not limiting and that more or fewer components than shown may be included or certain components may be combined or a different arrangement of components may be employed.
Fig. 9 is a schematic structural diagram of a server according to an exemplary embodiment, where the server 900 may have a relatively large difference due to configuration or performance, and may include one or more processors (central processing units, CPU) 901 and one or more memories 902, where at least one instruction is stored in the memories 902, and the at least one instruction is loaded and executed by the processors 901 to implement the methods provided in the foregoing method embodiments. Of course, the server may also have a wired or wireless network interface, a keyboard, an input/output interface, and other components for implementing the functions of the device, which are not described herein.
The server 900 may be configured to perform the steps performed by the server in the voice message playing method described above.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, which when executed by a processor of an electronic device, causes the electronic device to perform the steps performed by the server or the terminal in the above-described voice message playing method.
In an exemplary embodiment, a computer program product is also provided, which, when executed by a processor of an electronic device, enables the electronic device to perform the steps performed by the server or the terminal in the above-described voice message playing method.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (26)

1. A method for playing a voice message, the method comprising:
displaying voice messages sent by the associated user identifiers through an interactive interface;
when a first triggering operation on a first voice message is detected, displaying a play mode list in the interactive interface, wherein the play mode list at least comprises a first play option and a second play option, the first play option is used for indicating to play all voice messages in an unplayed state, the second play option is used for indicating to play the first voice message and voice messages before the first voice message, and the first voice message is any voice message displayed in the interactive interface;
When a first playing operation of a first voice message is detected, acquiring a plurality of voice messages which are sent by the associated user identifier and are in an unplayed state, wherein the first playing operation refers to a selecting operation of a first playing option, and the plurality of voice messages comprise voice messages before the first voice message; sequentially playing the plurality of voice messages from the first voice message in the plurality of voice messages until the last voice message is played;
when a second playing operation of a first voice message is detected, at least one voice message and the first voice message which are sent by the associated user identifier and are positioned before the first voice message are obtained, wherein the second playing operation refers to a selecting operation of the second playing option, and the sending time of the at least one voice message is positioned in a preset time period before the first sending time of the first voice message, or the at least one voice message is a preset number of voice messages positioned before the first voice message; and sequentially playing the at least one voice message and the first voice message.
2. The method of claim 1, wherein when the second play operation of the first voice message is detected, obtaining at least one voice message and the first voice message sent by the associated user identifier and located before the first voice message, comprises:
When a second playing operation of the first voice message is detected, a first message identifier of the first voice message is obtained;
querying a database for a plurality of message identifications with sender user identifications as the associated user identifications and state identifications as first state identifications, wherein the plurality of message identifications comprise at least one message identification and the first message identification which are positioned before the first message identification;
and acquiring a plurality of voice messages corresponding to the message identifiers.
3. The method of claim 1, wherein after displaying the voice message sent in association with the user identification via the interactive interface, the method further comprises:
when a third playing operation of the first voice message is detected, acquiring the first voice message and at least one voice message which is sent by the associated user identifier and is positioned behind the first voice message, wherein the third playing operation is used for indicating to play the first voice message and the voice message positioned behind the first voice message;
and sequentially playing the first voice message and the at least one voice message.
4. The method of claim 3, wherein the obtaining the first voice message and the at least one voice message sent by the associated user identification and located after the first voice message when the third play operation for the first voice message is detected comprises:
When a first triggering operation on the first voice message is detected, displaying a play mode list in the interactive interface, wherein the play mode list at least comprises a third play option, and the third play option is used for indicating to play the first voice message and the voice message positioned behind the first voice message;
and when the selection operation of the third playing option is detected, acquiring the first voice message and at least one voice message which is sent by the associated user identifier and is positioned behind the first voice message.
5. The method of claim 3, wherein retrieving the first voice message and at least one voice message sent by the associated user identification and located after the first voice message when a third play operation for the first voice message is detected comprises:
when a third playing operation of the first voice message is detected, a first message identifier of the first voice message is obtained;
querying a database for a plurality of message identifications with sender user identifications as the associated user identifications and state identifications as first state identifications, wherein the plurality of message identifications comprise the first message identifications and at least one message identification positioned after the first message identifications;
And acquiring a plurality of voice messages corresponding to the message identifiers.
6. The method of claim 1, wherein when the first play operation of the first voice message is detected, obtaining the plurality of voice messages sent by the associated user identifier and in the unplayed state includes:
when the first playing operation of the first voice message is detected, a voice message list is obtained, wherein the voice message list comprises a plurality of voice messages sent by the associated user identifier, and the first voice message in the voice message list is the first voice message in the unplayed state;
the sequentially playing the plurality of voice messages comprises the following steps:
and sequentially playing the plurality of voice messages in the voice message list.
7. The method of claim 1, wherein after displaying the voice message sent in association with the user identification via the interactive interface, the method further comprises:
and playing the first voice message when a fourth playing operation of the first voice message is detected, wherein the fourth playing operation is used for indicating to play the first voice message.
8. The method of claim 7, wherein upon detecting a fourth play operation for the first voice message, the method further comprises, after playing the first voice message:
Acquiring the voice message which is sent by the associated user identifier, is positioned behind the first voice message and is in the unplayed state;
and playing the acquired voice message.
9. The method according to any one of claims 1-8, further comprising:
stopping playing the voice message when detecting the playing stopping operation of the voice message currently being played.
10. The method of claim 1, wherein when the first play operation of the first voice message is detected, obtaining the plurality of voice messages sent by the associated user identifier and in the unplayed state includes:
and when the first playing operation of the first voice message is detected, inquiring a plurality of voice messages with sender user identification as the associated user identification and state identification as a first state identification from a database.
11. The method of claim 1, wherein when the first play operation of the first voice message is detected, obtaining the plurality of voice messages sent by the associated user identifier and in the unplayed state includes:
when the first playing operation of the first voice message is detected, a first message identifier of the first voice message is obtained;
Querying a plurality of message identifications with sender user identifications as the associated user identifications and state identifications as first state identifications from a database;
and acquiring a plurality of voice messages corresponding to the message identifiers.
12. The method according to claim 1, wherein the method further comprises:
when any voice message is played, the state identifier corresponding to the voice message in the database is switched from the first state identifier to the second state identifier.
13. A voice message playing device, the device comprising:
the display unit is configured to display the voice message sent by the associated user identifier through the interactive interface;
an acquisition unit comprising a list display subunit and a message acquisition subunit, wherein,
the list display subunit is configured to display a play mode list in the interactive interface when a first trigger operation on a first voice message is detected, wherein the play mode list at least comprises a first play option and a second play option, the first play option is used for indicating to play all voice messages in an unplayed state, the second play option is used for indicating to play the first voice message and voice messages before the first voice message, and the first voice message is any voice message displayed in the interactive interface;
The message obtaining subunit is configured to obtain a plurality of voice messages sent by the associated user identifier and in an unplayed state when a first playing operation of a first voice message is detected, wherein the first playing operation refers to a selection operation of the first playing option, and the plurality of voice messages comprise voice messages before the first voice message;
a playing unit configured to sequentially play the plurality of voice messages from a first voice message of the plurality of voice messages until the last voice message is played;
the message obtaining subunit is further configured to obtain at least one voice message and the first voice message sent by the associated user identifier and located before the first voice message when a second play operation of the first voice message is detected, where the second play operation refers to a selection operation of the second play option, and a sending time of the at least one voice message is located within a preset time period before a first sending time of the first voice message, or the at least one voice message is a preset number of voice messages located before the first voice message;
The playing unit is further configured to sequentially play the at least one voice message and the first voice message.
14. The apparatus of claim 13, wherein the acquisition unit further comprises:
an identification acquisition subunit configured to acquire a first message identification of the first voice message when a second play operation on the first voice message is detected;
a query subunit configured to query, from a database, a plurality of message identifications having a sender user identification as the associated user identification and a status identification as a first status identification, the plurality of message identifications including at least one message identification preceding the first message identification and the first message identification;
and the message acquisition subunit is configured to acquire a plurality of voice messages corresponding to the plurality of message identifiers.
15. The apparatus of claim 13, wherein the apparatus further comprises:
the obtaining unit is further configured to obtain the first voice message and at least one voice message sent by the associated user identifier and located after the first voice message when a third play operation of the first voice message is detected, where the third play operation is used to instruct to play the first voice message and the voice message located after the first voice message;
The playing unit is further configured to sequentially play the first voice message and the at least one voice message.
16. The apparatus of claim 15, wherein the acquisition unit further comprises:
a list display subunit configured to display a play mode list in the interactive interface when a first trigger operation on the first voice message is detected, wherein the play mode list at least comprises a third play option, and the third play option is used for indicating to play the first voice message and a voice message positioned behind the first voice message;
a message obtaining subunit configured to obtain, when detecting the selection operation of the third play option, the first voice message, and at least one voice message sent by the associated user identifier and located after the first voice message.
17. The apparatus of claim 15, wherein the acquisition unit further comprises:
an identification acquisition subunit configured to acquire a first message identification of the first voice message when a third play operation on the first voice message is detected;
a query subunit configured to query, from a database, a plurality of message identifications having a sender user identification as the associated user identification and a status identification as a first status identification, the plurality of message identifications including the first message identification and at least one message identification located after the first message identification;
And the message acquisition subunit is configured to acquire a plurality of voice messages corresponding to the plurality of message identifiers.
18. The apparatus of claim 13, wherein the acquisition unit further comprises:
a message list obtaining subunit configured to obtain, when the first play operation on the first voice message is detected, a voice message list, where the voice message list includes a plurality of voice messages sent by the associated user identifier, and a first voice message in the voice message list is a first voice message in the unplayed state;
the playing unit further includes:
and the playing subunit is configured to sequentially play the plurality of voice messages in the voice message list.
19. The apparatus of claim 13, wherein the apparatus further comprises:
the playing unit is further configured to play the first voice message when a fourth playing operation of the first voice message is detected, wherein the fourth playing operation is used for indicating to play the first voice message.
20. The apparatus of claim 19, wherein the apparatus further comprises:
The acquiring unit is further configured to acquire the voice message which is sent by the associated user identifier and is located behind the first voice message and is in the unplayed state;
the playing unit is further configured to play the acquired voice message.
21. The apparatus according to any one of claims 13-20, wherein the apparatus further comprises:
and a play stopping unit configured to stop playing the voice message when a play stopping operation of the currently playing voice message is detected.
22. The apparatus of claim 13, wherein the acquisition unit comprises:
and the message acquisition subunit is configured to query a database for a plurality of voice messages with sender user identifications as the associated user identifications and state identifications as first state identifications when the first playing operation of the first voice message is detected.
23. The apparatus of claim 13, wherein the acquisition unit comprises:
an identification acquisition subunit configured to acquire a first message identification of the first voice message when the first play operation on the first voice message is detected;
A querying subunit configured to query, from a database, a plurality of message identities whose sender user identities are the associated user identities and whose status identities are first status identities;
and the message acquisition subunit is configured to acquire a plurality of voice messages corresponding to the plurality of message identifiers.
24. The apparatus of claim 13, wherein the apparatus further comprises:
and the switching unit is configured to switch the state identifier corresponding to the voice message in the database from the first state identifier to the second state identifier when any voice message is played.
25. An electronic device, the electronic device comprising:
one or more processors;
volatile or non-volatile memory for storing the one or more processor-executable commands;
wherein the one or more processors are configured to perform the voice message playing method of any one of claims 1 to 12.
26. A non-transitory computer readable storage medium, which when executed by a processor of an electronic device, causes the electronic device to perform the voice message playing method of any one of claims 1 to 12.
CN202010158858.6A 2020-03-09 2020-03-09 Voice message playing method and device, electronic equipment and storage medium Active CN111399797B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010158858.6A CN111399797B (en) 2020-03-09 2020-03-09 Voice message playing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010158858.6A CN111399797B (en) 2020-03-09 2020-03-09 Voice message playing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111399797A CN111399797A (en) 2020-07-10
CN111399797B true CN111399797B (en) 2023-11-14

Family

ID=71432408

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010158858.6A Active CN111399797B (en) 2020-03-09 2020-03-09 Voice message playing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111399797B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113934397A (en) * 2021-10-15 2022-01-14 深圳市一诺成电子有限公司 Broadcast control method in electronic equipment and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104125132A (en) * 2013-04-25 2014-10-29 腾讯科技(深圳)有限公司 Voice message playing method and device thereof
CN105827516A (en) * 2016-05-09 2016-08-03 腾讯科技(深圳)有限公司 Message processing method and device
CN109995947A (en) * 2019-04-11 2019-07-09 上海连尚网络科技有限公司 For the method for played voice message, electronic equipment and computer-readable medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008024797A2 (en) * 2006-08-21 2008-02-28 Pinger, Inc. Graphical user interface for managing voice messages

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104125132A (en) * 2013-04-25 2014-10-29 腾讯科技(深圳)有限公司 Voice message playing method and device thereof
CN105827516A (en) * 2016-05-09 2016-08-03 腾讯科技(深圳)有限公司 Message processing method and device
CN109995947A (en) * 2019-04-11 2019-07-09 上海连尚网络科技有限公司 For the method for played voice message, electronic equipment and computer-readable medium

Also Published As

Publication number Publication date
CN111399797A (en) 2020-07-10

Similar Documents

Publication Publication Date Title
CN110764730B (en) Method and device for playing audio data
CN109874312B (en) Method and device for playing audio data
CN110278464B (en) Method and device for displaying list
CN108093307B (en) Method and system for acquiring playing file
CN109922356B (en) Video recommendation method and device and computer-readable storage medium
CN112118477B (en) Virtual gift display method, device, equipment and storage medium
CN112751679B (en) Instant messaging message processing method, terminal and server
CN109144346B (en) Song sharing method and device and storage medium
CN110740340B (en) Video live broadcast method and device and storage medium
CN111142838B (en) Audio playing method, device, computer equipment and storage medium
CN107896337B (en) Information popularization method and device and storage medium
CN111061405B (en) Method, device and equipment for recording song audio and storage medium
CN113411680A (en) Multimedia resource playing method, device, terminal and storage medium
CN111402844B (en) Song chorus method, device and system
CN111628925B (en) Song interaction method, device, terminal and storage medium
CN111711838A (en) Video switching method, device, terminal, server and storage medium
CN111818358A (en) Audio file playing method and device, terminal and storage medium
CN109547847B (en) Method and device for adding video information and computer readable storage medium
CN113204672B (en) Resource display method, device, computer equipment and medium
CN108495183B (en) Method and device for displaying album information
CN108055349B (en) Method, device and system for recommending K song audio
CN111399796B (en) Voice message aggregation method and device, electronic equipment and storage medium
CN111399797B (en) Voice message playing method and device, electronic equipment and storage medium
CN112559795A (en) Song playing method, song recommending method, device and system
CN110808021A (en) Audio playing method, device, terminal and storage medium

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