Request processing method and apparatus, device and storage medium

By using a method combining the first model and the second model in the user's session with the virtual object, the music-related request is processed, and the problem of excessive response time in the prior art is solved, and more efficient request processing and user satisfaction are achieved. Spend.

WO2025035983A1PCT designated stage Publication Date: 2025-02-20BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 11 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/102716
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2025-02-20

AI Technical Summary

Technical Problem

The prior art has a long response time when processing music-related requests received by a user in a session with a virtual object, which affects the user's satisfaction.

Method used

By obtaining user requests, the first model is used to determine whether the target intent matches the preset intent, and if not, the request is forwarded to a larger second model to generate a response.

Benefits of technology

It significantly improves the speed of processing music-related requests, improves the efficiency of request execution, and enables users to obtain the required music services faster.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024102716_20022025_PF_FP_ABST
    Figure CN2024102716_20022025_PF_FP_ABST
Patent Text Reader

Abstract

Embodiments of the invention provide a method and apparatus for request processing, a device and a storage medium. The method comprises: obtaining a user request received in a session of a user and a virtual object, the virtual object being associated with a music service; using a first model to process the user request, so as to determine whether a target intention corresponding to the user request matches a preset intention, wherein the preset intention comprises a music playing intention or a playing control intention; and in response to the target intention not matching the preset intention, providing the user request to a second model, so as to generate a first response for the user request, wherein the scale of the second model is larger than that of the first model. Thus, the speed of processing a music-related request can be increased such that the request can be executed more efficiently.
Need to check novelty before this filing date? Find Prior Art

Description

Method, device, equipment and storage medium for processing requests Technical Field

[0001] Exemplary implementations of the present disclosure generally relate to the field of computers, and more particularly, to methods, devices, apparatuses, and computer-readable storage media for processing requests. Background Art

[0002] With the rapid development of Internet technology, conversational applications, as highly interactive applications, have gradually gained popularity among users. Users can use conversational applications to interact with virtual objects to obtain various services, such as music-related services.

[0003] Summary of the Invention

[0004] In a first aspect of the present disclosure, a method for processing a request is provided. The method comprises: obtaining a user request received in a conversation between a user and a virtual object, the virtual object being associated with a music service; processing the user request using a first model to determine whether a target intent corresponding to the user request matches a set of preset intents, the set of preset intents comprising a music playback intent or a playback control intent; and, in response to the target intent not matching the set of preset intents, providing the user request to a second model to generate a first response to the user request, the second model being larger in size than the first model. In this way, the speed of processing music-related requests can be increased, allowing the requests to be executed more efficiently.

[0005] In a second aspect of the present disclosure, a device for processing a request is provided. The device includes: a request acquisition module configured to acquire a user request received in a conversation between a user and a virtual object, the virtual object being associated with a music service; a first processing module configured to process the user request using a first model to determine whether a target intent corresponding to the user request matches a set of preset intents, the set of preset intents including a music playback intent or a playback control intent; and a providing module configured to provide the user request to a second model in response to the target intent not matching the set of preset intents, so as to generate a first response to the user request, the second model being larger in scale than the first model.

[0006] In a third aspect of the present disclosure, an electronic device is provided. The electronic device includes: at least one processing unit; and at least one memory, the at least one memory being coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit, the instructions, when executed by the at least one processing unit, causing the electronic device to perform the method according to the first aspect of the present disclosure.

[0007] In a fourth aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the processor implements the method according to the first aspect of the present disclosure.

[0008] According to a fifth aspect of the present disclosure, a computer program product is provided, comprising a computer program, wherein when the computer program is executed by a processor, the method according to the first aspect of the present disclosure is implemented.

[0009] It should be understood that the content described in this summary section is not intended to limit the key features or important features of the implementation of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easy to understand through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] The above and other features, advantages and aspects of various implementations of the present disclosure will become more apparent hereinafter with reference to the following detailed description in conjunction with the accompanying drawings. In the accompanying drawings, the same or similar reference numerals represent the same or similar elements, wherein:

[0011] FIG1 shows a schematic diagram of an example environment in which embodiments of the present disclosure can be implemented;

[0012] FIG2 is a schematic diagram showing a process of processing a request according to some embodiments of the present disclosure;

[0013] 3A and 3B illustrate example interaction interfaces according to some embodiments of the present disclosure;

[0014] FIG4 is a schematic diagram showing a process of processing a request according to some embodiments of the present disclosure;

[0015] FIG5 shows a schematic structural block diagram of an apparatus for processing a request according to some embodiments of the present disclosure; and

[0016] FIG6 illustrates a block diagram of an electronic device in which one or more embodiments of the present disclosure may be implemented. DETAILED DESCRIPTION

[0017] The following describes embodiments of the present disclosure in more detail with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as limited to the embodiments described herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of protection of the present disclosure.

[0018] In the description of the embodiments of the present disclosure, the term "including" and similar terms should be understood as open inclusion, i.e., "including but not limited to". The term "based on" should be understood as "based at least in part on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". The term "some embodiments" should be understood as "at least some embodiments". Other explicit and implicit definitions may be included below.

[0019] Herein, unless explicitly stated otherwise, executing a step “in response to A” does not mean executing the step immediately after “A” but may include one or more intermediate steps.

[0020] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) must comply with the requirements of relevant laws, regulations and relevant provisions.

[0021] It is understandable that before using the technical solutions disclosed in the various embodiments of this disclosure, the type, scope of use, usage scenarios, etc. of the personal information involved in this disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.

[0022] For example, in response to receiving a user's active request, a prompt message is sent to the user to clearly remind the user that the operation requested to be performed will require obtaining and using the user's personal information, so that the user can independently choose whether to provide personal information to the electronic device, application, server or storage medium and other software or hardware that performs the operation of the technical solution of the present disclosure based on the prompt message.

[0023] As an optional but non-limiting implementation, in response to receiving a user's active request, a prompt message may be sent to the user, for example, in the form of a pop-up window, in which the prompt message may be presented in text form. Furthermore, the pop-up window may also include a selection control for the user to select "agree" or "disagree" to provide personal information to the electronic device.

[0024] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that comply with relevant laws and regulations may also be applied to the implementation of the present disclosure.

[0025] As used herein, the term "model" can learn the association between corresponding inputs and outputs from training data, so that after training is completed, corresponding outputs can be generated for given inputs. The generation of the model can be based on machine learning technology. Deep learning is a machine learning algorithm that processes inputs and provides corresponding outputs by using multiple layers of processing units. A neural network model is an example of a model based on deep learning. In this article, "model" may also be referred to as "machine learning model", "learning model", "machine learning network" or "learning network", and these terms are used interchangeably in this article.

[0026] A "neural network" is a machine learning network based on deep learning. A neural network is capable of processing inputs and providing corresponding outputs. It typically includes an input layer, an output layer, and one or more hidden layers between the input and output layers. Neural networks used in deep learning applications typically include many hidden layers, thereby increasing the depth of the network. The layers of a neural network are connected in sequence so that the output of the previous layer is provided as input to the next layer, where the input layer receives the input of the neural network and the output of the output layer serves as the final output of the neural network. Each layer of a neural network includes one or more nodes (also called processing nodes or neurons), each of which processes the input from the previous layer.

[0027] Generally speaking, machine learning can be roughly divided into three stages, namely the training stage, the testing stage, and the application stage (also called the inference stage). In the training stage, a given model can be trained using a large amount of training data, and the parameter values ​​are continuously updated iteratively until the model can obtain consistent inferences that meet the expected goals from the training data. Through training, the model can be considered to be able to learn the association between input and output (also called input-to-output mapping) from the training data. The parameter values ​​of the trained model are determined. In the testing stage, the test input is applied to the trained model to test whether the model can provide the correct output, thereby determining the performance of the model. The testing stage can sometimes be integrated into the training stage. In the application or inference stage, the trained model can be used to process the actual model input based on the parameter values ​​obtained through training to determine the corresponding model output.

[0028] In the context of this article, a virtual object can be a virtual processing entity created based on configuration information, which can be implemented based on a machine learning model. In some scenarios, a virtual object can also be referred to as a virtual entity, examples of which can include a robot program (bot), an intelligent body (agent), etc.

[0029] As briefly discussed above, with the rapid development of Internet technology, a variety of applications have become important tools in people's daily lives. Different applications often have different functions, and users can use specific applications with specific functions to achieve specific services.

[0030] Conversational applications, with their highly interactive nature, are gaining popularity. Through these applications, users can interact with virtual objects to access various services, such as music-related services. However, the response time for processing user requests often exceeds user expectations, seriously impacting user satisfaction with music services.

[0031] According to an embodiment of the present disclosure, a method, apparatus, device, and storage medium for request processing are provided. The method includes: obtaining a user request received in a conversation between a user and a virtual object, the virtual object being associated with a music service; processing the user request using a first model to determine whether a target intent corresponding to the user request matches a set of preset intents, the set of preset intents including a music playback intent or a playback control intent; and, in response to the target intent not matching the set of preset intents, providing the user request to a second model to generate a first response to the user request, the second model being larger in scale than the first model.

[0032] In this way, the embodiments of the present disclosure can determine the processing for the user request based on the target intent corresponding to the user request, thereby significantly improving the response speed for the user request.

[0033] Some example embodiments of the present disclosure will be described below with continued reference to the accompanying drawings.

[0034] Sample Environment

[0035] FIG1 illustrates a schematic diagram of an example environment 100 in which embodiments of the present disclosure can be implemented. In this example environment 100, an application 120 is installed on a terminal device 110. A user 140 can interact with the application 120 via the terminal device 110 and / or its attached devices. The application 120 can be any suitable application that supports interaction with virtual objects.

[0036] In the environment 100 of FIG1 , if the application 120 is active, the terminal device 110 may present an interface 150 of the application 120. The interface 150 may include various interfaces that the application 120 may provide, such as a conversation interface with a virtual object.

[0037] In some embodiments, the terminal device 110 communicates with the electronic device 130 to enable the provision of services (e.g., music services) to the application 120. The terminal device 110 can be any type of mobile terminal, fixed terminal, or portable terminal, including a mobile phone, a desktop computer, a laptop computer, a notebook computer, a netbook computer, a tablet computer, a media computer, a multimedia tablet, a personal communication system (PCS) device, a personal navigation device, a personal digital assistant (PDA), an audio / video player, a digital camera / camcorder, a positioning device, a television receiver, a radio broadcast receiver, an e-book device, a gaming device, or any combination thereof, including accessories and peripherals of these devices or any combination thereof. In some embodiments, the terminal device 110 can also support any type of interface for the user (such as a "wearable" circuit, etc.). The electronic device 130 can be various types of computing systems / servers that can provide computing capabilities, including but not limited to mainframes, edge computing nodes, computing devices in cloud environments, and the like.

[0038] In some embodiments, terminal device 110 and electronic device 130 may collaborate to provide specific services to user 140. In some exemplary embodiments of the present disclosure, the exemplary processes are described with electronic device 130 as the execution subject. It should be understood that in other embodiments, the exemplary processes described may be implemented collaboratively by terminal device 110 and electronic device 130. For the sake of brevity, identical or similar content will not be repeated.

[0039] It should be understood that the structure and function of the various elements in the environment 100 are described for illustrative purposes only and do not imply any limitation on the scope of the present disclosure.

[0040] Some example embodiments of the present disclosure will be described below with continued reference to the accompanying drawings.

[0041] Example Process

[0042] FIG2 illustrates an example process 200 for processing a request according to some embodiments of the present disclosure. Process 200 is described below with reference to FIG1 . The process may be implemented at least in part at terminal device 110 shown in FIG1 . For ease of discussion, the process will be described with reference to environment 100 of FIG1 .

[0043] As shown in FIG2 , terminal device 110 may obtain a user request 201 from a conversation between user 140 and a virtual object. As described above, terminal device 110 has application 120 installed, which supports interaction with the virtual object. Interface 150 of terminal device 110 may, for example, present a conversation interface with the virtual object. The virtual object is associated with a music service.

[0044] After receiving the user request, the terminal device 110 may process the user request 201 using the first model 210 to determine whether the target intent corresponding to the user request 201 matches a set of preset intents. The preset intents may include, for example, music playback intent or playback control intent.

[0045] If the terminal device 110 determines that the target intent corresponding to the user request 201 matches the music playback intent or the playback control intent, an operation matching the target intent may be performed.

[0046] For example, the terminal device 110 may utilize the first model 210 to extract and classify ( 211 ) a set of parameter values ​​for a set of preset query parameters involved in the user request 201 to determine the target intent corresponding to the user request 201 .

[0047] In some embodiments, the preset query parameters 202 may include song parameters, performer parameters, album parameters, scene parameters and / or additional description information, etc.

[0048] If the terminal device 110 determines using the first model 210 that the user request 201 involves song parameters, performer parameters, and album parameters, the terminal device 110 may determine that the user request 201 corresponds to a music playback intention.

[0049] For example, in some embodiments, if the terminal device 110 determines that the user request 201 is "play songs sung by XXX" or "play XX songs" using the first model 210, the terminal device 110 may determine that the user request 201 corresponds to the explicit music playback intention 203. Next, the terminal device 110 may implement the corresponding music search operation (231) using the music service module 230.

[0050] In some other embodiments, if the terminal device 110 determines using the first model 210 that the user request 201 involves "recommending music suitable for XX scene", the terminal device 110 may determine that the user request 201 corresponds to the explicit and ambiguous music playback intention 204. Next, the terminal device 110 may use the music service module 230 to implement the corresponding music recommendation operation (232).

[0051] The terminal device 110 may also identify the playback control intent 205 from the user request 201. For example, if the terminal device 110 determines using the first model 210 that the user request 201 involves a playback control intent such as "pause playback," "stop playback," "play next song," or "play previous song," then it can be determined that the user request 201 corresponds to the playback control intent 205. Next, the terminal device 110 can perform the corresponding playback control operation (220).

[0052] In some embodiments, the terminal device 110 uses the first model 210 to determine that the target intent corresponding to the user request 201 does not match a set of preset intents, that is, the target intent satisfies neither the music playback intent nor the playback control intent. Then, as shown in FIG2 , the terminal device 110 provides the user request 201 to the second model 240. The second model 240 then processes (241) the user request 201 to output a user response 206. The second model 240 has a larger scale than the first model 210. This can be understood as, compared to the first model 210, the second model 240 involves a more complex algorithm and may take longer to generate a user response.

[0053] It can be seen that by first extracting and classifying parameters of the user request 201, the user request involving music playback intention or playback control intention determined by the first model 210 can be exempted from processing by the second model 240, thereby significantly speeding up the speed and efficiency of processing user requests.

[0054] As mentioned above, the terminal device 110 can use the first model 210 to extract and classify (211) a set of parameter values ​​for a set of preset query parameters involved in the user request 201 to determine the target intent corresponding to the user request 201. The preset query parameters 202 may include additional descriptive information.

[0055] Once the terminal device 110 determines, using the first model 210, that the user request 201 involves additional descriptive information, the user request is provided to the second model 240. For example, if the terminal device 110 determines, using the first model 210, that the user request 201 includes "play the soundtrack from the XX movie," it can be determined that "XX movie" corresponds to the additional descriptive information because it does not involve any of the song parameters, performer parameters, album parameters, or scene parameters. In this case, the terminal device 110 provides the user request 201 to the second model 240. The second model 240 then processes the user request 201 (e.g., the additional descriptive information involved therein) (241) to output a user response 206.

[0056] In some embodiments, the second model 240 may include a language model. The conversation window of the user 140 and the virtual object may display a music player component. The user response 206 output by the second model 240 is used to control the music player component to execute the corresponding instruction.

[0057] In this way, the speed at which music-related requests are processed may be increased, allowing the requests to be executed more efficiently.

[0058] Sample interface

[0059] Figures 3A and 3B illustrate example interactive interfaces according to some embodiments of the present disclosure. Interfaces 300A and 300B shown in Figures 3A and 3B may be presented by terminal device 110. Interfaces 300A and 300B shown in Figures 3A and 3B are described below in conjunction with Figures 1 and 2.

[0060] It should be understood that the interactive interfaces shown in Figures 3A to 3B are merely examples, and various designs are possible. For example, the various graphical elements and / or controls in the interactive interface can have different arrangements and different visual representations, one or more elements and / or controls can be omitted or replaced, and one or more other elements and / or controls can also be present. In addition, the user interface can include any appropriate content. The scope of the present disclosure is not limited in this respect.

[0061] Furthermore, the user can switch and jump between interactive interfaces by activating controls / entries in each interactive interface or performing predetermined operations in the interactive interface. It should be understood that the logic of switching and jumping between interactive interfaces can be set arbitrarily. For example, in an example embodiment, the user jumps from the first interactive interface to the second interactive interface by activating a control. In other embodiments, the user can jump from the first interactive interface to the third interactive interface by activating another control. The present disclosure is not limited in this respect. It should also be understood that although multiple interactive interfaces are described in a specific embodiment, any interactive interface described in the present disclosure can be independently implemented as a separate embodiment.

[0062] In various example embodiments of the present disclosure, the example interaction interfaces 300A to 500B may be implemented at the terminal device 110 , and may be any page of the application 120 .

[0063] In the embodiments of the present disclosure, application 120 may be a conversational application. Specifically, for a consumer user, the consumer user can interact with a virtual object in the form of a conversation. In some scenarios, a virtual object may also be referred to as a digital assistant, a virtual avatar, etc. In the following embodiments, a music assistant will be used as an example of a virtual object.

[0064] Referring to the example interactive interfaces 300A and 300B shown in Figures 3A and 3B. In the specific embodiment of Figures 3A and 3B, the virtual object is a music assistant. User 140 inputs a message 310 (e.g., user request 201) in a conversation with the music assistant. In response to the input message 310, the music assistant returns a response 320. The response, for example, may relate to the responses output by the music search 231 and music recommendation 232 provided by the music service module 230 shown in Figure 2 or the user response 206 for the user request processing 241 output by the second model 240.

[0065] In some embodiments, the response to the input message includes a reply message provided in a conversation window of the conversation, and the reply message includes text content and at least one piece of music recommendation content. Referring to the example interaction interface 300A shown in FIG3A , a response 320 is presented in a conversation with the music assistant, and further, the response 320 includes text content 330 and at least one piece of music recommendation content 340.

[0066] In some embodiments, in response to a triggering operation on at least one piece of music recommendation content 340, a music playback component provided in the session can be used to provide a playback service for the at least one piece of music recommendation content. Referring to the example interaction interface 300A shown in FIG3A , if user 140 triggers at least one piece of music recommendation content 340, terminal device 110 can present the example interaction interface 300B shown in FIG3B . In example interaction interface 300B, the at least one piece of music recommendation content can be played by the music playback component provided in the session.

[0067] Example Process

[0068] 4 shows a flow chart of a method 400 for processing a request according to some embodiments of the present disclosure. The method 400 may be at least partially implemented at the terminal device 110. The process 400 is described below with reference to FIG1 .

[0069] In block 410 , the terminal device 110 obtains a user request received in a session between the user and a virtual object, the virtual object being associated with a music service.

[0070] In box 420, the terminal device 110 uses the first model to process the user request to determine whether the target intent corresponding to the user request matches a set of preset intents, where the set of preset intents includes a music playback intent or a playback control intent.

[0071] In box 430, in response to the target intent not matching the set of preset intents, the terminal device 110 provides the user request to a second model in box 440 to generate a first response to the user request, and the scale of the second model is larger than that of the first model.

[0072] In some embodiments, in response to the target intent matching the playback control intent, the terminal device 110 performs a playback control operation that matches the target intent.

[0073] In some embodiments, the terminal device 110 determines a set of parameter values ​​for a set of preset query parameters based on the user request; and in response to the parameter value of the target parameter in the set of preset query parameters being not empty, provides the user request to the second model to generate a second response to the user request, wherein the target parameter value indicates additional descriptive information about at least one other preset query parameter.

[0074] In some embodiments, the set of preset query parameters further includes at least one of the following: song parameter, performer parameter, album parameter, scene parameter.

[0075] In some embodiments, in response to the target intent matching the music playback intent, the terminal device 110 generates a third response to the user request based on the set of parameter values ​​of the set of preset query parameters.

[0076] In some embodiments, the terminal device 110 provides the set of parameter values ​​to the music service module corresponding to the music playback intention to generate the third response to the user request.

[0077] In some embodiments, the music service module includes: a music search module corresponding to the first music playback intention; and / or a music recommendation module corresponding to the second music playback intention.

[0078] In some embodiments, the session window of the session displays a music playback component, and the first response is used to control the music playback component to execute a corresponding instruction.

[0079] In some embodiments, the second model comprises a language model.

[0080] Example devices and equipment

[0081] 5 shows a schematic structural block diagram of an apparatus 500 for processing a request according to certain embodiments of the present disclosure. The apparatus 500 may be implemented as or included in the terminal device 110. Each module / component in the apparatus 500 may be implemented by hardware, software, firmware, or any combination thereof.

[0082] According to various embodiments of the present disclosure, the device 500 includes: a request acquisition module 510, configured to acquire a user request received in a conversation between a user and a virtual object, wherein the virtual object is associated with a music service; a first processing module 520, configured to process the user request using a first model to determine whether the target intent corresponding to the user request matches a set of preset intents, wherein the set of preset intents includes a music playback intent or a playback control intent; and a providing module 530, configured to provide the user request to a second model in response to the target intent not matching the set of preset intents to generate a first response to the user request, wherein the scale of the second model is larger than that of the first model.

[0083] In some embodiments, the apparatus 500 may further be configured to, in response to the target intent matching the playback control intent, execute a playback control operation matching the target intent.

[0084] In some embodiments, the device 500 can also be configured to determine a set of parameter values ​​for a set of preset query parameters based on the user request; and in response to the parameter value of the target parameter in the set of preset query parameters being not empty, provide the user request to the second model to generate a second response to the user request, wherein the target parameter value indicates additional descriptive information about at least one other preset query parameter.

[0085] In some embodiments, the set of preset query parameters further includes at least one of the following: song parameter, performer parameter, album parameter, scene parameter.

[0086] In some embodiments, the device 500 may also be configured to generate a third response to the user request based on the set of parameter values ​​of the set of preset query parameters in response to the target intent matching the music playback intention.

[0087] In some embodiments, the apparatus 500 may also be configured to provide the set of parameter values ​​to a music service module corresponding to the music playback intention to generate the third response to the user request.

[0088] In some embodiments, the music service module includes: a music search module corresponding to the first music playback intention; and / or a music recommendation module corresponding to the second music playback intention.

[0089] In some embodiments, the session window of the session displays a music playback component, and the first response is used to control the music playback component to execute a corresponding instruction.

[0090] In some embodiments, the second model comprises a language model.

