CN105335249A - Recording data importing and backing-up method and device based on IOS (IPhone Operating System) - Google Patents

Recording data importing and backing-up method and device based on IOS (IPhone Operating System) Download PDF

Info

Publication number
CN105335249A
CN105335249A CN201410333887.6A CN201410333887A CN105335249A CN 105335249 A CN105335249 A CN 105335249A CN 201410333887 A CN201410333887 A CN 201410333887A CN 105335249 A CN105335249 A CN 105335249A
Authority
CN
China
Prior art keywords
recording data
operating system
format
recording
ios
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.)
Granted
Application number
CN201410333887.6A
Other languages
Chinese (zh)
Other versions
CN105335249B (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.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing 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 Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201410333887.6A priority Critical patent/CN105335249B/en
Publication of CN105335249A publication Critical patent/CN105335249A/en
Application granted granted Critical
Publication of CN105335249B publication Critical patent/CN105335249B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Storage Device Security (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本发明公开了一种基于iOS操作系统的录音数据导入、备份方法及装置。该方法包括:通过应用程序调用iOS操作系统提供的设置有录音数据读取权限的SQLite的C语言接口,读取预定路径下的录音数据;按照无线通信接口反馈的格式,将读取的录音数据进行格式转换后,输出至所述无线通信接口,以使所述无线通信接口对格式转换后的录音数据进行封装,并将封装的录音数据输出至预先设置的外部设备进行存储。应用本发明,可以实现iOS操作系统中的录音数据与外部设备共享,提升录音数据存储的安全性。

The invention discloses a recording data import and backup method and device based on an iOS operating system. The method comprises: calling the C language interface of SQLite provided by the iOS operating system through the application program and having the permission to read recording data, and reading the recording data under the predetermined path; according to the format fed back by the wireless communication interface, the read recording data After format conversion, output to the wireless communication interface, so that the wireless communication interface encapsulates the recording data after format conversion, and outputs the encapsulated recording data to a preset external device for storage. By applying the present invention, the recording data in the iOS operating system can be shared with external devices, and the security of recording data storage can be improved.

Description

基于iOS操作系统的录音数据导入、备份方法及装置Recording data import and backup method and device based on iOS operating system

技术领域technical field

本发明涉及录音技术,具体涉及一种基于苹果移动(iOS,iPhoneOS)操作系统的录音数据导入、备份方法及装置。The invention relates to recording technology, in particular to a method and device for importing and backing up recording data based on an Apple mobile (iOS, iPhoneOS) operating system.

背景技术Background technique

苹果移动(iOS,iPhoneOS)操作系统作为苹果公司为iPhone、iPad、iPod等iOS设备开发的移动操作系统,由于可以兼容大量的应用软件,满足了不同用户的个性化需求,应用的用户越来越多;同时,随着信息科学技术的不断发展,用户在iOS设备上安装的应用软件也越来越多,使得iOS设备上的数据量迅猛增长。但由于iOS操作系统是一个封闭的操作系统,因此,应用开发者只能使用苹果公司对外公开提供的开发接口进行应用软件的开发,从而使得开发出的针对iOS操作系统的应用软件所能够实现的功能受制于提供的开发接口。例如,iOS操作系统中的录音软件对用户进行录音后,由于目前苹果公司并没有针对录音数据的导入和导出提供相关的接口,因此,iOS设备中录制的录音数据只能存储在iOS设备中,使得在需要对录音数据进行备份以提高录音数据安全性的场景下,录音数据的安全性较低;同时,外部设备录制的录音数据也无法导入到iOS设备,影响了用户业务的体验。The Apple Mobile (iOS, iPhoneOS) operating system, as a mobile operating system developed by Apple for iOS devices such as iPhone, iPad, and iPod, is compatible with a large number of application software and meets the individual needs of different users. The number of application users is increasing. At the same time, with the continuous development of information science and technology, users install more and more application software on iOS devices, which makes the amount of data on iOS devices increase rapidly. However, since the iOS operating system is a closed operating system, application developers can only use the development interface publicly provided by Apple to develop application software, so that the developed application software for the iOS operating system can achieve Functionality is subject to the provided development interface. For example, after the recording software in the iOS operating system records the user, since Apple currently does not provide a relevant interface for the import and export of recording data, the recording data recorded in the iOS device can only be stored in the iOS device. As a result, in scenarios where the recording data needs to be backed up to improve the security of the recording data, the security of the recording data is low; at the same time, the recording data recorded by the external device cannot be imported to the iOS device, which affects the user's service experience.

目前,对于非iOS设备,例如,固定终端设备,开发有一些软件,用于实现对非iOS设备中录音数据的导入和导出。例如,苹果的官方应用软件iTunes,或者第三方应用软件iTool,可以对非iOS设备中的录音数据进行导入和导出处理,其中,iTunes软件是一个免费应用程序,能播放所有的数字音乐和视频,iTools是一个用来同步iOS设备的电脑端软件。但由于iTunes以及iTool是基于OSX操作系统或windows操作系统,其中,OSX操作系统是苹果公司为Mac系列产品开发的专属操作系统,基于UNIX系统。由于接口的不同,因而,不能应用于iOS操作系统。因而,现有技术中还没有能够从iOS操作系统中导出录音数据、以及,将外部录音数据导入到iOS操作系统中的技术方案。Currently, for non-iOS devices, such as fixed terminal devices, some software has been developed for importing and exporting recording data in non-iOS devices. For example, Apple's official application software iTunes, or third-party application software iTool, can import and export recording data in non-iOS devices. Among them, iTunes software is a free application program that can play all digital music and videos. iTools is a computer-side software used to synchronize iOS devices. But because iTunes and iTool are based on OSX operating system or windows operating system, wherein, OSX operating system is an exclusive operating system developed by Apple for Mac series products, based on UNIX system. Due to the different interfaces, it cannot be applied to the iOS operating system. Therefore, there is no technical solution capable of exporting recording data from the iOS operating system and importing external recording data into the iOS operating system in the prior art.

发明内容Contents of the invention

鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的一种基于iOS操作系统的录音数据导入、备份方法及装置。In view of the above problems, the present invention is proposed to provide a method and device for importing and backing up recording data based on an iOS operating system that overcomes the above problems or at least partially solves the above problems.

依据本发明的一个方面,提供了一种基于iOS操作系统的录音数据备份方法,该方法包括:According to one aspect of the present invention, a kind of recording data backup method based on iOS operating system is provided, and the method comprises:

通过应用程序调用iOS操作系统提供的设置有录音数据读取权限的SQLite的C语言接口,读取预定路径下的录音数据;Call the C language interface of SQLite provided by the iOS operating system with the permission to read the recording data through the application program, and read the recording data under the predetermined path;

按照无线通信接口反馈的格式,将读取的录音数据进行格式转换后,输出至所述无线通信接口,以使所述无线通信接口对格式转换后的录音数据进行封装,并将封装的录音数据输出至预先设置的外部设备进行存储。According to the format fed back by the wireless communication interface, the format of the read recording data is converted and output to the wireless communication interface, so that the wireless communication interface encapsulates the recording data after the format conversion, and the encapsulated recording data Output to preset external devices for storage.

优选地,所述无线通信接口反馈包括:Preferably, the wireless communication interface feedback includes:

按照外部设备类型或预先设置的格式反馈。Feedback by external device type or preset format.

优选地,所述按照外部设备类型反馈包括:Preferably, the feedback according to the type of external device includes:

SQLite的C语言接口发送协商请求,所述协商请求中包含有无线通信接口标识以及自身支持的录音格式;The C language interface of SQLite sends a negotiation request, which includes the wireless communication interface identification and the recording format supported by itself;

无线通信接口将协商请求发送至所述外部设备,所述外部设备接收协商请求,获取自身支持的录音格式与SQLite的C语言支持的录音格式的交集,从交集中选取一录音格式,携带在协商请求响应中,通过无线通信接口反馈至SQLite的C语言接口。The wireless communication interface sends the negotiation request to the external device, and the external device receives the negotiation request, obtains the intersection of the recording format supported by itself and the recording format supported by the C language of SQLite, selects a recording format from the intersection, and carries it in the negotiation In the request response, it is fed back to the C language interface of SQLite through the wireless communication interface.

优选地,所述外部设备为光碟播放器,所述外部设备支持的录音格式包括:vob、ifo、ac3、dts。Preferably, the external device is a CD player, and the recording formats supported by the external device include: vob, ifo, ac3, dts.

优选地,所述外部设备为mp3播放器,所述外部设备支持的录音格式包括:mp3、mp2、mod、wav、voc、avi、ogg、wmv。Preferably, the external device is an mp3 player, and the recording formats supported by the external device include: mp3, mp2, mod, wav, voc, avi, ogg, wmv.

优选地,在所述读取预定路径下的录音数据之后,所述方法进一步包括:Preferably, after reading the recording data under the predetermined path, the method further includes:

调用iOSSDK的Media层的Framework,对读取的录音数据进行格式转换、和/或,编辑。Call the Framework of the Media layer of iOSSDK to convert and/or edit the read recording data.

优选地,在所述进行转换后,输出至所述无线通信接口之前,所述方法进一步包括:Preferably, after the conversion, before outputting to the wireless communication interface, the method further includes:

对格式转换、和/或,编辑后的录音数据按照预先设置的加密算法进行加密处理。The format converted and/or edited recording data is encrypted according to a preset encryption algorithm.

优选地,所述加密算法包括:增强的数据保密协议算法、数据加密算法、数据加密标准算法以及三层数据加密标准算法。Preferably, the encryption algorithm includes: an enhanced data confidentiality protocol algorithm, a data encryption algorithm, a data encryption standard algorithm, and a three-layer data encryption standard algorithm.

优选地,在所述读取预定路径下的录音数据之后,所述方法进一步包括:Preferably, after reading the recording data under the predetermined path, the method further includes:

提取读取的录音数据中包含的录音数据文件名,调用iOSSDK的CoreServices层的Framework或iOS操作系统API,读取录音数据文件名对应的配置文件;Extract the recording data file name contained in the read recording data, call the Framework or iOS operating system API of the CoreServices layer of iOSSDK, and read the configuration file corresponding to the recording data file name;

将读取的录音数据的配置文件通过所述调用的iOSSDK的CoreServices层的Framework或iOS操作系统API,输出至预先设置的外部设备。Output the configuration file of the read recording data to the pre-set external device through the Framework or iOS operating system API of the CoreServices layer of the called iOSSDK.

优选地,所述录音数据以预先设置的ZRECORDING表存储在所述预定路径,所述预定路径为:/var/mobile/Media/Recordings/Recordings.db。Preferably, the recording data is stored in the predetermined path with a preset ZRECORDING table, and the predetermined path is: /var/mobile/Media/Recordings/Recordings.db.

优选地,所述ZRECORDING表中字段包括:Z_PK、ZITUNESPERSISTENTID、ZLABELPRESET、ZDATE、ZDURATION、ZCUSTOMLABEL、ZPATH,其中,Preferably, the fields in the ZRECORDING table include: Z_PK, ZITUNESPERSISTENTID, ZLABELPRESET, ZDATE, ZDURATION, ZCUSTOMLABEL, ZPATH, wherein,

Z_PK字段为iOS设备录制的录音数据标识;The Z_PK field is the identification of the recording data recorded by the iOS device;

ZITUNESPERSISTENTID字段为录音数据后续用于同步的同步标识,例如,后续与外部设备通过iTunes进行同步的同步标识;The ZITUNESPERSISTENTID field is the synchronization identifier for subsequent synchronization of recording data, for example, the synchronization identifier for subsequent synchronization with external devices through iTunes;

ZLABELPRESET字段为iOS操作系统预置的录音数据标签的编号;The ZLABELPRESET field is the number of the recording data label preset by the iOS operating system;

ZDATE字段为录音数据创建日期;The ZDATE field is the creation date of the recording data;

ZDURATION字段为录音数据时长;The ZDURATION field is the recording data duration;

ZCUSTOMLABEL字段为自定义的录音数据标签;The ZCUSTOMLABEL field is a custom recording data label;

ZPATH字段为录音数据对应的录音数据文件名存储路径。The ZPATH field is the storage path of the recording data file name corresponding to the recording data.

优选地,所述配置文件中数据以键值的格式存储,键为所述ZRECORDING表中ZPATH字段中的录音数据文件名信息,值包含同步标识以及录音数据显示名称,其中,同步标识对应所述ZRECORDING表中的ZITUNESPERSISTENTID字段值,录音数据显示名称对应所述ZRECORDING表中的ZCUSTOMLABEL字段值,或者,ZLABELPRESET字段值。Preferably, the data in the configuration file is stored in a key-value format, the key is the recording data file name information in the ZPATH field in the ZRECORDING table, and the value includes a synchronization identifier and a display name of the recording data, wherein the synchronization identifier corresponds to the The value of the ZITUNESPERSISTENTID field in the ZRECORDING table and the display name of the recording data correspond to the value of the ZCUSTOMLABEL field in the ZRECORDING table, or the value of the ZLABELPRESET field.

优选地,在所述调用iOS操作系统提供的SQLite的C语言接口之前,所述方法进一步包括:Preferably, before the C language interface of the SQLite provided by the calling iOS operating system, the method further includes:

接收用户输入的录音数据备份请求。Receive the recording data backup request input by the user.

优选地,所述方法进一步包括:Preferably, the method further comprises:

确定所述录音数据输出至预先设置的外部设备进行存储后,删除iOS设备中的录音数据。After confirming that the recording data is output to the preset external device for storage, delete the recording data in the iOS device.

优选地,所述方法进一步包括:Preferably, the method further comprises:

将所述录音数据输出至所述外部设备的隐私存储区域进行存储。Outputting the recording data to a private storage area of the external device for storage.

优选地,设置录音数据读取权限的SQLite的C语言接口包括:Preferably, the C language interface of the SQLite that sets recording data read permission includes:

获取iOS操作系统的根权限;Obtain the root authority of the iOS operating system;

查找SQLite的C语言接口进程中读取权限的内存变量;Find the memory variable with read permission in the C language interface process of SQLite;

在所述读取权限的内存变量中,增加录音数据读取权限的内存变量。In the memory variable of the reading permission, add the memory variable of the recording data reading permission.

根据本发明的另一个方面提供了一种基于iOS操作系统的录音数据导入方法,包括:According to another aspect of the present invention, a kind of recording data import method based on iOS operating system is provided, comprising:

通过应用程序调用iOS操作系统提供的SQLite的C语言接口,接收来自无线通信接口的待导入的录音数据,按照预设的格式,将接收的待导入的录音数据进行格式转换;Call the C language interface of SQLite provided by the iOS operating system through the application program, receive the recording data to be imported from the wireless communication interface, and convert the format of the received recording data to be imported according to the preset format;

提取接收的录音数据中包含的录音数据文件名,调用iOSSDK的CoreServices层的Framework或iOS操作系统API,读取录音数据文件名对应的配置文件;Extract the recording data file name contained in the received recording data, call the Framework or iOS operating system API of the CoreServices layer of iOSSDK, and read the configuration file corresponding to the recording data file name;

将读取的录音数据的配置文件通过所述调用的iOSSDK的CoreServices层的Framework或iOS操作系统API,写入至iOS设备;Write the configuration file of the recorded recording data to the iOS device through the Framework or iOS operating system API of the CoreServices layer of the iOSSDK called;

将进行格式转换的录音数据通过所述调用的iOS操作系统提供的SQLite的C语言接口写入至iOS设备进行存储。The recording data converted into formats is written to the iOS device through the C language interface of SQLite provided by the called iOS operating system for storage.

优选地,所述方法进一步包括:Preferably, the method further comprises:

对接收的录音数据进行解密。Decrypt the received recording data.

优选地,所述方法进一步包括:Preferably, the method further comprises:

调用iOSSDK的Media层的Framework,对接收的录音数据进行格式转换、和/或,编辑。Call the Framework of the Media layer of iOSSDK to convert and/or edit the received recording data.

优选地,所述预设的格式为预先设置的ZRECORDING表,所述ZRECORDING表中字段包括:Z_PK、ZITUNESPERSISTENTID、ZLABELPRESET、ZDATE、ZDURATION、ZCUSTOMLABEL、ZPATH,其中,Preferably, the preset format is a preset ZRECORDING table, and the fields in the ZRECORDING table include: Z_PK, ZITUNESPERSISTENTID, ZLABELPRESET, ZDATE, ZDURATION, ZCUSTOMLABEL, ZPATH, wherein,

Z_PK字段为iOS设备录制的录音数据标识;The Z_PK field is the identification of the recording data recorded by the iOS device;

ZITUNESPERSISTENTID字段为录音数据后续用于同步的同步标识,例如,后续与外部设备通过iTunes进行同步的同步标识;The ZITUNESPERSISTENTID field is the synchronization identifier for subsequent synchronization of recording data, for example, the synchronization identifier for subsequent synchronization with external devices through iTunes;

ZLABELPRESET字段为iOS操作系统预置的录音数据标签的编号;The ZLABELPRESET field is the number of the recording data label preset by the iOS operating system;

ZDATE字段为录音数据创建日期;The ZDATE field is the creation date of the recording data;

ZDURATION字段为录音数据时长;The ZDURATION field is the recording data duration;

ZCUSTOMLABEL字段为自定义的录音数据标签;The ZCUSTOMLABEL field is a custom recording data label;

ZPATH字段为录音数据对应的录音数据文件名存储路径。The ZPATH field is the storage path of the recording data file name corresponding to the recording data.

根据本发明的再一个方面提供了一种基于iOS操作系统的录音数据备份装置,该装置包括:录音数据读取模块、配置文件读取模块、配置文件输出模块以及录音数据备份模块,其中,According to another aspect of the present invention there is provided a recording data backup device based on an iOS operating system, the device comprising: a recording data reading module, a configuration file reading module, a configuration file output module and a recording data backup module, wherein,

录音数据读取模块,用于通过应用程序调用iOS操作系统提供的设置有录音数据读取权限的SQLite的C语言接口,读取预定路径下的录音数据;The recording data reading module is used to call the C language interface provided by the iOS operating system provided by the iOS operating system with the SQLite reading authority for reading the recording data, and read the recording data under the predetermined path;

配置文件读取模块,用于提取读取的录音数据中包含的录音数据文件名,调用iOSSDK的CoreServices层的Framework或iOS操作系统API,读取录音数据文件名对应的配置文件;The configuration file reading module is used to extract the recording data file name contained in the read recording data, call the Framework of the CoreServices layer of iOSSDK or the iOS operating system API, and read the configuration file corresponding to the recording data file name;

配置文件输出模块,用于将读取的录音数据的配置文件通过所述调用的iOSSDK的CoreServices层的Framework或iOS操作系统API,输出至预先设置的外部设备;The configuration file output module is used to output the configuration file of the recorded recording data to a pre-set external device through the Framework or iOS operating system API of the CoreServices layer of the iOSSDK that is called;

录音数据备份模块,用于将读取的录音数据按照无线通信接口反馈的格式进行格式转换后,输出至所述无线通信接口,以使所述无线通信接口对格式转换后的录音数据进行封装,并将封装的录音数据输出至预先设置的外部设备进行存储。The recording data backup module is used to perform format conversion on the read recording data according to the format fed back by the wireless communication interface, and then output to the wireless communication interface, so that the wireless communication interface encapsulates the format-converted recording data, And output the encapsulated recording data to the preset external device for storage.

优选地,所述无线通信接口反馈的格式包括:Preferably, the format of the wireless communication interface feedback includes:

SQLite的C语言接口发送协商请求,所述协商请求中包含有无线通信接口标识以及自身支持的录音格式;The C language interface of SQLite sends a negotiation request, which includes the wireless communication interface identification and the recording format supported by itself;

无线通信接口将协商请求发送至所述外部设备,所述外部设备接收协商请求,获取自身支持的录音格式与SQLite的C语言支持的录音格式的交集,从交集中选取一录音格式,携带在协商请求响应中,通过无线通信接口反馈至SQLite的C语言接口。The wireless communication interface sends the negotiation request to the external device, and the external device receives the negotiation request, obtains the intersection of the recording format supported by itself and the recording format supported by the C language of SQLite, selects a recording format from the intersection, and carries it in the negotiation In the request response, it is fed back to the C language interface of SQLite through the wireless communication interface.

优选地,所述装置进一步包括:Preferably, the device further comprises:

录音数据编辑模块,用于调用iOSSDK的Media层的Framework,对录音数据读取模块读取的录音数据进行格式转换、和/或,编辑。The recording data editing module is used to call the Framework of the Media layer of the iOSSDK, and perform format conversion and/or editing on the recording data read by the recording data reading module.

优选地,所述装置进一步包括:Preferably, the device further comprises:

加密模块,用于对录音数据或格式转换、和/或,编辑后的录音数据按照预先设置的加密算法进行加密处理。The encryption module is used for encrypting recording data or format conversion, and/or, editing the recording data according to a preset encryption algorithm.

优选地,所述装置进一步包括:Preferably, the device further comprises:

录音数据删除模块,用于在确定录音数据备份模块备份录音数据成功后,删除iOS设备中的录音数据。The recording data deletion module is used to delete the recording data in the iOS device after determining that the recording data backup module has successfully backed up the recording data.

根据本发明的再一个方面提供了一种基于iOS操作系统的录音数据导入装置,该装置包括:录音数据导入模块、配置文件获取模块、配置文件写入模块以及录音数据存储模块,其中,According to another aspect of the present invention, a recording data importing device based on an iOS operating system is provided, the device comprising: a recording data importing module, a configuration file acquisition module, a configuration file writing module and a recording data storage module, wherein,

录音数据导入模块,用于通过应用程序调用iOS操作系统提供的SQLite的C语言接口,接收待导入的录音数据;The recording data import module is used to call the C language interface of SQLite provided by the iOS operating system through the application program to receive the recording data to be imported;

配置文件获取模块,用于提取接收的录音数据中包含的录音数据文件名,调用iOSSDK的CoreServices层的Framework或iOS操作系统API,读取录音数据文件名对应的配置文件;The configuration file acquisition module is used to extract the recording data file name contained in the received recording data, call the Framework of the CoreServices layer of iOSSDK or the iOS operating system API, and read the configuration file corresponding to the recording data file name;

配置文件写入模块,用于将读取的录音数据的配置文件通过所述调用的iOSSDK的CoreServices层的Framework或iOS操作系统API,写入至iOS设备;The configuration file writing module is used to write the configuration file of the recorded recording data to the iOS device through the Framework or the iOS operating system API of the CoreServices layer of the iOSSDK that is called;

录音数据存储模块,用于将接收的录音数据通过所述调用的iOS操作系统提供的SQLite的C语言接口,按照预设的格式写入至iOS设备进行存储。The recording data storage module is used to write the received recording data to the iOS device according to the preset format through the C language interface of SQLite provided by the called iOS operating system for storage.

优选地,所述装置进一步包括:Preferably, the device further comprises:

解密模块,用于对接收的录音数据进行解密。The decryption module is used for decrypting the received recording data.

优选地,所述装置进一步包括:Preferably, the device further comprises:

录音数据修改模块,用于调用iOSSDK的Media层的Framework,对接收的录音数据进行格式转换、和/或,编辑。The recording data modification module is used to call the Framework of the Media layer of the iOSSDK to perform format conversion and/or editing on the received recording data.

根据本发明的基于iOS操作系统的录音数据导入、备份方法及装置,可以利用利用iOS操作系统提供的SQLite的C语言接口,读取录音数据,并利用iOSSDK的CoreServices层的Framework或者iOS操作系统API,读取配置文件(AssetManifest.plist),从而进行录音数据的导入和备份。由此解决了无法从iOS操作系统中备份录音数据、以及,将外部录音数据导入到iOS操作系统中的技术问题,取得了iOS操作系统中的录音数据能够与外部设备共享,提升录音数据存储的安全性的有益效果。According to the method and device for importing and backing up recording data based on the iOS operating system of the present invention, the C language interface of SQLite provided by the iOS operating system can be utilized to read the recording data, and the Framework of the CoreServices layer of the iOSSDK or the API of the iOS operating system can be used , read the configuration file (AssetManifest.plist), so as to import and backup recording data. This solves the technical problem of not being able to backup recording data from the iOS operating system and importing external recording data into the iOS operating system, and achieves that the recording data in the iOS operating system can be shared with external devices, improving the storage of recording data The beneficial effect of safety.

上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention, it can be implemented according to the contents of the description, and in order to make the above and other purposes, features and advantages of the present invention more obvious and understandable , the specific embodiments of the present invention are enumerated below.

附图说明Description of drawings

通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiment. The drawings are only for the purpose of illustrating a preferred embodiment and are not to be considered as limiting the invention. Also throughout the drawings, the same reference numerals are used to designate the same parts. In the attached picture:

图1示出了本发明实施例基于iOS操作系统的录音数据备份方法流程;Fig. 1 shows the flow chart of the recording data backup method based on the iOS operating system in an embodiment of the present invention;

图2示出了本发明实施例基于iOS操作系统的录音数据导入方法流程;Fig. 2 shows the process flow of the recording data import method based on the iOS operating system in an embodiment of the present invention;

图3示出了本发明实施例基于iOS操作系统的录音数据备份装置结构;以及,Fig. 3 shows the structure of the recording data backup device based on the iOS operating system in an embodiment of the present invention; and,

图4示出了本发明实施例基于iOS操作系统的录音数据导入装置结构。Fig. 4 shows the structure of the recording data importing device based on the iOS operating system according to the embodiment of the present invention.

具体实施方式detailed description

下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

现有技术中,当iOS操作系统中的录音软件对用户进行录音后,由于目前苹果公司并没有针对录音数据的导入和备份提供相关的接口,因此,iOS设备中录制的录音数据不能实现与外部设备的交互,使得录音数据的安全性较低,影响了用户业务的体验。In the prior art, after the recording software in the iOS operating system records the user, since Apple does not provide relevant interfaces for importing and backing up the recording data, the recording data recorded in the iOS device cannot be shared with external users. Interaction between devices makes recording data less secure and affects user service experience.

在iOS操作系统架构中,包括:CoreOS层、CoreServices层、Media层以及CocoaTouch层,其中,In the iOS operating system architecture, including: CoreOS layer, CoreServices layer, Media layer and CocoaTouch layer, among them,

核心(Core)OS层是开源、符合POSIX标准的一个Unix核心,用于提供iOS操作系统的基础功能,其中,基础功能可以通过C语言的API来提供,包括:硬件驱动、内存管理、程序管理、线程管理(POSIX)、文件系统以及标准输入输出等。其中,核心OS层的硬件驱动功能用于提供硬件和系统框架之间的接口。由于基于安全的考虑,在iOS操作系统中,只有有限的系统框架类能访问硬件驱动。The core (Core) OS layer is a Unix core that is open source and conforms to the POSIX standard. It is used to provide the basic functions of the iOS operating system. Among them, the basic functions can be provided through the C language API, including: hardware drivers, memory management, and program management. , thread management (POSIX), file system, and standard input and output. Among them, the hardware driver function of the core OS layer is used to provide an interface between the hardware and the system framework. Due to security considerations, only limited system framework classes can access hardware drivers in the iOS operating system.

CoreServices层在CoreOS层上,基于CoreOS层基础,提供了更为丰富的功能,即为所有的应用程序提供基础系统服务,是基础系统服务构建的基础,包含:Foundation.Framework功能以及CoreFoundation.Framework功能,其中,框架(Foundation)是属于Objective-C的API,CoreFundation是属于C语言的API,用于提供处理字串、排列、组合、日历、时间等基本功能。The CoreServices layer is on the CoreOS layer and based on the CoreOS layer foundation, it provides more abundant functions, that is, it provides basic system services for all applications, which is the basis for the construction of basic system services, including: Foundation.Framework functions and CoreFoundation.Framework functions , wherein, the framework (Foundation) is an API belonging to Objective-C, and CoreFundation is an API belonging to C language, which is used to provide basic functions such as processing strings, arrangement, combination, calendar, and time.

Media层用于提供图片、音乐、影片等多媒体功能。The Media layer is used to provide multimedia functions such as pictures, music, and movies.

CocoaTouch层位于最上层,是Objective-C的API,其中最核心的部分是UIKit.Framework。作为功能之一,CocoaTouch层可以提供应用程序界面上的各种组件呈现。The CocoaTouch layer is located on the top layer, which is the API of Objective-C, the core part of which is UIKit.Framework. As one of the functions, the CocoaTouch layer can provide various component presentations on the application interface.

其中,CoreOS层以及CoreServices层的C语言的API利用C/C++常规接口函数实现,控制SQLite数据库连接对象和预置对象,C/C++常规接口函数包括:sqlite3_open()、sqlite3_prepare()、sqlite3_step()、sqlite3_column()、sqlite3_finalize()、sqlite3_close()。其中,SQLite数据库是一款轻型的关联式数据库,能够支持Windows/Linux/Unix等主流操作系统,该系统利用客户端/服务器端(C/S,Client/Server)两层架构来实现用户与数据库的关联,客户端调用统一的C语言的API函数(C/C++常规接口函数),通过因特网与远程服务器建立连接,服务器底层与SQLite数据库关联,客户端提出数据访问的方法,首先由服务器接管,并由服务器将访问方法逐个提交给SQLITE数据库处理,然后将处理的结果由服务器发送给客户端,因为服务器是多用户接口都可以访问的,又支持网络连接,所以通过服务器来接管所有的客户连接与访问,这样就实现了SQLite数据库具有多用户的网络访问功能。Among them, the C language API of the CoreOS layer and the CoreServices layer is implemented by using C/C++ conventional interface functions to control SQLite database connection objects and preset objects. The C/C++ conventional interface functions include: sqlite3_open(), sqlite3_prepare(), sqlite3_step() , sqlite3_column(), sqlite3_finalize(), sqlite3_close(). Among them, the SQLite database is a light-weight relational database that can support mainstream operating systems such as Windows/Linux/Unix. The system utilizes a client/server (C/S, Client/Server) two-tier The association, the client calls the unified C language API function (C/C++ conventional interface function), establishes a connection with the remote server through the Internet, the bottom layer of the server is associated with the SQLite database, and the client proposes a data access method, which is first taken over by the server. And the server submits the access methods one by one to the SQLITE database for processing, and then sends the processing results to the client by the server, because the server can be accessed by multiple user interfaces and supports network connections, so all client connections are taken over by the server and access, so that the SQLite database has a multi-user network access function.

本发明实施例中,考虑利用iOS操作系统提供的SQLite的C语言接口,读取录音数据,并利用iOSSDK的CoreServices层的Framework或者iOS操作系统API,读取配置文件(AssetManifest.plist),从而进行录音数据的导入和备份,提出从iOS操作系统中备份录音数据、以及,将外部录音数据导入到iOS操作系统中的具体实施方案,使得iOS操作系统中的录音数据能够与外部设备共享,提升录音数据存储的安全性。In the embodiment of the present invention, consider using the C language interface of SQLite provided by the iOS operating system to read the recording data, and use the Framework of the CoreServices layer of the iOSSDK or the iOS operating system API to read the configuration file (AssetManifest.plist), thereby performing Import and backup of recording data, propose a specific implementation plan for backing up recording data from the iOS operating system, and importing external recording data into the iOS operating system, so that the recording data in the iOS operating system can be shared with external devices and improve recording quality. Security of data storage.

图1示出了本发明实施例基于iOS操作系统的录音数据备份方法流程。参见图1,该方法包括:Fig. 1 shows the flow of the recording data backup method based on the iOS operating system according to the embodiment of the present invention. Referring to Figure 1, the method includes:

步骤101,通过应用程序调用iOS操作系统提供的设置有录音数据读取权限的SQLite的C语言接口,读取预定路径下的录音数据;Step 101, calling the C language interface provided by the iOS operating system provided by the iOS operating system with the SQLite reading permission for recording data, to read the recording data under the predetermined path;

本步骤中,设置利用iOS操作系统提供的SQLite的C语言接口作为iOS设备中录音数据导入和备份的接口,通过SQLite的C语言接口读取iOS设备录音生成的录音数据或录音数据(Recordings.db)。In this step, set the C language interface of SQLite provided by the iOS operating system as the interface for importing and backing up recording data in the iOS device, and read the recording data or recording data (Recordings.db) generated by the recording of the iOS device through the C language interface of SQLite. ).

本步骤中,设置录音数据读取权限的SQLite的C语言接口包括:In this step, the C language interface of SQLite for setting the recording data read permission includes:

获取iOS操作系统的根权限;Obtain the root authority of the iOS operating system;

查找SQLite的C语言接口进程中读取权限的内存变量;Find the memory variable with read permission in the C language interface process of SQLite;

在所述读取权限的内存变量中,增加录音数据读取权限的内存变量。In the memory variable of the reading permission, add the memory variable of the recording data reading permission.

本发明实施例中,作为可选实施例,设置在iOS4、iOS5、iOS6、iOS7等iOS操作系统中,录音数据(录音数据库文件)以预先设置的ZRECORDING表进行存储,并设置录音数据(ZRECORDING表)存储的路径为:/var/mobile/Media/Recordings/Recordings.db。In the embodiment of the present invention, as an optional embodiment, it is set in iOS operating systems such as iOS4, iOS5, iOS6, iOS7, and the recording data (recording database file) is stored with a preset ZRECORDING table, and the recording data (ZRECORDING table) is set ) storage path is: /var/mobile/Media/Recordings/Recordings.db.

在Recordings.db数据库中,ZRECORDING表中的字段包括:Z_PK、ZITUNESPERSISTENTID、ZLABELPRESET、ZDATE、ZDURATION、ZCUSTOMLABEL、ZPATH等字段。其中,In the Recordings.db database, the fields in the ZRECORDING table include: Z_PK, ZITUNESPERSISTENTID, ZLABELPRESET, ZDATE, ZDURATION, ZCUSTOMLABEL, ZPATH and other fields. in,

Z_PK字段为iOS设备录制的录音数据标识;The Z_PK field is the identification of the recording data recorded by the iOS device;

ZITUNESPERSISTENTID字段为录音数据后续用于同步的同步标识,例如,后续与外部设备通过iTunes进行同步的同步标识;The ZITUNESPERSISTENTID field is the synchronization identifier for subsequent synchronization of recording data, for example, the synchronization identifier for subsequent synchronization with external devices through iTunes;

ZLABELPRESET字段为iOS操作系统预置的录音数据标签的编号;The ZLABELPRESET field is the number of the recording data label preset by the iOS operating system;

ZDATE字段为录音数据创建日期;The ZDATE field is the creation date of the recording data;

ZDURATION字段为录音数据时长;The ZDURATION field is the recording data duration;

ZCUSTOMLABEL字段为自定义的录音数据标签;The ZCUSTOMLABEL field is a custom recording data label;

