CN111399797A - 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
CN111399797A
CN111399797A CN202010158858.6A CN202010158858A CN111399797A CN 111399797 A CN111399797 A CN 111399797A CN 202010158858 A CN202010158858 A CN 202010158858A CN 111399797 A CN111399797 A CN 111399797A
Authority
CN
China
Prior art keywords
voice message
voice
playing
message
messages
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010158858.6A
Other languages
Chinese (zh)
Other versions
CN111399797B (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.)
Reach Best Technology Co Ltd
Original Assignee
Reach Best 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 Reach Best Technology Co Ltd filed Critical Reach Best 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

Images

Classifications

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

Landscapes

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

Abstract

The disclosure relates to a voice message playing method and device, electronic equipment and a storage medium, and belongs to the technical field of computers. The method comprises the following steps: displaying a voice message sent by the associated user identifier 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 a related 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; and playing the plurality of voice messages in sequence. The plurality of voice messages can be played only by executing the first playing operation on any voice message without respectively playing each voice message or starting playing from the first voice message in the plurality of voice messages through up-down sliding, so that the user operation is simplified, the consumed time is reduced, the playing efficiency of the voice messages is improved, and the flexibility of the voice message playing mode is enhanced.

Description

Voice message playing method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method and an apparatus for playing a voice message, an electronic device, and a storage medium.
Background
With the rapid development of computer technology and the wide application of instant messaging functions, the interaction demand of users is 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 one of the voice messages to play, and can also slide up and down in the interactive interface to display a first voice message which is not played in the plurality of voice messages, and the plurality of voice messages are played in sequence from the voice message.
In the above scheme, if a plurality of voice messages are desired to be played, the first voice message which is not played needs to be found through up-down sliding, so that the operation is complicated, and the consumed time is too long.
Disclosure of Invention
The present disclosure provides a voice message playing method, device, electronic device and storage medium, which can simplify user operations, reduce consumed time, and improve playing efficiency.
According to a first aspect of the embodiments of the present disclosure, there is provided a method for playing a voice message, the method including:
displaying a voice message sent by the associated user identifier 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 messages in the unplayed state, and the first voice message is any one voice message displayed in the interactive interface;
and sequentially playing the voice messages.
In a possible implementation manner, the obtaining, when a first play operation on a first voice message is detected, a plurality of voice messages that are sent by the associated user identifier and are in an unplayed state includes:
when a first trigger 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 which is used for indicating to play all voice messages in the 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 identification and are in the non-playing state.
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, acquiring at least one voice message which is sent by the associated user identifier and is positioned before the first voice message and the first voice message, wherein the second playing operation is used for indicating that the first voice message and the voice message positioned before the first voice message are played;
and sequentially playing the at least one voice message and the first voice message.
In another possible implementation manner, the obtaining, when the second play operation on the first voice message is detected, at least one voice message that is sent by the associated user identifier and is located before the first voice message and the first voice message includes:
when a first trigger 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 to play the first voice message and the voice message before the first voice message;
and when the selection operation of the second playing option is detected, acquiring at least one voice message which is sent by the associated user identifier and is positioned before the first voice message and the first voice message.
In another possible implementation manner, the obtaining, when the second play operation on the first voice message is detected, at least one voice message that is sent by the associated user identifier and is located before the first voice message and the first voice message includes:
when a second playing operation of the first voice message is detected, acquiring the first voice message and first sending time of the first voice message;
and acquiring at least one voice message which is sent by the associated user identifier and has the sending time within a preset time length before the first sending time.
In another possible implementation manner, the obtaining, when the second play operation on the first voice message is detected, at least one voice message that is sent by the associated user identifier and is located before the first voice message and the first voice message includes:
and when the second playing operation of the first voice message is detected, acquiring the first voice message and a preset number of voice messages positioned in front of the first voice message.
In another possible implementation manner, the obtaining, when the second play operation on the first voice message is detected, at least one voice message that is sent by the associated user identifier and is located before the first voice message and the first voice message includes:
when a second playing operation of the first voice message is detected, acquiring a first message identifier of the first voice message;
querying a plurality of message identifications of which the sender user identification is the associated user identification and the state identification is a first state identification from a database, wherein the plurality of message identifications comprise at least one message identification positioned before the first message identification and the first message identification;
and acquiring a plurality of voice messages corresponding to the plurality of message identifications.
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 for 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 that the first voice message and the voice message positioned behind the first voice message are played;
and sequentially playing the first voice message and the at least one voice message.
In another possible implementation manner, the acquiring the first voice message and the at least one voice message that is sent by the associated user identifier and is located after the first voice message when the third play operation on the first voice message is detected includes:
when a first trigger 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 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 a third play operation on the first voice message is detected, acquiring the first voice message and at least one voice message that is sent by the associated user identifier and is located after the first voice message, includes:
when a third playing operation of the first voice message is detected, acquiring a first message identifier of the first voice message;
querying a plurality of message identifications of which the sender user identification is the associated user identification and the state identification is a first state identification from a database, wherein the plurality of message identifications comprise the first message identification and at least one message identification positioned behind the first message identification;
and acquiring a plurality of voice messages corresponding to the plurality of message identifications.
In another possible implementation manner, the obtaining, when a first play operation on a first voice message is detected, a plurality of voice messages that are sent by the associated user identifier and are in an unplayed state includes:
when a 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 a first voice message in the voice message list is a first voice message in the unplayed state;
the playing the plurality of voice messages in sequence comprises:
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 a 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, after the playing of the first voice message when the fourth playing operation on the first voice message is detected, 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:
and when the playing stopping operation of the voice message which is currently played is detected, stopping playing the voice message.
In another possible implementation manner, the obtaining, when a first play operation on a first voice message is detected, a plurality of voice messages that are sent by the associated user identifier and are in an unplayed state includes:
and when a first playing operation of the first voice message is detected, inquiring a plurality of voice messages of which the sender user identification is the associated user identification and the state identification is the first state identification from a database.
In another possible implementation manner, the obtaining, when a first play operation on a first voice message is detected, a plurality of voice messages that are sent by the associated user identifier and are in an unplayed state includes:
when a first playing operation of the first voice message is detected, acquiring a first message identifier of the first voice message;
inquiring a plurality of message identifications of which the sender user identification is the associated user identification and the state identification is the first state identification from a database;
and acquiring a plurality of voice messages corresponding to the plurality of message identifications.
In another possible implementation, the method further includes:
and when any voice message is played, switching the state identifier corresponding to the voice message in the database from the first state identifier to the second state identifier.
According to a second aspect of the embodiments of the present disclosure, there is provided a voice message playing apparatus, the apparatus including:
the display unit is configured to display the voice message sent by the associated user identification through the interactive interface;
the obtaining unit is configured to obtain a plurality of voice messages which are sent by the associated user identifier and are in an unplayed state when a first playing operation on 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 one of the voice messages displayed in the interactive interface;
a playing unit configured to sequentially play the plurality of voice messages.
In one possible implementation manner, the obtaining unit includes:
the list display subunit is 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 first play option, and the first play option is used for indicating that all voice messages in the unplayed state are played;
and the message acquisition subunit is configured to acquire all voice messages which are sent by the associated user identifier and are in the non-playing state when the selection operation of the first playing option is detected.
In another possible implementation manner, 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 playing operation on the first voice message is detected, where the second playing 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 obtaining unit includes:
the list display subunit is 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 second play option, and the second play option is used for indicating that the first voice message and a voice message before the first voice message are played;
and the message acquisition subunit is configured to acquire at least one voice message which is sent by the associated user identifier and is positioned before the first voice message and the first voice message when the selection operation of the second play option is detected.
In another possible implementation manner, the obtaining 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 play operation on the first voice message is detected;
and the message acquisition subunit is configured to acquire at least one voice message which is sent by the associated user identifier and has a sending time within a preset time length before the first sending time.
In another possible implementation manner, the obtaining unit further includes:
the quantity obtaining subunit is configured to obtain the first voice message and a preset quantity of voice messages located before the first voice message when detecting a second playing operation on the first voice message.
In another possible implementation manner, the obtaining unit further includes:
an identifier acquiring subunit configured to acquire a first message identifier 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 identifiers of which the sender user identifier is the associated user identifier and the state identifier is a first state identifier, where the plurality of message identifiers include at least one message identifier located before the first message identifier and the first message identifier;
and the message acquisition subunit is configured to acquire a plurality of voice messages corresponding to the plurality of message identifications.
In another possible implementation manner, the apparatus further includes:
the obtaining unit is further configured to obtain the first voice message and at least one voice message that is sent by the associated user identifier and is located after the first voice message when a third playing operation on the first voice message is detected, where the third playing operation is used to instruct to play the first voice message and the voice message that is 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 obtaining unit further includes:
the list display subunit is configured to display a play mode list in the interactive interface when a first trigger operation on the first voice message is detected, where the play mode list at least includes a third play option, and the third play option is used to indicate that the first voice message and a voice message located after the first voice message are played;
and the message acquisition subunit is configured to acquire 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 when the selection operation of the third play option is detected.
In another possible implementation manner, the obtaining unit further includes:
an identifier acquiring subunit configured to acquire a first message identifier 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 identifiers of which the sender user identifier is the associated user identifier and the state identifier is a first state identifier, where the plurality of message identifiers include the first message identifier and at least one message identifier located after the first message identifier;
and the message acquisition subunit is configured to acquire a plurality of voice messages corresponding to the plurality of message identifications.
In another possible implementation manner, the obtaining unit further includes:
a message list obtaining subunit, configured to, when a first play operation on the first voice message is detected, obtain a voice message list, where the voice message list includes multiple 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 comprises:
a playing subunit configured to sequentially play the plurality of voice messages in the voice message list.
In another possible implementation manner, 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 manner, the apparatus further includes:
the obtaining unit is further configured to obtain the voice message which is sent by the associated user identifier, is located after the first voice message, and is in the unplayed state;
the playing unit is also configured to play the acquired voice message.
In another possible implementation manner, the apparatus further includes:
a stop playing unit configured to stop playing the voice message when a stop playing operation for the voice message currently being played is detected.
In another possible implementation manner, the obtaining unit includes:
and the message acquisition subunit is configured to query a plurality of voice messages of which the sender user identifiers are the associated user identifiers and the state identifiers are the first state identifiers from a database when a first playing operation on the first voice message is detected.
In another possible implementation manner, the obtaining unit includes:
an identifier acquiring subunit configured to acquire a first message identifier of the first voice message when a first play operation on the first voice message is detected;
the inquiry subunit is configured to inquire a plurality of message identifiers of which the sender user identifier is the associated user identifier and the state identifier is the first state identifier from a database;
and the message acquisition subunit is configured to acquire a plurality of voice messages corresponding to the plurality of message identifications.
In another possible implementation manner, 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 the embodiments of the present disclosure, there is provided an electronic device for playing a voice message, the electronic device including:
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, wherein instructions of the storage medium, when executed by a processor of an electronic device, enable 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, wherein instructions of the computer program product, when executed by a processor of an electronic device, enable the electronic device to execute the voice message playing method of the first aspect.
According to the voice message playing method, the voice message playing device, the electronic device and the storage medium provided by the embodiment of the disclosure, the voice message sent by the associated user identifier is displayed through the interactive interface, when a first playing operation on the first voice message is detected, the plurality of voice messages sent by the associated user identifier and in the unplayed state are acquired, and the plurality of voice messages are sequentially played, 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 one of the voice messages displayed in the interactive interface. The user does not need to play each voice message respectively, does not need to find out the first voice message in the plurality of voice messages through up-down sliding, then starts to play from the first voice message, and can play all the voice messages which are sent by the associated user identification and are in an unplayed state only by executing the first playing operation on any voice message, even if the number of the voice messages is huge, excessive operations do not need to be executed, the consumed time is shortened, 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 messages are used as a category to play the voice messages, 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, and the missing of part of the 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 present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flow chart illustrating a voice message playing method according to an exemplary embodiment.
Fig. 2 is a flow chart illustrating another method of playing a voice message according to an example embodiment.
Fig. 3 is a flow chart illustrating another method of playing a voice message according to an example embodiment.
Fig. 4 is a flow chart illustrating another method of playing a voice message according to an example embodiment.
Fig. 5 is a flow chart illustrating another method of playing a voice message according to an example embodiment.
Fig. 6 is a schematic structural diagram illustrating a voice message playing apparatus according to an exemplary embodiment.
Fig. 7 is a schematic structural diagram illustrating another voice message playing apparatus according to an exemplary embodiment.
Fig. 8 is a block diagram illustrating a terminal according to an example embodiment.
Fig. 9 is a schematic diagram illustrating a configuration of a server according to an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1 is a schematic diagram of a voice message playing method according to an exemplary embodiment, and referring to fig. 1, the method includes the following steps:
101. and displaying the voice message sent by the associated user identification through the interactive interface.
102. When a first playing operation of a first voice message is detected, a plurality of voice messages which are sent by the associated user identification and are in an unplayed state are obtained, the first playing operation is used for indicating that the voice message in the unplayed state is played, and the first voice message is any one voice message displayed in the interactive interface.
103. And playing the plurality of voice messages in sequence.
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 a first playing operation on the first voice message is detected, the plurality of voice messages which are sent by the associated user identifier and are in the unplayed state are obtained, and the plurality of voice messages are sequentially played, 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 one of the voice messages displayed in the interactive interface. The user does not need to play each voice message respectively, does not need to find out the first voice message in the plurality of voice messages through up-down sliding, then starts to play from the first voice message, and can play all the voice messages which are sent by the associated user identification and are in an unplayed state only by executing the first playing operation on any voice message, even if the number of the voice messages is huge, excessive operations do not need to be executed, the consumed time is shortened, 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 messages are used as a category to play the voice messages, 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, and the missing of part of the voice messages can be avoided.
In one possible implementation manner, when a first play operation on a first voice message is detected, acquiring a plurality of voice messages which are sent by associated user identifiers and are in an unplayed state, including:
when a first trigger operation on a first voice message is detected, displaying a play mode list in an interactive interface, wherein the play mode list at least comprises a first play option which is used for indicating to play all voice messages 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 identification and are in an unplayed state.
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 detecting a second playing operation on the first voice message, acquiring at least one voice message and the first voice message which are sent by the associated user identifier and positioned in front of the first voice message, 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 a second play operation on the first voice message is detected, acquiring at least one voice message and the first voice message that are sent by an associated user identifier and located before the first voice message, includes:
when a first trigger operation on the first voice message is detected, displaying a playing mode list in the interactive interface, wherein the playing mode list at least comprises a second playing option which is used for indicating to play the first voice message and the voice message before the first voice message;
and when the selection operation of the second playing option is detected, acquiring at least one voice message which is sent by the associated user identifier and is positioned before the first voice message and the first voice message.
In another possible implementation manner, when a second play operation on the first voice message is detected, acquiring at least one voice message and the first voice message that are sent by an associated user identifier and located before the first voice message, includes:
when a second playing operation of the first voice message is detected, the first voice message and first sending time of the first voice message are obtained;
and acquiring at least one voice message which is sent by the associated user identifier and the sending time of which is within a preset time length before the first sending time.
In another possible implementation manner, when a second play operation on the first voice message is detected, acquiring at least one voice message and the first voice message that are sent by an associated user identifier and located before the first voice message, includes:
when the second playing operation of the first voice message is detected, the first voice message and a preset number of voice messages before the first voice message are obtained.
In another possible implementation manner, when a second play operation on the first voice message is detected, acquiring at least one voice message and the first voice message that are sent by an associated user identifier and located before the first voice message, includes:
when a second playing operation of the first voice message is detected, acquiring a first message identifier of the first voice message;
inquiring a plurality of message identifications of which the sender user identification is the associated user identification and the state identification is the first state identification from a database, wherein the plurality of message identifications comprise at least one message identification and the first message identification which are positioned in front of the first message identification;
and acquiring a plurality of voice messages corresponding to the plurality of message identifications.
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 for 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, and the third playing operation is used for indicating that the first voice message and the voice message positioned behind the first voice message are played;
and sequentially playing the first voice message and at least one voice message.
In another possible implementation manner, when a third play operation on the first voice message is detected, acquiring the first voice message and at least one voice message that is sent by the associated user identifier and is located after the first voice message, including:
when a first trigger operation on the first voice message is detected, displaying a playing mode list in the interactive interface, wherein the playing mode list at least comprises a third playing option, and the third playing option is used for indicating that the first voice message and the voice message behind the first voice message are played;
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 a third play operation on the first voice message is detected, acquiring the first voice message and at least one voice message that is sent by the associated user identifier and is located after the first voice message, including:
when a third playing operation of the first voice message is detected, acquiring a first message identifier of the first voice message;
inquiring a plurality of message identifications of which the sender user identification is the associated user identification and the state identification is the first state identification from a database, wherein the plurality of message identifications comprise the first message identification and at least one message identification positioned behind the first message identification;
and acquiring a plurality of voice messages corresponding to the plurality of message identifications.
In another possible implementation manner, when a first play operation on a first voice message is detected, acquiring a plurality of voice messages which are sent by associated user identifiers and are in an unplayed state, including:
when a first playing operation of a first voice message is detected, a voice message list is obtained, wherein the voice message list comprises a plurality of voice messages sent by associated user identifications, and the first voice message in the voice message list is a first voice message in an unplayed state;
playing a plurality of voice messages in sequence, 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 a 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 the fourth play operation on the first voice message is detected, after the first voice message is played, the method further includes:
acquiring a voice message which is sent by a related user identifier, is positioned behind the first voice message and is in an unplayed state;
and playing the acquired voice message.
In another possible implementation, the method further includes:
and when the operation of stopping playing the voice message which is currently played is detected, stopping playing the voice message.
In another possible implementation manner, when a first play operation on a first voice message is detected, acquiring a plurality of voice messages which are sent by associated user identifiers and are in an unplayed state, including:
when a first playing operation of the first voice message is detected, a plurality of voice messages of which the sender user identification is the associated user identification and the state identification is the first state identification are inquired from the database.
In another possible implementation manner, when a first play operation on a first voice message is detected, acquiring a plurality of voice messages which are sent by associated user identifiers and are in an unplayed state, including:
when a first playing operation of a first voice message is detected, acquiring a first message identifier of the first voice message;
inquiring a plurality of message identifications of which the sender user identification is the associated user identification and the state identification is the first state identification from a database;
and acquiring a plurality of voice messages corresponding to the plurality of message identifications.
In another possible implementation, the method further includes:
and when any voice message is played, switching the state identifier corresponding to the voice message in the database from the first state identifier to the second state identifier.
The mode of carrying out interaction based on the instant messaging function is more and more popular in people's life, and the interaction is carried out based on this mode, and it is convenient to have brought for people's interaction, can improve the interactive efficiency between people. Text messages, voice messages, picture messages, video messages or other forms of messages may be sent via the instant messaging capability.
Voice messages are becoming more popular in the current interactive process, considering the many situations in which it is inconvenient to edit text messages. When receiving a plurality of voice messages, the user can select any one voice message from the plurality of voice messages to play independently, and can also select the plurality of voice messages to play in sequence.
The present disclosure provides a voice message playing method, which can realize playing a plurality of voice messages in different ways by performing different playing operations on the voice messages. Depending on the play operation performed on the voice message, the present disclosure may include the following embodiments.
The method can be applied to electronic equipment, the electronic equipment comprises a terminal and can also comprise a server, the terminal can be a mobile phone, a computer, a tablet 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 equipment comprises the terminal, the terminal can acquire the voice message and play the voice message.
When the electronic equipment comprises the server and the terminal, the server sends the voice message to the terminal, and the terminal plays the received voice message.
Fig. 2 is a flowchart illustrating a voice message playing method according to an exemplary embodiment, applied to an electronic device, and referring to fig. 2, including the following steps:
201. and displaying the voice message sent by the associated user identification through the interactive interface.
In the embodiment of the present 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, a mobile phone number, or another identifier that can determine the unique user. Each user identifier may establish an association relationship with other user identifiers, and of any two user identifiers establishing an association relationship, one of the user identifiers may be referred to as an associated user identifier of the other user identifier.
In addition, each user identifier may also establish an association relationship with a group identifier, indicating that the user identifier is added to the group corresponding to the group identifier, and the group identifier may also be referred to as an associated 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, or another identifier that can 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 sending and receiving of the message.
For example, the electronic device installs an 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, and sends a message to the associated user identifier or receives a message sent by the associated user identifier, thereby realizing 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 present disclosure takes a voice message as an example, and explains a process of playing the voice message.
The electronic equipment can receive the voice message sent by any associated user identification, and the electronic equipment is also provided with a database which is used for storing the received voice message. When receiving a voice message, the electronic device adds the voice message and the description information corresponding to the voice message to the database. After receiving the plurality of voice messages, the database comprises the plurality of voice messages and the description information corresponding to each voice message.
The description information at least comprises a message identifier, a sender user identifier, 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 a receiving sequence, or an identifier determined in other manners. The sender user id is a user id for sending the voice message, such as a certain associated user id of the user id. The transmission time is used to indicate the time when the sender user identifier transmits the voice message. The playing state represents the playing situation of the voice message, including a played state and an unplayed state. Optionally, the playing state may be represented by a state identifier, where the state identifier includes a first state identifier and a second state identifier, the first state identifier represents that the voice message is in an unplayed state, and the second state identifier represents 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 when receiving a message, the electronic device may perform type judgment on the message, determine whether the message is a voice message, and further obtain a message identifier, a sending time, a corresponding download path, a sender user identifier, a playing state, and the like of the message, where the process may be implemented based on a code.
In the embodiment of the present 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 manner, each time the electronic device receives a voice message, the voice message and the corresponding description information are stored in the database in the form of a table, wherein each row 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 receiving the voice message sent by the associated user identifier, the electronic device may display the voice message in the interactive interface corresponding to the associated user identifier, and may subsequently play the voice message.
In a possible implementation manner, after the electronic device logs in based on the user identifier, an information display interface is displayed, where the information display interface includes a plurality of interaction entries, each interaction entry is used to enter a corresponding interaction interface, and by triggering an interaction entry, the electronic device may display an interaction interface associated with the user identifier corresponding to the interaction entry. And the interaction inlets comprise a target interaction inlet corresponding to the associated user identifier, and when the triggering operation of the target interaction inlet is detected, an interaction interface corresponding to the associated user identifier is displayed, wherein the interaction interface comprises a voice message sent by the associated user identifier.
The trigger operation may be a click operation, a long-time press operation, a leftward sliding operation, or a rightward sliding operation, or may also be other forms of trigger operations, which is not specifically limited in this 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 multiple voice messages sent by the associated user identifier, and displays the multiple voice messages through the interactive interface.
When the number of the voice messages is small, the plurality of voice messages can be displayed in 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 recently sent by the associated user identifier can be displayed through the interactive interface. When the user wants to view other voice messages sent by the associated user identification, the user can slide up and down in the interactive interface, namely, 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 of the voice messages currently displayed, or may also perform other operations.
202. And when a first playing operation on 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 identifier receives a plurality of voice messages sent in association with the user identifier, it is generally desirable to be able to play the plurality of voice messages in sequence, starting with a first voice message of the plurality of voice messages. However, considering that the number of the voice messages is large, the interactive interface cannot currently display the first voice message, and therefore, in the embodiment of the present disclosure, the voice messages can be sequentially played by performing the first playing operation on any currently displayed voice message.
The first voice message is taken as an example in the embodiment of the present disclosure to explain a process of playing a plurality of voice messages. 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. The first play operation may be any one of a click operation, a long press operation, a leftward slide operation, and a rightward slide operation, and may also be another operation.
In one possible implementation manner, when a first play operation on a first voice message is detected, acquiring a plurality of voice messages which are sent by associated user identifiers and are in an unplayed state, including: when a first trigger operation on the first voice message is detected, displaying a playing mode list in an interactive interface corresponding to the associated user identifier, wherein the playing mode list at least comprises a first playing option and other playing options, and the first playing 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 identification and are in an unplayed state.
The first playing operation and the selecting operation may be any one of a click operation, a long press operation, a leftward sliding operation, and a rightward sliding operation, or may be other operations, and they may be the same or different.
For example, when a long-press operation on a 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 description information of the voice message, where the description information includes a sender user identifier and a status identifier, when a first play operation on the first voice message is detected, acquiring a plurality of voice messages that are sent in association with the user identifier and are in an unplayed state includes: and when the first playing operation of the first voice message is detected, inquiring a plurality of voice messages of which the sender user identification is the associated user identification and the state identification is the first state identification from the 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 a first voice message is detected, acquiring a plurality of voice messages that are sent by associated user identifiers and are in an unplayed state includes: and when the first playing operation of the first voice message is detected, acquiring a first message identifier of the first voice message. And inquiring a plurality of message identifications of which the sender user identification is the associated user identification and the state identification is the first state identification from a database, and acquiring a plurality of voice messages corresponding to the plurality of message identifications.
For example, the user a receives 3 voice messages with message identifiers 10001, 10002, and 10003, respectively, displays a first play option when detecting a long-press operation on the voice message with message identifier 10003, and queries the message identifiers 10001, 10002, and 10003 corresponding to all voice messages in an unplayed state when detecting a click operation on the first play option. At this time, the electronic device queries a message identifier smaller than 10003, where the corresponding state identifier is the first state identifier. Subsequently, the electronic device can sequentially play the voice message corresponding to the message identifier 10001, the message identifier 10002, and the message identifier 10003.
In another possible implementation manner, considering that when a plurality of voice messages are received, a user may trigger any one currently displayed voice message by mistake, so as to cause the voice message to be in a played state, in one possible implementation manner, when a first playing operation on a first voice message is detected, not only the plurality of voice messages which are sent by the associated user identifier and are in an unplayed state are acquired, but also the voice message which is sent by the associated user identifier and is in a played state is acquired, and the voice message in the played state is located behind 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 voice messages comprise the played voice messages, the voice messages can be sequentially played in the subsequent playing process, so that the continuity and the integrity of the voice messages can be ensured, the condition that the content acquired by a user is discontinuous due to the lack of part of the voice messages is avoided, and the listening and understanding of the user are facilitated.
In another possible implementation manner, when a first play operation on a first voice message is detected, acquiring a plurality of voice messages which are sent by associated user identifiers and are in an unplayed state, including: when a 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 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 a case where a non-voice message is inserted between any two adjacent voice messages, it may be caused by the user's carelessness 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. Wherein the message in non-voice form can be at least one of text message, picture message and video message.
In the implementation of the present disclosure, when a first play operation on a first voice message is detected, a plurality of voice messages in an unplayed state are directly acquired, whether a non-voice message is inserted between the plurality of voice messages has no influence on the process of acquiring the plurality of voice messages, and a 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. And playing the plurality of voice messages in sequence.
After acquiring the plurality of voice messages, the electronic device 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 for the user to listen to, so that the user can acquire the content of the plurality of voice messages.
In one possible implementation manner, in the case that the voice message list is obtained in step 202, playing the plurality of voice messages in sequence includes: and sequentially playing the plurality of voice messages in the voice message list.
Wherein, the process of playing the plurality of voice messages in the voice message list in sequence comprises: and playing a plurality of voice messages in the voice message list in sequence from the first voice message in the voice message list until the last voice message in the voice message list is played. Even if the voice message list includes played voice messages or messages in a non-voice form, continuous playing of a plurality of voice messages can be realized.
204. And when the playing of any voice message is finished, switching the playing state of the voice message from the non-playing state to the playing state.
Each voice message in 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 limited specifically.
For any voice message in the unplayed state, when the voice message is played completely, the electronic device switches the playing state of the voice message from the unplayed state to the played state, which indicates that the voice message has been played completely. And when the obtained voice messages are all played, the playing states of the voice messages are all the played states.
In a possible implementation manner, the playing status is represented by a status identifier, the database includes the plurality of voice messages and the status identifier of each voice message, and for any voice message, if the status identifier of the voice message is a first status identifier, it represents that the voice message is in an unplayed state, and if the status identifier of the voice message is a second status identifier, it represents that the voice message is in a played state. When the playing of any voice message is completed, switching the playing state of the voice message from the non-playing state to the playing state, including: and when any voice message is played, switching the state identifier corresponding to the voice message in the database from the first state identifier to the second state identifier.
For example, the first state flag is 0, the second state flag is 1, the target voice message is in an unplayed state, and the database includes the target voice message and the state flag 0 of the target voice message. And after the electronic equipment finishes playing the target voice message, switching the state identifier of the target voice message from 0 to 1.
The method provided by the embodiment of the disclosure displays the voice message sent by the associated user identifier through the interactive interface, acquires a plurality of voice messages which are sent by the associated user identifier and are in the non-playing state when detecting the first playing operation of the first voice message, sequentially plays the plurality of voice messages, and switches the playing state of the voice message from the non-playing state to the playing state when any voice message is played. The user does not need to play each voice message respectively, does not need to find out the first voice message in the plurality of voice messages through up-down sliding, then starts to play from the first voice message, and can play all the voice messages which are sent by the associated user identification and are in an unplayed state only by executing the first playing operation on any voice message, even if the number of the voice messages is huge, excessive operations do not need to be executed, the consumed time is shortened, 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 messages are used as a category to play the voice messages, 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, and the missing of part of the voice messages can be avoided.
Fig. 3 is a flowchart illustrating another voice message playing method according to an exemplary embodiment, applied to an electronic device, and referring to fig. 3, including the following steps:
301. and displaying the voice message sent by the associated user identification through the interactive interface.
Step 301 is similar to step 201 in the above embodiments, and is not described herein again.
302. When detecting a second playing operation of the first voice message, acquiring at least one voice message which is sent by the associated user identifier and is positioned before the first voice message and the first voice message.
Considering that a user may wish to play a voice message and a voice message preceding the voice message, but is not interested in a voice message following the voice message, the embodiment of the present disclosure takes a first voice message as an example, and when a second play operation for the first voice message is detected, obtains at least one voice message and a first voice message which are sent by an associated user identifier and are preceding 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 leftward slide operation, and a rightward slide operation, and may also be another operation.
In one possible implementation manner, when a second play operation on a first voice message is detected, acquiring at least one voice message and the first voice message sent by an associated user identifier and located before the first voice message, includes: when a first trigger operation on the first voice message is detected, displaying a playing mode list in an interactive interface corresponding to the associated user identifier, wherein the playing mode list at least comprises a second playing option and other playing options, and the second playing option is used for indicating to play the first voice message and the voice message before the first voice message. And when the selection operation of the second playing option is detected, acquiring 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.
For example, when a long-press operation on a first voice message is detected, a play mode list is displayed, 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 which is sent by a related user identifier and is positioned before the first voice message and the first voice message are acquired.
In another possible implementation manner, considering that a user may have a low interest in a voice message sent a long time ago by an associated user identifier and a high interest in a voice message sent most recently, a preset duration is preset, and when a second play operation on a first voice message is detected, acquiring at least one voice message sent by the associated user identifier and located before the first voice message and the first voice message includes: when detecting a second playing operation of the first voice message, acquiring the first voice message and a first sending time of the first voice message, and acquiring at least one voice message which is sent by the associated user identifier and has a sending time within a preset time length before the first sending time. 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 voice message received recently by the user identifier can be acquired, the phenomenon that the voice message received very long before and the voice message received recently are played together is avoided, the consumed duration can be shortened, the user time is 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 user identifier may receive a huge number of voice messages in a period of time, and the user only wants to listen to a plurality of recently transmitted voice messages, a preset number is preset, and when a second play operation on the first voice message is detected, at least one voice message and the first voice message which are transmitted in association with the user identifier and are located before the first voice message are acquired, including: and when the second playing operation of the first voice message is detected, acquiring the first voice message and a preset number of voice messages positioned in front of the first voice message.
By setting the preset number, only the preset number of voice messages received recently can be acquired, the user can be ensured to put the attention points on the content of the voice messages received recently, the consumed time can be shortened, and the user time is saved.
In another possible implementation manner, since the description information further includes a message identifier, when a second play operation on the first voice message is detected, acquiring at least one voice message and the first voice message that are sent by an associated user identifier and located before the first voice message includes: and when the second playing operation of the first voice message is detected, acquiring a first message identifier of the first voice message. And inquiring a plurality of message identifications of which the sender user identification is the associated user identification and the state identification is the first state identification from a database, and acquiring a plurality of voice messages corresponding to the plurality of message identifications.
The message identifiers comprise at least one message identifier positioned before the first message identifier and the first message identifier.
It should be noted that, even if the multiple voice messages sent by the associated user identifier are all played completely, the electronic device may execute the second playing operation on the first voice message, and sequentially play each played voice message from the first voice message of the multiple voice messages until the first voice message is played again.
In one possible implementation manner, the electronic equipment acquires a first message identifier of the first voice message and a message identifier which is not larger than the first message identifier. Subsequently, the voice message corresponding to each message identifier may be played in sequence from the voice message corresponding to the first message identifier until the first voice message is played. In the embodiment of the disclosure, the message identifiers of the voice messages are set according to the receiving sequence from front to back, and the message identifiers are smaller the earlier the sequence is, and the message identifiers are larger the later the sequence is.
In another possible implementation manner, when a second play operation on the first voice message is detected, acquiring at least one voice message and the first voice message that are sent by an associated user identifier and located before the first voice message, includes: when detecting a second playing operation of the first voice message, acquiring a voice message list, 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 positioned before the first voice message, the first voice message in the voice message list is a 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 acquiring at least one voice message which is sent by the associated user identifier and is positioned in front of the first voice message and the first voice message, the electronic equipment starts to play the plurality of voice messages in sequence from the first voice message in the plurality of voice messages until the first voice message is played completely.
In one possible implementation manner, referring to step 302, playing at least one voice message and a first voice message in sequence in a manner of obtaining a voice message list includes: and sequentially playing the plurality of voice messages in the voice message list. Wherein, the process of playing the plurality of voice messages in the voice message list in sequence comprises: starting from the first voice message in the voice message list, playing a plurality of voice messages in the voice message list in sequence until the playing of the last voice message (the first voice message) in the voice message list is completed. Even if the voice message list includes played voice messages or messages in a non-voice form, continuous playing of a plurality of voice messages can be realized.
The user can select at any position of the voice message, and the voice message before the voice message and the voice message are played, so that the playing form is flexible, and various requirements of the user are met.
304. And when the playing of any voice message is finished, switching the playing state of the voice message from the non-playing state to the playing state.
Step 304 is similar to step 204 in the embodiment described in fig. 2, and is not described again here.
The method provided by the embodiment of the disclosure displays the voice message sent by the associated user identifier through the interactive interface, acquires at least one voice message and the first voice message sent by the associated user identifier and positioned before the first voice message when detecting the second playing operation of the first voice message, sequentially plays the at least one voice message and the first voice message, and switches the playing state of the voice message from the non-playing state to the playing state when any voice message is played. The user does not need to play each voice message respectively, or to find a first voice message in the multiple voice messages by sliding up and down, and then to play the first voice message, and only needs to execute a second playing operation on any voice message, so that 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, even if the number of the voice messages between the first voice message and the first voice message of the multiple voice messages is huge, excessive operations do not need 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 messages are used as a category to play the voice messages, 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, and the missing of part of the voice messages can be avoided.
Fig. 4 is a flowchart illustrating another voice message playing method according to an exemplary embodiment, applied to an electronic device, and referring to fig. 4, including the following steps:
401. and displaying the voice message sent by the associated user identification through the interactive interface.
Step 401 is similar to step 201 in the above embodiments, and is not described herein again.
402. And when the 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.
Considering that a user may wish to play a voice message and a voice message subsequent to the voice message but is not interested in a voice message prior to the voice message, the electronic device may retrieve the first voice message and at least one voice message subsequent to the first voice message and sent by the associated user identifier when detecting the third playing operation for the first voice message. The third playing operation is used for indicating to play the first voice message and the voice message behind the first voice message. The third play operation may be any one of a click operation, a long press operation, a leftward slide operation, and a rightward slide operation, and may also be another operation.
In one possible implementation manner, when a third play operation on the first voice message is detected, 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 trigger operation on the first voice message is detected, displaying a play mode list in an interactive interface corresponding to the associated user identification, 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 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.
For example, when a long-press operation on a first voice message is detected, a play mode list is displayed, 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 positioned behind the first voice message are acquired.
In another possible implementation manner, since the description information further includes a message identifier, and the database further includes a voice message and a message identifier of the voice message, when a third play operation on the first voice message is detected, acquiring the first voice message and at least one voice message that is sent by the associated user identifier and is located after the first voice message includes: and when the third playing operation of the first voice message is detected, acquiring a first message identifier of the first voice message. And inquiring a plurality of message identifications of which the sender user identification is the associated user identification and the state identification is the first state identification from a database, and acquiring a plurality of voice messages corresponding to the plurality of message identifications.
The message identifiers comprise the first message identifier and at least one message identifier positioned after the first message identifier.
In one possible implementation manner, the electronic equipment acquires a first message identification of the first voice message and a message identification which is not smaller than the first message identification. Subsequently, the voice message corresponding to each message identifier can be played in sequence from the first voice message. In the embodiment of the disclosure, the message identifiers of the voice messages are set according to the receiving sequence from front to back, and the message identifiers are smaller the earlier the sequence is, and the message identifiers are larger the later the sequence is.
In another possible implementation manner, when a third play operation on the first voice message is detected, acquiring at least one voice message that is sent by the first voice message and the associated user identifier and is located after the first voice message, including: when detecting a third playing operation on the first voice message, acquiring a voice message list, where the voice message list includes the first voice message and at least one voice message sent by the associated user identifier and located after the first voice message, and the first voice message in the voice message list is the first voice message, and the last voice message in the voice message list 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 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, 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, playing the first voice message and the at least one voice message in sequence in a manner of obtaining a voice message list includes: and sequentially playing the plurality of voice messages in the voice message list. Wherein, the process of playing the plurality of voice messages in the voice message list in sequence comprises: starting from the first voice message (the first voice message) in the voice message list, playing the voice messages in the voice message list in sequence until the playing of the last voice message in the voice message list is completed. Even if the voice message list includes played voice messages or messages in a non-voice form, continuous playing of a plurality of voice messages can be realized.
The user can select at any position of the voice message, and the voice message behind the voice message are played, so that the playing form is flexible, and various requirements of the user are met.
404. And when the playing of any voice message is finished, switching the playing state of the voice message from the non-playing state to the playing state.
Step 404 is similar to step 204 in the embodiment described in fig. 2, and is not repeated here.
The method provided by the embodiment of the disclosure displays the voice message sent by the associated user identifier through the interactive interface, acquires the first voice message and at least one voice message sent by the associated user identifier and positioned behind the first voice message when detecting the third playing operation on the first voice message, sequentially plays the first voice message and the at least one voice message, and switches the playing state of the voice message from the non-playing state to the played state when any voice message is played. The user does not need to play each voice message respectively, and 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 the third playing operation on the currently displayed first voice message, so that 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 messages are used as a category to play the voice messages, 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, and the missing of part of the voice messages can be avoided.
Fig. 5 is a flowchart illustrating another voice message playing method according to an exemplary embodiment, applied to an electronic device, and referring to fig. 5, including the following steps:
501. and displaying the voice message sent by the associated user identification through the interactive interface.
Step 501 is similar to step 201 in the above embodiments, and is not described herein again.
502. And when a fourth playing operation on the first voice message is detected, playing the first voice message.
Considering that a user may wish to play any one of the currently displayed voice messages, the embodiment of the present disclosure takes the first voice message as an example, and describes a process of playing the first voice message.
And when the fourth playing operation of the first voice message is detected, acquiring the first voice message. Wherein the fourth playing operation is used for instructing to play the first voice message. The fourth play operation may be any one of a click operation, a long press operation, a leftward slide operation, and a rightward slide operation, and may also be another operation.
The process of acquiring the first voice message is similar to the process of acquiring the first voice message in the above embodiment, and is not described herein 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, is positioned after the first voice message and is in an unplayed state.
If there is a voice message which is sent by the associated user identifier and is in an unplayed state after the first voice message, it indicates that there is a voice message which is not listened by the user after the first voice message, and at this time, after the first voice message is played, the voice message which is sent by the associated user identifier, is positioned after the first voice message and is in an unplayed state can be automatically played for the user.
Therefore, after the first voice message is played, the electronic device acquires the voice message which is sent by the associated user identifier and is positioned after the first voice message and in an unplayed state.
The process of obtaining the voice message that is sent by the associated user identifier and located after the first voice message and in the unplayed state is similar to step 202 and step 402 in the above embodiment, and is not described herein again.
504. And playing the acquired voice message.
And after acquiring the voice message which is sent by the associated user identifier, positioned behind the first voice message and in an unplayed state, the electronic equipment plays the acquired voice message.
And if the number of the voice messages is one, directly playing the voice messages. And if the number of the voice messages is multiple, sequentially playing the multiple acquired voice messages.
The process of playing the acquired voice message is similar to the above step 203 and step 403, and is not described herein again.
505. And when the playing of any voice message is finished, switching the playing state of the voice message from the non-playing state to the playing state.
Step 505 is similar to step 204 in the embodiment described in fig. 2, and is not described herein again.
The method provided by the embodiment of the disclosure displays the voice message sent by the associated user identifier through the interactive interface, when a fourth playing operation on the first voice message is detected, plays the first voice message, acquires the voice message which is sent by the associated user identifier and is positioned behind the first voice message and in the non-playing state, plays the acquired voice message, and switches the playing state of the voice message from the non-playing state to the played state when any voice message is played. The user does not need to play each voice message in the unplayed state respectively, the voice message can be played only by executing the fourth playing operation on any voice message, and the voice message which is sent by the associated user identifier, is positioned behind the voice message and is in the unplayed state can also be played, 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 according to the requirements of the user to be played, and the voice messages which are not played after the voice messages can be played from the voice messages, 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 messages are used as a category to play the voice messages, 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, and the missing of part of the voice messages can be avoided.
It should be noted that, with the above embodiments, when a play stop operation for a voice message currently being played is detected, the voice message is stopped to be played. The operation of stopping playing may be any one of a click operation, a long press operation, a leftward sliding operation, and a rightward sliding operation, or may be other operations.
Fig. 6 is a block diagram illustrating a voice message playing apparatus according to an exemplary embodiment, referring to fig. 6, the apparatus including:
a display unit 601 configured to display a voice message transmitted in association with a user identifier through an interactive interface;
an obtaining unit 602, configured to obtain, when a first play operation on a first voice message is detected, multiple voice messages that are sent by an associated user identifier and are 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 one of the voice messages displayed in the interactive interface;
a playing unit 603 configured to sequentially play the plurality of voice messages.
In one possible implementation, referring to fig. 7, the obtaining unit 602 includes:
the list display subunit 6021 is configured to, when a first trigger operation on the first voice message is detected, display a play mode list in the interactive interface, where the play mode list at least includes a first play option, and the first play option is used to indicate that all voice messages in an unplayed state are played;
a message acquiring subunit 6022 configured to acquire all voice messages which are sent by the associated user identifier and are in an unplayed state when the selection operation of the first play option is detected.
In another possible implementation, referring to fig. 7, the apparatus further includes:
the obtaining unit 602 is further configured to, when a second playing operation on the first voice message is detected, obtain at least one voice message and the first voice message that are sent by the associated user identifier and located before the first voice message, where the second playing 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 the at least one voice message and the first voice message.
In another possible implementation manner, referring to fig. 7, the obtaining unit 602 includes:
the list display subunit 6021 is configured to display a play mode list in the interactive interface when a first trigger operation on the first voice message is detected, where the play mode list at least includes a second play option, and the second play option is used to indicate that the first voice message and a voice message before the first voice message are played;
a message acquiring subunit 6022 configured to acquire the first voice message and at least one voice message sent by the associated user identifier and located before the first voice message when the selection operation of the second play option is detected.
In another possible implementation manner, referring to fig. 7, the obtaining unit 602 further includes:
a time acquisition subunit 6023 configured to acquire the first voice message and the first sending time of the first voice message when the second play operation of the first voice message is detected;
a message obtaining subunit 6022 configured to obtain at least one voice message sent by the associated user identifier and having a sending time within a preset time length before the first sending time.
In another possible implementation manner, referring to fig. 7, the obtaining unit 602 further includes:
the number acquisition subunit 6024 is configured to acquire the first voice message and a preset number of voice messages preceding the first voice message when the second play operation of the first voice message is detected.
In another possible implementation manner, referring to fig. 7, the obtaining unit 602 further includes:
an identity acquisition subunit 6025 configured to acquire a first message identity of the first voice message when the second play operation on the first voice message is detected;
a query subunit 6026 configured to query, from the database, a plurality of message identifiers of which the sender user identifier is the associated user identifier and the state identifier is the first state identifier, where the plurality of message identifiers include at least one message identifier before the first message identifier and the first message identifier;
a message acquiring subunit 6022 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, when detecting a third playing operation on the first voice message, obtain the first voice message and at least one voice message that is sent by the associated user identifier and is located after the first voice message, where the third playing operation is used to instruct to play the first voice message and the voice message that is 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 obtaining unit 602 further includes:
the list display subunit 6021 is configured to, when a first trigger operation on the first voice message is detected, display a play mode list in the interactive interface, where the play mode list at least includes a third play option, and 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 acquiring subunit 6022 configured to acquire the first voice message and at least one voice message sent by the associated user identifier 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 obtaining unit 602 further includes:
an identity acquisition subunit 6025 configured to acquire a first message identity of the first voice message when the third play operation on the first voice message is detected;
a query subunit 6026 configured to query, from the database, a plurality of message identifiers of which the sender user identifier is the associated user identifier and the state identifier is the first state identifier, the plurality of message identifiers including the first message identifier and at least one message identifier located after the first message identifier;
a message acquiring subunit 6022 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 obtaining unit 602 further includes:
a message list obtaining subunit 6021 configured to, when a first play operation on the first voice message is detected, obtain 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 an unplayed state;
the playback unit 603 further includes:
a play sub-unit 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 for the first voice message is detected, where the fourth playing operation is used to instruct to play the first voice message.
In another possible implementation, referring to fig. 7, the apparatus further includes:
an obtaining unit 602, further configured to obtain a voice message that is sent by an associated user identifier and located after the first voice message and is 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:
a stop playing unit 604 configured to stop playing the voice message when a stop playing operation for the voice message currently being played is detected.
In another possible implementation manner, referring to fig. 7, the obtaining unit 602 includes:
a message obtaining subunit 6022 configured to query the database for the plurality of voice messages of which the sender user identifier is the associated user identifier and the state identifier is the first state identifier when the first play operation of the first voice message is detected.
In another possible implementation manner, referring to fig. 7, the obtaining unit 602 includes:
an identity acquisition subunit 6025 configured to acquire a first message identity of the first voice message when the first play operation on the first voice message is detected;
a query subunit 6026 configured to query the plurality of message identifications of which the sender user identification is the associated user identification and the state identification is the first state identification from the database;
a message acquiring subunit 6022 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 switching unit 605 is configured to switch the status identifier corresponding to the voice message in the database from the first status identifier to the second status identifier when the playing of any voice message is completed.
With regard to the apparatus in the above-described embodiment, the specific manner in which each unit performs the operation has been described in detail in the embodiment related to 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, where the terminal 800 is configured to perform the steps performed by the terminal in the above-described voice message playing method, and may be a portable mobile terminal, such as a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio L layer III, motion Picture Experts compression standard Audio layer 3), an MP4 player (Moving Picture Experts Group Audio L layer iv, motion Picture Experts compression standard Audio layer 4), a notebook computer, or a desktop computer, and the terminal 800 may also be referred to as a user equipment, a portable terminal, a laptop terminal, a desktop terminal, or other names.
In general, the terminal 800 includes: one or more processors 801 and one or more memories 802.
The processor 801 may also include a main processor, which is a processor for Processing data in a wake-up state, also referred to as a Central Processing Unit (CPU), and a coprocessor, which is a low power processor for Processing data in a standby state, in some embodiments, the processor 801 may be integrated with a GPU (Graphics Processing Unit) for rendering and rendering content for display, in some embodiments, the processor 801 may also include an intelligent processor (AI) for learning operations related to AI (Artificial Intelligence processor) for computing operations related to display screens.
Memory 802 may include one or more computer-readable storage media, which may be non-transitory. The 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 herein.
In some embodiments, the terminal 800 may further include: a peripheral interface 803 and at least one peripheral. The processor 801, memory 802 and peripheral interface 803 may be connected by bus or signal lines. Various peripheral devices may be connected to peripheral interface 803 by a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 804, a touch screen display 805, a camera 806, an audio circuit 807, a positioning component 808, and a power supply 809.
The peripheral interface 803 may be used to connect at least one peripheral related to I/O (Input/Output) to the processor 801 and the memory 802. In some embodiments, the processor 801, memory 802, and peripheral interface 803 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 801, the memory 802, and the peripheral interface 803 may be implemented on separate chips or circuit boards, which are not limited by this embodiment.
The Radio Frequency circuit 804 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 804 communicates with communication networks and other communication devices via electromagnetic signals. The rf circuit 804 converts an electrical signal into an electromagnetic signal to be transmitted, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 804 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuit 804 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: metropolitan area networks, various generation 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 further include NFC (Near Field Communication) related circuits, which are not limited in this application.
The Display 805 is used to Display a UI (user interface) that 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 capture touch signals on or above the surface of the Display 805. the touch signals may be input to the processor 801 for processing as control signals, at which time the Display 805 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard.
The camera assembly 806 is used to capture images or video. Optionally, camera assembly 806 includes a front camera and a rear camera. Generally, a front camera is disposed at a front panel of the terminal, and a rear camera is disposed at a rear surface of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 806 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
The audio circuit 807 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 801 for processing or inputting the electric signals to the radio frequency circuit 804 to realize voice communication. For the purpose of stereo sound collection or noise reduction, a plurality of microphones may be provided at different portions of the terminal 800. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 801 or the radio frequency circuit 804 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, the audio circuitry 807 may also include a headphone jack.
The positioning component 808 is used to locate the current geographic location of the terminal 800 to implement navigation or L BS (L geographic based Service.) the positioning component 808 may be a positioning component based on the united states GPS (global positioning System), the beidou System of china, the graves System of russia, or the galileo System of the european union.
Power supply 809 is used to provide power to various components in terminal 800. The power supply 809 can be ac, dc, disposable or rechargeable. When the power source 809 comprises 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, terminal 800 also includes one or more sensors 810. The one or more sensors 810 include, but are not limited to: acceleration sensor 811, gyro sensor 812, pressure sensor 813, fingerprint sensor 814, optical sensor 815 and proximity sensor 816.
The acceleration sensor 811 may detect the magnitude of acceleration in three coordinate axes of the coordinate system established with the terminal 800. For example, the acceleration sensor 811 may be used to detect the components of the gravitational acceleration in three coordinate axes. The processor 801 may control the touch screen 805 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 811. The acceleration sensor 811 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 812 may detect a body direction and a rotation angle of the terminal 800, and the gyro sensor 812 may cooperate with the acceleration sensor 811 to acquire a 3D motion of the user with respect to the terminal 800. From the data collected by the gyro sensor 812, the processor 801 may implement the following functions: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
Pressure sensors 813 may be disposed on the side bezel of terminal 800 and/or underneath touch display 805. When the pressure sensor 813 is disposed on the side frame of the terminal 800, the holding signal of the user to the terminal 800 can be detected, and the processor 801 performs left-right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 813. When the pressure sensor 813 is disposed at a 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 control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 814 is used for collecting a fingerprint of a user, and the processor 801 identifies the identity of the user according to the fingerprint collected by the fingerprint sensor 814, or the fingerprint sensor 814 identifies the identity of the user according to the collected fingerprint when the identity of the user is identified as a credible identity, the processor 801 authorizes the user to have relevant sensitive operations, wherein the sensitive operations comprise screen unlocking, encrypted information viewing, software downloading, payment, setting change and the like.
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 screen 805 based on the ambient light intensity collected by the optical sensor 815. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 805 is increased; when the ambient light intensity is low, the display brightness of the touch display 805 is turned down. In another embodiment, the processor 801 may also dynamically adjust the shooting parameters of the camera assembly 806 based on the ambient light intensity collected by the optical sensor 815.
A proximity sensor 816, also known 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 surface of the terminal 800. In one embodiment, when the proximity sensor 816 detects that the distance between the user and the front surface of the terminal 800 gradually decreases, the processor 801 controls the touch display 805 to switch from the bright screen state to the dark screen state; when the proximity sensor 816 detects that the distance between the user and the front surface of the terminal 800 becomes gradually larger, the processor 801 controls the touch display 805 to switch from the screen-on state to the screen-on state.
Those skilled in the art will appreciate that the configuration shown in fig. 8 is not intended to be limiting of terminal 800 and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components may be used.
Fig. 9 is a schematic structural diagram of a server according to an exemplary embodiment, where the server 900 may generate a relatively large difference due to different configurations or performances, and may include one or more processors (CPUs) 901 and one or more memories 902, where the memory 902 stores at least one instruction, and the at least one instruction is loaded and executed by the processors 901 to implement the methods provided by the above method embodiments. Of course, the server may also have components such as a wired or wireless network interface, a keyboard, and an input/output interface, so as to perform input/output, and the server may also include other components for implementing the functions of the device, which are not described herein again.
The server 900 may be configured to perform the steps performed by the server in the voice message playing method.
In an exemplary embodiment, there is also provided a non-transitory computer readable storage medium, wherein instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the steps performed by the server or the terminal in the above voice message playing method.
In an exemplary embodiment, there is also provided a computer program product, wherein instructions of the computer program product, when executed by a processor of an electronic device, enable the electronic device to execute the steps executed by the server or the terminal in the above 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 variations, 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 will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A method for playing a voice message, the method comprising:
displaying a voice message sent by the associated user identifier 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 messages in the unplayed state, and the first voice message is any one voice message displayed in the interactive interface;
and sequentially playing the voice messages.
2. The method according to claim 1, wherein the obtaining the plurality of voice messages sent by the associated user identifier and in the unplayed state when the first play operation on the first voice message is detected comprises:
when a first trigger 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 which is used for indicating to play all voice messages in the 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 identification and are in the non-playing state.
3. The method of claim 1, wherein after displaying the voice message sent in association with the user identifier via the interactive interface, the method further comprises:
when a second playing operation of the first voice message is detected, acquiring at least one voice message which is sent by the associated user identifier and is positioned before the first voice message and the first voice message, wherein the second playing operation is used for indicating that the first voice message and the voice message positioned before the first voice message are played;
and sequentially playing the at least one voice message and the first voice message.
4. The method of claim 1, wherein after displaying the voice message sent in association with the user identifier via the interactive interface, the method further comprises:
when a third playing operation for 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 that the first voice message and the voice message positioned behind the first voice message are played;
and sequentially playing the first voice message and the at least one voice message.
5. The method according to claim 1, wherein the obtaining the plurality of voice messages sent by the associated user identifier and in the unplayed state when the first play operation on the first voice message is detected comprises:
when a 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 a first voice message in the voice message list is a first voice message in the unplayed state;
the playing the plurality of voice messages in sequence comprises:
and sequentially playing the plurality of voice messages in the voice message list.
6. The method of claim 1, wherein after displaying the voice message sent in association with the user identifier via the interactive interface, the method further comprises:
and when a 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.
7. The method according to any one of claims 1-6, further comprising:
and when the playing stopping operation of the voice message which is currently played is detected, stopping playing the voice message.
8. A voice message playing apparatus, the apparatus comprising:
the display unit is configured to display the voice message sent by the associated user identification through the interactive interface;
the obtaining unit is configured to obtain a plurality of voice messages which are sent by the associated user identifier and are in an unplayed state when a first playing operation on 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 one of the voice messages displayed in the interactive interface;
a playing unit configured to sequentially play the plurality of voice messages.
9. An electronic device, characterized in that the electronic device comprises:
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 7.
10. A non-transitory computer-readable storage medium, wherein instructions, when executed by a processor of an electronic device, enable the electronic device to perform the voice message playing method of any one of claims 1 to 7.
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 true CN111399797A (en) 2020-07-10
CN111399797B 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)

Cited By (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 (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080043943A1 (en) * 2006-08-21 2008-02-21 Pinger, Inc. Graphical user interface for creating and accessing voice messages
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080043943A1 (en) * 2006-08-21 2008-02-21 Pinger, Inc. Graphical user interface for creating and accessing voice messages
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

Cited By (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

Also Published As

Publication number Publication date
CN111399797B (en) 2023-11-14

Similar Documents

Publication Publication Date Title
CN109033335B (en) Audio recording method, device, terminal and storage medium
CN109348247B (en) Method and device for determining audio and video playing time stamp and storage medium
CN112751679B (en) Instant messaging message processing method, terminal and server
CN112118477B (en) Virtual gift display method, device, equipment and storage medium
CN108881286B (en) Multimedia playing control method, terminal, sound box equipment and system
CN109068160B (en) Method, device and system for linking videos
CN110248236B (en) Video playing method, device, terminal and storage medium
CN113411680B (en) Multimedia resource playing method, device, terminal and storage medium
CN111741366A (en) Audio playing method, device, terminal and storage medium
CN111061405B (en) Method, device and equipment for recording song audio and storage medium
CN108831513B (en) Method, terminal, server and system for recording audio data
CN107896337B (en) Information popularization method and device and storage medium
CN109982129B (en) Short video playing control method and device and storage medium
CN112104648A (en) Data processing method, device, terminal, server and storage medium
CN111142838A (en) Audio playing method and device, computer equipment and storage medium
CN111246236A (en) Interactive data playing method, device, terminal, server and storage medium
CN111402844B (en) Song chorus method, device and system
CN111711838A (en) Video switching method, device, terminal, server and storage medium
CN110808021B (en) Audio playing method, device, terminal 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
CN108495183B (en) Method and device for displaying album information
CN111399796B (en) Voice message aggregation method and device, electronic equipment and storage medium
CN111294551B (en) Method, device and equipment for audio and video transmission and storage medium
CN113271470A (en) Live broadcast wheat connecting method, device, terminal, server 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