Virtual reality speech control method and apparatus
First Claim
1. A virtual reality speech control method applicable to a virtual reality device, comprising:
- receiving, by a first application, a request for opening a speech interface sent initiatively by a second application installed in the virtual reality device, wherein, the first application is a voice control virtual reality system installed in the virtual reality device, the second application is a virtual reality application and the virtual reality device comprises the first application, a plurality of second applications and a virtual reality hardware device;
opening, by the first application, the speech interface in response to the request and sending, by the first application, an instruction for turning on a microphone to the virtual reality hardware device through the speech interface, such that the virtual reality hardware device turns on the microphone and receives speech information through the microphone;
receiving, by the first application, the speech information sent by the virtual reality hardware device through the speech interface;
converting, by the first application, the speech information to text information, and normalizing, by the first application, the text information to generate an intent object in conformity with a preset specification, wherein the speech information comprises a long command for invoking a virtual reality application and corresponds to the generated intent object;
recognizing, by the first application, the intent object based on a preset specification set to acquire an instruction corresponding to the intent object, the preset specification set comprising intent objects and instructions, the intent objects having one-to-one correspondence with the instructions, wherein, the instruction corresponding to the intent object comprises short commands, wherein each of the short commands is denoted by one or two words and wherein a short command is capable of controlling execution operations across two or more virtual reality applications;
determining a present scenario; and
when the present scenario is a preset scenario, sending, by the first application, one short command from short commands corresponding to the speech information to the second application after receiving the speech information, such that the second application executes the short command and feeds back an execution result, in which, the preset scenario is a scenario in a virtual reality environment where an action is achieved by the short command from the short commands corresponding to the speech information.
1 Assignment
0 Petitions
Accused Products
Abstract
A virtual reality speech control method and apparatus is provided in the present disclosure. The method includes: receiving a request for opening a speech interface from a VR application; opening a speech interface in response to the request and receiving input speech information through the speech interface; converting the speech information to text information, and normalizing the text information to generate an intent object in conformity with a preset specification; recognizing the intent object based on a preset specification set and acquiring an instruction corresponding to the intent object; sending the instruction to the VR application, such that the VR application executes the instruction and feeds back an execution result.
16 Citations
9 Claims
-
1. A virtual reality speech control method applicable to a virtual reality device, comprising:
-
receiving, by a first application, a request for opening a speech interface sent initiatively by a second application installed in the virtual reality device, wherein, the first application is a voice control virtual reality system installed in the virtual reality device, the second application is a virtual reality application and the virtual reality device comprises the first application, a plurality of second applications and a virtual reality hardware device; opening, by the first application, the speech interface in response to the request and sending, by the first application, an instruction for turning on a microphone to the virtual reality hardware device through the speech interface, such that the virtual reality hardware device turns on the microphone and receives speech information through the microphone; receiving, by the first application, the speech information sent by the virtual reality hardware device through the speech interface; converting, by the first application, the speech information to text information, and normalizing, by the first application, the text information to generate an intent object in conformity with a preset specification, wherein the speech information comprises a long command for invoking a virtual reality application and corresponds to the generated intent object; recognizing, by the first application, the intent object based on a preset specification set to acquire an instruction corresponding to the intent object, the preset specification set comprising intent objects and instructions, the intent objects having one-to-one correspondence with the instructions, wherein, the instruction corresponding to the intent object comprises short commands, wherein each of the short commands is denoted by one or two words and wherein a short command is capable of controlling execution operations across two or more virtual reality applications; determining a present scenario; and when the present scenario is a preset scenario, sending, by the first application, one short command from short commands corresponding to the speech information to the second application after receiving the speech information, such that the second application executes the short command and feeds back an execution result, in which, the preset scenario is a scenario in a virtual reality environment where an action is achieved by the short command from the short commands corresponding to the speech information. - View Dependent Claims (2, 3, 4)
-
-
5. A virtual reality speech control apparatus applicable to a virtual reality device, comprising:
-
one or more processors; and a memory, configured to store one or more software modules executable by the one or more processors, wherein the one or more software modules comprises; a receiving module, configured to receive a request for opening a speech interface sent initiatively by a second application installed in the virtual reality device, and to receive speech information sent by a virtual reality hardware device through the speech interface, wherein, the virtual reality device comprises a first application, a plurality of second applications and the virtual reality hardware device; a control module, configured to open the speech interface in response to the request and receive the speech information through the speech interface, and to send an instruction for turning on a microphone to the virtual reality hardware device through the speech interface, such that the virtual reality hardware device turns on the microphone and receives the speech information through the microphone; a generating module, configured to convert the speech information to text information, and normalize the text information to generate an intent object in conformity with a preset specification, wherein the speech information comprises a long command for invoking a virtual reality application and corresponds to the generated intent object; an acquiring module, configured to recognize the intent object based on a preset specification set to acquire an instruction corresponding to the intent object, the preset specification set comprising intent objects and instructions, the intent objects having one-to-one correspondence with the instructions, wherein, the instruction corresponding to the intent object comprises short commands, wherein each of the short commands is denoted by one or two words and wherein a short command is capable of controlling execution operations across two or more virtual reality applications; a first determining module, configured to determine a present scenario; and a sending module, configured to, when the present scenario is a preset scenario, send one short command from the short commands corresponding to the speech information to the second application after receiving the speech information, such that the second application executes the short command and feeds back an execution result, in which, the preset scenario is a scenario in the VR environment where an action is achieved by the short command from the short commands corresponding to the speech information. - View Dependent Claims (6, 7, 8)
-
-
9. A non-transitory computer-readable storage medium, configured to store one or more programs that, when executed by a processor of a terminal, cause the terminal to perform a virtual reality speech control method, the method comprising:
-
receiving, by a first application, a request for opening a speech interface sent initiatively by a second application installed in the virtual reality device, wherein, the first application is a voice control virtual reality system installed in the virtual reality device, the second application is a virtual reality application, and the virtual reality device comprises the first application, a plurality of second applications and a virtual reality hardware device; opening, by the first application, the speech interface in response to the request and sending, by the first application, an instruction for turning on a microphone to the virtual reality hardware device through the speech interface, such that the virtual reality hardware device turns on the microphone and receives speech information through the microphone; receiving, by the first application, the speech information sent by the virtual reality hardware device through the speech interface; converting, by the first application, the speech information to text information, and normalizing the text information to generate an intent object in conformity with a preset specification, wherein the speech information comprises a long command for invoking a virtual reality application and corresponds to the generated intent object; recognizing, by the first application, the intent object based on a preset specification set to acquire an instruction corresponding to the intent object, the preset specification set comprising intent objects and instructions, the intent objects having one-to-one correspondence with the instructions, wherein, the instruction corresponding to the intent object comprises short commands, wherein each of the short commands is denoted by one or two words and wherein a short command is capable of controlling execution operations across two or more virtual reality applications; determining a present scenario; and when the present scenario is a preset scenario, sending, by the first application, one short command from short commands corresponding to the speech information to the second application after receiving the speech information, such that the second application executes the short command and feeds back an execution result, in which, the preset scenario is a scenario in a virtual reality environment where an action is achieved by the short command from the short commands corresponding to the speech information.
-
Specification