WO2016180174A1 - 语音文件同步的方法和装置 - Google Patents

语音文件同步的方法和装置 Download PDF

Info

Publication number
WO2016180174A1
WO2016180174A1 PCT/CN2016/079588 CN2016079588W WO2016180174A1 WO 2016180174 A1 WO2016180174 A1 WO 2016180174A1 CN 2016079588 W CN2016079588 W CN 2016079588W WO 2016180174 A1 WO2016180174 A1 WO 2016180174A1
Authority
WO
WIPO (PCT)
Prior art keywords
voice
storage address
file
updated
update file
Prior art date
Application number
PCT/CN2016/079588
Other languages
English (en)
French (fr)
Inventor
张新源
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016180174A1 publication Critical patent/WO2016180174A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M3/00Automatic or semi-automatic exchanges
    • H04M3/42Systems providing special services or facilities to subscribers

Definitions

  • This document relates to, but is not limited to, core network technology, and more particularly to a method and apparatus for voice file synchronization.
  • the operator records certain voice files according to the service needs, and then loads the voice files into the media gateway, and the media gateway plays the corresponding voice according to the service.
  • a carrier's communication station has multiple service modules, and each service module has multiple storage units.
  • the communication station needs to use thousands of voice files when conducting business daily. The same voice will be distributed. In different storage units of multiple business modules. If the service of the communication station needs to be changed and the voice file needs to be updated and synchronized, it is necessary to find out which service modules are stored in the storage unit of the voice file, and then replace them one by one. In the related art, the replacement operation of the voice file is completed manually, the workload is large, and the probability of misoperation is large; and it is difficult to directly know whether the voice file stored in the storage unit is correct by manual operation, and whether the stored voice file is correct or not is required. After the voice file in the storage unit is downloaded and manually checked, the efficiency is low.
  • the embodiment of the invention provides a method and a device for synchronizing a voice file, which can reduce the workload and the probability of misoperation in the process of synchronizing the voice file, and improve the synchronization efficiency of the voice file.
  • An embodiment of the present invention provides a method for synchronizing a voice file, where the method includes:
  • the voice file to be updated saved in the storage address of the voice file to be updated is replaced with the voice update file according to a preset storage address arrangement order.
  • the method further includes:
  • the voice update files saved in the storage address are sequentially verified according to the preset storage address arrangement order
  • the voice update file verification in the at least one storage address fails, the voice update file is replaced with a storage address where the voice update file verification fails.
  • the method when the receiving a voice update file, the method further includes: acquiring a check code of the received voice update file;
  • the verification of the voice update file saved in the storage address according to the preset storage address arrangement order includes:
  • the method further includes:
  • the preset storage address arrangement order is an arrangement order of the storage addresses held in the storage address queue.
  • the method further includes: clearing the storage address queue.
  • an embodiment of the present invention provides a device for synchronizing a voice file, where the device includes: a receiving unit, a searching unit, and a replacement unit;
  • the receiving unit is configured to receive a voice update file
  • the searching unit is configured to search for a storage address of the voice file to be updated according to an association relationship between the pre-stored voice file and the voice file storage address;
  • the replacing unit is configured to, according to a preset storage address arrangement order, the to-be-updated voice
  • the voice file to be updated saved in the storage address of the file is replaced with the voice update file.
  • the device further includes a check unit and a determining unit; wherein
  • the verification unit is configured to sequentially verify the voice update file saved in the storage address according to a preset storage address arrangement order; and trigger the determination unit when the voice update file in all the storage addresses is successfully verified; And triggering the replacement unit when the voice update file verification in the at least one storage address fails;
  • the determining unit is configured to determine that the voice file is successfully synchronized
  • the replacement unit is further configured to replace the voice update file with a storage address where the voice update file verification fails.
  • the device further includes an acquiring unit, configured to obtain a check code of the received voice update file;
  • the check unit is configured to obtain a check code of the voice update file saved in the storage address of the voice file to be updated according to a preset storage address arrangement order, and the check code is received by the check code The checksum of the voice update file is compared.
  • the device further includes: the generating unit further configured to: generate, according to the queried storage address of the to-be-updated voice file, a storage address queue;
  • the preset storage address arrangement order is an arrangement order of the storage addresses held in the storage address queue.
  • the determining unit is further configured to clear the storage address queue.
  • the technical solution provided by the present invention includes: searching for a storage address of a voice file to be updated according to an association relationship between a pre-stored voice file and a voice file storage address; and ranking according to a preset storage address.
  • the voice file to be updated stored in the storage address of the voice file to be updated is replaced with a voice update file, thereby reducing manual participation in the voice file synchronization process, reducing the erroneous operation rate during the voice file synchronization process, and improving the voice file. Synchronization efficiency.
  • FIG. 1 is a schematic flowchart of a method for synchronizing a voice file according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of a method for synchronizing a voice file according to an embodiment of the present invention
  • FIG. 3 is a schematic structural diagram of an apparatus for synchronizing a voice file according to an embodiment of the present invention
  • FIG. 4 is a schematic structural diagram of another apparatus for synchronizing voice files according to an embodiment of the present invention.
  • the method may be applied to a network management system, and the method may include:
  • Step 101 Receive a voice update file.
  • Step 102 Search for a storage address of the voice file to be updated according to an association relationship between the pre-stored voice file and the voice file storage address.
  • Step 103 Replace the to-be-updated voice file saved in the storage address of the voice file to be updated into a voice update file according to a preset storage address arrangement order.
  • whether the voice file synchronization process of step 101 to step 103 is successful may be determined by verifying the replaced voice update file, optionally, the file to be updated in the storage address of the voice file to be updated.
  • the voice file is replaced with a voice update file, it can also include:
  • the voice update files saved in the storage address are sequentially verified according to the preset storage address arrangement order
  • the voice update file verification in the at least one storage address fails, the voice update file is replaced with the storage address of the voice update file verification failure; understandably, the voice update file is replaced with the voice update file verification failure storage.
  • the voice update file of the storage address replaced with the voice update file verification failure may continue to be verified until the voice update file replaced in all the storage addresses is successfully verified; or after multiple verification failures, An abnormal alert can be fed back, prompting the network administrator to troubleshoot.
  • the method may further obtain a check code of the received voice update file, for example, a message digest algorithm (MD5) code, a secure hash algorithm (SHA, Secure Hash Algorithm)
  • MD5 code a message digest algorithm
  • SHA Secure Hash Algorithm
  • the voice update file saved in the storage address is sequentially verified according to the preset storage address arrangement order, and may include:
  • the storage address of the to-be-updated voice file is saved or cached in a normal manner; after the storage address of the voice file to be updated is searched according to the relationship between the pre-stored voice file and the voice file storage address, It can also include:
  • the queue is a storage form of the storage address of the voice file to be updated, and each item in the storage address queue corresponds to a storage address of the voice file to be updated;
  • the service corresponding to each service The storage unit in the module saves the voice file used by the service; thus, a single voice file is stored in a storage unit in multiple service modules, that is, there are multiple storage addresses; therefore, the storage of the voice file to be updated.
  • the number of the addresses is at least one, and the association between the pre-stored voice file and the voice file storage address in step 102 may also be a voice file address information table in which the voice file and the corresponding saved storage address are saved. ;
  • those skilled in the art can also save the storage address of the updated voice file by using a data structure having a sequence relationship, such as a list, a linked list, an array, and the like, which is not described in detail in the embodiment of the present invention.
  • the preset storage address arrangement order may be an arrangement order of the storage addresses stored in the storage address queue.
  • the method further includes: clearing the storage address queue.
  • This embodiment provides a voice file synchronization method by using a pre-stored voice file and a language
  • the association between the storage addresses of the audio files is used to find the storage address of the voice file to be updated; and the voice file to be updated stored in the storage address of the voice file to be updated is replaced with the voice update file according to the preset storage address arrangement order, thereby
  • the manual participation in the process of synchronizing voice files is reduced, the misoperation rate in the process of synchronizing voice files is reduced, and the synchronization efficiency of voice files is improved.
  • the embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the voice file synchronization method.
  • FIG. 2 a detailed process of a voice file synchronization method according to an embodiment of the present invention is shown.
  • the process may be applied to a network management system, and the process may include:
  • Step 201 Receive a voice update file, and generate an MD5 value corresponding to the voice update file.
  • Step 202 Search for an association relationship between the pre-stored voice file and the voice file storage address according to the identifier of the voice update file, and obtain a storage address of the voice file to be updated.
  • the file identifier between the two is generally the same, so that after the replacement, the network management system program does not affect the file. Call.
  • Step 203 Generate a storage address queue according to the stored storage address of the voice file to be updated.
  • the queue is a storage form of the storage address of the voice file to be updated, and a person skilled in the art can also save the storage address of the updated voice file by using a data structure having a sequence relationship such as a list, a linked list, an array, and the like. The embodiments of the invention do not describe this.
  • Step 204 Replace the to-be-updated voice file saved in the storage address of the voice file to be updated with the voice update file according to the order of the storage addresses stored in the storage address queue, and generate the voice saved in the current storage address after the replacement is completed. Update the MD5 value of the file;
  • Step 205 Obtain the MD5 value of the voice update file saved in the storage address of the voice file to be updated according to the order of the storage addresses stored in the storage address queue, and perform the MD5 value and the MD5 value of the received voice update file. Alignment; when the two are consistent, all storage locations are indicated If the voice update file in the address is successfully verified, go to step 206; when the two are inconsistent, the voice update file in the at least one storage address fails to be verified, then go to step 207;
  • Step 206 Determine that the voice file is successfully synchronized, and clear the storage address queue.
  • Step 207 Replace the voice update file with the storage address where the voice update file verification fails.
  • the voice update file replaced with the storage address of the voice update file verification failure may be further verified until all the storage is performed.
  • the voice update file replaced in the address is successfully verified; or after multiple verification failures, an abnormal alarm can be fed back, prompting the network administrator to perform troubleshooting.
  • the embodiment provides a detailed process of the voice file synchronization method, and searches for the storage address of the voice file to be updated according to the association relationship between the pre-stored voice file and the voice file storage address; and according to the preset storage address arrangement order
  • the voice file to be updated stored in the storage address of the voice file to be updated is replaced with a voice update file, thereby reducing manual participation in the voice file synchronization process, reducing the erroneous operation rate during the voice file synchronization process, and improving the voice file. Synchronization efficiency.
  • a voice file synchronization device 30 according to an embodiment of the present invention is shown.
  • the device 30 can be integrated into a network management system, and the device 30 can include: a receiving unit. 301, a search unit 302 and a replacement unit 303; wherein
  • the receiving unit 301 is configured to receive a voice update file
  • the searching unit 302 is configured to search for a storage address of the voice file to be updated according to an association relationship between the pre-stored voice file and the voice file storage address;
  • the replacing unit 303 is configured to replace the to-be-updated voice file saved in the storage address of the voice file to be updated with the voice update file according to a preset storage address arrangement order.
  • the apparatus 30 may further include a check unit 304 and a determining unit 305;
  • the verification unit 304 is configured to sequentially verify the voice update file stored in the storage address according to a preset storage address arrangement order; and, when all the storage addresses are voice update files, Successfully, trigger determination unit 305; and, when the voice update file verification in at least one storage address fails, trigger replacement unit 303;
  • the determining unit 305 is configured to determine that the voice file is successfully synchronized
  • the replacement unit 303 is further arranged to replace the voice update file with a storage address at which the voice update file verification failed.
  • the apparatus 30 may further include an obtaining unit 306 configured to obtain a check code of the received voice update file.
  • the verification unit 304 is configured to obtain a verification code of the voice update file saved in the storage address of the voice file to be updated according to a preset storage address arrangement order, and check the verification code and the received voice update file. The checksums are compared.
  • the device 30 may further include: a generating unit 307, configured to generate a storage address queue according to the stored storage address of the voice file to be updated;
  • the preset storage address is arranged in the order in which the storage addresses held in the storage address queue are arranged.
  • the determining unit 305 is further configured to clear the storage address queue.
  • the above technical solution reduces manual participation in the process of synchronizing voice files, reduces the misoperation rate in the process of synchronizing voice files, and improves the synchronization efficiency of voice files.

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Telephonic Communication Services (AREA)