ZPATH字段为录音数据对应的录音数据文件名存储路径。The ZPATH field is the storage path of the recording data file name corresponding to the recording data.

作为可选实施例,在读取录音数据后,可以对读取的录音数据进行编辑以及修改,使之满足用户个性化的需求。因而,该方法进一步包括:As an optional embodiment, after the recording data is read, the read recording data can be edited and modified to meet the individual needs of the user. Thus, the method further includes:

调用iOSSDK的Media层的Framework,对读取的录音数据进行格式转换、和/或,编辑。Call the Framework of the Media layer of iOSSDK to convert and/or edit the read recording data.

本步骤中,可以根据iOS设备支持的录音数据格式与有线或无线相连的外部设备支持的录音数据格式,协商iOS设备与外部设备可以兼容的录音数据格式,并按照协商的录音数据格式,对读取的录音数据进行格式转换。例如,外部设备支持avi格式的录音数据,而iOS设备支持avi、swf以及rm格式的录音数据,则经过协商,采用avi格式,如果iOS设备录音生成的录音数据格式为avi,则无需进行格式转换,如果iOS设备录音生成的录音数据为swf以及rm格式,则将swf以及rm格式的录音数据转换为avi格式的录音数据。关于格式转换的具体流程为公知技术,在此略去详述。当然,实际应用中,也可以在外部设备侧进行录音数据格式转换。In this step, according to the recording data format supported by the iOS device and the recording data format supported by the wired or wireless connected external device, the recording data format compatible with the iOS device and the external device can be negotiated, and the reading can be performed according to the negotiated recording data format. Format conversion of the recorded recording data. For example, if the external device supports recording data in avi format, and the iOS device supports recording data in avi, swf, and rm formats, the avi format will be adopted after negotiation. If the recording data format generated by iOS device recording is avi, no format conversion is required , if the recording data generated by the iOS device recording is in the swf and rm formats, convert the recording data in the swf and rm formats to the recording data in the avi format. The specific process of format conversion is a known technology, and the detailed description is omitted here. Of course, in practical applications, the recording data format conversion can also be performed on the external device side.

编辑可以为用户提供一种编辑录音数据的功能,例如,用户通过编辑录音数据,可以实现截取部分录音、增大音量、声音变调等功能。在对录音数据进行编辑后,ZRECORDING表中的相应字段可以根据编辑的录音数据进行相应更新。Editing can provide users with a function of editing recording data. For example, users can realize functions such as intercepting part of the recording, increasing the volume, and changing the tone of the voice by editing the recording data. After editing the recording data, the corresponding fields in the ZRECORDING table can be updated accordingly according to the edited recording data.

进一步地,为了保障录音数据在传输过程中的安全性,在对录音数据进行格式转换、编辑后,该方法还可以进一步包括:Further, in order to ensure the security of the recording data during transmission, after performing format conversion and editing on the recording data, the method may further include:

对格式转换、和/或,编辑后的录音数据按照预先设置的加密算法进行加密处理。The format converted and/or edited recording data is encrypted according to a preset encryption algorithm.

本步骤中,加密算法包括:增强的数据保密协议(AES,AdvancedEncryptionStandard)、数据加密算法(DEA,DataEncryptionAlgorithm)、数据加密标准(DES,DataEncryptionStandard)以及三层数据加密标准(3DES,TripleDES)等。关于采用何种加密算法,可以通过iOS设备与外部设备的协商来确定,在此略去详述。In this step, the encryption algorithm includes: enhanced data encryption protocol (AES, AdvancedEncryptionStandard), data encryption algorithm (DEA, DataEncryptionAlgorithm), data encryption standard (DES, DataEncryptionStandard), and three-layer data encryption standard (3DES, TripleDES). Which encryption algorithm to use can be determined through negotiation between the iOS device and the external device, and details are omitted here.

作为可选实施例,在调用iOS操作系统提供的SQLite的C语言接口之前,该方法进一步包括:As an optional embodiment, before calling the C language interface of SQLite provided by the iOS operating system, the method further includes:

接收用户输入的录音数据备份请求。Receive the recording data backup request input by the user.

本步骤中,为了将iOS设备中的录音数据备份到外部设备,以使外部设备对iOS设备中的录音数据进行备份,提升录音数据的安全性,在将iOS设备与外部设备相连(无线或有线连接)后,向iOS设备发出录音数据备份请求,从而触发调用iOS操作系统提供的SQLite的C语言接口。In this step, in order to back up the recording data in the iOS device to an external device, so that the external device can back up the recording data in the iOS device and improve the security of the recording data, when the iOS device is connected to the external device (wireless or wired) After connecting), send a recording data backup request to the iOS device, thereby triggering the C language interface of calling the SQLite provided by the iOS operating system.

外部设备可以是智能终端设备,包括:移动智能终端设备、固定智能终端设备以及其他电子设备。例如,电脑、个人数字助理、移动电话、硬盘、闪存等。The external device may be an intelligent terminal device, including: a mobile intelligent terminal device, a fixed intelligent terminal device and other electronic devices. For example, computers, personal digital assistants, mobile phones, hard drives, flash memory, etc.

步骤102,提取读取的录音数据中包含的录音数据文件名,调用iOSSDK的CoreServices层的Framework或iOS操作系统API,读取录音数据文件名对应的配置文件;Step 102, extracting the recording data file name contained in the read recording data, calling the Framework or iOS operating system API of the CoreServices layer of iOSSDK, and reading the configuration file corresponding to the recording data file name;

本步骤为可选步骤,本步骤中,通过调用的iOS操作系统提供的SQLite的C语言接口提取录音数据中包含的录音数据文件名。This step is an optional step. In this step, the file name of the recording data contained in the recording data is extracted by calling the SQLite C language interface provided by the iOS operating system.

软件开发工具包(SDK,SoftwareDevelopmentKit)是预先设置的用于为特定软件包、软件框架、硬件平台、操作系统等创建应用软件的开发工具的集合。A software development kit (SDK, Software Development Kit) is a collection of pre-configured development tools for creating application software for specific software packages, software frameworks, hardware platforms, operating systems, and the like.

配置文件是指录音数据的存储路径、创建日期、文件名、录音数据等信息。The configuration file refers to the storage path, creation date, file name, recording data and other information of the recording data.

在配置文件(AssetManifest.plist)中,数据以键值(Key-Value)的格式存储,Key为录音数据文件名,即数据库Recordings.db中,ZRECORDING表中ZPATH字段中的录音数据文件名信息,Value包含同步标识(pid)以及录音数据显示名称。其中,pid对应数据库ZRECORDING表中的ZITUNESPERSISTENTID字段值,录音数据显示名称对应ZRECORDING表中的ZCUSTOMLABEL字段值,或者,ZLABELPRESET字段值。In the configuration file (AssetManifest.plist), the data is stored in the format of key-value (Key-Value), Key is the recording data file name, that is, the recording data file name information in the ZPATH field in the ZRECORDING table in the database Recordings.db, Value contains the synchronization identification (pid) and the display name of the recording data. Among them, pid corresponds to the ZITUNESPERSISTENTID field value in the ZRECORDING table of the database, and the recording data display name corresponds to the ZCUSTOMLABEL field value in the ZRECORDING table, or, the ZLABELPRESET field value.

本发明实施例中,通过提取读取的录音数据中包含的录音数据文件名,遍历存储的配置文件中的Key,获取与录音数据文件名相匹配的Key,然后,调用iOSSDK的CoreServices层的Framework或iOS操作系统API,读取该匹配的Key所在的配置文件。In the embodiment of the present invention, by extracting the recording data file name contained in the read recording data, traversing the Key in the stored configuration file, obtaining the Key matching the recording data file name, and then calling the Framework of the CoreServices layer of iOSSDK Or the iOS operating system API to read the configuration file where the matching Key is located.

所应说明的是,步骤102为可选步骤,用于与后续外部设备进行同步,以保持录音数据的一致性,从而不影响iOS设备和iTunes的录音数据的同步机制。It should be noted that step 102 is an optional step, which is used for synchronizing with subsequent external devices to maintain the consistency of the recording data, so as not to affect the synchronization mechanism of the recording data between the iOS device and iTunes.

步骤103,将读取的录音数据的配置文件通过所述调用的iOSSDK的CoreServices层的Framework或iOS操作系统API,输出至预先设置的外部设备;Step 103, output the configuration file of the recorded recording data to the preset external device through the Framework or iOS operating system API of the CoreServices layer of the iOSSDK called;

本步骤中,可以采用空投(AirDrop)、短信以及邮件的方式输出配置文件,外部设备存储接收的配置文件。这样,在后续流程中,通过将外部设备存储的配置文件与iOS设备存储的配置文件进行比较,如果相同,表明iOS设备与外部设备中的录音数据是一致的,即是同步的,如果不一致,则表明iOS设备与外部设备中的录音数据没有实现同步,并可提示用户是否需要将外部设备中的配置文件进行覆盖处理。In this step, the configuration file can be output by means of AirDrop, SMS or email, and the external device stores the received configuration file. In this way, in the subsequent process, by comparing the configuration file stored in the external device with the configuration file stored in the iOS device, if they are the same, it indicates that the recording data in the iOS device and the external device are consistent, that is, they are synchronized; if they are not consistent, It indicates that the recording data in the iOS device and the external device are not synchronized, and the user may be prompted whether to overwrite the configuration file in the external device.

所应说明的是,步骤103为可选步骤。It should be noted that step 103 is an optional step.

步骤104,按照无线通信接口反馈的格式,将读取的录音数据进行格式转换后,输出至所述无线通信接口,以使所述无线通信接口对格式转换后的录音数据进行封装,并将封装的录音数据输出至预先设置的外部设备进行存储。Step 104, according to the format fed back by the wireless communication interface, convert the format of the read recording data, and output it to the wireless communication interface, so that the wireless communication interface encapsulates the format-converted recording data, and encapsulates The recorded data can be output to a pre-set external device for storage.

本步骤中,如果录音数据进行了格式转换或编辑处理或加密处理,则将进行了格式转换或编辑或加密处理的录音数据,通过所述调用的iOS操作系统提供的SQLite的C语言接口输出至所述无线通信接口,并通过输出至所述无线通信接口传输至外部设备。In this step, if the recording data has undergone format conversion or editing or encryption processing, then the recording data that has undergone format conversion or editing or encryption processing will be output to the the wireless communication interface, and transmit to external equipment by outputting to the wireless communication interface.

所述无线通信接口反馈包括:The wireless communication interface feedback includes:

按照外部设备类型或预先设置的格式反馈。Feedback by external device type or preset format.

所述按照外部设备类型反馈包括:The feedback according to the type of external device includes:

SQLite的C语言接口发送协商请求,所述协商请求中包含有无线通信接口标识以及自身支持的录音格式;The C language interface of SQLite sends a negotiation request, which includes the wireless communication interface identification and the recording format supported by itself;

无线通信接口将协商请求发送至所述外部设备,所述外部设备接收协商请求,获取自身支持的录音格式与SQLite的C语言支持的录音格式的交集,从交集中选取一录音格式,携带在协商请求响应中,通过无线通信接口反馈至SQLite的C语言接口。The wireless communication interface sends the negotiation request to the external device, and the external device receives the negotiation request, obtains the intersection of the recording format supported by itself and the recording format supported by the C language of SQLite, selects a recording format from the intersection, and carries it in the negotiation In the request response, it is fed back to the C language interface of SQLite through the wireless communication interface.

由于外部设备的不同,外部设备支持的录音格式也会有所不同。例如,如果外部设备为光碟播放器,则外部设备支持的录音格式可以包括:vob、ifo、ac3、dts;再例如,如果外部设备为mp3播放器,则外部设备支持的录音格式可以包括:mp3、mp2、mod、wav、voc、avi、ogg、wmv。再例如,如果外部设备为台式机电脑,且安装了暴风影音播放器(安装不同软件的外部设备支持的录音格式也可以不同),则支持的录音格式可以包括:avi、wmv、wmp、asf;wma、wav、mid、midi;rm、ram、rmvb、smi;vob、ifo、ac3、dts。Due to the different external devices, the recording formats supported by the external devices will also be different. For example, if the external device is a CD player, the recording formats supported by the external device may include: vob, ifo, ac3, dts; for another example, if the external device is an mp3 player, the recording formats supported by the external device may include: mp3 , mp2, mod, wav, voc, avi, ogg, wmv. For another example, if the external device is a desktop computer, and the Baofeng video player is installed (the recording format supported by the external device with different software installed may also be different), the supported recording formats may include: avi, wmv, wmp, asf; wma, wav, mid, midi; rm, ram, rmvb, smi; vob, ifo, ac3, dts.

作为可选实施例,可以采用空投(AirDrop)、短信以及邮件的方式传输录音数据。外部设备在存储录音数据后,可以相应修改ZRECORDING表中的相应字段。As an optional embodiment, the recording data may be transmitted by means of AirDrop, short message and email. After the external device stores the recording data, it can modify the corresponding fields in the ZRECORDING table accordingly.

作为可选实施例,选用在外部设备的隐私存储区域存储接收的录音数据。例如,隐私存储区域可以是手机卫士保险箱,这样,可以保证只有相应权限的用户才能访问该录音数据,从而提升录音数据存储的安全性。As an optional embodiment, the received recording data is stored in a private storage area of the external device. For example, the privacy storage area can be a mobile phone guard safe, so that only users with corresponding permissions can access the recording data, thereby improving the security of recording data storage.

进一步地,为了避免录音数据在iOS设备中的泄漏,对于用户将录音数据备份至外部设备的隐私存储区域进行存储的情形,该方法还可以包括:Further, in order to avoid leakage of the recording data in the iOS device, for the situation where the user backs up the recording data to the private storage area of the external device for storage, the method may also include:

删除iOS设备中的录音数据。Delete the recorded data in the iOS device.

本步骤中,将录音数据导入手机卫士保险箱后,从iOS设备的iOS操作系统中删除该录音数据,可以有效保护用户的隐私,使录音数据只存储在手机卫士保险箱中。进一步地,存储的录音数设置有加密密钥,因而,其他用户在没有获取加密密钥的情况下,无法获取设置有加密密钥的录音数据,从而进一步提升录音数据的安全性。In this step, after importing the recorded data into the safe of the mobile phone guard, deleting the recorded data from the iOS operating system of the iOS device can effectively protect the user's privacy, so that the recorded data is only stored in the safe of the mobile guard. Furthermore, the stored recording data is provided with an encryption key, so other users cannot obtain the recording data provided with the encryption key without obtaining the encryption key, thereby further improving the security of the recording data.

本发明实施例中,在将iPhone等iOS设备通过有线或无线连接到电脑,并将录音数据从iOS备份,导入到电脑后,iTunes执行将录音数据与电脑安装的iTunes软件中iTunes资料库进行同步。当将录音数据同步到iTunes中后,录音数据仍保留在iOS设备的录音数据应用程序中。在对录音数据进行了有效备份后,可以删除iOS设备中的录音数据,如果删除iPhone中的录音数据,该录音数据不会从iTunes的“语音备忘录”播放列表中删除。但是,如果从iTunes中删除语音备忘录(录音数据),则下次将iOS设备与iTunes进行同步时,将自动从iPhone上删除该录音数据。In the embodiment of the present invention, after iOS devices such as the iPhone are connected to the computer by wire or wirelessly, and the recording data is backed up from the iOS and imported into the computer, iTunes executes to synchronize the recording data with the iTunes database in the iTunes software installed on the computer. . When the recording data is synced to iTunes, the recording data remains in the recording data application of the iOS device. After effectively backing up the recording data, you can delete the recording data in the iOS device. If you delete the recording data in the iPhone, the recording data will not be deleted from the "Voice Memo" playlist in iTunes. However, if you delete voice memos (recorded data) from iTunes, the recorded data will be automatically deleted from the iPhone the next time you sync your iOS device with iTunes.

下面举一具体例子,对本发明实施例基于iOS操作系统的录音数据备份方法进行详细说明。A specific example is given below to describe in detail the method for backing up recording data based on the iOS operating system in the embodiment of the present invention.

假设iOS6设备中的iOS6操作系统录音程序对应的录音数据列表中,包括有七份录音数据。其中,第一份录音数据文件名为Idea,录于13.7.2617:22,录音时长5秒(s);第二份录音数据文件名为森林鸟叫,录于13.7.2617:22,录音时长5秒(s);第三份录音数据文件名为Interview,录于13.7.712:09,录音时长9分(m)15秒(s);第四份录音数据文件名为Lecture,录于13.7.711:56,录音时长8分(m)8秒(s);第五份录音数据文件名为Meeting,录于13.7.78:33,录音时长1分(m)26秒(s);第六份录音数据文件名为Memo,录于13.7.78:05,录音时长15分(m)9秒(s);第七份录音数据文件名为学车录音,录于13.7.67:19,录音时长12分(m)11秒(s)。选取其中的一份或多份录音数据,通过点击录音数据列表界面中的共享控件,触发生成录音数据备份请求,通过应用程序调用iOS操作系统提供的SQLite的C语言接口,可以将选取的录音数据通过与SQLite的C语言接口相连的无线通信接口输出至预先设置的外部设备。在确定选取的录音数据导入到外部设备后,再通过点击录音数据列表界面中的删除控件,可以将选取的录音数据删除。Assume that the recording data list corresponding to the iOS6 operating system recording program in the iOS6 device includes seven pieces of recording data. Among them, the name of the first recording data file is Idea, recorded at 13.7.2617:22, and the recording time is 5 seconds (s); the second recording data file is named Forest Birds, recorded at 13.7.2617:22, and the recording time is 5 seconds (s). 5 seconds (s); the third recording data file is called Interview, recorded at 13.7. .711:56, the recording time is 8 minutes (m) and 8 seconds (s); the fifth recording data file is named Meeting, recorded at 13.7.78:33, the recording time is 1 minute (m) and 26 seconds (s); The six recording data files are named Memo, recorded at 13.7.78:05, and the recording time is 15 minutes (m) and 9 seconds (s); the seventh recording data file is named Xueche Recording, recorded at 13.7.67:19, recording The duration is 12 minutes (m) and 11 seconds (s). Select one or more pieces of recording data, and click the share control in the recording data list interface to trigger the generation of a recording data backup request, and call the SQLite C language interface provided by the iOS operating system through the application program to save the selected recording data Output to pre-set external devices through the wireless communication interface connected to the C language interface of SQLite. After confirming that the selected recording data is imported to the external device, the selected recording data can be deleted by clicking the delete control in the recording data list interface.

