A kind of information transceiving method, device, terminal and readable medium
Technical field
The present embodiments relate to the communication technology more particularly to a kind of information transceiving method, device, terminal and readable Jie
Matter.
Background technique
Since driver operates mobile phone calling by hand-held during driving or receives and sends messages
Caused by driving accident happen occasionally.Currently, to guarantee driving safety, driver is generallyd use without hand-held vehicle mounted electric
Words, handset earphone or hand-free function are conversed.However, but carrying out information without good mode during driving
Transmitting-receiving.
Summary of the invention
In view of this, being protected the embodiment of the invention provides a kind of information transceiving method, device, terminal and readable medium
The transmitting-receiving of information is realized under the premise of card safe driving.
In a first aspect, the embodiment of the invention provides a kind of information transceiving methods, comprising:
The first information that first terminal is sent is received, whether detection present mode is driving mode;
If so, the information type of the first information is judged, according to the information type of first information casting described first
The information content of information;
Phonetic order is received, according to the information content of the information type of the second information and the second information in the phonetic order
The second information is generated, and second information is sent to first terminal.
Optionally, the information type of the first information includes text and voice;Correspondingly,
The information type according to the first information broadcasts the information content of the first information, comprising:
When the information type of the first information is text, the text in the information content of the first information is obtained, will acquire
Text importing in the information content of the first information is on default interface, and the text in the information content for the first information that will acquire
Word is converted into voice and plays out;
When the information type of the first information is voice, the voice in the information content of the first information is obtained, will acquire
Voice in the information content of the first information plays out, and the voice in the information content for the first information that will acquire is converted into
Text importing is on default interface.
Optionally, described raw according to the information content of the information type of the second information and the second information in the phonetic order
At the second information, comprising:
Semantics recognition is carried out to received phonetic order;
When the information type of the second information in recognition result is text, according in recognition result in the information of the second information
Hold and generate text, using the text as the second information;
When the information type of the second information in recognition result is voice, by the information content of the second information in recognition result
Corresponding phonetic order is intercepted, using the phonetic order of interception as the second information.
Optionally, after described using the text as the second information, further includes:
Second information is shown on default interface;
Correction instruction is received, error correction is carried out to the text in the second information according to the correction instruction;
Confirmation instruction is received, is instructed according to the confirmation and the second information is sent to first terminal;Alternatively,
In the second preset time after the second information is shown or after the second error correction information, the second information is sent to automatically
First terminal.
Optionally, after described using the phonetic order of interception as the second information, comprising:
Second information is played out;
Correction instruction is received, error correction is carried out to the voice in the second information according to the correction instruction;
Confirmation instruction is received, is instructed according to the confirmation and the second information is sent to first terminal;Alternatively,
In the second preset time after the second information plays or after the second error correction information, the second information is sent to automatically
First terminal.
Optionally, the information type according to the first information broadcasts the information content of the first information, comprising:
Current traffic information is obtained, and when current traffic information meets default traffic information, according to the first information
Information type broadcast the information content of the first information.
Optionally, the information type according to the first information broadcasts the information content of the first information, comprising:
Present terminal state is obtained, and when present terminal state meets the default SOT state of termination, according to the first information
Information type broadcast the information content of the first information.
Second aspect, the embodiment of the invention provides a kind of information transceiving devices, comprising:
First information receiving module, for receiving the first information of first terminal transmission;
First information broadcasting module judges the info class of the first information if being driving mode for detecting present mode
Type broadcasts the information content of the first information according to the information type of the first information;
Second information sending module, for receiving phonetic order, according to the info class of the second information in the phonetic order
The information content of type and the second information generates the second information, and second information is sent to first terminal.
The third aspect, the embodiment of the invention provides a kind of terminals, comprising:
One or more processors;
Memory, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processing
Device realizes the information transceiving method as described in any embodiment of the present invention.
Fourth aspect, the embodiment of the invention provides a kind of readable mediums, are stored thereon with computer program, the program quilt
The information transceiving method as described in any embodiment of the present invention is realized when processor executes.
A kind of information transceiving method, device, terminal and readable medium provided in an embodiment of the present invention, wherein information transmit-receive side
Method includes: the first information for receiving first terminal and sending, and whether detection present mode is driving mode;If so, judging first
The information type of information, information type according to the first information broadcast the information content of the first information;Phonetic order is received,
The second information is generated according to the information content of the information type of the second information and the second information in phonetic order, and by described second
Information is sent to first terminal.
The information type of the first information of first terminal carries out the casting of the first information based on the received, and is referred to according to voice
It enables and generates the second information and feed back to first terminal, in the transmitting-receiving for guaranteeing to realize information under the premise of safe driving.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to do one simply to introduce, it should be apparent that, the accompanying drawings in the following description is this hair
Bright some embodiments for those of ordinary skill in the art without creative efforts, can be with root
Other attached drawings are obtained according to these attached drawings.
Fig. 1 is a kind of information transceiving method flow chart that the embodiment of the present invention one provides;
Fig. 2 is a kind of information transceiving device structural schematic diagram provided by Embodiment 2 of the present invention;
Fig. 3 is a kind of structural schematic diagram for terminal that the embodiment of the present invention three provides.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, hereinafter with reference to attached in the embodiment of the present invention
Figure, clearly and completely describes technical solution of the present invention by embodiment, it is clear that described embodiment is the present invention one
Section Example, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not doing
Every other embodiment obtained under the premise of creative work out, shall fall within the protection scope of the present invention.Following each embodiments
In, optional feature and example are provided simultaneously in each embodiment, each feature recorded in embodiment can be combined, and be formed
The embodiment of each number should not be considered merely as a technical solution by multiple optinal plans.
Embodiment one
Fig. 1 is a kind of information transceiving method flow chart that the embodiment of the present invention one provides, and the present embodiment is applicable to terminal
The case where information transmit-receive under driving mode, this method can be realized by terminal, specifically can by software in terminal and/or
Hardware is implemented.
Referring to Fig. 1, which includes the following steps:
S110, the first information that first terminal is sent is received, whether detection present mode is driving mode.
Wherein, the first information that the received first terminal of present terminal is sent, can be soft by the communication of present terminal
The received information of part, wherein communication software for example can be wechat, QQ, mailbox or short message.
Wherein it is possible to increase the switch control of driving mode in the contextual model of present terminal in advance, it is current when opening
When the drive mode switch of terminal, then it can detecte present terminal and be in driving mode.Wherein it is possible to manually opened current end
The drive mode switch at end;The connection that terminal and Vehicular system can also be established, it is automatic when Vehicular system is in driving condition
Sending mode switching command is to present terminal, so that present terminal opens drive mode switch according to mode handover command.
S120, if so, judge the information type of the first information, information type according to the first information broadcasts the first information
The information content.
Wherein, if detection present mode is driving mode, judge the information type of the first information, and according to the first information
Information type casting the first information the information content;If detecting present mode is other modes in addition to driving mode, can
To carry out the transmitting-receiving of information by original information transceiving method.For example, present mode is other modes in addition to driving mode, connect
The first information of receipts is wechat voice, then clicks answering for voice strip progress voice after needing to open wechat application.By to working as
The detection of the present mode of preceding terminal can execute different information transceiving methods under different contextual models, make information transmit-receive
Method more meets the situation demand of user, enriches information transmit-receive mode, improves user experience.
Optionally, the information type of the first information includes text and voice;Correspondingly, information type according to the first information
Broadcast the information content of the first information, comprising:
When the information type of the first information is text, the text in the information content of the first information is obtained, will acquire
Text importing in the information content of the first information is on default interface, and the text in the information content for the first information that will acquire
Word is converted into voice and plays out;
When the information type of the first information is voice, the voice in the information content of the first information is obtained, will acquire
Voice in the information content of the first information plays out, and the voice in the information content for the first information that will acquire is converted into
Text importing is on default interface.
Wherein it is possible to by detecting that the file format of the first information judges the information type of the first information.Such as when
When the file format of one information is adaptive multi-rate (Adaptive Multi-Rate, AMR) format, then it can determine the first letter
The information type of breath is phonetic matrix, for another example when the file format of the first information is text format, then can determine the first information
Information type be text formatting.
Wherein, when the information type of the first information is text, then the information of the first information in communication software can be exported
Text in content by text importing on the default interface of present terminal, and can convert voice for text and play out.
Wherein, default interface can be the overlay text in the current interface of present terminal and show control interface generated;Wherein, may be used
To show in control text setting in text, to realize text importing on the default interface of present terminal.
Wherein, when the information type of the first information is voice, then the voice in the information content of the first information can be exported,
Voice is played out by the audio playing module of present terminal, wherein audio playing module for example can be loudspeaker or ear
Machine, and the voice in the information content for the first information that will acquire is converted into text importing on default interface.Wherein, boundary is preset
Face can be found in the elaboration at above-mentioned default interface.
S130, phonetic order is received, according in the information of the information type of the second information and the second information in phonetic order
Hold and generate the second information, and the second information is sent to first terminal.
Wherein, present terminal can open voice detection function, to detect user's after the casting for completing the first information
Phonetic order replys user to first message by voice.Wherein, if present terminal is when preset instructions receive
It is interior not receive phonetic order, then voice detection function can be closed, and carry out mentioning for corresponding closing voice detection function
Show, to stop the step of replying first message.
Wherein, may include in phonetic order second message information type and the second information the information content, and voice
The sequence of the information content of the type of message of second message in instruction and the second information can be inputted according to preset order.
For example, it may be first inputting the information type of second message in phonetic order, then input the information content of the second information;It can also be with
It is the information content that second message is first inputted in phonetic order, in the information type for inputting the second information.
Wherein, when user inputs phonetic order, in the information type of input second message and the information content of second message
Between can stop the default dead time.Wherein, present terminal can carry out the default dead time when receiving phonetic order
Prompt, so that user can carry out the input of phonetic order according to prompt.
Wherein, the type of message of second message may include voice and text.Illustratively, if being needed in phonetic order first defeated
Enter the information type of second message, then input the information content of the second information, then the phonetic order of user's input can be " voice
What (pause 1s) tonight eats ", then the corresponding information type of the phonetic order is " voice ", and the corresponding information content is
" what tonight eats ".
Optionally, the second letter is generated according to the information content of the information type of the second information and the second information in phonetic order
Breath, comprising:
Semantics recognition is carried out to received phonetic order;When the information type of the second information in recognition result is text,
Text is generated according to the information content of the second information in recognition result, using text as the second information;When in recognition result second
When the information type of information is voice, the corresponding phonetic order of the information content of the second information in recognition result is intercepted,
Using the phonetic order of interception as the second information.
Wherein, semantics recognition is carried out to received phonetic order, it can be first to the suitable of the information type for presetting the second information
The voice segments of the corresponding phonetic order of sequence carry out semantics recognition.Wherein, when identification information type is voice, then without to default
The corresponding phonetic order of the sequence of the information content of second information carries out semantics recognition, and directly intercepts in the information of the second information
Hold corresponding phonetic order, using the phonetic order of interception as the second information.Wherein, when identification information type is text
When, then it needs to carry out semantics recognition to the corresponding phonetic order of sequence of the information content of default second information, and according to identification
As a result text is generated, using text as the second information.
By the information type according to the second information different in the phonetic order that recognizes, the is carried out using distinct methods
The generation of two information can enrich the reply form of the second information.
Optionally, using text as the second information after, further includes:
Second information is shown on default interface;Correction instruction is received, according to correction instruction to the text in the second information
Word carries out error correction;Confirmation instruction is received, the second information is sent to by first terminal according to confirmation instruction;Alternatively, in the second information
When the second preset time after display or after the second error correction information, the second information is sent to first terminal automatically.
It wherein, can be by text importing pre- after generating the second information when the information type of the second information is text
If interface, so that the information content of the user to the second information of input is corrected.When the text needs for being shown in default interface
When error correction, user can input correction instruction again, so that present terminal is according to correction instruction to text wrong in the second information
Word carries out error correction;When being shown in the text at default interface without error correction, user can be instructed with input validation, so that present terminal
Text is sent to first terminal according to confirmation instruction.Further, it is also possible to be that present terminal shows the second information on default boundary
After on face or present terminal according to correction instruction carries out the second preset time after error correction to wrong text in the second information
When, the second information is sent to first terminal automatically.
Optionally, after the phonetic order that will be intercepted is as the second information, comprising:
Second information is played out;Correction instruction is received, the voice in the second information is entangled according to correction instruction
It is wrong;Confirmation instruction is received, the second information is sent to by first terminal according to confirmation instruction;Alternatively, the second information broadcasting after or
When the second preset time after the second error correction information, the second information is sent to first terminal automatically.
Wherein, when the information type of the second information is voice, voice can be played out after generating the second information,
So that the information content of the user to the second information of input is corrected.When the voice of broadcasting needs error correction, user can be again
Secondary input correction instruction, so that present terminal carries out error correction to voice wrong in the second information according to correction instruction;Work as casting
Voice when being not necessarily to error correction, user can be instructed with input validation, so that text is sent to the according to confirmation instruction by present terminal
One terminal.It will be after the casting of the second information or present terminal is believed second according to correction instruction further, it is also possible to be present terminal
When wrong voice carries out the second preset time after error correction in breath, the second information is sent to first terminal automatically.
Optionally, the information content of the information type casting first information according to the first information, comprising:
Current traffic information is obtained, and when current traffic information meets default traffic information, letter according to the first information
Cease the information content of the type casting first information.
Wherein, the current traffic information in the available terminal guidance software of present terminal, and judging current road conditions letter
When breath meets default traffic information, the information content of the information type casting first information according to the first information.Wherein, road is preset
Condition information for example can be the small section of vehicle flowrate or straight trip section.Wherein, default road conditions letter is not met in current traffic information
When breath, then it can postpone or suspend the information content of the casting first information.By when current traffic information meets default road conditions
The casting of the first information is carried out, can be driven to avoid in complicated highway section (such as crossing or turning section) casting first information dispersion
Personnel's attention.
Optionally, the information content of the information type casting first information according to the first information, comprising:
Present terminal state is obtained, and when present terminal state meets the default SOT state of termination, letter according to the first information
Cease the information content of the type casting first information.
Wherein, whether the available present terminal state of present terminal, present terminal state for example can be present terminal
In making and receiving calls state or whether carrying out navigation casting state etc..Judging that present terminal state meets the default SOT state of termination
When, the information content of the information type casting first information according to the first information.Wherein, it presets the SOT state of termination and for example can be and work as
Preceding terminal is not in making and receiving calls state or is not in casting state etc. of navigating.Wherein, it is not met in present terminal state default
When the SOT state of termination, then it can postpone or suspend the information content of the casting first information.It is default by meeting in present terminal state
The casting of the first information is carried out when the SOT state of termination, it can be to avoid (such as logical in the state of should not broadcast the first information in terminal
Speech phase) the casting first information.
Information transceiving method provided in this embodiment, the information type of the first information of first terminal carries out based on the received
The casting of the first information, and the second information is generated according to phonetic order and feeds back to first terminal, before guaranteeing safe driving
Put the transmitting-receiving for realizing information.
Embodiment two
Fig. 2 is a kind of information transceiving device structural schematic diagram provided by Embodiment 2 of the present invention, and the present embodiment is applicable to
Information transmit-receive.Information transmit-receive disclosed in above-described embodiment may be implemented using information transceiving device provided in an embodiment of the present invention
Method.
Referring to fig. 2, information transceiving device in the present embodiment, comprising:
First information receiving module 210, for receiving the first information of first terminal transmission;
First information broadcasting module 220 judges the information of the first information if being driving mode for detecting present mode
Type, the information content of the information type casting first information according to the first information;
Second information sending module 230, for receiving phonetic order, according to the information type of the second information in phonetic order
The second information is generated with the information content of the second information, and the second information is sent to first terminal.
Optionally, the information type of the first information includes text and voice;Correspondingly, first information broadcasting module 220, tool
Body is used for:
When the information type of the first information is text, the text in the information content of the first information is obtained, will acquire
Text importing in the information content of the first information is on default interface, and the text in the information content for the first information that will acquire
Word is converted into voice and plays out;
When the information type of the first information is voice, the voice in the information content of the first information is obtained, will acquire
Voice in the information content of the first information plays out, and the voice in the information content for the first information that will acquire is converted into
Text importing is on default interface.
Optionally, the second information sending module 230, comprising:
Semantics recognition submodule, for carrying out semantics recognition to received phonetic order;
Second information generate submodule, for when the information type of the second information in recognition result be text when, according to knowledge
The information content of the second information generates text in other result, using text as the second information;When the second information in recognition result
When information type is voice, the corresponding phonetic order of the information content of the second information in recognition result is intercepted, will be intercepted
Phonetic order as the second information;
Second information sending submodule, for the second information to be sent to first terminal.
Optionally, the second information sending module 230, further includes:
Second information display sub-module shows the second information on default boundary after being used for using text as the second information
On face;
Second error correction information submodule, for receiving correction instruction, according to correction instruction to the text in the second information into
Row error correction;
Command reception submodule is confirmed, for receiving confirmation instruction;
Second information sending submodule, for the second information to be sent to first terminal according to confirmation instruction.
Optionally, the second information sending submodule is also used to after the second information is shown or after the second error correction information
When two preset times, the second information is sent to first terminal automatically.
Optionally, the second information sending module 230, further includes:
Second information plays submodule, for after the phonetic order that will be intercepted is as the second information, by the second information
It plays out;Correspondingly, the second error correction information submodule, for receiving correction instruction, according to correction instruction in the second information
Voice carry out error correction;
Correspondingly, the second information sending submodule, it is also used to the after the second information plays or after the second error correction information
When two preset times, the second information is sent to first terminal automatically.
Optionally, first information broadcasting module 220, is also used to:
Current traffic information is obtained, and when current traffic information meets default traffic information, letter according to the first information
Cease the information content of the type casting first information.
Optionally, first information broadcasting module 220, is also used to:
Present terminal state is obtained, and when present terminal state meets the default SOT state of termination, letter according to the first information
Cease the information content of the type casting first information.
Information transceiving device provided in this embodiment, the information transceiving method proposed with embodiment one belong to same invention structure
Think, the technical detail of detailed description not can be found in embodiment one in the present embodiment, and the present embodiment has with embodiment one
Identical beneficial effect.
Embodiment three
A kind of terminal is present embodiments provided, can be used for information transmit-receive.Fig. 3 is one kind that the embodiment of the present invention three provides
The structural schematic diagram of terminal.Referring to Fig. 3, which includes:
One or more processors 310;
Memory 320, for storing one or more programs;
When one or more of programs are executed by one or more of processors 310, so that one or more of
Processor 310 realizes the information transceiving method proposed such as embodiment one.
In Fig. 3 by taking a processor 310 as an example;Processor 310 and memory 320 can be connected by bus or other modes
It connects, in Fig. 3 for being connected by bus.
Memory 320 is used as a kind of computer readable storage medium, can be used for storing software program, journey can be performed in computer
Sequence and module, such as the corresponding program instruction/module of the information transceiving method in the embodiment of the present invention.Processor 310 passes through fortune
Software program, instruction and the module that row is stored in memory 320, thereby executing the various function application and data of terminal
Processing, that is, realize above-mentioned information transceiving method.
Memory 320 can mainly include storing program area and storage data area, wherein storing program area can store operation system
Application program needed for system, at least one function;Storage data area, which can be stored, uses created data etc. according to terminal.This
Outside, memory 320 may include high-speed random access memory, can also include nonvolatile memory, for example, at least one
Disk memory, flush memory device or other non-volatile solid state memory parts.In some instances, memory 320 can be into one
Step includes the memory remotely located relative to processor 310, these remote memories can pass through network connection to terminal.On
The example for stating network includes but is not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
The information transceiving method that the terminal and embodiment one that the present embodiment proposes propose belongs to same inventive concept, not at this
The technical detail of detailed description can be found in embodiment one in embodiment, and the present embodiment and embodiment one are having the same beneficial
Effect.
Example IV
The present embodiment provides a kind of readable mediums, are stored thereon with computer program, real when which is executed by processor
Now such as the information transceiving method of the proposition of embodiment one.
The information transceiving method that the readable medium and embodiment one that the present embodiment proposes propose belongs to same inventive concept, not
The technical detail of detailed description can be found in embodiment one in the present embodiment, and the present embodiment and embodiment one are having the same
Beneficial effect.
By the description above with respect to embodiment, it is apparent to those skilled in the art that, the present invention
It can be realized by software and required common hardware, naturally it is also possible to which by hardware realization, but in many cases, the former is more
Good embodiment.Based on this understanding, technical solution of the present invention substantially in other words contributes to the prior art
Part can be embodied in the form of software products, which can store in computer readable storage medium
In, floppy disk, read-only memory (Read-Only Memory, ROM), random access memory (Random such as computer
Access Memory, RAM), flash memory (FLASH), hard disk or CD etc., including some instructions are with so that a computer is set
Standby (can be personal computer, server or the network equipment etc.) executes method described in each embodiment of the present invention.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that
The invention is not limited to the specific embodiments described herein, be able to 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 by above embodiments to the present invention
It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also
It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.