Business object switching method, device, electronic device and computer storage medium
By dividing business objects into two sets in user passive business scenarios, and obtaining corresponding objects from the local cache when the network status changes, the problem of business interruption is solved and seamless business object switching and continuity are achieved.
Patent Information
- Application Number
- CN201910926637.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-09-27
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2039-09-27
AI Technical Summary
The existing technology is difficult to achieve seamless service object switching in user passive service scenarios, especially when the network status changes, resulting in interruption of service execution.
By dividing the business objects into a first business object set and a second business object set, the first business object set is cached locally in advance. When the business execution switches from the online state to the offline state, the first business object set is obtained locally. Business objects are executed offline to ensure the continuity of business execution.
It achieves imperceptible seamless switching of business objects, and users are not affected when the network changes, ensuring the continuity and stability of business execution.
Smart Images

Figure CN112579033B
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of computer technology, and in particular to a method, device, electronic device and computer storage medium for switching a business object. Background Art
[0002] With the development of Internet technology and mobile communication technology, more and more traditional projects have been digitized and become various applications or functions in applications that can be conveniently used by users. Some of these projects have formed passive business scenarios for users, that is, business scenarios that can only be passively accepted but not actively controlled, such as audio radio.
[0003] In the passive service scenario taking audio radio as an example, music radio is a typical application. Taking music radio as an example, music radio is an electronic implementation form of the traditional radio function of playing music. Through this form, users can passively listen to the music programs played by the music radio. But because of this, the current music radio can only be played online, and once it is offline, the playback will be interrupted. But in many cases, such as when driving or taking a car, suddenly entering a tunnel without network or network weakening or shielding, or entering an underground parking lot from an elevator without network coverage, or switching to flight mode during flight, or switching to flight mode before going to bed at night and without wifi, etc., will cause the music radio playback to be interrupted. Similarly, other forms of audio radio and other passive service scenarios also have the same problem.
[0004] In some business scenarios, such as active listening scenarios (scenarios where users can actively control the playback content), some audio can be pre-stored locally, and audio switching can be performed when the electronic device changes from an online state to an offline state. However, this audio switching solution in active listening scenarios cannot be applied to passive listening scenarios. This is because the content played by an audio radio station should be unpredictable and continuously updated for users, while the locally stored audio in active listening scenarios is knowable and limited; audio radio stations should be able to play continuously without user intervention, but in active listening scenarios, when the network status changes, manual audio switching is required.
[0005] Therefore, how to achieve seamless switching of service execution in passive service scenarios when the network status changes has become an urgent problem to be solved. Summary of the invention
[0006] In view of this, an embodiment of the present invention provides a business object switching solution to solve part or all of the above problems.
[0007] According to a first aspect of an embodiment of the present invention, a business object switching method is provided, comprising: when it is determined, based on network status change information, that the business execution in a user passive business scenario is switched from an online state to an offline state, obtaining business objects in a first business object set from a local cache; switching business objects in a second business object set executed in an online state to business objects in the first business object set, and executing the business objects in the first business object set in an offline state; wherein the business objects in the first business object set and the business objects in the second business object set satisfy a business execution continuity rule, and the business execution continuity rule is used to indicate that multiple business objects are executed in a time sequence.
[0008] According to a second aspect of an embodiment of the present invention, a business object switching device is provided, comprising: an acquisition module, for acquiring business objects in a first business object set from a local cache when it is determined, based on network status change information, that business execution in a user passive business scenario is switched from an online state to an offline state; a switching module, for switching business objects in a second business object set executed in an online state to business objects in the first business object set, and executing the business objects in the first business object set in an offline state; wherein the business objects in the first business object set and the business objects in the second business object set satisfy business execution continuity rules, and the business execution continuity rules are used to indicate that multiple business objects are executed in a time sequence.
[0009] According to a third aspect of an embodiment of the present invention, there is provided an electronic device, comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; the memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform operations corresponding to the business object switching method described in the first aspect.
[0010] According to a fourth aspect of an embodiment of the present invention, a computer storage medium is provided, on which a computer program is stored. When the program is executed by a processor, the business object switching method as described in the first aspect is implemented.
[0011] According to the business object switching solution provided by the embodiment of the present invention, the business object set to be executed is divided into a first business object set and a second business object set, wherein the first business object set is pre-cached locally, and when the business execution in the business scenario switches from an online state to an offline state and cannot continue to be executed online, the business objects in the pre-cached first business object set can be obtained from the local cache for offline execution. Because the business objects in the first business object set and the business objects in the second business object set meet the business execution continuity rules and there are no overlapping business objects, the switching of business objects will not affect the business execution, achieving seamless switching of online and offline business objects that is not affected by network changes and imperceptible to users. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the embodiments of the present invention. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.
[0013] Figure 1 A flowchart of a method for switching a business object according to a first embodiment of the present invention;
[0014] Figure 2A This is a flow chart of the steps of a business object switching method according to Embodiment 2 of the present invention;
[0015] Figure 2B for Figure 2A A schematic diagram of an audio switching process in the illustrated embodiment;
[0016] Figure 3A is a flowchart of the steps of an audio switching method according to Embodiment 3 of the present invention;
[0017] Figure 3B for Figure 3A A schematic diagram of an audio playback interface in the illustrated embodiment;
[0018] Figure 3C for Figure 3A A schematic diagram of an audio switching interface in the illustrated embodiment;
[0019] Figure 3D for Figure 3A Another schematic diagram of an audio switching interface in the illustrated embodiment;
[0020] Figure 4A is a flowchart of the steps of an audio switching method according to Embodiment 4 of the present invention;
[0021] Figure 4B for Figure 4A A schematic diagram of the process of the first gesture operation in the illustrated embodiment;
[0022] Figure 4C for Figure 4A A schematic diagram of the process of the second gesture operation in the illustrated embodiment;
[0023] Figure 4D for Figure 4A A schematic diagram of a third gesture operation process in the illustrated embodiment;
[0024] Figure 4E for Figure 4A A schematic diagram of a fourth gesture operation process in the illustrated embodiment;
[0025] Figure 4F for Figure 4A A timing diagram of a recommended operation in the illustrated embodiment;
[0026] Figure 4G for Figure 4A A schematic diagram of a usage scenario in the illustrated embodiment;
[0027] Figure 5 is a structural block diagram of a business object switching device according to Embodiment 5 of the present invention;
[0028] Figure 6 is a structural block diagram of a service object switching device according to Embodiment 6 of the present invention;
[0029] Figure 7 FIG. 1 is a schematic diagram of the structure of an electronic device according to Embodiment 7 of the present invention. DETAILED DESCRIPTION
[0030] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. All other embodiments obtained by ordinary technicians in the field based on the embodiments in the embodiments of the present invention should fall within the scope of protection of the embodiments of the present invention.
[0031] The specific implementation of the embodiment of the present invention is further described below in conjunction with the accompanying drawings of the embodiment of the present invention.
[0032] Embodiment 1
[0033] Reference Figure 1 , shows a step flow chart of a business object switching method according to embodiment 1 of the present invention.
[0034] The service object switching method of this embodiment includes the following steps:
[0035] Step S100: when it is determined to switch the service execution in the user passive service scenario from the online state to the offline state according to the network state change information, the service objects in the first service object set are obtained from the local cache.
[0036] Among them, the user passive business scenario includes at least one of the following: an audio radio scenario, a video radio scenario, an Internet of Things scenario, a passive social scenario, a passive e-commerce business scenario, a business object evaluation scenario, etc.
[0037] The network status change information is used to indicate the change of the network used by the electronic device executing the service, such as from a normal network to no network or a weak network, from no network or a weak network to a normal network, etc. The specific method of obtaining the network status change information can be implemented by any appropriate method selected by those skilled in the art according to actual needs, including but not limited to: obtaining according to parameters such as network signal strength, network data transmission rate, network bandwidth, link quality, etc., and the embodiments of the present invention are not limited to this.
[0038] In this embodiment, the business objects to be executed are divided into two sets, namely, a first business object set and a second business object set, and the business objects in the two sets meet the business execution continuity rule, and the business execution continuity rule is used to indicate that multiple business objects are executed in a time sequence, such as sequential execution, cyclic execution, etc. Among them, the first business object set is used for offline execution, which is pre-acquired and cached locally, and the second business object set is used for online execution, which can be set in the cloud or one or more (two or more) servers.
[0039] Based on this, in an optional solution, before obtaining the business objects in the first business object set from the local cache, the business objects in the first business object set can also be obtained from at least one server or cloud and cached locally to expand the acquisition scope of the business objects.
[0040] Furthermore, the server may include multiple servers, and the multiple servers are located in different geographical areas; the acquiring the business objects in the first business object set from at least one server and caching them locally includes: acquiring the business objects in the first business object set from multiple servers located in different geographical areas through a central server and caching them locally. In this way, the acquisition of business objects in different regions can be achieved, so that the content of the business objects is richer and more comprehensive.
[0041] Step S200: switching the business objects in the second business object set executed in an online state to the business objects in the first business object set, and executing the business objects in the first business object set in an offline state.
[0042] The business objects in the first business object set and the business objects in the second business object set satisfy a business execution continuity rule, and the business execution continuity rule is used to indicate that multiple business objects are executed in a time sequence.
[0043] When the business execution is in an online state, the business objects in the second business object set will be executed online; when the online state changes to an offline state, the online execution can no longer be performed and it is necessary to switch to offline execution. At this time, the business objects in the first business object set cached locally need to be used to implement the business execution.
[0044] In addition, optionally, if it is determined that the business execution is switched from offline state to online state based on the network status change information, the business objects in the first business object set currently executed in the offline state can be switched back to the business objects in the second business object set to restore the online business execution of the business objects.
[0045] Further optionally, after switching the business execution from an offline state back to an online state, if it is determined that the number of business objects that have been executed in the first business object set meets a first set threshold, the business objects in the first business object set are updated; or, if it is determined that the business execution has been continuously in an online state for more than a second set threshold, after adding the business objects in the first business object set to the second business object set, the business objects in the first business object set are updated. Wherein, the updating of the business objects in the first business object set includes: using the business objects in the second business object set that have not been executed to update the business objects in the first business object set.
[0046] It should be noted that in the embodiments of the present invention, the business object is adapted to the user's passive business scenario and is an object that implements certain business functions. The business execution is also adapted to the user's passive business scenario. For example, in the audio radio scenario, the business execution is to play audio; in the video radio scenario, the business execution is to play video; in the IoT scenario, the business execution is adapted to the specific object, and can be to play audio, video, display information, etc.; the business execution in the passive social scenario and the passive e-commerce business scenario is similar to the IoT scenario; in the business object evaluation scenario, the business execution can also be implemented as the display or playback of the business object, etc.
[0047] Through this embodiment, the business object set to be executed is divided into a first business object set and a second business object set, wherein the first business object set is pre-cached locally, and when the business execution in the business scenario switches from an online state to an offline state and cannot continue to be executed online, the pre-cached business objects in the first business object set can be obtained from the local cache for offline execution. Because the business objects in the first business object set and the business objects in the second business object set meet the business execution continuity rules and there are no overlapping business objects, the switching of business objects will not affect the business execution, achieving a seamless switching of online and offline business objects that is not affected by network changes and imperceptible to users.
[0048] The service object switching method of this embodiment can be executed by any appropriate electronic device, including but not limited to: a server, a mobile terminal (such as a tablet computer, a mobile phone, etc.) and a PC, etc.
[0049] Embodiment 2
[0050] This embodiment takes the user passive service scenario as an audio radio station and the service object as an example to illustrate the service object switching method provided by the embodiment of the present invention.
[0051] Reference Figure 2A , shows a step flow chart of a business object switching method according to embodiment 2 of the present invention.
[0052] The service object switching method of this embodiment includes the following steps:
[0053] Step S102: when it is determined to switch the audio radio station from the online play state to the offline play state according to the network state change information, the audio in the first audio set downloaded through the audio radio station is obtained from the local cache.
[0054] Among them, the audio radio station is used to broadcast audio content to users, including but not limited to music radio stations, storytelling radio stations, audiobook radio stations, etc. The audio radio station determines the audio content played to the user in the background according to certain rules and logic, and the user passively listens to the content played by the audio radio station. In this embodiment, the audio to be played by the audio radio station is divided into two sets, namely, a first audio set and a second audio set. The audio sources in the two sets are the same but the audio contents do not overlap with each other. The audio in the two sets meets the playback continuity rule, wherein the playback continuity rule is used to indicate that the audio in the two sets is played according to a certain time sequence, such as sequential playback, loop playback, etc. For example, the audio radio station has played audio A, B, C and D in the second audio set online. If it still maintains the online playback state, it will continue to play audio E in the second audio set. However, if it switches from the online playback state to the offline playback state, it will continue to play audio X in the first audio set after audio D is played, and then audio Y after audio X in the first audio set. Among them, the playback of each audio in the first audio set adopts the form of sequential playback, and similarly, the playback of each audio in the first audio set also adopts the form of sequential playback. During the switching between audio D and audio X, audio D can use local cache data and can also be switched to audio X after the continuous playback is completed. In the embodiment of the present invention, the audio in the first audio set is set for offline playback, and the audio in the second audio set is set for online playback.
[0055] The audio radio APP or the application APP where the audio radio is located can obtain relevant information of the first audio set and the second audio set in advance, and then download and cache the audio set for offline playback, i.e. the audio in the first audio set, locally for use when the audio radio is offline.
[0056] Based on this, when it is determined to switch the audio radio station from the online playback state to the offline playback state according to the network status change information, the audio in the first audio set for offline playback can be used for offline playback. Among them, the network status change information is used to indicate the changes in the network used by the electronic device where the audio radio station is located, such as from a normal network to no network or a weak network, from no network or a weak network to a normal network, etc. The specific method of obtaining the network status change information can be implemented by any appropriate method selected by those skilled in the art according to actual needs, including but not limited to: obtaining according to parameters such as network signal strength, network data transmission rate, network bandwidth, link quality, etc., and the embodiments of the present invention are not limited to this.
[0057] Step S104: Switch the audio in the second audio set currently being played online by the audio radio station to the audio in the first audio set, and play it offline through the audio radio station.
[0058] When the audio radio station is in the online playback state, the online audio, that is, the audio in the second audio set, will be played; when the online playback state changes to the offline playback state, the audio can no longer be played online and needs to be switched to offline playback. At this time, the audio in the first audio set cached locally needs to be used for playback.
[0059] As mentioned above, the audio in the first audio set and the audio in the second audio set are different audio.
[0060] An example of the above process is Figure 2B As shown, assuming that there are 50 audios to be played in the background server of the audio radio station, the 11th to 20th of them are divided into the first audio set, and the rest, namely the 1st to 10th and the 21st to 50th, are divided into the second audio set. When online, that is, when the network connection between the background server of the audio radio station and the mobile terminal is normal, the audio radio station is in an online playback state and can play the audios in the second audio set; at the same time, the mobile terminal also downloads and caches the audios in the first audio set to the local mobile terminal. Assuming that the mobile terminal has played the first 7 audios online, and the 8th audio is currently being played online, at this time, the audio radio station changes from the online playback state to the offline playback state. For example, the user drives into a tunnel without a network. Because the single audio currently being played is usually cached first and then played, the 8th audio can be played normally at this time, but other online audios such as the 9th to 10th and 21st to 50th audios will not be able to continue to play online. At this time, the network connection between the audio radio station and the audio radio station background server is offline, and the audio radio station has entered the offline playback state. Therefore, audio playback can be selected from the 11th to 20th audios in the first audio set cached locally in the mobile terminal, such as sequential playback. At this time, the 11th audio can be played, and the audio radio station uses the audio in the first audio set cached locally in the mobile terminal to continue playing until the audio radio station is restored from the offline playback state to the online playback state. For example, when the mobile terminal leaves the tunnel, the connection with the audio radio station background server is restored again, and audio can continue to be obtained from the second audio set for online playback. For example, when the audio radio plays the 15th audio, it is restored from the offline playback state to the online playback state. After the 15th audio is played, the audio in the second audio set, such as the 9th audio, will be restored.
[0061] It can be seen that through the above process, although the network status has changed, the audio radio station can still continuously provide uninterrupted services to users. For users, they cannot feel the impact of the change in network status on listening to the audio radio station.
[0062] Through this embodiment, the audio played by the audio radio station is divided into a first audio set and a second audio set, wherein the first audio set is pre-cached locally, and when the audio radio station switches from an online playback state to an offline playback state and cannot continue to play the audio online, the pre-cached audio in the first audio set can be obtained from the local cache for offline playback. Because the audio in the first audio set and the audio in the second audio set both come from the audio radio station and there is no overlapping audio between the two, the switching of audio will not affect the continuous playback of the audio radio station, so that the user's listening is not affected, achieving seamless switching of offline audio that is not affected by network changes and is imperceptible to the user.
[0063] The service object switching method of this embodiment can be executed by any appropriate electronic device, including but not limited to: a server, a mobile terminal (such as a tablet computer, a mobile phone, etc.) and a PC, etc.
[0064] Embodiment 3
[0065] This embodiment still takes the user passive service scenario as an audio radio station and the service object as an example to illustrate the service object switching method provided by the embodiment of the present invention. Those skilled in the art should understand that in this embodiment, the audio switching process for the audio radio station can be extended to any appropriate service object switching process in other user passive service scenarios, and the processing of the audio played by the audio radio station can be adaptively extended to the processing of service objects in other user passive service scenarios, which are all within the protection scope of the embodiment of the present invention.
[0066] Reference Figure 3A , shows a step flow chart of a business object switching method according to embodiment three of the present invention.
[0067] The service object switching method of this embodiment includes the following steps:
[0068] Step S202: the audio station plays the audio in the second audio set online, and downloads the audio in the first audio set in the background and caches it locally.
[0069] As mentioned above, the audio to be played by the audio radio station is divided into a first audio set and a second audio set. The audio sources in these two sets are the same but the audio contents do not overlap. The audio in the first audio set is used for offline playback, and the audio in the second audio set is used for online playback. In addition, the audio in the first audio set and the audio in the second audio set satisfy the playback continuity rule, and the playback continuity rule is used to indicate that multiple audios are played in a time sequence. Optionally, the audio in the first audio set and the audio in the second audio set are audios that are played in succession in a time sequence according to preset playback rules. The preset playback rules include, but are not limited to, sequential playback, loop playback, etc.
[0070] Based on this, when the audio in the second audio set is played online on the audio radio station, the audio in the first audio set can be downloaded in the background and cached locally. The timing of downloading and caching the first audio set can be any appropriate time when the audio in the second audio set is played. Optionally, in order to facilitate operation and reduce implementation complexity, the audio in the first audio set can be downloaded and cached when the audio radio station starts playing online.
[0071] Taking the audio radio station as a music radio station as an example, the interface of an audio radio station when playing online is as follows Figure 3B As shown. Figure 3B The left interface in the video shows that the song is currently playing online. In addition to displaying relevant information about the song being played (such as Figure 3B In addition to the lyrics, song name and performer information displayed in text from top to bottom on the left interface, there are also online operation options. For example, a circular icon with an ellipsis is set in the lower right corner of the left interface. When the icon is triggered, relevant available operations are displayed, such as Figure 3B The multiple operation options shown in the middle interface of the video can be implemented as: add to playlist, artist details, album details, playlist, favorites, share, etc. Some or all of the items, such as the "share" operation, need to be implemented online. For another example, when Figure 3B In the left interface, after the human-shaped line icon in the upper right corner is triggered, the online operation item "My Radio" is displayed, such as Figure 3B As shown in the right interface of the “My Radio” interface, users can make corresponding settings through “Offline Music Package”, “Preferences”, etc., and upload the settings made to the server through the network. For the “Self-built Radio” part in the “My Radio” playback interface, users can listen to the online playback content of the corresponding radio station online by triggering the corresponding radio station project.
[0072] In addition, when in online playback, the music station can also display comments posted by different users, such as Figure 3B And, when the user clicks the search icon in the upper right corner of the left interface, the corresponding search interface (not shown in the figure) is displayed to facilitate the user to search for online radio stations or music.
[0073] Step S204: when it is determined to switch the audio radio station from the online play state to the offline play state according to the network state change information, the audio in the first audio set downloaded through the audio radio station is obtained from the local cache.
[0074] In this embodiment, the change of network status is determined according to the network signal strength. For example, the value of the independent signal unit asu changes from 30 to 2, indicating that the current network status is poor. At this time, it can be determined to trigger the switching of the audio radio station from the online playback status to the offline playback status. However, it is not limited to this. In other implementations, as long as the network status can be determined to change from good to bad or weak according to the communication standard, the solution of the embodiment of the present invention can be applied.
[0075] When it is determined to switch the audio radio station from the online playing state to the offline playing state, the audio in the first audio set downloaded through the audio radio station can be obtained from the local cache.
[0076] Step S206: Switch the audio in the second audio set currently being played online by the audio radio station to the audio in the first audio set, and play it offline through the audio radio station.
[0077] As mentioned above, the audio in the first audio set and the audio in the second audio set are different audios.
[0078] When the network condition is good, the audio radio station plays online, and the audio played at this time is the audio in the second audio set downloaded from the server; when the network condition changes from good to bad or becomes unavailable, it is necessary to use the audio in the first audio set cached locally for offline playback.
[0079] An audio switching interface for switching from an online playback state to an offline playback state, taking an audio radio station as an example, is as follows Figure 3C As shown, from Figure 3C As can be seen in the figure, the music station originally obtains song A from the server and plays it online when the network status is good. At the same time, it also displays the comments posted by different users and the available options that can be operated online in the playback interface (such as Figure 3C When the network status deteriorates, it is necessary to switch to local playback. If the switch is in the process of playing the current song, the cache of the current song A is obtained from the local cache and the playback continues, as shown in the left interface of the figure. Figure 3C As shown in the right interface of the figure. However, it can be seen from the right interface that in the offline playback state, the available options for online operations will no longer be available. For example, compared with the left interface, the circular icon with ellipsis in the lower right corner of the interface, the search icon in the upper right corner, and the human-shaped line icon of "My Radio" are no longer displayed in the online playback state, and there is no bullet screen. However, for users, this switch is imperceptible, and the song continues to play without interruption, just as if the music radio station has been in the online playback state.
[0080] After the current song is played, an offline song will be played, that is, a song that is pre-cached locally and is different from the song played online. Figure 3D As shown, Figure 3D The left and middle interfaces in Figure 3C Same, but after playing Figure 3C After the current song A shown in , the new locally cached song X will be played, such as Figure 3D As shown in the right interface of the middle. As in the middle interface, the circular icon with ellipsis, search icon, human-shaped line icon and other available options for online operations and bullet comments are not available in the offline playback state. Similarly, for users, songs are played continuously, just like the music radio station is always in the online playback state.
[0081] Thus, seamless audio switching of the audio station is achieved when the network status changes. In order to further enhance the user experience, optionally, the following multiple optional steps may be performed.
[0082] Step S208: If it is determined to switch the audio station from the offline playing state to the online playing state according to the network status change information, the audio in the first audio set currently being played offline by the audio station is switched back to the audio in the second audio set.
[0083] When the network status changes from bad to good again, the audio station can be switched back to the online playback status, so that the audio station can continue to obtain audio from the server for online playback. Because the audio station is actually playing continuously, but for a certain user, the actual playback content of the audio station during the period of poor network status cannot be obtained due to the change in network status. Therefore, when the network status is restored, it is still restored to the actual online playback of the audio station, which is in line with the actual playback situation of the audio station and avoids the reduction of the user experience caused by the user's inability to listen to the actual playback content for a long time.
[0084] In addition, in a feasible manner, after the audio station is switched from an offline playback state to an online playback state, if it is determined that the number of audios that have been played in the first audio set meets a first set threshold, the audios in the first audio set are updated. Among them, the first set threshold can be appropriately set by those skilled in the art according to actual needs, and can be implemented as a numerical value for indicating a quantity, or as a ratio for indicating a proportion. The first set threshold can be up to the number of all audios in the first audio set, or a ratio of 1. By updating the audios in the first audio set, on the one hand, it can ensure that the audio station has sufficient playback resources when it is offline, and on the other hand, it can also obtain newer and better audio resources.
[0085] For example, when a user listens to all the audio content in the first audio collection cached locally in the offline playback state of the audio radio station, when the network status is good, the local cache will be cleaned and new music content will be automatically updated and downloaded to the local cache, thereby updating the first audio collection.
[0086] The cached content includes but is not limited to: the audio itself, the audio name, the performer's name, the text content corresponding to the audio (such as the audio introduction or the text or lyrics corresponding to the audio content, etc.), dynamic back video, etc., and the embodiment of the present invention does not limit this.
[0087] In another feasible manner, if it is determined that the audio station is continuously in the online playback state for a time exceeding the second set threshold, the audio in the first audio set can be added to the second audio set, and then the audio in the first audio set can be updated. The second set threshold can be appropriately set by those skilled in the art according to actual needs, and the embodiment of the present invention does not limit this.
[0088] In some scenarios, the audio station may be in an online playback state all the time, and will always obtain audio from the server and play it online. In this case, the audio in the first audio set will not be played for a long time, so the audio in the first audio set can be added to the second audio set so that the audio in the first audio set can also be played to the user. At the same time, the audio in the first audio set is updated to ensure that the audio station has sufficient playback resources when it is offline, and to obtain newer and better audio resources.
[0089] Optionally, updating the audio in the first audio set may include: using the audio in the second audio set that has not been played to update the audio in the first audio set. This approach is simple to implement, has high implementation efficiency, and low implementation cost. However, it is not limited to this. In actual applications, other audio resources may also be used to update the first audio set.
[0090] Through the above process, when the network is good, while playing online audio, the required radio content is downloaded and cached in the background in advance, and in the case of no network, weak network, flight mode, etc., it can seamlessly switch from online playback to offline playback. The overall playback format, music source, content and online status are the same for users. Because the radio audio content can be endless, the offline cached audio content can be different from the online playback content, so that the playback effect is exactly the same as the online status.
[0091] The service object switching method of this embodiment can be executed by any appropriate electronic device, including but not limited to: a server, a mobile terminal (such as a tablet computer, a mobile phone, etc.) and a PC, etc.
[0092] Embodiment 4
[0093] This embodiment still takes the user passive service scenario as an audio radio station and the service object as an example to illustrate the data processing scheme provided by the embodiment of the present invention. Those skilled in the art should understand that in this embodiment, the audio switching process for the audio radio station can be extended to any appropriate service object switching process in other user passive service scenarios, and the processing of the audio played by the audio radio station can be adaptively extended to the processing of service objects in other user passive service scenarios, which are all within the protection scope of the embodiment of the present invention.
[0094] Different from the first, second and third embodiments, the solution of this embodiment provides an interactive function between the user and the audio radio station, so that the user can participate in the playing of the audio radio station in a passive listening scenario. This interactive function can be implemented in both the online playing state of the audio radio station and the offline playing state of the audio radio station.
[0095] Reference Figure 4A , shows a step flow chart of a business object switching method according to embodiment 4 of the present invention.
[0096] The service object switching method of this embodiment includes the following steps:
[0097] Step S302: The audio radio station in the online playing state obtains audio from the second audio set and plays it online.
[0098] As mentioned above, the audio to be played by the audio radio station is divided into a first audio set and a second audio set. The audio sources of the two sets are the same but the audio contents do not overlap. The audio in the first audio set is used for offline playback, and the audio in the second audio set is used for online playback. The audio in the first audio set and the audio in the second audio set meet the playback continuity rule, and the playback continuity rule is used to indicate that multiple audios are played in time sequence. Optionally, the audio in the first audio set and the audio in the second audio set are audio that are played in time sequence according to preset playback rules.
[0099] Step S304: receiving a user's gesture operation on the currently playing audio through the playing interface of the audio radio station.
[0100] It can be seen that the gesture operation at this time is an operation for the audio played online.
[0101] In addition to controls for controlling audio playback, the playback interface may also include other appropriate settings according to actual needs, such as information about the currently playing audio, etc. The type of the audio is determined by the audio station. For example, when the audio station is a music station, the audio may be music; when the audio station is a storytelling station, the audio may be storytelling audio; when the audio station is a book listening station, the audio may be audio of a book played by voice, and so on.
[0102] Gesture operation can be any appropriate operation implemented by gesture. Users can use gesture operation to interact with the audio radio in a passive listening scenario to express their preferences for the currently playing audio or achieve certain intentions, such as liking the currently playing audio, disliking the currently playing audio, collecting the currently playing audio, switching the currently playing audio, etc.
[0103] When the scheme of this embodiment is applied to other user passive business scenarios, this step can be implemented as follows: receiving the user's operation on the current business object through the business interface in the user passive business scenario. The user's operation on the current business object is used to indicate the user's preference or intention; the operation includes: gesture operation, touch operation, click operation on preset controls, shake operation on the terminal device providing the user passive business scenario, and selection of a preset mode option representing the user's preference or intention. Optionally, the user's preference includes: one of like, dislike, and neutral. For example, the user expresses his like or dislike of the business object by sliding left or right; or, the user expresses his like or dislike of the business object by touching the business object or the control corresponding to the business object; or, the user expresses his like or dislike of the business object by clicking on the like control or the step control; or, the user expresses his like or dislike of the business object by shaking the operation, etc. However, it is not limited to this, and more operation items can be set for the user's neutral opinion, etc. Therefore, even in a passive business scenario, users can participate in the business by expressing their preferences or intentions to improve the user experience.
[0104] Step S306: If the gesture operation matches the preset operation, then determining the target operation corresponding to the preset operation.
[0105] Among them, the preset operation can be appropriately set by those skilled in the art according to actual needs, including but not limited to: a sliding operation in a certain direction, a clicking operation of a certain duration or frequency, and the like.
[0106] The correspondence between the preset operation and the target operation can be preset and stored. In actual applications, at least one preset operation and its corresponding target operation can be set. For example, a left-slide operation corresponds to a recommended operation, a right-slide operation corresponds to an anti-recommended operation, and so on. The anti-recommended operation means an operation opposite to the recommended operation. When a user performs a corresponding gesture operation on a certain audio, such as a right-to-right slide operation, the user will avoid being recommended audio that has a certain degree of similarity to the audio operated by the operation.
[0107] In this embodiment, the preset operation is set to include a first sliding operation in a first direction and a second sliding operation in a second direction, wherein the first direction and the second direction are different directions. For example, a left sliding operation and a right sliding operation, or an upward sliding operation and a downward sliding operation, etc. On the one hand, the sliding operation is simple and easy for users to implement; on the other hand, most of the controls in the playback interface require users to implement operations such as clicking or pressing, and the sliding operation can be clearly distinguished from the operation of the controls, which is convenient for determination and matching. Of course, in actual applications, those skilled in the art can also set the preset operation to any appropriate operation according to actual needs, as long as the solution of the embodiment of the present invention can be implemented.
[0108] Based on the settings of the first sliding operation and the second sliding operation, this step can be implemented as follows: if the gesture operation matches the first sliding operation, the target operation is determined to be a recommended operation based on the currently playing audio; if the gesture operation matches the second sliding operation, the target operation is determined to be an anti-recommendation operation based on the currently playing audio.
[0109] Although audio radio belongs to the passive consumption scenario, in order to better meet the needs of users and enhance the attractiveness and stickiness of audio radio, audio radio needs to have an audio recommendation function. To this end, the embodiment of the present invention combines target operation with audio recommendation, so that the user's preferences or intentions can be understood through the user's gesture operation, and audio content matching the user's preferences or intentions can be provided in subsequent playback.
[0110] For example, if the user swipes left on the currently playing audio, the operation is considered to mean that the user likes the audio. In subsequent playback, audio with a certain degree of similarity to the audio will be selected from the audio library for playback. That is, audio that satisfies the user's preferences or intentions can be recommended to the user without the user's awareness. Similarly, if the user swipes right on the currently playing audio, the operation is considered to mean that the user does not like the audio. In subsequent playback, audio with a certain degree of similarity to the audio will be avoided from being selected from the audio library. That is, the opposite operation to the aforementioned recommendation operation, i.e., the anti-recommendation operation, can be performed without the user's awareness.
[0111] Further, if the gesture operation matches the first sliding operation, the target operation is determined to be a recommendation operation based on the currently playing audio and a collection operation on the currently playing audio; if the gesture operation matches the second sliding operation, the target operation is determined to be a counter-recommendation operation based on the currently playing audio and a switching operation on the currently playing audio.
[0112] In one feasible manner, the recommendation operation and the favorite operation can be implemented through a first sliding operation. In this case, the recommendation operation is imperceptible to the user, the recommendation operation can be executed in the background, and the operation result of the favorite operation can be displayed in the foreground playback interface, and the process is shown in FIG4B . Figure 4B In the figure, the left interface schematically shows that the user has swiped left on the current playback interface of song A. The result of the swiping left is as follows: Figure 4B As shown in the right interface, the information of the collection results is displayed; on the other hand, the information of the left swipe operation is transmitted to the audio station or the application where the audio station is located for audio recommendation. In this way, the user's operation burden is effectively reduced.
[0113] In another feasible manner, the recommendation operation and the collection operation can be implemented through two consecutive first sliding operations. In this case, the first sliding operation indicates that the user likes the currently playing audio, and the recommendation operation is determined based on this. The user can be fed back the success of the sliding operation through a preset indication or icon (such as a hollow heart-shaped icon becoming solid), or no feedback can be given to the user, and only the relevant information is passed to the background. The second sliding operation can indicate that the currently playing audio is to be collected, and the collection result is displayed on the playback interface. This process is as follows Figure 4C shown. Figure 4C In the figure, the left interface schematically shows that the user has performed the first left swipe operation on the current playback interface of song A. The operation result of the left swipe operation is as follows: Figure 4C As shown in the middle interface in the figure, the hollow heart icon in the playback interface becomes a solid heart icon); on the other hand, the information of the left swipe operation is transmitted to the audio station or the application where the audio station is located for audio recommendation. When the user performs a second left swipe operation based on the playback interface shown in the middle interface, the result of the operation is as follows: Figure 4C As shown in the right interface, the collection result information is displayed. In this way, users can flexibly select the required operation and clearly know the operation result of the corresponding operation. Of course, in actual application, the first swipe operation can be used to collect, and the second swipe operation can be used to express preference.
[0114] Similarly, in another feasible method, the anti-recommendation operation and the switching operation can be implemented through a second sliding operation. In this case, the anti-recommendation operation is imperceptible to the user, and the anti-recommendation operation can be performed in the background, while the operation result of the switching operation can be displayed in the foreground playback interface. Among them, when performing the switching operation, the switched audio should be different from the currently playing audio. However, the selection of specific audio can be set by technical personnel in this field according to actual needs to set appropriate selection rules, such as random selection, or selecting audio of a performer different from the performer of the current audio, or selecting another audio of the performer of the current audio, or selecting audio of a different type and style from the current audio, or selecting audio in a different language from the current audio, and so on. The processing process under this method is as follows: Figure 4D shown. Figure 4D In the left interface, the user swipes right on the current playback interface of song A. The result of the swipe right operation is as follows: Figure 4D As shown in the right interface, the switched song X starts playing and displays the information of the switched song X, such as the lyrics and performers of the song X shown in the right interface; on the other hand, the information of the right swipe operation is transmitted to the audio station or the application where the audio station is located for audio reverse recommendation. In this way, one gesture operation can realize different functions, which can not only respond to users quickly, but also make reverse recommendations in the background, improve data processing efficiency, and reduce the user's operation burden.
[0115] In another feasible manner, the anti-recommendation operation and the switching operation can be implemented through two consecutive second sliding operations. In this case, the first sliding operation indicates that the user does not like the currently playing audio, and based on this, it is determined to perform an anti-recommendation operation. The success of the sliding operation can be fed back to the user through a preset indication or icon (such as a hollow heart icon becoming a hollow heart icon with a crack in the middle), or no feedback can be given to the user, and only the relevant information is passed to the background. The second sliding operation can indicate to switch the currently playing audio, and display the result of the switch on the playback interface. This process is as follows: Figure 4E shown. Figure 4E In the figure, the left interface schematically shows that the user has performed the first right swipe operation on the current playback interface of song A. The operation result of the right swipe operation is as follows: Figure 4E As shown in the middle interface of the video, the hollow heart icon in the playback interface is changed to a cracked hollow heart icon; on the other hand, the right swipe operation information is transmitted to the audio radio station or the application where the audio radio station is located for audio recommendation. When the user performs a second right swipe operation based on the playback interface shown in the middle interface, the result of the operation is as follows: Figure 4EAs shown in the right interface, the switched audio is played while the switched audio information is displayed. In this way, the user can flexibly select the required operation and clearly know the operation result of the corresponding operation. Of course, in actual application, the first sliding operation can also be used to switch, and the second sliding operation can be used to express that you don’t like the current audio.
[0116] In addition, in another feasible method, if the gesture operation matches the first sliding operation, the target operation is determined to be a collection operation based on the currently playing audio; if the gesture operation matches the second sliding operation, the target operation is determined to be a switching operation based on the currently playing audio.
[0117] Furthermore, a third sliding operation and a fourth sliding operation with different directions may be set, for example, the first sliding operation is a left sliding operation, the second sliding operation is a right sliding operation, the third sliding operation is an upward sliding operation, and the fourth sliding operation is a downward sliding operation. If the gesture operation matches the third sliding operation, the target operation is determined to be a recommendation operation based on the currently playing audio; if the gesture operation matches the fourth sliding operation, the target operation is determined to be an anti-recommendation operation based on the currently playing audio.
[0118] It can be seen that the above-mentioned multiple sliding operations and their corresponding target operations can be flexibly set according to needs and can be arbitrarily matched to achieve corresponding functions.
[0119] A usage scenario of the above process is shown as follows Figure 4G As shown, Figure 4G In the example, the user swipes left on the playback interface of song A. After the mobile terminal determines that the swipe left operation meets the preset operation, it sends the relevant information of the swipe left operation to the audio radio background server for audio recommendation. Assuming that the audio originally prepared by the audio radio background server is songs C, D, E, F, and G, after receiving the information of the swipe left operation, according to the information of song A carried therein and in accordance with certain recommendation rules, songs E and F are replaced with songs X and Y. Then, after the audio radio finishes playing song A, it will subsequently select songs from songs X, Y, C, D, and G to play.
[0120] The right swipe anti-recommendation operation is similar to this, except that songs that meet certain similarity rules with song A will be reduced or even not played.
[0121] When the solution of this embodiment is applied to other user passive business scenarios, this step can be implemented as follows: if the user's operation on the current business object matches the preset operation, then determine the target operation corresponding to the preset operation. The related processing of gesture operation in this step can be applied to other forms of user operations on the current business object.
[0122] Step S308: Execute the target operation according to the information of the currently playing audio, and play and / or display the operation result of the target operation through the audio radio.
[0123] Because the user's gesture operation expresses the user's preference or intention for the currently playing audio, the target operation corresponding to the gesture operation can be performed based on the audio information and expressed through the operation result of the target operation. The audio radio station plays content or displays results based on the operation result to show the user the result of expressing his preference or intention.
[0124] For example, if the target operation is a recommendation operation, audio can be recommended to the user without the user's perception through a recommendation algorithm or a neural network model for recommendation (including but not limited to a ranking model, a scoring model, etc.), and the recommended audio can be played through an audio radio station. From the user's perspective, the audio being listened to is more in line with their preferences. In the embodiments of the present invention, there is no limitation on the specific recommendation algorithm or specific neural network model used.
[0125] For another example, if the target operation is an anti-recommendation operation, the recommendation algorithm or the neural network model used for recommendation can also be used to exclude audio that the user does not like without the user's awareness, select audio that meets the user's preferences, and play the user's favorite audio through the audio radio. From the user's perspective, the user feels that the audio that he or she does not like is getting less and less, or even no longer listening to the audio that he or she does not like, and the audio that he or she likes is getting more and more.
[0126] For another example, if the target operation is a collection operation, the audio corresponding to the collection operation can be collected into the user's collection list, and the collection result can be displayed to the user through the playback interface of the audio radio station.
[0127] For another example, if the target operation is a switching operation, the currently playing audio can be switched to other audio, the switched audio can be played through the audio radio station, and the relevant information of the switched audio can be displayed through the playback interface of the audio radio station, and so on.
[0128] It can be seen that through the above process, users can interact with the audio radio station through simple gesture operations, let the audio radio station understand their preferences or intentions, and thus obtain more satisfactory audio radio services.
[0129] When the solution of this embodiment is applied to other user passive business scenarios, this step can be implemented as: executing the target operation according to the information of the business object, and feeding back the operation result of the target operation. The related processing of gesture operation in this step can be applied to other forms of user operations on the current business object.
[0130] For situations where the target operation includes a recommendation operation and a counter-recommendation operation, this embodiment provides an audio recommendation model to perform audio recommendations based on the user's gesture operation and the information of the currently playing audio operated by the gesture operation. Among them, the audio recommendation model can be selected by technical personnel in this field according to actual needs. Any appropriate model, including but not limited to a sorting model, a scoring model, etc. Through the audio recommendation model, on the one hand, more accurate audio recommendations can be achieved, and on the other hand, the audio recommendation model can continuously self-learn and improve to make the recommendation results closer to the user and more accurate. When the solution of this embodiment is applied to other user passive business scenarios, the audio recommendation model can be any appropriate business object recommendation model.
[0131] In one feasible approach, one user may correspond to one audio recommendation model, such as a lightweight audio recommendation model. The lightweight audio recommendation model may be initially trained with big data or have corresponding model parameters pre-set, and subsequently continue to learn from the data of the user to which it corresponds, so that the final output of the model is more in line with the preferences of the user to which it corresponds.
[0132] Based on this, in one feasible way, when the target operation includes a recommendation operation, executing the target operation according to the information of the currently playing audio may include: generating structured data according to the information of the gesture operation and the information of the currently playing audio; inputting the structured data into the audio recommendation model corresponding to the user operating the gesture operation, and determining the audio to be recommended from the audio library according to the user preference data output by the audio recommendation model. When applied to other business recommendation models, executing the target operation according to the information of the current business object may include: generating structured data according to the information of the operation and the information of the current business object; inputting the structured data into the business object recommendation model corresponding to the user operating the operation, and determining the business object to be recommended according to the user preference data.
[0133] In another feasible manner, when the target operation includes an anti-recommendation operation, the performing of the target operation according to the information of the currently playing audio may include: generating structured data according to the information of the gesture operation and the information of the currently playing audio; inputting the structured data into the audio recommendation model corresponding to the operating user of the gesture operation, according to the user preference data output by the audio recommendation model; filtering the business objects to be recommended according to the user preference data, and obtaining the filtered business objects to be recommended. When applied to other business recommendation models, structured data may be generated according to the information of the operation and the information of the current business object; inputting the structured data into the business object recommendation model corresponding to the operating user of the operation, according to the user preference data output by the business object recommendation model; filtering the business objects to be recommended according to the user preference data, and obtaining the filtered business objects to be recommended.
[0134] Among them, the information of the gesture operation may include: the operation content information of the gesture operation, and the number of times the operating user performs the same gesture operation; the audio information includes the attribute information of the audio. For example, the operation content information of the current gesture operation is information representing the left swipe operation; the number information is information representing the number of times the user has performed the same gesture operation for this gesture operation, such as the user's gesture operation is the 5th gesture operation, and so on. The attribute information of the audio is used to characterize the attributes of the audio, including but not limited to the name information, performer information, type information, album information, language information, and so on of the audio. Similarly, when applied to other business recommendation models, the operation information may include: the operation content information of the operation, and the number of times the operating user has performed the same operation; the information of the business object includes the attribute information of the business object.
[0135] By generating structured data from the information of the gesture operation and the information of the currently played audio, the audio recommendation model can process the data more conveniently and quickly, reducing the data processing burden of the model. The specific form of the structured data is determined according to the audio recommendation model, and the generated structured data can meet the input requirements of the audio recommendation model.
[0136] For the audio radio scenario of passive consumption, after the audio to be recommended is determined from the audio library through the audio recommendation model, the audio to be recommended can also be filtered according to the permission information of the operating user in the audio radio to obtain the audio that matches the permission information. For example, if the user is a non-member or non-paying member of the audio radio, he can only listen to free audio. If the audio to be recommended determined from the audio library contains paid audio, the paid audio can be filtered out according to the permission information of the operating user. In this way, the audio radio station can achieve smooth and complete audio playback, and will not play a fragment of a certain audio, etc., further improving the user's audio radio usage experience. When the above method is applied to other user passive business scenarios, after obtaining the filtered business objects to be recommended, the filtered business objects to be recommended can be filtered again according to the permission information of the operating user to obtain business objects that match the permission information.
[0137] In addition, in this embodiment, the audio recommendation model can always be in a state of continuous learning, that is, the model parameters can be adjusted according to each user's gesture operation to make the model output more in line with the needs of the current user. That is, after each gesture operation by the user, the model parameters in the audio recommendation model can be adjusted according to the information of the gesture operation and the information of the audio operated by the gesture operation. In this way, accurate recommendations through the audio recommendation model can be achieved, and the user experience can be further improved.
[0138] After the target operation is performed, the operation result of the target operation can be played and / or displayed through the audio radio station. For example, the recommended audio is played and the relevant information of the audio is displayed, etc.
[0139] Through the above process, the interaction between the user and the audio radio station in the online playback state is realized. However, it is not limited to this. In the offline playback state, the user can still interact with the audio radio station, as described below.
[0140] When the above process is applied to other user passive business scenarios, the related processing of gesture operations, the processing of audio-related data and the processing of audio recommendation models can all be applied to other forms of user operations on the current business object, processing of business object data and processing of business object recommendation models.
[0141] Step S310: when it is determined to switch the audio radio station from the online play state to the offline play state according to the network state change information, the audio in the first audio set downloaded through the audio radio station is obtained from the local cache.
[0142] As mentioned above, the audio in the first audio set is pre-cached locally and is used for playing when the audio station is in an offline playing state.
[0143] When the solution of this embodiment is applied to other user passive business scenarios, this step can be implemented as follows: when it is determined to switch the business execution in the user passive business scenario from an online state to an offline state based on network status change information, the business objects in the first business object set are obtained from the local cache.
[0144] Step S312: Switch the audio in the second audio set currently being played online by the audio radio station to the audio in the first audio set, and play it offline through the audio radio station.
[0145] As a result, seamless audio switching is achieved when the audio radio station changes from an online playback state to an offline playback state when the network state changes.
[0146] When the solution of this embodiment is applied to other user passive business scenarios, this step can be implemented as: switching the business objects in the second business object set executed in the online state to the business objects in the first business object set, and executing the business objects in the first business object set in the offline state; wherein, the business objects in the first business object set and the business objects in the second business object set satisfy the business execution continuity rule, and the business execution continuity rule is used to indicate that multiple business objects are executed in a time sequence.
[0147] Step S314: receiving a user's gesture operation for the currently playing audio through the audio radio's playback interface; if the gesture operation matches a preset operation, determining a target operation corresponding to the preset operation; executing the target operation according to information of the currently playing audio, and playing and / or displaying the operation result of the target operation through the audio radio.
[0148] The execution of this step can refer to the description of the aforementioned steps S304-S308, but unlike the aforementioned steps, the currently playing audio in this step is the audio in the first audio set played offline, and correspondingly, the playback interface of the audio radio station is also the playback interface of the audio played offline.
[0149] Through this step, the audio radio station can interact with the user in the offline playback state.
[0150] Step S316: Locally store the gesture operation information and the audio information; after determining that the audio radio station switches from the offline playback state to the online playback state, upload the locally stored gesture operation information and the audio information, so that the server side adjusts the model parameters in the audio recommendation model according to the gesture operation information and the audio information.
[0151] Because the operations in step S314 are all performed in the offline playback state, unlike the direct uploading of relevant data and information to the server in the online playback state, the gesture operation information and audio information in the offline playback state need to be stored locally first, and after the connection with the server is restored, that is, after the audio radio station is restored to the online playback state, it is uploaded to the server to adjust the model parameters in the audio recommendation model.
[0152] In this way, even if the user's gesture operation is performed in the offline playback state, it can also affect the subsequent audio recommendations and improve the user experience.
[0153] Through the above process, the interaction between the user and the audio radio station in the offline playback state is realized.
[0154] Subsequently, when the audio station is restored from the offline playback state to the online playback state, in addition to uploading the above-mentioned gesture operation information and audio information in the offline playback state, the online playback of the audio in the second audio set is also restored. Then, the process can return to step S302 and continue until the user exits or closes the audio station.
[0155] When the solution of this embodiment is applied to other user passive business scenarios, this step can be implemented as follows: if the operation is an operation of a business object in the first business object set performed by the user in an offline state, the information of the operation and the information of the business object are locally stored; after determining that the business execution is switched from an offline state back to an online state, the locally stored information of the operation and the information of the business object are uploaded, so that the server side adjusts the model parameters in the business object recommendation model according to the information of the operation and the information of the business object.
[0156] The following is an example of an operation on a music station to illustrate the above process. The timing of the process is as follows: Figure 4F shown.
[0157] Figure 4FIn the example, the client is set in a terminal device such as a mobile phone or an IPAD, and can generally be a music radio APP or an application APP with a music radio function. The server, algorithm model and music library can be set in one or more servers according to their magnitude, or can also be set in the terminal device where the client is located. In this example, setting in the server is taken as an example.
[0158] Depend on Figure 4F It can be seen that when the music radio station is in an online playback state, when the user performs a gesture operation on the currently playing music A, the behavioral data of a series of user behaviors corresponding to the gesture operation (including behavioral data generated based on information about the user's gesture operation and information about the currently playing music A) will be collected by the client; the behavioral data will be converted by the server to generate structured data; then, the structured data will be output to the algorithm model, which is a scoring model in this example, to perform scoring for the current round (for ease of description, it is set to the first round of calculation and scoring in this example); after the first round of calculation and scoring, the algorithm model outputs a scoring ranking; the music library recommends and recalls music obtained from the music type source (music resource library) based on the scoring ranking to form a recommended music pool; because musical works usually involve copyright issues, the music in the recommended music pool can be filtered first to exclude music that cannot be played by the current music radio station to form a recommended music pool. Figure 4F The model shown in the output shows the music after the pre-condition filtering; in addition, for music platforms, users are generally distinguished, such as paying users, non-paying users, member users, non-member users, etc. Based on this, users can be authenticated to obtain user authority information; further, based on the user's authority information, the music after the first filtering is filtered again to ensure that the music recommended to the current user is music that can be consumed by the user; then, these music are played through the music radio station to recommend music consumption. So far, the music recommendation and consumption for the current round of the current gesture operation are completed.
[0159] Furthermore, the user can continue to operate the currently recommended music and trigger the next round of music recommendation and consumption. Figure 4F As shown in , users can give positive feedback on the recommended music they are currently consuming, such as expressing their liking for the current music by swiping left, or give negative feedback, such as expressing their dislike for the current music by swiping right. In this example, the left swipe not only expresses their liking for the current music, but also indicates the execution of the collection operation; the right swipe not only expresses their dislike for the current music, but also indicates the execution of the song switching operation. The behavioral data generated by this operation will still be collected by the client and handed over to the server for data conversion into structured data, and then input into the algorithm model for subsequent operations. To distinguish it from the previous operation, Figure 4FThe data generated by this operation will be directly fed back to the machine learning link to achieve continuous learning and improvement of the algorithm model. The output results of each learning and improved algorithm model will be transmitted to the recommended music pool for more accurate recommendations.
[0160] At the same time, in order to achieve seamless audio switching when switching between online and offline playback states, part of the music in the music station needs to be cached locally, so relevant parameters need to be set in advance. This setting can be set by the user or by the default setting of the music station. Figure 4F As shown in , the "offline duration presetting" is performed on the client in the online playback state, but it is not limited to this. Other parameters such as the radio station type (such as travel radio, running radio, yoga radio, etc.) of the music you want to cache can also be set. Of course, the radio station type information can also be obtained by the client or server when playing without presetting.
[0161] Based on this, in the online playback state, in addition to the music radio playing music online, after user authentication (i.e., based on the user's permission information, the music after the first filtering is filtered again), the server will use cache control according to the pre-set offline cache parameters, including but not limited to the offline duration, and select a part of the music from the authenticated music according to appropriate rules and download it to the client. The client caches this part of the music locally to recommend it to the user when offline.
[0162] When the music station switches from the online playback state to the offline playback state, the client recommends the locally cached music to the user offline, forming the recommended music consumption in the offline playback state. The user can also give positive feedback to the current music consumed offline, such as expressing that he likes the current music by sliding left, or give negative feedback, such as expressing that he does not like the current music by sliding right. Similar to the online playback state, in this example, the left-slide operation in the offline playback state not only expresses that he likes the current music, but also indicates the execution of the collection operation; the right-slide operation not only expresses that he does not like the current music, but also indicates the execution of the song switching operation. The behavior data formed by this operation will first be cached locally to form a local record. After the network status changes and the music station is restored from the offline playback state to the online playback state, the server synchronizes the data online according to the network status request of the client, converts the behavior data in the local record into structured data, and then inputs it into the algorithm model for subsequent operations. In Figure 4F, the data formed by this operation is directly synchronized to the machine learning link to realize the continuous learning and improvement of the algorithm model. The results of the output of the algorithm model after each learning and improvement will be transmitted to the recommended music pool for more accurate recommendations.
[0163] Through this example, by caching offline recommended content in advance according to pre-set or default parameters, when the network status is good, the user uses the radio to consume recommended music content while also downloading (caching) new recommended music content according to the settings. Once the network status is poor, a seamless playback switching connection is formed within the music radio station, and the user will not be disturbed by the sudden poor network status, and the user can basically achieve unconscious switching.
[0164] The music content cached offline is different from the music content played online. Unlike the "local music" in the prior art, which is content that users have listened to many times or even get tired of, the method in this example allows the music station to play brand new music content even in the offline playback state, and users can provide feedback on their preferences or intentions for the music content. Therefore, through interaction with the music station, both the content played online and the content cached offline are in line with the user's preferences, further improving the user experience.
[0165] The service object switching method of this embodiment can be executed by any appropriate electronic device, including but not limited to: a server, a mobile terminal (such as a tablet computer, a mobile phone, etc.) and a PC, etc.
[0166] Embodiment 5
[0167] Reference Figure 5 , shows a structural block diagram of a business object switching device according to Embodiment 5 of the present invention.
[0168] The business object switching device of this embodiment includes: an acquisition module 402, which is used to obtain business objects in a first business object set from a local cache when it is determined that the business execution in a user passive business scenario is switched from an online state to an offline state based on network status change information; a switching module 404, which switches the business objects in a second business object set executed in an online state to business objects in the first business object set, and executes the business objects in the first business object set in an offline state; wherein the business objects in the first business object set and the business objects in the second business object set satisfy a business execution continuity rule, and the business execution continuity rule is used to indicate that multiple business objects are executed in a time sequence.
[0169] The business object switching device of this embodiment is used to implement the corresponding business object switching processing methods in the aforementioned multiple method embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be repeated here. In addition, the functional implementation of each module in the business object switching device of this embodiment can refer to the description of the corresponding parts in the aforementioned method embodiments, which will not be repeated here.
[0170] Embodiment 5
[0171] Reference Figure 5 , shows a structural block diagram of a business object switching device according to Embodiment 5 of the present invention.
[0172] The business object switching device of this embodiment includes: an acquisition module 502, which is used to obtain business objects in a first business object set from a local cache when it is determined that the business execution in a user passive business scenario is switched from an online state to an offline state based on network status change information; a switching module 504, which is used to switch the business objects in a second business object set executed in an online state to the business objects in the first business object set, and execute the business objects in the first business object set in an offline state; wherein the business objects in the first business object set and the business objects in the second business object set satisfy a business execution continuity rule, and the business execution continuity rule is used to indicate that multiple business objects are executed in a time sequence.
[0173] Optionally, the business object switching device of this embodiment further includes: a cache module 506, which is used to obtain the business objects in the first business object set from at least one server or cloud and cache them locally before the acquisition module 502 obtains the business objects in the first business object set from the local cache.
[0174] Optionally, the server includes multiple servers, and the multiple servers are located in different geographical areas; the cache module 506 is used to obtain the business objects in the first business object set from the multiple servers located in different geographical areas through the central server and cache them locally.
[0175] Optionally, the switching module 504 is further used to switch the business objects in the first business object set currently executed in the offline state back to the business objects in the second business object set if it is determined to switch the business execution from the offline state to the online state according to the network state change information.
[0176] Optionally, the business object switching device of this embodiment also includes: an update module 508, which is used to determine that the number of executed business objects in the first business object set meets a first set threshold after the business execution is switched from an offline state to an online state, and then update the business objects in the first business object set; or, if it is determined that the business execution is continuously in an online state for more than a second set threshold, then update the business objects in the first business object set after adding the business objects in the first business object set to the second business object set.
[0177] Optionally, the updating module 508 uses the unexecuted business objects in the second business object set to update the business objects in the first business object set.
[0178] Optionally, the business object switching device of this embodiment also includes: a receiving module 510, which is used to receive the user's operation on the current business object through the business interface in the user's passive business scenario; a determination module 512, which is used to determine the target operation corresponding to the preset operation if the operation matches the preset operation; and an execution module 514, which is used to execute the target operation according to the information of the business object and feedback the operation result of the target operation.
[0179] Optionally, the preset operation includes a first sliding operation in a first direction and a second sliding operation in a second direction, and the first direction and the second direction are different directions such as opposite directions; a determination module 512 is used to determine that the target operation is a recommended operation based on the current business object if the operation matches the first sliding operation; if the operation matches the second sliding operation, determine that the target operation is a counter-recommendation operation based on the current business object.
[0180] Optionally, the determination module 512 is used to determine that the target operation is a recommendation operation based on the current business object and a collection operation on the current business object if the operation matches the first sliding operation; if the operation matches the second sliding operation, determine that the target operation is a counter-recommendation operation based on the current business object and a switch operation on the current business object.
[0181] Optionally, when the target operation includes the anti-recommendation operation, the execution module 514 is used to generate structured data based on the information of the operation and the information of the business object; input the structured data into a business object recommendation model corresponding to the operating user of the operation, and output user preference data based on the business object recommendation model; according to the user preference data, filter the business objects to be recommended to obtain the filtered business objects to be recommended.
[0182] Optionally, the execution module 514 is further configured to, after obtaining the filtered business objects to be recommended, filter the filtered business objects to be recommended again according to the permission information of the operating user to obtain the business objects matching the permission information.
[0183] Optionally, the business object switching device of this embodiment further includes: an adjustment module 516, which is used to adjust the model parameters in the business object recommendation model according to the information of the operation and the information of the business object.
[0184] Optionally, if the operation is an operation of a business object in the first business object set performed by the user in an offline state, the adjustment module 516 is used to locally store information about the operation and information about the business object; after determining that the business execution is switched from an offline state back to an online state, upload the locally stored information about the operation and information about the business object, so that the server side adjusts the model parameters in the business object recommendation model according to the information about the operation and the information about the business object.
[0185] Optionally, when the user passive service scenario is an audio radio scenario, the acquisition module 502 is used to: when it is determined to switch the audio radio from an online playback state to an offline playback state based on network status change information, obtain the audio in the first audio set downloaded through the audio radio from the local cache; the switching module 504 is used to switch the audio in the second audio set currently played online by the audio radio to the audio in the first audio set, and perform offline playback through the audio radio; wherein the audio in the first audio set and the audio in the second audio set satisfy a playback continuity rule, and the playback continuity rule is used to indicate that multiple audios are played in a time sequence.
[0186] Optionally, the audio in the first audio set and the audio in the second audio set are audio played successively in time sequence according to a preset playing rule.
[0187] Optionally, the user passive business scenario includes at least one of the following: an audio radio scenario, a video radio scenario, an Internet of Things scenario, a passive social scenario, a passive e-commerce business scenario, and a business object evaluation scenario.
[0188] The business object switching device of this embodiment is used to implement the corresponding business object switching processing methods in the aforementioned multiple method embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be repeated here. In addition, the functional implementation of each module in the business object switching device of this embodiment can refer to the description of the corresponding parts in the aforementioned method embodiments, which will not be repeated here.
[0189] Embodiment 7
[0190] Reference Figure 7 , shows a schematic diagram of the structure of an electronic device according to Embodiment 7 of the present invention. The specific embodiment of the present invention does not limit the specific implementation of the electronic device.
[0191] like Figure 7As shown, the electronic device may include: a processor (processor) 602 , a communication interface (Communications Interface) 604 , a memory (memory) 606 , and a communication bus 608 .
[0192] in:
[0193] The processor 602 , the communication interface 604 , and the memory 606 communicate with each other via a communication bus 608 .
[0194] The communication interface 604 is used to communicate with other electronic devices such as terminal devices or servers.
[0195] The processor 602 is used to execute the program 610, and specifically can execute the relevant steps in the above-mentioned business object switching method embodiment.
[0196] Specifically, the program 610 may include program codes, which include computer operation instructions.
[0197] The processor 602 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiment of the present invention. The one or more processors included in the electronic device may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.
[0198] The memory 606 is used to store the program 610. The memory 606 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0199] The program 610 can be specifically used to enable the processor 602 to execute any of the business object switching methods in the aforementioned embodiments 1 to 5.
[0200] The specific implementation of each step in program 610 can refer to the corresponding description of the corresponding steps and units in the above-mentioned business object switching method embodiment, which will not be repeated here. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the above-described devices and modules can refer to the corresponding process description in the above-mentioned method embodiment, which will not be repeated here.
[0201] Through the electronic device of this embodiment, the business object set to be executed is divided into a first business object set and a second business object set, wherein the first business object set is pre-cached locally, and when the business execution in the business scenario switches from an online state to an offline state and cannot continue to be executed online, the business objects in the pre-cached first business object set can be obtained from the local cache for offline execution. Because the business objects in the first business object set and the business objects in the second business object set meet the business execution continuity rules and there are no overlapping business objects, the switching of business objects will not affect the business execution, achieving a seamless switching of online and offline business objects that is not affected by network changes and imperceptible to users.
[0202] It should be pointed out that, according to the needs of implementation, the various components / steps described in the embodiments of the present invention can be split into more components / steps, or two or more components / steps or partial operations of components / steps can be combined into new components / steps to achieve the purpose of the embodiments of the present invention.
[0203] The above-described method according to an embodiment of the present invention may be implemented in hardware, firmware, or may be implemented as software or computer code that may be stored in a recording medium (such as a CD ROM, RAM, floppy disk, hard disk, or magneto-optical disk), or may be implemented as a computer code originally stored in a remote recording medium or a non-temporary machine-readable medium downloaded through a network and to be stored in a local recording medium, so that the method described herein may be stored in such software processing on a recording medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware (such as an AS IC or FPGA). It is understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component (e.g., RAM, ROM, flash memory, etc.) that may store or receive software or computer code, and when the software or computer code is accessed and executed by a computer, a processor, or hardware, the business object switching method described herein is implemented. In addition, when a general-purpose computer accesses the code for implementing the business object switching method shown herein, the execution of the code converts the general-purpose computer into a dedicated computer for executing the business object switching method shown herein.
[0204] Those of ordinary skill in the art will appreciate that the units and method steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the embodiments of the present invention.
[0205] The above implementation methods are only used to illustrate the embodiments of the present invention, and are not limitations of the embodiments of the present invention. Ordinary technicians in the relevant technical field may make various changes and modifications without departing from the spirit and scope of the embodiments of the present invention. Therefore, all equivalent technical solutions also belong to the scope of the embodiments of the present invention. The patent protection scope of the embodiments of the present invention should be defined by the claims.
Claims
1. A business object switching method, characterized in that: include: Dividing the business objects to be executed into a first business object set and a second business object set; When it is determined that the service execution in the user passive service scenario is switched from the online state to the offline state according to the network state change information, the service objects in the first service object set are obtained from the local cache; Switching the business objects in the second business object set executed in an online state to the business objects in the first business object set, and executing the business objects in the first business object set in an offline state; The business objects in the first business object set and the business objects in the second business object set do not overlap with each other and satisfy a business execution continuity rule, wherein the business execution continuity rule is used to indicate that the multiple business objects are executed in a time sequence; The method further includes: if it is determined according to the network status change information that the service execution is switched from the offline state to the online state, switching the service objects in the first service object set currently executed in the offline state back to the service objects in the second service object set; The method also includes: after switching the business execution from an offline state back to an online state, if it is determined that the number of business objects that have been executed in the first business object set meets a first set threshold, the business objects in the first business object set are updated; or, if it is determined that the business execution has been continuously in an online state for more than a second set threshold, after adding the business objects in the first business object set to the second business object set, the business objects in the first business object set are updated.
2. The method according to claim 1, characterized in that Before acquiring the business objects in the first business object set from the local cache, the method further includes: The business objects in the first business object set are obtained from at least one server or cloud and cached locally.
3. The method according to claim 2, characterized in that The server comprises a plurality of servers, and the plurality of servers are located in different geographical areas; The obtaining the business objects in the first business object set from at least one server and caching them locally includes: The business objects in the first business object set are obtained from a plurality of servers located in different geographical areas through a central server and cached locally.
4. The method according to claim 1, characterized in that: The updating of the business objects in the first business object set includes: The business objects in the first business object set are updated using the business objects in the second business object set that have not been executed.
5. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: Receiving a user's operation on a current business object through a business interface in the user's passive business scenario; If the operation matches the preset operation, determining the target operation corresponding to the preset operation; The target operation is executed according to the information of the business object, and the operation result of the target operation is fed back.
6. The method according to claim 5, characterized in that The preset operation includes a first sliding operation in a first direction and a second sliding operation in a second direction, wherein the first direction and the second direction are opposite directions; If the operation matches the preset operation, determining a target operation corresponding to the preset operation includes: If the operation matches the first sliding operation, determining that the target operation is a recommended operation based on the current business object; If the operation matches the second sliding operation, the target operation is determined to be a counter-recommendation operation based on the current business object.
7. The method according to claim 6, characterized in that If the operation matches the first sliding operation, determining that the target operation is a recommendation operation based on the current business object and a collection operation on the current business object; If the operation matches the second sliding operation, the target operation is determined to be a counter-recommendation operation based on the current business object and a switching operation on the current business object.
8. The method according to claim 6, characterized in that When the target operation includes the anti-recommendation operation, The performing the target operation according to the information of the business object includes: generating structured data according to the information of the operation and the information of the business object; The structured data is input into a business object recommendation model corresponding to the operating user of the operation, and the business object recommendation model outputs the user preference data; based on the user preference data, the business objects to be recommended are filtered to obtain the filtered business objects to be recommended.
9. The method according to claim 8, characterized in that After obtaining the filtered business objects to be recommended, the method further includes: According to the permission information of the operating user, the filtered business objects to be recommended are filtered again to obtain business objects matching the permission information.
10. The method according to claim 8, characterized in that The method further comprises: According to the information of the operation and the information of the business object, the model parameters in the business object recommendation model are adjusted.
11. The method according to claim 10, characterized in that If the operation is an operation of a business object in the first business object set performed by the user in an offline state, adjusting the model parameters in the business object recommendation model according to information about the operation and information about the business object includes: Locally storing the operation information and the business object information; After determining that the business execution switches from an offline state back to an online state, the locally stored information of the operation and the business object is uploaded so that the server adjusts the model parameters in the business object recommendation model according to the information of the operation and the business object.
12. The method according to claim 1, characterized in that When the user passive service scenario is an audio radio scenario, The method of obtaining a service object in a first service object set from a local cache when it is determined to switch a service execution in a user passive service scenario from an online state to an offline state according to the network state change information includes: obtaining audio in a first audio set downloaded through the audio radio station from a local cache when it is determined to switch an audio radio station from an online playback state to an offline playback state according to the network state change information; The step of switching the business objects in the second business object set executed in the online state to the business objects in the first business object set, and performing business execution in the first business object set in the offline state includes: switching the audio in the second audio set currently played online by the audio radio station to the audio in the first audio set, and playing it offline through the audio radio station; The audio in the first audio set and the audio in the second audio set do not overlap with each other and satisfy a playback continuity rule, where the playback continuity rule is used to indicate that multiple audios are played in a time sequence.
13. The method according to claim 12, characterized in that The audio in the first audio set and the audio in the second audio set are audio that are played successively in time sequence according to a preset playing rule.
14. The method according to claim 1, characterized in that The user passive business scenario includes at least one of the following: an audio radio scenario, a video radio scenario, an Internet of Things scenario, a passive social scenario, a passive e-commerce business scenario, and a business object evaluation scenario.
15. A business object switching device, characterized in that: include: A division module, used for dividing the business objects to be executed into a first business object set and a second business object set; An acquisition module, configured to acquire a business object in the first business object set from a local cache when it is determined that the business execution in the user passive business scenario is switched from an online state to an offline state according to the network state change information; A switching module, used to switch the business objects in the second business object set executed in an online state to the business objects in the first business object set, and execute the business objects in the first business object set in an offline state; The business objects in the first business object set and the business objects in the second business object set do not overlap with each other and satisfy a business execution continuity rule, wherein the business execution continuity rule is used to indicate that the multiple business objects are executed in a time sequence; The switching module is further configured to switch the business objects in the first business object set currently executed in the offline state back to the business objects in the second business object set if it is determined to switch the business execution from the offline state to the online state according to the network state change information; An update module is used to update the business objects in the first business object set if it is determined that the number of business objects executed in the first business object set meets a first set threshold after the business execution is switched from an offline state to an online state; or, if it is determined that the business execution has been continuously in an online state for more than a second set threshold, update the business objects in the first business object set after adding the business objects in the first business object set to the second business object set.
16. An electronic device, comprising: A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform an operation corresponding to the business object switching method according to any one of claims 1 to 14.
17. A computer storage medium having a computer program stored thereon, wherein when the program is executed by a processor, the business object switching method according to any one of claims 1 to 14 is implemented.
Citation Information
Patent Citations
Recommendation method for audio information and server
CN106168958A
Driver client offline service method, driver client and related system
CN106231110A
Data manipulation method with double modes in mobile ERP system and ERP system
CN106355358A
Information recommendation method and device
CN107193831A
Electronic book reading processing method, terminal device and computer storage medium
CN107370814A
