Translation method, device, equipment and storage medium
By displaying the translation program interface and translation floating window in the control center of the terminal device, the translation function based on the translation floating window is provided, and the problems of low translation efficiency and high power consumption in the prior art are solved, and more efficient translation operations and lower power consumption are achieved.
Patent Information
- Application Number
- CN202110909590.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-09
- Publication Date
- 2025-02-28
- Estimated Expiration
- 2041-08-09
AI Technical Summary
Existing terminal devices are less efficient when translating, and users need to frequently switch different translation applications, resulting in cumbersome operations and increased power consumption.
The preset translation program interface is displayed in the control center operation interface of the terminal device, and in response to the user's trigger operation, the translation floating window is displayed on the screen, and the corresponding translation function is provided based on the preset translation function entrance in the translation floating window.
By setting the translation program interface as a global entrance, users can quickly open the translation floating window in any application scenario, quickly start the required translation functions, improve translation efficiency, reduce user operation complexity, and reduce the power consumption of terminal devices.
Smart Images

Figure CN113688639B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of terminal devices, and in particular to a translation method, apparatus, device and storage medium. Background Art
[0002] In recent years, with the advancement of science and technology and the continuous expansion of opening up to the outside world, cross-language communication and interaction have become more frequent, and users' demand for translation has become stronger. With the improvement of terminal device computing power and the gradual maturity of translation technology, terminal devices such as smartphones can already support a wide variety of translation applications, helping users complete text, voice, image and other translation tasks, eliminating the language gap.
[0003] As users use terminal devices more frequently for translation, users' demand for improving translation efficiency is also increasing. Therefore, how to improve the efficiency of translation by terminal devices has become one of the technical problems that need to be solved urgently. Summary of the invention
[0004] In order to overcome the problems existing in the related art, the embodiments of the present disclosure provide a translation method, apparatus, device and storage medium to solve the defects in the related art.
[0005] According to a first aspect of an embodiment of the present disclosure, a translation method is provided, the method comprising:
[0006] Displaying a preset translation program interface in an operation interface of a control center of a terminal device;
[0007] In response to detecting a trigger operation for the translation program interface, displaying a translation floating window on the screen of the terminal device;
[0008] Based on the translation function entry preset in the translation floating window, a translation function corresponding to the translation function entry is provided.
[0009] In one embodiment, the method further comprises:
[0010] In response to detecting an instruction for starting the control center, the operation of displaying a preset translation program interface in an operation interface of the control center of the terminal device is performed.
[0011] In one embodiment, providing a translation function corresponding to a translation function entry preset in the translation floating window includes:
[0012] In response to detecting a trigger operation for a first translation function entry preset in the translation pop-up window, a first translation function is provided in the translation pop-up window.
[0013] In one embodiment, providing a first translation function in the translation floating window includes:
[0014] Providing an input interface for information to be translated in the translation floating window;
[0015] In response to receiving the information to be translated based on the input interface, calling a preset translation program to translate the information to be translated to obtain a translation result;
[0016] The translation result is displayed in the translation floating window.
[0017] In one embodiment, the first translation function includes text translation;
[0018] The input interface for providing information to be translated in the translation floating window includes:
[0019] An input box for the text to be translated is displayed in the translation floating window, and a virtual keyboard pops up.
[0020] In one embodiment, the first translation function includes voice translation;
[0021] The input interface for providing information to be translated in the translation floating window includes:
[0022] Prompt information for prompting input of voice information to be translated is displayed in the translation floating window, and the prompt information includes at least one of preset text information and a sound receiving waveform pattern.
[0023] In one embodiment, providing a translation function corresponding to a translation function entry preset in the translation floating window includes:
[0024] In response to detecting a triggering operation for a second translation function entry preset in the translation floating window, triggering the translation floating window program to start a translation subroutine corresponding to the second translation function entry;
[0025] A second translation function is provided based on the translation subroutine.
[0026] In one embodiment, the second translation function includes at least one of the following:
[0027] AI subtitles, screen translation, photo translation and simultaneous interpretation.
[0028] According to a second aspect of an embodiment of the present disclosure, a translation device is provided, including:
[0029] A program interface display module, used to display a preset translation program interface in the operation interface of the control center of the terminal device;
[0030] A translation floating window display module, configured to display a translation floating window on the screen of the terminal device in response to detecting a trigger operation for the translation program interface;
[0031] The translation function providing module is used to provide a translation function corresponding to the translation function entry based on the translation function entry preset in the translation floating window.
[0032] In one embodiment, the program interface display module is further used to execute the operation of displaying a preset translation program interface in the operation interface of the control center of the terminal device in response to detecting an instruction for opening the control center.
[0033] In one embodiment, the translation function providing module includes:
[0034] The first function providing unit is configured to provide a first translation function in the translation floating window in response to detecting a triggering operation on a first translation function entry preset in the translation floating window.
[0035] In one embodiment, the first function providing unit is further configured to:
[0036] Providing an input interface for information to be translated in the translation floating window;
[0037] In response to receiving the information to be translated based on the input interface, calling a preset translation program to translate the information to be translated to obtain a translation result;
[0038] The translation result is displayed in the translation floating window.
[0039] In one embodiment, the first translation function includes text translation;
[0040] The first function providing unit is further used for:
[0041] An input box for the text to be translated is displayed in the translation floating window, and a virtual keyboard pops up.
[0042] In one embodiment, the first translation function includes voice translation;
[0043] The first function providing unit is further used for:
[0044] Prompt information for prompting input of voice information to be translated is displayed in the translation floating window, and the prompt information includes at least one of preset text information and a sound receiving waveform pattern.
[0045] In one embodiment, the translation function providing module includes: a second function providing unit;
[0046] The second function providing unit is used to:
[0047] In response to detecting a triggering operation for a second translation function entry preset in the translation floating window, triggering the translation floating window program to start a translation subroutine corresponding to the second translation function entry;
[0048] A second translation function is provided based on the translation subroutine.
[0049] In one embodiment, the second translation function includes at least one of the following:
[0050] AI subtitles, screen translation, photo translation and simultaneous interpretation.
[0051] According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, the device comprising:
[0052] a processor and a memory for storing a computer program;
[0053] Wherein, the processor is configured to implement, when executing the computer program:
[0054] Displaying a preset translation program interface in an operation interface of a control center of a terminal device;
[0055] In response to detecting a trigger operation for the translation program interface, displaying a translation floating window on the screen of the terminal device;
[0056] Based on the translation function entry preset in the translation floating window, a translation function corresponding to the translation function entry is provided.
[0057] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the following is implemented:
[0058] Displaying a preset translation program interface in an operation interface of a control center of a terminal device;
[0059] In response to detecting a trigger operation for the translation program interface, displaying a translation floating window on the screen of the terminal device;
[0060] Based on the translation function entry preset in the translation floating window, a translation function corresponding to the translation function entry is provided.
[0061] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:
[0062] The present disclosure displays a preset translation program interface in the operation interface of the control center of the terminal device, and in response to detecting a trigger operation for the translation program interface, displays a translation floating window on the screen of the terminal device, and then provides a translation function corresponding to the translation function entry based on the preset translation function entry in the translation floating window. The global entry of the translation function can be realized through the translation program interface set in the control center, so that the user can quickly open the translation floating window in any application scenario, and quickly start the required translation function through the translation floating window without frequently switching to other translation applications, thereby effectively improving translation efficiency and user experience. In addition, since the translation program interface set in the control center does not occupy screen space, and there is no need for the application to always survive in the background, the disturbance of the global entry of the translation function to the user can be reduced, and the power consumption of the terminal device can be reduced.
[0063] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0064] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0065] Figure 1A is a schematic diagram of a resident translation portal of a notification center according to an exemplary embodiment of the present disclosure;
[0066] Figure 1B is a schematic diagram showing a permanent translation button on a screen according to an exemplary embodiment of the present disclosure;
[0067] Figure 1C is a flowchart of a translation method according to an exemplary embodiment of the present disclosure;
[0068] Figure 1D is a schematic diagram of an AI translation portal of a control center according to an exemplary embodiment of the present disclosure;
[0069] Figure 1E is a schematic diagram of a translation floating window according to an exemplary embodiment of the present disclosure;
[0070] Figure 2A is a flowchart showing how to provide a first translation function in the translation floating window according to an exemplary embodiment of the present disclosure;
[0071] Figure 2B is a schematic diagram of an application scenario of text translation according to an exemplary embodiment of the present disclosure;
[0072] Figure 2Cis a schematic diagram of an application scenario of speech translation according to an exemplary embodiment of the present disclosure;
[0073] Figure 3A is a flowchart showing how to provide a translation function corresponding to a translation function entry based on a translation function entry preset in the translation floating window according to an exemplary embodiment of the present disclosure;
[0074] Figure 3B is a schematic diagram of an application scenario of providing a translation function corresponding to a translation function entry based on a translation function entry preset in the translation floating window according to an exemplary embodiment of the present disclosure;
[0075] Figure 4 is a block diagram of a translation device according to an exemplary embodiment of the present disclosure;
[0076] Figure 5 is a block diagram of another translation device according to an exemplary embodiment of the present disclosure;
[0077] Figure 6 It is a block diagram of an electronic device according to an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION
[0078] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0079] In recent years, with the advancement of science and technology and the continuous expansion of opening up to the outside world, cross-language communication and interaction have become more frequent, and users' demand for translation has become stronger. With the improvement of terminal device computing power and the gradual maturity of translation technology, terminal devices such as smartphones can already support a wide variety of translation applications, helping users complete text, voice, image and other translation tasks, eliminating the language gap.
[0080] As users use terminal devices for translation more frequently, their demand for improving translation efficiency is also increasing. In related technologies, the global entry of the translation function of terminal devices can be implemented based on the following two solutions:
[0081] (1) Permanent translation entry in the notification center; (2) Permanent translation button on the screen.
[0082] For example, Figure 1A is a schematic diagram of a resident translation portal of a notification center according to an exemplary embodiment of the present disclosure; Figure 1BFIG. 4 is a schematic diagram showing a permanent translation button on a screen according to an exemplary embodiment of the present disclosure.
[0083] like Figure 1A As shown in the figure, the solution for the permanent translation entrance in the notification center is to slide down the left side of the screen to open the notification center, and then display the permanent notification. When the user clicks on the notification, the corresponding translation function can be opened. Figure 1B As shown, the solution of the screen-resident floating translation button is to always display the floating button on the screen. When the user clicks the floating button, a series of translation functions can be displayed, so that the user can click a specific button based on actual needs to open the corresponding translation function.
[0084] However, the above solution of permanent translation entrance in notification center and permanent translation button on screen has the following problems:
[0085] Problem 1: Blocking the screen and causing interruptions.
[0086] Always displaying a translation icon in the notification center or on the screen will take up screen space and block the content displayed on the screen, which will disturb the user, especially when the user does not need to use translation normally.
[0087] Problem 2: Affects power consumption and is not stable enough.
[0088] The corresponding translation icon will only be displayed in the notification center or on the screen when the application is alive in the background, which will affect the power consumption and standby time of the smart device. In addition, due to limited operating system resources, the operating system will sometimes recycle the system resources occupied by the translation function and automatically turn off the translation function. In this way, the translation icon in the notification center or on the screen will disappear, which is not stable enough and may be unusable at any time.
[0089] In view of this, the embodiments of the present disclosure provide the following translation methods, devices, equipment and storage media to improve the efficiency of translation performed by terminal devices and solve the above-mentioned defects in the related technologies.
[0090] Figure 1C It is a flowchart of a translation method according to an exemplary embodiment; the method of this embodiment can be applied to terminal devices (such as smart phones, tablet computers, desktop computers, wearable devices, etc.).
[0091] like Figure 1C As shown, the method includes the following steps S101-S103:
[0092] In step S101, a preset translation program interface is displayed in an operation interface of a control center of a terminal device.
[0093] In one embodiment, the terminal device may display a preset translation program interface in an operation interface of a control center of the terminal device.
[0094] The control center may include a control center of an operating system of a terminal device, which is not limited in this embodiment.
[0095] It is worth noting that the above translation program interface can be set based on actual business needs, for example, Figure 1D The control center AI translation entrance shown in , etc., is not limited to this in this embodiment.
[0096] In one embodiment, the user may also trigger an instruction for opening the control center through a terminal device, and the terminal device may respond to detecting the instruction for opening the control center by executing the operation of displaying a preset translation program interface in the operation interface of the control center of the terminal device as described in the above step S101.
[0097] In step S102, in response to detecting a trigger operation for the translation program interface, a translation floating window is displayed on the screen of the terminal device.
[0098] In this embodiment, after the terminal device displays a preset translation program interface in the operation interface of the control center of the terminal device, a translation floating window may be displayed on the screen of the terminal device in response to detecting a trigger operation for the translation program interface.
[0099] For example, when a user clicks the "AI Translation" button in the AI translation portal of the control center, the terminal device can call the translation pop-up window program to display the translation pop-up window on the screen of the terminal device in response to the click operation.
[0100] For example, Figure 1E is a schematic diagram of a translation pop-up window according to an exemplary embodiment of the present disclosure. When the terminal device detects that the user clicks the "AI translation" button, the operating system can be used to notify the translation pop-up window program to load and display the pop-up window on the screen in response to the click operation. Figure 1E The translation pop-up window shown. Figure 1E As shown, the translation pop-up window may also be pre-set with various translation function entrances in the operating system, such as one or more of AI subtitles, screen translation, camera translation, simultaneous interpretation, text translation, and voice translation.
[0101] In step S103, a translation function corresponding to the translation function entry is provided based on the translation function entry preset in the translation floating window.
[0102] In this embodiment, after the terminal device displays a translation floating window on the screen of the terminal device, a corresponding translation function may be provided to the user based on a translation function entry preset in the translation floating window.
[0103] For example, when a user needs to use a translation function of the translation function entry terminal, he can click the corresponding translation function entry to enter the corresponding translation function page, and then input the information to be translated based on the page to obtain the corresponding translation result.
[0104] In one embodiment, the type of the information to be translated can be set based on the actual needs of the user, such as voice information, text information and / or screen image information, etc., which is not limited in this embodiment.
[0105] In another embodiment, the providing of the translation function corresponding to the translation function entry based on the translation function entry preset in the translation floating window in the above step S103 may include:
[0106] In response to detecting a trigger operation for a preset first translation function entry in the translation pop-up window, a first translation function is provided in the translation pop-up window. The specific method of providing the first translation function in the translation pop-up window can also be referred to as follows Figure 2A The illustrated embodiment will not be described in detail here.
[0107] As can be seen from the above description, this embodiment displays a preset translation program interface in the operation interface of the control center of the terminal device, and in response to detecting a trigger operation for the translation program interface, displays a translation floating window on the screen of the terminal device, and then provides a translation function corresponding to the translation function entry based on the preset translation function entry in the translation floating window. The global entry of the translation function can be realized through the translation program interface set in the control center, so that the user can quickly open the translation floating window in any application scenario, and quickly start the required translation function through the translation floating window without frequently switching to other translation applications, thereby effectively improving translation efficiency and user experience. In addition, since the translation program interface set in the control center does not occupy screen space and does not require the application to always survive in the background, the disturbance of the global entry of the translation function to the user can be reduced, and the power consumption of the terminal device can be reduced.
[0108] Figure 2A 1 is a flowchart showing how to provide a first translation function in the translation pop-up window according to an exemplary embodiment of the present disclosure; based on the above-mentioned embodiment, this embodiment takes how to provide a first translation function in the translation pop-up window as an example for exemplary description. Figure 2AAs shown, providing the first translation function in the translation floating window in the above step S103 may include the following steps S201-S203:
[0109] In step S201, an input interface for information to be translated is provided in the translation floating window.
[0110] In this embodiment, when the terminal device detects a triggering operation on a preset first translation function entry in the translation floating window, an input interface for information to be translated may be provided in the translation floating window.
[0111] Among them, the above-mentioned first translation function can be set based on actual needs, such as being set to text translation and / or voice translation.
[0112] For example, Figure 2B is a schematic diagram of an application scenario of text translation according to an exemplary embodiment of the present disclosure; Figure 2B As shown, when the first translation function includes text translation, the input interface for providing the information to be translated in the translation floating window in step S201 may include:
[0113] An input box for the text to be translated is displayed in the translation floating window, and a virtual keyboard pops up.
[0114] For example, Figure 2C is a schematic diagram of an application scenario of speech translation according to an exemplary embodiment of the present disclosure; Figure 2C As shown, when the first translation function includes voice translation, the input interface for providing the information to be translated in the translation floating window in step S201 may include:
[0115] Prompt information for prompting input of voice information to be translated is displayed in the translation floating window.
[0116] The prompt information may include at least one of preset text information (eg, "Please speak Chinese or English", etc.), and a sound receiving waveform pattern (eg, a monochrome or color waveform pattern similar to a sound wave shape, etc.).
[0117] In step S202, in response to receiving the information to be translated based on the input interface, a preset translation program is called to translate the information to be translated to obtain a translation result.
[0118] In this embodiment, after the terminal device provides an input interface for the information to be translated in the translation pop-up window, in response to receiving the information to be translated in the input interface, a preset translation program can be called to translate the information to be translated to obtain a translation result.
[0119] For example, when the terminal device provides an input interface for the information to be translated in the translation floating window, the user can input the information to be translated in the input interface, and then the terminal device can respond to receiving the information to be translated by calling a preset translation program in the terminal device to translate the information to be translated, thereby obtaining a corresponding translation result. It is worth noting that the process of calling a preset translation program in the terminal device to translate the information to be translated to obtain a corresponding translation result can refer to the explanation and description in the relevant technology, and this embodiment does not limit this.
[0120] In step S203, the translation result is displayed in the translation floating window.
[0121] In this embodiment, when the terminal device responds to receiving information to be translated based on the input interface, calling a preset translation program to translate the information to be translated, after obtaining the translation result, the translation result can be displayed in the translation pop-up window, for example, the corresponding translation result is directly displayed in a preset area in the translation pop-up window for the user to view.
[0122] From the above description, it can be seen that this embodiment provides an input interface for the information to be translated in the translation pop-up window, and in response to receiving the information to be translated based on the input interface, then calls a preset translation program to translate the information to be translated to obtain a translation result, and then displays the translation result in the translation pop-up window. This can provide a preset translation function directly in the translation pop-up window. Since there is no need to jump to other translation programs, the translation process can be simplified, thereby improving translation efficiency and enhancing user experience.
[0123] Figure 3A This is a flowchart showing how to provide a translation function corresponding to a translation function entry based on a preset translation function entry in the translation pop-up window according to an exemplary embodiment of the present disclosure; this embodiment, based on the above-mentioned embodiment, takes how to provide a translation function corresponding to a translation function entry based on a preset translation function entry in the translation pop-up window as an example for exemplary description. Figure 3A As shown, the step S103 described above of providing a translation function corresponding to the translation function entry based on the translation function entry preset in the translation floating window may include the following steps S301-S302:
[0124] In step S301, in response to detecting a triggering operation for a second translation function entry preset in the translation pop-up window, the translation pop-up window program is triggered to start a translation subroutine corresponding to the second translation function entry.
[0125] In this embodiment, after the terminal device displays a translation pop-up window on the screen of the terminal device, in response to detecting a trigger operation for a second translation function entry preset in the translation pop-up window, the translation pop-up window program can be triggered to start the translation subroutine corresponding to the second translation function entry.
[0126] For example, after the terminal device calls the translation pop-up window program to display the translation pop-up window on the screen, the user can trigger the second translation function entry preset in the translation pop-up window based on his or her own needs, and the terminal device can respond to detecting the operation and trigger the translation pop-up window program to start the translation subroutine corresponding to the second translation function entry, such as triggering the translation pop-up window program to send a message to the operating system to open the second translation function, and the operating system can respond to receiving the message to open the translation interface corresponding to the above-mentioned second translation function, and the translation pop-up window can automatically exit.
[0127] In step S302, a second translation function is provided based on the translation subroutine.
[0128] In this embodiment, after the terminal device triggers the translation floating window program to start the translation subroutine corresponding to the second translation function entry, the second translation function can be provided based on the translation subroutine.
[0129] For example, Figure 3B 1 is a schematic diagram of an application scenario of providing a translation function corresponding to a translation function entry based on a preset translation function entry in the translation floating window according to an exemplary embodiment of the present disclosure. Figure 3B As shown, the second translation function may include at least one of the following:
[0130] Artificial intelligence subtitles (AI subtitles), screen translation, photo translation and simultaneous interpretation.
[0131] Among them, the above-mentioned method of providing the second translation function based on the translation subroutine can refer to the explanation and description in the relevant technology, and this embodiment does not limit this.
[0132] As can be seen from the above description, this embodiment triggers the translation floating window program to start the translation subroutine corresponding to the second translation function entry in response to detecting a trigger operation for the second translation function entry preset in the translation floating window, and then provides a second translation function based on the translation subroutine, which can provide a corresponding translation function based on the translation function entry preset in the translation floating window. Since the resident translation entry is realized through the translation program interface located in the control center, the user can quickly open the translation floating window in any application scenario, and quickly start the translation subroutine corresponding to the second translation function entry through the translation floating window, and then provide the second translation function based on the translation subroutine, without frequently switching to other translation applications, which can effectively improve translation efficiency and enhance the user's translation experience. In addition, since the resident entry of the control center does not occupy screen space and does not require the application to always survive in the background, the above-mentioned resident entry can reduce the disturbance to the user and reduce the power consumption of the terminal device.
[0133] Figure 4 is a block diagram of a translation device according to an exemplary embodiment; the device of this embodiment can be applied to terminal devices (such as smart phones, tablet computers, desktop computers, and wearable devices, etc.). Figure 4 As shown, the device includes: a program interface display module 110, a translation floating window display module 120 and a translation function providing module 130, wherein:
[0134] The program interface display module 110 is used to display the preset translation program interface in the operation interface of the control center of the terminal device;
[0135] A translation floating window display module 120, configured to display a translation floating window on the screen of the terminal device in response to detecting a trigger operation for the translation program interface;
[0136] The translation function providing module 130 is used to provide a translation function corresponding to the translation function entry based on the translation function entry preset in the translation floating window.
[0137] As can be seen from the above description, this embodiment displays a preset translation program interface in the operation interface of the control center of the terminal device, and in response to detecting a trigger operation for the translation program interface, displays a translation floating window on the screen of the terminal device, and then provides a translation function corresponding to the translation function entry based on the preset translation function entry in the translation floating window. The global entry of the translation function can be realized through the translation program interface set in the control center, so that the user can quickly open the translation floating window in any application scenario, and quickly start the required translation function through the translation floating window without frequently switching to other translation applications, thereby effectively improving translation efficiency and user experience. In addition, since the translation program interface set in the control center does not occupy screen space and does not require the application to always survive in the background, the disturbance of the global entry of the translation function to the user can be reduced, and the power consumption of the terminal device can be reduced.
[0138] Figure 5 2 is a block diagram of a translation device according to another exemplary embodiment; the device of this embodiment can be applied to terminal devices (such as smart phones, tablet computers, desktop computers, and wearable devices, etc.). Among them, the program interface display module 210, the translation floating window display module 220, and the translation function providing module 230 are similar to the aforementioned Figure 4 The functions of the program interface display module 110, the translation floating window display module 120 and the translation function providing module 130 in the illustrated embodiment are the same and will not be described in detail herein. Figure 5 As shown, the program interface display module 210 can also be used to respond to the detection of the instruction for opening the control center and execute the operation of displaying the preset translation program interface in the operation interface of the control center of the terminal device.
[0139] In one embodiment, the translation function providing module 230 may include:
[0140] The first function providing unit 231 is configured to provide a first translation function in the translation floating window in response to detecting a triggering operation for a first translation function entry preset in the translation floating window.
[0141] In one embodiment, the first function providing unit 231 may also be used to:
[0142] Providing an input interface for information to be translated in the translation floating window;
[0143] In response to receiving the information to be translated based on the input interface, calling a preset translation program to translate the information to be translated to obtain a translation result;
[0144] The translation result is displayed in the translation floating window.
[0145] In one embodiment, the first translation function includes text translation;
[0146] The first function providing unit 231 may also be used for:
[0147] An input box for the text to be translated is displayed in the translation floating window, and a virtual keyboard pops up.
[0148] In one embodiment, the first translation function includes voice translation;
[0149] The first function providing unit 231 may also be used for:
[0150] Prompt information for prompting input of voice information to be translated is displayed in the translation floating window, and the prompt information includes at least one of preset text information and a sound receiving waveform pattern.
[0151] In one embodiment, the translation function providing module 230 includes a second function providing unit 232;
[0152] The second function providing unit 232 may be used to:
[0153] In response to detecting a triggering operation for a second translation function entry preset in the translation floating window, triggering the translation floating window program to start a translation subroutine corresponding to the second translation function entry;
[0154] A second translation function is provided based on the translation subroutine.
[0155] In one embodiment, the second translation function may include at least one of the following:
[0156] AI subtitles, screen translation, photo translation and simultaneous interpretation.
[0157] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0158] Figure 6 900 is a block diagram of an electronic device according to an exemplary embodiment. For example, the device 900 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0159] Reference Figure 6 , device 900 may include one or more of the following components: a processing component 902 , a memory 904 , a power component 906 , a multimedia component 908 , an audio component 910 , an input / output (I / O) interface 912 , a sensor component 914 , and a communication component 916 .
[0160] The processing component 902 generally controls the overall operation of the device 900, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 902 may include one or more processors 920 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 902 may include one or more modules to facilitate the interaction between the processing component 902 and other components. For example, the processing component 902 may include a multimedia module to facilitate the interaction between the multimedia component 908 and the processing component 902.
[0161] The memory 904 is configured to store various types of data to support operations on the device 900. Examples of such data include instructions for any application or method operating on the device 900, contact data, phone book data, messages, pictures, videos, etc. The memory 904 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0162] The power supply component 906 provides power to the various components of the device 900. The power supply component 906 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the device 900.
[0163] The multimedia component 908 includes a screen that provides an output interface between the device 900 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 908 includes a front camera and / or a rear camera. When the device 900 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0164] The audio component 910 is configured to output and / or input audio signals. For example, the audio component 910 includes a microphone (MIC), and when the device 900 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 904 or sent via the communication component 916. In some embodiments, the audio component 910 also includes a speaker for outputting audio signals.
[0165] I / O interface 912 provides an interface between processing component 902 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0166] The sensor assembly 914 includes one or more sensors for providing various aspects of status assessment for the device 900. For example, the sensor assembly 914 can detect the open / closed state of the device 900, the relative positioning of components, such as the display and keypad of the device 900, and the sensor assembly 914 can also detect the position change of the device 900 or a component of the device 900, the presence or absence of user contact with the device 900, the orientation or acceleration / deceleration of the device 900, and the temperature change of the device 900. The sensor assembly 914 can also include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 914 can also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 914 can also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0167] The communication component 916 is configured to facilitate wired or wireless communication between the device 900 and other devices. The device 900 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, 4G or 5G or a combination thereof. In an exemplary embodiment, the communication component 916 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 916 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0168] In an exemplary embodiment, the device 900 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.
[0169] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 904 including instructions, and the instructions can be executed by the processor 920 of the device 900 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0170] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the disclosure disclosed herein. The present disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0171] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A translation method, characterized in that: include: Displaying a preset translation program interface in an operation interface of a control center of a terminal device, wherein the translation program interface is a global entry for opening a plurality of preset translation functions; In response to detecting a trigger operation for the translation program interface, notifying the translation floating window program to load and displaying the translation floating window on the screen of the terminal device through the operating system; Providing a translation function corresponding to the translation function entry based on the translation function entry preset in the translation floating window includes: in response to detecting a trigger operation for a first translation function entry preset in the translation floating window, providing a first translation function in the translation floating window; In response to detecting a trigger operation for a second translation function entry preset in the translation pop-up window, the translation pop-up window program is triggered to start a translation subroutine corresponding to the second translation function entry and exit the translation pop-up window, and a second translation function is provided based on the translation subroutine.
2. The method according to claim 1, characterized in that The method further comprises: In response to detecting an instruction for starting the control center, the operation of displaying a preset translation program interface in an operation interface of the control center of the terminal device is performed.
3. The method according to claim 1, characterized in that The providing a first translation function in the translation floating window includes: Providing an input interface for information to be translated in the translation floating window; In response to receiving the information to be translated based on the input interface, calling a preset translation program to translate the information to be translated to obtain a translation result; The translation result is displayed in the translation floating window.
4. The method according to claim 3, characterized in that The first translation function includes text translation; The input interface for providing information to be translated in the translation floating window includes: An input box for the text to be translated is displayed in the translation floating window, and a virtual keyboard pops up.
5. The method according to claim 3, characterized in that: The first translation function includes voice translation; The input interface for providing information to be translated in the translation floating window includes: Prompt information for prompting input of voice information to be translated is displayed in the translation floating window, and the prompt information includes at least one of preset text information and a sound receiving waveform pattern.
6. The method according to claim 1, characterized in that The second translation function includes at least one of the following: AI subtitles, screen translation, photo translation and simultaneous interpretation.
7. A translation device, characterized in that: include: A program interface display module, used to display a preset translation program interface in the operation interface of the control center of the terminal device, wherein the translation program interface is a global entry for opening a plurality of preset translation functions; A translation floating window display module, configured to, in response to detecting a trigger operation for the translation program interface, notify the translation floating window program to load and display the translation floating window on the screen of the terminal device through the operating system; a translation function providing module, configured to provide a translation function corresponding to the translation function entry based on the translation function entry preset in the translation pop-up window, and specifically configured to provide a first translation function in the translation pop-up window in response to detecting a trigger operation for a first translation function entry preset in the translation pop-up window; In response to detecting a trigger operation for a second translation function entry preset in the translation pop-up window, the translation pop-up window program is triggered to start a translation subroutine corresponding to the second translation function entry and exit the translation pop-up window, and a second translation function is provided based on the translation subroutine.
8. An electronic device, characterized in that: The device comprises: a processor and a memory for storing a computer program; Wherein, the processor is configured to implement, when executing the computer program: Displaying a preset translation program interface in an operation interface of a control center of a terminal device, wherein the translation program interface is a global entry for opening a plurality of preset translation functions; In response to detecting a trigger operation for the translation program interface, notifying the translation floating window program to load and displaying the translation floating window on the screen of the terminal device through the operating system; Providing a translation function corresponding to a translation function entry preset in the translation pop-up window, including: in response to detecting a trigger operation for a first translation function entry preset in the translation pop-up window, providing a first translation function in the translation pop-up window; in response to detecting a trigger operation for a second translation function entry preset in the translation pop-up window, triggering the translation pop-up window program to start a translation subroutine corresponding to the second translation function entry and exiting the translation pop-up window, and providing a second translation function based on the translation subroutine.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by the processor, it realizes: Displaying a preset translation program interface in an operation interface of a control center of a terminal device, wherein the translation program interface is a global entry for opening a plurality of preset translation functions; In response to detecting a trigger operation for the translation program interface, notifying the translation floating window program to load and displaying the translation floating window on the screen of the terminal device through the operating system; Providing a translation function corresponding to the translation function entry based on the translation function entry preset in the translation floating window includes: in response to detecting a trigger operation for a first translation function entry preset in the translation floating window, providing a first translation function in the translation floating window; In response to detecting a trigger operation for a second translation function entry preset in the translation pop-up window, the translation pop-up window program is triggered to start a translation subroutine corresponding to the second translation function entry and exit the translation pop-up window, and a second translation function is provided based on the translation subroutine.
Citation Information
Patent Citations
Interface translation method and device, electronic equipment and storage medium
CN110389807A
Translation information processing method and device, electronic equipment and storage medium
CN110427138A