Voice control method and device of communication equipment, electronic equipment and storage medium

Through the voice assistant and near field communication module on the mobile terminal, voice commands are analyzed and transmitted to the communication device, which solves the insufficient resources and security problems of the communication device in voice control, and achieves an efficient and secure voice control experience.

CN120164462APending Publication Date: 2025-06-17CHINA TELECOM INTELLIGENT NETWORK TECHNOLOGY CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411996981.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-31
Publication Date
2025-06-17

AI Technical Summary

Technical Problem

Existing communication equipment has problems such as insufficient computing power and storage resources in voice control, single display panel functions, and lack of equipment authentication mechanisms, resulting in complex and insecure operations.

Method used

The mobile terminal equipped with a voice assistant receives the user's voice commands, analyzes the command to generate the device execution parameters, and transmits it to the target communication device through the near field communication module to realize the voice control of the device. At the same time, device identification information comparison and device information database query are used to ensure the security of device authentication.

Benefits of technology

It realizes efficient remote voice control of traditional communication equipment, improves the flexibility and efficiency of on-site operation, and ensures the security and user experience of equipment operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120164462A_ABST
    Figure CN120164462A_ABST
Patent Text Reader

Abstract

The invention discloses a voice control method and device for communication equipment, electronic equipment and a storage medium, and relates to the technical field of communication or other related fields, and the method comprises the steps: receiving a voice instruction of a target user through a mobile terminal provided with a voice assistant, and analyzing the voice instruction to obtain an equipment execution parameter; generating a device control instruction based on the device execution parameter, and transmitting the device control instruction to the target communication device through a near field communication module on the mobile terminal; an execution feedback result transmitted by the target communication equipment is received by the mobile terminal through the near field communication module, and the execution feedback result is obtained after the target communication equipment executes the equipment control instruction; and the execution feedback result is converted into a voice broadcast result through the voice assistant, and the voice broadcast result is fed back to the target user through a loudspeaker of the mobile terminal. According to the invention, the technical problem that voice control cannot be carried out on traditional communication equipment in the prior art is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technologies, and in particular, to a voice control method and device for a communication device, an electronic device, and a storage medium. Background Art

[0002] With the rapid development of information technology, voice control, as an intuitive way of human-computer interaction, has been widely used in fields such as smart homes and smart wearable devices, greatly improving the user experience. However, there are still many challenges and deficiencies in applying voice control technology to traditional transmission communication devices.

[0003] Traditional transmission communication devices, due to design positioning and cost control, usually do not have computing power and storage resources comparable to those of mobile devices, which limits the ability to directly carry high-performance voice recognition and natural language understanding modules. Therefore, existing communication devices often need to rely on additional hardware or complex network configurations to achieve voice control, which not only increases the complexity and cost of the devices, but also limits the flexibility and efficiency of on-site operations.

[0004] On the other hand, current transmission communication devices are usually not equipped with a display panel during design, or the panel has a single function and a small size, and cannot provide rich visual interaction information, resulting in the need for operators to use external devices such as computers to operate through a complex graphical user interface when configuring and monitoring the device status, reducing work efficiency. Especially in the on-site environment, the inconvenience of this operation method is more obvious.

[0005] In addition, in the voice control of communication devices in the prior art, there is a lack of an effective device authentication mechanism, which cannot ensure the security and reliability of the source of control instructions, and may cause unauthorized operations on the device in practical applications, posing a network security risk.

[0006] In summary, the prior art has the following deficiencies: limitations in computing power and storage resources; insufficient display panel functions; lack of a device authentication mechanism.

[0007] For the above problems, no effective solution has been proposed yet. Summary of the Invention

[0008] Embodiments of the present invention provide a voice control method and device for a communication device, an electronic device, and a storage medium, so as to at least solve the technical problem in the related art that traditional communication devices cannot be voice-controlled.

[0009] According to one aspect of an embodiment of the present invention, a voice control method for a communication device is provided, which includes: receiving a voice command of a target user through a mobile terminal installed with a voice assistant, and parsing the voice command to obtain device execution parameters, wherein the voice assistant is used to convert the voice command into the device execution parameters; generating a device control command based on the device execution parameters, and transmitting the device control command to a target communication device through a near-field communication module on the mobile terminal, wherein a near-field communication module is also pre-set on the target communication device; receiving, through the near-field communication module, an execution feedback result transmitted by the target communication device by the mobile terminal, wherein the execution feedback result is obtained after the target communication device executes the device control command; converting the execution feedback result into a voice broadcast result through the voice assistant, and feeding back the voice broadcast result to the target user through a speaker of the mobile terminal.

[0010] Further, before receiving the voice command of the target user through the mobile terminal installed with the voice assistant, it further includes: sending an authentication request to the target communication device through the near-field communication module on the mobile terminal, and starting a timer, wherein a timing duration is pre-set for the timer; receiving device identification information returned by the target communication device through the near-field communication module within the timing duration; querying a device information database based on the device identification information to obtain a query result, and establishing a near-field communication link between the mobile terminal and the target communication device based on the query result; stopping the connection in the case that no information of the target communication device is received within the timing duration.

[0011] Further, the step of querying the device information database based on the device identification information to obtain a query result, and establishing a near-field communication link between the mobile terminal and the target communication device based on the query result includes: comparing the device identification information with all pre-stored device identifications in the device information database; in the case that the device information database contains a pre-stored device identification that is the same as the device identification information, determining that the target communication device has been authorized, and establishing a connection for the mobile terminal and the target communication device through the near-field communication module; or, in the case that the device information database does not contain any pre-stored device identification that is the same as the device identification information, determining that the target communication device has not been authorized, and refusing to establish a connection for the mobile terminal and the target communication device.

[0012] Further, the step of parsing the voice instruction to obtain device execution parameters includes: converting the voice instruction into a voice data structure in a standard format, where the voice data structure in the standard format at least includes: an instruction type and a parameter slot. The instruction type is used to identify the nature of the voice instruction, and the parameter slot is used to store instruction parameters for executing the voice instruction; parsing the instruction type and the parameter slot in the voice data structure by the voice assistant to obtain the device execution parameters.

[0013] Further, the voice assistant includes the following functional modules: a voice transceiver module and a voice parsing module.

[0014] Further, the step of converting the voice instruction into a voice data structure in a preset standard format includes: performing structuring generation on the voice instruction to obtain an audio data structure corresponding to the voice instruction; converting the audio data structure into input audio data through the voice transceiver module, and parsing the input audio data through the voice parsing module to obtain audio text information corresponding to the voice instruction, where the audio text information is used to record the control intention of the target user; generating the voice data structure in the standard format based on the audio text information through a natural language understanding strategy.

[0015] Further, the step of transmitting the device control instruction to a target communication device through the near - field communication module on the mobile terminal includes: encapsulating the device execution parameters into an encrypted data packet on the mobile terminal, where the encrypted data packet includes: a control instruction and a security verification code; sending the encrypted data packet to the target communication device through the near - field communication module, where the target communication device decrypts the received encrypted data packet and performs verification based on the control instruction and the security verification code obtained by decryption; in the case where the verification passes, the target communication device executes the device control instruction; or, in the case where the verification fails, rejecting the execution of the device control instruction and feeding back an error message to the mobile terminal through the near - field communication module.

[0016] Further, the voice assistant further includes the following functional module: a voice synthesis module.

