Gateway configuration method, device, storage medium and electronic device
Through voice command analysis and generation of configuration instructions, FTTR gateway configuration is simplified, complex problems of traditional configuration methods are solved, and user-friendly and efficient configuration experience is achieved.
Patent Information
- Application Number
- CN202411396830.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-09
- Publication Date
- 2024-12-10
- Estimated Expiration
- 2044-10-09
AI Technical Summary
The configuration method of traditional FTTR gateways is complex and it is difficult to meet the efficient and convenient configuration needs of users without technical backgrounds.
By receiving the user's voice commands, analyzing and generating configuration commands, guiding the gateway equipment to perform configuration settings and parameter adjustments. If the command cannot be generated, historical data and prediction content will be obtained and the user will be sent to supplement necessary information.
Simplifies the gateway configuration process, improves user experience and configuration efficiency, and achieves fast, flexible and accurate configuration.
Smart Images

Figure CN118890233B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of network technology, and in particular to a gateway configuration method, device, storage medium and electronic device. Background Art
[0002] In today's digital age, with the increasing popularity and complexity of home and enterprise networks, users have a growing demand for efficient and convenient management of various network devices. As a key device that connects the internal network of a home or enterprise with the external communication network, the correctness and efficiency of the configuration of the FTTR (Fiber to The Room) gateway directly affects the overall performance of the network and user experience.
[0003] However, traditional FTTR gateway configuration methods often rely on complex setup interfaces, technical manuals or professional technicians, which poses a considerable challenge to most users with non-technical backgrounds.
[0004] In view of the above situation, it is particularly important to develop a system that can simplify the FTTR gateway configuration process and lower the user's technical threshold. Summary of the invention
[0005] The main purpose of the present disclosure is to provide a gateway configuration method, device, storage medium and electronic device, aiming to solve the technical problem that the gateway configuration process is relatively complicated in the prior art.
[0006] To achieve the above objectives, the present disclosure proposes a gateway configuration method, including:
[0007] In response to the gateway configuration instruction, receiving a user's voice instruction;
[0008] Analyzing the voice command to determine the configuration content contained in the voice command;
[0009] Generate a configuration instruction based on the configuration content, wherein the configuration instruction is used to guide the target gateway device to perform configuration settings and / or parameter adjustments;
[0010] According to the configuration instruction, performing gateway configuration on the target gateway device;
[0011] In the case where a configuration instruction cannot be generated based on the configuration content, generating configuration content acquisition information according to the configuration content;
[0012] The configuration content acquisition information is sent to the user, so that the user provides the configuration content not included in the voice instruction according to the configuration content acquisition information.
[0013] Optionally, generating configuration content acquisition information according to the configuration content includes:
[0014] Get historical configuration data;
[0015] Determining, based on the historical configuration data, a first configuration content similar to the configuration content; and
[0016] Inputting the configuration content into a trained configuration content prediction model to obtain second configuration content predicted by the content prediction model;
[0017] The configuration content acquisition information is generated according to the first configuration content and the second configuration content.
[0018] Optionally, analyzing the voice instruction to determine the configuration content contained in the voice instruction includes:
[0019] Inputting the voice command into a trained sound feature recognition model to obtain a sound feature recognition result output by the sound feature recognition model, wherein the sound feature recognition result is used to characterize a sound feature vector contained in the voice command;
[0020] Performing sound feature verification on the voice command according to the sound feature recognition result;
[0021] If the voice instruction passes the sound feature verification, the voice instruction is input into a trained voice content recognition model to obtain a voice content recognition result output by the voice content recognition model, where the voice content recognition result is used to characterize the text content corresponding to the voice instruction;
[0022] According to the voice content recognition result, the configuration content included in the voice instruction is determined.
[0023] Optionally, the performing sound feature verification on the voice instruction according to the sound feature recognition result includes:
[0024] Obtain a preset sound feature library;
[0025] Normalizing the sound feature vector to obtain a target sound feature vector;
[0026] Calculating the similarity between the target sound feature vector and each sound feature vector in the sound feature library to obtain a similarity result;
[0027] Based on a preset similarity threshold and the similarity result, it is determined whether the voice instruction passes the sound feature verification.
[0028] Optionally, determining the configuration content included in the voice instruction according to the voice content recognition result includes:
[0029] Preprocessing the text content to obtain target text content;
[0030] Extracting gateway configuration keywords from the target text content based on a preset gateway configuration vocabulary;
[0031] According to a preset gateway configuration statement template, template matching is performed on the gateway configuration keyword to obtain the configuration content.
[0032] Optionally, the generating a configuration instruction based on the configuration content includes:
[0033] Determine target configuration information according to the configuration content, wherein the target configuration information includes identification information and configuration parameters;
[0034] Performing gateway device identification according to the target configuration information to determine the target gateway device;
[0035] Determining an execution logic relationship between the target gateway device and the target configuration information;
[0036] Obtaining a gateway configuration instruction template for the target gateway device;
[0037] Based on the execution logic relationship, the target configuration information is filled into the gateway configuration instruction template to obtain the configuration instruction.
[0038] Optionally, after performing gateway configuration on the target gateway device according to the configuration instruction, the method further includes:
[0039] Obtaining a gateway configuration result of the target gateway device;
[0040] Determining whether the gateway configuration result meets a preset gateway configuration condition;
[0041] If the gateway configuration result does not meet the gateway configuration condition, obtaining the configuration change history of the target gateway device;
[0042] Determine a target state point according to the configuration change history, where the target state point is the last historical state point that satisfies the gateway configuration condition;
[0043] The gateway configuration after the target state point is canceled so that the target gateway device is restored to the configuration state corresponding to the target state point.
[0044] In addition, to achieve the above objectives, the present disclosure also provides a gateway configuration device, including:
[0045] A receiving module, used for receiving a user's voice command in response to a gateway configuration command;
[0046] An analysis module, used to analyze the voice instruction and determine the configuration content contained in the voice instruction;
[0047] A generating module, used to generate a configuration instruction based on the configuration content, wherein the configuration instruction is used to guide the target gateway device to perform configuration settings and / or parameter adjustments;
[0048] A configuration module is used to perform gateway configuration on the target gateway device according to the configuration instruction.
[0049] In addition, to achieve the above objectives, the present disclosure also provides a computer-readable storage medium, on which a computer program is stored, and a processor executes the computer program to implement the above method.
[0050] In addition, to achieve the above-mentioned purpose, the present disclosure also provides an electronic device, which includes a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the above-mentioned method.
[0051] In addition, to achieve the above objectives, the present disclosure also provides a computer program product, which implements the above method when executed by a processor.
[0052] Through the above technical solution, in response to the gateway configuration instruction, the user's voice instruction is received; the voice instruction is analyzed to determine the configuration content contained in the voice instruction; the configuration instruction is generated based on the configuration content, and the configuration instruction is used to guide the target gateway device to perform configuration settings and / or parameter adjustments; according to the configuration instruction, the target gateway device is configured for the gateway; in the case where the configuration instruction cannot be generated based on the configuration content, the configuration content acquisition information is generated according to the configuration content; the configuration content acquisition information is sent to the user so that the user can provide the configuration content not included in the voice instruction according to the configuration content acquisition information. In this way, by receiving the user's voice instruction to perform gateway configuration, the configuration process is greatly simplified, and the user does not need to manually enter complex configuration parameters or operation interfaces, which improves the convenience and intuitiveness of the operation. When the configuration instruction cannot be generated directly according to the voice instruction, the configuration content acquisition information can be generated immediately and sent to the user to guide the user to supplement the necessary configuration information. Through this technical solution, the rapid, flexible and accurate configuration of the gateway device is achieved, and the user experience and configuration efficiency are improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying any creative work.
[0054] Figure 1 A schematic diagram of the device structure of the hardware operating environment involved in the embodiment of the present disclosure;
[0055] Figure 2 A schematic diagram of a flow chart of a gateway configuration method involved in an embodiment of the present disclosure;
[0056] Figure 3 The present invention is a structural block diagram of a gateway configuration device involved in an embodiment of the present disclosure.
[0057] The realization of the objectives, functional features and advantages of the present disclosure will be further described in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0058] The following will be combined with the drawings in the embodiments of the present disclosure to clearly and completely describe the technical solutions in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.
[0059] Reference Figure 1 , Figure 1 The figure is a schematic diagram of the device structure of the hardware operating environment involved in the embodiment of the present disclosure.
[0060] Typically, the device includes: at least one processor 301, a memory 302, and a gateway configuration program stored in the memory 302 and executable on the processor 301, wherein the gateway configuration program is configured to implement the steps of the gateway configuration method described above.
[0061] The processor 301 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 301 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 301 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 301 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. The processor 301 may also include an AI (Artificial Intelligence) processor, which is used to process operations related to the gateway configuration method, so that the gateway configuration method model can be trained and learned autonomously to improve efficiency and accuracy.
[0062] The memory 302 may include one or more storage media, which may be non-transitory. The memory 302 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory storage medium in the memory 302 is used to store at least one instruction, which is used to be executed by the processor 301 to implement the gateway configuration method provided in the method embodiment of the present disclosure.
[0063] In some embodiments, the terminal may further optionally include: a communication interface 303 and at least one peripheral device. The processor 301, the memory 302 and the communication interface 303 may be connected via a bus or a signal line. Each peripheral device may be connected to the communication interface 303 via a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 304, a display screen 305 and a power supply 306.
[0064] The communication interface 303 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 301 and the memory 302. In some embodiments, the processor 301, the memory 302, and the communication interface 303 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 301, the memory 302, and the communication interface 303 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
[0065] The radio frequency circuit 304 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 304 communicates with the communication network and other communication devices through electromagnetic signals. The radio frequency circuit 304 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. Optionally, the radio frequency circuit 304 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and the like. The radio frequency circuit 304 can communicate with other terminals through at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: a metropolitan area network, various generations of mobile communication networks (2G, 3G, 4G and 5G), a wireless local area network and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 304 may also include circuits related to NFC (Near Field Communication), which is not limited in the present disclosure.
[0066] The display screen 305 is used to display the UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 305 is a touch display screen, the display screen 305 also has the ability to collect touch signals on the surface or above the surface of the display screen 305. The touch signal can be input to the processor 301 as a control signal for processing. At this time, the display screen 305 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the display screen 305 can be one, the front panel of the electronic device; in other embodiments, the display screen 305 can be at least two, respectively arranged on different surfaces of the electronic device or in a folding design; in some embodiments, the display screen 305 can be a flexible display screen, arranged on a curved surface or a folding surface of the electronic device. Even, the display screen 305 can also be set to a non-rectangular irregular shape, that is, a special-shaped screen. The display screen 305 can be made of materials such as LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode, organic light-emitting diode).
[0067] The power supply 306 is used to power various components in the electronic device. The power supply 306 can be AC power, DC power, a disposable battery, or a rechargeable battery. When the power supply 306 includes a rechargeable battery, the rechargeable battery can support wired charging or wireless charging. The rechargeable battery can also be used to support fast charging technology. Those skilled in the art will understand that Figure 1 The structure shown in the figure does not constitute a limitation of the device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0068] In addition, the embodiment of the present disclosure further proposes a storage medium, on which a gateway configuration program is stored, and when the gateway configuration program is executed by the processor, the steps of the gateway configuration method described above are implemented. Therefore, it will not be repeated here. In addition, the description of the beneficial effects of adopting the same method will not be repeated. For technical details not disclosed in the storage medium embodiment involved in the present disclosure, please refer to the description of the method embodiment of the present disclosure. As an example, the program instructions can be deployed to be executed on one device, or on multiple devices located at one location, or on multiple devices distributed at multiple locations and interconnected by a communication network.
[0069] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware through a computer program, and the above-mentioned program can be stored in a storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the above-mentioned storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0070] Reference Figure 2 , Figure 2 The present invention is a flow chart of a gateway configuration method involved in the embodiment of the present disclosure, comprising the following steps:
[0071] Step S11: In response to the gateway configuration instruction, receiving the user's voice instruction.
[0072] Step S12: Analyze the voice instruction to determine the configuration content included in the voice instruction.
[0073] Step S13: Generate configuration instructions based on the configuration content, where the configuration instructions are used to guide the target gateway device to perform configuration settings and / or parameter adjustments.
[0074] Step S14: Perform gateway configuration on the target gateway device according to the configuration instruction.
[0075] Step S15: when the configuration instruction cannot be generated based on the configuration content, generate configuration content acquisition information according to the configuration content.
[0076] Step S16: Send the configuration content acquisition information to the user, so that the user can provide the configuration content not included in the voice instruction according to the configuration content acquisition information.
[0077] It should be understood that the present disclosure includes a continuously running voice recognition service or application, which is in standby mode, waiting for the user to start the configuration process. When the user decides to configure the gateway by voice, the corresponding start word or specific command can be said to activate this process, such as "start configuring the gateway" or "set network parameters". Once the voice command is received, natural language processing technology can be used to analyze the voice. To identify the user's intention and the specific parameters to be configured. For example, the user's voice command is "change the 2.4G Wi-Fi password of gateway device A to 12345678". In the process of analyzing the voice command, the configuration content can be accurately extracted, which may include the identification of gateway device A, Wi-Fi user name, password, etc.
[0078] Then, the corresponding configuration instructions are generated based on the configuration content extracted from the voice command. The configuration instructions can be a series of programming codes, API calls, or system commands to guide the target gateway device to complete the corresponding configuration tasks. For example, an instruction package containing Wi-Fi connection information can be generated, which is then sent to the target gateway device. After receiving the instruction, the target gateway device will adjust its configuration settings according to the instruction content. Specifically, it can include connecting to a specified Wi-Fi network, setting an IP address, updating firmware, etc. During the configuration process, you can interact with the target gateway device to confirm whether the configuration is successfully completed. For example, by sending a test data packet to verify whether the network connection is smooth.
[0079] Through the above technical solution, first respond to the gateway configuration instruction and receive the user's voice instruction; analyze the voice instruction to determine the configuration content contained in the voice instruction; generate configuration instructions based on the configuration content, and the configuration instructions are used to guide the target gateway device to perform configuration settings and / or parameter adjustments; perform gateway configuration on the target gateway device according to the configuration instructions; when the configuration instruction cannot be generated based on the configuration content, generate configuration content acquisition information based on the configuration content; send the configuration content acquisition information to the user so that the user can provide the configuration content not included in the voice instruction based on the configuration content acquisition information. In this way, by receiving the user's voice instruction to perform gateway configuration, the configuration process is greatly simplified, and the user does not need to manually enter complex configuration parameters or operation interfaces, which improves the convenience and intuitiveness of the operation. When the configuration instruction cannot be generated directly according to the voice instruction, the configuration content acquisition information can be generated immediately and sent to the user to guide the user to supplement the necessary configuration information. Through this technical solution, the rapid, flexible and accurate configuration of the gateway device is achieved, and the user experience and configuration efficiency are improved.
[0080] In a possible manner, after performing gateway configuration on the target gateway device according to the configuration instruction, the method further includes:
[0081] Get the gateway configuration result of the target gateway device;
[0082] Determine whether the gateway configuration result meets the preset gateway configuration conditions;
[0083] If the gateway configuration result does not meet the gateway configuration conditions, obtain the configuration change history of the target gateway device;
[0084] According to the configuration change history, determine the target state point, which is the last historical state point that meets the gateway configuration conditions;
[0085] Undo the gateway configuration after the target state point so that the target gateway device can be restored to the configuration state corresponding to the target state point.
[0086] It should be understood that after the target gateway device is configured according to the configuration instruction, in order to ensure the correctness and effectiveness of the configuration, a series of subsequent steps may be performed to verify the configuration result, and a recovery operation may be performed when necessary.
[0087] For example, after executing the configuration instruction, the latest configuration status or configuration result can be obtained from the target gateway device, which may specifically include the configured parameter value, configuration success / failure identification, error code or message, etc.
[0088] Preset conditions predefine a series of rules or conditions to verify whether the configuration results meet expectations. These conditions may be based on network performance, security requirements, function enablement status, etc. Configuration change history records all configuration changes of the target gateway device over a period of time, including the time, content, and executor of the change.
[0089] Therefore, the obtained configuration results can be compared with the preset conditions. When the configuration results do not meet the conditions, the configuration change history of the target gateway device is retrieved. The configuration change history is analyzed, and the last historical state point that meets the gateway configuration conditions is determined by comparing the configuration parameters and preset conditions of each state point. The configurations before the target state point all meet the conditions, but one or more subsequent changes cause the gateway configuration to be abnormal, that is, the target state point is determined.
[0090] After determining the target state point, all configuration changes after the target state point can be undone. Specifically, this can include sending a series of configuration revocation instructions or restoration instructions to the target gateway device. Through the revocation operation, the target gateway device is restored to the configuration state corresponding to the target state point. In this state, the gateway meets the preset configuration conditions.
[0091] After the revocation operation is completed, the configuration result of the target gateway device can be obtained again, and it can be verified whether it meets the preset gateway configuration conditions to ensure the validity of the revocation operation.
[0092] The entire configuration process (including the execution of configuration instructions, verification of configuration results, discovery of configuration problems, and configuration recovery) can be recorded in the operation log, and notifications can be sent to relevant technical support personnel, network administrators, or users to inform them of the configuration results and whether further troubleshooting or optimization suggestions are needed.
[0093] This technical solution can ensure the correctness and stability of gateway configuration, and can also promptly restore and correct problems when they occur.
[0094] In a possible manner, generating configuration content acquisition information according to the configuration content includes:
[0095] Get historical configuration data;
[0096] Determining, based on the historical configuration data, a first configuration content that is similar to the configuration content; and
[0097] Inputting the configuration content into the trained configuration content prediction model to obtain the second configuration content predicted by the content prediction model;
[0098] Configuration content acquisition information is generated according to the first configuration content and the second configuration content.
[0099] It should be understood that when processing voice instructions to generate or configure parameters, there may be situations where the voice instructions are unclear or missing, resulting in the inability to directly parse all the configuration content in the voice instructions. Therefore, the configuration content can be generated to obtain information to assist the user in clarifying or supplementing the missing information.
[0100] For example, when it is found that the configuration content is incomplete or ambiguous, configuration content acquisition information can be generated. For example, a list of possible configuration options or parameters related to the voice command is provided to help the user clarify his or her needs. It also clearly indicates which configuration content is not included in the voice command and requests the user to supplement it.
[0101] The information format of content acquisition information can be in the form of text messages, voice replies, forms or drop-down menus in graphical interfaces (GUIs), etc., depending on the context and platform of user interaction. Configuration content acquisition information can be sent through voice, SMS, application notifications, emails, or in-app messages based on user preferences and the device currently in use, and taking into account the different environments that users may be in (such as noisy environments, visual impairments, etc.), to ensure that the information can be accurately and timely conveyed to users.
[0102] The user then obtains information based on the provided configuration content, selects appropriate configuration options, or provides missing configuration content. After receiving the user's input, necessary validation can be performed to ensure the correctness and validity of the configuration. Feedback is provided to the user to confirm that the configuration has been updated or point out any errors, and may request further clarification or modification.
[0103] Once the configuration information is complete and valid, the corresponding operations or tasks can be performed according to these configurations. The interaction process can also be recorded to improve future speech recognition and natural language processing models and improve the ability to understand user voice commands.
[0104] Specifically, historical configuration data related to the target gateway device can be accessed and collected. These historical configuration data may include past configuration instructions, configuration parameters, configuration results, and user feedback. Using text similarity algorithms such as cosine similarity, Jaccard similarity, or other natural language processing technologies, the configuration content determined according to the user's voice instruction is compared with the historical configuration data to find the first configuration content similar to it. Specifically, the most similar first configuration contents can be screened out based on the similarity score, and sorted from high to low according to the similarity.
[0105] At the same time, the configuration content determined according to the user's voice command is input into the trained prediction model to obtain the second configuration content predicted by the model. The second configuration content may be a supplement, correction or refinement of the original configuration content, which is not limited in the embodiments of the present disclosure.
[0106] Then, the first configuration content and the second configuration content are integrated, and the integrated information is formatted into a form that is easy for the user to understand and operate, such as a list, table, or prompt information. Specifically, it may include listing similar historical configuration content for user reference, and displaying the second configuration content generated by the prediction model as a possible supplement. The generated configuration content acquisition information is sent to the user, so that the user can supplement or modify the configuration content in the original voice command based on this information.
[0107] Through the above process, it is possible to effectively interact with the user and obtain the necessary configuration information when it is impossible to directly parse all the configuration contents in the voice command, thereby completing the gateway configuration task requested by the user.
[0108] In a possible manner, the voice command is analyzed to determine the configuration content contained in the voice command, including:
[0109] Inputting the voice command into the trained sound feature recognition model to obtain a sound feature recognition result output by the sound feature recognition model, wherein the sound feature recognition result is used to characterize a sound feature vector contained in the voice command;
[0110] According to the sound feature recognition result, the sound feature of the voice command is verified;
[0111] If the voice command passes the sound feature verification, the voice command is input into the trained voice content recognition model to obtain a voice content recognition result output by the voice content recognition model, and the voice content recognition result is used to represent the text content corresponding to the voice command;
[0112] According to the voice content recognition result, the configuration content included in the voice command is determined.
[0113] For example, the sound feature recognition model can be trained based on a deep learning algorithm, which can analyze voice signals and extract key sound feature vectors. These feature vectors can characterize the acoustic characteristics of voice commands, such as pitch, speech speed, timbre, etc. The voice content recognition model can be trained based on automatic speech recognition (ASR) technology, which can convert voice signals into corresponding text content.
[0114] Specifically, after the user issues a voice command, the command is captured by an audio input device such as a microphone, and the captured voice command is input into a trained sound feature recognition model to obtain a sound feature recognition result. Based on the sound feature recognition result, a series of verification operations are performed to ensure the validity of the voice command. This includes verifying whether the voice command comes from an authorized user and whether the voice quality is high enough for subsequent processing (such as signal-to-noise ratio, clarity, etc.). If the voice command passes the sound feature verification, it means that the command is valid and can proceed to the next step. If it fails, the command may be refused to execute or the user may be required to re-enter.
[0115] Then, the verified voice command is input into the trained voice content recognition model, which outputs the text representation of the voice command, i.e., the voice content recognition result. This result should reflect the meaning of the original voice command as accurately as possible. The voice content recognition result is then parsed to identify the configuration content contained therein.
[0116] Among possible methods, the voice command is verified based on the voice feature recognition result, including:
[0117] Obtain a preset sound feature library;
[0118] Normalizing the sound feature vector to obtain a target sound feature vector;
[0119] Calculate the similarity between the target sound feature vector and each sound feature vector in the sound feature library to obtain a similarity result;
[0120] Based on the preset similarity threshold and the similarity result, it is determined whether the voice command passes the sound feature verification.
[0121] It should be understood that the sound feature library is a database that stores sound feature vectors of known users or specific devices. These feature vectors are usually collected during user registration, device calibration or specific training. The sound feature library contains multiple sound feature vectors, each of which represents a unique set of sound features that can distinguish different users, environments or devices. The similarity threshold is a preset threshold used to determine whether the similarity between the target sound feature vector and a vector in the sound feature library is high enough to determine whether they are from the same sound source or have the same sound features.
[0122] Since different speech samples may have differences in volume, pitch, etc., the sound feature vectors need to be normalized to ensure that they are compared on the same scale. The target sound feature vector obtained after normalization is then compared with the vector in the sound feature library to determine the similarity result between the target sound feature vector and the sound feature library.
[0123] For example, similarity measurement methods such as cosine similarity and Euclidean distance can be used to calculate the similarity between the target sound feature vector and each sound feature vector in the sound feature library. For each vector in the sound feature library, a similarity value is obtained, which reflects the degree of similarity between the target sound feature vector and the vector.
[0124] If the similarity between the target sound feature vector and at least one vector in the sound feature library exceeds the preset similarity threshold, the voice command is considered to have passed the sound feature verification, and the sender of the voice command is further considered to be a known user with gateway configuration authority. At this point, the voice command can be further processed.
[0125] If the similarity between the target sound feature vector and all vectors in the sound feature library is lower than the preset similarity threshold, the voice command is considered to have failed the sound feature verification, and is further considered to be from an unknown user, whose sender does not have gateway configuration authority, or there is noise interference or the sound feature has changed significantly. In this case, the voice command can be rejected or the user can be asked to resend the voice command.
[0126] In a possible manner, the configuration content included in the voice command is determined according to the voice content recognition result, including:
[0127] Preprocess the text content to obtain the target text content;
[0128] Extracting gateway configuration keywords from target text content based on a preset gateway configuration vocabulary;
[0129] According to the preset gateway configuration statement template, the gateway configuration keywords are template matched to obtain the configuration content.
[0130] For example, the text content output by the speech content recognition model can be cleaned, corrected and formatted. After preprocessing, the target text content is clearer and more standardized, suitable for subsequent keyword extraction and template matching, and can improve the accuracy of subsequent processing. Preprocessing can include removing irrelevant characters (such as punctuation marks, special symbols), using language models or context information to correct possible recognition errors, and word segmentation (breaking sentences into words or phrases).
[0131] It should be understood that the gateway configuration vocabulary is a predefined vocabulary set that includes all possible keywords related to gateway configuration. These keywords can be device names or identifiers, parameter names, operation instructions, etc. Based on the gateway configuration vocabulary, natural language processing technology (such as bag of words model, TF-IDF, word embedding, etc.) can be used to search and extract keywords matching the gateway configuration vocabulary in the target text content as the basis for subsequent template matching.
[0132] The gateway configuration statement template defines the grammatical structure and format of the gateway configuration instruction, including parameter order, parameter type, operation type, etc., and each template corresponds to a specific configuration operation. Therefore, the extracted gateway configuration keywords can be matched with the preset gateway configuration statement template. Specifically, it can include filling the keywords into the corresponding positions in the template to form a complete configuration instruction or configuration parameter list. In this way, through template matching, specific configuration content can be obtained for subsequent configuration operations or task execution. Among them, the configuration content may include parameter values that need to be set, operation types that need to be performed, etc.
[0133] In possible ways, generating configuration instructions based on configuration content includes:
[0134] Determine target configuration information according to the configuration content, where the target configuration information includes identification information and configuration parameters;
[0135] Perform gateway device identification according to target configuration information to determine the target gateway device;
[0136] Determine the execution logic relationship between the target gateway device and the target configuration information;
[0137] Get the gateway configuration instruction template of the target gateway device;
[0138] Based on the execution logic relationship, the target configuration information is filled into the gateway configuration instruction template to obtain the configuration instruction.
[0139] Specifically, key identification information and configuration parameters are extracted from the configuration content. Identification information may include device ID, device name or IP address, etc., which is used to uniquely identify the target gateway device. Configuration parameters may include specific values that need to be set or modified to perform network settings, security settings, function enable / disable, and other operations.
[0140] Then, the target gateway device is searched and determined using the identification information in the target configuration information. This can be achieved by querying a database, a device registry, or a network discovery protocol. Once a matching gateway device is found, it is determined as the target that will receive the configuration instruction, i.e., the target gateway device.
[0141] It should be understood that the execution logic relationship refers to how the configuration instructions are executed on the target gateway device, including the execution order, conditions, dependencies, etc. For example, some configurations may need to be restarted before they can take effect, or some settings must be configured in a certain order. Therefore, the execution logic relationship can be analyzed and determined based on the specific content of the target configuration information and the characteristics of the gateway device.
[0142] The gateway configuration instruction template is a standard configuration instruction format designed for a specific type of gateway device, which defines how to express configuration requests in a machine-readable manner. The corresponding configuration instruction template can be retrieved from the instruction template library according to the type or model of the target gateway device.
[0143] Then, the target configuration information is filled into the corresponding position in the template according to the execution logic relationship and the requirements of the gateway configuration instruction template, thereby obtaining a specific configuration instruction for the target gateway device. The instruction contains all the necessary configuration information and is presented in a way that the target gateway device can understand and execute.
[0144] For example, before sending the configuration instruction, necessary verification may be performed to ensure the correctness and security of the instruction, and then the configuration instruction that passes the verification is sent to the target gateway device, thereby executing the gateway configuration operation.
[0145] Reference Figure 3 , Figure 3 This is a structural block diagram of a gateway configuration device involved in an embodiment of the present disclosure. Based on the same inventive concept as the above embodiment, the device includes:
[0146] The receiving module 10 is used to receive a user's voice command in response to the gateway configuration command;
[0147] An analysis module 20, used to analyze the voice instruction and determine the configuration content contained in the voice instruction;
[0148] A first generating module 30, configured to generate a configuration instruction based on the configuration content, wherein the configuration instruction is used to guide the target gateway device to perform configuration settings and / or parameter adjustments;
[0149] A configuration module 40, configured to perform gateway configuration on the target gateway device according to the configuration instruction;
[0150] A second generating module 50 is used to generate configuration content acquisition information according to the configuration content when the configuration instruction cannot be generated based on the configuration content;
[0151] The sending module 60 is used to send the configuration content acquisition information to the user, so that the user can provide the configuration content not included in the voice instruction according to the configuration content acquisition information.
[0152] Optionally, the second generating module 50 is used for:
[0153] Get historical configuration data;
[0154] Determining, based on the historical configuration data, a first configuration content similar to the configuration content; and
[0155] Inputting the configuration content into a trained configuration content prediction model to obtain second configuration content predicted by the content prediction model;
[0156] The configuration content acquisition information is generated according to the first configuration content and the second configuration content.
[0157] Optionally, the analysis module 20 is used to:
[0158] Inputting the voice command into a trained sound feature recognition model to obtain a sound feature recognition result output by the sound feature recognition model, wherein the sound feature recognition result is used to characterize a sound feature vector contained in the voice command;
[0159] Performing sound feature verification on the voice command according to the sound feature recognition result;
[0160] If the voice instruction passes the sound feature verification, the voice instruction is input into a trained voice content recognition model to obtain a voice content recognition result output by the voice content recognition model, where the voice content recognition result is used to characterize the text content corresponding to the voice instruction;
[0161] According to the voice content recognition result, the configuration content included in the voice instruction is determined.
[0162] Optionally, the analysis module 20 is used to:
[0163] Obtain a preset sound feature library;
[0164] Normalizing the sound feature vector to obtain a target sound feature vector;
[0165] Calculating the similarity between the target sound feature vector and each sound feature vector in the sound feature library to obtain a similarity result;
[0166] Based on a preset similarity threshold and the similarity result, it is determined whether the voice instruction passes the sound feature verification.
[0167] Optionally, the analysis module 20 is used to:
[0168] Preprocessing the text content to obtain target text content;
[0169] Extracting gateway configuration keywords from the target text content based on a preset gateway configuration vocabulary;
[0170] According to a preset gateway configuration statement template, template matching is performed on the gateway configuration keyword to obtain the configuration content.
[0171] Optionally, the first generating module 30 is used to:
[0172] Determine target configuration information according to the configuration content, wherein the target configuration information includes identification information and configuration parameters;
[0173] Performing gateway device identification according to the target configuration information to determine the target gateway device;
[0174] Determining an execution logic relationship between the target gateway device and the target configuration information;
[0175] Obtaining a gateway configuration instruction template for the target gateway device;
[0176] Based on the execution logic relationship, the target configuration information is filled into the gateway configuration instruction template to obtain the configuration instruction.
[0177] Optionally, the gateway configuration device further includes a recovery module, configured to:
[0178] After performing gateway configuration on the target gateway device according to the configuration instruction, obtaining a gateway configuration result of the target gateway device;
[0179] Determining whether the gateway configuration result meets a preset gateway configuration condition;
[0180] If the gateway configuration result does not meet the gateway configuration condition, obtaining the configuration change history of the target gateway device;
[0181] Determine a target state point according to the configuration change history, where the target state point is the last historical state point that satisfies the gateway configuration condition;
[0182] The gateway configuration after the target state point is canceled so that the target gateway device is restored to the configuration state corresponding to the target state point.
[0183] It should be noted that, since the steps executed by the device of this embodiment are the same as the steps of the aforementioned method embodiment, its specific implementation method and the technical effects that can be achieved can refer to the aforementioned embodiment and will not be repeated here.
[0184] In addition, in one embodiment, an embodiment of the present disclosure further provides an electronic device, which includes a processor, a memory, and a computer program stored in the memory, and the computer program implements the steps of the method in the aforementioned embodiment when executed by the processor.
[0185] In addition, in one embodiment, an embodiment of the present disclosure further provides a computer storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the method in the aforementioned embodiment are implemented.
[0186] In some embodiments, the computer readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface memory, optical disk, or CD-ROM; or various devices including one or any combination of the above memories. The computer may be various computing devices including intelligent terminals and servers.
[0187] In some embodiments, executable instructions may be in the form of a program, software, software module, script or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine or other unit suitable for use in a computing environment.
[0188] As an example, executable instructions may, but need not, correspond to a file in a file system, may be stored as part of a file that stores other programs or data, such as in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files storing one or more modules, subroutines, or code portions).
[0189] By way of example, executable instructions may be deployed to be executed on one computing device, or on multiple computing devices located at one site, or on multiple computing devices distributed across multiple sites and interconnected by a communication network.
[0190] It should be noted that, in this article, the terms "include", "may include" or any other variations thereof are intended to cover non-exclusive inclusions, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0191] The serial numbers of the above-mentioned embodiments of the present disclosure are only for description and do not represent the advantages or disadvantages of the embodiments.
[0192] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present disclosure, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory / random access memory, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a multimedia terminal device (which can be a mobile phone, a computer, a television receiver, or a network device, etc.) to execute the methods described in each embodiment of the present disclosure.
[0193] The above descriptions are only optional embodiments of the present disclosure, and are not intended to limit the patent scope of the present disclosure. All equivalent structural transformations made using the contents of the present disclosure and the drawings under the inventive concept of the present disclosure, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present disclosure.
Claims
1. A gateway configuration method, It is characterized in that include: In response to the gateway configuration instruction, receiving a user's voice instruction; Analyzing the voice command to determine the configuration content contained in the voice command; Generate a configuration instruction based on the configuration content, wherein the configuration instruction is used to guide the target gateway device to perform configuration settings and / or parameter adjustments; According to the configuration instruction, performing gateway configuration on the target gateway device; After the target gateway device is configured with the configuration instruction, the method further includes: obtaining a gateway configuration result of the target gateway device; determining whether the gateway configuration result satisfies a preset gateway configuration condition; if the gateway configuration result does not satisfy the gateway configuration condition, obtaining a configuration change history of the target gateway device; determining a target state point according to the configuration change history, the target state point being the last historical state point that satisfies the gateway configuration condition; and revoking the gateway configuration after the target state point so that the target gateway device is restored to the configuration state corresponding to the target state point; In the case where a configuration instruction cannot be generated based on the configuration content, generating configuration content acquisition information according to the configuration content; The configuration content acquisition information is sent to the user, so that the user provides the configuration content not included in the voice instruction according to the configuration content acquisition information.
2. The method according to claim 1, It is characterized in that The step of generating configuration content acquisition information according to the configuration content includes: Get historical configuration data; Determining, based on the historical configuration data, a first configuration content similar to the configuration content; and Inputting the configuration content into a trained configuration content prediction model to obtain second configuration content predicted by the content prediction model; The configuration content acquisition information is generated according to the first configuration content and the second configuration content.
3. The method according to claim 1, It is characterized in that The analyzing the voice command to determine the configuration content contained in the voice command includes: Inputting the voice command into a trained sound feature recognition model to obtain a sound feature recognition result output by the sound feature recognition model, wherein the sound feature recognition result is used to characterize a sound feature vector contained in the voice command; Performing sound feature verification on the voice command according to the sound feature recognition result; If the voice instruction passes the sound feature verification, the voice instruction is input into a trained voice content recognition model to obtain a voice content recognition result output by the voice content recognition model, where the voice content recognition result is used to characterize the text content corresponding to the voice instruction; According to the voice content recognition result, the configuration content included in the voice instruction is determined.
4. The method according to claim 3, It is characterized in that The performing sound feature verification on the voice command according to the sound feature recognition result includes: Obtain a preset sound feature library; Normalizing the sound feature vector to obtain a target sound feature vector; Calculating the similarity between the target sound feature vector and each sound feature vector in the sound feature library to obtain a similarity result; Based on a preset similarity threshold and the similarity result, it is determined whether the voice instruction passes the sound feature verification.
5. The method according to claim 3, It is characterized in that The step of determining the configuration content included in the voice instruction according to the voice content recognition result includes: Preprocessing the text content to obtain target text content; Extracting gateway configuration keywords from the target text content based on a preset gateway configuration vocabulary; According to a preset gateway configuration statement template, template matching is performed on the gateway configuration keyword to obtain the configuration content.
6. The method according to claim 1, It is characterized in that The generating of the configuration instruction based on the configuration content includes: Determine target configuration information according to the configuration content, wherein the target configuration information includes identification information and configuration parameters; Performing gateway device identification according to the target configuration information to determine the target gateway device; Determining an execution logic relationship between the target gateway device and the target configuration information; Obtaining a gateway configuration instruction template for the target gateway device; Based on the execution logic relationship, the target configuration information is filled into the gateway configuration instruction template to obtain the configuration instruction.
7. A gateway configuration device, It is characterized in that include: A receiving module, used for receiving a user's voice command in response to a gateway configuration command; An analysis module, used to analyze the voice instruction and determine the configuration content contained in the voice instruction; A first generating module, configured to generate a configuration instruction based on the configuration content, wherein the configuration instruction is used to guide the target gateway device to perform configuration settings and / or parameter adjustments; A configuration module, used to perform gateway configuration on the target gateway device according to the configuration instruction; After the target gateway device is configured with the configuration instruction, the method further includes: obtaining a gateway configuration result of the target gateway device; determining whether the gateway configuration result satisfies a preset gateway configuration condition; if the gateway configuration result does not satisfy the gateway configuration condition, obtaining a configuration change history of the target gateway device; determining a target state point according to the configuration change history, the target state point being the last historical state point that satisfies the gateway configuration condition; and revoking the gateway configuration after the target state point so that the target gateway device is restored to the configuration state corresponding to the target state point; A second generating module, configured to generate configuration content acquisition information according to the configuration content when a configuration instruction cannot be generated based on the configuration content; The sending module is used to send the configuration content acquisition information to the user, so that the user can provide the configuration content not included in the voice instruction according to the configuration content acquisition information.
8. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and the processor executes the computer program to implement the method according to any one of claims 1 to 6.
9. An electronic device, It is characterized in that The electronic device comprises a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Permission confirmation method and device, storage medium and intelligent loudspeaker box
CN108597526A
Gateway control system and method, intelligent equipment and intelligent equipment server
CN111277610A
Speech recognition method, server and electronic equipment
CN114155855A
Intention recognition method and device, electronic equipment and storage medium
CN116863495A