Abstract

一种语音文件同步的方法和装置,包括:接收语音更新文件;根据预存的语音文件与语音文件存储地址之间的关联关系查找待更新语音文件的存储地址;按照预设的存储地址排列顺序将待更新语音文件的存储地址中所保存的待更新语音文件替换为语音更新文件。本发明实施例方法,减少了语音文件同步过程中的人工参与,减少了语音文件同步过程中的误操作率,提高了语音文件的同步效率。

Description

语音文件同步的方法和装置 技术领域
本文涉及但不限于核心网技术,尤其涉及一种语音文件同步的方法和装置。
背景技术
在核心网***中,运营商会根据业务需要录制一些特定的语音文件,然后将这些语音文件加载到媒体网关,媒体网关再根据业务播放相应的语音。
通常情况下,运营商的一个通信局点有多个业务模块,每块业务模块有多个存储单元,而通信局点在日常开展业务时需要用到上千条语音文件,同一条语音会分布在多个业务模块的不同存储单元中。如果通信局点的业务发生改变从而需要对语音文件进行更新和同步时,那么需要找出该语音文件存储在哪些业务模块的存储单元中,随后再逐一替换。相关技术中,语音文件的替换操作是通过人工进行完成,工作量大,误操作几率大;并且通过人工操作很难直接知晓存储单元中存储的语音文件是否正确,确定存储的语音文件是否正确需要将存储单元中的语音文件下载后进行人工检查,效率低下。
发明内容
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。
本发明实施例提供一种语音文件同步的方法和装置,能够减少语音文件同步过程中的工作量和误操作几率,提高语音文件的同步效率。
本发明实施例提供了一种语音文件同步的方法,所述方法包括:
接收语音更新文件;
根据预存的语音文件与语音文件存储地址之间的关联关系查找待更新语音文件的存储地址;
按照预设的存储地址排列顺序将所述待更新语音文件的存储地址中所保存的待更新语音文件替换为所述语音更新文件。
可选的,在上述方案中,在将所述待更新语音文件的存储地址中所保存的待更新语音文件替换为所述语音更新文件后,所述方法还包括:
按照预设的存储地址排列顺序依次对存储地址中保存的语音更新文件进行校验;
当所有存储地址中的语音更新文件校验成功,则确定语音文件同步成功;
当至少一个存储地址中的语音更新文件校验失败,则将所述语音更新文件替换至语音更新文件校验失败的存储地址。
可选的,在上述方案中,所述接收语音更新文件时,所述方法还包括:获取所述接收到的语音更新文件的校验码;
按照预设的存储地址排列顺序依次对存储地址中保存的语音更新文件进行校验包括:
按照预设的存储地址排列顺序获取所述待更新语音文件的存储地址中保存的语音更新文件的校验码,并将所述校验码与所述接收到的语音更新文件的校验码进行比对。
可选的,在上述方案中,在根据预存的语音文件与语音文件存储地址之间的关联关系查找待更新语音文件的存储地址之后,所述方法还包括:
根据查询到的所述待更新语音文件的存储地址生成存储地址队列;
所述预设的存储地址排列顺序为所述存储地址队列中所保存的存储地址的排列顺序。
可选的,在上述方案中,所述确定语音文件同步成功之后,所述方法还包括:清空所述存储地址队列。
第二方面,本发明实施例提供了一种语音文件同步的装置,所述装置包括:接收单元、查找单元和替换单元;其中,
所述接收单元设置为,接收语音更新文件;
所述查找单元设置为,根据预存的语音文件与语音文件存储地址之间的关联关系查找待更新语音文件的存储地址;
所述替换单元设置为,按照预设的存储地址排列顺序将所述待更新语音 文件的存储地址中所保存的待更新语音文件替换为所述语音更新文件。
可选的,在上述方案中,所述装置还包括校验单元和确定单元;其中,
所述校验单元设置为,按照预设的存储地址排列顺序依次对存储地址中保存的语音更新文件进行校验;以及,当所有存储地址中的语音更新文件校验成功,触发确定单元;以及,当至少一个存储地址中的语音更新文件校验失败,触发所述替换单元;
所述确定单元设置为,确定语音文件同步成功;
所述替换单元还设置为,将所述语音更新文件替换至语音更新文件校验失败的存储地址。
可选的,在上述方案中,所述装置还包括获取单元,设置为获取所述接收到的语音更新文件的校验码;
所述校验单元是设置为,按照预设的存储地址排列顺序获取所述待更新语音文件的存储地址中保存的语音更新文件的校验码,并将所述校验码与所述接收到的语音更新文件的校验码进行比对。
可选的,在上述方案中,所述装置还包括:所述装置还包括:生成单元,设置为根据查询到的所述待更新语音文件的存储地址生成存储地址队列;
所述预设的存储地址排列顺序为所述存储地址队列中所保存的存储地址的排列顺序。
可选的,在上述方案中,确定单元还设置为,清空所述存储地址队列。
与相关技术相比,本发明提供的技术方案,包括:通过根据预存的语音文件与语音文件存储地址之间的关联关系查找待更新语音文件的存储地址;并且按照预设的存储地址排列顺序将待更新语音文件的存储地址中所保存的待更新语音文件替换为语音更新文件,从而减少了语音文件同步过程中的人工参与,减少了语音文件同步过程中的误操作率,提高了语音文件的同步效率。
在阅读并理解了附图和详细描述后,可以明白其他方面。
附图概述
图1为本发明实施例提供的一种语音文件同步的方法流程示意图;
图2为本发明实施例提供的一种语音文件同步的方法详细流程示意图;
图3为本发明实施例提供的一种语音文件同步的装置结构示意图;
图4为本发明实施例提供的另一种语音文件同步的装置结构示意图。
本发明的实施方式
下文中将结合附图对本申请的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。
实施例一
参见图1,其示出了本发明实施例提供的一种语音文件同步的方法,该方法可以应用于一网管***中,该方法可以包括:
步骤101:接收语音更新文件;
步骤102:根据预存的语音文件与语音文件存储地址之间的关联关系查找待更新语音文件的存储地址;
步骤103:按照预设的存储地址排列顺序将待更新语音文件的存储地址中所保存的待更新语音文件替换为语音更新文件。
示例性地,可以通过对替换后的语音更新文件进行校验来确定步骤101至步骤103的语音文件同步过程是否成功,可选地,在将待更新语音文件的存储地址中所保存的待更新语音文件替换为语音更新文件后,还可以包括:
按照预设的存储地址排列顺序依次对存储地址中保存的语音更新文件进行校验;
当所有存储地址中的语音更新文件校验成功,则确定语音文件同步成功;
当至少一个存储地址中的语音更新文件校验失败,则将语音更新文件替换至语音更新文件校验失败的存储地址;可以理解地,在将语音更新文件替换至语音更新文件校验失败的存储地址之后,还可以继续对替换至语音更新文件校验失败的存储地址的语音更新文件进行校验,直至所有存储地址中所替换的语音更新文件校验成功;或者当多次校验失败之后,可以反馈异常警报,从而提示网络管理员进行故障处理。
可选地,在执行步骤101时,本方法还可以获取接收到的语音更新文件的校验码,例如:消息摘要算法第五版(MD5,Message Digest Algorithm)码,安全哈希算法(SHA,Secure Hash Algorithm)码等验证码;
相应地,按照预设的存储地址排列顺序依次对存储地址中保存的语音更新文件进行校验,可以包括:
按照预设的存储地址排列顺序获取待更新语音文件的存储地址中所保存的语音更新文件的校验码,并将所述校验码与接收到的语音更新文件的校验码进行比对。
可选的,为了能够规范地对查找到的待更新语音文件的存储地址进行保存或缓存;在根据预存的语音文件与语音文件存储地址之间的关联关系查找待更新语音文件的存储地址之后,还可以包括:
根据查询到的所述待更新语音文件的存储地址生成存储地址队列;
需要说明的是,队列是待更新语音文件的存储地址的一种保存形式,存储地址队列中的每一项均对应着待更新语音文件的一个存储地址;可以理解地,由于各业务对应的业务模块中的存储单元均会保存该业务所使用的语音文件;于是,单一语音文件会保存在多个业务模块中的存储单元,也就是会有多个存储地址;所以,待更新语音文件的存储地址的数量至少为一个,并且步骤102中所述的预存的语音文件与语音文件存储地址之间的关联关系也可以是一张保存有语音文件与对应所保存的存储地址的语音文件地址信息表;
而且,本领域技术人员还可以用列表、链表、数组等其他具有顺序关系的数据结构对待更新语音文件的存储地址进行保存,本发明实施例对此不作赘述。
可选地,预设的存储地址排列顺序则可以是存储地址队列中所保存的存储地址的排列顺序。
可选地,当确定语音文件同步成功之后,还可以包括:清空存储地址队列。
本实施例提供了一种语音文件同步方法,通过根据预存的语音文件与语 音文件存储地址之间的关联关系查找待更新语音文件的存储地址;并且按照预设的存储地址排列顺序将待更新语音文件的存储地址中所保存的待更新语音文件替换为语音更新文件,从而减少了语音文件同步过程中的人工参与,减少了语音文件同步过程中的误操作率,提高了语音文件的同步效率。
本发明实施例还提供一种计算机存储介质,计算机存储介质中存储有计算机可执行指令,计算机可执行指令用于执行上述语音文件同步的方法。
实施例二
基于上述实施例相同的技术构思,参见图2,其示出了本发明实施例提供的一种语音文件同步方法的详细流程,该流程可以应用于网管***,该流程可以包括:
步骤201:接收语音更新文件,并生成语音更新文件对应的MD5值;
步骤202:根据语音更新文件的标识查找预存的语音文件与语音文件存储地址之间的关联关系,得到待更新语音文件的存储地址;
可以理解地,由于需要用语音更新文件来替换待更新语音文件来实现语音文件的同步过程,通常两者之间的文件标识是相同的,从而能够在替换之后,不会影响网管***程序对文件的调用。
步骤203:根据查询到的待更新语音文件的存储地址生成存储地址队列;
可以理解的,队列是待更新语音文件的存储地址的一种保存形式,本领域技术人员还可以用列表、链表、数组等其他具有顺序关系的数据结构对待更新语音文件的存储地址进行保存,本发明实施例对此不作赘述。
步骤204:按照存储地址队列中所保存的存储地址的排列顺序将待更新语音文件的存储地址中所保存的待更新语音文件替换为语音更新文件,并且替换完成后生成当前存储地址中保存的语音更新文件的MD5值;
步骤205:按照存储地址队列中所保存的存储地址的排列顺序获取待更新语音文件的存储地址中保存的语音更新文件的MD5值,并将该MD5值与接收到的语音更新文件的MD5值进行比对;当两者一致时,说明所有存储地 址中的语音更新文件校验成功,则转至步骤206;当两者不一致时,则说明至少一个存储地址中的语音更新文件校验失败,则转至步骤207;
步骤206:确定语音文件同步成功,清空存储地址队列;
步骤207:将语音更新文件替换至语音更新文件校验失败的存储地址。
可以理解地,在将所述语音更新文件替换至语音更新文件校验失败的存储地址之后,还可以继续对替换至语音更新文件校验失败的存储地址的语音更新文件进行校验,直至所有存储地址中所替换的语音更新文件校验成功;或者当多次校验失败之后,可以反馈异常警报,从而提示网络管理员进行故障处理。
本实施例提供了一种语音文件同步方法的详细流程,通过根据预存的语音文件与语音文件存储地址之间的关联关系查找待更新语音文件的存储地址;并且按照预设的存储地址排列顺序将待更新语音文件的存储地址中所保存的待更新语音文件替换为语音更新文件,从而减少了语音文件同步过程中的人工参与,减少了语音文件同步过程中的误操作率,提高了语音文件的同步效率。
实施例三
基于前述实施例相同的技术构思,参见图3,其示出了本发明实施例提供的一种语音文件同步装置30,该装置30可以集成于网络管理***中,该装置30可以包括:接收单元301、查找单元302和替换单元303;其中,
接收单元301设置为,接收语音更新文件;
查找单元302设置为,根据预存的语音文件与语音文件存储地址之间的关联关系查找待更新语音文件的存储地址;
替换单元303设置为,按照预设的存储地址排列顺序将待更新语音文件的存储地址中所保存的待更新语音文件替换为语音更新文件。
示例性地,参见图4,该装置30还可以包括校验单元304和确定单元305;其中,
校验单元304设置为,按照预设的存储地址排列顺序依次对存储地址中保存的语音更新文件进行校验;以及,当所有存储地址中的语音更新文件校 验成功,触发确定单元305;以及,当至少一个存储地址中的语音更新文件校验失败,触发替换单元303;
确定单元305设置为,确定语音文件同步成功;
替换单元303还设置为,将语音更新文件替换至语音更新文件校验失败的存储地址。
可选的,参见图4,装置30还可以包括获取单元306,设置为获取接收到的语音更新文件的校验码;
可选地,校验单元304设置为,按照预设的存储地址排列顺序获取待更新语音文件的存储地址中保存的语音更新文件的校验码,并将校验码与接收到的语音更新文件的校验码进行比对。
可选地,装置30还可以包括:生成单元307,设置为根据查询到的待更新语音文件的存储地址生成存储地址队列;
预设的存储地址排列顺序为存储地址队列中所保存的存储地址的排列顺序。
可选地,确定单元305,还设置为清空存储地址队列。
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件(例如处理器)完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的每个模块/单元可以采用硬件的形式实现,例如通过集成电路来实现其相应功能,也可以采用软件功能模块的形式实现,例如通过处理器执行存储于存储器中的程序/指令来实现其相应功能。本发明不限制于任何特定形式的硬件和软件的结合。”
虽然本申请所揭露的实施方式如上,但所述的内容仅为便于理解本申请而采用的实施方式,并非用以限定本申请,如本发明实施方式中的具体的实现方法。任何本申请所属领域内的技术人员,在不脱离本申请所揭露的精神和范围的前提下,可以在实施的形式及细节上进行任何的修改与变化,但本 申请的专利保护范围,仍须以所附的权利要求书所界定的范围为准。
工业实用性
上述技术方案减少了语音文件同步过程中的人工参与,减少了语音文件同步过程中的误操作率,提高了语音文件的同步效率。

Claims (10)

  1. 一种语音文件同步的方法,所述方法包括:
    接收语音更新文件;
    根据预存的语音文件与语音文件存储地址之间的关联关系查找待更新语音文件的存储地址;
    按照预设的存储地址排列顺序将所述待更新语音文件的存储地址中所保存的待更新语音文件替换为所述语音更新文件。
  2. 根据权利要求1所述的方法,所述方法还包括:将所述待更新语音文件的存储地址中所保存的待更新语音文件替换为所述语音更新文件后,
    按照预设的存储地址排列顺序依次对存储地址中保存的语音更新文件进行校验;
    当所有存储地址中的语音更新文件校验成功,则确定语音文件同步成功;
    当至少一个存储地址中的语音更新文件校验失败,则将所述语音更新文件替换至语音更新文件校验失败的存储地址。
  3. 根据权利要求2所述的方法,所述方法还包括:所述接收语音更新文件时,获取所述接收到的语音更新文件的校验码;
    所述按照预设的存储地址排列顺序依次对存储地址中保存的语音更新文件进行校验包括:
    按照预设的存储地址排列顺序获取所述待更新语音文件的存储地址中保存的语音更新文件的校验码,并将所述校验码与所述接收到的语音更新文件的校验码进行比对。
  4. 根据权利要求2所述的方法,所述方法还包括:在根据预存的语音文件与语音文件存储地址之间的关联关系查找待更新语音文件的存储地址之后,
    根据查询到的所述待更新语音文件的存储地址生成存储地址队列;
    所述预设的存储地址排列顺序为所述存储地址队列中所保存的存储地址的排列顺序。
  5. 根据权利要求4所述的方法,所述方法还包括:所述确定语音文件同步成功之后,清空所述存储地址队列。
  6. 一种语音文件同步的装置,所述装置包括:接收单元、查找单元和替换单元;其中,
    所述接收单元设置为,接收语音更新文件;
    所述查找单元设置为,根据预存的语音文件与语音文件存储地址之间的关联关系查找待更新语音文件的存储地址;
    所述替换单元设置为,按照预设的存储地址排列顺序将所述待更新语音文件的存储地址中所保存的待更新语音文件替换为所述语音更新文件。
  7. 根据权利要求6所述的装置,所述装置还包括校验单元和确定单元;其中,
    所述校验单元设置为,按照预设的存储地址排列顺序依次对存储地址中保存的语音更新文件进行校验;以及,当所有存储地址中的语音更新文件校验成功,触发确定单元;以及,当至少一个存储地址中的语音更新文件校验失败,触发所述替换单元;
    所述确定单元设置为,确定语音文件同步成功;
    所述替换单元还设置为,将所述语音更新文件替换至语音更新文件校验失败的存储地址。
  8. 根据权利要求7所述的装置,所述装置还包括获取单元,设置为获取所述接收到的语音更新文件的校验码;
    所述校验单元是设置为,按照预设的存储地址排列顺序获取所述待更新语音文件的存储地址中保存的语音更新文件的校验码,并将所述校验码与所述接收到的语音更新文件的校验码进行比对。
  9. 根据权利要求6所述的装置,所述装置还包括:生成单元,设置为根据查询到的所述待更新语音文件的存储地址生成存储地址队列;
    所述预设的存储地址排列顺序为所述存储地址队列中所保存的存储地址的排列顺序。
  10. 根据权利要求9所述的装置,所述确定单元还设置为,清空所述存储地址队列。
