[go: up one dir, main page]

CN106997300B - Software upgrading processing method and device and audio equipment - Google Patents

Software upgrading processing method and device and audio equipment Download PDF

Info

Publication number
CN106997300B
CN106997300B CN201710209381.8A CN201710209381A CN106997300B CN 106997300 B CN106997300 B CN 106997300B CN 201710209381 A CN201710209381 A CN 201710209381A CN 106997300 B CN106997300 B CN 106997300B
Authority
CN
China
Prior art keywords
audio data
playing
audio
target
cache
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.)
Expired - Fee Related
Application number
CN201710209381.8A
Other languages
Chinese (zh)
Other versions
CN106997300A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710209381.8A priority Critical patent/CN106997300B/en
Publication of CN106997300A publication Critical patent/CN106997300A/en
Application granted granted Critical
Publication of CN106997300B publication Critical patent/CN106997300B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44568Immediately runnable code
    • G06F9/44573Execute-in-place [XIP]
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44568Immediately runnable code
    • G06F9/44578Preparing or optimising for loading

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The embodiment of the invention discloses a software upgrading processing method, a device and audio equipment. The software upgrading processing method comprises the steps of acquiring the time length required by upgrading the playing application in the terminal in the audio data playing process, then determining the first audio data amount corresponding to the audio data to be played in the time length, acquiring the corresponding target audio data according to the first audio data amount and caching the target audio data to the local, so that the audio data cached locally can be continuously played in the audio data playing and upgrading process. The scheme can enable the audio equipment to buffer the audio data with enough data volume, and realize that the audio equipment can play the audio data uninterruptedly in the process of playing the application upgrade, thereby improving the continuity of audio playing.

Description

Software upgrading processing method and device and audio equipment
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a software upgrade processing method and apparatus, and an audio device.
Background
The intelligent sound box is a novel intelligent household appliance, and is in communication connection with playing Applications (APP) in terminals such as a smart phone through a connection wireless network, so that various instructions sent by the APP are received and executed, for example, playing, pausing playing, stopping playing music and the like.
Taking a smart phone as an example, the smart speaker is usually checked and controlled by an APP installed in the smart phone to play music. Under general conditions, the music in the APP can normally be played to smart sound box, and when the APP is upgrading can stop the sending of music data, then smart sound box can lead to the broadcast pause because of the music data in the APP can not be obtained continuously. Namely, the APP upgrade may cause the playing of the local music being played to be interrupted.
Disclosure of Invention
The embodiment of the invention provides a software upgrading processing method and device and audio equipment, which can improve the continuity of audio playing.
The embodiment of the invention provides a software upgrading processing method, which is applied to an audio playing system and comprises the following steps:
in the process of playing audio data, acquiring the time length required by the upgrading of playing application in the terminal;
determining a first audio data volume corresponding to the audio data needing to be played in the time length;
and acquiring corresponding target audio data according to the first audio data volume and caching the target audio data to the local so that the audio equipment can continuously play the locally cached audio data in the playing application upgrading process.
Correspondingly, an embodiment of the present invention provides a software upgrade processing apparatus, applied to an audio playing system, including:
the acquisition module is used for acquiring the time length required by the upgrading of the playing application in the terminal in the process of playing the audio data;
the determining module is used for determining a first audio data volume corresponding to the audio data needing to be played in the time length;
and the cache module is used for acquiring corresponding target audio data according to the first audio data amount and caching the target audio data to the local so that the audio equipment can continuously play the locally cached audio data in the playing application upgrading process.
Correspondingly, the embodiment of the invention also provides audio equipment, which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor realizes the software upgrading processing method when executing the computer program.
According to the software upgrading processing method provided by the embodiment of the invention, in the process of playing the audio data, the time length required by the upgrading of the playing application in the terminal is obtained, then the first audio data volume corresponding to the audio data to be played in the time length is determined, and then the corresponding target audio data is obtained according to the first audio data volume and cached to the local, so that the audio equipment can continuously play the locally cached audio data in the process of playing the audio data. The scheme can enable the audio equipment to buffer the audio data with enough data volume, and realize that the audio equipment can play the audio data uninterruptedly in the process of playing the application upgrade, thereby improving the continuity of audio playing.
Drawings
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic flow chart of a software upgrade processing method according to an embodiment of the present invention.
Fig. 2 is a schematic structural diagram of a software upgrade processing system according to an embodiment of the present invention.
Fig. 3 is a schematic view of an application scenario of the software upgrade processing method according to the embodiment of the present invention.
Fig. 4 is a schematic structural diagram of a software upgrade processing apparatus according to an embodiment of the present invention.
Fig. 5 is a schematic structural diagram of a software upgrade processing apparatus according to an embodiment of the present invention.
Fig. 6 is a schematic structural diagram of an audio device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides a software upgrading processing method and device and audio equipment. The details will be described below separately.
In a preferred embodiment, a software upgrade processing method is provided, which is applied to an audio playing system. As shown in fig. 1, the process may be as follows:
101. in the process of playing the audio data, the time length required by the upgrading of the playing application in the terminal is obtained.
The played audio data may be locally cached audio data. And the playback application may include various APPs that can play audio data, such as QQ music. The playing application can be installed in equipment such as an intelligent terminal and can be in communication connection with audio equipment through a wireless network, so that the playing application can push corresponding audio data to the audio equipment for playing.
In the embodiment of the present invention, there are various ways to obtain the time length required by the upgrade of the playing application. For example, when it is detected that the playing application receives the upgrade instruction, the terminal obtains the time length required for upgrading the playing application from the data server according to the current device information and the system information, and then sends the obtained time length to the audio device. The time length required by the upgrading of the playing application stored in the data server can be obtained by collecting the equipment information and the equipment upgrading time length required by the equipment upgrading of which the system information is consistent with the terminal, and then carrying out big data processing to obtain an average value.
In some embodiments, the length of time required to play the application upgrade may include the length of time required to download and install the upgrade file. In some embodiments, the time duration may also be the time duration from the time the playback application receives the upgrade order sent by the system to the time the installation is completed.
102. A first amount of audio data corresponding to the audio data to be played within the duration is determined.
For example, if the duration is 1min and 1min of audio data needs to be played, the data size of the audio data needs to be determined, and the data size is used as the first audio data size. Since the data amount is related to the code stream (i.e. the code rate) and the time, in some embodiments, the procedure of "determining the first audio data amount that needs to be played within the duration" may be as follows:
determining code stream information of currently played audio data;
and determining a first audio data volume needing to play the audio data according to the code stream information and the duration.
In some embodiments, the amount of data (M) is codestream (DR) time (T). For example, assuming that the code stream of the currently played audio data is 100KB/s and the time required for playing the application upgrade is 1min, the first audio data amount is calculated to be 6000KB (about 5.86 MB).
103. And acquiring corresponding target audio data according to the first audio data volume and caching the target audio data to the local so as to continuously play the locally cached audio data in the playing and application upgrading process.
Specifically, for insurance purposes, the audio data of the first audio data amount may be directly cached locally to the device, so that the playback application may be finished upgradably while playing the local audio data.
In some embodiments, to save network resources, it may be determined whether the data is already cached locally. And if the amount of the cached data is enough, the audio data is not cached any more. If the cache data amount is insufficient, only the audio data with the data amount different from the cache data amount is cached to the local equipment. That is, the step "obtaining corresponding target audio data according to the first audio data amount and caching the target audio data to the local" may include the following steps:
acquiring a second audio data volume of the current local cached initial audio data;
determining a third audio data volume to be acquired according to the second audio data volume and the first audio data volume;
and acquiring target audio data corresponding to the third audio data volume and caching the target audio data to the local.
Specifically, the third amount of audio data may be a difference between the first amount of audio data and the second amount of audio data. For example, if the required first audio data amount is 5.86MB and the locally cached second audio data amount is 2MB, 3.86MB of audio data needs to be acquired.
In practical applications, a piece of audio data may be formed by orderly arranging a plurality of data packets. Thus, in some embodiments, the initial audio data comprises an initial audio data packet; the process of "obtaining the target audio data corresponding to the third audio data amount and caching the target audio data to the local" in the step may be as follows:
determining a first data packet identifier of an initial audio data packet;
determining a second data packet identifier of a target data packet to be acquired according to the first data packet identifier and the third audio data volume;
and acquiring a corresponding target audio data packet according to the second data packet identifier, and caching the target audio data packet to the local as target audio data.
In particular, the packet identification may be used to distinguish between different audio packets. For example, a piece of audio data includes audio data packet 1, audio data packet 2, audio data packet 3, audio data packet 4, and audio data packet 5, the total audio data amount is 10MB, and the data amount of each audio data packet is 2 MB. Assuming that the audio device has locally cached audio data packet 1, i.e. the second audio data amount is 2MB, if the required first audio data amount is 5.86MB, at least 3.86MB of audio data needs to be acquired. Because the data in the data packet is not divisible, the data packet 2 and the data packet 3 which are needed to be taken as target data packets can be obtained according to the data volume 3.86 which needs to be acquired, and the target data packets are cached to the local device.
In some embodiments, when the buffering speed of the audio data is much greater than the playing speed of the audio data, the amount of the audio data played in the process of downloading the audio data can be ignored. When the network speed is low and the caching speed of the audio data is equivalent to the playing speed of the audio data, the amount of the audio data played in the process of downloading the audio data is not negligible. That is, the step of "obtaining the target audio data corresponding to the third audio data amount and caching the target audio data to the local" may include the following steps:
determining the caching speed of the current audio data;
calculating fourth audio data volume required to be acquired according to the third audio data volume, the cache speed and the code stream information of the currently played audio data;
and acquiring target audio data corresponding to the fourth audio data volume and caching the target audio data to the local.
Specifically, the sum of the third audio data amount and the audio data amount played during the buffering period is the total audio data amount (i.e. the fourth audio data amount) required to be buffered. For example, if the third audio data amount is M1, the buffer speed is V, the code stream information includes the code stream DR, and the fourth audio data amount is M2, the relationship: m1+ DR (M2/V) ═ M2. Since the parameters M1, DR, V, etc. are known, the value M1 × V/(V-DR) of the fourth amount of audio data M2 can be calculated.
In a specific implementation process, after the audio device acquires the target audio data, upgrade confirmation information can be sent to the terminal, so that the playing application starts to be upgraded. In this process, the audio device is always playing the local audio data. After the playing application is successfully upgraded, if the intelligent sound box finishes playing the cached audio data, the intelligent sound box can continue to send a data acquisition request to the terminal, so that the upgraded playing application pushes the audio data to the audio equipment to realize uninterrupted playing.
As can be seen from the above, in the process of playing audio data, a time duration required by the playing application in the terminal for upgrading is obtained, then a first audio data amount corresponding to the audio data to be played in the time duration is determined, and then corresponding target audio data is obtained according to the first audio data amount and cached locally, so that the locally cached audio data can be continuously played in the process of playing the audio data. The scheme can enable the audio equipment to buffer the audio data with enough data volume, and realize that the audio equipment can play the audio data uninterruptedly in the process of playing the application upgrade, thereby improving the continuity of audio playing.
In yet another preferred embodiment, a software upgrade processing system for an audio device is provided. Referring to fig. 2, the software upgrade processing system includes: a server 21, a terminal 22 and an audio device 23. The server 21, the terminal 22, and the audio device 23 may be connected to each other via a network.
The server 21 is configured to provide multimedia data to be played, and may be a data server, a web server, or other network devices.
The terminal 22 may be a smart terminal device such as a computer, smart phone, tablet computer, etc.
The audio device 23 may be a playing device controlled by the terminal 22, and the audio device 23 may be a playing device such as a smart speaker, a smart television, a smart phone, and a smart terminal with a playing function.
Another software upgrade processing method provided by the present invention will be described based on the above system.
Referring to fig. 3, the specific flow of the software upgrade processing method may be as follows:
301. and when the terminal detects the upgrading instruction of the playing application, acquiring the current first time stamp and writing the current first time stamp into a local file of the terminal.
The playback application may include various APPs that can play audio data, such as QQ music, among others. The playing application can be installed in equipment such as an intelligent terminal and can be in communication connection with audio equipment through a wireless network, so that the playing application can push corresponding audio data to the audio equipment for playing.
302. The terminal sends a duration acquisition request to the server, and the duration acquisition request carries the terminal identifier and the application identifier.
The terminal identifier may include a device identifier and a system identifier. The Equipment Identity may be an IMEI number (International Mobile Equipment Identity). The system identifier may be a version number of the terminal operating system (e.g., Android 6.0).
303. And the server acquires corresponding duration information according to the duration acquisition request and returns the duration information to the terminal.
The server can determine the device type and the current operating system of the terminal according to the device identifier, and acquire corresponding duration information from the database according to the information. The time length information of the upgrading of the playing application stored in the server can be obtained by collecting the equipment information and the equipment with the system information consistent with the terminal, upgrading the time length required by the upgrading of the playing application, and then averaging through big data processing.
In some embodiments, the duration information may include a duration required to download and install the upgrade file. In some embodiments, the time duration information may also be the time duration from the time the playing application receives the upgrade instruction sent by the system to the time the installation is completed.
304. And the terminal sends the received duration information to the audio equipment in a playing state.
In this embodiment, the present scheme is described in detail by taking the audio device in the playing state as an example.
305. And the audio equipment determines the first audio data volume needing to play the audio data according to the received time length information.
In some embodiments, the duration information includes a duration. For example, if the duration is 1min and 1min of audio data needs to be played, the data size of the audio data needs to be determined, and the data size is used as the first audio data size. Since the data amount is related to the code stream (i.e. the code rate) and the time, in some embodiments, the procedure of "determining the first audio data amount that needs to be played within the duration" may be as follows:
determining code stream information of currently played audio data;
and determining a first audio data volume needing to play the audio data according to the code stream information and the duration.
306. The audio equipment requests data from the terminal based on the first audio data volume, acquires corresponding target audio data, caches the target audio data to the local equipment, and continuously plays the cached audio data.
Specifically, for the sake of insurance, the audio data of the first audio data amount may be directly cached to the local device, so that when the local audio data is played, the playing application in the terminal may be finished in an upgradable manner.
In some embodiments, to save network resources, it may be determined whether the data is already cached locally. And if the amount of the cached data is enough, the audio data is not cached any more. If the cache data amount is insufficient, only the audio data with the data amount different from the cache data amount is cached to the local equipment. That is, the step "request data from the terminal based on the first audio data amount, obtain corresponding target audio data and cache the target audio data to the local device" may include the following steps:
acquiring a second audio data volume of the current local cached initial audio data;
determining a third audio data volume to be acquired according to the second audio data volume and the first audio data volume;
and acquiring target audio data corresponding to the third audio data volume and caching the target audio data to the local.
Specifically, the third amount of audio data may be a difference between the first amount of audio data and the second amount of audio data.
In practical applications, a piece of audio data may be formed by orderly arranging a plurality of data packets. Thus, in some embodiments, the initial audio data comprises an initial audio data packet; the process of "obtaining the target audio data corresponding to the third audio data amount and caching the target audio data to the local" in the step may be as follows:
determining a first data packet identifier of an initial audio data packet;
determining a second data packet identifier of a target data packet to be acquired according to the first data packet identifier and the third audio data volume;
and acquiring a corresponding target audio data packet according to the second data packet identifier, and caching the target audio data packet to the local as target audio data.
In some embodiments, when the buffering speed of the audio data is much greater than the playing speed of the audio data, the amount of the audio data played in the process of downloading the audio data can be ignored. When the network speed is low and the caching speed of the audio data is equivalent to the playing speed of the audio data, the amount of the audio data played in the process of downloading the audio data is not negligible. That is, the step of "obtaining the target audio data corresponding to the third audio data amount and caching the target audio data to the local" may include the following steps:
determining the caching speed of the current audio data;
calculating fourth audio data volume required to be acquired according to the third audio data volume, the cache speed and the code stream information of the currently played audio data;
and acquiring target audio data corresponding to the fourth audio data volume and caching the target audio data to the local.
Specifically, the sum of the third audio data amount and the audio data amount played during the buffering period is the total audio data amount (i.e. the fourth audio data amount) required to be buffered.
307. And the audio equipment sends upgrading confirmation information to the terminal so that the terminal upgrades the playing application according to the upgrading confirmation information.
Specifically, after the target audio data is cached locally to the audio device, the playing application may be notified to perform the upgrade. In this process, the audio device is always playing the local audio data.
308. And the terminal upgrades the playing application, acquires the current second timestamp and writes the current second timestamp into the local when the playing application is upgraded.
309. And the terminal obtains the upgrading time length of the playing application according to the first time stamp and the second time stamp and sends the upgrading time length to the server.
Specifically, the upgrade duration may be a time difference between the first timestamp and the second timestamp.
In practical application, after the playing application is successfully upgraded, if the intelligent sound box finishes playing the cached audio data, the intelligent sound box can continue to send a data acquisition request to the terminal, so that the upgraded playing application pushes the audio data to the audio equipment, and uninterrupted playing is realized.
310. The server correspondingly processes the received upgrading time length and updates the time length information corresponding to the playing application according to the processing result.
Specifically, the server may call the originally stored terminal identifier and the sample upgrade duration corresponding to the application identifier, perform averaging processing with the received upgrade duration sent by the terminal to obtain an average upgrade duration, and update the duration information corresponding to the playing application according to the average duration.
As can be seen from the above, in the process of playing audio data by an audio device, a time length required by the playing application in a terminal for upgrading is obtained, then a first audio data volume corresponding to the audio data to be played in the time length is determined, and then corresponding target audio data is obtained according to the first audio data volume and cached locally, so that the locally cached audio data can be continuously played in the process of playing the audio data by the audio device. The scheme can enable the audio equipment to buffer the audio data with enough data volume, and realize that the audio equipment can play the audio data uninterruptedly in the process of playing the application upgrade, thereby improving the continuity of audio playing.
In another embodiment of the present invention, a software upgrade processing apparatus is further provided, where the software upgrade processing apparatus may be integrated in an audio device in the form of software or hardware, and the audio device may specifically include a mobile phone, a smart television, a smart sound box, and other devices. As shown in fig. 4, the software upgrade processing apparatus 400 may include an obtaining module 41, a determining module 42, and a caching module 43, wherein:
an obtaining module 41, configured to obtain a duration required by upgrading a playing application in a terminal during a process of playing audio data;
a determining module 42, configured to determine a first audio data amount corresponding to the audio data to be played in the duration;
and the cache module 43 is configured to obtain corresponding target audio data according to the first audio data amount and cache the target audio data locally, so that the locally cached audio data can be continuously played in the playing application upgrading process.
In some embodiments, the determining module 42 is configured to determine code stream information of currently played audio data; and determining a first audio data volume of the audio data to be played according to the code stream information and the duration.
In some embodiments, referring to fig. 5, the caching module 43 may include an obtaining submodule 431, a determining submodule 432, and a caching submodule 433, wherein:
the obtaining submodule 431 is configured to obtain a second audio data amount of the current locally cached initial audio data;
the determining submodule 432 is configured to determine, according to the second audio data amount and the first audio data amount, a third audio data amount that needs to be obtained;
and the cache submodule 433 is configured to obtain target audio data corresponding to the third audio data volume and cache the target audio data locally.
In some embodiments, the initial audio data comprises an initial audio data packet;
the cache submodule is used for determining a first data packet identifier of the initial audio data packet; determining a second data packet identifier of a target data packet to be acquired according to the first data packet identifier and the third audio data volume; and acquiring a corresponding target audio data packet according to the second data packet identifier, and caching the target audio data packet to the local as target audio data.
In some embodiments, the buffer sub-module is configured to determine a buffer speed of the current audio data; calculating fourth audio data volume required to be acquired according to the third audio data volume, the cache speed and the code stream information of the currently played audio data; and acquiring target audio data corresponding to the fourth audio data volume and caching the target audio data to the local.
As can be seen from the above, in the process of playing audio data, the software upgrade processing apparatus according to the embodiments of the present invention obtains a duration required by upgrading a playing application in a terminal, then determines a first audio data amount corresponding to the audio data to be played in the duration, and then obtains corresponding target audio data according to the first audio data amount and caches the target audio data to the local, so that the locally cached audio data can be continuously played in the process of upgrading the playing application. The scheme can enable the audio equipment to buffer the audio data with enough data volume, and realize that the audio equipment can play the audio data uninterruptedly in the process of playing the application upgrade, thereby improving the continuity of audio playing.
In another embodiment of the present invention, an audio device is further provided, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements any one of the software upgrade processing methods described above when executing the computer program.
For example, referring to fig. 6, the audio device 500 may include a communication module 51, a memory 52 including one or more computer-readable storage media, and one or more speakers 54, a processor 55 including one or more processing cores, an audio circuit 53, and a power supply 56. Those skilled in the art will appreciate that the audio device configuration shown in fig. 6 does not constitute a limitation of the audio device and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components.
The communication module 51 can be used for receiving and transmitting signals during the process of transmitting and receiving information. In particular, the communication module 51 receives signals transmitted by the terminal and passes the data acquisition request to one or more processors 55 for processing. Meanwhile, the communication module 51 transmits a feedback signal transmitted from the processor 55 to the terminal.
The memory 52 may be used to store software programs and modules. The processor 55 executes various functional applications and data processing by executing software programs and modules stored in the memory 52. The memory 52 may include a storage data area that may store data created from use of the audio device 500 (e.g., an audio data cache), and the like.
The audio circuit 53 may convert the audio data buffered in the memory 52 into an electric signal, transmit the electric signal to the speaker 54, and convert the electric signal into a sound signal by the speaker 54 to output.
The speaker 54 is one of the weakest components in the audio device 500 and is one of the most important components for audio effects. The audio frequency electric energy makes the paper cone or the diaphragm vibrate and generate resonance (resonance) with the surrounding air through electromagnetic, piezoelectric or electrostatic effect to make sound. The speaker 54 is a wide variety of types, and is structurally divided into a coil type (electrodynamic type), a capacitor type (electrostatic type), a piezoelectric type (crystal or ceramic), an electromagnetic type (compression spring type), an ionic type, and a pneumatic type speaker according to an transduction mechanism, and the electrodynamic type speaker has the advantages of good electroacoustic performance, firm structure, low cost, and the like, and is widely applied. According to the sound radiation material, the loudspeaker is divided into a basin type loudspeaker, a horn type loudspeaker and a diaphragm type loudspeaker; the paper cone is divided into a circle, an ellipse, double paper cones and an eraser folded ring according to the shape of the paper cone. According to working frequency, it is divided into bass, middle-pitch and high-pitch, and also into special-purpose recorder, special-purpose TV set, ordinary and high-fidelity loudspeaker, etc.. Dividing low impedance and high impedance according to the impedance of the voice coil; according to the effect, the sound is divided into direct radiation, ambient sound and the like.
The speakers 54 are classified into an internal speaker and an external speaker, and the external speaker is generally referred to as a sound box. The built-in speaker is a speaker built in a player such as MP 4. For example, the speaker 54 in the embodiment of the present invention may be used to convert an electrical signal corresponding to audio data into an acoustic signal for output.
The processor 55 is a control center of the audio device 500, connects various parts of the entire audio device 500 using various interfaces and lines, performs various functions and processes data by operating or executing modules stored in the memory 52, and calling up data stored in the memory 52, thereby performing overall monitoring of the audio device 500.
The audio device 500 also includes a power source 56 (such as a battery) to power the various components. Preferably, the power supply 56 may be logically connected to the processor 55 through a power management system, so as to manage charging, discharging, and power consumption management functions through the power management system. The power source 56 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Although not shown, the audio device 500 may also include a wireless fidelity module, a bluetooth module, and the like.
Specifically, in this embodiment, the processor 55 in the audio device 500 loads the executable file corresponding to the process of one or more application programs into the memory 52 according to the following instructions, and the processor 55 runs the modules stored in the memory 52, so as to implement various functions:
in the process of playing audio data, acquiring the time length required by the upgrading of playing application in the terminal; determining a first audio data volume corresponding to the audio data needing to be played in the time length; and acquiring corresponding target audio data according to the first audio data volume and caching the target audio data to the local so as to continuously play the locally cached audio data in the playing application upgrading process.
As can be seen from the above, in the audio device provided in the embodiment of the present invention, in the process of playing audio data, a time length required for upgrading a playing application in a terminal is obtained, then a first audio data amount corresponding to the audio data to be played in the time length is determined, and then corresponding target audio data is obtained according to the first audio data amount and cached locally, so that the locally cached audio data can be continuously played in the process of upgrading the playing application. The scheme can enable the audio equipment to buffer the audio data with enough data volume, and realize that the audio equipment can play the audio data uninterruptedly in the process of playing the application upgrade, thereby improving the continuity of audio playing.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable storage medium, and the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disk, and the like.
The use of the terms "a" and "an" and "the" and similar referents in the context of describing the concepts of the invention (especially in the context of the following claims) are to be construed to cover both the singular and the plural. Moreover, unless otherwise indicated herein, recitation of ranges of values herein is merely intended to serve as a shorthand method of referring individually to each separate value falling within the range, unless otherwise indicated herein, and each separate value is incorporated into the specification as if it were individually recited herein. In addition, the steps of all methods described herein can be performed in any suitable order unless otherwise indicated herein or otherwise clearly contradicted by context. The present invention is not limited to the order of steps described. The use of any and all examples, or exemplary language (e.g., "such as") provided herein, is intended merely to better illuminate the inventive concept and does not pose a limitation on the scope of the inventive concept unless otherwise claimed. Various modifications and adaptations will be apparent to those skilled in the art without departing from the spirit and scope.
The software upgrade processing method, device and audio device provided by the embodiment of the present invention are described in detail above, a specific example of an application program in the present disclosure explains the principle and implementation manner of the present invention, and the description of the above embodiment is only used to help understanding the method and core idea of the present invention; meanwhile, for those skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application program, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1.一种软件升级处理方法,应用于音频播放系统,其特征在于,包括:1. a software upgrade processing method, applied to an audio playback system, is characterized in that, comprising: 在播放音频数据的过程中,获取终端中的播放应用升级所需时长;In the process of playing audio data, obtain the time duration required for the upgrade of the playing application in the terminal; 确定在所述时长内对应需要播放音频数据的第一音频数据量,包括:确定当前所播音频数据的码流信息;根据所述码流信息和所述时长确定需要播放音频数据的第一音频数据量;Determining the first audio data volume corresponding to the audio data that needs to be played within the duration includes: determining the code stream information of the currently played audio data; determining the first audio data that needs to be played according to the code stream information and the duration The amount of data; 根据所述第一音频数据量获取对应的目标音频数据并缓存至本地,以便在所述播放应用升级过程中可持续播放本地缓存的音频数据。Corresponding target audio data is acquired according to the first audio data amount and cached locally, so that the locally cached audio data can be played continuously during the upgrade process of the playback application. 2.如权利要求1所述的软件升级处理方法,其特征在于,根据所述第一音频数据量获取对应的目标音频数据并缓存至本地的步骤包括:2. The software upgrade processing method according to claim 1, wherein the step of acquiring corresponding target audio data according to the first audio data volume and buffering to the local comprises: 获取当前本地已缓存的初始音频数据的第二音频数据量;obtaining the second audio data volume of the currently locally cached initial audio data; 根据所述第二音频数据量和所述第一音频数据量,确定需要获取的第三音频数据量;According to the second audio data amount and the first audio data amount, determine the third audio data amount to be acquired; 获取所述第三音频数据量对应的目标音频数据并缓存至本地。The target audio data corresponding to the third audio data amount is acquired and cached locally. 3.如权利要求2所述的软件升级处理方法,其特征在于,所述初始音频数据包括初始音频数据包;3. The software upgrade processing method according to claim 2, wherein the initial audio data comprises an initial audio data packet; 获取所述第三音频数据量对应的目标音频数据并缓存至本地的步骤包括:The step of acquiring the target audio data corresponding to the third audio data volume and buffering it locally includes: 确定所述初始音频数据包的第一数据包标识;determining the first data packet identifier of the initial audio data packet; 根据所述第一数据包标识和所述第三音频数据量,确定需要获取的目标数据包的第二数据包标识;According to the first data packet identifier and the third audio data volume, determine the second data packet identifier of the target data packet that needs to be acquired; 根据所述第二数据包标识获取对应的目标音频数据包,并将所述目标音频数据包作为目标音频数据缓存至本地。Acquire a corresponding target audio data packet according to the second data packet identifier, and cache the target audio data packet locally as target audio data. 4.如权利要求2所述的软件升级处理方法,其特征在于,所述获取所述第三音频数据量对应的目标音频数据并缓存至本地的步骤包括:4. software upgrade processing method as claimed in claim 2, it is characterised in that the described acquisition of the target audio data corresponding to the third audio data volume and buffering to the local step comprises: 确定当前音频数据的缓存速度;Determine the cache speed of the current audio data; 根据所述第三音频数据量、所述缓存速度以及当前所播音频数据的码流信息,计算需要获取的第四音频数据量;Calculate the fourth audio data amount to be acquired according to the third audio data amount, the cache speed and the code stream information of the currently broadcast audio data; 获取第四音频数据量对应的目标音频数据并缓存至本地。Acquire the target audio data corresponding to the fourth audio data amount and cache it locally. 5.一种软件升级处理装置,其特征在于,包括:5. A software upgrade processing device, characterized in that, comprising: 获取模块,用于在播放音频数据的过程中,获取终端中的播放应用升级所需时长;an obtaining module, used for obtaining the time duration required for the upgrade of the playing application in the terminal during the process of playing the audio data; 确定模块,用于确定在所述时长内对应需要播放音频数据的第一音频数据量;具体用于确定当前所播音频数据的码流信息;根据所述码流信息和所述时长确定需要播放音频数据的第一音频数据量;A determination module, used for determining the first audio data volume corresponding to the audio data that needs to be played within the duration; specifically for determining the code stream information of the currently broadcast audio data; determining the need to play according to the code stream information and the duration a first audio data amount of audio data; 缓存模块,用于根据所述第一音频数据量获取对应的目标音频数据并缓存至本地,以便在所述播放应用升级过程可持续播放本地缓存的音频数据。A cache module, configured to acquire the corresponding target audio data according to the first audio data amount and cache it locally, so that the locally cached audio data can be played continuously during the playback application upgrade process. 6.如权利要求5所述的软件升级处理装置,其特征在于,所述缓存模块包括:6. The software upgrade processing device according to claim 5, wherein the cache module comprises: 获取子模块,用于获取当前本地已缓存的初始音频数据的第二音频数据量;Obtaining a submodule for obtaining the second audio data volume of the current local cached initial audio data; 确定子模块,用于根据所述第二音频数据量和所述第一音频数据量,确定需要获取的第三音频数据量;Determining submodule for determining the third audio data volume to be acquired according to the second audio data volume and the first audio data volume; 缓存子模块,用于获取所述第三音频数据量对应的目标音频数据并缓存至本地。A cache sub-module, configured to acquire the target audio data corresponding to the third audio data amount and cache it locally. 7.如权利要求6所述的软件升级处理装置,其特征在于,所述初始音频数据包括初始音频数据包;7. The software upgrade processing device according to claim 6, wherein the initial audio data comprises an initial audio data packet; 所述缓存子模块,用于确定所述初始音频数据包的第一数据包标识;根据所述第一数据包标识和所述第三音频数据量,确定需要获取的目标数据包的第二数据包标识;根据所述第二数据包标识获取对应的目标音频数据包,并将所述目标音频数据包作为目标音频数据缓存至本地。The cache submodule is used to determine the first data packet identifier of the initial audio data packet; according to the first data packet identifier and the third audio data volume, determine the second data of the target data packet that needs to be acquired Packet identification; obtain the corresponding target audio data packet according to the second data packet identification, and cache the target audio data packet locally as target audio data. 8.如权利要求6所述的软件升级处理装置,其特征在于,所述缓存子模块,用于确定当前音频数据的缓存速度;根据所述第三音频数据量、所述缓存速度以及当前所播音频数据的码流信息,计算需要获取的第四音频数据量;获取第四音频数据量对应的目标音频数据并缓存至本地。8. The software upgrade processing device according to claim 6, wherein the cache submodule is used to determine the cache speed of the current audio data; according to the third audio data volume, the cache speed and the current The code stream information of the broadcast audio data is calculated, and the fourth audio data amount to be acquired is calculated; the target audio data corresponding to the fourth audio data amount is acquired and cached locally. 9.一种音频设备,其特征在于,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如权利要求1-4任一项所述的软件升级处理方法。9. An audio device, characterized in that it comprises a memory, a processor and a computer program stored on the memory and running on the processor, the processor implementing the computer program as claimed in the claims The software upgrade processing method described in any one of 1-4. 10.一种存储介质,其存储有计算机程序,其中,所述计算机程序使得计算机执行如权利要求1至4任一项所述的方法。10. A storage medium storing a computer program, wherein the computer program causes a computer to perform the method according to any one of claims 1 to 4.
CN201710209381.8A 2017-03-31 2017-03-31 Software upgrading processing method and device and audio equipment Expired - Fee Related CN106997300B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710209381.8A CN106997300B (en) 2017-03-31 2017-03-31 Software upgrading processing method and device and audio equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710209381.8A CN106997300B (en) 2017-03-31 2017-03-31 Software upgrading processing method and device and audio equipment

Publications (2)

Publication Number Publication Date
CN106997300A CN106997300A (en) 2017-08-01
CN106997300B true CN106997300B (en) 2020-04-10

Family

ID=59434504

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710209381.8A Expired - Fee Related CN106997300B (en) 2017-03-31 2017-03-31 Software upgrading processing method and device and audio equipment

Country Status (1)

Country Link
CN (1) CN106997300B (en)

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8539535B2 (en) * 2009-11-30 2013-09-17 Time Warner Cable Enterprises Llc Methods and apparatus for supporting VOD requests in a system with hierarchical content stores
CN104038846B (en) * 2013-03-05 2018-03-09 华为技术有限公司 Buffer status method of estimation and equipment
CN103796076A (en) * 2014-03-03 2014-05-14 联想(北京)有限公司 Data processing method and corresponding media playing device and playing control device
CN105100685A (en) * 2014-05-06 2015-11-25 中兴通讯股份有限公司 Wireless video processing method and device, media server, and monitoring terminal and system
CN104080012B (en) * 2014-06-30 2018-04-03 广东欧珀移动通信有限公司 A kind of control method of more playback equipments, apparatus and system
CN104639647A (en) * 2015-02-12 2015-05-20 广东欧珀移动通信有限公司 A speaker upgrading method and device
CN105389183B (en) * 2015-11-04 2019-02-01 Oppo广东移动通信有限公司 Method and device corresponding to application version and smart speaker software version
CN106294827A (en) * 2016-08-17 2017-01-04 合网络技术(北京)有限公司 The caching method of multimedia resource and device

Also Published As

Publication number Publication date
CN106997300A (en) 2017-08-01

Similar Documents

Publication Publication Date Title
CN108922537B (en) Audio recognition method, device, terminal, earphone and readable storage medium
CN108550367A (en) A kind of portable intelligent interactive voice control device, method and system
CN108430003A (en) Sound effect compensation method and device, readable storage medium and terminal
CN107025121B (en) Software upgrade method, device and electronic device
CN104867513B (en) Play control method and device
CN108737648B (en) Music volume adaptive adjustment method, device, storage medium and terminal
WO2017166603A1 (en) Sound quality adjustment method, terminal, electronic device, and non-volatile computer storage medium
CN103391473A (en) Methods and devices for providing and acquiring audios and videos
CN106095387A (en) A terminal sound effect setting method and terminal
CN110958298B (en) Wireless audio playing device and wireless internet audio playing method thereof
CN104506991A (en) Method and device for reminding information
WO2022242528A1 (en) Volume adjustment method and terminal device
CN104079542A (en) Information processing method and device management server
CN110502184B (en) Data storage method, data reading method, device and system
CN106997301B (en) Software upgrading method and device and electronic device
CN106997300B (en) Software upgrading processing method and device and audio equipment
CN113793625B (en) Audio playback method and device
CN116982025A (en) Automatic over-the-air firmware update for wireless audio playback devices
CN105682010B (en) Bluetooth connection control method and device in audio playing system and playing equipment
CN106970815A (en) Audio software upgrade method and device, audio playback device
CN108391208B (en) Signal switching method, device, terminal, earphone, and computer-readable storage medium
CN113542976B (en) Control method, device and readable storage medium
CN107018021B (en) Software upgrading processing method and device and terminal
CN108684028B (en) Audio playing device adaptation method based on ble and Bluetooth audio receiver
CN117177135B (en) Audio processing method and electronic equipment

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200410