HK1242871A - Message sending method and related product - Google Patents
Message sending method and related product Download PDFInfo
- Publication number
- HK1242871A HK1242871A HK18102192.2A HK18102192A HK1242871A HK 1242871 A HK1242871 A HK 1242871A HK 18102192 A HK18102192 A HK 18102192A HK 1242871 A HK1242871 A HK 1242871A
- Authority
- HK
- Hong Kong
- Prior art keywords
- message
- english
- application
- module
- mobile terminal
- Prior art date
Links
Description
Technical Field
The invention relates to the technical field of mobile terminals, in particular to a message sending method and a related product.
Background
Applications installed on the smart phone are used for people to eat and wear and help people to feel happy, and among the applications, the applications include chat type applications such as WeChat applications and translation type applications such as Internet access dictionary applications.
At present, chat type applications of smart phones generally only support functions in English translation, such as WeChat, for chat applications which do not support the functions of Chinese translation and English translation, users need to go back to the chat applications for English entry after translating through other applications, the operation process is very complicated, and the efficiency is low.
Disclosure of Invention
The embodiment of the invention provides a message sending method and a related product, which can improve the convenience of controlling chat application by a mobile terminal and the message processing efficiency.
In a first aspect, an embodiment of the present invention provides a mobile terminal, including a processor and an artificial intelligence AI module, where the processor is connected to the AI module, where,
the AI module is used for informing the processor of running a second application in the background when detecting that the number of English words in a message display window of a first chat interface of a first application is greater than a preset number threshold;
the processor is configured to run the second application in a background;
the AI module is further configured to translate the chinese message into an english message through a second application running in the background when detecting the chinese message in the message entry window of the first chat interface;
the AI module is further configured to send the english message to a server when detecting a user operation confirming sending of the english message.
In a second aspect, an embodiment of the present invention provides a message sending method, which is applied to a mobile terminal including a processor and an artificial intelligence AI module, where the method includes:
the mobile terminal controls the AI module to inform the processor of running a second application in the background when detecting that the number of English words in a message display window of a first chat interface of a first application is greater than a preset number threshold;
the mobile terminal controls the processor background to run the second application;
the mobile terminal controls the AI module to translate the Chinese message into an English message through a second application running in the background when the Chinese message of the message entry window of the first chat interface is detected;
and the mobile terminal controls the AI module to send the English message to a server when detecting the user operation of confirming the sending of the English message.
In a third aspect, an embodiment of the present invention provides a mobile terminal, where the mobile terminal has a function of implementing a behavior of the mobile terminal in the above method design. The above functions may be implemented by hardware, or may be implemented by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the functions described above. In one possible design, the mobile terminal includes a processor and an artificial intelligence AI module, which are configured to support the mobile terminal to perform corresponding functions in the above method. Further, the mobile terminal may further include a communication interface for supporting communication between the mobile terminal and other devices. Further, the mobile terminal may further include a memory for coupling with the processor and the AI module, which stores program instructions and data necessary for the terminal.
In a fourth aspect, an embodiment of the present invention provides a mobile terminal, including a processor, an artificial intelligence AI module, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor and the AI module, and the programs include instructions for executing steps of the method according to any one of the second aspects of the present invention.
In a fifth aspect, the present invention provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program enables a computer to perform some or all of the steps described in any one of the methods in the second aspect of the present invention, and the computer includes a mobile terminal.
In a sixth aspect, the present invention 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 perform some or all of the steps described in any one of the methods according to the second aspect of the embodiments of the present invention. The computer program product may be a software installation package, the computer comprising a mobile terminal.
It can be seen that, in the embodiment of the present invention, when detecting that the number of english words in the message display window of the first chat interface of the first application is greater than the preset number threshold, the mobile terminal first runs the second application in the background, and then, when detecting the chinese message in the message entry window of the first chat interface, translates the chinese message into an english message through the second application running in the background, and finally, when detecting the user operation confirming sending of the english message, sends the english message to the server. The second application running in the background can directly translate the Chinese message of the message entry window into the English message, so that the mobile terminal can conveniently send the English message to the server as chat information to realize English message chat without long operations such as exiting the current chat interface, starting the translation application to obtain a translation result, returning the chat interface, entering the translation result and the like, and the convenience of the mobile terminal in controlling the application and the message processing efficiency are improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention;
fig. 2A is a flowchart illustrating a message sending method according to an embodiment of the present invention;
FIG. 2B is an exemplary diagram of a chat interface provided by embodiments of the invention;
fig. 3 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention;
fig. 4 is a block diagram illustrating functional units of a mobile terminal according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of another mobile terminal disclosed in the embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," and the like in the description and claims of the present invention and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The Mobile terminal according to the embodiment of the present invention may include various handheld devices, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem, and various forms of User Equipment (UE), Mobile Stations (MS), terminal devices (terminal device), and the like, which have wireless communication functions. For convenience of description, the above-mentioned devices are collectively referred to as a mobile terminal.
The processor described in the embodiment of the present invention may be an application processor, the AI module may be in a specific form of hardware and/or software, and when the AI module includes a hardware form, the application processor and the AI module may be in an integrated configuration or a separate configuration, which is not limited herein.
When the AI module is integrated with the application processor, if the application processor is a single-core processor, the AI module may be an intelligent micro-processing circuit in the application processor, and if the application processor is a multi-core processor, the AI module may be a single intelligent microprocessor core in the multi-core processor or an intelligent micro-processing circuit in a certain microprocessor core.
When the AI module is integrated and separately configured from the application processor, the AI module may be an intelligent unprocessed circuit in any one of the coprocessors (such as a baseband processor, a DSP, a power management chip, and the like) except for the application processor in the architecture of the application processor platform, or may be a newly configured intelligent microprocessor except for the application processor in the architecture of the application processor platform, or may be a newly configured intelligent processing platform independent of the application processor platform, and the intelligent processing platform at least includes a dedicated intelligent processor, and is in communication connection with the application processor platform, and optionally, the intelligent processing platform may also be in direct communication connection with a memory, a peripheral, and the like.
Embodiments of the present invention will be described below with reference to the accompanying drawings.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a mobile terminal 100 according to an embodiment of the present invention, where the mobile terminal 100 includes: a processor 110, an artificial intelligence AI module 120, the processor 110 being connected to the AI module 130 through a bus 130, wherein,
the AI module 120 is configured to notify the processor 110 to run a second application in the background when detecting that the number of the english vocabulary in the message display window of the first chat interface of the first application is greater than a preset number threshold.
The processor 110 is configured to run the second application in a background.
The AI module 120 is further configured to translate the chinese message into an english message through the second application running in the background when detecting the chinese message in the message entry window of the first chat interface.
The AI module 120 is further configured to send the english message to a server when detecting a user operation confirming sending of the english message.
It can be seen that, in the embodiment of the present invention, when detecting that the number of english words in the message display window of the first chat interface of the first application is greater than the preset number threshold, the mobile terminal first runs the second application in the background, and then, when detecting the chinese message in the message entry window of the first chat interface, translates the chinese message into an english message through the second application running in the background, and finally, when detecting the user operation confirming sending of the english message, sends the english message to the server. The second application running in the background can directly translate the Chinese message of the message entry window into the English message, so that the mobile terminal can conveniently send the English message to the server as chat information to realize English message chat without long operations such as exiting the current chat interface, starting the translation application to obtain a translation result, returning the chat interface, entering the translation result and the like, and the convenience of the mobile terminal in controlling the application and the message processing efficiency are improved.
In one possible example, in terms of the translation of the chinese message into an english message by the second application, the AI module 130 is specifically configured to: obtaining an English message obtained by translating the Chinese message by a second application running in the background; and the message input window is used for switching to display the Chinese message into the English message.
As can be seen, in this example, since the mobile terminal can directly obtain the english message obtained by translating the chinese message by the second application running in the background through the AI module, and display the english message on the message entry window of the current chat interface, it is not necessary to switch the current chat interface to the translation function interface of the second application, which is beneficial to improving the convenience and efficiency of the mobile terminal in controlling the first application to implement the chinese-to-english translation function.
In this possible example, in terms of obtaining the english message obtained by translating the chinese message by the second application running in the background, the AI module is specifically configured to: and the background calls the second application to translate the Chinese message into an English message and acquire the English message.
As can be seen, in this example, since the mobile terminal calls the second application to translate the chinese message into the english message through the AI module background, the translation function can be realized without active operation of the user, and for the user, as long as the user inputs chinese characters in the message entry window, the mobile terminal can intelligently and automatically translate the chinese characters into corresponding english, which is beneficial to improving the intelligence of the mobile terminal in controlling the application.
In this possible example, in terms of the background invoking the second application to translate the chinese message into an english message, the AI module is specifically configured to: when a first selection operation aiming at the Chinese message is detected, popping up a function button navigation bar containing a Chinese-English translation function button; and the background is used for calling the second application to translate the Chinese message into an English message when a second selection operation aiming at the Chinese-English translation function button is detected.
Therefore, in this example, since the mobile terminal gradually confirms the intention of the user to translate the chinese message through two times of user interaction operations, the occurrence of the situation that the mobile terminal performs incorrect translation without the need of translating the chinese message by the user is avoided, which is beneficial to improving the accuracy of controlling the translation function of the first application by the mobile terminal.
In one possible example, before detecting that the number of english words in the message display window of the first chat interface of the first application is greater than the preset number threshold, the AI module is further configured to obtain the number of english words in the message display window when detecting that the first contact corresponding to the first chat interface is a contact in a preset contact set.
As can be seen, in this example, when the mobile terminal detects that the first contact corresponding to the first chat interface is a contact in the preset contact set through the AI module, the operation of obtaining the number of english words in the message display window is triggered, so that it is avoided that extra processing resources are consumed for providing a translation function for the chat interface of the contact in the non-contact set, and it is beneficial to improve the resource utilization rate of the mobile terminal for controlling the first application.
In a possible example, after sending the english message to the server, the AI module is further configured to not perform any operation when detecting that the second contact corresponding to the second chat interface is not a contact in the preset contact set.
Therefore, in this example, the mobile terminal does not respond to the operation of obtaining the number of english words for the second chat interface of the second contact in the non-contact set, so that processing resources are more reasonably allocated, and the resource utilization rate of the mobile terminal for controlling the first application is improved.
In one possible example, the AI module is further configured to display the english message in the message display window when detecting a user operation confirming sending of the english message.
Referring to fig. 2A, in accordance with the foregoing embodiment of fig. 1, fig. 2A is a schematic flowchart of a message sending method, which is applied to a mobile terminal including a processor and an artificial intelligence AI module, where the processor is connected to the AI module, and as shown in the figure, the message sending method includes:
and S201, the mobile terminal controls the AI module to inform the processor to operate a second application in the background when detecting that the number of English words in the message display window of the first chat interface of the first application is greater than a preset number threshold.
The first application is a chat type application, such as WeChat, QQ, and the like.
And S202, the mobile terminal controls the processor to run the second application in the background.
The second application is a translation type application, such as a translation dictionary.
And S203, the mobile terminal controls the AI module to translate the Chinese message into an English message through the second application running in the background when the Chinese message of the message entry window of the first chat interface is detected.
The Chinese message at least comprises one Chinese word and the English message at least comprises one English word.
As shown in fig. 2B, the first chat interface may include a message display window and a message entry window, and may further include a contact display window, and when the user enters the chinese information "Hello" through the message entry window, the mobile terminal controls the AI module to translate the "Hello" into the english message "Hello" through the second application running in the background.
And S204, the mobile terminal controls the AI module to send the English message to a server when detecting the user operation of confirming the sending of the English message.
The server is used for forwarding the English message to the user terminals of one or more contacts associated with the first chat interface, so that chat message interaction is realized.
And S205, the server receives the English message and sends the English message to the user terminals of one or more contacts associated with the first chat interface.
It can be seen that, in the embodiment of the present invention, when detecting that the number of english words in the message display window of the first chat interface of the first application is greater than the preset number threshold, the mobile terminal first runs the second application in the background, and then, when detecting the chinese message in the message entry window of the first chat interface, translates the chinese message into an english message through the second application running in the background, and finally, when detecting the user operation confirming sending of the english message, sends the english message to the server. The second application running in the background can directly translate the Chinese message of the message entry window into the English message, so that the mobile terminal can conveniently send the English message to the server as chat information to realize English message chat without long operations such as exiting the current chat interface, starting the translation application to obtain a translation result, returning the chat interface, entering the translation result and the like, and the convenience of the mobile terminal in controlling the application and the message processing efficiency are improved.
In one possible example, the mobile terminal controls the AI module to translate the chinese message into an english message through the second application, including:
the mobile terminal controls the AI module to acquire an English message obtained by translating the Chinese message by a second application running in the background;
and the mobile terminal controls the AI module to switch the display of the Chinese message in the message entry window into the display of the English message.
As can be seen, in this example, since the AI module controlled by the mobile terminal can directly obtain the english message obtained by translating the chinese message by the second application running in the background, and display the english message on the message entry window of the current chat interface, it is not necessary to switch the current chat interface to the translation function interface of the second application, which is beneficial to improving the convenience and efficiency of controlling the first application to implement the chinese-to-english translation function by the mobile terminal.
In this possible example, the controlling, by the mobile terminal, the AI module to obtain an english message obtained by translating the chinese message by the second application running in the background includes: and the mobile terminal controls the AI module background to call the second application to translate the Chinese message into an English message and acquire the English message.
As can be seen, in this example, since the mobile terminal controls the AI module background to call the second application to translate the chinese message into the english message, the translation function can be realized without active operation of the user, and for the user, as long as the user inputs chinese in the message entry window, the mobile terminal can intelligently and automatically translate the chinese into corresponding english, which is beneficial to improving the intelligence of the mobile terminal in controlling the application.
In this possible example, the controlling, by the mobile terminal, the AI module background to invoke the second application to translate the chinese message into an english message includes:
the mobile terminal controls the AI module to pop up a function button navigation bar containing a Chinese-English translation function button when a first selection operation aiming at the Chinese message is detected;
and the mobile terminal controls the AI module to call the second application to translate the Chinese message into an English message in a background when detecting a second selection operation aiming at the Chinese-English translation function button.
Therefore, in this example, since the mobile terminal gradually confirms the intention of the user to translate the chinese message through two times of user interaction operations, the occurrence of the situation that the mobile terminal performs incorrect translation without the need of translating the chinese message by the user is avoided, which is beneficial to improving the accuracy of controlling the translation function of the first application by the mobile terminal.
In one possible example, before the mobile terminal controls the AI module to detect that the number of english words in the message display window of the first chat interface of the first application is greater than a preset number threshold, the method further includes:
and the mobile terminal controls the AI module to acquire the number of English words in the message display window when detecting that the first contact corresponding to the first chat interface is a contact in a preset contact set.
As can be seen, in this example, the AI module controlled by the mobile terminal triggers the operation of obtaining the number of english words in the message display window only when detecting that the first contact corresponding to the first chat interface is a contact in the preset contact set, so as to avoid that the chat interface of the contact in the non-contact set also consumes additional processing resources to provide a translation function, which is beneficial to improving the resource utilization rate of the mobile terminal for controlling the first application.
In one possible example, when the mobile terminal controls the AI module to detect a user operation confirming sending of the english message, the method further includes:
and the mobile terminal controls the AI module to display the English message on the message display window.
Referring to fig. 3, consistent with the embodiment shown in fig. 2A, fig. 3 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention, and as shown in the drawing, the mobile terminal includes a processor, an artificial intelligence AI module, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the programs include instructions for performing the following steps;
controlling the AI module to inform the processor background to run a second application when detecting that the number of English words in a message display window of a first chat interface of a first application is greater than a preset number threshold;
controlling the processor to run the second application in a background;
controlling the AI module to translate the Chinese message into an English message through a second application running in the background when detecting the Chinese message in the message entry window of the first chat interface;
and controlling the AI module to send the English message to a server when detecting the user operation of confirming the sending of the English message.
It can be seen that, in the embodiment of the present invention, when detecting that the number of english words in the message display window of the first chat interface of the first application is greater than the preset number threshold, the mobile terminal first runs the second application in the background, and then, when detecting the chinese message in the message entry window of the first chat interface, translates the chinese message into an english message through the second application running in the background, and finally, when detecting the user operation confirming sending of the english message, sends the english message to the server. The second application running in the background can directly translate the Chinese message of the message entry window into the English message, so that the mobile terminal can conveniently send the English message to the server as chat information to realize English message chat without long operations such as exiting the current chat interface, starting the translation application to obtain a translation result, returning the chat interface, entering the translation result and the like, and the convenience of the mobile terminal in controlling the application and the message processing efficiency are improved.
In one possible example, in terms of controlling the AI module to translate the chinese message into an english message through the second application, the instructions in the program are specifically configured to perform the following steps: controlling the AI module to acquire an English message obtained by translating the Chinese message by a second application running in the background; and controlling the AI module to switch the display of the Chinese message in the message entry window to the display of the English message.
In one possible example, in terms of the english message obtained by controlling the AI module to obtain the chinese message translated by the second application running in the background, the instructions in the program are specifically configured to perform the following steps: and controlling the AI module background to call the second application to translate the Chinese message into an English message and acquire the English message.
In one possible example, in terms of the controlling the AI module to call the second application in the background to translate the chinese message into an english message, the instructions in the program are specifically configured to perform the following steps: controlling the AI module to pop up a function button navigation bar containing a Chinese-English translation function button when detecting a first selection operation aiming at the Chinese message; and controlling the AI module to call the second application to translate the Chinese message into an English message in a background when detecting a second selection operation aiming at the Chinese-English translation function button.
In one possible example, the program further includes instructions for performing the steps of: before the AI module is controlled to detect that the number of the English words in the message display window of the first chat interface of the first application is larger than a preset number threshold, the AI module is controlled to obtain the number of the English words in the message display window when the first contact corresponding to the first chat interface is detected as a contact in a preset contact set.
The above description has introduced the solution of the embodiment of the present invention mainly from the perspective of the method-side implementation process. It is understood that the mobile terminal includes hardware structures and/or software modules for performing the respective functions in order to implement the above-described functions. Those of skill in the art will readily appreciate that the present invention can be implemented in hardware or a combination of hardware and computer software, with the exemplary elements and algorithm steps described in connection with the embodiments disclosed herein. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The embodiment of the present invention may perform the division of the functional units for the mobile terminal according to the method example described above, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. It should be noted that the division of the unit in the embodiment of the present invention is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
In case of integrated units, fig. 4 shows a block diagram of a possible functional unit composition of the mobile terminal involved in the above embodiments. The mobile terminal 400 includes: a first processing unit 402, a second processing unit 403 and a communication unit 404. The first processing unit 402 and the second processing unit 403 are used for controlling and managing the actions of the mobile terminal, for example, the processing unit 402 is used for supporting the mobile terminal to execute step 201 and 204 in fig. 2A and/or other processes for the technology described herein. The communication unit 404 is used to support communication between the mobile terminal and other devices, or between the first processing unit 402 or the second processing unit 403 and peripheral devices (such as a camera device, a fingerprint recognition device, and the like) of the mobile terminal. The mobile terminal may further include a storage unit 401 for storing program codes and data of the mobile terminal.
The first processing unit 402 is configured to notify the second processing unit 403 to run a second application in the background when detecting that the number of english words in the message display window of the first chat interface of the first application is greater than a preset number threshold;
the second processing unit 403 is configured to run the second application in a background;
the first processing unit 402 is further configured to, when detecting a chinese message in a message entry window of the first chat interface, translate the chinese message into an english message through the second application running in the background; and the English message sending module is used for sending the English message to the server when detecting the user operation for confirming the sending of the English message.
In one possible example, in terms of the translation of the chinese message into an english message by the second application, the first processing unit 402 is specifically configured to: obtaining an English message obtained by translating the Chinese message by a second application running in the background; and the message input window is used for switching to display the Chinese message into the English message.
In a possible example, in terms of obtaining an english message obtained by translating the chinese message by the second application running in the background, the first processing unit 402 is specifically configured to: and the background calls the second application to translate the Chinese message into an English message and acquire the English message.
In a possible example, in terms of invoking the second application in the background to translate the chinese message into an english message, the first processing unit 402 is specifically configured to: when a first selection operation aiming at the Chinese message is detected, popping up a function button navigation bar containing a Chinese-English translation function button; and when a second selection operation aiming at the Chinese-English translation function button is detected, the background calls the second application to translate the Chinese message into an English message.
In a possible example, before detecting that the number of english words in the message display window of the first chat interface of the first application is greater than the preset number threshold, the first processing unit 402 is further configured to obtain the number of english words in the message display window when detecting that the first contact corresponding to the first chat interface is a contact in the preset contact set.
The first Processing Unit 402 may be an artificial intelligence AI module, the second Processing Unit 403 may be a Processor or a controller, and the AI module and the Processor may be, for example, a Central Processing Unit (CPU), a general-purpose Processor, a Digital Signal Processor (DSP), an Application-Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, transistor logic device, hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. The processor and AI module may also be a combination that performs a computing function, such as a combination comprising one or more microprocessors, a combination of DSPs and microprocessors, and the like. The communication unit 404 may be a transceiver, a transceiver circuit, an internal communication interface (a communication port between a processor and a peripheral), and the like, and the storage unit 401 may be a memory.
The embodiment of the invention also provides another mobile terminal, which comprises a general processor, wherein the general processor is used for:
when detecting that the number of English words in a message display window of a first chat interface of a first application is larger than a preset number threshold, running a second application in a background;
when the Chinese message of the message entry window of the first chat interface is detected, the Chinese message is translated into an English message through a second application running in the background;
and when the user operation for confirming the sending of the English message is detected, sending the English message to a server.
Wherein, the general processor is a processing chip with data processing capability.
In the embodiment of the invention, the second application running in the background can directly translate the Chinese message of the message entry window into the English message, so that the mobile terminal can conveniently send the English message as the chat message to the server to realize the chat of the English message without long operations such as exiting the current chat interface, starting the translation application to obtain the translation result, returning the chat interface, entering the translation result and the like, and the convenience for controlling the application by the mobile terminal and the message processing efficiency are improved.
In one possible example, in said translating the chinese message to an english message by the second application, the general purpose processor is specifically configured to: obtaining an English message obtained by translating the Chinese message by the second application running in the background; and the message input window is used for switching to display the Chinese message and the English message.
In one possible example, in terms of obtaining an english message obtained by translating the chinese message by the second application running in the background, the general-purpose processor is specifically configured to: and the background calls the second application to translate the Chinese message into an English message, and the English message is obtained.
In one possible example, in terms of the background invoking the second application to translate the chinese message to an english message, the general purpose processor is specifically configured to: when a first selection operation aiming at the Chinese message is detected, popping up a function button navigation bar containing a Chinese-English translation function button; and the background is used for calling the second application to translate the Chinese message into an English message when a second selection operation aiming at the Chinese-English translation function button is detected.
In one possible example, before detecting that the number of english words in the message display window of the first chat interface of the first application is greater than the preset number threshold, the general processor is further configured to obtain the number of english words in the message display window when detecting that the first contact corresponding to the first chat interface is a contact in a preset contact set.
In one possible example, the general purpose processor includes an application processor and an AI module integrated with the application processor arrangement, the AI module to: any steps performed as used by the general purpose processor are performed.
In one possible example, the general purpose processor includes an application processor and an AI module, the AI module being provided independently of the processor, the AI module being configured to: any steps performed as used by the general purpose processor are performed.
As shown in fig. 5, for convenience of description, only the parts related to the embodiment of the present invention are shown, and details of the specific technology are not disclosed, please refer to the method part in the embodiment of the present invention. The mobile terminal may be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), a vehicle-mounted computer, and the like, taking the mobile terminal as the mobile phone as an example:
fig. 5 is a block diagram illustrating a partial structure of a mobile phone related to a mobile terminal according to an embodiment of the present invention. Referring to fig. 5, the handset includes: radio Frequency (RF) circuitry 910, memory 920, input unit 930, display unit 940, sensor 950, audio circuitry 960, Wireless Fidelity (WiFi) module 970, processor complex 980, and power supply 990. Those skilled in the art will appreciate that the handset configuration shown in fig. 5 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile phone in detail with reference to fig. 5:
the processor set 980 is a control center of the mobile phone, and includes a processor 981 and an artificial intelligence AI module 982, the processor 981 is connected to the AI module 982, the processor 981 and the AI module 982 are connected to various parts of the whole mobile phone by using various interfaces and lines, and the whole mobile phone is monitored by executing or executing software programs and/or modules stored in the memory 920 and calling data stored in the memory 920 to execute various functions and process data of the mobile phone. In particular for performing the following steps:
the AI module 982 is configured to notify the processor 981 to run a second application in the background when detecting that the number of english words in the message display window of the first chat interface of the first application is greater than a preset number threshold; the processor 981 is configured to run the second application in the background; the AI module 982 is further configured to, when detecting a chinese message in the message entry window of the first chat interface, translate the chinese message into an english message through the second application running in the background; the AI module 982 is further configured to send the english message to the server when detecting a user operation confirming sending the english message.
Optionally, the processor 981 and AI module 982 may include one or more processing units; preferably, the processor 981 may integrate an application processor, which primarily handles operating systems, user interfaces, application programs, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 981.
RF circuitry 910 may be used for the reception and transmission of information. In general, the RF circuit 910 includes, but is not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuit 910 may also communicate with networks and other devices via wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to Global System for mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), and the like.
The memory 920 may be used to store software programs and modules, and the processor 981 and the AI module 982 perform various functional applications and data processing of the cellular phone by operating the software programs and modules stored in the memory 920. The memory 920 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the mobile phone (such as use parameters of an application, etc.), and the like. Further, the memory 920 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 930 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone. In particular, the input unit 930 may include a fingerprint sensor 931 and other input devices 932. And a fingerprint sensor 931 which may collect fingerprint data of the user thereon. The input unit 930 may include other input devices 932 in addition to the fingerprint sensor 931. In particular, other input devices 932 may include, but are not limited to, one or more of a touch screen, physical keys, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 940 may be used to display information input by the user or information provided to the user and various menus of the mobile phone. The display unit 940 may include a display screen 941, and optionally, the display screen 941 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Although in fig. 5, the fingerprint sensor 931 and the display screen 941 are shown as two separate components to implement the input and output functions of the mobile phone, in some embodiments, the fingerprint sensor 931 and the display screen 941 may be integrated to implement the input and output functions of the mobile phone.
The handset may also include at least one sensor 950, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display screen 941 according to the brightness of ambient light, and the proximity sensor may turn off the display screen 941 and/or the backlight when the mobile phone is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
Audio circuitry 960, speaker 961, microphone 962 may provide an audio interface between a user and a cell phone. The audio circuit 960 may transmit the electrical signal converted from the received audio data to the speaker 961, and the audio signal is converted by the speaker 961 to be played; on the other hand, the microphone 962 converts the collected sound signal into an electrical signal, converts the electrical signal into audio data after being received by the audio circuit 960, and processes the audio data by the audio data playing processor 981, and then sends the audio data to, for example, another mobile phone through the RF circuit 910, or plays the audio data to the memory 920 for further processing.
WiFi belongs to short-distance wireless transmission technology, and the mobile phone can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 970, and provides wireless broadband Internet access for the user. Although fig. 5 shows the WiFi module 970, it is understood that it does not belong to the essential constitution of the handset, and can be omitted entirely as needed within the scope not changing the essence of the invention.
The handset also includes a power supply 990 (e.g., a battery) for powering the various components, which may preferably be logically connected to the processor complex 980 via a power management system, such that the power management system may manage charging, discharging, and power consumption.
Although not shown, the mobile phone may further include a camera, a bluetooth module, etc., which are not described herein.
In the embodiment shown in fig. 2A, the method flow of each step may be implemented based on the structure of the mobile phone.
In the embodiment shown in fig. 4, the functions of the units can be implemented based on the structure of the mobile phone.
An embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute part or all of the steps of any one of the methods described in the above method embodiments, and the computer includes a mobile terminal.
Embodiments of the present invention also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods as described in the above method embodiments. The computer program product may be a software installation package, the computer comprising a mobile terminal.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the above-described division of the units is only one type of division of logical functions, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a memory and includes several instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The above embodiments of the present invention are described in detail, and the principle and the implementation of the present invention are explained by applying specific embodiments, and the above description of the embodiments is only used to help understanding the method of the present invention and the core idea thereof; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.
Claims (18)
1. A mobile terminal, comprising a processor, an Artificial Intelligence (AI) module, the processor being coupled to the AI module, wherein,
the AI module is used for informing the processor of running a second application in the background when detecting that the number of English words in a message display window of a first chat interface of a first application is greater than a preset number threshold;
the processor is used for running the second application in a background;
the AI module is further used for translating the Chinese message into an English message through a second application running in the background when the Chinese message of the message entry window of the first chat interface is detected;
and the AI module is also used for sending the English message to a server when the user operation for confirming the sending of the English message is detected.
2. The mobile terminal of claim 1, wherein in the translating the chinese message into an english message by the second application, the AI module is specifically configured to: obtaining an English message obtained by translating the Chinese message by the second application running in the background; and the message input window is used for switching to display the Chinese message and the English message.
3. The mobile terminal of claim 2, wherein in terms of obtaining the english message obtained by translating the chinese message by the second application running in the background, the AI module is specifically configured to: and the background calls the second application to translate the Chinese message into an English message, and the English message is obtained.
4. The mobile terminal of claim 3, wherein in the aspect that the background calls the second application to translate the chinese message into an english message, the AI module is specifically configured to: when a first selection operation aiming at the Chinese message is detected, popping up a function button navigation bar containing a Chinese-English translation function button; and the background is used for calling the second application to translate the Chinese message into an English message when a second selection operation aiming at the Chinese-English translation function button is detected.
5. The mobile terminal of any one of claims 1 to 4, wherein the AI module, before detecting that the number of English words in the message display window of the first chat interface of the first application is greater than a preset number threshold, is further configured to, when detecting that the first contact corresponding to the first chat interface is a contact in a preset contact set, obtain the number of English words in the message display window.
6. A message sending method is applied to a mobile terminal comprising a processor and an Artificial Intelligence (AI) module, and comprises the following steps:
the mobile terminal controls the AI module to inform the processor of running a second application in a background when detecting that the number of English words in a message display window of a first chat interface of a first application is greater than a preset number threshold;
the mobile terminal controls the processor to run the second application in the background;
the mobile terminal controls the AI module to translate the Chinese message into an English message through a second application running in the background when the Chinese message of the message entry window of the first chat interface is detected;
and the mobile terminal controls the AI module to send the English message to a server when detecting the user operation for confirming the sending of the English message.
7. The method according to claim 6, wherein the mobile terminal controls the AI module to translate the chinese message into an english message via the second application, comprising:
the mobile terminal controls the AI module to obtain an English message obtained by translating the Chinese message by a second application running in the background;
and the mobile terminal controls the AI module to switch the display of the Chinese message in the message entry window into the display of the English message.
8. The method according to claim 7, wherein the mobile terminal controls the AI module to obtain the english message obtained by the second application running in the background translating the chinese message, including:
and the mobile terminal controls the AI module background to call the second application to translate the Chinese message into an English message and acquire the English message.
9. The method of claim 8, wherein the mobile terminal controlling the AI module to background call the second application to translate the chinese message into an english message comprises:
the mobile terminal controls the AI module to pop up a function button navigation bar containing a Chinese-English translation function button when a first selection operation aiming at the Chinese message is detected;
and the mobile terminal controls the AI module to call the second application to translate the Chinese message into an English message in a background when detecting a second selection operation aiming at the Chinese-English translation function button.
10. The method according to any one of claims 6 to 9, wherein the mobile terminal controls the AI module to, before detecting that the number of english words in the message display window of the first chat interface of the first application is greater than the preset number threshold, further:
and the mobile terminal controls the AI module to acquire the number of English words in the message display window when detecting that a first contact corresponding to the first chat interface is a contact in a preset contact set.
11. A mobile terminal, characterized in that it comprises a first processing unit, a second processing unit and a communication unit,
the first processing unit is used for informing the second processing unit of running a second application in a background when detecting that the number of English words in a message display window of a first chat interface of a first application is greater than a preset number threshold;
the second processing unit is used for running the second application in a background;
the first processing unit is further configured to, when a chinese message of a message entry window of the first chat interface is detected, translate the chinese message into an english message through the second application running in the background; and the English message is sent to the server when the user operation for confirming the sending of the English message is detected.
12. The mobile terminal of claim 11, wherein the first processing unit, before detecting that the number of english words in the message display window of the first chat interface of the first application is greater than a preset number threshold, is further configured to, when detecting that the first contact corresponding to the first chat interface is a contact in a preset contact set, obtain the number of english words in the message display window.
13. A mobile terminal, comprising a general purpose processor configured to:
when detecting that the number of English words in a message display window of a first chat interface of a first application is larger than a preset number threshold, running a second application in a background;
when the Chinese message of the message entry window of the first chat interface is detected, the Chinese message is translated into an English message through a second application running in the background;
and when the user operation for confirming the sending of the English message is detected, sending the English message to a server.
14. The mobile terminal according to claim 13, wherein in said translating the chinese message to an english message by the second application, the general purpose processor is specifically configured to: obtaining an English message obtained by translating the Chinese message by the second application running in the background; and the message input window is used for switching to display the Chinese message and the English message.
15. The mobile terminal according to claim 13 or 14, wherein the general-purpose processor comprises an application processor and an AI module, the AI module being integrated in the application processor arrangement, the AI module being configured to: any steps performed as used by the general purpose processor are performed.
16. The mobile terminal according to claim 13 or 14, characterized in that the general-purpose processor comprises an application processor and an AI module, the AI module being arranged independently of the processor, the AI module being configured to: any steps performed as used by the general purpose processor are performed.
17. A mobile terminal comprising a processor, an artificial intelligence, AI, module, 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 and the AI module, the programs comprising instructions for performing the steps in any of the methods of claims 6-10.
18. A computer-readable storage medium, characterized in that it stores a computer program for electronic data exchange, wherein the computer program causes a computer to perform the method according to any one of claims 6-10, the computer comprising a mobile terminal.
Publications (2)
| Publication Number | Publication Date |
|---|---|
| HK1242871A true HK1242871A (en) | 2018-06-29 |
| HK1242871A1 HK1242871A1 (en) | 2018-06-29 |
Family
ID=
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111258407B (en) | Application function control method and related products | |
| CN104683456B (en) | Method for processing business, server and terminal | |
| CN107707768B (en) | Processing methods for running game applications and related products | |
| CN107071147B (en) | Parameter adjusting method and device | |
| CN106095489B (en) | A kind of application control method and mobile terminal | |
| CN106817540A (en) | A camera control method and device | |
| CN106792993A (en) | Channel scanning method and mobile terminal | |
| CN107277230A (en) | The voice broadcast method and Related product of message | |
| CN106155557A (en) | A virtual button display method and mobile terminal | |
| CN106358225B (en) | Network data processing method and device and mobile terminal | |
| CN106708633B (en) | Method for speeding up terminal WiFi workstation mode closing speed and mobile terminal | |
| CN107295163A (en) | Information processing method and related product | |
| US20180343335A1 (en) | Method For Sending Messages And Mobile Terminal | |
| CN107272991B (en) | Information display method and related product | |
| CN106815078B (en) | A memory control method and device | |
| CN106604361B (en) | WiFi scanning method and mobile terminal | |
| CN107205091A (en) | Call control method and related product | |
| CN107291453A (en) | Component display method and related product | |
| CN107291328A (en) | Interface display method and related product | |
| CN107659976B (en) | Network access method and related products | |
| CN106776041B (en) | Data processing method and device | |
| CN106775856B (en) | Mobile terminal working mode switching method and mobile terminal | |
| CN109831771B (en) | Bluetooth searching method and device, mobile terminal and storage medium | |
| HK1242871A1 (en) | Message sending method and related product | |
| HK1242871A (en) | Message sending method and related product |