Audio playing management method, device and system
By setting task types and priorities in audio playback management, and automatically generating and issuing playlists, the high cost problem of traditional audio playback relying on manual settings is solved, and efficient audio playback management is realized in multi-device scenarios.
Patent Information
- Application Number
- CN202410968555.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-19
- Publication Date
- 2024-11-19
Smart Images

Figure CN118981550A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of audio playback, and in particular to an audio playback management method, an audio playback management device and an audio playback management system. Background Art
[0002] For retail chain stores, store music playback software is essential, and managers are often faced with the problem of thousands of stores needing to play different music at different times. In order to reduce the pressure of task configuration and enable client devices to play audio materials more intelligently, playlists need to be set up in advance.
[0003] Traditional audio playback methods rely on manual settings, sorting each audio and generating a playlist, which has a huge labor cost. However, for scenarios that require multiple playback devices, manually setting each playlist is a huge workload. Therefore, how to provide a method for audio playback management that can slice playback materials based on playback rules and realize audio playback is an urgent problem that technicians in this field need to solve. Summary of the invention
[0004] The purpose of the present invention is to provide an audio playback management method, which can set playback rules, slice and splice audio materials based on the playback rules, generate a play list and send it to a playback device for playback.
[0005] In order to solve the above technical problems, the present invention provides an audio playback management method, comprising:
[0006] Creating a task type, wherein the task type includes a priority and a conflict handling strategy;
[0007] Establishing a task, wherein the task includes task parameters, and the task parameters include task type, task period, playback device, and playback material;
[0008] Obtaining a number of time segments according to the task cycle;
[0009] Traversing the time segments, performing task binding processing on the time segments based on the task type, splicing all the time segments into a complete task chain, inserting the playback material into the complete task chain, and generating a playlist;
[0010] The playlist is sent to the playback device, and the playback device completes audio playback based on the playlist.
[0011] Optionally, the task cycle is a playback time period of the current task, the playback device is a client device that needs to play the current task, and the playback material is an audio file that needs to be played in the current task.
[0012] Optionally, the conflict handling strategy includes at least one of the following:
[0013] Play the first task issued;
[0014] Play the last task issued;
[0015] Play the playback materials of all tasks in the order in which the tasks are issued;
[0016] Customize the playback order and playback time, and play the playback materials of tasks with different priority levels in a superimposed manner based on the playback order and the playback time.
[0017] Optionally, several time segments are obtained according to the task cycle, specifically,
[0018] Obtain tasks for the current date and preset time period according to the identification of the playback device, where each task corresponds to one or more preset time periods;
[0019] The start and end time points of the current date and the start and end time points of the preset time period tasks are arranged in chronological order, and every two adjacent time points are regarded as a minimum time segment, so as to obtain all time segments related to the playback device.
[0020] Optionally, traverse all time segments and perform task binding on the time segments based on the task type, specifically,
[0021] If the current time segment does not contain a task, the current time segment is bound to a default task;
[0022] If the current time segment has one and only one task, the current time segment is bound to the task;
[0023] If there are multiple tasks in the current time segment, the highest priority task is screened according to the priority; if there is only one highest priority task, the highest priority task is bound; if there are multiple highest priority tasks, the binding strategy priority task is selected according to the conflict handling strategy among the multiple highest priority tasks.
[0024] Optionally, after performing task binding processing on the time segments based on the task type, the step further includes:
[0025] Compare adjacent time segments. If two adjacent time segments are bound to the same task, merge the adjacent time segments according to the task unique identifier to form a final complete task chain.
[0026] Optionally, after the current time segment is bound to the task, at least one playback material corresponding to each task is linked according to the binding relationship between the task and the playback material to obtain a playlist including the at least one playback material.
[0027] Optionally, the playback device obtains a playlist, specifically,
[0028] The playback device locates and obtains the playlist of the day at a preset time point, and completes the audio playback of the day based on the playlist of the day.
[0029] The present invention also provides an audio playback management device, comprising:
[0030] A task type creation module, used to create a task type, wherein the task type includes a priority and a conflict handling strategy;
[0031] A task establishment module is used to establish a task, wherein the task includes a task type, a task period, a playback device, and a playback material;
[0032] A time segment generating module, used for generating time segments according to the task cycle;
[0033] A playlist generation module is used to traverse the time segments, perform task binding processing on the time segments based on the task type, splice all the time segments into a complete task chain, insert the play material in the complete task chain, and generate a playlist;
[0034] The playlist sending module is used to send the playlist to the playback device to complete audio playback.
[0035] The present invention also provides an audio playback management system, comprising a server and a client connected to each other for communication;
[0036] The server is used to:
[0037] Call the task type creation module to create a task type;
[0038] Call the task creation module to create a task;
[0039] Call the time segment generation module to generate time segments;
[0040] Traverse all time segments, perform task binding processing on the time segments based on the task type, so that each time segment is bound to a task, and all time segments form a complete task chain, and insert the play material into the complete task chain to generate a play list;
[0041] Send the playlist to the client;
[0042] The client includes a playback device for receiving a playlist and completing audio playback based on the playlist;
[0043] The server generates a playlist that each playback device needs to play on that day, and sends it to the corresponding playback device.
[0044] An audio playback management method provided by the present invention determines playback rules by establishing task types and tasks, sets playback strategies in task types, and defines the priority of tasks and the playback strategies to be executed when playback time conflicts through task types when creating tasks. When determining the playback list, the priorities are compared first, and then tasks with the same priority are sliced and spliced according to the conflict handling strategy to generate a playback list. The playback device can complete the audio playback according to the playback list.
[0045] The present invention also provides an audio playback management device and an audio playback management system, which also have the above-mentioned beneficial effects and will not be described in detail here. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the embodiments of the present invention or the technical solutions of 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 of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0047] Figure 1 A flowchart of an audio playback management method provided by an embodiment of the present invention;
[0048] Figure 2 A structural block diagram of an audio playback management device provided by an embodiment of the present invention;
[0049] Figure 3 This is a structural block diagram of an audio playback management system provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0050] The core of the present invention is to provide an audio playback management method. In the prior art, the traditional audio playback method relies on manual settings to sort each playback audio and generate a playlist, which has a huge labor cost. However, for scenarios that require multiple playback devices, manually setting each playlist is a huge workload.
[0051] The audio playback management method provided by the present invention includes establishing a task type, wherein the task type includes a priority, a conflict handling strategy and a playback cycle; establishing a task, wherein the task includes a task type, a task cycle, a playback device and a playback material; obtaining a number of time segments according to the task cycle; traversing all time segments, and performing task binding processing on the time segments based on the task type, so that each time segment is bound to a task, and all time segments form a complete task chain, and inserting the playback material into the complete task chain to generate a play list; sending the play list to the playback device, and the playback device completes the audio playback based on the play list.
[0052] By establishing task types and task-determined playback rules, setting playback strategies in task types, and defining the task priority and the playback strategy to be executed when playback time conflicts through task types when creating tasks, when determining the playlist, first compare priorities, then slice and splice tasks of the same priority according to the conflict handling strategy to generate a playlist, and the playback device can complete audio playback according to the playlist.
[0053] In order to enable those skilled in the art to better understand the scheme of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0054] Please refer to Figure 1 , Figure 1 The present invention provides a flowchart of an audio playback management method.
[0055] See also Figure 1 In an embodiment of the present invention, the audio playback management method includes:
[0056] S1: Create a task type, where the task type includes a priority and a conflict handling strategy.
[0057] In the embodiment of the present invention, the task cycle is the playback time period of the current task, the playback device is the client device that needs to play the current task, and the playback material is the audio file that needs to be played by the current task. It should be noted that different task types are distinguished by priority. In some implementation cases, a task with a higher priority overrides a task with a lower priority by default.
[0058] Furthermore, the conflict handling strategy includes at least one of the following:
[0059] Play the first task issued;
[0060] Play the last task issued;
[0061] Play the playback materials of all tasks in the order in which the tasks are issued;
[0062] Customize the play order and play time, and play the play materials of different priority tasks in a superimposed manner based on the play order and play time. For example, first play 10 audio tracks or 5 minutes of task priority level 1 or specified audio materials, then play 5 audio tracks or 3 minutes of task priority level 2, then play 3 audio tracks and 1 minute of task priority level 3, etc.
[0063] S2: Establishing a task, wherein the task includes task parameters, and the task parameters include task type, task cycle, playback device, and playback material.
[0064] In an embodiment of the present invention, the task type is used to distinguish the priorities between different tasks. At the same time, for tasks with playback conflicts, the tasks are processed based on pre-set priorities and conflict handling strategies. The task cycle is the time range (preset time period) for task execution, including year, month, day, hour, minute and second, and its code form can be expressed in the following form (year, month, day, hour, minute, second): yyyyMMdd HH:mm:ss-yyyyMMddHH:mm:ss. The playback device represents the unique device identifier of the playback device, which is used to distinguish different playback devices. The playback material is the audio data in the task, and the playback material in each task can be one or more audio data.
[0065] S3: Obtain several time segments according to the task cycle.
[0066] In the embodiment of the present invention, a number of time segments are obtained according to the task cycle, specifically,
[0067] Obtain tasks for the current date and preset time period according to the identification of the playback device, where each task corresponds to one or more preset time periods;
[0068] The start and end time points of the current date (i.e., 00:00 and 23:59) and the start and end time points of the preset time period task are arranged in chronological order, and each two adjacent time points are regarded as a minimum time segment to obtain all time segments related to the playback device.
[0069] S4: traverse the time segments, perform task binding processing on the time segments based on the task type, splice all time segments into a complete task chain, insert playback materials into the complete task chain, and generate a playlist.
[0070] In the embodiment of the present invention, all time segments are traversed, and task binding processing is performed on the time segments based on the task type, specifically,
[0071] If the current time segment does not contain a task, the current time segment is bound to a default task; in the store playback software, chain stores usually set some default playback audios, and some default tasks can be established for these default playback audios. For the blank time segment, a default task can be bound;
[0072] If the current time segment has one and only one task, the current time segment is bound to the task;
[0073] If there are multiple tasks in the current time segment, the highest priority task is filtered according to the priority; if there is only one highest priority task, the highest priority task is bound, and if there are multiple highest priority tasks, the binding strategy priority task is selected according to the conflict handling strategy among the multiple highest priority tasks. This step filters the conflicting tasks by priority, and generates new tasks in combination with the conflict handling strategy to ensure that one time segment is bound to one task, which solves the user's problem of multi-task audio playback management. The problem of multi-task playback conflicts is solved by setting the task priority and conflict handling strategy in advance, reducing the complexity of manual operations and simplifying manual operations in the playlist generation process.
[0074] In the embodiment of the present invention, after performing task binding processing on the time segments based on the task type, the method further includes:
[0075] Compare adjacent time segments. If two adjacent time segments are bound to the same task, merge the adjacent time segments according to the task unique identifier to form a final complete task chain. For a task with the highest playback priority that is cut into multiple adjacent identical tasks by time segments, the identical tasks need to be merged. In some specific implementation cases, after each time segment is bound to a task, compare adjacent time segments. If two adjacent time segments are bound to the same task, merge the two time segments. Each task corresponds to a task unique identifier (task id), and the same ones are used. After the tasks are merged, all time segments form a complete task chain.
[0076] S5: Send the playlist to the playback device, and the playback device completes the audio playback based on the playlist.
[0077] In the embodiment of the present invention, the playback device obtains the play list, specifically,
[0078] The playback device locates and obtains the playlist of the day at a preset time point, and completes the audio playback of the day based on the playlist of the day.
[0079] In an embodiment of the present invention, in addition to actively sending tasks to the playback device, the playback device will regularly pull the latest playlist of the day at dawn every day, that is, the playlist of the day sliced and spliced according to all the task slices of the playback device, to ensure the accuracy of the song playback of the playback device on that day.
[0080] An audio playback management method provided by an embodiment of the present invention determines playback rules by establishing task types and tasks, sets a conflict handling strategy for playing audio in the task type, defines the priority of the task and the conflict handling strategy to be executed when the playback time conflicts when creating a task, and when determining the play list, first compares the priority, then slices and splices the tasks with the same priority according to the conflict handling strategy to generate a play list, and the playback device can complete the audio playback according to the play list. The method disclosed in the embodiment of the present invention introduces a task type, assigns two attributes, priority and conflict handling strategy, to the task type, and defines the playback priority of the task and the playback strategy when the playback time conflicts when creating a task by selecting the task type. The method disclosed in the embodiment of the present invention can solve the user's needs for multi-task playback management and realize the allocation and distribution of multi-task audio resources in a more flexible way.
[0081] At the same time, the embodiment of the present invention adopts the server-side splicing of playback materials to form a playlist, and sends the playlist to each playback device to realize multi-task playback management. At the same time, the playback device can also obtain the playlist of the day in the early morning every day. The embodiment of the present invention completes the slicing and splicing of the playback materials on the server side, thereby solving the problem that the client playback device needs to handle audio playback management, avoiding the loss of the playback device, and ensuring the stability of the playback software to the greatest extent.
[0082] An audio playback management device provided by an embodiment of the present invention is introduced below. The audio playback management device described below and the audio playback management method described above can be referenced to each other.
[0083] Please refer to Figure 2 , Figure 2 This is a structural block diagram of an audio playback management device provided by an embodiment of the present invention. Figure 2 , the audio playback management device may include:
[0084] A task type creation module 100 is used to establish a task type, wherein the task type includes a priority, a conflict handling strategy and a play cycle;
[0085] A task establishment module 200 is used to establish a task, wherein the task includes a task type, a task period, a playback device, and a playback material;
[0086] A time segment generating module 300, for generating time segments;
[0087] The playlist generation module 400 is used to traverse all time segments and perform task binding processing on the time segments based on the task type, so that each time segment is bound to a task, and all time segments form a complete task chain. The task inserts the play material into the complete task chain to generate a playlist;
[0088] The playlist sending module 500 is used to send the playlist to the playing device.
[0089] The audio playback management device of this embodiment is used to implement the aforementioned audio playback management method. Therefore, the specific implementation method of the audio playback management device can be seen in the embodiment part of the audio playback management method in the previous text. For example, the task type creation module 100, the task establishment module 200, the time segment generation module 300, the playlist generation module 400, and the playlist distribution module 500 are respectively used to implement steps S1 to S5 in the above-mentioned audio playback management method. Therefore, its specific implementation method can refer to the description of the corresponding embodiments of each part, which will not be repeated here.
[0090] An audio playback management system provided by an embodiment of the present invention is introduced below. The audio playback management system described below and the audio playback management method and the audio playback management device described above can be referenced to each other.
[0091] Please refer to Figure 3 , Figure 3 This is a structural block diagram of an audio playback management system provided by an embodiment of the present invention.
[0092] Reference Figure 3 , an audio playback management system, comprising a server 11 and a client 12 that are connected to each other for communication, the server 11 and the client 12 implementing the above-mentioned audio playback management method;
[0093] The server 11 is used for:
[0094] Call the task type creation module to create the task type;
[0095] Call the task creation module to create a task;
[0096] Call the time segment generation module to generate time segments;
[0097] Traverse all time segments, perform task binding processing on the time segments based on the task type, so that each time segment is bound to a task, and all time segments form a complete task chain, and insert the play material into the complete task chain to generate a play list;
[0098] Sending a playlist to the client 12;
[0099] The client 11 includes a playback device for receiving a playlist and completing audio playback based on the playlist;
[0100] The server 12 generates a playlist that each playback device needs to play on that day, and sends it to the corresponding playback device.
[0101] The audio playback management system of this embodiment is used to implement the aforementioned audio playback management method. Therefore, the specific implementation method of the audio playback management system can be seen in the embodiment part of the audio playback management method in the previous text. Therefore, its specific implementation method can refer to the description of the corresponding embodiments of each part, which will not be repeated here.
[0102] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0103] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may 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 present invention.
[0104] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0105] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "including a..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0106] The above is a detailed introduction to an audio playback management method, an audio playback management device and an audio playback management system provided by the present invention. This article uses specific examples to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present invention, the present invention can also be improved and modified, and these improvements and modifications also fall within the scope of protection of the claims of the present invention.
Claims
1. An audio playback management method, It is characterized in that include: Creating a task type, wherein the task type includes a priority and a conflict handling strategy; Establishing a task, wherein the task includes task parameters, and the task parameters include task type, task period, playback device, and playback material; Obtaining a number of time segments according to the task cycle; Traversing the time segments, performing task binding processing on the time segments based on the task type, splicing all the time segments into a complete task chain, inserting the playback material into the complete task chain, and generating a playlist; The playlist is sent to the playback device, and the playback device completes audio playback based on the playlist.
2. The audio playback management method according to claim 1, It is characterized in that The task cycle is the playback time period of the current task, the playback device is the client device that needs to play the current task, and the playback material is the audio file that needs to be played in the current task.
3. The audio playback management method according to claim 1, It is characterized in that The conflict handling strategy includes at least one of the following: Play the first task issued; Play the last task issued; Play the playback materials of all tasks in the order in which the tasks are issued; Customize the playback order and playback time, and play the playback materials of tasks with different priority levels in a superimposed manner based on the playback order and the playback time.
4. The audio playback management method according to claim 1, It is characterized in that According to the task cycle, several time segments are obtained, specifically, Obtain tasks for the current date and preset time period according to the identification of the playback device, where each task corresponds to one or more preset time periods; The start and end time points of the current date and the start and end time points of the preset time period tasks are arranged in chronological order, and every two adjacent time points are regarded as a minimum time segment, so as to obtain all time segments related to the playback device.
5. The audio playback management method according to claim 1, It is characterized in that Traverse all time segments and perform task binding on the time segments based on the task type, specifically, If the current time segment does not contain a task, the current time segment is bound to a default task; If the current time segment has one and only one task, the current time segment is bound to the task; If there are multiple tasks in the current time segment, filter the task with the highest priority based on the priority; If there is only one highest priority task, the highest priority task is bound. If there are multiple highest priority tasks, a binding strategy priority task is selected according to the conflict handling strategies among the multiple highest priority tasks.
6. The audio playback management method according to claim 5, It is characterized in that After the task binding process is performed on the time segments based on the task type, the following further comprises: Compare adjacent time segments. If two adjacent time segments are bound to the same task, merge the adjacent time segments according to the task unique identifier to form a final complete task chain.
7. The audio playback management method according to claim 5, It is characterized in that After the current time segment is bound to the task, at least one playback material corresponding to each task is linked according to the binding relationship between the task and the playback material to obtain a playlist including the at least one playback material.
8. The audio playback management method according to claim 1, It is characterized in that The playback device obtains the playlist, specifically, The playback device locates and obtains the playlist of the day at a preset time point, and completes the audio playback of the day based on the playlist of the day.
9. An audio playback management device, It is characterized in that Used to implement the audio playback management method according to any one of claims 1 to 8, the device comprises: A task type creation module, used to create a task type, wherein the task type includes a priority and a conflict handling strategy; A task establishment module is used to establish a task, wherein the task includes a task type, a task period, a playback device, and a playback material; A time segment generating module, used for generating time segments according to the task cycle; A playlist generation module is used to traverse the time segments, perform task binding processing on the time segments based on the task type, splice all the time segments into a complete task chain, insert the play material in the complete task chain, and generate a playlist; The playlist sending module is used to send the playlist to the playback device to complete audio playback.
10. An audio playback management system, It is characterized in that comprising a server and a client connected to each other for communication, wherein the server and the client implement the audio playback management method according to any one of claims 1 to 8; The server is used to: Call the task type creation module to create a task type; Call the task creation module to create a task; Call the time segment generation module to generate time segments; Traverse all time segments, perform task binding processing on the time segments based on the task type, so that each time segment is bound to a task, and all time segments form a complete task chain, and insert the play material into the complete task chain to generate a play list; Send the playlist to the client; The client includes a playback device for receiving a playlist and completing audio playback based on the playlist; The server generates a playlist that each playback device needs to play on that day, and sends it to the corresponding playback device.
Citation Information
Patent Citations
Method and server for operating applications of intelligent terminal and intelligent terminal
CN103347218A
Audio carousel production method and device
CN112217946A
Playing method and related device
CN113987257A
Audio playing method and related device
CN116339672A
