CN107195314A - The method for recording and device of voice data - Google Patents

The method for recording and device of voice data Download PDF

Info

Publication number
CN107195314A
CN107195314A CN201710309950.6A CN201710309950A CN107195314A CN 107195314 A CN107195314 A CN 107195314A CN 201710309950 A CN201710309950 A CN 201710309950A CN 107195314 A CN107195314 A CN 107195314A
Authority
CN
China
Prior art keywords
function
voice data
target process
record
recording
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
CN201710309950.6A
Other languages
Chinese (zh)
Other versions
CN107195314B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201710309950.6A priority Critical patent/CN107195314B/en
Publication of CN107195314A publication Critical patent/CN107195314A/en
Application granted granted Critical
Publication of CN107195314B publication Critical patent/CN107195314B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/16Sound input; Sound output
    • G06F3/162Interface to dedicated audio devices, e.g. audio drivers, interface to CODECs
    • 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
    • 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)
  • 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 voice data and device.Wherein, this method includes:Record command is received in application is recorded, wherein, record command is used to indicate to record the voice data that intended application is exported;Whether first function embedded in target process according to record command detection, wherein, first function is used for the entry address for indicating second function, and second function is at least used to indicate to record the voice data that intended application is output to audio output interface by target process;In the case where detecting first function, the entry address of second function is obtained, to perform second function, the voice data for being output to audio output interface is recorded.The present invention is solved is influenceed larger technical problem by ambient sound when being recorded by microphone on sound.

Description

