CN110505613B - Audio data processing method, computer-readable storage medium, and computer device - Google Patents

Audio data processing method, computer-readable storage medium, and computer device Download PDF

Info

Publication number
CN110505613B
CN110505613B CN201910764966.5A CN201910764966A CN110505613B CN 110505613 B CN110505613 B CN 110505613B CN 201910764966 A CN201910764966 A CN 201910764966A CN 110505613 B CN110505613 B CN 110505613B
Authority
CN
China
Prior art keywords
audio data
played
transmitted
playing
duration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910764966.5A
Other languages
Chinese (zh)
Other versions
CN110505613A (en
Inventor
俞斌
杨维琴
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN201910764966.5A priority Critical patent/CN110505613B/en
Publication of CN110505613A publication Critical patent/CN110505613A/en
Application granted granted Critical
Publication of CN110505613B publication Critical patent/CN110505613B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/10Flow control between communication endpoints
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/40Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P]
    • H04W4/48Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P] for in-vehicle communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Transmitters (AREA)

Abstract

The invention provides an audio data processing method. The audio data processing method comprises the following steps: measuring the loading duration of audio data to be transmitted and played; when the loading duration reaches a preset duration, forcibly loading the audio data to be transmitted and played, and transmitting and playing the audio data to be transmitted and played after the forced loading is completed; and the preset duration is less than the average playing switching duration of the audio data. The audio data to be transmitted and played are loaded forcibly according to the loading duration, so that the audio data to be transmitted and played can be transmitted and played smoothly, the phenomena of short unsmooth time and the like when the audio data are transmitted and played are avoided, and the experience satisfaction of a user is improved.

Description

Audio data processing method, computer-readable storage medium, and computer device
Technical Field
The present invention belongs to the field of communication technologies, and in particular, to an audio data processing method, a computer-readable storage medium, and a computer device.
Background
With the rapid development of wireless communication technologies (such as bluetooth communication technology), wireless communication chips are commonly used in computer devices at present, so that the computer devices support wireless communication functions, and thus perform wireless communication connection with other devices with wireless communication chips, such as automobiles, watches, earphones, and the like.
When the computer equipment is connected with the vehicle-mounted music playing equipment through the wireless communication chip in the automobile to play music, the computer equipment is adopted to transmit music data to the vehicle-mounted music playing equipment in real time. When a processor of the computer device has a lot of tasks to process instantly, or the vehicle-mounted music playing device is disturbed instantly, the music playing is not smooth instantly, which brings great experience unsatisfied feeling to the user, so that improvement is needed.
Disclosure of Invention
In order to solve the above technical problems of the prior art, an object of the present invention is to provide an audio data processing method, a computer-readable storage medium, and a computer device that can keep audio data playing smooth even when a processor of the computer device has a lot of tasks to process instantaneously or an on-vehicle music playing device is disturbed instantaneously.
According to an aspect of the present invention, there is provided an audio data processing method. The audio data processing method comprises the following steps: measuring the loading duration of the audio data to be transmitted and played; when the loading duration reaches a preset duration, forcibly loading the audio data to be transmitted and played, and transmitting and playing the audio data to be transmitted and played after the forced loading is completed; and the preset duration is less than the average playing switching duration of the audio data.
Further, the audio data processing method further includes: and when the loading duration does not reach the preset duration and the audio data to be transmitted and played are loaded, transmitting and playing the loaded audio data to be transmitted and played.
Optionally, the method for obtaining the average duration of switching playing of the audio data includes: acquiring the play switching duration of N audio data to be transmitted and played; dividing the sum of the playing switching time lengths of the N audio data to be transmitted and played by N to obtain the average playing switching time length of the audio data; wherein N is more than or equal to 1 and N is a positive integer.
Further, the audio data processing method further includes: and when the playing switching of the audio data to be transmitted and played is terminated, storing the average playing switching duration of the audio data to be used as the average playing switching duration of the first audio data in the next audio data processing.
Further, the audio data processing method further includes: when the playing switching of the audio data which are being transmitted and played is interrupted, measuring the loading duration of the audio data to be transmitted and played to be interrupted; and when the audio data which are being transmitted and played are recovered to the playing switching state from the interruption state, the loading duration of the audio data to be transmitted and played is continuously measured.
Optionally, the preset duration is less than the average playing duration of the audio data to be transmitted and played; the method for acquiring the playing average time length of the audio data to be transmitted and played comprises the following steps: acquiring the playing time lengths of N pieces of audio data which are transmitted and played; dividing the sum of the playing time lengths of the N audio data to be transmitted and played by N to obtain the average playing time length of the audio data to be transmitted and played; wherein N is more than or equal to 1 and N is a positive integer.
Furthermore, the N audio data to be transmitted and played are continuously transmitted and played, and the N audio data to be transmitted and played and the audio data to be transmitted and played are continuously transmitted and played.
According to another aspect of the present invention, there is also provided a computer-readable storage medium having stored thereon an audio data processing program which, when executed by a processor, implements an audio data processing method, wherein the audio data processing method includes: measuring the loading duration of audio data to be transmitted and played; when the loading duration reaches a preset duration, forcibly loading the audio data to be transmitted and played, and transmitting and playing the audio data to be transmitted and played after the forced loading is completed; and the preset duration is less than the average playing switching duration of the audio data.
According to yet another aspect of the present invention, there is also provided a computer device comprising a memory, a processor, and an audio data processing program stored on the memory and executable on the processor, the audio data processing program when executed by the processor implementing an audio data processing method, wherein the audio data processing method comprises: measuring the loading duration of the audio data to be transmitted and played; when the loading duration reaches a preset duration, forcibly loading the audio data to be transmitted and played, and transmitting and playing the audio data to be transmitted and played after the forced loading is completed; and the preset duration is less than the average playing switching duration of the audio data.
The invention has the beneficial effects that: the audio data to be transmitted and played are loaded forcibly according to the loading duration, so that the audio data to be transmitted and played can be transmitted and played smoothly, the phenomena of transient unsmooth and the like when the audio data are transmitted and played are avoided, and the experience satisfaction of users is improved.
Drawings
The above and other aspects, features and advantages of embodiments of the present invention will become more apparent from the following description taken in conjunction with the accompanying drawings, in which:
fig. 1 is a schematic diagram of a play time period and a play switching time period of audio data according to an embodiment of the present invention;
fig. 2 is a flowchart of an audio data processing method according to an embodiment of the present invention;
fig. 3 is a flowchart of an audio data processing method according to another embodiment of the present invention;
fig. 4 is a flowchart of a method for acquiring a play switching average duration of audio data according to an embodiment of the present invention;
fig. 5 is a flowchart of a method for acquiring the average playing time of audio data according to an embodiment of the present invention.
Detailed Description
Hereinafter, specific embodiments of the present invention will be described in detail with reference to the accompanying drawings. This invention may, however, be embodied in many different forms and should not be construed as limited to the specific embodiments set forth herein. Rather, these embodiments are provided to explain the principles of the invention and its practical application to thereby enable others skilled in the art to understand the invention for various embodiments and with various modifications as are suited to the particular use contemplated.
The computer device wirelessly communicates with other audio data playback devices (such as in-vehicle playback devices) by a wireless communication technique (such as a bluetooth communication technique), thereby performing transmission of data such as audio data (e.g., music, etc.).
When the audio data of the computer equipment is played on the computer equipment, the audio data is transmitted to other audio data playing equipment through a wireless communication technology, and simultaneously the other audio data playing equipment plays the audio data on the audio data playing equipment. That is, the audio data playback by the computer device (which may not actually play out sound), the transmission of audio data from the computer device to other audio data playback devices, and the audio data playback by other audio data playback devices may be simultaneous.
Based on the above, in this embodiment, the following called playing of audio data may refer to playing of audio data on a computer device, or playing of audio data on other audio data playing devices, or playing of audio data on a computer device and playing of audio data on other audio data playing devices that are performed simultaneously; the audio data transmission and playing comprises audio data playing on the computer device and audio data transmission from the computer device to other audio data playing devices which are performed simultaneously, or comprises audio data playing on other audio data playing devices and audio data transmission from the computer device to other audio data playing devices which are performed simultaneously, or comprises audio data playing on the computer device, audio data playing on other audio data playing devices and audio data transmission from the computer device to other audio data playing devices which are performed simultaneously. In other words, the playback time period of the audio data referred to below is equal to the transmission playback time period of the audio data.
The following explains the playback time length of the audio data and the playback switching time length of the audio data. Fig. 1 is a schematic diagram of a play time period and a play switching time period of audio data according to an embodiment of the present invention.
Referring to fig. 1, a time length T1 of the nth audio data from a time when the audio data is played to a time when the audio data is played is equal to a playing time length of the audio data of the nth audio data; a time length T2 from the moment when the audio data of the Nth audio data is played to the moment when the audio data of the (N + 1) th audio data is played is the switching time length of the audio data of the Nth audio data; and the play switching period of the audio data of the Nth audio data is equal to the sum of the play period T1 of the audio data of the Nth audio data and the switching period T2 of the audio data of the Nth audio data.
The audio data processing method of the present invention will be described in detail below. Fig. 2 is a flowchart of an audio data processing method according to an embodiment of the present invention.
Referring to fig. 2, in step S210, a loading duration of audio data to be transmitted and played is measured.
Here, the loading of the audio data refers to: a process in which audio data is transferred to a memory storage; and the loading of the audio data means that: the time it takes for the audio data to be transferred to memory storage. Further, the audio data to be transmitted and played as described herein refers to the audio data to be transmitted and played. The time of step S210 is usually within the playing and/or switching duration of the audio data being transmitted and played, that is, when the audio data being transmitted and played is playing (i.e. within the playing duration) or switching (i.e. within the switching duration), the loading duration of the audio data to be transmitted and played (i.e. the next audio data to the audio data being transmitted and played) is measured.
In addition, in this embodiment, a timer may be used to measure the loading duration of the audio data to be transmitted and played, but the present invention is not limited thereto. In addition, the audio data to be transmitted and played refers to audio data that has not been played or transmitted or has not been transmitted and played, or refers to audio data that is to be played or transmitted or is to be transmitted and played.
In addition, it should be noted that, when the audio data being transmitted and played is interrupted in the playing process or the switching process, the measurement of the loading duration of the audio data to be transmitted and played is interrupted; and when the audio data which is being transmitted and played is recovered to the playing or switching state from the interruption state, the loading duration of the audio data to be transmitted and played is continuously measured.
In step S220, when the loading duration reaches the preset duration, the audio data to be transmitted and played is forcibly loaded, and the audio data to be transmitted and played after being forcibly loaded is transmitted and played.
In this case, the computer device performs data transmission on the audio data to be transmitted and played after the forced loading to other audio data playing devices that have been in wireless communication connection with the computer device, and simultaneously performs playing of the audio data by the computer device and/or the other audio data playing devices.
Here, the preset time duration is less than the play switching average time duration of the audio data. The playback switching average time length of the audio data will be described in detail below.
When the loading duration reaches the preset duration, it indicates that the audio data to be transmitted and played are not loaded into the memory storage of the computer device, and at this time, the processor of the computer device cannot normally transmit and play the audio data to be transmitted and played. Under the circumstance, the technical problems described in the background technology appear, and the processor has a large number of tasks to process instantly, so that the processor cannot normally complete the loading of the audio data to be transmitted and played. In this embodiment, the audio data to be transmitted and played is forcibly loaded when the loading duration reaches the preset duration, so that the audio data to be transmitted and played can be smoothly transmitted and played, the phenomena of short unsmooth transmission and playing of the audio data are avoided, and the experience satisfaction of the user is further improved.
Further, the unimportant partial tasks in the processor can be forcibly closed through the forced closing program, so that the processor is forced to complete the loading of the audio data to be transmitted and played and the transmission and playing.
Fig. 3 is a flowchart of an audio data processing method according to another embodiment of the present invention.
Step S310 in the audio data processing method shown in fig. 3 is the same as step S210 in the audio data processing method shown in fig. 2, and step S320 in the audio data processing method shown in fig. 3 is the same as step S220 in the audio data processing method shown in fig. 2. Only the differences between the audio data processing method shown in fig. 3 and the audio data processing method shown in fig. 2 will be described below.
Referring to fig. 3, the audio data processing method according to another embodiment of the present invention further includes step S330. Note that step S330 has no precedence relationship with step S320, and a specific precedence relationship may be set. In step S330, when the loading duration does not reach the preset duration and the audio data to be transmitted and played is loaded, the audio data to be transmitted and played that is loaded is transmitted and played.
Here, when the loading duration does not reach the preset duration, it indicates that the audio data to be transmitted and played is being played (i.e., within the playing duration) or is being switched (i.e., within the switching duration), and thus it also indicates that the processor does not have a situation where a large number of tasks are instantaneously processed, and at this time, the processor can normally complete the loading of the audio data to be transmitted and played. In this case, the computer device performs data transmission on the loaded audio data to be transmitted and played to other audio data playing devices that are in wireless communication connection with the computer device, and simultaneously performs playing of the audio data by the computer device and/or the other audio data playing devices.
The following describes a method for acquiring the average duration of the switching of the playing of the audio data in detail. Fig. 4 is a flowchart of a method for acquiring a play switching average duration of audio data according to an embodiment of the present invention. It should be noted that the method for acquiring the average duration of switching between the playing of the audio data shown in fig. 4 may be applied to the audio data processing method shown in fig. 2, and may also be applied to the audio data processing method shown in fig. 3.
As shown in fig. 4, in step S410, the play switching time lengths of N audio data to be transmitted and played are obtained.
Here, the N audio data to be transmitted and played may be: in the wireless communication transmission process between the computer device and other audio data playing devices, all the audio data to be transmitted and played before the audio data to be transmitted and played are transmitted and played.
Preferably, in order to improve the accuracy of the average duration of the switching of the playing of the audio data, the N audio data to be transmitted and played are transmitted and played continuously, and the N audio data to be transmitted and played and the audio data to be transmitted and played are also transmitted and played continuously, although the present invention is not limited thereto.
In this embodiment, the method for acquiring the play switching durations of the N audio data to be transmitted and played includes two modes, which will be described in detail below.
The first acquisition mode is as follows: in the N audio data transmitted and played, the playing switching durations from the first audio data transmitted and played to the N-1 th audio data transmitted and played are all respective actual playing switching durations, that is, the playing switching duration from each of the first audio data transmitted and played to the N-1 th audio data transmitted and played is the sum of the actual playing duration T1 and the actual switching duration T2; since the loading duration and the predetermined duration of the audio data to be transmitted and played need to be compared when the nth audio data is played or switched, the play switching duration of the nth transmitted and played audio data is set as the sum of the play switching duration of the first transmitted and played audio data and the play switching duration of the N-1 st transmitted and played audio data divided by N-1, that is, the average play switching duration of the audio data acquired when the N-1 st transmitted and played audio data is transmitted and played (at this time, the nth transmitted and played audio data is in the state of being transmitted and played). Thus, the play switching duration of the N transmitted and played audio data can be obtained.
The second acquisition mode is as follows: in the N audio data transmitted and played, the playing switching time length of the first audio data transmitted and played is set as the playing switching average time length of the audio data stored when the wireless communication transmission process of the computer equipment and other audio data playing equipment is finished; the playing switching duration of the second transmitted and played audio data is the actual playing switching duration of the first transmitted and played audio data (i.e. the sum of the actual playing duration T1 and the actual switching duration T2, rather than the average playing switching duration of the audio data stored when the wireless communication transmission process between the computer device and other audio data playing devices is finished at the last time); the playing switching time length of the third audio data to be transmitted and played is the sum of the actual playing switching time length of the first audio data to be transmitted and played and the actual playing switching time length of the second audio data to be transmitted and played divided by 2; the playing switching time length of the fourth audio data to be transmitted and played is the sum of the actual playing switching time length of the first audio data to be transmitted and played and the actual playing switching time length of the third audio data to be transmitted and played, and is divided by 3; and so on; the playing switching time length of the Nth audio data to be transmitted and played is the sum of the actual playing switching time length of the first audio data to be transmitted and played and the actual playing switching time length of the (N-1) th audio data to be transmitted and played divided by N-1. Therefore, the play switching duration of the N audio data to be transmitted and played can be obtained, and this way all adopts the average play switching duration of the audio data when each audio data in the N audio data to be transmitted and played is to be played, so that the subsequent calculation of the average play switching duration of the audio data to be transmitted and played aiming at the audio data to be transmitted and played can avoid the calculation error caused by different play durations of different audio data, for example, some audio data have longer play durations and some audio data have shorter play durations, when the play duration of the nth audio data to be transmitted and played is shorter, the predetermined duration may be longer than the play duration of the nth audio data to be transmitted and played, so that the loading duration of the audio data to be transmitted and played may exceed the play switching duration of the nth audio data to be transmitted and played (the general switching duration is very short), but the predetermined duration is still not reached, and thus a phenomenon of transient unsmooth jam and even long-time transmission and playing are still avoided, while the calculation way of the second way avoids such a phenomenon.
In step S420, dividing the sum of the play switching durations of the N transmitted and played audio data by N to obtain a play switching average duration of the audio data; wherein N is more than or equal to 1 and N is a positive integer.
Here, the sum of the play switching durations of the N pieces of audio data to be transmitted and played obtained by the first manner or the second manner is divided by N to obtain the play switching average duration of the audio data for the audio data to be transmitted and played (i.e., the audio data to be transmitted and played next to the nth audio data to be transmitted and played).
With respect to step S420, the present invention provides another alternative embodiment. Specific alternative embodiments are: storing the average playing switching duration of the finally obtained audio data each time when the wireless communication transmission process of the computer equipment and other audio data playing equipment is finished; when the computer equipment and other audio data playing equipment perform wireless communication transmission, the average value of the average time length obtained by dividing the sum of the playing switching time lengths of N audio data to be transmitted and played obtained in the wireless communication transmission process by N and the playing switching average time length of the audio data stored when the last wireless communication transmission process is finished is taken as the playing switching average time length of the audio data aiming at the audio data to be transmitted and played in the wireless communication transmission process. The average time length of the playing switching of the audio data obtained by adopting the alternative implementation mode is more accurate, so that the audio data to be transmitted and played can be further ensured to be timely loaded or forcibly loaded.
In addition, as another embodiment of the present invention, the preset duration may be set to be smaller than the average playing duration of the audio data, because the average playing duration of the audio data is shorter than the switching duration of the playing of the audio data, which is beneficial to ensure that the audio data to be transmitted and played can be timely loaded or forcibly loaded.
The following describes a method for acquiring the average playing time of audio data in detail. The method for acquiring the playing average duration of the audio data is substantially similar to the method for acquiring the playing switching average duration of the audio data shown in fig. 4, and specifically, referring to fig. 5, fig. 5 is a flowchart of a method for acquiring the playing average duration of the audio data according to another embodiment of the present invention. The method for acquiring the average playing time length of the audio data shown in fig. 5 may be applied to the audio data processing method shown in fig. 2, and may also be applied to the audio data processing method shown in fig. 3.
Referring to fig. 5, in step S510, the playing time lengths of N audio data to be transmitted and played are obtained.
Here, as described above, the N audio data to be transmitted and played may be: in the wireless communication transmission process between the computer device and other audio data playing devices, all the audio data to be transmitted and played before the audio data to be transmitted and played are transmitted and played.
Preferably, in order to improve the accuracy of the average playing duration of the audio data, the N audio data to be transmitted and played are continuously transmitted and played, and the N audio data to be transmitted and played and the audio data to be transmitted and played are also continuously transmitted and played, although the invention is not limited thereto.
In this embodiment, the method for acquiring the playing time lengths of the N audio data to be transmitted and played also includes two ways, which will be described in detail below.
The first acquisition mode is as follows: in the N audio data transmitted and played, the playing time lengths from the first audio data transmitted and played to the N-1 th audio data transmitted and played are all respective actual playing time lengths, that is, the playing time length from the first audio data transmitted and played to each audio data transmitted and played in the N-1 th audio data transmitted and played is the actual playing time length T1 thereof; since the loading duration of the audio data to be transmitted and played needs to be compared with the predetermined duration when the nth audio data is played or switched, the playing duration of the nth transmitted and played audio data is set as the sum of the playing duration of the first transmitted and played audio data and the playing duration of the N-1 st transmitted and played audio data divided by N-1, that is, the average playing duration of the audio data acquired when the nth-1 st transmitted and played audio data is transmitted and played (at this time, the nth transmitted and played audio data is in the state to be transmitted and played). Therefore, the playing time lengths of the N audio data which are transmitted and played can be obtained.
The second acquisition mode is as follows: in the N audio data transmitted and played, the playing time length of the first audio data transmitted and played is set as the playing average time length of the audio data stored when the wireless communication transmission process of the computer equipment and other audio data playing equipment is finished; the playing time length of the audio data played in the second transmission is the actual playing time length of the audio data played in the first transmission (i.e. the actual playing time length T1, not the average playing time length of the audio data stored when the wireless communication transmission process between the computer device and other audio data playing devices is finished last time); the playing time length of the third audio data to be transmitted and played is the sum of the actual playing time length of the first audio data to be transmitted and played and the actual playing time length of the second audio data to be transmitted and played, and is divided by 2; the playing time length of the fourth audio data to be transmitted and played is the sum of the actual playing time length of the first audio data to be transmitted and played and the actual playing time length of the third audio data to be transmitted and played, and is divided by 3; and so on; the playing time length of the Nth audio data which is transmitted and played is the sum of the actual playing time length of the first audio data which is transmitted and played to the actual playing time length of the (N-1) th audio data which is transmitted and played, and is divided by N-1. Therefore, the playing time lengths of the N audio data to be transmitted and played can be obtained, and this way all adopts the average playing time length of the audio data when each audio data in the N audio data to be transmitted and played is to be played, so that the subsequent calculation of the average playing time length of the audio data to be transmitted and played when the audio data to be transmitted and played is to be played avoids calculation errors caused by different playing time lengths of different audio data, for example, some audio data have longer playing time lengths and some audio data have shorter playing time lengths, when the playing time length of the nth audio data to be transmitted and played is shorter, the predetermined time length may be longer than the playing time length of the nth audio data to be transmitted and played, so that the loading time length of the audio data to be transmitted and played may exceed the playing switching time length of the nth audio data to be transmitted and played (the switching time length is generally very short), but the predetermined time length is still not reached, and thus a phenomenon of transient pause and even a phenomenon of not transmitting and playing the audio data for a long time may still occur.
In step S520, dividing the sum of the playing durations of the N transmitted and played audio data by N to obtain the average playing duration of the audio data; wherein N is more than or equal to 1 and N is a positive integer.
Here, the sum of the playing time lengths of the N audio data to be transmitted and played obtained by the first manner or the second manner is divided by N to obtain the average playing time length of the audio data for the audio data to be transmitted and played (i.e., the audio data to be transmitted and played next to the nth audio data to be transmitted and played).
By using the average playing time of the audio data shown in fig. 5 as the standard of the predetermined time, it can be further ensured that the loading or forced loading occurs during the playing process of the audio data being transmitted and played, thereby eliminating the transient unsmooth phenomenon during the transmission and playing process of the audio data.
The present invention provides another alternative embodiment to the above step S520. Specific alternative embodiments are: storing the average playing time of the finally obtained audio data each time when the wireless communication transmission process of the computer equipment and other audio data playing equipment is finished; when the computer equipment and other audio data playing equipment perform wireless communication transmission, the average value of the average time length obtained by dividing the sum of the playing time lengths of N audio data to be transmitted and played obtained in the wireless communication transmission process by N and the playing average time length of the audio data stored when the last wireless communication transmission process is finished is taken as the playing average time length of the audio data aiming at the audio data to be transmitted and played in the wireless communication transmission process. The average playing time length of the audio data obtained by adopting the alternative embodiment is more accurate, so that the audio data to be transmitted and played can be further ensured to be timely loaded or forcibly loaded.
Yet another embodiment of the present invention also provides a computer-readable storage medium having stored thereon an audio data processing program which, when executed by a processor, implements the audio data processing method as shown in fig. 2 or 3.
Yet another embodiment of the present invention provides a computer apparatus including a memory (not shown), a processor (not shown), and an audio data processing program stored on the memory and executable on the processor, the audio data processing program implementing the audio data processing method as shown in fig. 2 or fig. 3 when executed by the processor.
The particular form of computer device may be a personal computer, laptop computer, cellular telephone, camera phone, smart phone, personal digital assistant, media player, navigation device, email messaging device, game console, tablet computer, wearable device, or a combination of any of these devices.
In a typical configuration, a computer device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Disks (DVD) or other optical storage, magnetic cassettes, magnetic disk storage, quantum memory, graphene-based storage media or other magnetic storage devices, or any other non-transmission medium, that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising one of 8230; \8230;" 8230; "does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises that element.
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The terminology used in the description of the one or more embodiments is for the purpose of describing the particular embodiments only and is not intended to be limiting of the description of the one or more embodiments. As used in one or more embodiments of the present specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used in one or more embodiments of the present description to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of one or more embodiments herein. The word "if" as used herein may be interpreted as "at" \8230; "or" when 8230; \8230; "or" in response to a determination ", depending on the context.
The above description is only for the purpose of illustrating the preferred embodiments of the one or more embodiments of the present disclosure, and is not intended to limit the scope of the one or more embodiments of the present disclosure, and any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the one or more embodiments of the present disclosure should be included in the scope of the one or more embodiments of the present disclosure.

Claims (9)

1. An audio data processing method, characterized in that the audio data processing method comprises: measuring the loading duration used in the process of transferring the audio data to be transmitted and played to the memory storage; when the loading duration reaches a preset duration, the audio data to be transmitted and played are not loaded into a memory storage of the computer equipment, so that the audio data to be transmitted and played are forcedly loaded into the memory storage of the computer equipment, and the forcedly loaded audio data to be transmitted and played are transmitted and played; the preset duration is less than the average playing switching duration of the audio data;
the method for acquiring the average time length of the playing switching of the audio data comprises the following steps: acquiring play switching duration of N pieces of audio data to be transmitted and played; dividing the sum of the playing switching time lengths of the N audio data to be transmitted and played by N to obtain the average playing switching time length of the audio data; wherein N is more than or equal to 1 and is a positive integer;
the playing switching duration of the audio data is equal to the sum of the playing duration of the audio data and the switching duration of the audio data, the playing duration of the audio data refers to the duration from the moment when the playing of the audio data starts to the moment when the playing of the audio data ends, and the switching duration of the audio data refers to the duration from the moment when the playing of the audio data ends to the moment when the playing of the audio data of the next audio data starts.
2. The audio data processing method according to claim 1, further comprising: and when the loading duration does not reach the preset duration and the audio data to be transmitted and played are loaded, transmitting and playing the loaded audio data to be transmitted and played.
3. The audio data processing method of claim 1, wherein N audio data to be transmitted and played are continuously transmitted and played, and the N audio data to be transmitted and played and the audio data to be transmitted and played are continuously transmitted and played.
4. The audio data processing method according to claim 1 or 2, characterized in that the audio data processing method further comprises: when the playing switching of the audio data to be transmitted and played is interrupted, measuring the loading duration of the audio data to be transmitted and played to be interrupted; and when the audio data to be transmitted and played are recovered to the play switching state from the interruption state, continuously measuring the loading duration of the audio data to be transmitted and played.
5. The audio data processing method according to claim 1 or 2, wherein the preset duration is less than an average duration of the audio data to be transmitted and played.
6. The audio data processing method of claim 5, wherein the method for obtaining the playing average duration of the audio data to be transmitted and played comprises: acquiring the playing time lengths of N audio data to be transmitted and played; dividing the sum of the playing time lengths of the N audio data to be transmitted and played by N to obtain the average playing time length of the audio data to be transmitted and played; wherein N is more than or equal to 1 and N is a positive integer.
7. The audio data processing method of claim 6, wherein N audio data to be transmitted and played are transmitted and played continuously, and the N audio data to be transmitted and played and the audio data to be transmitted and played are transmitted and played continuously.
8. A computer-readable storage medium, characterized in that an audio data processing program is stored thereon, which when executed by a processor implements the audio data processing method of any one of claims 1 to 7.
9. A computer device comprising a memory, a processor and an audio data processing program stored on the memory and executable on the processor, the audio data processing program when executed by the processor implementing the audio data processing method of any one of claims 1 to 7.
CN201910764966.5A 2019-08-19 2019-08-19 Audio data processing method, computer-readable storage medium, and computer device Active CN110505613B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910764966.5A CN110505613B (en) 2019-08-19 2019-08-19 Audio data processing method, computer-readable storage medium, and computer device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910764966.5A CN110505613B (en) 2019-08-19 2019-08-19 Audio data processing method, computer-readable storage medium, and computer device

Publications (2)

Publication Number Publication Date
CN110505613A CN110505613A (en) 2019-11-26
CN110505613B true CN110505613B (en) 2022-11-04

Family

ID=68588457

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910764966.5A Active CN110505613B (en) 2019-08-19 2019-08-19 Audio data processing method, computer-readable storage medium, and computer device

Country Status (1)

Country Link
CN (1) CN110505613B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112698809A (en) * 2021-01-08 2021-04-23 惠州Tcl移动通信有限公司 Music playing processing method, device, terminal and medium based on mobile terminal

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108182930A (en) * 2017-12-18 2018-06-19 福建星网视易信息系统有限公司 Sound effect treatment method, equipment and audio/video on-demand system
CN108882013A (en) * 2017-05-09 2018-11-23 北京鸿合智能系统有限公司 Adjust method, apparatus, electronic equipment and the storage medium of audio and video playing rate
CN109144463A (en) * 2018-08-14 2019-01-04 Oppo广东移动通信有限公司 Transfer control method, device and electronic equipment
CN109587521A (en) * 2017-09-29 2019-04-05 北京国双科技有限公司 The determination method and device of video cardton

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9880803B2 (en) * 2016-04-06 2018-01-30 International Business Machines Corporation Audio buffering continuity

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108882013A (en) * 2017-05-09 2018-11-23 北京鸿合智能系统有限公司 Adjust method, apparatus, electronic equipment and the storage medium of audio and video playing rate
CN109587521A (en) * 2017-09-29 2019-04-05 北京国双科技有限公司 The determination method and device of video cardton
CN108182930A (en) * 2017-12-18 2018-06-19 福建星网视易信息系统有限公司 Sound effect treatment method, equipment and audio/video on-demand system
CN109144463A (en) * 2018-08-14 2019-01-04 Oppo广东移动通信有限公司 Transfer control method, device and electronic equipment

Also Published As

Publication number Publication date
CN110505613A (en) 2019-11-26

Similar Documents

Publication Publication Date Title
US11055360B2 (en) Data write-in method and apparatus in a distributed file system
CN107610695B (en) Dynamic adjustment method for driver voice awakening instruction word weight
US10747959B2 (en) Dialog generation method, apparatus, and electronic device
JP2020509445A (en) Method and device for forming a blockchain consensus
US20160379140A1 (en) Weight benefit evaluator for training data
CN107277225B (en) Method and device for controlling intelligent equipment through voice and intelligent equipment
US9806795B2 (en) Automated earpiece cache management
CN110505613B (en) Audio data processing method, computer-readable storage medium, and computer device
CN109213468B (en) Voice playing method and device
CN115545002A (en) Method, device, storage medium and equipment for model training and business processing
CN109065080A (en) A kind of vehicle audio playback method and device
CN110018806A (en) A kind of method of speech processing and device
JP2009176200A (en) Data processing apparatus and mount method of logical drive
CN109992652A (en) A kind of information replying method, device, equipment and storage medium
CN109213560A (en) A kind of method and apparatus of information page presentation
US20200143800A1 (en) Audio Processing Method and Apparatus
CN111461328B (en) Training method of neural network
CN113282535A (en) Quantization processing method and device and quantization processing chip
CN112689152A (en) Scheduling method, scheduling device, electronic equipment and storage medium
CN107846697B (en) SRS scheduling method and system
CN112860758A (en) Search method, search device, electronic equipment and computer storage medium
CN110989940A (en) Migration method and migration device
US10218451B2 (en) Communication device for performing carrier search in TD-SCDMA system and method of controlling same
CN108459804B (en) Method and device for playing vehicle-mounted rearview mirror
CN111277976B (en) Information processing apparatus, information processing method, and program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant