CN112149425A - Terminal control method, device, equipment and computer readable storage medium - Google Patents

Terminal control method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN112149425A
CN112149425A CN202010972280.8A CN202010972280A CN112149425A CN 112149425 A CN112149425 A CN 112149425A CN 202010972280 A CN202010972280 A CN 202010972280A CN 112149425 A CN112149425 A CN 112149425A
Authority
CN
China
Prior art keywords
terminal
terminal control
information
text information
intention information
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
CN202010972280.8A
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.)
Shenzhen Konka Electronic Technology Co Ltd
Original Assignee
Shenzhen Konka Electronic 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 Shenzhen Konka Electronic Technology Co Ltd filed Critical Shenzhen Konka Electronic Technology Co Ltd
Priority to CN202010972280.8A priority Critical patent/CN112149425A/en
Publication of CN112149425A publication Critical patent/CN112149425A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/30Semantic analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/30Semantic analysis
    • G06F40/35Discourse or dialogue representation
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; 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 TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/26Speech to text systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • Health & Medical Sciences (AREA)
  • Theoretical Computer Science (AREA)
  • Artificial Intelligence (AREA)
  • General Health & Medical Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention discloses a terminal control method, a device, equipment and a computer readable storage medium, wherein the terminal control method comprises the following steps: acquiring text information for controlling a terminal; generating intention information corresponding to the text information according to a preset conversion rule; the terminal control unit reads the operation instruction in the intention information, executes the operation related to the operation instruction, and the intention information generated according to the preset conversion rule is easy to be read by the terminal, so that the efficiency of identifying the control instruction by the terminal is improved, and the experience of a user is further improved.

Description

Terminal control method, device, equipment and computer readable storage medium
Technical Field
The present invention relates to the field of data processing, and in particular, to a terminal control method, apparatus, device, and computer-readable storage medium.
Background
Most of the conventional terminal control technologies use predefined common sentences or regular patterns, and then match the sentences input by the user to realize semantic recognition, but due to the diversity of user languages, the terminal control technology cannot be successfully matched in many times, and good user experience cannot be brought when the terminal control technology is applied to control terminal equipment, so that the existing terminal control technology needs to be further improved, and the user experience is improved.
Disclosure of Invention
The invention mainly aims to provide a terminal control method, a terminal control device, terminal control equipment and a computer readable storage medium, and aims to solve the problems of low efficiency of terminal identification control statements and poor user experience. The terminal control method comprises the following steps:
acquiring text information for controlling a terminal;
generating intention information corresponding to the text information according to a preset conversion rule;
and sending the intention information to a terminal control unit to realize the control of the terminal.
Optionally, the step of acquiring text information for controlling the terminal includes:
collecting voice information used for controlling a terminal, and converting the voice information into text information through an ASR technology.
Optionally, the step of generating intention information corresponding to the text information according to a preset conversion rule includes:
calling a natural language processing function through a preset protocol;
and generating intention information corresponding to the text information based on the natural language processing function.
Optionally, the generating of the intention information corresponding to the text information based on the natural language processing function includes:
extracting key words in the text information through the natural language processing function;
and acquiring intention information according to the keywords.
Optionally, the step of obtaining intention information according to the keyword includes:
obtaining word vectors of the keywords from a preset vector model, and determining real numbers corresponding to the keywords by taking the word vectors as indexes;
and constructing a mathematical model according to the real numbers, and determining the mathematical model as intention information.
Optionally, the sending the intention information to a terminal control unit to realize control over the terminal includes:
and sending the intention information to a terminal control unit based on the communication mode of the Internet of things.
In addition, to achieve the above object, the present invention also provides a terminal control device including:
the acquisition module is used for acquiring text information for controlling the terminal;
the generating module is used for generating intention information corresponding to the text information according to a preset conversion rule;
and the sending module is used for sending the intention information to the terminal control unit so as to realize the control of the terminal.
Further, the obtaining module further comprises:
the acquisition unit is used for acquiring voice information used for controlling the terminal;
and the conversion unit is used for converting the voice information into text information through an ASR technology.
In addition, in order to achieve the above object, the present invention further provides a terminal control device, which includes a memory, a processor, and a terminal control program stored on the memory and operable on the processor, and when executed by the processor, the terminal control device implements the steps of the terminal control method as described above.
Further, to achieve the above object, the present invention also provides a computer-readable storage medium having the terminal control program stored thereon, which when executed by a processor, implements the steps of the terminal control method as described above.
Drawings
FIG. 1 is a diagram illustrating a hardware configuration of an apparatus for implementing various embodiments of the invention;
fig. 2 is a flowchart illustrating a terminal control method according to a first embodiment of the present invention.
The implementation, functional features and advantages of the present invention will be described with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The invention provides a terminal control device, and referring to fig. 1, fig. 1 is a schematic structural diagram of a hardware operating environment according to an embodiment of the present invention.
It should be noted that fig. 1 is a schematic structural diagram of a hardware operating environment of the terminal control device. The terminal control device according to the embodiment of the present invention may be a PC (Personal Computer), a portable Computer, a server, or the like.
As shown in fig. 1, the terminal control device may include: a processor 1001, such as a CPU, a memory 1005, a user interface 1003, a network interface 1004, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Optionally, the terminal control device may further include an RF (Radio Frequency) circuit, a sensor, a WiFi module, and the like.
Those skilled in the art will appreciate that the terminal control device configuration shown in fig. 1 does not constitute a limitation of the terminal control device, and may include more or fewer components than those shown, or some components in combination, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a computer storage readable storage medium, may include therein an operating system, a network communication module, a user interface module, and a terminal control program. The operating system is a program for managing and controlling hardware and software resources of the terminal control device, and supports the operation of the terminal control program and other software or programs.
The terminal control device shown in fig. 1 may be used to solve the problems of inefficient terminal recognition and control statements and poor user experience, and the user interface 1003 is mainly used to detect or output various information, such as voice information and intention information; the network interface 1004 is mainly used for interacting with a background server and communicating; the processor 1001 may be configured to call a terminal control program stored in the memory 1005 and perform the following operations:
acquiring text information for controlling a terminal;
generating intention information corresponding to the text information according to a preset conversion rule;
and sending the intention information to a terminal control unit to realize the control of the terminal.
Further, the step of acquiring text information for controlling the terminal includes:
collecting voice information used for controlling a terminal, and converting the voice information into text information through an ASR technology.
Further, the step of generating intention information corresponding to the text information according to a preset conversion rule includes:
calling a natural language processing function through a preset protocol;
and generating intention information corresponding to the text information based on the natural language processing function.
Further, the generating of the intention information corresponding to the text information based on the natural language processing function includes:
extracting key words in the text information through the natural language processing function;
and acquiring intention information according to the keywords.
Further, the step of obtaining intention information according to the keyword includes:
obtaining word vectors of the keywords from a preset vector model, and determining real numbers corresponding to the keywords by taking the word vectors as indexes;
and constructing a mathematical model according to the real numbers, and determining the mathematical model as intention information.
Further, the step of sending the intention information to a terminal control unit to realize the control of the terminal includes:
and sending the intention information to a terminal control unit based on the communication mode of the Internet of things.
According to the method and the device, the text information for the terminal is obtained, the intention information corresponding to the text information is generated according to the preset conversion rule, the intention information is sent to the terminal control unit, the terminal control unit reads the operation instruction in the intention information, the operation related to the operation instruction is executed, the intention information generated according to the preset conversion rule is easy to read by the terminal, the efficiency of the terminal for identifying the control instruction is improved, and the experience of a user is further improved.
The specific implementation of the mobile terminal of the present invention is basically the same as the following embodiments of the terminal control method, and is not described herein again.
Based on the above structure, various embodiments of the terminal control method of the present invention are proposed.
The invention provides a terminal control method.
Referring to fig. 2, fig. 2 is a flowchart illustrating a terminal control method according to a first embodiment of the present invention.
In the present embodiment, an embodiment of a terminal control method is provided, and it should be noted that although a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in an order different from that here.
In this embodiment, the terminal control method includes:
step S10, acquiring text information for controlling the terminal;
the terminal control method provided by the embodiment is used for controlling the terminal by inputting voice by a user. The user inputs voice information which contains an operation instruction of commanding the terminal according to personal intention, but the voice information cannot be recognized by the terminal, so that the voice information must be firstly converted into text information.
Further, step S10 includes:
step a, collecting voice information used for controlling a terminal, and converting the voice information into text information through an ASR technology.
ASR (Automatic Speech Recognition) technology is a technology for converting human Speech into text, and after Speech information input by a user for controlling a terminal is collected, the Speech information is converted into text information by using the ASR technology, and it can be understood that the text information contains an operation instruction of a command terminal.
Step S20, generating intention information corresponding to the text information according to a preset conversion rule;
the preset conversion rule is set by a researcher and is used for converting text information into information readable by a terminal. The intention information is information readable by the terminal, the text information is converted into the intention information according to a preset conversion rule, and the intention information is a language readable by the terminal.
And step S30, sending the intention information to the terminal control unit to realize the control of the terminal.
And sending the intention information generated according to the preset conversion rule to the terminal, and when the terminal reads the intention information, executing the operation indicated in the intention information, thereby realizing the control of the terminal.
Further, the step S30 includes:
and b, sending the intention information to a terminal control unit based on the communication mode of the Internet of things.
The terminal in the embodiment can be an air conditioner, a refrigerator and the like, and the communication mode of the internet of things can realize control over various intelligent furniture devices. Through the communication mode of the Internet of things, intention information is sent to the control unit of the terminal, and control over various intelligent household devices can be achieved.
According to the embodiment, the text information used for controlling the terminal is obtained, the intention information corresponding to the text information is generated according to the preset conversion rule, the intention information is sent to the terminal control unit, the terminal control unit reads the operation instruction in the intention information, the operation related to the operation instruction is executed, the intention information generated according to the preset conversion rule is easy to read by the terminal, the efficiency of recognizing the control instruction by the terminal is improved, and the experience of a user is further improved.
Further, a second embodiment of the terminal control method of the present invention is proposed. The second embodiment of the terminal control method is different from the first embodiment of the terminal control method in that step S20 includes:
c, calling a natural language processing function through a preset protocol;
the preset protocol can be an http protocol, and the language in the text information is a natural language and cannot be identified by the terminal. After the text information is obtained, the natural language processing function can be started through the preset protocol, and the text information is processed through the natural language processing function, so that the terminal can identify the operation instruction in the text information.
And d, generating intention information corresponding to the text information based on the natural language processing function.
The intention information is a computer language, and can also be considered as a mathematical model, and the terminal can be understood to read the intention information. The text information can be converted into the intention information through the natural language processing function.
Further, step d includes:
step d1, extracting the key words in the text information through the natural language processing function;
and d2, acquiring intention information according to the keywords.
The natural language processing function extracts a plurality of keywords in the text information, for example, the text information is "turn up the air conditioner by 2 degrees", and the keywords are "turn up the air conditioner" and "2 degrees". And acquiring text information according to the obtained keywords.
Further, step d2 includes:
step d21, obtaining word vectors of the keywords from a preset vector model, and determining real numbers corresponding to the keywords by taking the word vectors as indexes;
and d22, constructing a mathematical model according to the real numbers, and determining the mathematical model as intention information.
The preset vector model is a model formed by mapping relations between the keywords and real numbers, word vectors corresponding to the keywords are obtained from the preset vector model, and the real numbers corresponding to the keywords are found in the data set by taking the word vectors as indexes. It should be noted that the preset vector model is a model trained based on a data set, and is a proprietary model in the field. After the real number corresponding to each keyword is obtained, a mathematical model is established through the real number, the mathematical model is a computer language corresponding to the text information, the mathematical model is determined as intention information, and after the terminal receives the intention information, the operation instruction in the intention information can be identified, and the operation corresponding to the operation instruction is executed.
In the embodiment, the keywords in the text information are extracted through the natural language processing function, the real numbers corresponding to the keywords are found through the word vectors, the mathematical model is constructed based on the obtained real numbers, the mathematical model is determined as the intention information and is sent to the terminal, the existing mode of matching the sentences input by the user to realize terminal control is replaced, the recognition efficiency of the voice input by the user corresponding to the terminal is greatly improved, and the experience of the user is improved.
In addition, an embodiment of the present invention further provides a terminal control device, where the terminal control device includes:
the acquisition module is used for acquiring text information for controlling the terminal;
the generating module is used for generating intention information corresponding to the text information according to a preset conversion rule;
and the sending module is used for sending the intention information to the terminal control unit so as to realize the control of the terminal.
Further, the obtaining module further comprises:
the acquisition unit is used for acquiring voice information used for controlling the terminal;
and the conversion unit is used for converting the voice information into text information through an ASR technology.
Further, the generating module further comprises:
the calling unit is used for calling the natural language processing function through a preset protocol;
a generating unit configured to generate intention information corresponding to the text information based on the natural language processing function.
Further, the generating unit further includes:
an extraction subunit, configured to extract, through the natural language processing function, a keyword in the text information;
and the acquisition subunit is used for acquiring the intention information according to the keywords.
Further, the obtaining subunit is further configured to obtain a word vector of the keyword from a preset vector model;
the generating unit further comprises;
the determining subunit is used for determining real numbers corresponding to the keywords by taking the word vectors as indexes;
a construction subunit, configured to construct a mathematical model according to the real numbers;
the determination subunit is further configured to determine the mathematical model as intent information.
Further, the sending module is further configured to send the intention information to a terminal control unit based on a communication mode of the internet of things.
The implementation of the terminal control apparatus of the present invention is basically the same as that of the above terminal control method, and is not described herein again.
Furthermore, an embodiment of the present invention further provides a computer-readable storage medium, where a terminal control program is stored on the computer-readable storage medium, and the terminal control program, when executed by a processor, implements the steps of the terminal control method described above.
Note that the computer-readable storage medium may be provided in the terminal control apparatus.
The specific implementation of the computer-readable storage medium of the present invention is substantially the same as the embodiments of the terminal control method described above, and is not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A terminal control method is characterized by comprising the following steps:
acquiring text information for controlling a terminal;
generating intention information corresponding to the text information according to a preset conversion rule;
and sending the intention information to a terminal control unit to realize the control of the terminal.
2. The terminal control method of claim 1, wherein the step of acquiring text information for controlling the terminal comprises:
collecting voice information used for controlling a terminal, and converting the voice information into text information through an ASR technology.
3. The terminal control method according to claim 1, wherein the step of generating intention information corresponding to the text information according to a preset conversion rule comprises:
calling a natural language processing function through a preset protocol;
and generating intention information corresponding to the text information based on the natural language processing function.
4. The terminal control method according to claim 3, wherein the generating of the intention information corresponding to the text information based on the natural language processing function includes:
extracting key words in the text information through the natural language processing function;
and acquiring intention information according to the keywords.
5. The terminal control method according to claim 4, wherein the step of acquiring intention information according to the keyword comprises:
obtaining word vectors of the keywords from a preset vector model, and determining real numbers corresponding to the keywords by taking the word vectors as indexes;
and constructing a mathematical model according to the real numbers, and determining the mathematical model as intention information.
6. The terminal control method of claim 1, wherein the step of transmitting the intention information to a terminal control unit to implement control of the terminal comprises:
and sending the intention information to a terminal control unit based on the communication mode of the Internet of things.
7. A terminal control apparatus, characterized in that the terminal control apparatus comprises:
the acquisition module is used for acquiring text information for controlling the terminal;
the generating module is used for generating intention information corresponding to the text information according to a preset conversion rule;
and the sending module is used for sending the intention information to the terminal control unit so as to realize the control of the terminal.
8. The terminal control apparatus of claim 7, wherein the obtaining module further comprises:
the acquisition unit is used for acquiring voice information used for controlling the terminal;
and the conversion unit is used for converting the voice information into text information through an ASR technology.
9. A terminal control device, characterized in that the terminal control device comprises a memory, a processor and a terminal control program stored on the memory and executable on the processor, the terminal control program, when executed by the processor, implementing the steps of the terminal control method according to any one of claims 1 to 6.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a terminal control program which, when executed by a processor, implements the steps of the terminal control method according to any one of claims 1 to 6.
CN202010972280.8A 2020-09-15 2020-09-15 Terminal control method, device, equipment and computer readable storage medium Pending CN112149425A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010972280.8A CN112149425A (en) 2020-09-15 2020-09-15 Terminal control method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010972280.8A CN112149425A (en) 2020-09-15 2020-09-15 Terminal control method, device, equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN112149425A true CN112149425A (en) 2020-12-29

Family

ID=73892932

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010972280.8A Pending CN112149425A (en) 2020-09-15 2020-09-15 Terminal control method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112149425A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107403617A (en) * 2017-06-26 2017-11-28 合肥美的智能科技有限公司 Refrigerator, sound control method, computer equipment, readable storage medium storing program for executing
CN107679039A (en) * 2017-10-17 2018-02-09 北京百度网讯科技有限公司 The method and apparatus being intended to for determining sentence
CN111026320A (en) * 2019-12-26 2020-04-17 腾讯科技(深圳)有限公司 Multi-mode intelligent text processing method and device, electronic equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107403617A (en) * 2017-06-26 2017-11-28 合肥美的智能科技有限公司 Refrigerator, sound control method, computer equipment, readable storage medium storing program for executing
CN107679039A (en) * 2017-10-17 2018-02-09 北京百度网讯科技有限公司 The method and apparatus being intended to for determining sentence
CN111026320A (en) * 2019-12-26 2020-04-17 腾讯科技(深圳)有限公司 Multi-mode intelligent text processing method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
US20210366483A1 (en) Method, interaction device, server, and system for speech recognition
CN109618202B (en) Method for controlling peripheral equipment, television and readable storage medium
CN106504748A (en) A kind of sound control method and device
US9218052B2 (en) Framework for voice controlling applications
CN107562878B (en) Household appliance control method, electronic device and computer readable storage medium
CN108509416B (en) Sentence meaning identification method and device, equipment and storage medium
CN105391730A (en) Information feedback method, device and system
CN104575499B (en) Voice control method of mobile terminal and mobile terminal
CN108039173B (en) Voice information input method, mobile terminal, system and readable storage medium
CN107844470B (en) Voice data processing method and equipment thereof
CN110968245B (en) Operation method for controlling office software through voice
CN110992955A (en) Voice operation method, device, equipment and storage medium of intelligent equipment
CN112463106A (en) Voice interaction method, device and equipment based on intelligent screen and storage medium
CN110992937B (en) Language off-line identification method, terminal and readable storage medium
CN112331213A (en) Intelligent household equipment control method and device, electronic equipment and storage medium
CN116755844B (en) Data processing method, device and equipment of simulation engine and storage medium
CN108170785B (en) Method and device for guiding terminal search operation and computer readable storage medium
CN107621874B (en) Content distribution method and system
CN111722893A (en) Method and device for interaction of graphical user interface of electronic equipment and terminal equipment
KR20010015934A (en) method for menu practice of application program using speech recognition
CN115905490B (en) Man-machine interaction dialogue method, device and equipment
CN109388695B (en) User intention recognition method, apparatus and computer-readable storage medium
CN112149425A (en) Terminal control method, device, equipment and computer readable storage medium
CN111552783A (en) Content analysis query method, device, equipment and computer storage medium
CN111143001A (en) Language detection method of terminal, user equipment, storage medium and device

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