The method for recording and device of voice data
Technical field
The present invention relates to computer realm, in particular to the method for recording and device of a kind of voice data.
Background technology
The live method that game sound is obtained with recording application of playing at present is all that the api provided by system (applies journey Sequence interface) obtain microphone sound.Although so can also get the sound of game, ambient sound is also mingled with 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 it is above-mentioned the problem of, effective solution is not yet proposed at present.
The content of the invention
The embodiments of the invention provide a kind of method for recording of voice data and device, at least to solve by microphone pair Larger technical problem is influenceed when sound is recorded by ambient sound.
One side according to embodiments of the present invention there is provided a kind of method for recording of voice data, including:Should recording With middle reception record command, wherein, the record command is used to indicate to record the voice data that intended application is exported;Root In target process whether first function is embedded according to record command detection, wherein, the first function is used to indicating the The entry address of two functions, the second function is at least used to indicate that record the intended application is exported by the target process To the voice data of audio output interface;In the case where detecting the first function, the second function is obtained The entry address, to perform the second function, records the voice data for being output to the audio output interface.
Another aspect according to embodiments of the present invention, additionally provides a kind of record device of voice data, including:Receive single Member, for receiving record command in application is recorded, wherein, the record command is used for the audio for indicating to export intended application Data are recorded;Detection unit, for whether embedded in first function in target process according to record command detection, Wherein, the first function is used for the entry address for indicating second function, and the second function is at least used to indicate to record described Intended application is output to the voice data of audio output interface by the target process;Acquiring unit, in detection In the case of the first function, the entry address of the second function is obtained, to perform the second function, is recorded It is output to the voice data of the audio output interface.
In embodiments of the present invention, record command is received using in application is recorded, wherein, the record command is used to refer to Show that the voice data exported to intended application is recorded;Whether embedded in target process according to record command detection First function, wherein, the first function is used for the entry address for indicating second function, and the second function is at least used to indicate Record the voice 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 perform the second function, recording is output to The voice data of the audio output interface, indicates second function according to entry address, and perform second by first function Function, to be recorded to being output to audio output interface voice data, has reached the audio of direct acquisition intended application output The purpose of data, it is achieved thereby that recording the technique effect of the pure interior sound of application, and then is solved by microphone to sound Larger technical problem is influenceed when sound is recorded by ambient sound.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, constitutes the part of the application, this hair Bright schematic description and description is used to explain the present invention, does not constitute inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the hardware environment figure of the method for recording of voice data according to embodiments of the present invention;
Fig. 2 is a kind of flow chart of the method for recording of optional voice data according to embodiments of the present invention;
Fig. 3 is the configuration interface of recording application according to embodiments of the present invention;
Fig. 4 is a kind of schematic diagram of the record device of optional voice data according to embodiments of the present invention;
Fig. 5 is the schematic diagram of terminal according to embodiments of the present invention.
Embodiment
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention Accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only The embodiment of a part of the invention, rather than whole embodiments.Based on the embodiment in the present invention, ordinary skill people The every other embodiment that member is obtained under the premise of creative work is not made, should all belong to the model that the present invention is protected Enclose.
It should be noted that term " first " in description and claims of this specification and above-mentioned accompanying drawing, " Two " etc. be for distinguishing similar object, without for describing specific order or precedence.It should be appreciated that so using Data can exchange in the appropriate case, so as to embodiments of the invention described herein can with except illustrating herein or Order beyond those of description is implemented.In addition, term " comprising " and " having " and their any deformation, it is intended that cover Lid is non-exclusive to be included, for example, the process, method, system, product or the equipment that contain series of steps or unit are not necessarily limited to Those steps or unit clearly listed, but may include not list clearly or for these processes, method, product Or the intrinsic other steps of equipment or unit.
Embodiment 1
According to embodiments of the present invention there is provided a kind of embodiment of the method that can be performed by the application device embodiment, It should be noted that the step of the flow of accompanying drawing is illustrated can such as one group computer executable instructions department of computer science Performed in system, and, although logical order is shown in flow charts, but in some cases, can be with different from herein Order perform shown or described step.
There is provided a kind of method for recording of voice data according to embodiments of the present invention.
Alternatively, in the present embodiment, the method for recording of above-mentioned voice data can apply 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 with server 104 Connect, above-mentioned network includes but is not limited to:Mobile communications network, wide area network, Metropolitan Area Network (MAN) or LAN, terminal 102 can be mobile phones Terminal or PC terminals, notebook terminal or tablet personal computer terminal.
Fig. 2 is a kind of flow chart of the method for recording of optional voice data according to embodiments of the present invention, below in conjunction with The method for recording for the voice data that Fig. 2 is provided the embodiment of the present invention does specific introduction, as shown in Fig. 2 the voice data Method for recording mainly comprises the following steps S202 to step S206:
Step S202, record command is received in application is recorded, wherein, record command is used to indicate to export intended application Voice data recorded.
In embodiments of the present invention, recording application is used for recording audio data, records application and may be, but is not limited to install On mobile phone terminal, the terminal device such as PC terminals, notebook terminal or tablet personal computer terminal, its place can be obtained by recording application Terminal device on the voice data played and recorded, record obtained file and can be used for storage into storage medium, Upload on network or online live for carrying out.When run recording apply when, can by for indicate start record by Button, sends record command, recording is applied after record command is received, according to the record command to transporting to application is recorded The voice data of capable intended application output is recorded.It is above-mentioned to start record for instruction in a kind of optional embodiment The button of system be 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 Cross recording application and open intended application, recorded so as to record using the voice data exported for the intended application.For example: 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 opened by recording application, then record application defeated just for the Games Software The voice data gone out is recorded, the audio file exported without recording music player.
Whether step S204, first function is embedded according to record command detection in target process, wherein, first function Entry address for indicating second function, second function is at least used to indicate that record intended application is output to by target process The voice data of audio output interface.
Target process is the system process for recording application place terminal device, and when terminal device is opened, target process is In the system for operating in terminal device, target process is used for the sound output of all applications run on management terminal device, institute What is had applies when exporting sound, is all that the voice data that will be exported by target process is output to audio output interface.Connecing Receive after 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 used to record the voice data that intended application is exported by target process.
Step S206, in the case where detecting first function, obtains the entry address of second function, to perform the second letter Number, records the voice data for being output to audio output interface.
After first function is embedded into target process, first function can be performed, therefore, when the detection 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 originally audio output interface is output to by target process voice data can be obtained by second function Take, now, by performing second function, you can the voice data for being output to COBBAIF is recorded with realizing.
In embodiments of the present invention, record command is received using in application is recorded, wherein, record command is used for instruction pair The voice data of intended application output is recorded;Whether the first letter embedded in target process according to record command detection Number, wherein, first function is used for the entry address for indicating second function, and second function is at least used to indicate that recording intended application leads to Cross the voice data that target process is output to audio output interface;In the case where detecting first function, second function is obtained Entry address, to perform second function, record the voice data for being output to audio output interface, the indicated by first function Two functions perform second function according to entry address, to be recorded to being output to audio output interface voice data, reach The purpose of the voice data of intended application output is directly obtained, it is achieved thereby that recording the technology effect of the pure interior sound of application Really, and then solve and influenceed larger technical problem when being recorded by microphone on sound by ambient sound.
Alternatively, after it whether embedded in first function in target process according to record command detection, in addition to: In the case of being not detected by first function, the embedded dynamic link library in target process, wherein, dynamic link library includes first Function;First function is performed to indicate the entry address of second function.
Target process is system process, when operation recording first is applied, or because the terminal for recording application place is set It is standby to restart when causing the target process to restart, first function is not embedded with 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 voice 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 Include first function in middle embedded dynamic link library, the dynamic link library, after by first function embedded target process it Afterwards, first function is performed, so that first function indicates the entry address of second function, so that second function can be got Target process is output to the voice data of audio output interface.
Alternatively, perform first function is included with the entry address for indicating second function:Searched in target process predetermined The entry address of interface function, wherein, predetermined interface function is used to indicate voice data being output to audio output interface;Perform First function, the entry address of predetermined interface function is replaced with the entry address of second function.
Perform first function to indicate that second function can use following embodiment according to entry address, you can with mesh The entry address of predetermined interface function is found in mark process, wherein, predetermined interface function is used to indicate to export intended application Voice data be output to audio output interface, target process calls predetermined interface letter by the entry address of predetermined interface function Number, so that voice data is output into audio output interface by the predetermined interface function.When finding entering for predetermined interface function After port address, by performing first function, the entry address of predetermined interface function is substituted for the entry address of second function, So, when voice data is output to predetermined interface function by target process, i.e., is called by the entry address of second function Two functions, so that second function obtains the voice data to be exported, and then realize the recording to voice data.
Alternatively, second function is performed, the voice data that recording is output to audio output interface includes:Voice data is write Enter into the internal memory of target process, with recording audio data, wherein, application is recorded with the access rights for accessing internal memory.
As a kind of alternatively embodiment of the embodiment of the present invention, sound will be output to by obtaining target process in second function After the voice data of frequency output interface, the voice data got is written in target process in internal memory, alternatively, this is interior It can be shared drive to deposit.Application is recorded with the access rights for accessing the internal memory, is write in second function according to by voice data After into above-mentioned internal memory, the internal memory can be accessed by recording application, and read voice data from the internal memory, so as to complete pair The recording of voice data.Alternatively, recording application can also encode to the voice data read, obtain audio file, And then save obtained audio file, or it is transmitted.
Alternatively, during voice data is written in the internal memory of target process, in addition to:Voice data is defeated Go out to audio output interface.
As an alternative embodiment, voice data to be written to the internal memory of target process by performing second function In process in, voice data can also be output to audio output interface, alternatively, 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 internal memory and by voice data, you can with first by audio number According to write-in internal memory, voice data first can also be output to COBBAIF, can simultaneously be carried out with the two.Write by voice data During the internal memory for entering target process, voice data can also be output to audio output interface, ensured so as to ensure that In the case that voice data is normally exported by COBBAIF, the recording of the voice data exported to intended application is realized.
Alternatively, during recording is output to the voice data of audio output interface, in addition to:Pause is received to record Instruction;Voice data is written in the internal memory of target process by response pause record command, stopping.
During recording audio, it can be recorded by control button to the instruction that application transmission pause is recorded is recorded Apply after the instruction that pause is recorded is received, the instruction is responded, stop the recording to voice data.Alternatively, As the response for recording pause, it can stop performing second function, so as to stop the voice data for getting second function In the internal memory for writing target process, and stop reading voice data from the internal memory of upper target process.
Alternatively, before record command is received in recording application, including:Configuration information is obtained, wherein, configuration information is used Allow to record the voice data that intended application is exported in application is recorded 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 indicates to allow to record the voice data of intended application output, the voice data that targeted customer exports is recorded System.As shown in figure 3, configuration information can be set in the interface shown in Fig. 3, wherein, when the option of " recording sound in game " When selected, application configuration will be recorded for that can be recorded to the voice data that intended application is exported, wherein, by configuration information It is positioned to allow for that the voice data that intended application is exported record to need with certain authority, for example: It is necessary to have System Privileges (Root) in android system, configuration information can be just set to " recording sound in game ".
It should be noted that for foregoing each method embodiment, in order to be briefly described, therefore it is all expressed as a series of Combination of actions, but those skilled in the art should know, the present invention is not limited by described sequence of movement because According to the present invention, some steps can be carried out sequentially or simultaneously using other.Secondly, those skilled in the art should also know Know, embodiment described in this description belongs to preferred embodiment, involved action and module is 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 a lot In the case of the former be more preferably embodiment.Understood based on such, technical scheme is substantially in other words to existing The part that technology contributes can be embodied in the form of software product, and the computer software product is stored in a storage In medium (such as ROM/RAM, magnetic disc, CD), including some instructions are to cause a station terminal equipment (can be mobile phone, calculate Machine, server, or network equipment etc.) perform method described in each of the invention embodiment.
Embodiment 2
According to embodiments of the present invention, a kind of voice data for being used to implement the method for recording of above-mentioned voice data is additionally provided Record device, the device of the voice data is mainly used in performing the voice data that the above of the embodiment of the present invention is provided Method for recording, the record device of the voice data provided below the embodiment of the present invention does specific introduction:
Fig. 4 is the schematic diagram of the record device of voice data according to embodiments of the present invention, as shown in figure 4, the audio number According to record device mainly include:
First receiving unit 410, for receiving record command in application is recorded, wherein, record command is used for instruction pair The voice data of intended application output is recorded.
In embodiments of the present invention, recording application is used for recording audio data, records application and may be, but is not limited to install On mobile phone terminal, the terminal device such as PC terminals, notebook terminal or tablet personal computer terminal, its place can be obtained by recording application Terminal device on the voice data played and recorded, record obtained file and can be used for storage into storage medium, Upload on network or online live for carrying out.When run recording apply when, can by for indicate start record by Button, sends record command, recording is applied after record command is received, according to the record command to transporting to application is recorded The voice data of capable intended application output is recorded.It is above-mentioned to start record for instruction in a kind of optional embodiment The button of system be 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 Cross recording application and open intended application, recorded so as to record using the voice data exported for the intended application.For example: 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 opened by recording application, then record application defeated just for the Games Software The voice data gone out is recorded, the audio file exported without recording music player.
Detection unit 420, for whether embedded in first function in target process according to record command detection, wherein, First function is used for the entry address for indicating second function, and second function is at least used to indicate that record intended application is entered by target Journey is output to the voice data of audio output interface.
Target process is the system process for recording application place terminal device, and when terminal device is opened, target process is In the system for operating in terminal device, target process is used for the sound output of all applications run on management terminal device, institute What is had applies when exporting sound, is all that the voice data that will be exported by target process is output to audio output interface.Connecing Receive after 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 used to record the voice data that intended application is exported by target process.
First execution unit 430, in the case where detecting first function, obtaining the entry address of second function, To perform second function, the voice data for being output to audio output interface is recorded.
After first function is embedded into target process, first function can be performed, therefore, when the detection 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 originally audio output interface is output to by target process voice data can be obtained by second function Take, now, by performing second function, you can the voice data for being output to COBBAIF is recorded with realizing.
In embodiments of the present invention, record command is received using in application is recorded, wherein, record command is used for instruction pair The voice data of intended application output is recorded;Whether the first letter embedded in target process according to record command detection Number, wherein, first function is used for the entry address for indicating second function, and second function is at least used to indicate that recording intended application leads to Cross the voice data that target process is output to audio output interface;In the case where detecting first function, second function is obtained Entry address, to perform second function, record the voice data for being output to audio output interface, the indicated by first function Two functions perform second function according to entry address, to be recorded to being output to audio output interface voice data, reach The purpose of the voice data of intended application output is directly obtained, it is achieved thereby that recording the technology effect of the pure interior sound of application Really, and then solve and influenceed larger technical problem when being recorded by microphone on sound by ambient sound.
Alternatively, device also includes:Embedded unit, for whether being embedded in target process according to record command detection After first function, in the case where being not detected by first function, the embedded dynamic link library in target process, wherein, move State chained library includes first function;Second execution unit, for performing first function to indicate the entry address of second function.
Target process is system process, when operation recording first is applied, or because the terminal for recording application place is set It is standby to restart when causing the target process to restart, first function is not embedded with 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 voice 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 Include first function in middle embedded dynamic link library, the dynamic link library, after by first function embedded target process it Afterwards, first function is performed, so that first function indicates the entry address of second function, so that second function can be got Target process is output to the voice data of audio output interface.
Alternatively, the second execution unit includes:Searching modul, for searching entering for predetermined interface function in target process Port address, wherein, predetermined interface function is used to indicate voice data being output to audio output interface;Performing module, for holding Row first function, the entry address of predetermined interface function is replaced with the entry address of second function.
Perform first function to indicate that second function can use following embodiment according to entry address, you can with mesh The entry address of predetermined interface function is found in mark process, wherein, predetermined interface function is used to indicate to export intended application Voice data be output to audio output interface, target process calls predetermined interface letter by the entry address of predetermined interface function Number, so that voice data is output into audio output interface by the predetermined interface function.When finding entering for predetermined interface function After port address, by performing first function, the entry address of predetermined interface function is substituted for the entry address of second function, So, when voice data is output to predetermined interface function by target process, i.e., is called by the entry address of second function Two functions, so that second function obtains the voice data to be exported, and then realize the recording to voice data.
Alternatively, the first execution unit includes:Writing module, the internal memory for voice data to be written to target process In, with recording audio data, wherein, application is recorded with the access rights for accessing internal memory.
As a kind of alternatively embodiment of the embodiment of the present invention, sound will be output to by obtaining target process in second function After the voice data of frequency output interface, the voice data got is written in target process in internal memory, alternatively, this is interior It can be shared drive to deposit.Application is recorded with the access rights for accessing the internal memory, is write in second function according to by voice data After into above-mentioned internal memory, the internal memory can be accessed by recording application, and read voice data from the internal memory, so as to complete pair The recording of voice data.Alternatively, recording application can also encode to the voice data read, obtain audio file, And then save obtained audio file, or it is transmitted.
Alternatively, the first execution unit also includes:Output module, for being written to by voice data in target process During depositing, voice data is output to audio output interface.
As an alternative embodiment, voice data to be written to the internal memory of target process by performing second function In process in, voice data can also be output to audio output interface, alternatively, 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 internal memory and by voice data, you can with first by audio number According to write-in internal memory, voice data first can also be output to COBBAIF, can simultaneously be carried out with the two.Write by voice data During the internal memory for entering target process, voice data can also be output to audio output interface, ensured so as to ensure that In the case that voice data is normally exported by COBBAIF, the recording of the voice data exported to intended application is realized.
Alternatively, device also includes:Second receiving unit, for recording the voice data for being output to audio output interface During, receive pause record command;Stop element, for responding pause record command, voice data is written to by stopping In the internal memory of target process.
During recording audio, it can be recorded by control button to the instruction that application transmission pause is recorded is recorded Apply after the instruction that pause is recorded is received, the instruction is responded, stop the recording to voice data.Alternatively, As the response for recording pause, it can stop performing second function, so as to stop the voice data for getting second function In the internal memory for writing target process, and stop reading voice data from the internal memory of upper target process.
Alternatively, device includes:Acquiring unit, for before record command is received in recording application, obtaining and matching somebody with somebody confidence Breath, wherein, configuration information is used to indicate to allow to record the voice data that intended application is exported in application is recorded.
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 indicates to allow to record the voice data of intended application output, the voice data that targeted customer exports is recorded System.As shown in figure 3, configuration information can be set in the interface shown in Fig. 3, wherein, when the option of " recording sound in game " When selected, application configuration will be recorded for that can be recorded to the voice data that intended application is exported, wherein, by configuration information It is positioned to allow for that the voice data that intended application is exported record to need with certain authority, for example: It is necessary to have System Privileges (Root) in android system, configuration information can be just set to " recording sound in game ".
Embodiment 3
According to embodiments of the present invention, a kind of terminal for being used to implement the method for recording of above-mentioned voice data is additionally provided, such as Shown in Fig. 5, the terminal mainly includes processor 501, display 502 and memory 503, wherein:
Memory 503 is mainly used in the voice data that storage is recorded.
Display 502 is mainly used in the recording interface that application is recorded in display.
Processor 501 is mainly used in performing following operation:
Record command is received in application is recorded, wherein, record command is used for the audio number for indicating to export intended application According to being recorded;Whether first function embedded in target process according to record command detection, wherein, first function is used to refer to Show the entry address of second function, it is defeated that second function is output to audio at least for instruction recording intended application by target process The voice data of outgoing interface;In the case where detecting first function, the entry address of second function is obtained, to perform the second letter Number, records the voice data for being output to audio output interface.
Processor 501 is additionally operable in the case where being not detected by first function, the embedded dynamic link library in target process, Wherein, dynamic link library includes first function;First function is performed 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 voice data being output to audio output interface;First function is performed, by the entrance of predetermined interface function Location replaces with the entry address of second function.
Processor 501 is additionally operable to voice data being written in the internal memory of target process, with recording audio data, wherein, Application is recorded with the access rights for accessing internal memory.
Processor 501 is additionally operable to voice data being output to audio output interface.
Processor 501 is additionally operable to receive pause record command;Voice data is written to by response pause record command, stopping In the internal memory of target process.
Processor 501 is additionally operable to obtain configuration information, wherein, configuration information is used to indicate to allow in application is recorded to mesh The voice data of mark application output is recorded.
Alternatively, the specific example in the present embodiment may be referred to showing described in above-described embodiment 1 and embodiment 2 Example, the present embodiment will not be repeated here.
Embodiment 4
Embodiments of the invention additionally provide a kind of storage medium.Alternatively, in the present embodiment, above-mentioned storage medium can For the program code of the method for recording of the voice data of the storage embodiment of the present invention.
Alternatively, 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 network equipment in multiple network equipments in the network of LAN.
Alternatively, in the present embodiment, storage medium is arranged to the program code that storage is used to perform following steps:
S1, record command is received in application is recorded, wherein, record command is used for the audio for indicating to export intended application Data are recorded;
Whether S2, first function is embedded according to record command detection in target process, wherein, first function is used to refer to Show the entry address of second function, it is defeated that second function is output to audio at least for instruction recording intended application by target process The voice data of outgoing interface;
S3, in the case where detecting first function, obtains the entry address of second function, to perform second function, record System is output to the voice data of audio output interface.
Alternatively, in the present embodiment, above-mentioned storage medium can include but is not limited to:USB flash disk, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disc or CD etc. is various can be with the medium of store program codes.
Alternatively, in the present embodiment, processor is performed according to the program code stored in storage medium and not detected In the case of first function, the embedded dynamic link library in target process, wherein, dynamic link library includes first function; First function is performed to indicate the entry address of second function.
Alternatively, in the present embodiment, processor performs to enter in target according to the program code stored in storage medium The entry address of predetermined interface function is searched in journey, wherein, predetermined interface function is used to indicate voice data being output to audio Output interface;First function is performed, the entry address of predetermined interface function is replaced with to the entry address of second function.
Alternatively, in the present embodiment, processor is performed audio number according to the program code stored in storage medium According to being written in the internal memory of target process, with recording audio data, wherein, application is recorded with the access rights for accessing internal memory.
Alternatively, in the present embodiment, processor is performed audio number according to the program code stored in storage medium According to being output to audio output interface.
Alternatively, in the present embodiment, processor performs according to the program code stored in storage medium and receives pause Record command;Voice data is written in the internal memory of target process by response pause record command, stopping.
Alternatively, in the present embodiment, processor performs according to the program code stored in storage medium and obtains configuration Information, wherein, configuration information is used to indicate to allow to record the voice data that intended application is exported in application is recorded.
Alternatively, the specific example in the present embodiment may be referred to showing described in above-described embodiment 1 and embodiment 2 Example, the present embodiment will not be repeated here.
The embodiments of the present invention are for illustration only, and the quality of embodiment is not represented.
If the integrated unit in above-described embodiment is realized using in the form of SFU software functional unit and is used as independent product Sale or in use, the storage medium that above computer can be read can be stored in.Understood based on such, skill of the invention The part or all or part of the technical scheme that art scheme substantially contributes to prior art in other words can be with soft The form of part product is embodied, and the computer software product is stored in storage medium, including some instructions are to cause one Platform or multiple stage computers equipment (can be personal computer, server or network equipment etc.) perform each embodiment institute of the invention State all or part of step of method.
In the above embodiment of the present invention, the description to each embodiment all emphasizes particularly on different fields, and does not have in some embodiment The part of detailed description, may refer to the associated description of other embodiment.
, can be by others side in several embodiments provided herein, it should be understood that disclosed client Formula is realized.Wherein, device embodiment described above is only schematical, such as division of described unit, only one Kind of division of logic function, can there is other dividing mode when actually realizing, such as multiple units or component can combine or Another system is desirably integrated into, or some features can be ignored, or do not perform.It is another, it is shown or discussed it is mutual it Between coupling or direct-coupling or communication connection can be the INDIRECT COUPLING or communication link of unit or module by some interfaces Connect, can be electrical or other forms.
The unit illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list Member can both be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
Described above is only the preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications also should It is considered as protection scope of the present invention.

Claims (14)

1. a kind of method for recording of voice data, it is characterised in that including:
Record command is received in application is recorded, wherein, the record command is used for the audio number for indicating to export intended application According to being recorded;
Whether first function embedded in target process according to record command detection, wherein, the first function is used for The entry address of second function is indicated, the second function is at least used to indicate that record the intended application is entered by the target Journey is output to the voice data of audio output interface;
In the case where detecting the first function, the entry address of the second function is obtained, to perform described the Two functions, record the voice data for being output to the audio output interface.
2. according to the method described in claim 1, it is characterised in that be in target process according to record command detection It is no embedded in first function after, in addition to:
In the case where being not detected by the first function, the embedded dynamic link library in the target process, wherein, it is described dynamic State chained library includes the first function;
The first function is performed to indicate the entry address of the second function.
3. method according to claim 2, it is characterised in that perform 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 voice data is output to the audio output interface;
The first function is performed, the entry address of the predetermined interface function is replaced with to enter described in the second function Port address.
4. according to the method described in claim 1, it is characterised in that perform the second function, recording is output to the audio The voice data of output interface includes:
In the internal memory that the voice data is written to the target process, to record the voice data, wherein, it is described to record Using with the access rights for accessing the internal memory.
5. method according to claim 4, it is characterised in that the voice data is being written to the target process During in internal memory, in addition to:
The voice data is output to the audio output interface.
6. according to the method described in claim 1, it is characterised in that be output to the sound of the audio output interface in recording During frequency evidence, in addition to:
Receive pause record command;
The pause record command is responded, the voice data is written in the internal memory of the target process by stopping.
7. according to the method described in claim 1, it is characterised in that before receiving record command in the recording application, bag Include:
Configuration information is obtained, wherein, the configuration information is used to indicate to allow in the recording application to the intended application The voice data of output is recorded.
8. a kind of record device of voice data, it is characterised in that including:
First receiving unit, for receiving record command in application is recorded, wherein, the record command is used to indicate to target Recorded using the voice data of output;
Detection unit, for whether embedded in first function in target process according to record command detection, wherein, it is described First function is used for the entry address for indicating second function, and the second function is at least used to indicate that recording the intended application leads to Cross the voice data that the target process is output to audio output interface;
First execution unit, in the case where detecting the first function, obtaining the entrance of the second function Address, to perform the second function, records the voice data for being output to the audio output interface.
9. device according to claim 8, it is characterised in that described device also includes:
Embedded unit, for after it whether embedded in first function in target process according to record command detection, In the case of being not detected by the first function, the embedded dynamic link library in the target process, wherein, the dynamic link Storehouse includes the first function;
Second execution unit, for performing the first function to indicate the entry address of the second function.
10. device according to claim 9, it is characterised in that second execution unit includes:
Searching modul, the entry address for searching predetermined interface function in the target process, wherein, the predetermined interface Function is used to indicate the voice data being output to the audio output interface;
Performing module, for performing the first function, described is replaced with by the entry address of the predetermined interface function The entry address of two functions.
11. device according to claim 8, it is characterised in that first execution unit includes:
Writing module, for the voice data to be written in the internal memory of the target process, to record the voice data, Wherein, it is described to record application with the access rights for accessing the internal memory.
12. device according to claim 11, it is characterised in that first execution unit also includes:
Output module, for during the voice data is written in the internal memory of the target process, by the sound Frequency evidence is output to the audio output interface.
13. device according to claim 8, it is characterised in that described device also includes:
Second receiving unit, during being output to the voice data of the audio output interface in recording, is received Suspend record command;
Stop element, for responding the pause record command, the voice data is written to the target process by stopping In internal memory.
14. device according to claim 8, it is characterised in that described device includes:
Acquiring unit, for before receiving record command in the recording application, obtaining configuration information, wherein, the configuration Information is used to indicate to allow to record the voice data that the intended application is exported in the recording application.
CN201710309950.6A 2017-05-04 2017-05-04 The method for recording and device of audio data Active CN107195314B (en)

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 true CN107195314A (en) 2017-09-22
CN107195314B 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)

Cited By (3)

* Cited by examiner, † Cited by third party
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
CN113365139A (en) * 2020-03-03 2021-09-07 腾讯科技(深圳)有限公司 Video recording method and device based on iOS system and storage medium
CN113889154A (en) * 2021-09-30 2022-01-04 广州维梦科技有限公司 Sound recording method, terminal and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
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
CN106297842A (en) * 2016-08-15 2017-01-04 乐视控股(北京)有限公司 A kind of audio frequency intercept method and device
CN106328174A (en) * 2016-08-29 2017-01-11 天脉聚源(北京)传媒科技有限公司 Method and device for processing recording data

Patent Citations (7)

* Cited by examiner, † Cited by third party
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
CN106297842A (en) * 2016-08-15 2017-01-04 乐视控股(北京)有限公司 A kind of audio frequency intercept method and device
CN106328174A (en) * 2016-08-29 2017-01-11 天脉聚源(北京)传媒科技有限公司 Method and device for processing recording data

Cited By (5)

* Cited by examiner, † Cited by third party
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
CN113365139A (en) * 2020-03-03 2021-09-07 腾讯科技(深圳)有限公司 Video recording method and device based on iOS system and storage medium
CN113365139B (en) * 2020-03-03 2023-05-02 腾讯科技(深圳)有限公司 Video recording method and device based on iOS system and storage medium
CN113889154A (en) * 2021-09-30 2022-01-04 广州维梦科技有限公司 Sound recording method, terminal and storage medium
CN113889154B (en) * 2021-09-30 2024-03-19 广州维梦科技有限公司 Sound recording method, terminal and storage medium

Also Published As

Publication number Publication date
CN107195314B (en) 2018-07-24

Similar Documents

Publication Publication Date Title
CN102385456B (en) Syncretic touch contact distinguishing method
CN106973384B (en) A kind of Wireless Fidelity Wi-Fi connection method and mobile terminal
US8170603B2 (en) Differentiated access to a data item store
CN107610695A (en) Driver's voice wakes up the dynamic adjusting method of instruction word weight
KR20100107451A (en) Real-time annotator
CN107195314B (en) The method for recording and device of audio data
CN107888978A (en) KEY codes method for burn-recording, device and computer-readable recording medium
CN105635519B (en) Method for processing video frequency, apparatus and system
CN108702413A (en) A kind of input method and device of identifying code
CN108200008A (en) The recognition methods and device that abnormal data accesses
US20090118015A1 (en) Solution for enhancing the user experience of an electronic game by making user-created game data available in context during gameplay
CN106951521A (en) The reading/writing method of journal file, apparatus and system
CN107346397A (en) Information processing method and related product
CN109089231A (en) Retransmission method, device, server and the medium of identifying code short message
CN110471738A (en) Method for switching theme, device, electronic equipment and the storage medium of application program
CN109582882A (en) Search result shows method, apparatus and electronic equipment
CN106155458A (en) A kind of Multimedia Message player method and device
CN106815042A (en) The dynamic loading method of refresh page, device and electronic equipment
CN106210285A (en) A kind of recording method of controlling security, device and equipment
CN103685349A (en) Method for information processing and electronic equipment
CN106471493A (en) Method and apparatus for managing data
US20240042330A1 (en) Game performance prediction from real-world performance data
CN106506325A (en) Picture sharing method and device
CN108196746A (en) A kind of document presentation method and terminal, storage medium
CN107291385A (en) A kind of method and terminal of data write-in

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