[0017] Further, during the process of the target communication device executing the device control instruction, it further includes: when an execution exception occurs in the device control instruction, generating exception feedback information, where the exception feedback information includes: an error code, an error description, and a recommended operation; transmitting the exception feedback information from the target communication device to the mobile terminal through the near-field communication module; on the mobile terminal, converting the exception feedback information into exception voice broadcast information through the voice synthesis module, and feeding back the exception voice broadcast information through the speaker.

[0018] According to another aspect of the embodiments of the present invention, there is also provided a voice control device for a communication device, which includes: a parsing unit, configured to receive a voice instruction of a target user through a mobile terminal installed with a voice assistant, and parse the voice instruction to obtain device execution parameters, where the voice assistant is used to convert the voice instruction into the device execution parameters; a transmission unit, configured to generate a device control instruction based on the device execution parameters, and transmit the device control instruction to a target communication device through the near-field communication module on the mobile terminal, where a near-field communication module is also pre-set on the target communication device; a receiving unit, configured to receive, through the near-field communication module, an execution feedback result transmitted by the target communication device from the mobile terminal, where the execution feedback result is obtained after the target communication device executes the device control instruction; a feedback unit, configured to convert the execution feedback result into a voice broadcast result through the voice assistant, and feed back the voice broadcast result to the target user through the speaker of the mobile terminal.

[0019] Further, the voice control device of the communication device further includes: a first sending module, configured to send an authentication request to the target communication device through the near-field communication module on the mobile terminal and start a timer before receiving the voice instruction of the target user through the mobile terminal installed with the voice assistant, where the timer is pre-set with a timing duration; a receiving module, configured to receive device identification information returned by the target communication device through the near-field communication module within the timing duration; a query module, configured to query a device information database based on the device identification information to obtain a query result, and establish a near-field communication link between the mobile terminal and the target communication device based on the query result; a stopping module, configured to stop the connection when no information of the target communication device is received within the timing duration.

[0020] Further, the query module includes: a comparison sub-module for comparing the device identification information with all pre-stored device identifications in the device information database; a first determination sub-module for determining that the target communication device has obtained authorization and establishing a connection for the mobile terminal and the target communication device through the near-field communication module when the device information database contains a pre-stored device identification that is identical to the device identification information; and a second determination sub-module for determining that the target communication device has not obtained authorization and rejecting to establish a connection for the mobile terminal and the target communication device when the device information database does not contain any pre-stored device identification that is identical to the device identification information.

[0021] Further, the parsing unit includes: a conversion module for converting the voice command into a voice data structure in a standard format, where the voice data structure in the standard format at least includes: a command type and a parameter slot, the command type is used to identify the nature of the voice command, and the parameter slot is used to store command parameters for executing the voice command; and a parsing module for parsing the command type and the parameter slot in the voice data structure through the voice assistant to obtain the device execution parameters.

[0022] Further, the voice assistant includes the following functional modules: a voice transceiver module and a voice parsing module.

[0023] Further, the conversion module includes: a first generation sub-module for structurally generating the voice command to obtain an audio data structure corresponding to the voice command; a conversion sub-module for converting the audio data structure into input audio data through the voice transceiver module and parsing the input audio data through the voice parsing module to obtain audio text information corresponding to the voice command, where the audio text information is used to record the control intention of the target user; and a second generation sub-module for generating the voice data structure in the standard format based on the audio text information through a natural language understanding strategy.

[0024] Further, the transmission unit includes: an encapsulation module, configured to encapsulate the device execution parameters into an encrypted data packet on the mobile terminal, where the encrypted data packet includes: a control instruction and a security verification code; a second sending module, configured to send the encrypted data packet to the target communication device through the near-field communication module, where the target communication device decrypts the received encrypted data packet and performs verification based on the control instruction and the security verification code obtained by decryption; an execution module, configured to, when the verification is passed, execute the device control instruction by the target communication device; a first feedback module, configured to, when the verification fails, refuse to execute the device control instruction and feedback an error message to the mobile terminal through the near-field communication module.

[0025] Further, the voice assistant further includes the following functional module: a voice synthesis module.

[0026] Further, the voice control device of the communication device further includes: a generation module, configured to generate an exception feedback message when an execution exception occurs in the device control instruction during the process of the target communication device executing the device control instruction, where the exception feedback message includes: an error code, an error description, and a recommended operation; a transmission module, configured to transmit the exception feedback message from the target communication device to the mobile terminal through the near-field communication module; a second feedback module, configured to, on the mobile terminal, convert the exception feedback message into an exception voice broadcast message through the voice synthesis module and feedback the exception voice broadcast message through the speaker.

[0027] On the other hand, according to an embodiment of the present invention, there is also provided a computer-readable storage medium, where the computer-readable storage medium includes a stored computer program, and when the computer program runs, it controls the device where the computer-readable storage medium is located to execute the voice control method of any one of the above communication devices.

[0028] On the other hand, according to an embodiment of the present invention, there is also provided an electronic device, including one or more processors and a memory, where the memory is used to store one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the voice control method of any one of the above communication devices.

[0029] In the present invention, a voice control method for a communication device is proposed. First, a mobile terminal equipped with a voice assistant receives a voice command from a target user, and parses the voice command to obtain device execution parameters. Herein, the voice assistant is used to convert the voice command into device execution parameters. Then, a device control command is generated based on the device execution parameters, and the device control command is transmitted to the target communication device through the near-field communication module on the mobile terminal. Herein, a near-field communication module is also pre-set on the target communication device. Then, through the near-field communication module, the mobile terminal receives the execution feedback result transmitted by the target communication device. Herein, the execution feedback result is obtained after the target communication device executes the device control command. Finally, the voice assistant converts the execution feedback result into a voice broadcast result, and the voice broadcast result is fed back to the target user through the speaker of the mobile terminal.

[0030] In the present invention, by adopting the method of near-field communication between the mobile terminal and the communication device, and by means of deeply integrating the voice assistant function on the mobile terminal, the purpose of realizing remote voice control of traditional communication devices is achieved, thereby realizing the technical effect of improving on-site operation efficiency and user experience. Specifically, first, a mobile terminal such as a smart phone receives a user voice command, and uses the internal voice recognition and language understanding technology to convert the command into control parameters executable by the device. Subsequently, a control command is generated based on these parameters and quickly and securely transmitted to the target communication device through the NFC module of the mobile terminal, without cumbersome cable connections or complex remote configurations. After the device executes the control command, the execution result is fed back to the mobile terminal, and the voice assistant then converts the result into a voice broadcast and feeds it back to the user through the mobile phone speaker to ensure the immediate transmission of the operation result. In addition, for complex operation feedback, it also supports intuitive display on the display screen of the mobile terminal, providing a more comprehensive information presentation method, thereby solving the technical problem in the related art that traditional communication devices cannot be voice-controlled. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] The drawings described herein are used to provide a further understanding of the present invention, and constitute a part of this application. The illustrative embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation to the present invention. In the drawings:

[0032] Figure 1 is a schematic diagram of a device of an optional voice control and management system based on a mobile terminal according to an embodiment of the present invention;

[0033] Figure 2 is a schematic diagram of a structure of an optional mobile terminal according to an embodiment of the present invention;

[0034] Figure 3 is a schematic diagram of a structure of an optional transmission device according to an embodiment of the present invention;

[0035] Figure 4 It is a flowchart of an optional voice control method for a communication device according to an embodiment of the present invention;

[0036] Figure 5 It is a schematic diagram of an optional human - machine interaction process according to an embodiment of the present invention;

[0037] Figure 6 It is a schematic diagram of an optional connection authentication process according to an embodiment of the present invention;

[0038] Figure 7 It is a schematic diagram of an optional slot confirmation process for temperature alarm query according to an embodiment of the present invention;

