Service combination method and device and electronic equipment
By obtaining and combining service parameters in electronic devices, the target network model matching related services, the problem of poor user experience is solved, and the more efficient service portfolio and operation are achieved.
Patent Information
- Application Number
- CN202310914042.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-24
- Publication Date
- 2025-01-24
AI Technical Summary
In electronic devices, users usually only have to use one service alone, resulting in poor user experience.
By obtaining the parameters of the first service and entering the target network model, to obtain the associated second service parameters, and then combine the second service with the first service to enhance the user experience.
Based on the target network model, automatically match and combine related services to enhance the user experience.
Smart Images

Figure CN119356747A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of terminal technology, and more specifically, to a service combination method, device and electronic device. Background Art
[0002] In electronic devices, various types of services can be provided to users. For example, weather services, flight information display services, time display services, etc. can be provided to users. However, in related methods, services are usually used in a single manner, resulting in a low user experience. Summary of the invention
[0003] In view of the above problems, the present application proposes a service combination method, device and electronic device to improve the above problems.
[0004] In a first aspect, the present application provides a service combination method, which is applied to an electronic device, and the method includes: obtaining a first service parameter of a first service; inputting the first service parameter into a target network model to obtain a second service parameter output by the target network model, wherein the target network model is used to output associated service parameters based on the input service parameters; and combining a second service corresponding to the second service parameter with the first service.
[0005] In a second aspect, the present application provides a service combination device that runs on an electronic device, the device comprising: a parameter acquisition unit, used to acquire a first service parameter of a first service; a service matching unit, used to input the first service parameter into a target network model to obtain a second service parameter output by the target network model, the target network model being used to output associated service parameters based on the input service parameters; a service combination unit, used to combine a second service corresponding to the second service parameter with the first service.
[0006] In a third aspect, the present application provides an electronic device comprising one or more processors and a memory; one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the above-mentioned method.
[0007] In a fourth aspect, the present application provides a computer-readable storage medium storing a program code executable by a processor, wherein the computer-readable storage medium includes the stored program code, wherein the above method is executed when the program code is run.
[0008] The present application provides a service combination method, device, and electronic device. After obtaining the first service parameter of the first service, the first service parameter can be input into the target network model to obtain the second service parameter output by the target network model, and then the second service corresponding to the second service parameter is combined with the first service. Thus, in the above manner, when the target network model can output the associated service parameter according to the input service parameter, the target network model can be used to obtain the second service that matches the first service, and then the second service is combined with the first service, so that the second service can be combined with the first service for operation to improve the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0010] Figure 1 A flow chart of a service combination method proposed in an embodiment of the present application is shown;
[0011] Figure 2 A schematic diagram of a method of displaying services in an embodiment of the present application is shown;
[0012] Figure 3 A schematic diagram of a method of displaying services in an embodiment of the present application is shown;
[0013] Figure 4 A flow chart of a service combination method proposed in another embodiment of the present application is shown;
[0014] Figure 5 A flow chart of a service combination method proposed in another embodiment of the present application is shown;
[0015] Figure 6 A schematic diagram of a service combination interface in an embodiment of the present application is shown;
[0016] Figure 7 A schematic diagram of identifying a selected service in an embodiment of the present application is shown;
[0017] Figure 8 A schematic diagram showing a display of a selected second service in an embodiment of the present application is shown;
[0018] Fig. 9 Another schematic diagram showing displaying a selected second service in an embodiment of the present application is shown;
[0019] Fig.10A flow chart of a service combination method proposed in another embodiment of the present application is shown;
[0020] Fig.11 A structural block diagram of a service combination device proposed in an embodiment of the present application is shown;
[0021] Fig.12 A structural block diagram of an electronic device for executing a service combination method according to an embodiment of the present application is shown;
[0022] Fig.13 It is a storage unit of an embodiment of the present application for storing or carrying a program code for implementing the service combination method according to an embodiment of the present application. DETAILED DESCRIPTION
[0023] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0024] In electronic devices, various types of services can be provided to users. For example, weather services, flight information display services, time display services, etc. can be provided to users. However, in related methods, services are usually used in a single manner, resulting in a low user experience.
[0025] Therefore, the inventors proposed a service combination method, device, and electronic device in the present application. After obtaining the first service parameter of the first service, the first service parameter can be input into the target network model to obtain the second service parameter output by the target network model, and then the second service corresponding to the second service parameter is combined with the first service. Thus, in the above manner, when the target network model can output the associated card parameter according to the input card parameter, the target network model can be used to obtain the second service that matches the first service, and then the second service is combined with the first service, so that the second service can be combined with the first service for operation to improve the user experience.
[0026] The embodiments of the present application will be described in detail below with reference to the accompanying drawings.
[0027] See also Figure 1 The present application provides a service combination method, which is applied to electronic equipment, and the method includes:
[0028] S110: Acquire a first service parameter of a first service.
[0029] In the embodiment of the present application, the first service can be understood as a service referenced by the subsequent service combination. The first service can be determined in a variety of ways. As a way, the first service can be selected by the user of the electronic device. For example, a service display interface can be displayed in the electronic device, and the services that the electronic device can provide can be displayed in the service display interface.
[0030] For example, the services that the electronic device can provide may include weather services, itinerary services, flight information services, and navigation services. In this case, the user of the electronic device can select the first service from the services that the electronic device can provide according to his or her needs. For another example, when the electronic device displays services, the service affected by the specified touch operation can be selected as the first service in response to a specified touch operation on the displayed service. For example, Figure 2 As shown, the electronic device displays a flight information service through card 10 and displays a picture display service through card 20. If there is a designated touch operation on card 10, it is determined that the designated touch operation is applied to the flight information service, and the flight information service can be used as the first service.
[0031] As another way, the first service can be determined by the electronic device itself. Optionally, the electronic device can determine at least one of a currently running service, a service that has been run in the past, or a service that is estimated to be used as the first service.
[0032] In an embodiment of the present application, when an electronic device runs a certain function, the corresponding service can be provided by running the function. For example, if a takeaway program has a takeaway function, then the takeaway service can be provided to users by running the takeaway function. For another example, if an audio playback program has an audio playback function, then the audio playback service can be provided to users by running the audio playback function. Among them, the running service can be understood as the service provided by the running function, or can be understood as the service that the user is using. For example, if the electronic device is running the audio playback function of the audio playback program, then the audio playback service provided by running the audio playback function can be understood as running. Correspondingly, the historically run service can be understood as the service provided by the historically run function. Among them, the historically run service can include the service that has been run within a specified time period before the current moment. Among them, the specified time period can be 1 day, 1 week, or 1 month. The specific length of the specified time period is not specifically limited in the embodiment of the present application.
[0033] In the embodiments of the present application, service parameters can be understood as parameters that constitute a service. It can be understood that, for a service, a series of parameters are required to describe the content of the service. For example, for a weather service, it is necessary to inform the user of the specific area of weather and the specific weather content, and all of these contents need to be reflected through the service parameters of the weather service. Among them, the first service parameter can be understood as the service parameter of the first service.
[0034] As a way, service parameters can be present in the form of fields. For example, for Figure 3 The weather service shown, its corresponding service parameters can be as follows:
[0035] {
[0036] "city":"Shenzhen",
[0037] "weather":"clear",
[0038] "temp":"20° / 26°"
[0039] "des":"Provide weather query service"
[0040] }
[0041] Among them, the city field, weather field, temp field and des field are all service parameters of the weather service. And it is through these service parameters that the service content of the weather service is reflected.
[0042] S120: Input the first service parameter into a target network model to obtain a second service parameter output by the target network model, wherein the target network model is used to output associated card parameters according to the input card parameters.
[0043] Among them, the target network model can be used to output associated card parameters according to the input card parameters. Furthermore, after obtaining the first service parameters of the first service, the first service parameters can be input into the target network model to obtain the second service parameters output by the target network model.
[0044] It should be noted that the electronic device can determine the service according to the service parameters output by the target network model. For example, the service corresponding to the second service parameter is determined as the second service. In this case, the target network model needs to output the service parameters according to certain rules so that the electronic device can better determine the service.
[0045] Optionally, the initial network model is trained with target data to obtain a target network model, and the target data is used to specify the content output by the target network model. For example, when the initial network model is a large model, the initial network model can be trained by prompt word training, so that the obtained target network model can output results according to the input prompt words. The large model can be understood as a large data model, and the large data model can be a conversational model.
[0046] Among them, the input prompt words can make the target neural network clearly know what content needs to be output and the format of the output content.
[0047] Exemplarily, the first service parameter input may be "("des":"Service providing weather forecast", "name":"Weather card", "param":{"city":"Shenzhen", "weather":"Sunny", "temp":"26 degrees Celsius"}}", and the prompt word input may be "Based on the input example, referred to as service A, help me generate a service that can be combined with it, referred to as service B, and generate 3-5 services that can be combined with service A.
[0048] The param field in the data structure of service A is an array type, where each object is in the form of K, V, where K is the key of the parameter and value is the value of the parameter. The matching rule of service B requires: understand the meaning of K and V in param in service A, match the services that can be associated with service A, and service A and service B cannot have duplicate service content. A string in json format is given. The detail field is required in the data structure of service B, and the service description after matching the param parameter in service A is required. "
[0049] In this case, the output of the big data model can be as follows:
[0050] {"name":"Recommended tourist attractions","des":"Services that recommend suitable attractions based on local weather","detail":"The weather in Shenzhen is sunny today, suitable for outdoor activities and sightseeing. We recommend you to visit Shenzhen Window of the World, Happy Coast and other attractions."},
[0051] {"name":"Outdoor sports recommendations","des":"Recommend suitable sports according to weather conditions","detail":"The weather in Shenzhen is sunny that day, which is suitable for outdoor sports. You can try running, cycling or hiking."},
[0052] {"name":"Clothing matching suggestions","des":"Clothing matching suggestions based on local weather","detail":"The temperature in Shenzhen is moderate. It is recommended to wear thin clothing such as short sleeves and shorts during the day. The temperature difference between morning and evening is large, so please remember to add clothes."}.
[0053] It should be noted that the output of the big data model is the service parameters. After obtaining the service parameters output by the big model data, the corresponding service can be obtained as the second service.
[0054] S130: Combine the second service corresponding to the second service parameter with the first service.
[0055] After obtaining the second service parameter, the corresponding service can be obtained as the second service according to the second service parameter, and then the second service is combined with the first service. In the embodiment of the present application, combining the second service with the first service can also be understood as associating the first service with the second service.
[0056] As a method, each service may correspond to a service identifier, which is used to uniquely identify the corresponding service, so as to distinguish different services through the service identifier. In this way, the first service and the second service may be combined by associating and storing the service identifiers of the first service and the second service. For example, as shown in the following table:
[0057] ID Service Logo Association ID 1 Association ID 2 1 Service S1 Service S2 Service S3 2 Service S2 Service S3 3 Service S4 Service S5 Service S6
[0058] In the above table, the association identifiers corresponding to multiple service identifiers are stored. For example, if the service identifier associated with service S1 is service S2, it means that the service corresponding to service S1 and the service corresponding to service S2 are combined services. For another example, if the service identifier associated with service S4 is service S5 and service S6, it means that the service corresponding to service S4, the service corresponding to service S5 and the service corresponding to service S6 are combined services.
[0059] In the case where the second service is combined with the first service, the first service and the second service can be displayed synchronously. For example, in the case where the first service and the second service are combined, if the display of the first service is detected, the electronic device can automatically and synchronously display the second service. If the display of the second service is detected, the electronic device can automatically and synchronously display the first service. Exemplarily, when the electronic device displays the first service, it can detect whether there is a service identifier associated with the service identifier of the displayed first service. If so, the service corresponding to the service identifier associated with the service identifier of the first service can also be displayed synchronously. For example, when the electronic device displays a takeaway service (first service) on the desktop, if the service identifier of the dial-up service is detected through the service identifier of the takeaway service, and is associated with the service representation of the takeaway service, the dial-up service (second service) can also be displayed on the desktop for the user to view or use.
[0060] It should be noted that in the embodiments of the present application, displaying a service may include displaying the name of the service, or it may also be displaying the service content of the service so that the user can understand the service content of the service. It should be noted that for some services, they can be run without being triggered by the user. For example, time services and weather services. For these services that can be run without being triggered by the user, they are synchronously in the running state when they are displayed. For example, if the first service or the second service is a weather service, and the service content of the weather service is to display weather conditions, then displaying the weather service can be understood as directly displaying the current weather conditions.
[0061] For some services, they will not run until they are triggered by the user. For example, dial-up services, search services, and evaluation services. For services that will not run until they are triggered by the user, the trigger information can be displayed accordingly. Among them, the trigger information can be understood as information used to trigger the operation of the service. After the trigger information is displayed, the service corresponding to the trigger operation can be responded to. For example, if the first service or the second service is a dial-up service, and the service content of the dial-up service is to dial a designated object, and the operation of dialing the phone requires manual triggering by the user of the electronic device, then when the dial-up service is displayed, the trigger information of the dial-up service can be displayed, and when the trigger operation acting on the trigger information is detected, the electronic device will dial the designated object.
[0062] This embodiment provides a service combination method, after obtaining the first service parameter of the first service, the first service parameter can be input into the target network model to obtain the second service parameter output by the target network model, and then the second service corresponding to the second service parameter is combined with the first service. Thus, in the above manner, when the target network model can output the associated card parameter according to the input card parameter, the target network model can be used to obtain the second service that matches the first service, and then the second service is combined with the first service, so that the second service can be combined with the first service for operation to improve the user experience.
[0063] See also Figure 4 The present application provides a service combination method, which is applied to electronic equipment, and the method includes:
[0064] S210: Acquire a first service parameter of a first service displayed in a designated area.
[0065] Among them, the designated area can be understood as an area where the service can be displayed. As a way, the designated area includes at least one of the desktop, the negative one screen, and the lock screen interface. In an embodiment of the present application, the same service can be displayed in only one area, or in multiple areas. For example, the first service can be displayed only on the desktop, or it can be displayed on the desktop and the negative one screen simultaneously. For another example, the first service can also be displayed on both the desktop and the lock screen interface.
[0066] In the case where the first service can be displayed, as one method, obtaining the first service parameter of the first service displayed in the designated area includes: in response to the first service being displayed in the designated area, obtaining the first service parameter of the first service displayed in the designated area.
[0067] In the embodiment of the present application, the first service can be displayed in the designated area in response to a designated operation. The designated operation can be understood as an operation for triggering the display of the service. In the embodiment of the present application, the designated operation can be implemented in multiple ways.
[0068] As a method, the designated operation may include dragging the application interface to the designated location. In this method, in response to dragging the application interface to the designated location, the first service may be displayed, wherein the category of the displayed first service corresponds to the dragged application interface.
[0069] Among them, the designated position can have multiple situations, for example, the designated position can be the top of the screen or the bottom of the screen. Among them, the category of the displayed first service corresponds to the dragged application interface, which can be understood as determining the category of the generated first service based on the attributes of the dragged application interface. The attribute can be the category of the application to which the application interface belongs, or it can be the content displayed in the application interface. For example, if the application interface dragged to the designated position is an audio playback interface, then the first service displayed can be an audio playback service. For another example, if the application interface dragged to the designated position is a news display interface, then the first service displayed can be a news display service. For another example, if the application interface dragged to the designated position is a picture display interface, then the first service displayed can be a picture display service.
[0070] Optionally, in response to dragging the application interface to the specified location, displaying the first service may include: in response to dragging the application interface to the specified location, obtaining the application to which the dragged application interface belongs, and displaying the first service based on the category of the application. It should be noted that there may be multiple applications in an electronic device, and the operations that can be performed by different types of applications may be different. Therefore, when the user triggers the generation of a card by dragging the application interface, the category of the generated first service is determined based on the category of the application to which the application interface belongs, which is conducive to more accurate generation of the first service of the category currently required by the user.
[0071] For example, if the application to which the application interface dragged to the specified position belongs is an application for audio playback, then the electronic device can infer that the user currently needs the audio playback function, and can then display the first service of the audio category. For another example, if the application to which the application interface dragged to the specified position belongs is an application for information display, then the electronic device can infer that the user currently needs the information display function, and can then display the first service of the information category.
[0072] In an electronic device, a correspondence between the name of an application and the category of the application may be stored. In this case, after obtaining the application to which the dragged application interface belongs, the category of the application may be determined based on the name of the application and the correspondence between the name of the application and the category of the application. For example, the correspondence between the name of the application and the category of the application may be shown in the following table:
[0073] ID name category 1 Application A1 Audio playback 2 Application A2 Video playback 3 Application A3 News
[0074] As shown in the table above, if the application to which the dragged application interface belongs is application A2, the category of the first service displayed may be video playback. If the application to which the dragged application interface belongs is application A3, the category of the first service displayed may be news.
[0075] Optionally, in response to dragging an application interface to a specified location, displaying the first service may include: in response to dragging the application interface to the specified location, obtaining content displayed in the dragged application interface, and displaying the first service based on the displayed content. It should be noted that the displayed content may be different for different application interfaces. Moreover, even for different application interfaces belonging to the same application, the displayed content may be different. In this case, determining the category of the displayed first service based on the content displayed in the dragged application interface can improve the accuracy with which the displayed first service meets user needs.
[0076] For example, an instant messaging application may include an application interface for displaying information and an application interface for playing videos. If the user drags the application interface for playing videos to a specified location, the user may expect the first service to be displayed to be a video card. However, if the first service is displayed directly based on the instant messaging category, it may not meet the user's needs.
[0077] As another way, the first service may be displayed in response to searching for the target content, wherein the displayed first service corresponds to the target content. It should be noted that when searching for the target content, the user may want to know information related to the searched target content, and then determine the category of the displayed first service according to the target content searched by the user, which can improve the accuracy of the displayed first service category in meeting the user's needs.
[0078] It should be noted that after the first service is triggered to be displayed through a specified operation, the first service may remain in the display state. For example, after the electronic device is restarted, the first service may be automatically displayed.
[0079] S220: Input the first service parameter into a target network model to obtain a second service parameter output by the target network model, wherein the target network model is used to output associated card parameters according to the input card parameters.
[0080] S230: Combine the second service corresponding to the second service parameter with the first service, and display the second service in the designated area.
[0081] This embodiment provides a service combination method, so that in the above manner, when the target network model can output the associated card parameters according to the input card parameters, the target network model can be used to obtain the second service that matches the first service, and then the second service can be combined with the first service, so that the second service can be combined with the first service to run, so as to improve the user experience. In addition, in this embodiment, when the first service is displayed in the designated area, the electronic device obtains the first service parameter of the first service, and after obtaining the second service, when the first service is combined with the first service, the second service will also be displayed, so that the electronic device can automatically combine and display the second service, further improving the user experience.
[0082] See also Figure 5 The present application provides a service combination method, which is applied to electronic equipment, and the method includes:
[0083] S310: Acquire a service selected from the displayed services to be combined as a first service.
[0084] In the embodiment of the present application, the first service can be selected by the user. The electronic device can display a service combination interface, and the service to be combined can be displayed in the service combination interface. For example, Figure 6 As shown, Figure 6 A service combination interface 30 is shown, and the service combination interface 30 includes a first display area 31 and a second display area 32. The first display area 31 can be used to display the relevant information of the first service selected by the user. The second display area 32 can be used to display the service to be combined and the second service determined according to the first service. For example, when the services are displayed in the form of cards, the card name corresponding to the service to be combined can be displayed in area 321. Area 322 can be used to display the second service determined according to the first service.
[0085] The above-mentioned related information may include the content displayed by the first service when it is displayed. Figure 6 In the case where the user selects a weather card, it indicates that the weather service corresponding to the weather card is selected by the user as the first service, and then the relevant information of the weather service is displayed in the first display area 31.
[0086] Optionally, the first service selected by the user may be marked by adding a border. Figure 7As shown, if the user selects a weather card (weather service), a frame 3211 can be added to the weather card to allow the user to identify it. In addition, there are other ways to identify the service selected by the user, for example, the background color of the selected service can be changed to identify it.
[0087] S320: Obtain a first service parameter of the first service.
[0088] S330: Input the first service parameter into a target network model to obtain a second service parameter output by the target network model, wherein the target network model is used to output associated service parameters according to the input service parameters.
[0089] S340: Display the second service.
[0090] Displaying the second service may be understood as displaying the name of the second service, or may be understood as highlighting the name of the second service. Figure 8 As shown in the left image of , before the second service is determined, nothing is displayed in the area 322 of the service combination interface. In this case, after the second service is determined, the determined second service can be displayed in the area 322. For example, Figure 8 As shown in the right image, if the determined second service is a tourist attraction recommendation service, the tourist attraction recommendation will be displayed in area 322 .
[0091] In addition, in one embodiment, some services may be pre-displayed in the area 322. In this case, the service pre-displayed in the area 322 may be determined as the second service. In this case, the second service may be highlighted so that the user can identify the determined second service. Fig. 9 As shown, before the second service is determined, tourist attraction recommendations, service pairing suggestions, and outdoor sports recommendations are already displayed in area 322. If the second service is determined to be a tourist attraction recommendation, then Fig. 9 As shown in the image on the right, recommended tourist attractions are highlighted.
[0092] S350: Combine the second service corresponding to the second service parameter with the first service.
[0093] As one mode, there are multiple second service parameters. In this mode, a target service selected from multiple second services is obtained, and the target service is combined with the first service.
[0094] As a method, after combining the second service corresponding to the second service parameter with the first service, it also includes: in response to displaying the first service, synchronously displaying the second service; or in response to displaying the second service, synchronously displaying the first service.
[0095] Optionally, in response to an update of the content displayed in the first service, the content displayed in the second service is updated; or in response to an update of the content displayed in the second service, the content displayed in the first service is updated.
[0096] This embodiment provides a service combination method, so that in the above manner, when the target network model can output the associated service parameters according to the input service parameters, the target network model can be used to obtain the second service that matches the first service, and then the second service is combined with the first service, so that the second service can be combined with the first service to run, so as to improve the user experience. In addition, in this embodiment, a service configuration interface can be displayed to display the service to be combined and the second service recommended by the target neural network model, so that the user can select the service to be combined according to the recommendation.
[0097] Next, pass Fig.10 The process included in a service combination method involved in this application is described below.
[0098] like Fig.10 As shown, the electronic device can traverse the specified files in the specified storage area. It should be noted that the services in the electronic device can be displayed in the form of cards. In this case, a card can be configured separately for each service, and the relevant information of each card can be stored in the form of a specified file. The specified file can be a UPK (Unreal Development Kit) file.
[0099] After reading the specified file, the specified file can be decompressed first, and if the decompression is successful, the information in the specified file can be converted into a specified object, and then the relevant information of the corresponding card can be obtained based on the specified object. Among them, the card obtained from the specified file can be displayed as a card to be combined.
[0100] The display of the card can be understood as displaying the name of the card. In this case, if the user clicks on the name of one of the cards, the relevant information of the clicked card can be loaded into the interface, and the service parameters of the clicked card can be input into the macro model. The relevant information of the card can include the content that will be displayed in the card when the card is displayed.
[0101] After the large model outputs the matching service parameters according to the input service parameters, the name of the card corresponding to the matching service parameters can be displayed in the interface.
[0102] See also Fig.11 The present application provides a service combination device 400, which runs on an electronic device. The device 400 includes:
[0103] The parameter acquisition unit 410 is configured to acquire a first service parameter of a first service.
[0104] The service matching unit 420 is used to input the first service parameter into the target network model to obtain the second service parameter output by the target network model, and the target network model is used to output the associated service parameter according to the input service parameter.
[0105] The service combining unit 430 is configured to combine the second service corresponding to the second service parameter with the first service.
[0106] As a method, the service matching unit 420 is specifically used to train the initial network model through target data to obtain a target network model, and the target data is used to specify the content output by the target network model.
[0107] As a method, the parameter acquisition unit 410 is specifically used to acquire the first service parameter of the first service displayed in the designated area. Optionally, the service combination unit 430 is specifically used to combine the second service corresponding to the second service parameter with the first service, and display the second service in the designated area. Optionally, the parameter acquisition unit 410 is specifically used to acquire the first service parameter of the first service displayed in the designated area in response to the first service being displayed in the designated area.
[0108] As a method, the parameter acquisition unit 410 is further configured to acquire a service selected from the displayed services to be combined as the first service. The service combination unit 430 is further configured to display the second service before combining the second service corresponding to the second service parameter with the first service.
[0109] Optionally, there are multiple second service parameters. In this case, the service combining unit 430 is further specifically configured to obtain a target service selected from the multiple second services, and combine the target service with the first service.
[0110] A service combination device provided in this embodiment enables, when the target network model is capable of outputting associated service parameters based on input service parameters, to utilize the target network model to obtain a second service that matches the first service, and then combine the second service with the first service, so that the second service can be combined with the first service for operation to enhance user experience.
[0111] It should be noted that the device embodiments in the present application correspond to the aforementioned method embodiments, and the specific implementation principles of each unit in the device embodiments are similar to the principles in the aforementioned method embodiments. The specific contents in the device embodiments can be found in the method embodiments, and will not be repeated in the device embodiments.
[0112] The following will be combined Fig.12 An electronic device provided by the present application is described.
[0113] See also Fig.12 Based on the above service combination method and device, the embodiment of the present application also provides an electronic device 1000 that can execute the above service combination method. The electronic device 1000 includes one or more (only one is shown in the figure) processors 105, a memory 104, an audio playback module 106, and an audio acquisition device 108 that are coupled to each other. Among them, the memory 104 stores a program that can execute the content of the above embodiment, and the processor 105 can execute the program stored in the memory 104.
[0114] Among them, the processor 105 may include one or more processing cores. The processor 105 uses various interfaces and lines to connect various parts of the entire electronic device 1000, and executes various functions and processes data of the electronic device 1000 by running or executing instructions, programs, code sets or instruction sets stored in the memory 104, and calling data stored in the memory 104. Optionally, the processor 105 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 105 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 105, but may be implemented separately through a communication chip.
[0115] The memory 104 may include a random access memory (RAM) or a read-only memory (ROM). The memory 104 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 104 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc.
[0116] Furthermore, in addition to the aforementioned components, the electronic device 1000 may further include a network module 110 and a sensor module 112 .
[0117] The network module 110 is used to realize information interaction between the electronic device 1000 and other devices. For example, a connection can be established with other audio playback devices or other electronic devices, and information interaction is performed based on the established connection. As a way, the network module 110 of the electronic device 1000 is a radio frequency module, which is used to receive and send electromagnetic waves, realize the mutual conversion of electromagnetic waves and electrical signals, and thus communicate with a communication network or other devices. The radio frequency module may include various existing circuit elements for performing these functions, such as antennas, radio frequency transceivers, digital signal processors, encryption / decryption chips, user identity modules (SIM) cards, memories, etc. For example, the radio frequency module can interact with external devices through electromagnetic waves sent or received.
[0118] The sensor module 112 may include at least one sensor. Specifically, the sensor module 112 may include but is not limited to: a pressure sensor, a motion sensor, an acceleration sensor, and other sensors.
[0119] Among them, the pressure sensor may be a sensor that detects the pressure generated by pressing on the electronic device 1000. That is, the pressure sensor detects the pressure generated by contact or pressing between the user and the electronic device 1000, for example, the pressure generated by contact or pressing between the user's ear and the electronic device 1000. Therefore, the pressure sensor can be used to determine whether contact or pressing occurs between the user and the electronic device 1000, and the magnitude of the pressure.
[0120] Among them, the acceleration sensor can detect the magnitude of acceleration in all directions (generally three axes), and can detect the magnitude and direction of gravity when stationary, and can be used for applications that recognize the posture of the electronic device 1000 (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc. In addition, the electronic device 1000 can also be equipped with other sensors such as gyroscopes, barometers, hygrometers, thermometers, etc., which will not be repeated here.
[0121] The audio collection device 108 is used to collect audio signals. Optionally, the audio collection device 108 includes a plurality of audio collection devices, which may be microphones.
[0122] Please refer to Fig.13 , which shows a structural block diagram of a computer-readable storage medium provided in an embodiment of the present application. The computer-readable medium 1100 stores program codes, which can be called by a processor to execute the method described in the above method embodiment.
[0123] The computer readable storage medium 1100 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer readable storage medium 1100 includes a non-transitory computer-readable storage medium. The computer readable storage medium 1100 has storage space for program code 1110 that executes any method step in the above method. These program codes can be read from or written to one or more computer program products. The program code 1110 can be compressed, for example, in an appropriate form.
[0124] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0125] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0126] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0127] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, which can be embodied in any computer-readable medium for use by an instruction execution system, apparatus or device (such as a computer-based system, a system including a processor or other system that can fetch instructions from an instruction execution system, apparatus or device and execute instructions), or used in combination with these instruction execution systems, apparatuses or devices.
[0128] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0129] In summary, the present application provides a service combination method, device, and electronic device. After obtaining the first service parameter of the first service, the first service parameter can be input into the target network model to obtain the second service parameter output by the target network model, and then the second service corresponding to the second service parameter is combined with the first service. Thus, in the above manner, when the target network model can output the associated service parameter according to the input service parameter, the target network model can be used to obtain the second service that matches the first service, and then the second service is combined with the first service, so that the second service can be combined with the first service for operation to improve the user experience.
[0130] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical feature diagrams therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A service composition method, characterized in that: Applied to electronic equipment, the method comprises: Obtaining a first service parameter of a first service; Inputting the first service parameter into a target network model to obtain a second service parameter output by the target network model, wherein the target network model is used to output an associated service parameter according to the input service parameter; A second service corresponding to the second service parameter is combined with the first service.
2. The method according to claim 1, characterized in that Before inputting the first service parameter into the target network model to obtain the second service parameter output by the target network model, the method further includes: The initial network model is trained with target data to obtain a target network model, wherein the target data is used to specify the content output by the target network model.
3. The method according to claim 1, characterized in that The obtaining of the first service parameter of the first service includes: Obtaining a first service parameter of a first service displayed in a specified area; The combining the second service corresponding to the second service parameter with the first service includes: A second service corresponding to the second service parameter is combined with the first service, and the second service is displayed in the designated area.
4. The method according to claim 3, characterized in that The designated area includes at least one of a desktop, a negative one screen, and a lock screen interface.
5. The method according to claim 3, characterized in that: The obtaining of the first service parameter of the first service displayed in the designated area includes: In response to the first service being displayed in the designated area, a first service parameter of the first service displayed in the designated area is acquired.
6. The method according to claim 5, characterized in that The method further comprises: In response to a designated operation, a first service is displayed in the designated area.
7. The method according to claim 1, characterized in that Before obtaining the first service parameter of the first service, the method further includes: Acquire a service selected from the displayed services to be combined as a first service; Before combining the second service corresponding to the second service parameter with the first service, the method further includes: The second service is displayed.
8. The method according to claim 7, characterized in that There are multiple second service parameters, and combining the second service corresponding to the second service parameters with the first service includes: A target service selected from the plurality of second services is obtained, and the target service is combined with the first service.
9. The method according to claim 7, characterized in that: After combining the second service corresponding to the second service parameter with the first service, the method further includes: In response to displaying the first service, synchronously displaying the second service; or In response to displaying the second service, the first service is synchronously displayed.
10. The method according to claim 7, characterized in that The method further comprises: In response to an update of the content displayed in the first service, updating the content displayed in the second service; or In response to an update of the content displayed in the second service, the content displayed in the first service is updated.
11. A service combination device, characterized in that: Running on an electronic device, the device comprises: A parameter acquisition unit, configured to acquire a first service parameter of a first service; A service matching unit, configured to input the first service parameter into a target network model to obtain a second service parameter output by the target network model, wherein the target network model is configured to output an associated service parameter according to the input service parameter; The service combining unit is used to combine the second service corresponding to the second service parameter with the first service.
12. An electronic device, characterized in that: including one or more processors and memory; One or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the method according to any one of claims 1 to 10.
13. A computer-readable storage medium storing a program code executable by a processor, characterized in that: The computer-readable storage medium includes stored program code, wherein when the program code is executed, the method according to any one of claims 1 to 10 is executed.