Voice interaction device, system and method, cloud server and storage medium

文档序号:193359 发布日期:2021-11-02 浏览:37次 中文

阅读说明:本技术 一种语音交互设备、系统、方法、云端服务器和存储介质 (Voice interaction device, system and method, cloud server and storage medium ) 是由 黎志勇 张含波 陈孝良 于 2021-08-30 设计创作,主要内容包括:本申请实施例公开了一种语音交互设备、系统、方法、云端服务器和存储介质,该语音交互设备在低配置设备上增设有语音采集模块、数据传输模块和控制模块,其中语音采集模块用于采集语音数据;数据传输模块用于发送语音数据,使云端服务器对语音数据识别得到语音指令,以及用于接收语音指令;控制模块用于响应语音指令。该方法用以降低实现语音交互功能对于设备配置的要求。(The embodiment of the application discloses voice interaction equipment, a voice interaction system, a voice interaction method, a cloud server and a storage medium, wherein the voice interaction equipment is additionally provided with a voice acquisition module, a data transmission module and a control module on low-configuration equipment, wherein the voice acquisition module is used for acquiring voice data; the data transmission module is used for sending voice data, enabling the cloud server to identify the voice data to obtain a voice instruction, and receiving the voice instruction; the control module is used for responding to the voice command. The method is used for reducing the requirement of realizing the voice interaction function on equipment configuration.)

1. The utility model provides a voice interaction equipment which characterized in that adds voice acquisition module, data transmission module and control module on low configuration equipment, wherein:

the voice acquisition module is used for acquiring voice data;

the data transmission module is used for sending the voice data, enabling a cloud server to recognize the voice data to obtain a voice instruction, and receiving the voice instruction;

and the control module is used for responding to the voice instruction.

2. The voice interaction device of claim 1, wherein a voice interaction software development kit module is further added to the low-configuration device, wherein:

the voice interaction software development kit module is used for sending an authentication request based on the voice data so that the cloud server can perform identity authentication on the low-configuration equipment based on the authentication request, and establishing a data transmission channel between the low-configuration equipment and the cloud server after the cloud server successfully authenticates the low-configuration equipment;

and the data transmission module is used for sending the voice data and receiving the voice command through the data transmission channel.

3. The device according to claim 2, wherein a digital certificate presetting module is further added to the low-configuration device, wherein the digital certificate presetting module is used for presetting a ssl certificate on the low-configuration device;

the voice interaction software development kit module is used for establishing a data transmission channel between the low-configuration device and the cloud server after the cloud server successfully authenticates the low-configuration device according to the ssl certificate.

4. The device according to claim 2 or 3, wherein the data transmission module is configured to send the voice data to the cloud server via the data transmission channel according to an mqtt communication protocol, and is configured to receive the voice command sent by the cloud server according to the mqtt communication protocol via the data transmission channel.

5. The device of claim 2 or 3, wherein the authentication request comprises a configuration tag of the low-configuration device, and wherein the cloud server is configured to determine the corresponding voice model based on the configuration tag.

6. A cloud server, the cloud server comprising:

a data transmission module, configured to receive voice data and send a voice instruction corresponding to the voice data, where the voice data is sent by the voice interaction device according to any one of claims 1 to 5;

and the voice processing module is used for recognizing the voice data to obtain the voice instruction.

7. Cloud server according to claim 6, wherein the speech processing module comprises:

the voice recognition module is used for carrying out voice recognition processing on the voice data to obtain character data;

the semantic recognition module is used for carrying out semantic recognition on the character data to obtain semantics and slot positions; wherein the slot position is the attribute of the semantic meaning;

and the skill submodule is used for generating the voice instruction based on the semantics and the slot position.

8. Cloud server according to claim 6 or 7, wherein the cloud server further comprises an authentication module:

the data transmission module is used for receiving an authentication request, wherein the authentication request is sent by the voice interaction equipment based on the collected voice data;

the authentication module is used for carrying out identity authentication on the voice interaction equipment based on the authentication request to obtain an authentication result;

and the voice processing module is used for identifying the voice data to obtain the voice instruction based on the authentication result.

9. The utility model provides a voice interaction system, its characterized in that, the system includes voice interaction equipment and high in the clouds server, has add voice acquisition module, data transmission module and control module on low configuration equipment, wherein:

the voice interaction device is used for acquiring voice data through the voice acquisition module, sending the voice data to the cloud server through the data transmission module, receiving a voice instruction sent by the cloud server through the data transmission module, and responding to the voice instruction through the control module;

the cloud server is used for receiving the voice data sent by the voice interaction equipment, recognizing the voice data to obtain a voice instruction, and sending the voice instruction to the voice interaction equipment.

10. A voice interaction method applied to the voice interaction device according to any one of claims 1 to 5, the method comprising:

the voice acquisition module acquires voice data;

the data transmission module sends voice data to enable the cloud server to recognize the voice data to obtain a voice instruction;

the data transmission module receives the voice instruction;

the control module responds to the voice instruction.

11. A voice interaction method applied to the cloud server according to any one of claims 6 to 8, the method comprising:

received voice data; wherein the voice data is transmitted by the voice interaction device of any one of claims 1-5;

recognizing the voice data to obtain a voice instruction;

and sending a voice instruction corresponding to the voice data so that the voice interaction equipment responds to the voice instruction.

12. A computer-readable storage medium, characterized in that the computer-readable storage medium is used to store a computer program for performing the method of any of claims 10-11.

Technical Field

The invention relates to the field of intelligent equipment, in particular to voice interaction equipment, a voice interaction system, a voice interaction method, a cloud server and a storage medium.

Background

With the popularization of computer technology, people have come to the intelligent era, and the intelligent degree of equipment is higher and higher. The voice interaction equipment is one of intelligent equipment and enters the life of people. Generally, when the voice interaction device is used, a user can obtain a feedback result by speaking, and the voice interaction device has better user experience. Having the voice interaction function is becoming one of the signs of the intellectualization of the device, and therefore, how to make the device have the voice interaction function is receiving attention.

In the prior art, in order to implement a voice interaction function, a voice interaction device is usually equipped with a specific system, and has a high hardware configuration, that is, the requirement for the configuration of the device is high for implementing the voice interaction function. For example, a common voice interaction device is an android device, or a higher-configured Linux device. However, for most tiny devices, it is difficult to implement voice interaction functions due to the low device configuration and insufficient support of voice interaction logic. Therefore, there is a need for a voice interaction device to reduce the requirements for device configuration for implementing voice interaction functions.

Disclosure of Invention

In view of this, embodiments of the present application provide a voice interaction device, a system, a method, a cloud server, and a storage medium, so as to reduce a requirement for device configuration for implementing a voice interaction function.

In a first aspect, the present application provides a voice interaction device, where a voice acquisition module, a data transmission module, and a control module are added to a low-configuration device, where:

the voice acquisition module is used for acquiring voice data;

the data transmission module is used for sending the voice data, enabling a cloud server to recognize the voice data to obtain a voice instruction, and receiving the voice instruction;

and the control module is used for responding to the voice instruction.

In a possible implementation manner, a voice interaction software development kit module is further added to the low-configuration device, where the voice interaction software development kit module is configured to send an authentication request based on the voice data, so that the cloud server performs identity authentication on the low-configuration device based on the authentication request, and is configured to establish a data transmission channel between the low-configuration device and the cloud server after the cloud server successfully authenticates the low-configuration device; and the data transmission module is used for sending the voice data and receiving the voice command through the data transmission channel.

In a possible implementation manner, a digital certificate presetting module is further added on the low-configuration device, wherein the digital certificate presetting module is used for presetting a ssl certificate on the low-configuration device; the voice interaction software development kit module is used for establishing a data transmission channel between the low-configuration device and the cloud server after the cloud server successfully authenticates the low-configuration device according to the ssl certificate.

In a possible implementation manner, the data transmission module is configured to send the voice data to the cloud server through the data transmission channel according to an mqtt communication protocol, and is configured to receive the voice command sent by the cloud server according to the mqtt communication protocol through the data transmission channel.

In one possible implementation, the authentication request includes a configuration tag of the low-configuration device, and the cloud server is caused to determine a corresponding voice model based on the configuration tag.

In a second aspect, the present application provides a cloud server, comprising:

a data transmission module, configured to receive voice data and send a voice instruction corresponding to the voice data, where the voice data is sent by any voice interaction device in the first aspect;

and the voice processing module is used for recognizing the voice data to obtain the voice instruction.

In one possible implementation, the speech processing module includes: the voice recognition module is used for carrying out voice recognition processing on the voice data to obtain character data; the semantic recognition module is used for carrying out semantic recognition on the character data to obtain semantics and slot positions; wherein the slot position is the attribute of the semantic meaning; and the skill submodule is used for generating the voice instruction based on the semantics and the slot position.

In one possible embodiment, the cloud server further comprises an authentication module; the data transmission module is used for receiving an authentication request, wherein the authentication request is sent by the voice interaction equipment based on the collected voice data; the authentication module is used for carrying out identity authentication on the voice interaction equipment based on the authentication request to obtain an authentication result; and the voice processing module is used for identifying the voice data to obtain the voice instruction based on the authentication result.

In a third aspect, the application provides a voice interaction system, the system includes a voice interaction device and a cloud server, and a voice acquisition module, a data transmission module and a control module are added to the low-configuration device, wherein: the voice interaction device is used for acquiring voice data through the voice acquisition module, sending the voice data to the cloud server through the data transmission module, receiving a voice instruction sent by the cloud server through the data transmission module, and responding to the voice instruction through the control module; the cloud server is used for receiving the voice data sent by the voice interaction equipment, recognizing the voice data to obtain a voice instruction, and sending the voice instruction to the voice interaction equipment.

In a fourth aspect, the present application provides a voice interaction method, which is applied to the voice interaction device according to any one of the first aspect, and the method includes:

the voice acquisition module acquires voice data;

the data transmission module sends voice data to enable the cloud server to recognize the voice data to obtain a voice instruction;

the data transmission module receives the voice instruction;

the control module responds to the voice instruction.

In a fifth aspect, the present application provides another voice interaction method, where the method is applied to the cloud server according to any one of the second aspects, and the method includes:

received voice data; wherein the voice data is transmitted by the voice interaction device according to any one of the first aspect;

recognizing the voice data to obtain a voice instruction;

and sending a voice instruction corresponding to the voice data so that the voice interaction equipment responds to the voice instruction.

In a sixth aspect, the present application provides a computer readable storage medium for storing a computer program for performing any of the above-described methods.

Therefore, the method and the device have the beneficial effect of reducing the requirement on equipment configuration for realizing the voice interaction function.

In the embodiment of the application, a voice acquisition module, a data transmission module and a control module are additionally arranged on the low-configuration equipment. The voice acquisition module is used for acquiring voice data; the data transmission module is used for sending voice data, enabling the cloud server to identify the voice data to obtain a voice instruction, and receiving the voice instruction; the control module is used for responding to the voice command. Compared with the prior art, in order to realize the voice interaction function, the device needs to have higher configuration required for completing the voice processing process, in the embodiment of the application, the voice processing process of the voice instruction obtained by the voice data is completed by the cloud server instead of the low-configuration device, the voice interaction function of the low-configuration device is realized by additionally arranging the voice acquisition module, the data transmission module and the control module on the low-configuration device and combining the low-configuration device and the cloud server, and therefore the requirement of the voice interaction function on the device configuration is reduced.

Drawings

FIG. 1 is a schematic structural diagram of a voice interaction device according to an embodiment of the present application;

FIG. 2 is a schematic structural diagram of a voice interaction device according to another embodiment of the present application;

fig. 3 is a schematic structural diagram of a cloud server according to an embodiment of the present application;

FIG. 4 is a schematic structural diagram of a voice interaction system according to an embodiment of the present application;

FIG. 5 is a flowchart of a voice interaction method according to an embodiment of the present application;

fig. 6 is a flowchart of a voice interaction method according to another embodiment of the present application.

Detailed Description

In order to facilitate understanding of the technical solutions provided by the embodiments of the present application, a voice interaction device, a system and a method provided by the embodiments of the present application are described below with reference to the accompanying drawings.

While exemplary embodiments of the present application are shown in the drawings, it should be understood that the present application may be embodied in various forms and should not be limited to the embodiments set forth herein. Other embodiments, which can be derived by those skilled in the art from the embodiments given herein without any inventive contribution, are also within the scope of the present application.

In the claims and specification of the present application and in the drawings accompanying the description, the terms "comprise" and "have" and any variations thereof, are intended to cover non-exclusive inclusions.

In the embodiment of the application, a voice acquisition module, a data transmission module and a control module are additionally arranged on the low-configuration equipment. The voice acquisition module is used for acquiring voice data; the data transmission module is used for sending voice data, enabling the cloud server to identify the voice data to obtain a voice instruction, and receiving the voice instruction; the control module is used for responding to the voice command. Compared with the prior art, in order to realize the voice interaction function, the device needs to have higher configuration required for completing the voice processing process, in the embodiment of the application, the voice processing process of the voice instruction obtained by the voice data is completed by the cloud server instead of the low-configuration device, the voice interaction function of the low-configuration device is realized by additionally arranging the voice acquisition module, the data transmission module and the control module on the low-configuration device and combining the low-configuration device and the cloud server, and therefore the requirement of the voice interaction function on the device configuration is reduced.

Referring to fig. 1, fig. 1 is a schematic structural diagram of a voice interaction device according to an embodiment of the present application. As shown in fig. 1, in the voice interaction device 100 in the embodiment of the present application, a voice acquisition module 101, a data transmission module 102, and a control module 103 are added to a low-configuration device, where: the voice acquisition module 101 is used for acquiring voice data; the data transmission module 102 is configured to send the voice data, enable a cloud server to recognize the voice data to obtain a voice instruction, and receive the voice instruction; the control module 103 is configured to respond to the voice command.

In the embodiment of the present application, the low-configuration device is, for example, a non-intelligent device, and the non-intelligent device may be understood as a device without a smart chip, and specifically may be a switch, a water heater, a fan, a heater, or other devices. It is understood that which kind of device the low-configuration device is specific does not affect the implementation of the embodiments of the present application.

The voice acquisition module 101 is configured to acquire voice data. The voice data is acquired through the voice acquisition module 101, so that the low-configuration device obtains the voice data and provides basis for generating and responding the voice command. The source of the voice data may be a user, an intelligent device, or other sender capable of generating the voice data, and the embodiment of the present application does not limit the sender of the voice data.

The data transmission module 102 is configured to send the voice data, so that a cloud server recognizes the voice data to obtain a voice instruction; the data transmission module 102 is further configured to receive the voice command. Since the voice data is acquired by the voice interaction device 100, and the processing of the voice data is completed by the cloud server, the voice interaction function of the low-configuration device is finally realized. Therefore, the data transmission module 102 sends the voice data to the cloud server, the cloud server completes processing of the voice data, and after recognizing the voice data to obtain a voice instruction, the cloud server sends the voice instruction to the voice interaction device 100, and the voice interaction device 100 responds to the voice instruction to realize a voice interaction function of the device.

The control module 103 is configured to respond to the voice command. In order to implement the voice interaction function of the device, the voice interaction result obtained according to the voice data generally needs to be implemented by the device, or implemented by the device controlling another device, that is, responding to the voice instruction through the control module 103.

In some specific embodiments, the control module is electrically connected to the voice acquisition module and the data transmission module respectively, and when the voice acquisition module acquires voice data, the control module sends the voice data to the control module, and the control module sends an instruction to the data transmission module based on the voice data to instruct the data transmission module to send the voice data to the cloud server. And after the voice interaction equipment receives the voice command through the data transmission module, the voice command is sent to the control module, and the control module responds to the voice command.

Optionally, the control module is further electrically connected to a switch of the voice interaction device, and the control module responds to the voice instruction, for example, to control the switch of the voice interaction device to be turned on or turned off.

Referring to fig. 2, fig. 2 is a schematic structural diagram of a voice interaction device according to another embodiment of the present application. As shown in fig. 2, in the voice interaction device 200 in the embodiment of the present application, a voice acquisition module 201, a data transmission module 202, and a control module 203 are added to a low-configuration device

Wherein: the voice acquisition module 201 is used for acquiring voice data; the data transmission module 202 is configured to send the voice data, so that the cloud server recognizes the voice data to obtain a voice instruction, and is configured to receive the voice instruction; the control module 203 is configured to respond to the voice instruction. The structures of the voice acquisition module 201, the data transmission module 202, and the control module 203, the connection relationship between the modules, and the functions of the modules in the embodiment of the present application have been described above, and are not repeated here to avoid repetition. The control module 203 may be electrically connected to the voice collecting module 201 and the data transmitting module 202, respectively.

A voice interaction software development kit module 204 can also be added to the low-configuration device. The voice interaction software development kit module 204 is configured to send an authentication request based on the voice data, so that the cloud server performs identity authentication on the low-configuration device based on the authentication request, and is configured to establish a data transmission channel between the low-configuration device and the cloud server after the cloud server successfully authenticates the low-configuration device; the data transmission module 202 is configured to send the voice data and receive the voice command through the data transmission channel.

For the voice interaction software development kit module 204, in order to enable the low-configuration device to receive the voice instruction corresponding to the low-configuration device, reduce the situation of the voice instruction not corresponding to the low-configuration device, and increase the security of data transmission, the voice interaction software development kit module 204 sends an authentication request to the cloud server based on the voice data, so that the cloud server performs identity authentication on the low-configuration device based on the authentication request; after the authentication is successful, the voice interaction software development kit module 204 establishes a data transmission channel between the low-configuration device and the cloud server, where the data transmission channel is used for transmitting data, and the transmitted data at least includes the voice data and the voice instruction.

In this embodiment, a voice interaction software development kit module is added to a low-configuration device, where the voice interaction software development kit module 204 is set for enabling a device without a voice interaction function to have a voice interaction function, may also be set for improving the voice interaction function of the device, and may also be set under other conditions, and it can be understood that the specific conditions under which the voice interaction software development kit module 204 is added to the low-configuration device do not affect the implementation of this embodiment.

For the data transmission module 202, the data transmission channel is used for sending the voice data and receiving the voice command, so that the security of data transmission can be improved. Because the data transmission channel is established after the cloud server completes identity authentication on the low-configuration device, data in the data transmission channel is difficult to obtain by devices which are not successfully authenticated, and therefore, the safety of data transmission is improved in the process of realizing a voice interaction function by the low-configuration device.

In some preferred embodiments, a digital certificate presetting module may be further added to the low-configuration device, where the digital certificate presetting module is configured to preset an ssl certificate on the low-configuration device; the voice interaction software development kit module 204 is configured to establish a data transmission channel between the low-configuration device and the cloud server after the cloud server successfully authenticates the low-configuration device according to the ssl certificate.

It should be noted that the ssl certificate is a digital certificate, and has an authentication function and a data transmission encryption function, and a secure channel is established between the low-configuration device and the cloud server to encrypt and hide transmitted data, so as to reduce the situation that data is changed during transmission, and maintain the integrity and security of data. The ssl certificates and the devices have a binding relationship, and one ssl certificate uniquely identifies one device. Because the voice interaction function of the low-configuration equipment is jointly completed by the low-configuration equipment and the cloud server, but not independently completed by the low-configuration equipment, the cloud server sends the response instruction corresponding to the low-configuration equipment to the equipment by utilizing the identification function of the digital certificate on the low-configuration equipment, and the condition of accurately transmitting the voice instruction is improved.

Further, the data transmission module 202 may be further configured to send the voice data to the cloud server through the data transmission channel according to an mqtt communication protocol, and to receive the voice instruction sent by the cloud server according to the mqtt communication protocol through the data transmission channel.

mqtt is a lightweight proxy-based publish/subscribe data transfer protocol with simple and lightweight features. The mqtt protocol has the characteristics of small transmission, low overhead and minimized protocol exchange, and is mainly used for devices with low performance. Therefore, the low-configuration device and the cloud server perform data transmission by using an mqtt communication protocol, which is beneficial to further reducing the requirement of the voice interaction function on the configuration of the low-configuration device. Of course, the low-configuration device and the cloud server may also use other communication protocols for data transmission, but preferably use an mqtt communication protocol for data transmission.

Further, the authentication request may include a configuration tag of the low-configuration device, such that the cloud server determines a corresponding voice model based on the configuration tag. The configuration tag may be used as an identifier of the device, for example, the configuration tag may be used to facilitate the cloud server to manage devices with different configuration situations. The cloud server may determine a speech recognition model corresponding to the device based on the configuration tag. For example, the configuration tag may also be a device number, the authentication request includes a number of the sending-end device, and the cloud server determines the corresponding voice recognition model according to the number. The cloud server processes the received voice data through the corresponding voice model to obtain the voice instruction, for example, the voice model can be set to include the characteristics of the equipment, so that the voice instruction received by the equipment has individuation, and the condition that the equipment cannot respond when receiving the voice instruction can be reduced.

Further, the voice collecting module 201 may be configured to collect the voice data after a communication channel between the device and the cloud server is established. In other words, the establishment of the communication channel between the device and the cloud server may be used as a trigger condition for the voice acquisition module to perform voice acquisition. The above conditions are set to reduce the occurrence of invalid acquisition. Because the condition that the communication channel is established is that the cloud server successfully authenticates the equipment, before the communication channel is established, the voice acquisition module performs voice acquisition, and when the authentication process is unsuccessful, the obtained voice data cannot be transmitted to the cloud server for voice processing, and the acquisition process at the moment can be regarded as invalid acquisition.

Referring to fig. 3, fig. 3 is a schematic structural diagram of a cloud server according to an embodiment of the present application. As shown in fig. 3, the cloud server 300 according to the embodiment of the present invention includes a data transmission module 301 and a voice processing module 302. The data transmission module 301 is configured to receive voice data and send a voice instruction corresponding to the voice data, where the voice data is sent by any one of the voice interaction devices in the embodiment of the present application; the voice processing module 302 is configured to recognize the voice data to obtain the voice instruction.

Because the voice data is acquired by the voice interaction device (acquired by the voice acquisition module additionally arranged on the low-configuration device), the voice command acquired by recognizing the voice data is completed by the cloud server in order to reduce the requirement of the voice interaction function on device configuration.

Further, the speech processing module 302 may include a speech recognition module, a semantic recognition module, and a skills sub-module, wherein: the voice recognition module is used for carrying out voice recognition processing on the voice data to obtain character data; the semantic recognition module is used for performing semantic recognition on the character data to obtain semantics and slot positions, wherein the slot positions are attributes of the semantics; and the skill submodule is used for generating the voice instruction based on the semantics and the slot position.

The voice recognition is used for converting the voice data into corresponding character data, and the semantic recognition is used for obtaining the semantics of the voice data. In order to realize the voice interaction process, the voice interaction device needs to obtain the intention of a voice emitting party. The above-mentioned intention of the voice utterer refers to a response that the voice utterer "wants" the device to complete, and the intention of the voice utterer is usually realized by recognizing the semantics of the voice data.

Since the common processing object of the device is character data and the cloud server receives the voice data, the voice recognition is performed before the semantic recognition, and the voice data is converted into the character data, so that the voice server performs the semantic recognition on the character data to obtain the corresponding semantic. In the process of carrying out semantic recognition on the character data, the semantics and the slot position of the character data can be obtained. The purpose of the semantic integration slot is to convert the intention of the sender of the obtained voice data into an explicit instruction. Slot refers to an attribute of the semantics. For example, the semantic is "turn on a light," and the slot may be "on," at which time the device may control turning on the light of the device. After the semantics and the slot position are obtained, the skill submodule generates the voice instruction based on the semantics and the slot position.

Further, the cloud server 300 may further include an authentication module; the data transmission module is used for receiving an authentication request, wherein the authentication request is sent by the voice interaction equipment based on the collected voice data; the authentication module is used for carrying out identity authentication on the voice interaction equipment based on the authentication request to obtain an authentication result; the voice processing module 302 is configured to recognize the voice data to obtain the voice command based on the authentication result. In order to enable the voice interaction device to receive the corresponding voice command, reduce the situation of the voice command that does not correspond to the voice interaction device, and increase the security of data transmission, the cloud server 300 may further include an authentication module, so that the voice command is obtained after the cloud server 300 successfully authenticates the voice interaction device.

Fig. 4 is a schematic structural diagram of a voice interaction system according to an embodiment of the present application. As shown in fig. 4, the system 400 includes a voice interaction device 401 and a cloud server 402, and a voice acquisition module 403, a data transmission module 404, and a control module 405 are added to the low-configuration device, where:

the voice interaction device 401 is configured to acquire voice data through the voice acquisition module 403, send the voice data to the cloud server through the data 404 transmission module, receive a voice instruction sent by the cloud server through the data transmission module, and respond to the voice instruction through the control module 405; the cloud server 402 is configured to receive voice data sent by the voice interaction device, recognize the voice data to obtain a voice instruction, and send the voice instruction to the voice interaction device.

For the voice interaction system 400, the functions that can be implemented by the voice interaction device 401 and the cloud server 402, the interaction process between the voice interaction device 401 and the cloud server 402, and related contents have been described above, and are not repeated here to avoid repetition.

Referring to fig. 5, fig. 5 is a flowchart illustrating a voice interaction method according to an embodiment of the present application. The voice interaction method in the embodiment of the present application is applied to any one of the voice interaction devices in the embodiments of the present application. As shown in fig. 5, the voice interaction method in the embodiment of the present application includes the following steps:

s501, a voice acquisition module acquires voice data;

s502, the data transmission module sends voice data to enable the cloud server to recognize the voice data to obtain a voice instruction;

s503, the data transmission module receives the voice command;

s504, the control module responds to the voice command.

In some embodiments, the voice interaction method further comprises: the voice interaction software development kit module is used for sending an authentication request based on the voice data so that the cloud server can perform identity authentication on the low-configuration equipment based on the authentication request, and establishing a data transmission channel between the low-configuration equipment and the cloud server after the cloud server successfully authenticates the low-configuration equipment; and the data transmission module is used for sending the voice data and receiving the voice command through the data transmission channel.

In some embodiments, the establishing, by the voice interaction software development kit module, a data transmission channel between the low-configuration device and the cloud server after the cloud server successfully authenticates the low-configuration device includes: and the voice interaction software development kit module establishes a data transmission channel between the low-configuration equipment and the cloud server after the cloud server successfully authenticates the low-configuration equipment according to the ssl certificate.

In some embodiments, the data transmission module, which transmits the voice data and receives the voice command through the data transmission channel, includes: the data transmission module sends the voice data to the cloud server through the data transmission channel according to an mqtt communication protocol, and receives the voice instruction sent by the cloud server according to the mqtt communication protocol through the data transmission channel.

In some embodiments, the authentication request includes a configuration tag of the low-configuration device, causing the cloud server to determine a corresponding voice model based on the configuration tag.

The steps in the voice interaction method of the embodiment of the present application and the effects achieved by the steps have been described above, and are not described again here to avoid repetition.

Referring to fig. 6, fig. 6 is a flowchart illustrating a voice interaction method according to another embodiment of the present application. The voice interaction method in the embodiment of the present application is applied to any cloud server in the embodiment of the present application, and the voice interaction device in the embodiment of the present application is any voice interaction device in the embodiment of the present application. As shown in fig. 6, the voice interaction method in the embodiment of the present application includes the following steps:

s601, receiving voice data sent by voice interaction equipment;

s602, recognizing the voice data to obtain a voice instruction;

s603, sending a voice instruction corresponding to the voice data so that the voice interaction equipment responds to the voice instruction.

In some embodiments, recognizing the voice data results in voice instructions, including: carrying out voice recognition processing on the voice data to obtain character data; performing semantic recognition on the character data to obtain semantics and slot positions; wherein the slot position is the attribute of the semantic meaning; and generating the voice instruction based on the semantics and the slot position.

In some embodiments, receiving voice data comprises: receiving an authentication request, wherein the authentication request is sent by the voice interaction equipment based on collected voice data; performing identity authentication on the voice interaction equipment based on the authentication request to obtain an authentication result; successfully receiving voice data for authentication based on the authentication result; and recognizing the voice data to obtain the voice instruction.

The steps in the voice interaction method of the embodiment of the present application and the effects achieved by the steps have been described above, and are not described again here to avoid repetition.

In an embodiment of the present application, a computer-readable storage medium is further provided, where the computer-readable storage medium is used to store a computer program, and the computer program is used to execute any one of the voice interaction methods, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk. The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

14页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种基于大数据的车载人工智能语音交互系统

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!