CN106328174A - Method and device for processing recording data - Google Patents

Method and device for processing recording data Download PDF

Info

Publication number
CN106328174A
CN106328174A CN201610757224.6A CN201610757224A CN106328174A CN 106328174 A CN106328174 A CN 106328174A CN 201610757224 A CN201610757224 A CN 201610757224A CN 106328174 A CN106328174 A CN 106328174A
Authority
CN
China
Prior art keywords
recording data
recording
data
storage address
avaudiorecorder
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.)
Pending
Application number
CN201610757224.6A
Other languages
Chinese (zh)
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.)
TVMining Beijing Media Technology Co Ltd
Original Assignee
TVMining Beijing Media Technology 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 TVMining Beijing Media Technology Co Ltd filed Critical TVMining Beijing Media Technology Co Ltd
Priority to CN201610757224.6A priority Critical patent/CN106328174A/en
Publication of CN106328174A publication Critical patent/CN106328174A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • G11B20/10527Audio or video recording; Data buffering arrangements
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B19/00Driving, starting, stopping record carriers not specifically of filamentary or web form, or of supports therefor; Control thereof; Control of operating function ; Driving both disc and head
    • G11B19/02Control of operating function, e.g. switching from recording to reproducing
    • G11B19/022Control panels
    • G11B19/025'Virtual' control panels, e.g. Graphical User Interface [GUI]
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • G11B20/10527Audio or video recording; Data buffering arrangements
    • G11B2020/10537Audio or video recording
    • G11B2020/10546Audio or video recording specifically adapted for audio data

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a method and a device for processing recording data, which are used for fulfilling the purpose of flexibly playing recording data. The method comprises the steps of: after audio data is recorded, copying a storage address of recording data; accessing the storage address to acquire the recording data, and storing the acquired recording data to the local; and when receiving a request for playing the recording data, calling a playing method, and playing the local stored recording data by the playing method.

Description

