Cross-platform text input method and system, terminal equipment and storage medium
By pairing and registering with the user device as a standard keyboard through Bluetooth devices, identifying and pasting text data, solving the problem that the translation software cannot write to other applications, achieving the convenience of cross-platform text input, and improving the user experience.
Patent Information
- Application Number
- CN202411709446.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-27
- Publication Date
- 2024-12-27
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing translation software cannot directly write the recognized and translated content into the text input box of other applications, resulting in users having to frequently switch software, which is inconvenient to use.
By pairing with the user device through Bluetooth devices, registering as a standard keyboard, identifying and writing text data to the clipboard, and simulating keyboard operations, implementing cross-platform text input, and being able to paste the recognition results into the text input box of the target application.
It realizes the automatic input of required text in other software, which reduces the complexity of user operations and the need to frequently switch software, and improves the convenience of translation and communication.
Smart Images

Figure CN119201501A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of word processing technology, and in particular to a cross-platform text input method, system, terminal device and storage medium. Background Art
[0002] This technology is designed for voice input peripherals and language translation peripherals, and provides software services in any system. For some translation software, users can only translate within the software, but for users, they communicate with foreigners through other communication software, and the communication software cannot meet the translation needs. Therefore, they need to switch software back and forth to perform translation and communication operations, which is very inconvenient. Summary of the invention
[0003] In view of this, the embodiments of the present application provide a cross-platform text input method, system, terminal device and storage medium, which can effectively solve the problem of inconvenient software use.
[0004] In a first aspect, an embodiment of the present application provides a cross-platform text input method, which is applied to a user device, and the method includes: Pairing and connecting with a Bluetooth device via Bluetooth, and registering the Bluetooth device as a standard keyboard; Acquire input text data, and recognize the text data to obtain a recognition result; Writing the recognition result to a clipboard, and then sending a paste instruction and the system type of the user device to the Bluetooth device; The key value information fed back by the Bluetooth device is obtained, and according to the key value information, the recognition result in the clipboard is input into a text input box of the target application.
[0005] In some embodiments, the text data includes one of voice data, text data, and optical character data; The step of identifying the text data to obtain an identification result includes: If the input is the voice data, voice recognition is performed to obtain corresponding text data as a recognition result; If the input is the optical character data, character recognition is performed to obtain corresponding text data as a recognition result; If the input is the text data, the text data is directly used as the recognition result.
[0006] In some embodiments, after obtaining the recognition result, the method further includes: The text length of the recognition result is determined. If the text length is greater than a preset value, the text of the recognition result is segmented to obtain a plurality of text segments that are less than the preset value.
[0007] In some embodiments, writing the recognition result to a clipboard includes: Determine the order of each text segment to form a text segment queue, write the head text segment of the text segment queue to the clipboard, and remove the head text segment from the text segment queue; After the step of inputting the recognition result in the clipboard into the text input box of the target application is executed, the operation of writing the text segment at the head of the text segment queue into the clipboard is re-executed until all text segments are written into the clipboard.
[0008] In some embodiments, if the input is voice data, the method further includes: Semantic recognition is performed on the voice data to obtain semantic instructions, and corresponding text data is generated as a recognition result according to the semantic instructions.
[0009] In a second aspect, the present application also provides a cross-platform text input method, applied to a Bluetooth device, the method comprising: Initiating a wake-up instruction to the user equipment, wherein the wake-up instruction is used to instruct the user equipment to wake up a corresponding text processing program; Obtaining a paste instruction from the user device and a system type of the user device; Determining key value information for executing the paste instruction according to the system type; A standard keyboard is simulated to send the key value information to the user equipment to instruct the user equipment to input the recognition result in the clipboard into the text input box of the target application.
[0010] In some embodiments, when the start instruction is received, the method further includes: A wake-up instruction is sent to the user equipment to wake up the corresponding text processing program.
[0011] In a third aspect, the present application also provides a cross-platform text input system, including: a user device and a Bluetooth device; When the Bluetooth device receives the start instruction, it matches and connects with the user device and registers as a standard keyboard on the user device; The user device is paired and connected with the Bluetooth device via Bluetooth, and the Bluetooth device is registered as a standard keyboard; The user device is used to obtain input text data and recognize the text data to obtain a recognition result; The user equipment writes the recognition result into a clipboard, and then sends a paste instruction and the system type of the user equipment to the Bluetooth device; The Bluetooth device is used to obtain a paste instruction from a user device and a system type of the user device; The Bluetooth device determines, according to the system type, key value information for executing the paste instruction; The Bluetooth device simulates a standard keyboard and sends the key value information to the user equipment to instruct the user equipment to input the recognition result in the clipboard into the text input box of the target application; The key value information fed back by the Bluetooth device is obtained, and according to the key value information, the recognition result in the clipboard is input into a text input box of the target application.
[0012] In a fourth aspect, the present application also provides a terminal device, comprising a processor and a memory, wherein the memory stores a computer program, and the processor is used to execute the computer program to implement the cross-platform text input method.
[0013] In a fifth aspect, the present application also provides a computer-readable storage medium storing a computer program, which, when executed on a processor, implements the cross-platform text input method.
[0014] The embodiments of the present application have the following beneficial effects: The user device is connected to a Bluetooth device and registers the Bluetooth device as a standard keyboard, allowing the Bluetooth device to paste the recognition results from the clipboard to the text input box of the target application in a simulated keyboard input manner, thereby realizing cross-platform text input and facilitating users to automatically input the required text into other software when using the software. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0016] Figure 1 A schematic diagram of the structure of a cross-platform text input system according to an embodiment of the present application is shown; Figure 2 A schematic diagram of a cross-platform text input method process according to an embodiment of the present application is shown; Figure 3 A schematic diagram of a cross-platform text input method flow in another embodiment of the present application is shown; Figure 4 A schematic diagram of an interactive process of a cross-platform text input method according to an embodiment of the present application is shown; Figure 5 A schematic diagram of a cross-platform text input system interaction according to an embodiment of the present application is shown. DETAILED DESCRIPTION
[0017] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments.
[0018] The components of the embodiments of the present application generally described and shown in the drawings herein may be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0019] Hereinafter, the terms "including", "having" and their cognates that can be used in various embodiments of the present application are intended only to indicate specific features, numbers, steps, operations, elements, components or a combination of the foregoing items, and should not be understood as first excluding the existence of one or more other features, numbers, steps, operations, elements, components or a combination of the foregoing items or increasing the possibility of one or more features, numbers, steps, operations, elements, components or a combination of the foregoing items. In addition, the terms "first", "second", "third" and the like are only used to distinguish descriptions and cannot be understood as indicating or implying relative importance.
[0020] Unless otherwise defined, all terms (including technical terms and scientific terms) used herein have the same meanings as those generally understood by those skilled in the art to which the various embodiments of the present application belong. The terms (such as those defined in generally used dictionaries) will be interpreted as having the same meanings as the contextual meanings in the relevant technical field and will not be interpreted as having idealized meanings or overly formal meanings unless clearly defined in the various embodiments of the present application.
[0021] The technical solution of the present application is applied to scenarios where the recognized language needs to be sent to other applications, such as voice input peripherals and language translation peripherals. The current language recognition or translation software can only recognize and translate in the software itself. Due to permission issues, the recognition and translation content cannot be written into other applications, which causes inconvenience in the use process. The technical solution of the present application is to set up a Bluetooth device, which is registered as a keyboard device when connected to a user device. After the user device receives the text data, it recognizes the text data, obtains the recognition result, enters the recognition result into the clipboard, and sends a paste instruction to the above-mentioned Bluetooth device. The Bluetooth device simulates the keyboard's paste key value information to perform the paste operation, so that the recognition result in the user device clipboard can be displayed in other applications.
[0022] Next, the technical solution of the present application is described with specific embodiments.
[0023] Figure 1 A structural diagram of a cross-platform text input system according to an embodiment of the present application is shown. Exemplarily, the system includes a user device 100 and a Bluetooth device 200 .
[0024] The user device 100 may be a device that can be connected to Bluetooth, such as a mobile phone, a computer, or a smart tablet, and the Bluetooth device 200 is a device that can be connected to the user device 100 via Bluetooth and registered as a standard keyboard. Specifically, the Bluetooth device is configured as a standard HID (Human Interface Device) keyboard device.
[0025] It should be noted that the Bluetooth device 200 does not need to be a Bluetooth keyboard, and can be a device unrelated to a keyboard, such as a Bluetooth headset, as long as it can be registered as a standard keyboard.
[0026] The user device 100 runs speech recognition or translation software, and the cross-platform text input method in this embodiment can run on such software.
[0027] When the Bluetooth device receives the start instruction, it matches and connects with the user device and is registered as a standard keyboard on the user device. The start instruction can be a manual operation by the user to start the matching operation.
[0028] The user device is paired with the Bluetooth device via Bluetooth, and the Bluetooth device is registered as a standard keyboard. The user device can detect the Bluetooth device and perform matching connection when Bluetooth is turned on. If the Bluetooth device has been connected, it can be automatically connected. Here, the Bluetooth device is registered as a standard keyboard, so that the Bluetooth device can send key value information to simulate keyboard operation.
[0029] The user device is used to obtain input text data and recognize the text data to obtain a recognition result. The recognition result obtained by recognizing the text data can be voice recognition, semantic recognition, or optical character recognition, and the final recognition result is text data.
[0030] The user equipment writes the recognition result into a clipboard, and then sends a paste instruction and the system type of the user equipment to the Bluetooth device.
[0031] The Bluetooth device is used to obtain a paste instruction from a user device and a system type of the user device.
[0032] The Bluetooth device determines, according to the system type, key value information for executing the paste instruction; The Bluetooth device simulates a standard keyboard and sends the key value information to the user equipment.
[0033] The user equipment obtains the key value information fed back by the Bluetooth device, and inputs the recognition result in the clipboard into a text input box of the target application according to the key value information.
[0034] By simulating the keyboard to perform the paste operation, the recognition result can be written into a third-party application, and the application can be any application as long as it can perform the paste operation.
[0035] like Figure 2 As shown, the cross-platform text input method of the user device in this embodiment includes: Step S100, pairing and connecting with a Bluetooth device via Bluetooth, and registering the Bluetooth device as a standard keyboard.
[0036] The user device also needs to be connected to a Bluetooth device, and the Bluetooth device here needs to be registered as a standard keyboard in the user device. In this way, the Bluetooth device can send key value information on the keyboard to the user device and perform keyboard-like operations.
[0037] Specifically, the user equipment may be in a state where Bluetooth is turned on, and after receiving a connection request from the Bluetooth device, the user equipment may match and connect with the Bluetooth device.
[0038] Step S200, obtaining input text data, and recognizing the text data to obtain a recognition result.
[0039] The user can input text data into the user device in a variety of ways, such as inputting voice data by voice, inputting text data by typing, or inputting optical character data by taking a photo of text.
[0040] Regardless of the input method, recognition can be performed to obtain the corresponding recognition result. If the input is voice data, voice recognition is performed to obtain the corresponding text data as the recognition result; if the optical character data is input by taking a photo, screenshot, etc., glyph recognition is performed to obtain the corresponding text data as the recognition result.
[0041] If it is text data, the text data is directly used as the recognition result.
[0042] In addition, the recognition of input text data can be not only the recognition of the text itself, but also the recognition of semantics. For example, if the user says "Say hello in German for me", semantic recognition can be performed at this time. The final recognition result is the output of the text used for greeting in German, rather than the characters "Say hello in German for me".
[0043] Step S300: writing the recognition result into a clipboard, and then sending a paste instruction and the system type of the user device to the Bluetooth device.
[0044] The recognition results obtained in the above steps are text data, which are written into the clipboard of the user device. The clipboard is a buffer for storing content that needs to be copied and pasted, and the data stored therein can be pasted to a specified location through a paste method.
[0045] Afterwards, a paste instruction and the system type of the user device need to be sent to the Bluetooth device, wherein the paste instruction is an instruction for instructing the Bluetooth device to perform a paste operation, and before the instruction is sent, the Bluetooth device will not perform the corresponding paste operation.
[0046] The system type is the system used by the current user device, such as Windows, Mac, Android, etc. Different systems have different key value information for the paste shortcut key on the keyboard. The system type needs to be told to the Bluetooth device so that the Bluetooth device can send the corresponding key value information. The system type can be obtained by reading the system parameters of the user device.
[0047] Step S400, obtaining the key value information fed back by the Bluetooth device, and inputting the recognition result in the clipboard into the text input box of the target application according to the key value information.
[0048] The key value information is the information when the keyboard is pressed. For example, for the Windows system, the key value information for paste is "Ctrl+V". Because the Bluetooth device is registered as a standard keyboard, the key value information will be recognized by the user device and regarded as keyboard input, thereby executing the operation represented by the shortcut key "Ctrl+V", that is, the paste operation. At this time, the clipboard stores the previously obtained recognition result, and the copy and paste operation can be used in any application, so the recognition result can be entered into the text input box of any specified target application.
[0049] For example, if a user is currently chatting with others through WeChat and needs to output text in other languages, the solution of this embodiment can be used to provide voice data through voice input after the user device is connected to Bluetooth, and the voice data can then be directly displayed in the input box of WeChat, and the user can send it directly without switching operations.
[0050] In one embodiment, the recognition result may be too long, so segmentation is required, that is, determining the text length of the recognition result. If the text length is greater than a preset value, the text of the recognition result is segmented to obtain multiple text segments that are smaller than the preset value.
[0051] The preset value is related to the maximum length of the clipboard, and each text segment will be less than or equal to the maximum length of the clipboard.
[0052] Then determine the order of the text segments, and write them into the clipboard in sequence.
[0053] It is understandable that each text segment will only be written once, and only one text segment will be written at a time. In order to write in order, these text segments can be organized into a text segment queue. According to the nature of the queue, each time a text segment is output from the head of the queue, the output text segment leaves the queue and is deleted, and the text segment at the head of the next queue can be written to the clipboard at the next write.
[0054] Each time a text segment is written, the clipboard is in a full-load state, and other text segments cannot be written at this time. Then, step S300 will be executed to send a paste instruction to the Bluetooth device and the system type operation of the user device, thereby executing the step of inputting the recognition result in the clipboard into the text input box of the target application. In this way, the content in the clipboard is pasted out. After executing the subsequent step S400, it will return to step S300 and continue to write the text segment to the clipboard. The cycle will repeat until all the text segments are written to the clipboard. Therefore, even if the recognition result is too long, this embodiment can complete the input operation by cutting the recognition result and pasting it in a loop.
[0055] Among them Figure 3 As shown, the cross-platform text input method executed by the Bluetooth device in this embodiment includes: Step S500: upon receiving a start instruction, matching and connecting with a user device, and registering as a standard keyboard on the user device.
[0056] The start-up instruction is an instruction to start the Bluetooth device, that is, before the Bluetooth device and the user device are matched and connected, they are in a disconnected and inactive state. Only when the user starts the Bluetooth device will it be connected to the user device. The start-up instruction can be issued by pressing a button or the like.
[0057] After the Bluetooth device and the user device are matched and connected, it is necessary to register as a standard keyboard on the user device so that key value information can be entered to perform keyboard-like control operations.
[0058] When receiving the start instruction, the Bluetooth device will also send a wake-up instruction to the user device to wake up the corresponding text processing program.
[0059] It can be understood that steps S100 to S400 of this embodiment are the execution flow of the text processing program corresponding to the Bluetooth device. Since the two are executed in conjunction with each other, when the user starts the Bluetooth device, the corresponding text processing program on the user device is basically used, so a wake-up operation will be performed. After the corresponding program is woken up, the user device can obtain the text data input by the user through various means such as voice.
[0060] Step S600: Acquire a paste instruction from the user device and a system type of the user device.
[0061] After the connection, the Bluetooth device will be in a waiting state until the user device sends a paste instruction and the system type of the user device. The paste instruction is used to tell the Bluetooth device that a text input operation is now to be performed. Only after receiving the paste instruction, the Bluetooth device will perform subsequent key value feedback operations.
[0062] Step S700: determining key value information for executing the paste instruction according to the system type.
[0063] Different system types have different corresponding key value information for pasting to zero. For example, Windows is Ctrl+V, while macOS is Command+V. It can be seen that different systems have different key value information for executing paste, so it is necessary to determine the key value information according to the system type.
[0064] Specifically, the corresponding key value information can be determined according to different system types, and a mapping table can be generated. After the system type is obtained, the corresponding key value information can be directly looked up in the table.
[0065] Step S800: simulate a standard keyboard and send the key value information to the user equipment.
[0066] After the Bluetooth device determines the key value information, it will simulate a standard keyboard and send the key value information to the user device. It can be known that the key value information is used to paste the content in the clipboard. At this time, for the user device, it is equivalent to receiving the keyboard operation and performing the paste operation.
[0067] That is to say, the interface of the user device at this time may not be the application for voice recognition in this embodiment, but other communication software. At this time, the content in the clipboard can be directly copied into the target application where the current user needs to input the question.
[0068] It can be understood that the clipboard has the function of pasting any application, so the technical solution of this embodiment can achieve the technical effect of outputting text generated by one application to another application.
[0069] In addition, if Figure 4As shown in the figure, it is the interaction process between the Bluetooth device and the user device. It can be seen that when the Bluetooth device receives the start command, it will match and connect with the user device and register as a standard keyboard. After the user device and Bluetooth are connected, if the user enters text data, the text data can be recognized, and then the recognition result is written to the clipboard. After writing to the clipboard, the paste command and the system type of the user device can be sent to the Bluetooth device, instructing the Bluetooth device to perform the paste operation according to the system type.
[0070] The Bluetooth device can determine the key value information of the paste instruction according to the system type, and finally feed back the key value information to the user device. The user device can then perform the paste operation, thereby inputting the recognition result in the clipboard into the input box of other software, thereby achieving the effect of cross-platform text input.
[0071] For a better understanding, you can combine Figure 5 As shown, it can be considered that at least two applications, the target application and the text processing application, are running in the user device 100. The target application can be any application, and the text processing application is an application that uses the cross-platform text input method in the embodiment of the present application. The Bluetooth device 200 is an external device, which is connected to the user device 100 via Bluetooth and registered as a standard keyboard. The text data input by the user will be processed by the text processing application to obtain a recognition result, and the recognition result will be stored in the clipboard. At this time, the text processing application will send a paste instruction and system type to the Bluetooth device 200, and then the Bluetooth device will feedback the corresponding key value information to the user device 100. The key value information can simulate the keyboard shortcut operation to realize the paste function. At this time, the content in the clipboard is already the recognition result, so it can be directly pasted to the target application.
[0072] This embodiment further provides a terminal device, which includes a processor and a memory, wherein the memory stores a computer program, and the processor is used to execute the computer program to implement the cross-platform text input method.
[0073] The terminal device can be a computer, mobile phone, tablet or the like as a terminal of a user device, or a terminal of a Bluetooth device, such as a Bluetooth headset, Bluetooth microphone or other Bluetooth device.
[0074] This embodiment also provides a computer-readable storage medium storing a computer program. When the computer program is executed on a processor, the cross-platform text input method is implemented.
[0075] It can be understood that the device of this embodiment corresponds to the method of the above embodiment, and the options in the above embodiment are also applicable to this embodiment, so they will not be described repeatedly here.
[0076] The present application also provides a terminal device. Exemplarily, the terminal device includes a processor and a memory, wherein the memory stores a computer program, and the processor runs the computer program, thereby enabling the terminal device to execute the functions of each module in the above method or the above apparatus.
[0077] Among them, the processor can be an integrated circuit chip with signal processing capabilities. The processor can be a general-purpose processor, including a central processing unit (CPU), a graphics processing unit (GPU), a network processor (NP), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or at least one of other programmable logic devices, discrete gates or transistor logic devices, and discrete hardware components. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc., which can implement or execute the methods, steps and logic block diagrams disclosed in the embodiments of the present application.
[0078] The memory may be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electric erasable programmable read-only memory (EEPROM), etc. The memory is used to store a computer program, and the processor may execute the computer program accordingly after receiving an execution instruction.
[0079] The present application also provides a computer-readable storage medium for storing the computer program used in the above terminal device. For example, the computer-readable storage medium may include but is not limited to: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.
[0080] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and structure diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in an alternative implementation, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the structure diagram and / or the flow diagram, and the combination of boxes in the structure diagram and / or the flow diagram, can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0081] In addition, the functional modules or units in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
[0082] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a computer device (which can be a smart phone, a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.
[0083] The above description is only a specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.
Claims
1. A cross-platform text input method, characterized in that: Applied to user equipment, the method comprises: Pairing and connecting with a Bluetooth device via Bluetooth, and registering the Bluetooth device as a standard keyboard; Acquire input text data, and recognize the text data to obtain a recognition result; Writing the recognition result to a clipboard, and then sending a paste instruction and the system type of the user device to the Bluetooth device; The key value information fed back by the Bluetooth device is obtained, and according to the key value information, the recognition result in the clipboard is input into a text input box of the target application.
2. The cross-platform text input method according to claim 1, characterized in that: The text data includes one of voice data, text data and optical character data; The step of identifying the text data to obtain an identification result includes: If the input is the voice data, voice recognition is performed to obtain corresponding text data as a recognition result; If the input is the optical character data, character recognition is performed to obtain corresponding text data as a recognition result; If the input is the text data, the text data is directly used as the recognition result.
3. The cross-platform text input method according to claim 1, characterized in that: After obtaining the recognition result, the method further includes: The text length of the recognition result is determined. If the text length is greater than a preset value, the text of the recognition result is segmented to obtain a plurality of text segments that are less than the preset value.
4. The cross-platform text input method according to claim 3, characterized in that: Writing the recognition result to a clipboard comprises: Determine the order of each text segment to form a text segment queue, write the head text segment of the text segment queue to the clipboard, and remove the head text segment from the text segment queue; After the step of inputting the recognition result in the clipboard into the text input box of the target application is executed, the operation of writing the text segment at the head of the text segment queue into the clipboard is re-executed until all text segments are written into the clipboard.
5. The cross-platform text input method according to claim 2, characterized in that: If the input is voice data, it also includes: Semantic recognition is performed on the voice data to obtain semantic instructions, and corresponding text data is generated as a recognition result according to the semantic instructions.
6. A cross-platform text input method, applied to a Bluetooth device, characterized in that: The method comprises: When receiving the start instruction, matching and connecting with the user equipment, the user equipment is used to register the Bluetooth device as a standard keyboard; Obtaining a paste instruction from the user device and a system type of the user device; Determining key value information for executing the paste instruction according to the system type; A standard keyboard is simulated to send the key value information to the user equipment to instruct the user equipment to input the recognition result in the clipboard into the text input box of the target application.
7. The cross-platform text input method according to claim 6, characterized in that: When the start instruction is received, the method further includes: A wake-up instruction is initiated to the user equipment, where the wake-up instruction is used to instruct the user equipment to wake up a corresponding text processing program.
8. A cross-platform text input system, characterized in that: include: User equipment and Bluetooth devices; When the Bluetooth device receives the start instruction, it matches and connects with the user device and registers as a standard keyboard on the user device; The user device is paired and connected with the Bluetooth device via Bluetooth, and the Bluetooth device is registered as a standard keyboard; The user device is used to obtain input text data and recognize the text data to obtain a recognition result; The user equipment writes the recognition result into a clipboard, and then sends a paste instruction and the system type of the user equipment to the Bluetooth device; The Bluetooth device is used to obtain a paste instruction from a user device and a system type of the user device; The Bluetooth device determines, according to the system type, key value information for executing the paste instruction; The Bluetooth device simulates a standard keyboard and sends the key value information to the user device to instruct the user device to input the recognition result in the clipboard into the text input box of the target application; The user equipment obtains the key value information fed back by the Bluetooth device, and inputs the recognition result in the clipboard into a text input box of the target application according to the key value information.
9. A terminal device, characterized in that: The terminal device comprises a processor and a memory, wherein the memory stores a computer program, and the processor is configured to execute the computer program to implement the cross-platform text input method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The device stores a computer program, which, when executed on a processor, implements the cross-platform text input method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Voice control method based on intelligent terminal
CN111326158A
Text extraction method, device and apparatus, and medium
CN113552984A
Text pasting method and device, computing equipment and readable storage medium
CN113742106A
Method and system based on image frame selection identification and automatic input, terminal and medium
CN116645672A
Cross-screen auxiliary input method and terminal equipment
CN118466874A