[0039] Figure 8 It is a schematic diagram of an optional slot confirmation process for obtaining line card performance data according to an embodiment of the present invention;

[0040] Figure 9 It is a schematic diagram of an optional slot confirmation process for creating an optical layer service according to an embodiment of the present invention;

[0041] Figure 10 It is a schematic diagram of an optional voice control device for a communication device according to an embodiment of the present invention;

[0042] Figure 11 It is a hardware structure block diagram of an electronic device (or mobile device) for executing the voice control method of a communication device according to an embodiment of the present invention. Detailed implementation manners

[0043] In order to enable those skilled in the art to better understand the solution of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without making creative efforts shall fall within the protection scope of the present invention.

[0044] It should be noted that the terms "first", "second", etc. in the description, claims and above-mentioned drawings of the present invention are used to distinguish similar objects, and do not necessarily describe a specific order or sequence. It should be understood that such data used can be interchanged under appropriate circumstances, so that the embodiments of the present invention described here can be implemented in an order other than those illustrated or described here. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units does not necessarily limit to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.

[0045] For the convenience of those skilled in the art to understand the present invention, the following explanations are made for some terms or nouns involved in each embodiment of the present invention:

[0046] NFC, Near Field Communication, is a short-range, high-frequency wireless communication technology that allows electronic devices to exchange data within a distance of a few centimeters. In the present invention, NFC serves as a bridge for communication between the device and the mobile terminal, realizing the rapid transmission of control instructions and the instant feedback of the device status.

[0047] ASR, Automatic Speech Recognition, is a technology that enables a computer to recognize and understand human speech, which involves converting speech signals into text or commands. In the speech assistant module of the present invention, the ASR function is responsible for converting the speech signals input by the user through the microphone into readable text data.

[0048] NLU, Natural Language Understanding, is a branch in the field of artificial intelligence that focuses on enabling a computer to understand the meaning and context of human natural language. In the application of the speech assistant, the NLU technology further analyzes the user's true intention and needs based on the text data generated by ASR.

[0049] The following embodiments of the present invention can be applied to various systems / applications / devices that require voice control and status query, and can realize the efficient remote management of traditional communication devices. The present invention uses a mobile terminal to receive and parse voice instructions, and then quickly transmits the parsed device control instructions to the target communication device through NFC technology, which can make better use of the high-performance processor and the speech assistant ecosystem of the mobile terminal, improving the convenience and efficiency of on-site operations.

[0050] Specifically, the embodiments of the present invention cover a series of processes from the input and parsing of voice commands to the generation, transmission of device control commands, and feedback of execution results. It is applicable not only to the daily management of communication devices, such as querying the operating status and configuring parameters, but also to the rapid response in emergency situations, such as alarm query and processing. By transferring the complex computing tasks of voice control from the communication device to the mobile terminal, the hardware cost of the device is effectively reduced. At the same time, the NFC technology is used to achieve a fast and secure connection between the device and the mobile terminal, ensuring the accurate transmission and instant feedback of voice control commands, and greatly improving the user experience and operation efficiency.

[0051] The present invention will be described in detail below in conjunction with each embodiment.

[0052] Embodiment 1

[0053] According to an embodiment of the present invention, there is provided an embodiment of a voice control method for a communication device. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. And although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order than here.

[0054] The voice control method for a communication device proposed by the embodiment of the present invention, the implementation subject of this method is a voice management and control system based on a mobile terminal, combined with NFC near-field communication technology, for the on-site operation scenario of traditional communication devices, especially to solve the problem of inconvenient device configuration and status query. By means of migrating the voice recognition and instruction parsing tasks to a high-performance mobile terminal, the specific steps include receiving voice commands, parsing, generating device control commands, NFC transmission, and feedback of execution results, so as to achieve the purpose of efficient remote management and convenient voice control of traditional communication devices.

[0055] Figure 1 is a schematic diagram of a device of an optional voice management and control system based on a mobile terminal according to an embodiment of the present invention, as Figure 1 shown, the system includes: a mobile terminal (Phone), and a transmission device composed of a processor and an NFC controller (i.e., the communication device in the present invention).

[0056] Figure 2 is a schematic diagram of a structure of an optional mobile terminal according to an embodiment of the present invention, as Figure 2 shown, the mobile terminal includes the following components: a microphone, a speaker, a display, a voice assistant, a mobile phone processor, an NFC controller 1, and an NFC antenna 1. Among them, the voice assistant is composed of the following functional modules: a voice transceiver module, a voice interpretation module, a voice synthesis module, and an NFC interface module.

[0057] Figure 3 FIG. Figure 3 is a schematic structural diagram of an optional transmission device according to an embodiment of the present invention. As Figure 3 shown, the device includes the following components: a processor, a service chip, a memory, a service port, a management network port, an NFC controller 2, and an NFC antenna 2.

[0058] Based on the above basic components and systems, an implementation method of the present invention is proposed. Figure 4 FIG. Figure 4 is a flowchart of a voice control method for an optional communication device according to an embodiment of the present invention. As Figure 4 shown, the method includes the following steps:

[0059] Step S401, receiving a voice command of a target user through a mobile terminal installed with a voice assistant, and parsing the voice command to obtain device execution parameters, where the voice assistant is used to convert the voice command into device execution parameters.

[0060] It should be noted that the mobile terminal refers to an electronic device with near field communication (NFC) function and voice assistant function, such as a smart phone, a tablet computer, etc. The mobile terminal, as the initiating end of voice control, is a bridge between the user and the traditional communication device.

[0061] The voice assistant is a software application on the mobile terminal, which can receive the user's voice input, parse the voice command by using ASR (Automatic Speech Recognition) and NLU (Natural Language Understanding) technologies, and finally convert it into parameters executable by the device. In the embodiment of the present invention, the voice assistant not only parses the voice command, but also is responsible for cooperating with the NFC module to complete the sending of the command and the receiving of the result. The device execution parameters are the parameters generated after the voice assistant parses the user's voice command, and are specific operation instructions that the traditional communication device can understand and execute, including: setting an IP address, querying the device status, configuring services, etc.

[0062] Optionally, before receiving the voice command of the target user through the mobile terminal installed with the voice assistant, it further includes: sending an authentication request to the target communication device through the near field communication module on the mobile terminal, and starting a timer, where the timer is pre-set with a timing duration; receiving the device identification information returned by the target communication device through the near field communication module within the timing duration; querying the device information database based on the device identification information to obtain a query result, and establishing a near field communication link between the mobile terminal and the target communication device based on the query result; stopping the connection if no information of the target communication device is received within the timing duration.

[0063] Specifically, the near field communication module is the NFC module on the mobile terminal and the communication device, which is used to realize wireless data exchange between devices. In the embodiment of the present invention, the NFC module is the key to the transmission of voice control instructions, which is used to ensure the fast and secure transmission of instructions.

[0064] Device identification information is the unique identification information possessed by each communication device and serves as the "ID card" of the device. During the authentication process, the mobile terminal receives the device identification information via NFC and compares it with the device information database to confirm the identity of the target communication device.

[0065] The device information database is a database that stores the identification information and corresponding functions of all supported communication devices. By comparing with the device identification information, the mobile terminal can determine whether the connection to the target device is supported and what control operations can be performed.

[0066] Once the identity of the target communication device is confirmed through the device identification information and it is confirmed that the application of the mobile terminal supports the device, a near-field communication link will be established between the two, making data transmission possible. In the embodiments of the present invention, the display of the mobile terminal can also be used for human-computer interaction to select the operation mode.

