CN105279193B - File processing method and device - Google Patents

File processing method and device Download PDF

Info

Publication number
CN105279193B
CN105279193B CN201410351393.0A CN201410351393A CN105279193B CN 105279193 B CN105279193 B CN 105279193B CN 201410351393 A CN201410351393 A CN 201410351393A CN 105279193 B CN105279193 B CN 105279193B
Authority
CN
China
Prior art keywords
subfiles
resampling
sound file
group
file
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
CN201410351393.0A
Other languages
Chinese (zh)
Other versions
CN105279193A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201410351393.0A priority Critical patent/CN105279193B/en
Publication of CN105279193A publication Critical patent/CN105279193A/en
Application granted granted Critical
Publication of CN105279193B publication Critical patent/CN105279193B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to a file processing method and a device, wherein the method comprises the following steps: acquiring a sound file, slicing the sound file, and separating the sound file into different subfiles; resampling each subfile by using different sampling rates to generate subfiles with different sampling rates; and binding the subfiles with different sampling rates according to the program calling sequence to form a related group. According to the invention, through the differentiated sampling rate of the single sound file, the occupation of the single sound file on the system capacity and the memory can be reduced.

Description

File processing method and device
Technical Field
The present invention relates to the field of audio processing technologies, and in particular, to a method and an apparatus for processing a sound file.
Background
Currently, when processing sound files used in various terminal applications (such as games), different sampling rates can only be adopted for different sound files, so as to meet the requirements of optimizing the occupied capacity and memory of the files. However, since only a fixed single sampling rate can be used for a single sound file, the occupied capacity and the memory volume of the sound file are still large.
Disclosure of Invention
The embodiment of the invention provides a file processing method and a file processing device, which are used for reducing the occupation of a sound file on system capacity and a memory.
The embodiment of the invention provides a file processing method, which comprises the following steps:
acquiring a sound file, slicing the sound file, and separating the sound file into different subfiles;
resampling each subfile by using different sampling rates to generate subfiles with different sampling rates;
and binding the subfiles with different sampling rates according to a program calling sequence to form a related group.
An embodiment of the present invention further provides a file processing apparatus, including:
the slicing module is used for acquiring a sound file, slicing the sound file and separating the sound file into different subfiles;
the first resampling module is used for resampling each subfile by using different sampling rates to generate subfiles with different sampling rates;
and the association module is used for binding the subfiles with different sampling rates according to the program calling sequence to form an association group.
The file processing method and the file processing device provided by the embodiment of the invention have the advantages that a single sound file is sliced and separated into different subfiles, the subfiles are resampled by different sampling rates according to requirements to generate the subfiles with different sampling rates, and the subfiles with different sampling rates are bound according to a program calling sequence to form a related group so as to be spliced into a whole in a program for playing. Therefore, the problem of capacity occupation of a single sound file can be further optimized through the differentiated sampling rate of the single sound file, the occupied volume of the memory can be optimized according to the needs of a user, and the occupation of the single sound file on the system capacity and the memory is reduced.
Drawings
FIG. 1 is a schematic flow chart diagram of a first embodiment of a document processing method according to the present invention;
FIG. 2a is a schematic flow chart of a second embodiment of the document processing method according to the present invention;
FIG. 2b is a schematic flow chart of a third embodiment of the document processing method according to the present invention;
FIG. 3 is a functional block diagram of a first embodiment of a document processing apparatus according to the present invention;
FIG. 4a is a functional block diagram of a second embodiment of a document processing apparatus according to the present invention;
FIG. 4b is a functional block diagram of a document processing apparatus according to a third embodiment of the present invention;
fig. 5 is a schematic structural diagram of a terminal where a file processing apparatus according to an embodiment of the present invention is located.
In order to make the technical solution of the present invention clearer and clearer, the following detailed description is made with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The main solution of the embodiment of the invention is as follows: the method comprises the steps of slicing a single sound file, separating the sound file into different subfiles, resampling the subfiles by using different sampling rates according to requirements, generating the subfiles with different sampling rates, binding the subfiles with different sampling rates according to a program calling sequence, and forming a related group so as to be spliced into a whole in a program for playing. Therefore, the problem of capacity occupation of a single sound file can be further optimized through the differentiated sampling rate of the single sound file, and the occupied volume of the memory can be optimized according to the needs of a user, so that the occupation of the sound file on the system capacity and the memory is reduced, and the system performance is improved.
As shown in fig. 1, a first embodiment of the present invention provides a file processing method, including:
step S101, acquiring a sound file, slicing the sound file, and separating the sound file into different subfiles;
the operation environment of the method of the embodiment relates to various terminals, including a PC terminal, a mobile terminal such as a mobile phone and a tablet computer, and various applications are installed on the terminal, and the applications usually have sound effects, such as sound effects in games.
In the prior art, when processing sound files used in various terminal applications, different sampling rates can only be adopted for different sound files, so as to meet the requirements of optimizing the occupied capacity and the memory of the files. However, since only a fixed single sampling rate can be used for a single sound file, the occupied capacity and the memory volume of the sound file are still large.
According to the scheme, the problem of capacity occupation of a single sound file can be further optimized through the differentiated sampling rate of the single sound file, and the occupied volume of the memory can be optimized according to the user requirement, so that the occupation of the sound file on the system capacity and the memory is reduced, and the system performance is improved.
Specifically, first, a single sound file required to be used in the terminal application is acquired, and the single sound file is sliced and separated into different subfiles.
When slicing, different slicing rules can be adopted according to different requirements, for example, if the requirement is to ensure basic listening feeling, the minimum file capacity volume is pursued, and then the sound file can be separated into different subfiles according to the level value.
For another example, the sound file may be sliced and separated into different subfiles according to the frequency bands of the sound file.
The frequency band of the sound file may be determined according to a set frequency band threshold, for example, a low frequency band below 1000hz is set, and a high frequency band above 1000hz is set.
Step S102, resampling each subfile by using different sampling rates to generate subfiles with different sampling rates;
and resampling the separated sub-files by using different sampling rates to generate the sub-files with different sampling rates so as to reduce the occupation of the sound file on the system capacity and the memory.
When resampling is carried out, different resampling rules can be adopted according to different requirements in the same way. For example:
in the case that the requirement is to ensure basic listening feeling, the minimum file capacity volume is pursued, then the sound file can be separated into different subfiles according to the level value, and then the subfiles with large level values are resampled by adopting a high sampling rate; on the contrary, the sub-files with small level values are resampled by adopting a low sampling rate, so that the sub-files with different sampling rates are generated.
For another example, the sound file may be sliced and separated into different subfiles according to the frequency bands of the sound file. Resampling the subfiles of the high frequency band by adopting a high sampling rate; otherwise, resampling the subfiles of the low frequency band by adopting a low sampling rate to generate the subfiles of different sampling rates.
Of course, other slicing rules and resampling rules may also be employed, and are not specifically limited herein.
And step S103, binding the subfiles with different sampling rates according to a program calling sequence to form a related group.
And finally, binding the subfiles with different sampling rates according to the program calling sequence to form a related group. Subsequently, after the system is started, all the subfiles in the associated group can be spliced into a whole to be played.
According to the scheme, the single sound file is sliced into different subfiles, the subfiles are resampled by using different sampling rates according to requirements, the subfiles with different sampling rates are generated, the subfiles with different sampling rates are bound according to the program calling sequence, and a related group is formed, so that the subfiles are spliced into a whole in the program to be played. Therefore, the problem of capacity occupation of a single sound file can be further optimized through the differentiated sampling rate of the single sound file, the occupied volume of the memory can be optimized according to the needs of a user, and the occupation of the single sound file on the system capacity and the memory is reduced.
As shown in fig. 2a, a second embodiment of the present invention proposes a file processing method, which, based on the first embodiment shown in fig. 1, further includes, after step S103:
step S104, after the system is started, resampling each subfile in the associated group according to a uniform sampling rate;
s105, splicing the sub-files after resampling to obtain an association group after file splicing;
and step S106, loading the spliced association group and executing playing when a playing instruction is received.
The present embodiment is different from the first embodiment shown in fig. 1, in that the present embodiment further includes a scheme for splicing, loading and playing the sub-files in the associated group.
Specifically, when the whole system starts to work, resampling, splicing and loading are carried out on each subfile in the associated group to be used in advance, a uniform sampling rate is formed, and the subfiles are spliced together. The resampling sampling rate depends on the requirement on the memory capacity, and the higher the sampling rate is, the greater the memory occupation requirement is, and the better the playing quality is.
And when a playing instruction is received, loading the spliced association group and executing playing.
According to the scheme, the single sound file is sliced into different subfiles, the subfiles are resampled by using different sampling rates according to requirements, the subfiles with different sampling rates are generated, the subfiles with different sampling rates are bound according to the program calling sequence, a related group is formed, and then the subfiles are spliced into a whole in the program to be played. Therefore, the problem of capacity occupation of a single sound file can be further optimized through the differentiated sampling rate of the single sound file, the occupied volume of the memory can be optimized according to the needs of a user, and the occupation of the single sound file on the system capacity and the memory is reduced.
As shown in fig. 2b, a third embodiment of the present invention proposes a file processing method, which, based on the second embodiment shown in fig. 2a, after step S103 and before step S104, may further include:
and step S107, performing dynamic code rate compression on the subfiles in the associated group.
Step S108, after the system is started, decompressing each subfile in the associated group, and entering step S104.
The difference between this embodiment and the second embodiment shown in fig. 2a is that this embodiment further includes a processing scheme for performing dynamic rate compression and decompression on the subfiles in the associated group, which brings about the following beneficial effects: the occupation of the memory can be reduced.
Specifically, after the subfiles with different sampling rates are bound according to a program calling sequence to form a correlation group, in order to reduce the occupation of a memory, dynamic code rate compression processing is performed on the subfiles in the correlation group. When performing dynamic rate compression on the subfiles in the associated group, the following method may be adopted:
compressing the subfiles with large file streams in the association group in a high-quality low-compression mode; and compressing the subfiles with small file streams in the association group in a high compression mode. The file stream refers to an audio waveform stream embodied by a file.
Subsequently, when the system is started and the sound file needs to be loaded and played, decompressing each subfile in the associated group; then, resampling each subfile in the decompressed association group according to a uniform sampling rate; finally, splicing the sub-files after resampling to obtain an association group after the files are spliced; and when a playing instruction is received, loading the spliced association group and executing playing.
According to the scheme, the dynamic code rate compression and decompression processing is carried out on the sub-files in the associated group, so that the occupation of the sound files on the memory is reduced, and the system performance is improved.
As shown in fig. 3, a first embodiment of the present invention proposes a document processing apparatus, including: a slicing module 201, a first resampling module 202, and an association module 203, wherein:
a slicing module 201, configured to acquire a sound file, slice the sound file, and separate the sound file into different subfiles;
the first resampling module 202 is configured to resample each subfile using a different sampling rate, and generate subfiles with different sampling rates;
and the association module 203 is configured to bind the subfiles with different sampling rates according to a program calling sequence to form an association group.
The device of the embodiment can be borne on various terminals, including a PC terminal, a mobile terminal such as a mobile phone and a tablet personal computer, various applications are installed on the terminals, and the applications usually have sound effect functions, such as sound effects in games.
In the prior art, when processing sound files used in various terminal applications, different sampling rates can only be adopted for different sound files, so as to meet the requirements of optimizing the occupied capacity and the memory of the files. However, since only a fixed single sampling rate can be used for a single sound file, the occupied capacity and the memory volume of the sound file are still large.
According to the scheme, the problem of capacity occupation of a single sound file can be further optimized through the differentiated sampling rate of the single sound file, and the occupied volume of the memory can be optimized according to the user requirement, so that the occupation of the sound file on the system capacity and the memory is reduced, and the system performance is improved.
Specifically, first, a single sound file required to be used in the terminal application is acquired, and the single sound file is sliced and separated into different subfiles.
When slicing, different slicing rules can be adopted according to different requirements, for example, if the requirement is to ensure basic listening feeling, the minimum file capacity volume is pursued, and then the sound file can be separated into different subfiles according to the level value.
For another example, the sound file may be sliced and separated into different subfiles according to the frequency bands of the sound file.
The frequency band of the sound file may be determined according to a set frequency band threshold, for example, a low frequency band below 1000hz is set, and a high frequency band above 1000hz is set.
And then, resampling the separated subfiles by using different sampling rates to generate the subfiles with different sampling rates so as to reduce the occupation of the sound file on the system capacity and the memory.
When resampling is carried out, different resampling rules can be adopted according to different requirements in the same way. For example:
in the case that the requirement is to ensure basic listening feeling, the minimum file capacity volume is pursued, then the sound file can be separated into different subfiles according to the level value, and then the subfiles with large level values are resampled by adopting a high sampling rate; on the contrary, the sub-files with small level values are resampled by adopting a low sampling rate, so that the sub-files with different sampling rates are generated.
For another example, the sound file may be sliced and separated into different subfiles according to the frequency bands of the sound file. Resampling the subfiles of the high frequency band by adopting a high sampling rate; otherwise, resampling the subfiles of the low frequency band by adopting a low sampling rate to generate the subfiles of different sampling rates.
And finally, binding the subfiles with different sampling rates according to the program calling sequence to form a related group. Subsequently, after the system is started, all the subfiles in the associated group can be spliced into a whole to be played.
According to the scheme, the single sound file is sliced into different subfiles, the subfiles are resampled by using different sampling rates according to requirements, the subfiles with different sampling rates are generated, the subfiles with different sampling rates are bound according to the program calling sequence, and a related group is formed, so that the subfiles are spliced into a whole in the program to be played. Therefore, the problem of capacity occupation of a single sound file can be further optimized through the differentiated sampling rate of the single sound file, the occupied volume of the memory can be optimized according to the needs of a user, and the occupation of the single sound file on the system capacity and the memory is reduced.
As shown in fig. 4a, a second embodiment of the present invention provides a document processing apparatus, which, in addition to the first embodiment shown in fig. 3, further includes:
the second resampling module 204 is configured to resample, according to a uniform sampling rate, each subfile in the association group after the system is started;
the splicing module 205 is configured to splice the resampled subfiles to obtain an association group after file splicing;
and the loading and playing module 206 is configured to load the spliced association group and execute playing when the playing instruction is received.
The present embodiment is different from the first embodiment shown in fig. 3, in that the present embodiment further includes a scheme for splicing, loading and playing the sub-files in the associated group.
Specifically, when the whole system starts to work, resampling, splicing and loading are carried out on each subfile in the associated group to be used in advance, a uniform sampling rate is formed, and the subfiles are spliced together. The resampling sampling rate depends on the requirement on the memory capacity, and the higher the sampling rate is, the greater the memory occupation requirement is, and the better the playing quality is.
And when a playing instruction is received, loading the spliced association group and executing playing.
According to the scheme, the single sound file is sliced into different subfiles, the subfiles are resampled by using different sampling rates according to requirements, the subfiles with different sampling rates are generated, the subfiles with different sampling rates are bound according to the program calling sequence, a related group is formed, and then the subfiles are spliced into a whole in the program to be played. Therefore, the problem of capacity occupation of a single sound file can be further optimized through the differentiated sampling rate of the single sound file, the occupied volume of the memory can be optimized according to the needs of a user, and the occupation of the single sound file on the system capacity and the memory is reduced.
As shown in fig. 4b, a third embodiment of the present invention provides a document processing apparatus, which, in addition to the second embodiment shown in fig. 4a, further includes:
a compression module 207, configured to perform dynamic rate compression on the subfiles in the association group;
and a decompression module 208, configured to decompress each subfile in the associated group after the system is started.
The difference between this embodiment and the second embodiment shown in fig. 4a is that this embodiment further includes a processing scheme for performing dynamic rate compression and decompression on the subfiles in the associated group, which brings about the following beneficial effects: the occupation of the memory can be reduced.
Specifically, after the subfiles with different sampling rates are bound according to a program calling sequence to form a correlation group, in order to reduce the occupation of a memory, dynamic code rate compression processing is performed on the subfiles in the correlation group. When performing dynamic rate compression on the subfiles in the associated group, the following method may be adopted:
compressing the subfiles with large file streams in the association group in a high-quality low-compression mode; and compressing the subfiles with small file streams in the association group in a high compression mode. The file stream refers to an audio waveform stream embodied by a file.
Subsequently, when the system is started and the sound file needs to be loaded and played, decompressing each subfile in the associated group; then, resampling each subfile in the decompressed association group according to a uniform sampling rate; finally, splicing the sub-files after resampling to obtain an association group after the files are spliced; and when a playing instruction is received, loading the spliced association group and executing playing.
According to the scheme, the dynamic code rate compression and decompression processing is carried out on the sub-files in the associated group, so that the occupation of the sound files on the memory is reduced, and the system performance is improved.
As a specific application, as shown in fig. 5, fig. 5 is a schematic structural diagram of a terminal where a file processing apparatus according to an embodiment of the present invention is located.
As shown in fig. 5, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001. As shown in fig. 5, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a file processing application program.
In the terminal shown in fig. 5, the network interface 1004 is mainly used for connecting to a background management platform and performing data communication with the background management platform; the user interface 1003 is mainly used for connecting a client and performing data communication with the client; and the processor 1001 may be configured to invoke a file handling application stored in the memory 1005 and perform the following operations:
acquiring a sound file through a network interface 1004, slicing the sound file, and separating the sound file into different subfiles; resampling each subfile by using different sampling rates to generate subfiles with different sampling rates; and binding the subfiles with different sampling rates according to a program calling sequence to form a related group.
Further, in one embodiment, the processor 1001 invoking the file handling application stored in the memory 1005 may perform the following operations:
after the system is started, resampling each subfile in the associated group according to a uniform sampling rate; splicing the sub-files after resampling to obtain an association group after splicing the files; and when a playing instruction is received, loading the spliced association group and executing playing.
Further, in one embodiment, the processor 1001 invoking the file handling application stored in the memory 1005 may perform the following operations:
and slicing the sound file according to the level value of the sound file, and separating the sound file into different sub-files.
Further, in one embodiment, the processor 1001 invoking the file handling application stored in the memory 1005 may perform the following operations:
resampling the subfiles with large level values by adopting a high sampling rate; otherwise, resampling the subfiles with small level values by adopting a low sampling rate to generate the subfiles with different sampling rates.
Further, in one embodiment, the processor 1001 invoking the file handling application stored in the memory 1005 may perform the following operations:
and slicing the sound file according to the frequency range of the sound file, and separating the sound file into different subfiles.
Further, in one embodiment, the processor 1001 invoking the file handling application stored in the memory 1005 may perform the following operations:
resampling the subfiles of the high frequency band by adopting a high sampling rate; otherwise, resampling the subfiles of the low frequency band by adopting a low sampling rate to generate the subfiles of different sampling rates.
Further, in one embodiment, the processor 1001 invoking the file handling application stored in the memory 1005 may perform the following operations:
binding the subfiles with different sampling rates according to a program calling sequence to form a related group, and then carrying out dynamic code rate compression on the subfiles in the related group;
and decompressing each subfile in the association group after the system is started.
Further, in one embodiment, the processor 1001 invoking the file handling application stored in the memory 1005 may perform the following operations:
compressing the subfiles with large file streams in the association group in a low compression mode; and compressing the subfiles with small file streams in the association group in a high compression mode.
According to the scheme, the single sound file is sliced into different subfiles, the subfiles are resampled by using different sampling rates according to requirements, the subfiles with different sampling rates are generated, the subfiles with different sampling rates are bound according to the program calling sequence, a related group is formed, and then the subfiles are spliced into a whole in the program to be played. Therefore, the problem of capacity occupation of a single sound file can be further optimized through the differentiated sampling rate of the single sound file, the occupied volume of the memory can be optimized according to the needs of a user, and the occupation of the sound file on the system capacity and the memory is reduced.
It should also be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only for the preferred embodiment of the present invention and is not intended to limit the scope of the present invention, and all equivalent structures or flow transformations made by the present specification and drawings, or applied directly or indirectly to other related arts, are included in the scope of the present invention.

Claims (9)

1. A file processing method, comprising:
acquiring a sound file to be used in terminal application, and determining the frequency band height of the sound file according to a set threshold frequency band; slicing the sound file according to the frequency band of the sound file, and separating the sound file into different subfiles;
resampling the subfiles of the high frequency band by adopting a high sampling rate, resampling the subfiles of the low frequency band by adopting a low sampling rate, and generating the subfiles of different sampling rates;
binding the subfiles with different sampling rates according to a program calling sequence to form a related group;
after the terminal application is started, resampling each subfile in the associated group according to a uniform sampling rate;
splicing the sub-files after resampling to obtain an association group after splicing the files;
and when a playing instruction is received, loading the spliced association group and executing playing.
2. The method of claim 1, wherein the step of binding the subfiles with different sampling rates in the program call order to form the association group further comprises:
performing dynamic code rate compression on the subfiles in the associated group;
the resampling each subfile in the associated group according to the uniform sampling rate further comprises:
and decompressing each subfile in the association group after the system is started.
3. The method of claim 2, wherein the step of performing dynamic rate compression on the subfiles in the associated group comprises:
compressing the subfiles with large file streams in the association group in a low compression mode; and compressing the subfiles with small file streams in the association group in a high compression mode.
4. A file processing method, comprising:
acquiring a sound file used in terminal application, and determining the level value of the sound file according to a preset threshold; slicing the sound file into different sub-files according to the level value of the sound file;
resampling the subfiles with large level values by adopting a high sampling rate, resampling the subfiles with small level values by adopting a low sampling rate, and generating the subfiles with different sampling rates;
binding the subfiles with different sampling rates according to a program calling sequence to form a related group;
after the terminal application is started, resampling each subfile in the associated group according to a uniform sampling rate;
splicing the sub-files after resampling to obtain an association group after splicing the files;
and when a playing instruction is received, loading the spliced association group and executing playing.
5. A document processing apparatus, characterized by comprising:
the slicing module is used for acquiring a sound file used in terminal application and determining the frequency band height of the sound file according to a set threshold frequency band; slicing the sound file according to the frequency band of the sound file, and separating the sound file into different subfiles;
the first resampling module is used for resampling the subfiles in the high frequency band by adopting a high sampling rate, resampling the subfiles in the low frequency band by adopting a low sampling rate and generating the subfiles with different sampling rates;
the association module is used for binding the subfiles with different sampling rates according to a program calling sequence to form an association group;
the second resampling module is used for resampling each subfile in the associated group according to a uniform sampling rate after the terminal application is started;
the splicing module is used for splicing the sub-files after resampling to obtain an association group after the files are spliced;
and the loading playing module is used for loading the spliced association group and executing playing when a playing instruction is received.
6. The document processing apparatus according to claim 5, further comprising:
the compression module is used for carrying out dynamic code rate compression on the subfiles in the associated group;
and the decompression module is used for decompressing each subfile in the associated group after the system is started.
7. Document processing apparatus according to claim 6,
the compression module is further used for compressing the subfiles with large file flows in the association group in a low compression mode; and compressing the subfiles with small file streams in the association group in a high compression mode.
8. A document processing apparatus, characterized by comprising:
the slicing module is used for acquiring the sound file used in the terminal application and determining the level value of the sound file in the future according to a preset threshold; slicing the sound file into different sub-files according to the level value of the sound file;
the first resampling module is used for resampling the subfiles with large level values by adopting a high sampling rate and resampling the subfiles with small level values by adopting a low sampling rate to generate the subfiles with different sampling rates;
the association module is used for binding the subfiles with different sampling rates according to a program calling sequence to form an association group;
the second resampling module is used for resampling each subfile in the associated group according to a uniform sampling rate after the terminal application is started;
the splicing module is used for splicing the sub-files after resampling to obtain an association group after the files are spliced;
and the loading playing module is used for loading the spliced association group and executing playing when a playing instruction is received.
9. A computer-readable storage medium having stored thereon machine-readable instructions for causing at least one processor to perform the method of any one of claims 1-4.
CN201410351393.0A 2014-07-22 2014-07-22 File processing method and device Active CN105279193B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410351393.0A CN105279193B (en) 2014-07-22 2014-07-22 File processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410351393.0A CN105279193B (en) 2014-07-22 2014-07-22 File processing method and device

Publications (2)

Publication Number Publication Date
CN105279193A CN105279193A (en) 2016-01-27
CN105279193B true CN105279193B (en) 2020-05-01

Family

ID=55148216

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410351393.0A Active CN105279193B (en) 2014-07-22 2014-07-22 File processing method and device

Country Status (1)

Country Link
CN (1) CN105279193B (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7516074B2 (en) * 2005-09-01 2009-04-07 Auditude, Inc. Extraction and matching of characteristic fingerprints from audio signals
JP2010503881A (en) * 2006-09-13 2010-02-04 テレフオンアクチーボラゲット エル エム エリクソン(パブル) Method and apparatus for voice / acoustic transmitter and receiver
CN101776747B (en) * 2010-01-15 2012-07-18 山东大学 Adaptive resampling-based radar signal compression method
CN102137106B (en) * 2011-03-14 2013-06-05 西安听者有声文化传播有限公司 Audio processing system of internet audio sharing platform

Also Published As

Publication number Publication date
CN105279193A (en) 2016-01-27

Similar Documents

Publication Publication Date Title
WO2017016210A1 (en) Software version management method and apparatus
CN110312146B (en) Audio processing method and device, electronic equipment and storage medium
CN111510756A (en) Audio and video switching method and device, computer equipment and readable storage medium
CN111327517A (en) Information sharing method, terminal and readable storage medium
CN111510755A (en) Audio and video switching method and device, computer equipment and readable storage medium
CN104811485A (en) Resource sharing method
CN111510761B (en) First frame equalization current limiting method and device, computer equipment and readable storage medium
CN105279193B (en) File processing method and device
CN112735445A (en) Method, apparatus and storage medium for adaptively selecting audio track
CN107959720A (en) The method and system of calling record cloud storage
CN106713972A (en) Integrated broadcast control platform video content screen capturing method and integrated broadcast control platform video content screen capturing device
CN111552453A (en) Control method, terminal and storage medium of sound effect scene
CN113162964B (en) Agent system, terminal device, and agent program
CN113050985B (en) Front-end engineering dependency automatic registration method and device
CN112714199B (en) Courseware loading method and system and electronic equipment
TW200945195A (en) Efficient compression of applications
CN105469433B (en) Picture compression method and equipment thereof
CN111145741B (en) Method and device for providing multimedia content, electronic equipment and storage medium
CN110502207B (en) Background sound silencing method, system, equipment and storage medium
CN114300007A (en) WebRTC-based audio and video recording method and device
CN113160830A (en) Proxy system, terminal device, and recording medium
US20080120114A1 (en) Method, Apparatus and Computer Program Product for Performing Stereo Adaptation for Audio Editing
CN113160811A (en) Proxy system, server, and computer-readable recording medium
CN109841224B (en) Multimedia playing method, system and electronic equipment
CN111147939A (en) Television information source switching method, equipment, storage medium and device

Legal Events

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