Audio downloading method and device, equipment and storage medium

By batch querying undownloaded audio in audio player and adding it to the download list, the lag problem during batch downloads is solved, achieving more efficient download task processing and a smoother user experience.

CN119676230APending Publication Date: 2025-03-21GUANGZHOU KUGOU COMP TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411801562.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-09
Publication Date
2025-03-21

AI Technical Summary

Technical Problem

In an audio player, when the user selects a large amount of audio to perform batch downloads, the audio player needs to consume a lot of time to query the download status of the audio, resulting in stuttering in the processing of the download task.

Method used

By receiving batch downloaded audio collection instructions, batch query and filter undownloaded audio, get the undownloaded audio collection and add it to the download list. According to the download progress of the download engine, add the audio from the download list to the download engine in turn.

Benefits of technology

Reduces the time-consuming query of download status, quickly adds undownloaded audio to the download list, reduces the processing of batch download tasks, and improves the efficiency and user experience of batch downloads.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119676230A_ABST
    Figure CN119676230A_ABST
Patent Text Reader

Abstract

The invention discloses an audio downloading method and device, equipment and a storage medium, and belongs to the field of Internet. The method comprises the following steps: in response to a received instruction of downloading a first audio set in batches, querying and screening undownloaded audios in the first audio set in batches to obtain a second audio set; the first audio set comprises at least two audios; the second audio set comprises at least one undownloaded audio in the first audio set; adding the second audio set to a downloading list; according to the downloading progress of the audios in the downloading engine, a group of audios in the downloading list are sequentially added to the downloading engine, and each group of audios comprises at least one audio. According to the method, the downloading task processing efficiency during batch audio downloading can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of the Internet, and in particular to a method, device, equipment and storage medium for downloading audio. Background Art

[0002] In the audio player, users can select multiple audio files for batch downloading.

[0003] In the related art, when a user selects multiple audios to perform a batch download operation, the audio player will query one by one whether the multiple audios selected by the user have been downloaded. If the i-th audio has been downloaded, the i-th audio is deleted from the selected list, and the i+1-th audio in the selected list is continuously queried. After all the audios in the selected list are traversed, the remaining audios in the selected list are added to the download list for downloading.

[0004] When a user selects a large amount of audio (for example, 10,000 songs) for batch downloading, due to the large number of audios, the audio player needs to consume a lot of time to query the download status of the audios, resulting in a lag in the process of adding the audios to the download list. Summary of the invention

[0005] The present application provides an audio downloading method, device, equipment and storage medium, which can improve the download task processing efficiency when downloading audio in batches. The technical solution is as follows:

[0006] According to one aspect of the present application, a method for downloading audio is provided, the method comprising:

[0007] In response to receiving an instruction to batch download a first audio set, batch query and filter the audios that have not been downloaded in the first audio set to obtain a second audio set; the first audio set includes at least two audios; the second audio set includes at least one audio that has not been downloaded in the first audio set;

[0008] adding the second audio collection to a download list;

[0009] According to the download progress of the audio in the download engine, a group of audio in the download list is added to the download engine in sequence, and the group of audio includes at least one audio.

[0010] According to another aspect of the present application, there is provided an audio downloading device, the device comprising:

[0011] A query module, configured to, in response to receiving an instruction to batch download a first audio set, batch query and filter audios that have not been downloaded in the first audio set to obtain a second audio set; the first audio set includes at least two audios; the second audio set includes at least one audio that has not been downloaded in the first audio set;

[0012] A list module, used for adding the second audio set to a download list;

[0013] The engine module is used to add a group of audio in the download list to the download engine in sequence according to the download progress of the audio in the download engine, and the group of audio includes at least one audio.

[0014] According to another aspect of the present application, a computer device is provided, which includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the audio downloading method described above.

[0015] According to another aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by a processor to implement the audio downloading method as described above.

[0016] According to another aspect of the present application, a computer program product or computer program is provided, the computer program product or computer program including computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the audio downloading method provided in various optional implementations of the above aspects.

[0017] The beneficial effects of the technical solution provided by this application include at least:

[0018] When downloading audio in the first audio set in batches, the audio player can batch query the download status of all audio in the first audio set, filter out the audio that has been downloaded or is being downloaded, retain the audio that has not been downloaded, and add the second audio set that has not been downloaded to the download list to wait for download. When the user needs to download a large amount of audio, batch query can greatly reduce the time spent on querying the download status, quickly add the audio that has not been downloaded to the download list, reduce the processing jam of the batch download task, provide users with a smoother batch download experience, and improve the efficiency of batch download. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0020] Figure 1 is a schematic diagram of the structure of a computer system provided by an exemplary embodiment of the present application;

[0021] Figure 2 is a flowchart of a method for downloading audio provided by an exemplary embodiment of the present application;

[0022] Figure 3 is a flowchart of a method for downloading audio provided by an exemplary embodiment of the present application;

[0023] Figure 4 is a flowchart of a method for downloading audio provided by an exemplary embodiment of the present application;

[0024] Figure 5 is a flowchart of a method for downloading audio provided by an exemplary embodiment of the present application;

[0025] Figure 6 is a flowchart of a method for downloading audio provided by an exemplary embodiment of the present application;

[0026] Figure 7 It is a structural schematic diagram of an audio downloading device provided by an exemplary embodiment of the present application;

[0027] Figure 8 It is a structural diagram of a computer device provided by an exemplary embodiment of the present application.

[0028] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application. DETAILED DESCRIPTION

[0029] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0030] Figure 1 A schematic diagram of a computer system provided by an exemplary embodiment of the present application is shown, and the computer system may include a terminal 101 and a server 103 .

[0031] Exemplarily, the audio download method shown in the embodiment of the present application can be applied in a terminal, and the terminal 101 runs an application 102 that supports the audio playback function. The terminal may include a mobile phone, a tablet computer, a notebook computer, a laptop computer, a desktop computer, an all-in-one computer, an Internet of Things device, an intelligent robot workstation, a television, a set-top box, smart glasses, a smart watch, a digital camera, an MP4 playback device, an MP5 playback device, a learning machine, a point-reading machine, an electronic paper book, an electronic dictionary, a vehicle-mounted device, a virtual reality (VR) playback device or an augmented reality (AR) playback device, etc.

[0032] Exemplarily, the audio download method provided in the present application can be executed by a client in the terminal. The client is a client of an application that supports an audio playback function. For example, the application may include at least one of the following: an audio application, an audio player, a video application, a short video application, a social application, a shopping application, a local service application, a live broadcast application, an information application, a browser, and a game application.

[0033] The terminal 101 includes a first memory and a first processor. The first memory stores an audio download program; the audio download program is called and executed by the first processor to implement the audio download method provided in the present application. The first memory may include but is not limited to the following: Random Access Memory (RAM), Read Only Memory (ROM), Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (EPROM), and Electric Erasable Programmable Read-Only Memory (EEPROM).

[0034] The first processor may be composed of one or more integrated circuit chips. Optionally, the first processor may be a general-purpose processor, such as a central processing unit (CPU) or a network processor (NP). Optionally, the first processor may implement the audio download method provided by the present application by running a program or code.

[0035] In an optional embodiment, the terminal 101 and the server 103 may be connected to each other via a wired or wireless network.

[0036] The server 103 is used to provide background services for the application of the terminal 101. Optionally, the server 103 undertakes the main computing work and the terminal 101 undertakes the secondary computing work; or, the server 103 undertakes the secondary computing work and the terminal 101 undertakes the main computing work; or, the server 103 and the terminal 101 adopt a distributed computing architecture to perform collaborative computing.

[0037] The server 103 may be a single server, or a server cluster consisting of multiple servers, or a cloud computing service center.

[0038] Optionally, the server 103 includes a second memory and a second processor. The second memory stores an audio download program; the audio download program is called by the second processor to implement the audio download method provided in the present application. Optionally, the second memory may include but is not limited to the following: RAM, ROM, PROM, EPROM, EEPROM. Optionally, the second processor may be a general-purpose processor, such as a CPU or NP.

[0039] Taking the example of an audio player running on a terminal, a user can select at least two audios in the audio player for batch downloading. After receiving the batch download instruction of at least two audios (also called a first audio set or a selected list), the audio player batch queries the audio database to see whether these audios have been downloaded, queries the download engine to see whether these audios are being downloaded, filters out the downloaded and downloading audios, and adds the remaining undownloaded audios to the download list to wait for downloading. The audio player will add the audios in the download list to the download engine one by one for downloading. After the download engine completes the download of one audio, the audio player will add the next audio in the download list to the download engine until all the audios in the download list are downloaded.

[0040] Figure 2 FIG. 1 is a flow chart of a method for downloading audio provided by an exemplary embodiment of the present application. The method can be used for Figure 1 The terminal shown in FIG.

[0041] Step 210: In response to receiving an instruction to batch download the first audio set, batch query and filter the audios that have not been downloaded in the first audio set to obtain a second audio set; the first audio set includes at least two audios; the second audio set includes at least one audio that has not been downloaded in the first audio set.

[0042] Optionally, the method is executed by a client on the terminal, and the client is a client of an application that supports an audio playback function. For example, the application may include at least one of the following: an audio application, an audio player, a video application, a short video application, a social application, a shopping application, a local service application, a live broadcast application, an information application, a browser, and a game application.

[0043] Alternatively, the method can also be performed by a mini-program. A mini-program is a lightweight application based on a specific application platform, which has independent application functions, but does not require users to download and install, and can be directly opened and used on the application platform. Mini-programs are usually implemented using technologies such as HTML5, JavaScript, and CSS, and have the characteristics of being lightweight, fast, and easy to use. Mini-programs are miniature applications designed to perform a single function or a set of simple functions within a closed framework, and are usually embedded in a browser's web page or in a specific application platform.

[0044] The embodiment of the present application takes the method executed by the client of the audio player as an example for explanation. Optionally, a download engine is provided in the audio player, or the download engine is provided by other applications.

[0045] In an optional embodiment, the audio player may display an audio list interface, in which multiple candidate audios are displayed; in response to receiving an operation in which a user selects at least two candidate audios, a batch download control is displayed; in response to receiving a trigger operation of the batch download control, it is determined that an instruction to batch download a first audio set is received, and the first audio set includes at least two candidate audios selected by the user.

[0046] Optionally, the method provided in the present application can be used to improve download efficiency when downloading a large amount of audio. For example, when an instruction to batch download a first audio set is received, and the number of audios in the first audio set is greater than a first threshold, the audios in the first audio set that have been downloaded or are being downloaded are batch queried, and the audios that have been downloaded or are being downloaded are filtered out from the first audio set to obtain a second audio set that has not been downloaded.

[0047] Batch query can obtain the query results corresponding to all audio in the first audio set through one query. For example, a search formula is generated based on the audio identifiers of all audio in the first audio set, and the search formula is used to search the audio in the first audio set in an audio database; the audio database stores all audio that has been downloaded by the terminal. In the scenario of batch download, batch query can reduce the time spent on confirming the audio download status and improve the efficiency of adding audio to the download list.

[0048] Step 220: Add the second audio set to the download list.

[0049] The second audio set includes audio that has not been downloaded and is selected from the first audio set, and the second audio set may include at least one audio. Exemplarily, the first audio set includes audio selected by the user to be downloaded, and the second audio set includes audio that is actually added to the download list.

[0050] Exemplary, the audio player can display a download list, and the download list is used to display the audio waiting to be downloaded and / or being downloaded. After the audio player screens out the audio that has been downloaded and is being downloaded in the first audio set, the remaining second audio set that has not been downloaded is added to the download list.

[0051] For example, the audio player may display an audio list interface, in which multiple candidate audios are displayed; in response to receiving an operation in which a user selects at least two candidate audios, a batch download control is displayed; in response to receiving a trigger operation of the batch download control, the candidate audios that have not been downloaded from the at least two candidate audios selected by the user are added to the download list. The audio list interface may also include a download list control, in response to receiving a trigger operation of the download list control, a download list interface is displayed, in which the candidate audios that have not been downloaded from the at least two candidate audios selected by the user are displayed.

[0052] Optionally, a download status indicator of the audio is displayed in the download list, and the download status indicator is used to indicate the download status of the audio. The download status includes at least one of the following: waiting for download, downloading, paused download, and download failed.

[0053] Exemplarily, the audio player adds the audio sequence in the second audio set to the download list in accordance with a preset download order. The second audio set is displayed in the download list in the order of downloading. The preset download order may include at least one of the following: the order in which the user selects the audio in the second audio set, the sorting of the first letters of the audio names, the sorting order of the audio displayed in the audio list interface, the size of the audio file, the audio upload time, the first letter sorting of the audio author, and the first letter sorting of the audio uploader. For example, in the audio list interface, the audio player records the selection order when the user selects multiple candidate audios, and adds the audio that has not been downloaded from the multiple candidate audios to the download list in accordance with the selection order.

[0054] Exemplarily, the user can also manually adjust the download order of the audio in the download list; for example, the user can select the first audio in the download list and drag the first audio to a position after the second audio so that the first audio is downloaded after the second audio.

[0055] Step 230: According to the download progress of the audio in the download engine, a group of audio in the download list is added to the download engine in sequence, wherein the group of audio includes at least one audio.

[0056] The download engine is used to download audio. The download engine receives the audio to be downloaded (the audio in the download list) indicated by the audio player, downloads the audio to be downloaded into the audio database for storage, and feeds back the download result to the audio player. The download engine can be provided by the audio player or by other applications.

[0057] In the related art, the audio player adds all the audio in the download list to the download engine and waits for the download engine to download the audio; the download engine determines the download order of the audio in the download engine based on a preset algorithm. In the method of the related art, in the batch download scenario, it takes a long time to add a large amount of audio to be downloaded to the download engine, and the audio download order is determined by the preset algorithm of the download engine. The user cannot specify the download order of each audio in the batch download scenario.

[0058] In response to the problems existing in the related technology, the method provided by the present application is that the audio player will add the audio in the download list to the download engine in an orderly manner. Only when the previous batch of audio is downloaded successfully will the next batch of audio in the download list be added to the download engine, thereby reducing the time required to add audio to the download engine at a single time, and being able to control the download order of each audio in the batch download scenario.

[0059] Exemplarily, the audio player adds the first group of audio in the download list to the download engine, and the download engine downloads the first group of audio and feeds back the download result to the audio player. After the first group of audio is successfully downloaded, the audio player continues to add the second group of audio to the download engine, and thus, the audio in the download list is sequentially added to the download engine for download.

[0060] Exemplarily, a group of audio includes at least one audio, and the number of audio in a group of audio does not exceed the number of audio that the download engine supports to download simultaneously. For example, if the download engine supports up to two audio to download simultaneously, the number of audio included in a group of audio does not exceed two.

[0061] Optionally, a group of audios can be one audio. That is, the download engine downloads one audio each time, and the audio player adds the next audio in the download list to the download engine after the download engine completes downloading of one audio.

[0062] In this way, after the audio is added to the download engine, it can be downloaded immediately without calculating the download order, which reduces the processing load of the download engine and improves the download efficiency of the download engine. In addition, in this way, the audio player can control the download order of each audio in the batch download scenario, allowing the user to specify the download order of each audio in the batch download scenario. The audio player can add the audio to the download engine for download in sequence according to the download order specified by the user.

[0063] In summary, the method provided by this embodiment, when downloading audio in the first audio set in batches, the audio player can batch query the download status of all audio in the first audio set, filter out the audio that has been downloaded or is being downloaded, retain the audio that has not been downloaded, and add the second audio set that has not been downloaded to the download list to wait for download. When the user needs to download a large amount of audio, batch query can greatly reduce the time spent on querying the download status, quickly add the audio that has not been downloaded to the download list, reduce the processing jam of the batch download task, provide users with a smoother batch download experience, and improve the efficiency of batch download.

[0064] An exemplary embodiment of batch querying the download status of the first audio set is given below.

[0065] Figure 3 FIG. 1 is a flow chart of a method for downloading audio provided by an exemplary embodiment of the present application. The method can be used for Figure 1 The terminal shown. Based on Figure 2 In the illustrated embodiment, step 210 includes steps 211 to 213 , and / or step 230 includes steps 231 and 232 .

[0066] Step 211: Receive an instruction for batch downloading a first audio collection.

[0067] Optionally, the audio player may receive an operation for batch downloading the first audio set and generate a corresponding download instruction. The audio player may also receive a download instruction for the first audio set sent by other applications. The audio player may also receive a natural language command for batch downloading the first audio set and identify the natural language command to obtain the download instruction.

[0068] Step 212: batch query the audio in the first audio set in the downloaded audio database to obtain the downloaded audio in the first audio set; and / or batch query the audio in the first audio set in the download engine to obtain the downloading audio in the first audio set.

[0069] Exemplarily, the audio player is provided with an audio database, the audio database is used to store local audio downloaded by the terminal, and the audio database may store audio identifiers of the downloaded audio. The audio player may call a batch query interface of the audio database to batch query the audio database for audio included in the first audio set.

[0070] Exemplarily, the audio player can call the batch query interface of the downloaded audio database to query the audio identifiers to be queried of all audios in the first audio set to obtain a first query result; the first query result includes the audio identifiers to be queried contained in the audio database; and the audio corresponding to the audio identifier to be queried is determined as the downloaded audio.

[0071] Exemplarily, the audio player may also instruct the download engine to feedback the audio being downloaded, or the audio player may store the running status of the download engine, the running status including the audio being downloaded by the download engine; the audio player batch queries the audio in the first audio set in the audio being downloaded, and obtains the audio being downloaded in the first audio set.

[0072] Alternatively, the audio player batch queries the first audio set in the download list to obtain the audio being downloaded, the audio waiting to be downloaded, and the audio pausing to be downloaded in the first audio set, so as to filter out the audio that has been added to the download list in the first audio set.

[0073] Step 213: Filter out the downloaded audio and / or the audio being downloaded in the first audio set to obtain a second audio set.

[0074] Optionally, downloaded audio, downloading audio, waiting to be downloaded audio and paused download audio in the first audio set are filtered out to obtain a second audio set.

[0075] Step 220: Add the second audio set to the download list.

[0076] Optionally, if the first audio set corresponds to a user-selected order, the audios in the second audio set are added to the download list in the order in which the user selected the first audio set. If the first audio set does not correspond to a user-selected order (for example, the user directly selects all songs in a certain album), the audios in the second audio set are added to the download list in the order in which they are displayed in the audio list interface.

[0077] In an optional embodiment, the audio player adds the second audio set to the download list according to the user preference order; wherein the user preference order includes at least one of the following: audio type preference order, song singer preference order, and priority downloading of songs corresponding to singers already existing in the audio database.

[0078] For example, if the audio player is currently logged in with a first user account, the audio player can obtain the user preferences of the first user account: the proportion of each audio type in the audio downloaded by the first user account, the proportion of each audio type in the audio played in the history of the first user account, the singers of songs followed by the first user account, the proportion of each song singer in the songs played in the history of the first user account, the proportion of each song singer in the audio downloaded by the first user, etc. A user preference order is generated according to the user preference, and then the download order of each audio in the second audio set is determined according to the user preference order.

[0079] Taking the user preference order including the audio type preference order as an example, the audio player can obtain the audio type preference order in the order from most to least according to the number of audios corresponding to each audio type in the audio database, and the audio database is used to store downloaded audios; according to the audio type of the audio in the second audio set, the second audio set is added to the download list according to the audio type preference order.

[0080] For example, if the number of audios of the first audio type in the audio database is 1000, the number of audios of the second audio type is 50, and the number of audios of the third audio type is 800, then the preferred order of audio types that can be obtained is: first audio type, third audio type, second audio type. Then the audio player can add the second audio set to the download list in the order of first audio type first, third audio type second, second audio type third, and other audio types last, wherein multiple audios of the same audio type can be sorted by the first letter of the audio name, or by the size of the audio file from small to large.

[0081] Taking the example of the user preference order including giving priority to downloading songs corresponding to singers already existing in the audio database, the audio player can obtain the singer preference order according to the order from most to least number of audios corresponding to the singers of the songs in the audio database; and add the second audio set to the download list according to the singer preference order based on the singers of the audios in the second audio set.

[0082] For example, if the number of audios of the first singer in the audio database is 6, the number of audios of the second singer is 80, and the number of audios of the third singer is 1, then the order of audio type preference that can be obtained is: the second singer, the first singer, and the third singer. Then the audio player can add the second audio set to the download list in the order of the second singer first, the first singer second, the third singer third, and other singers last.

[0083] Furthermore, the audio player may also display type labels corresponding to the audio types in the download list in the download list. For example, when the download list includes audios of the first audio type, the second audio type, and the third audio type, the first type label corresponding to the first audio type, the second type label corresponding to the second audio type, and the third type label corresponding to the third audio type may be displayed in the download list; the user may indicate the download order of the audios in the download list by selecting a type label or adjusting the arrangement order of the type labels.

[0084] Exemplarily, the download list may also display a type label corresponding to at least one audio type; at least one audio type corresponds to the audio in the download list. Then:

[0085] 1) In response to receiving an operation of selecting a first type tag corresponding to a first audio type, the audio player may adjust the download order of the audios in the download list according to the priority order of the audios of the first audio type.

[0086] When the user selects a single type tag, the audio player places the audio of the audio type corresponding to the type tag at the top and gives priority to downloading the audio of this audio type.

[0087] 2) The audio player can adjust the download order of the audio in the download list in response to receiving an operation of simultaneously selecting a first type tag corresponding to a first audio type and a second type tag corresponding to a second audio type, in an order that prioritizes the first type of audio; the first type of audio is audio that belongs to both the first audio type and the second audio type.

[0088] When the user selects multiple type tags, the audio player will put the audios of the multiple audio types corresponding to the multiple type tags on top and give priority to downloading the audios of the multiple audio types.

[0089] In addition, the audio player can also sort the audio types corresponding to the multiple type tags after the first type of audio in the order in which the user selects the multiple type tags.

[0090] For example, the user selects the first type tag corresponding to the first audio type and the second type tag corresponding to the second audio type in sequence; then the audio player can put the first audio that belongs to both the first audio type and the second audio type at the top of the download list, arrange the second audio that only belongs to the first audio type after the first audio, arrange the third audio that only belongs to the second audio type after the second audio, and arrange the remaining audio after the third audio.

[0091] 3) The audio player may adjust the download order of the audio in the download list according to the arrangement order of at least one audio type indicated by the sorting operation in response to receiving a sorting operation for sorting at least one type tag corresponding to at least one audio type.

[0092] Exemplarily, the user can also adjust the order of multiple type tags in the download list, for example, the download list displays the first type tag, the second type tag, and the third type tag in default order. The user can select one of the type tags and drag it to move the display position of the type tag in the download list, for example, drag the second type tag before the first type tag to get the order of the second type tag, the first type tag, and the third type tag; then the audio player can adjust the order of the audio in the download list according to the adjusted type tag order, give priority to displaying the audio of the second audio type corresponding to the second type, then displaying the audio of the first audio type corresponding to the first type tag, and finally displaying the audio of the third audio type corresponding to the third type tag.

[0093] Step 231: Add the i-th audio in the download list to the download engine according to the download order in the download list, and display the i-th audio in the download list as being downloaded; i is a positive integer.

[0094] Taking the download list including n audios as an example, the audio player will add individual audios to the download engine for download in the order of the audios in the download list, and continue to add the next audio after the previous audio is downloaded.

[0095] Exemplarily, after being added to the download engine, the status of the audio in the download list is updated from waiting to be downloaded to being downloaded.

[0096] Step 232: When the download engine successfully downloads the i-th audio, delete the i-th audio from the download list; set i equal to i+1, and repeat step 231.

[0097] After successfully downloading the i-th audio, the download engine will feedback the download result to the audio player. The audio player will delete the i-th audio from the download list, and then check whether there is any audio waiting to be downloaded in the download list. If so, the i+1-th audio will be added to the download engine; if not, the download will be stopped.

[0098] For example, when the download engine successfully downloads the nth audio, the nth audio is deleted from the download list; when the audio does not exist in the download list, the download is terminated.

[0099] In summary, the method provided in this embodiment, by calling the batch query interface provided by the audio database, quickly queries the download status of batch downloaded audio, reduces the time spent on adding audio to the download list, and improves the task processing efficiency of batch downloading.

[0100] The method provided in this embodiment can add audio to the download engine individually according to the download order in the download list in the batch download scenario, control the download engine to download songs according to the download order in the download list, and enable users to adjust the download order of audio for batch download to meet the diverse needs of users.

[0101] The method provided in this embodiment is that in a batch downloading scenario, users usually download a large number of audios at one time, for example, 10,000 audios. It would be very complicated for users to manually adjust the download order of each audio. Therefore, this embodiment provides a method, which displays the type labels corresponding to the audio types already in the list in the download list, so that users can quickly adjust the download order of each audio in the download list by selecting the type label or adjusting the arrangement order of the type label, thereby improving the efficiency of users in adjusting the audio download order.

[0102] Exemplary, the audio player can add the next audio in the download list to the download engine after the download engine completes the download of an audio. In this way, when the user needs to edit the audio in the download list, the audio in the download list can be edited without the download engine.

[0103] Take the delete operation as an example. Figure 4 FIG. 1 is a flow chart of a method for downloading audio provided by an exemplary embodiment of the present application. The method can be used for Figure 1 The terminal shown. Based on Figure 2 In the illustrated embodiment, the method may further include steps 240 to 250 .

[0104] Step 240: Receive a deletion instruction for the first audio in the download list.

[0105] Exemplarily, in response to receiving an operation of selecting a first audio in a download list, the audio player displays a delete control; in response to receiving an operation of triggering the delete control, the audio player generates a delete instruction for the first audio.

[0106] Alternatively, the audio player may receive a natural language command to delete the first audio, and identify the natural language command to obtain a deletion instruction.

[0107] Step 250: When the first audio is not downloaded, delete the first audio from the download list.

[0108] Exemplarily, in response to receiving a delete instruction for the first audio in the download list, the download status of the first audio is obtained, and the download status includes one of the following: waiting for download (i.e., not downloaded), downloading, paused download, and download failed. If the first audio is waiting for download or download fails, the download engine is not currently processing the download task of the audio, and the audio player can directly delete the audio from the download list without interacting with the download engine for instructions; the processing logic of the user editing the download list is simplified, and the editing efficiency of the download list is improved.

[0109] Step 260: When the first audio is in a downloading state, a request to delete the first audio is sent to the download engine; in response to the downloading audio deleting the first audio, the first audio is deleted from the download list.

[0110] If the first audio is in the downloading state or the paused downloading state, there is a download task for the audio in the download engine. The audio player needs to instruct the download engine to delete the download task of the first audio. After the download engine successfully deletes it, the first audio in the download list is deleted.

[0111] In summary, the method provided in this embodiment is that since the audio in the download list is added to the download engine individually, only the audio being downloaded exists in the download engine; when the user needs to edit the download list, if the edited audio is not in the downloading state, the editing operation can be processed directly in the download list without going through the download engine, thereby improving the editing efficiency of the download list.

[0112] An embodiment of downloading songs using the method provided by the present application is provided.

[0113] Figure 5 FIG. 1 is a flow chart of a method for downloading audio provided by an exemplary embodiment of the present application. The method can be used for Figure 1 The terminal shown in FIG.

[0114] Step 301, the user selects songs in the audio player and starts downloading songs in batches.

[0115] Step 302, the audio player batch queries whether these songs have been downloaded / are being downloaded; if the songs include songs that have been downloaded / are being downloaded, they are filtered out and the remaining songs after the filtering are added to the download list; if not, all the songs are added to the download list.

[0116] Step 303: Add an audio in the download list to the download engine for download. The download engine downloads the song and feeds back a download completion instruction after the download is complete.

[0117] Step 304, after the audio player finishes downloading the current song, it checks whether there are any songs in the download list that have not been downloaded. If there are, step 303 is executed to continue adding the next song to the download engine for download; if not, the download is terminated.

[0118] To sum up, the method provided in the embodiment of the present application can quickly generate a download list by batch querying the download status of songs in the scenario of batch downloading of songs, thereby reducing the waiting time of the download process, providing users with a smoother batch download experience, and improving batch download efficiency.

[0119] In an optional embodiment, different audio types have their own corresponding download engines, and at least two download engines support synchronous downloading of audio.

[0120] Figure 6 FIG. 1 is a flow chart of a method for downloading audio provided by an exemplary embodiment of the present application. The method can be used for Figure 1 The terminal shown. Based on Figure 2 In the illustrated embodiment, step 220 includes step 221 , and step 230 includes step 233 and step 234 .

[0121] Step 210, in response to receiving an instruction to batch download the first audio set, batch query and filter the audios that have not been downloaded in the first audio set to obtain a second audio set; the first audio set includes at least two audios; the second audio set includes at least one audio that has not been downloaded in the first audio set.

[0122] Exemplarily, the second audio set may include audios of multiple audio types, and different audio types may be downloaded using different download engines. For example, the audio type may refer to an audio provider, and different audio providers use their own download engines for downloading. Alternatively, the audio type may refer to an audio format, and audios of different formats are downloaded using their own download engines. Alternatively, the audio type may refer to sound quality, member permissions, etc. For example, high-quality audio is downloaded using an independent download engine, or member audio is downloaded using the member's download engine.

[0123] The audio in the second audio set can be divided into multiple sub-sets according to the audio type. Similarly, in the download list, respective sub-lists are set for different audio types, and the sub-sets in the second audio set are added to the sub-lists of the corresponding audio types, so that the audio can be synchronously batch downloaded using the download engine corresponding to the audio type, thereby improving the audio download efficiency.

[0124] Step 221: Add the audio in the second audio set to the sublist of the corresponding audio type in the download list according to the audio type.

[0125] Exemplarily, the second audio set is split into multiple subsets according to different audio types, for example, the audio of the first audio type is split into a first subset. A sublist corresponding to each audio type is set in the download list, each sublist corresponds to the download engine of the audio type, and is used to add audio to the download engine. For example, a first sublist corresponding to the first audio type is set in the download list, the first sublist corresponds to the first download engine of the first audio type, and the first sublist is used to add audio to the first download engine. Then, the first subset corresponding to the first audio type in the second audio set is added to the first sublist corresponding to the first audio type.

[0126] Exemplarily, the audio player may display a download list, which includes at least one sublist corresponding to each audio type. After filtering out the audio that has been downloaded and is being downloaded in the first audio set, the audio player adds the remaining second audio set that has not been downloaded to the corresponding sublist according to their respective audio types. Optionally, the download list may only display the sublist with audio to be downloaded, and not display the sublist with no audio to be downloaded; if all the audio in a sublist is downloaded, the sublist is undisplayed in the download list.

[0127] For example, an audio player may display an audio list interface, in which multiple candidate audios are displayed; in response to receiving an operation in which a user selects at least two candidate audios, a batch download control is displayed; in response to receiving a trigger operation of the batch download control, the candidate audios that have not been downloaded from the at least two candidate audios selected by the user are added to the download list. The audio list interface may also include a download list control, in response to receiving a trigger operation of the download list control, a download list interface is displayed. In the case where the candidate audio selected by the user includes a first audio type and a second audio type, a first sublist corresponding to the first audio type and a second sublist corresponding to the second audio type are displayed in the download list interface, and the candidate audios selected by the user are displayed in their respective sublists according to the corresponding audio types.

[0128] Step 233, after the audio download of the first download engine is completed, the second audio is obtained from the download list according to the first audio type corresponding to the first download engine.

[0129] Step 234, adding the second audio to the first download engine.

[0130] Exemplarily, multiple download engines corresponding to different audio types can download audio synchronously. The download list can traverse all sublists, add the first audio of each sublist to the corresponding download engine, and synchronously download audio of different audio types in the second audio set.

[0131] When the audio download of a download engine is completed, the audio player reads the corresponding sublist in the download list according to the audio type corresponding to the download engine, and adds the first audio in the sublist to the download engine to continue downloading. If the sublist is empty, the download of the audio of this audio type is stopped.

[0132] Exemplarily, take the first sublist corresponding to the first audio type as an example: according to the download order in the first sublist, add the i-th audio in the first sublist to the first download engine, and display the i-th audio in the first sublist as being downloaded; i is a positive integer. The first download engine is the download engine corresponding to the first audio type. When the first download engine successfully downloads the i-th audio, delete the i-th audio from the first sublist; let i be i+1, and continue to obtain the i+1th audio from the first sublist and add it to the first download engine.

[0133] For example, the first sublist includes n audios, and the audio player will add the individual audios to the first download engine for download in the order of the audios in the first sublist, and continue to add the next audio after the previous audio is downloaded. Exemplarily, after being added to the first download engine, the status of the audio in the first sublist is updated from waiting for download to downloading.

[0134] After successfully downloading the i-th audio, the first download engine feeds back the download result to the audio player. The audio player deletes the i-th audio in the first sublist, and then checks whether there is any audio waiting to be downloaded in the first sublist. If so, the i+1-th audio is added to the first download engine; if not, the download is stopped.

[0135] For example, when the first download engine successfully downloads the nth audio, the nth audio is deleted from the first sublist; when there is no audio in the first sublist, the download is terminated.

[0136] In an optional embodiment, the audio player may provide at least two download engines that support synchronous downloading. The audio player may also use at least two download engines to synchronously download the audio in the first sublist when the user indicates to download the first sublist first. For example, the audio player receives the operation of the user selecting the first sublist and triggering the priority download control, and adds at least two audios in the first sublist to at least two download engines respectively; in response to the successful download of the audio of the first download engine in the at least two download engines, the audio player continues to add the next audio in the first sublist to the first download engine until all the audio in the first sublist is downloaded (there is no audio to be downloaded in the first sublist), and then continues to download the audio in other sublists. In this way, the audio in the sublist desired by the user can be quickly downloaded to meet the user's diverse needs for batch downloading.

[0137] In summary, the method provided by the embodiment of the present application can classify the audio downloaded in batches according to the audio type, and add the audio of the same audio type to a sublist of the download list, so that the user can view and manage the audio downloaded in batches. Different sublists use different download engines for downloading, and multiple download engines can download synchronously to improve the efficiency of batch downloading of audio. The download engines download the audio in the download order of their respective sublists, and the user can adjust the download order of the audio in the sublists.

[0138] It should be noted that before collecting relevant data of users and during the process of collecting relevant data of users, this application can display a prompt interface, pop-up window or output voice prompt information, and the prompt interface, pop-up window or voice prompt information is used to prompt the user that its relevant data is currently being collected, so that this application only starts to execute the relevant steps of obtaining relevant data of users after obtaining the confirmation operation issued by the user to the prompt interface or pop-up window, otherwise (that is, when the confirmation operation issued by the user to the prompt interface or pop-up window is not obtained), the relevant steps of obtaining relevant data of users are terminated, that is, the relevant data of users are not obtained. In other words, all user data collected by this application are collected with the consent and authorization of the user, and the collection, use and processing of relevant user data need to comply with the relevant laws, regulations and standards of relevant countries and regions.

[0139] It should be noted that the sequence of the method steps provided in the embodiments of the present application can be appropriately adjusted, and the steps can be increased or decreased accordingly according to the circumstances. Any technician familiar with the technical field can easily think of the changed methods within the technical scope disclosed in the present application, and they should be included in the protection scope of the present application, so they will not be repeated here.

[0140] Figure 7 1 is a schematic diagram of a structure of an audio downloading device provided by an exemplary embodiment of the present application. The device is logged in with a first account; the device includes:

[0141] The query module 502 is configured to, in response to receiving an instruction to batch download a first audio set, batch query and filter audios that have not been downloaded in the first audio set to obtain a second audio set; the first audio set includes at least two audios; the second audio set includes at least one audio that has not been downloaded in the first audio set;

[0142] List module 503, used for adding the second audio set to a download list;

[0143] The engine module 504 is used to add a group of audio in the download list to the download engine in sequence according to the download progress of the audio in the download engine, and the group of audio includes at least one audio.

[0144] In an optional embodiment, the device further includes:

[0145] An interaction module 501 is used to receive an instruction for batch downloading a first audio set;

[0146] The query module 502 is used to batch query the audio in the first audio set in the downloaded audio database to obtain the downloaded audio in the first audio set; and / or batch query the audio in the first audio set in the download engine to obtain the downloading audio in the first audio set;

[0147] The query module 502 is used to filter out the downloaded audio and / or the downloading audio in the first audio set to obtain the second audio set.

[0148] In an optional embodiment, the query module 502 is used to call the batch query interface of the downloaded audio database to query the audio identifiers to be queried of all audios in the first audio set to obtain a first query result; the first query result includes the audio identifiers to be queried contained in the audio database;

[0149] The query module 502 is configured to determine the audio corresponding to the to-be-queried audio identifier as the downloaded audio.

[0150] In an optional embodiment, the engine module 504 is used to add the i-th audio in the download list to the download engine according to the download order in the download list, and display the i-th audio in the download list as being downloaded; i is a positive integer;

[0151] The engine module 504 is used to delete the i-th audio from the download list when the download engine successfully downloads the i-th audio; set i equal to i+1 and repeat the previous step.

[0152] In an optional embodiment, the download list includes n audios, where n is a positive integer and i is an integer not greater than n;

[0153] The engine module 504 is configured to delete the nth audio from the download list when the download engine successfully downloads the nth audio;

[0154] If there is no audio in the download list, the download is terminated.

[0155] In an optional embodiment, the device further includes:

[0156] Interaction module 501, used for receiving a deletion instruction for the first audio in the download list;

[0157] The list module 503 is used to delete the first audio from the download list when the first audio is not downloaded;

[0158] The list module 503 is used to send a request to the download engine to delete the first audio when the first audio is in a downloading state; in response to the downloading audio deleting the first audio, delete the first audio from the download list.

[0159] In an optional embodiment, different audio types have their own corresponding download engines, and at least two download engines support synchronous downloading of audio;

[0160] The engine module 504 is used to obtain the second audio in the download list according to the first audio type corresponding to the first download engine after the audio download of the first download engine is completed;

[0161] The engine module 504 is used to add the second audio to the first download engine.

[0162] In an optional embodiment, the download list includes sublists corresponding to different audio types;

[0163] The list module 503 is used to add the audio in the second audio set to the sublist of the corresponding audio type in the download list according to the audio type;

[0164] The engine module 504 is configured to obtain the second audio that is at the first position in the first sublist corresponding to the first audio type.

[0165] In an optional embodiment, the list module 503 is used to add the second audio set to the download list according to the user preference order;

[0166] The user preference order includes at least one of the following: audio type preference order, song singer preference order, and priority downloading of songs corresponding to singers that already exist in the audio database.

[0167] In an optional embodiment, the user preference order includes an audio type preference order;

[0168] The list module 503 is used to obtain the audio type preference order according to the order from most to least of the number of audios corresponding to each audio type in the audio database, and the audio database is used to store the downloaded audios;

[0169] The list module 503 is used to add the second audio set to the download list according to the audio type of the audio in the second audio set and in the audio type preference order.

[0170] In an optional embodiment, the download list displays a type label corresponding to at least one audio type; the at least one audio type corresponds to the audio in the download list; and the list module 503 is used to perform at least one of the following:

[0171] In response to receiving an operation of selecting a first type tag corresponding to the first audio type, adjusting the download order of the audios in the download list according to the priority order of the audios of the first audio type;

[0172] In response to receiving an operation of selecting a first type tag corresponding to the first audio type and a second type tag corresponding to the second audio type at the same time, adjusting the download order of the audio in the download list in an order that prioritizes the first type of audio; the first type of audio is audio that belongs to both the first audio type and the second audio type;

[0173] In response to receiving a sorting operation for sorting at least one type tag corresponding to the at least one audio type, the downloading order of the audio in the download list is adjusted according to the arrangement order of the at least one audio type indicated by the sorting operation.

[0174] It should be noted that the audio downloading device provided in the above embodiment is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the audio downloading device provided in the above embodiment and the audio downloading method embodiment belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.

[0175] The embodiment of the present application also provides a computer device, which includes: a processor and a memory, wherein at least one instruction, at least one program, code set or instruction set is stored in the memory, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by the processor to implement the audio download method provided by the above-mentioned method embodiments. The computer device can be implemented as a terminal.

[0176] For example, Figure 8It is a structural diagram of a computer device provided by an exemplary embodiment of the present application.

[0177] Typically, the computer device 1700 includes a processor 1701 and a memory 1702 .

[0178] The processor 1701 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1701 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 1701 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 1701 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1701 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.

[0179] The memory 1702 may include one or more computer-readable storage media, which may be non-transitory. The memory 1702 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 1702 is used to store at least one instruction, which is used to be executed by the processor 1701 to implement the audio download method provided in the method embodiment of the present application.

[0180] In some embodiments, the computer device 1700 may also optionally include: a peripheral device interface 1703 and at least one peripheral device. The processor 1701, the memory 1702 and the peripheral device interface 1703 may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface 1703 via a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 1704, a display screen 1705, a camera assembly 1706, an audio circuit 1707 and a power supply 1708.

[0181] The peripheral device interface 1703 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 1701 and the memory 1702. In some embodiments, the processor 1701, the memory 1702, and the peripheral device interface 1703 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1701, the memory 1702, and the peripheral device interface 1703 may be implemented on a separate chip or circuit board, which is not limited in the embodiments of the present application.

[0182] The radio frequency circuit 1704 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 1704 communicates with the communication network and other communication devices through electromagnetic signals. The radio frequency circuit 1704 converts the electrical signal into an electromagnetic signal for transmission, or converts the received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1704 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and the like. The radio frequency circuit 1704 can communicate with other computer devices through at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: the World Wide Web, a metropolitan area network, an intranet, various generations of mobile communication networks (2G, 3G, 4G and 5G), a wireless local area network and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 1704 may also include circuits related to NFC (Near Field Communication), which is not limited in this application.

[0183] The display screen 1705 is used to display a UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 1705 is a touch display screen, the display screen 1705 also has the ability to collect touch signals on the surface or above the surface of the display screen 1705. The touch signal can be input to the processor 1701 as a control signal for processing. At this time, the display screen 1705 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the display screen 1705 can be one, and the front panel of the computer device 1700 is set; in other embodiments, the display screen 1705 can be at least two, which are respectively set on different surfaces of the computer device 1700 or are folded; in some other embodiments, the display screen 1705 can be a flexible display screen, which is set on the curved surface or folded surface of the computer device 1700. Even, the display screen 1705 can also be set to a non-rectangular irregular shape, that is, a special-shaped screen. The display screen 1705 can be made of materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).

[0184] The camera assembly 1706 is used to capture images or videos. Optionally, the camera assembly 1706 includes a front camera and a rear camera. Typically, the front camera is arranged on the front panel of the computer device 1700, and the rear camera is arranged on the back of the computer device. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, the fusion of the main camera and the wide-angle camera to realize the panoramic shooting and VR (Virtual Reality) shooting function or other fusion shooting functions. In some embodiments, the camera assembly 1706 may also include a flash. The flash can be a monochrome temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.

[0185] The audio circuit 1707 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them into the processor 1701 for processing, or input them into the radio frequency circuit 1704 to achieve voice communication. For the purpose of stereo acquisition or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the computer device 1700. The microphone may also be an array microphone or an omnidirectional acquisition microphone. The speaker is used to convert the electrical signal from the processor 1701 or the radio frequency circuit 1704 into sound waves. The speaker may be a traditional film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into sound waves inaudible to humans for purposes such as ranging. In some embodiments, the audio circuit 1707 may also include a headphone jack.

[0186] The power supply 1708 is used to power various components in the computer device 1700. The power supply 1708 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 1708 includes a rechargeable battery, the rechargeable battery can be a wired rechargeable battery or a wireless rechargeable battery. A wired rechargeable battery is a battery that is charged through a wired line, and a wireless rechargeable battery is a battery that is charged through a wireless coil. The rechargeable battery can also be used to support fast charging technology.

[0187] In some embodiments, the computer device 1700 further includes one or more sensors 1709 , including but not limited to: an acceleration sensor 1710 , a gyroscope sensor 1711 , a pressure sensor 1712 , an optical sensor 1713 , and a proximity sensor 1714 .

[0188] The acceleration sensor 1710 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the computer device 1700. For example, the acceleration sensor 1710 can be used to detect the components of gravity acceleration on the three coordinate axes. The processor 1701 can control the touch display screen 1705 to display the user interface in a horizontal view or a vertical view according to the gravity acceleration signal collected by the acceleration sensor 1710. The acceleration sensor 1710 can also be used to collect game or user motion data.

[0189] The gyro sensor 1711 can detect the body direction and rotation angle of the computer device 1700, and the gyro sensor 1711 can cooperate with the acceleration sensor 1710 to collect the user's 3D actions on the computer device 1700. The processor 1701 can implement the following functions based on the data collected by the gyro sensor 1711: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.

[0190] The pressure sensor 1712 can be set on the side frame of the computer device 1700 and / or the lower layer of the touch display screen 1705. When the pressure sensor 1712 is set on the side frame of the computer device 1700, it can detect the user's grip signal of the computer device 1700, and the processor 1701 performs left and right hand recognition or shortcut operations according to the grip signal collected by the pressure sensor 1712. When the pressure sensor 1712 is set on the lower layer of the touch display screen 1705, the processor 1701 controls the operability controls on the UI interface according to the user's pressure operation on the touch display screen 1705. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.

[0191] The optical sensor 1713 is used to collect the ambient light intensity. In one embodiment, the processor 1701 can control the display brightness of the touch display screen 1705 according to the ambient light intensity collected by the optical sensor 1713. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 1705 is increased; when the ambient light intensity is low, the display brightness of the touch display screen 1705 is reduced. In another embodiment, the processor 1701 can also dynamically adjust the shooting parameters of the camera assembly 1706 according to the ambient light intensity collected by the optical sensor 1713.

[0192] The proximity sensor 1714, also called a distance sensor, is usually arranged on the front panel of the computer device 1700. The proximity sensor 1714 is used to collect the distance between the user and the front of the computer device 1700. In one embodiment, when the proximity sensor 1714 detects that the distance between the user and the front of the computer device 1700 is gradually decreasing, the processor 1701 controls the touch display screen 1705 to switch from the screen-on state to the screen-off state; when the proximity sensor 1714 detects that the distance between the user and the front of the computer device 1700 is gradually increasing, the processor 1701 controls the touch display screen 1705 to switch from the screen-off state to the screen-on state.

[0193] Those skilled in the art will understand that Figure 8 The structure shown in the figure does not constitute a limitation on the computer device 1700, and the computer device 1700 may include more or less components than shown in the figure, or combine some components, or adopt a different arrangement of components.

[0194] A computer-readable storage medium is also provided in an embodiment of the present application, in which at least one instruction, at least one program, code set or instruction set is stored. When the at least one instruction, at least one program, code set or instruction set is loaded and executed by a processor of a computer device, the audio downloading method provided in the above-mentioned method embodiments is implemented.

[0195] The present application also provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the audio downloading method provided by each of the above method embodiments.

[0196] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned readable storage medium may be a read-only memory, a disk or an optical disk, etc.

[0197] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent switching, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A method for downloading audio, characterized in that: The method comprises: In response to receiving an instruction to batch download a first audio set, batch query and filter the audios that have not been downloaded in the first audio set to obtain a second audio set; the first audio set includes at least two audios; the second audio set includes at least one audio that has not been downloaded in the first audio set; adding the second audio collection to a download list; According to the download progress of the audio in the download engine, all or part of the audio in the download list is added to the download engine in sequence.

2. The method according to claim 1, characterized in that In response to receiving an instruction to batch download the first audio set, batch querying and filtering the audios that have not been downloaded in the first audio set to obtain the second audio set includes: Receiving an instruction to batch download a first audio collection; Batch querying the audio in the first audio set in the downloaded audio database to obtain the downloaded audio in the first audio set; and / or batch querying the audio in the first audio set in the download engine to obtain the downloading audio in the first audio set; Filter out the downloaded audio and / or the downloading audio in the first audio set to obtain the second audio set; The batch query refers to executing a query once to obtain query results for all audios in the first audio set.

3. The method according to claim 2, characterized in that The step of batch-searching the audio files in the first audio set in the downloaded audio database to obtain the downloaded audio files in the first audio set includes: Calling a batch query interface of the downloaded audio database to query the audio identifiers to be queried of all audios in the first audio set to obtain a first query result; the first query result includes the audio identifiers to be queried contained in the audio database; The audio corresponding to the audio identifier to be queried is determined as the downloaded audio.

4. The method according to any one of claims 1 to 3, characterized in that: The step of sequentially adding all or part of the audio in the download list to the download engine according to the download progress of the audio in the download engine includes: According to the download order in the download list, add the i-th audio in the download list to the download engine, and display the i-th audio in the download list as being downloaded; i is a positive integer; When the download engine successfully downloads the i-th audio, delete the i-th audio from the download list; set i equal to i+1, and repeat the previous step.

5. The method according to claim 4, characterized in that The download list includes n audios, where n is a positive integer and i is an integer not greater than n; the method further includes: When the download engine successfully downloads the nth audio, delete the nth audio from the download list; If there is no audio in the download list, the download is terminated.

6. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: Receiving a deletion instruction for the first audio in the download list; When the first audio is in a not downloaded state, deleting the first audio from the download list; In a case where the first audio is in a downloading state, a request for deleting the first audio is sent to the download engine; in response to the downloading audio deleting the first audio, the first audio is deleted from the download list.

7. The method according to any one of claims 1 to 4, characterized in that: Different audio types have their own download engines, and at least two download engines support simultaneous audio downloads; The step of sequentially adding a group of audios in the download list to the download engine according to the download progress of the audios in the download engine comprises: After the audio download of the first download engine is completed, obtaining the second audio in the download list according to the first audio type corresponding to the first download engine; The second audio is added to the first download engine.

8. The method according to claim 7, characterized in that The download list includes sublists corresponding to different audio types; The step of adding the second audio set to the download list comprises: Adding the audios in the second audio set to the sublist of the corresponding audio type in the download list according to the audio type; The acquiring the second audio in the download list comprises: In the first sublist corresponding to the first audio type, obtain the second audio at the first position.

9. The method according to any one of claims 1 to 4, characterized in that: The step of adding the second audio set to the download list comprises: adding the second audio set to the download list according to the user preference order; The user preference order includes at least one of the following: audio type preference order, song singer preference order, and priority downloading of songs corresponding to singers that already exist in the audio database.

10. The method according to claim 9, characterized in that The user preference order includes an audio type preference order; The step of adding the second audio set to the download list according to the user preference order includes: Obtaining the audio type preference order according to the order from most to least of the number of audios corresponding to each audio type in an audio database, wherein the audio database is used to store downloaded audios; According to the audio types of the audios in the second audio set, the second audio set is added to the download list in accordance with the audio type preference order.

11. The method according to claim 10, characterized in that The download list displays a type label corresponding to at least one audio type; the at least one audio type corresponds to the audio in the download list; and the method further includes at least one of the following: In response to receiving an operation of selecting a first type tag corresponding to the first audio type, adjusting the download order of the audios in the download list according to the priority order of the audios of the first audio type; In response to receiving an operation of selecting a first type tag corresponding to the first audio type and a second type tag corresponding to the second audio type at the same time, adjusting the download order of the audio in the download list in an order that prioritizes the first type of audio; the first type of audio is audio that belongs to both the first audio type and the second audio type; In response to receiving a sorting operation for sorting at least one type tag corresponding to the at least one audio type, the downloading order of the audio in the download list is adjusted according to the arrangement order of the at least one audio type indicated by the sorting operation.

12. An audio downloading device, characterized in that: The device comprises: A query module, configured to, in response to receiving an instruction to batch download a first audio set, batch query and filter audios that have not been downloaded in the first audio set to obtain a second audio set; the first audio set includes at least two audios; the second audio set includes at least one audio that has not been downloaded in the first audio set; A list module, used for adding the second audio set to a download list; The engine module is used to add a group of audio in the download list to the download engine in sequence according to the download progress of the audio in the download engine, and the group of audio includes at least one audio.

13. A computer device, characterized in that: The computer device includes a processor and a memory, wherein the memory stores at least one program, and the at least one program is loaded and executed by the processor to implement the audio downloading method as described in any one of claims 1 to 9.

14. A computer-readable storage medium, characterized in that: The readable storage medium stores at least one program, and the at least one program is loaded and executed by a processor to implement the audio downloading method as described in any one of claims 1 to 9.

15. A computer program product, characterized in that The computer program product includes computer instructions, which are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the audio downloading method as described in any one of claims 1 to 9.