The content of the invention
In order to solve problem present in background technology, i.e., in order to be able to voice reality being carried out using OTT chat softwares in user
When chatting, the recording of speech message and push can be more quick and convenient reduces user in the operation of touch screen surface,
Strengthen Consumer's Experience, embodiments provide recording and method for pushing and its device of a kind of speech message.
The embodiment of the present invention is adopted the following technical scheme that:
A kind of recording of speech message and method for pushing, are applied to install the mobile terminal of OTT bitcom clients,
Methods described includes:
Whether detecting receives the operation that user presses record button in touch screen surface;
If receiving, whether the detecting that continues receives user in the touch screen surface terminates the pressing record button
Operation;
If receiving, open mike carry out recording and simultaneously open the displacement transducer that is located on the mobile terminal with
The real-time range of detecting user face to the touch screen surface;
The predeterminable range stored in the real-time range detected by institute's displacement sensors and data base compares;
And
Whether closed according to the comparison result control mike and whether the voice recorded is pushed to into OTT
Bitcom server;
Methods described also includes:Store in the real-time range that institute's displacement sensors are detected and data base
3rd predeterminable range compares, and judges whether the real-time range is equal to the 3rd predeterminable range;If being equal to, institute will be controlled
State mike to close and while delete the voice recorded;Wherein, the 3rd predeterminable range is 0.
Preferably, the OTT bitcoms client includes the soft of mobile phone QQ, wechat, whatsapp and Fetion
Any one in part client or two kinds.
Preferably, what is stored in the real-time range for detecting institute's displacement sensors and data base is pre-
If distance compares specifically including:
The real-time range detected by institute's displacement sensors respectively with the data base in store it is first pre-
If distance and the second predeterminable range compare, judge the real-time range whether more than first predeterminable range;And
Judge the real-time range whether more than second predeterminable range.
The mike is controlled according to comparison result whether closed and whether will have been recorded preferably, described
Voice pushes to OTT bitcom servers and specifically includes:
When the real-time range is more than first predeterminable range, the mike will be controlled and closed, that is, stop recording;
And
When the real-time range is more than second predeterminable range, the voice that control has been recorded is pushed to into the OTT
Bitcom server.
A kind of recording of speech message and pusher, are applied to install the mobile terminal of OTT bitcom clients,
Described device includes that sensing module, control module, mike, displacement transducer, comparing module, memory module and voice are pushed away
Send module;
The sensing module, for detecting whether in touch screen surface receive the operation of user's pressing record button and
Whether the detecting that continues when receiving receives the operation that user terminates the pressing record button in the touch screen surface, if connecing
Receive then transmission message and give the control module;
The control module, the message for being sent according to the sensing module control the mike and the displacement
Sensor is opened;
Institute's displacement sensors, for detecting user face to the real-time range of the touch screen surface and by detecting result
The comparing module is given in transmission;
The comparing module, for the real-time range and the memorizer mould that detect institute's displacement sensors
The predeterminable range stored in block compares, and the control module then will control the wheat according to the comparison result of the comparing module
Whether gram wind is closed;
The voice pushing module, for controlling whether the voice that will have been recorded according to the comparison result of the comparing module
Push to OTT bitcom servers;
The memory module is also stored with the 3rd predeterminable range, and the comparing module will also be further used for comparing described
Whether the real-time range detected by displacement transducer is equal to the 3rd predeterminable range, if being equal to, the control mould
Block is also by control described mike closing and while deletes the voice recorded;Wherein, the 3rd predeterminable range is 0.
Preferably, the comparing module be further used for comparing institute's displacement sensors are detected it is described in real time
Whether distance is more than the first predeterminable range, and compares whether the real-time range is more than the second predeterminable range.
Preferably, being more than when the comparison module goes out the real-time range detected by institute's displacement sensors
During first predeterminable range, the control module will control the mike and close;Described in going out when the comparison module
When the real-time range detected by displacement transducer is more than second predeterminable range, the voice pushing module control will
The voice recorded pushes to the OTT bitcoms server.
The beneficial effect that technical scheme provided in an embodiment of the present invention is brought is:By implementing speech message of the invention
Record and method for pushing and its device, user when voice live chat is carried out using OTT chat softwares, once record by pressing
Unclamp after tone keys and can start recording;When need stop recording when, can by face along mobile terminal touch screen opposite direction
It is mobile, that is, swing back or mobile terminal moves forward so that real-time range is more than the first predeterminable range;When user needs to send
During the voice recorded, can be again by face to layback certain distance or by mobile terminal to reach certain distance so that in real time away from
From more than the second predeterminable range;In addition, when user needs to delete the voice recorded, face can be removed mobile whole
End touch just to region so that real-time range be 0.Thus, user can be made in the recording for carrying out speech message and pushed away
Can be more quick and convenient when sending, user is reduced in the operation of touch screen surface, strengthen Consumer's Experience.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment a part of embodiment only of the invention, rather than the embodiment of whole.Base
Embodiment in the present invention, those of ordinary skill in the art obtained under the premise of creative work is not made it is all its
His embodiment, belongs to protection scope of the present invention.
The present invention in the description of following embodiment is only applied to smart mobile phone with the method for pushing and its device and enters
Row is illustrated and explanation, but is not intended to limit the present invention, and other mobile terminals with touch screen or equipment can equally be applied
In the inventive solutions, its principle is essentially identical with the application of smart mobile phone, will not go to live in the household of one's in-laws on getting married in the embodiment of the present invention
State.And the mobile terminal includes, but are not limited to the smart mobile phone with touch screen, panel computer, net book, PDA
(Portable Digital Assistant), audio layer -4(MP4)Player etc..
First embodiment
Refer to Fig. 1, a kind of recording of speech message that Fig. 1 is provided for first embodiment of the invention and method for pushing stream
Cheng Tu.First embodiment of the invention provides a kind of recording of speech message and method for pushing, is applied to installation OTT communications soft
The mobile terminal of part client, the method comprising the steps of:
Whether step S10, detecting receive the operation that user presses record button in touch screen surface;
If receiving, execution step S11, whether the detecting that continues receives user in the touch screen surface terminates pressing institute
State the operation of record button;
If receiving, execution step S12, opening mike carries out recording and while opens on the mobile terminal
Displacement transducer is detecting the real-time range of user face to the touch screen surface;
Store in step S13, the real-time range detected by institute's displacement sensors and data base it is default away from
From comparing;And
According to comparison result, step S14, controls whether the mike is closed and whether by the voice recorded
Push to OTT bitcom servers.
In the first embodiment of the invention, the OTT bitcoms client includes mobile phone QQ, wechat, whatsapp
And any one in the software client of Fetion or two kinds.
First, start in step S10, specifically, be that the touch screen surface shows that the record button is first
First need to press a triggering key, the triggering key can be particularly shown the circle with sound logo in touch screen surface
Button, when user in the touch screen surface press the triggering key after, the touch screen surface would indicate that it is described recording by
Key, the record button are embodied in square pressing for being identified with word " pin and speak " in wechat and/or mobile phone QQ
Key.
Further, when be detected in touch screen surface receive user press record button operation, that is, detect user
When pressing the operation of the record button, will continue whether detecting is received described in user's termination pressing in the touch screen surface
Whether the operation of record button, that is, the finger for detecting user leave the touch screen, if so, will then perform step S12.
In step S10, if detecting receives the operation that user presses record button without in touch screen surface,
Continue detecting during step S10 will be jumped to;In step S11, if detecting is without in touch screen surface reception
Terminate the operation of the pressing record button to user, then continue detecting in jumping to step S11.
In step S12, after the mike is opened, user is then needed face near the mobile terminal to reach
Preferably recording effect.Meanwhile, displacement transducer on the mobile terminal will be opened to detect user face to described
The real-time range of touch screen surface, in the first embodiment of the invention, institute's displacement sensors are preferable but are not limited to be embedded in
In the touch screen of the mobile terminal, and the electric power used needed for after institute's displacement sensors are opened is by the electricity of the mobile terminal
Pond provides.When being embodied as, if palm is located at the mobile terminal upper area by user, institute's displacement sensors will be detected
The real-time range of user's palm to the touch screen surface, therefore in the first embodiment of the invention, do not limit the displacement
Sensor detecting is real-time range of the touch screen surface to which kind of barrier.
Further, in step S13, specifically include:
The real-time range detected by institute's displacement sensors respectively with the data base in store it is first pre-
If distance and the second predeterminable range compare, judge the real-time range whether more than first predeterminable range;And
Judge the real-time range whether more than second predeterminable range.
In step S14, specifically include:
When the real-time range is more than first predeterminable range, the mike will be controlled and closed, that is, stop recording;
And
When the real-time range is more than second predeterminable range, the voice that control has been recorded is pushed to into the OTT
Bitcom server.
Specifically, when judging that the real-time range is less than or equal to first predeterminable range, then will jump to described
Again compare in step S13, that is, whether the real-time range is rejudged more than first predeterminable range;It is described when judging
When real-time range is less than or equal to second predeterminable range, will be compared in equally jumping to step S13 again, i.e., sentenced again
Whether the real-time range of breaking is more than second predeterminable range.
Specifically, when implementing, first, user need to be entered in used OTT bitcom clients, on chat circle
In face, user need to press the triggering key shown by the touch screen surface, and after pressing, the touch screen surface would indicate that institute
State record button.User need to press the tone keys and finger is left the touch screen surface after the pressing, thus, then institute
State that mike will proceed by recording and institute's displacement sensors on the mobile terminal will start to detect user face
To the real-time range of the touch screen surface, then, institute's displacement sensors are by the real-time range for being detected and data
The predeterminable range stored in storehouse compares.
Specifically, in the first embodiment of the invention, first predeterminable range preferably but can be not limited to 20cm, will
Second predeterminable range is preferred but is not limited to 30cm.Thus, then when implementing, i.e., starting detecting in institute's displacement sensors
When, user need to be by face to layback so that the distance of face to the touch screen surface is more than 20cm, thus, will then control institute
Mike closing is stated, that is, stops recording.Then, user need to be again by face to layback so that face is to the touch screen surface
Distance more than 30cm, thus, the voice recorded of control is pushed to the OTT bitcoms server then.
Further, backward wing twice can be connected together by user in practical operation, one action of formation, i.e., and one
Individual backward wing, makes face apart from the touch screen surface more than 30cm, thus, will then control the mike and closing and controlling
The voice recorded pushes to the OTT bitcoms server.
Second embodiment
Refer to Fig. 2, a kind of recording of speech message that Fig. 2 is provided for second embodiment of the invention and method for pushing stream
Cheng Tu.In second embodiment of the invention, essentially identical with the content of above-mentioned first embodiment, difference is, at this
In bright second embodiment, methods described is further comprising the steps of:
Whether step S20, detecting receive the operation that user presses record button in touch screen surface;
If receiving, execution step S21, whether the detecting that continues receives user in the touch screen surface terminates pressing institute
State the operation of record button;
If receiving, execution step S22, opening mike carries out recording and while opens on the mobile terminal
Displacement transducer is detecting the real-time range of user face to the touch screen surface;
The 3rd stored in step S23, the real-time range detected by institute's displacement sensors and data base is pre-
If distance compares, judge whether the real-time range is equal to the 3rd predeterminable range;
If being equal to, execution step S24 will control the mike and close and while delete the voice recorded.
Specifically, the institute in step S20 in second embodiment of the invention to step S22 and first embodiment
The method and its principle for stating step S10 to step S12 is essentially identical, and here will not be repeated.
In step S23, if judging, the real-time range is not equal to the 3rd predeterminable range, will jump to
Again detect in step S22.
In step S24, when the mike closing is controlled, the mike will stop recording, and will control
The voice that system has been recorded is deleted.
Further, in second embodiment of the invention, the 3rd predeterminable range is 0.It is i.e. described real-time when judging
When distance is equal to 0, step S24 will be performed.
Specifically, when implementing, first, in the chat interface of OTT bitcom clients, user need to press described
Triggering key shown by touch screen surface, after pressing, the touch screen surface would indicate that the record button.User presses
Finger is simultaneously left the touch screen surface by the tone keys after the pressing, thus, then the mike will proceed by record
Sound and the institute's displacement sensors on the mobile terminal will start the reality for detecting user face to the touch screen surface
When distance, then, institute's displacement sensors by the store in the real-time range for being detected and data base the 3rd it is default away from
From comparing, that is, judge the real-time range whether equal to 0.
Therefore, when implementing, user can be by face to the left(It is right)Side offsets so that institute's displacement sensors are detected less than institute
The real-time range of touch screen surface to user face is stated, then comparison result is that the real-time range is 0;Or, user also can be by
The mobile terminal moves to side, again such that institute's displacement sensors are detected less than the touch screen surface to user face
Real-time range, thus, by control described mike closing and while deleting the voice recorded.
3rd embodiment
Refer to Fig. 3, a kind of recording of speech message that Fig. 3 is provided for third embodiment of the invention and pusher it
System architecture diagram.The present invention more provides a kind of recording and the pusher 30 of speech message, is applied to install OTT bitcoms
The mobile terminal of client, it is characterised in that described device 30 includes sensing module 31, control module 32, mike 33, displacement
Sensor 34, comparing module 35, memory module 36 and voice pushing module 37;
The sensing module 31, for detecting the operation of user's pressing record button whether is received in touch screen surface with
And whether the detecting that continues when receiving receives the operation that user terminates the pressing record button in the touch screen surface, if
Receive then transmission message and give the control module 32;
The control module 32, the message for being sent according to the sensing module 31 control the mike 33 and institute
Displacement sensors 34 are opened;
Institute's displacement sensors 34, for detecting user face to the real-time range of the touch screen surface and tying detecting
The comparing module 35 is given in fruit transmission;
The comparing module 35, for the real-time range and the storage that detect institute's displacement sensors 34
The predeterminable range stored in device module 36 compares, and the control module 32 is then by the comparison result according to the comparing module 35
Control whether the mike 33 is closed;
The voice pushing module 37, for controlling whether to have recorded according to the comparison result of the comparing module 35
Voice pushes to OTT bitcom servers.
Specifically, first, the sensing module 31 starts whether detecting receives user's pressing recording in touch screen surface
The operation of button, if receiving, the sensing module 31 will continue detects whether receive user in the touch screen surface
Terminate the operation of the pressing record button;If being not received by, 31 not start of the sensing module.When the sensing module
31 detect when the touch screen surface receives user and terminates pressing the operation of the record button, will send message and give institute
State control module 32, the control module 32 receive it is described will control after surveying the message that module sends the mike 33 and
Institute's displacement sensors 34 are opened, and the mike 33 proceeds by recording, institute's displacement sensors 34 start detecting in real time away from
From, and in third embodiment of the invention, institute's displacement sensors 34 are preferable but are not limited to be embedded in the mobile terminal
In touch screen, and the electric power used needed for after institute's displacement sensors 34 are opened is provided by the battery of the mobile terminal.
Further, institute's displacement sensors 34 are by the real-time range of the user face for detecting to the touch screen surface
The comparing module 35 is given in transmission, by the comparing module 35 real-time range detected by institute's displacement sensors 34 with
The predeterminable range stored in the memory module 36 compares.
In third embodiment of the invention, the predeterminable range stored by the memory module 36 is preferably default for first
Distance and the second predeterminable range, the comparing module 35 are further used for comparing what institute's displacement sensors 34 were detected
Whether the real-time range is more than the first predeterminable range, and compares whether the real-time range is more than the second predeterminable range.
Further, when the comparing module 35 compares out the real-time range detected by institute's displacement sensors 34
During more than first predeterminable range, the control module 32 will control the mike 33 and close;When the comparing module 35
When comparing out the real-time range less than or equal to first predeterminable range, the control module 32 will not start.
When the comparing module 35 compares out the real-time range that institute's displacement sensors 34 are detected more than described
During the second predeterminable range, the voice that the voice pushing module 37 controls to have recorded pushes to the OTT bitcoms service
Device, when the comparing module 35 compares out the real-time range less than or equal to second predeterminable range, the voice is pushed
Module 37 will not start.
In third embodiment of the invention, first predeterminable range is preferred but is not limited to 20cm, pre- by described second
If distance is preferred but is not limited to 30cm.
During enforcement, i.e., when institute's displacement sensors 34 start detecting, user need to be by face to layback so that face is to institute
The distance of touch screen surface is stated more than 20cm, thus, then the control module 32 will control the mike 33 and close, that is, is stopped
Recording.Then, user need to be again by face to layback so that the distance of face to the touch screen surface more than 30cm, thus,
Then the voice for controlling to have recorded is pushed to the OTT bitcoms server by the voice pushing module 37.
Further, backward wing twice can be connected together by user in practical operation, one action of formation, i.e., and one
Individual backward wing, makes face apart from the touch screen surface more than 30cm, thus, then the control module 32 will control the wheat
Gram voice that wind 33 is closed and the voice pushing module 37 controls to have recorded pushes to the OTT bitcoms server.
Further, in third embodiment of the invention, preferably, the memory module 36 be also stored with it is the 3rd pre-
If distance, the comparing module 35 will also be further used for comparing the real-time range detected by institute's displacement sensors 34
3rd predeterminable range is equal to whether, if being equal to, the control module 32 will also control the mike 33 and close and together
When delete the voice recorded.And the 3rd predeterminable range is 0.
Therefore, when it is 0 that the comparing module 35 compares out the real-time range, the control module 32 will also control institute
State mike 33 to close and while delete the voice recorded.
When implementing, user can be by face to the left(It is right)Side offsets so that institute's displacement sensors 34 are detected less than described
The real-time range of touch screen surface to user face, then the comparison result of the comparing module 35 is that the real-time range is 0;Or
The mobile terminal also can be moved to side by person, user, again such that institute's displacement sensors 34 are detected less than the touch screen
The real-time range on surface to user face.Thus, the control module 32 will control the mike 33 and closing and while deleting
The voice recorded.
It should be noted that the pusher provided by above-described embodiment, is only carried out with the division of above-mentioned each functional module
Illustrate, in practical application, as desired appeal function distribution can be completed by different functional modules, will device
Internal structure be divided into different functional modules, to complete all or part of function described above.In addition, above-mentioned enforcement
The apparatus and method embodiment that example is provided belongs to same design, and which implements process and refers to embodiment of the method, and here will not be entered
Row is repeated.The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
The achievable advantages below of the present invention:
By the present invention, by recording and method for pushing and its device of implementing speech message of the invention, Yong Hu
When voice live chat is carried out using OTT chat softwares, unclamp after record button of pressing and can start recording;Work as needs
When stopping recording, face can be moved along the opposite direction of mobile terminal touch screen, that is, swing back or mobile terminal moves forward, make
Obtain real-time range and be more than the first predeterminable range;When user needs to send the voice recorded, can be again by face to layback
Certain distance or by mobile terminal to reach certain distance so that real-time range be more than the second predeterminable range;In addition, work as using
Family need delete recording voice when, can by face remove mobile terminal touch just to region so that real-time range is 0
.Thus, more quick and convenient when user can be enable in the recording that carries out speech message and being pushed, reduce user in
The operation of touch screen surface, strengthens Consumer's Experience.
The above, the only specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, any
Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained
Lid is within the scope of the present invention.Therefore, protection scope of the present invention should be defined by the protection domain of the requirement.