The subject matter herein generally relates to testing technology, and especially to a voice control method, device, and a storage medium.
In the manufacturing process of electronic devices, such as mobile phones, it is usually necessary to use test equipment to test their functions. At present, testers usually operate the test equipment manually. When their hands are occupied to find points, weld ground wires, and use probe rods to contact the measured points to lead out signals, it is impossible to carry out multiple test operations. Therefore, the test efficiency is low.
Many aspects of the disclosure can be better understood with reference to the following drawings. The components in the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the disclosure. Moreover, in the drawings, like reference numerals designate corresponding parts throughout the several views.
In order to provide a clear understanding of the objects, features, and advantages of the present disclosure, the same is given with reference to the drawings and specific embodiments. It should be noted that non-conflicting embodiments in the present disclosure and the features in the embodiments may be combined with each other without conflict.
In the following description, numerous specific details are set forth in order to provide a full understanding of the present disclosure. The present disclosure may be practiced otherwise than as described herein. The following specific embodiments are not to limit the scope of the present disclosure.
Unless defined otherwise, all technical and scientific terms herein have the same meaning as used in the field of the art as generally understood. The terms used in the present disclosure are for the purposes of describing particular embodiments and are not intended to limit the present disclosure.
The present disclosure, referencing the accompanying drawings, is illustrated by way of examples and not by way of limitation. It should be noted that references to “an” or “one” embodiment in this disclosure are not necessarily to the same embodiment, and such references mean “at least one.”
Furthermore, the term “module”, as used herein, refers to logic embodied in hardware or firmware, or to a collection of software instructions, written in a programming language, such as Java, C, or assembly. One or more software instructions in the modules can be embedded in firmware, such as in an EPROM. The modules described herein can be implemented as either software and/or hardware modules and can be stored in any type of non-transitory computer-readable medium or another storage device. Some non-limiting examples of non-transitory computer-readable media include CDs, DVDs, BLU-RAY, flash memory, and hard disk drives.
Referring to
The voice control system 100 can include one or more functional modules that may be stored in the storage device 10 and executed by the processor 20. The one or more functional modules consist of program code segments that can be executed to implement one or more functions. In at least one embodiment, the voice control system 100 can include a plurality of modules. The plurality of modules can include, but is not limited to, a configuring module 101, an obtaining module 102, an outputting module 103, an analyzing module 104, a controlling module 105, and a feedback module 106. The modules 101-106 can be described in detail in embodiments of the voice control system 100.
The voice control device 1 can communicate with the test device 2 in a wired or wireless manner, thus controlling the test device 2 by transmitting control instructions to the test device 2. It can be understood by those skilled in the art that the schematic diagram is merely an example of the voice control device 1, it does not constitute a limitation of the voice control device 1, other examples may include more or fewer components than those illustrated, or combine some components, or different components. For example, the voice control device 1 may further include a network access device, a bus, and the like.
In at least one embodiment, the test device 2 may be a computer. The electronic device 4 can be a mobile phone. The voice control device 1 controls the test device 2 to test the electronic device 4.
In some embodiments, the processor 20 may be a central processing unit (CPU), and other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), and off-the-shelf programmable gate arrays, Field-Programmable Gate Array (FPGA), or another programmable logic device, discrete gate, or transistor logic device, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The processor 20 is a control center of the voice control device 1 and connects components of the voice control device 1 with various interfaces and lines.
In some embodiments, the storage device 10 can be used to store program codes of computer-readable programs and various data, such as the voice control system 100. The processor 20 executes the voice control system 100 and reads data stored in the storage device 10 to implement functions of the voice control device 1. The storage device 10 can include a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically-erasable programmable read-only memory (EEPROM)), a compact disc read-only memory (CD-ROM), or other optical disk storage, magnetic disk storage, magnetic tape storage, or any other storage medium readable by the voice control device 1 including smart media cards (SMC), secure digital (SD) cards, and flash cards.
Referring to
The configuring module 101 is configured to configure parameters of the speaker 60. The parameters may include, but are not limited to, open/close the speaker 60 and the volume of the speaker 60. The obtaining module 102 is configured to obtain one or more voice commands. The outputting module 103 is configured to output the one or more voice commands according to the parameters. The analyzing module 104 is configured to analyze the one or more voice commands and generate one or more control instructions based on the one or more voice commands. The controlling module 105 is configured to transmit the one or more control instructions to the test device 2 to control the test device 2 to perform corresponding actions. The feedback module 106 is configured to output feedback voice according to a state how the control instructions are performed. Based on the feedback voice, a user can know whether the control instructions are transmitted successfully.
At block 50, the configuring module 101 configures parameters of the speaker 60. In at least one embodiment, the parameters may include open/close the speaker 60 and a volume of the speaker 60.
At block 51, the obtaining module 102 obtains one or more voice commands.
In at least one embodiment, the microphone 40 captures a user's voice, and the D/A converter 50 converts analog voice signal to digital signal by performing A/D conversion to obtain a voice command. The obtaining module 102 obtains the voice command from the D/A converter 50.
At block 52, the outputting module 103 outputs the voice command.
It should be understood that, if the voice control system 100 is configured the parameter of the speaker 60 to be open the speaker 60, block 52 can be performed. If the voice control system 100 is configured the parameter of the speaker 60 to be close the speaker 60, block 52 may be omitted and the process goes to block 53.
At block 53, the analyzing module 104 analyzes the voice command and generates at least one control instruction based on the voice command.
Referring also to
At Block 531, the analyzing module 104 storing a plurality of keywords corresponding to a plurality of preset voice commands to a database. The keywords may include test related keywords, for example, start a computer, open a command prompt (CMD), confirm, repeat testing, quick assignment, and so on.
At block 532, the analyzing module 104 matches the voice command to the preset voice commands stored in the database to obtain one or more keywords corresponding to the voice command. If there isn't a preset voice command corresponding to the voice commands, the voice commands are discarded. If there are one or more present voice commands corresponding to the voice command, the voice command is stored into the storage device 10. In at least one embodiment, the voice commands may be corresponding to two or more keywords.
At block 533, the analyzing module 104 generates at least one command sentence.
In at least one embodiment, each of the keywords stored in the database has a corresponding ID, the command sentence can be obtained by combining the keywords according to an order of the ID of each keyword corresponding to the voice commands. For example, the keywords may include, 001 representing start a computer, 002 representing open the command prompt (CMD), 003 representing conform, 004 representing repeat testing, 005 representing quick assignment. The voice commands may be corresponding to two or more keywords. For example, the two or more keywords may include, 001 representing start a computer, 002 representing open the command prompt (CMD), 003 representing conform. The command sentence corresponding to the voice commands can be “start a computer”, “open a command prompt”, and “confirm by combining the keywords 001, 002 and 003”.
In at least one embodiment, the analyzing module 104 combines the keywords in an order in which the keywords occur in the voice command. For example, the voice command includes three keywords occuring in sequence. The three keywords are respectively 001, 002 and 003. Therefore, the command sentence can be “start a computer”, “open a command prompt”, and “confirm by combining the keywords 001, 002 and 003” according to an order in which the keywords occur in the voice command.
At block 534, the analyzing module 104 generates a command instruction based on the command sentence.
Block 54, the controlling module 105 transmits the control instruction to the test device 2 to control the test device 2 to perform corresponding actions to test the electronic device 4.
In at least one embodiment, the database stores feedback voice corresponding to keywords. For example, the keyword “start a computer” is corresponding to two kinds of feedback voice: one refers to start the computer successfully, the other one refers to fail to start the computer. The keyword “open the command prompt” is corresponding to two kinds of feedback voice: one is to open the command prompt successfully, the other one is to fail to open the command prompt successfully.
In at least one embodiment, the feedback module 106 obtains feedback voice according to a state how the control instruction is performed and outputs the feedback voice (block 55). A user can quickly know the state how the control instruction is performed based on the feedback voice.
The voice control device, method and storage medium can obtain voice commands, analyze the voice commands to generate control instructions, and transmit the control instructions to the test device to control the test device to perform actions to test the electronic device. That is, the voice control device can control the test device to test the electronic device automatically without human involvement.
The above description only describes embodiments of the present disclosure, and is not intended to limit the present disclosure, various modifications and changes can be made to the present disclosure. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present disclosure are intended to be included within the scope of the present disclosure.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/CN2020/073299 | Jan 2020 | US |
Child | 17033840 | US |