A kind of processing method and processing device of recording data
Technical field
The present invention relates to technical field of internet application, particularly to the processing method and processing device of a kind of recording data.
Background technology
Along with the development of electronic communication, the function of terminal unit (such as mobile phone, panel computer etc.) gets more and more, than As, browsing file function, camera function, sound-recording function etc..Terminal unit is when recording, and the application program that can click on recording enters Entering recording state, application program generally calls the realization of AVAudioRecorder class and records, plays, deletes.But, AVAudioRecorder class is not supported to suspend, and does not the most support continued broadcasting, it would be highly desirable to solve this technical problem.
Summary of the invention
The present invention provides the processing method and processing device of a kind of recording data, in order to realize the mesh of playback data neatly 's.
The present invention provides the processing method of a kind of recording data, including:
After voice data has been recorded, the storage address of re-recording data;
Access described storage address and obtain recording data, and the described recording data obtained is stored to this locality;
When receiving the request of playback data, call player method, described player method play described this locality The recording data of storage.
In an embodiment of the present invention, after the described recording data obtained is stored to this locality, described method is also wrapped Include:
Delete the recording data of described storage address storage.
In an embodiment of the present invention, described method also includes:
Use AVAudioRecorder class recording audio data.
In an embodiment of the present invention, use AVAudioRecorder class recording audio data, including:
Initialize AVAudioRecorder class, and AVAudioRecorder class is configured;
Judge whether current AVAudioRecorder is in recording state;
Record if it is not, then call record method.
In an embodiment of the present invention, described method also includes:
After End of Tape, represent broadcast button.
In an embodiment of the present invention, initialize AVAudioRecorder class, including:
Initialize recording parameter and the storage address of recording data of AVAudioRecorder class.
In an embodiment of the present invention, described recording parameter includes at least one following:
Record bit rate, record sample rate.
The present invention also provides for the processing means of a kind of recording data, including:
Replication module, is used for after voice data has been recorded, the storage address of re-recording data;
Memory module, is used for accessing described storage address and obtains recording data, and the described recording data storage that will obtain To this locality;
Playing module, for when receiving the request of playback data, calls player method, by described player method Play described locally stored recording data.
In an embodiment of the present invention, described device also includes:
Removing module, is used for, in described memory module after the described recording data obtained is stored to this locality, deleting The recording data of described storage address storage.
In an embodiment of the present invention, described device also includes:
Record module, be used for using AVAudioRecorder class recording audio data.
In an embodiment of the present invention, described recording module is additionally operable to:
Initialize AVAudioRecorder class, and AVAudioRecorder class is configured;
Judge whether current AVAudioRecorder is in recording state;
Record if it is not, then call record method.
In an embodiment of the present invention, described device also includes:
Represent module, for after End of Tape, represent broadcast button.
In an embodiment of the present invention, described recording module is additionally operable to:
Initialize recording parameter and the storage address of recording data of AVAudioRecorder class.
In an embodiment of the present invention, described recording parameter includes at least one following:
Record bit rate, record sample rate.
In embodiments of the present invention, after voice data has been recorded, the storage address of re-recording data;Access storage Address obtains recording data, and the recording data of acquisition is stored to this locality;When receiving the request of playback data, adjust With player method, player method play locally stored recording data.As can be seen here, the embodiment of the present invention is capable of flexibly The purpose of ground playback data.
Other features and advantages of the present invention will illustrate in the following description, and, partly become from description Obtain it is clear that or understand by implementing the present invention.The purpose of the present invention and other advantages can be by the explanations write Structure specifically noted in book, claims and accompanying drawing realizes and obtains.
Below by drawings and Examples, technical scheme is described in further detail.
Accompanying drawing explanation
Accompanying drawing is for providing a further understanding of the present invention, and constitutes a part for description, with the reality of the present invention Execute example together for explaining the present invention, be not intended that limitation of the present invention.In the accompanying drawings:
Fig. 1 show the flow chart of the processing method of recording data in one embodiment of the invention;
Fig. 2 show the flow chart of the processing method of recording data in another embodiment of the present invention;
Fig. 3 show the structural representation of the processing means of recording data in one embodiment of the invention;
Fig. 4 show the structural representation of the processing means of recording data in another embodiment of the present invention;And
Fig. 5 show the structural representation of the processing means of recording data in further embodiment of this invention.
Detailed description of the invention
Below in conjunction with accompanying drawing, the preferred embodiments of the present invention are illustrated, it will be appreciated that preferred reality described herein Execute example be merely to illustrate and explain the present invention, be not intended to limit the present invention.
Being illustrated in figure 1 the flow chart of the processing method of recording data in one embodiment of the invention, the method can include Following steps S11-S13.
Step S11, after voice data has been recorded, the storage address of re-recording data.
In this step, AVAudioRecorder class recording audio data can be used, when typically playing, call The storage address of AVAudioRecorder class, does not support due to such to suspend, so the embodiment of the present invention replicates The storage address of AVAudioRecorder class.
Step S12, accesses storage address and obtains recording data, and the recording data of acquisition is stored to this locality.
Step S13, when receiving the request of playback data, calls player method, player method play this locality The recording data of storage.
In embodiments of the present invention, after voice data has been recorded, the storage address of re-recording data;Access storage Address obtains recording data, and the recording data of acquisition is stored to this locality;When receiving the request of playback data, adjust With player method, player method play locally stored recording data.As can be seen here, the embodiment of the present invention is capable of flexibly The purpose of ground playback data.
In the alternative embodiment of the present invention, after the recording data of acquisition is stored this locality by step S12, the present invention Embodiment can delete the recording data of storage address storage, to discharge memory space.
When using AVAudioRecorder class recording audio data, embodiments provide a kind of optional side Case, the program comprises the following steps A1-A4.
Step A1, initializes AVAudioRecorder class, and configures AVAudioRecorder class.
In this step, when initializing AVAudioRecorder class, AVAudioRecorder class can be initialized Record parameter and the storage address of recording data.Here, record parameter and can include recording bit rate, recording sample rate etc., The invention is not restricted to this.
Step A2, it is judged that whether current AVAudioRecorder is in recording state, if it is not, then continue executing with step A3; If so, step A4 is continued executing with.
Step A3, calls record method and records.
In this step, call record method and record, update UI element simultaneously.
Step A4, calls stop method and terminates recording.
After End of Tape, represent broadcast button.Next the click effect of broadcast button is realized, it is judged that current Player is in broadcast state and then calls the stopping broadcasting of pause method, otherwise, initializes Player, then calls play method Broadcast button.The initialization of AVAudioPlayer is the simplest, it is only necessary to know the URL of audio files.
Be discussed in detail below by a specific embodiment recording data of the present invention processing method realize process.As Fig. 2 show the flow chart of the processing method of recording data in another embodiment of the present invention, and the method may comprise steps of S21-S27。
Step S21, initializes AVAudioRecorder class, and configures AVAudioRecorder class.
In this step, when initializing AVAudioRecorder class, AVAudioRecorder class can be initialized Record parameter and the storage address of recording data.Here, record parameter and can include recording bit rate, recording sample rate etc., The invention is not restricted to this.
Step S22, it is judged that whether current AVAudioRecorder is in recording state, if it is not, then continue executing with step S23;If so, step S24 is continued executing with.
Step S23, calls record method and records, continue executing with step S25.
Step S24, calls stop method and terminates recording.
Step S25, after voice data has been recorded, the storage address of re-recording data.
Step S26, accesses storage address and obtains recording data, and the recording data of acquisition is stored to this locality.
Step S27, when receiving the request of playback data, calls player method, player method play this locality The recording data of storage.
In the alternative embodiment of the present invention, after the recording data of acquisition is stored this locality by step S26, the present invention Embodiment can delete the recording data of storage address storage, to discharge memory space.The embodiment of the present invention can be based on this locality The recording data of storage realizes the purpose of playback data neatly.
It should be noted that in actual applications, above-mentioned all optional embodiments can be any in the way of using combination Combination, forms the alternative embodiment of the present invention, and this is no longer going to repeat them.
Corresponding to the processing method of the recording data in above-described embodiment, the present invention also provides for the process of a kind of recording data Device.It is illustrated in figure 3 the structural representation of the processing means of recording data in one embodiment of the invention, including:
Replication module 31, is used for after voice data has been recorded, the storage address of re-recording data;
Memory module 32, is used for accessing described storage address and obtains recording data, and deposited by the described recording data obtained Storage is to this locality;
Playing module 33, for when receiving the request of playback data, calls player method, by described broadcasting side Method plays described locally stored recording data.
In an embodiment of the present invention, as shown in Figure 4, the device that Fig. 3 shows can also include:
Removing module 41, is used in described memory module 32 after the described recording data obtained is stored to this locality, Delete the recording data of described storage address storage.
In an embodiment of the present invention, as it is shown in figure 5, the device that Fig. 3 shows can also include:
Record module 51, be used for using AVAudioRecorder class recording audio data.
In an embodiment of the present invention, above-mentioned recording module 51 is additionally operable to:
Initialize AVAudioRecorder class, and AVAudioRecorder class is configured;
Judge whether current AVAudioRecorder is in recording state;
Record if it is not, then call record method.
In an embodiment of the present invention, the device that Fig. 3, Fig. 4 or Fig. 5 show can also include:
Represent module (not shown), for after End of Tape, represent broadcast button.
In an embodiment of the present invention, above-mentioned recording module 51 is additionally operable to:
Initialize recording parameter and the storage address of recording data of AVAudioRecorder class.
In an embodiment of the present invention, described recording parameter includes at least one following:
Record bit rate, record sample rate.
The said apparatus of the embodiment of the present invention: after voice data has been recorded, the storage address of re-recording data;Visit Ask that storage address obtains recording data, and the recording data of acquisition is stored to this locality;When receiving asking of playback data When asking, call player method, player method play locally stored recording data.As can be seen here, the embodiment of the present invention can Realize the purpose of playback data neatly.
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or computer program Product.Therefore, the reality in terms of the present invention can use complete hardware embodiment, complete software implementation or combine software and hardware Execute the form of example.And, the present invention can use at one or more computers wherein including computer usable program code The shape of the upper computer program implemented of usable storage medium (including but not limited to disk memory and optical memory etc.) Formula.
The present invention is with reference to method, equipment (system) and the flow process of computer program according to embodiments of the present invention Figure and/or block diagram describe.It should be understood that can the most first-class by computer program instructions flowchart and/or block diagram Flow process in journey and/or square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided Instruction arrives the processor of general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce A raw machine so that the instruction performed by the processor of computer or other programmable data processing device is produced for real The device of the function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame now.
These computer program instructions may be alternatively stored in and computer or other programmable data processing device can be guided with spy Determine in the computer-readable memory that mode works so that the instruction being stored in this computer-readable memory produces and includes referring to Make the manufacture of device, this command device realize at one flow process of flow chart or multiple flow process and/or one square frame of block diagram or The function specified in multiple square frames.
These computer program instructions also can be loaded in computer or other programmable data processing device so that at meter Perform sequence of operations step on calculation machine or other programmable devices to produce computer implemented process, thus at computer or The instruction performed on other programmable devices provides for realizing at one flow process of flow chart or multiple flow process and/or block diagram one The step of the function specified in individual square frame or multiple square frame.
Obviously, those skilled in the art can carry out various change and the modification essence without deviating from the present invention to the present invention God and scope.So, if these amendments of the present invention and modification belong to the scope of the claims in the present invention and equivalent technologies thereof Within, then the present invention is also intended to comprise these change and modification.

Claims (10)

1. the processing method of a recording data, it is characterised in that including:
After voice data has been recorded, the storage address of re-recording data;
Access described storage address and obtain recording data, and the described recording data obtained is stored to this locality;
When receiving the request of playback data, call player method, described player method play described locally stored Recording data.
Method the most according to claim 1, it is characterised in that the described recording data obtained is being stored this locality After, described method also includes:
Delete the recording data of described storage address storage.
Method the most according to claim 1, it is characterised in that also include:
Use AVAudioRecorder class recording audio data.
Method the most according to claim 3, it is characterised in that use AVAudioRecorder class recording audio data, bag Include:
Initialize AVAudioRecorder class, and AVAudioRecorder class is configured;
Judge whether current AVAudioRecorder is in recording state;
Record if it is not, then call record method.
Method the most according to claim 4, it is characterised in that also include:
After End of Tape, represent broadcast button.
6. according to the method described in claim 4 or 5, it is characterised in that initialize AVAudioRecorder class, including:
Initialize recording parameter and the storage address of recording data of AVAudioRecorder class.
Method the most according to claim 6, it is characterised in that described recording parameter includes at least one following:
Record bit rate, record sample rate.
8. the processing means of a recording data, it is characterised in that including:
Replication module, is used for after voice data has been recorded, the storage address of re-recording data;
Memory module, is used for accessing described storage address and obtains recording data, and the described recording data obtained is stored this Ground;
Playing module, for when receiving the request of playback data, calls player method, described player method plays Described locally stored recording data.
Device the most according to claim 8, it is characterised in that also include:
Removing module, is used in described memory module after the described recording data obtained is stored to this locality, deletes described The recording data of storage address storage.
Device the most according to claim 8, it is characterised in that also include:
Record module, be used for using AVAudioRecorder class recording audio data.
CN201610757224.6A 2016-08-29 2016-08-29 Method and device for processing recording data Pending CN106328174A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610757224.6A CN106328174A (en) 2016-08-29 2016-08-29 Method and device for processing recording data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610757224.6A CN106328174A (en) 2016-08-29 2016-08-29 Method and device for processing recording data

Publications (1)

Publication Number Publication Date
CN106328174A true CN106328174A (en) 2017-01-11

Family

ID=57789906

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610757224.6A Pending CN106328174A (en) 2016-08-29 2016-08-29 Method and device for processing recording data

Country Status (1)

Country Link
CN (1) CN106328174A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107195314A (en) * 2017-05-04 2017-09-22 腾讯科技(深圳)有限公司 The method for recording and device of voice data
CN110097897A (en) * 2019-04-02 2019-08-06 烽火通信科技股份有限公司 A kind of Android device recording multiplexing method and system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
NINGANDJIN: "使用AVaudiorecorder、AVaudioplayer构建简单录音笔应用", 《ITEYE》 *
木子东晓东: "录音实现方式", 《博客园》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107195314A (en) * 2017-05-04 2017-09-22 腾讯科技(深圳)有限公司 The method for recording and device of voice data
CN107195314B (en) * 2017-05-04 2018-07-24 腾讯科技(深圳)有限公司 The method for recording and device of audio data
CN110097897A (en) * 2019-04-02 2019-08-06 烽火通信科技股份有限公司 A kind of Android device recording multiplexing method and system

Similar Documents

Publication Publication Date Title
WO2018099277A1 (en) Live video broadcast method, live broadcast device and storage medium
US8601470B2 (en) Symbiotic smart peripherals
JP2018026816A (en) Video recording method and system
CN104572042A (en) Cross-platform middleware device of mobile terminal equipment and implementation method of cross-platform middleware device of mobile terminal equipment
CN111435600B (en) Method and apparatus for processing audio
CN110175081B (en) Optimization system and method for Android audio playing
CN103702041A (en) Method and device for realizing pause continuation shooting of video
US20110022986A1 (en) Method and device for application archiving
CN107423095B (en) Data processing method and device adaptive to hardware, storage medium and computer equipment
US20120117197A1 (en) Content auto-discovery
CN106328174A (en) Method and device for processing recording data
EP1750267A1 (en) Information-processing apparatus, recording medium and information-processing method
CN109933742A (en) Content of pages rearranges a volume method and device in a kind of process
CN108882041B (en) Player state acquisition method and device
CN103648021A (en) Method for playing network video files from USB storage device
CN109151495B (en) A kind of vod server and vod server multimedia file update method, storage medium
CN108241748B (en) Method, device, medium and equipment for acquiring live broadcast music name
KR20120054672A (en) Method of providing media contents and apparatus for the same
CN105306501A (en) Method and system for performing interactive update on multimedia data
JP2010093678A (en) Information processing apparatus, content reproduction method, and, content reproduction program
CN108089941A (en) A kind of backup of terminal data, restoring method and device
US9681088B1 (en) System and methods for movie digital container augmented with post-processing metadata
JP2010272058A (en) Information reproducing apparatus
KR101765042B1 (en) Access management method of memory and service device thereof
US10628439B1 (en) System and method for movie digital content version control access during file delivery and playback

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20170111

RJ01 Rejection of invention patent application after publication