CN107018021B - Software upgrading processing method, device and terminal - Google Patents

Software upgrading processing method, device and terminal Download PDF

Info

Publication number
CN107018021B
CN107018021B CN201710208224.5A CN201710208224A CN107018021B CN 107018021 B CN107018021 B CN 107018021B CN 201710208224 A CN201710208224 A CN 201710208224A CN 107018021 B CN107018021 B CN 107018021B
Authority
CN
China
Prior art keywords
audio
audio data
target audio
target
frequency
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
CN201710208224.5A
Other languages
Chinese (zh)
Other versions
CN107018021A (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 CN201710208224.5A priority Critical patent/CN107018021B/en
Publication of CN107018021A publication Critical patent/CN107018021A/en
Application granted granted Critical
Publication of CN107018021B publication Critical patent/CN107018021B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention discloses a kind of software upgrading processing method, device and terminals.The software upgrading processing method, by upgrading when, inquiry playback progress using by currently playing audio data section be used as target audio data segment, and determine broadcasting target audio data segment target audio equipment.Then, other audio frequency apparatuses into audio frequency broadcast system in addition to target audio equipment send upgrade file, so that other audio frequency apparatuses are upgraded.When target audio data segment finishes playing, whether inquiry audio frequency broadcast system upgrades completion.If not completing, using next audio data section of currently playing audio data section as target audio data segment, and the operation for determining the target audio equipment for playing the target audio data segment is executed.The program is sent to audio frequency apparatus that audio plays other non-playing audio-fequency data sections in target audio device plays audio data section, by upgrade file to upgrade, and improves the whole updating speed of audio frequency broadcast system.

Description

Software upgrading processing method, device and terminal
Technical field
The present invention relates to field of communication technology more particularly to a kind of software upgrading processing methods, device and terminal.
Background technique
Intelligent sound box is a kind of novel intelligent appliance equipment, by the connection terminals such as wireless network and smart phone Play application (APP) establish communication connection, thus receives and execute APP transmission various instructions, for example, play, pause broadcasting, Stop playing music etc..Multiple intelligent sound boxes may make up a sound box system, can be high according to the tone of audio when playing audio It is low, audio is played using the speaker frequency-division section of different performance, to reach best result of broadcast.For example, high-pitched sound box plays high pitch The audio of frequency range, middle sound box with sound play the audio of middle pitch frequency range, and woofer plays the audio etc. of bass frequency range.
Generally, it when sound box system upgrades, needs to suspend audio and plays the upgrading that can just carry out sound box system.This side Formula needs that updating operation just can be performed when sound box system does not play audio, upgrade sound box system can not in time, leads to speaker System upgrade speed is slower.
Summary of the invention
The embodiment of the present invention provides a kind of software upgrading processing method, device and terminal, can propose the upgrading of audio frequency apparatus Speed.
The embodiment of the present invention provides a kind of software upgrading processing method, is applied to audio frequency broadcast system, which plays system System includes multiple audio frequency apparatuses, is respectively used to play the audio data section of different acoustic characteristics, which comprises
When detecting upgrade command, inquiry playback progress using by currently playing audio data section as target audio data Section;
Determine the target audio equipment for playing the target audio data segment;
Other audio frequency apparatuses into audio frequency broadcast system in addition to target audio equipment send upgrade file, so that other Audio frequency apparatus is upgraded;
When the target audio data segment finishes playing, whether inquiry audio frequency broadcast system upgrades completion;
If not completing, using next audio data section of currently playing audio data section as target audio data segment, And execute the step of determining the target audio equipment for playing the target audio data segment.
Correspondingly, the embodiment of the invention provides a kind of software upgrading processing units, are applied to audio frequency broadcast system, the sound Frequency play system includes multiple audio frequency apparatuses, is respectively used to play the audio data section of different acoustic characteristics, described device includes:
Enquiry module when for detecting upgrade command, inquires playback progress to make currently playing audio data section For target audio data segment;
Determining module, for determining the target audio equipment for playing the target audio data segment;
Sending module sends upgrading for other audio frequency apparatuses into audio frequency broadcast system in addition to target audio equipment File, so that other audio frequency apparatuses are upgraded;
Judgment module, for when the target audio data segment finishes playing, whether inquiry audio frequency broadcast system to have upgraded At;
Switching module, if upgrading is not completed for audio frequency broadcast system, with the next of currently playing audio data section Audio data section makes determining module determine that the target audio for playing the target audio data segment is set as target audio data segment It is standby.
Correspondingly, the embodiment of the invention provides a kind of terminal, including memory, processor and it is stored in the memory Computer program that is upper and can running on the processor, the processor is realized above-mentioned when executing the computer program Software upgrading processing method.
Software upgrading processing method provided in an embodiment of the present invention when by detecting upgrade command, inquires playback progress Currently playing audio data section as target audio data segment, and is determined the target sound for playing the target audio data segment Frequency equipment.Then, other audio frequency apparatuses into audio frequency broadcast system in addition to target audio equipment send upgrade file, so that Other audio frequency apparatuses are upgraded.When the target audio data segment finishes playing, whether inquiry audio frequency broadcast system has upgraded At.If not completing, using next audio data section of currently playing audio data section as target audio data segment, and execute Determine the operation for playing the target audio equipment of the target audio data segment.The program can use the not unisonance of audio data section Upgrade file is sent to other temporarily non-playing audio-fequency datas in target audio device plays audio data section by frequency characteristic The audio frequency apparatus of section improves the whole updating speed of audio frequency broadcast system to be upgraded.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 is a kind of flow diagram of software upgrading processing method provided in an embodiment of the present invention.
Fig. 2 is a kind of structural schematic diagram of audio frequency broadcast system provided in an embodiment of the present invention.
Fig. 3 is a kind of application scenarios schematic diagram of software upgrading processing method provided in an embodiment of the present invention.
Fig. 4 is a kind of structural schematic diagram of software upgrading processing unit provided in an embodiment of the present invention.
Fig. 5 is another structural schematic diagram of software upgrading processing unit provided in an embodiment of the present invention.
Fig. 6 is a kind of structural schematic diagram of terminal provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those skilled in the art's every other implementation obtained without creative efforts Example, shall fall within the protection scope of the present invention.
The embodiment of the present invention provides a kind of software upgrading processing method, device and terminal.It will carry out respectively specifically below It is bright.
In a preferred embodiment, a kind of software upgrading processing method is provided, audio frequency broadcast system is applied to, which broadcasts Place system includes multiple audio frequency apparatuses, is respectively used to play the audio data section of different acoustic characteristics.As shown in Figure 1, process can With as follows:
101, when detecting upgrade command, inquiry playback progress using by currently playing audio data section as target audio Data segment.
Wherein, which is the upgrade command that audio plays system.
In some embodiments, before detecting upgrade command, this method can also include:
Determine audio data to be played;
Audio data is parsed, to obtain the acoustic characteristic of the audio data;
The audio data is in turn divided into multiple audio data sections according to acoustic characteristic.
Specifically, which can characterize the height that audio data corresponds to the vibration frequency of shoo, such as high Sound characteristic, middle pitch characteristic and bass characteristic etc..Wherein, the data volume of each audio data section can be identical, can not also phase Together.When the data volume of each audio data section is identical, the audio data section divided can be data packet one by one.
In implementation process, data segment identification can be set for each audio data section.It, then can be according to audio in upgrading The playback progress of data determines corresponding data segment identification.Then, corresponding audio data is determined according to the data segment identification Section, and using the audio data section as target audio data segment.
102, the target audio equipment for playing the target audio data segment is determined.
In the embodiment of the present invention, determine target audio equipment mode can there are many.It optionally, can be according to audio data The acoustic characteristic selection correspondence of section need to play the audio frequency apparatus of the audio data section.That is, step " determines and plays the target audio The target audio equipment of data segment " may include:
Determine the acoustic characteristic of the target audio data segment;
According to the acoustic characteristic of the target audio data segment, the target audio for playing the target audio data segment is determined Equipment.
In specific implementation process, above-mentioned audio data to be played can be decoded in advance, obtain PCM (Pulse Code Modulation, pulse code modulation) data.The corresponding spectrum information of the information extraction according to entrained by PCM data. To determine the acoustic characteristic of different audio data sections according to the spectrum information, and mark the audio of every section audio data segment special Property.
In some embodiments, the acoustic characteristic of audio data can specifically show as the frequency letter of corresponding shoo Breath.Therefore, target audio equipment can be determined from audio frequency broadcast system according to frequency information.That is, step is " according to the target The acoustic characteristic of audio data section determines the target audio equipment for playing the target audio data segment " it may include as follows Process:
Determine that the target audio data segment corresponds to the vibration frequency of audio signal according to acoustic characteristic;
Obtain the pitch information of the corresponding playable audio signal of each audio frequency apparatus in audio frequency broadcast system;
According to pitch information and vibration frequency, the target audio equipment for playing the target audio data segment is determined.
Specifically, the device identification of each audio frequency apparatus and institute's installing firmware in available audio frequency broadcast system Type, to determine the corresponding play property of the audio frequency apparatus.Then, obtaining each audio frequency apparatus correspondence according to the play property can The pitch information of playing audio signal.
The pitch information of the corresponding vibration frequency of target audio data segment, audio-frequence player device is compared, is compared Relatively result.It determines from audio frequency broadcast system further according to comparison result and is set for playing the target audio of the target audio data segment It is standby.
In some embodiments, pitch information may include frequency separation;
Then step " according to pitch information and vibration frequency, determines the target audio for playing the target audio data segment Equipment " may include following below scheme:
Judge whether vibration frequency is in frequency separation;
If so, determining that the corresponding audio frequency apparatus of the frequency separation is the target sound for playing the target audio data segment Frequency equipment.
Generally, the sound that vibration frequency is more than 5kHz can be known as high pitch frequency range sound, vibration frequency is arrived for 1kHz Sound between 5kHz is known as middle pitch frequency range sound, and the sound by vibration frequency lower than 1kHz is known as bass frequency range sound.Specifically Frequency range division need to be depending on the actual conditions of audio frequency apparatus.
Such as, it is assumed that there are five speaker A, speaker B, speaker C, speaker D and speaker E audios to set in audio frequency broadcast system It is standby, speaker A be high-pitched sound box (i.e. f > 5kHz), speaker B, speaker C be middle sound box with sound (i.e. 1kHz≤f≤5kHz), speaker D, Speaker E is woofer (i.e. f < 1kHz).If the corresponding vibration frequency of target audio data is 4kHz, can determine needs to play The target audio equipment of the target audio data is that frequency separation be in the audio frequency apparatus between 1kHz to 5kHz, i.e. speaker B with Speaker C.
103, other audio frequency apparatuses into audio frequency broadcast system in addition to target audio equipment send upgrade file, so that Other audio frequency apparatuses are upgraded.
Specifically, when target audio equipment is when playing target audio data segment, other audio frequency apparatuses are in idle condition (i.e. non-broadcast state).At this point, other audio frequency apparatuses can use free time to receive upgrade file.
It in some embodiments, can be according to the liter of other current audio frequency apparatuses in order to avoid upgrade file repeats to send Grade progress, to determine the upgrade file for needing to send.That is, step is " into audio frequency broadcast system in addition to target audio equipment Other audio frequency apparatuses send upgrade file " may include:
Inquire the upgrading progress of other audio frequency apparatuses in audio frequency broadcast system in addition to target audio equipment;
Corresponding upgrade file is sent to other audio frequency apparatuses according to the upgrading progress.
For example, upgrade file total amount of data is 512M, according to the upgrading text for upgrading progress queries existing 100M into speaker A Part then can determine the breakpoint of file according to the upgrade file of the 100M, and generate file identification.Then, according to this document mark The upgrade file for knowing the corresponding not sent part of selection gives speaker A.
In practical application, if a certain audio frequency apparatus has received complete upgrade file, the audio frequency apparatus is being determined not When needing playing audio-fequency data section, the installation operation of upgrade file can be performed, to be upgraded.
104, when the target audio data segment finishes playing, judge whether audio frequency broadcast system upgrades completion;If so, knot Line journey;If it is not, executing step 105.
Specifically, it can determine whether audio frequency broadcast system upgrades completion according to the upgrading progress of each audio frequency apparatus.When and It is only completed when all audio frequency apparatuses in audio frequency broadcast system upgrade, just can determine that audio frequency broadcast system upgrading is completed.If upgrading It completes, then can terminate process.
105, using next audio data section of currently playing audio data section as target audio data segment, and step is executed Rapid 102.
In the embodiment of the present invention, each audio data section has according to the dividing condition for treating playing audio-fequency data before Play out to sequence.Specifically, when audio frequency broadcast system does not upgrade completion, using next audio data section as target sound frequency It according to section, and determines the target audio equipment for playing the target audio data segment, continues cycling through operation, until entire audio plays system System completes upgrading.
For example, still to have five speaker A, speaker B, speaker C, speaker D and speaker E audio frequency apparatuses in audio frequency broadcast system For.Speaker A is high-pitched sound box, and speaker B, speaker C are middle sound box with sound, and speaker D, speaker E are woofer.
Then, it when speaker A plays the audio data section of high pitch frequency range, is sent to speaker B, speaker C, speaker D and speaker E Upgrade file;
When speaker B, speaker C play the audio data section of middle pitch frequency range, sends and rise to speaker A, speaker D and speaker E Grade file;
When speaker C, speaker D play the audio data section of bass frequency range, sends and rise to speaker A, speaker B and speaker C Grade file.
And so on, until all audio frequency apparatuses receive complete upgrade file, and after completing upgrading, terminate process.
From the foregoing, it will be observed that the embodiment of the invention provides a kind of software upgrading processing methods, when by detecting upgrade command, Inquire playback progress using by currently playing audio data section be used as target audio data segment, and determine broadcasting the target sound frequency According to the target audio equipment of section.Then, other audio frequency apparatuses into audio frequency broadcast system in addition to target audio equipment are sent Upgrade file, so that other audio frequency apparatuses are upgraded.When the target audio data segment finishes playing, inquiry audio plays system Whether system upgrades completion.If not completing, using next audio data section of currently playing audio data section as target audio Data segment, and execute the operation for determining the target audio equipment for playing the target audio data segment.The program can use audio Upgrade file is sent to other temporarily in target audio device plays audio data section by the different acoustic characteristics of data segment The audio frequency apparatus of non-playing audio-fequency data section improves the whole updating speed of audio frequency broadcast system to be upgraded.
In a further preferred embodiment, a kind of audio frequency broadcast system is provided.With reference to Fig. 2, which includes: end End 21 and audio frequency apparatus group 22.It can be connected with each other by network between the terminal 21 and audio frequency apparatus 22.
Wherein, terminal 21 can be the intelligent terminals such as computer, smart phone, tablet computer.
Audio frequency apparatus group 22 may include multiple audio frequency apparatuses, can be respectively used to play the audio data of different acoustic characteristics Section.In practical application, audio frequency apparatus can have the intelligent terminal of playing function for intelligent sound box, smart television, smart phone Equal playback equipments.
It will be based on above-mentioned audio frequency broadcast system below, include speaker A, speaker B and speaker C with the audio frequency apparatus group 22 For, another software upgrading processing method provided by the invention is described in detail.With reference to Fig. 3, detailed process can be as Under:
301, when terminal detects upgrade command, inquiry playback progress using by currently playing audio data section as target Audio data section.
In upgrading, then corresponding data segment identification can be determined according to the playback progress of audio data.Then, according to The data segment identification determines corresponding audio data section, and using the audio data section as target audio data segment.
In the present embodiment, sound that vibration frequency is more than 5kHz is set as high pitch frequency range sound, is 1kHz by vibration frequency It is middle pitch frequency range sound to the sound between 5kHz, the sound by vibration frequency lower than 1kHz is bass frequency range sound.
Be set in audio frequency apparatus group, speaker A be high-pitched sound box (i.e. f>5kHz), speaker B be middle sound box with sound (i.e. 1kHz< =f≤5kHz), speaker C be woofer (i.e. f < 1kHz).
In the following, will be high audio segment data by target audio data segment, for target audio equipment is speaker A, phase be carried out Close description.
302, terminal determines the acoustic characteristic of the target audio data segment.
In some embodiments, it may be predetermined that then audio data to be played solves the audio data Analysis, to obtain the acoustic characteristic of the audio data.The audio data is in turn divided into multiple audio numbers further according to acoustic characteristic It according to section, and can be that data segment identification is arranged in each audio data section based on the acoustic characteristic.
Later, the acoustic characteristic of target audio data segment can be determined according to the Data Identification.
Wherein, which can characterize the height that audio data corresponds to the vibration frequency of shoo, such as high pitch Characteristic, middle pitch characteristic and bass characteristic etc..
In specific implementation process, above-mentioned audio data to be played can be decoded in advance, obtain PCM data.Root According to the corresponding spectrum information of information extraction entrained by PCM data.To determine different audio data sections according to the spectrum information Acoustic characteristic, and mark the acoustic characteristic of every section audio data segment.
303, terminal is determined according to the acoustic characteristic of the target audio data segment for playing the target audio data segment Target audio equipment.
In some embodiments, the acoustic characteristic of audio data can specifically show as the frequency letter of corresponding shoo Breath.Therefore, target audio equipment can be determined from audio frequency apparatus group according to the frequency information.That is, step is " according to the target The acoustic characteristic of audio data section determines the target audio equipment for playing the target audio data segment " it may include as follows Process:
Determine that the target audio data segment corresponds to the vibration frequency of audio signal according to acoustic characteristic;
Obtain the pitch information of the corresponding playable audio signal of each audio frequency apparatus in audio frequency apparatus group;
According to pitch information and vibration frequency, the target audio equipment for playing the target audio data segment is determined.
Specifically, the device identification of each audio frequency apparatus and the class of institute's installing firmware in available audio frequency apparatus group Type, to determine the corresponding play property of the audio frequency apparatus.Then, obtaining each audio frequency apparatus correspondence according to the play property can broadcast Put the pitch information of audio signal.
The pitch information of the corresponding vibration frequency of target audio data segment, audio-frequence player device is compared, is compared Relatively result.It determines from audio frequency apparatus group further according to comparison result and is set for playing the target audio of the target audio data segment It is standby.
In some embodiments, pitch information may include frequency separation;
Then step " according to pitch information and vibration frequency, determines the target audio for playing the target audio data segment Equipment " may include following below scheme:
Judge whether vibration frequency is in frequency separation;
If so, determining that the corresponding audio frequency apparatus of the frequency separation is the target sound for playing the target audio data segment Frequency equipment.
Specifically, it when determining target data frequency range is the audio data section of high pitch frequency range, determines for playing the target The target audio equipment of audio data section is speaker A;
When determining target data frequency range is the audio data section of middle pitch frequency range, determine for playing the target audio data The target audio equipment of section is speaker B;
When determining target data frequency range is the audio data section of bass frequency range, determine for playing the target audio data The target audio equipment of section is speaker C.
304, other audio frequency apparatuses of terminal into audio frequency apparatus group in addition to target audio equipment send upgrade file.
It in some embodiments, can be according to other current audio frequency apparatus (i.e. sounds in order to avoid upgrade file repeats to send Case B and speaker C) upgrading progress, to determine the upgrade file that sends of needs.That is, step " removes mesh into audio frequency broadcast system Other audio frequency apparatuses other than mark audio frequency apparatus send upgrade file " may include:
Inquire the upgrading progress of other audio frequency apparatuses in audio frequency apparatus group in addition to target audio equipment;
Corresponding upgrade file is sent to other audio frequency apparatuses according to the upgrading progress.
For example, upgrade file total amount of data is 512M, according to the upgrading text for upgrading progress queries existing 100M into speaker B Part then can determine the breakpoint of file according to the upgrade file of the 100M, and generate file identification.Then, according to this document mark The upgrade file for knowing the corresponding not sent part of selection gives speaker B.
In practical application, if a certain audio frequency apparatus has received complete upgrade file, the audio frequency apparatus is being determined not When needing playing audio-fequency data section, the installation operation of upgrade file can be performed, to be upgraded.
305, target audio device plays target audio data, while other audio frequency apparatuses receive the upgrading text that terminal is sent Part.
Specifically, when target audio equipment (speaker A) is when playing target audio data segment, other audio frequency apparatuses (speaker B It is in idle condition with speaker C).At this point, other audio frequency apparatuses (speaker B and speaker C) can use free time to receive and rise Grade file.
306, when the target audio data segment finishes playing, upgrading progress is sent to terminal by audio frequency apparatus group.
Specifically, audio frequency apparatus detects upgrading progress, and the information containing the upgrading progress is sent to terminal.
307, terminal judges whether audio frequency apparatus group upgrades completion according to upgrading progress;If completing, terminate process;If not complete At execution step 308.
Upgrade and if only if all audio frequency apparatuses in audio frequency apparatus group and complete, just can determine that audio frequency apparatus group has upgraded At.If upgrading is completed, process can be terminated.
308, terminal is using next audio data section of currently playing audio data section as target audio data segment, and holds Row step 302.
In the embodiment of the present invention, each audio data section has according to the dividing condition for treating playing audio-fequency data before Play out to sequence.Specifically, when audio frequency apparatus group does not upgrade completion, using next audio data section as target audio data Section, and determine the target audio equipment for playing the target audio data segment, operation is continued cycling through, until entire audio frequency apparatus group is complete At upgrading.
For example, audio data to be played is in turn divided into six data segments of a, b, c, d, e, f according to acoustic characteristic.Number According to section a, data segment d be high band audio data section, data segment b, data segment f are Mid Frequency audio data section, data segment c, number It is low-frequency range frequency domain audio data according to section e.
Assuming that currently playing audio data section is data segment a, then when audio frequency apparatus group does not upgrade completion, by data segment B is as target audio data segment.Then, it can be determined according to the acoustic characteristic of data segment b for playing data segment b Target audio equipment be speaker B.Other audio frequency apparatuses (speaker A and speaker C) into audio frequency apparatus group send upgrading text again Part.When data segment b finishes playing, upgrading progress is sent to end by speaker A, speaker B and speaker C in audio frequency apparatus group End, to judge whether that upgrading is completed.
It can be detected in speaker A at this time and have part upgrade file, have complete audio file in speaker B, in speaker C There is no upgrade file.
Therefore, it is judged to not upgrading completion, then is determined according to section for playing the number using data segment c as number of targets audio Target audio equipment according to section c is speaker C.
And so on, it can be detected in speaker A and still have a part upgrade file, speaker B is completed upgrading, in speaker C There is complete upgrade file.
Therefore, it is judged to not upgrading completion, then using data segment d as target audio data segment, determines for playing the number Target audio equipment according to section d is speaker A.
And so on, it can be detected in speaker A and have complete upgrade file, upgrading is completed in speaker B, and speaker C is complete At upgrading.
Therefore, it is judged to not upgrading completion, then is determined according to section for playing the number using data segment e as number of targets audio Target audio equipment according to section e is speaker C.
And so on, speaker A can be detected and upgraded completion, upgrading is completed in speaker B, and upgrading is completed in speaker C.
At this point, determining that sound-box device group completes upgrading, process can be terminated.
From the foregoing, it will be observed that the embodiment of the invention provides a kind of software upgrading processing method, by the way that in upgrading, inquiry is played Progress is as target audio data segment, and to determine the target for playing target audio data segment for currently playing audio data section Audio frequency apparatus.Then, other audio frequency apparatuses into audio frequency apparatus group in addition to target audio equipment send upgrade file, so that Other audio frequency apparatuses are upgraded.When target audio data segment finishes playing, whether inquiry audio frequency apparatus group upgrades completion.If It does not complete, then using next audio data section of currently playing audio data section as target audio data segment, and executes determination Play the operation of the target audio equipment of the target audio data segment.The program is in target audio device plays audio data section When, upgrade file is sent to audio frequency apparatus that audio plays other non-playing audio-fequency data sections to upgrade, improves sound The whole updating speed of frequency equipment group.
In still another embodiment of the process, a kind of software upgrading processing unit is also provided, which can It is integrated in the terminal in the form of software or hardware, which can specifically include mobile phone, tablet computer, laptop etc. and set It is standby.As shown in figure 4, the software upgrading processing unit 400, is applied to audio frequency broadcast system, which includes multiple Audio frequency apparatus is respectively used to play the audio data section of different acoustic characteristics;The device 400 may include enquiry module 41, really Cover half block 42, sending module 43, judgment module 44 and switching module 45, in which:
Enquiry module 41 when for detecting upgrade command, inquires playback progress with by currently playing audio data section As target audio data segment;
Determining module 42, for determining the target audio equipment for playing the target audio data segment;
Sending module 43 sends for other audio frequency apparatuses into audio frequency broadcast system in addition to target audio equipment and rises Grade file, so that other audio frequency apparatuses are upgraded;
Judgment module 44, for when the target audio data segment finishes playing, whether inquiry audio frequency broadcast system to upgrade It completes;
Switching module 45, if upgrading is not completed for audio frequency broadcast system, under currently playing audio data section One audio data section makes determining module 42 determine the target sound for playing the target audio data segment as target audio data segment Frequency equipment.
With reference to Fig. 5, in some embodiments, which can also include obtaining module 46, parsing module 47 and dividing Module 48;
Module 46 is obtained, for before detecting upgrade command, obtaining audio data to be played;
Parsing module 47, for being parsed to the audio data, to obtain the acoustic characteristic of the audio data;
Division module 48, for the audio data to be in turn divided into multiple audio data sections according to acoustic characteristic.
In some embodiments, determining module 42 can be used for:
Determine the acoustic characteristic of the target audio data segment;
The target audio equipment for playing the target audio data segment is determined according to acoustic characteristic.
With continued reference to Fig. 5, in some embodiments, determining module 42 may include that frequency determines submodule 421, obtains son Module 422 and equipment determine submodule 423;
Frequency determines submodule 421, for the acoustic characteristic according to the target audio data segment, determines the target sound frequency The vibration frequency of audio signal is corresponded to according to section;
Acquisition submodule 422, for obtaining the corresponding playable audio signal of each audio frequency apparatus in audio frequency broadcast system Pitch information;
Equipment determines submodule 423, for determining for playing the target sound frequency according to pitch information and vibration frequency According to the target audio equipment of section.
In some embodiments, pitch information includes frequency separation;Equipment determines that submodule 423 can be used for:
Judge whether vibration frequency is in frequency separation;
If so, determining that the corresponding audio frequency apparatus of the frequency separation is the target sound for playing the target audio data segment Frequency equipment.
With continued reference to Fig. 5, in some embodiments, sending module 43 may include
Submodule 431 is inquired, the liter of other audio frequency apparatuses in audio frequency broadcast system in addition to target audio equipment is inquired Grade progress;
Sending submodule 432, for sending corresponding upgrade file to other audio frequency apparatuses according to upgrading progress.
From the foregoing, it will be observed that the embodiment of the invention provides a kind of software upgrading processing units, when by detecting upgrade command, Inquire playback progress using by currently playing audio data section be used as target audio data segment, and determine broadcasting the target sound frequency According to the target audio equipment of section.Then, other audio frequency apparatuses into audio frequency broadcast system in addition to target audio equipment are sent Upgrade file, so that other audio frequency apparatuses are upgraded.When the target audio data segment finishes playing, inquiry audio plays system Whether system upgrades completion.If not completing, using next audio data section of currently playing audio data section as target audio Data segment, and execute the operation for determining the target audio equipment for playing the target audio data segment.The program can use audio Upgrade file is sent to other temporarily in target audio device plays audio data section by the different acoustic characteristics of data segment The audio frequency apparatus of non-playing audio-fequency data section improves the whole updating speed of audio frequency broadcast system to be upgraded.
A kind of terminal is also provided in still another embodiment of the process, including memory, processor and storage are on a memory And the computer program that can be run on a processor, the processor realize any of the above-described software upgrading when executing the computer program Processing method.
The terminal can be but be not limited to mobile terminal, be retouched in detail by taking mobile terminal as an example to the terminal below It states.
For example, referring to FIG. 6, the mobile terminal 500 may include radio frequency (RF, Radio Frequency) circuit 501, It includes one or more the memory 502 of computer readable storage medium, input module 503, display module 504, pass Sensor 505, Wireless Fidelity (WiFi, Wireless Fidelity) module 507, includes one or one at voicefrequency circuit 506 The components such as the processor 508 and power supply 509 of a above processing core.It will be understood by those skilled in the art that being shown in Fig. 6 Mobile terminal structure do not constitute the restriction to mobile terminal, may include than illustrating more or fewer components or group Close certain components or different component layouts.
Radio circuit 501 can be used for receiving and sending messages or communication process in signal send and receive, particularly, by base station Downlink information receive after, transfer to one or more than one processor 508 processing;In addition, the data for being related to uplink are sent To base station.
Memory 502 can be used for storing software program and module.Processor 508 is stored in memory 502 by operation Software program and module, thereby executing various function application and data processing.Memory 502 can mainly include storage journey Sequence area and storage data area, wherein storing program area can (such as the sound of application needed for storage program area, at least one function Sound playing function, image player function etc.) etc.;Storage data area, which can be stored, uses created data according to mobile terminal (such as audio data, phone directory etc.) etc..
Input module 503 can be used for receiving the number or character information of input, and generate and user setting and function Control related keyboard, mouse, operating stick, optics or trackball signal input.
Display module 504 can be used for showing information input by user or the information and mobile terminal that are supplied to user Various graphical user interface, these graphical user interface can be made of figure, text, icon, video and any combination thereof. For example, the display module 504 can when background application receives new information, for the new information the application application icon The middle corresponding footmark of display.
Mobile terminal may also include at least one sensor 505, such as gravity sensor, motion sensor and other biographies Sensor.
Voicefrequency circuit 506 can provide the audio interface between user and mobile terminal by loudspeaker, microphone.Audio-frequency electric The audio data received can be converted into electric signal by road 506, be transferred to loudspeaker, and it is defeated to be converted to voice signal by loudspeaker Out;On the other hand, the voice signal of collection is converted to electric signal by microphone, is converted to audio after being received by voicefrequency circuit 506 Data, then by after the processing of audio data output processor 508, such as another mobile terminal is sent to through radio circuit 501, or Person exports audio data to memory 502 to be further processed.
Wireless Fidelity (WiFi) belongs to short range wireless transmission technology, and mobile terminal can be with by wireless fidelity module 507 Help user to send and receive e-mail, browse webpage and access streaming video etc., it provides wireless broadband internet for user Access.
Processor 508 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection A part by running or execute the software program and/or module that are stored in memory 502, and calls and is stored in storage Data in device 502 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.It can Choosing, processor 508 may include one or more processing cores;Preferably, processor 508 can integrate application processor and modulation Demodulation processor, wherein the main processing operation system of application processor, user interface and application etc., modem processor master Handle wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 508.
Mobile terminal further includes the power supply 509 (such as battery) powered to all parts.Preferably, power supply can pass through electricity Management system and processor 508 are logically contiguous, to realize management charging, electric discharge and power consumption by power-supply management system The functions such as management.Power supply 509 can also include one or more direct current or AC power source, recharging system, power supply event Hinder the random components such as detection circuit, power adapter or inverter, power supply status indicator.
Although being not shown, mobile terminal can also packet bluetooth module, camera etc..
Specifically in the present embodiment, processor 508 in mobile terminal can according to following instruction, by one or one with On the corresponding executable file of process of application be loaded into memory 502, and run by processor 508 and be stored in storage Application in device 502, to realize various functions:
When detecting upgrade command, inquiry playback progress using by currently playing audio data section as target sound frequency According to section, and determine the target audio equipment for playing the target audio data segment.Then, target audio is removed into audio frequency broadcast system Other audio frequency apparatuses other than equipment send upgrade file, so that other audio frequency apparatuses are upgraded.In the target audio data When section finishes playing, whether inquiry audio frequency broadcast system upgrades completion.If not completing, with currently playing audio data section Next audio data section executes the target audio equipment for determining and playing the target audio data segment as target audio data segment The step of.
From the foregoing, it will be observed that when detecting upgrade command, inquiry plays the terminal the embodiment of the invention provides a kind of terminal Progress is as target audio data segment, and to determine the mesh for playing the target audio data segment for currently playing audio data section Mark audio frequency apparatus.Then, other audio frequency apparatuses into audio frequency broadcast system in addition to target audio equipment send upgrade file, So that other audio frequency apparatuses are upgraded.When the target audio data segment finishes playing, whether inquiry audio frequency broadcast system is risen Grade is completed.If not completing, using next audio data section of currently playing audio data section as target audio data segment, and Execute the operation for determining the target audio equipment for playing the target audio data segment.The program can use audio data section not Upgrade file is sent to other and does not play audio temporarily by same acoustic characteristic in target audio device plays audio data section The audio frequency apparatus of data segment improves the whole updating speed of audio frequency broadcast system to be upgraded.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can It is completed with instructing relevant hardware by program, which can be stored in a computer readable storage medium, storage Medium may include: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD etc..
Term " one " and " described " and similar word have been used during describing idea of the invention (especially In the appended claims), it should be construed to not only cover odd number by these terms but also cover plural number.In addition, unless herein In be otherwise noted, otherwise herein narration numberical range when referred to merely by quick method and belong to the every of relevant range A independent value, and each independent value is incorporated into this specification, just as these values have individually carried out statement one herein Sample.In addition, unless otherwise stated herein or context has specific opposite prompt, otherwise institute described herein is methodical Step can be executed by any appropriate order.Change of the invention is not limited to the step of description sequence.Unless in addition Advocate, is otherwise all only using any and all example or exemplary language presented herein (for example, " such as ") Idea of the invention is better described, and not the range of idea of the invention limited.Spirit and model are not being departed from In the case where enclosing, those skilled in the art becomes readily apparent that a variety of modifications and adaptation.
It is provided for the embodiments of the invention a kind of control method for playing back above and device is described in detail, herein A specific example illustrates the principle and implementation of the invention for application program, the explanation of above example is only intended to It facilitates the understanding of the method and its core concept of the invention;Meanwhile for those skilled in the art, according to the thought of the present invention, There will be changes in specific embodiment and range of applications, in conclusion the content of the present specification should not be construed as Limitation of the present invention.

Claims (13)

1. a kind of software upgrading processing method is applied to audio frequency broadcast system, which includes multiple audio frequency apparatuses, It is respectively used to play the audio data section of different acoustic characteristics, which is characterized in that the described method includes:
When detecting upgrade command, inquiry playback progress using by currently playing audio data section as target audio data segment;
Determine the target audio equipment for playing the target audio data segment;
Other audio frequency apparatuses into audio frequency broadcast system in addition to target audio equipment send upgrade file, so that other audios Equipment is upgraded;
When the target audio data segment finishes playing, whether inquiry audio frequency broadcast system upgrades completion;
If not completing, using next audio data section of the currently playing audio data section as target audio data segment, And execute the step of determining the target audio equipment for playing the target audio data segment.
2. software upgrading processing method as described in claim 1, which is characterized in that described before detecting upgrade command Method further include:
Determine audio data to be played;
The audio data is parsed, to obtain the acoustic characteristic of the audio data;
The audio data is in turn divided into multiple audio data sections according to the acoustic characteristic.
3. software upgrading processing method as described in claim 1, which is characterized in that determine and play the target audio data segment The step of target audio equipment includes:
Determine the acoustic characteristic of the target audio data segment;
The target audio equipment for playing the target audio data segment is determined according to the acoustic characteristic.
4. software upgrading processing method as claimed in claim 3, which is characterized in that determined according to the acoustic characteristic for broadcasting The step of putting the target audio equipment of the target audio data segment include:
Determine that the target audio data segment corresponds to the vibration frequency of audio signal according to the acoustic characteristic;
Obtain the pitch information of the corresponding playable audio signal of each audio frequency apparatus in audio frequency broadcast system;
According to the pitch information and the vibration frequency, determination is set for playing the target audio of the target audio data segment It is standby.
5. software upgrading processing method as claimed in claim 4, which is characterized in that the pitch information includes frequency separation;
According to the pitch information and the vibration frequency, the target audio equipment for playing the target audio data segment is determined The step of include:
Judge whether the vibration frequency is in the frequency separation;
If so, determining that the corresponding audio frequency apparatus of the frequency separation is to set for playing the target audio of the target audio data segment It is standby.
6. software upgrading processing method as described in any one in claim 1-5, which is characterized in that removed into audio frequency broadcast system Other audio frequency apparatuses other than target audio equipment send the step of upgrade file and include:
Inquire the upgrading progress of other audio frequency apparatuses in audio frequency broadcast system in addition to target audio equipment;
Corresponding upgrade file is sent to other described audio frequency apparatuses according to the upgrading progress.
7. a kind of software upgrading processing unit is applied to audio frequency broadcast system, which includes multiple audio frequency apparatuses, It is respectively used to play the audio data section of different acoustic characteristics, which is characterized in that described device includes:
Enquiry module, when for detecting upgrade command, inquiry playback progress using by currently playing audio data section as mesh Mark audio data section;
Determining module, for determining the target audio equipment for playing the target audio data segment;
Sending module sends upgrading text for other audio frequency apparatuses into audio frequency broadcast system in addition to target audio equipment Part, so that other audio frequency apparatuses are upgraded;
Judgment module, for when the target audio data segment finishes playing, whether inquiry audio frequency broadcast system to upgrade completion;
Switching module, if upgrading is not completed for audio frequency broadcast system, with the next of the currently playing audio data section Audio data section makes determining module determine that the target audio for playing the target audio data segment is set as target audio data segment It is standby.
8. software upgrading processing unit as claimed in claim 7, which is characterized in that described device further include:
Module is obtained, for before detecting upgrade command, obtaining audio data to be played;
Parsing module, for being parsed to the audio data, to obtain the acoustic characteristic of the audio data;
Division module, for the audio data to be in turn divided into multiple audio data sections according to the acoustic characteristic.
9. software upgrading processing unit as claimed in claim 7, which is characterized in that the determining module is used for:
Determine the acoustic characteristic of the target audio data segment;
The target audio equipment for playing the target audio data segment is determined according to the acoustic characteristic.
10. software upgrading processing unit as claimed in claim 9, which is characterized in that the determining module includes:
Frequency determines submodule, for determining that the target audio data segment corresponds to the vibration of audio signal according to the acoustic characteristic Frequency;
Acquisition submodule, for obtaining the pitch letter of the corresponding playable audio signal of each audio frequency apparatus in audio frequency broadcast system Breath;
Equipment determines submodule, for determining for playing the target audio according to the pitch information and the vibration frequency The target audio equipment of data segment.
11. software upgrading processing unit as claimed in claim 10, which is characterized in that the pitch information includes frequency zones Between;The equipment determines that submodule is used for:
Judge whether the vibration frequency is in the frequency separation;
If so, determining that the corresponding audio frequency apparatus of the frequency separation is to set for playing the target audio of the target audio data segment It is standby.
12. such as the described in any item software upgrading processing units of claim 7-11, which is characterized in that the sending module is used In:
Inquire submodule, for inquire the upgradings of other audio frequency apparatuses in audio frequency broadcast system in addition to target audio equipment into Degree;
Sending submodule, for sending corresponding upgrade file to other described audio frequency apparatuses according to the upgrading progress.
13. a kind of terminal, which is characterized in that including memory, processor and be stored on the memory and can be at the place The computer program run on reason device, the processor are realized when executing the computer program such as any one of claim 1-6 The software upgrading processing method.
CN201710208224.5A 2017-03-31 2017-03-31 Software upgrading processing method, device and terminal Active CN107018021B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710208224.5A CN107018021B (en) 2017-03-31 2017-03-31 Software upgrading processing method, device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710208224.5A CN107018021B (en) 2017-03-31 2017-03-31 Software upgrading processing method, device and terminal

Publications (2)

Publication Number Publication Date
CN107018021A CN107018021A (en) 2017-08-04
CN107018021B true CN107018021B (en) 2019-06-14

Family

ID=59445828

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710208224.5A Active CN107018021B (en) 2017-03-31 2017-03-31 Software upgrading processing method, device and terminal

Country Status (1)

Country Link
CN (1) CN107018021B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109032558B (en) * 2018-07-23 2021-08-17 Oppo广东移动通信有限公司 Sound production control method and device, electronic device and computer readable medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101094229B (en) * 2007-07-24 2012-12-19 深圳市融创天下科技股份有限公司 Increment upgrading method for networked application programs
CN102257528A (en) * 2008-10-20 2011-11-23 贝阳奥林公司 A method and system for accounting for download transactions and social network interaction
US20110069934A1 (en) * 2009-09-24 2011-03-24 Electronics And Telecommunications Research Institute Apparatus and method for providing object based audio file, and apparatus and method for playing back object based audio file
CN104639647A (en) * 2015-02-12 2015-05-20 广东欧珀移动通信有限公司 Loudspeaker box upgrading method and loudspeaker box upgrading device
CN105072553B (en) * 2015-08-31 2018-06-05 三星电子(中国)研发中心 The audio amplifying method and device of stereo set
CN105554548A (en) * 2015-12-08 2016-05-04 深圳Tcl数字技术有限公司 Audio data output method and device
CN205754721U (en) * 2016-06-08 2016-11-30 视讯联合科技股份有限公司 Multifunction module formula audio amplifier

Also Published As

Publication number Publication date
CN107018021A (en) 2017-08-04

Similar Documents

Publication Publication Date Title
CN108924805B (en) Bluetooth connection method, medium, first electronic device, second electronic device and computing device
CN107025120B (en) Software upgrading processing method and device and terminal
CN106970816B (en) Software upgrading processing method and device and audio playing equipment
CN107025121B (en) Software upgrading method and device and electronic device
CN106997302A (en) Firmware upgrade method, device and audio-frequence player device
CN106328176B (en) A kind of method and apparatus generating song audio
CN105337822B (en) A kind of selection method and relevant device of main playback equipment
CN105072146A (en) Music information sharing method and device
CN106095385A (en) A kind of audio method to set up and mobile terminal
CN108922528A (en) Method and apparatus for handling voice
CN111372159A (en) Earphone play control method and earphone
CN108377290A (en) A kind of audio stream processing method and mobile terminal and medium product
CN112188342B (en) Equalization parameter determining method, apparatus, electronic device and storage medium
CN106887244B (en) Audio switching method and device
CN110166819A (en) A kind of method, apparatus, terminal and system playing multimedia resource
CN109510636A (en) Receive test method, device, medium and the equipment of FM signal function
CN108833216A (en) Voice broadcasting method and device
CN108882015A (en) Recall the broadcasting speed method of adjustment and relevant device of video
CN104427641A (en) Cloud sound box
CN107018021B (en) Software upgrading processing method, device and terminal
CN107018192B (en) Upgrade method, device and the audio-frequence player device of audio frequency broadcast system
EP3553650B1 (en) Multimedia data playback method and terminal device
CN108281142A (en) A kind of requesting songs method and system
CN207966489U (en) A kind of requesting songs system
CN107015830B (en) Method and device for upgrading audio playing system and audio playing 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

Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant before: Guangdong OPPO Mobile Communications Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant