Summary of the invention
The technical problem to be solved in the present invention is that the recording file in order to overcome call center of the prior art needs to take huge storage space, thus improve the cost of call center, also be unfavorable for the defect of the recording file stored being carried out to effectively management, propose compression and storage method and the system of a kind of call center recording file.
The present invention solves above-mentioned technical matters by following technical proposals:
The invention provides the compression and storage method of a kind of call center recording file, its feature is, this compression and storage method comprises the following steps:
S
1, from all recording files, be chosen at a predetermined time before the part recording file that generates;
S
2, by the recording file of this part recording file boil down to object format;
S
3, store the recording file of object format in object format file storage area.
Due in the transferring of the recording file that stores for call center user or enterprise, more of a specified duration fewer by what transfer of holding time distance current time, user, and what transfer is recording file in the short period, therefore distance current time recording file more remote is less by the probability transferred, if with the recording file of raw readings preserve message registration a large amount of storage space will be spent to go to preserve management may can't by the recording file transferred.A predetermined time can be selected for this reason, the part recording file boil down to object format generated before this predetermined time is stored, thus save lower certain storage space.This predetermined time for example can be before 10 days or before half a year.
Wherein, the form of all recording files may be some conventional audio file formats, such as G711U form (pulse code modulation (PCM) is a kind of phonetic matrix that International Telecommunications Union (ITU) formulates), ADPCM form (adaptive difference pulse code modulates the file layout obtained).The object format obtained after compression for example can be the audio file formats that GSM form (standard format of the voice call file namely in global system for mobile communications) or some other file size are relatively little.For recording file from G711U format compression for GSM form, the recording file size after compression be compression before recording file about 40%.
Preferably, S
3further comprising the steps of afterwards:
S
4, from all recording files, delete this part recording file.
Delete immediately after the compression of this part recording file stores, be more conducive to the management for call center's recording file.When user needs the recording file before transferring this predetermined time, call center can directly search for from object format file storage area, thus feeds back quickly.
Preferably, S
3also comprise: by S
2the failed recording file of middle compression stores as abnormal document.Facilitate like this and carry out diagnosis and process further for failing to compress the recording file unification stored.
Preferably, S
1comprise the following steps:
S
11, the first computer scanning obtains the fileinfo of all recording files, fileinfo comprises rise time, file layout, file size and file path;
S
12, the first computational screening goes out the recording file of rise time early than this predetermined time as this part recording file;
S
2comprise the following steps:
S
21, obtain load information and the performance parameter of some second computers;
S
22, the first computing machine according to the load information of the fileinfo of this part recording file and this some second computer and performance parameter, the compression of this part recording file is divided into some sub-compression duty;
S
23, this some sub-compression duty is dispensed to this some second computer by the first computing machine;
S
24, each second computer is according to the recording file of the sub-compression duty received by the recording file boil down to object format of correspondence.
In a typical case, the first computing machine and this some second computer are respectively server.The work of compression recording file do not born by first computing machine, and the requirement therefore for the arithmetic capability of the first computing machine is very low.It will be appreciated by those skilled in the art that step S
2in the first computing machine divide gamete compression duty according to the performance parameter of second computer and load information, concerning some second computers, its performance parameter shows the better or load information of its performance, and to show its load lower, the sub-compression duty being assigned to this second computer is larger, and the total amount of the recording file namely needing this second computer to compress is larger.This makes it possible to effective Distribution Calculation machine resource to complete the compression of recording file, shorten press cycles, simultaneously also without the need to compressing in order to the compression of recording file distributes completely idle computing machine.
Preferably, S
24in each second computer compress each recording file before all first check this recording file form whether be object format, and skip the compression for checking the recording file that result is yes.Doing so avoids the repeated compression to recording file.
Preferably, S
22this some sub-compression duty of middle generation only comprises file path and the object format of recording file, S
24comprise the following steps:
S
241, each second computer according in the sub-compression duty received file path extract recording file;
S
242, the recording file of recording file boil down to object format that will extract respectively of each second computer.
The information comprised in this some sub-compression duty is fewer, and the speed of this some sub-compression duty of the generation of the first computing machine is faster, also faster sub-compression duty can be sent to second computer.
Preferably, S
22and S
23between also comprise S
230: the first computing machine adds memory address or store path respectively in this some sub-compression duty;
S
3for: each second computer stores the recording file of object format respectively according to the memory address in the sub-compression duty received or store path.
By the interpolation in advance of memory address or store path, the process just achieving whole compression storage is assigned rear just complete distributed treatment once sub-compression duty, do not influence each other completely between each second computer and between second computer and the first computing machine, maximize processing speed.
Preferably, S
2also comprise S
24the S of rear execution
25: compression result is sent to the first computing machine by each second computer respectively, and compression result comprises compression whether success, the source file format of compression, the source file memory address of compression, object format and target memory address;
S
3the information comprised according to compression result for: the first computing machine is taken out the recording file of object format from each second computer and is stored the recording file of object format in this object format file storage area.
By the unified recording file storing object format of the first computing machine, achieve that main thread is concentrated, file after parallel memorizing compression.If some recording file makes a mistake, being easier to check is which link there occurs problem in, improves security.Further, unified storage after the source file memory address that the recording file of the object format being stored in this object format file storage area can also be made such as can to compress according to certain information comprised in compression result sorts stores successively, is convenient to arrange.In addition, easy understand ground, if do not make mistakes in above-mentioned steps, the file layout that the source file format of compression, the source file memory address of compression should obtain with the first computer scanning, file path are completely the same.
Preferably, this load information comprises the internal memory of this some second computer and/or processor at current time with the average load in the time period of last preset duration or maximum load.
So just can more reasonably divide gamete compression duty.And, this load information comprises the internal memory of this some second computer and/or processor at current time with the average load in the time period of last preset duration or maximum load, according to the size of average load or maximum load and sub-compression duty, the first computing machine just can estimate when point gamete compression duty and roughly when can complete the compression of recording file.
Preferably, this all recording file is stored on the 3rd computing machine, and this object format file storage area is distributed on some 4th computing machines.
This object format file storage area is distributed on some 4th computing machines, just achieves the distributed storage of recording file, and this can not only improve the reliability of whole system, availability and storage efficiency, is also easy to expansion.
Preferably, this part recording file comprises the recording file that at least 1000 durations are less than 5 minutes.
Present invention also offers the compression storage system of a kind of call center recording file, its feature is, comprises a recording screening installation and a gas booster compressor.The part recording file that generates and store the recording file of object format in object format file storage area before this recording screening installation is used for being chosen at a predetermined time from all recording files, this gas booster compressor is used for obtaining this part recording file and by the recording file of this part recording file boil down to object format from this recording screening installation; Or the part recording file that this recording screening installation generates before being used for being chosen at a predetermined time from all recording files, this gas booster compressor is used for the recording file of this part recording file boil down to object format, and stores the recording file of object format in object format file storage area.
That is, what carried out by the recording file of boil down to object format storing can be this recording screening installation or this gas booster compressor.
Preferably, this compression storage system also comprises a recording sweep equipment, for store object format at this recording screening installation or this gas booster compressor recording file after, from all recording files, delete this part recording file.
Preferably, this gas booster compressor is also for storing the failed recording file of compression as abnormal document.
Preferably, this recording screening installation is the first computing machine, and this gas booster compressor is some second computers, and this first computing machine comprises a file scan module, screening module, a parameter acquisition module and a compression duty distribution module.
This file scan module obtains the fileinfo of all recording files for scanning, fileinfo comprises rise time, file layout, file size and file path.This screening module is for filtering out the recording file of rise time early than this predetermined time as this part recording file.This parameter acquisition module is for obtaining load information and the performance parameter of this some second computer.
This compression duty distribution module comprises sub-compression duty generation unit and allocation units, this sub-compression duty generation unit is used for according to the fileinfo of this part recording file and the load information of this some second computer and performance parameter, the compression of this part recording file is divided into some sub-compression duty, and these allocation units are used for this some sub-compression duty to be dispensed to this some second computer.Each second computer is respectively used to the recording file of the recording file boil down to object format of correspondence according to the sub-compression duty received.
In a typical case, the first computing machine and this some second computer are respectively server.The work of compression recording file do not born by first computing machine, and the requirement therefore for the arithmetic capability of the first computing machine is very low.It will be appreciated by those skilled in the art that the first computing machine in the present invention can be all be not exclusively used in the task of performing point gamete compression duty or compression recording file with this some second computer.Namely the computing machine of some is originally equipped with in a network in order to some other actual needs, because computing machine in a lot of situation can not carry out the calculation process of data for a long time at full capacity, now just the computing machine of this some can be distributed as the first computing machine in the present invention and this some second computer.
Because the first computing machine divides gamete compression duty according to the performance parameter of second computer and load information, the sub-compression duty of therefore distributing can't have influence on other work of second computer needs execution originally, serve the effect more effectively utilizing active computer resource, also rely on the distributed treatment of reasonable distribution task, shorten the press cycles of recording file.
Preferably, whether the form that each second computer all first checks this recording file before each recording file of compression is object format, and skips the compression for checking the recording file that result is yes.
Preferably, this some sub-compression duty that this sub-compression duty generation unit generates only comprises file path and the object format of recording file, and each second computer comprises a recording file extraction module and a compression module respectively.Each recording file extraction module is respectively used to extract recording file according to the file path in the sub-compression duty received, and each compression module is respectively used to the recording file of the recording file boil down to object format extracted by corresponding recording file extraction module.
Preferably, this compression duty distribution module also comprises a store path adding device, for adding memory address or store path respectively in this some sub-compression duty of this sub-compression duty generation unit generation, then this some sub-compression duty is transferred to this allocation units.Each second computer stores the recording file of object format respectively according to the memory address in the sub-compression duty received or store path.
By the interpolation in advance of memory address or store path, just achieving process that whole compression stores will distributed treatment completely after sub-compression duty is assigned, do not influence each other completely between each second computer and between second computer and the first computing machine, maximize processing speed.
Preferably, a compression result acquiring unit and a recording file that first computing machine also comprises for obtaining compression result from each second computer receive storage unit, compression result comprises compression whether success, the source file format of compression, the source file memory address of compression, object format and target memory address, and this recording file receives information that storage unit is used for comprising according to compression result and takes out the recording file of object format from each second computer and store the recording file of object format in this object format file storage area.
Preferably, this load information comprises the internal memory of this some second computer and/or processor at current time with the average load in the time period of last preset duration or maximum load.
Preferably, this all recording file is stored on the 3rd computing machine, and this object format file storage area is distributed on some 4th computing machines.
Preferably, this part recording file comprises the recording file that at least 1000 durations are less than 5 minutes.
On the basis meeting this area general knowledge, above-mentioned each optimum condition, can combination in any, obtains the preferred embodiments of the invention.
Positive progressive effect of the present invention is:
The compression and storage method of call center of the present invention recording file and system are by the recording file before compression Preset Time, save the storage space that call center's recording file takies, under substantially not affecting the prerequisite of Consumer's Experience on the whole, reduce the cost that call center stores recording file.
Embodiment
Provide present pre-ferred embodiments below in conjunction with accompanying drawing, to describe technical scheme of the present invention in detail, but therefore do not limit the present invention among described scope of embodiments.
Embodiment 1
Shown in figure 1, the compression and storage method of call center's recording file of the embodiment of the present invention 1, comprises the following steps:
S
1, from all recording files, be chosen at a predetermined time before the part recording file that generates;
S
2, by the recording file of this part recording file boil down to object format;
S
3, by S
2the failed recording file of middle compression stores as abnormal document, stores the recording file of object format in object format file storage area;
S
4, from all recording files, delete this part recording file.
Particularly, S
1comprise the following steps:
S
11, the first computer scanning obtains the fileinfo of all recording files, fileinfo comprises rise time, file layout, file size and file path;
S
12, the first computational screening goes out the recording file of rise time early than this predetermined time as this part recording file.
S
2comprise the following steps:
S
21, obtain load information and the performance parameter of some second computers;
S
22, the first computing machine according to the load information of the fileinfo of this part recording file and this some second computer and performance parameter, the compression of this part recording file is divided into some sub-compression duty;
S
23, this some sub-compression duty is dispensed to this some second computer by the first computing machine;
S
24, each second computer is according to the recording file of the sub-compression duty received by the recording file boil down to object format of correspondence;
S
25, compression result is sent to the first computing machine by each second computer respectively, compression result comprises compression whether success, the source file format of compression, the source file memory address of compression, object format and target memory address;
S
3in the storage of the recording file of object format is specially, the information that the first computing machine comprises according to compression result is taken out the recording file of object format from each second computer and is stored the recording file of object format in this object format file storage area.
Further, this load information comprises the internal memory of this some second computer and processor at current time with the average load in the time period of last preset duration or maximum load.
So just can more reasonably divide gamete compression duty.And, this load information comprises the internal memory of this some second computer and processor at current time with the average load in the time period of last preset duration or maximum load, according to the size of average load or maximum load and sub-compression duty, the first computing machine just can estimate when point gamete compression duty and roughly when can complete the compression of recording file.
In the present embodiment, this all recording file is stored on the 3rd computing machine, and this object format file storage area is distributed on some 4th computing machines.The form of all recording files includes G711U form and ADPCM form, and this object format is GSM form.The recording file size of the GSM form after compression is about 40% of the recording file before compression.
Wherein, this predetermined time was before 30 days.The investigation of playback is transferred according to the recording file of the call center for routine, recording file interval after the air time of call center is generally less than 10% by the ratio transferring playback in more than 30 days, therefore carries out certain compression impact for the Consumer's Experience of entirety for this part recording file very little.For a lot of call center, the time span of the recording file of record is not less than nearest 1 year mostly, by the compression of the present embodiment for part recording file, save storage space account for the ratio of storage space needed for original all recording files up to more than 50%, therefore so produce the saving effect for cost clearly.Further, as above, without the need to compressing in order to the compression of recording file distributes completely idle computing machine in the present embodiment, therefore can't raise the cost owing to needing to be equipped with new computing machine.To sum up, the compression and storage method of the present embodiment is reducing the effect highly significant in call center's recording file carrying cost.
The compression storage system of call center's recording file and the compression and storage method of the present embodiment of the present embodiment are corresponding.This compression storage system comprises a recording screening installation and a gas booster compressor.The part recording file that generates and store the recording file of object format in object format file storage area before this recording screening installation is used for being chosen at a predetermined time from all recording files, this gas booster compressor is used for obtaining this part recording file and by the recording file of this part recording file boil down to object format from this recording screening installation.
Particularly, shown in figure 2, this recording screening installation is the first computing machine 1, this gas booster compressor is be only in some second computer 2(Fig. 2 to schematically show 4 second computers 2), this first computing machine 1 comprises a file scan module 11, and screens module 12, parameter acquisition module 13 and a compression duty distribution module 14.This compression storage system also comprises a recording sweep equipment 3, for store object format recording file after, from all recording files, delete this part recording file.
This file scan module 11 obtains the fileinfo of all recording files for scanning, fileinfo comprises rise time, file layout, file size and file path.This screening module 12 is for filtering out the recording file of rise time early than this predetermined time as this part recording file.This parameter acquisition module 13 is for obtaining load information and the performance parameter of this some second computer 2.
This compression duty distribution module 14 comprises sub-compression duty generation unit and allocation units, this sub-compression duty generation unit is used for according to the fileinfo of this part recording file and the load information of this some second computer 2 and performance parameter, the compression of this part recording file is divided into some sub-compression duty, and these allocation units are used for this some sub-compression duty to be dispensed to this some second computer 2.Each second computer 2 is respectively used to the recording file of the recording file boil down to object format of correspondence according to the sub-compression duty received.
First computing machine 1 also comprises a compression result acquiring unit for obtaining compression result from each second computer 2 and a recording file receives storage unit (not shown in Fig. 2), compression result comprises compression whether success, the source file format of compression, the source file memory address of compression, object format and target memory address, and this recording file receives information that storage unit is used for comprising according to compression result and takes out the recording file of object format from each second computer 2 and store the recording file of object format in this object format file storage area.
Further, this load information comprises the internal memory of this some second computer 2 and processor at current time with the average load in the time period of last preset duration or maximum load.
In the compression storage system of the present embodiment, this all recording file is stored on the 3rd computing machine, and this object format file storage area is distributed on some 4th computing machines.The form of all recording files includes G711U form and ADPCM form, and this object format is GSM form.This predetermined time was before 30 days.
Embodiment 2
The compression and storage method of the present embodiment is compared with embodiment 1, and difference is only:
S
24in each second computer compress each recording file before all first check this recording file form whether be object format, and skip the compression for checking the recording file that result is yes.Further, at S
24after do not perform S
25but directly perform S
3.
Wherein, S
22this some sub-compression duty of middle generation only comprises file path and the object format of recording file, S
24comprise the following steps: S
241, each second computer according in the sub-compression duty received file path extract recording file; S
242, the recording file of recording file boil down to object format that will extract respectively of each second computer.Further, S
22and S
23between also comprise S
230: the first computing machine adds memory address or store path respectively in this some sub-compression duty.S
3in take with under type for the storage of the recording file of object format, each second computer stores the recording file of object format respectively according to the memory address in the sub-compression duty that receives or store path.
By the interpolation in advance of memory address or store path, the process just achieving whole compression storage is assigned rear just complete distributed treatment once sub-compression duty, do not influence each other completely between each second computer and between second computer and the first computing machine, maximize processing speed.
The compression storage system of the present embodiment is compared with embodiment 1, and difference is only:
First computing machine 1 does not comprise this compression result acquiring unit and this recording file receives storage unit.The part recording file of the first computing machine 1 for generating before be chosen at a predetermined time from all recording files, this gas booster compressor is used for the recording file of this part recording file boil down to object format and stores the recording file of object format in object format file storage area.
Whether the form that each second computer 2 all first checks this recording file before each recording file of compression is object format, and skips the compression for checking the recording file that result is yes.This some sub-compression duty that this sub-compression duty generation unit generates only comprises file path and the object format of recording file, and each second computer 2 comprises a recording file extraction module and a compression module respectively.Each recording file extraction module is respectively used to extract recording file according to the file path in the sub-compression duty received, and each compression module is respectively used to the recording file of the recording file boil down to object format extracted by corresponding recording file extraction module.
Wherein, this compression duty distribution module 14 also comprises a store path adding device, for adding memory address or store path respectively in this some sub-compression duty of this sub-compression duty generation unit generation, then this some sub-compression duty is transferred to this allocation units.Each second computer 2 stores the recording file of object format respectively according to the memory address in the sub-compression duty received or store path.
Although the foregoing describe the specific embodiment of the present invention, it will be understood by those of skill in the art that these only illustrate, protection scope of the present invention is defined by the appended claims.Those skilled in the art, under the prerequisite not deviating from principle of the present invention and essence, can make various changes or modifications to these embodiments, but these change and amendment all falls into protection scope of the present invention.