WO2021129850A1 - 语音消息播放方法及电子设备 - Google Patents

语音消息播放方法及电子设备 Download PDF

Info

Publication number
WO2021129850A1
WO2021129850A1 PCT/CN2020/139823 CN2020139823W WO2021129850A1 WO 2021129850 A1 WO2021129850 A1 WO 2021129850A1 CN 2020139823 W CN2020139823 W CN 2020139823W WO 2021129850 A1 WO2021129850 A1 WO 2021129850A1
Authority
WO
WIPO (PCT)
Prior art keywords
voice
electronic device
input
interface
voice message
Prior art date
Application number
PCT/CN2020/139823
Other languages
English (en)
French (fr)
Inventor
柴凡玲
Original Assignee
维沃移动通信有限公司
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 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2021129850A1 publication Critical patent/WO2021129850A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72433User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for voice messaging, e.g. dictaphones
    • 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
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/22Details of telephonic subscriber devices including a touch pad, a touch sensor or a touch detector

Definitions

  • the embodiments of the present invention relate to the field of communication technologies, and in particular, to a voice message playback method and electronic equipment.
  • an electronic device when an electronic device receives a voice message sent by another electronic device, the user can trigger the electronic device to display the chat interface corresponding to the voice message, and then click the identifier of the voice message to trigger the electronic device to play the voice message. content.
  • the electronic device needs to keep displaying the chat interface corresponding to the voice message. If the electronic device exits the chat interface, the electronic device will stop playing the voice message. In this way, when the user wants to continue listening to the voice message, the user can trigger the electronic device to enter the interface again, and then trigger the electronic device to replay the voice message, resulting in low efficiency and insufficient flexibility in the way the electronic device plays the voice message .
  • the embodiments of the present invention provide a voice message playback method and electronic device, so as to solve the problem of low efficiency and insufficient flexibility in the way that the existing electronic device plays voice messages.
  • an embodiment of the present invention provides a voice message playback method, the method includes: receiving a user's first input of N voice identifiers in a first interface, each voice identifier indicating a voice message; and responding In the first input, display a target control on the screen of the electronic device, the target control includes N voice identifiers; and receive a second input from the user; and in response to the second input, cancel the display of the first interface, and play the first voice identifier
  • the first voice identifier is the voice identifier of the N voice identifiers in the target control, and N is a positive integer.
  • an embodiment of the present invention provides an electronic device that includes a receiving module, a display module, and a playing module.
  • the receiving module is used to receive the user's first input to the N voice identifiers in the first interface, and each voice identifier indicates a voice message respectively;
  • the display module is used to respond to the first input received by the receiving module in the electronic device
  • the target control is displayed on the screen of the target control, with N voice identifications of the target control;
  • the receiving module is also used to receive the second input of the user;
  • the display module is also used to cancel the display of the first interface in response to the second input received by the receiving module;
  • the module is used for playing the first voice message indicated by the first voice identifier in response to the second input received by the receiving module.
  • the first voice identifier is the voice identifier of the N voice identifiers in the target control, and N is a positive integer.
  • an embodiment of the present invention provides an electronic device that includes a processor, a memory, and a computer program stored on the memory and capable of running on the processor.
  • the computer program is executed by the processor, The steps of the voice message playing method in the above first aspect are implemented.
  • an embodiment of the present invention provides a computer-readable storage medium that stores a computer program on the computer-readable storage medium, and when the computer program is executed by a processor, the method for playing a voice message as in the above-mentioned first aspect is implemented. step.
  • the electronic device may receive a user's first input to the N voice identifiers (each voice identifier indicates a voice message) in the first interface; and in response to the first input, the electronic device Display the target control (including the N voice identifiers) on the screen; and receive a second input from the user, and in response to the second input, cancel the display of the first interface, and play the first voice identifier (N voices in the target control)
  • N is a positive integer.
  • the electronic device can play the voice message indicated by the voice mark in the target control when the electronic device cancels the display of the interface where the voice mark is located, the electronic device can play the voice message in the process of playing the voice message.
  • the electronic device can play voice messages in a flexible manner;
  • the N voice identities are the voice identities that the user triggers the electronic device to add to the target control from the first interface, the electronic device
  • the electronic device When the device cancels displaying the first interface, the electronic device plays the first voice message indicated by the first voice identifier in the N voice identifiers, which is equivalent to that the electronic device plays the voice message indicated by the voice identifier in the first interface, that is, electronic The device can still play the voice message indicated by the voice identifier in the first interface, so the efficiency of the electronic device in playing the voice message can be improved.
  • FIG. 1 is a schematic diagram of the architecture of an Android operating system provided by an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of a voice message playback method provided by an embodiment of the present invention
  • FIG. 3 is one of the schematic diagrams of the interface of the application of the voice message playing method provided by the embodiment of the present invention.
  • FIG. 4 is the second schematic diagram of the interface of the voice message playing method application provided by the embodiment of the present invention.
  • FIG. 5 is the third schematic diagram of the interface of the application of the voice message playing method provided by the embodiment of the present invention.
  • FIG. 6 is the fourth schematic diagram of the interface of the application of the voice message playing method provided by the embodiment of the present invention.
  • FIG. 7 is the fifth schematic diagram of the interface of the application of the voice message playing method provided by the embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of an electronic device provided by an embodiment of the present invention.
  • FIG. 9 is a schematic diagram of hardware of an electronic device provided by an embodiment of the present invention.
  • first and second in the specification and claims of the present invention are used to distinguish different objects, rather than to describe a specific order of objects.
  • first voice identifier and the second voice identifier are used to distinguish different voice identifiers, rather than to describe a specific sequence of voice identifiers.
  • words such as “exemplary” or “for example” are used to represent examples, illustrations, or illustrations. Any embodiment or design solution described as “exemplary” or “for example” in the embodiments of the present invention should not be construed as being more preferable or advantageous than other embodiments or design solutions. To be precise, words such as “exemplary” or “for example” are used to present related concepts in a specific manner.
  • plural means two or more than two, for example, a plurality of elements means two or more elements, and so on.
  • the embodiments of the present invention provide a method for playing a voice message and an electronic device.
  • the electronic device can receive a user's first input of N voice identifiers (each voice identifier indicates a voice message) in a first interface; and respond to the First input, display the target control (including the N voice identifiers) on the screen of the electronic device; and receive a second input from the user, and in response to the second input, cancel the display of the first interface, and play the first voice identifier (Voice identifier in the N voice identifiers in the target control) indicates the first voice message, where N is a positive integer.
  • the electronic device can play the voice message indicated by the voice mark in the target control when the electronic device cancels the display of the interface where the voice mark is located, the electronic device can play the voice message in the process of playing the voice message.
  • the electronic device can play voice messages in a flexible manner;
  • the N voice identities are the voice identities that the user triggers the electronic device to add to the target control from the first interface, the electronic device
  • the electronic device When the device cancels displaying the first interface, the electronic device plays the first voice message indicated by the first voice identifier in the N voice identifiers, which is equivalent to the electronic device playing the voice message indicated by the voice identifier in the first interface, that is, electronic The device can still play the voice message indicated by the voice identifier in the first interface, so the efficiency of the electronic device in playing the voice message can be improved.
  • the electronic device in the embodiment of the present invention may be an electronic device with an operating system.
  • the operating system may be an Android operating system, an ios operating system, or other possible operating systems, which is not specifically limited in the embodiment of the present invention.
  • the following takes the Android operating system as an example to introduce the software environment applied by the voice message playback method provided by the embodiment of the present invention.
  • FIG. 1 it is a schematic structural diagram of a possible Android operating system provided by an embodiment of the present invention.
  • the architecture of the Android operating system includes 4 layers, which are: application layer, application framework layer, system runtime library layer, and kernel layer (specifically, it may be the Linux kernel layer).
  • the application layer includes various applications (including system applications and third-party applications) in the Android operating system.
  • the application framework layer is the framework of the application. Developers can develop some applications based on the application framework layer while complying with the development principles of the application framework.
  • the system runtime layer includes a library (also called a system library) and an Android operating system runtime environment.
  • the library mainly provides various resources needed by the Android operating system.
  • the Android operating system operating environment is used to provide a software environment for the Android operating system.
  • the kernel layer is the operating system layer of the Android operating system and belongs to the lowest level of the Android operating system software level.
  • the kernel layer is based on the Linux kernel to provide core system services and hardware-related drivers for the Android operating system.
  • a developer can develop a software program that implements the voice message playback method provided by the embodiment of the present invention based on the system architecture of the Android operating system as shown in FIG.
  • the voice message playing method can be run based on the Android operating system as shown in FIG. 1. That is, the processor or the electronic device can implement the voice message playback method provided in the embodiment of the present invention by running the software program in the Android operating system.
  • the electronic device in the embodiment of the present invention may be a mobile electronic device or a non-mobile electronic device.
  • the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant). Assistant, PDA), etc.
  • the non-mobile electronic device may be a personal computer (PC), television (television, TV), teller machine, or self-service machine, etc., which is not specifically limited in the embodiment of the present invention.
  • the execution body of the voice message playback method provided by the embodiment of the present invention may be the above-mentioned electronic device, or may be a functional module and/or functional entity in the electronic device that can implement the voice message playback method, and may be specifically based on actual usage requirements. It is confirmed that the embodiment of the present invention is not limited.
  • the following uses an electronic device as an example to illustrate the voice message playback method provided by the embodiment of the present invention.
  • the electronic device when the user listens to the voice message in the electronic device, if the user needs to trigger the electronic device to cancel displaying the interface where the voice identification of the voice message is located, the electronic device is triggered to perform other operations (for example, when the user uses the electronic
  • the electronic device listens to the voice message triggered by other user A, the electronic device receives the information triggered by other user B, and the user wants to view the information triggered by other user B in the electronic device), then the user can indicate The input of the voice identification of the voice message that it wants to listen to (for example, the first input in the embodiment of the present invention) triggers the electronic device to display a control including the voice identification of the voice message on the screen of the electronic device, so that the electronic device After canceling the interface where the voice identifiers of these voice messages are located, the electronic device can still play these voice messages.
  • the electronic device does not need to maintain the interface where the voice identifier of the voice message is displayed, so that the way the electronic device plays the voice message can be more flexible; on the other hand, because the electronic device In the case of canceling the display of the interface where the voice identifier is located, the electronic device can still play the voice message indicated by the voice identifier, so the efficiency of the electronic device in playing the voice message can be improved.
  • the user is listening to the voice message in the electronic device
  • the electronic device is currently playing a voice message
  • an embodiment of the present invention provides a method for playing a voice message, and the method includes the following S201-S204.
  • the electronic device receives a user's first input of N voice identities in the first interface.
  • each of the above-mentioned N voice identifiers may indicate a voice message respectively, and N is a positive integer.
  • the voice message indicated by each voice identifier may be a different voice message.
  • one voice identifier may be a voice message identifier box, and the voice message identifier box may display the message duration of the voice message.
  • the voice identification may also be in any other possible form, which may be specifically determined according to actual use requirements, which is not limited in the embodiment of the present invention.
  • the voice message may be a voice message received by the electronic device triggered by other users, or a voice message sent by the user triggered by the electronic device, which can be specifically determined according to actual usage requirements.
  • the implementation of the present invention The examples are not limited.
  • an audio file ie, a song, for example
  • an audio file may also be indicated separately.
  • the examples in the embodiments of the present invention are all exemplified by the voice indicator indicating the voice message.
  • the voice indicator indicating the audio file it is similar to the implementation of the voice indicator indicating the voice message. To avoid repetition, the embodiment of the present invention will not repeat it.
  • the electronic device In response to the first input, displays a target control on the screen of the electronic device.
  • the above-mentioned target control may include the above-mentioned N voice identifiers.
  • the user wants to trigger the electronic device to cancel the display of the first interface when the user listens to the voice message in the electronic device, the user can first input the N voice identifiers to trigger
  • the electronic device displays the above-mentioned target control on the screen of the electronic device (hereinafter referred to as the screen for short). In this way, after the first interface cancels displaying the first interface, the electronic device can still play the voice message indicated by the voice identifier in the first control.
  • the electronic device may add the voice message indicated by each of the above-mentioned N voice identifiers to The target storage space corresponding to the target control, and the target control is generated according to the content in the target storage space. In this way, the electronic device can display the target control including the aforementioned N voice identities on the screen.
  • the electronic device may add the foregoing N voice identifiers to the target storage space corresponding to the target control, and The content in the target storage space generates the aforementioned target control. In this way, the electronic device can display the target control including the aforementioned N voice identities on the screen.
  • the electronic device may display the above-mentioned target control floating on the screen.
  • the target control when the electronic device displays the above-mentioned target control floating on the screen, the target control may remain displayed on the screen of the electronic device before the electronic device cancels the display of the target control.
  • the target control remains displayed on the screen of the electronic device.
  • the above-mentioned first input may include a third sub-input and a fourth sub-input, where the third sub-input may be used to trigger the electronic device to select the above-mentioned N voice identifiers, and the fourth sub-input may It is used to trigger the electronic device to display the above-mentioned target control on the screen.
  • the user can press and hold one of the above-mentioned N voice identities, and then drag other voice identities of the N voice identities to the voice identities, thereby triggering the electronic
  • the device selects the N voice identities.
  • the user can drag the N voice identities to the edge of the screen, thereby triggering the electronic device to display the aforementioned target control.
  • the display position of the above-mentioned target control on the screen may be a position preset in the electronic device by the manufacturer of the electronic device, or may be a position where the user drags the above-mentioned N voice marks to the edge of the screen. location. Specifically, it can be determined according to actual use requirements, and the embodiment of the present invention does not limit it.
  • the electronic device when the user drags one of the above-mentioned N voice identifiers to the voice identifier that the user has long-pressed, in response to the input, the electronic device can be integrated (for example, superimposed display, etc.) ) These two voice identifiers, for example, the dragged voice identifier is displayed on the next layer of the long-pressed voice identifier.
  • the user can press and hold the voice mark 31, and then drag the voice mark 32 and the voice mark 33 onto the voice mark 31.
  • the electronic device may The logo 32 and the voice logo 33 are displayed on the next layer of the voice logo 31, for example, the voice logo 31 shown in (b) of FIG. 3 is displayed on the top layer. Then, the user can drag the voice mark 31 to the edge of the screen of the electronic device, and in response to the input, as shown in (c) of FIG. 3, the electronic device can display the target control 34 on the edge of the screen of the electronic device.
  • the electronic device may also display a digital identifier, and the digital identifier may be used to indicate the number of voice identifiers currently selected by the electronic device.
  • the above-mentioned digital identity may be displayed in the form of a corner mark in the upper right corner or the upper left corner of the voice identity long-pressed by the user.
  • the electronic device may display a digital identifier of "3" on the voice identifier 31 to indicate that the electronic device has currently selected 3 voice identifiers.
  • the electronic device receives a second input from the user.
  • the electronic device cancels displaying the first interface, and plays the first voice message indicated by the first voice identifier.
  • the above-mentioned first voice identifier is the voice identifier of the N voice identifiers in the target control.
  • the user can trigger the electronic device to cancel the display of the first interface through the second input, and trigger the electronic device to play the first voice indicator in the target control.
  • the first voice message Therefore, even if the electronic device does not display the above-mentioned first interface (for example, displays other interfaces), the electronic device can still play the voice message, so that the electronic device can play the voice message in a more flexible manner.
  • the electronic device plays the above
  • the manner of the first voice message may be: the electronic device obtains the first voice message indicated by the first voice identifier from the target storage space according to the first voice identifier, so as to play the first voice message.
  • the manner in which the electronic device plays the foregoing first voice message may be: electronic According to the first voice identifier, the device obtains the first voice message indicated by the first voice identifier from the storage space corresponding to the first interface, so as to play the first voice message.
  • the second input may be a different input, and the electronic device responds to the second input in a different manner.
  • the following specifically uses the two cases of the above-mentioned first voice message (the following case 1 and case 2) to exemplify the implementation of the electronic device in response to the second input.
  • the first voice message is a voice message played when the electronic device receives the first input.
  • the second input may be an input for the user to trigger the electronic device to cancel the display of the first interface.
  • the above S204 may be specifically implemented by the following S204a.
  • the electronic device cancels displaying the first interface, and starts to play the first voice message from the target position.
  • the target location may be the playback location of the first voice message when the electronic device receives the first input.
  • the electronic device may stop playing the first voice message.
  • the first input may be an input for the user to trigger the electronic device to switch from the first interface to the fourth interface.
  • the electronic device may cancel displaying the foregoing first interface.
  • the above-mentioned first interface is a chat interface between the user (ie, the host user) and user 1 (that is, the above-mentioned N voice messages can be the voice messages triggered by user 1)
  • the electronic After the device displays the above-mentioned target control on the screen, if the user wants to view the message sent by the user 2 triggered by the electronic device on the electronic device, then the host user can trigger the electronic device to cancel the display through the above-mentioned second input as shown in Figure 4.
  • the electronic device can continue to play the first voice message from the target location, so that the electronic device does not need to play the content that has already been played in the first voice message again.
  • the time for the electronic device to play the first voice message can be shortened, thereby improving the efficiency of the electronic device in playing the voice message.
  • the first voice message is any one of the following voice messages: a voice message that has not been played by the electronic device, and a voice message that has been played by the electronic device.
  • the second input may include a first sub-input and a second sub-input.
  • the first sub-input may be an input for the user to trigger the electronic device to cancel the display of the first interface
  • the second sub-input may be an input for the user to trigger the electronic device to select the first voice identifier in the target control.
  • the above S204 may be specifically implemented by the following S204b and S204c.
  • the electronic device plays the first voice message.
  • the electronic device can first trigger the electronic device to cancel the display of the first interface, and then the user can trigger the electronic device to select the first voice identifier in the target control, thereby triggering the electronic device to play the first voice identifier The first voice message indicated.
  • the interface corresponding to the above-mentioned target control (which may be referred to as the second interface) may include the above-mentioned N voice identifiers, and then the user may use the second voice identifier of the first voice identifier in the second interface.
  • the sub-input triggers the electronic device to play the first voice message indicated by the first voice identifier.
  • the user can also trigger the electronic device to continue playing the first voice message, so that the electronic device can play the voice message.
  • the method is more flexible.
  • N is greater than 1.
  • the electronic device may continue to play the N voice messages after the playback of the first voice message ends. Voice messages that are not played by the electronic device among the voice messages.
  • N is greater than 1.
  • the electronic device may play the voice messages indicated by the N voice identifiers in the order in which the N voice identifiers are selected by the user. .
  • the electronic device may also play the voice messages in the aforementioned N voice messages according to any other possible playback rules or sequence. Specifically, it can be determined according to actual use requirements, and the embodiment of the present invention does not limit it.
  • the voice message playback method provided in the embodiment of the present invention may further include the following S205-S207.
  • the electronic device displays the first interface.
  • the above-mentioned first interface may include at least one voice identifier, and the above-mentioned N voice identifiers may be identifiers in the at least one voice identifier.
  • the electronic device receives a third input from the user to the second voice identification of the at least one voice identification.
  • the electronic device controls the at least one voice identifier to be in an operable state.
  • the above-mentioned operable state may be a standby state.
  • the user can trigger the electronic device to select the N voice identifiers through the first input of the N voice identifiers in the at least one voice identifier.
  • the electronic device may first display the above first interface. If the user wants to trigger the electronic device to display the above target control on the screen, then the user may select the above N voice
  • the third input of the first voice identifier in the identifier triggers the electronic device to control the above-mentioned at least one voice identifier in an operable state. Then, the user can trigger the electronic device to select N voice identifiers among the at least one voice identifier.
  • the electronic device may display the above-mentioned at least one voice identifier by floating to control the at least one voice identifier to be in an operable state.
  • the above-mentioned first interface may be a chat interface between the user and other users.
  • a chat interface between a user and other users for example, in a chat application in an electronic device, a chat interface between a user and other users.
  • the above-mentioned second voice identifier may be any one of the above-mentioned at least one voice identifier.
  • the above-mentioned third input may be a long-press input or a double-press input of the user on the above-mentioned second voice identifier.
  • it can be determined according to actual use requirements, and the embodiment of the present invention does not limit it.
  • the electronic device may display a message prompt identifier 42 to indicate that the electronic device has received a new message.
  • the user can long press the voice identifier 41 (that is, the above-mentioned second voice identifier), in response to the input, as shown in Figure 6
  • the electronic device can control the voice identifiers (that is, the at least one voice identifier mentioned above) of all voice messages triggered by the user 1 in the first interface to be in an operable state. In this way, the user can trigger the electronic device to select the aforementioned N voice identities from the voice identities in the operable state.
  • the voice message playing method provided in the embodiment of the present invention may further include the following S208-S211.
  • S208 The electronic device receives a fourth input of the user to the target control.
  • the electronic device displays a second interface corresponding to the target control.
  • the foregoing second interface may include the foregoing N voice identifiers.
  • the electronic device receives a fifth input from the user to the third voice identifier among the N voice identifiers.
  • the electronic device plays a third voice message indicated by the third voice identifier.
  • the electronic device plays the above-mentioned first voice message
  • the user wants to listen to one of the N voice messages (that is, the above-mentioned third voice message)
  • the user can first
  • the fourth input of the target control triggers the electronic device to display the above-mentioned second interface.
  • the user can make a fifth input to the third voice message in the second interface to trigger the electronic device to play the third voice message indicated by the third voice message.
  • the fourth input may be any possible input such as a single-click input, a double-click input, or a long-press input of the target control by the user. Specifically, it can be determined according to actual use requirements, and the embodiment of the present invention does not limit it.
  • the fifth input may be any possible input such as a single-click input or a double-click input of the third voice identifier by the user. Specifically, it can be determined according to actual use requirements, and the embodiment of the present invention does not limit it.
  • the foregoing fourth input is a user's single-click input on the target control
  • the foregoing fifth input is a user's single-click input on the third voice identifier.
  • the electronic device can display the second interface 51 as shown in Figure 7(b), and then the user can Click the voice identifier 52 in the second interface 51 (that is, the above-mentioned third voice identifier), and in response to the input, the electronic device can play the voice message indicated by the voice identifier 52 (that is, the above-mentioned third voice message).
  • the user can trigger the electronic device to cancel the display of the second interface and keep the display on the screen by clicking input on other areas on the screen of the electronic device except for the second interface.
  • the target control can be any convenient control.
  • the above-mentioned second interface may further include a closing indicator (for example, the closing indicator " ⁇ " 53 in FIG. 7).
  • the user can trigger the electronic device to cancel the display of the above-mentioned second interface and cancel the display of the above-mentioned target control through the click input of the closing indicator.
  • the user can trigger the electronic device to continue playing the voice message indicated by the voice identifier by inputting the voice identifier in the second interface, when the user wants to listen to the voice message in the above N voice messages again At this time, the user can directly trigger the electronic device to play the voice message indicated by the voice logo by inputting the voice logo in the second interface, without triggering the electronic device to display the above-mentioned first interface, thereby improving the electronic device’s ability to play voice messages. Convenience.
  • the voice message playing method provided in the embodiment of the present invention may further include the following S212 and S213.
  • the embodiment of the present invention may not limit the execution sequence between S203-S204 and S212-S213, that is, the electronic device may execute S203-S204 first, and then execute S212-S213; it may also execute S212-S213 first, Then execute S203-S204. Specifically, it can be determined according to actual use requirements, and the embodiment of the present invention does not limit it.
  • the electronic device receives a sixth input from the user to the K voice identities in the third interface.
  • the electronic device adds the K voice identities to the target control.
  • the above-mentioned third interface and the first interface may be different interfaces of the same application program in the electronic device, or may be interfaces of different application programs in the electronic device, and K is a positive integer.
  • the user can trigger the electronic device to add the above-mentioned K voice identifiers to the above-mentioned target control through the above-mentioned sixth input, so that the electronic device does not display the third
  • the electronic device can also play the voice message indicated by the K voice identifiers.
  • the electronic device can also add the above K voice identifiers to the above target control, the electronic device can also play the voice indicated by the K voice identifiers when the electronic device does not display the third interface In this way, the electronic device can play the voice messages indicated by the voice identifiers in different interfaces, so that the way the electronic device plays the voice messages can be more flexible.
  • an embodiment of the present invention provides an electronic device 600.
  • the electronic device 600 may include a receiving module 601, a display module 602, and a playing module 603.
  • the receiving module 601 can be used to receive the user’s first input to the N voice identifiers in the first interface, and each voice identifier indicates a voice message; the display module 602 can be used to respond to the first input received by the receiving module 601.
  • the target control is displayed on the screen of the electronic device, the target control includes N voice identities;
  • the receiving module 601 can also be used to receive a second input from the user;
  • the display module 602 can also be used to respond to what the receiving module 601 receives The second input is to cancel the display of the first interface;
  • the playing module 603 can be used to play the first voice message indicated by the first voice identifier in response to the second input received by the receiving module 601, the first voice identifier being N in the target control
  • the voice identifier in the voice identifiers, N is a positive integer.
  • the first voice message is a voice message that is played when the electronic device receives the first input; the playback module 603 may be specifically configured to start playing the first voice message from a target location, where the electronic device receives the first voice message. When inputting, the playback position of the first voice message.
  • the first voice message is any one of the following voice messages: a voice message that is not played by the electronic device, a voice message that has been played by the electronic device; the second input includes a first sub-input and a second sub-input; the display module 602 , Can be specifically used to cancel the display of the first interface in response to the first sub-input; the playback module 603 can be specifically used to play the first voice message in response to the second sub-input; wherein the second sub-input is to trigger the selection of the target control The input of the first voice identification in.
  • the electronic device 600 may further include a control module 604.
  • the display module 602 may also be configured to display a first interface before the receiving module receives the user's first input of the N voice identifiers in the first interface.
  • the first interface includes at least one voice identifier, and the N voice identifiers are at least one The identification in the voice identification;
  • the receiving module 601 can also be used to receive a user's third input to the second voice identification in the at least one voice identification displayed by the display module 602, and the control module 604 is configured to respond to the receiving module 601
  • the third input controls the at least one voice identifier to be in an operable state.
  • the receiving module 601 can also be used to receive the fourth input of the user to the target control after the playing module 603 plays the first voice message indicated by the first voice identifier; the display module 602 can also be used to respond to receiving The fourth input received by the module 601 displays a second interface corresponding to the target control.
  • the second interface includes N voice identities; the receiving module 601 can also be used to receive the first of the N voice identities displayed on the display module 602 by the user.
  • Three fifth input of the voice identifier; the playing module 603 can also be used to play the third voice message indicated by the third voice identifier in response to the fifth input received by the receiving module 601.
  • the electronic device 600 may further include an adding module 605.
  • the receiving module 601 can also be used to receive the sixth input of the K voice identifiers in the third interface by the user after the display module 602 displays the target control on the screen of the electronic device; the adding module 605 can be used to respond to receiving The sixth input received by module 601 adds K voice identities to the target control; where the third interface and the first interface are different interfaces of the same application in the electronic device, or are different interfaces of the same application in the electronic device.
  • Interface, K is a positive integer.
  • the electronic device provided in the embodiment of the present invention can implement the various processes performed by the electronic device in the foregoing voice message playback method embodiment, and can achieve the same technical effect. To avoid repetition, details are not described herein again.
  • the embodiment of the present invention provides an electronic device.
  • the electronic device can play the voice message indicated by the voice mark in the target control when the electronic device cancels the display of the interface where the voice mark is located, the voice message is played on the electronic device During the process, the electronic device does not need to keep displaying the first interface, which can make the way the electronic device plays the voice message more flexible; on the other hand, because the N voice identifiers trigger the electronic device to add to the target control from the first interface Voice identification, so when the electronic device cancels the display of the first interface, the electronic device plays the first voice message indicated by the first voice identification among the N voice identifications, which is equivalent to the electronic device playing the voice identification instruction in the first interface That is, the electronic device can still play the voice message indicated by the voice identifier in the first interface, so the efficiency of the electronic device in playing the voice message can be improved.
  • FIG. 9 is a schematic diagram of hardware of an electronic device that implements various embodiments of the present invention.
  • the electronic device 100 includes but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, The processor 110, and the power supply 111 and other components.
  • the structure of the electronic device shown in FIG. 9 does not constitute a limitation on the electronic device.
  • the electronic device may include more or less components than those shown in the figure, or a combination of certain components, or different components. Layout.
  • electronic devices include, but are not limited to, mobile phones, tablet computers, notebook computers, palmtop computers, vehicle-mounted terminals, wearable devices, and pedometers.
  • the processor 110 is configured to control the user input unit 107 to receive the user's first input of the N voice identifiers in the first interface, each of which indicates a voice message; and to control the display unit 106 to respond to the user input unit 107 receives the first input, displays the target control on the screen of the electronic device, the target control includes N voice identifiers; and controls the user input unit 107 to receive the second input of the user; and controls the display unit 106 in response to the user input unit 107 receiving
  • the second input is to cancel the display of the first interface, and control the audio output unit 103 to play the first voice message indicated by the first voice identifier.
  • the first voice identifier is the voice identifier of the N voice identifiers in the target control, and N is positive Integer.
  • the receiving module 601 in the above-mentioned structural schematic diagram of the electronic device can be realized by the above-mentioned user input unit 107;
  • the display unit 602 in the above-mentioned structural schematic diagram of the electronic device can be realized by the above-mentioned display unit 106 implementation;
  • the playing module 603 in the above-mentioned structural schematic diagram of the electronic device can be implemented by the above-mentioned audio output unit 103;
  • the control module 604 and the adding module 605 in the above-mentioned structural schematic diagram of the electronic device can be implemented by the aforementioned processor 110.
  • the embodiment of the present invention provides an electronic device.
  • the electronic device can play the voice message indicated by the voice mark in the target control when the electronic device cancels the display of the interface where the voice mark is located, the voice message is played on the electronic device During the process, the electronic device does not need to keep displaying the first interface, which can make the way the electronic device plays the voice message more flexible; on the other hand, because the N voice identifiers trigger the electronic device to add to the target control from the first interface Voice identification, so when the electronic device cancels the display of the first interface, the electronic device plays the first voice message indicated by the first voice identification among the N voice identifications, which is equivalent to the electronic device playing the voice identification instruction in the first interface That is, the electronic device can still play the voice message indicated by the voice identifier in the first interface, so the efficiency of the electronic device in playing the voice message can be improved.
  • the radio frequency unit 101 can be used for receiving and sending signals in the process of sending and receiving information or talking. Specifically, the downlink data from the base station is received and processed by the processor 110; in addition, Uplink data is sent to the base station.
  • the radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
  • the radio frequency unit 101 can also communicate with the network and other devices through a wireless communication system.
  • the electronic device provides users with wireless broadband Internet access through the network module 102, such as helping users to send and receive emails, browse web pages, and access streaming media.
  • the audio output unit 103 can convert the audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output it as sound. Moreover, the audio output unit 103 may also provide audio output related to a specific function performed by the electronic device 100 (for example, call signal reception sound, message reception sound, etc.).
  • the audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
  • the input unit 104 is used to receive audio or video signals.
  • the input unit 104 may include an image capture device (such as a camera) 1040, a graphics processing unit (GPU) 1041, and a microphone 1042.
  • the image capture device 1040 (such as a camera) captures image data of still pictures or videos.
  • the graphics processor 1041 processes image data of still pictures or videos obtained by the image capture device in the video capture mode or the image capture mode.
  • the processed image frame can be displayed on the display unit 106.
  • the image frame processed by the graphics processor 1041 may be stored in the memory 109 (or other storage medium) or sent via the radio frequency unit 101 or the network module 102.
  • the microphone 1042 can receive sound, and can process such sound into audio data.
  • the processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 101 for output in the case of a telephone call mode.
  • the electronic device 100 further includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors.
  • the light sensor includes an ambient light sensor and a proximity sensor.
  • the ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of the ambient light.
  • the proximity sensor can close the display panel 1061 and the display panel 1061 when the electronic device 100 is moved to the ear. / Or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three axes), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of electronic devices (such as horizontal and vertical screen switching, related games) , Magnetometer attitude calibration), vibration recognition related functions (such as pedometer, percussion), etc.; sensor 105 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.
  • the display unit 106 is used to display information input by the user or information provided to the user.
  • the display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • the user input unit 107 may be used to receive inputted numeric or character information, and generate key signal input related to user settings and function control of the electronic device.
  • the user input unit 107 includes a touch panel 1071 and other input devices 1072.
  • the touch panel 1071 also called a touch screen, can collect the user's touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 1071 or near the touch panel 1071. operating).
  • the touch panel 1071 may include two parts: a touch detection device and a touch controller.
  • the touch detection device detects the user's touch position, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it To the processor 110, the command sent by the processor 110 is received and executed.
  • the touch panel 1071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave.
  • the user input unit 107 may also include other input devices 1072.
  • other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, and joystick, which will not be repeated here.
  • the touch panel 1071 can be overlaid on the display panel 1061.
  • the touch panel 1071 detects a touch operation on or near it, it transmits it to the processor 110 to determine the type of the touch event, and then the processor 110 determines the type of the touch event according to the touch.
  • the type of event provides corresponding visual output on the display panel 1061.
  • the touch panel 1071 and the display panel 1061 are used as two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 1071 and the display panel 1061 can be integrated
  • the implementation of the input and output functions of the electronic device is not specifically limited here.
  • the interface unit 108 is an interface for connecting an external device with the electronic device 100.
  • the external device may include a wired or wireless headset port, an external power source (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) port, video I/O port, headphone port, etc.
  • the interface unit 108 can be used to receive input (for example, data information, power, etc.) from an external device and transmit the received input to one or more elements in the electronic device 100 or can be used to connect to the electronic device 100 and the external device. Transfer data between devices.
  • the memory 109 can be used to store software programs and various data.
  • the memory 109 may mainly include a program storage area and a data storage area.
  • the program storage area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data created by the use of mobile phones (such as audio data, phone book, etc.), etc.
  • the memory 109 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
  • the processor 110 is the control center of the electronic device, which uses various interfaces and lines to connect the various parts of the entire electronic device, runs or executes software programs and/or modules stored in the memory 109, and calls data stored in the memory 109 , Perform various functions of electronic equipment and process data, so as to monitor the electronic equipment as a whole.
  • the processor 110 may include one or more processing units; optionally, the processor 110 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, and application programs, etc.
  • the adjustment processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 110.
  • the electronic device 100 may also include a power source 111 (such as a battery) for supplying power to various components.
  • a power source 111 such as a battery
  • the power source 111 may be logically connected to the processor 110 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. Management and other functions.
  • the electronic device 100 includes some functional modules not shown, which will not be repeated here.
  • an embodiment of the present invention also provides an electronic device, including a processor 110 as shown in FIG. 9, a memory 109, a computer program stored in the memory 109 and capable of running on the processor 110, and the computer program is
  • the processor 110 implements each process of the foregoing voice message playback method embodiment when executing, and can achieve the same technical effect. To avoid repetition, details are not described herein again.
  • the embodiment of the present invention also provides a computer-readable storage medium, and a computer program is stored on the computer-readable storage medium.
  • a computer program is executed by the processor as shown in FIG. 9, each process of the foregoing voice message playback method embodiment is implemented. , And can achieve the same technical effect, in order to avoid repetition, I will not repeat them here.
  • the computer-readable storage medium may include read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk, etc.
  • the technical solution of the present invention can be embodied in the form of a software product in essence or the part that contributes to the related technology.
  • the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk). ) Includes several instructions to make an electronic device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the method described in each embodiment of the present invention.

Abstract

本发明实施例提供一种语音消息播放方法及电子设备。该方法包括:接收用户对第一界面中的N个语音标识的第一输入,每个语音标识分别指示一条语音消息;响应于第一输入,在电子设备的屏幕上显示目标控件,目标控件包括N个语音标识;接收用户的第二输入;响应于第二输入,取消显示第一界面,并播放第一语音标识指示的第一语音消息,第一语音标识为目标控件中的N个语音标识中的语音标识,N为正整数。

Description

语音消息播放方法及电子设备
相关申请的交叉引用
本申请要求于2019年12月27日提交中国国家知识产权局、申请号为201911377996.7、申请名称为“一种语音消息播放方法及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明实施例涉及通信技术领域,尤其涉及一种语音消息播放方法及电子设备。
背景技术
目前,电子设备中的许多应用程序(例如聊天类应用程序、游戏类应用程序等)均具有语音聊天功能。如此,电子设备可以通过这些应用程序接收其它电子设备发送的语音消息。
通常,当电子设备接收到其它电子设备发送的语音消息时,用户可以触发电子设备显示该语音消息对应的聊天界面,然后再点击该语音消息的标识,从而可以触发电子设备可以播放该语音消息的内容。
然而,在电子设备播放语音消息的过程中,电子设备需要保持显示该语音消息对应的聊天界面。如果电子设备退出该聊天界面,那么电子设备将停止播放该语音消息。如此,当用户想要继续听取该语音消息时,用户可以触发电子设备再次进入该界面,然后再触发电子设备重新播放该语音消息,从而导致电子设备播放语音消息的方式效率较低、且不够灵活。
发明内容
本发明实施例提供一种语音消息播放方法及电子设备,以解决现有的电子设备播放语音消息的方式效率较低、且不够灵活的问题。
为了解决上述技术问题,本发明实施例是这样实现的:
第一方面,本发明实施例提供了一种语音消息播放方法,该方法包括:接收用户对第一界面中的N个语音标识的第一输入,每个语音标识分别指示一条语音消息;并响应于第一输入,在电子设备的屏幕上显示目标控件,目标控件包括N个语音标识;以及接收用户的第二输入;且响应于第二输入,取消显示第一界面,并播放第一语音标识指示的第一语音消息,第一语音标识为目标控件中的N个语音标识中的语音标识,N为正整数。
第二方面,本发明实施例提供了一种电子设备,该电子设备包括接收模块、显示模块和播放模块。接收模块,用于接收用户对第一界面中的N个语音标识的第一输入,每个语音标识分别指示一条语音消息;显示模块,用于响应于接收模块接收的第一输入,在电子设备的屏幕上显示目标控件,目标控件N个语音标识;接收模块,还用于接收用户的第二输入;显示模块,还用于响应于接收模块接收的第二输入,取消显示第一界面;播放模块,用于响应于接收模块接收的第二输入,播放第一语音标识指示的第一语音消息,第一语音标识为目标控件中的N个语音标识中的语音标识,N为正整数。
第三方面,本发明实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在该存储器上并可在该处理器上运行的计算机程序,该计算机程序被该处理器执行时实现如上述第一方面中的语音消息播放方法的步骤。
第四方面,本发明实施例提供了一种计算机可读存储介质,该计算机可读存储介质上存储计算机程序,该计算机程序被处理器执行时实现如上述第一方面中的语音消息播放方法的步骤。
在本发明实施例中,电子设备可以接收用户对第一界面中的N个语音标识(每个语音标识分别指示一条语音消息)的第一输入;并响应于该第一输入,在电子设备的屏幕上显示目标控件(包括该N个语音标识);以及接收用户的第二输入,且响应于该第二输入,取消显示第一界面,并播放第一语音标识(目标控件中的N个语音标识中的语音标识)指示的第一语音消息,N为正整数。通过该方案,一方面,由于在电子设备取消显示语音标识所在的界面的情况下,电子设备可以播放目标控件中的语音标识指示的语音消息,因此在电子设备播放语音消息的过程中,电子设备无需保持显示第一界面,从而可以使得电子设备播放语音消息的方式比较灵活;另一方面,由于N个语音标识为用户触发电子设备从第一界面添加至目标控件中的语音标识,因此在电子设备取消显示第一界面的情况下,电子设备播放该N个语音标识中的第一语音标识指示的第一语音消息,相当于电子设备播放第一界面中的语音标识指示的语音消息,即电子设备仍然可以播放第一界面中的语音标识指示的语音消息,因此可以提高电子设备播放语音消息的效率。
附图说明
图1为本发明实施例提供的安卓操作系统的架构示意图;
图2为本发明实施例提供的语音消息播放方法的流程示意图;
图3为本发明实施例提供的语音消息播放方法应用的界面示意图之一;
图4为本发明实施例提供的语音消息播放方法应用的界面示意图之二;
图5为本发明实施例提供的语音消息播放方法应用的界面示意图之三;
图6为本发明实施例提供的语音消息播放方法应用的界面示意图之四;
图7为本发明实施例提供的语音消息播放方法应用的界面示意图之五;
图8为本发明实施例提供的电子设备的结构示意图;
图9为本发明实施例提供的电子设备的硬件示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
本文中术语“和/或”,是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。本文中符号“/”表示关联对象是或者的关系,例如A/B表示A或者B。
本发明的说明书和权利要求书中的术语“第一”和“第二”等是用于区别不同的对象,而不是用于描述对象的特定顺序。例如,第一语音标识和第二语音标识等是用于区别不同的语音标识,而不是用于描述语音标识的特定顺序。
在本发明实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本发明实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比 其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。
在本发明实施例的描述中,除非另有说明,“多个”的含义是指两个或者两个以上,例如,多个元件是指两个或者两个以上的元件等。
本发明实施例提供一种语音消息播放方法及电子设备,电子设备可以接收用户对第一界面中的N个语音标识(每个语音标识分别指示一条语音消息)的第一输入;并响应于该第一输入,在电子设备的屏幕上显示目标控件(包括该N个语音标识);以及接收用户的第二输入,且响应于该第二输入,取消显示第一界面,并播放第一语音标识(目标控件中的N个语音标识中的语音标识)指示的第一语音消息,N为正整数。通过该方案,一方面,由于在电子设备取消显示语音标识所在的界面的情况下,电子设备可以播放目标控件中的语音标识指示的语音消息,因此在电子设备播放语音消息的过程中,电子设备无需保持显示第一界面,从而可以使得电子设备播放语音消息的方式比较灵活;另一方面,由于N个语音标识为用户触发电子设备从第一界面添加至目标控件中的语音标识,因此在电子设备取消显示第一界面的情况下,电子设备播放该N个语音标识中的第一语音标识指示的第一语音消息,相当于电子设备播放第一界面中的语音标识指示的语音消息,即电子设备仍然可以播放第一界面中的语音标识指示的语音消息,因此可以提高电子设备播放语音消息的效率。
本发明实施例中的电子设备可以为具有操作系统的电子设备。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本发明实施例不作具体限定。
下面以安卓操作系统为例,介绍一下本发明实施例提供的语音消息播放方法所应用的软件环境。
如图1所示,为本发明实施例提供的一种可能的安卓操作系统的架构示意图。在图1中,安卓操作系统的架构包括4层,分别为:应用程序层、应用程序框架层、系统运行库层和内核层(具体可以为Linux内核层)。
其中,应用程序层包括安卓操作系统中的各个应用程序(包括系统应用程序和第三方应用程序)。
应用程序框架层是应用程序的框架,开发人员可以在遵守应用程序的框架的开发原则的情况下,基于应用程序框架层开发一些应用程序。
系统运行库层包括库(也称为系统库)和安卓操作系统运行环境。库主要为安卓操作系统提供其所需的各类资源。安卓操作系统运行环境用于为安卓操作系统提供软件环境。
内核层是安卓操作系统的操作系统层,属于安卓操作系统软件层次的最底层。内核层基于Linux内核为安卓操作系统提供核心系统服务和与硬件相关的驱动程序。
以安卓操作系统为例,本发明实施例中,开发人员可以基于上述如图1所示的安卓操作系统的系统架构,开发实现本发明实施例提供的语音消息播放方法的软件程序,从而使得该语音消息播放方法可以基于如图1所示的安卓操作系统运行。即处理器或者电子设备可以通过在安卓操作系统中运行该软件程序实现本发明实施例提供的语音消息播放方法。
本发明实施例中的电子设备可以为移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动电子设备可以为个人计算机(personal computer, PC)、电视机(television,TV)、柜员机或者自助机等,本发明实施例不作具体限定。
本发明实施例提供的语音消息播放方法的执行主体可以为上述的电子设备,也可以为该电子设备中能够实现该语音消息播放方法的功能模块和/或功能实体,具体的可以根据实际使用需求确定,本发明实施例不作限定。下面以电子设备为例,对本发明实施例提供的语音消息播放方法进行示例性的说明。
本发明实施例中,在用户听取电子设备中的语音消息的过程中,如果用户需要触发电子设备取消显示该语音消息的语音标识所在的界面,以触发电子设备执行其它操作(例如在用户通过电子设备听取其他用户A触发发送的语音消息的过程中,电子设备接收到其他用户B触发发送的信息,用户又想要在电子设备中查看其他用户B触发发送的信息),那么用户可以通过对指示其想要听取的语音消息的语音标识的输入(例如本发明实施例中的第一输入),触发电子设备在电子设备的屏幕上显示一个包括该语音消息的语音标识的控件,从而在电子设备取消这些语音消息的语音标识所在的界面之后,电子设备仍然可以播放这些语音消息。如此,一方面,在电子设备播放语音消息的过程中,电子设备无需保持显示该语音消息的语音标识所在的界面,从而可以使得电子设备播放语音消息的方式比较灵活;另一方面,由于电子设备在取消显示语音标识所在的界面的情况下,电子设备仍然可以播放该语音标识指示的语音消息,因此可以提高电子设备播放语音消息的效率。
需要说明的是,本发明实施例中提及的“用户听取电子设备中的语音消息的过程中”可以包括以下两种情况:电子设备当前正在播放语音消息,用户想要触发电子设备播放语音消息。
下面具体结合各个附图,对本发明实施例提供的语音消息播放方法进行示例性的说明。
如图2所示,本发明实施例提供一种语音消息播放方法,该方法包括下述的S201-S204。
S201、电子设备接收用户对第一界面中的N个语音标识的第一输入。
其中,上述N个语音标识中的每个语音标识可以分别指示一条语音消息,N为正整数。
本发明实施例中,上述每个语音标识指示的语音消息可以为不同的语音消息。
可选的,本发明实施例中,对于上述每个语音标识,一个语音标识可以为一个语音消息标识框,该语音消息标识框上可以显示该语音消息的消息时长。
当然,实际实现时,语音标识还可以为其它任意可能的形式,具体可以根据实际使用需求确定,本发明实施例不作限定。
可选的,本发明实施例中,语音消息可以为电子设备接收到的其它用户触发发送的语音消息,也可以为用户触发电子设备发送的语音消息,具体可以根据实际使用需求确定,本发明实施例不作限定。
可选的,本发明实施例中,对于上述每个语音标识还可以分别指示一个音频文件(即例如歌曲等)。
需要说明的是,本发明实施例中的示例均是以语音标识指示语音消息为例进行示例性的说明的,对于语音标识指示音频文件的实现方式,其与语音标识指示语音消息的实现方式类似,为避免重复,本发明实施例不予赘述。
S202、电子设备响应于该第一输入,在电子设备的屏幕上显示目标控件。
其中,上述目标控件可以包括上述N个语音标识。
本发明实施例中,在用户听取电子设备中的语音消息的过程中,如果用户想要触发电子设备取消显示上述第一界面,那么用户可以先通过对上述N个语音标识的第一输入,触发电 子设备在电子设备的屏幕(以下简称为屏幕)上显示上述目标控件。如此,在第一界面取消显示该第一界面之后,电子设备仍然可以播放该第一控件中的语音标识指示的语音消息。
可选的,本发明实施例中,第一种可能的实现方式,在电子设备接收到上述第一输入之后,电子设备可以将上述N个语音标识中的每个语音标识指示的语音消息添加至上述目标控件对应的目标存储空间,并根据该目标存储空间中的内容生成上述目标控件。如此,电子设备可以在屏幕上显示包括上述N个语音标识的目标控件。
可选的,本发明实施例中,第二种可能的实现方式,在电子设备接收到上述第一输入之后,电子设备可以将上述N个语音标识添加至目标控件对应的目标存储空间,并根据该目标存储空间中的内容生成上述目标控件。如此,电子设备可以在屏幕上显示包括上述N个语音标识的目标控件。
可选的,本发明实施例中,电子设备可以在屏幕上悬浮显示上述目标控件。
需要说明的是,本发明实施例中,在电子设备在屏幕上悬浮显示上述目标控件的情况下,在电子设备未取消显示目标控件之前,目标控件可以保持显示在电子设备的屏幕上。
也就是说,即使电子设备显示其它内容,目标控件也保持显示在电子设备的屏幕上。
可选的,本发明实施例中,上述第一输入可以包括第三子输入和第四子输入,其中,第三子输入可以用于触发电子设备选中上述N个语音标识,第四子输入可以用于触发电子设备在屏幕上显示上述目标控件。
可选的,本发明实施例中,用户可以长按上述N个语音标识中的一个语音标识,然后将该N个语音标识的中的其它语音标识拖动至该语音标识上,从而可以触发电子设备选中该N个语音标识。在电子设备选中该N个语音标识之后,用户可以将该N个语音标识拖动至屏幕边缘,从而可以触发电子设备显示上述目标控件。
可选的,本发明实施例中,上述目标控件在屏幕上的显示位置可以为电子设备的厂商在电子设备中预置的位置,也可以为用户将上述N个语音标识拖动至屏幕边缘的所在位置。具体可以根据实际使用需求确定,本发明实施例不作限定。
可选的,本发明实施例中,当用户将上述N个语音标识中的一个语音标识拖动至其长按的语音标识上时,响应于该输入,电子设备可以整合(例如叠加显示等方式)这两个语音标识,例如在其长按的语音标识的下一层显示被拖动的语音标识。
示例性的,如图3中的(a)所示,用户可以长按语音标识31,然后将语音标识32和语音标识33拖动到语音标识31上,响应于该输入,电子设备可以将语音标识32和语音标识33显示在语音标识31的下一层,例如图3中的(b)所示的语音标识31显示在最上层。然后,用户可以将语音标识31拖动至电子设备的屏幕的边缘,响应于该输入,如图3中的(c)所示,电子设备可以在电子设备的屏幕边缘显示目标控件34。
可选的,本发明实施例中,电子设备还可以显示一个数字标识,该数字标识可以用于指示电子设备当前选中的语音标识的数量。
可选的,本发明实施例中,上述数字标识可以以角标的形式显示在用户长按的语音标识的右上角或左上角。
示例性的,如上述图3中的(b)所示,电子设备可以在语音标识31上显示“3”的数字标识,以指示电子设备当前已选中3个语音标识。
S203、电子设备接收用户的第二输入。
S204、电子设备响应于该第二输入,取消显示第一界面,并播放第一语音标识指示的第 一语音消息。
其中,上述第一语音标识为目标控件中的N个语音标识中的语音标识。
本发明实施例中,在电子设备在屏幕上显示上述目标控件之后,用户可以通过上述第二输入触发电子设备取消显示上述第一界面,并触发电子设备播放目标控件中的第一语音标识指示的第一语音消息。从而,即使电子设备未显示上述第一界面(例如显示其它界面),电子设备仍然可以播放语音消息,从而可以使得电子设备播放语音消息的方式比较灵活。
可选的,本发明实施例中,对于上述第一种可能的实现方式(电子设备将上述N个语音标识中的每个语音标识指示的语音消息添加至上述目标存储空间),电子设备播放上述第一语音消息的方式可以为:电子设备根据第一语音标识,从目标存储空间中获取第一语音标识指示的第一语音消息,从而播放该第一语音消息。
可选的,本发明实施例中,对于上述第一种可能的实现方式(电子设备将上述N个语音标识添加至上述目标存储空间),电子设备播放上述第一语音消息的方式可以为:电子设备根据第一语音标识,从上述第一界面对应的存储空间中获取第一语音标识指示的第一语音消息,从而播放该第一语音消息。
可选的,本发明实施例中,在上述第一语音消息为不同语音消息的情况下,上述第二输入可以为不同的输入,电子设备响应第二输入的实现方式也可以不同。
下面具体以上述第一语音消息的两种情况(下述的情况一和情况二),对电子设备响应第二输入的实现方式进行示例性的说明。
情况一:上述第一语音消息为电子设备接收到上述第一输入时所播放的语音消息。
在上述情况一中,上述第二输入可以为用户触发电子设备取消显示上述第一界面的输入。
可选的,对于上述情况一,上述S204具体可以通过下述的S204a实现。
S204a、电子设备响应于第二输入,取消显示第一界面,并从目标位置开始播放第一语音消息。
其中,上述目标位置可以为电子设备接收到上述第一输入时,上述第一语音消息的播放位置。
可以理解,对于上述情况一,在电子设备接收到上述第一输入之后,响应于该第一输入,电子设备可以停止播放上述第一语音消息。
可选的,对于上述情况一,上述第一输入可以为用户触发电子设备从上述第一界面切换到第四界面的输入。
可以理解,在电子设备切换到上述第四界面之后,电子设备可以取消显示上述第一界面。
示例性的,本发明实施例中,假设上述第一界面为用户(即机主用户)与用户1的聊天界面(即上述N条语音消息可以为用户1触发发送的语音消息),那么在电子设备在屏幕上显示上述目标控件之后,如果用户想要在电子设备查看电子设备接收到的用户2触发发送的消息,那么机主用户可以通过上述第二输入,触发电子设备取消显示如图4中的(a)所示的第一界面35,并触发电子设备显示如图4中的(b)所示的机主用户与用户2的聊天界面36(即上述第四界面),并且在第一电子设备显示聊天界面36之后,电子设备可以播放目标控件34中的第一语音标识指示的第一语音消息。如此,用户可以一边在电子设备中查看用户2触发发送的消息,一边通过电子设备听取用户1触发发送的语音消息,从而可以提高电子设备播放语音消息的效率。
在上述情况一中,在电子设备接收到上述第二输入之后,电子设备可以继续从上述目标 位置播放上述第一语音消息,如此电子设备无需再次播放第一语音消息中已经播放过的内容,从而可以缩短电子设备播放第一语音消息的时间,进而提高电子设备播放语音消息的效率。
情况二:第一语音消息为以下任意一种语音消息:电子设备未播放的语音消息、电子设备已播放完的语音消息。
在上述情况二中,上述第二输入可以包括第一子输入和第二子输入。
其中,上述第一子输入可以为用户触发电子设备取消显示上述第一界面的输入,上述第二子输入可以为用户触发电子设备选中目标控件中的第一语音标识的输入。
可选的,对于上述情况二,上述S204具体可以通过下述的S204b和S204c实现。
S204b、电子设备响应于第一子输入,取消显示第一界面。
S204c、电子设备响应于第二子输入,播放第一语音消息。
可以理解,对于上述情况二,电子设备可以先触发电子设备取消显示上述第一界面,然后用户可以再触发电子设备选中上述目标控件中的第一语音标识,从而触发电子设备播放该第一语音标识指示的第一语音消息。
可选的,本发明实施例中,上述目标控件对应的界面(可以称为第二界面)可以包括上述N个语音标识,然后用户可以通过对该第二界面中的第一语音标识的第二子输入,触发电子设备播放该第一语音标识指示的第一语音消息。
在上述情况二中,由于在电子设备取消显示上述第一界面之后,即电子设备退出第一界面之后,用户还可以触发电子设备继续播放上述第一语音消息,因此可以使得电子设备播放语音消息的方式比较灵活。
可选的,本发明实施例中,N大于1,在上述N条语音消息还包括电子设备未播放的语音消息的情况下,在上述第一语音消息播放结束之后,电子设备可以继续播放该N条语音消息中电子设未播放的语音消息。
可选的,本发明实施例中,N大于1,在上述第一语音消息播放结束之后,电子设备可以按照用户触发选中上述N条语音标识的顺序,依次播放该N条语音标识指示的语音消息。
当然,实际实现时,在第一语音消息播放结束之后,电子设备还可以按照其它任意可能的播放规则或次序,播放上述N条语音消息中的语音消息。具体可以根据实际使用需求确定,本发明实施例不作限定。
可选的,本发明实施例中,在上述S201之前,本发明实施例提供的语音消息播放方法还可以包括下述的S205-S207。
S205、电子设备显示第一界面。
其中,上述第一界面可以包括至少一个语音标识,上述N个语音标识可以为该至少一个语音标识中的标识。
S206、电子设备接收用户对至少一个语音标识中的第二语音标识的第三输入。
S207、电子设备响应于该第三输入,控制该至少一个语音标识处于可操作状态。
需要说明的是,本发明实施例中,上述可操作状态可以为待选状态。
可以理解,在上述至少一个语音标识处于可操作状态的情况下,用户可以通过对该至少一个语音标识中的N个语音标识的第一输入,触发电子设备选中该N个语音标识。
本发明实施例中,在电子设备接收上述第一输入之前,电子设备可以先显示上述第一界面,如果用户想要触发电子设备在屏幕上显示上述目标控件,那么用户可以通过对上述N个语音标识中的第一语音标识的第三输入,触发电子设备控制上述至少一个语音标识处于可操 作状态。然后,用户可以触发电子设备选中该至少一个语音标识中的N个语音标识。
可选的,本发明实施例中,电子设备可以通过悬浮显示上述至少一个语音标识,控制该至少一个语音标识处于可操作状态。
可选的,本发明实施例中,上述第一界面可以为用户与其他用户的聊天界面。例如,电子设备中的聊天应用中,用户与其他用户的聊天界面。
可选的,本发明实施例中,上述第二语音标识可以为上述至少一个语音标识中的任意一个语音标识。
可选的,本发明实施例中,上述第三输入可以为用户对上述第二语音标识的长按输入或重按输入。具体可以根据实际使用需求确定,本发明实施例不作限定。
示例性的,在用户在听取如图5中的(a)所示的界面(即上述第一界面)中的语音标识41指示的语音消息(用户1触发发送的语音消息)的过程中,在电子设备接收到其他用户触发发送的消息的情况下,如图5中的(b)所示,电子设备可以显示消息提示标识42,从而可以指示电子设备接收到新消息。然后,如果用户想要查看这些新消息,那么,如图6中的(a)所示,用户可以长按语音标识41(即上述第二语音标识),响应于该输入,如图6中的(b)所示,电子设备可以控制第一界面中、用户1触发发送的所有语音消息的语音标识(即上述至少一个语音标识)处于可操作状态。如此,用户可以触发电子设备从处于可操作状态的语音标识中选中上述N个语音标识。
可选的,本发明实施例中,在上述S204之后,本发明实施例提供的语音消息播放方法还可以包括下述的S208-S211。
S208、电子设备接收用户对目标控件的第四输入。
S209、电子设备响应于该第四输入,显示目标控件对应的第二界面。
其中,上述第二界面可以包括上述N个语音标识。
S210、电子设备接收用户对N个语音标识中的第三语音标识的第五输入。
S211、电子设备响应于该第五输入,播放该第三语音标识指示的第三语音消息。
本发明实施例中,在电子设备播放上述第一语音消息结束之后,如果用户想要听取该N条语音消息中的某条语音消息(即上述第三语音消息),那么用户可以先通过对上述目标控件的第四输入,触发电子设备显示上述第二界面。然后,用户可以对该第二界面中的第三语音消息的第五输入,触发电子设备播放该第三语音消息指示的第三语音消息。
可选的,本发明实施例中,上述第四输入可以为用户对上述目标控件的单击输入、双击输入或长按输入等任意可能的输入。具体可以根据实际使用需求确定,本发明实施例不作限定。
可选的,本发明实施例中,上述第五输入可以为用户对上述第三语音标识的单击输入或双击输入等任意可能的输入。具体可以根据实际使用需求确定,本发明实施例不作限定。
示例性的,假设上述第四输入为用户对目标控件的单击输入,上述第五输入为用户对第三语音标识的单击输入。那么,如图7中的(a)所示,当用户单击目标控件34时,响应于该输入,电子设备可以显示如图7中的(b)所示的第二界面51,然后用户可以单击第二界面51中的语音标识52(即上述第三语音标识),响应于该输入,电子设备可以播放语音标识52指示的语音消息(即上述第三语音消息)。
可选的,本发明实施例中,用户可以通过对电子设备的屏幕上除上述第二界面之外的其它区域的点击输入,触发电子设备取消显示上述第二界面,并在屏幕上保持显示上述目标控 件。
可选的,本发明实施例中,上述第二界面还可以包括关闭标识(例如图7中的关闭标识“×”53)。用户可以通过对该关闭标识的点击输入,触发电子设备取消显示上述第二界面,并取消显示上述目标控件。
本发明实施例中,由于用户可以通过对第二界面中的语音标识的输入,触发电子设备继续播放该语音标识指示的语音消息,因此当用户想要再次听取上述N条语音消息中的语音消息时,用户可以直接通过对第二界面中的语音标识的输入,触发电子设备播放该语音标识指示的语音消息,而无需再触发电子设备显示上述第一界面,从而可以提高电子设备播放语音消息的便捷性。
可选的,本发明实施例中,在上述S202之后,本发明实施例提供的语音消息播放方法还可以包括下述的S212和S213。
需要说明的是,本发明实施例可以不限定上述S203-S204和S212-S213之间的执行顺序,即电子设备可以先执行S203-S204,后执行S212-S213;也可以先执行S212-S213,后执行S203-S204。具体可以根据实际使用需求确定,本发明实施例不作限定。
S212、电子设备接收用户对第三界面中的K个语音标识的第六输入。
S213、电子设备响应于该第六输入,将该K个语音标识添加至目标控件中。
其中,上述第三界面与第一界面可以为电子设备中的同一应用程序的不同界面,或可以为电子设备中的不同应用程序的界面,K为正整数。
本发明实施例中,在电子设备在屏幕上显示上述目标控件之后,用户可以通过上述第六输入,触发电子设备将上述K个语音标识添加至上述目标控件中,从而在电子设备未显示第三界面的情况下,电子设备也可以播放该K个语音标识指示的语音消息。
本发明实施例中,对于上述第六输入的相关描述,具体可以参见上述实施例中对第一输入的详细描述,为避免重复,本发明实施例不予赘述。
本发明实施例中,由于电子设备还可以将上述K个语音标识添加至上述目标控件中,因此在电子设备未显示第三界面的情况下,电子设备也可以播放该K个语音标识指示的语音消息,如此,电子设备可以播放不同界面中的语音标识指示的语音消息,从而可以使得电子设备播放语音消息的方式更加灵活。
如图8所示,本发明实施例提供一种电子设备600,该电子设备600可以包括接收模块601、显示模块602和播放模块603。接收模块601,可以用于接收用户对第一界面中的N个语音标识的第一输入,每个语音标识分别指示一条语音消息;显示模块602,可以用于响应于接收模块601接收的第一输入,在电子设备的屏幕上显示目标控件,目标控件包括N个语音标识;接收模块601,还可以用于接收用户的第二输入;显示模块602,还可以用于响应于接收模块601接收的第二输入,取消显示第一界面;播放模块603,可以用于响应于接收模块601接收的第二输入,播放第一语音标识指示的第一语音消息,第一语音标识为目标控件中的N个语音标识中的语音标识,N为正整数。
可选的,第一语音消息为电子设备接收到上述第一输入时所播放的语音消息;播放模块603,具体可以用于从目标位置开始播放第一语音消息,目标位置为电子设备接收到第一输入时,第一语音消息的播放位置。
可选的,第一语音消息为以下任意一种语音消息:电子设备未播放的语音消息、电子设备已播放完的语音消息;第二输入包括第一子输入和第二子输入;显示模块602,具体可以 用于响应于第一子输入,取消显示第一界面;播放模块603,具体可以用于响应于第二子输入,播放第一语音消息;其中,第二子输入为触发选中目标控件中的第一语音标识的输入。
可选的,如图8所示,电子设备600还可以包括控制模块604。显示模块602,还可以用于在接收模块接收用户对第一界面中的N个语音标识的第一输入之前,显示第一界面,第一界面包括至少一个语音标识,N个语音标识为至少一个语音标识中的标识;接收模块601,还可以用于接收用户对显示模块602显示的至少一个语音标识中的第二语音标识的第三输入,控制模块604,用于响应于接收模块601接收的第三输入,控制该至少一个语音标识处于可操作状态。
可选的,接收模块601,还可以用于在播放模块603播放第一语音标识指示的第一语音消息之后,接收用户对目标控件的第四输入;显示模块602,还可以用于响应于接收模块601接收的第四输入,显示与目标控件对应的第二界面,第二界面包括N个语音标识;接收模块601,还可以用于接收用户对显示模块602显示的N个语音标识中的第三语音标识的第五输入;播放模块603,还可以用于响应于接收模块601接收的第五输入,播放第三语音标识指示的第三语音消息。
可选的,如图8所示,电子设备600还可以包括添加模块605。接收模块601,还可以用于接收显示模块602在电子设备的屏幕上显示目标控件之后,接收用户对第三界面中的K个语音标识的第六输入;添加模块605,可以用于响应于接收模块601接收的第六输入,将K个语音标识添加至目标控件中;其中,第三界面与第一界面为电子设备中的同一应用程序的不同界面,或为电子设备中的不同应用程序的界面,K为正整数。
本发明实施例提供的电子设备能够实现上述语音消息播放方法实施例中电子设备执行的各个过程,且能达到相同的技术效果,为避免重复,此处不再赘述。
本发明实施例提供一种电子设备,一方面,由于在电子设备取消显示语音标识所在的界面的情况下,电子设备可以播放目标控件中的语音标识指示的语音消息,因此在电子设备播放语音消息的过程中,电子设备无需保持显示第一界面,从而可以使得电子设备播放语音消息的方式比较灵活;另一方面,由于N个语音标识为用户触发电子设备从第一界面添加至目标控件中的语音标识,因此在电子设备取消显示第一界面的情况下,电子设备播放该N个语音标识中的第一语音标识指示的第一语音消息,相当于电子设备播放第一界面中的语音标识指示的语音消息,即电子设备仍然可以播放第一界面中的语音标识指示的语音消息,因此可以提高电子设备播放语音消息的效率。
图9为实现本发明各个实施例的一种电子设备的硬件示意图。如图9所示,电子设备100包括但不限于:射频单元101、网络模块102、音频输出单元103、输入单元104、传感器105、显示单元106、用户输入单元107、接口单元108、存储器109、处理器110、以及电源111等部件。本领域技术人员可以理解,图9中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,电子设备包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。
其中,处理器110,用于控制用户输入单元107接收用户对第一界面中的N个语音标识的第一输入,每个语音标识分别指示一条语音消息;并控制显示单元106响应于用户输入单元107接收的第一输入,在电子设备的屏幕上显示目标控件,目标控件包括N个语音标识;以及控制用户输入单元107接收用户的第二输入;且控制显示单元106响应于用户输入单元 107接收的第二输入,取消显示第一界面,并控制音频输出单元103播放第一语音标识指示的第一语音消息,第一语音标识为目标控件中的N个语音标识中的语音标识,N为正整数。
可以理解,本发明实施例中,上述电子设备的结构示意图(例如图8)中的接收模块601可以通过上述用户输入单元107实现;上述电子设备的结构示意图中的显示单元602可以通过上述显示单元106实现;上述电子设备的结构示意图中的播放模块603可以通过上述音频输出单元103实现;上述电子设备的结构示意图中的控制模块604和添加模块605可以通过上述处理器110实现。
本发明实施例提供一种电子设备,一方面,由于在电子设备取消显示语音标识所在的界面的情况下,电子设备可以播放目标控件中的语音标识指示的语音消息,因此在电子设备播放语音消息的过程中,电子设备无需保持显示第一界面,从而可以使得电子设备播放语音消息的方式比较灵活;另一方面,由于N个语音标识为用户触发电子设备从第一界面添加至目标控件中的语音标识,因此在电子设备取消显示第一界面的情况下,电子设备播放该N个语音标识中的第一语音标识指示的第一语音消息,相当于电子设备播放第一界面中的语音标识指示的语音消息,即电子设备仍然可以播放第一界面中的语音标识指示的语音消息,因此可以提高电子设备播放语音消息的效率。
应理解的是,本发明实施例中,射频单元101可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器110处理;另外,将上行的数据发送给基站。通常,射频单元101包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元101还可以通过无线通信系统与网络和其他设备通信。
电子设备通过网络模块102为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。
音频输出单元103可以将射频单元101或网络模块102接收的或者在存储器109中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元103还可以提供与电子设备100执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元103包括扬声器、蜂鸣器以及受话器等。
输入单元104用于接收音频或视频信号。输入单元104可以包括图像捕获装置(如摄像头)1040、图形处理器(graphics processing unit,GPU)1041和麦克风1042。图像捕获装置1040(如摄像头)采集静态图片或视频的图像数据。图形处理器1041对在视频捕获模式或图像捕获模式中由图像捕获装置获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元106上。经图形处理器1041处理后的图像帧可以存储在存储器109(或其它存储介质)中或者经由射频单元101或网络模块102进行发送。麦克风1042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元101发送到移动通信基站的格式输出。
电子设备100还包括至少一种传感器105,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板1061的亮度,接近传感器可在电子设备100移动到耳边时,关闭显示面板1061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别电子设备姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器 105还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。
显示单元106用于显示由用户输入的信息或提供给用户的信息。显示单元106可包括显示面板1061,可以采用液晶显示器(liquid crystal display,LCD)、有机发光二极管(organic light-emitting diode,OLED)等形式来配置显示面板1061。
用户输入单元107可用于接收输入的数字或字符信息,以及产生与电子设备的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元107包括触控面板1071以及其他输入设备1072。触控面板1071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板1071上或在触控面板1071附近的操作)。触控面板1071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器110,接收处理器110发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板1071。除了触控面板1071,用户输入单元107还可以包括其他输入设备1072。具体地,其他输入设备1072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。
进一步的,触控面板1071可覆盖在显示面板1061上,当触控面板1071检测到在其上或附近的触摸操作后,传送给处理器110以确定触摸事件的类型,随后处理器110根据触摸事件的类型在显示面板1061上提供相应的视觉输出。虽然在图9中,触控面板1071与显示面板1061是作为两个独立的部件来实现电子设备的输入和输出功能,但是在某些实施例中,可以将触控面板1071与显示面板1061集成而实现电子设备的输入和输出功能,具体此处不做限定。
接口单元108为外部装置与电子设备100连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元108可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到电子设备100内的一个或多个元件或者可以用于在电子设备100和外部装置之间传输数据。
存储器109可用于存储软件程序以及各种数据。存储器109可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器109可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
处理器110是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器109内的软件程序和/或模块,以及调用存储在存储器109内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。处理器110可包括一个或多个处理单元;可选的,处理器110可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器110中。
电子设备100还可以包括给各个部件供电的电源111(比如电池),可选的,电源111可以通过电源管理系统与处理器110逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。
另外,电子设备100包括一些未示出的功能模块,在此不再赘述。
可选的,本发明实施例还提供一种电子设备,包括如图9所示的处理器110,存储器109,存储在存储器109上并可在处理器110上运行的计算机程序,该计算机程序被处理器110执行时实现上述语音消息播放方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被如图9所示的处理器执行时实现上述语音消息播放方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,该计算机可读存储介质可以包括只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台电子设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。
上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本发明的保护之内。