[0067] An alternative embodiment Figure 5 is a schematic diagram of an alternative human-computer interaction process according to the embodiments of the present invention. As Figure 5 shown, the mobile terminal ( Figure 5 exemplified as a mobile phone in the figure) initiates a connection request to the target communication device through the NFC function. In the case of a request failure, the words "Connection failed" are displayed through a pop-up window on the mobile phone; in the case of a successful request, the operation mode is selected through a pop-up window on the mobile phone. The following operation modes are provided in this embodiment: touch operation and voice operation; in the case of selecting the touch operation, control instructions are sent through the icon selection function of the touch screen (display) of the mobile phone interface; in the case of selecting the voice operation, the voice assistant is awakened and voice instructions are sent; after the instructions are sent, wait to receive the device return result of the target communication device and display the result based on the preselected operation mode, including: displaying the result on the display and broadcasting the result through the speaker.

[0068] Through the above process of authentication and connection establishment, the present invention ensures that the voice control instructions are only executed on supported communication devices, which not only improves the security of the operation but also ensures the efficiency of the voice assistant function. Once the near-field communication link is established, the user can send instructions through the voice assistant, such as setting the IP address of the device, querying the running status of the device, etc. These instructions will be parsed by the voice assistant and converted into device execution parameters, and transmitted to the communication device through the NFC module, thereby realizing the voice control of the device.

[0069] Optionally, the steps of querying the device information database based on the device identification information to obtain a query result and establishing a near-field communication link between the mobile terminal and the target communication device based on the query result include: comparing the device identification information with all the pre-stored device identifications in the device information database; in the case where the device information database contains a pre-stored device identification that is the same as the device identification information, determining that the target communication device has been authorized, and establishing a connection for the mobile terminal and the target communication device through the near-field communication module; or, in the case where the device information database does not contain any pre-stored device identification that is the same as the device identification information, determining that the target communication device has not been authorized, and refusing to establish a connection for the mobile terminal and the target communication device.

[0070] It should be noted that the device information database is used to store the identification information of all pre-authorized communication devices, including device IDs, device types, and a possible list of device functions, etc. This database is downloaded on the mobile terminal together with the voice assistant application and is used to verify whether the target communication device has been authorized to interact with it.

[0071] The device information database stores multiple device identifications, which are the unique identification codes of known and pre-authorized communication devices. When the mobile terminal receives the device identification information of the target communication device, this information is compared with the pre-stored device identifications in the database to determine whether the target device is within the authorized range.

[0072] During the comparison process, the application program on the mobile terminal reads the device identification information received by the NFC module (near-field communication module) and compares it one by one with the pre-stored device identifications in the device information database. If a matching identification is found, it indicates that the device has been pre-authorized and can enter the next connection establishment process. Conversely, if there is no record in the database that matches the received identification, it is considered that the target communication device has not been authorized and the connection request will be rejected.

[0073] If the comparison between the device identification information and one of the pre-stored device identifications is successful, the NFC module on the mobile terminal will establish a communication link with the NFC module of the target communication device, allowing both parties to exchange data. The user can send control instructions through the voice assistant, and the communication device can respond to these instructions, such as setting parameters, querying status, etc.

[0074] When no pre-stored device identification that matches the device identification information is found in the device information database, the mobile terminal will not establish a near-field communication link with the target device, thereby preventing unauthorized devices from accessing and ensuring the security and controllability of the system.

[0075] An alternative embodiment assumes that the initiating terminal (i.e., the mobile terminal in Embodiment 1) is a mobile phone. The mobile phone connects to the device information database through an application. In the target terminal (the device, i.e., the target communication device in Embodiment 1), device information is prepared through the application. Figure 6 It is a schematic diagram of an alternative connection authentication process according to an embodiment of the present invention, as Figure 6 shown. This process includes: The application on the mobile phone initiates a device authentication request and starts a timer simultaneously. If it times out, the connection is stopped; if it does not time out, it waits for a reply. The application on the target terminal confirms the authentication request and prepares to reply with device information. The application on the mobile phone receives the device information and compares it with the device information database to confirm whether the current device is supported, and based on the confirmation result, sends the device authentication result again. The application on the target terminal receives the device authentication result. If the mobile phone supports the current device, it replies to confirm the connection; if the mobile phone does not support the current device, the connection is stopped.

[0076] Alternatively, when a user attempts to use the voice assistant function of a mobile terminal to control a certain communication device, the following steps detail the process of device authorization and connection establishment:

[0077] 1. Device identification acquisition: When the user brings the mobile terminal close to the NFC sensing area of the target communication device, the NFC module of the mobile terminal starts to attempt to establish a connection and simultaneously receives the identification information of the device.

[0078] 2. Database comparison: After receiving the device identification information, the application on the mobile terminal immediately starts the database comparison process to check whether there is a pre-authorized device record in the device information database that is the same as the received identification information.

[0079] 3. Authorization confirmation: If there is a matching identification in the database, indicating that the target communication device has been pre-authorized, the mobile terminal will establish a near-field communication link with the device through its NFC module.

[0080] 4. Connection establishment: Once the authorization is confirmed, the NFC link between the mobile terminal and the target communication device is activated, and the two parties can start data exchange. At this time, the user can use the voice assistant function to control the communication device through voice commands.

[0081] 5. Reject unauthorized devices: If the device identification information does not match any of the pre-authorized identifications in the database, the application will reject the establishment of the NFC connection, and the mobile terminal will display a message to inform the user that the device is not authorized and cannot be controlled by voice, ensuring the security of the system and preventing misoperation of unauthorized devices.

[0082] Through the above process, the present invention ensures that users can only control those pre-authorized communication devices through the voice assistant, effectively improving the security and operation efficiency of the system.

[0083] Optionally, the step of parsing the voice command to obtain the device execution parameters in step S401 includes: converting the voice command into a voice data structure in a standard format, where the voice data structure in the standard format at least includes: command type and parameter slots. The command type is used to identify the nature of the voice command, and the parameter slots are used to store the command parameters for executing the voice command; parsing the command type and parameter slots in the voice data structure by the voice assistant to obtain the device execution parameters.

[0084] It should be noted that the voice data structure in the standard format is the key intermediate format for the voice assistant to process voice commands. The structure is designed to include key fields such as command type and parameter slots to clearly express the user's intention and the control parameters required by the device. Among them, the command type is used to identify the nature of the voice command, that is, the type of action the user wants to perform, such as "query", "set", etc. In the present invention, the command type is an important part of the voice data structure, which helps the post-processing module identify the user's intention and thus call the correct device control API; the parameter slots are used to store the command parameters required for executing the voice command, which is closely related to the specific device control operation. For example, the IP address and subnet mask required when setting the device IP. The design of the parameter slots ensures the integrity of the device execution parameters and is the necessary information for device control.

[0085] Optionally, the step of converting the voice command into a voice data structure in a preset standard format includes: performing structuring generation on the voice command to obtain the audio data structure corresponding to the voice command; converting the audio data structure into input audio data through the voice transceiver module, and parsing the input audio data through the voice parsing module to obtain the audio text information corresponding to the voice command, where the audio text information is used to record the control intention of the target user; generating a voice data structure in the standard format based on the audio text information through the natural language understanding strategy.

[0086] It should be noted that in the process of converting the voice command into a voice data structure in the standard format, the voice command is first captured as a raw audio signal, and then converted into an audio data structure convenient for internal processing by the voice transceiver module. Further, the audio data structure output by the voice transceiver module is processed to form input audio data, which is the direct input provided to the voice parsing module for text conversion. Further, through the ASR (Automatic Speech Recognition) function, the voice parsing module converts the input audio data into readable text information to obtain the audio text information, which records the control intention of the target user and is the basis for the NLU (Natural Language Understanding) module to perform semantic parsing.

[0087] Another thing to note is that based on the audio text information, specific natural language understanding strategies can be used to parse the text information to determine the user's intention, and further fill the parameter slots to generate a voice data structure in a standard format, ensuring that the voice assistant can understand and correctly execute the user's voice instructions.

[0088] In an alternative embodiment, the user issues a voice instruction to the microphone of the mobile terminal, such as "query device temperature". The voice transceiver module of the mobile terminal receives the audio signal, and the voice transceiver module converts the captured audio signal into an audio data structure. The voice parsing module uses ASR technology to convert the audio data structure into text information, that is, it recognizes the user's speech "query device temperature". Based on the extracted audio text information, natural language understanding strategies are used to parse the user's intention (query) and parameters (device temperature). In the voice data structure in the standard format, the instruction type is identified as "query", and the parameter slot is filled with "device temperature". The voice data structure in the standard format is further parsed to generate execution parameters that the device can recognize. For example, the specific parameters required to call the "query device temperature" API are generated, and the generated device execution parameters are transmitted to the target communication device through the NFC link. The device performs corresponding operations according to the received parameters, such as querying the current temperature status of the device.

[0089] The present invention also proposes an information supplement mechanism, that is, if a voice data structure in a standard format is not generated based on the audio text information and there are missing slots, a prompt data structure for prompting the target user to republish a complete instruction can be generated. The prompt data structure is converted into prompt text data in the voice synthesis module, and then the text data is used to generate prompt audio data. The prompt audio data is output as a prompt audio data structure to the voice transceiver API through the voice transceiver module, and the prompt instruction is broadcast through the voice application to drive the speaker to prompt the target user to re-initiate a complete voice instruction.

[0090] In an alternative embodiment Figure 7 is a schematic diagram of an alternative slot confirmation process for temperature alarm query according to an embodiment of the present invention, as Figure 7As shown, during the slot confirmation process, first, a request to query alarms is sent to the voice assistant of the mobile terminal. After processing, two slots, namely "query" and "alarm", are obtained, but they are not complete at this time. The voice assistant replies with a prompt: "There are many query alarms. Which one do you want to query? Such as temperature, output power, service quality, etc." According to the prompt, the user continues to send a voice command "(temperature)" to the voice assistant through the mobile terminal. At this time, the slots become three slots: "query", "alarm", and "temperature", meeting the clarity and integrity of the slots. After processing and mapping the slot values, the parameters required for device execution are obtained, and the execution parameters are sent to the target communication device, and the query result is returned. The query result is fed back through the voice assistant: "Okay, the current device temperature is normal, the status is good, and there is no alarm."

[0091] Another alternative embodiment Figure 8 is a schematic diagram of an optional slot confirmation process for obtaining line card performance data according to an embodiment of the present invention, as Figure 8 shown. During this slot confirmation process, the target user sends a voice command "line card performance data" to the voice assistant. The voice assistant obtains two slots, "line card" and "performance data", but the voice assistant cannot recognize the user's intention for "line card performance data". So the voice assistant replies: "Do you want to obtain line card performance data?" The target user responds "Yes". At this time, the slots obtained by the voice assistant are "obtain", "line card", and "performance data". Since there is a lot of performance data, in order to reply to the user more accurately, the voice assistant replies: "Which level of performance data do you want to obtain?" If the target user only wants to obtain all line card performance data at once, that is, responds "All", at this time, the voice assistant obtains the complete slot values. After processing and mapping the slot values, the parameters required for device execution are obtained, and the execution parameters are sent to the target communication device, and all performance data results are returned. It should be noted that if the data is large and there are many types and it is not convenient for voice broadcast, it can be displayed on the display of the mobile terminal, and at the same time, a voice reply "Okay, there is a lot of performance data. Please view it on the display" is given.

[0092] Another alternative embodiment Figure 9 is a schematic diagram of an optional slot confirmation process for creating an optical layer service according to an embodiment of the present invention, as Figure 9As shown, during the slot confirmation process, the target user issues a voice command "Create an optical layer service" to the voice assistant. The voice assistant obtains two slots, namely "Create" and "optical layer service", but it cannot determine what type of service the user wants to create. So the voice assistant replies, "What type of customer-side service do you want to create?" The user responds with "STM64". At this time, the slots obtained by the voice assistant are "Create", "optical layer service", and "STM64". Then the voice assistant continues to ask, "What is the client port you want to create?" The user answers "1". At this time, the slots are "Create", "optical layer service", "STM64", and "client-side port 1". The voice assistant further asks, "What is the line-side port you want to create?" The user replies "2". At this time, the slots become "Create", "optical layer service", "STM64", "client-side port 1", and "line-side port 2", meeting the required slots for creating an optical layer service. Process the slot values to output the parameters required for the execution of the cross-connection device for client port 1 and line port 2, and send the execution parameters to the target communication device, returning the result (the service connection logic diagram is displayed on the mobile phone monitor), and at the same time reply with the voice "Okay, the creation has been completed."

[0093] Through the above steps, the present invention can accurately and efficiently convert the user's voice command into a control operation for the communication device, greatly simplifying the process of device management and enhancing the user experience. During the implementation process, these steps are closely linked to jointly ensure the accuracy and real-time performance of voice control.

[0094] Step S402: Generate a device control instruction based on the device execution parameters, and transmit the device control instruction to the target communication device through the near-field communication module on the mobile terminal, where a near-field communication module is also pre-set on the target communication device.

[0095] Optionally, the step of transmitting the device control instruction to the target communication device through the near-field communication module on the mobile terminal includes: encapsulating the device execution parameters into an encrypted data packet on the mobile terminal, where the encrypted data packet includes: a control instruction and a security verification code; sending the encrypted data packet to the target communication device through the near-field communication module, where the target communication device decrypts the received encrypted data packet and performs verification based on the control instruction and the security verification code obtained by decryption; in the case of passing the verification, the target communication device executes the device control instruction; or, in the case of failing the verification, refuses to execute the device control instruction and feeds back an error message to the mobile terminal through the near-field communication module.

