Audio playback method, device, electronic device and storage medium
By connecting a local area network server to a mobile terminal, DSD audio files are automatically synchronized, solving the problem of large storage space usage for DSD audio and achieving high-quality audio playback while optimizing storage space.
Patent Information
- Application Number
- CN202311316682.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-11
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2043-10-11
AI Technical Summary
DSD audio format takes up a lot of storage space, which affects the performance of mobile devices, especially when storing a large number of high-quality audio files.
By connecting to a local area network server and mobile terminals, DSD audio files are automatically synchronized and replaced with high-quality audio, reducing the storage footprint of mobile terminals.
It improves the user experience, reduces the storage space occupied by mobile devices, and enables high-quality audio playback.
Smart Images

Figure CN117395313B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to an audio playback method, device, electronic equipment and storage medium. Background Art
[0002] With the development of digital audio technology, DSD (Direct Stream Digital, DSD) audio provides higher audio fidelity and sound quality experience than traditional audio formats, and is loved by professional audio personnel and high-fidelity audio enthusiasts.
[0003] However, the DSD audio format also has certain disadvantages, one of which is that DSD audio occupies a larger storage space than other audio formats. Taking DSD256 audio files as an example, a DSD256 audio file of about 5 minutes takes up about 400MB of storage space. If a large number of DSD256 audio files are stored in a mobile terminal, it will take up more storage space and affect the performance of the mobile terminal. Summary of the invention
[0004] The present invention provides an audio playback method, device, electronic device and storage medium to reduce the storage space occupied by high-quality audio and improve user experience.
[0005] In a first aspect, an embodiment of the present invention provides an audio playback method, which is executed by a local area network server, and includes:
[0006] If it is determined that the target mobile terminal is connected to the local area network server, then determining a to-be-played audio set that matches the target mobile terminal;
[0007] The DSD audios matching the audio set to be played are sent to the target mobile terminal so that the target mobile terminal plays the audios according to the DSD audios, and the metadata of the DSD audios are sent to the target mobile terminal so that the target mobile terminal updates the metadata of the audio set to be played.
[0008] In a second aspect, an embodiment of the present invention further provides another audio playback method, which is executed by a mobile terminal and includes:
[0009] Establish a communication connection with the LAN server;
[0010] Receive DSD audios that match the current audio set to be played and are sent by a local area network server, and play audios according to each DSD audio;
[0011] If it is determined that the duration of disconnection from the local area network server is greater than or equal to a preset time threshold, each DSD audio is deleted.
[0012] In a third aspect, an embodiment of the present invention further provides an audio playback device, which is deployed in a local area network server, and includes:
[0013] The to-be-played audio set determination module is used to determine the to-be-played audio set matching the target mobile terminal if it is determined that the target mobile terminal is connected to the local area network server;
[0014] The target mobile terminal module is used to send the DSD audio matching the audio set to be played to the target mobile terminal so that the target mobile terminal plays the audio according to each DSD audio, and to send the metadata of each DSD audio to the target mobile terminal so that the target mobile terminal updates the metadata of the audio set to be played.
[0015] In a fourth aspect, an embodiment of the present invention further provides another audio playback device, which is deployed in a mobile terminal and includes:
[0016] A LAN server connection module, used to establish a communication connection with a LAN server;
[0017] An audio playback module, used for receiving DSD audios matching the current audio set to be played sent by the local area network server, and performing audio playback according to each DSD audio;
[0018] The audio deletion module is used to delete each DSD audio if it is determined that the duration of disconnection from the local area network server is greater than or equal to a preset time threshold.
[0019] In a fifth aspect, an embodiment of the present invention further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, an audio playback method as described in any one of the embodiments of the present invention is implemented.
[0020] In a sixth aspect, an embodiment of the present invention further provides a storage medium storing computer executable instructions, wherein the computer executable instructions, when executed by a computer processor, are used to execute the audio playback method as described in any one of the embodiments of the present invention.
[0021] The technical solution of the embodiment of the present invention is that when the target mobile terminal is connected to the local area network server, the target mobile terminal's audio set to be played is confirmed, and the corresponding DSD audio is matched and sent to the target mobile terminal for playing. The method realizes the replacement of audio files from low-quality audio to high-quality audio by automatically connecting the target mobile terminal to the local area network server to synchronize DSD audio, thereby improving the user experience and reducing the storage capacity occupied by the target mobile terminal.
[0022] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. 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 creative work.
[0024] Figure 1 A flowchart of an audio playback method provided in Embodiment 1 of the present invention;
[0025] Figure 2 A flowchart of another audio playback method provided in Embodiment 2 of the present invention;
[0026] Figure 3 A flowchart of another audio playback method provided in Embodiment 3 of the present invention;
[0027] Figure 4 A schematic diagram of the structure of an audio playback device provided in Embodiment 4 of the present invention;
[0028] Figure 5 A schematic diagram of the structure of another audio playback device provided in Embodiment 5 of the present invention;
[0029] Figure 6 A schematic diagram of the structure of an electronic device provided in Embodiment 6 of the present invention. DETAILED DESCRIPTION
[0030] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0031] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0032] Embodiment 1
[0033] Figure 1 A flowchart of an audio playback method is provided for Embodiment 1 of the present invention. This embodiment is applicable to situations where high-quality audio is required. The method can be performed by an audio playback device, which can be implemented in the form of hardware and / or software. The audio playback device can be configured in an electronic device with networking function.
[0034] like Figure 1 As shown, the method includes:
[0035] S110: If it is determined that the target mobile terminal is connected to the local area network server, determine a to-be-played audio set that matches the target mobile terminal.
[0036] The target mobile terminal may be an electronic device capable of playing audio, such as a mobile phone, a tablet, an MP3 player, etc.
[0037] A LAN server can be a group of network devices located in the same geographical location and the communication network connected to them. This group of devices can communicate with each other to achieve data transmission and sharing. Devices that can serve as LAN servers can be computers, servers, etc. There are two ways to connect to a LAN: wired and wireless. Usually, Ethernet technology is used in wired LANs, which are connected together with twisted pair cables or other cables, while wireless LANs use wireless LAN technology, such as WiFi technology.
[0038] Furthermore, the LAN server is established because the storage capacity required for DSD audio is large. For example, the DSD audio corresponding to a 5-minute song is about 400MB. If more DSD audio is stored in the target mobile terminal, it will occupy a very large storage capacity. Therefore, the storage of DSD audio through the LAN server can reduce the storage capacity of the target mobile terminal. Among them, DSD audio can be high-quality audio for recording, mixing, playback and archiving, which can provide higher audio fidelity and sound quality than traditional audio formats.
[0039] The audio set to be played may be an audio set that can match an audio list in the target mobile terminal.
[0040] When the target mobile terminal enters the area covered by the LAN server, it automatically connects to the LAN server. The LAN server determines that the target mobile terminal has completed the connection, and then determines the audio set to be played that matches it according to the audio list in the target mobile terminal.
[0041] Furthermore, the local area network server determines the audio list of the target mobile terminal every preset time period, wherein the preset time period may be 10 minutes.
[0042] Furthermore, local area network servers are respectively set up in different areas. When the target mobile terminal is connected to a local area network server for the first time, the local area network server can determine the audio set to be played in response to the user's selection operation on the target mobile terminal. When the target mobile terminal is not connected to a local area network server for the first time, the local area network server can determine the audio set to be played in response to the user's selection operation on the target mobile terminal, or determine the audio set to be played based on the historical audio set played when the target mobile terminal was connected to the local area network server. Furthermore, when the target mobile terminal is connected to different local area network servers, the audio sets to be played determined by different local area network servers may be different. For example, if the historical playback preference of the target mobile terminal when it was connected to LAN server A at a historical moment was to play audio set a, then when the target mobile terminal is connected to LAN server A again, LAN server A determines that the audio set to be played is audio set a; if the historical playback preference of the target mobile terminal when it was connected to LAN server B at a historical moment was to play audio set b, then when the target mobile terminal is connected to LAN server B again, LAN server B determines that the audio set to be played is audio set b.
[0043] S120, sending the DSD audios matching the audio set to be played to the target mobile terminal, so that the target mobile terminal plays the audios according to the DSD audios, and sending the metadata of the DSD audios to the target mobile terminal, so that the target mobile terminal updates the metadata of the audio set to be played.
[0044] Metadata may be data representing information of an audio file, such as metadata may include: audio file name, audio file size, audio file modification time, audio file creation time, etc.
[0045] Specifically, according to the obtained audio set to be played, the corresponding DSD audio is obtained from the local area network server, and the obtained DSD audio is sent to the target mobile terminal, so that the target mobile terminal plays the audio according to each DSD audio.
[0046] Furthermore, not all audio in the audio set to be played requires DSD audio, and it is necessary to confirm whether the user needs DSD audio before matching. That is, when audio in the audio set to be played is marked with "DSD", it is considered that the audio needs to be matched with DSD audio.
[0047] Furthermore, the user can choose whether DSD audio is needed in the target mobile terminal. If it is needed, "DSD" will be displayed after the audio name, and a corresponding DSD identification code will be generated and stored in the metadata of the corresponding audio, and the metadata will be updated and saved; when the need is cancelled, the DSD identification code will be deleted from the metadata of the corresponding audio, and the metadata update will be saved.
[0048] The local area network server sends the metadata of each DSD audio to the target mobile terminal, and the target mobile terminal updates the corresponding metadata in the audio set to be played according to the metadata of the DSD audio.
[0049] The technical solution of the embodiment of the present invention is that when the target mobile terminal is connected to the local area network server, the target mobile terminal's audio set to be played is confirmed, and the corresponding DSD audio is matched and sent to the target mobile terminal for playing. The method realizes the replacement of audio files from low-quality audio to high-quality audio by automatically connecting the target mobile terminal to the local area network server to synchronize DSD audio, thereby improving the user experience and reducing the storage capacity occupied by the target mobile terminal.
[0050] Embodiment 2
[0051] Figure 2 This is a flow chart of another audio playing method provided in the second embodiment of the present invention. The embodiment of the present invention further specifies the above embodiment on the basis of the above embodiment.
[0052] like Figure 2 As shown, the method includes:
[0053] S210: If it is determined that the target mobile terminal is connected to the local area network server, determine a to-be-played audio set matching the target mobile terminal through an audio change processing program.
[0054] The audio change processing program can be a processing program that can monitor the audio changes in the folder and sub-files where the audio set to be played is located. The audio change processing program can be a program such as inotify or Watchman of the Linux system that can monitor the changes of the folder.
[0055] Furthermore, the folders and subfolders that need to be monitored for changes by the audio change handler are determined in the local area network server. The determination method can be set by the user himself, or the folder containing the audio collection frequently played by the target mobile terminal can be used as the folder that needs to be monitored. For example, if the audio collection to be played in the target mobile terminal is a pop music audio collection, the folder corresponding to the audio collection will be used as the folder that needs to be monitored by the audio change handler.
[0056] Furthermore, after determining the folder that needs to be processed by the audio change processing program, register the file change event, that is, the add, modify and delete event. The audio change processing program can call the callback function of the change event according to the type of the change event and the corresponding file system interface to process the folder. If the change event is a new addition, the new callback function is called through the new file system interface to process the folder; the change can also be processed through the change event processing program.
[0057] When it is detected that the target mobile terminal has been connected to the local area network server, the audio change processing program scans the folders and subfolders to obtain the audio set to be played that matches the target mobile terminal.
[0058] Furthermore, the audio change processing program determines a to-be-played audio set that matches the target mobile terminal once every preset time period, wherein the preset time period may be 10 minutes.
[0059] S220, sending the DSD audios matching the audio set to be played to the target mobile terminal, so that the target mobile terminal plays the audios according to each DSD audio, and sending the metadata of each DSD audio to the target mobile terminal, so that the target mobile terminal updates the metadata of the audio set to be played.
[0060] Optionally, sending the DSD audio matching the audio set to be played to the target mobile terminal includes steps A1-A3:
[0061] Step A1: compare the audio set to be played with the historical audio set matching the target mobile terminal through the audio change processing program.
[0062] The historical audio set includes at least one DSD audio. The historical audio set may be an audio set played by the target mobile terminal before the current playback.
[0063] Optionally, each DSD audio in the historical audio collection is marked by an audio storage path or an identifier.
[0064] The identifier may be a generated identification ID that can only represent the audio file, such as a binary code generated according to the audio name and singer.
[0065] The audio change processing program compares the obtained audio set to be played with the historical audio set matched by the target mobile terminal to determine whether there is any new DSD audio in the audio set to be played, whether the DSD audio is deleted, and whether the version of the audio to be played has changed.
[0066] Furthermore, the audio change processing program compares the obtained audio set to be played with the historical audio set matching the target mobile terminal. If the DSD audio in the audio set to be played has not changed, each DSD audio in the historical audio set is directly sent to the target mobile terminal; if the DSD audio has changed, it is updated according to the type of change.
[0067] Step A2: If it is determined that the target audio to be played in the audio set to be played is a newly added DSD audio, then the DSD audio matching the target audio to be played is added to the historical audio set.
[0068] The audio change processing program compares the audio set to be played and the historical audio set matching the target mobile terminal, and determines that the target audio to be played in the audio set to be played is the newly added DSD audio. It then matches the corresponding DSD audio with the target audio to be played, and adds the obtained DSD audio to the historical audio set.
[0069] Optionally, after determining that the target audio to be played in the audio set to be played is a newly added DSD audio, the method further includes:
[0070] The DSD audio that matches the target audio to be played is marked by the audio storage path or identifier.
[0071] The newly added DSD audio may be marked as "needing synchronization" by recording the storage path of the audio file in the synchronization record of the local area network server, and the record may be represented in the form of a table. A synchronization identifier may also be generated and added to the metadata of the newly added DSD audio to indicate that the newly added DSD audio has been marked as "needing synchronization", wherein the synchronization identifier may be an identifier + a synchronization mark, and the synchronization mark may be identified by letters or numbers, such as 01 or A.
[0072] Step A3: Send each DSD audio in the historical audio set and the DSD audio matching the target audio to be played to the target mobile terminal.
[0073] Each DSD audio in the historical audio set and the newly added DSD audio matching the target audio to be played are sent to the target mobile terminal together.
[0074] Optionally, after the audio set to be played is compared with the historical audio set matching the target mobile terminal through the audio change processing program, steps B1-B2 are further included:
[0075] Step B1: If it is determined that the target audio to be played in the audio set to be played matches the target historical audio in the historical audio set, and the target audio to be played and the target historical audio are different in version, then determine the audio to be synchronized that matches the target audio to be played.
[0076] The audio to be synchronized may be audio that matches the version information of the target audio to be played.
[0077] If the target audio to be played in the audio set to be played matches the target historical audio in the historical audio set, and the version of the target audio to be played is different from the target historical audio version, then determine the audio to be synchronized that matches the version information of the target audio to be played.
[0078] Furthermore, when the version of the target audio to be played is a low-quality version, i.e., MP3 (Moving Picture Experts Group Audio Layer III), WAV (Wave Form) or FLAC (Free Lossless Audio Codec), and the target historical audio version is DSD audio, the low-quality version of the audio file will be used as the audio to be synchronized; if the version of the target audio to be played is DSD audio and the target historical audio version is a low-quality version, the DSD audio will be used as the audio to be synchronized.
[0079] Furthermore, if the version of the target audio to be played is the same as the target historical audio version, the DSD audio in the historical audio set is sent to the target mobile terminal.
[0080] Step B2: Send each DSD audio in the historical audio set and the audio to be synchronized to the target mobile terminal.
[0081] The original DSD audios in the historical audio set and the audio to be synchronized matched with the target audio to be played are sent to the target mobile terminal together.
[0082] The above method further includes:
[0083] The metadata matching the target audio to be played is sent to the target mobile terminal, so that the target mobile terminal updates the metadata of the target audio to be played.
[0084] If the target audio to be played is different from the target historical audio version, the metadata of the target audio to be played is sent to the target mobile terminal, and the target mobile terminal updates the metadata of the target audio to be played. For example, the target mobile terminal updates the file size and audio version in the target historical audio metadata according to the version information of the target audio to be played, and uses the update time as the modification time.
[0085] If the target audio to be played is the same as the target historical audio version, there is no need to update the metadata of the target audio to be played in the target mobile terminal.
[0086] Optionally, after comparing the to-be-played audio set with a historical audio set matching the target mobile terminal through the audio change processing program, the method further includes:
[0087] If it is determined that there is no audio to be played that matches the target historical audio in the audio set to be played, the target historical audio in the historical audio set is deleted.
[0088] If there is no audio to be played in the audio set to be played that matches the target historical audio set, the non-existent audio is marked as "needs to be deleted", and the target historical audio marked as "needs to be deleted" in the historical audio set is deleted.
[0089] Furthermore, marking the deleted DSD audio as "needs to be deleted" can be achieved by recording the storage path of the audio file in the deletion record of the local area network server. A deletion identifier can also be generated and added to the metadata of the deleted DSD audio to indicate that the deleted DSD audio has been marked as "needs to be deleted", wherein the deletion identifier can be an identifier + a deletion mark for identification, and the deletion mark can be identified by letters or numbers, such as 02 or B.
[0090] Optionally, sending the DSD audio matching the audio set to be played to the target mobile terminal includes:
[0091] At preset time intervals, a synchronization status query is performed on the marked audio in the historical audio collection, and the unsynchronized marked audio is sent to the target mobile terminal.
[0092] The preset time interval may be a preset time interval for polling the historical audio collection.
[0093] Exemplarily, the preset time interval can be 10 minutes. Every 10 minutes, the historical audio collection is polled, and the synchronization status of the audio in the audio collection that has been marked as requiring synchronization is queried. If the synchronization status is synchronized, no processing is performed; if the synchronization status is unsynchronized, the unsynchronized marked audio is sent to the target mobile terminal.
[0094] Furthermore, the unsynchronized marked audio is sent to the target mobile terminal via a network transmission protocol, such as TCP / IP (Transmission Control Protocol / Internet Protocol), HTTP (HyperText Transfer Protocol), etc.
[0095] Furthermore, if errors such as network connection interruption and transmission failure occur during the process, the synchronization status is recorded so that it can be restored at the next synchronization.
[0096] The technical solution of this embodiment periodically detects the file status of the audio file and modifies the audio file on the local area network server according to the file status, thereby achieving automatic synchronization of the audio file and improving the user experience.
[0097] Embodiment 3
[0098] Figure 3 This is a flow chart of another audio playing method provided in the second embodiment of the present invention. The embodiment of the present invention further specifies the above embodiment on the basis of the above embodiment.
[0099] like Figure 3 As shown, the method includes:
[0100] Step 310: Establish a communication connection with the local area network server.
[0101] When the target mobile terminal is not connecting to a LAN server for the first time, the target mobile terminal can automatically connect to the LAN server and establish a communication connection with the LAN server. After the connection is established, the LAN server can determine the audio set to be played in response to the user's selection operation on the target mobile terminal, or determine the audio set to be played based on the historical audio set played when the target mobile terminal is connected to the LAN server.
[0102] When the target mobile terminal establishes a connection with a local area network server for the first time, the target mobile terminal needs to send a connection application to the local area network server. After receiving the application, the local area network server establishes a connection with the target mobile terminal and records the ID of the target mobile terminal for automatic connection next time. After the connection is established, the user selects the audio collection to be played on the target mobile terminal. After the selection is completed, the local area network server determines the audio collection to be played in response to the user's selection operation on the target mobile terminal.
[0103] Step 320: Receive the DSD audios that match the current audio set to be played and are sent by the local area network server, and play the audios according to the DSD audios.
[0104] When the target mobile terminal receives the DSD audio that matches the current audio set to be played sent by the local area network server, the audio that matches the DSD audio in the current audio set to be played is replaced with the DSD audio, and the DSD audio is played.
[0105] For example, assuming that there are 100 audio tracks in the current audio collection to be played, of which 50 require DSD sound quality, after receiving DSD audio that matches the 50 audio tracks in the current audio collection to be played that require DSD sound quality sent by the LAN server, the original audio is replaced with the DSD audio, and the replaced audio list is played.
[0106] Step 330: If it is determined that the duration of disconnection from the LAN server is greater than or equal to a preset time threshold, then each DSD audio is deleted.
[0107] The preset time threshold may be a pre-set time measurement for determining whether the target mobile terminal is disconnected from the local area network server.
[0108] Exemplarily, a time threshold is preset, and when the target mobile terminal is disconnected from the local area network server for a period of time greater than or equal to the time threshold, it is considered that the target mobile terminal is disconnected from the local area network server.
[0109] When the target mobile terminal is disconnected from the LAN server and the disconnection time is greater than or equal to the time threshold, it is considered that the target mobile terminal is disconnected from the LAN server, and each DSD audio in the target mobile terminal is deleted.
[0110] Exemplarily, after the target mobile terminal establishes a connection with the LAN server, the LAN server determines the audio set to be played in the target mobile terminal. After the determination is completed, the audio set to be played is compared with the historical audio set. When there is new audio or deleted audio, the historical audio set is updated. After the update is completed, each DSD audio that matches it is sent to the target mobile terminal for audio playback. At the same time, the metadata of each DSD audio is also sent to the target mobile terminal for updating and preservation. When the target mobile terminal is disconnected from the LAN server for more than a time threshold, such as more than 10 minutes, it is considered that the target mobile terminal is disconnected from the LAN server, and the DSD audio in the target mobile terminal is deleted.
[0111] The technical solution of this embodiment is that when the target mobile terminal enters the signal range of the LAN server, a connection between the two is automatically established, and the DSD audio is synchronized, and the low-quality audio is replaced with high-quality audio, thereby realizing the user's experience of high-quality audio. When the target mobile terminal leaves the signal range of the LAN server, the DSD audio is deleted, thereby reducing the occupancy of the target mobile terminal's storage capacity and improving the user experience.
[0112] Embodiment 4
[0113] Figure 4 This is a schematic diagram of the structure of an audio playback device provided by Embodiment 4 of the present invention. Figure 4 As shown, the device comprises:
[0114] The to-be-played audio set determination module 410 is used to determine the to-be-played audio set matching the target mobile terminal if it is determined that the target mobile terminal is connected to the local area network server;
[0115] Target mobile terminal module 420: used to send the DSD audio matching the audio set to be played to the target mobile terminal, so that the target mobile terminal plays the audio according to each DSD audio, and to send the metadata of each DSD audio to the target mobile terminal, so that the target mobile terminal updates the metadata of the audio set to be played.
[0116] Optionally, the to-be-played audio set determination module 410 includes:
[0117] The to-be-played audio set determining unit is used to determine the to-be-played audio set matching the target mobile terminal through an audio change processing program.
[0118] Optionally, the target mobile terminal module 420 includes:
[0119] Comparison unit: used to compare the audio set to be played with the historical audio set matching the target mobile terminal through an audio change processing program, wherein the historical audio set includes at least one DSD audio, and each DSD audio in the historical audio set is marked by an audio storage path or identifier.
[0120] A adding unit: configured to add a DSD audio matching the target audio to be played to the historical audio set if it is determined that the target audio to be played in the audio set to be played is a newly added DSD audio;
[0121] A sending unit is used to send each DSD audio in the historical audio set and the DSD audio matching the target audio to be played to the target mobile terminal.
[0122] Optionally, the target mobile terminal module 420 further includes:
[0123] The audio to be synchronized determination unit is used to determine the audio to be synchronized that matches the target audio to be played in the audio set to be played and the target historical audio in the historical audio set, if it is determined that the target audio to be played in the audio set to be played matches the target historical audio in the historical audio set, and the target audio to be played and the target historical audio are different in version;
[0124] A sending unit is used to send each DSD audio in the historical audio set and the audio to be synchronized to the target mobile terminal.
[0125] Optionally, the target mobile terminal module 420 further includes:
[0126] Metadata updating unit: used for sending metadata matching the target audio to be played to the target mobile terminal, so that the target mobile terminal updates the metadata of the target audio to be played.
[0127] Optionally, the target mobile terminal module 420 further includes:
[0128] Deletion unit: used for deleting the target historical audio in the historical audio set if it is determined that there is no audio to be played matching the target historical audio in the audio set to be played.
[0129] Optional, add new units, specifically for:
[0130] Marking the DSD audio that matches the target audio to be played by using an audio storage path or an identifier;
[0131] After determining the audio to be synchronized that matches the target audio to be played, the method further includes:
[0132] The audio to be synchronized is marked by an audio storage path or an identifier.
[0133] Optionally, the target mobile terminal module 420 includes:
[0134] At every preset time interval, a synchronization status query is performed on the marked audio in the historical audio set, and the unsynchronized marked audio is sent to the target mobile terminal.
[0135] Embodiment 5
[0136] Figure 5 This is a schematic diagram of the structure of another audio playback device provided in Embodiment 5 of the present invention. Figure 5 As shown, the device comprises:
[0137] LAN server connection module 510: used to establish a communication connection with a LAN server;
[0138] The audio playing module 520 is used to receive the DSD audios sent by the local area network server and matching the current audio set to be played, and play the audios according to the DSD audios;
[0139] The audio deletion module 530 is configured to delete each DSD audio if it is determined that the duration of disconnection from the LAN server is greater than or equal to a preset time threshold.
[0140] The audio playback device provided in the embodiment of the present invention can execute the audio playback method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0141] Embodiment 6
[0142] Figure 6 A schematic diagram of the structure of an electronic device provided for Embodiment 6 of the present invention. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0143] like Figure 6As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0144] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0145] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as an audio playback method.
[0146] In some embodiments, the audio playback method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the audio playback method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the audio playback method in any other appropriate manner (e.g., by means of firmware).
[0147] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0148] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0149] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0150] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0151] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0152] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0153] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0154] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. An audio playback method, It is characterized in that The method is executed by a local area network server, and the method comprises: If it is determined that the target mobile terminal is connected to the local area network server, determining a to-be-played audio set matching the target mobile terminal; Sending the DSD audios matching the audio set to be played to the target mobile terminal, so that the target mobile terminal plays the audios according to the DSD audios, and sending the metadata of the DSD audios to the target mobile terminal, so that the target mobile terminal updates the metadata of the audio set to be played; The step of determining a set of audio to be played that matches the target mobile terminal includes: Determine, through an audio change processing program, a to-be-played audio set that matches the target mobile terminal; Sending the DSD audio matching the to-be-played audio set to the target mobile terminal includes: Comparing the to-be-played audio set with a historical audio set matching the target mobile terminal through an audio change processing program; Wherein, the historical audio set includes at least one DSD audio; each DSD audio in the historical audio set is marked by an audio storage path or an identifier; If it is determined that the target audio to be played in the audio set to be played is a newly added DSD audio, adding the DSD audio matching the target audio to be played to the historical audio set; Each DSD audio in the historical audio set and the DSD audio matching the target audio to be played are sent to the target mobile terminal.
2. The method according to claim 1, It is characterized in that After comparing the to-be-played audio set with the historical audio set matching the target mobile terminal through the audio change processing program, the method further includes: If it is determined that the target audio to be played in the audio set to be played matches the target historical audio in the historical audio set, and the target audio to be played is different from the target historical audio version, then determining the audio to be synchronized that matches the target audio to be played; Sending each DSD audio in the historical audio set and the audio to be synchronized to the target mobile terminal; The method further comprises: The metadata matching the target audio to be played is sent to the target mobile terminal, so that the target mobile terminal updates the metadata of the target audio to be played.
3. The method according to claim 1, It is characterized in that After comparing the to-be-played audio set with the historical audio set matching the target mobile terminal through the audio change processing program, the method further includes: If it is determined that there is no audio to be played that matches the target historical audio in the audio set to be played, the target historical audio in the historical audio set is deleted.
4. The method according to claim 2, It is characterized in that Each DSD audio in the historical audio collection is marked by an audio storage path or an identifier; After determining that the target audio to be played in the audio set to be played is the newly added DSD audio, the method further includes: Marking the DSD audio that matches the target audio to be played by using an audio storage path or an identifier; After determining the audio to be synchronized that matches the target audio to be played, the method further includes: Marking the audio to be synchronized by an audio storage path or an identifier; Sending the DSD audio matching the to-be-played audio set to the target mobile terminal includes: At every preset time interval, a synchronization status query is performed on the marked audio in the historical audio set, and the unsynchronized marked audio is sent to the target mobile terminal.
5. An audio playback method, It is characterized in that The method is executed by a mobile terminal, and the method includes: Establish a communication connection with the LAN server; Receiving DSD audios that match the current audio set to be played and are sent by the local area network server, and playing audios according to each DSD audio; If it is determined that the duration of disconnection from the local area network server is greater than or equal to a preset time threshold, deleting each DSD audio; The current audio set to be played is a current audio set to be played that matches the mobile terminal and is determined by the local area network server through an audio change processing program; The local area network server sends the DSD audio matching the current audio set to be played to the mobile terminal in the following manner: Comparing the current audio set to be played with the historical audio set matching the mobile terminal through an audio change processing program; Wherein, the historical audio set includes at least one DSD audio; each DSD audio in the historical audio set is marked by an audio storage path or an identifier; If it is determined that the target audio to be played in the current audio set to be played is a newly added DSD audio, then adding the DSD audio matching the target audio to be played to the historical audio set; Each DSD audio in the historical audio set and the DSD audio matching the target audio to be played are sent to the mobile terminal.
6. An audio playback device, It is characterized in that The device is deployed in a local area network server and includes: The to-be-played audio set determination module is used to determine the to-be-played audio set matching the target mobile terminal if it is determined that the target mobile terminal is connected to the local area network server; A target mobile terminal module, used for sending the DSD audio matching the audio set to be played to the target mobile terminal, so that the target mobile terminal plays the audio according to each DSD audio, and sending the metadata of each DSD audio to the target mobile terminal, so that the target mobile terminal updates the metadata of the audio set to be played; The module for determining the audio set to be played includes: The to-be-played audio set determining unit is used to determine the to-be-played audio set matching the target mobile terminal through an audio change processing program; Wherein, the target mobile terminal module includes: A comparison unit: used for comparing the to-be-played audio set with a historical audio set matching the target mobile terminal through an audio change processing program; Wherein, the historical audio set includes at least one DSD audio; each DSD audio in the historical audio set is marked by an audio storage path or an identifier; A adding unit: configured to add a DSD audio matching the target audio to be played to the historical audio set if it is determined that the target audio to be played in the audio set to be played is a newly added DSD audio; A sending unit is used to send each DSD audio in the historical audio set and the DSD audio matching the target audio to be played to the target mobile terminal.
7. An audio playback device, It is characterized in that The device is deployed in a mobile terminal and includes: A LAN server connection module, used to establish a communication connection with a LAN server; An audio playback module, used for receiving DSD audios matching the current audio set to be played sent by the local area network server, and performing audio playback according to each DSD audio; an audio deletion module, configured to delete each DSD audio if it is determined that the duration of disconnection from the local area network server is greater than or equal to a preset time threshold; The current audio set to be played is a current audio set to be played that matches the mobile terminal and is determined by the local area network server through an audio change processing program; The local area network server sends the DSD audio matching the current audio set to be played to the mobile terminal in the following manner: Comparing the current audio set to be played with the historical audio set matching the mobile terminal through an audio change processing program; Wherein, the historical audio set includes at least one DSD audio; each DSD audio in the historical audio set is marked by an audio storage path or an identifier; If it is determined that the target audio to be played in the current audio set to be played is a newly added DSD audio, then adding the DSD audio matching the target audio to be played to the historical audio set; Each DSD audio in the historical audio set and the DSD audio matching the target audio to be played are sent to the mobile terminal.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the program, the audio playback method as described in any one of claims 1-5 is implemented.
9. A storage medium storing computer executable instructions, It is characterized in that The computer executable instructions are used to execute the audio playing method as described in any one of claims 1 to 5 when executed by a computer processor.
