WO2020051881A1 - Information prompt method and related product - Google Patents

Information prompt method and related product Download PDF

Info

Publication number
WO2020051881A1
WO2020051881A1 PCT/CN2018/105737 CN2018105737W WO2020051881A1 WO 2020051881 A1 WO2020051881 A1 WO 2020051881A1 CN 2018105737 W CN2018105737 W CN 2018105737W WO 2020051881 A1 WO2020051881 A1 WO 2020051881A1
Authority
WO
WIPO (PCT)
Prior art keywords
information
instant messaging
type
identifier
determining
Prior art date
Application number
PCT/CN2018/105737
Other languages
French (fr)
Chinese (zh)
Inventor
李森林
Original Assignee
深圳市欢太科技有限公司
Oppo广东移动通信有限公司
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 深圳市欢太科技有限公司, Oppo广东移动通信有限公司 filed Critical 深圳市欢太科技有限公司
Priority to CN201880095663.2A priority Critical patent/CN112425144B/en
Priority to PCT/CN2018/105737 priority patent/WO2020051881A1/en
Publication of WO2020051881A1 publication Critical patent/WO2020051881A1/en

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/725Cordless telephones

Definitions

  • the present application relates to the technical field of electronic devices, and in particular, to an information prompting method and related products.
  • a third-party application may add an applet, such as various types of applet such as a ticket grabbing application, a game application, and so on, there is no need to separately install an application corresponding to the applet.
  • an information prompting method including:
  • Controlling an audio component of the electronic device to play the voice information Controlling an audio component of the electronic device to play the voice information.
  • an information prompting device including:
  • a receiving unit configured to receive first instant messaging information of the first application when the applet of the first application of the electronic device is running
  • a processing unit configured to convert the first instant messaging information into voice information
  • a playback unit configured to control an audio component of the electronic device to play the voice information.
  • an embodiment of the present application provides an electronic device including a processor, a memory, a communication interface, and one or more programs.
  • the one or more programs are stored in the memory, and are configured by the above.
  • the processor executes the program including instructions for some or all of the steps as described in the first aspect.
  • an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program causes a computer to execute the program as described in the first aspect of the embodiment of the application. Describe some or all of the steps.
  • an embodiment of the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute Some or all of the steps described in the first aspect of the embodiment of the application.
  • the computer program product can be a software installation package.
  • FIG. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
  • FIG. 2 is a schematic flowchart of an information prompting method according to an embodiment of the present application.
  • FIG. 3 is a schematic structural diagram of an information prompting device according to an embodiment of the present application.
  • FIG. 4 is a schematic structural diagram of another electronic device according to an embodiment of the present application.
  • an embodiment herein means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the present application.
  • the appearances of this phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are they independent or alternative embodiments that are mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
  • the electronic devices involved in the embodiments of the present application may include various handheld devices with wireless communication functions, vehicle-mounted devices, wearable devices, computing devices, or other processing devices connected to a wireless modem, and various forms of user devices (User Equipment (UE), mobile station (MS), terminal device (terminal), and so on.
  • UE User Equipment
  • MS mobile station
  • terminal terminal
  • electronic devices the devices mentioned above are collectively referred to as electronic devices.
  • FIG. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
  • the electronic device includes a control circuit and an input-output circuit, and the input-output circuit is connected to the control circuit.
  • the control circuit may include a storage and processing circuit.
  • the storage circuit in the storage and processing circuit may be a memory, such as a hard disk drive memory, a non-volatile memory (such as a flash memory or other electronic programmable read-only memory used to form a solid-state drive, etc.), a volatile memory (such as a static Or dynamic random access memory, etc.), this embodiment is not limited.
  • the processing circuit in the storage and processing circuit can be used to control the operation of the electronic device.
  • the processing circuit can be implemented based on one or more microprocessors, microcontrollers, digital signal processors, baseband processors, power management units, audio codec chips, application specific integrated circuits, display driver integrated circuits, and the like.
  • the storage and processing circuit can be used to run software in an electronic device, such as playing an incoming call alert ringing application, playing a short message alert ringing application, playing an alarm alert ringing application, playing a media file application, Internet protocol voice (voice Over Internet Protocol (VOIP) telephone calling applications, operating system functions, etc.
  • These software can be used to perform some control operations, such as playing the call alert ring, playing the short message alert ring, playing the alarm alert ring, playing media files, making voice phone calls, and other functions in electronic devices.
  • the examples are not limited.
  • the input-output circuit can be used to enable the electronic device to implement data input and output, that is, to allow the electronic device to receive data from an external device and to allow the electronic device to output data from the electronic device to the external device.
  • the input-output circuit may further include a sensor.
  • the sensor may include an ambient light sensor, an infrared proximity sensor based on light and capacitance, an ultrasonic sensor, and a touch sensor (for example, a light touch sensor and / or a capacitive touch sensor, where the touch sensor may be part of a touch display screen or Can be used independently as a touch sensor structure), acceleration sensor, gravity sensor, and other sensors.
  • the input-output circuit may further include an audio component, and the audio component may be used to provide audio input and output functions for the electronic device.
  • the audio component may also include a tone generator and other components for generating and detecting sound.
  • the input-output circuit may also include one or more display screens.
  • the display screen may include one or a combination of a liquid crystal display, an organic light emitting diode display, an electronic ink display, a plasma display, and a display using other display technologies.
  • the display screen may include a touch sensor array (ie, the display screen may be a touch display screen).
  • the touch sensor can be a capacitive touch sensor formed by a transparent array of touch sensor electrodes (such as indium tin oxide (ITO) electrodes), or it can be a touch sensor formed using other touch technologies, such as sonic touch, pressure-sensitive touch, resistance Touch, optical touch, etc. are not limited in the embodiments of the present application.
  • the input-output circuit can further include a communication circuit that can be used to provide the electronic device with the ability to communicate with external devices.
  • the communication circuit may include analog and digital input-output interface circuits, and wireless communication circuits based on radio frequency signals and / or optical signals.
  • the wireless communication circuit in the communication circuit may include a radio frequency transceiver circuit, a power amplifier circuit, a low noise amplifier, a switch, a filter, and an antenna.
  • the wireless communication circuit in the communication circuit may include a circuit for supporting near field communication (NFC) by transmitting and receiving a near field coupled electromagnetic signal.
  • the communication circuit may include a near field communication antenna and a near field communication transceiver.
  • the communication circuit may also include a cellular phone transceiver and antenna, a wireless local area network transceiver circuit and antenna, and the like.
  • the input-output circuit may further include an input-output unit.
  • the input-output unit may include a button, a joystick, a click wheel, a scroll wheel, a touch pad, a keypad, a keyboard, a camera, a light emitting diode, and other status indicators.
  • the electronic device may further include a battery (not shown), and the battery is used to provide power to the electronic device.
  • the embodiments of the present application provide an information prompting method and related products, which can improve the immediacy of information.
  • an information prompting method includes:
  • the first application is not limited, and may be any application that can load an applet and can receive instant messaging information.
  • This application also does not limit the information type of the first instant messaging information, and may be a text type, a voice type, a video type, an emoticon image type, etc., may be edited and sent by the first application, or may be sent by other applications.
  • the first instant messaging information is divided into two types according to the editing type identifier, one is the instant messaging information corresponding to the first application identifier corresponding to the first application, and the other is the exception to the first application.
  • the instant messaging information corresponding to the second application identifier of the second application other than the second application that is, one type of instant messaging information is edited from the first application, and the other type of instant messaging information is edited in other applications Reprinted to the first application, it cannot be edited twice in the first application.
  • S202 Convert the first instant messaging information into voice information.
  • the voice information is an audio type, and there is no limitation on the conversion method.
  • the converting the first instant messaging information into the voice information includes: obtaining the first instant messaging Sender identification, information type, and edit type identification corresponding to the information; determine the tone color characteristics corresponding to the sender identification; perform the first instant messaging information according to the tone color characteristics, the information type, and the edit type identification
  • the voice information is obtained by conversion.
  • the edit type identifier includes a first application identifier corresponding to the first application, and a second application identifier of a second application other than the first application;
  • the information type includes text type, voice type, video type, Emoticon image types, etc.
  • the sender identification is identification information of the sending object corresponding to the first instant messaging information, and the identification information may be an account number, a nickname, a phone number, a contact email, and the like, which are not limited herein, and the sender identification should be unique.
  • the first account is 12345678987
  • the second account is 1235674562. If the user corresponding to the first account sends the first instant messaging information to the user corresponding to the second account, the sender identifier is 12345678987.
  • Tone color means that the frequency performance of different sounds always has distinctive characteristics in terms of waveforms. Different objects have different characteristics of vibration.
  • the tone color feature corresponding to the sender identification is the voice feature of the sender corresponding to the sender identification.
  • the sender ID, information type, and edit type ID corresponding to the first instant messaging information are obtained, the tone color feature corresponding to the sender ID is determined, and then according to the tone color feature, the information type, and the edit The type identifier converts the first instant messaging information to obtain the voice information.
  • the first instant messaging information is converted to obtain voice information based on the tone color characteristics corresponding to the sender identification and the information type and edit type identification of the first instant communication information, which can improve the accuracy of the voice color characteristics of the sender and the conversion of the speech information Sex.
  • the obtaining the editing type identifier corresponding to the first instant messaging information includes: determining editing habit data corresponding to the sender identifier; if If the first instant messaging information satisfies the editing habits data, determine that the editing type identifier is the first application; if the first instant messaging information does not satisfy the editing habits data, search the first At least one identification information corresponding to the instant messaging information; and determining the edit type identification according to the at least one identification information.
  • the editing habit data includes the sender's idioms.
  • the commonly used prefix words are “ah”, the name of the person, “are you?", And the suffixes include “?”, "?" , Used to punctuation “.”, ",", "! And so on.
  • the editing habit data corresponding to the sender ID is determined. If the first instant messaging information meets the editing habit data, it indicates that the first instant messaging information is sent by the inventor corresponding to the inventor ID, otherwise, the first At least one identification information in the instant messaging information, so as to determine the second application identification according to the at least one identification information thereof. In this way, the editing habit data is determined according to the editing habit data identified by the sender and the identification information in the first instant messaging information, which improves the accuracy of determining the editing habit data.
  • determining the editing habit data corresponding to the sender ID includes: obtaining a plurality of second pieces of the sender ID corresponding to the specified period. Instant messaging information; performing sentence analysis on each of the plurality of second instant messaging messages to obtain the editing habits data;
  • the specified time period is not limited. It can be one week, one month, or three months away from the current time. Because different periods have different mantras, and different Internet popular words can appear in different time periods. In this way, the sender ID of the specified time period is obtained. Corresponding multiple pieces of second instant messaging information can improve the accuracy of sentence analysis on the second instant messaging information.
  • the method of sentence pattern analysis is not limited, and the word formation of the subject, predicate, and object in the second instant messaging information, or common words, prefixes, and suffixes can be analyzed.
  • determining the tone color characteristics corresponding to the sender identifier includes: selecting an information type from the plurality of second instant messaging messages as a speech type. To obtain multiple pieces of third instant messaging information; perform tone color analysis on each second instant messaging information in the plurality of third instant messaging information to obtain the tone color characteristics.
  • the third instant messaging information is the instant messaging information corresponding to the voice type in the second instant messaging information. For example, if the designated period includes 100 pieces of second instant messaging information, of which: the voice type instant messaging information includes 40 pieces, The text-type instant messaging information includes 40 pieces, the video-type instant messaging information includes 10 pieces, and the emoticon image type includes 10 pieces. It is determined that the 40 voice-type instant messaging information is a plurality of third instant messaging information.
  • the method of timbre analysis is not limited, and it can analyze the initials, finals, and tones in the third instant messaging information, or monophonic bytes, polyphonic bytes, tight throat vowels, loose throat vowels, and throat original sounds. , Unit sound, vocal cord, and other feature information, and then determine the tone color features based on each feature information.
  • a plurality of third instant messaging messages are first selected from the plurality of second instant messaging messages, and the third type instant messaging messages are obtained by voice information.
  • the timbre analysis is performed on the communication information to obtain the timbre characteristics. In this way, the timbre analysis is performed on the instant messaging information of the voice type, and the accuracy of determining the timbre characteristics is improved.
  • This application does not limit the voice information obtained by converting the first instant messaging information according to the tone color characteristics, the information type, and the editing type identifier, and the editing type is identified as the first application and the information type is When it is a voice type, the first instant messaging information is directly subjected to noise processing to obtain the voice information.
  • the editing type identifier is the first application and the information type is an emoticon image type, the corresponding one of the first instant messaging information can be identified. Express the content, and generate the voice information according to the expression content and the timbre characteristics.
  • the editing type is identified as the second application, the summary information of the first instant messaging information can be extracted, and the voice information and the like are generated according to the summary information and the timbre characteristics.
  • the identifier pair according to the tone color feature, the information type, and the edit type includes: determining a first language corresponding to the first instant messaging information and a second language corresponding to the electronic device; according to the first language and the first language Semantic rules between two languages, converting the first instant messaging information to obtain a target text; determining a target emotion corresponding to the target text; generating the target text according to the target text, the target emotion, and the tone color feature voice message.
  • the first language corresponding to the first instant messaging information is the language or dialect corresponding to the text
  • the second language is the voice commonly used by the target user corresponding to the electronic device.
  • the instant messaging information can be based on the type of voice recorded in the first application. The determination may also be made according to a language set in the electronic device, and may also be made according to historical instant messaging information between the sender and the receiver corresponding to the first instant messaging information, which is not limited herein.
  • This application does not limit the semantic rules between the first language and the second language. For example, there are translation rules between English and Chinese, and translation rules between Chongqing dialect and Mandarin.
  • Emotion is a general term for a series of subjective cognitive experiences. It is a psychological and physical state produced by a variety of feelings, thoughts, and behaviors. The most common and popular emotions are joy, anger, sadness, surprise, fear, love, etc. Subtle emotions such as ashamedy, shame, shame, pride, etc.
  • the target emotion is the emotion corresponding to the first instant messaging information, and the method for determining the target emotion is not limited. The words and punctuation of the first instant messaging information may be analyzed to determine the target emotion.
  • an edit type identifier is the first application identifier and the information type is a text type.
  • a first language corresponding to the first instant messaging information and a corresponding one of the electronic devices are determined.
  • a second language and then converting the first instant messaging information to obtain a target text according to a semantic rule between the first language and the second language, determining a target emotion corresponding to the target text, and according to the target
  • the text, the target emotion, and the timbre characteristics generate the voice information.
  • the first instant messaging information is converted into the second language of the target user corresponding to the electronic device, and the target emotion of the first instant messaging information and the tone color characteristics corresponding to the sender are close, which is convenient for improving the user experience.
  • the pair of identifiers according to the tone color characteristics, the information type, and the edit type includes: extracting summary information corresponding to the first instant messaging information; and generating the voice information according to the tone color characteristics and the summary information.
  • the summary information is key information of the first instant messaging information, and may be the title or extracted based on specific content, which is not limited herein.
  • this embodiment is applied to an application scenario in which an edit type identifier is the second application identifier, or the information type is a video type, and the first instant messaging information corresponding to the second application identifier is reproduced information, that is, The priority is not high. Therefore, if it is the first instant messaging information corresponding to the second application identifier, the summary information is extracted, and the voice information is generated according to the summary information and the tone color characteristics.
  • the first instant messaging information of the video type may affect the currently running applet. Therefore, in the present application, if the first instant messaging information of the video type is used, the summary information is extracted and based on the summary information and Voice characteristics generate voice information. In this way, the summary information is played, and the target user corresponding to the electronic device can determine whether to return to the chat interface based on the summary information, avoiding affecting the target user to run the applet, and improving the user experience.
  • the method before the converting the first instant messaging information into voice information, the method further includes: determining a first priority corresponding to the first instant messaging information; determining the sender Identify a corresponding second priority; determine a target priority according to the first priority and the second priority; if the target priority is greater than a preset priority, execute the first instant messaging Steps to convert information to voice information.
  • the first priority is the priority of the first instant messaging message, that is, the priority of the message itself; the second priority is the priority of the sender identification; the preset priority is used to start the execution of the first communication message. Steps to convert IM messages to voice messages.
  • the method for determining the target priority is not limited in this application, and may be an average value, a maximum value, or a minimum value between the first priority and the second priority, or may correspond to the first priority and the second priority.
  • Weighted average value that is, a preset weight corresponding to the first instant messaging information and the sender's identification is set in advance, and then weighted with the first priority and the second priority to obtain the target priority and the like.
  • the first priority corresponding to the first instant messaging information and the second priority corresponding to the sender identification are determined first, and then the target priority is determined according to the first priority and the second priority, and the target priority is greater than
  • the step of converting the first instant messaging information into voice information is performed. On the contrary, this step is not performed, thereby avoiding affecting the target user corresponding to the electronic device from running the applet, and improving the user experience.
  • determining the first priority corresponding to the first instant messaging information includes: determining a first corresponding to the edit type identifier. Determine the second sub-priority corresponding to the type of information; determine the third sub-priority corresponding to the summary information; according to the first sub-priority, the second sub-priority, and the first sub-priority The three sub-priorities determine the first priority.
  • the priorities corresponding to different editing type identifiers are set in advance, wherein the priority of the first application identifier is higher than that of the second application identifier, for example, the editing type identifier is the priority of the first application identifier is 5, and the editing type is The priority identified as the second application identification is 3.
  • Priority is set for different information types in advance, for example: emoticon image type is 1, video type is 2, voice type and text type are 3, video request and voice request are 4, etc.
  • emoticon image type is 1
  • video type is 2
  • voice type and text type are 3
  • video request and voice request are 4, etc.
  • the first sub-priority corresponding to the edit type identifier may be determined.
  • This application does not limit how to determine the first priority according to the first sub-priority, the second sub-priority, and the third sub-priority, and may be the first sub-priority, The average value, maximum value, or minimum value between the second sub-priority and the third sub-priority. It can also be the weighted average corresponding to the first sub-priority, the second sub-priority, and the third sub-priority.
  • the preset weights corresponding to the edit type identifier and the summary information are set, and then weighted with the first sub-priority, the second sub-priority, and the third sub-priority to obtain the first priority, etc.
  • the third sub-priority is determined according to the summary information.
  • the first sub-priority is determined by the third sub-priority, the first sub-priority determined according to the edit type identifier, and the second sub-priority determined according to the information type, that is, the main content corresponding to the first instant messaging information,
  • Information type and edit type identification can improve the accuracy of determining the first priority.
  • determining the second priority corresponding to the sender identifier includes: obtaining the sender identifier corresponding to the electronic device. Multiple historical contact records between the target user IDs; determining the frequency of contact between the sender ID and the target user ID based on the multiple historical contact records; determining the sender and An association relationship between target users corresponding to the target user identifier; and determining the second priority according to the association relationship and the contact frequency.
  • the method for determining the contact frequency is not limited in this application, and may be determined according to the time interval and continuous communication duration corresponding to the historical notification information.
  • the association relationship is used to describe the relationship between the sender corresponding to the sender identification and the target user corresponding to the target user identification, such as friends, relatives, colleagues, and so on.
  • values corresponding to different associations may be defined in advance, for example: the value corresponding to a stranger is less than 1, the value corresponding to a colleague is greater than 1, less than or equal to 3, and the value corresponding to a friend is greater than 3, less than or equal to 5,
  • the corresponding value of relatives is greater than 5, less than or equal to 10, further, the spouse is 10, the parents are 8, the children are 9, the siblings are 7, and the uncles and aunts are 6.
  • first determine multiple historical contact records for communication between the sender's identity and the target user identity corresponding to the electronic device then analyze the multiple historical contact records to determine the frequency of contact between the two, and determine the sender. Identify the association between the corresponding sender and the target user, and then determine the second priority based on the association and the contact frequency. In this way, according to multiple historical contact records and the association between the two corresponding users themselves The relationship determines the second priority, which can further improve the accuracy of determining the second priority.
  • S203 Control the audio component of the electronic device to play the voice information.
  • audio components can be used to provide audio input and output functions for electronic devices.
  • the audio component may also include a tone generator and other components for generating and detecting sound.
  • the audio caller includes a microphone, a speaker, and an earphone. Among them, the microphone is used to collect sound, the speaker is used to play sound, and the earpiece is used to connect an external earphone, and to play the peer voice during a call.
  • an audio component for playing voice information there is no limitation on an audio component for playing voice information.
  • the audio component is an earphone or a wireless earphone connected to an electronic device.
  • the audio component It can be determined according to the distance between the target user and the electronic device. For example, when the distance is less than a preset distance, the handset is used for playback; and when it is greater than or equal to the preset distance, the speaker is used for playback.
  • the applet of the first application of the electronic device when the applet of the first application of the electronic device is running, if the first instant messaging information of the first application is received, the first instant messaging information is converted.
  • the audio component of the electronic device is controlled to play the voice information. In this way, the first instant messaging information is immediately played out in the form of audio, which improves the immediacy of the information.
  • the method further includes: turning off a voice pickup function of the electronic device.
  • FIG. 3 is a schematic structural diagram of an information prompting device provided by an embodiment of the present application. As shown in FIG. Unit 302 and playback unit 303, where:
  • the receiving unit 301 is configured to receive first instant messaging information of the first application when the applet of the first application of the electronic device is running;
  • the processing unit 302 is configured to convert the first instant messaging information into voice information
  • the playback unit 303 is configured to control an audio component of the electronic device to play the voice information.
  • the applet of the first application of the electronic device when the applet of the first application of the electronic device is running, if the first instant messaging information of the first application is received, the first instant messaging information is converted into voice information to control the electronic device.
  • the audio component plays the voice information. In this way, the first instant messaging information is immediately played out in the form of audio, which improves the immediacy of the information.
  • the processing unit 302 is specifically configured to obtain a sender identifier, information type, and edit corresponding to the first instant messaging information.
  • a type identifier where the edit type identifier includes a first application identifier corresponding to the first application, and a second application identifier of a second application other than the first application; determining a tone color characteristic corresponding to the sender identifier; Converting the first instant messaging information according to the tone color feature, the information type, and the editing type identifier to obtain the voice information.
  • the edit type identifier is the first application identifier and the information type is a text type
  • the processing unit 302 is specifically configured to determine a first language corresponding to the first instant messaging information and a second language corresponding to the electronic device. Converting the first instant messaging information to a target text by using a semantic rule between the first language and the second language; determining a target emotion corresponding to the target text; according to the target text, the The target emotion and the timbre characteristics generate the voice information.
  • the edit type identifier is the second application identifier, or the information type is a video type
  • the processing unit 302 is specifically configured to extract summary information corresponding to the first instant messaging information; and generate an IP address based on the tone color characteristics and the summary information. Mentioned voice information.
  • the processing unit 302 is specifically configured to determine editing habits data corresponding to the sender identifier; if the first If the instant messaging information satisfies the editing habits data, it is determined that the editing type identifier is the first application; if the first instant messaging information does not satisfy the editing habits data, the corresponding correspondence of the first instant messaging information is searched. At least one piece of identification information; determining the edit type identification according to the at least one piece of identification information.
  • the processing unit 302 is specifically configured to obtain multiple pieces of second instant messaging information corresponding to the sender identification in a specified period; Perform sentence analysis on each of the plurality of second instant messaging messages to obtain the editing habits data;
  • the processing unit 302 is specifically configured to select the instant messaging information whose information type is a voice type from the plurality of second instant messaging information to obtain a plurality of third instant messaging information.
  • Instant messaging information ; performing tone color analysis on each of the plurality of third instant messaging messages to obtain the tone color characteristics.
  • the processing unit 302 before the converting the first instant messaging information into voice information, is further configured to determine a first priority corresponding to the first instant messaging information; determine the first priority A second priority corresponding to the sender's identity; determining a target priority according to the first priority and the second priority; if the target priority is greater than a preset priority, executing the first priority Steps to convert IM messages to voice messages.
  • the processing unit 302 is specifically configured to obtain a gap between the sender identification and a target user identification corresponding to the electronic device.
  • An association relationship between the target users of the; the second priority is determined according to the association relationship and the contact frequency.
  • the processing unit 302 is further configured to turn off a voice pickup function of the electronic device.
  • FIG. 4 is a schematic structural diagram of another electronic device according to an embodiment of the present application.
  • the electronic device 400 includes a processor 410, a memory 420, a communication interface 430, and one or more programs 440.
  • the one or more programs 440 are stored in the memory 420, and are configured by
  • the processor 410 executes, and the program 440 includes instructions for performing the following steps:
  • Controlling an audio component of the electronic device to play the voice information Controlling an audio component of the electronic device to play the voice information.
  • the applet of the first application of the electronic device when the applet of the first application of the electronic device is running, if the first instant messaging information of the first application is received, the first instant messaging information is converted into voice information to control the electronic device.
  • the audio component plays the voice information. In this way, the first instant messaging information is immediately played out in the form of audio, which improves the immediacy of the information.
  • the instructions in the program 440 are specifically configured to perform the following operations:
  • the edit type identifier is the first application identifier and the information type is a text type
  • the identifier according to the tone color feature, the information type, and the edit type is identified.
  • the first instant messaging information is converted to obtain the voice information.
  • the instructions in the program 440 are specifically used to perform the following operations:
  • the edit type identifier is the second application identifier, or the information type is a video type
  • the identifier according to the tone color feature, the information type, and the edit type is identified.
  • the first instant messaging information is converted to obtain the voice information.
  • the instructions in the program 440 are specifically used to perform the following operations:
  • the instructions in the program 440 are specifically configured to perform the following operations:
  • the first instant messaging information does not satisfy the editing habits data, look for at least one identification information corresponding to the first instant messaging information; and determine the editing type identification according to the at least one identification information.
  • the instructions in the program 440 are specifically used to perform the following operations:
  • the instructions in the program 440 are specifically used to perform the following operations:
  • the instructions in the program 440 are further configured to perform the following operations:
  • the step of converting the first instant messaging information into voice information is performed.
  • the instructions in the program 440 are specifically used to perform the following operations:
  • the instructions in the program 440 are further configured to perform the following operations:
  • An embodiment of the present application further provides a computer storage medium, where the computer storage medium stores a computer program for causing a computer to execute part or all of the steps of any method described in the foregoing method embodiments, where The computer includes electronic equipment.
  • An embodiment of the present application further provides a computer program product, the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to perform the operations described in the foregoing method embodiments. Part or all of the steps of any method.
  • the computer program product may be a software installation package, and the computer includes an electronic device.
  • the disclosed device may be implemented in other ways.
  • the device embodiments described above are only schematic.
  • the division of the unit is only a logical function division.
  • multiple units or components may be combined or may Integration into another system, or some features can be ignored or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be electrical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objective of the solution of this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each of the units may exist separately physically, or two or more units may be integrated into one unit.
  • the above integrated unit may be implemented in the form of hardware or in the form of software functional unit.
  • the integrated unit When the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a computer-readable memory.
  • the technical solution of the present application essentially or part that contributes to the existing technology or all or part of the technical solution can be embodied in the form of a software product, which is stored in a memory.
  • a computer device which may be a personal computer, a server, or a network device, etc.
  • the foregoing memory includes: a U disk, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk, or an optical disk, and other media that can store program codes.
  • the program may be stored in a computer-readable memory, and the memory may include a flash disk. , Read-only memory, random access device (, disk or optical disk, etc.).

Abstract

Disclosed are an information prompt method and a related product. The method comprises: when running an applet of a first application of an electronic device, receiving first instant communication information of the first application; converting the first instant communication information into voice information; and controlling an audio component of the electronic device to play back the voice information. According to the present application, the immediacy of information is improved.

Description

信息提示方法及相关产品Information prompt method and related products 技术领域Technical field
本申请涉及电子设备技术领域,尤其涉及一种信息提示方法以及相关产品。The present application relates to the technical field of electronic devices, and in particular, to an information prompting method and related products.
背景技术Background technique
随着电子设备技术的迅速发展,出现了各种各样的电子设备,例如:手机、平板电脑、智能手环等。在现有技术中,第三方应用可添加小程序,例如:抢票应用、游戏应用等各类小程序,如此,则不需要单独安装小程序对应的应用。With the rapid development of electronic device technology, various electronic devices have appeared, such as mobile phones, tablet computers, smart bracelets, and so on. In the prior art, a third-party application may add an applet, such as various types of applet such as a ticket grabbing application, a game application, and so on, there is no need to separately install an application corresponding to the applet.
申请内容Application content
第一方面,本申请实施例提供一种信息提示方法,包括:In a first aspect, an embodiment of the present application provides an information prompting method, including:
在运行电子设备的第一应用的小程序时,接收所述第一应用的第一即时通讯信息;Receiving the first instant messaging information of the first application when the applet of the first application of the electronic device is running;
将所述第一即时通讯信息转换为语音信息;Converting the first instant messaging information into voice information;
控制所述电子设备的音频组件播放所述语音信息。Controlling an audio component of the electronic device to play the voice information.
第二方面,本申请实施例提供一种信息提示装置,包括:In a second aspect, an embodiment of the present application provides an information prompting device, including:
接收单元,用于在运行电子设备的第一应用的小程序时,接收所述第一应用的第一即时通讯信息;A receiving unit, configured to receive first instant messaging information of the first application when the applet of the first application of the electronic device is running;
处理单元,用于将所述第一即时通讯信息转换为语音信息;A processing unit, configured to convert the first instant messaging information into voice information;
播放单元,用于控制所述电子设备的音频组件播放所述语音信息。A playback unit, configured to control an audio component of the electronic device to play the voice information.
第三方面,本申请实施例提供了一种电子设备,包括处理器、存储器、通信接口以及一个或多个程序,其中,上述一个或多个程序被存储在上述存储器中,并且被配置由上述处理器执行,所述程序包括用于如第一方面中所描述的部分或全部步骤的指令。According to a third aspect, an embodiment of the present application provides an electronic device including a processor, a memory, a communication interface, and one or more programs. The one or more programs are stored in the memory, and are configured by the above. The processor executes the program including instructions for some or all of the steps as described in the first aspect.
第四方面,本申请实施例提供了一种计算机可读存储介质,其中,所述计算机可读存储介质存储计算机程序,其中,所述计算机程序使得计算机执行如本申请实施例第一方面中所描述的部分或全部步骤。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program causes a computer to execute the program as described in the first aspect of the embodiment of the application. Describe some or all of the steps.
第五方面,本申请实施例提供了一种计算机程序产品,其中,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如本申请实施例第一方面中所描述的部分或全部步骤。该计算机程序产品可以为一个软件安装包。In a fifth aspect, an embodiment of the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute Some or all of the steps described in the first aspect of the embodiment of the application. The computer program product can be a software installation package.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the technical solutions in the embodiments of the present application or the prior art more clearly, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings in the following description are merely These are some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained according to these drawings without paying creative labor.
其中:among them:
图1为本申请实施例提供的一种电子设备的结构示意图;FIG. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
图2为本申请实施例提供的一种信息提示方法的流程示意图;2 is a schematic flowchart of an information prompting method according to an embodiment of the present application;
图3为本申请实施例提供的一种信息提示装置的结构示意图;3 is a schematic structural diagram of an information prompting device according to an embodiment of the present application;
图4为本申请实施例提供的另一种电子设备的结构示意图。FIG. 4 is a schematic structural diagram of another electronic device according to an embodiment of the present application.
具体实施方式detailed description
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to enable those skilled in the art to better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be described clearly and completely in combination with the drawings in the embodiments of the present application. Obviously, the described embodiments are only These are part of the embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包括。例如包括了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。The terms “first”, “second”, and the like in the description and claims of the present application and the above-mentioned drawings are used to distinguish different objects, and are not used to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes Other steps or units inherent to these processes, methods, products or equipment.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包括在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference to "an embodiment" herein means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the present application. The appearances of this phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are they independent or alternative embodiments that are mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
本申请实施例所涉及到的电子设备可以包括各种具有无线通信功能的手持设备、车载设备、可穿戴设备、计算设备或连接到无线调制解调器的其他处理设备,以及各种形式的用户设备(User Equipment,UE),移动台(Mobile Station,MS),终端设备(terminal device)等等。为方便描述,上面提到的设备统称为电子设备。The electronic devices involved in the embodiments of the present application may include various handheld devices with wireless communication functions, vehicle-mounted devices, wearable devices, computing devices, or other processing devices connected to a wireless modem, and various forms of user devices (User Equipment (UE), mobile station (MS), terminal device (terminal), and so on. For ease of description, the devices mentioned above are collectively referred to as electronic devices.
请参阅图1,图1是本申请实施例提供了一种电子设备的结构示意图,电 子设备包括控制电路和输入-输出电路,输入输出电路与控制电路连接。Please refer to FIG. 1. FIG. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present application. The electronic device includes a control circuit and an input-output circuit, and the input-output circuit is connected to the control circuit.
其中,控制电路可以包括存储和处理电路。该存储和处理电路中的存储电路可以是存储器,例如硬盘驱动存储器,非易失性存储器(例如闪存或用于形成固态驱动器的其它电子可编程只读存储器等),易失性存储器(例如静态或动态随机存取存储器等)等,本申请实施例不作限制。存储和处理电路中的处理电路可以用于控制电子设备的运转。该处理电路可以基于一个或多个微处理器,微控制器,数字信号处理器,基带处理器,功率管理单元,音频编解码器芯片,专用集成电路,显示驱动器集成电路等来实现。The control circuit may include a storage and processing circuit. The storage circuit in the storage and processing circuit may be a memory, such as a hard disk drive memory, a non-volatile memory (such as a flash memory or other electronic programmable read-only memory used to form a solid-state drive, etc.), a volatile memory (such as a static Or dynamic random access memory, etc.), this embodiment is not limited. The processing circuit in the storage and processing circuit can be used to control the operation of the electronic device. The processing circuit can be implemented based on one or more microprocessors, microcontrollers, digital signal processors, baseband processors, power management units, audio codec chips, application specific integrated circuits, display driver integrated circuits, and the like.
存储和处理电路可用于运行电子设备中的软件,例如播放来电提示响铃应用程序、播放短消息提示响铃应用程序、播放闹钟提示响铃应用程序、播放媒体文件应用程序、互联网协议语音(voice over internet protocol,VOIP)电话呼叫应用程序、操作系统功能等。这些软件可以用于执行一些控制操作,例如,播放来电提示响铃、播放短消息提示响铃、播放闹钟提示响铃、播放媒体文件、进行语音电话呼叫以及电子设备中的其它功能等,本申请实施例不作限制。The storage and processing circuit can be used to run software in an electronic device, such as playing an incoming call alert ringing application, playing a short message alert ringing application, playing an alarm alert ringing application, playing a media file application, Internet protocol voice (voice Over Internet Protocol (VOIP) telephone calling applications, operating system functions, etc. These software can be used to perform some control operations, such as playing the call alert ring, playing the short message alert ring, playing the alarm alert ring, playing media files, making voice phone calls, and other functions in electronic devices. The examples are not limited.
其中,输入-输出电路可用于使电子设备实现数据的输入和输出,即允许电子设备从外部设备接收数据和允许电子设备将数据从电子设备输出至外部设备。Among them, the input-output circuit can be used to enable the electronic device to implement data input and output, that is, to allow the electronic device to receive data from an external device and to allow the electronic device to output data from the electronic device to the external device.
输入-输出电路可以进一步包括传感器。传感器可以包括环境光传感器,基于光和电容的红外接近传感器,超声波传感器,触摸传感器(例如,基于光触摸传感器和/或电容式触摸传感器,其中,触摸传感器可以是触控显示屏的一部分,也可以作为一个触摸传感器结构独立使用),加速度传感器,重力传感器,和其它传感器等。The input-output circuit may further include a sensor. The sensor may include an ambient light sensor, an infrared proximity sensor based on light and capacitance, an ultrasonic sensor, and a touch sensor (for example, a light touch sensor and / or a capacitive touch sensor, where the touch sensor may be part of a touch display screen or Can be used independently as a touch sensor structure), acceleration sensor, gravity sensor, and other sensors.
输入-输出电路还可以进一步包括音频组件,音频组件可以用于为电子设备提供音频输入和输出功能。音频组件还可以包括音调发生器以及其它用于产生和检测声音的组件。The input-output circuit may further include an audio component, and the audio component may be used to provide audio input and output functions for the electronic device. The audio component may also include a tone generator and other components for generating and detecting sound.
输入-输出电路还可以包括一个或多个显示屏。显示屏可以包括液晶显示屏,有机发光二极管显示屏,电子墨水显示屏,等离子显示屏,使用其它显示技术的显示屏中一种或者几种的组合。显示屏可以包括触摸传感器阵列(即,显示屏可以是触控显示屏)。触摸传感器可以是由透明的触摸传感器电极(例如氧化铟锡(ITO)电极)阵列形成的电容式触摸传感器,或者可以是使用其它触摸技术形成的触摸传感器,例如音波触控,压敏触摸,电阻触摸,光学触摸等,本申请实施例不作限制。The input-output circuit may also include one or more display screens. The display screen may include one or a combination of a liquid crystal display, an organic light emitting diode display, an electronic ink display, a plasma display, and a display using other display technologies. The display screen may include a touch sensor array (ie, the display screen may be a touch display screen). The touch sensor can be a capacitive touch sensor formed by a transparent array of touch sensor electrodes (such as indium tin oxide (ITO) electrodes), or it can be a touch sensor formed using other touch technologies, such as sonic touch, pressure-sensitive touch, resistance Touch, optical touch, etc. are not limited in the embodiments of the present application.
输入-输出电路还可以进一步包括通信电路可以用于为电子设备提供与外部设备通信的能力。通信电路可以包括模拟和数字输入-输出接口电路,和基 于射频信号和/或光信号的无线通信电路。通信电路中的无线通信电路可以包括射频收发器电路、功率放大器电路、低噪声放大器、开关、滤波器和天线。举例来说,通信电路中的无线通信电路可以包括用于通过发射和接收近场耦合电磁信号来支持近场通信(near field communication,NFC)的电路。例如,通信电路可以包括近场通信天线和近场通信收发器。通信电路还可以包括蜂窝电话收发器和天线,无线局域网收发器电路和天线等。The input-output circuit can further include a communication circuit that can be used to provide the electronic device with the ability to communicate with external devices. The communication circuit may include analog and digital input-output interface circuits, and wireless communication circuits based on radio frequency signals and / or optical signals. The wireless communication circuit in the communication circuit may include a radio frequency transceiver circuit, a power amplifier circuit, a low noise amplifier, a switch, a filter, and an antenna. For example, the wireless communication circuit in the communication circuit may include a circuit for supporting near field communication (NFC) by transmitting and receiving a near field coupled electromagnetic signal. For example, the communication circuit may include a near field communication antenna and a near field communication transceiver. The communication circuit may also include a cellular phone transceiver and antenna, a wireless local area network transceiver circuit and antenna, and the like.
输入-输出电路还可以进一步包括输入-输出单元。输入-输出单元可以包括按钮,操纵杆,点击轮,滚动轮,触摸板,小键盘,键盘,照相机,发光二极管和其它状态指示器等。The input-output circuit may further include an input-output unit. The input-output unit may include a button, a joystick, a click wheel, a scroll wheel, a touch pad, a keypad, a keyboard, a camera, a light emitting diode, and other status indicators.
其中,电子设备还可以进一步包括电池(未图示),电池用于给电子设备提供电能。The electronic device may further include a battery (not shown), and the battery is used to provide power to the electronic device.
下面对本申请实施例进行详细介绍。The embodiments of the present application are described in detail below.
本申请实施例提供了一种信息提示方法及相关产品,可提高信息的即时性。The embodiments of the present application provide an information prompting method and related products, which can improve the immediacy of information.
请参照图2,本申请实施例提供一种信息提示方法的流程示意图,该方法应用于电子设备。具体的,如图2所示,一种信息提示方法,包括:Referring to FIG. 2, an embodiment of the present application provides a schematic flowchart of an information prompting method, which is applied to an electronic device. Specifically, as shown in FIG. 2, an information prompting method includes:
S201:在运行电子设备的第一应用的小程序时,接收所述第一应用的第一即时通讯信息。S201: When the applet of the first application of the electronic device is running, the first instant messaging information of the first application is received.
在本申请实施例中,对于第一应用不做限定,可为任一能加载小程序的应用,且能接收即时通讯信息的应用。In the embodiment of the present application, the first application is not limited, and may be any application that can load an applet and can receive instant messaging information.
本申请对于第一即时通讯信息的信息类型也不做限定,可以是文本类型、语音类型、视频类型、表情图像类型等,可以是在第一应用中编辑发送的,也可以是由其他应用中转载而来的,在本申请中,将第一即时通讯信息按照编辑类型标识分为两类,其一为第一应用对应的第一应用标识对应的即时通讯信息,另一为除了第一应用之外的第二应用的第二应用标识对应的即时通讯信息,也就是说,一类即时通讯信息为该第一应用编辑而来的,另一类即时通讯信息为其他应用中已编辑完成之后转载至第一应用的,则在第一应用中不能对其进行二次编辑。This application also does not limit the information type of the first instant messaging information, and may be a text type, a voice type, a video type, an emoticon image type, etc., may be edited and sent by the first application, or may be sent by other applications. Reproduced, in this application, the first instant messaging information is divided into two types according to the editing type identifier, one is the instant messaging information corresponding to the first application identifier corresponding to the first application, and the other is the exception to the first application. The instant messaging information corresponding to the second application identifier of the second application other than the second application, that is, one type of instant messaging information is edited from the first application, and the other type of instant messaging information is edited in other applications Reprinted to the first application, it cannot be edited twice in the first application.
S202:将所述第一即时通讯信息转换为语音信息。S202: Convert the first instant messaging information into voice information.
在本申请实施例中,语音信息为音频类型,对于转化方法不做限定,在一个可能的示例中,所述将所述第一即时通讯信息转换为语音信息包括:获取所述第一即时通讯信息对应的发送人标识、信息类型和编辑类型标识;确定所述发送人标识对应的音色特征;根据所述音色特征、所述信息类型和所述编辑类型标识对所述第一即时通讯信息进行转换得到所述语音信息。In the embodiment of the present application, the voice information is an audio type, and there is no limitation on the conversion method. In a possible example, the converting the first instant messaging information into the voice information includes: obtaining the first instant messaging Sender identification, information type, and edit type identification corresponding to the information; determine the tone color characteristics corresponding to the sender identification; perform the first instant messaging information according to the tone color characteristics, the information type, and the edit type identification The voice information is obtained by conversion.
如前所述编辑类型标识包括所述第一应用对应的第一应用标识、除了所述第一应用之外的第二应用的第二应用标识;信息类型包括文本类型、语音类型、视频类型、表情图像类型等。As described above, the edit type identifier includes a first application identifier corresponding to the first application, and a second application identifier of a second application other than the first application; the information type includes text type, voice type, video type, Emoticon image types, etc.
其中,发送人标识为第一即时通讯信息对应的发送对象的标识信息,该标识信息可以是账号、昵称、电话号码、联系邮箱等,在此不做限定,该发送人标识应具有唯一性。The sender identification is identification information of the sending object corresponding to the first instant messaging information, and the identification information may be an account number, a nickname, a phone number, a contact email, and the like, which are not limited herein, and the sender identification should be unique.
举例来说,若第一应用中注册了第一账号和第二账号,其中:第一账号为12345678987,第二账号为1235674562。若第一账号对应的用户给第二账号对应的用户发送第一即时通讯信息,则发送人标识为12345678987。For example, if a first account and a second account are registered in the first application, the first account is 12345678987, and the second account is 1235674562. If the user corresponding to the first account sends the first instant messaging information to the user corresponding to the second account, the sender identifier is 12345678987.
音色是指不同的声音的频率表现在波形方面总是有与众不同的特性。不同的物体振动都有不同的特点。在本申请中,发送人标识对应的音色特征为发送人标识对应的发送人的声音特征。Tone color means that the frequency performance of different sounds always has distinctive characteristics in terms of waveforms. Different objects have different characteristics of vibration. In this application, the tone color feature corresponding to the sender identification is the voice feature of the sender corresponding to the sender identification.
可以理解,获取所述第一即时通讯信息对应的发送人标识、信息类型和编辑类型标识,确定所述发送人标识对应的音色特征,然后根据所述音色特征、所述信息类型和所述编辑类型标识对所述第一即时通讯信息进行转换得到所述语音信息。如此,基于发送人标识对应的音色特征和第一即时通讯信息的信息类型和编辑类型标识转换第一即时通讯信息以得到语音信息,可提高语音信息贴近发送人的音色特征和语音信息转换的准确性。It can be understood that the sender ID, information type, and edit type ID corresponding to the first instant messaging information are obtained, the tone color feature corresponding to the sender ID is determined, and then according to the tone color feature, the information type, and the edit The type identifier converts the first instant messaging information to obtain the voice information. In this way, the first instant messaging information is converted to obtain voice information based on the tone color characteristics corresponding to the sender identification and the information type and edit type identification of the first instant communication information, which can improve the accuracy of the voice color characteristics of the sender and the conversion of the speech information Sex.
本申请对于获取编辑类型标识的方法不做限定,在一个可能的示例中,所述获取所述第一即时通讯信息对应的编辑类型标识包括:确定所述发送人标识对应的编辑习惯数据;若所述第一即时通讯信息满足所述编辑习惯数据,则确定所述编辑类型标识为所述第一应用;若所述第一即时通讯信息不满足所述编辑习惯数据,则查找所述第一即时通讯信息对应的至少一个标识信息;根据所述至少一个标识信息确定所述编辑类型标识。This application does not limit the method for obtaining the editing type identifier. In one possible example, the obtaining the editing type identifier corresponding to the first instant messaging information includes: determining editing habit data corresponding to the sender identifier; if If the first instant messaging information satisfies the editing habits data, determine that the editing type identifier is the first application; if the first instant messaging information does not satisfy the editing habits data, search the first At least one identification information corresponding to the instant messaging information; and determining the edit type identification according to the at least one identification information.
其中,编辑习惯数据包括发送人的习惯用语,例如:常用的前缀词有“啊”,人名,“在么”等,后缀词包括“么”、“吗”、“好”、“行”等,习惯标点符号“。”,“,”,“!”等。Among them, the editing habit data includes the sender's idioms. For example, the commonly used prefix words are "ah", the name of the person, "are you?", And the suffixes include "?", "?" , Used to punctuation ".", ",", "!" And so on.
在转载文件时往往携带有第二应用的标识信息,该标识信息用于指示从第二应用中转载而来。可以理解,确定发送人标识对应的编辑习惯数据,若第一即时通讯信息满足该编辑习惯数据,则表明该第一即时通讯信息由发明人标识对应的发明人发送而来,否则,查找第一即时通讯信息中的至少一个标识信息,从而根据其至少一个标识信息确定第二应用标识。如此,依据发送人标识的编辑习惯数据和第一即时通讯信息中的标识信息确定编辑习惯数据,提高了确定编辑习惯数据的准确性。When the file is reprinted, identification information of the second application is often carried, and the identification information is used to indicate that it is reproduced from the second application. It can be understood that the editing habit data corresponding to the sender ID is determined. If the first instant messaging information meets the editing habit data, it indicates that the first instant messaging information is sent by the inventor corresponding to the inventor ID, otherwise, the first At least one identification information in the instant messaging information, so as to determine the second application identification according to the at least one identification information thereof. In this way, the editing habit data is determined according to the editing habit data identified by the sender and the identification information in the first instant messaging information, which improves the accuracy of determining the editing habit data.
本申请对于确定编辑习惯数据的方法不做限定,在一个可能的示例中,所述确定所述发送人标识对应的编辑习惯数据包括:获取指定时段内所述发送人标识对应的多条第二即时通讯信息;对所述多条第二即时通讯信息中每一第二即时通讯信息进行句式分析得到所述编辑习惯数据;This application does not limit the method for determining the editing habit data. In a possible example, determining the editing habit data corresponding to the sender ID includes: obtaining a plurality of second pieces of the sender ID corresponding to the specified period. Instant messaging information; performing sentence analysis on each of the plurality of second instant messaging messages to obtain the editing habits data;
其中,指定时段不做限定,可以距离当前时间一个星期、一个月或三个月的时段,由于不同时段口头禅不同,且不同时段可出现不同的网络流行词汇,如此,获取指定时段该发送人标识对应的多条第二即时通讯信息,可提高针对第二即时通讯信息进行句式分析的准确性。The specified time period is not limited. It can be one week, one month, or three months away from the current time. Because different periods have different mantras, and different Internet popular words can appear in different time periods. In this way, the sender ID of the specified time period is obtained. Corresponding multiple pieces of second instant messaging information can improve the accuracy of sentence analysis on the second instant messaging information.
在本申请中,对于句式分析的方法不做限定,可分析第二即时通讯信息中主语、谓语、宾语的构词,或常用词汇、前缀、后缀等。In this application, the method of sentence pattern analysis is not limited, and the word formation of the subject, predicate, and object in the second instant messaging information, or common words, prefixes, and suffixes can be analyzed.
可以理解,先获取指定时段内所述发送人标识对应的多条第二即时通讯信息,如此,便于减少分析数据,且便于提高确定编辑习惯数据的准确性。It can be understood that firstly obtaining multiple pieces of second instant messaging information corresponding to the sender's identification within a specified time period, so that it is convenient to reduce analysis data and to improve the accuracy of determining editing habits data.
本申请对于确定音色特征的方法不做限定,在一个可能的示例中,所述确定所述发送人标识对应的音色特征包括:从所述多条第二即时通讯信息中选取信息类型为语音类型的即时通讯信息得到多条第三即时通讯信息;对所述多条第三即时通讯信息中每一第二即时通讯信息进行音色分析得到所述音色特征。This application does not limit the method of determining tone color characteristics. In a possible example, determining the tone color characteristics corresponding to the sender identifier includes: selecting an information type from the plurality of second instant messaging messages as a speech type. To obtain multiple pieces of third instant messaging information; perform tone color analysis on each second instant messaging information in the plurality of third instant messaging information to obtain the tone color characteristics.
其中,第三即时通讯信息为第二即时通讯信息中语音类型对应的即时通讯信息,举例来说,若指定时段包括100条第二即时通讯信息,其中:语音类型的即时通讯信息包括40条,文本类型的即时通讯信息包括40条,视频类型的即时通讯信息包括10条、表情图像类型包括10条,则确定该40条语音类型的即时通讯信息为多条第三即时通讯信息。The third instant messaging information is the instant messaging information corresponding to the voice type in the second instant messaging information. For example, if the designated period includes 100 pieces of second instant messaging information, of which: the voice type instant messaging information includes 40 pieces, The text-type instant messaging information includes 40 pieces, the video-type instant messaging information includes 10 pieces, and the emoticon image type includes 10 pieces. It is determined that the 40 voice-type instant messaging information is a plurality of third instant messaging information.
在本申请中,对于音色分析的方法不做限定,可分析第三即时通讯信息中声母、韵母、声调,或者如单音字节、多音字节、紧喉元音、松喉元音、喉原音、单元音、声带等多个特征信息,再根据各个特征信息确定音色特征。In this application, the method of timbre analysis is not limited, and it can analyze the initials, finals, and tones in the third instant messaging information, or monophonic bytes, polyphonic bytes, tight throat vowels, loose throat vowels, and throat original sounds. , Unit sound, vocal cord, and other feature information, and then determine the tone color features based on each feature information.
可以理解,先从所述多条第二即时通讯信息中选取信息类型为语音类型的即时通讯信息得到多条第三即时通讯信息,对所述多条第三即时通讯信息中每一第二即时通讯信息进行音色分析得到所述音色特征。如此,针对语音类型的即时通讯信息进行音色分析,提高了确定音色特征的准确性。It can be understood that a plurality of third instant messaging messages are first selected from the plurality of second instant messaging messages, and the third type instant messaging messages are obtained by voice information. For each second instant message in the plurality of third instant messaging messages, The timbre analysis is performed on the communication information to obtain the timbre characteristics. In this way, the timbre analysis is performed on the instant messaging information of the voice type, and the accuracy of determining the timbre characteristics is improved.
本申请对于根据所述音色特征、所述信息类型和所述编辑类型标识对所述第一即时通讯信息进行转换得到所述语音信息不做限定,在编辑类型标识为第一应用,且信息类型为语音类型时,直接对该第一即时通讯信息进行噪声处理得到所述语音信息;在编辑类型标识为第一应用,且信息类型为表情图像类型时,可识别该第一即时通讯信息对应的表达内容,根据该表达内容和音色特征生成所述语音信息;在编辑类型标识为第二应用,可提取第一即时通讯信息的 摘要信息,根据该摘要信息和音色特征生成所述语音信息等。This application does not limit the voice information obtained by converting the first instant messaging information according to the tone color characteristics, the information type, and the editing type identifier, and the editing type is identified as the first application and the information type is When it is a voice type, the first instant messaging information is directly subjected to noise processing to obtain the voice information. When the editing type identifier is the first application and the information type is an emoticon image type, the corresponding one of the first instant messaging information can be identified. Express the content, and generate the voice information according to the expression content and the timbre characteristics. When the editing type is identified as the second application, the summary information of the first instant messaging information can be extracted, and the voice information and the like are generated according to the summary information and the timbre characteristics.
在一个可能的示例中,若所述编辑类型标识为所述第一应用标识,且所述信息类型为文本类型,则所述根据所述音色特征、所述信息类型和所述编辑类型标识对所述第一即时通讯信息进行转换得到所述语音信息包括:确定所述第一即时通讯信息对应的第一语言和所述电子设备对应的第二语言;根据所述第一语言和所述第二语言之间的语义规则,对所述第一即时通讯信息进行转换得到目标文字;确定所述目标文字对应的目标情绪;根据所述目标文字、所述目标情绪和所述音色特征生成所述语音信息。In a possible example, if the edit type identifier is the first application identifier and the information type is a text type, then the identifier pair according to the tone color feature, the information type, and the edit type The conversion of the first instant messaging information to obtain the voice information includes: determining a first language corresponding to the first instant messaging information and a second language corresponding to the electronic device; according to the first language and the first language Semantic rules between two languages, converting the first instant messaging information to obtain a target text; determining a target emotion corresponding to the target text; generating the target text according to the target text, the target emotion, and the tone color feature voice message.
其中,第一即时通讯信息对应的第一语言为该文本对应的语种或方言,第二语言为电子设备对应的目标用户常用的语音,可根据在第一应用中录入的语音类型的即时通讯信息进行确定,也可根据电子设备中设置的语言进行确定,还可根据第一即时通讯信息对应的发送人与接收人之间的历史即时通讯信息进行确定,在此不做限定。The first language corresponding to the first instant messaging information is the language or dialect corresponding to the text, and the second language is the voice commonly used by the target user corresponding to the electronic device. The instant messaging information can be based on the type of voice recorded in the first application. The determination may also be made according to a language set in the electronic device, and may also be made according to historical instant messaging information between the sender and the receiver corresponding to the first instant messaging information, which is not limited herein.
本申请对于第一语言和第二语言之间的语义规则不做限定,例如:英语与中文之间存在翻译规则,重庆方言和普通话之间存在翻译规则等。This application does not limit the semantic rules between the first language and the second language. For example, there are translation rules between English and Chinese, and translation rules between Chongqing dialect and Mandarin.
情绪是对一系列主观认知经验的通称,是多种感觉、思想和行为综合产生的心理和生理状态,最普遍、通俗的情绪有喜、怒、哀、惊、恐、爱等,也有一些细腻微妙的情绪如嫉妒、惭愧、羞耻、自豪等。在本申请中,目标情绪为第一即时通讯信息对应的情绪,对于确定目标情绪的方法不做限定,可对第一即时通信信息的用词、标点进行分析以确定目标情绪。Emotion is a general term for a series of subjective cognitive experiences. It is a psychological and physical state produced by a variety of feelings, thoughts, and behaviors. The most common and popular emotions are joy, anger, sadness, surprise, fear, love, etc. Subtle emotions such as jealousy, shame, shame, pride, etc. In this application, the target emotion is the emotion corresponding to the first instant messaging information, and the method for determining the target emotion is not limited. The words and punctuation of the first instant messaging information may be analyzed to determine the target emotion.
可以理解,该实施例应用于编辑类型标识为所述第一应用标识,且所述信息类型为文本类型的应用场景,先确定第一即时通讯信息对应的第一语言和所述电子设备对应的第二语言,再根据所述第一语言和所述第二语言之间的语义规则对所述第一即时通讯信息进行转换得到目标文字,确定所述目标文字对应的目标情绪,根据所述目标文字、所述目标情绪和所述音色特征生成所述语音信息。如此,将第一即时通讯信息转换为电子设备对应的目标用户的第二语言,并贴近第一即时通讯信息的目标情绪和发送人对应的音色特征,便于提高用户体验。It can be understood that this embodiment is applied to an application scenario in which an edit type identifier is the first application identifier and the information type is a text type. First, a first language corresponding to the first instant messaging information and a corresponding one of the electronic devices are determined. A second language, and then converting the first instant messaging information to obtain a target text according to a semantic rule between the first language and the second language, determining a target emotion corresponding to the target text, and according to the target The text, the target emotion, and the timbre characteristics generate the voice information. In this way, the first instant messaging information is converted into the second language of the target user corresponding to the electronic device, and the target emotion of the first instant messaging information and the tone color characteristics corresponding to the sender are close, which is convenient for improving the user experience.
在一个可能的示例中,若所述编辑类型标识为所述第二应用标识,或所述信息类型为视频类型,则所述根据所述音色特征、所述信息类型和所述编辑类型标识对所述第一即时通讯信息进行转换得到所述语音信息包括:提取所述第一即时通讯信息对应的摘要信息;根据所述音色特征和所述摘要信息生成所述语音信息。In a possible example, if the edit type identifier is the second application identifier, or the information type is a video type, the pair of identifiers according to the tone color characteristics, the information type, and the edit type The conversion of the first instant messaging information to obtain the voice information includes: extracting summary information corresponding to the first instant messaging information; and generating the voice information according to the tone color characteristics and the summary information.
其中,摘要信息为第一即时通讯信息的关键信息,可以是该标题,也可以 是根据具体内容提取的,在此不做限定。The summary information is key information of the first instant messaging information, and may be the title or extracted based on specific content, which is not limited herein.
可以理解,该实施例应用于编辑类型标识为所述第二应用标识,或所述信息类型为视频类型的应用场景,第二应用标识对应的第一即时通讯信息为转载而来的信息,即优先权不高,因此,若为第二应用标识对应的第一即时通讯信息,则提取其摘要信息,并依据其摘要信息和音色特征生成语音信息。而视频类型的第一即时通讯信息,可能对当前运行的小程序造成影响,因此,在本申请中,若为视频类型的第一即时通讯信息,则提取其摘要信息,并依据其摘要信息和音色特征生成语音信息,如此,播放其摘要信息,电子设备对应的目标用户可根据其摘要信息确定是否返回聊天界面,避免影响目标用户运行小程序,提高了用户体验。It can be understood that this embodiment is applied to an application scenario in which an edit type identifier is the second application identifier, or the information type is a video type, and the first instant messaging information corresponding to the second application identifier is reproduced information, that is, The priority is not high. Therefore, if it is the first instant messaging information corresponding to the second application identifier, the summary information is extracted, and the voice information is generated according to the summary information and the tone color characteristics. The first instant messaging information of the video type may affect the currently running applet. Therefore, in the present application, if the first instant messaging information of the video type is used, the summary information is extracted and based on the summary information and Voice characteristics generate voice information. In this way, the summary information is played, and the target user corresponding to the electronic device can determine whether to return to the chat interface based on the summary information, avoiding affecting the target user to run the applet, and improving the user experience.
在一个可能的示例中,在所述将所述第一即时通讯信息转换为语音信息之前,所述方法还包括:确定所述第一即时通讯信息对应的第一优先级;确定所述发送人标识对应的第二优先级;根据所述第一优先级和所述第二优先级确定目标优先级;若所述目标优先级大于预设优先级,则执行所述将所述第一即时通讯信息转换为语音信息的步骤。In a possible example, before the converting the first instant messaging information into voice information, the method further includes: determining a first priority corresponding to the first instant messaging information; determining the sender Identify a corresponding second priority; determine a target priority according to the first priority and the second priority; if the target priority is greater than a preset priority, execute the first instant messaging Steps to convert information to voice information.
其中,第一优先级为第一即时通讯信息的优先级,即信息本身的优先级;第二优先级为发送人标识的优先级;预设优先级用于启动执行所述将所述第一即时通讯信息转换为语音信息的步骤。The first priority is the priority of the first instant messaging message, that is, the priority of the message itself; the second priority is the priority of the sender identification; the preset priority is used to start the execution of the first communication message. Steps to convert IM messages to voice messages.
本申请对于如何确定目标优先级的方法不做限定,可以是第一优先级和第二优先级之间的平均值、最大值或最小值,也可以是第一优先级和第二优先级对应的加权平均值,即预先设置第一即时通讯信息和发送人标识对应的预设权值,然后分别与第一优先级和第二优先级进行加权以得到目标优先级等。The method for determining the target priority is not limited in this application, and may be an average value, a maximum value, or a minimum value between the first priority and the second priority, or may correspond to the first priority and the second priority. Weighted average value, that is, a preset weight corresponding to the first instant messaging information and the sender's identification is set in advance, and then weighted with the first priority and the second priority to obtain the target priority and the like.
可以理解,先确定第一即时通讯信息对应的第一优先级和发送人标识对应的第二优先级,然后根据第一优先级和第二优先级确定目标优先级,并在该目标优先级大于预设优先级时,执行所述将所述第一即时通讯信息转换为语音信息的步骤。反之,不执行该步骤,从而避免影响电子设备对应的目标用户运行小程序,提高了用户体验。It can be understood that the first priority corresponding to the first instant messaging information and the second priority corresponding to the sender identification are determined first, and then the target priority is determined according to the first priority and the second priority, and the target priority is greater than When the priority is preset, the step of converting the first instant messaging information into voice information is performed. On the contrary, this step is not performed, thereby avoiding affecting the target user corresponding to the electronic device from running the applet, and improving the user experience.
本申请对于如何确定第一优先级的方法不做限定,在一个可能的示例中,所述确定所述第一即时通讯信息对应的第一优先级包括:确定所述编辑类型标识对应的第一子优先级;确定所述信息类型对应的第二子优先级;确定所述摘要信息对应的第三子优先级;根据所述第一子优先级、所述第二子优先级和所述第三子优先级确定所述第一优先级。This application does not limit how to determine the first priority. In a possible example, determining the first priority corresponding to the first instant messaging information includes: determining a first corresponding to the edit type identifier. Determine the second sub-priority corresponding to the type of information; determine the third sub-priority corresponding to the summary information; according to the first sub-priority, the second sub-priority, and the first sub-priority The three sub-priorities determine the first priority.
在本申请中,预先设置不同编辑类型标识对应的优先级,其中,第一应用标识的优先级高于第二应用标识,例如:编辑类型标识为第一应用标识的优先 级为5,编辑类型标识为第二应用标识的优先级为3。In this application, the priorities corresponding to different editing type identifiers are set in advance, wherein the priority of the first application identifier is higher than that of the second application identifier, for example, the editing type identifier is the priority of the first application identifier is 5, and the editing type is The priority identified as the second application identification is 3.
预先设置不同信息类型对应的优先级,例如:表情图像类型为1,视频类型为2,语音类型和文本类型为3,视频请求和语音请求为4等。如此,可确定编辑类型标识对应的第一子优先级。Priority is set for different information types in advance, for example: emoticon image type is 1, video type is 2, voice type and text type are 3, video request and voice request are 4, etc. In this way, the first sub-priority corresponding to the edit type identifier may be determined.
本申请对于如何根据所述第一子优先级、所述第二子优先级和所述第三子优先级确定所述第一优先级的方法不做限定,可以是第一子优先级、第二子优先级和第三子优先级之间的平均值、最大值或最小值,也可以是第一子优先级、第二子优先级和第三子优先级对应的加权平均值,即预先设置编辑类型标识和摘要信息对应的预设权值,然后分别与第一子优先级、第二子优先级和第三子优先级进行加权以得到第一优先级等。This application does not limit how to determine the first priority according to the first sub-priority, the second sub-priority, and the third sub-priority, and may be the first sub-priority, The average value, maximum value, or minimum value between the second sub-priority and the third sub-priority. It can also be the weighted average corresponding to the first sub-priority, the second sub-priority, and the third sub-priority. The preset weights corresponding to the edit type identifier and the summary information are set, and then weighted with the first sub-priority, the second sub-priority, and the third sub-priority to obtain the first priority, etc.
可以理解,由于摘要信息可体现第一即时通讯信息的主要内容,如此,根据摘要信息确定第三子优先级。再由第三子优先级、和根据编辑类型标识确定的第一子优先级、以及根据信息类型确定的第二子优先级确定第一优先级,即从第一即时通讯信息对应的主要内容、信息类型和编辑类型标识,可提高确定第一优先级的准确性。It can be understood that, since the summary information can reflect the main content of the first instant messaging information, the third sub-priority is determined according to the summary information. The first sub-priority is determined by the third sub-priority, the first sub-priority determined according to the edit type identifier, and the second sub-priority determined according to the information type, that is, the main content corresponding to the first instant messaging information, Information type and edit type identification can improve the accuracy of determining the first priority.
本申请对于如何确定第二优先级的方法不做限定,在一个可能的示例中,所述确定所述发送人标识对应的第二优先级包括:获取所述发送人标识和所述电子设备对应的目标用户标识之间的多个历史联系记录;根据所述多个历史联系记录确定所述发送人标识与所述目标用户标识之间的联系频率;确定所述发送人标识对应的发送人和所述目标用户标识对应的目标用户之间的关联关系;根据所述关联关系和所述联系频率确定所述第二优先级。This application does not limit the method for determining the second priority. In a possible example, determining the second priority corresponding to the sender identifier includes: obtaining the sender identifier corresponding to the electronic device. Multiple historical contact records between the target user IDs; determining the frequency of contact between the sender ID and the target user ID based on the multiple historical contact records; determining the sender and An association relationship between target users corresponding to the target user identifier; and determining the second priority according to the association relationship and the contact frequency.
本申请对于确定联系频率的方法不做限定,可根据历史通知信息对应的时间间隔和连续通讯时长进行确定。The method for determining the contact frequency is not limited in this application, and may be determined according to the time interval and continuous communication duration corresponding to the historical notification information.
关联关系用于描述发送人标识对应的发送人和目标用户标识对应的目标用户之间的关系,例如:朋友、亲人、同事等。在本申请中,可预先定义不同的关联关系对应的值,例如:陌生人对应的值小于1,同事对应的值大于1,小于或等于3,朋友对应的值大于3,小于或等于5,亲人对应的值大于5,小于或等于10,进一步的,配偶为10,父母为8,子女为9,兄弟姐妹为7,叔叔姨妈为6。The association relationship is used to describe the relationship between the sender corresponding to the sender identification and the target user corresponding to the target user identification, such as friends, relatives, colleagues, and so on. In this application, values corresponding to different associations may be defined in advance, for example: the value corresponding to a stranger is less than 1, the value corresponding to a colleague is greater than 1, less than or equal to 3, and the value corresponding to a friend is greater than 3, less than or equal to 5, The corresponding value of relatives is greater than 5, less than or equal to 10, further, the spouse is 10, the parents are 8, the children are 9, the siblings are 7, and the uncles and aunts are 6.
可以理解,先确定发送人标识和电子设备对应的目标用户标识之间进行通信的多个历史联系记录,再对多个历史联系记录进行分析以确定二者之间的联系频率,以及确定发送人标识对应的发送人和目标用户标识对应的目标用户之间的关联关系,然后,根据关联关系和联系频率确定第二优先级,如此,按照多个历史联系记录和二者对应用户本身存在的关联关系确定第二优先级,可进 一步提高确定第二优先级的准确性。Understandably, first determine multiple historical contact records for communication between the sender's identity and the target user identity corresponding to the electronic device, then analyze the multiple historical contact records to determine the frequency of contact between the two, and determine the sender. Identify the association between the corresponding sender and the target user, and then determine the second priority based on the association and the contact frequency. In this way, according to multiple historical contact records and the association between the two corresponding users themselves The relationship determines the second priority, which can further improve the accuracy of determining the second priority.
S203:控制所述电子设备的音频组件播放所述语音信息。S203: Control the audio component of the electronic device to play the voice information.
如前所述音频组件可以用于为电子设备提供音频输入和输出功能。音频组件还可以包括音调发生器以及其它用于产生和检测声音的组件。在电子设备中,音频主叫包括麦克风、扬声器、听筒,其中:麦克风用于采集声音,扬声器用于播放声音,听筒用于外接耳机、通话时播放对端语音。As mentioned earlier, audio components can be used to provide audio input and output functions for electronic devices. The audio component may also include a tone generator and other components for generating and detecting sound. In the electronic device, the audio caller includes a microphone, a speaker, and an earphone. Among them, the microphone is used to collect sound, the speaker is used to play sound, and the earpiece is used to connect an external earphone, and to play the peer voice during a call.
在本申请实施例中,对于播放语音信息的音频组件不做限定,在连接耳机时,该音频组件为听筒连接的耳机或与电子设备进行无线连接的耳机;在未连接耳机时,该音频组件可根据目标用户与电子设备之间的距离确定,例如,在小于预设距离时,采用听筒进行播放;而在大于或等于预设距离,采用扬声器播放。In the embodiment of the present application, there is no limitation on an audio component for playing voice information. When an earphone is connected, the audio component is an earphone or a wireless earphone connected to an electronic device. When the earphone is not connected, the audio component It can be determined according to the distance between the target user and the electronic device. For example, when the distance is less than a preset distance, the handset is used for playback; and when it is greater than or equal to the preset distance, the speaker is used for playback.
在如图2所示的信息提示方法中,在运行电子设备的第一应用的小程序时,若接收到所述第一应用的第一即时通讯信息,则将所述第一即时通讯信息转换为语音信息,控制所述电子设备的音频组件播放所述语音信息。如此,即时将第一即时通讯信息以音频的形式播放出来,提高了信息的即时性。In the information prompting method shown in FIG. 2, when the applet of the first application of the electronic device is running, if the first instant messaging information of the first application is received, the first instant messaging information is converted. For voice information, the audio component of the electronic device is controlled to play the voice information. In this way, the first instant messaging information is immediately played out in the form of audio, which improves the immediacy of the information.
在一个可能的示例中,在所述将所述第一即时通讯信息转换为语音信息之后,所述方法还包括:关闭所述电子设备的语音拾取功能。In a possible example, after the converting the first instant messaging information into voice information, the method further includes: turning off a voice pickup function of the electronic device.
可以理解,在运行第一应用的小程序时,若播放语音信息,则关闭电子设备的语音拾取功能,即不采集语音信息,以免上传至小程序,造成信息的泄露,提高了隐私的安全性。It can be understood that when the applet of the first application is running, if the voice information is played, the voice pickup function of the electronic device is turned off, that is, the voice information is not collected, so as not to upload to the applet, causing information leakage and improving privacy security. .
与图2所示实施例一致的,请参照图3,图3是本申请实施例提供的一种信息提示装置的结构示意图,如图3所示,上述信息提示装置300包括接收单元301、处理单元302和播放单元303,其中:Consistent with the embodiment shown in FIG. 2, please refer to FIG. 3. FIG. 3 is a schematic structural diagram of an information prompting device provided by an embodiment of the present application. As shown in FIG. Unit 302 and playback unit 303, where:
接收单元301用于在运行电子设备的第一应用的小程序时,接收所述第一应用的第一即时通讯信息;The receiving unit 301 is configured to receive first instant messaging information of the first application when the applet of the first application of the electronic device is running;
处理单元302用于将所述第一即时通讯信息转换为语音信息;The processing unit 302 is configured to convert the first instant messaging information into voice information;
播放单元303用于控制所述电子设备的音频组件播放所述语音信息。The playback unit 303 is configured to control an audio component of the electronic device to play the voice information.
可以理解,在运行电子设备的第一应用的小程序时,若接收到所述第一应用的第一即时通讯信息,则将所述第一即时通讯信息转换为语音信息,控制所述电子设备的音频组件播放所述语音信息。如此,即时将第一即时通讯信息以音频的形式播放出来,提高了信息的即时性。It can be understood that when the applet of the first application of the electronic device is running, if the first instant messaging information of the first application is received, the first instant messaging information is converted into voice information to control the electronic device. The audio component plays the voice information. In this way, the first instant messaging information is immediately played out in the form of audio, which improves the immediacy of the information.
在一个可能的示例中,在所述将所述第一即时通讯信息转换为语音信息方面,所述处理单元302具体用于获取所述第一即时通讯信息对应的发送人标识、 信息类型和编辑类型标识,所述编辑类型标识包括所述第一应用对应的第一应用标识、除了所述第一应用之外的第二应用的第二应用标识;确定所述发送人标识对应的音色特征;根据所述音色特征、所述信息类型和所述编辑类型标识对所述第一即时通讯信息进行转换,得到所述语音信息。In a possible example, in terms of converting the first instant messaging information into voice information, the processing unit 302 is specifically configured to obtain a sender identifier, information type, and edit corresponding to the first instant messaging information. A type identifier, where the edit type identifier includes a first application identifier corresponding to the first application, and a second application identifier of a second application other than the first application; determining a tone color characteristic corresponding to the sender identifier; Converting the first instant messaging information according to the tone color feature, the information type, and the editing type identifier to obtain the voice information.
在一个可能的示例中,若所述编辑类型标识为所述第一应用标识,且所述信息类型为文本类型,在所述根据所述音色特征、所述信息类型和所述编辑类型标识对所述第一即时通讯信息进行转换,得到所述语音信息方面,所述处理单元302具体用于确定所述第一即时通讯信息对应的第一语言和所述电子设备对应的第二语言;根据所述第一语言和所述第二语言之间的语义规则,对所述第一即时通讯信息进行转换,得到目标文字;确定所述目标文字对应的目标情绪;根据所述目标文字、所述目标情绪和所述音色特征生成所述语音信息。In a possible example, if the edit type identifier is the first application identifier and the information type is a text type, in the pair of identifiers according to the tone color characteristics, the information type, and the edit type The first instant messaging information is converted to obtain the voice information. The processing unit 302 is specifically configured to determine a first language corresponding to the first instant messaging information and a second language corresponding to the electronic device. Converting the first instant messaging information to a target text by using a semantic rule between the first language and the second language; determining a target emotion corresponding to the target text; according to the target text, the The target emotion and the timbre characteristics generate the voice information.
在一个可能的示例中,若所述编辑类型标识为所述第二应用标识,或所述信息类型为视频类型,在所述根据所述音色特征、所述信息类型和所述编辑类型标识对所述第一即时通讯信息进行转换,得到所述语音信息方面,所述处理单元302具体用于提取所述第一即时通讯信息对应的摘要信息;根据所述音色特征和所述摘要信息生成所述语音信息。In a possible example, if the edit type identifier is the second application identifier, or the information type is a video type, in the pair of identifiers according to the tone color characteristics, the information type, and the edit type The first instant messaging information is converted to obtain the voice information, and the processing unit 302 is specifically configured to extract summary information corresponding to the first instant messaging information; and generate an IP address based on the tone color characteristics and the summary information. Mentioned voice information.
在一个可能的示例中,在所述获取所述第一即时通讯信息对应的编辑类型标识方面,所述处理单元302具体用于确定所述发送人标识对应的编辑习惯数据;若所述第一即时通讯信息满足所述编辑习惯数据,则确定所述编辑类型标识为所述第一应用;若所述第一即时通讯信息不满足所述编辑习惯数据,则查找所述第一即时通讯信息对应的至少一个标识信息;根据所述至少一个标识信息确定所述编辑类型标识。In a possible example, in terms of acquiring the editing type identifier corresponding to the first instant messaging information, the processing unit 302 is specifically configured to determine editing habits data corresponding to the sender identifier; if the first If the instant messaging information satisfies the editing habits data, it is determined that the editing type identifier is the first application; if the first instant messaging information does not satisfy the editing habits data, the corresponding correspondence of the first instant messaging information is searched. At least one piece of identification information; determining the edit type identification according to the at least one piece of identification information.
在一个可能的示例中,在所述确定所述发送人标识对应的编辑习惯数据方面,所述处理单元302具体用于获取指定时段内所述发送人标识对应的多条第二即时通讯信息;对所述多条第二即时通讯信息中每一第二即时通讯信息进行句式分析,得到所述编辑习惯数据;In a possible example, in terms of determining the editing habit data corresponding to the sender identification, the processing unit 302 is specifically configured to obtain multiple pieces of second instant messaging information corresponding to the sender identification in a specified period; Perform sentence analysis on each of the plurality of second instant messaging messages to obtain the editing habits data;
在所述确定所述发送人标识对应的音色特征方面,所述处理单元302具体用于从所述多条第二即时通讯信息中选取信息类型为语音类型的即时通讯信息,得到多条第三即时通讯信息;对所述多条第三即时通讯信息中每一第二即时通讯信息进行音色分析,得到所述音色特征。In terms of determining the timbre characteristics corresponding to the sender identification, the processing unit 302 is specifically configured to select the instant messaging information whose information type is a voice type from the plurality of second instant messaging information to obtain a plurality of third instant messaging information. Instant messaging information; performing tone color analysis on each of the plurality of third instant messaging messages to obtain the tone color characteristics.
在一个可能的示例中,在所述将所述第一即时通讯信息转换为语音信息之前,所述处理单元302还用于确定所述第一即时通讯信息对应的第一优先级;确定所述发送人标识对应的第二优先级;根据所述第一优先级和所述第二优先级确定目标优先级;若所述目标优先级大于预设优先级,则执行所述将所述第 一即时通讯信息转换为语音信息的步骤。In a possible example, before the converting the first instant messaging information into voice information, the processing unit 302 is further configured to determine a first priority corresponding to the first instant messaging information; determine the first priority A second priority corresponding to the sender's identity; determining a target priority according to the first priority and the second priority; if the target priority is greater than a preset priority, executing the first priority Steps to convert IM messages to voice messages.
在一个可能的示例中,在所述确定所述发送人标识对应的第二优先级方面,所述处理单元302具体用于获取所述发送人标识和所述电子设备对应的目标用户标识之间的多个历史联系记录;根据所述多个历史联系记录确定所述发送人标识与所述目标用户标识之间的联系频率;确定所述发送人标识对应的发送人和所述目标用户标识对应的目标用户之间的关联关系;根据所述关联关系和所述联系频率确定所述第二优先级。In a possible example, in terms of determining a second priority corresponding to the sender identification, the processing unit 302 is specifically configured to obtain a gap between the sender identification and a target user identification corresponding to the electronic device. A plurality of historical contact records; determining a contact frequency between the sender identification and the target user identification according to the plurality of historical contact records; determining a correspondence between the sender identification corresponding to the sender identification and the target user identification An association relationship between the target users of the; the second priority is determined according to the association relationship and the contact frequency.
在一个可能的示例中,在所述将所述第一即时通讯信息转换为语音信息之后,所述处理单元302还用于关闭所述电子设备的语音拾取功能。In a possible example, after the converting the first instant messaging information into voice information, the processing unit 302 is further configured to turn off a voice pickup function of the electronic device.
请参照图4,图4是本申请实施例提供的另一种电子设备的结构示意图。如图4所示,该电子设备400包括处理器410、存储器420、通信接口430以及一个或多个程序440,其中,上述一个或多个程序440被存储在上述存储器420中,并且被配置由上述处理器410执行,上述程序440包括用于执行以下步骤的指令:Please refer to FIG. 4, which is a schematic structural diagram of another electronic device according to an embodiment of the present application. As shown in FIG. 4, the electronic device 400 includes a processor 410, a memory 420, a communication interface 430, and one or more programs 440. The one or more programs 440 are stored in the memory 420, and are configured by The processor 410 executes, and the program 440 includes instructions for performing the following steps:
在运行电子设备的第一应用的小程序时,接收所述第一应用的第一即时通讯信息;Receiving the first instant messaging information of the first application when the applet of the first application of the electronic device is running;
将所述第一即时通讯信息转换为语音信息;Converting the first instant messaging information into voice information;
控制所述电子设备的音频组件播放所述语音信息。Controlling an audio component of the electronic device to play the voice information.
可以理解,在运行电子设备的第一应用的小程序时,若接收到所述第一应用的第一即时通讯信息,则将所述第一即时通讯信息转换为语音信息,控制所述电子设备的音频组件播放所述语音信息。如此,即时将第一即时通讯信息以音频的形式播放出来,提高了信息的即时性。It can be understood that when the applet of the first application of the electronic device is running, if the first instant messaging information of the first application is received, the first instant messaging information is converted into voice information to control the electronic device. The audio component plays the voice information. In this way, the first instant messaging information is immediately played out in the form of audio, which improves the immediacy of the information.
在一个可能的示例中,在所述将所述第一即时通讯信息转换为语音信息方面,所述程序440中的指令具体用于执行以下操作:In a possible example, in terms of converting the first instant messaging information into voice information, the instructions in the program 440 are specifically configured to perform the following operations:
获取所述第一即时通讯信息对应的发送人标识、信息类型和编辑类型标识,所述编辑类型标识包括所述第一应用对应的第一应用标识、除了所述第一应用之外的第二应用的第二应用标识;Obtaining a sender identifier, an information type, and an edit type identifier corresponding to the first instant messaging information, where the edit type identifier includes a first application identifier corresponding to the first application, a second application other than the first application, The second application identifier of the application;
确定所述发送人标识对应的音色特征;Determining a tone color characteristic corresponding to the sender identification;
根据所述音色特征、所述信息类型和所述编辑类型标识对所述第一即时通讯信息进行转换,得到所述语音信息。Converting the first instant messaging information according to the tone color feature, the information type, and the editing type identifier to obtain the voice information.
在一个可能的示例中,若所述编辑类型标识为所述第一应用标识,且所述信息类型为文本类型,则在所述根据所述音色特征、所述信息类型和所述编辑类型标识对所述第一即时通讯信息进行转换,得到所述语音信息方面,所述程 序440中的指令具体用于执行以下操作:In a possible example, if the edit type identifier is the first application identifier and the information type is a text type, then the identifier according to the tone color feature, the information type, and the edit type is identified. The first instant messaging information is converted to obtain the voice information. The instructions in the program 440 are specifically used to perform the following operations:
确定所述第一即时通讯信息对应的第一语言和所述电子设备对应的第二语言;Determining a first language corresponding to the first instant messaging information and a second language corresponding to the electronic device;
根据所述第一语言和所述第二语言之间的语义规则,对所述第一即时通讯信息进行转换,得到目标文字;Converting the first instant messaging information according to a semantic rule between the first language and the second language to obtain a target text;
确定所述目标文字对应的目标情绪;Determining a target emotion corresponding to the target text;
根据所述目标文字、所述目标情绪和所述音色特征生成所述语音信息。Generating the voice information according to the target text, the target emotion, and the timbre characteristics.
在一个可能的示例中,若所述编辑类型标识为所述第二应用标识,或所述信息类型为视频类型,则在所述根据所述音色特征、所述信息类型和所述编辑类型标识对所述第一即时通讯信息进行转换,得到所述语音信息方面,所述程序440中的指令具体用于执行以下操作:In a possible example, if the edit type identifier is the second application identifier, or the information type is a video type, then the identifier according to the tone color feature, the information type, and the edit type is identified. The first instant messaging information is converted to obtain the voice information. The instructions in the program 440 are specifically used to perform the following operations:
提取所述第一即时通讯信息对应的摘要信息;Extracting summary information corresponding to the first instant messaging information;
根据所述音色特征和所述摘要信息生成所述语音信息。Generating the voice information according to the tone color feature and the summary information.
在一个可能的示例中,在所述获取所述第一即时通讯信息对应的编辑类型标识方面,所述程序440中的指令具体用于执行以下操作:In a possible example, in terms of acquiring the edit type identifier corresponding to the first instant messaging information, the instructions in the program 440 are specifically configured to perform the following operations:
确定所述发送人标识对应的编辑习惯数据;Determining editing habit data corresponding to the sender identification;
若所述第一即时通讯信息满足所述编辑习惯数据,则确定所述编辑类型标识为所述第一应用;If the first instant messaging information satisfies the editing habits data, determining that the editing type identifier is the first application;
若所述第一即时通讯信息不满足所述编辑习惯数据,则查找所述第一即时通讯信息对应的至少一个标识信息;根据所述至少一个标识信息确定所述编辑类型标识。If the first instant messaging information does not satisfy the editing habits data, look for at least one identification information corresponding to the first instant messaging information; and determine the editing type identification according to the at least one identification information.
在一个可能的示例中,在所述确定所述发送人标识对应的编辑习惯数据方面,所述程序440中的指令具体用于执行以下操作:In a possible example, in determining the editing habits data corresponding to the sender identifier, the instructions in the program 440 are specifically used to perform the following operations:
获取指定时段内所述发送人标识对应的多条第二即时通讯信息;Obtaining a plurality of pieces of second instant messaging information corresponding to the sender identification within a specified period;
对所述多条第二即时通讯信息中每一第二即时通讯信息进行句式分析,得到所述编辑习惯数据;Perform sentence analysis on each of the plurality of second instant messaging messages to obtain the editing habits data;
在所述确定所述发送人标识对应的音色特征方面,所述程序440中的指令具体用于执行以下操作:In terms of determining a tone color characteristic corresponding to the sender identification, the instructions in the program 440 are specifically used to perform the following operations:
从所述多条第二即时通讯信息中选取信息类型为语音类型的即时通讯信息,得到多条第三即时通讯信息;Selecting from a plurality of pieces of the second instant messaging information a voice type of instant messaging information to obtain a plurality of third instant messaging information;
对所述多条第三即时通讯信息中每一第二即时通讯信息进行音色分析,得到所述音色特征。Perform tone color analysis on each of the plurality of third instant messaging messages to obtain the tone color characteristics.
在一个可能的示例中,在所述将所述第一即时通讯信息转换为语音信息之前,所述程序440中的指令还用于执行以下操作:In a possible example, before the converting the first instant messaging information into voice information, the instructions in the program 440 are further configured to perform the following operations:
确定所述第一即时通讯信息对应的第一优先级;Determining a first priority corresponding to the first instant messaging information;
确定所述发送人标识对应的第二优先级;Determining a second priority corresponding to the sender identification;
根据所述第一优先级和所述第二优先级确定目标优先级;Determining a target priority according to the first priority and the second priority;
若所述目标优先级大于预设优先级,则执行所述将所述第一即时通讯信息转换为语音信息的步骤。If the target priority is greater than a preset priority, the step of converting the first instant messaging information into voice information is performed.
在一个可能的示例中,在所述确定所述发送人标识对应的第二优先级方面,所述程序440中的指令具体用于执行以下操作:In a possible example, in determining the second priority corresponding to the sender identifier, the instructions in the program 440 are specifically used to perform the following operations:
获取所述发送人标识和所述电子设备对应的目标用户标识之间的多个历史联系记录;Acquiring multiple historical contact records between the sender identification and the target user identification corresponding to the electronic device;
根据所述多个历史联系记录确定所述发送人标识与所述目标用户标识之间的联系频率;Determining, according to the multiple historical contact records, a contact frequency between the sender identification and the target user identification;
确定所述发送人标识对应的发送人和所述目标用户标识对应的目标用户之间的关联关系;Determining an association relationship between a sender corresponding to the sender identification and a target user corresponding to the target user identification;
根据所述关联关系和所述联系频率确定所述第二优先级。Determining the second priority according to the association relationship and the contact frequency.
在一个可能的示例中,在所述将所述第一即时通讯信息转换为语音信息之后,所述程序440中的指令还用于执行以下操作:In a possible example, after the first instant messaging information is converted into voice information, the instructions in the program 440 are further configured to perform the following operations:
关闭所述电子设备的语音拾取功能。Turn off the voice pickup function of the electronic device.
本申请实施例还提供一种计算机存储介质,其中,该计算机存储介质存储用于存储计算机程序,该计算机程序使得计算机执行如上述方法实施例中记载的任一方法的部分或全部步骤,所述计算机包括电子设备。An embodiment of the present application further provides a computer storage medium, where the computer storage medium stores a computer program for causing a computer to execute part or all of the steps of any method described in the foregoing method embodiments, where The computer includes electronic equipment.
本申请实施例还提供一种计算机程序产品,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如上述方法实施例中记载的任一方法的部分或全部步骤。该计算机程序产品可以为一个软件安装包,所述计算机包括电子设备。An embodiment of the present application further provides a computer program product, the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to perform the operations described in the foregoing method embodiments. Part or all of the steps of any method. The computer program product may be a software installation package, and the computer includes an electronic device.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。It should be noted that, for the foregoing method embodiments, for the sake of simple description, they are all described as a series of action combinations. However, those skilled in the art should know that this application is not limited by the described action order. Because according to the present application, certain steps may be performed in another order or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required for this application.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above embodiments, the description of each embodiment has its own emphasis. For a part that is not described in detail in one embodiment, reference may be made to related descriptions in other embodiments.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如所述单 元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed device may be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner. For example, multiple units or components may be combined or may Integration into another system, or some features can be ignored or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be electrical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objective of the solution of this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each of the units may exist separately physically, or two or more units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or in the form of software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。When the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a computer-readable memory. Based on such an understanding, the technical solution of the present application essentially or part that contributes to the existing technology or all or part of the technical solution can be embodied in the form of a software product, which is stored in a memory, Several instructions are included to enable a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in the embodiments of the present application. The foregoing memory includes: a U disk, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk, or an optical disk, and other media that can store program codes.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、只读存储器、随机存取器(、磁盘或光盘等。A person of ordinary skill in the art may understand that all or part of the steps in the various methods of the foregoing embodiments may be completed by a program instructing related hardware. The program may be stored in a computer-readable memory, and the memory may include a flash disk. , Read-only memory, random access device (, disk or optical disk, etc.).
以上对本申请实施例进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The embodiments of the present application have been described in detail above. Specific examples are used in this document to explain the principles and implementation of the present application. The descriptions of the above embodiments are only used to help understand the method and core ideas of the present application. Persons of ordinary skill in the art may change the specific implementation and application scope according to the idea of the present application. In summary, the content of this description should not be construed as a limitation on the present application.

Claims (20)

  1. 一种信息提示方法,其特征在于,包括:An information prompting method, comprising:
    在运行电子设备的第一应用的小程序时,接收所述第一应用的第一即时通讯信息;Receiving the first instant messaging information of the first application when the applet of the first application of the electronic device is running;
    将所述第一即时通讯信息转换为语音信息;Converting the first instant messaging information into voice information;
    控制所述电子设备的音频组件播放所述语音信息。Controlling an audio component of the electronic device to play the voice information.
  2. 根据权利要求1所述的方法,其特征在于,所述将所述第一即时通讯信息转换为语音信息,包括:The method according to claim 1, wherein the converting the first instant messaging information into voice information comprises:
    获取所述第一即时通讯信息对应的发送人标识、信息类型和编辑类型标识,所述编辑类型标识包括所述第一应用对应的第一应用标识、除了所述第一应用之外的第二应用的第二应用标识;Obtaining a sender identifier, an information type, and an edit type identifier corresponding to the first instant messaging information, where the edit type identifier includes a first application identifier corresponding to the first application, a second application other than the first application, The second application identifier of the application;
    确定所述发送人标识对应的音色特征;Determining a tone color characteristic corresponding to the sender identification;
    根据所述音色特征、所述信息类型和所述编辑类型标识对所述第一即时通讯信息进行转换,得到所述语音信息。Converting the first instant messaging information according to the tone color feature, the information type, and the editing type identifier to obtain the voice information.
  3. 根据权利要求2所述的方法,其特征在于,若所述编辑类型标识为所述第一应用标识,且所述信息类型为文本类型,则所述根据所述音色特征、所述信息类型和所述编辑类型标识对所述第一即时通讯信息进行转换,得到所述语音信息,包括:The method according to claim 2, wherein, if the edit type identifier is the first application identifier and the information type is a text type, the according to the tone color feature, the information type, and The converting the type identification to the first instant messaging information to obtain the voice information includes:
    确定所述第一即时通讯信息对应的第一语言和所述电子设备对应的第二语言;Determining a first language corresponding to the first instant messaging information and a second language corresponding to the electronic device;
    根据所述第一语言和所述第二语言之间的语义规则,对所述第一即时通讯信息进行转换,得到目标文字;Converting the first instant messaging information according to a semantic rule between the first language and the second language to obtain a target text;
    确定所述目标文字对应的目标情绪;Determining a target emotion corresponding to the target text;
    根据所述目标文字、所述目标情绪和所述音色特征生成所述语音信息。Generating the voice information according to the target text, the target emotion, and the timbre characteristics.
  4. 根据权利要求2所述的方法,其特征在于,若所述编辑类型标识为所述第二应用标识,或所述信息类型为视频类型,则所述根据所述音色特征、所述信息类型和所述编辑类型标识对所述第一即时通讯信息进行转换,得到所述语音信息,包括:The method according to claim 2, characterized in that if the edit type identifier is the second application identifier or the information type is a video type, the according to the tone color characteristics, the information type, and The converting the type identification to the first instant messaging information to obtain the voice information includes:
    提取所述第一即时通讯信息对应的摘要信息;Extracting summary information corresponding to the first instant messaging information;
    根据所述音色特征和所述摘要信息生成所述语音信息。Generating the voice information according to the tone color feature and the summary information.
  5. 根据权利要求2-4任一项所述的方法,其特征在于,所述获取所述第一即时通讯信息对应的编辑类型标识,包括:The method according to any one of claims 2-4, wherein the acquiring an edit type identifier corresponding to the first instant messaging information comprises:
    确定所述发送人标识对应的编辑习惯数据;Determining editing habit data corresponding to the sender identification;
    若所述第一即时通讯信息满足所述编辑习惯数据,则确定所述编辑类型标识为所述第一应用;If the first instant messaging information satisfies the editing habits data, determining that the editing type identifier is the first application;
    若所述第一即时通讯信息不满足所述编辑习惯数据,则查找所述第一即时通讯信息对应的至少一个标识信息;If the first instant messaging information does not satisfy the editing habits data, searching for at least one identification information corresponding to the first instant messaging information;
    根据所述至少一个标识信息确定所述编辑类型标识。Determining the edit type identifier according to the at least one identifier information.
  6. 根据权利要求5所述的方法,其特征在于,所述确定所述发送人标识对应的编辑习惯数据,包括:The method according to claim 5, wherein determining the editing habit data corresponding to the sender identifier comprises:
    获取指定时段内所述发送人标识对应的多条第二即时通讯信息;Obtaining a plurality of pieces of second instant messaging information corresponding to the sender identification within a specified period;
    对所述多条第二即时通讯信息中每一第二即时通讯信息进行句式分析,得到所述编辑习惯数据;Perform sentence analysis on each of the plurality of second instant messaging messages to obtain the editing habits data;
    所述确定所述发送人标识对应的音色特征,包括:The determining a tone color characteristic corresponding to the sender identifier includes:
    从所述多条第二即时通讯信息中选取信息类型为语音类型的即时通讯信息,得到多条第三即时通讯信息;Selecting from a plurality of pieces of the second instant messaging information a voice type of instant messaging information to obtain a plurality of third instant messaging information;
    对所述多条第三即时通讯信息中每一第二即时通讯信息进行音色分析,得到所述音色特征。Perform tone color analysis on each of the plurality of third instant messaging messages to obtain the tone color characteristics.
  7. 根据权利要求1-6任一项所述的方法,其特征在于,在所述将所述第一即时通讯信息转换为语音信息之前,所述方法还包括:The method according to any one of claims 1-6, wherein before the converting the first instant messaging information into voice information, the method further comprises:
    确定所述第一即时通讯信息对应的第一优先级;Determining a first priority corresponding to the first instant messaging information;
    确定所述发送人标识对应的第二优先级;Determining a second priority corresponding to the sender identification;
    根据所述第一优先级和所述第二优先级确定目标优先级;Determining a target priority according to the first priority and the second priority;
    若所述目标优先级大于预设优先级,则执行所述将所述第一即时通讯信息转换为语音信息的步骤。If the target priority is greater than a preset priority, the step of converting the first instant messaging information into voice information is performed.
  8. 根据权利要求7所述的方法,其特征在于,所述确定所述发送人标识对应的第二优先级,包括:The method according to claim 7, wherein the determining a second priority corresponding to the sender identifier comprises:
    获取所述发送人标识和所述电子设备对应的目标用户标识之间的多个历史联系记录;Acquiring multiple historical contact records between the sender identification and the target user identification corresponding to the electronic device;
    根据所述多个历史联系记录确定所述发送人标识与所述目标用户标识之 间的联系频率;Determining a contact frequency between the sender identification and the target user identification according to the multiple historical contact records;
    确定所述发送人标识对应的发送人和所述目标用户标识对应的目标用户之间的关联关系;Determining an association relationship between a sender corresponding to the sender identification and a target user corresponding to the target user identification;
    根据所述关联关系和所述联系频率确定所述第二优先级。Determining the second priority according to the association relationship and the contact frequency.
  9. 根据权利要求1-8任一项所述的方法,其特征在于,在所述将所述第一即时通讯信息转换为语音信息之后,所述方法还包括:The method according to any one of claims 1 to 8, wherein after the converting the first instant messaging information into voice information, the method further comprises:
    关闭所述电子设备的语音拾取功能。Turn off the voice pickup function of the electronic device.
  10. 一种信息提示装置,其特征在于,包括:An information prompting device, comprising:
    接收单元,用于在运行电子设备的第一应用的小程序时,接收所述第一应用的第一即时通讯信息;A receiving unit, configured to receive first instant messaging information of the first application when the applet of the first application of the electronic device is running;
    处理单元,用于将所述第一即时通讯信息转换为语音信息;A processing unit, configured to convert the first instant messaging information into voice information;
    播放单元,用于控制所述电子设备的音频组件播放所述语音信息。A playback unit, configured to control an audio component of the electronic device to play the voice information.
  11. 根据权利要求10所述的装置,其特征在于,在所述将所述第一即时通讯信息转换为语音信息方面,所述处理单元具体用于获取所述第一即时通讯信息对应的发送人标识、信息类型和编辑类型标识,所述编辑类型标识包括所述第一应用对应的第一应用标识、除了所述第一应用之外的第二应用的第二应用标识;确定所述发送人标识对应的音色特征;根据所述音色特征、所述信息类型和所述编辑类型标识对所述第一即时通讯信息进行转换,得到所述语音信息。The device according to claim 10, wherein, in terms of converting the first instant messaging information into voice information, the processing unit is specifically configured to obtain a sender identifier corresponding to the first instant messaging information , An information type identifier, and an edit type identifier, where the edit type identifier includes a first application identifier corresponding to the first application, and a second application identifier of a second application other than the first application; determining the sender identifier Corresponding tone color characteristics; converting the first instant messaging information according to the tone color characteristics, the information type, and the edit type identifier to obtain the voice information.
  12. 根据权利要求11所述的装置,其特征在于,若所述编辑类型标识为所述第一应用标识,且所述信息类型为文本类型,在所述根据所述音色特征、所述信息类型和所述编辑类型标识对所述第一即时通讯信息进行转换,得到所述语音信息方面,所述处理单元具体用于确定所述第一即时通讯信息对应的第一语言和所述电子设备对应的第二语言;根据所述第一语言和所述第二语言之间的语义规则,对所述第一即时通讯信息进行转换,得到目标文字;确定所述目标文字对应的目标情绪;根据所述目标文字、所述目标情绪和所述音色特征生成所述语音信息。The device according to claim 11, characterized in that if the edit type identifier is the first application identifier and the information type is a text type, according to the tone color feature, the information type, and The editing type identifier converts the first instant messaging information to obtain the voice information. The processing unit is specifically configured to determine a first language corresponding to the first instant messaging information and a corresponding one of the electronic devices. A second language; converting the first instant messaging information to obtain a target text according to a semantic rule between the first language and the second language; determining a target emotion corresponding to the target text; and according to the The target text, the target emotion, and the timbre characteristics generate the voice information.
  13. 根据权利要求11所述的装置,其特征在于,若所述编辑类型标识为所述第二应用标识,或所述信息类型为视频类型,在所述根据所述音色特征、 所述信息类型和所述编辑类型标识对所述第一即时通讯信息进行转换,得到所述语音信息方面,所述处理单元具体用于提取所述第一即时通讯信息对应的摘要信息;根据所述音色特征和所述摘要信息生成所述语音信息。The device according to claim 11, characterized in that, if the edit type identifier is the second application identifier or the information type is a video type, according to the sound color feature, the information type, and The editing type identifier converts the first instant messaging information to obtain the voice information, and the processing unit is specifically configured to extract summary information corresponding to the first instant messaging information; according to the tone color characteristics and the The summary information generates the voice information.
  14. 根据权利要求11-13任一项所述的装置,其特征在于,在所述获取所述第一即时通讯信息对应的编辑类型标识方面,所述处理单元具体用于确定所述发送人标识对应的编辑习惯数据;若所述第一即时通讯信息满足所述编辑习惯数据,则确定所述编辑类型标识为所述第一应用;若所述第一即时通讯信息不满足所述编辑习惯数据,则查找所述第一即时通讯信息对应的至少一个标识信息;根据所述至少一个标识信息确定所述编辑类型标识。The device according to any one of claims 11-13, wherein, in terms of acquiring the edit type identifier corresponding to the first instant messaging information, the processing unit is specifically configured to determine that the sender identifier corresponds to If the first instant messaging information satisfies the editing habits data, determining that the editing type identifier is the first application; if the first instant messaging information does not satisfy the editing habits data, Then searching for at least one identification information corresponding to the first instant messaging information; and determining the editing type identification according to the at least one identification information.
  15. 根据权利要求14所述的装置,其特征在于,在所述确定所述发送人标识对应的编辑习惯数据方面,所述处理单元具体用于获取指定时段内所述发送人标识对应的多条第二即时通讯信息;对所述多条第二即时通讯信息中每一第二即时通讯信息进行句式分析,得到所述编辑习惯数据;The device according to claim 14, characterized in that, in terms of determining the editing habit data corresponding to the sender identification, the processing unit is specifically configured to obtain a plurality of first correspondence items corresponding to the sender identification in a specified period. Two instant messaging information; performing sentence analysis on each of the plurality of second instant messaging messages to obtain the editing habits data;
    在所述确定所述发送人标识对应的音色特征方面,所述处理单元具体用于从所述多条第二即时通讯信息中选取信息类型为语音类型的即时通讯信息,得到多条第三即时通讯信息;对所述多条第三即时通讯信息中每一第二即时通讯信息进行音色分析,得到所述音色特征。In terms of determining the tone color characteristics corresponding to the sender identification, the processing unit is specifically configured to select the instant messaging information whose information type is a voice type from the plurality of second instant messaging messages to obtain multiple third instant messaging messages. Communication information; performing tone color analysis on each of the plurality of third instant messaging messages to obtain the tone color characteristics.
  16. 根据权利要求10-15任一项所述的装置,其特征在于,在所述将所述第一即时通讯信息转换为语音信息之前,所述处理单元还用于确定所述第一即时通讯信息对应的第一优先级;确定所述发送人标识对应的第二优先级;根据所述第一优先级和所述第二优先级确定目标优先级;若所述目标优先级大于预设优先级,则执行所述将所述第一即时通讯信息转换为语音信息的步骤。The device according to any one of claims 10-15, wherein before the converting the first instant messaging information into voice information, the processing unit is further configured to determine the first instant messaging information Corresponding first priority; determining a second priority corresponding to the sender identification; determining a target priority based on the first priority and the second priority; if the target priority is greater than a preset priority , Performing the step of converting the first instant messaging information into voice information.
  17. 根据权利要求15所述的装置,其特征在于,在所述确定所述发送人标识对应的第二优先级方面,所述处理单元具体用于获取所述发送人标识和所述电子设备对应的目标用户标识之间的多个历史联系记录;根据所述多个历史联系记录确定所述发送人标识与所述目标用户标识之间的联系频率;确定所述发送人标识对应的发送人和所述目标用户标识对应的目标用户之间的关联关系;根据所述关联关系和所述联系频率确定所述第二优先级。The apparatus according to claim 15, wherein in determining the second priority corresponding to the sender identifier, the processing unit is specifically configured to obtain a corresponding value between the sender identifier and the electronic device. Multiple historical contact records between target user IDs; determining a contact frequency between the sender ID and the target user ID based on the multiple historical contact records; determining a sender and a corresponding address corresponding to the sender ID The association relationship between the target users corresponding to the target user identifier; and determining the second priority according to the association relationship and the contact frequency.
  18. 一种电子设备,其特征在于,包括处理器、存储器、通信接口以及一 个或多个程序,其中,所述一个或多个程序被存储在所述存储器中,并且被配置由所述处理器执行,所述程序包括用于执行权利要求1-9任一项方法中的步骤的指令。An electronic device, comprising a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor The program includes instructions for performing the steps in the method of any one of claims 1-9.
  19. 一种计算机可读存储介质,其特征在于,其用于存储计算机程序,其中,所述计算机程序使得计算机执行如权利要求1-9任一项所述的方法。A computer-readable storage medium, which is used to store a computer program, wherein the computer program causes a computer to execute the method according to any one of claims 1-9.
  20. 一种计算机程序产品,其特征在于,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如权利要求1-9任一项所述的方法。A computer program product, characterized in that the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute the computer program according to any one of claims 1-9. The method described.
PCT/CN2018/105737 2018-09-14 2018-09-14 Information prompt method and related product WO2020051881A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201880095663.2A CN112425144B (en) 2018-09-14 2018-09-14 Information prompting method and related product
PCT/CN2018/105737 WO2020051881A1 (en) 2018-09-14 2018-09-14 Information prompt method and related product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/105737 WO2020051881A1 (en) 2018-09-14 2018-09-14 Information prompt method and related product

Publications (1)

Publication Number Publication Date
WO2020051881A1 true WO2020051881A1 (en) 2020-03-19

Family

ID=69776604

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/105737 WO2020051881A1 (en) 2018-09-14 2018-09-14 Information prompt method and related product

Country Status (2)

Country Link
CN (1) CN112425144B (en)
WO (1) WO2020051881A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113194024A (en) * 2021-03-22 2021-07-30 维沃移动通信(杭州)有限公司 Information display method and device and electronic equipment
CN113207025A (en) * 2021-04-30 2021-08-03 北京字跳网络技术有限公司 Video processing method and device, electronic equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070274467A1 (en) * 2006-05-09 2007-11-29 Pearson Larry B Methods and apparatus to provide voice control of a dial tone and an audio message in the initial off hook period
US8150003B1 (en) * 2007-01-23 2012-04-03 Avaya Inc. Caller initiated undivert from voicemail
CN103257787A (en) * 2013-05-16 2013-08-21 北京小米科技有限责任公司 Method and device for starting voice assistant application
CN105120060A (en) * 2015-07-07 2015-12-02 深圳市听八方科技有限公司 Method for voice playing notification message of smart phone
CN105376134A (en) * 2014-08-26 2016-03-02 腾讯科技(北京)有限公司 Method and device for displaying communication message
CN106412282A (en) * 2016-09-26 2017-02-15 维沃移动通信有限公司 Real-time message voice prompting method and mobile terminal
CN108566484A (en) * 2018-03-21 2018-09-21 努比亚技术有限公司 Message treatment method, terminal device and computer readable storage medium

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1972478A (en) * 2005-11-24 2007-05-30 展讯通信(上海)有限公司 A novel method for mobile phone reading short message
CN103533519A (en) * 2012-07-06 2014-01-22 盛乐信息技术(上海)有限公司 Short message broadcasting method and system
CN103095557A (en) * 2012-12-18 2013-05-08 上海量明科技发展有限公司 Instant messaging information voice output method and system
CN104184887A (en) * 2014-07-29 2014-12-03 小米科技有限责任公司 Message prompting method and device and terminal equipment
CN105635421A (en) * 2014-11-04 2016-06-01 中兴通讯股份有限公司 Method and apparatus for achieving information reminding
CN104991894A (en) * 2015-05-14 2015-10-21 深圳市万普拉斯科技有限公司 Instant chat message browsing method and system
CN107026929A (en) * 2016-02-01 2017-08-08 广州市动景计算机科技有限公司 Reminding method, device and the electronic equipment of applicative notifications
CN105739831A (en) * 2016-02-01 2016-07-06 珠海市魅族科技有限公司 Display method and device of message contents
CN107835117A (en) * 2017-10-19 2018-03-23 上海爱优威软件开发有限公司 A kind of instant communicating method and system
CN108111678B (en) * 2017-12-15 2019-11-15 维沃移动通信有限公司 A kind of information cuing method and mobile terminal

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070274467A1 (en) * 2006-05-09 2007-11-29 Pearson Larry B Methods and apparatus to provide voice control of a dial tone and an audio message in the initial off hook period
US8150003B1 (en) * 2007-01-23 2012-04-03 Avaya Inc. Caller initiated undivert from voicemail
CN103257787A (en) * 2013-05-16 2013-08-21 北京小米科技有限责任公司 Method and device for starting voice assistant application
CN105376134A (en) * 2014-08-26 2016-03-02 腾讯科技(北京)有限公司 Method and device for displaying communication message
CN105120060A (en) * 2015-07-07 2015-12-02 深圳市听八方科技有限公司 Method for voice playing notification message of smart phone
CN106412282A (en) * 2016-09-26 2017-02-15 维沃移动通信有限公司 Real-time message voice prompting method and mobile terminal
CN108566484A (en) * 2018-03-21 2018-09-21 努比亚技术有限公司 Message treatment method, terminal device and computer readable storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113194024A (en) * 2021-03-22 2021-07-30 维沃移动通信(杭州)有限公司 Information display method and device and electronic equipment
CN113194024B (en) * 2021-03-22 2023-04-18 维沃移动通信(杭州)有限公司 Information display method and device and electronic equipment
CN113207025A (en) * 2021-04-30 2021-08-03 北京字跳网络技术有限公司 Video processing method and device, electronic equipment and storage medium
CN113207025B (en) * 2021-04-30 2023-03-28 北京字跳网络技术有限公司 Video processing method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN112425144B (en) 2021-11-30
CN112425144A (en) 2021-02-26

Similar Documents

Publication Publication Date Title
JP6811758B2 (en) Voice interaction methods, devices, devices and storage media
CN106024014B (en) A kind of phonetics transfer method, device and mobile terminal
JP6462654B2 (en) An intention engine for improving responsiveness in interactive telecommunications
KR101826329B1 (en) Method, device and system for determining crank phone number
US10080111B2 (en) Techniques for communication using audio stickers
US9111538B2 (en) Genius button secondary commands
US8995625B2 (en) Unified interface and routing module for handling audio input
WO2016134630A1 (en) Method and device for recognizing malicious call
CN108491147A (en) A kind of man-machine interaction method and mobile terminal based on virtual portrait
US20100246784A1 (en) Conversation support
US20060221935A1 (en) Method and apparatus for representing communication attributes
JP2015515643A (en) Instant communication speech recognition method and terminal
WO2016115716A1 (en) Voice playing method and voice playing device
WO2017181615A1 (en) Method and device for processing unfamiliar incoming call, and mobile terminal
CN110945467B (en) Disturbance-free method and terminal
WO2020051881A1 (en) Information prompt method and related product
CN112394901A (en) Audio output mode adjusting method and device and electronic equipment
WO2020063451A1 (en) Call voicemail messaging method, terminal, and device having storage function
CN108228620A (en) A kind of Word library updating method and device
KR101643808B1 (en) Method and system of providing voice service using interoperation between application and server
CN108427549A (en) Sound processing method, device, storage medium and the terminal of notification message
CN108809894B (en) Method and terminal for processing network telephone
CN112988956A (en) Method and device for automatically generating conversation and method and device for detecting information recommendation effect
WO2022247825A1 (en) Information broadcasting method and electronic device
CN110741619B (en) Method and terminal for displaying remark information

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: 18933044

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: 18933044

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 06/08/2021)

122 Ep: pct application non-entry in european phase

Ref document number: 18933044

Country of ref document: EP

Kind code of ref document: A1