Far-field voice control method, terminal and computer readable storage medium

文档序号:96709 发布日期:2021-10-12 浏览:28次 中文

阅读说明:本技术 一种远场语音控制方法、终端及计算机可读存储介质 (Far-field voice control method, terminal and computer readable storage medium ) 是由 王兴伟 于 2021-07-29 设计创作,主要内容包括:本发明公开了一种远场语音控制方法、终端及计算机可读存储介质,其中,方法包括:获取麦克风的机械开关的电平信号,并根据所述电平信号读取所述麦克风的软件开关的状态信息;根据所述软件开关的状态信息控制远场语音指示灯的开关状态,并根据所述开关状态激活远场语音进程,以激活远场语音功能。本发明通过获取麦克风的机械开关的电平信号,可以根据机械开关的状态读取麦克风的软件开关的状态信息,从而根据软件开关的状态控制远指示灯的开关状态,以及激活远场语音功能,在用户不确定硬件关闭或软件关闭的情况下,自动开启终端的远场语音功能,解决了现有的远场语音控制方式无法实现一键开启远场语音功能的技术问题。(The invention discloses a far-field voice control method, a terminal and a computer readable storage medium, wherein the method comprises the following steps: acquiring a level signal of a mechanical switch of a microphone, and reading state information of a software switch of the microphone according to the level signal; and controlling the switching state of the far-field voice indicating lamp according to the state information of the software switch, and activating a far-field voice process according to the switching state so as to activate a far-field voice function. According to the invention, the state information of the software switch of the microphone can be read according to the state of the mechanical switch by acquiring the level signal of the mechanical switch of the microphone, so that the switch state of the remote indicator light is controlled according to the state of the software switch, the far-field voice function is activated, the far-field voice function of the terminal is automatically started under the condition that a user does not determine hardware closing or software closing, and the technical problem that the existing far-field voice control mode cannot realize one-key far-field voice function starting is solved.)

1. A far-field speech control method, comprising:

acquiring a level signal of a mechanical switch of a microphone, and reading state information of a software switch of the microphone according to the level signal;

and controlling the switching state of the far-field voice indicating lamp according to the state information of the software switch, and activating a far-field voice process according to the switching state so as to activate a far-field voice function.

2. The far-field speech control method according to claim 1, wherein the obtaining of the level signal of the mechanical switch of the microphone and the reading of the state information of the software switch of the microphone according to the level signal previously comprises:

acquiring state information of the far-field voice function before last shutdown;

and setting the far-field voice function to be in a state before the last shutdown according to the state information before the last shutdown.

3. The far-field speech control method according to claim 1, wherein the obtaining a level signal of a mechanical switch of a microphone and reading state information of a software switch of the microphone according to the level signal comprises:

acquiring a level signal of the mechanical switch;

judging whether the level signal is a high level signal;

and if the level signal is the high level signal, reading the state information of the software switch.

4. The far-field speech control method according to claim 3, wherein said determining whether the level signal is a high level signal further comprises:

and if the level signal is a low level signal, storing the state of the software switch as a preset state, and closing the far-field voice process.

5. The far-field voice control method according to claim 1, wherein the controlling the switch state of the far-field voice indicator lamp according to the state information of the software switch and activating the far-field voice process according to the switch state comprises:

judging whether the state of the software switch is an opening state or not according to the state information of the software switch;

if the state of the software switch is an opening state, controlling the state of the far-field voice indicator lamp to be an opening state, and activating the far-field voice process;

and if the state of the software switch is a closing state, controlling the state of the far-field voice indicating lamp to be a closing state, and closing the far-field voice process.

6. The far-field voice control method according to claim 1, wherein the method controls the switch state of the far-field voice indicator lamp according to the state information of the software switch and activates the far-field voice process according to the switch state, and then further comprises:

acquiring a user operation instruction;

acquiring state information of the mechanical switch according to the user operation instruction;

restoring the flag bit information of the mechanical switch according to the state information of the mechanical switch, and controlling the on-off state of the far-field voice indicator lamp;

and activating a far-field voice process according to the switching state of the far-field voice indicating lamp.

7. The far-field voice control method according to claim 6, wherein the obtaining of the state information of the mechanical switch according to the user operation instruction comprises:

judging whether an operation object of a user is a mechanical switch or not according to the user operation instruction;

if the operation object of the user is the mechanical switch, acquiring state information of the mechanical switch;

and if the operation object of the user is a remote controller, reading the state information stored in the memory to determine the state information of the mechanical switch.

8. The far-field voice control method according to claim 6, wherein the restoring flag bit information of the mechanical switch according to the state information of the mechanical switch and controlling the switch state of the far-field voice indicator lamp comprise:

judging whether the mechanical switch is switched from a low level to a high level according to the state information of the mechanical switch;

and if the mechanical switch is switched from low level to high level, the flag bit information of the mechanical switch is restored, and the far-field voice indicator lamp is controlled to be in an on state.

9. A terminal, comprising: a processor and a memory, the memory storing a far-field speech control program, the far-field speech control program when executed by the processor being for implementing the far-field speech control method of any one of claims 1-8.

10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a far-field speech control program, which when executed by a processor is configured to implement the far-field speech control method according to any one of claims 1 to 8.

Technical Field

The present invention relates to the field of terminal applications, and in particular, to a far-field speech control method, a terminal, and a computer-readable storage medium.

Background

Along with the development of science and technology, electronic products are becoming intelligent day by day, and more products such as digital television, TV box have increased voice function, and the user can carry out some interactions with the terminal through voice command to promote user's use and experience.

The voice function is divided into near-field voice and far-field voice, wherein the control mode of the near-field voice is as follows: a user sends a voice control instruction to the intelligent remote controller, and then the voice control instruction is transmitted to a terminal (such as a television) needing interaction through the remote controller; far-field speech does not need the intermediary of an intelligent remote controller, and a user can directly interact with a terminal (such as a television). Because voice information acquisition relates to personal privacy, a plurality of countries and regions have corresponding specifications, a far-field voice system is required to be provided with a hardware switch, and when a user closes the hardware switch, a far-field voice function cannot be opened through software operation; therefore, both hardware switches and software switches are designed for far-field speech systems.

For the existing far-field speech control system hardware and software switch, the control mode generally adopts a separate control mode, specifically, the following two modes are adopted: the first one has two indicator lights, which can respectively indicate whether hardware and software shut down the far-field speech system, if the user wants to turn on the far-field speech function, the user needs to execute corresponding operations according to different indicator lights; the second type only has one indicator light, which can only indicate the far-field voice on-off state, but cannot indicate whether the far-field voice on-off state is a software on-off state or a hardware on-off state, and a user needs to turn on a hardware switch first and then turn on a software switch to use the voice function; no matter which control mode is adopted, the function of starting the far-field voice by one key cannot be realized.

Therefore, the prior art has yet to be improved.

Disclosure of Invention

The technical problem to be solved by the present invention is to provide a far-field speech control method, a terminal and a computer readable storage medium to solve the technical problem that the existing far-field speech control method cannot realize the function of turning on the far-field speech by one key.

The technical scheme adopted by the invention for solving the technical problem is as follows:

in a first aspect, the present invention provides a far-field speech control method, including the following steps:

acquiring a level signal of a mechanical switch of a microphone, and reading state information of a software switch of the microphone according to the level signal;

and controlling the switching state of the far-field voice indicating lamp according to the state information of the software switch, and activating a far-field voice process according to the switching state so as to activate a far-field voice function.

In one implementation, the acquiring a level signal of a mechanical switch of a microphone and reading state information of a software switch of the microphone according to the level signal previously includes:

acquiring state information of the far-field voice function before last shutdown;

and setting the far-field voice function to be in a state before the last shutdown according to the state information before the last shutdown.

In one implementation, the acquiring a level signal of a mechanical switch of a microphone and reading state information of a software switch of the microphone according to the level signal includes:

acquiring a level signal of the mechanical switch;

judging whether the level signal is a high level signal;

and if the level signal is the high level signal, reading the state information of the software switch.

In one implementation, the determining whether the level signal is a high level signal further includes:

and if the level signal is a low level signal, storing the state of the software switch as a preset state, and closing the far-field voice process.

In one implementation, the controlling the switch state of the far-field voice indicating lamp according to the state information of the software switch and activating the far-field voice process according to the switch state includes:

judging whether the state of the software switch is an opening state or not according to the state information of the software switch;

if the state of the software switch is an opening state, controlling the state of the far-field voice indicator lamp to be an opening state, and activating the far-field voice process;

and if the state of the software switch is a closing state, controlling the state of the far-field voice indicating lamp to be a closing state, and closing the far-field voice process.

In one implementation, the controlling the switch state of the far-field voice indicating lamp according to the state information of the software switch and activating the far-field voice process according to the switch state further includes:

acquiring a user operation instruction;

acquiring state information of the mechanical switch according to the user operation instruction;

restoring the flag bit information of the mechanical switch according to the state information of the mechanical switch, and controlling the on-off state of the far-field voice indicator lamp;

and activating a far-field voice process according to the switching state of the far-field voice indicating lamp.

In one implementation, the obtaining the state information of the mechanical switch according to the user operation instruction includes:

judging whether an operation object of a user is a mechanical switch or not according to the user operation instruction;

if the operation object of the user is the mechanical switch, acquiring state information of the mechanical switch;

and if the operation object of the user is a remote controller, reading the state information stored in the memory to determine the state information of the mechanical switch.

In one implementation, the restoring flag bit information of the mechanical switch according to the state information of the mechanical switch and controlling the switch state of the far-field voice indicator lamp include:

judging whether the mechanical switch is switched from a low level to a high level according to the state information of the mechanical switch;

and if the mechanical switch is switched from low level to high level, the flag bit information of the mechanical switch is restored, and the far-field voice indicator lamp is controlled to be in an on state.

In a second aspect, the present invention provides a terminal, comprising: a processor and a memory, the memory storing a far-field speech control program, the far-field speech control program being executable by the processor for implementing the far-field speech control method according to the first aspect.

In a third aspect, the present invention provides a computer-readable storage medium storing a far-field speech control program for implementing the far-field speech control method according to the first aspect when the far-field speech control program is executed by a processor.

The invention adopts the technical scheme and has the following effects:

according to the invention, the state information of the software switch of the microphone can be read according to the state of the mechanical switch by acquiring the level signal of the mechanical switch of the microphone, so that the switch state of the remote indicator light is controlled according to the state of the software switch, the far-field voice function is activated, the far-field voice function of the terminal is automatically started under the condition that a user does not determine hardware closing or software closing, and the technical problem that the existing far-field voice control mode cannot realize one-key far-field voice function starting is solved.

Drawings

In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the structures shown in the drawings without creative efforts.

FIG. 1 is a flow chart of a far-field speech control method in one implementation of the invention.

FIG. 2 is a functional schematic of hardware modules in one implementation of the invention.

Fig. 3 is a functional schematic of a terminal in one implementation of the invention.

The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.

Detailed Description

In order to make the objects, technical solutions and advantages of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.

Exemplary method

As shown in fig. 1, an embodiment of the present invention provides a far-field speech control method, including the following steps:

step S100, acquiring a level signal of a mechanical switch of a microphone, and reading state information of a software switch of the microphone according to the level signal.

In this embodiment, the far-field speech control method is applied to a terminal, and the terminal includes but is not limited to: a television (or an intelligent television), a mobile terminal, equipment with a far-field voice function and the like; the present embodiment takes a television as an example, and explains the far-field speech control method.

In this embodiment, the television is a television with far-field speech function, and the television includes: the system comprises a hardware module and a software module, wherein the hardware module and the software module can be used for controlling a microphone for turning on or off a far-field voice function of the television.

As shown in fig. 2, the hardware module includes: the microphone array comprises a power supply, a mechanical switch (namely a mechanical switch module), a microphone array, a main control module and an indicator light module; the mechanical switch is connected with the power supply; the microphone array, the main control module and the indicator light module are respectively connected with the mechanical switch; the power supply supplies power to the microphone array through the mechanical switch so as to control the working state of the microphone array;

further, in this embodiment, the mechanical switch is a hardware switch module capable of turning off a power supply of the microphone in the microphone array, and is characterized in that: the mechanical switch can be an independent switch or a functional module capable of controlling the on-off of a power supply; the microphone array has the functions of collecting voice signals of users and converting the voice signals into signals which can be processed by the main control module (main control SOC control chip), and is characterized in that: the power of the microphone array is output by the mechanical switch.

The main function of the main control module is to further process the signals sent by the microphone array and to integrally control the far-field voice module of the television, and the main control module is characterized in that:

1) the main control module adopts a separate power supply mode to supply power, and the power supply of the main control module is not provided by the mechanical switch;

2) the main control module can detect an output signal of the mechanical switch in real time, if the state of the mechanical switch is an on state, a level signal detected by the main control module is a high level, and if the state of the mechanical switch is an off state, the level signal detected by the main control module is a low level;

3) the main control module controls the on and off states of the indicator lamps in the indicator lamp module through output signals.

The indicating lamp module is used for indicating the state of the current far-field voice module, when an indicating lamp of the indicating lamp module is in a lighting state, the indicating lamp module indicates that the far-field voice module of the television is in an activated state, and the far-field voice module is in a working state; when the indicator light of the indicator light module is in an off state, the far-field voice module of the television is in a closed state, and the far-field voice module is in a non-working state.

The indicator light module is characterized in that:

1) the power supply of the indicator light module is provided by the mechanical switch, and the power supply of the indicator light module is connected with the power supply of the microphone array in parallel;

2) the indicating state of the indicating lamp module is controlled by the signal of the main control module.

In this embodiment, the operation of the software module for the far-field speech of the television set can be divided into two parts: starting an initialization process and a human-computer interaction process by software; the software starting initialization process refers to that after the television is started, the television can set the state of a far-field voice system to be the state of the television before the last shutdown; the human-computer interaction process is a process that after software is started and initialized, the television can use a far-field voice function according to key operation of a user so as to realize far-field voice interaction.

Specifically, in the software startup initialization process, the state of the far-field speech system set by the television includes: the working state of the hardware switch and the working state of the software switch; when the state of the far-field speech system is set, the state information of the far-field speech function before the last shutdown can be obtained, and the state information before the last shutdown comprises: state information of the hardware switch and state information of the software switch; after the state information before the last shutdown is obtained, the far-field voice function can be set to be in the state before the last shutdown according to the state information before the last shutdown; it can be understood that, in the software startup initialization process, the hardware switch state and the software switch state of the far-field speech system are mainly restored to the state of the last shutdown.

That is, in one implementation manner of the present embodiment, step 100 includes the following steps before:

001, acquiring state information of the far-field voice function before last shutdown;

and 002, setting the far-field voice function to be in a state before the last shutdown according to the state information before the last shutdown.

In this embodiment, when the television is turned on, in the software startup initialization process, the level signal of the mechanical switch may be acquired, and then it is determined whether the level signal is a high level signal, and the on-off state of the mechanical switch is determined by the acquired level signal of the mechanical switch, so as to acquire the state information of the software switch, and activate the far-field speech process by the state information of the software switch.

Further, when a level signal of the mechanical switch is obtained, the high level signal indicates that the mechanical switch is in an open state, and the low level signal indicates that the mechanical switch is in a closed state; when judging whether the level signal is a high level signal, if the level signal is the high level signal, reading the state information of the software switch; the state information of the software switch is the switch state information stored in the far-field voice control software of the television, and on the premise that the mechanical switch is turned on, a user can turn on the far-field voice function of the television through a far-field voice switch button in the software.