Claims (19)

  1. 一种语音消息播放方法,应用于电子设备,所述方法包括:
    接收用户对第一界面中的N个语音标识的第一输入,每个语音标识分别指示一条语音消息,N为正整数;
    响应于所述第一输入,在所述电子设备的屏幕上显示目标控件,所述目标控件包括所述N个语音标识;
    接收用户的第二输入;
    响应于所述第二输入,取消显示所述第一界面,并播放第一语音标识指示的第一语音消息,所述第一语音标识为所述目标控件中的所述N个语音标识中的语音标识。
  2. 根据权利要求1所述的方法,其中,所述第一语音消息为所述电子设备接收到所述第一输入时所播放的语音消息;
    所述播放第一语音标识指示的第一语音消息,包括:
    从目标位置开始播放所述第一语音消息,所述目标位置为所述电子设备接收到第一输入时,所述第一语音消息的播放位置。
  3. 根据权利要求1所述的方法,其中,所述第一语音消息为以下任意一种语音消息:所述电子设备未播放的语音消息、所述电子设备已播放完的语音消息;所述第二输入包括第一子输入和第二子输入;
    所述响应于所述第二输入,取消显示所述第一界面,并播放第一语音标识指示的第一语音消息,包括:
    响应于所述第一子输入,取消显示所述第一界面;
    响应于所述第二子输入,播放所述第一语音消息;
    其中,所述第二子输入为触发选中所述目标控件中的所述第一语音标识的输入。
  4. 根据权利要求1所述的方法,其中,所述接收用户对第一界面中的N个语音标识的第一输入之前,所述方法还包括:
    显示所述第一界面,所述第一界面包括至少一个语音标识,所述N个语音标识为所述至少一个语音标识中的标识;
    接收用户对所述至少一个语音标识中的第二语音标识的第三输入;
    响应于所述第三输入,控制所述至少一个语音标识处于可操作状态。
  5. 根据权利要求1至4中任一项所述的方法,其中,所述播放第一语音标识指示的第一语音消息之后,所述方法还包括:
    接收用户对所述目标控件的第四输入;
    响应于所述第四输入,显示与所述目标控件对应的第二界面,所述第二界面包括所述N个语音标识;
    接收用户对所述N个语音标识中的第三语音标识的第五输入;
    响应于所述第五输入,播放所述第三语音标识指示的第三语音消息。
  6. 根据权利要求1至4中任一项所述的方法,其中,所述在所述电子设备的屏幕上显示目标控件之后,所述方法还包括:
    接收用户对第三界面中的K个语音标识的第六输入;
    响应于所述第六输入,将所述K个语音标识添加至所述目标控件中;
    其中,所述第三界面与所述第一界面为所述电子设备中的同一应用程序的不同界面, 或为所述电子设备中的不同应用程序的界面,K为正整数。
  7. 根据权利要求1所述的方法,其中,所述在所述电子设备的屏幕上显示目标控件之前,所述方法还包括:
    将所述N个语音标识中的每个语音标识指示的语音消息,添加至所述目标控件对应的目标存储空间;
    根据所述目标存储控件中的内容,生成所述目标控件。
  8. 根据权利要求1所述的方法,其中,所述在所述电子设备的屏幕上显示目标控件之前,所述方法还包括:
    将所述N个语音标识,添加至所述目标控件对应的目标存储空间;
    根据所述目标存储空间中的内容,生成所述目标控件。
  9. 一种电子设备,所述电子设备包括接收模块、显示模块和播放模块;
    所述接收模块,用于接收用户对第一界面中的N个语音标识的第一输入,每个语音标识分别指示一条语音消息,N为正整数;
    所述显示模块,用于响应于所述接收模块接收的所述第一输入,在所述电子设备的屏幕上显示目标控件,所述目标控件包括N个语音标识;
    所述接收模块,还用于接收用户的第二输入;
    所述显示模块,还用于响应于所述接收模块接收的所述第二输入,取消显示所述第一界面;
    所述播放模块,用于响应于所述接收模块接收的所述第二输入,播放第一语音标识指示的第一语音消息,所述第一语音标识为所述目标控件中的所述N个语音标识中的语音标识。
  10. 根据权利要求9所述的电子设备,其中,所述第一语音消息为所述电子设备接收到所述第一输入时所播放的语音消息;
    所述播放模块,具体用于从目标位置开始播放所述第一语音消息,所述目标位置为所述电子设备接收到第一输入时,所述第一语音消息的播放位置。
  11. 根据权利要求9所述的电子设备,其中,所述第一语音消息为以下任意一种语音消息:所述电子设备未播放的语音消息、所述电子设备已播放完的语音消息;所述第二输入包括第一子输入和第二子输入;
    所述显示模块,具体用于响应于所述第一子输入,取消显示所述第一界面;
    所述播放模块,具体用于响应于所述第二子输入,播放所述第一语音消息;
    其中,所述第二子输入为触发选中所述目标控件中的所述第一语音标识的输入。
  12. 根据权利要求9所述的电子设备,其中,所述电子设备还包括控制模块;
    所述显示模块,还用于在所述接收模块接收用户对所述第一界面中的所述N个语音标识的所述第一输入之前,显示所述第一界面,所述第一界面包括至少一个语音标识,所述N个语音标识为所述至少一个语音标识中的标识;
    所述接收模块,还用于接收用户对所述显示模块显示的所述至少一个语音标识中的第二语音标识的第三输入;
    所述控制模块,用于响应于所述接收模块接收的所述第三输入,控制所述至少一个语音标识处于可操作状态。
  13. 根据权利要求9至12中任一项所述的电子设备,其中,所述接收模块,还用于 在所述播放模块播放所述第一语音标识指示的所述第一语音消息之后,接收用户对所述目标控件的第四输入;
    所述显示模块,还用于响应于所述接收模块接收的所述第四输入,显示与所述目标控件对应的第二界面,所述第二界面包括所述N个语音标识;
    所述接收模块,还用于接收用户对所述显示模块显示的所述N个语音标识中的第三语音标识的第五输入;
    所述播放模块,还用于响应于所述接收模块接收的所述第五输入,播放所述第三语音标识指示的第三语音消息。
  14. 根据权利要求9至12中任一项所述的电子设备,其中,所述电子设备还包括添加模块;
    所述接收模块,还用于在所述显示模块在所述电子设备的屏幕上显示所述目标控件之后,接收用户对第三界面中的K个语音标识的第六输入;
    所述添加模块,用于响应于所述接收模块接收的所述第六输入,将所述K个语音标识添加至所述目标控件中;
    其中,所述第三界面与所述第一界面为所述电子设备中的同一应用程序的不同界面,或为所述电子设备中的不同应用程序的界面,K为正整数。
  15. 根据权利要求9所述的电子设备,其中,所述电子设备还包括添加模块;
    所述添加模块,用于在所述显示模块在所述电子设备的屏幕上显示目标控件之前,将所述N个语音标识中的每个语音标识指示的语音消息,添加至所述目标控件对应的目标存储空间;并根据所述目标存储控件中的内容,生成所述目标控件。
  16. 根据权利要求9所述的电子设备,其中,所述电子设备还包括添加模块;
    所述添加模块,用于在所述显示模块在所述电子设备的屏幕上显示目标控件之前,将所述N个语音标识,添加至所述目标控件对应的目标存储空间;并根据所述目标存储空间中的内容,生成所述目标控件。
  17. 一种电子设备,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1至8中任一项所述的语音消息播放方法的步骤。
  18. 一种计算机可读存储介质,所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现如权利要求1至8中任一项所述的语音消息播放方法的步骤。
  19. 一种语音消息播放装置,其特征在于,包括所述装置被配置成执行如权利要求1-8任一项所述的语音消息播放方法。
PCT/CN2020/139823 2019-12-27 2020-12-28 语音消息播放方法及电子设备 WO2021129850A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911377996.7A CN111163224B (zh) 2019-12-27 2019-12-27 一种语音消息播放方法及电子设备
CN201911377996.7 2019-12-27

Publications (1)

Publication Number Publication Date
WO2021129850A1 true WO2021129850A1 (zh) 2021-07-01

Family

ID=70558634

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/139823 WO2021129850A1 (zh) 2019-12-27 2020-12-28 语音消息播放方法及电子设备

Country Status (2)

Country Link
CN (1) CN111163224B (zh)
WO (1) WO2021129850A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114489420A (zh) * 2022-01-14 2022-05-13 维沃移动通信有限公司 语音信息发送方法、装置及电子设备

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111163224B (zh) * 2019-12-27 2021-07-30 维沃移动通信有限公司 一种语音消息播放方法及电子设备
CN111641551A (zh) * 2020-05-27 2020-09-08 维沃移动通信有限公司 语音播放方法、语音播放装置和电子设备
CN112688859B (zh) * 2020-12-18 2022-09-02 维沃移动通信有限公司 语音消息的发送方法、装置、电子设备及可读存储介质

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103051516A (zh) * 2011-10-17 2013-04-17 腾讯科技(深圳)有限公司 一种即时通信客户端的消息提示方法和装置
WO2013062282A1 (en) * 2011-10-28 2013-05-02 Samsung Electronics Co., Ltd. Method of operating a background content and terminal supporting the same
CN103412716A (zh) * 2013-07-22 2013-11-27 昆山富泰科电脑有限公司 应用程序未读提示信息预览和处理方法
CN106155458A (zh) * 2015-04-01 2016-11-23 腾讯科技(深圳)有限公司 一种多媒体消息播放方法及装置
CN106909268A (zh) * 2015-12-23 2017-06-30 北京奇虎科技有限公司 一种在设备桌面上设置app悬浮窗的方法及装置
US20170242657A1 (en) * 2016-02-22 2017-08-24 Sonos, Inc. Action based on User ID
CN111163224A (zh) * 2019-12-27 2020-05-15 维沃移动通信有限公司 一种语音消息播放方法及电子设备

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107656672A (zh) * 2017-09-29 2018-02-02 珠海市魅族科技有限公司 一种信息处理方法及装置、终端和可读存储介质
CN108415753A (zh) * 2018-03-12 2018-08-17 广东欧珀移动通信有限公司 用户界面显示方法、装置及终端
CN109245997B (zh) * 2018-09-26 2021-08-06 北京小米移动软件有限公司 语音消息播放方法及装置
CN109729301B (zh) * 2018-12-12 2021-02-09 维沃移动通信有限公司 一种消息查看方法及装置
CN109995947A (zh) * 2019-04-11 2019-07-09 上海连尚网络科技有限公司 用于播放语音消息的方法、电子设备和计算机可读介质

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103051516A (zh) * 2011-10-17 2013-04-17 腾讯科技(深圳)有限公司 一种即时通信客户端的消息提示方法和装置
WO2013062282A1 (en) * 2011-10-28 2013-05-02 Samsung Electronics Co., Ltd. Method of operating a background content and terminal supporting the same
CN103412716A (zh) * 2013-07-22 2013-11-27 昆山富泰科电脑有限公司 应用程序未读提示信息预览和处理方法
CN106155458A (zh) * 2015-04-01 2016-11-23 腾讯科技(深圳)有限公司 一种多媒体消息播放方法及装置
CN106909268A (zh) * 2015-12-23 2017-06-30 北京奇虎科技有限公司 一种在设备桌面上设置app悬浮窗的方法及装置
US20170242657A1 (en) * 2016-02-22 2017-08-24 Sonos, Inc. Action based on User ID
CN111163224A (zh) * 2019-12-27 2020-05-15 维沃移动通信有限公司 一种语音消息播放方法及电子设备

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114489420A (zh) * 2022-01-14 2022-05-13 维沃移动通信有限公司 语音信息发送方法、装置及电子设备

Also Published As

Publication number Publication date
CN111163224A (zh) 2020-05-15
CN111163224B (zh) 2021-07-30

Similar Documents

Publication Publication Date Title
WO2021098678A1 (zh) 投屏控制方法及电子设备
WO2021082741A1 (zh) 显示方法及电子设备
WO2021129850A1 (zh) 语音消息播放方法及电子设备
US11658932B2 (en) Message sending method and terminal device
WO2020186964A1 (zh) 音频信号的输出方法及终端设备
WO2021083087A1 (zh) 截屏方法及终端设备
WO2021057290A1 (zh) 信息控制方法及电子设备
WO2021083256A1 (zh) 触控响应方法及电子设备
WO2021129536A1 (zh) 图标移动方法及电子设备
WO2020192282A1 (zh) 通知消息显示方法及终端设备
WO2021083058A1 (zh) 图像处理方法、服务器及终端设备
WO2021109959A1 (zh) 应用程序分享方法及电子设备
WO2021121265A1 (zh) 摄像头启动方法及电子设备
WO2020192299A1 (zh) 信息显示方法及终端设备
WO2020181954A1 (zh) 应用程序控制方法及终端设备
CN108681427B (zh) 一种访问权限控制的方法及终端设备
WO2021057301A1 (zh) 文件控制方法及电子设备
WO2021093766A1 (zh) 消息显示方法及电子设备
WO2020192322A1 (zh) 显示方法及终端设备
WO2021037074A1 (zh) 音频输出方法及电子设备
WO2020215969A1 (zh) 内容输入方法及终端设备
WO2021031717A1 (zh) 截屏方法及终端设备
WO2020211602A1 (zh) 应用控制方法及终端设备
WO2020215982A1 (zh) 桌面图标管理方法及终端设备
WO2020199764A1 (zh) 发送图像的方法及终端设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20908016

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20908016

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 12.01.2023)

122 Ep: pct application non-entry in european phase

Ref document number: 20908016

Country of ref document: EP

Kind code of ref document: A1