图2示出了本发明实施例基于iOS操作系统的录音数据导入方法流程。参见图2,该方法包括:Fig. 2 shows the flow of the recording data importing method based on the iOS operating system according to the embodiment of the present invention. Referring to Figure 2, the method includes:

步骤201,通过应用程序调用iOS操作系统提供的SQLite的C语言接口,接收来自无线通信接口的待导入的录音数据;Step 201, call the C language interface of SQLite provided by the iOS operating system through the application program, and receive the recording data to be imported from the wireless communication interface;

本步骤中,iOS设备在监测到有来自外部设备的录音数据后,通过无线通信接口进行录音数据接收。In this step, after the iOS device detects the recording data from the external device, it receives the recording data through the wireless communication interface.

作为可选实施例,该方法进一步包括:As an optional embodiment, the method further includes:

对接收的录音数据进行解密。Decrypt the received recording data.

本步骤中,如果对录音数据进行了加密处理,则对待导入的录音数据进行解密,解密算法包括:增强的数据保密协议(AES,AdvancedEncryptionStandard)、数据加密算法(DEA,DataEncryptionAlgorithm)、数据加密标准(DES,DataEncryptionStandard)以及三层数据加密标准(3DES,TripleDES)等。In this step, if the recording data is encrypted, the recording data to be imported is decrypted, and the decryption algorithm includes: enhanced data security protocol (AES, AdvancedEncryptionStandard), data encryption algorithm (DEA, DataEncryptionAlgorithm), data encryption standard ( DES, DataEncryptionStandard) and three-layer data encryption standard (3DES, TripleDES), etc.

作为可选实施例,该方法进一步包括:As an optional embodiment, the method further includes:

调用iOSSDK的Media层的Framework,对接收的录音数据进行格式转换、和/或,编辑。Call the Framework of the Media layer of iOSSDK to convert and/or edit the received recording data.

本步骤中,可以根据iOS设备支持的录音数据格式与有线或无线相连的外部设备支持的录音数据格式,协商iOS设备与外部设备可以兼容的录音数据格式,并按照协商的录音数据格式,对读取的录音数据进行格式转换。In this step, according to the recording data format supported by the iOS device and the recording data format supported by the wired or wireless connected external device, the recording data format compatible with the iOS device and the external device can be negotiated, and the reading can be performed according to the negotiated recording data format. Format conversion of the recorded recording data.

本步骤中,如果对录音数据进行了加密处理,则在进行格式转换、编辑之前,对待导入的录音数据进行解密。In this step, if the recording data is encrypted, the recording data to be imported is decrypted before format conversion and editing.

步骤202,提取接收的录音数据中包含的录音数据文件名,调用iOSSDK的CoreServices层的Framework或iOS操作系统API,读取录音数据文件名对应的配置文件;Step 202, extracting the recording data file name contained in the recording data received, calling the Framework or iOS operating system API of the CoreServices layer of iOSSDK, and reading the configuration file corresponding to the recording data file name;

本步骤中,通过调用iOSSDK的CoreServices层的Framework或iOS操作系统API,在接收的录音数据中,读取录音数据文件名对应的配置文件。In this step, read the configuration file corresponding to the file name of the recording data in the received recording data by calling the Framework of the CoreServices layer of the iOSSDK or the API of the iOS operating system.

步骤203,将读取的录音数据的配置文件通过所述调用的iOSSDK的CoreServices层的Framework或iOS操作系统API,写入至iOS设备;Step 203, write the configuration file of the recorded recording data to the iOS device through the Framework or iOS operating system API of the CoreServices layer of the iOSSDK called;

本步骤中,iOS设备存储接收的配置文件。这样,在后续流程中,通过将外部设备存储的配置文件与iOS设备存储的配置文件进行比较,如果相同,表明iOS设备与外部设备中的录音数据是一致的,即是同步的,如果不一致,则表明iOS设备与外部设备中的录音数据没有实现同步,并可提示用户是否需要将外部设备中的配置文件进行覆盖处理。In this step, the iOS device stores the received configuration file. In this way, in the subsequent process, by comparing the configuration file stored in the external device with the configuration file stored in the iOS device, if they are the same, it indicates that the recording data in the iOS device and the external device are consistent, that is, they are synchronized; if they are not consistent, It indicates that the recording data in the iOS device and the external device are not synchronized, and the user may be prompted whether to overwrite the configuration file in the external device.

步骤204,调用iOS操作系统提供的SQLite的C语言接口,将接收的待导入的录音数据按照预设的格式进行格式转换后写入至iOS设备进行存储。Step 204, call the C language interface of SQLite provided by the iOS operating system, convert the received recording data to be imported according to the preset format, and then write it to the iOS device for storage.

本步骤中,预设的格式为预先设置的ZRECORDING表,ZRECORDING表中的字段包括:Z_PK、ZITUNESPERSISTENTID、ZLABELPRESET、ZDATE、ZDURATION、ZCUSTOMLABEL、ZPATH等字段。In this step, the preset format is the preset ZRECORDING table, and the fields in the ZRECORDING table include: Z_PK, ZITUNESPERSISTENTID, ZLABELPRESET, ZDATE, ZDURATION, ZCUSTOMLABEL, ZPATH and other fields.

本发明实施例中,作为可选实施例,可以设置录音数据(ZRECORDING表)存储的路径为:/var/mobile/Media/Recordings/Recordings.db。In the embodiment of the present invention, as an optional embodiment, the storage path of recording data (ZRECORDING table) can be set as: /var/mobile/Media/Recordings/Recordings.db.

由上述可见,本发明实施例中,通过设置用于对录音数据导入和备份的接口,从而可以实现从iOS操作系统中备份录音数据、以及,将外部录音数据导入到iOS操作系统中,实现了录音数据的有效备份,从而提升录音数据的安全性;进一步地,对于具有隐私的录音数据,可以在录音数据备份时进行加密处理,提升其安全性;而且,可以将来源于其他地方的录音数据,导入到iOS设备的录音程序,对录音数据的管理更方便和集中,实现对iOS操作系统录音数据的备份、加密、导回,使外部录音数据信息能与iOS操作系统录音数据打通,在录音数据导回时不会丢失信息、不影响和iTunes之间的同步机制。As can be seen from the above, in the embodiment of the present invention, by setting an interface for importing and backing up recording data, backup recording data from the iOS operating system and importing external recording data into the iOS operating system can be realized. Effective backup of recording data, thereby improving the security of recording data; further, for recording data with privacy, encryption processing can be performed during recording data backup to improve its security; moreover, recording data from other places can be , imported into the recording program of the iOS device, the management of the recording data is more convenient and centralized, and the backup, encryption, and import of the recording data of the iOS operating system are realized, so that the external recording data information can be connected with the recording data of the iOS operating system, and the recording When the data is imported back, no information will be lost, and the synchronization mechanism with iTunes will not be affected.

图3示出了本发明实施例基于iOS操作系统的录音数据备份装置结构。参见图3,该装置为iOS设备,包括:录音数据读取模块、配置文件读取模块、配置文件输出模块以及录音数据备份模块,其中,Fig. 3 shows the structure of the recording data backup device based on the iOS operating system according to the embodiment of the present invention. Referring to Fig. 3, the device is an iOS device, including: a recording data reading module, a configuration file reading module, a configuration file output module and a recording data backup module, wherein,

录音数据读取模块,用于通过应用程序调用iOS操作系统提供的设置有录音数据读取权限的SQLite的C语言接口,读取预定路径下的录音数据;The recording data reading module is used to call the C language interface provided by the iOS operating system provided by the iOS operating system with the SQLite reading authority for reading the recording data, and read the recording data under the predetermined path;

本发明实施例中,录音数据以预先设置的ZRECORDING表进行存储,在iOS设备中的存储路径为:/var/mobile/Media/Recordings/Recordings.db。In the embodiment of the present invention, the recording data is stored in the preset ZRECORDING table, and the storage path in the iOS device is: /var/mobile/Media/Recordings/Recordings.db.

ZRECORDING表中的字段包括:Z_PK、ZITUNESPERSISTENTID、ZLABELPRESET、ZDATE、ZDURATION、ZCUSTOMLABEL、ZPATH等字段。其中,The fields in the ZRECORDING table include: Z_PK, ZITUNESPERSISTENTID, ZLABELPRESET, ZDATE, ZDURATION, ZCUSTOMLABEL, ZPATH and other fields. in,

Z_PK字段为iOS设备录制的录音数据标识;The Z_PK field is the identification of the recording data recorded by the iOS device;

ZITUNESPERSISTENTID字段为录音数据后续用于同步的同步标识,例如,后续与外部设备通过iTunes进行同步的同步标识;The ZITUNESPERSISTENTID field is the synchronization identifier for subsequent synchronization of recording data, for example, the synchronization identifier for subsequent synchronization with external devices through iTunes;

ZLABELPRESET字段为iOS操作系统预置的录音数据标签的编号;The ZLABELPRESET field is the number of the recording data label preset by the iOS operating system;

ZDATE字段为录音数据创建日期;The ZDATE field is the creation date of the recording data;

ZDURATION字段为录音数据时长;The ZDURATION field is the recording data duration;

ZCUSTOMLABEL字段为自定义的录音数据标签;The ZCUSTOMLABEL field is a custom recording data label;

ZPATH字段为录音数据对应的录音数据文件名存储路径。The ZPATH field is the storage path of the recording data file name corresponding to the recording data.

配置文件读取模块,用于提取读取的录音数据中包含的录音数据文件名,调用iOSSDK的CoreServices层的Framework或iOS操作系统API,读取录音数据文件名对应的配置文件;The configuration file reading module is used to extract the recording data file name contained in the read recording data, call the Framework of the CoreServices layer of iOSSDK or the iOS operating system API, and read the configuration file corresponding to the recording data file name;

本发明实施例中,配置文件(AssetManifest.plist)中的数据以Key-Value的格式存储,Key为ZRECORDING表中ZPATH字段中的录音数据文件名信息,Value包含同步标识(pid)以及录音数据显示名称。其中,pid对应数据库ZRECORDING表中的ZITUNESPERSISTENTID字段值,录音数据显示名称对应ZRECORDING表中的ZCUSTOMLABEL字段值,或者,ZLABELPRESET字段值。In the embodiment of the present invention, the data in the configuration file (AssetManifest.plist) is stored in the format of Key-Value, Key is the recording data file name information in the ZPATH field in the ZRECORDING table, and Value includes the synchronization identification (pid) and recording data display name. Among them, pid corresponds to the ZITUNESPERSISTENTID field value in the ZRECORDING table of the database, and the recording data display name corresponds to the ZCUSTOMLABEL field value in the ZRECORDING table, or, the ZLABELPRESET field value.

配置文件输出模块,用于将读取的录音数据的配置文件通过所述调用的iOSSDK的CoreServices层的Framework或iOS操作系统API,输出至预先设置的外部设备;The configuration file output module is used to output the configuration file of the recorded recording data to a pre-set external device through the Framework or iOS operating system API of the CoreServices layer of the iOSSDK that is called;

录音数据备份模块,用于将读取的录音数据按照无线通信接口反馈的格式进行格式转换后,输出至所述无线通信接口,以使所述无线通信接口对格式转换后的录音数据进行封装,并将封装的录音数据输出至预先设置的外部设备进行存储。The recording data backup module is used to perform format conversion on the read recording data according to the format fed back by the wireless communication interface, and then output to the wireless communication interface, so that the wireless communication interface encapsulates the format-converted recording data, And output the encapsulated recording data to the preset external device for storage.

本发明实施例中,所述无线通信接口反馈的格式包括:In the embodiment of the present invention, the format of the wireless communication interface feedback includes:

SQLite的C语言接口发送协商请求,所述协商请求中包含有无线通信接口标识以及自身支持的录音格式;The C language interface of SQLite sends a negotiation request, which includes the wireless communication interface identification and the recording format supported by itself;

无线通信接口将协商请求发送至所述外部设备,所述外部设备接收协商请求,获取自身支持的录音格式与SQLite的C语言支持的录音格式的交集,从交集中选取一录音格式,携带在协商请求响应中,通过无线通信接口反馈至SQLite的C语言接口。The wireless communication interface sends the negotiation request to the external device, and the external device receives the negotiation request, obtains the intersection of the recording format supported by itself and the recording format supported by the C language of SQLite, selects a recording format from the intersection, and carries it in the negotiation In the request response, it is fed back to the C language interface of SQLite through the wireless communication interface.

作为可选实施例,外部设备为光碟播放器,所述外部设备支持的录音格式包括:vob、ifo、ac3、dts。As an optional embodiment, the external device is a CD player, and the recording formats supported by the external device include: vob, ifo, ac3, and dts.

作为另一可选实施例,所述外部设备为mp3播放器,所述外部设备支持的录音格式包括:mp3、mp2、mod、wav、voc、avi、ogg、wmv。As another optional embodiment, the external device is an mp3 player, and the recording formats supported by the external device include: mp3, mp2, mod, wav, voc, avi, ogg, and wmv.

作为再一可选实施例,所述外部设备为安装了暴风影音播放器的台式机电脑,则支持的录音格式可以包括:avi、wmv、wmp、asf;wma、wav、mid、midi;rm、ram、rmvb、smi;vob、ifo、ac3、dts。As yet another optional embodiment, the external device is a desktop computer with a Baofeng video player installed, and the recording formats supported may include: avi, wmv, wmp, asf; wma, wav, mid, midi; rm, ram, rmvb, smi; vob, ifo, ac3, dts.

作为可选实施例,该装置还可以进一步包括:As an optional embodiment, the device may further include:

录音数据编辑模块,用于调用iOSSDK的Media层的Framework,对录音数据读取模块读取的录音数据进行格式转换、和/或,编辑。The recording data editing module is used to call the Framework of the Media layer of the iOSSDK, and perform format conversion and/or editing on the recording data read by the recording data reading module.

本发明实施例中,iOS设备根据自身支持的录音数据格式与有线或无线相连的外部设备支持的录音数据格式,协商iOS设备与外部设备可以兼容的录音数据格式,并按照协商的录音数据格式,对读取的录音数据进行格式转换。In the embodiment of the present invention, the iOS device negotiates a compatible recording data format between the iOS device and the external device according to the recording data format supported by itself and the recording data format supported by the wired or wireless connected external device, and according to the negotiated recording data format, Convert the format of the read recording data.

作为另一可选实施例,该装置还可以进一步包括:As another optional embodiment, the device may further include:

加密模块,用于对格式转换、和/或,编辑后的录音数据按照预先设置的加密算法进行加密处理。The encryption module is used to encrypt the format converted and/or edited recording data according to a preset encryption algorithm.

本发明实施例中,加密算法包括:增强的数据保密协议、数据加密算法、数据加密标准算法以及三层数据加密标准算法等。In the embodiment of the present invention, the encryption algorithm includes: an enhanced data confidentiality protocol, a data encryption algorithm, a data encryption standard algorithm, a three-layer data encryption standard algorithm, and the like.

作为再一可选实施例,该装置还可以进一步包括:As yet another optional embodiment, the device may further include:

录音数据删除模块,用于在确定录音数据备份模块备份录音数据成功后,删除iOS设备中的录音数据。The recording data deletion module is used to delete the recording data in the iOS device after determining that the recording data backup module has successfully backed up the recording data.

图4示出了本发明实施例基于iOS操作系统的录音数据导入装置结构。参见图4,该装置为iOS设备,包括:录音数据导入模块、配置文件获取模块、配置文件写入模块以及录音数据存储模块,其中,Fig. 4 shows the structure of the recording data importing device based on the iOS operating system according to the embodiment of the present invention. Referring to Figure 4, the device is an iOS device, including: a recording data import module, a configuration file acquisition module, a configuration file writing module and a recording data storage module, wherein,

录音数据导入模块,用于通过应用程序调用iOS操作系统提供的SQLite的C语言接口,接收待导入的录音数据;The recording data import module is used to call the C language interface of SQLite provided by the iOS operating system through the application program to receive the recording data to be imported;

配置文件获取模块,用于提取接收的录音数据中包含的录音数据文件名,调用iOSSDK的CoreServices层的Framework或iOS操作系统API,读取录音数据文件名对应的配置文件;The configuration file acquisition module is used to extract the recording data file name contained in the received recording data, call the Framework of the CoreServices layer of iOSSDK or the iOS operating system API, and read the configuration file corresponding to the recording data file name;

配置文件写入模块,用于将读取的录音数据的配置文件通过所述调用的iOSSDK的CoreServices层的Framework或iOS操作系统API,写入至iOS设备;The configuration file writing module is used to write the configuration file of the recorded recording data to the iOS device through the Framework or the iOS operating system API of the CoreServices layer of the iOSSDK that is called;

录音数据存储模块,用于将接收的录音数据通过所述调用的iOS操作系统提供的SQLite的C语言接口,按照预设的格式写入至iOS设备进行存储。The recording data storage module is used to write the received recording data to the iOS device according to the preset format through the C language interface of SQLite provided by the called iOS operating system for storage.

本发明实施例中,预设的格式为预先设置的ZRECORDING表,ZRECORDING表中的字段包括:Z_PK、ZITUNESPERSISTENTID、ZLABELPRESET、ZDATE、ZDURATION、ZCUSTOMLABEL、ZPATH等字段。In the embodiment of the present invention, the preset format is a preset ZRECORDING table, and the fields in the ZRECORDING table include: Z_PK, ZITUNESPERSISTENTID, ZLABELPRESET, ZDATE, ZDURATION, ZCUSTOMLABEL, ZPATH and other fields.

作为可选实施例,该装置进一步包括:As an optional embodiment, the device further includes:

解密模块,用于对接收的录音数据进行解密。The decryption module is used for decrypting the received recording data.

作为另一可选实施例,该装置进一步包括:As another optional embodiment, the device further includes:

录音数据修改模块,用于调用iOSSDK的Media层的Framework,对接收的录音数据进行格式转换、和/或,编辑。The recording data modification module is used to call the Framework of the Media layer of the iOSSDK to perform format conversion and/or editing on the received recording data.

在此提供的算法和显示不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造这类系统所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。The algorithms and displays presented herein are not inherently related to any particular computer, virtual system, or other device. Various generic systems can also be used with the teachings based on this. The structure required to construct such a system is apparent from the above description. Furthermore, the present invention is not specific to any particular programming language. It should be understood that various programming languages can be used to implement the content of the present invention described herein, and the above description of specific languages is for disclosing the best mode of the present invention.

在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure the understanding of this description.

类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, in order to streamline this disclosure and to facilitate an understanding of one or more of the various inventive aspects, various features of the invention are sometimes grouped together in a single embodiment, figure, or its description. This method of disclosure, however, is not to be interpreted as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the Detailed Description are hereby expressly incorporated into this Detailed Description, with each claim standing on its own as a separate embodiment of this invention.

本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。Those skilled in the art can understand that the modules in the device in the embodiment can be adaptively changed and arranged in one or more devices different from the embodiment. Modules or units or components in the embodiments may be combined into one module or unit or component, and furthermore may be divided into a plurality of sub-modules or sub-units or sub-assemblies. All features disclosed in this specification (including accompanying claims, abstract and drawings) and any method or method so disclosed may be used in any combination, except that at least some of such features and/or processes or units are mutually exclusive. All processes or units of equipment are combined. Each feature disclosed in this specification (including accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.

此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。Furthermore, those skilled in the art will understand that although some embodiments described herein include some features included in other embodiments but not others, combinations of features from different embodiments are meant to be within the scope of the invention. and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.

本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的基于iOS操作系统的录音数据导入装置以及基于iOS操作系统的录音数据备份装置中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站服务器上下载得到,或者在载体信号上提供,或者以任何其他形式提供。The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art should understand that microprocessor or digital signal processor (DSP) can be used in practice to realize the recording data importing device based on iOS operating system and the recording data backup based on iOS operating system according to the embodiment of the present invention Some or all of the functions of some or all of the components in the device. The present invention can also be implemented as an apparatus or an apparatus program (for example, a computer program and a computer program product) for performing a part or all of the methods described herein. Such a program for realizing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such a signal may be downloaded from an Internet web server, or provided on a carrier signal, or provided in any other form.

应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means can be embodied by one and the same item of hardware. The use of the words first, second, and third, etc. does not indicate any order. These words can be interpreted as names.

本发明公开了A1、一种基于iOS操作系统的录音数据备份方法,包括:The invention discloses A1, a recording data backup method based on the iOS operating system, comprising:

通过应用程序调用iOS操作系统提供的设置有录音数据读取权限的SQLite的C语言接口,读取预定路径下的录音数据;Call the C language interface of SQLite provided by the iOS operating system with the permission to read the recording data through the application program, and read the recording data under the predetermined path;

按照无线通信接口反馈的格式,将读取的录音数据进行格式转换后,输出至所述无线通信接口,以使所述无线通信接口对格式转换后的录音数据进行封装,并将封装的录音数据输出至预先设置的外部设备进行存储。According to the format fed back by the wireless communication interface, the format of the read recording data is converted and output to the wireless communication interface, so that the wireless communication interface encapsulates the recording data after the format conversion, and the encapsulated recording data Output to preset external devices for storage.

A2.根据A1所述的方法,所述无线通信接口反馈包括:A2. According to the method described in A1, the wireless communication interface feedback includes:

按照外部设备类型或预先设置的格式反馈。Feedback by external device type or pre-set format.

A3.根据A2所述的方法,所述按照外部设备类型反馈包括:A3. According to the method described in A2, the feedback according to the type of external device includes:

SQLite的C语言接口发送协商请求,所述协商请求中包含有无线通信接口标识以及自身支持的录音格式;The C language interface of SQLite sends a negotiation request, which includes the wireless communication interface identification and the recording format supported by itself;

无线通信接口将协商请求发送至所述外部设备,所述外部设备接收协商请求,获取自身支持的录音格式与SQLite的C语言支持的录音格式的交集,从交集中选取一录音格式,携带在协商请求响应中,通过无线通信接口反馈至SQLite的C语言接口。The wireless communication interface sends the negotiation request to the external device, and the external device receives the negotiation request, obtains the intersection of the recording format supported by itself and the recording format supported by the C language of SQLite, selects a recording format from the intersection, and carries it in the negotiation In the request response, it is fed back to the C language interface of SQLite through the wireless communication interface.

A4.根据A3所述的方法,所述外部设备为光碟播放器,所述外部设备支持的录音格式包括:vob、ifo、ac3、dts。A4. According to the method described in A3, the external device is a CD player, and the recording formats supported by the external device include: vob, ifo, ac3, dts.

A5.根据A3所述的方法,所述外部设备为mp3播放器,所述外部设备支持的录音格式包括:mp3、mp2、mod、wav、voc、avi、ogg、wmv。A5. According to the method described in A3, the external device is an mp3 player, and the recording formats supported by the external device include: mp3, mp2, mod, wav, voc, avi, ogg, wmv.

A6.根据A1所述的方法,在所述读取预定路径下的录音数据之后,所述方法进一步包括:A6. according to the method described in A1, after the recording data under the described reading predetermined path, the method further includes:

调用iOSSDK的Media层的Framework,对读取的录音数据进行格式转换、和/或,编辑。Call the Framework of the Media layer of iOSSDK to convert and/or edit the read recording data.

A7.根据A1至A6任一项所述的方法,在所述进行转换后,输出至所述无线通信接口之前,所述方法进一步包括:A7. According to the method described in any one of A1 to A6, after the conversion, before outputting to the wireless communication interface, the method further includes:

对格式转换、和/或,编辑后的录音数据按照预先设置的加密算法进行加密处理。The format converted and/or edited recording data is encrypted according to a preset encryption algorithm.

A8.根据A7所述的方法,所述加密算法包括:增强的数据保密协议算法、数据加密算法、数据加密标准算法以及三层数据加密标准算法。A8. According to the method described in A7, the encryption algorithm includes: an enhanced data confidentiality protocol algorithm, a data encryption algorithm, a data encryption standard algorithm, and a three-layer data encryption standard algorithm.

A9.根据A1所述的方法,在所述读取预定路径下的录音数据之后,所述方法进一步包括:A9. according to the method described in A1, after the recording data under the described reading predetermined path, the method further includes:

提取读取的录音数据中包含的录音数据文件名,调用iOSSDK的CoreServices层的Framework或iOS操作系统API,读取录音数据文件名对应的配置文件;Extract the recording data file name contained in the read recording data, call the Framework or iOS operating system API of the CoreServices layer of iOSSDK, and read the configuration file corresponding to the recording data file name;

将读取的录音数据的配置文件通过所述调用的iOSSDK的CoreServices层的Framework或iOS操作系统API,输出至预先设置的外部设备。Output the configuration file of the read recording data to the pre-set external device through the Framework or iOS operating system API of the CoreServices layer of the called iOSSDK.

A10.根据A9所述的方法,所述录音数据以预先设置的ZRECORDING表存储在所述预定路径,所述预定路径为:/var/mobile/Media/Recordings/Recordings.db。A10. According to the method described in A9, the recording data is stored in the predetermined path in the preset ZRECORDING table, and the predetermined path is: /var/mobile/Media/Recordings/Recordings.db.

A11.根据A10所述的方法,所述ZRECORDING表中字段包括:Z_PK、ZITUNESPERSISTENTID、ZLABELPRESET、ZDATE、ZDURATION、ZCUSTOMLABEL、ZPATH,其中,A11. According to the method described in A10, the fields in the ZRECORDING table include: Z_PK, ZITUNESPERSISTENTID, ZLABELPRESET, ZDATE, ZDURATION, ZCUSTOMLABEL, ZPATH, wherein,

Z_PK字段为iOS设备录制的录音数据标识;The Z_PK field is the identification of the recording data recorded by the iOS device;

ZITUNESPERSISTENTID字段为录音数据后续用于同步的同步标识,例如,后续与外部设备通过iTunes进行同步的同步标识;The ZITUNESPERSISTENTID field is the synchronization identifier for subsequent synchronization of recording data, for example, the synchronization identifier for subsequent synchronization with external devices through iTunes;

ZLABELPRESET字段为iOS操作系统预置的录音数据标签的编号;The ZLABELPRESET field is the number of the recording data label preset by the iOS operating system;

ZDATE字段为录音数据创建日期;The ZDATE field is the creation date of the recording data;

ZDURATION字段为录音数据时长;The ZDURATION field is the recording data duration;

ZCUSTOMLABEL字段为自定义的录音数据标签;The ZCUSTOMLABEL field is a custom recording data label;

ZPATH字段为录音数据对应的录音数据文件名存储路径。The ZPATH field is the storage path of the recording data file name corresponding to the recording data.

A12.根据A11所述的方法,所述配置文件中数据以键值的格式存储,键为所述ZRECORDING表中ZPATH字段中的录音数据文件名信息,值包含同步标识以及录音数据显示名称,其中,同步标识对应所述ZRECORDING表中的ZITUNESPERSISTENTID字段值,录音数据显示名称对应所述ZRECORDING表中的ZCUSTOMLABEL字段值,或者,ZLABELPRESET字段值。A12. According to the method described in A11, the data in the configuration file is stored in the format of a key value, the key is the recording data file name information in the ZPATH field in the ZRECORDING table, and the value includes a synchronization identifier and a display name of the recording data, wherein , the synchronization identifier corresponds to the ZITUNESPERSISTENTID field value in the ZRECORDING table, and the recording data display name corresponds to the ZCUSTOMLABEL field value in the ZRECORDING table, or, the ZLABELPRESET field value.

A13.根据A1所述的方法,在所述调用iOS操作系统提供的SQLite的C语言接口之前,所述方法进一步包括:A13. according to the method described in A1, before the C language interface of the SQLite that described calling iOS operating system provides, described method further comprises:

接收用户输入的录音数据备份请求。Receive the recording data backup request input by the user.

A14.根据A1所述的方法,所述方法进一步包括:A14. The method according to A1, said method further comprising:

确定所述录音数据输出至预先设置的外部设备进行存储后,删除iOS设备中的录音数据。After confirming that the recording data is output to the preset external device for storage, delete the recording data in the iOS device.

A15.根据A1所述的方法,所述方法进一步包括:A15. The method according to A1, said method further comprising:

将所述录音数据输出至所述外部设备的隐私存储区域进行存储。Outputting the recording data to a private storage area of the external device for storage.

A16.根据A1所述的方法,设置录音数据读取权限的SQLite的C语言接口包括:A16. According to the method described in A1, the C language interface of SQLite for setting the recording data read permission includes:

获取iOS操作系统的根权限;Obtain the root authority of the iOS operating system;

查找SQLite的C语言接口进程中读取权限的内存变量;Find the memory variable with read permission in the C language interface process of SQLite;

在所述读取权限的内存变量中,增加录音数据读取权限的内存变量。In the memory variable of the reading permission, add the memory variable of the recording data reading permission.

A17.一种基于iOS操作系统的录音数据导入方法,包括:A17. A method for importing recording data based on an iOS operating system, comprising:

通过应用程序调用iOS操作系统提供的SQLite的C语言接口,接收来自无线通信接口的待导入的录音数据,按照预设的格式,将接收的待导入的录音数据进行格式转换;Call the C language interface of SQLite provided by the iOS operating system through the application program, receive the recording data to be imported from the wireless communication interface, and convert the format of the received recording data to be imported according to the preset format;

提取接收的录音数据中包含的录音数据文件名,调用iOSSDK的CoreServices层的Framework或iOS操作系统API,读取录音数据文件名对应的配置文件;Extract the recording data file name contained in the received recording data, call the Framework or iOS operating system API of the CoreServices layer of iOSSDK, and read the configuration file corresponding to the recording data file name;

将读取的录音数据的配置文件通过所述调用的iOSSDK的CoreServices层的Framework或iOS操作系统API,写入至iOS设备;Write the configuration file of the recorded recording data to the iOS device through the Framework or iOS operating system API of the CoreServices layer of the iOSSDK called;

将进行格式转换的录音数据通过所述调用的iOS操作系统提供的SQLite的C语言接口写入至iOS设备进行存储。The recording data converted into formats is written to the iOS device through the C language interface of SQLite provided by the called iOS operating system for storage.

A18.根据A17所述的方法,所述方法进一步包括:A18. The method according to A17, said method further comprising:

对接收的录音数据进行解密。Decrypt the received recording data.

A19.根据A17所述的方法,所述方法进一步包括:A19. The method according to A17, said method further comprising:

调用iOSSDK的Media层的Framework,对接收的录音数据进行格式转换、和/或,编辑。Call the Framework of the Media layer of iOSSDK to convert and/or edit the received recording data.

A20.根据A17所述的方法,所述预设的格式为预先设置的ZRECORDING表,所述ZRECORDING表中字段包括:Z_PK、ZITUNESPERSISTENTID、ZLABELPRESET、ZDATE、ZDURATION、ZCUSTOMLABEL、ZPATH,其中,A20. According to the method described in A17, the preset format is a preset ZRECORDING table, and the fields in the ZRECORDING table include: Z_PK, ZITUNESPERSISTENTID, ZLABELPRESET, ZDATE, ZDURATION, ZCUSTOMLABEL, ZPATH, wherein,

Z_PK字段为iOS设备录制的录音数据标识;The Z_PK field is the identification of the recording data recorded by the iOS device;

ZITUNESPERSISTENTID字段为录音数据后续用于同步的同步标识,例如,后续与外部设备通过iTunes进行同步的同步标识;The ZITUNESPERSISTENTID field is the synchronization identifier for subsequent synchronization of recording data, for example, the synchronization identifier for subsequent synchronization with external devices through iTunes;

ZLABELPRESET字段为iOS操作系统预置的录音数据标签的编号;The ZLABELPRESET field is the number of the recording data label preset by the iOS operating system;

ZDATE字段为录音数据创建日期;The ZDATE field is the creation date of the recording data;

ZDURATION字段为录音数据时长;The ZDURATION field is the recording data duration;

ZCUSTOMLABEL字段为自定义的录音数据标签;The ZCUSTOMLABEL field is a custom recording data label;

ZPATH字段为录音数据对应的录音数据文件名存储路径。The ZPATH field is the storage path of the recording data file name corresponding to the recording data.

A21.一种基于iOS操作系统的录音数据备份装置,该装置包括:录音数据读取模块、配置文件读取模块、配置文件输出模块以及录音数据备份模块,其中,A21. A recording data backup device based on an iOS operating system, the device comprising: a recording data reading module, a configuration file reading module, a configuration file output module and a recording data backup module, wherein,

录音数据读取模块,用于通过应用程序调用iOS操作系统提供的设置有录音数据读取权限的SQLite的C语言接口,读取预定路径下的录音数据;The recording data reading module is used to call the C language interface provided by the iOS operating system provided by the iOS operating system with the SQLite reading authority for reading the recording data, and read the recording data under the predetermined path;

配置文件读取模块,用于提取读取的录音数据中包含的录音数据文件名,调用iOSSDK的CoreServices层的Framework或iOS操作系统API,读取录音数据文件名对应的配置文件;The configuration file reading module is used to extract the recording data file name contained in the read recording data, call the Framework of the CoreServices layer of iOSSDK or the iOS operating system API, and read the configuration file corresponding to the recording data file name;

配置文件输出模块,用于将读取的录音数据的配置文件通过所述调用的iOSSDK的CoreServices层的Framework或iOS操作系统API,输出至预先设置的外部设备;The configuration file output module is used to output the configuration file of the recorded recording data to a pre-set external device through the Framework or iOS operating system API of the CoreServices layer of the iOSSDK that is called;

录音数据备份模块,用于将读取的录音数据按照无线通信接口反馈的格式进行格式转换后,输出至所述无线通信接口,以使所述无线通信接口对格式转换后的录音数据进行封装,并将封装的录音数据输出至预先设置的外部设备进行存储。The recording data backup module is used to perform format conversion on the read recording data according to the format fed back by the wireless communication interface, and then output to the wireless communication interface, so that the wireless communication interface encapsulates the format-converted recording data, And output the encapsulated recording data to the preset external device for storage.

A22.根据A21所述的装置,所述无线通信接口反馈的格式包括:A22. According to the device described in A21, the format of the wireless communication interface feedback includes:

SQLite的C语言接口发送协商请求,所述协商请求中包含有无线通信接口标识以及自身支持的录音格式;The C language interface of SQLite sends a negotiation request, which includes the wireless communication interface identification and the recording format supported by itself;

无线通信接口将协商请求发送至所述外部设备,所述外部设备接收协商请求,获取自身支持的录音格式与SQLite的C语言支持的录音格式的交集,从交集中选取一录音格式,携带在协商请求响应中,通过无线通信接口反馈至SQLite的C语言接口。The wireless communication interface sends the negotiation request to the external device, and the external device receives the negotiation request, obtains the intersection of the recording format supported by itself and the recording format supported by the C language of SQLite, selects a recording format from the intersection, and carries it in the negotiation In the request response, it is fed back to the C language interface of SQLite through the wireless communication interface.

A23.根据A21所述的装置,所述装置进一步包括:A23. The device according to A21, further comprising:

录音数据编辑模块,用于调用iOSSDK的Media层的Framework,对录音数据读取模块读取的录音数据进行格式转换、和/或,编辑。The recording data editing module is used to call the Framework of the Media layer of the iOSSDK, and perform format conversion and/or editing on the recording data read by the recording data reading module.

A24.根据A21或A22或A23所述的装置,所述装置进一步包括:A24. The device according to A21 or A22 or A23, further comprising:

加密模块,用于对录音数据或格式转换、和/或,编辑后的录音数据按照预先设置的加密算法进行加密处理。The encryption module is used for encrypting recording data or format conversion, and/or, editing the recording data according to a preset encryption algorithm.

A25.根据A21所述的装置,所述装置进一步包括:A25. The device according to A21, further comprising:

录音数据删除模块,用于在确定录音数据备份模块备份录音数据成功后,删除iOS设备中的录音数据。The recording data deletion module is used to delete the recording data in the iOS device after determining that the recording data backup module has successfully backed up the recording data.

A26.一种基于iOS操作系统的录音数据导入装置,该装置包括:录音数据导入模块、配置文件获取模块、配置文件写入模块以及录音数据存储模块,其中,A26. A recording data import device based on an iOS operating system, the device comprising: a recording data import module, a configuration file acquisition module, a configuration file writing module and a recording data storage module, wherein,

录音数据导入模块,用于通过应用程序调用iOS操作系统提供的SQLite的C语言接口,接收待导入的录音数据;The recording data import module is used to call the C language interface of SQLite provided by the iOS operating system through the application program to receive the recording data to be imported;

配置文件获取模块,用于提取接收的录音数据中包含的录音数据文件名,调用iOSSDK的CoreServices层的Framework或iOS操作系统API,读取录音数据文件名对应的配置文件;The configuration file acquisition module is used to extract the recording data file name contained in the received recording data, call the Framework of the CoreServices layer of iOSSDK or the iOS operating system API, and read the configuration file corresponding to the recording data file name;

配置文件写入模块,用于将读取的录音数据的配置文件通过所述调用的iOSSDK的CoreServices层的Framework或iOS操作系统API,写入至iOS设备;The configuration file writing module is used to write the configuration file of the recorded recording data to the iOS device through the Framework or the iOS operating system API of the CoreServices layer of the iOSSDK that is called;

录音数据存储模块,用于将接收的录音数据通过所述调用的iOS操作系统提供的SQLite的C语言接口,按照预设的格式写入至iOS设备进行存储。The recording data storage module is used to write the received recording data to the iOS device according to the preset format through the C language interface of SQLite provided by the called iOS operating system for storage.

A27.根据A26所述的装置,所述装置进一步包括:A27. The device according to A26, further comprising:

解密模块,用于对接收的录音数据进行解密。The decryption module is used for decrypting the received recording data.

A28.根据A26所述的装置,所述装置进一步包括:A28. The device according to A26, further comprising:

录音数据修改模块,用于调用iOSSDK的Media层的Framework,对接收的录音数据进行格式转换、和/或,编辑。The recording data modification module is used to call the Framework of the Media layer of the iOSSDK to perform format conversion and/or editing on the received recording data.

Claims (10)

1.一种基于iOS操作系统的录音数据备份方法,包括:1. A recording data backup method based on iOS operating system, comprising: 通过应用程序调用iOS操作系统提供的设置有录音数据读取权限的SQLite的C语言接口,读取预定路径下的录音数据;Call the C language interface of SQLite provided by the iOS operating system with the permission to read the recording data through the application program, and read the recording data under the predetermined path; 按照无线通信接口反馈的格式,将读取的录音数据进行格式转换后,输出至所述无线通信接口,以使所述无线通信接口对格式转换后的录音数据进行封装,并将封装的录音数据输出至预先设置的外部设备进行存储。According to the format fed back by the wireless communication interface, the format of the read recording data is converted and output to the wireless communication interface, so that the wireless communication interface encapsulates the recording data after the format conversion, and the encapsulated recording data Output to preset external devices for storage. 2.如权利要求1所述的方法,所述无线通信接口反馈包括:2. The method according to claim 1, wherein the wireless communication interface feedback comprises: 按照外部设备类型或预先设置的格式反馈。Feedback by external device type or preset format. 3.如权利要求2所述的方法,所述按照外部设备类型反馈包括:3. The method according to claim 2, wherein the feedback according to the type of the external device comprises: SQLite的C语言接口发送协商请求,所述协商请求中包含有无线通信接口标识以及自身支持的录音格式;The C language interface of SQLite sends a negotiation request, which includes the wireless communication interface identification and the recording format supported by itself; 无线通信接口将协商请求发送至所述外部设备,所述外部设备接收协商请求,获取自身支持的录音格式与SQLite的C语言支持的录音格式的交集,从交集中选取一录音格式,携带在协商请求响应中,通过无线通信接口反馈至SQLite的C语言接口。The wireless communication interface sends the negotiation request to the external device, and the external device receives the negotiation request, obtains the intersection of the recording format supported by itself and the recording format supported by the C language of SQLite, selects a recording format from the intersection, and carries it in the negotiation In the request response, it is fed back to the C language interface of SQLite through the wireless communication interface. 4.如权利要求3所述的方法,所述外部设备为光碟播放器,所述外部设备支持的录音格式包括:vob、ifo、ac3、dts。4. The method according to claim 3, wherein the external device is a CD player, and the recording formats supported by the external device include: vob, ifo, ac3, dts. 5.一种基于iOS操作系统的录音数据导入方法,包括:5. A method for importing recording data based on an iOS operating system, comprising: 通过应用程序调用iOS操作系统提供的SQLite的C语言接口,接收来自无线通信接口的待导入的录音数据,按照预设的格式,将接收的待导入的录音数据进行格式转换;Call the C language interface of SQLite provided by the iOS operating system through the application program, receive the recording data to be imported from the wireless communication interface, and convert the format of the received recording data to be imported according to the preset format; 提取接收的录音数据中包含的录音数据文件名,调用iOSSDK的CoreServices层的Framework或iOS操作系统API,读取录音数据文件名对应的配置文件;Extract the recording data file name contained in the received recording data, call the Framework or iOS operating system API of the CoreServices layer of iOSSDK, and read the configuration file corresponding to the recording data file name; 将读取的录音数据的配置文件通过所述调用的iOSSDK的CoreServices层的Framework或iOS操作系统API,写入至iOS设备;Write the configuration file of the recorded recording data to the iOS device through the Framework or iOS operating system API of the CoreServices layer of the iOSSDK called; 将进行格式转换的录音数据通过所述调用的iOS操作系统提供的SQLite的C语言接口写入至iOS设备进行存储。The recording data converted into formats is written to the iOS device through the C language interface of SQLite provided by the called iOS operating system for storage. 6.如权利要求5所述的方法,所述方法进一步包括:6. The method of claim 5, further comprising: 对接收的录音数据进行解密。Decrypt the received recording data. 7.一种基于iOS操作系统的录音数据备份装置,该装置包括:录音数据读取模块、配置文件读取模块、配置文件输出模块以及录音数据备份模块,其中,7. A recording data backup device based on an iOS operating system, the device comprising: a recording data reading module, a configuration file reading module, a configuration file output module and a recording data backup module, wherein, 录音数据读取模块,用于通过应用程序调用iOS操作系统提供的设置有录音数据读取权限的SQLite的C语言接口,读取预定路径下的录音数据;The recording data reading module is used to call the C language interface provided by the iOS operating system provided by the iOS operating system with the SQLite reading authority for reading the recording data, and read the recording data under the predetermined path; 配置文件读取模块,用于提取读取的录音数据中包含的录音数据文件名,调用iOSSDK的CoreServices层的Framework或iOS操作系统API,读取录音数据文件名对应的配置文件;The configuration file reading module is used to extract the recording data file name contained in the read recording data, call the Framework of the CoreServices layer of iOSSDK or the iOS operating system API, and read the configuration file corresponding to the recording data file name; 配置文件输出模块,用于将读取的录音数据的配置文件通过所述调用的iOSSDK的CoreServices层的Framework或iOS操作系统API,输出至预先设置的外部设备;The configuration file output module is used to output the configuration file of the recorded recording data to a pre-set external device through the Framework or iOS operating system API of the CoreServices layer of the iOSSDK that is called; 录音数据备份模块,用于将读取的录音数据按照无线通信接口反馈的格式进行格式转换后,输出至所述无线通信接口,以使所述无线通信接口对格式转换后的录音数据进行封装,并将封装的录音数据输出至预先设置的外部设备进行存储。The recording data backup module is used to perform format conversion on the read recording data according to the format fed back by the wireless communication interface, and then output to the wireless communication interface, so that the wireless communication interface encapsulates the format-converted recording data, And output the encapsulated recording data to the preset external device for storage. 8.如权利要求7所述的装置,所述无线通信接口反馈的格式包括:8. The device according to claim 7, wherein the format of the wireless communication interface feedback comprises: SQLite的C语言接口发送协商请求,所述协商请求中包含有无线通信接口标识以及自身支持的录音格式;The C language interface of SQLite sends a negotiation request, which includes the wireless communication interface identification and the recording format supported by itself; 无线通信接口将协商请求发送至所述外部设备,所述外部设备接收协商请求,获取自身支持的录音格式与SQLite的C语言支持的录音格式的交集,从交集中选取一录音格式,携带在协商请求响应中,通过无线通信接口反馈至SQLite的C语言接口。The wireless communication interface sends the negotiation request to the external device, and the external device receives the negotiation request, obtains the intersection of the recording format supported by itself and the recording format supported by the C language of SQLite, selects a recording format from the intersection, and carries it in the negotiation In the request response, it is fed back to the C language interface of SQLite through the wireless communication interface. 9.一种基于iOS操作系统的录音数据导入装置,该装置包括:录音数据导入模块、配置文件获取模块、配置文件写入模块以及录音数据存储模块,其中,9. A recording data import device based on an iOS operating system, the device comprising: a recording data import module, a configuration file acquisition module, a configuration file writing module and a recording data storage module, wherein, 录音数据导入模块,用于通过应用程序调用iOS操作系统提供的SQLite的C语言接口,接收待导入的录音数据;The recording data import module is used to call the C language interface of SQLite provided by the iOS operating system through the application program to receive the recording data to be imported; 配置文件获取模块,用于提取接收的录音数据中包含的录音数据文件名,调用iOSSDK的CoreServices层的Framework或iOS操作系统API,读取录音数据文件名对应的配置文件;The configuration file acquisition module is used to extract the recording data file name contained in the received recording data, call the Framework of the CoreServices layer of iOSSDK or the iOS operating system API, and read the configuration file corresponding to the recording data file name; 配置文件写入模块,用于将读取的录音数据的配置文件通过所述调用的iOSSDK的CoreServices层的Framework或iOS操作系统API,写入至iOS设备;The configuration file writing module is used to write the configuration file of the recorded recording data to the iOS device through the Framework or the iOS operating system API of the CoreServices layer of the iOSSDK that is called; 录音数据存储模块,用于将接收的录音数据通过所述调用的iOS操作系统提供的SQLite的C语言接口,按照预设的格式写入至iOS设备进行存储。The recording data storage module is used to write the received recording data to the iOS device according to the preset format through the C language interface of SQLite provided by the called iOS operating system for storage. 10.如权利要求9所述的装置,所述装置进一步包括:10. The apparatus of claim 9, further comprising: 解密模块,用于对接收的录音数据进行解密。The decryption module is used for decrypting the received recording data.
CN201410333887.6A 2014-07-14 2014-07-14 Recording data importing, backup method and device based on iOS operating systems Expired - Fee Related CN105335249B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410333887.6A CN105335249B (en) 2014-07-14 2014-07-14 Recording data importing, backup method and device based on iOS operating systems

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410333887.6A CN105335249B (en) 2014-07-14 2014-07-14 Recording data importing, backup method and device based on iOS operating systems

Publications (2)

Publication Number Publication Date
CN105335249A true CN105335249A (en) 2016-02-17
CN105335249B CN105335249B (en) 2018-10-23

Family

ID=55285804

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410333887.6A Expired - Fee Related CN105335249B (en) 2014-07-14 2014-07-14 Recording data importing, backup method and device based on iOS operating systems

Country Status (1)

Country Link
CN (1) CN105335249B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106372005A (en) * 2016-09-20 2017-02-01 深圳市华美兴泰科技股份有限公司 Method and device for storing image data in IOS (Iphone Operation System) by using external memory
CN106776883A (en) * 2016-11-30 2017-05-31 四川秘无痕信息安全技术有限责任公司 A kind of method of parsing IOS10 Backup Datas
CN107277753A (en) * 2017-07-11 2017-10-20 歌尔科技有限公司 Data transmission method and device
CN108769120A (en) * 2018-04-24 2018-11-06 中航材导航技术(北京)有限公司 A method of clearance data is transmitted between EFB system terminals based on airdrop functions

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090112878A1 (en) * 2007-10-31 2009-04-30 Michael Denny Methods, systems and computer program products for automatically identifying and backing up user device content
US20110087976A1 (en) * 2006-08-04 2011-04-14 Apple Inc. Application-Based Backup-Restore Of Electronic Information
CN202059445U (en) * 2011-05-18 2011-11-30 蒋立人 Wireless video/audio transmission device and wireless transmission system comprising same
CN102694584A (en) * 2011-03-21 2012-09-26 冯汉英 System for audio transmission via wireless network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110087976A1 (en) * 2006-08-04 2011-04-14 Apple Inc. Application-Based Backup-Restore Of Electronic Information
US20090112878A1 (en) * 2007-10-31 2009-04-30 Michael Denny Methods, systems and computer program products for automatically identifying and backing up user device content
CN102694584A (en) * 2011-03-21 2012-09-26 冯汉英 System for audio transmission via wireless network
CN202059445U (en) * 2011-05-18 2011-11-30 蒋立人 Wireless video/audio transmission device and wireless transmission system comprising same

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
YIQI SHI: "Voice Memo Wifi Sharing Lite1.03", 《91苹果IPHONE下载》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106372005A (en) * 2016-09-20 2017-02-01 深圳市华美兴泰科技股份有限公司 Method and device for storing image data in IOS (Iphone Operation System) by using external memory
CN106372005B (en) * 2016-09-20 2019-10-11 深圳市华美兴泰科技股份有限公司 The method and device of image data is accessed in IOS system using external memorizer
CN106776883A (en) * 2016-11-30 2017-05-31 四川秘无痕信息安全技术有限责任公司 A kind of method of parsing IOS10 Backup Datas
CN107277753A (en) * 2017-07-11 2017-10-20 歌尔科技有限公司 Data transmission method and device
CN108769120A (en) * 2018-04-24 2018-11-06 中航材导航技术(北京)有限公司 A method of clearance data is transmitted between EFB system terminals based on airdrop functions

Also Published As

Publication number Publication date
CN105335249B (en) 2018-10-23

Similar Documents

Publication Publication Date Title
CN103581318B (en) A kind of backup of mobile device data, restoring method and device
JP5145336B2 (en) Network AV content playback terminal, server, and system
US20250036784A1 (en) Computer method for entry of plural input modalities onto a secure disclosure blockchain
CN105468472B (en) Data backup and recovery method and device based on iOS operating system
US9294277B2 (en) Audio encryption systems and methods
AU2020202092B2 (en) Content management system
CN104298533A (en) Method, device and equipment for customizing software installation package
CN105335249B (en) Recording data importing, backup method and device based on iOS operating systems
CN104866389A (en) Data recovery method as well as data backup method, device and system based on mobile operating system
CN103618824B (en) Method for sending information in address book program and mobile terminal
WO2014164764A1 (en) Method and system for music collaboration
US7917083B2 (en) Method and apparatus for identifying a piece of content
WO2020147522A1 (en) Method and device for processing audio
WO2015074568A1 (en) Method and device for collaborative document review
CN106897082A (en) A kind of network equipment provides the method and a kind of network equipment of application program
CN103514396B (en) File/applied program processing method and device on communication terminal
CN106533668B (en) A kind of network-based PVR guard method and system
CN103530549B (en) File/applied program processing method on communication terminal and device
US20140068006A1 (en) Method, apparatus and system for providing content
CN111343231B (en) Data extraction method and device for instant messaging, computer system and readable storage medium
CN113110945A (en) Data sharing method and system under specific scene
CN106060604A (en) Method and system for realizing digital rights management play based on BHD file
WO2020171846A1 (en) Computer method for entry of plural input modalities onto a secure disclosure blockchain
CN105393257B (en) A kind of data ciphering method and encryption device
JP2013546072A (en) Autonomous intelligent content items

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220725

Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.

TR01 Transfer of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20181023

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