In this embodiment, when determining whether the level signal is a high level signal, if the level signal is a low level signal, storing the state of the software switch as a preset state, and closing the far-field speech process; wherein the preset state is the same as a mechanical switch of the microphone; it can be understood that, when the level signal of the mechanical switch is a low level signal, the mechanical switch is in a closed state, and at this time, the television sets the software switch to a closed state as well, and also closes the far-field speech process, so that the far-field speech module is in an inoperative state.

That is, in an implementation manner of this embodiment, step S100 specifically includes the following steps:

step S110, acquiring a level signal of the mechanical switch;

step S120, judging whether the level signal is a high level signal;

step S130, if the level signal is the high level signal, reading the state information of the software switch;

step S140, if the level signal is a low level signal, storing the state of the software switch as a preset state, and closing the far-field speech process.

In the embodiment, by acquiring the level signal of the mechanical switch, the state information of the software switch can be read under the condition that the level signal is a high level signal, so that a far-field voice process is activated according to the software switch; and under the condition that the level signal is a low level signal, setting the software switch to be in a closed state, and closing the far-field voice progress.

As shown in fig. 1, in an implementation manner of the embodiment of the present invention, the far-field speech control method further includes the following steps:

and S200, controlling the switching state of the far-field voice indicator lamp according to the state information of the software switch, and activating a far-field voice process according to the switching state so as to activate a far-field voice function.

In this embodiment, after reading the state information of the software switch, the television set may control the switching state of the far-field voice indicator lamp according to the state information of the software switch, and activate the far-field voice process according to the switching state to activate the far-field voice function; the on-off state of the indicator light and the state of the software switch are corresponding states.

Specifically, when the on-off state of the far-field voice indicator lamp is controlled, whether the state of the software switch is an on state or not can be judged according to the state information of the software switch; if the state of the software switch is an opening state, controlling the state of the far-field voice indicator lamp to be an opening state, and activating the far-field voice process, so that a far-field voice module of the television executes work; and if the state of the software switch is a closing state, controlling the state of the far-field voice indicating lamp to be a closing state, and closing the far-field voice process, so that the far-field voice module of the television stops working.

That is, in an implementation manner of this embodiment, the step S200 specifically includes the following steps:

step S210, judging whether the state of the software switch is an opening state or not according to the state information of the software switch;

step S220, if the state of the software switch is an open state, controlling the state of the far-field voice indicator lamp to be an open state, and activating the far-field voice process;

in step S230, if the state of the software switch is the off state, the far-field voice indicator is controlled to be in the off state, and the far-field voice process is turned off.

According to the embodiment, whether the state of the software switch is the opening state or not is judged, when the software switch is in the opening state, the state of the far-field voice indicating lamp is controlled to be the opening state, and the far-field voice process is activated, so that a user can know the working state of far-field voice according to the indicating lamp, and the television can automatically activate the far-field voice process according to the states of the mechanical switch and the software switch.

In an implementation manner of the embodiment of the present invention, the far-field speech control method further includes the following steps:

step S300, acquiring a user operation instruction;

step S400, acquiring state information of the mechanical switch according to the user operation instruction;

step S500, restoring the flag bit information of the mechanical switch according to the state information of the mechanical switch, and controlling the on-off state of the far-field voice indicator lamp;

and step S600, activating a far-field voice process according to the switching state of the far-field voice indicating lamp.

In this embodiment, after software of the television is initialized, the television can start a human-computer interaction process of a far-field voice function; in the human-computer interaction process, a user may turn on a far-field voice function through a mechanical switch (or a mechanical button) on the television or a far-field voice function key on a remote controller to execute the human-computer interaction process of the far-field voice function.

Specifically, when a man-machine interaction process of a far-field voice function is executed, the television firstly acquires state information of an indicator light; because, in the software initialization phase of the television, the television has already controlled the indicator light to display the corresponding status; if the indicator light is in an on state, the far-field voice function of the television is started in an initialization stage, and at the moment, a user can directly use the far-field voice function of the television, namely the user can directly control the television through voice.

In this embodiment, if the indicator light is in the off state, it indicates that the television has turned off the far-field voice function in the initialization stage, and at this time, the user is required to turn on the far-field voice function manually, that is, turn on the far-field voice function through a mechanical switch (or a mechanical button) of the television or a far-field voice function key on a remote controller.

Further, when the far-field voice function is manually started by a user, the television acquires a user operation instruction, and acquires the state information of the mechanical switch according to the user operation instruction; specifically, the television can judge whether an operation object of a user is a mechanical switch according to the user operation instruction, and if the operation object of the user is the mechanical switch, state information of the mechanical switch is acquired, so that a far-field voice process is activated according to a state change process of the mechanical switch; and if the user operation object is a remote controller, reading the state information stored in the memory to determine the state information of the mechanical switch, so that the far-field voice process is activated directly according to the state information stored in the memory.

That is, in an implementation manner of this embodiment, the step S400 specifically includes the following steps:

step S410, judging whether the operation object of the user is a mechanical switch or not according to the user operation instruction;

step S420, if the operation object of the user is the mechanical switch, acquiring the state information of the mechanical switch;

step S430, if the operation object of the user is a remote controller, reading the state information stored in the memory to determine the state information of the mechanical switch.

In this embodiment, according to an operation object of a user, the television executes different activation procedures, which are specifically as follows:

when the operation object of the user is the mechanical switch (or the mechanical button) of the television, the television firstly acquires the current state of the mechanical switch, then judges whether the mechanical switch is switched from a low level to a high level according to the state information of the mechanical switch, if the mechanical switch is switched from the low level to the high level, the flag bit information of the mechanical switch is restored, and the far-field voice indicator lamp is controlled to be in the on state.

Specifically, when the current state of the mechanical switch is obtained, the television needs to detect that the mechanical switch has a process of switching from a low level to a high level; if the current state of the mechanical switch is a closed state, after the mechanical switch is opened by the user to be detected, the television detects that the mechanical switch has a process of converting from a low level to a high level, at the moment, the television restores the mark bit information (namely the mark bit corresponding to the open state of the mechanical switch) of the mechanical switch at a software end and controls the far-field voice indicator lamp to be in an open state, and under the condition that the mechanical switch is opened by the user, a far-field voice process is activated, so that the far-field voice function of the television can be used.

If the current state of the mechanical switch is an on state, in order to enable the television to detect that the mechanical switch has a process of switching from a low level to a high level, a user needs to firstly turn off the mechanical switch and then turn on the mechanical switch again; therefore, the television can detect that the mechanical switch has a process of switching from a low level to a high level, at this time, the television restores the flag bit information of the mechanical switch at a software end, controls the far-field voice indicator lamp to be in an on state, and activates a far-field voice process under the condition that a user turns on the mechanical switch after turning off, so that the far-field voice function of the television can be used.

That is, in an implementation manner of this embodiment, the step S500 specifically includes the following steps:

step S510, judging whether the mechanical switch is switched from a low level to a high level according to the state information of the mechanical switch;

and step S520, if the mechanical switch is switched from low level to high level, reducing the flag bit information of the mechanical switch and controlling the far-field voice indicator lamp to be in an on state.

In this embodiment, when the operation object of the user is the remote controller of the television, the television directly reads the state information of the mechanical switch stored in the memory to determine the current state of the mechanical switch.

Specifically, when the current state of the mechanical switch is determined, if the read state of the mechanical switch is a closed state, a dialog box pops up to prompt a user to open the mechanical switch, after the user opens the mechanical switch, the television detects that the mechanical switch has a process of switching from a low level to a high level, at this time, the television restores flag bit information of the mechanical switch at a software end and controls the far-field voice indicator lamp to be in an open state, and in the case that the user opens the mechanical switch, a far-field voice process is activated, so that the far-field voice function of the television can be used.

If the read state of the mechanical switch is an open state, the television directly restores the flag bit information of the mechanical switch at a software end and controls the far-field voice indicator lamp to be in an open state, so that a far-field voice process is activated, and the far-field voice function of the television can be used.

In this embodiment, when it is unclear whether the television is turned off by software or turned off by hardware, by using the far-field speech control method, the user can activate the far-field speech process only according to the operation flow of the mechanical switch (in the state where the indicator light is turned on, and in the case where the mechanical switch is turned on, by performing the operation of turning off and turning on again), so as to turn on the far-field speech system of the television, thereby implementing the "one-key-on" function.

It should be noted that, in this embodiment, the far-field speech control method is applicable to a far-field speech system with one indicator light or two indicator lights, that is, one indicator light or two indicator lights can both indicate the working state of the far-field speech of the television.

According to the method and the device, the state information of the software switch of the microphone can be read according to the state of the mechanical switch by acquiring the level signal of the mechanical switch of the microphone, so that the switch state of the remote indicator light is controlled according to the state of the software switch, the far-field voice function is activated, the far-field voice function of the terminal is automatically started under the condition that a user does not determine that hardware is closed or software is closed, and the technical problem that the existing far-field voice control mode cannot realize the function of starting the far-field voice by one key is solved.

Exemplary device

Based on the above embodiments, the present invention further provides a terminal, and a schematic block diagram thereof may be as shown in fig. 3.

The terminal includes: the system comprises a processor, a memory, an interface, a display screen and a communication module which are connected through a system bus; wherein the processor of the terminal is configured to provide computing and control capabilities; the memory of the terminal includes a computer-readable storage medium and an internal memory; the computer readable storage medium stores an operating system and a computer program; the internal memory provides an environment for the operation of an operating system and a computer program in the computer-readable storage medium; the interface is used for connecting external terminal equipment, such as mobile terminals and computers; the display screen is used for displaying corresponding far-field voice control information; the communication module is used for communicating with a cloud server or a mobile terminal.

The computer program is executed by a processor to implement a far-field speech control method.

It will be understood by those skilled in the art that the block diagram shown in fig. 3 is a block diagram of only a portion of the structure associated with the inventive arrangements and is not intended to limit the terminals to which the inventive arrangements may be applied, and that a particular terminal may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.

In one embodiment, a terminal is provided, which includes: the device comprises a processor and a memory, wherein the memory stores a far-field voice control program, and the far-field voice control program is used for realizing the far-field voice control method when being executed by the processor.

In one embodiment, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a far-field speech control program, which when executed by a processor is used to implement the far-field speech control method as above.

It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware related to instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, the computer program can include the processes of the embodiments of the methods described above. Any reference to memory, storage, databases, or other media used in embodiments provided herein may include non-volatile and/or volatile memory.

In summary, the present invention provides a far-field speech control method, a terminal and a computer-readable storage medium, wherein the method includes: acquiring a level signal of a mechanical switch of a microphone, and reading state information of a software switch of the microphone according to the level signal; and controlling the switching state of the far-field voice indicating lamp according to the state information of the software switch, and activating a far-field voice process according to the switching state so as to activate a far-field voice function. According to the invention, the state information of the software switch of the microphone can be read according to the state of the mechanical switch by acquiring the level signal of the mechanical switch of the microphone, so that the switch state of the remote indicator light is controlled according to the state of the software switch, the far-field voice function is activated, the far-field voice function of the terminal is automatically started under the condition that a user does not determine hardware closing or software closing, and the technical problem that the existing far-field voice control mode cannot realize one-key far-field voice function starting is solved.

It is to be understood that the invention is not limited to the examples described above, but that modifications and variations may be effected thereto by those of ordinary skill in the art in light of the foregoing description, and that all such modifications and variations are intended to be within the scope of the invention as defined by the appended claims.

12页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:音频处理方法和装置、存储介质及电子设备

网友询问留言

已有0条留言

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

精彩留言,会给你点赞!