PCT/CN2016/079588 2015-08-10 2016-04-18 语音文件同步的方法和装置 WO2016180174A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510486013.9A CN106453455A (zh) 2015-08-10 2015-08-10 一种语音文件同步方法和装置
CN201510486013.9 2015-08-10

Publications (1)

Publication Number Publication Date
WO2016180174A1 true WO2016180174A1 (zh) 2016-11-17

Family

ID=57247752

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/079588 WO2016180174A1 (zh) 2015-08-10 2016-04-18 语音文件同步的方法和装置

Country Status (2)

Country Link
CN (1) CN106453455A (zh)
WO (1) WO2016180174A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109510678B (zh) * 2018-09-30 2020-10-27 武汉武钢绿色城市技术发展有限公司 一种通过中间件实现ip语音广播控制的方法
CN111611208A (zh) * 2020-05-27 2020-09-01 北京太极华保科技股份有限公司 文件存储与查询的方法及装置、存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6523022B1 (en) * 1997-06-09 2003-02-18 Allen Hobbs Method and apparatus for selectively augmenting retrieved information from a network resource
CN1561059A (zh) * 2004-02-23 2005-01-05 中兴通讯股份有限公司 一种通讯***中语音数据的加载方法
CN101119414A (zh) * 2007-09-19 2008-02-06 华为技术有限公司 访问数据库的方法及***
CN103179219A (zh) * 2011-12-20 2013-06-26 ***通信集团公司 一种内容寻址方法及***
CN104462141A (zh) * 2013-09-24 2015-03-25 ***通信集团重庆有限公司 一种数据存储与查询的方法、***及存储引擎装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6523022B1 (en) * 1997-06-09 2003-02-18 Allen Hobbs Method and apparatus for selectively augmenting retrieved information from a network resource
CN1561059A (zh) * 2004-02-23 2005-01-05 中兴通讯股份有限公司 一种通讯***中语音数据的加载方法
CN101119414A (zh) * 2007-09-19 2008-02-06 华为技术有限公司 访问数据库的方法及***
CN103179219A (zh) * 2011-12-20 2013-06-26 ***通信集团公司 一种内容寻址方法及***
CN104462141A (zh) * 2013-09-24 2015-03-25 ***通信集团重庆有限公司 一种数据存储与查询的方法、***及存储引擎装置

Also Published As

Publication number Publication date
CN106453455A (zh) 2017-02-22

Similar Documents

Publication Publication Date Title
US11086825B2 (en) Telemetry system for a cloud synchronization system
US8719386B2 (en) System and method for providing configuration synchronicity
CN109522363B (zh) 基于区块链的云平台同步方法、***、设备及存储介质
US20200372043A1 (en) Systems and methods of launching new nodes in a blockchain network
WO2020224238A1 (zh) 区块链节点的部署方法、装置、设备及存储介质
WO2017202224A1 (zh) 数据库访问口令管理方法
WO2020199713A1 (zh) 数据验证方法、***、装置及设备
CN111737230A (zh) 数据校验方法、装置、电子设备以及可读存储介质
US20120324279A1 (en) Method and Apparatus of Backing up Subversion Repository
WO2017107984A1 (zh) 一种数据恢复方法及装置
CN106850724B (zh) 数据推送方法及装置
CN111338834B (zh) 数据存储方法和装置
WO2016180174A1 (zh) 语音文件同步的方法和装置
US9031969B2 (en) Guaranteed in-flight SQL insert operation support during an RAC database failover
CN112579591B (zh) 数据校验方法、装置、电子设备及计算机可读存储介质
CN111427864A (zh) 数据的分批归档方法、装置、设备及存储介质
CN101616002B (zh) 一种用户身份验证方法及装置
CN111339100B (zh) 数据核对方法及装置
CN105765908B (zh) 一种多站点自动更新方法、客户端和***
TW201344574A (zh) 多點同步儲存之檔案下載異常處理系統及方法
CN110347609B (zh) 一种测试区块链软件的方法及装置
WO2015127758A1 (zh) 备份文件的数据重传方法及装置、***
US9912727B1 (en) Multiple concurrent in-flight replies in a distributed state system
CN112241332A (zh) 一种接口补偿的方法和装置
CN113094211B (zh) 一种备份数据处理的方法和装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16792024

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16792024

Country of ref document: EP

Kind code of ref document: A1