CN110265016A - Voice interactive method and device - Google Patents

Voice interactive method and device Download PDF

Info

Publication number
CN110265016A
CN110265016A CN201910555394.XA CN201910555394A CN110265016A CN 110265016 A CN110265016 A CN 110265016A CN 201910555394 A CN201910555394 A CN 201910555394A CN 110265016 A CN110265016 A CN 110265016A
Authority
CN
China
Prior art keywords
rollback
instruction
voice
response
operation instruction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910555394.XA
Other languages
Chinese (zh)
Inventor
贺学焱
欧阳能钧
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Apollo Zhilian Beijing Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201910555394.XA priority Critical patent/CN110265016A/en
Publication of CN110265016A publication Critical patent/CN110265016A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/26Speech to text systems

Abstract

The embodiment of the present application discloses voice interactive method and device.One specific embodiment of this method includes: to export executing instruction for operation indicated by the operation instruction voice in response to receiving operation instruction voice;Rollback operation instruction is added to spatial cache by the rollback operation instruction for generating rollback operation corresponding with the operation;Word is waken up in response to receiving default retract, exports rollback operation instruction from the spatial cache.The embodiment of the present application can improve the response efficiency of equipment in the case where user goes back on one's word the instruction of issued voice.

Description

Voice interactive method and device
Technical field
The invention relates to field of computer technology, and in particular to Internet technical field more particularly to voice are handed over Mutual method and apparatus.
Background technique
With the development of interactive voice technology, more and more users, which can experience, carries out interactive voice bring with equipment Convenient and enjoyment.However, the interactive process of existing user and equipment, if user expresses mistake and has issued mistake to equipment Instruction, rethinks and retracts, it is necessary to reawake electronic equipment, and issue opposite instruction.
And such back off procedure, process are complex, and time-consuming, efficiency is lower.
Summary of the invention
The embodiment of the present application proposes voice interactive method and device.
In a first aspect, the embodiment of the present application provides a kind of voice interactive method, comprising: in response to receiving operation instruction Voice exports executing instruction for operation indicated by operation instruction voice;Generate the rollback behaviour of rollback operation corresponding with operation It instructs, rollback operation instruction is added to spatial cache;Word is waken up in response to receiving default retract, is exported from spatial cache Rollback operation instruction.
In some embodiments, word is waken up in response to receiving default retract, exports the rollback from the spatial cache Operational order, comprising: wake up word in response to receiving default retract within a preset period of time, export rollback behaviour corresponding with operation The rollback operation of work instructs, wherein preset time period is from operation instruction voice is received to the operation instruction voice that is finished During indicated operation, as time zero at the time of any.
In some embodiments, word is being waken up in response to receiving default retract, is being returned from spatial cache output is described After moving back operational order, method further include: in response to receiving the instruction voice again of user, instruction voice is signified again for output The operation shown executes instruction.
In some embodiments, word is waken up in response to receiving default retract, exports the rollback from the spatial cache Operational order, comprising: in response to operation indicated by operation instruction voice be status modifier operate, to operation executing module export Rollback operation instruction, so that operation executing module operates the shape before modified state is adjusted to modification for status modifier is executed State.
In some embodiments, word is waken up in response to receiving default retract, exports the rollback from the spatial cache Operational order, comprising: send operation in response to operation indicated by operation instruction voice for message, exported to operation executing module Rollback operation instruction, so that operation executing module revocation messages send the transmitted message of operation.
In some embodiments, word is waken up in response to receiving default retract, exports the rollback from the spatial cache Operational order, comprising: in response to operation indicated by operation instruction voice be information search operate, to operation executing module export Rollback operation instruction, so that the search result of operation executing module revocation information search operation.
In some embodiments, the rollback operation instruction is exported from the spatial cache, comprising: operate in response to determining Operation indicated by instruction voice runs succeeded, and whether determine has rollback operation instruction in spatial cache;If it is determined that spatial cache In have a rollback operation instruction, export the rollback operation instruction in spatial cache;If it is determined that operation refers to without back-off in spatial cache It enables, exports the default back-off instruction of operating system.
In some embodiments, after the rollback operation instruction in output spatial cache, method further include: in response to connecing It receives default retract and wakes up word, export and instruct the previous rollback being added in spatial cache prior to the rollback operation of rollback operation Operational order.
Second aspect, the embodiment of the present application provide a kind of voice interaction device, comprising: the first output unit is configured At in response to receiving operation instruction voice, executing instruction for operation indicated by operation instruction voice is exported;Adding unit, quilt It is configured to generate the rollback operation instruction of rollback operation corresponding with operation, rollback operation instruction is added to spatial cache;The Two output units are configured in response to receive the default wake-up word that retracts, from spatial cache output rollback operation instruction.
In some embodiments, the second output unit is further configured to: in response to receiving within a preset period of time Default retract wakes up word, and the rollback operation for exporting rollback operation corresponding with operation instructs, wherein preset time period is with from reception During operation instruction voice to the operation indicated by operation instruction voice that is finished, risen at the time of any as timing Point.
In some embodiments, device further include: third output unit is configured in response to receive user again Indicate voice, output indicates executing instruction for operation indicated by voice again.
In some embodiments, the second output unit is further configured to: in response to indicated by operation instruction voice Operation is that status modifier operates, to operation executing module output rollback operation instruction, so that operation executing module will execute state Modification operates the state that modified state is adjusted to before modification.
In some embodiments, the second output unit is further configured to: in response to indicated by operation instruction voice Operation is that message sends operation, to operation executing module output rollback operation instruction, so that operation executing module revocation messages are sent out The message for sending operation transmitted.
In some embodiments, the second output unit is further configured to: in response to indicated by operation instruction voice Operation is that information search operates, to operation executing module output rollback operation instruction, so that operation executing module revocation information is searched The search result of rope operation.
In some embodiments, the second output unit is further configured to: in response to determining that operation instruction voice is signified The operation shown runs succeeded, and whether determine has rollback operation instruction in spatial cache;If it is determined that there is rollback operation in spatial cache Instruction exports the rollback operation instruction in spatial cache;If it is determined that operational order, output operation are without back-off in spatial cache The default back-off instruction of system.
The third aspect, the embodiment of the present application provide a kind of electronic equipment, comprising: one or more processors;Storage dress It sets, for storing one or more programs, when one or more programs are executed by one or more processors, so that one or more A processor realizes the method such as any embodiment in voice interactive method.
Fourth aspect, the embodiment of the present application provide a kind of computer readable storage medium, are stored thereon with computer journey Sequence realizes the method such as any embodiment in voice interactive method when the program is executed by processor.
Interactive voice scheme provided by the embodiments of the present application, firstly, in response to receiving operation instruction voice, output operation Indicate executing instruction for operation indicated by voice.Later, it is configured to generate the rollback behaviour of rollback operation corresponding with operation It instructs, rollback operation instruction is added to spatial cache.Finally, word is waken up in response to receiving default retract, it is empty from caching Between output rollback operation instruction.The embodiment of the present application can be by omitting simple wake-up terminal device (without operation instruction) Process wakes up the rollback of the direct triggering terminal equipment of word by retracting in the case where user goes back on one's word the instruction of issued voice Operation improves the response efficiency of equipment to simplify the voice that user needs to issue.Further, it is retracted and is waken up by setting Word can set more and richer rollback operation.
Detailed description of the invention
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, the application's is other Feature, objects and advantages will become more apparent upon:
Fig. 1 is that this application can be applied to exemplary system architecture figures therein;
Fig. 2 is the flow chart according to one embodiment of the voice interactive method of the application;
Fig. 3 is the schematic diagram according to an application scenarios of the voice interactive method of the application;
Fig. 4 is the flow chart according to another embodiment of the voice interactive method of the application;
Fig. 5 is the structural schematic diagram according to one embodiment of the voice interaction device of the application;
Fig. 6 is adapted for the structural schematic diagram for the computer system for realizing the electronic equipment of the embodiment of the present application.
Specific embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining related invention, rather than the restriction to the invention.It also should be noted that in order to Convenient for description, part relevant to related invention is illustrated only in attached drawing.
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase Mutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
Fig. 1 is shown can be using the exemplary system of the embodiment of the voice interactive method or voice interaction device of the application System framework 100.
As shown in Figure 1, system architecture 100 may include terminal device 101,102,103, network 104,105 and of server Operation executing module 106.Network 104 between terminal device 101,102,103 and server 105 to provide communication link Medium.Network 104 may include various connection types, such as wired, wireless communication link or fiber optic cables etc..
User can be used terminal device 101,102,103 and be interacted by network 104 with server 105, to receive or send out Send message etc..Various telecommunication customer end applications can be installed on terminal device 101,102,103, such as interactive voice application, Video class application, live streaming application, instant messaging tools, mailbox client, social platform software etc..
Here terminal device 101,102,103 can be hardware, be also possible to software.When terminal device 101,102, 103 be hardware when, can be the various electronic equipments with display screen, including but not limited to smart phone, tablet computer, electronics Book reader, pocket computer on knee and desktop computer etc..It, can be with when terminal device 101,102,103 is software It is mounted in above-mentioned cited electronic equipment.Multiple softwares or software module may be implemented into (such as providing distribution in it The multiple softwares or software module of formula service), single software or software module also may be implemented into.It is not specifically limited herein.
Server 105 can be to provide the server of various services, such as provide support to terminal device 101,102,103 Background server.Background server can carry out the data such as operation instruction voice the processing such as analyzing, and processing result is anti- It feeds terminal device.In some cases, which can not include network 104 and server 105.
Operation executing module 106 can be the execution module communicated to connect with terminal device 101,102,103, be also possible to Module inside terminal device 101,102,103, for example, operation executing module can be camera, car window switch module etc.. The processing unit of terminal device 101,102,103 can be executed instruction to the output of operation executing module 106 or rollback operation instructs Deng so that operation executing module 106 executes instruction corresponding operation, for example, shooting image, or control car window switch etc..
It should be noted that voice interactive method provided by the embodiment of the present application can by terminal device 101,102, 103 processing unit executes or server 105 executes, for example, being executed by the processing unit of automobile, or by the processing unit of mobile phone It executes.Correspondingly, voice interaction device can be set in terminal device 101,102,103 or server 105.
It should be understood that the number of terminal device, network and server in Fig. 1 is only schematical.According to realization need It wants, can have any number of terminal device, network and server.
With continued reference to Fig. 2, the process 200 of one embodiment of the voice interactive method according to the application is shown.The language Sound exchange method, comprising the following steps:
Step 201, in response to receiving operation instruction voice, the execution for exporting operation indicated by operation instruction voice refers to It enables.
In the present embodiment, the executing subject (such as processing unit of terminal device shown in FIG. 1) of voice interactive method Executing instruction for operation indicated by the operation instruction voice can be exported in response to receiving operation instruction voice.Operation refers to Show voice for example and can be the voice of user's sending, is used to indicate electronic equipment and is operated.The operation of electronic equipment executes mould Block can execute aforesaid operations according to above-mentioned execute instruction.Here the processing unit of electronic equipment is above-mentioned executing subject.
In practice, above-mentioned executing subject can to terminal device some operation executing module or operation executive device it is defeated It executes instruction out.For example, above-mentioned executing subject can be the vehicle-mounted terminal equipment of automobile (for example, nothing in application scenes The vehicle-mounted brain of people's driving).In these application scenarios, vehicle-mounted terminal equipment can to the car window switch module of automobile, Or rain brush control module etc. output executes instruction.And in the processing dress that above-mentioned executing subject is the portable terminal devices such as mobile phone When setting (such as CPU), above-mentioned executing subject can be executed instruction to outputs such as the cameras of the portable terminal device.
Step 202, rollback operation instruction is added to slow by the rollback operation instruction for generating rollback operation corresponding with operation Deposit space.
In the present embodiment, above-mentioned rollback operation instruction can be generated in above-mentioned executing subject, and the rollback operation is referred to Order is stored in spatial cache.In this way, above-mentioned executing subject can save from database take out rollback operation instruction be put into it is slow The process deposited exports rollback operation instruction, in time in order to the execution of rollback operation.
In practice, setting can be instructed to save duration the rollback operation in spatial cache, which can wait In the preset duration of above-mentioned preset time period.That is, being added to the rollback operation instruction of spatial cache, by above-mentioned preset Duration, rollback operation instruction will be deleted from spatial cache.
Step 203, word is waken up in response to receiving default retract, from spatial cache output rollback operation instruction.
In the present embodiment, word is waken up in response to receiving default retract, above-mentioned executing subject can be empty from above-mentioned caching Between the rollback operation of corresponding with the operation rollback operation of output instruct.Default retract wakes up word as pre-set wake-up word, is somebody's turn to do Waking up word can serve to indicate that electronic equipment carries out rollback operation.For example, the default wake-up word that retracts can be " rollback ", " not have to ", " recalling " etc..The corresponding rollback operation of aforesaid operations refers to that execution rollback operation, which can then return to, is not carried out above-mentioned behaviour The state of work, or recall the message etc. sent.Rollback operation instruction can indicate to receive rollback operation instruction module or Device executes rollback operation.
For example, user issues voice, " the small small D of D " and " opening vehicle window " are expressed.But user wants to open air-conditioning, institute in fact With user adds " being out of use ".Here " being out of use " is to retract to wake up word.Then, above-mentioned executing subject can be to vehicle window control Molding block exports rollback operation instruction, so that the shape before the switch state of vehicle window control module control vehicle window to user's sending voice State.
For another example, user issues voice, expresses " the small small D of D " and " helps me to send out message to teacher Liu, content is tonight It has a meal together ".It is shown on the display of terminal device and " helps me to send out message and give ox teacher, content is to eat together tonight Meal ".Terminal device transmits the message to the mobile phone of ox teacher.User adds " recalling ".Then, above-mentioned executing subject can be to The communication module of the terminal device sends rollback operational order, so that communication module recalls above-mentioned message.
In some optional implementations of the present embodiment, step 203 may include:
Word is waken up in response to receiving default retract within a preset period of time, exports returning for rollback operation corresponding with operation Move back operational order, wherein preset time period is from operation instruction voice is received to being finished indicated by operation instruction voice Operation during, as time zero at the time of any.
In these optional implementations, word is waken up in response to receiving default retract within a preset period of time, it is above-mentioned Executing subject can export the rollback operation instruction of rollback operation corresponding with aforesaid operations.Specifically, above-mentioned executing subject can Aforesaid operations instruction voice will be received, until during the aforesaid operations that are finished, rising as timing at the time of any Point, to determine preset time period.Here the duration of preset time period can be preset duration.
In practice, after a period of time executed instruction that user issues aforesaid operations, user indicates to retract again A possibility that operation, is smaller.Thus, in these implementations, by the way that timeliness is arranged to back off procedure, can effectively it keep away The case where exempting from false wake-up generation.
In some optional implementations of the present embodiment, after step 203, this method can also include:
In response to receiving the instruction voice again of user, output indicates that the execution of operation indicated by voice refers to again It enables.
In these optional implementations, in response to receiving the instruction voice again of user, above-mentioned executing subject can Executing instruction for operation indicated by voice is indicated again to export.Here suggestion voice again refers to, in operation instruction voice After indicated operation has retracted, the voice that user re-emits is used to indicate and is re-operated.
For example, user says " the small small D of D ", and " navigating to People's Square ".Terminal belonging to above-mentioned executing subject is set It is standby that " which People's Square " is replied by loudspeaker.User replys " first ".Later, user wants to go back on one's word, say " rollback " with And " second ".Here " second " is again deictic word sound.
The user of these implementations can be in the case where performing rollback operation, by indicating voice again, in time The voice for meeting oneself wish is expressed on ground, and instruction terminal equipment is operated.
In some optional implementations of the present embodiment, step 203 may include:
It is status modifier operation in response to operation indicated by operation instruction voice, exports the behaviour that retracts to operation executing module It instructs, so that operation executing module operates the state before modified state is adjusted to modification for status modifier is executed.
It is status modifier operation in response to operation indicated by operation instruction voice in these optional implementations, Above-mentioned executing subject can export rollback operation instruction, so that operation executing module adjusts modified state.Status modifier behaviour Make that parameter can be modified or modifies the state of component.For example, parameter can be the target temperature of the air-conditioning of automobile, the shape of component State can be the switch state of vehicle window.Above-mentioned executing subject can export executing instruction for operation to different operation executing modules It is instructed with rollback operation, to realize different operations.
For example, the original state of vehicle window is to completely close, and the operation instruction voice of driver is status modifier operation, tool Body is " fully opening vehicle window ", in this way, vehicle window is then opened by car window switch module.Rollback operation instruction can then indicate that vehicle window is opened It closes module and vehicle window is adjusted to original state namely completely closed state.
These implementations can be instructed by rollback operation, and directly state is adjusted to indicated by operation instruction voice Operation modification before state, the state for not meeting user intention can be adjusted in time.
In some optional implementations of the present embodiment, step 203 may include:
It is that message sends operation in response to operation indicated by operation instruction voice, exports the behaviour that retracts to operation executing module It instructs, so that operation executing module revocation messages send the transmitted message of operation.
It is that message sends operation in response to operation indicated by operation instruction voice in these optional implementations, Above-mentioned executing subject can send rollback operational order to operation executing module, so that the operation executing module recalls disappearing for transmission Breath.Specifically, transmission message here can be and send message to other electronic equipments, for example answered by some instant messaging With the message of transmission.
These optional implementations can be instructed by rollback operation, recall the message sent in time, from And operation quickly is sent to fault and is made up.
In some optional implementations of the present embodiment, step 203 may include:
It is information search operation in response to operation indicated by operation instruction voice, exports the behaviour that retracts to operation executing module It instructs, so that the search result of operation executing module revocation information search operation.
It is information search operation in response to operation indicated by operation instruction voice in these optional implementations, Above-mentioned executing subject can export rollback operation instruction to operation executing module, so that operation executing module revocation information search behaviour The search result of work.Specifically, information search operation can carry out information search, for example, may search for song, search needs to lead Route of boat etc..If operation executing module receives the rollback operation instruction of above-mentioned executing subject output, which is executed Module can then recall search result.For example, recalling the search result shown in display screen, i.e., no longer show the search result, But the content of pages shown before showing the search result.
These implementations can recall search result in time, to avoid the content long period for not meeting user intention Ground shows user.
With continued reference to the schematic diagram that Fig. 3, Fig. 3 are according to the application scenarios of the voice interactive method of the present embodiment.? In the application scenarios of Fig. 3, the processing unit 301 of terminal device " can navigate to the people in response to receiving operation instruction voice Square " 302 executes instruction 303 to operation indicated by the navigation module of terminal device output operation instruction voice 302.Place The rollback operation instruction 305 that device 301 generates rollback operation corresponding with the operation is managed, the rollback operation is instructed 305 It is added to spatial cache.Processing unit 301 wakes up word " rollback " 304 in response to receiving default retract, and exports from spatial cache The rollback operation instruction 305 of rollback operation corresponding with operation.
The present embodiment can be gone back on one's word by omitting the simple process for waking up terminal device (without operation instruction) in user In the case where issued voice instruction, the rollback operation of the direct triggering terminal equipment of word is waken up by retracting, is used to simplify Family needs the voice issued, improves the response efficiency of equipment.Further, retracted by setting and wake up word, can set it is more, Richer rollback operation.In addition, rollback operation is being instructed the feelings that spatial cache is added by the above-mentioned executing subject of the present embodiment Under condition, rollback operation instruction can be exported, in time in order to the execution of rollback operation.
With further reference to Fig. 4, it illustrates the processes 400 of another embodiment of voice interactive method.The interactive voice The process 400 of method, comprising the following steps:
Step 401, in response to receiving operation instruction voice, the execution for exporting operation indicated by operation instruction voice refers to It enables.
In the present embodiment, the executing subject (such as processing unit of terminal device shown in FIG. 1) of voice interactive method Executing instruction for operation indicated by the operation instruction voice can be exported in response to receiving operation instruction voice.Operation refers to Show that voice is the voice that user issues, is used to indicate user and operates.Above-mentioned behaviour can be executed according to above-mentioned execute instruction Make.
Step 402, rollback operation instruction is added to spatial cache by the rollback operation instruction for generating instruction rollback operation.
In the present embodiment, above-mentioned rollback operation instruction can be generated in above-mentioned executing subject, and the rollback operation is referred to Order is stored in spatial cache.In this way, above-mentioned executing subject can save from database take out rollback operation instruction be put into it is slow The process deposited exports rollback operation instruction, in time in order to the execution of rollback operation.
In practice, setting can be instructed to save duration the rollback operation in spatial cache, which can wait In the preset duration of above-mentioned preset time period.That is, being added to the rollback operation instruction of spatial cache, by above-mentioned preset Duration, rollback operation instruction will be deleted from spatial cache.
Step 403, word is waken up in response to receiving default retract, in response to determining operation indicated by operation instruction voice It runs succeeded, whether determine has rollback operation instruction in spatial cache.
In the present embodiment, word is waken up in response to receiving default retract, above-mentioned executing subject can determine above-mentioned caching Whether rollback operation instruction is had in space.In some cases, above-mentioned executing subject is empty to caching by rollback operation instruction storage Between process it is failed, then in spatial cache then there is no above-mentioned rollback operation instruct.
Step 404, however, it is determined that have rollback operation instruction in spatial cache, export the rollback operation instruction in spatial cache.
In the present embodiment, above-mentioned executing subject then may be used if it is determined that operation indicated by operation instruction voice runs succeeded In the case where to there is the instruction of the rollback operation of the operation in spatial cache, rollback operation instruction is exported.Specifically, it is receiving After waking up word to default rollback, above-mentioned executing subject can be exported preferentially in spatial cache, the rollback operation instruction finally stored.
In some optional implementations of the present embodiment, after the rollback operation instruction in output spatial cache, Method further include: wake up word in response to receiving default retract, output is added to slow prior to the instruction of the rollback operation of rollback operation Deposit the previous rollback operation instruction in space.
In these optional implementations, in spatial cache, one or more rollback operation instructions are can store. User can use default retract and wake up word, continuously be retracted: if receiving default retract wakes up word, export spatial cache In, the rollback operation of rollback operation instructs.If receiving default retract again wakes up word, exports previous rollback operation and refer to It enables.Here previous back-off instruction is added to the time in spatial cache, only adds prior to the rollback operation instruction of rollback operation It is added to the time of spatial cache.If it is slow to can also continue to output in addition, above-mentioned executing subject receives default retract again wakes up word It deposits in the rollback operation instruction not yet exported in space, the rollback operation instruction finally added.
For example, user successively issues two operation instruction voices " windowing " and " close air-conditioning ", indicated by the two The rollback operation instruction for operating corresponding rollback operation can successively be added in spatial cache.User says default retract and wakes up Word " rollback " and " rollback ", then above-mentioned executing subject is sequentially output " closing air-conditioning " corresponding rollback operation and instructs, and " windowing " is right The rollback operation instruction answered.
These implementations can carry out in order to which above-mentioned executing subject is in the case where user issues and violates the voice of wish Rollback operation simplifies the voice that user needs to issue, brings convenience to user.
Step 405, however, it is determined that operational order without back-off in spatial cache exports the default back-off instruction of operating system.
In the present embodiment, if there is no the rollback operations to instruct in spatial cache, above-mentioned executing subject can be exported The default back-off instruction of operating system.
Specifically, the finger operation that runs succeeded here is finished.Above-mentioned executing subject, which is preferentially chosen, is added to caching sky Between in rollback operation instruct to export.Rollback operation instruction can be preset there are many Backward Function, and these rollback function What the default back-off instruction that some functions in energy can be operating system cannot achieve, for example recall the message etc. sent.
The present embodiment can preferentially export the instruction of the rollback operation in spatial cache, to realize Backward Function abundant.
With further reference to Fig. 5, as the realization to method shown in above-mentioned each figure, this application provides a kind of interactive voice dresses The one embodiment set, the Installation practice is corresponding with embodiment of the method shown in Fig. 2, which specifically can be applied to respectively In kind electronic equipment.
As shown in figure 5, the voice interaction device 500 of the present embodiment includes: the first output unit 501,502 and of adding unit Second output unit 503.Wherein, the first output unit 501 is configured in response to receive operation instruction voice, output behaviour Make executing instruction for operation indicated by instruction voice;Adding unit 502 is configured to generate rollback operation corresponding with operation Rollback operation instruction, by rollback operation instruction be added to spatial cache;Second output unit 503, is configured in response to connect It receives default retract and wakes up word, from spatial cache output rollback operation instruction.
In some embodiments, the first output unit 501 of voice interaction device 500 can refer in response to receiving operation Show voice, exports executing instruction for operation indicated by the operation instruction voice.Operation instruction voice for example can be user's hair Voice out is used to indicate electronic equipment and is operated.
In some embodiments, above-mentioned rollback operation instruction can be generated in adding unit 502, and the rollback operation is referred to Order is stored in spatial cache.In this way, above-mentioned executing subject can save from database take out rollback operation instruction be put into it is slow The process deposited exports rollback operation instruction, in time in order to the execution of rollback operation.
In some embodiments, word is waken up in response to receiving default retract, the second output unit 503 can delay from above-mentioned Deposit the rollback operation instruction that space exports rollback operation corresponding with operation.Default retract wakes up word as pre-set wake-up Word, the wake-up word can serve to indicate that electronic equipment carries out rollback operation.
In some optional implementations of the present embodiment, the second output unit is further configured to: in response to Default retract is received in preset time period and wakes up word, exports the rollback operation instruction of rollback operation corresponding with operation, wherein Preset time period is to appoint from during receiving operation instruction voice to the operation indicated by operation instruction voice that is finished As time zero at the time of meaning.
In some optional implementations of the present embodiment, device further include: third output unit is configured to respond to In the instruction voice again for receiving user, output indicates executing instruction for operation indicated by voice again.
In some optional implementations of the present embodiment, the second output unit is further configured to: in response to behaviour Make operation indicated by instruction voice for status modifier operation, to operation executing module output rollback operation instruction, so that operation Execution module operates the state before modified state is adjusted to modification for status modifier is executed.
In some optional implementations of the present embodiment, the second output unit is further configured to: in response to behaviour Making operation indicated by instruction voice is that message sends operation, to operation executing module output rollback operation instruction, so that operation Execution module revocation messages send the transmitted message of operation.
In some optional implementations of the present embodiment, the second output unit is further configured to: in response to behaviour Make operation indicated by instruction voice for information search operation, to operation executing module output rollback operation instruction, so that operation The search result of execution module revocation information search operation.
In some optional implementations of the present embodiment, the second output unit is further configured to: in response to true Determine operation indicated by operation instruction voice to run succeeded, whether determine has rollback operation instruction in spatial cache;If it is determined that slow Depositing in space has rollback operation instruction, exports the rollback operation instruction in spatial cache;If it is determined that in spatial cache without back-off Operational order exports the default back-off instruction of operating system.
In some optional implementations of the present embodiment, device further include: the 4th output unit is configured to respond to Word is waken up in receiving default retract, output is added to previous in spatial cache prior to the instruction of the rollback operation of rollback operation Rollback operation instruction.
As shown in fig. 6, electronic equipment 600 may include processing unit (such as central processing unit, graphics processor etc.) 601, random access can be loaded into according to the program being stored in read-only memory (ROM) 602 or from storage device 608 Program in memory (RAM) 603 and execute various movements appropriate and processing.In RAM 603, it is also stored with electronic equipment Various programs and data needed for 600 operations.Processing unit 601, ROM 602 and RAM 603 pass through the phase each other of bus 604 Even.Input/output (I/O) interface 605 is also connected to bus 604.
In general, following device can connect to I/O interface 605: including such as touch screen, touch tablet, keyboard, mouse, taking the photograph As the input unit 606 of head, microphone, accelerometer, gyroscope etc.;Including such as liquid crystal display (LCD), loudspeaker, vibration The output device 607 of dynamic device etc.;Storage device 608 including such as tape, hard disk etc.;And communication device 609.Communication device 609, which can permit electronic equipment 600, is wirelessly or non-wirelessly communicated with other equipment to exchange data.Although Fig. 6 shows tool There is the electronic equipment 600 of various devices, it should be understood that being not required for implementing or having all devices shown.It can be with Alternatively implement or have more or fewer devices.Each box shown in Fig. 6 can represent a device, can also root According to needing to represent multiple devices.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable medium On computer program, which includes the program code for method shown in execution flow chart.In such reality It applies in example, which can be downloaded and installed from network by communication device 609, or from storage device 608 It is mounted, or is mounted from ROM 602.When the computer program is executed by processing unit 601, the implementation of the disclosure is executed The above-mentioned function of being limited in the method for example.It should be noted that the computer-readable medium of embodiment of the disclosure can be meter Calculation machine readable signal medium or computer readable storage medium either the two any combination.Computer-readable storage Medium for example may be-but not limited to-system, device or the device of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, Or any above combination.The more specific example of computer readable storage medium can include but is not limited to: have one Or the electrical connections of multiple conducting wires, portable computer diskette, hard disk, random access storage device (RAM), read-only memory (ROM), Erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light Memory device, magnetic memory device or above-mentioned any appropriate combination.In embodiment of the disclosure, computer-readable to deposit Storage media can be any tangible medium for including or store program, which can be commanded execution system, device or device Part use or in connection.And in embodiment of the disclosure, computer-readable signal media may include in base band In or as carrier wave a part propagate data-signal, wherein carrying computer-readable program code.This propagation Data-signal can take various forms, including but not limited to electromagnetic signal, optical signal or above-mentioned any appropriate combination.Meter Calculation machine readable signal medium can also be any computer-readable medium other than computer readable storage medium, which can Read signal medium can be sent, propagated or be transmitted for being used by instruction execution system, device or device or being tied with it Close the program used.The program code for including on computer-readable medium can transmit with any suitable medium, including but not It is limited to: electric wire, optical cable, RF (radio frequency) etc. or above-mentioned any appropriate combination.
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the application, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, program segment or code of table, a part of the module, program segment or code include one or more use The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually It can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it to infuse Meaning, the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be with holding The dedicated hardware based system of functions or operations as defined in row is realized, or can use specialized hardware and computer instruction Combination realize.
Being described in unit involved in the embodiment of the present application can be realized by way of software, can also be by hard The mode of part is realized.Described unit also can be set in the processor, for example, can be described as: a kind of processor packet Include the first output unit, adding unit and the second output unit.Wherein, the title of these units is not constituted under certain conditions Restriction to the unit itself, for example, the first output unit be also described as " in response to receiving operation instruction voice, Export the unit of operation indicated by operation instruction voice executed instruction ".
As on the other hand, present invention also provides a kind of computer-readable medium, which be can be Included in device described in above-described embodiment;It is also possible to individualism, and without in the supplying device.Above-mentioned calculating Machine readable medium carries one or more program, when said one or multiple programs are executed by the device, so that should Device: in response to receiving operation instruction voice, executing instruction for operation indicated by operation instruction voice is exported;It generates and grasps Rollback operation instruction is added to spatial cache by the rollback operation instruction for making corresponding rollback operation;It is default in response to receiving It retracts and wakes up word, from spatial cache output rollback operation instruction.
Above description is only the preferred embodiment of the application and the explanation to institute's application technology principle.Those skilled in the art Member is it should be appreciated that invention scope involved in the application, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic Scheme, while should also cover in the case where not departing from foregoing invention design, it is carried out by above-mentioned technical characteristic or its equivalent feature Any combination and the other technical solutions formed.Such as features described above has similar function with (but being not limited to) disclosed herein Can technical characteristic replaced mutually and the technical solution that is formed.

Claims (11)

1. a kind of voice interactive method, comprising:
In response to receiving operation instruction voice, executing instruction for operation indicated by the operation instruction voice is exported;
It is empty to be added to caching by the rollback operation instruction for generating rollback operation corresponding with the operation for rollback operation instruction Between;
Word is waken up in response to receiving default retract, exports the rollback operation instruction from the spatial cache.
2. it is described to wake up word in response to receiving default retract according to the method described in claim 1, wherein, from the caching Space exports the rollback operation instruction, comprising:
Word is waken up in response to receiving default retract within a preset period of time, exports returning for rollback operation corresponding with the operation Move back operational order, wherein the preset time period with from receive the operation instruction voice to be finished it is described operation refer to During showing operation indicated by voice, as time zero at the time of any.
3. according to the method described in claim 1, wherein, waking up word in response to receiving default retract described, delaying from described After depositing the space output rollback operation instruction, the method also includes:
In response to receiving the instruction voice again of user, output is described to indicate that the execution of operation indicated by voice refers to again It enables.
4. it is described to wake up word in response to receiving default retract according to the method described in claim 1, wherein, from the caching Space exports the rollback operation instruction, comprising:
It is status modifier operation in response to operation indicated by the operation instruction voice, is returned to operation executing module output is described Operational order is moved back, so that the operation executing module will execute the status modifier and operate before modified state is adjusted to modification State.
5. it is described to wake up word in response to receiving default retract according to the method described in claim 1, wherein, from the caching Space exports the rollback operation instruction, comprising:
It is that message sends operation in response to operation indicated by the operation instruction voice, is returned to operation executing module output is described Operational order is moved back, so that the operation executing module, which recalls the message, sends the transmitted message of operation.
6. it is described to wake up word in response to receiving default retract according to the method described in claim 1, wherein, from the caching Space exports the rollback operation instruction, comprising:
It is information search operation in response to operation indicated by the operation instruction voice, is returned to operation executing module output is described Operational order is moved back, so that the operation executing module recalls the search result of the information search operation.
7. described to export the rollback operation instruction, packet from the spatial cache according to the method described in claim 1, wherein It includes:
It runs succeeded in response to operation indicated by the determination operation instruction voice, whether determine in spatial cache has described return Move back operational order;
If it is determined that there is the rollback operation to instruct in spatial cache, the rollback operation instruction in the spatial cache is exported;
If it is determined that there is no the rollback operation to instruct in spatial cache, the default back-off instruction of operating system is exported.
8. according to the method described in claim 7, wherein, the rollback operation in the output spatial cache instructs Later, the method also includes:
Word is waken up in response to receiving default retract, output is added to described slow prior to the instruction of the rollback operation of the rollback operation Deposit the previous rollback operation instruction in space.
9. a kind of voice interaction device, comprising:
First output unit is configured in response to receive operation instruction voice, exports indicated by the operation instruction voice Operation execute instruction;
Adding unit is configured to generate the rollback operation instruction of rollback operation corresponding with the operation, the rollback is grasped Make instruction and is added to spatial cache;
Second output unit is configured in response to receive the default wake-up word that retracts, return from spatial cache output is described Move back operational order.
10. a kind of electronic equipment, comprising:
One or more processors;
Storage device, 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 processors are real Now such as method described in any one of claims 1-8.
11. a kind of computer readable storage medium, is stored thereon with computer program, wherein when the program is executed by processor Realize such as method described in any one of claims 1-8.
CN201910555394.XA 2019-06-25 2019-06-25 Voice interactive method and device Pending CN110265016A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910555394.XA CN110265016A (en) 2019-06-25 2019-06-25 Voice interactive method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910555394.XA CN110265016A (en) 2019-06-25 2019-06-25 Voice interactive method and device

Publications (1)

Publication Number Publication Date
CN110265016A true CN110265016A (en) 2019-09-20

Family

ID=67921330

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910555394.XA Pending CN110265016A (en) 2019-06-25 2019-06-25 Voice interactive method and device

Country Status (1)

Country Link
CN (1) CN110265016A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7236922B2 (en) * 1999-09-30 2007-06-26 Sony Corporation Speech recognition with feedback from natural language processing for adaptation of acoustic model
CN106537491A (en) * 2014-11-24 2017-03-22 奥迪股份公司 Motor vehicle device operation with operating correction
CN107015799A (en) * 2017-03-13 2017-08-04 北京云知声信息技术有限公司 voice command cancelling method and device
CN107644646A (en) * 2017-09-27 2018-01-30 北京搜狗科技发展有限公司 Method of speech processing, device and the device for speech processes
CN108766429A (en) * 2018-06-05 2018-11-06 北京百度网讯科技有限公司 Voice interactive method and device
CN109741740A (en) * 2018-12-26 2019-05-10 苏州思必驰信息科技有限公司 Voice interactive method and device based on external trigger

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7236922B2 (en) * 1999-09-30 2007-06-26 Sony Corporation Speech recognition with feedback from natural language processing for adaptation of acoustic model
CN106537491A (en) * 2014-11-24 2017-03-22 奥迪股份公司 Motor vehicle device operation with operating correction
CN107015799A (en) * 2017-03-13 2017-08-04 北京云知声信息技术有限公司 voice command cancelling method and device
CN107644646A (en) * 2017-09-27 2018-01-30 北京搜狗科技发展有限公司 Method of speech processing, device and the device for speech processes
CN108766429A (en) * 2018-06-05 2018-11-06 北京百度网讯科技有限公司 Voice interactive method and device
CN109741740A (en) * 2018-12-26 2019-05-10 苏州思必驰信息科技有限公司 Voice interactive method and device based on external trigger

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
蒋加伏等: "《大学计算机 互联网+》", 30 June 2018, 北京邮电大学出版社 *

Similar Documents

Publication Publication Date Title
CN108877770A (en) For testing the methods, devices and systems of intelligent sound equipment
CN109902186A (en) Method and apparatus for generating neural network
CN109599113A (en) Method and apparatus for handling information
CN109918040A (en) Phonetic order distribution method and device, electronic equipment and computer-readable medium
CN107004410A (en) Voice and connecting platform
CN108986805B (en) Method and apparatus for sending information
CN109190114A (en) Method and apparatus for generating return information
CN110287473A (en) Electrical form edit methods and device
CN109510881A (en) Method, apparatus, electronic equipment and the readable storage medium storing program for executing of sharing files
CN109558386A (en) A kind of caching method of client data, device, equipment and medium
CN110380955A (en) Message treatment method, device and electronic equipment
CN109410253A (en) Method and apparatus for generating information
CN109767773A (en) Information output method and device based on interactive voice terminal
CN107590484A (en) Method and apparatus for information to be presented
CN110381352A (en) Display methods, device, electronic equipment and the readable medium of virtual present
CN110059623A (en) Method and apparatus for generating information
CN110087122A (en) For handling system, the method and apparatus of information
CN109492687A (en) Method and apparatus for handling information
CN110286776A (en) Input method, device, electronic equipment and the storage medium of character combination information
CN109819042A (en) For providing the method and apparatus of Software Development Kit
CN109446379A (en) Method and apparatus for handling information
CN109492039A (en) A kind of recording method of daily record data, device, electronic equipment and readable medium
CN109949806A (en) Information interacting method and device
CN110265016A (en) Voice interactive method and device
CN110223694A (en) Method of speech processing, system and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20211013

Address after: 100176 101, floor 1, building 1, yard 7, Ruihe West 2nd Road, Beijing Economic and Technological Development Zone, Daxing District, Beijing

Applicant after: Apollo Zhilian (Beijing) Technology Co.,Ltd.

Address before: 100085 Baidu Building, 10 Shangdi Tenth Street, Haidian District, Beijing

Applicant before: BAIDU ONLINE NETWORK TECHNOLOGY (BEIJING) Co.,Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190920