CN107195314B - The method for recording and device of audio data - Google Patents
The method for recording and device of audio data Download PDFInfo
- Publication number
- CN107195314B CN107195314B CN201710309950.6A CN201710309950A CN107195314B CN 107195314 B CN107195314 B CN 107195314B CN 201710309950 A CN201710309950 A CN 201710309950A CN 107195314 B CN107195314 B CN 107195314B
- Authority
- CN
- China
- Prior art keywords
- function
- audio data
- output
- recording
- target process
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11B—INFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
- G11B19/00—Driving, 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/02—Control of operating function, e.g. switching from recording to reproducing
- G11B19/022—Control panels
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/16—Sound input; Sound output
- G06F3/162—Interface to dedicated audio devices, e.g. audio drivers, interface to CODECs
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11B—INFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
- G11B20/00—Signal processing not specific to the method of recording or reproducing; Circuits therefor
- G11B20/10—Digital recording or reproducing
- G11B20/10527—Audio or video recording; Data buffering arrangements
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11B—INFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
- G11B20/00—Signal processing not specific to the method of recording or reproducing; Circuits therefor
- G11B20/10—Digital recording or reproducing
- G11B20/10527—Audio or video recording; Data buffering arrangements
- G11B2020/10537—Audio or video recording
- G11B2020/10546—Audio or video recording specifically adapted for audio data
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Theoretical Computer Science (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Audiology, Speech & Language Pathology (AREA)
- General Health & Medical Sciences (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Signal Processing For Digital Recording And Reproducing (AREA)
Abstract
The invention discloses a kind of method for recording of audio data and devices.Wherein, this method includes:Record command is received in recording application, wherein record command is used to indicate the audio data exported to intended application and records;Whether first function is embedded in target process, wherein first function is used to indicate the entry address of second function, and second function, which is at least used to indicate, records the audio data that intended application is output to audio output interface by target process according to record command detection;In the case where detecting first function, the entry address of second function is obtained, to execute second function, records the audio data for being output to audio output interface.The present invention solves the technical issues of being affected by ambient sound when being recorded to sound by microphone.
Description
Technical field
The present invention relates to computer realms, in particular to the method for recording and device of a kind of audio data.
Background technology
The method that game live streaming at present and recording application obtain game sound is all (to apply journey by the api that system provides
Sequence interface) obtain microphone sound.Although can also get the sound of game in this way, also it is mingled with ambient sound simultaneously.When
When ambient sound interference is larger, the sound of game can not heard;When having ambient sound, the experience of game sound is also very poor.
For above-mentioned problem, currently no effective solution has been proposed.
Invention content
An embodiment of the present invention provides a kind of method for recording of audio data and devices, at least to solve through microphone pair
The technical issues of being affected by ambient sound when sound is recorded.
One side according to the ... of the embodiment of the present invention provides a kind of method for recording of audio data, including:It is answered in recording
With middle reception record command, wherein the record command is used to indicate the audio data exported to intended application and records;Root
In target process whether it is embedded in first function according to record command detection, wherein the first function is used to indicate the
The entry address of two functions, the second function are at least used to indicate the recording intended application and are exported by the target process
To the audio data of audio output interface;In the case where detecting the first function, the second function is obtained
The audio data for being output to the audio output interface is recorded to execute the second function in the entry address.
Another aspect according to the ... of the embodiment of the present invention additionally provides a kind of record device of audio data, including:It receives single
Member, for receiving record command in recording application, wherein the record command is used to indicate the audio exported to intended application
Data are recorded;Detection unit, for whether being embedded in first function in target process according to record command detection,
Wherein, the first function is used to indicate the entry address of second function, and the second function is at least used to indicate described in recording
Intended application is output to the audio data of audio output interface by the target process;Acquiring unit, for detecting
In the case of the first function, the entry address of the second function is obtained, to execute the second function, is recorded
It is output to the audio data of the audio output interface.
In embodiments of the present invention, record command is received using in recording application, wherein the record command is for referring to
Show that the audio data exported to intended application is recorded;Whether it is embedded in target process according to record command detection
First function, wherein the first function is used to indicate the entry address of second function, and the second function is at least used to indicate
Record the audio data that the intended application is output to audio output interface by the target process;It is described detecting
In the case of first function, the entry address of the second function is obtained, to execute the second function, recording is output to
The audio data of the audio output interface indicates second function according to entry address by first function, and executes second
Function has reached the audio for directly acquiring intended application output to be recorded to being output to audio output interface audio data
The purpose of data is recorded the pure technique effect using interior sound to realize, and then is solved through microphone to sound
The technical issues of being affected by ambient sound when sound is recorded.
Description of the drawings
Attached drawing described herein is used to provide further understanding of the present invention, and is constituted part of this application, this hair
Bright illustrative embodiments and their description are not constituted improper limitations of the present invention for explaining the present invention.In the accompanying drawings:
Fig. 1 is the hardware environment figure of the method for recording of audio data according to the ... of the embodiment of the present invention;
Fig. 2 is a kind of flow chart of the method for recording of optional audio data according to the ... of the embodiment of the present invention;
Fig. 3 is the configuration interface according to the ... of the embodiment of the present invention for recording application;
Fig. 4 is a kind of schematic diagram of the record device of optional audio data according to the ... of the embodiment of the present invention;
Fig. 5 is the schematic diagram of terminal according to the ... of the embodiment of the present invention.
Specific implementation mode
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention
Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only
The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people
The every other embodiment that member is obtained without making creative work should all belong to the model that the present invention protects
It encloses.
It should be noted that term " first " in description and claims of this specification and above-mentioned attached drawing, "
Two " etc. be for distinguishing similar object, without being used to describe specific sequence or precedence.It should be appreciated that using in this way
Data can be interchanged in the appropriate case, so as to the embodiment of the present invention described herein can in addition to illustrating herein or
Sequence other than those of description is implemented.In addition, term " comprising " and " having " and their any deformation, it is intended that cover
It includes to be not necessarily limited to for example, containing the process of series of steps or unit, method, system, product or equipment to cover non-exclusive
Those of clearly list step or unit, but may include not listing clearly or for these processes, method, product
Or the other steps or unit that equipment is intrinsic.
Embodiment 1
According to embodiments of the present invention, a kind of embodiment of the method that can be executed by the application device embodiment is provided,
It should be noted that step shown in the flowchart of the accompanying drawings can be in the department of computer science of such as a group of computer-executable instructions
It is executed in system, although also, logical order is shown in flow charts, and it in some cases, can be to be different from herein
Sequence execute shown or described step.
According to embodiments of the present invention, a kind of method for recording of audio data is provided.
Optionally, in the present embodiment, the method for recording of above-mentioned audio data can be applied to terminal as shown in Figure 1
102 and the hardware environment that is constituted of server 104 in.As shown in Figure 1, terminal 102 is connected by network and server 104
It connects, above-mentioned network includes but not limited to:Mobile communications network, wide area network, Metropolitan Area Network (MAN) or LAN, terminal 102 can be mobile phones
Terminal can also be PC terminals, notebook terminal or tablet computer terminal.
Fig. 2 is a kind of flow chart of the method for recording of optional audio data according to the ... of the embodiment of the present invention, below in conjunction with
The method for recording that Fig. 2 is provided for the embodiments of the invention audio data does specific introduction, as shown in Fig. 2, the audio data
Method for recording mainly includes the following steps S202 to step S206:
Step S202 receives record command in recording application, wherein record command, which is used to indicate, exports intended application
Audio data recorded.
In embodiments of the present invention, it records application and is used for recording audio data, record application and may be, but is not limited to install
On mobile phone terminal, the terminal devices such as PC terminals, notebook terminal or tablet computer terminal, its place can be obtained by recording application
Terminal device on the audio data that plays and recorded, the file recorded can be used for storing into storage medium,
It uploads on network or for being broadcast live online.When operation record in application, can by be used to indicate start record by
Button sends record command to application is recorded, and recording is applied after receiving record command, according to the record command to transporting
The audio data of capable intended application output is recorded.In a kind of optional embodiment, above-mentioned be used to indicate starts to record
The button of system may be displayed on the display interface of the intended application to be recorded, and user can be started pair by clicking on
The recording of intended application.In a kind of optional embodiment, user can be when being recorded by recording application, Ke Yitong
It crosses recording application and opens intended application, so that the audio data for recording application for intended application output is recorded.Such as:
Operation has a music player and a Games Software simultaneously in PC terminals, wherein music player is individually opened, trip
Play software is to record application by first opening, then open by recording application, then records using defeated just for the Games Software
The audio data gone out is recorded, without the audio file of recording music player output.
Whether step S204 is embedded in first function, wherein first function according to record command detection in target process
It is used to indicate the entry address of second function, second function is at least used to indicate recording intended application and is output to by target process
The audio data of audio output interface.
Target process is the system process of terminal device where recording application, and when terminal device is opened, target process is
It operates in the system of terminal device, the sound output of all applications of the target process for being run on management terminal device, institute
Some is applied when exporting sound, is all that the audio data that will be exported by target process is output to audio output interface.It is connecing
After receiving record command, whether detection has been embedded with first function in target process, wherein first function is used to indicate
Go out the entry address of second function, and second function is for recording the audio data that intended application is exported by target process.
Step S206 obtains the entry address of second function in the case where detecting first function, to execute the second letter
Number records the audio data for being output to audio output interface.
After first function is embedded into target process, first function can be executed, therefore, when being detected in target process
To first function, show that first function is performed in target process, i.e., first function has indicated second function
Entry address, intended application is output to the audio data of audio output interface by target process originally and can be obtained by second function
It takes, at this point, by executing second function, you can recorded to the audio data for being output to audio interface with realizing.
In embodiments of the present invention, using record apply in receive record command, wherein record command is used to indicate pair
The audio data of intended application output is recorded;The first letter whether is embedded in target process according to record command detection
Number, wherein first function is used to indicate the entry address of second function, and it is logical that second function is at least used to indicate recording intended application
Cross the audio data that target process is output to audio output interface;In the case where detecting first function, second function is obtained
Entry address record the audio data for being output to audio output interface to execute second function, pass through first function instruction the
Two functions execute second function according to entry address, to be recorded to being output to audio output interface audio data, reach
The purpose for directly acquiring the audio data of intended application output records the pure technology effect using interior sound to realize
Fruit, and then solve the technical issues of being affected by ambient sound when being recorded to sound by microphone.
Optionally, after whether being embedded in first function in target process according to record command detection, further include:
In the case of first function is not detected, the embedded dynamic link library in target process, wherein dynamic link library includes first
Function;First function is executed to indicate the entry address of second function.
Target process is system process, when operation for the first time is recorded in application, since the terminal where recording application is set
It is standby to restart when target process being caused to be restarted, it is not embedded with first function in target process, therefore, it is impossible to be examined in target process
First function is measured, also intended application, which passes through target, can not be indicated to the entry address of second function by first function
The audio data that process is output to audio output interface also can not just be got by second function.At this point it is possible to target process
Middle embedded dynamic link library includes first function in the dynamic link library, after by first function embedded target process it
Afterwards, first function is executed, so that first function indicates the entry address of second function, to enable second function to get
Target process is output to the audio data of audio output interface.
Optionally, execute first function includes to indicate the entry address of second function:It is searched in target process predetermined
The entry address of interface function, wherein predetermined interface function is used to indicate is output to audio output interface by audio data;It executes
The entry address of predetermined interface function is replaced with the entry address of second function by first function.
First function is executed to indicate that following embodiment may be used according to entry address for second function, you can in mesh
The entry address of predetermined interface function is found in mark process, wherein predetermined interface function, which is used to indicate, exports intended application
Audio data be output to audio output interface, predetermined interface letter is called in the entry address that target process passes through predetermined interface function
Number, audio data is output to audio output interface by the predetermined interface function.When finding entering for predetermined interface function
After port address, by execution first function, the entry address of predetermined interface function is substituted for the entry address of second function,
In this way, when audio data is output to predetermined interface function by target process, i.e., call the by the entry address of second function
Two functions to make second function obtain the audio data to be exported, and then realize the recording to audio data.
Optionally, second function is executed, the audio data that recording is output to audio output interface includes:Audio data is write
Enter into the memory of target process, with recording audio data, wherein recording application has the access rights for accessing memory.
As a kind of optionally embodiment of the embodiment of the present invention, sound will be output to by obtaining target process in second function
After the audio data of frequency output interface, the audio data got is written in target process in memory, optionally, this is interior
It can be shared drive to deposit.Recording application has the access rights for accessing the memory, is written according to by audio data in second function
To after in above-mentioned memory, the memory can be accessed by recording application, and read audio data from the memory, to completion pair
The recording of audio data.Optionally, the audio data read can also be encoded by recording application, obtain audio file,
And then save obtained audio file, or it is transmitted.
Optionally, in the memory that audio data is written to target process during, further include:Audio data is defeated
Go out to audio output interface.
As an alternative embodiment, audio data to be written to the memory of target process by execution second function
In process in, audio data can also be output to audio output interface, optionally, the embodiment of the present invention is not made to by sound
Frequency is output to the restriction of the execution sequence of audio output interface according to write-in memory and by audio data, you can with first by audio number
According to write-in memory, can also audio data be first output to audio interface, can be carried out at the same time with the two.It is write by audio data
During the memory for entering target process, audio data can also be output to audio output interface, ensured to ensure that
In the case that audio data is normally exported by audio interface, the recording of the audio data exported to intended application is realized.
Optionally, during recording is output to the audio data of audio output interface, further include:Pause is received to record
Instruction;Audio data is written in the memory of target process by response pause record command, stopping.
During recording audio, the instruction that pause is recorded can be sent to application is recorded by control button, recorded
It applies after receiving the instruction that pause is recorded, which is responded, stop the recording to audio data.Optionally,
As the response for recording pause, it can stop executing second function, to stop the audio data for getting second function
It is written in the memory of target process, and stops reading audio data from the memory of upper target process.
Optionally, before receiving record command in recording application, including:Obtain configuration information, wherein configuration information is used
The audio data exported to intended application in recording application is allowed to record in instruction.
As a kind of optional embodiment of the embodiment of the present invention, the configuration information for recording application can be obtained, and
When configuration information instruction allows to record the audio data of intended application output, the audio data of target user's output is recorded
System.As shown in figure 3, configuration information is arranged in interface that can be shown in Fig. 3, wherein when the option of " recording sound in game "
When selected, will record application configuration is that the audio data that can be exported to intended application is recorded, wherein by configuration information
It is positioned to allow for recording the audio data that intended application exports and may need the permission for having certain, such as:
It is necessary to have system permission (Root) in android system, can just set configuration information to " recording sound in game ".
It should be noted that for each method embodiment above-mentioned, for simple description, therefore it is all expressed as a series of
Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the described action sequence because
According to the present invention, certain steps can be performed in other orders or simultaneously.Secondly, those skilled in the art should also know
It knows, embodiment described in this description belongs to preferred embodiment, and involved action and module are not necessarily of the invention
It is necessary.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation
The method of example can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but it is very much
In the case of the former be more preferably embodiment.Based on this understanding, technical scheme of the present invention is substantially in other words to existing
The part that technology contributes can be expressed in the form of software products, which is stored in a storage
In medium (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal equipment (can be mobile phone, calculate
Machine, server or network equipment etc.) execute method described in each embodiment of the present invention.
Embodiment 2
According to embodiments of the present invention, a kind of audio data for implementing the method for recording of above-mentioned audio data is additionally provided
Record device, the device of the audio data is mainly used for executing the audio data that the above of the embodiment of the present invention is provided
Method for recording, the record device for being provided for the embodiments of the invention audio data below do specific introduction:
Fig. 4 is the schematic diagram of the record device of audio data according to the ... of the embodiment of the present invention, as shown in figure 4, the audio number
According to record device include mainly:
First receiving unit 410, for record apply in receive record command, wherein record command is used to indicate pair
The audio data of intended application output is recorded.
In embodiments of the present invention, it records application and is used for recording audio data, record application and may be, but is not limited to install
On mobile phone terminal, the terminal devices such as PC terminals, notebook terminal or tablet computer terminal, its place can be obtained by recording application
Terminal device on the audio data that plays and recorded, the file recorded can be used for storing into storage medium,
It uploads on network or for being broadcast live online.When operation record in application, can by be used to indicate start record by
Button sends record command to application is recorded, and recording is applied after receiving record command, according to the record command to transporting
The audio data of capable intended application output is recorded.In a kind of optional embodiment, above-mentioned be used to indicate starts to record
The button of system may be displayed on the display interface of the intended application to be recorded, and user can be started pair by clicking on
The recording of intended application.In a kind of optional embodiment, user can be when being recorded by recording application, Ke Yitong
It crosses recording application and opens intended application, so that the audio data for recording application for intended application output is recorded.Such as:
Operation has a music player and a Games Software simultaneously in PC terminals, wherein music player is individually opened, trip
Play software is to record application by first opening, then open by recording application, then records using defeated just for the Games Software
The audio data gone out is recorded, without the audio file of recording music player output.
Detection unit 420, for whether being embedded in first function in target process according to record command detection, wherein
First function is used to indicate the entry address of second function, second function be at least used to indicate record intended application by target into
Journey is output to the audio data of audio output interface.
Target process is the system process of terminal device where recording application, and when terminal device is opened, target process is
It operates in the system of terminal device, the sound output of all applications of the target process for being run on management terminal device, institute
Some is applied when exporting sound, is all that the audio data that will be exported by target process is output to audio output interface.It is connecing
After receiving record command, whether detection has been embedded with first function in target process, wherein first function is used to indicate
Go out the entry address of second function, and second function is for recording the audio data that intended application is exported by target process.
First execution unit 430, the entry address in the case where detecting first function, obtaining second function,
To execute second function, the audio data for being output to audio output interface is recorded.
After first function is embedded into target process, first function can be executed, therefore, when being detected in target process
To first function, show that first function is performed in target process, i.e., first function has indicated second function
Entry address, intended application is output to the audio data of audio output interface by target process originally and can be obtained by second function
It takes, at this point, by executing second function, you can recorded to the audio data for being output to audio interface with realizing.
In embodiments of the present invention, using record apply in receive record command, wherein record command is used to indicate pair
The audio data of intended application output is recorded;The first letter whether is embedded in target process according to record command detection
Number, wherein first function is used to indicate the entry address of second function, and it is logical that second function is at least used to indicate recording intended application
Cross the audio data that target process is output to audio output interface;In the case where detecting first function, second function is obtained
Entry address record the audio data for being output to audio output interface to execute second function, pass through first function instruction the
Two functions execute second function according to entry address, to be recorded to being output to audio output interface audio data, reach
The purpose for directly acquiring the audio data of intended application output records the pure technology effect using interior sound to realize
Fruit, and then solve the technical issues of being affected by ambient sound when being recorded to sound by microphone.
Optionally, device further includes:Embedded unit, for whether being embedded in target process according to record command detection
After first function, in the case where first function is not detected, the embedded dynamic link library in target process, wherein dynamic
State chained library includes first function;Second execution unit, for executing first function to indicate the entry address of second function.
Target process is system process, when operation for the first time is recorded in application, since the terminal where recording application is set
It is standby to restart when target process being caused to be restarted, it is not embedded with first function in target process, therefore, it is impossible to be examined in target process
First function is measured, also intended application, which passes through target, can not be indicated to the entry address of second function by first function
The audio data that process is output to audio output interface also can not just be got by second function.At this point it is possible to target process
Middle embedded dynamic link library includes first function in the dynamic link library, after by first function embedded target process it
Afterwards, first function is executed, so that first function indicates the entry address of second function, to enable second function to get
Target process is output to the audio data of audio output interface.
Optionally, the second execution unit includes:Searching module, for searching entering for predetermined interface function in target process
Port address, wherein predetermined interface function is used to indicate is output to audio output interface by audio data;Execution module, for holding
The entry address of predetermined interface function, is replaced with the entry address of second function by row first function.
First function is executed to indicate that following embodiment may be used according to entry address for second function, you can in mesh
The entry address of predetermined interface function is found in mark process, wherein predetermined interface function, which is used to indicate, exports intended application
Audio data be output to audio output interface, predetermined interface letter is called in the entry address that target process passes through predetermined interface function
Number, audio data is output to audio output interface by the predetermined interface function.When finding entering for predetermined interface function
After port address, by execution first function, the entry address of predetermined interface function is substituted for the entry address of second function,
In this way, when audio data is output to predetermined interface function by target process, i.e., call the by the entry address of second function
Two functions to make second function obtain the audio data to be exported, and then realize the recording to audio data.
Optionally, the first execution unit includes:Writing module, the memory for audio data to be written to target process
In, with recording audio data, wherein recording application has the access rights for accessing memory.
As a kind of optionally embodiment of the embodiment of the present invention, sound will be output to by obtaining target process in second function
After the audio data of frequency output interface, the audio data got is written in target process in memory, optionally, this is interior
It can be shared drive to deposit.Recording application has the access rights for accessing the memory, is written according to by audio data in second function
To after in above-mentioned memory, the memory can be accessed by recording application, and read audio data from the memory, to completion pair
The recording of audio data.Optionally, the audio data read can also be encoded by recording application, obtain audio file,
And then save obtained audio file, or it is transmitted.
Optionally, the first execution unit further includes:Output module, for being written in target process by audio data
During depositing, audio data is output to audio output interface.
As an alternative embodiment, audio data to be written to the memory of target process by execution second function
In process in, audio data can also be output to audio output interface, optionally, the embodiment of the present invention is not made to by sound
Frequency is output to the restriction of the execution sequence of audio output interface according to write-in memory and by audio data, you can with first by audio number
According to write-in memory, can also audio data be first output to audio interface, can be carried out at the same time with the two.It is write by audio data
During the memory for entering target process, audio data can also be output to audio output interface, ensured to ensure that
In the case that audio data is normally exported by audio interface, the recording of the audio data exported to intended application is realized.
Optionally, device further includes:Second receiving unit, for recording the audio data for being output to audio output interface
During, receive pause record command;Stop unit, for responding pause record command, audio data is written to by stopping
In the memory of target process.
During recording audio, the instruction that pause is recorded can be sent to application is recorded by control button, recorded
It applies after receiving the instruction that pause is recorded, which is responded, stop the recording to audio data.Optionally,
As the response for recording pause, it can stop executing second function, to stop the audio data for getting second function
It is written in the memory of target process, and stops reading audio data from the memory of upper target process.
Optionally, device includes:Acquiring unit, for before receiving record command in recording application, obtaining and matching confidence
Breath, wherein configuration information, which is used to indicate, allows the audio data exported to intended application in recording application to record.
As a kind of optional embodiment of the embodiment of the present invention, the configuration information for recording application can be obtained, and
When configuration information instruction allows to record the audio data of intended application output, the audio data of target user's output is recorded
System.As shown in figure 3, configuration information is arranged in interface that can be shown in Fig. 3, wherein when the option of " recording sound in game "
When selected, will record application configuration is that the audio data that can be exported to intended application is recorded, wherein by configuration information
It is positioned to allow for recording the audio data that intended application exports and may need the permission for having certain, such as:
It is necessary to have system permission (Root) in android system, can just set configuration information to " recording sound in game ".
Embodiment 3
According to embodiments of the present invention, a kind of terminal for implementing the method for recording of above-mentioned audio data is additionally provided, such as
Shown in Fig. 5, the terminal mainly include processor 501, display 502 and memory 503, wherein:
Memory 503 is mainly used for the audio data that storage is recorded.
Display 502 is mainly used for the recording interface that application is recorded in display.
Processor 501 is mainly used for executing following operation:
Record command is received in recording application, wherein record command is used to indicate the audio number exported to intended application
According to being recorded;Whether first function is embedded in target process, wherein first function is for referring to according to record command detection
Show the entry address of second function, second function, which is at least used to indicate, to be recorded intended application by target process to be output to audio defeated
The audio data of outgoing interface;In the case where detecting first function, the entry address of second function is obtained, to execute the second letter
Number records the audio data for being output to audio output interface.
Processor 501 is additionally operable in the case where first function is not detected, the embedded dynamic link library in target process,
Wherein, dynamic link library includes first function;First function is executed to indicate the entry address of second function.
Processor 501 is additionally operable to search the entry address of predetermined interface function in target process, wherein predetermined interface letter
Number is used to indicate is output to audio output interface by audio data;First function is executed, by the entrance of predetermined interface function
Location replaces with the entry address of second function.
Processor 501 is additionally operable to audio data being written in the memory of target process, with recording audio data, wherein
Recording application has the access rights for accessing memory.
Processor 501 is additionally operable to audio data being output to audio output interface.
Processor 501 is additionally operable to receive pause record command;Audio data is written to by response pause record command, stopping
In the memory of target process.
Processor 501 is additionally operable to obtain configuration information, wherein configuration information is used to indicate permission in recording application to mesh
The audio data of mark application output is recorded.
Optionally, the specific example in the present embodiment can refer to showing described in above-described embodiment 1 and embodiment 2
Example, details are not described herein for the present embodiment.
Embodiment 4
The embodiments of the present invention also provide a kind of storage mediums.Optionally, in the present embodiment, above-mentioned storage medium can
The program code of the method for recording of the audio data of the embodiment of the present invention for storage.
Optionally, in the present embodiment, above-mentioned storage medium can be located at mobile communications network, wide area network, Metropolitan Area Network (MAN) or
At least one of multiple network equipments in the network of LAN network equipment.
Optionally, in the present embodiment, storage medium is arranged to store the program code for executing following steps:
S1 receives record command, wherein record command is used to indicate the audio exported to intended application in recording application
Data are recorded;
Whether S2 is embedded in first function, wherein first function is for referring to according to record command detection in target process
Show the entry address of second function, second function, which is at least used to indicate, to be recorded intended application by target process to be output to audio defeated
The audio data of outgoing interface;
S3 obtains the entry address of second function in the case where detecting first function, to execute second function, record
System is output to the audio data of audio output interface.
Optionally, in the present embodiment, above-mentioned storage medium can include but is not limited to:USB flash disk, read-only memory (ROM,
Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disc or
The various media that can store program code such as CD.
Optionally, in the present embodiment, processor is not detecting according to stored program code execution in storage medium
In the case of first function, the embedded dynamic link library in target process, wherein dynamic link library includes first function;
First function is executed to indicate the entry address of second function.
Optionally, in the present embodiment, processor according to stored program code in storage medium execute target into
The entry address of predetermined interface function is searched in journey, wherein predetermined interface function is used to indicate is output to audio by audio data
Output interface;First function is executed, the entry address of predetermined interface function is replaced with to the entry address of second function.
Optionally, in the present embodiment, processor is executed according to stored program code in storage medium by audio number
According to being written in the memory of target process, with recording audio data, wherein recording application has the access rights for accessing memory.
Optionally, in the present embodiment, processor is executed according to stored program code in storage medium by audio number
According to being output to audio output interface.
Optionally, in the present embodiment, processor executes according to stored program code in storage medium and receives pause
Record command;Audio data is written in the memory of target process by response pause record command, stopping.
Optionally, in the present embodiment, processor executes according to stored program code in storage medium and obtains configuration
Information, wherein configuration information, which is used to indicate, allows the audio data exported to intended application in recording application to record.
Optionally, the specific example in the present embodiment can refer to showing described in above-described embodiment 1 and embodiment 2
Example, details are not described herein for the present embodiment.
The embodiments of the present invention are for illustration only, can not represent the quality of embodiment.
If the integrated unit in above-described embodiment is realized in the form of SFU software functional unit and as independent product
Sale in use, can be stored in the storage medium that above computer can be read.Based on this understanding, skill of the invention
Substantially all or part of the part that contributes to existing technology or the technical solution can be with soft in other words for art scheme
The form of part product embodies, which is stored in a storage medium, including some instructions are used so that one
Platform or multiple stage computers equipment (can be personal computer, server or network equipment etc.) execute each embodiment institute of the present invention
State all or part of step of method.
In the above embodiment of the present invention, all emphasizes particularly on different fields to the description of each embodiment, do not have in some embodiment
The part of detailed description may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed client, it can be by others side
Formula is realized.Wherein, the apparatus embodiments described above are merely exemplary, for example, the unit division, only one
Kind of division of logic function, formula that in actual implementation, there may be another division manner, such as multiple units or component can combine or
It is desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or discussed it is mutual it
Between coupling, direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some interfaces, unit or module
It connects, can be electrical or other forms.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple
In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme
's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also
It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.Above-mentioned integrated list
The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art
For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered
It is considered as protection scope of the present invention.
Claims (12)
1. a kind of method for recording of audio data, which is characterized in that including:
Record command is received in recording application, wherein the record command is used to indicate the audio number exported to intended application
According to being recorded;
Whether first function is embedded in target process, wherein the first function is used for according to record command detection
Indicate the entry address of second function, the second function be at least used to indicate record the intended application by the target into
Journey is output to the audio data of audio output interface;
In the case where detecting the first function, the entry address of the second function is obtained, to execute described
Two functions record the audio data for being output to the audio output interface;
Wherein, after whether being embedded in first function in target process according to record command detection, further include:Not
In the case of detecting the first function, the embedded dynamic link library in the target process, wherein the dynamic link library
It include the first function;The first function is executed to indicate the entry address of the second function.
2. according to the method described in claim 1, it is characterized in that, executing the first function to indicate the second function
The entry address includes:
The entry address of predetermined interface function is searched in the target process, wherein the predetermined interface function is used to indicate
The audio data is output to the audio output interface;
The first function is executed, the entry address of the predetermined interface function is replaced with to enter described in the second function
Port address.
3. according to the method described in claim 1, it is characterized in that, executing the second function, recording is output to the audio
The audio data of output interface includes:
The audio data is written in the memory of the target process, to record the audio data, wherein the recording
Using with the access rights for accessing the memory.
4. according to the method described in claim 3, it is characterized in that, the audio data is written to the target process
During in memory, further include:
The audio data is output to the audio output interface.
5. according to the method described in claim 1, it is characterized in that, recording the sound for being output to the audio output interface
During frequency evidence, further include:
Receive pause record command;
The pause record command is responded, the audio data is written in the memory of the target process by stopping.
6. according to the method described in claim 1, it is characterized in that, before receiving record command in recording application, wrap
It includes:
Obtain configuration information, wherein the configuration information is used to indicate permission in recording application to the intended application
The audio data of output is recorded.
7. a kind of record device of audio data, which is characterized in that including:
First receiving unit, for receiving record command in recording application, wherein the record command is used to indicate to target
It is recorded using the audio data of output;
Detection unit, for whether being embedded in first function in target process according to record command detection, wherein described
First function is used to indicate the entry address of second function, and it is logical that the second function is at least used to indicate the recording intended application
Cross the audio data that the target process is output to audio output interface;
First execution unit, the entrance in the case where detecting the first function, obtaining the second function
The audio data for being output to the audio output interface is recorded to execute the second function in address;
Wherein, described device further includes:Embedded unit, for whether embedding in target process according to record command detection
After having entered first function, in the case where the first function is not detected, the embedded dynamic link in the target process
Library, wherein the dynamic link library includes the first function;Second execution unit, for execute the first function with
Indicate the entry address of the second function.
8. device according to claim 7, which is characterized in that second execution unit includes:
Searching module, the entry address for searching predetermined interface function in the target process, wherein the predetermined interface
Function is used to indicate is output to the audio output interface by the audio data;
The entry address of the predetermined interface function is replaced with described by execution module for executing the first function
The entry address of two functions.
9. device according to claim 7, which is characterized in that first execution unit includes:
Writing module, for the audio data to be written in the memory of the target process, to record the audio data,
Wherein, described to record application with the access rights for accessing the memory.
10. device according to claim 9, which is characterized in that first execution unit further includes:
Output module, for during the audio data is written in the memory of the target process, by the sound
Frequency evidence is output to the audio output interface.
11. device according to claim 7, which is characterized in that described device further includes:
Second receiving unit, for during recording is output to the audio data of the audio output interface, receiving
Suspend record command;
Stop unit stops the audio data being written to the target process for responding the pause record command
In memory.
12. device according to claim 7, which is characterized in that described device includes:
Acquiring unit, for before receiving record command in recording application, obtaining configuration information, wherein the configuration
Information, which is used to indicate, to be allowed to record in the audio data for exporting the intended application in application of recording.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710309950.6A CN107195314B (en) | 2017-05-04 | 2017-05-04 | The method for recording and device of audio data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710309950.6A CN107195314B (en) | 2017-05-04 | 2017-05-04 | The method for recording and device of audio data |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107195314A CN107195314A (en) | 2017-09-22 |
CN107195314B true CN107195314B (en) | 2018-07-24 |
Family
ID=59873982
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710309950.6A Active CN107195314B (en) | 2017-05-04 | 2017-05-04 | The method for recording and device of audio data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107195314B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107948663A (en) * | 2017-11-20 | 2018-04-20 | 腾讯数码(天津)有限公司 | A kind of way of recording, client and terminal device |
CN113365139B (en) * | 2020-03-03 | 2023-05-02 | 腾讯科技(深圳)有限公司 | Video recording method and device based on iOS system and storage medium |
CN113889154B (en) * | 2021-09-30 | 2024-03-19 | 广州维梦科技有限公司 | Sound recording method, terminal and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1722757A (en) * | 2004-07-12 | 2006-01-18 | 深圳市友邻通讯设备有限公司 | Recording system based on voice communication |
CN103198826A (en) * | 2013-03-29 | 2013-07-10 | 贵阳朗玛信息技术股份有限公司 | Accompany method and accompany device of audio chatting room |
CN103294444A (en) * | 2013-06-26 | 2013-09-11 | 北京视博云科技有限公司 | Method and device of providing voice data in computer sharing platform |
CN104424022A (en) * | 2013-08-30 | 2015-03-18 | 腾讯科技(深圳)有限公司 | Screen recording method and device |
CN105786441A (en) * | 2016-01-29 | 2016-07-20 | 腾讯科技(深圳)有限公司 | Audio processing method, server, user equipment and system |
CN106328174A (en) * | 2016-08-29 | 2017-01-11 | 天脉聚源(北京)传媒科技有限公司 | Method and device for processing recording data |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106297842A (en) * | 2016-08-15 | 2017-01-04 | 乐视控股(北京)有限公司 | A kind of audio frequency intercept method and device |
-
2017
- 2017-05-04 CN CN201710309950.6A patent/CN107195314B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1722757A (en) * | 2004-07-12 | 2006-01-18 | 深圳市友邻通讯设备有限公司 | Recording system based on voice communication |
CN103198826A (en) * | 2013-03-29 | 2013-07-10 | 贵阳朗玛信息技术股份有限公司 | Accompany method and accompany device of audio chatting room |
CN103294444A (en) * | 2013-06-26 | 2013-09-11 | 北京视博云科技有限公司 | Method and device of providing voice data in computer sharing platform |
CN104424022A (en) * | 2013-08-30 | 2015-03-18 | 腾讯科技(深圳)有限公司 | Screen recording method and device |
CN105786441A (en) * | 2016-01-29 | 2016-07-20 | 腾讯科技(深圳)有限公司 | Audio processing method, server, user equipment and system |
CN106328174A (en) * | 2016-08-29 | 2017-01-11 | 天脉聚源(北京)传媒科技有限公司 | Method and device for processing recording data |
Also Published As
Publication number | Publication date |
---|---|
CN107195314A (en) | 2017-09-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107195314B (en) | The method for recording and device of audio data | |
CN111381954B (en) | Audio data recording method, system and terminal equipment | |
CN108124252A (en) | A kind of method, terminal and computer readable storage medium for obtaining information | |
CN108200008A (en) | The recognition methods and device that abnormal data accesses | |
CN104199913B (en) | Terminal resource cleaning method and device and terminal | |
CN105635519B (en) | Method for processing video frequency, apparatus and system | |
CN109862100B (en) | Method and device for pushing information | |
US20150193280A1 (en) | Method and device for monitoring api function scheduling in mobile terminal | |
CN110267113A (en) | Video file processing method, system, medium and electronic equipment | |
CN107004020A (en) | Terminal device and its data processing method | |
WO2015081713A1 (en) | Method and apparatus for running applications in background | |
JP2021535667A (en) | Methods, devices and programs for determining periods of interest and at least one area of interest for managing events. | |
CN109408345A (en) | Operate replay method, device, computer equipment and storage medium | |
CN106210285A (en) | A kind of recording method of controlling security, device and equipment | |
CN101458651A (en) | Kvm management system and method | |
CN107820102A (en) | A kind of data transmission method, device, terminal and server | |
US20220198058A1 (en) | Identifying and preventing access to aggregate pii from anonymized data | |
CN108073424A (en) | The call method and device of component interface | |
CN107729761A (en) | A kind of Activiation method of encryption device, encryption device | |
CN107609065A (en) | One kind game classification method, apparatus and electronic equipment | |
CN107632775A (en) | Information sharing method, device and terminal between a kind of user's space | |
CN104838627B (en) | Buffering sequence based on access to content tracking | |
CN110162238A (en) | It is a kind of fast to call associated application method and device, mobile terminal and storage medium | |
CN111651764B (en) | Process monitoring method and device, electronic equipment and storage medium | |
CN108091332A (en) | Method of speech processing based on automobile data recorder and the voice processing apparatus based on automobile data recorder |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |