CN113782023A - Voice control method and system based on program control instruction - Google Patents

Voice control method and system based on program control instruction Download PDF

Info

Publication number
CN113782023A
CN113782023A CN202111129109.1A CN202111129109A CN113782023A CN 113782023 A CN113782023 A CN 113782023A CN 202111129109 A CN202111129109 A CN 202111129109A CN 113782023 A CN113782023 A CN 113782023A
Authority
CN
China
Prior art keywords
voice
control
program
instruction
instrument
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111129109.1A
Other languages
Chinese (zh)
Inventor
刘公政
田野
周钦山
张明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CLP Kesiyi Technology Co Ltd
Original Assignee
CLP Kesiyi Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by CLP Kesiyi Technology Co Ltd filed Critical CLP Kesiyi Technology Co Ltd
Priority to CN202111129109.1A priority Critical patent/CN113782023A/en
Publication of CN113782023A publication Critical patent/CN113782023A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/28Constructional details of speech recognition systems
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • G10L2015/223Execution procedure of a spoken command

Abstract

The invention provides a voice control method and a system based on a program control instruction, wherein the method comprises the following steps: acquiring user voice; the voice recognition and control program analyzes and recognizes the acquired user voice to obtain a recognition result; the conversion from the identification result to the SCPI instruction is completed through an SCPI instruction mapping program; and completing instrument control according to the SCPI instruction. The invention adopts the voice recognition technology, has excellent compatibility and flexibility, and can be applied to a signal/spectrum analyzer, signal analysis software, any testing instrument and equipment compatible with SCPI program control instructions and the like.

Description

Voice control method and system based on program control instruction
Technical Field
The invention relates to the technical field of computers, in particular to a voice control method and system based on a program control instruction.
Background
The statements in this section merely provide background information related to the present disclosure and may not necessarily constitute prior art.
Speech Recognition technology, also known as Automatic Speech Recognition (ASR), aims at converting the vocabulary content in human Speech into computer-readable input, such as keystrokes, binary codes or character sequences. The speech recognition is a cross technology for designing a plurality of disciplines such as psychology, physiology, acoustics, linguistics, information theory, signal processing, computer discipline, pattern recognition and the like, and has wide application prospect. The voice recognition technology firstly samples voice signals, extracts acoustic features, utilizes corresponding technology and theory to construct an acoustic model, and adopts methods such as a random model and a neural network to carry out voice processing to obtain a recognition result.
SCPI (Programmable instrument Standard Commands) was introduced in 1990 to define a set of Standard grammars, command structures and data formats for controlling Programmable test and measurement Instruments. The command can be used for any instrument, and the same type of command belongs to the same subsystem. SCPI also defines several instrument classes. The SCPI command is an ASCII string that is passed into the instrument through the physical transport layer. The commands are composed of a series of keywords, and some of them need to include parameters. In the protocol, the commands are specified in the form: CONFigure. In use, either full names or abbreviations containing capital letters may be written. The feedback of the instrument to the query command is also usually ASCII code, and binary data is also available when large amounts of data are transmitted.
The existing signal/spectrum analyzer supported control modes mainly include panel key control, touch screen touch control operation and remote control means in a local area network. The panel key control and touch screen touch control means are essentially control means, and control over the instrument is completed by clicking the buttons, and the difference is that the physical keys are clicked in a panel key mode, and the virtual keys are clicked on the touch screen; and the remote control means in the local area network adopts SCPI program control instructions to control the instrument from an upper computer. The three control modes all need to have certain professional knowledge and have certain depth of familiarity and understanding with the instrument to better control the instrument, but the operation flow is complex, the menu keys are numerous, the operation difficulty is further improved due to different instrument menus and key layouts of different versions, especially in a remote control means, a user needs to directly memorize thousands of SCPI instructions, and the user experience is very poor.
At present, no signal/spectrum analyzer product in the market supports a voice control means, but control means such as panel physical keys, touch screen virtual keys, SCPI instructions and the like are still adopted, so that the operation complexity is high, and the convenience is poor.
Disclosure of Invention
The invention adopts a general commercial cross-platform off-line/on-line voice recognition SDK with higher flexibility and expansibility to complete voice recognition, and further converts a voice recognition result into an SCPI standard command to realize the control of an instrument.
According to some embodiments, the invention adopts the following technical scheme:
a speech control method based on program control instruction includes the following steps:
acquiring user voice;
the voice recognition and control program analyzes and recognizes the acquired user voice to obtain a recognition result;
the conversion from the identification result to the SCPI instruction is completed through an SCPI instruction mapping program;
and completing instrument control according to the SCPI instruction.
Further, the completing the instrument control according to the SCPI instruction includes:
and after the converted SCPI instruction is obtained, calling a program control interface of the signal/spectrum analyzer, and sending the SCPI instruction to the instrument to complete the control of the instrument.
Further, when the voice command acquisition device is started, including the signal/spectrum analyzer, the voice recognition and control program is started along with the starting of the instrument, runs in a background process mode and waits to be awakened, and when the awakening word specified by the user is acquired, the voice recognition and control program is awakened to run in the foreground to display the user interaction interface.
Further, the acquiring of the voice instruction includes waiting for the user to perform voice input after the voice recognition and control program is awakened, and returning the program to the background to wait for awakening again if the voice input of the user is not acquired within the specified time after the awakening.
Further, the acquiring of the voice instruction further comprises acquiring the voice of the user through a built-in or external microphone of the instrument, and continuously acquiring the voice without exceeding the preset time by single maximum support.
Further, after the recognition result is obtained, the corresponding Chinese or English recognition result is output according to the user setting, the observation recognition result of the user is obtained, whether the SCPI instruction conversion is carried out or not is judged, and if the observation recognition result of the user is obtained, the voice of the user is obtained again if the SCPI instruction conversion is not carried out.
A voice control system based on a program control command,
the method comprises a control terminal and an instrument which are communicated with each other, wherein the control terminal executes the following steps:
acquiring a voice instruction;
the voice recognition and control program analyzes and recognizes the acquired voice command to obtain a recognition result;
the conversion from the identification result to the SCPI instruction is completed through an SCPI instruction mapping program;
and the control terminal sends the obtained SCPI instruction to a control module of the instrument, and the control module of the instrument completes instrument control according to the SCPI instruction.
A voice control system based on programmed instructions, comprising:
a voice acquisition module configured to acquire a voice instruction;
the voice recognition module is configured to analyze and recognize the acquired voice command by the voice recognition and control program to obtain a recognition result;
the SCPI instruction conversion module is configured to complete conversion from the identification result to the SCPI instruction through an SCPI instruction mapping program;
and the control instrument module is configured to complete instrument control according to the SCPI instruction.
A computer-readable storage medium having stored therein a plurality of instructions adapted to be loaded by a processor of a terminal device and to execute a method of speech control based on programmed instructions.
A terminal device comprising a processor and a computer readable storage medium, the processor being configured to implement instructions; the computer readable storage medium is used for storing a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the voice control method based on the program control instructions.
Compared with the prior art, the invention has the beneficial effects that:
the invention adopts a general commercial cross-platform off-line/on-line voice recognition SDK with higher flexibility and expansibility to complete voice recognition, and converts a voice recognition result into an SCPI standard command to realize the control of an instrument; the voice control method has universality, and the method is suitable for other instruments compatible with SCPI instructions, such as a signal source, a vector network analyzer, a comprehensive tester and the like, besides a signal/spectrum analyzer; the method is suitable for measuring instruments such as a signal/spectrum analyzer, and the like, and improves the user's control experience.
The invention adopts the voice recognition technology, has excellent compatibility and flexibility, and can be applied to a signal/spectrum analyzer, signal analysis software, any testing instrument and equipment compatible with SCPI program control instructions and the like.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, illustrate embodiments of the application and, together with the description, serve to explain the application and are not intended to limit the application.
Fig. 1 is a flowchart of the present embodiment.
The specific implementation mode is as follows:
the invention is further described with reference to the following figures and examples.
It should be noted that the following detailed description is exemplary and is intended to provide further explanation of the disclosure. Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs.
It is noted that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of example embodiments according to the present application. As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, and it should be understood that when the terms "comprises" and/or "comprising" are used in this specification, they specify the presence of stated features, steps, operations, devices, components, and/or combinations thereof, unless the context clearly indicates otherwise.
Example 1.
As shown in fig. 1, a speech control method based on program control command includes the following steps:
step 1: voice awakening;
step 2: voice recording;
and step 3: and (3) after the voice recognition and the voice input are finished, analyzing and recognizing the voice by the voice recognition and control program, outputting a corresponding Chinese or English recognition result according to the setting of the user, judging whether the recognition is correct or not by observing the recognition result by the user, and if the recognition is correct, entering the step 4, and if the recognition is incorrect, entering the step 2.
And 4, step 4: and SCPI instruction conversion, namely, based on the voice recognition result, the conversion from the recognition result to the SCPI instruction is completed through an SCPI instruction mapping program, and a user can select whether to display the converted SCPI instruction.
And 5: and controlling the instrument, namely calling a program control interface of the signal/spectrum analyzer by the program after the converted SCPI instruction is obtained, and sending the SCPI instruction to the instrument to complete the control of the instrument.
Step 6: the program exits.
In particular, the method comprises the following steps of,
step 1: and (5) voice awakening. When the signal/spectrum analyzer is started, the voice recognition and control program is started along with the starting of the analyzer, runs in a background process mode and waits to be awakened. When the user speaks a designated wake-up word, such as "hello, analyzer", the speech recognition and control program is woken up to come to the foreground for operation, and the user interaction interface is displayed.
Step 2: and (5) voice recording. After the voice recognition and control program is awakened, the user is waited to input voice, the user can input voice through a built-in or external microphone of the instrument, voice input is supported for no more than 2 minutes at the longest time, and voice can be continuously input. After awakening, if the user does not perform voice recording within 3 seconds, the program returns to the background and returns to the step 1.
And step 3: and (5) voice recognition. After the voice input is finished, the program analyzes and recognizes the voice, and outputs a Chinese or English recognition result according to the setting of the user, the user observes the recognition result to judge whether the recognition is correct, if so, the step 4 is carried out, and if not, the step 2 is carried out.
And 4, step 4: SCPI instruction translation. And based on the voice recognition result, the conversion from the recognition result to the SCPI instruction is completed through the SCPI instruction mapping program. The user may select whether to display the converted SCPI instructions.
And 5: and controlling the instrument. After the converted SCPI instruction is obtained, the program calls a program control interface (which is developed by an instrument manufacturer and needs to be obtained in advance) of the signal/spectrum analyzer, and the SCPI instruction is sent to the instrument to complete the control of the instrument.
Step 6: the program exits. After completing one voice control operation on the signal/spectrum analyzer, the user can continue to perform voice control. If the voice recognition and control program does not receive the next voice input within 3 seconds, the program automatically returns to the background operation, namely the step 1 is returned, the user can also actively close the program interface, and the program also returns to the background operation and returns to the step 1.
Example 2.
A speech control system based on program control instruction, characterized by that, including control terminal and instrument of intercommunication, the control terminal carries out the following step:
acquiring a voice instruction;
the voice recognition and control program analyzes and recognizes the acquired voice command to obtain a recognition result;
the conversion from the identification result to the SCPI instruction is completed through an SCPI instruction mapping program;
and the control terminal sends the obtained SCPI instruction to a control module of the instrument, and the control module of the instrument completes instrument control according to the SCPI instruction.
Example 3.
A voice control system based on programmed instructions, comprising:
a voice acquisition module configured to acquire a voice instruction;
the voice recognition module is configured to analyze and recognize the acquired voice command by the voice recognition and control program to obtain a recognition result;
the SCPI instruction conversion module is configured to complete conversion from the identification result to the SCPI instruction through an SCPI instruction mapping program;
and the control instrument module is configured to complete instrument control according to the SCPI instruction.
Example 4.
A computer-readable storage medium, in which a plurality of instructions are stored, the instructions being adapted to be loaded by a processor of a terminal device and to execute a voice control method based on program control instructions provided in this embodiment.
Example 5.
A terminal device comprising a processor and a computer readable storage medium, the processor being configured to implement instructions; the computer readable storage medium is used for storing a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the voice control method based on the program control instructions provided by the embodiment.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Although the embodiments of the present invention have been described with reference to the accompanying drawings, it is not intended to limit the scope of the present invention, and it should be understood by those skilled in the art that various modifications and variations can be made without inventive efforts by those skilled in the art based on the technical solution of the present invention.

Claims (10)

1. A speech control method based on program control command is characterized by comprising the following steps:
acquiring user voice;
the voice recognition and control program analyzes and recognizes the acquired user voice to obtain a recognition result;
the conversion from the identification result to the SCPI instruction is completed through an SCPI instruction mapping program;
and completing instrument control according to the SCPI instruction.
2. The program-controlled command-based voice control method of claim 1,
the control of the instrument is completed according to the SCPI instruction, and the method comprises the following steps:
and after the converted SCPI instruction is obtained, calling a program control interface of the signal/spectrum analyzer, and sending the SCPI instruction to the instrument to complete the control of the instrument.
3. The program-controlled command-based voice control method according to claim 2,
when the voice command acquisition device is started, the voice recognition and control program is started along with the starting of the instrument, runs in a background process mode and waits to be awakened, and when the awakening word designated by the user is acquired, the voice recognition and control program is awakened to run in the foreground to display a user interaction interface.
4. A program-controlled command-based speech control method according to claim 3,
and the voice acquiring instruction comprises that after the voice recognition and control program is awakened, the voice recognition and control program waits for the voice input of the user, and after the voice recognition and control program is awakened, if the voice input of the user is not acquired within the specified time, the program returns to the background and waits for being awakened again.
5. The program-controlled command-based voice control method according to claim 4,
the voice acquisition instruction further comprises the step of acquiring the voice of the user through a built-in or external microphone of the instrument, and the voice acquisition within the preset time is supported for the longest time at a single time, so that the voice can be continuously acquired.
6. The program-controlled command-based voice control method of claim 1,
and after the recognition result is obtained, outputting a corresponding Chinese or English recognition result according to the user setting, acquiring the observation recognition result of the user, judging whether SCPI instruction conversion is carried out or not, and if the observation recognition result of the user is not carried out, acquiring the user voice again.
7. A speech control system based on program control instruction, characterized by that, including control terminal and instrument of intercommunication, the control terminal carries out the following step:
acquiring a voice instruction;
the voice recognition and control program analyzes and recognizes the acquired voice command to obtain a recognition result;
the conversion from the identification result to the SCPI instruction is completed through an SCPI instruction mapping program;
and the control terminal sends the obtained SCPI instruction to a control module of the instrument, and the control module of the instrument completes instrument control according to the SCPI instruction.
8. A voice control system based on programmed instructions, comprising:
a voice acquisition module configured to acquire a voice instruction;
the voice recognition module is configured to analyze and recognize the acquired voice command by the voice recognition and control program to obtain a recognition result;
the SCPI instruction conversion module is configured to complete conversion from the identification result to the SCPI instruction through an SCPI instruction mapping program;
and the control instrument module is configured to complete instrument control according to the SCPI instruction.
9. A computer-readable storage medium characterized by: a plurality of instructions are stored, the instructions are suitable for being loaded by a processor of the terminal equipment and executing a voice control method based on the program control instructions according to any one of claims 1-6.
10. A terminal device is characterized in that: the system comprises a processor and a computer readable storage medium, wherein the processor is used for realizing instructions; a computer-readable storage medium for storing a plurality of instructions adapted to be loaded by a processor and to perform a method of voice control based on programmed instructions according to any one of claims 1-6.
CN202111129109.1A 2021-09-26 2021-09-26 Voice control method and system based on program control instruction Pending CN113782023A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111129109.1A CN113782023A (en) 2021-09-26 2021-09-26 Voice control method and system based on program control instruction

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111129109.1A CN113782023A (en) 2021-09-26 2021-09-26 Voice control method and system based on program control instruction

Publications (1)

Publication Number Publication Date
CN113782023A true CN113782023A (en) 2021-12-10

Family

ID=78853598

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111129109.1A Pending CN113782023A (en) 2021-09-26 2021-09-26 Voice control method and system based on program control instruction

Country Status (1)

Country Link
CN (1) CN113782023A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114979817A (en) * 2022-08-02 2022-08-30 四川云策讯科通信技术有限公司 Interphone base station and communication method for adjusting configuration of interphone base station

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105551490A (en) * 2015-12-23 2016-05-04 中国电子科技集团公司第四十一研究所 Intelligent voice interaction system of electronic measuring instrument and method thereof
CN105810188A (en) * 2014-12-30 2016-07-27 联想(北京)有限公司 Information processing method and electronic equipment
CN107516516A (en) * 2017-08-21 2017-12-26 北京格致创想科技有限公司 Instrument intelligent control method and system based on interactive voice
CN110211609A (en) * 2019-06-03 2019-09-06 四川长虹电器股份有限公司 A method of promoting speech recognition accuracy
CN110782896A (en) * 2019-11-08 2020-02-11 中国电子科技集团公司第四十一研究所 Measuring instrument testing system and method based on voice control

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105810188A (en) * 2014-12-30 2016-07-27 联想(北京)有限公司 Information processing method and electronic equipment
CN105551490A (en) * 2015-12-23 2016-05-04 中国电子科技集团公司第四十一研究所 Intelligent voice interaction system of electronic measuring instrument and method thereof
CN107516516A (en) * 2017-08-21 2017-12-26 北京格致创想科技有限公司 Instrument intelligent control method and system based on interactive voice
CN110211609A (en) * 2019-06-03 2019-09-06 四川长虹电器股份有限公司 A method of promoting speech recognition accuracy
CN110782896A (en) * 2019-11-08 2020-02-11 中国电子科技集团公司第四十一研究所 Measuring instrument testing system and method based on voice control

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114979817A (en) * 2022-08-02 2022-08-30 四川云策讯科通信技术有限公司 Interphone base station and communication method for adjusting configuration of interphone base station

Similar Documents

Publication Publication Date Title
US6311159B1 (en) Speech controlled computer user interface
CN108829235B (en) Voice data processing method and electronic device supporting the same
KR100354365B1 (en) Speech command input recognition system for interactive computer display with interpretation of ancillary relevant speech query terms into commands
US5425128A (en) Automatic management system for speech recognition processes
JP3662780B2 (en) Dialogue system using natural language
US5748841A (en) Supervised contextual language acquisition system
US7054817B2 (en) User interface for speech model generation and testing
JP2011059659A (en) Method and system for activating multiple functions including first function and second function
CN108717853B (en) Man-machine voice interaction method, device and storage medium
CN106251863B (en) A kind of instruction type speech control system and control method based on smart machine
US20080177542A1 (en) Voice Recognition Program
CN110782896A (en) Measuring instrument testing system and method based on voice control
JP2011504624A (en) Automatic simultaneous interpretation system
CN110462647A (en) The method of the function of electronic equipment and execution electronic equipment
Kumar et al. Enabling the rapid development and adoption of speech-user interfaces
CN102063282B (en) Chinese speech input system and method
CN113782023A (en) Voice control method and system based on program control instruction
KR101548907B1 (en) multilingual dialogue system and method thereof
CN101253547B (en) Speech dialog method and system
CN110491394A (en) Wake up the acquisition methods and device of corpus
CN106648054A (en) Multi-mode interactive method for RealSense-based accompanying robot
CN109461439A (en) A kind of acquisition method of voice messaging instruction
CN109155129A (en) Language program-controlled system
CN114999457A (en) Voice system testing method and device, storage medium and electronic equipment
Rosenfeld et al. Universal Human-Machine Speech Interface

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination