Detailed Description
In order to make the technical content of the present invention more comprehensible, preferred embodiments are described below.
Fig. 1 is a schematic diagram of a connection structure between a voice transmission device and an electronic device according to the present invention.
The voice transmission device 1 of the present invention is used for establishing a connection with the electronic device 2. In an embodiment of the present invention, the voice transmission device 1 and the electronic device 2 are connected by a bluetooth protocol, but the voice transmission device 1 and the electronic device 2 can also be connected by other wireless or wired methods, and the present invention is not limited thereto. The electronic device 2 may be a smart phone, a tablet computer or a notebook computer, and the electronic device 2 at least has a first voice assistant program 2a and a second voice assistant program 2b, the first voice assistant program 2a may be a program built in an operating system, such as Siri of apple or Google Now of Google, and the second voice assistant program 2b may be an additionally installed program, such as Alexa of amazon, but the invention is not limited to the above-mentioned voice assistant programs.
The voice transmission device 1 can be a device having both the microphone 10 and the speaker 20, such as a headset, and the speaker 20 can be an earphone, but the invention is not limited thereto. The microphone 10 is used for receiving the voice signal of the user, and the speaker device 20 emits the voice signal generated by the voice assistant program. In addition, the voice transmission device 1 further includes a detection module 30, a memory module 40 and a control switch 50. The detecting module 30 is used for detecting whether the voice assistant program of the electronic device 2 is started. For example, when the voice transmission apparatus 1 establishes a connection with the electronic apparatus 2, the detection module 30 actively detects whether the first voice assistant program 2a and the second voice assistant program 2b are activated. Or after the electronic device 2 is connected to the voice transmission device 1, the electronic device 2 transmits a signal indicating whether the first voice assistant program 2a and the second voice assistant program 2b are activated to the detection module 30. The present invention is not limited to the detection module 30 actively or passively learning the activation status of the first voice assistant program 2a and the second voice assistant program 2 b. The first voice assistant program 2a and the second voice assistant program 2b can be activated by the user and enter a standby state, or are set as a resident program after the electronic device 2 is powered on, but the invention is not limited thereto.
Thus, when the detecting module 30 detects that the second voice assistant program 2b is not activated, or the detecting module 30 detects that the electronic device only activates the first voice assistant program 2a, the detecting module 30 generates a first Flag (Flag). When the detecting module 30 detects that the second voice assistant program 2b is activated, the detecting module 30 generates a second flag.
The memory module 40 is electrically connected to the detecting module 30 for storing the first flag or the second flag. When the detecting module 30 generates the first flag or the second flag, the first flag or the second flag is stored in the memory module 40. The first flag and the second flag in the memory module 40 do not exist at the same time, i.e. the memory module 40 replaces the old flag with the newly received flag.
The control switch 50 is electrically connected to and reads the memory module 40, and may have physical keys for a user to operate. When the user operates the switch 50, the generated control signal is determined according to the first flag or the second flag stored in the memory module 40. When the memory module 40 stores the first flag, it represents that the second voice assistant program 2b is not activated but only the first voice assistant program 2a is activated, so that the control switch 50 generates a first control signal by the user's operation, and the electronic device 2 executes the first voice assistant program 2a to recognize the voice signal from the microphone 10. When the memory module 40 stores the second flag, it represents that the second voice assistant program 2b is activated, so the control switch 50 generates a second control signal by the user's operation, and the electronic device 2 directly executes the second voice assistant program 2b to recognize the voice signal from the microphone 10. The electronic device 2 will not execute the first voice assistant program 2a.
It should be noted that, the modules of the voice transmission apparatus 1 may be configured by a hardware device, a software program combined with the hardware device, a firmware combined with the hardware device, and the like, but the present invention is not limited to the above-mentioned manner. In addition, the present embodiment is only an example of the preferred embodiment of the present invention, and all possible combinations of the variations are not described in detail for avoiding redundancy. However, it should be understood by those skilled in the art that the above modules or elements are not necessarily required. And may include other existing modules or components in greater detail for practicing the invention. Each module or component may be omitted or modified as desired, and no other module or component may necessarily exist between any two modules.
Referring next to FIG. 2, a flowchart illustrating steps of a method for executing a voice assistant program according to the present invention is shown. It should be noted that, although the voice transmission apparatus 1 is described as an example to describe the method for executing the voice assistant program of the present invention, the method for executing the voice assistant program of the present invention is not limited to the voice transmission apparatus 1 with the same structure.
First, step S201 is performed: detecting whether the second voice assistant program of the electronic device is started.
First, the detection module 30 actively or passively knows the start state of the second voice assistant program 2b, or simultaneously knows the states of the first voice assistant program 2a and the second voice assistant program 2 b. In an embodiment of the present invention, the first voice assistant program 2a may be a built-in program of the operating system, and the second voice assistant program 2b may be an additionally installed program, so that the first voice assistant program 2a is already a resident program, and the detection module 30 only detects the boot status of the second voice assistant program 2 b.
Then, when the detecting module 30 detects that the second voice assistant program 2b is not started, step S202 is performed: a first flag is generated.
When the detecting module 30 detects that the second voice assistant program 2b is not activated, a first flag is generated.
Step S203 is performed again: the first flag is stored.
The memory module 40 is used for storing the first flag.
When the memory module 40 stores the first flag, the process proceeds to step S204: a first control signal is generated by the operation of a user, so that the electronic device executes the first voice assistant program.
When the memory module 40 stores the first flag, only the first voice assistant program 2a is activated, so the control switch 50 generates a first control signal by the user's operation, and the electronic device 2 executes the first voice assistant program 2a to recognize the voice signal from the microphone 10.
If the second voice assistant program 2b is started in step 201, step S205 is performed: a second flag is generated.
When the detecting module 30 detects that the second voice assistant program 2b has been activated, the detecting module 30 generates a second flag.
Then, step S206 is executed: the second flag is stored.
The memory module 40 is used for storing the second flag.
When the memory module 40 stores the second flag, step S207 is performed again: a second control signal is generated by the operation of the user, so that the electronic device executes the second voice assistant program.
The memory module 40 stores the second flag, which represents that the second voice assistant program 2b is activated, so that the control switch 50 generates a second control signal by the user's operation, so that the electronic device 2 directly executes the second voice assistant program 2b to recognize the voice signal from the microphone 10.
It should be noted that the method for executing the voice assistant program in the present invention is not limited to the above-mentioned sequence of steps, and the sequence of the steps can be changed as long as the purpose of the present invention is achieved.
Thus, the user can conveniently use the desired voice assistant program by operating the control switch 50 of the voice transmission device 1 without setting via the electronic device 2.
It should be noted that the above embodiments only illustrate the preferred embodiments of the present invention, and not describe in detail all possible combinations of the variations for avoiding redundancy. However, one of ordinary skill in the art should appreciate that each of the above modules or elements is not necessarily required. And may include other existing modules or components in greater detail for practicing the invention. Each module or component may be omitted or modified as required, and no other module or component may exist between any two modules. The scope of the claims should be determined only by the appended claims, and not by the following claims.