A kind of speaker control method and system
Technical field
The present invention relates to voice control field more particularly to a kind of speaker control methods and system.
Background technology
Speaker refers to a kind of equipment that audio signal can be transformed to sound.Popular saying refers to just speaker host babinet or low
Power amplifier is carried in sound receiver body, audio signal is amplified after processing, sound is played back out by speaker itself, make its sound
The change of tune is big, and most of controls for speaker at present are still based on physical button, if opening speaker or turning-off sound box all
It is to be realized by pressing the on & off switch of speaker.
And in recent years, as voice processing technology develops rapidly, a series of intelligent sound equipment is derived therewith, gives people
Life bring great convenience.However, its voice still has in transmission range in existing intelligent sound equipment
Limitation, user must could carry out voice control, user's body in the distance range from speech ciphering equipment very little to speech ciphering equipment
It tests and has a greatly reduced quality.Assuming that following scene, when user is when a speech ciphering equipment is placed in parlor, user can only set under normal circumstances
Standby nearby to issue voice command control voice equipment, because the transmission medium of voice is air, this just greatly limits voice control
The distance of system generally manages intelligent sound equipment in intelligent sound control system by way of interactive voice, and existing
Intelligent sound control system is captured by the microphone on mobile terminal or the speech capturing equipment in an intelligent sound equipment
Voice signal, this scheme by mobile terminal or the voice capturing range of the speech capturing equipment of smart machine is limited,
When people in space environment apart from mobile terminal or intelligent sound equipment farther out when, cannot usually realize speech capturing well
And identification.Certainly with the rapid development of speech recognition technology, there are also control intelligent sound box by phonetic order at present
Technical solution, if but being all that user directly carries out interactive voice or presence user and sound-box device distance with speaker
When farther out, or in the case where background is noisy, intelligent sound box is difficult the problem of recognizing effective phonetic order.
The patent of Publication No. CN 106708041AA discloses a kind of intelligent sound box displacement method, the intelligent sound
Case displacement method includes the following steps:It controls microphone array and acquires information of acoustic wave;It is determined according to the information of acoustic wave of acquisition
Sounnd source direction;Intelligent sound box is driven to be moved towards Sounnd source direction.Technical scheme of the present invention determines sound according to the information of acoustic wave of acquisition
The direction in sound source, to drive intelligent sound box to be moved towards sound source direction.In the case of remote controler out of power or damage, sound is used
Sound control intelligent sound box is moved to the position made a sound, realizes the adjusting or closing of speaker, intelligence degree is high, facilitates user
It uses.Although the control to speaker may be implemented by sound instruction for above technical scheme, if still existed above-mentioned
User and sound-box device distance farther out when, or in the case where background is noisy, intelligent sound box is difficult to recognize effective voice
The problem of instruction.
Invention content
The purpose of the present invention is in view of the drawbacks of the prior art, provide the speaker control method based on terminal device and be
System, by terminal device, is coordinated, voice signal, which is converted into electric signal, to be propagated, and use can be effectively extended with speaker
Family promotes user experience to the manipulation range of speaker.
In order to achieve the goal above, the present invention uses following technical scheme:
A kind of speaker control method, including step:
S1. the phonetic order of receiving terminal apparatus forwarding;
S2. the phonetic order is parsed into corresponding control instruction;
S3. the control instruction is executed.
Further, the step S2 is specially:
Extract the keyword in the phonetic order;
The corresponding control instruction of the keyword is determined according to speech analysis table.
Further, further include step before step S3:
Judge whether the corresponding control instruction of the phonetic order can be found according to the speech analysis table;
If it is not, then prompting user to input correct voice by terminal device.
Further, further include step before step S2:
Whether it is authorisation device according to terminal device described in the identification information judgment of the terminal device;
If it is not, being then illegal command by forwarding the terminal device of phonetic order to prompt phonetic order described in user.
Further, the terminal device passes through the electric signal forwarding phonetic order.
Correspondingly, the present invention also provides a kind of speaker control systems, including:
Receiving module, the phonetic order for receiving terminal apparatus forwarding;
Parsing module, for the phonetic order to be parsed into corresponding control instruction;
Respond module, for the phonetic order to be parsed into corresponding control instruction.
Further, the parsing module includes:
First parsing module:For extracting the keyword in the phonetic order;
Second parsing module:The corresponding control instruction of the keyword is determined according to speech analysis table.
Further, further include:
First judgment module:For judging according to the speech analysis table the corresponding control of the phonetic order whether can be found
System instruction;
First reminding module:The corresponding control instruction of the phonetic order can not be found in the speech analysis table for working as
When pass through terminal device user prompted to input correct voice.
Further, further include
Second judgment module:Whether it is to authorize to set according to terminal device described in the identification information judgment of the terminal device
It is standby;
Second reminding module, for being set by the terminal of forwarding phonetic order when the terminal device is unauthorized device
Phonetic order is illegal command described in standby prompt user.
Further, the terminal device passes through the electric signal forwarding phonetic order.
Compared with prior art, the present invention transmits the language for the control to speaker that user sends out by third party's terminal device
Sound instructs, and can voice signal be converted into electric signal transmission, to which extending user utilizes the range of phonetic order manipulation speaker,
Promote user experience.
Description of the drawings
Fig. 1 is a kind of speaker control method flow chart that embodiment one provides;
Fig. 2 is a kind of speaker control system architecture figure that embodiment one provides;
Fig. 3 is a kind of speaker control method flow chart that embodiment two provides;
Fig. 4 is a kind of speaker control system architecture figure that embodiment two provides.
Specific implementation mode
Illustrate that embodiments of the present invention, those skilled in the art can be by this specification below by way of specific specific example
Disclosed content understands other advantages and effect of the present invention easily.The present invention can also pass through in addition different specific realities
The mode of applying is embodied or practiced, the various details in this specification can also be based on different viewpoints with application, without departing from
Various modifications or alterations are carried out under the spirit of the present invention.It should be noted that in the absence of conflict, following embodiment and implementation
Feature in example can be combined with each other.
It should be noted that the diagram provided in following embodiment only illustrates the basic structure of the present invention in a schematic way
Think, component count, shape and size when only display is with related component in the present invention rather than according to actual implementation in schema then
Draw, when actual implementation kenel, quantity and the ratio of each component can be a kind of random change, and its assembly layout kenel
It is likely more complexity.
In the present invention, the phonetic order for the control to speaker that user sends out is transmitted to realize using third party's terminal device
Control to speaker is a specific application scenarios, for other all smart machines that can utilize voice control,
The present invention can be used to solve the problems, such as some of which.
The technology of the present invention is related to a kind of speaker control method and system based on terminal device, with Internet technology
Development, the popularity rate of the fast development of mobile communication technology, terminal device is also higher and higher, and the present invention is exactly to utilize terminal device
Advantage, voice signal can be converted into electric signal transmission, to expand by the intermediary that terminal device is transmitted as phonetic order
Open up range of the user using phonetic order manipulation speaker.
Embodiment one
The present embodiment provides a kind of speaker control methods, as shown in Figure 1, including step:
S11. the phonetic order of receiving terminal apparatus forwarding;
S12. the phonetic order is parsed into corresponding control instruction;
S13. the control instruction is executed.
Wherein, the terminal device has sound pick up equipment that can obtain phonetic order and be converted to phonetic order accordingly
Electric signal is transmitted, and terminal device can be mobile phone, bluetooth headset, wearable device etc..
Specifically, user sends out the phonetic order controlled speaker to terminal device, terminal device receives user
Phonetic order after the phonetic order is converted into electric signal transmission to speaker.
Terminal device will first be established with speaker and be communicated to connect, terminal device can before being forwarded the phonetic order
To carry out direct-connected by the communication modes such as bluetooth, WIFI and intelligent sound box or be connected to by third party devices such as routings common
In network environment, after establishing connection, terminal device can forward the phonetic order that user sends out the speaker.
Certain speaker, which is intelligent sound box, intelligent sound function, the phonetic order that can be forwarded with receiving terminal apparatus,
Human language belongs to high-level language, and after user inputs phonetic order, electric signal transmission is converted into intelligence by terminal device
Energy speaker just needs to convert phonetic order to the executable language of intelligent sound box.Since the control needed for intelligent sound box itself refers to
It enables seldom, probably there are the control instructions such as opening speaker, turning-off sound box, adjusting volume therefore to control intelligence by phonetic order
Speaker only need by phonetic order it is corresponding some execute order, parse what library can accomplish will to input by voice command
Voice signal is changed into the order for needing to execute, and the order is run in system, you can realizes the control to intelligent sound box.Voice
It parses library and safeguards a set of mapping relations, input phonetic order and executable command are converted into one-to-one mapping relations.
It, first can be true with being come according to pre-set speech analysis table after speaker receives the phonetic order of terminal device forwarding
Phonetic order is typically converted to accordingly by the control instruction corresponding to the fixed phonetic order in speech recognition controlled field
The executable control command of equipment is executed.
Optionally, the step S2 is specially:
Extract the keyword in the phonetic order;
The corresponding control instruction of the keyword is determined according to speech analysis table.
Specifically, the speech analysis table be according in the phonetic order comprising about control speaker keyword come
Determine the corresponding control instruction of the phonetic order, under normal circumstances, user can include to want when sending out phonetic order
Smart machine realize how the keyword of effect, for example, user want open speaker when, the phonetic order that user sends out is:It " beats
Open speaker ", then speech analysis table captures keyword therein " opening ", can determine that the phonetic order of user is wanted to realize
Effect be open speaker, be assured that phonetic order is corresponding by getting keyword " opening " in speech analysis table
Control instruction is " opening speaker ", and the phonetic order that can be forwarded according to terminal device by speech analysis table is rapidly and accurately true
Determine user to want to realize which type of is controlled to speaker, it is convenient and efficient.
After speaker determines the control instruction corresponding to phonetic order according to speech analysis table, speaker then executes corresponding control
Control of the user by phonetic order to speaker is realized in system instruction.
Optionally, further include step before step S3:
Judge whether the corresponding control instruction of the phonetic order can be found according to the speech analysis table;
If it is not, then prompting user to input correct voice by terminal device.
Specifically, in daily life, being often possible to can be because a variety of causes makes phonetic order input by user wrong
And corresponding control command can not be executed, for example choppy voice when input phonetic order, speaker can not capture voice and refer to
Therefore keyword after order can first judge the language that user sends out before speaker executes the corresponding control command of phonetic order
Whether sound instruction can find corresponding control instruction in speech analysis table, if can not find phonetic order in speech analysis table
Corresponding control instruction then illustrates that the phonetic order is wrong, can not find corresponding control command and be executed, then be passed through at this time
Forward the terminal device of the phonetic order that user is prompted to input correct phonetic order, concrete mode is that terminal device utilizes voice
The mode of broadcasting prompts user.Because forward the terminal device of the phonetic order and send out the user of phonetic order from compared with
Closely, when phonetic order is wrong, user speech can be notified to instruct at the first time by way of terminal device speech play
It is wrong, correct phonetic order is re-entered, user experience is promoted.
Correspondingly, the present embodiment also provides a kind of speaker control system, as shown in Fig. 2, including:
Receiving module 11, the phonetic order for receiving terminal apparatus forwarding;
Parsing module 12, for the phonetic order to be parsed into corresponding control instruction;
Respond module 12, for the phonetic order to be parsed into corresponding control instruction.
Specifically, the parsing module includes:
First parsing module:For extracting the keyword in the phonetic order;
Second parsing module:The corresponding control instruction of the keyword is determined according to speech analysis table.
Specifically, further including:
First judgment module:For judging according to the speech analysis table the corresponding control of the phonetic order whether can be found
System instruction;
First reminding module:The corresponding control instruction of the phonetic order can not be found in the speech analysis table for working as
When pass through terminal device user prompted to input correct voice.
Specifically, the terminal device passes through the electric signal forwarding phonetic order.
The phonetic order that speaker is controlled that the present embodiment forwards user to send out by third party's terminal device so that language
Sound instruction is converted to electric signal transmission to what speaker controlled by transmission of sound signals, to which extending user is manipulated using phonetic order
The range of speaker realizes remote control of the phonetic order to speaker, promotes user experience.
Embodiment two
The present embodiment provides a kind of speaker control methods, as described in Figure 3, including step:
S21. the phonetic order of receiving terminal apparatus forwarding;
S22. whether it is authorisation device according to terminal device described in the identification information judgment of the terminal device, if so,
Step S23 is jumped to, if being otherwise illegal command by forwarding the terminal device of phonetic order to prompt phonetic order described in user;
S23. the phonetic order is parsed into corresponding control instruction;
S24. the control instruction is executed.
What is different from the first embodiment is that the present embodiment is right before the phonetic order is parsed into corresponding control instruction
Whether the terminal device is that authorisation device is judged.
Specifically, before carrying out voice control to intelligent sound box, intelligent sound box can prestore the mark of authorization terminal equipment
Information, intelligent sound box is usually to be used in occasions such as family's occasion, speech or concerts, as speech, this kind of occasion of concert
People is very more, and scene is complicated, if preset authorization equipment does not control speaker, the possible so much people in scene, as long as
There is terminal device that can carry out voice control to speaker, thus will appear chaotic situation, for example, speaker is received in the same time
To multiple phonetic control commands etc., therefore after the phonetic order for receiving terminal device forwarding, set to terminal first
Whether standby be that authorisation device is judged.
Optionally, intelligent sound box can preset an authorization terminal equipment identification information table, be set when intelligent sound box receives terminal
After the speech-sound intelligent of standby forwarding, the equipment identification information of the terminal device can be first got, it then can be by the equipment identification information
It is compared one by one with the equipment identification information in intelligent sound box authorization terminal equipment identification information table, when authorization terminal equipment mark
When can not find information identical with the terminal device in knowledge information table, then it is authorisation device to illustrate the terminal device not, is passed through
The phonetic order that the terminal device transmits is invalid, then by forwarding the terminal device of phonetic order to prompt phonetic order described in user
For illegal command, concrete mode prompts user for terminal device in the way of speech play.Turn receiving terminal device
First the identity of terminal device is verified when the phonetic order of hair, the phonetic order of only authorized terminal device forwarding is
For effective instruction, security of system, reliability can be improved.
If it is authorisation device to forward the terminal device of phonetic order, continued to execute after receiving phonetic order below
Corresponding program, down-stream is similar to embodiment one, is not repeating herein.
Correspondingly, the present embodiment also provides a kind of speaker control system, as shown in figure 4, including:
Receiving module 21, the phonetic order for receiving terminal apparatus forwarding;
Whether judgment module 22 is to authorize to set for terminal device described in the identification information judgment according to the terminal device
It is standby;
Parsing module 23, for the phonetic order to be parsed into corresponding control instruction;
Respond module 24, for the phonetic order to be parsed into corresponding control instruction.
Specifically, further including:
Reminding module, for being carried by the terminal device of forwarding phonetic order when the terminal device is unauthorized device
Show that phonetic order described in user is illegal command;
The present embodiment first verifies the identity of terminal device when receiving the phonetic order of terminal device forwarding, only
It is just effective instruction to have the phonetic order of authorized terminal device forwarding, can improve security of system, reliability.
Note that above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that
The present invention is not limited to specific embodiments described here, can carry out for a person skilled in the art it is various it is apparent variation,
It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out to the present invention by above example
It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also
May include other more equivalent embodiments, and the scope of the present invention is determined by scope of the appended claims.