[0096] It should be noted that, in order to ensure the security of device control instructions during transmission, the device execution parameters are encapsulated into encrypted data packets on the mobile terminal, which consist of two parts: the control instruction (the specific command obtained by converting the user's intention into an executable command for the device) and the security verification code (the codeword used to verify the integrity of the data packet and prevent tampering).

[0097] Among them, the control instruction is generated after the voice assistant parses the user's voice instruction and converts it into device execution parameters, and specifically includes operations that the user hopes to perform on the target communication device, such as setting parameters, querying status, configuring services, etc.; in the encrypted data packet, the security verification code is used to ensure that the data packet is not tampered with or damaged during transmission, and is generated by performing an encryption operation on the control instruction and other relevant information in the data packet.

[0098] Another thing to note is that the near-field communication module in the present invention refers to the NFC module, which is responsible for establishing a wireless communication link between the mobile terminal and the target communication device to realize the sending and receiving of encrypted data packets. On the mobile terminal, the device execution parameters are encrypted into data packets to ensure the security of data during transmission. After the target communication device receives the encrypted data packet, it decrypts the data packet to restore the control instruction and the security verification code, and then verifies the integrity and untampered status of the verification data packet based on the security verification code.

[0099] If the verification passes, the device executes the control instruction. Otherwise, the device will reject the execution of the instruction and feedback an error message to the mobile terminal through the NFC module, prompting the user that there is a problem with the data packet.

[0100] In an alternative embodiment, assume that the user issues a command "Set the device IP to 192.168.1.10 and the mask to 255.255.255.0" through the voice assistant of the mobile terminal. The following steps describe in detail the encrypted transmission and verification process of the device control instruction:

[0101] 1. Generation of device execution parameters: The voice assistant parses the voice instruction into the action of "setting the device IP" and the specific parameters "192.168.1.10" and "255.255.255.0". These information constitute the original content of the device control instruction;

[0102] 2. Encapsulation of encrypted data packet: On the mobile terminal, the device control instruction is encapsulated into an encrypted data packet, which contains the control instruction and the security verification code. The security verification code is generated by performing an encryption operation on the control instruction to ensure the security of the data packet during transmission;

[0103] 3. Sending of data packet: The encrypted data packet is sent to the target communication device through the NFC module of the mobile terminal;

[0104] 4. Packet reception and decryption: After the NFC module of the target communication device receives the encrypted packet, it decrypts the packet to recover the original control instruction and security verification code.

[0105] 5. Verify the control instruction: The target communication device verifies based on the received security verification code to validate the integrity and non-tampering of the control instruction. If the verification passes, it indicates that the packet has not been interfered with during transmission, and the device will execute the control instruction to set its IP address to 192.168.1.10 with a mask of 255.255.255.0.

[0106] 6. Feedback the result and error message: If a problem is found with the packet during the verification process, the target communication device will not execute the control instruction and will send an error message to the mobile terminal through its NFC module to inform the user that the packet has failed the verification and needs to resend the instruction.

[0107] Through the mechanism of encrypting packets and the verification steps, the present invention ensures the secure transmission of device control instructions, effectively preventing data leakage or malicious tampering during transmission, and providing an important security defense line for the remote voice control of the device.

[0108] Step S403: The mobile terminal receives the execution feedback result transmitted by the target communication device through the near-field communication module, where the execution feedback result is obtained after the target communication device executes the device control instruction.

[0109] Optionally, during the process of the target communication device executing the device control instruction, it further includes: when an execution exception occurs in the device control instruction, generating an exception feedback message, where the exception feedback message includes: an error code, an error description, and a recommended operation; transmitting the exception feedback message from the target communication device to the mobile terminal through the near-field communication module; on the mobile terminal, converting the exception feedback message into an exception voice broadcast message through the voice synthesis module and feeding back the exception voice broadcast message through the speaker.

[0110] It should be noted that after the device control instruction is executed on the target communication device, the device will generate an execution feedback result to inform the mobile terminal of the execution status or result of the instruction. If the instruction is executed successfully, the execution feedback result will contain information on successful execution; conversely, if an exception occurs during the execution process, an exception feedback message will be generated, including an error code, an error description, and a recommended operation, so that the user can quickly understand the problem and take corresponding solutions.

[0111] Among them, the error code is the standard way to identify and diagnose internal errors of the device. For example, the error code "0x01" may represent the inability to set the IP address, while "0x02" may indicate that the read temperature data is out of range; further, the error description associated with the error code provides more specific information to explain the specific problem behind the error code. For example, for the error code "0x01", the error description may be "Unable to set the IP address, possibly due to a network configuration conflict"; in addition, the recommended operation is the guidance provided by the device to the user to help the user solve the problems encountered. For example, when encountering the error code "0x01", the recommended operation can be "Please check the network environment to ensure there is no duplicate IP address."

[0112] On the mobile terminal, the voice synthesis module is responsible for converting text data into voice broadcast information. When the target communication device transmits abnormal feedback information to the mobile terminal through the NFC module, the voice synthesis module will convert the abnormal feedback information into voice broadcast that the user can hear, ensuring that the user can receive key information even when unable to view the screen; the speaker on the mobile terminal is used to play the voice broadcast information generated by the voice synthesis module, including the normal feedback results and abnormal feedback information of the execution of the device control instructions.

[0113] In an alternative embodiment, assume that the user issues an instruction "Set the device IP to 192.168.1.10 and the mask to 255.255.255.0" through the voice assistant of the mobile terminal, but the target communication device has already configured another IP address within the same network segment, resulting in an abnormal execution of the setting instruction. When the target communication device attempts to execute the setting instruction, it detects a network configuration conflict and generates abnormal feedback information, which includes the error code "0x01", the error description "Unable to set the IP address, possibly due to a network configuration conflict", and the recommended operation "Please check the network environment to ensure there is no duplicate IP address";

[0114] The abnormal feedback information is transmitted through the NFC module of the target communication device to the NFC module of the mobile terminal via the wireless link; after receiving the abnormal feedback information, the voice synthesis module on the mobile terminal converts it into voice broadcast information, such as: "The instruction execution failed, error code 0x01, unable to set the IP address, possibly due to a network configuration conflict. It is recommended to check the network environment to ensure there is no duplicate IP address."; the speaker of the mobile terminal plays the above voice broadcast information. After the user hears the abnormal voice broadcast, they can take corresponding measures to solve the problem, such as checking the network environment and adjusting the IP configuration of other devices.

[0115] Through the mechanism of generating and transmitting the above abnormal feedback information and abnormal voice announcements, the present invention ensures that when the user encounters any abnormal situation during the execution of the device control instruction, they can timely and clearly understand the problem and obtain specific solutions, thereby improving the user-friendliness of the system and the problem-solving efficiency.

[0116] Step S404: Convert the execution feedback result into a voice announcement result through the voice assistant, and feedback the voice announcement result to the target user through the speaker of the mobile terminal.

[0117] Through the above steps S401 to S404, the mobile terminal installed with the voice assistant can first receive the voice instruction of the target user, parse the voice instruction to obtain the device execution parameters, where the voice assistant is used to convert the voice instruction into the device execution parameters, then generate the device control instruction based on the device execution parameters, and transmit the device control instruction to the target communication device through the near-field communication module on the mobile terminal. The target communication device is also pre-set with a near-field communication module. Then, through the near-field communication module, the mobile terminal receives the execution feedback result transmitted by the target communication device, where the execution feedback result is obtained after the target communication device executes the device control instruction. Finally, convert the execution feedback result into a voice announcement result through the voice assistant, and feedback the voice announcement result to the target user through the speaker of the mobile terminal.

[0118] In the embodiment of the present invention, by adopting the near-field communication method between the mobile terminal and the communication device and by means of deeply integrating the voice assistant function on the mobile terminal, the purpose of remotely controlling the traditional communication device by voice is achieved, thereby realizing the technical effect of improving the on-site operation efficiency and user experience. Specifically, first, the mobile terminal such as a smart phone receives the user's voice instruction, uses the internal voice recognition and language understanding technology to convert the instruction into the control parameters executable by the device, then generates the control instruction based on these parameters, and quickly and securely transmits it to the target communication device through the NFC module of the mobile terminal without cumbersome cable connections or complex remote configurations. After the device executes the control instruction, it feeds back the execution result to the mobile terminal, and the voice assistant then converts the result into a voice announcement and feeds it back to the user through the mobile phone speaker to ensure the immediate transmission of the operation result. In addition, for complex operation feedback, it also supports intuitive display on the display screen of the mobile terminal, providing a more comprehensive information presentation method, thus solving the technical problem in the related art that the traditional communication device cannot be controlled by voice.

[0119] The following describes the present invention in conjunction with another optional embodiment.

[0120] Embodiment 2

[0121] A voice control device for a communication device provided in this embodiment includes a plurality of implementation units, and each implementation unit corresponds to each implementation step in the first embodiment above.

[0122] Figure 10 It is a schematic diagram of an optional voice control device for a communication device according to an embodiment of the present invention, as Figure 10 shown, the device may include: a parsing unit 101, a transmission unit 102, a receiving unit 103, and a feedback unit 104.

[0123] Among them, the parsing unit 101 is used to receive a voice command of a target user through a mobile terminal installed with a voice assistant, and parse the voice command to obtain device execution parameters. Among them, the voice assistant is used to convert the voice command into device execution parameters.

[0124] The transmission unit 102 is used to generate a device control command based on the device execution parameters, and transmit the device control command to the target communication device through the near-field communication module on the mobile terminal. Among them, the near-field communication module is also pre-set on the target communication device.

[0125] The receiving unit 103 is used to receive the execution feedback result transmitted by the target communication device through the near-field communication module by the mobile terminal. Among them, the execution feedback result is obtained after the target communication device executes the device control command.

[0126] The feedback unit 104 is used to convert the execution feedback result into a voice broadcast result through the voice assistant, and feedback the voice broadcast result to the target user through the speaker of the mobile terminal.

[0127] For the above-mentioned voice control device of the communication device, the parsing unit 101 can first call the mobile terminal installed with the voice assistant to receive the voice command of the target user, and parse the voice command to obtain the device execution parameters. Among them, the voice assistant is used to convert the voice command into the device execution parameters. Then, the transmission unit 102 generates a device control command based on the device execution parameters, and transmits the device control command to the target communication device through the near-field communication module on the mobile terminal. Among them, the near-field communication module is also pre-set on the target communication device. Then, the receiving unit 103 calls the near-field communication module to receive the execution feedback result transmitted by the target communication device through the mobile terminal. Among them, the execution feedback result is obtained after the target communication device executes the device control command. Finally, the feedback unit 104 calls the voice assistant to convert the execution feedback result into a voice broadcast result, and feedbacks the voice broadcast result to the target user through the speaker of the mobile terminal.

[0128] In the embodiments of the present invention, by adopting the method of near-field communication between a mobile terminal and a communication device and by means of deeply integrating the voice assistant function on the mobile terminal, the purpose of remotely controlling a traditional communication device by voice is achieved, thereby realizing the technical effect of improving on-site operation efficiency and user experience. Specifically, first, a mobile terminal such as a smart phone receives a user's voice command, and uses the internal voice recognition and language understanding technologies to convert the command into control parameters executable by the device. Subsequently, control commands are generated based on these parameters and quickly and securely transmitted to the target communication device through the NFC module of the mobile terminal without cumbersome cable connections or complex remote configurations. After the device executes the control command, the execution result is fed back to the mobile terminal, and the voice assistant then converts the result into a voice broadcast and feeds it back to the user through the mobile phone speaker to ensure the immediate transmission of the operation result. In addition, for complex operation feedback, it is also supported to be intuitively displayed on the display screen of the mobile terminal to provide a more comprehensive information presentation method, thereby solving the technical problem in the related art that a traditional communication device cannot be controlled by voice.

[0129] Optionally, the voice control device of the communication device further includes: a first sending module, configured to send an authentication request to the target communication device through the near-field communication module on the mobile terminal and start a timer before receiving the voice command of the target user through the mobile terminal equipped with the voice assistant, where the timer is pre-set with a timing duration; a receiving module, configured to receive the device identification information returned by the target communication device through the near-field communication module within the timing duration; a query module, configured to query the device information database based on the device identification information to obtain a query result, and establish a near-field communication link between the mobile terminal and the target communication device based on the query result; a stop module, configured to stop the connection in the case that no information of the target communication device is received within the timing duration.

[0130] Optionally, the query module includes: a comparison sub-module, configured to compare the device identification information with all the pre-stored device identifications in the device information database; a first determination sub-module, configured to determine that the target communication device has been authorized and establish a connection between the mobile terminal and the target communication device through the near-field communication module in the case that the device information database contains a pre-stored device identification consistent with the device identification information; a second determination sub-module, configured to determine that the target communication device has not been authorized and refuse to establish a connection between the mobile terminal and the target communication device in the case that the device information database does not contain any pre-stored device identification consistent with the device identification information.

[0131] Optionally, the parsing unit includes: a conversion module for converting a voice command into a voice data structure in a standard format, where the voice data structure in the standard format at least includes: an instruction type and a parameter slot. The instruction type is used to identify the nature of the voice command, and the parameter slot is used to store the instruction parameters for executing the voice command; a parsing module for parsing the instruction type and the parameter slot in the voice data structure through a voice assistant to obtain device execution parameters.

[0132] Optionally, the voice assistant includes the following functional modules: a voice transceiver module and a voice parsing module.

[0133] Optionally, the conversion module includes: a first generation sub-module for performing structured generation on the voice command to obtain an audio data structure corresponding to the voice command; a conversion sub-module for converting the audio data structure into input audio data through the voice transceiver module, and parsing the input audio data through the voice parsing module to obtain audio text information corresponding to the voice command, where the audio text information is used to record the control intention of the target user; a second generation sub-module for generating a voice data structure in a standard format based on the audio text information through a natural language understanding strategy.

[0134] Optionally, the transmission unit includes: an encapsulation module for encapsulating the device execution parameters into an encrypted data packet on the mobile terminal, where the encrypted data packet includes: a control instruction and a security verification code; a second sending module for sending the encrypted data packet to the target communication device through the near field communication module, where the target communication device decrypts the received encrypted data packet and performs verification based on the control instruction and the security verification code obtained by decryption; an execution module for, when the verification passes, the target communication device executes the device control instruction; a first feedback module for, when the verification fails, refusing to execute the device control instruction and feeding back an error message to the mobile terminal through the near field communication module.

[0135] Optionally, the voice assistant further includes the following functional module: a voice synthesis module.

[0136] Optionally, the voice control device of the communication device further includes: a generation module for generating an exception feedback message when an execution exception occurs in the device control instruction during the process of the target communication device executing the device control instruction, where the exception feedback message includes: an error code, an error description, and a recommended operation; a transmission module for transmitting the exception feedback message from the target communication device to the mobile terminal through the near field communication module; a second feedback module for, on the mobile terminal, converting the exception feedback message into an exception voice broadcast message through the voice synthesis module and feeding back the exception voice broadcast message through the speaker.

[0137] The voice control device of the above-mentioned communication device may further include a processor and a memory. The above parsing unit 101, transmission unit 102, receiving unit 103, feedback unit 104, etc. are all stored in the memory as program units, and the corresponding functions are implemented by the processor executing the above program units stored in the memory.

[0138] The above processor includes a kernel, and the kernel retrieves the corresponding program units from the memory. One or more kernels can be set. By adjusting the kernel parameters, through the near-field communication module, the mobile terminal receives the execution feedback result transmitted by the target communication device. The execution feedback result is obtained after the target communication device executes the device control instruction. The voice assistant converts the execution feedback result into a voice broadcast result, and the voice broadcast result is fed back to the target user through the speaker of the mobile terminal.

[0139] The above memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of, for example, read-only memory (ROM) or flash memory (flash RAM). The memory includes at least one memory chip.

[0140] The present application also provides a computer program product, which is suitable for executing a program initialized with the following method steps when executed on a data processing device: receiving a voice instruction of a target user through a mobile terminal equipped with a voice assistant, parsing the voice instruction to obtain device execution parameters, where the voice assistant is used to convert the voice instruction into device execution parameters; generating a device control instruction based on the device execution parameters, and transmitting the device control instruction to the target communication device through the near-field communication module on the mobile terminal, where the target communication device is also pre-set with a near-field communication module; receiving, through the near-field communication module, the execution feedback result transmitted by the target communication device, where the execution feedback result is obtained after the target communication device executes the device control instruction; converting the execution feedback result into a voice broadcast result through the voice assistant, and feeding back the voice broadcast result to the target user through the speaker of the mobile terminal.

[0141] According to another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium, where the computer-readable storage medium includes a stored computer program. When the computer program runs, it controls the device where the computer-readable storage medium is located to execute the voice control method of the communication device in any one of the above-mentioned Embodiment 1.

[0142] According to another aspect of the embodiments of the present invention, there is also provided an electronic device, including one or more processors and a memory. The memory is used to store one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the voice control method of the communication device in any one of the above-mentioned Embodiment 1.

[0143] Figure 11 is a hardware structure block diagram of an electronic device (or mobile device) that executes a voice control method of a communication device according to an embodiment of the present invention. As Figure 11 shown, the electronic device may include one or more ( Figure 11 illustrated as 1102a, 1102b,..., 1102n in Figure 11 processors (the processor may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), and a memory 1104 for storing data. In addition, it may further include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the I / O interface), a network interface, a keyboard, a power supply, and / or a camera. Those of ordinary skill in the art can understand that Figure 11 the structure shown in Figure 11 is only schematic and does not limit the structure of the above-mentioned electronic device. For example, the electronic device may further include more or fewer components than

[0144] shown, or have a different configuration from

[0145] shown.

[0146] In the above embodiments of the present invention, the descriptions of the various embodiments have their own emphases. For parts not detailed in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.

[0147] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed to multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0148] In addition, in each embodiment of the present invention, the functional units may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of a software functional unit.

[0149] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, may be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be 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 invention. The foregoing storage medium includes: various media such as USB flash drives, read-only memories (ROMs), random access memories (RAMs), mobile hard disks, magnetic disks, or optical discs that can store program codes.

[0150] The above are only the preferred embodiments of the present invention. It should be noted that for those of ordinary skill in the art, without departing from the principle of the present invention, several improvements and refinements can be made, and these improvements and refinements should also be regarded as the protection scope of the present invention.

Claims

1. A voice control method for a communication device, characterized in that: include: Receiving a voice command of a target user through a mobile terminal equipped with a voice assistant, parsing the voice command to obtain a device execution parameter, wherein the voice assistant is used to convert the voice command into the device execution parameter; Generate a device control instruction based on the device execution parameter, and transmit the device control instruction to the target communication device through the near field communication module on the mobile terminal, wherein the near field communication module is also pre-set on the target communication device; The mobile terminal receives, through the near field communication module, an execution feedback result transmitted by the target communication device, wherein the execution feedback result is obtained after the target communication device executes the device control instruction; The execution feedback result is converted into a voice broadcast result through the voice assistant, and the voice broadcast result is fed back to the target user through the speaker of the mobile terminal.

2. The voice control method according to claim 1, characterized in that: Before receiving the voice command of the target user through the mobile terminal equipped with the voice assistant, the method further includes: Sending an authentication request to the target communication device through a near field communication module on the mobile terminal, and starting a timer, wherein the timer is preset with a timing duration; Receiving device identification information returned by the target communication device through the near field communication module within the timing duration; querying a device information database based on the device identification information to obtain a query result, and establishing a near field communication link between the mobile terminal and the target communication device based on the query result; If no information from the target communication device is received within the timing period, the connection is terminated.

