Summary of the invention
The technical problem that the present invention mainly solves is to provide control method and the client terminal of a kind of speech application, it is possible to extremely facilitate user to carry out voice-enabled chat, it is to increase the Experience Degree of user.
For solving the problems of the technologies described above, the technical scheme that the present invention adopts is: a kind of control method providing speech application, comprising: speech application and earphone connect; After described speech application and described earphone connect, described speech application receives the steering order that user is sent by described earphone; The state of the speech voice input function of described speech application is controlled according to described steering order.
Wherein, described speech voice input function is corresponding to the microphone icon shown by display page of described speech application, and described speech application by controlling the opening and closing of described speech voice input function to the operation of described microphone icon.
Wherein, the step of the state controlling the speech voice input function of described speech application according to described steering order comprises: the current state judging the speech voice input function of described speech application;When the speech voice input function of described speech application is currently closing condition, then realizes the clicking operation of described microphone icon according to described steering order, and then open the speech voice input function of described speech application; When the speech voice input function of described speech application is currently opened condition, then realizes the clicking operation of described microphone icon according to described steering order, and then close the speech voice input function of described speech application.
Wherein, the step that described speech application and described earphone connect comprises: after detecting that described earphone and terminating unit connect, and described speech application and described earphone connect; Or after earphone and terminating unit connect, when detecting after described terminating unit opens described speech application, described speech application and described earphone connect; Or after described earphone and terminating unit connect, when receive user to the operational order of the first operating key of described earphone after, described speech application and described earphone connect.
Wherein, after the step that described speech application and described earphone connect, comprising: monitoring earphone media event; When there is earphone media event, obtaining the speech message of earphone media event and described speech message is exported by described earphone.
Wherein, the step of the steering order that described speech application reception user is sent by earphone comprises: described speech application receives user to the operational order of the 2nd operating key of earphone to receive described steering order; Or the phonetic order that described speech application identification user is inputted by earphone is to receive described steering order.
For solving the problems of the technologies described above, another technical solution used in the present invention is: provides a kind of client terminal, comprising: connects module, for connecting with earphone; Receiver module, for, after described connection module and described earphone connect, receiving the steering order that user is sent by described earphone; Control module, for controlling the state of the speech voice input function of client terminal according to described steering order.
Wherein, described speech voice input function is corresponding to the microphone icon shown by display page of described client terminal, and described client terminal by controlling the opening and closing of described speech voice input function to the operation of described microphone icon.
Wherein, described control module comprises: judging unit, for judging the current state of the speech voice input function of client terminal; Control unit, is currently closing condition for the speech voice input function when described client terminal, realizes the clicking operation of described microphone icon according to described steering order, and then open the speech voice input function of described client terminal; When the speech voice input function of described client terminal is currently opened condition, realizes the clicking operation of described microphone icon according to described steering order, and then close the speech voice input function of described client terminal.
Wherein, described connection module is used for after detecting that described earphone and terminating unit connect, and connects with described earphone; Or after earphone and terminating unit connect, when detecting after described terminating unit opens described speech application, connect with described earphone; Or after described earphone and terminating unit connect, when receive user to the operational order of the first operating key of described earphone after, connect with described earphone.
Wherein, also comprise: monitoring modular, for monitoring earphone media event;Output module, for when there is earphone media event, obtaining the speech message of earphone media event and being exported by described earphone by described speech message.
Wherein, described receiver module is for receiving user to the operational order of the 2nd operating key of earphone to receive described steering order; Or for identifying that phonetic order that user inputted by earphone is to receive described steering order.
The invention has the beneficial effects as follows: the situation being different from prior art, speech application and the earphone of the present invention connect, the steering order sent by earphone by speech application reception user, and the state of the speech voice input function of speech application is controlled according to steering order, thus user by carrying out operating the control of the state that can realize speech voice input function to earphone, and the chat interface not needing to open speech application manually clicks the mode of microphone icon to control the state of speech voice input function, therefore do not need frequently to take out the terminating unit running speech application in voice-enabled chat process, only need to can realize phonetic entry by earphone is carried out operation, extremely user-friendly, be conducive to improving the Experience Degree of user.
Embodiment
Below in conjunction with drawings and embodiments, the present invention is described in detail.
Consulting Fig. 1, in the control method one enforcement mode of speech application of the present invention, speech application is the client terminal with speech voice input function, such as, be the online voice client based on internet. The terminating unit running speech application is the mobile terminal with touch function, such as mobile phone, panel computer, intelligent watch etc. Certainly, terminating unit can also be PC or the mobile terminal etc. not possessing touch function. In following each enforcement mode, each main body performing step is client terminal, is also speech application. Described method comprises the steps:
Step S101: speech application and earphone connect.
Wherein, earphone is the line control earphone or wireless headset that connect with mobile terminal. Line control earphone or wireless headset have the broadcast sound volume of the music player of control mobile terminal usually, suspend play, open play, the function such as next playback of songs and a upper first playback of songs. Correspondingly, line control earphone is equipped with volume increase key+, volume reduce key-, suspend/open play the function button such as button, next button.
Utilizing earphone to realize before to the control of speech application, speech application and earphone is first made to connect.
Wherein, the mode that speech application and earphone connect can have multiple. Such as, after speech application is opened, after speech application detects that earphone and mobile terminal set up wired or wireless connection, namely speech application connects with earphone.Or, once the earpiece holes of earphone insertion mobile terminal be detected, namely speech application connects with earphone. Or, after earphone and mobile terminal connect, after mobile terminal opening voice application program being detected, speech application and earphone connect. Or, after earphone and mobile terminal connect, when receive user to the operational order of the first operating key of earphone after, speech application and earphone connect. As shown in Figure 2, first operating key of earphone 20 can be volume increase key+and volume reduce key-between center-control key 21, this center-control key 21 plays case for suspending/open in music player, and in the present embodiment, user can to trigger, speech application and earphone connect by pressing center-control key 21. Certainly, it is also possible to by receiving user, volume is increased the operational order of key+or volume reduction key-or next button so that speech application and earphone connect.
Step S102: after speech application and earphone connect, speech application receives the steering order that user is sent by earphone.
Wherein, user by the 2nd operating key input steering order of operation earphone, such as, can press the 2nd operating key to input steering order. Wherein, the first operating key and the 2nd operating key can be same operating keys, the center-control key being such as on earphone. Now, user can press center-control key for the first time so that speech application and earphone connect, and then presses center-control key to send steering order.
Step S103: the state controlling the speech voice input function of speech application according to steering order.
The state of speech voice input function comprise opened condition and closing condition. Opened condition user at speech voice input function can carry out phonetic entry, and under the closing condition of speech voice input function, user cannot input voice.
Therefore, in present embodiment, realize the speech voice input function to speech application with the use of line control earphone to control, thus user only need to by controlling the state of the speech voice input function of speech application to the operation of earphone, and the chat interface not needing to open speech application manually clicks the mode of microphone icon to control the state of speech voice input function, therefore in voice-enabled chat process, do not need frequently to take out mobile terminal can realize phonetic entry, extremely user-friendly, it is to increase the Experience Degree of user.
In another enforcement mode of speech application of the present invention, after speech application and earphone connect, the speech message of earphone media event is exported by earphone. Earphone media event comprises the speech message of the other side's transmission in voice-enabled chat, the voice of system is broadcasted, the media play sound etc. of mobile terminal. Specifically, after the step that speech application and earphone connect, comprising: speech application monitoring earphone media event. Such as can register a MediaButtonRecevie so that it is become unique receptor (i.e. output terminal) of MEDIA_BUTTON earphone media event. When having monitored earphone media event and occurred, obtain the speech message of earphone media event and this speech message is exported by earphone.
Certainly, in other embodiments, it is also possible to select according to the difference of speech message to be exported speech message by the receiver of mobile terminal or loud speaker, it is also possible to select to be exported speech message by earphone.
In another enforcement mode of the control method of speech application of the present invention, speech voice input function is corresponding to the microphone icon shown by display page of speech application, and speech application by controlling the opening and closing of speech voice input function to the operation of microphone icon.Namely in the present embodiment, speech application is by identifying that the operation of microphone icon is opened and closed speech voice input function by user, therefore in present embodiment, by user, the operation of earphone simulated the operation that user manually clicks microphone icon, and then realize the control of the state to speech voice input function.
Wherein, the step of the state controlling the speech voice input function of speech application according to steering order comprises: the current state judging the speech voice input function of speech application; When the speech voice input function of speech application is currently closing condition, then realize the clicking operation to microphone icon according to steering order, and then the speech voice input function of opening voice application program; When the speech voice input function of speech application is currently opened condition, then realize the clicking operation to microphone icon according to steering order, and then close the speech voice input function of speech application.
Citing, as shown in Figure 3, for wherein a kind of speech application with speech voice input function, this speech application has game on line application, and user can carry out voice-enabled chat in the game on line of this speech application is applied. After user starts the application of the game on line in speech application, mobile terminal display game interface, shows microphone voice ball (i.e. microphone icon) 30 in game interface. User opens the speech voice input function of game on line application by manually clicking microphone voice ball 30 under normal circumstances, thus carry out voice-enabled chat with player in game process, after completing phonetic entry, manually again click microphone voice ball 30 to close the speech voice input function of game on line application. In the present embodiment, do not need user manually click microphone voice ball 30 can close and open game on line application speech voice input function, wherein, after speech application and earphone connect, after the game on line application in this speech application receives the steering order that user sends by pressing the center-control key of earphone, the current state of the speech voice input function of detection game on line application. The state of its speech voice input function is wherein obtained by the AudioManager audio service of system. When the speech voice input function of game on line application is currently closing condition, now receive user and then illustrate that user needs opening voice input function by the steering order that earphone sends, therefore the clicking operation to microphone voice ball 30 is realized according to steering order, namely be equivalent to detect that user clicks the operation of microphone voice ball 30, thus open the speech voice input function of game on line application, now the display state of microphone voice ball 30 is opened condition, and user can carry out phonetic entry. Afterwards after the center-control key that user presses earphone again being detected, be equivalent to the clicking operation detecting that user clicks microphone voice ball 30 again, the speech voice input function now applied according to the operation closedown game on line of user, now the display state of microphone voice ball 30 is closing condition, shows that user completes phonetic entry.
Therefore, earphone only need to be carried out operating the speech voice input function that can open and close speech application by user, not needing frequently to take out mobile terminal in chat process and carry out manual clicking operation with the microphone voice ball 30 to the game interface of speech application, pole is user-friendly to.
In another citing, as shown in Figure 4, for wherein a kind of speech application with speech voice input function, this speech application operates on mobile phone, having mobile phone speech channel, user carries out online voice-enabled chat by the mobile phone speech channel of speech application. When user uses mobile phone speech channel to carry out voice-enabled chat, open and close the speech voice input function of mobile phone speech channel by earphone operation. Specifically, after speech application and earphone connect, and user opens mobile phone speech channel, and the display interface of mobile phone speech channel is as shown in Figure 4. After receiving the steering order that user sends by pressing the center-control key of earphone, first judge the current state of the speech voice input function of mobile phone speech channel. When the speech voice input function of mobile phone speech channel is currently closing condition, now receive user and then illustrate that user needs opening voice input function by the steering order that earphone sends, therefore the clicking operation of microphone icon 40 shown on mobile phone speech channel display interface is realized according to steering order, be equivalent to the operation detecting that user clicks microphone icon 40, with the speech voice input function of starting hand-set speech channel; When the speech voice input function of mobile phone speech channel is currently opened condition, now receive user and then illustrate that user need to close speech voice input function by the steering order that earphone sends, therefore the clicking operation of microphone icon 40 is realized according to steering order, be equivalent to the operation detecting that user clicks microphone icon 40, to close the speech voice input function of mobile phone speech channel.
Wherein, in other enforcement modes of the present invention, it is also possible to receive steering order by the mode of speech recognition. Specifically, after earphone and speech application connect, when user needs the speech voice input function opening or closing speech application, by the microphone input phonetic order of earphone, the phonetic order that speech application is inputted by speech recognition technology identification user, to obtain steering order, is then opened according to steering order or is closed speech voice input function. Such as, user inputs the phonetic order of " opening voice input " by the microphone of earphone, the speech voice input function of opening voice application program after this phonetic order of speech application identification, and after the phonetic order of " closedown phonetic entry " receiving user's input, close the speech voice input function of speech application.
Consulting Fig. 5, in client terminal one enforcement mode of the present invention, client terminal is used for the control method according to above-mentioned any embodiment and realizes the control to client terminal. Client terminal refers to the speech application with speech voice input function. Client terminal operates on the mobile terminal such as mobile phone, panel computer, or can also be run on the terminating units such as PC.
Client terminal comprises and connects module 51, receiver module 52 and control module 53.
Wherein, module 51 is connected for connecting with earphone. Wherein, earphone is line control earphone or wireless headset. Further, connect module 51 after detecting that earphone and mobile terminal set up wired or wireless connections, connect with earphone, such as, when client terminal is opened, connect module 51 once namely earpiece holes earphone insertion mobile terminal being detected connects with earphone. Or connect module 51 for, after earphone and terminating unit connect, when detecting that mobile terminal opens client terminal, namely connecting with earphone. ?ice weevil neigh the humorous ? poor ? of ? guanidine cut private ? 17. the deep and remote 0 ? 1 of ? harmony Xi ? ? for receiving user to the operational order of the first operating key of earphone, the operation of the first operating key of earphone is connected with earphone according to user. By the way, connect to realize client terminal and earphone.
Wherein, receiver module 52 is for, after connection module 51 and earphone connect, receiving the steering order that user is sent by earphone. Wherein, receiver module 52 specifically for receiving the steering order that sent by the 2nd operating key of earphone of user, namely user by press earphone the 2nd operating key to send steering order. First operating key and the 2nd operating key of earphone can be same operating keys, such as, be the center-control key of earphone, it is also possible to be different buttons.
In other embodiments, certainly, being more convenient user operation, it is also possible to controlled the speech voice input function of speech application by the mode of voice, namely receiver module 52 can also be used for identifying that phonetic order that user inputted by earphone is to receive steering order. Therefore user inputs phonetic order by earphone and then sends steering order.
Control module 53 for controlling the state of the speech voice input function of client terminal according to steering order. Wherein, speech voice input function is corresponding to the microphone icon shown by display page of client terminal, and client terminal by controlling the opening and closing of speech voice input function to the operation of microphone icon. It is applied as example with the game on line of wherein a kind of speech application, in this game on line is applied, user opens the speech voice input function of game application by clicking microphone voice ball shown on the game interface of game on line application under normal circumstances, closes speech voice input function by again clicking microphone voice ball after completing phonetic entry. And by the client terminal of present embodiment, then do not need user manually to click microphone voice ball to open and close speech voice input function.
In the present embodiment, further, control module 53 comprises judging unit 531 and control unit 532. Wherein, after receiving steering order, judging unit 531 is for judging the current state of the speech voice input function of client terminal. Control unit 532 is for when the speech voice input function of client terminal is currently closing condition, the clicking operation of microphone icon is realized according to steering order, namely be equivalent to detect that user manually clicks the operation of microphone icon, to open client terminal speech voice input function, now the display state of microphone icon is opened condition, and user can carry out phonetic entry. When judging unit 531 judges the speech voice input function of client terminal currently as opened condition, control unit 532 for realizing the clicking operation of microphone icon according to steering order, namely be equivalent to detect that user manually clicks the operation of microphone icon, to close the speech voice input function of client terminal, now the display state of microphone icon is closing condition.
Wherein, in the enforcement mode of client terminal of the present invention, further comprise monitoring modular 54 and output module 55. Monitoring modular 54 is for, after connection module 51 and earphone connect, monitoring earphone media event, output module 55 is for when monitoring generation earphone media event, obtaining the speech message of earphone media event and by earphone, speech message is exported to user.
By the client terminal of embodiment of the present invention, user only need to by carrying out operating the opening and closing of the speech voice input function that can control client terminal in voice-enabled chat process to earphone, and do not need frequently to take out mobile terminal and the display interface of opening client terminal manually clicks microphone icon to open and close the speech voice input function of client terminal, extremely user-friendly, it is to increase user experience.
The foregoing is only embodiments of the present invention; not thereby the patent scope of the present invention is limited; every utilize specification sheets of the present invention and accompanying drawing content to do equivalent structure or equivalence flow process conversion; or directly or indirectly it is used in other relevant technical fields, all it is included in the scope of patent protection of the present invention with reason.