[0091] FIG6 shows a block diagram of an electronic device 600 in which one or more embodiments of the present disclosure may be implemented. It should be understood that the electronic device 600 shown in FIG6 is merely exemplary and should not be construed as limiting the functionality and scope of the embodiments described herein. The electronic device 600 shown in FIG6 can be used to implement the terminal device 110 of FIG1 .

[0092] As shown in FIG6 , electronic device 600 is a general-purpose electronic device. Components of electronic device 600 may include, but are not limited to, one or more processors or processing units 610, memory 620, storage device 630, one or more communication units 640, one or more input devices 650, and one or more output devices 660. Processing unit 610 may be a real or virtual processor and is capable of performing various processes according to programs stored in memory 620. In a multi-processor system, multiple processing units execute computer-executable instructions in parallel to enhance the parallel processing capabilities of electronic device 600.

[0093] The electronic device 600 typically includes a plurality of computer storage media. Such media can be any accessible media that can be obtained by the electronic device 600, including but not limited to volatile and non-volatile media, removable and non-removable media. The memory 620 can be a volatile memory (e.g., a register, a cache, a random access memory (RAM)), a non-volatile memory (e.g., a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), flash memory), or some combination thereof. The storage device 630 can be a removable or non-removable medium and can include a machine-readable medium, such as a flash drive, a disk, or any other medium that can be used to store information and / or data (e.g., training data for training) and can be accessed within the electronic device 600.

[0094] The electronic device 600 may further include additional removable / non-removable, volatile / non-volatile storage media. Although not shown in FIG6 , a disk drive for reading or writing from a removable, non-volatile disk (e.g., a “floppy disk”) and an optical drive for reading or writing from a removable, non-volatile optical disk may be provided. In these cases, each drive may be connected to a bus (not shown) by one or more data media interfaces. The memory 620 may include a computer program product 625 having one or more program modules configured to perform various methods or actions of various embodiments of the present disclosure.

[0095] The communication unit 640 enables communication with other electronic devices via a communication medium. Additionally, the functions of the components of the electronic device 600 can be implemented in a single computing cluster or multiple computing machines that can communicate via a communication connection. Thus, the electronic device 600 can operate in a networked environment using a logical connection with one or more other servers, a network personal computer (PC), or another network node.

[0096] The input device 650 may be one or more input devices, such as a mouse, keyboard, or trackball. The output device 660 may be one or more output devices, such as a display, a speaker, or a printer. The electronic device 600 may also communicate with one or more external devices (not shown) through the communication unit 640 as needed, such as a storage device, a display device, or the like, with one or more devices that allow a user to interact with the electronic device 600, or with any device that allows the electronic device 600 to communicate with one or more other electronic devices (e.g., a network card, a modem, etc.). Such communication may be performed via an input / output (I / O) interface (not shown).

[0097] According to an exemplary implementation of the present disclosure, a computer-readable storage medium is provided, on which computer-executable instructions are stored, wherein the computer-executable instructions are executed by a processor to implement the method described above. According to an exemplary implementation of the present disclosure, a computer program product is also provided, which is tangibly stored on a non-transitory computer-readable medium and includes computer-executable instructions, and the computer-executable instructions are executed by a processor to implement the method described above.

[0098] Various aspects of the present disclosure are described herein with reference to flowcharts and / or block diagrams of methods, apparatuses, devices, and computer program products implemented according to the present disclosure. It should be understood that each block of the flowcharts and / or block diagrams, and combinations of blocks in the flowcharts and / or block diagrams, can be implemented by computer-readable program instructions.

[0099] These computer-readable program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, such that when these instructions are executed by the processing unit of the computer or other programmable data processing device, a device is generated that implements the functions / actions specified in one or more blocks in the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium, where these instructions cause the computer, programmable data processing device, and / or other device to operate in a specific manner. Thus, the computer-readable medium storing the instructions comprises an article of manufacture that includes instructions for implementing various aspects of the functions / actions specified in one or more blocks in the flowchart and / or block diagram.

[0100] Computer-readable program instructions can be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operational steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0101] The flow charts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the systems, methods and computer program products according to multiple implementations of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a part for a module, program segment or instruction, and a part for a module, program segment or instruction comprises one or more executable instructions for realizing the logical function of the specification. In some alternative implementations, the functions marked in the box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be realized by a special hardware-based system that performs the function or action of the specification, or can be realized by a combination of special hardware and computer instructions.

[0102] While various implementations of the present disclosure have been described above, the foregoing description is intended to be illustrative, not exhaustive, and not limited to the disclosed implementations. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described implementations. The terminology used herein is selected to best explain the principles of the implementations, their practical applications, or improvements to existing technologies, or to enable others skilled in the art to understand the various implementations disclosed herein.

Claims

1. A method for processing a request, comprising: Obtaining a user request received in a session between the user and a virtual object, the virtual object being associated with a music service; Processing the user request using a first model to determine whether a target intent corresponding to the user request matches a set of preset intents, the set of preset intents including a music playback intent or a playback control intent; as well as In response to the target intent not matching the set of preset intents, providing the user request to a second model to generate a first response to the user request, the second model being larger in scale than the first model.

2. The method according to claim 1, further comprising: In response to the target intent matching the playback control intent, a playback control operation matching the target intent is performed.

3. The method according to claim 1, further comprising: Based on the user request, determining a set of parameter values ​​for a set of preset query parameters; as well as In response to a parameter value of a target parameter in the set of preset query parameters being not empty, providing the user request to the second model to generate a second response to the user request, wherein the target parameter value indicates additional description information about at least one other preset query parameter.

4. The method according to claim 3, wherein the set of preset query parameters further comprises at least one of the following: Song parameters, performer parameters, album parameters, scene parameters.

5. The method according to claim 3, further comprising: In response to the target intent matching the music playback intent, a third response to the user request is generated based on the set of parameter values ​​of the set of preset query parameters.

6. The method according to claim 5, wherein generating a third response to the user request based on the set of parameter values ​​of the set of preset query parameters comprises: The set of parameter values ​​is provided to a music service module corresponding to the music playing intent to generate the third response to the user request.

7. The method according to claim 6, wherein the music service module comprises: a music search module corresponding to the first music playing intention; and / or A music recommendation module corresponding to the second music playback intention.

8. The method according to claim 1, wherein the session window of the session displays a music playing component, and the first response is used to control the music playing component to execute a corresponding instruction.

9. The method of claim 1, wherein the second model comprises a language model.

10. An apparatus for processing a request, comprising: a request acquisition module configured to acquire a user request received in a session between a user and a virtual object, the virtual object being associated with a music service; A first processing module is configured to process the user request using a first model to determine whether a target intent corresponding to the user request matches a set of preset intents, wherein the set of preset intents includes a music playback intent or a playback control intent; as well as A providing module is configured to provide the user request to a second model in response to the target intent not matching the set of preset intents to generate a first response to the user request, wherein the scale of the second model is larger than that of the first model.

11. An electronic device, comprising: at least one processing unit; as well as At least one memory, the at least one memory being coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit, the instructions causing the electronic device to perform the method according to any one of claims 1 to 9 when executed by the at least one processing unit.

12. A computer-readable storage medium having a computer program stored thereon, wherein the computer program can be executed by a processor to implement the method according to any one of claims 1 to 9.

13. A computer program product comprising computer executable instructions, wherein the computer executable instructions, when executed by a processor, implement the method according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • Intelligent automated assistant for media exploration

    CN107480161A

  • Method and device for providing voice service

    CN107833574A

  • Data query method and device, electronic device and storage medium

    CN110795528A

  • Resource acquisition method and device

    CN111274819A

  • Human-computer interaction method, electronic equipment and system

    CN114255745A