Network configuration method and device, equipment and storage medium
By collecting user voice commands and extracting voiceprint features to generate network passwords, the problems of complex and error-prone traditional network configuration are solved, and the effect of simplifying configuration and improving security is achieved.
Patent Information
- Application Number
- CN202410302824.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-15
- Publication Date
- 2025-09-16
AI Technical Summary
Traditional network configuration methods are complex and error-prone, and are limited by the device display interface, which increases the complexity of configuration and connection.
By collecting user voice commands, extracting voiceprint features, encoding and generating network passwords, and setting them to routing devices through connection ports, the configuration process is simplified and accuracy and security are improved.
It simplifies the network configuration process, improves configuration accuracy and security, and avoids errors and password leakage risks caused by manual input.
Smart Images

Figure CN120658583A_ABST
Abstract
Description
Technical field
[0001] The embodiments of the present application relate to the field of computer network technology, and in particular to a network configuration method, apparatus, device, and storage medium. [Background Technology]
[0002] The rapid development of the Internet of Things has brought convenience to work and life. At the same time, due to the need for connection and interaction between devices, multiple devices involved in the application scenarios of the Internet of Things need to be connected to the network, making it important to quickly set up network configurations and join the network.
[0003] Traditional network configuration usually requires network administrators to manually enter relevant parameters. This is not only complicated and prone to errors, but also limited by the device display interface, making network configuration and device connection operations more cumbersome. [Summary of the invention]
[0004] The embodiments of the present application provide a network configuration method, apparatus, device, and storage medium, which can simplify the device connection and network configuration process and improve the accuracy of network configuration.
[0005] In a first aspect, an embodiment of the present application provides a network configuration method, which is applied to an electronic device. The method includes: when connected to a routing device to be configured, encoding a first voiceprint feature of a target user to obtain a network password for configuring the routing device to be configured; and setting the network password for the routing device to be configured through a connection port with the routing device to be configured.
[0006] The network configuration method proposed in the embodiment of the present application collects user voice commands, extracts voiceprint features from the voice commands, encodes the voiceprint features to generate a password to perform password configuration on the routing device. There is no need to manually enter the network information and password to be configured, which simplifies the network configuration process. In addition, the password is generated based on the voiceprint features and is not easy to copy or crack, thereby ensuring the security and accuracy of the password setting.
[0007] In one possible implementation, setting the network password for the routing device to be configured includes:
[0008] Sending a password modification request to the routing device to be configured, wherein the password modification request includes a network password;
[0009] Receive a password setting success message returned by the routing device to be configured, and store the network password.
[0010] In one possible implementation, the method further includes:
[0011] When a configured routing device is found, the local user's voice information is collected;
[0012] extracting a second voiceprint feature from the voice information;
[0013] Encoding the second voiceprint feature to obtain a matching password;
[0014] Sending a connection request to the configured routing device, wherein the connection request includes the matching password;
[0015] In response to the response returned by the configured routing device, a message is displayed indicating that the configured routing device has successfully joined the corresponding network; the response is obtained when the configured routing device verifies that the matching password is the same as the locally set network password.
[0016] In one possible implementation, encoding the first voiceprint feature of the target user includes:
[0017] generating a sound atlas based on the extracted first voiceprint feature;
[0018] Numbering the plurality of frequencies in the sound spectrum according to the order in which the plurality of frequencies change from a first extreme value to a second extreme value;
[0019] Perform encryption calculation on the numbered frequencies to obtain the network password.
[0020] In one possible implementation, performing encryption calculation on the numbered frequencies to obtain the network password includes:
[0021] Perform hash calculation on the numbered frequencies to generate the network password.
[0022] In one possible implementation, before encoding the first voiceprint feature of the target user, the method further includes:
[0023] Collecting voice commands input by the target user;
[0024] performing normalization processing and direction filtering on the voice command to emphasize the voiceprint feature profile in the voice command;
[0025] Extract features from the voice command with the emphasized voiceprint feature profile to obtain the first voiceprint feature.
[0026] In a second aspect, an embodiment of the present application provides a network configuration device, which is provided in an electronic device, and the device includes:
[0027] A first encoding module is configured to encode a first voiceprint feature of a target user when connected to a routing device to be configured, and obtain a network password for configuring the routing device to be configured;
[0028] The password setting module is used to set the network password for the routing device to be configured through the connection port of the routing device to be configured.
[0029] In one possible implementation, the password setting module includes:
[0030] A password sending submodule, configured to send a password modification request to the routing device to be configured, wherein the password modification request includes a network password;
[0031] The message receiving submodule is used to receive a password setting success message returned by the routing device to be configured and store the network password.
[0032] In one possible implementation, the device further includes:
[0033] The collection module is used to collect the voice information of local users when searching for a configured routing device;
[0034] A first feature extraction module is used to extract a second voiceprint feature from the voice information;
[0035] A second encoding module, used for encoding the second voiceprint feature to obtain a matching password;
[0036] a request sending module, configured to send a connection request to the configured routing device, wherein the connection request includes the matching password;
[0037] A response module is used to respond to the response returned by the configured routing device and display a message that the configured routing device has successfully joined the corresponding network; the response is obtained when the configured routing device verifies that the matching password is the same as the locally set network password.
[0038] In one possible implementation, the first encoding module includes:
[0039] A spectrum generation submodule, configured to generate a sound spectrum based on the extracted first voiceprint feature;
[0040] a numbering submodule, configured to number the multiple frequencies in the sound spectrum in the order in which the multiple frequencies change from a first extreme value to a second extreme value;
[0041] The encryption submodule is used to perform encryption calculation on the numbered frequencies to obtain the network password.
[0042] In one possible implementation manner, the encryption submodule is specifically configured to perform a hash calculation on the numbered frequencies to generate the network password.
[0043] In one possible implementation, the device further includes:
[0044] The second acquisition module is used to acquire the voice command input by the target user;
[0045] a pre-processing module, configured to perform normalization processing and directional filtering on the voice command to emphasize the voiceprint feature profile in the voice command;
[0046] The second feature extraction module is used to extract features from the voice instruction with the emphasized voiceprint feature contour to obtain the first voiceprint feature.
[0047] In a third aspect, an embodiment of the present application provides a device comprising: at least one processor; and at least one memory communicatively connected to the processor, wherein: the memory stores program instructions that can be executed by the processor, and the processor calls the program instructions to execute the method provided in the first aspect.
[0048] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions enable the computer to execute the method provided in the first aspect.
[0049] It should be understood that the second to fourth aspects of the embodiments of the present application are consistent with the technical solutions of the first aspect of the embodiments of the present application, and the beneficial effects achieved by each aspect and the corresponding feasible implementation methods are similar and will not be repeated.
Brief Description of the Drawings
[0050] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0051] Figure 1 This is a flowchart of the steps of the network configuration method proposed in the embodiment of the present application;
[0052] Figure 2 This is a schematic diagram of a scenario of an application example of the network configuration method proposed in an embodiment of the present application;
[0053] Figure 3 is a flowchart of an exemplary method for executing network configuration in the present application;
[0054] Figure 4 This is a functional module diagram of the network configuration device proposed in an embodiment of the present application;
[0055] Figure 5A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. [Specific implementation method]
[0056] In order to better understand the technical solutions of this specification, the embodiments of the present application are described in detail below with reference to the accompanying drawings.
[0057] It should be clear that the embodiments described are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this specification.
[0058] The terms used in the examples of this application are for the purpose of describing specific embodiments only and are not intended to limit this specification. The singular forms "a," "an," "the," and "the" used in the examples of this application and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise.
[0059] The network configuration method can be applied to electronic devices, Figure 1 This is a flowchart of the network configuration method proposed in an embodiment of the present application. As shown in the figure, the steps include:
[0060] S1: When connected to the routing device to be configured, encode the first voiceprint feature of the target user to obtain the network password for configuring the routing device to be configured.
[0061] A router to be configured refers to a router that has not yet completed wireless network setup, such as initialization or installation. A target user can be a trusted user, such as an administrator in an electronic device application scenario. The voiceprint characteristics of trusted users can be pre-stored. When configuring the network, the collected voiceprint characteristics can be compared to the pre-stored voiceprint characteristics to see if they match.
[0062] The connection between electronic devices and routing devices includes wired connection and wireless connection. If the electronic device recognizes that the currently connected routing device has not completed the wireless network settings, it will start the relevant program to obtain the target user's voiceprint characteristics to configure the password of the routing device's wireless network; if the electronic device recognizes that the currently connected routing device has not completed the wireless network settings, it will start the program to collect the user's voiceprint characteristics to generate a matching password and send it to the routing device to request to join the wireless network.
[0063] For example, a user brings a handheld terminal into scene 1, connects to routing device 1 to be configured in scene 1, starts the process of acquiring the target user's voiceprint characteristics to configure the routing device's wireless network password, and completes the wireless network configuration of routing device 1. After the wireless network configuration of routing device 1 is completed, other terminals search for the wireless network corresponding to routing device 1 and can send the password to routing device 1 to request to join the wireless network corresponding to device 1. The user brings a handheld terminal into scene 2, which scans and finds a connectable wireless network, collects the user's voiceprint characteristics to generate a matching password, and sends it to routing device 2 corresponding to the connectable network information to request to connect to the connectable wireless network.
[0064] The first voiceprint feature may include cepstral coefficients of the sound spectrum, resonance distribution, time domain features of the sound signal, phonemes, etc.
[0065] The password obtained by encoding the voiceprint feature of the electronic device is determined by the user's biological characteristics. It is unique, stable and not easy to be copied. Therefore, the password for configuring the wireless network is obtained by encoding the voiceprint feature, ensuring the privacy and security of the wireless network. At the same time, the password with encoded voiceprint feature is easy to obtain. The user only needs to enter the voice command again to obtain it. There is no need to record it in other locations or share the password between devices to cause the risk of leakage, which makes it convenient for other devices to join the wireless network corresponding to the configuration password of the electronic device.
[0066] S2: Setting the network password for the routing device to be configured through the connection port of the routing device to be configured.
[0067] The electronic device can send the network password to the routing device to be configured through the connection port of the routing device to be configured. The routing device stores the network password and binds the local IP address, port number and network password.
[0068] The electronic device sends a password modification request to the routing device to be configured, wherein the password modification request includes a network password;
[0069] The routing device to be configured sets the network password to the password of the wireless network and stores it locally.
[0070] The electronic device receives a password setting success message returned by the routing device to be configured, and stores the network password.
[0071] After the electronic device successfully configures the routing device, the password can be stored locally for backup.
[0072] The embodiment of the present application uses voiceprint features to generate a wireless network password, and sets the wireless network password for the routing device through a connection port. The operation is simple, and the generated password is stable and secure.
[0073] The embodiment of the present application further proposes a specific method of performing step S1 to encode the first voiceprint feature of the target user;
[0074] S11: Collecting the voice command input by the target user.
[0075] The voice command may be any voice message longer than a preset duration.
[0076] The electronic device can collect the target user's voice message in advance and store it, or it can play a prompt to remind the user to input voice when connected to the routing device to be configured, and collect the user's voice message in real time.
[0077] S12: performing normalization processing and direction filtering on the voice command to emphasize the voiceprint feature profile in the voice command.
[0078] Before extracting features from voice messages, the messages are normalized to eliminate sample differences. Then, they are filtered to emphasize the preset frequency bands. For example, if the high-frequency features of the sound spectrum are more differentiated, high-pass filtering can be performed on the voice messages to enhance the high-frequency portion of the speech. This makes the extracted voiceprint features more differentiated in representing the user's voice characteristics, thereby improving the security of the wireless network.
[0079] After obtaining the sound signal with the contouring effect, the signal is converted into a voiceprint image through transformation processing. For multiple feature points or feature curves in the voiceprint image, a preset algorithm is used to take values of specific points or feature curves to form a password array.
[0080] S13: Extract features from the voice instruction with the emphasized voiceprint feature profile to obtain the first voiceprint feature.
[0081] S14: Generate a sound atlas based on the extracted first voiceprint feature.
[0082] S15: Numbering the multiple frequencies in the sound spectrum according to the order in which the multiple frequencies change from the first extreme value to the second extreme value.
[0083] The first extreme value may be a minimum value, and the corresponding second extreme value is a maximum value; or the first extreme value may be a maximum value, and the corresponding first extreme value is a minimum value.
[0084] For example, the frequency components in the sound spectrum can be numbered from low to high, with 1 representing the lowest frequency and 100 representing the highest frequency. The numbering result is then encrypted using an algorithm to obtain a unique result, which is the generated password. The password is sent to the routing device to be configured to set the password.
[0085] S16: Perform encryption calculation on the numbered frequencies to obtain the network password.
[0086] Performing encryption calculation on the numbered frequencies to obtain the network password includes:
[0087] Perform hash calculation on the numbered frequencies to generate the network password.
[0088] In one possible manner, SHA-256 is used to encode the numbered frequencies to generate a network password.
[0089] Another network configuration method proposed in an embodiment of the present application includes the following steps:
[0090] S1: Identify whether a connection is established with a routing device. When connected to the routing device to be configured, encode the first voiceprint feature of the target user to obtain a network password for configuring the routing device to be configured.
[0091] S2: Setting the network password for the routing device to be configured through the connection port of the routing device to be configured.
[0092] S3: Identify and establish a connection with the routing device. If no connection is established with the routing device, and a configured routing device is searched, the voice information of the local user is collected.
[0093] S4: Extracting a second voiceprint feature from the voice information.
[0094] If the matching degree between the second voiceprint feature extracted based on the local user voice information and the first voiceprint feature is higher than a preset threshold, it can be determined that the user holding the electronic device is the target user of the configured routing device.
[0095] S5: Encode the second voiceprint feature to obtain a matching password.
[0096] The method of encoding the second voiceprint feature to generate a matching password may adopt the method proposed in other embodiments of the present application.
[0097] S6: Send a connection request to the configured routing device, where the connection request includes the matching password.
[0098] The configured routing device receives the matching password and verifies whether the matching password matches the locally stored network password. If the verification passes, the configured routing device allows the electronic device to join the wireless network. After the electronic device receives the response that the routing device has established a connection with the electronic device, a message that the wireless network connection is successful is displayed.
[0099] S7: In response to the response returned by the configured routing device, a message is displayed indicating that the configured routing device has successfully joined the corresponding network; the response is obtained when the configured routing device verifies that the matching password is the same as the locally set network password.
[0100] Figure 2 This is a schematic diagram of a scenario of an application example of the network configuration method proposed in the embodiment of the present application. Figure 2 As shown, computers, printers, handheld terminals, smart speakers, and smart air conditioners can all access the network corresponding to the routing device, and the devices connected to the network can interact and share information.
[0101] Figure 3 This is a flowchart of an example method for executing network configuration in this application, refer to Figure 2 and Figure 3 Based on the network configuration method proposed in the embodiment of the present application, it is assumed that a computer or handheld terminal is connected to a routing device A as an electronic device A. The microphone of the routing device A can collect user voice commands. The voice processing module extracts the sound feature code of the voice command, generates a sound spectrum, and numbers the frequency components in the sound spectrum to obtain a numbered result set. The SHA-256 algorithm is then used to reduce and encrypt the numbered result set to generate a network password. The electronic device A configures the wireless network 1 for the routing device A based on the network password.
[0102] After wireless network 1 is configured, printers, smart speakers, smart air conditioners, etc. can act as electronic devices B, scan connectable network information, obtain the frequency signal of wireless network 1, collect user voice information, extract sound feature codes from the collected voice information, and then number and encrypt the sound feature codes to obtain a matching password, which is then sent to routing device A to request to join wireless network 1.
[0103] Routing device A verifies the matching password and establishes a connection with electronic device B.
[0104] If a user carries electronic device A and enters the coverage area of wireless network 2 corresponding to routing device B, the user's voice information can also be collected, the sound feature code of the voice information can be extracted, a sound spectrum can be generated, the frequency components in the sound spectrum can be numbered, and a numbered result set can be obtained. The SHA-256 algorithm can then be used to reduce and encrypt the numbered result set to generate a matching password, which can be sent to routing device B to request to join wireless network 2.
[0105] The above-mentioned electronic equipment processes configure the routing device password. There is no need to enter the relevant page to join the wireless network. Manually enter the parameter information, which is simple to operate. The password acquisition process is safe and reliable, avoiding the leakage problem caused by entering the password. At the same time, the user's voiceprint features are collected, and the encoded network password is stable and not easy to be cracked.
[0106] Figure 4 This is a functional module diagram of a network configuration device proposed in an embodiment of the present application. The network configuration device is provided in an electronic device, such as Figure 4 As shown, the device includes:
[0107] The first encoding module 41 is used to encode the first voiceprint feature of the target user when connected to the routing device to be configured to obtain the network password for configuring the routing device to be configured;
[0108] The password setting module 42 is used to set the network password for the routing device to be configured through the connection port of the routing device to be configured.
[0109] Figure 4 The network configuration device provided in the embodiment shown can be used to implement the present invention. Figures 1 to 3 The technical solution of the method embodiment shown, its implementation principle and technical effects can be further referred to the relevant description in the method embodiment.
[0110] Optionally, the password setting module includes:
[0111] A password sending submodule, configured to send a password modification request to the routing device to be configured, wherein the password modification request includes a network password;
[0112] The message receiving submodule is used to receive a password setting success message returned by the routing device to be configured and store the network password.
[0113] Optionally, the device further comprises:
[0114] The collection module is used to collect the voice information of local users when searching for a configured routing device;
[0115] A first feature extraction module is used to extract a second voiceprint feature from the voice information;
[0116] A second encoding module, used for encoding the second voiceprint feature to obtain a matching password;
[0117] a request sending module, configured to send a connection request to the configured routing device, wherein the connection request includes the matching password;
[0118] A response module is used to respond to the response returned by the configured routing device and display a message that the configured routing device has successfully joined the corresponding network; the response is obtained when the configured routing device verifies that the matching password is the same as the locally set network password.
[0119] Optionally, the first encoding module includes:
[0120] A spectrum generation submodule, configured to generate a sound spectrum based on the extracted first voiceprint feature;
[0121] a numbering submodule, configured to number the multiple frequencies in the sound spectrum in the order in which the multiple frequencies change from a first extreme value to a second extreme value;
[0122] The encryption submodule is used to perform encryption calculation on the numbered frequencies to obtain the network password.
[0123] Optionally, the encryption submodule is specifically configured to perform a hash calculation on the numbered frequencies to generate the network password.
[0124] Optionally, the device further comprises:
[0125] The second acquisition module is used to acquire the voice command input by the target user;
[0126] a pre-processing module, configured to perform normalization processing and directional filtering on the voice command to emphasize the voiceprint feature profile in the voice command;
[0127] The second feature extraction module is used to extract features from the voice instruction with the emphasized voiceprint feature contour to obtain the first voiceprint feature.
[0128] The device provided in the above-mentioned embodiment is used to execute the technical solution of the above-mentioned method embodiment. Its implementation principle and technical effects can be further referred to the relevant description in the method embodiment, which will not be repeated here.
[0129] The device provided in the above embodiment can be, for example, a chip or a chip module. The device provided in the above embodiment is used to implement the technical solution of the above method embodiment. Its implementation principle and technical effects can be further referred to the relevant description in the method embodiment, which will not be repeated here.
[0130] Regarding the various modules / units contained in the various devices described in the above embodiments, they can be software modules / units, hardware modules / units, or part of them can be software modules / units and part of them can be hardware modules / units. For example, for various devices applied to or integrated in a chip, the various modules / units contained therein can all be implemented in the form of hardware such as circuits, or at least part of the modules / units can be implemented in the form of software programs, which run on the processor integrated inside the chip, and the remaining modules / units can be implemented in the form of hardware such as circuits; for various devices applied to or integrated in a chip module, the various modules / units contained therein can all be implemented in the form of hardware such as circuits, and different modules / units can be located in the same component of the chip module (such as a chip, circuit module, etc.) or in different components, or at least part of the modules / units can be implemented in the form of software programs. The software program is implemented in the form of a program, which runs on the processor integrated in the chip module, and the remaining modules / units can be implemented in the form of hardware such as circuits; for each device applied to or integrated in the electronic terminal equipment, the various modules / units contained therein can be implemented in the form of hardware such as circuits, and different modules / units can be located in the same component (for example, a chip, circuit module, etc.) or different components in the electronic terminal equipment, or at least some modules / units can be implemented in the form of a software program, which runs on the processor integrated in the electronic terminal equipment, and the remaining (if any) modules / units can be implemented in the form of hardware such as circuits.
[0131] Figure 5 This is a structural diagram of an electronic device provided in an embodiment of the present application. The electronic device 500 includes a processor 510, a memory 511, and a computer program stored in the memory 511 and executable on the processor 510. When the processor 510 executes the program, the steps in the aforementioned method embodiment are implemented. The electronic device provided in the embodiment can be used to execute the technical solution of the method embodiment shown above. The implementation principle and technical effects thereof can be further referred to the relevant description in the method embodiment, and will not be repeated here.
[0132] The embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, wherein the computer instructions enable the computer to execute the present invention. Figures 1 to 3 The network configuration method provided by the illustrated embodiment. The computer-readable storage medium may refer to a non-volatile computer storage medium.
[0133] The above-mentioned computer-readable storage medium can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or component, or any combination thereof. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM) or flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device.
[0134] A computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take a variety of forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0135] Program code embodied on a computer-readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, radio frequency (RF), etc., or any suitable combination of the foregoing.
[0136] Computer program code for performing the operations of this specification may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on the remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0137] The foregoing description of this specification describes specific embodiments. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be performed in an order different from that described in the embodiments and still achieve the desired results. Furthermore, the processes depicted in the accompanying drawings do not necessarily require the specific order shown or the sequential order to achieve the desired results. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0138] In the description of the embodiments of the present application, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of this specification. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine different embodiments or examples described in this specification and features of different embodiments or examples, unless they are mutually inconsistent.
[0139] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of the technical features being referred to. Thus, a feature specified as "first" or "second" may explicitly or implicitly include at least one such feature. Throughout this specification, "plurality" means at least two, such as two or three, unless otherwise specifically defined.
[0140] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of this specification includes alternative implementations in which functions may be performed out of the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of this specification belong.
[0141] The word "if," as used herein, may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to the determination" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)," depending on the context.
[0142] It should be noted that the terminals involved in the embodiments of the present application may include but are not limited to personal computers (PCs), personal digital assistants (PDAs), wireless handheld devices, tablet computers, mobile phones, MP3 players, MP4 players, etc.
[0143] In the several embodiments provided in this specification, it should be understood that the disclosed systems, devices, and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed may be through some interface, indirect coupling or communication connection of devices or units, which may be electrical, mechanical or other forms.
[0144] In addition, the functional units in the various embodiments of this specification may be integrated into a single processing unit, each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or hardware plus software functional units.
[0145] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium and includes a number of instructions for causing a computer device (which can be a personal computer, server, or network device, etc.) or a processor to perform some steps of the method described in various embodiments of this specification. The aforementioned storage medium includes: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, etc., various media that can store program code.
[0146] The above description is only a preferred embodiment of this specification and is not intended to limit this specification. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of this specification should be included in the scope of protection of this specification.
Claims
1. A network configuration method, characterized in that: Applied to electronic equipment, the method includes: When connected to the routing device to be configured, encoding the first voiceprint feature of the target user to obtain a network password for configuring the routing device to be configured; The network password is set for the routing device to be configured through the connection port of the routing device to be configured.
2. The method according to claim 1, characterized in that Setting the network password for the routing device to be configured includes: Sending a password modification request to the routing device to be configured, wherein the password modification request includes a network password; Receive a password setting success message returned by the routing device to be configured, and store the network password.
3. The method according to claim 1, characterized in that The method further comprises: When a configured routing device is found, the local user's voice information is collected; extracting a second voiceprint feature from the voice information; Encoding the second voiceprint feature to obtain a matching password; Sending a connection request to the configured routing device, wherein the connection request includes the matching password; In response to the response returned by the configured routing device, a message is displayed indicating that the configured routing device has successfully joined the corresponding network; the response is obtained when the configured routing device verifies that the matching password is the same as the locally set network password.
4. The method according to claim 1, wherein Encoding the first voiceprint feature of the target user includes: generating a sound atlas based on the extracted first voiceprint feature; Numbering the plurality of frequencies in the sound spectrum according to the order in which the plurality of frequencies change from a first extreme value to a second extreme value; Perform encryption calculation on the numbered frequencies to obtain the network password.
5. The method according to claim 4, characterized in that Performing encryption calculation on the numbered frequencies to obtain the network password includes: Perform hash calculation on the numbered frequencies to generate the network password.
6. The method according to claim 1, wherein Before encoding the first voiceprint feature of the target user, the method further includes: Collecting voice commands input by the target user; performing normalization processing and direction filtering on the voice command to emphasize the voiceprint feature profile in the voice command; Extract features from the voice command with the emphasized voiceprint feature profile to obtain the first voiceprint feature.
7. A network configuration device, characterized in that: Set in an electronic device, the device includes: A first encoding module is configured to encode a first voiceprint feature of a target user when connected to a routing device to be configured, and obtain a network password for configuring the routing device to be configured; The password setting module is used to set the network password for the routing device to be configured through the connection port of the routing device to be configured.
8. The device according to claim 1, characterized in that The password setting module includes: A password sending submodule, configured to send a password modification request to the routing device to be configured, wherein the password modification request includes a network password; The message receiving submodule is used to receive a password setting success message returned by the routing device to be configured and store the network password.
9. A device comprising: at least one processor; as well as At least one memory communicatively connected to the processor, characterized in that The memory stores program instructions that can be executed by the processor, and the processor can execute the method according to any one of claims 1 to 6 by calling the program instructions.
10. A computer-readable storage medium storing computer instructions, characterized in that: The computer instructions enable the computer to execute the method according to any one of claims 1 to 6.