3. The voice control method according to claim 2, characterized in that: The step of querying a device information database based on the device identification information to obtain a query result, and establishing a near field communication link between the mobile terminal and the target communication device based on the query result includes: Comparing the device identification information with all pre-stored device identifications in the device information database; In the case where the device information database contains a pre-stored device identification that is consistent with the device identification information, determining that the target communication device has been authorized, and establishing a connection between the mobile terminal and the target communication device through a near field communication module; or When the device information database does not contain any pre-stored device identification that is consistent with the device identification information, it is determined that the target communication device is not authorized, and the establishment of a connection between the mobile terminal and the target communication device is refused.

4. The voice control method according to claim 1, characterized in that: The step of parsing the voice command to obtain device execution parameters includes: Converting the voice command into a voice data structure in a standard format, wherein the voice data structure in the standard format at least includes: a command type and a parameter slot, wherein the command type is used to identify the nature of the voice command, and the parameter slot is used to store command parameters for executing the voice command; The voice assistant parses the instruction type and the parameter slot in the voice data structure to obtain the device execution parameter.

5. The voice control method according to claim 4, characterized in that: The voice assistant includes the following functional modules: a voice transceiver module and a voice analysis module. The steps of converting the voice command into a voice data structure in a preset standard format include: Structuring the voice command to obtain an audio data structure corresponding to the voice command; The audio data structure is converted into input audio data by the voice transceiver module, and the input audio data is parsed by the voice parsing module to obtain audio text information corresponding to the voice command, wherein the audio text information is used to record the control intention of the target user; The speech data structure in a standard format is generated based on the audio text information through a natural language understanding strategy.

6. The voice control method according to claim 1, characterized in that: The step of transmitting the device control instruction to the target communication device through the near field communication module on the mobile terminal comprises: Encapsulating the device execution parameters into an encrypted data packet on the mobile terminal, wherein the encrypted data packet includes: a control instruction and a security verification code; Sending the encrypted data packet to the target communication device through the near field communication module, wherein the target communication device decrypts the received encrypted data packet and performs verification based on the control instruction and the security verification code obtained by decryption; If the verification is successful, the target communication device executes the device control instruction; or, If the verification fails, the device control instruction is refused to be executed, and error information is fed back to the mobile terminal through the near field communication module.

7. The voice control method according to claim 1, characterized in that: The voice assistant also includes the following functional modules: a voice synthesis module, and the process in which the target communication device executes the device control instruction also includes: When an execution exception occurs in the device control instruction, generating abnormal feedback information, wherein the abnormal feedback information includes: an error code, an error description and a suggested operation; transmitting the abnormal feedback information from the target communication device to the mobile terminal through the near field communication module; On the mobile terminal, the abnormal feedback information is converted into abnormal voice broadcast information through the voice synthesis module, and the abnormal voice broadcast information is fed back through the speaker.

8. A voice control device for a communication device, characterized in that: include: A parsing unit, configured to receive a voice command of a target user through a mobile terminal equipped with a voice assistant, and parse the voice command to obtain a device execution parameter, wherein the voice assistant is configured to convert the voice command into the device execution parameter; a transmission unit, configured to generate a device control instruction based on the device execution parameter, and transmit the device control instruction to a target communication device through a near field communication module on the mobile terminal, wherein the near field communication module is also pre-set on the target communication device; A receiving unit, configured to receive, by the mobile terminal, an execution feedback result transmitted by the target communication device through the near field communication module, wherein the execution feedback result is obtained after the target communication device executes the device control instruction; A feedback unit is used to convert the execution feedback result into a voice broadcast result through the voice assistant, and feed back the voice broadcast result to the target user through the speaker of the mobile terminal.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program, wherein when the computer program is executed, the device where the computer-readable storage medium is located is controlled to execute the voice control method for a communication device according to any one of claims 1 to 7.

10. An electronic device, characterized in that: It includes one or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the voice control method of the communication device described in any one of claims 1 to 7.

Citation Information

Cited By

  • Intelligent direct display screen AI voice control system and control method thereof

    CN121306134A