Embodiment
Embodiments of the invention are described below in detail, the example of the embodiment is shown in the drawings, wherein from beginning to endSame or similar label represents same or similar element or the element with same or like function.Below with reference to attachedThe embodiment of figure description is exemplary, it is intended to for explaining the present invention, and is not considered as limiting the invention.
Below with reference to the accompanying drawings the method for processing resource and its equipment of the embodiment of the present invention are described.
At present, the application program and product around artificial intelligence expansion are just constantly attracting attention, and can provide the user voidIntend commodity:Such as music, audiobook, film;Service:Call a taxi, take out;Traditional commodities:Such as audio amplifier, earphone.Wherein, wrapIncreasing high-quality paid-for article is included, when user expresses purchase intention, under typically informing in user's decorrelation application programSingle purchase, after the completion of return in Intelligent hardware and consume.It is cumbersome, it has not been convenient to which that user uses.
For this problem, the embodiments of the invention provide method for processing resource, can automatic identification payment be intended to, directlyOperation for paying the fee is performed to resource and object run, streamline operation, side are carried out to resource according to the implementing result of operation for paying the feeJust user uses, and improves Consumer's Experience.It is specific as follows:
Fig. 1 is the schematic flow sheet of method for processing resource according to an embodiment of the invention.As shown in figure 1, the resourceProcessing method includes:
Step 101, phonetic order is obtained.
Step 102, according to phonetic order, it is determined that the resource of matching.
Specifically, the method for the present embodiment is applied to smart machine, and the smart machine has voice capture device, Yong HukeTo be needed according to practical application by phonetic entry relevant information.
It is possible to further by analyzing phonetic order, identify corresponding search need, and in corresponding moneyThe resource matched with search need is scanned in source storehouse (local can be stored in or be on Cloud Server).
It is understood that the resource matched with search need can be one or more, if one can be withDirectly provide;, can the resource offer according to corresponding to default matching selecting index matching degree highest if multiple.Wherein,Default matching index can need to carry out selection setting according to practical application.
It should be noted that the resource that a variety of modes determine to match according to phonetic order can be used, can be according to realityBorder carries out selection setting using needs, and as a kind of example, voice is identified, and word corresponding to voice is obtained, according to textWord carries out intents and obtains user's request, and user's request is at least one in search need and broadcasting demand, it is determined that with useThe resource of family demand matching.
It should be noted that the resource of the matching of the embodiment of the present invention, including but not limited to audio, video, service and realityOne or more in thing commodity etc..
Step 103, whether inquiry has performed operation for paying the fee to resource.
Step 104, when not performing operation for paying the fee to resource, the payment for obtaining resource is intended to.
Step 105, it is intended to if getting payment, operation for paying the fee is performed to resource.
Specifically, in actual applications, resource can be that free, user has bought and unpaid.Therefore needInquire about and operation for paying the fee is performed to resource whether, to determine directly to be to carry out object run to resource still to need to first carry outOperation for paying the fee.
Specifically, it can inquire about payment is performed to resource whether by modes such as resource identification inquiry or related algorithmsOperation, as resource has been bought for free or user, then object run is carried out to resource for user automatically;As resource for payment and is usedFamily is not bought also, then prompts user to need to pay.
It is understood that, it is necessary to which the payment for obtaining resource is intended to before user charges, you can with by defeated to userEnter the modes such as the parsing of information and obtain whether user has payment to be intended to.
Further, operation for paying the fee is performed to resource after getting payment and being intended to.It is understood that it can use veryVarious ways perform operation for paying the fee to resource, are illustrated below:
The first example, ask association client generation resource order taking responsibility, when in client according to order taking responsibilityWhen execution operation for paying the fee finishes, the implementing result of client is obtained.
Second of example, the payment voice of user is gathered, if paying voice by voiceprint, payment behaviour is performed to resourceMake.
The third example, payment interface is shown, the payment information inputted according to user in payment interface, resource is performed and paidTake operation.
Specifically, when the smart machine of the embodiment of the present invention has screen, the display screen display of smart machine can also be passed throughShow payment interface so as to complete to perform operation for paying the fee to resource.
Step 106, according to the implementing result of operation for paying the fee, object run is carried out to resource.
Specifically, the mode for carrying out object run to resource according to the implementing result of operation for paying the fee has many kinds, Ke YigenNeed to carry out selection setting according to practical application, as a kind of example, when implementing result is operation for paying the fee success, query resource has beenThe position of displaying extremely, continues to play out resource since position.It is operation for paying the fee in implementing result as another exampleDuring failure, to resource without any processing etc..
In summary, the method for processing resource of the embodiment of the present invention, by obtaining phonetic order, and it is true according to phonetic orderSurely the resource matched, then inquire about and operation for paying the fee is performed to resource whether, obtain and provide when not performing operation for paying the fee to resourceThe payment in source is intended to, and performs operation for paying the fee to resource when getting payment and being intended to, finally according to the execution knot of operation for paying the feeFruit carries out object run to resource, so as to streamline operation, is user-friendly, and improves Consumer's Experience.
For an embodiment in clear explanation, another method for processing resource, the side of the present embodiment are present embodiments providedMethod is illustrated exemplified by performing operation for paying the fee to resource by client.Fig. 2 is according to a further embodiment of the inventionMethod for processing resource schematic flow sheet.
As shown in Fig. 2 the method for processing resource may comprise steps of:
Step 201, phonetic order is obtained.
It should be noted that step S201 description is corresponding with above-mentioned steps S101, thus to step S201 describeWith reference to above-mentioned steps S101 description, will not be repeated here.
Step 202, it is identified to obtain word corresponding to voice to voice, carrying out intents according to word obtains userDemand, user's request is at least one in search need and broadcasting demand, it is determined that the resource matched with user's request.
Specifically, the smart machine that the method for the present embodiment is applied to has sound identification module or speech recognition algorithmDeng the voice of input being identified to obtain corresponding word, for example by speech text modular converter or be voiceText transfer algorithm etc. is handled voice to obtain corresponding word.
Further, the smart machine also has sound identification module or speech recognition algorithm etc., can be to inputVoice is identified to obtain corresponding word, for example by speech text modular converter or is speech text transfer algorithm etc.Voice is handled to obtain corresponding word.
Further, by being analyzed and processed to word, the modes such as keyword can be extracted, identification intention is searched forOne or two kinds of in demand or broadcasting demand is used as user's request, so that it is determined that the resource matched with user's request.
In order to which those skilled in the art more understand said process, as a kind of Scene realization mode, the voice that user sends refers toMake as " I will listen speaking carefully for Ma Dong ", sound is converted into word, then word analyzed and processed, understand voice and refer toKey message in order, obtain " the speaking carefully " that is intended to listen to " Ma Dong " of search need, after the search need parsedObtain matching resource for " Ma Dong take wonderful work day roll into a ball parent award speak carefully ".
Thus, it is possible to by quick and precisely identifying user's request to voice command, it is user-friendly, and can be quickSearch need is identified, further improves the efficiency of resource processing.
It should be noted that object run is carried out to resource when the resource matched is free resource.
Step 203, whether inquiry has performed operation for paying the fee to resource.
It should be noted that step S203 description is corresponding with above-mentioned steps S103, thus to step S203 describeWith reference to above-mentioned steps S103 description, will not be repeated here.
Step 204, when not to resource perform operation for paying the fee when, to resource carry out preview displaying, record resource have shown that toPosition.
Specifically, when it is determined that not performing operation for paying the fee to resource, when resource has preview displaying function (such as videoWith playing audition part), this part of resource can be shown, while record resource have shown that to position so as toSubsequently directly shown from record position for user, further improve Consumer's Experience.
Step 205, when getting payment and being intended to, the client of request association generates the order taking responsibility of resource, when in clientWhen end finishes according to order taking responsibility execution operation for paying the fee, the implementing result of client is obtained.
Specifically, a variety of modes can be used to ask the order taking responsibility of the client generation resource of association, as one kindExample, according to the order taking responsibility formation condition of resource, generation meets the order taking responsibility of order taking responsibility formation condition, is sent out to serverOrder taking responsibility is sent, to ask the client of association to generate order taking responsibility by server.
It should be noted that after the order taking responsibility of the client generation resource of request association, prompt message can be sentFor prompting in the path of client executing operation for paying the fee.
Specifically, can by way of smart machine reports voice or be smart machine display screen text importingMode, can also be mode etc. that information is sent to relevant device, send prompt message to prompt to pay in client executingTake the path of operation.
For example " having placed an order, the order center of the family for small degree of inviting completes charge " is carried out by the mode user of guidingPayment, is user-friendly, and lifts Consumer's Experience.
It is understood that by order taking responsibility real-time synchronization to client (such as family's application program of small degree etc.), useFamily be able to can be completed by order center, dialogue stream order check, pay, cancelling, the action such as reimbursement.
Specifically, the order taking responsibility for meeting order taking responsibility formation condition can be generated using a variety of modes, as one kindExample, it is intended to according to payment, determines that the part resource of operation for paying the fee need to be performed from resource, meets that order is appointed in part resourceThe order taking responsibility for performing operation for paying the fee to part resource is generated during the minimum payment unit of business formation condition instruction.
It should be noted that generated when part resource is unsatisfactory for the minimum payment unit of order taking responsibility formation condition instructionFor performing the order taking responsibility of operation for paying the fee to the minimum payment unit comprising part resource.
For example, audio pay content, buying pattern are voice.The first scene is that Current resource only supports whole collection to payTake, order taking responsibility is current whole collection after user says buying intention.Second of scene is that Current resource supports diversity payment, whenUser says the collection number that order taking responsibility is lower single Present diversity or user expresses after buying intention.
Further, the mode for obtaining the implementing result of client has many kinds, as a kind of example, is obtained from serverImplementing result;Wherein, when implementing result is that client finishes according to order taking responsibility execution operation for paying the fee, by server generation.
Step 206, if implementing result be operation for paying the fee success, query resource have shown that to position, since position afterIt is continuous that resource is played out.
Specifically, server generation implementing result when operation for paying the fee finishes is performed in order taking responsibility, can be at serverObtain implementing result, such as implementing result be operation for paying the fee success when query resource have shown that to position and since position afterIt is continuous that resource is played out.
It should be noted that payment result can be obtained in real time, once user charges end of operation, is played for user immediatelyPayment resource.
In summary, the method for processing resource of the embodiment of the present invention, it is identified by obtaining phonetic order, and to voiceWord corresponding to voice is obtained, carrying out intents according to word obtains user's request, and user's request is search need and broadcastingIt is at least one in demand, it is determined that the resource matched with user's request, then inquires about and performs operation for paying the fee to resource whether, whenNot to resource perform operation for paying the fee when, to resource carry out preview displaying, record resource have shown that to position, then gettingThe order taking responsibility of the client generation resource of association is asked when payment is intended to, is grasped when performing payment according to order taking responsibility in clientWhen finishing, obtain the implementing result of client, finally implementing result be operation for paying the fee success when query resource have shown that toPosition, continue to play out resource since position, so as to streamline operation, be user-friendly, improve user's bodyTest.
In order to realize above-described embodiment, the present invention also proposes a kind of smart machine.
Fig. 3 is the structural representation of smart machine according to an embodiment of the invention.As shown in figure 3, the smart machineIncluding voice module 11, matching module 12, enquiry module 13, acquisition module 14, payment module 15 and operation module 16.
Wherein, voice module 11, for obtaining phonetic order.
Matching module 12, for according to phonetic order, it is determined that the resource of matching.
Enquiry module 13, operation for paying the fee is performed to resource whether for inquiring about.
Acquisition module 14, for when not performing operation for paying the fee to resource, the payment for obtaining resource to be intended to.
Payment module 15, if being intended to for getting payment, operation for paying the fee is performed to resource.
Operation module 16, for the implementing result according to operation for paying the fee, object run is carried out to resource.
It should be noted that the foregoing explanation to method for processing resource embodiment is also applied for the intelligence of the embodimentEquipment, here is omitted.
In summary, the smart machine of the embodiment of the present invention, by obtaining phonetic order, and according to phonetic order determinationThe resource matched somebody with somebody, then inquire about and operation for paying the fee is performed to resource whether, resource is obtained when not performing operation for paying the fee to resourcePayment is intended to, and performs operation for paying the fee to resource when getting payment and being intended to, finally according to the implementing result pair of operation for paying the feeResource carries out object run, so as to streamline operation, is user-friendly, and improves Consumer's Experience.
Based on above-described embodiment, it is illustrated below exemplified by performing operation for paying the fee to resource by client, withAnd specific between the smart machine of the embodiment of the present invention, client and server how to perform aforesaid operations process carry out it is detailedExplanation.
Fig. 4 is the structural representation of resource processing system according to an embodiment of the invention.As shown in figure 4, the resourceProcessing system includes smart machine 10, client 20 and 30.
Wherein, smart machine 10 is used to obtain phonetic order, and the resource of matching is determined according to phonetic order, then inquires aboutWhether operation for paying the fee is performed to resource, the payment that resource is obtained when not performing operation for paying the fee to resource is intended to, and is obtainingOperation for paying the fee is performed to resource when being intended to payment, object run is finally carried out to resource according to the implementing result of operation for paying the fee.
Client 20 is used to perform operation for paying the fee to resource.
Further, in a kind of possible implementation of the present invention, client 20 is additionally operable to work as performs payment to resourceDuring end of operation, payment message is sent to server 30;Payment message carries transaction code.
Server 30 is additionally operable to the transaction code indicated according to payment message, transaction record is inquired about, to generate operation for paying the feeImplementing result.
Smart machine 10 is additionally operable to obtain implementing result from server 30.
It should be noted that transaction record can be got from third-party charging server, record has each transaction codeCorresponding exchange hour, dealing money (whether being the amount of money corresponding to order), trading object (whether being resource provider) etc..
It should be noted that the smart machine 10 of the embodiment of the present invention can be mounted in various Intelligent hardwares, such as can be withOne or more including but not limited in intelligent sound box, vehicle device, intelligent home device etc..
It should be noted that the resource that the needs of the embodiment of the present invention are paid, including but not limited to audio, video, serviceAnd the one or more in physical goods etc..
In order to which those skilled in the art more understand said process, it is illustrated with reference to the specific scenes of Fig. 5.Such as figureShown in 5, smart machine DuerOS, commodity here refer to resource, when user the payment such as buys/placed an order by phonetic representationAfter intention, carrying DuerOS Intelligent hardware, (server) generation goods orders, server give synchronous goods orders beyond the cloudsMobile phone terminal MateApp, user just complete to pay by clicking on the mobile phone terminal MateApp page.
Further, commodity (namely resource in the embodiment of the present invention) are shown for user immediately after the completion of payment.
Thus, it is possible to realize DuerOS complete service experience so that interactive voice, be not limited solely to free content/serviceDelivery, include provide payment resource complete function experience.Make DuerOS full in inner capacities, service category, user's requestSufficient degree etc. has stronger advantage.
It should be noted that the foregoing explanation to method for processing resource embodiment is also applied for the resource processing systemSystem, its realization principle is similar, and here is omitted.
In summary, the resource processing system of the embodiment of the present invention, by obtaining phonetic order, and it is true according to phonetic orderSurely the resource matched, then inquire about and operation for paying the fee is performed to resource whether, obtain and provide when not performing operation for paying the fee to resourceThe payment in source is intended to, and performs operation for paying the fee to resource when getting payment and being intended to, finally according to the execution knot of operation for paying the feeFruit carries out object run to resource, so as to streamline operation, is user-friendly, and improves Consumer's Experience, so as to simplify operationFlow, it is user-friendly, improves Consumer's Experience.
The present invention proposes a kind of computer equipment, and Fig. 6 is the structure of computer equipment according to an embodiment of the inventionSchematic diagram.As shown in fig. 6, memory 21, processor 22 and being stored in the meter that can be run on memory 21 and on processor 22Calculation machine program.
Processor 22 realizes the method for processing resource provided in above-described embodiment when performing described program.
Further, computer equipment also includes:
Communication interface 23, for the communication between memory 21 and processor 22.
Memory 21, for depositing the computer program that can be run on processor 22.
Memory 21 may include high-speed RAM memory, it is also possible to also including nonvolatile memory (non-volatileMemory), a for example, at least magnetic disk storage.
Processor 22, the method for processing resource described in above-described embodiment is realized during for performing described program.
If memory 21, processor 22 and the independent realization of communication interface 23, communication interface 21, memory 21 and processingDevice 22 can be connected with each other by bus and complete mutual communication.The bus can be industry standard architecture(Industry Standard Architecture, referred to as ISA) bus, external equipment interconnection (PeripheralComponent, referred to as PCI) bus or extended industry-standard architecture (Extended Industry StandardArchitecture, referred to as EISA) bus etc..The bus can be divided into address bus, data/address bus, controlling bus etc..For ease of representing, only represented in Fig. 6 with a thick line, it is not intended that an only bus or a type of bus.
Optionally, in specific implementation, if memory 21, processor 22 and communication interface 23, are integrated in chip pieceUpper realization, then memory 21, processor 22 and communication interface 23 can complete mutual communication by internal interface.
Processor 22 is probably a central processing unit (Central Processing Unit, referred to as CPU), orSpecific integrated circuit (Application Specific Integrated Circuit, referred to as ASIC), or by withIt is set to the one or more integrated circuits for implementing the embodiment of the present invention.
In order to realize above-described embodiment, the present invention also proposes a kind of computer-readable recording medium, when the storage mediumIn instruction when being performed by processor, enabling perform a kind of method for processing resource, methods described includes:Voice is obtained to refer toOrder;According to the phonetic order, it is determined that the resource of matching;Whether inquiry has performed operation for paying the fee to the resource;When not to instituteWhen stating resource execution operation for paying the fee, the payment for obtaining the resource is intended to;If getting the payment to be intended to, the resource is heldRow operation for paying the fee;According to the implementing result of operation for paying the fee, object run is carried out to the resource.
In order to realize above-described embodiment, the present invention also proposes a kind of computer program product, when the computer program producesWhen instruction processing unit in product performs, a kind of method for processing resource is performed, methods described includes:Obtain phonetic order;According to institutePhonetic order is stated, it is determined that the resource of matching;Whether inquiry has performed operation for paying the fee to the resource;When not to resource executionDuring operation for paying the fee, the payment for obtaining the resource is intended to;If getting the payment to be intended to, payment behaviour is performed to the resourceMake;According to the implementing result of operation for paying the fee, object run is carried out to the resource.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically showThe description of example " or " some examples " etc. means specific features, structure, material or the spy for combining the embodiment or example descriptionPoint is contained at least one embodiment or example of the present invention.In this manual, to the schematic representation of above-mentioned term notIdentical embodiment or example must be directed to.Moreover, specific features, structure, material or the feature of description can be with officeCombined in an appropriate manner in one or more embodiments or example.In addition, in the case of not conflicting, the skill of this areaArt personnel can be tied the different embodiments or example and the feature of different embodiments or example described in this specificationClose and combine.
In addition, term " first ", " second " are only used for describing purpose, and it is not intended that instruction or hint relative importanceOr the implicit quantity for indicating indicated technical characteristic.Thus, define " first ", the feature of " second " can be expressed orImplicitly include at least one this feature.In the description of the invention, " multiple " are meant that at least two, such as two, threeIt is individual etc., unless otherwise specifically defined.
Any process or method described otherwise above description in flow chart or herein is construed as, and represents to includeModule, fragment or the portion of the code of the executable instruction of one or more the step of being used to realize custom logic function or processPoint, and the scope of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discuss suitableSequence, including according to involved function by it is basic simultaneously in the way of or in the opposite order, carry out perform function, this should be of the inventionEmbodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered useIn the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, forInstruction execution system, device or equipment (such as computer based system including the system of processor or other can be held from instructionThe system of row system, device or equipment instruction fetch and execute instruction) use, or combine these instruction execution systems, device or setIt is standby and use.For the purpose of this specification, " computer-readable medium " can any can be included, store, communicate, propagate or passDefeated program is for instruction execution system, device or equipment or the dress used with reference to these instruction execution systems, device or equipmentPut.The more specifically example (non-exhaustive list) of computer-readable medium includes following:Electricity with one or more wiringConnecting portion (electronic installation), portable computer diskette box (magnetic device), random access memory (RAM), read-only storage(ROM), erasable edit read-only storage (EPROM or flash memory), fiber device, and portable optic disk is read-only depositsReservoir (CDROM).In addition, computer-readable medium, which can even is that, to print the paper of described program thereon or other are suitableMedium, because can then enter edlin, interpretation or if necessary with it for example by carrying out optical scanner to paper or other mediaHis suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each several part of the present invention can be realized with hardware, software, firmware or combinations thereof.Above-mentionedIn embodiment, software that multiple steps or method can be performed in memory and by suitable instruction execution system with storageOr firmware is realized.Such as, if realized with hardware with another embodiment, following skill well known in the art can be usedAny one of art or their combination are realized:With the logic gates for realizing logic function to data-signal fromLogic circuit is dissipated, the application specific integrated circuit with suitable combinational logic gate circuit, programmable gate array (PGA), scene can compileJourney gate array (FPGA) etc..
Those skilled in the art are appreciated that to realize all or part of step that above-described embodiment method carriesSuddenly it is that by program the hardware of correlation can be instructed to complete, described program can be stored in a kind of computer-readable storage mediumIn matter, the program upon execution, including one or a combination set of the step of embodiment of the method.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing module, can alsoThat unit is individually physically present, can also two or more units be integrated in a module.Above-mentioned integrated mouldBlock can both be realized in the form of hardware, can also be realized in the form of software function module.The integrated module is such asFruit is realized in the form of software function module and as independent production marketing or in use, can also be stored in a computerIn read/write memory medium.
Storage medium mentioned above can be read-only storage, disk or CD etc..Although have been shown and retouch aboveEmbodiments of the invention are stated, it is to be understood that above-described embodiment is exemplary, it is impossible to be interpreted as the limit to the present inventionSystem, one of ordinary skill in the art can be changed to above-described embodiment, change, replace and become within the scope of the inventionType.