CN109378017A - A kind of way of recording, device, audio system, sound pick-up outfit and storage medium - Google Patents

A kind of way of recording, device, audio system, sound pick-up outfit and storage medium Download PDF

Info

Publication number
CN109378017A
CN109378017A CN201811124626.8A CN201811124626A CN109378017A CN 109378017 A CN109378017 A CN 109378017A CN 201811124626 A CN201811124626 A CN 201811124626A CN 109378017 A CN109378017 A CN 109378017A
Authority
CN
China
Prior art keywords
audio
interface
way
recording
frequency data
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
CN201811124626.8A
Other languages
Chinese (zh)
Other versions
CN109378017B (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.)
iFlytek Co Ltd
Original Assignee
iFlytek 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 iFlytek Co Ltd filed Critical iFlytek Co Ltd
Priority to CN201811124626.8A priority Critical patent/CN109378017B/en
Publication of CN109378017A publication Critical patent/CN109378017A/en
Application granted granted Critical
Publication of CN109378017B publication Critical patent/CN109378017B/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
    • 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
    • G11B27/00Editing; Indexing; Addressing; Timing or synchronising; Monitoring; Measuring tape travel
    • G11B27/02Editing, e.g. varying the order of information signals recorded on, or reproduced from, record carriers
    • G11B27/031Electronic editing of digitised analogue information signals, e.g. audio or video signals
    • 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
    • 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/1062Data buffering arrangements, e.g. recording or playback buffers

Abstract

This application provides a kind of way of recording, device, audio system, equipment and storage medium, the way of recording is applied to the audio hardware abstract module in audio system based on android system, and method includes: acquisition multi-path audio-frequency data;Multi-path audio-frequency data is saved into the first buffer pool;When the first recording application requests multi-path audio-frequency data by first interface, multi-path audio-frequency data in the first buffer pool is transmitted to the first recording application by first interface, first interface is the interface for being used for transmission at least two-way audio signal.The application can realize the input of the above microphone audio of two-way by Android system, can be suitable for the application scenarios using microphone array acquisition audio data.

Description

A kind of way of recording, device, audio system, sound pick-up outfit and storage medium
Technical field
This application involves field of artificial intelligence more particularly to a kind of way of recording, device, audio system, recording to set Standby and storage medium.
Background technique
Android system is as a operating system, in current complicated application, because of opening and the height of its height Customizability plays increasingly important role in artificial intelligence field.Current Android system could support up two-way Mike The input of wind audio, and in certain application scenarios (such as noise reduction, echo cancellor, auditory localization), it usually needs use Mike Wind array acquires audio data, this requires realizing the input of the two-way above microphone audio by Android system, therefore, such as What by Android system realization the above microphone audio of two-way input be instantly urgent need to resolve the problem of.
Summary of the invention
In view of this, being used this application provides a kind of way of recording, device, audio system, sound pick-up outfit and storage medium To realize that the above microphone audio of two-way inputs by Android system, its technical solution is as follows:
A kind of way of recording, applied to the audio hardware abstract module in audio system based on android system, the side Method includes:
Obtain multi-path audio-frequency data;
The multi-path audio-frequency data is saved into the first buffer pool;
When the first recording application requests multi-path audio-frequency data by first interface, described in first buffer pool Multi-path audio-frequency data is transmitted to first recording application by the first interface, wherein the first interface is for passing Transport to the interface of few two-way audio signal.
The way of recording further include:
By in the multi-path audio-frequency data all the way or two-way audio data are saved into the second buffer pool;
It, will be in second buffer pool when the second recording application is requested all the way or when two-way audio data by second interface All the way or two-way audio data by the second interface are transmitted to second recording application, wherein the second interface For the interface for being used for transmission most two-way audio signals.
The way of recording further include:
When any buffer pool in first buffer pool, second buffer pool is filled up by audio data, with wait protect It deposits audio data and covers the audio data saved earliest in the buffer pool.
Wherein, the acquisition multi-path audio-frequency data, comprising:
When Android system starting, starting recording thread;
The multi-path audio-frequency data is obtained from the audio driver module in the audio system by the recording thread.
The way of recording further include:
When Android system starting, start communication service module corresponding with the first interface;
The multi-path audio-frequency data by first buffer pool is transmitted to described by the first interface One recording application, comprising:
After first recording application establishes connection by first interface and the communication service module, by being based on institute The communication channel that first interface and the communication service module are established is stated, the multi-path audio-frequency data is transmitted to first record Sound application.
A kind of recording device is abstracted mould applied to the audio hardware in the audio system of smart machine based on android system Block, comprising: obtain module, the first cache module and the first transmission module;
The acquisition module, for obtaining multi-path audio-frequency data;
First cache module, for saving the multi-path audio-frequency data into the first buffer pool;
First transmission module is used for when the first recording application requests multi-path audio-frequency data by first interface, will The multi-path audio-frequency data in first buffer pool is transmitted to first recording application by the first interface, In, the first interface is the interface for being used for transmission at least two-way audio signal.
The recording device further include: the second cache module and the second transmission module;
Second cache module, for by the multi-path audio-frequency data all the way or two-way audio data are saved to In two buffer pools;
Second transmission module, for when the second recording application by second interface request all the way or two-way audio data When, by second buffer pool all the way or two-way audio data by the second interface be transmitted to it is described second recording answer With, wherein the second interface is the interface for being used for transmission most two-way audio signals.
A kind of audio system of smart machine based on android system, includes at least: audio hardware abstract module, audio are driven Dynamic model block and multiple analog-to-digital conversion modules, wherein the audio hardware abstract module is provided with the first buffer pool, and each modulus turns Change the mold the corresponding microphone of block;
The analog-to-digital conversion module, for obtaining the analog audio signal of corresponding microphone acquisition, by the analogue audio frequency Signal is converted to digital audio and video signals;
The audio driver module, for obtaining the multi-path audio-frequency data of the multiple analog-to-digital conversion module output;
The audio hardware abstract module, for obtaining the multi-path audio-frequency data from the audio driver module, by institute Multi-path audio-frequency data is stated to save into the first buffer pool;And when the first recording application requests MCVF multichannel voice frequency by first interface When data, the multi-path audio-frequency data in first buffer pool is transmitted to first recording by the first interface Using, wherein the first interface is used for transmission at least two-way audio signal.
Wherein, the audio hardware abstract module is additionally provided with the second buffer pool;
The audio hardware abstract module, be also used to by the multi-path audio-frequency data all the way or two-way audio data protect It deposits into the second buffer pool;And when the second recording application is requested by second interface all the way or when two-way audio data, by institute State in the second buffer pool all the way or two-way audio data by the second interface are transmitted to second recording application, In, the second interface is used for transmission most two-way audio signals.
Wherein, the audio hardware abstract module is specifically used in Android system starting, starting recording thread, The multi-path audio-frequency data is obtained from the audio driver module by the recording thread.
Wherein, the audio system is provided with communication service module corresponding with the first interface;
The audio hardware abstract module is specifically used for starting the communication service mould in Android system starting Block, after first recording application establishes connection by the first interface and the communication service module, by being based on institute The multi-path audio-frequency data is transmitted to first recording and answered by the communication channel for stating first interface and communication service foundation With.
A kind of sound pick-up outfit, comprising: memory and processor;
The memory, for storing program;
The processor, for executing described program, described program is specifically used for:
Obtain multi-path audio-frequency data;
The multi-path audio-frequency data is saved into the first buffer pool;
When the first recording application requests multi-path audio-frequency data by first interface, described in first buffer pool Multi-path audio-frequency data is transmitted to first recording application by the first interface, wherein the first interface is for passing Transport to the interface of few two-way audio signal.
A kind of readable storage medium storing program for executing is stored thereon with computer program, real when the computer program is executed by processor Each step of the existing way of recording.
It can be seen via above technical scheme that the way of recording provided by the present application, device, audio system, sound pick-up outfit and Storage medium is arranged after getting multipath audio signal by saving multipath audio signal to audio hardware abstract module The first buffer pool in so that when the first recording application by be arranged be used for transmission multi-path audio-frequency data first interface request When multi-path audio-frequency data, audio hardware abstract module can obtain multipath audio signal from the first buffer pool, and pass through first Multipath audio signal is transmitted to the first recording application by interface, it can be seen that, the application can by Android system realize two-way with The input of upper microphone audio data, so as to be suitable for the application scenarios using microphone array acquisition audio data.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The embodiment of application for those of ordinary skill in the art without creative efforts, can also basis The attached drawing of offer obtains other attached drawings.
Fig. 1 is the structural schematic diagram of audio system based on android system in the prior art;
Fig. 2 is the structural schematic diagram of audio system based on android system provided by the embodiments of the present application;
Fig. 3 is a flow diagram of the way of recording provided by the embodiments of the present application;
Fig. 4 is another flow diagram of the way of recording provided by the embodiments of the present application;
Fig. 5 is the structural schematic diagram of recording device provided by the embodiments of the present application;
Fig. 6 is the structural schematic diagram of sound pick-up outfit provided by the embodiments of the present application.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on Embodiment in the application, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall in the protection scope of this application.
Referring to Fig. 1, the structural schematic diagram of existing audio system based on android system is shown, the audio system packet Include analog-to-digital conversion module 101, audio driver module 102, audio hardware abstract module 103, audio frame module 104.Based on Fig. 1 The scheme that audio system realizes recording is shown are as follows:
Analog-digital converter 101 obtain microphone acquisition single channel or two-way analog audio signal, the single channel that will acquire or Two-way analog audio signal is converted to digital audio and video signals, and single channel or two-way digital audio and video signals are transmitted to audio driven mould Required audio format is first passed through Android mark when recording application 100 requests audio data by Android standard interface by block 102 Quasi- interface is transferred to audio hardware abstract module 103, and audio hardware abstract module 103 obtains single from audio driver module 102 Road or two-way digital audio-frequency data, the audio data that will acquire is converted to format required for recording application, then format is converted Audio data afterwards is transferred to recording application 100 by Android standard interface.It should be noted that in recording, audio hardware Abstract module 103 calls Android standard interface, so that audio frame module 104 executes recording behaviour by the Android standard interface Make.
Since Android system is mainly used in mobile terminal such as mobile phone, tablet computer etc. at present, and mobile phone, tablet computer etc. Microphone be one or two, therefore, current Android system could support up the input of two-way audio data, and can not support The input of the above audio data of two-way.
In order to realize the input to the above audio data of two-way, the embodiment of the present application provides a kind of based on android system Audio system, referring to Fig. 2, showing the structural schematic diagram of the audio system, which may include: that multiple moduluses turn Change the mold block 201, audio driver module 202, audio hardware abstract module 203, communication service module 204 and audio frame module 205, wherein audio hardware abstract module 203 is provided with the first buffer pool, the corresponding microphone of each analog-to-digital conversion module 201.
Analog-to-digital conversion module 201 turns analog audio signal for obtaining the analog audio signal of corresponding microphone acquisition It is changed to digital audio and video signals.
Audio driver module 202, the multi-path audio-frequency data exported for obtaining multiple analog-to-digital conversion modules 203.
Audio hardware abstract module 203, for obtaining multi-path audio-frequency data from audio driver module 202, by MCVF multichannel voice frequency Data are saved into the first buffer pool, when the first recording application 206 requests multi-path audio-frequency data by first interface, by first Multi-path audio-frequency data in buffer pool is transferred to the first recording application 206 by first interface.
Wherein, the first recording application 206 can be the record dedicated for obtaining the multichannel especially above audio data of two-way Sound application, first interface are the interface for being used for transmission at least two-way audio data that the application is specially arranged.
It should be noted that the first recording application 206 is when requesting multi-path audio-frequency data, first by the sound of required audio data Frequency format is sent to audio hardware abstract module 203 by first interface, and audio hardware abstract module 203 is from the first buffer pool Obtain multi-path audio-frequency data, audio lattice needed for the format for the multi-path audio-frequency data that will acquire is converted to the first recording application 206 Then multi-path audio-frequency data after formatting is transmitted to the first recording application 206 by first interface by formula.
In this application, when Android system starts, the starting recording of audio hardware abstract module 203 starts the same of recording When, starting recording thread constantly obtains audio data from audio driver module 202.
In addition, starting communication service module 204, while the starting recording of audio hardware abstract module 203 to wait first Recording application requests multi-path audio-frequency data.Audio hardware abstract module 203 requests to connect in the first recording application by first interface It connects, and after establishing connection with communication service module 204, it is logical by the communication based on first interface and communication service module foundation Multi-path audio-frequency data is transmitted to the first recording application by road.In one possible implementation, first interface can be local Socket LocalSocket, communication service module 204 can be local socket LocalSocket service module.
It should be noted that in the prior art in order to realize the input of multi-path audio-frequency data, in the base of existing audio system On plinth, a transfer application is set, transfer, which is applied, to be obtained multi-path audio-frequency data by Android standard interface and cache, when for obtaining When the recording application of MCVF multichannel voice frequency requests multi-path audio-frequency data, audio format is transferred to by transfer by the privately owned interface of setting and is answered With transfer applies the multi-path audio-frequency data after converting format by privately owned interface to be transmitted to and is used to obtain multi-path audio-frequency data Recording application.Inventor has found that, due to the exclusivity for resource of recording, transfer application occupies during realizing the invention When recording, for obtain all the way or the recording application of two-way audio can not by Android standard interface obtain audio data.
In view of existing scheme there are the problem of, it is existing for obtaining all the way or the recording of two-way audio data in order to make It is independent of each other using when obtaining audio data at the same time with the recording application for obtaining MCVF multichannel voice frequency, in this application, audio Hardware abstraction layer 203 is also provided with the second buffer pool, the second buffer pool be used to cache in multi-path audio-frequency data all the way or two Road audio data.
Specifically, audio hardware abstract module 203 is after getting multi-path audio-frequency data from audio driver module 202, one Aspect saves multi-path audio-frequency data into the first buffer pool, on the other hand, obtains from multi-path audio-frequency data all the way or two-way Audio data is saved into the second buffer pool.
When the second recording application requests audio data by second interface, audio hardware abstract module 201 delays second Rush in pond all the way or two-way audio data by second interface are transmitted to the second recording application.Wherein, the second recording application is For obtaining all the way or the application of two-way audio data, second interface are the interface for being used for transmission most two-way audio signals, It can be existing Android standard interface.
In audio system based on android system provided by the present application, audio hardware abstract module is getting MCVF multichannel voice frequency When signal, on the one hand multi-path audio-frequency data is saved into the first buffer pool, on the other hand, by multi-path audio-frequency data all the way Or two-way audio data are saved into the second buffer pool, this makes, when the first recording application requests multichannel sound by first interface Frequency according to when, audio hardware abstract module can obtain multi-path audio-frequency data from the first buffer pool, and by multi-path audio-frequency data It is transmitted to the first recording application by first interface, when the second recording application is requested all the way or two-way audio number by second interface According to when, audio hardware abstract module can obtain all the way or two-way audio data from the second buffer pool, and will all the way or two-way Audio data is transmitted to the second recording application by second interface.It can be seen that audio system provided by the embodiments of the present application is not But the input of the above audio data of two-way may be implemented, moreover, because multi-path audio-frequency data with all the way or two-way audio data protect There are the audio datas in different buffer pools, and in two buffer pools by different interface transmission, and therefore, the first recording is answered It is independent of each other with when obtaining audio data simultaneously with the second recording application.
The embodiment of the present application also provides a kind of way of recording, which is applied to audio system based on android system Audio hardware abstract module in system, audio hardware abstract module are provided with the first buffer pool, referring to Fig. 3, showing the record The flow diagram of sound method, this method may include:
Step S301: multi-path audio-frequency data is obtained.
Specifically, multi-path audio-frequency data is obtained from the audio driver module in audio system, multi-path audio-frequency data is by more A microphone acquire and converted by analog-digital converter after audio data.
In this application, when Android system starts, recording thread can be started, by recording thread from audio driver module Obtain recording data.
Step S302: multi-path audio-frequency data is saved into the first buffer pool.
When saving multi-path audio-frequency data to the first buffer pool, if filling up audio data in the first buffer pool, with to It saves audio data and covers the data saved earliest in the first buffer pool.
Step S303:, will be in the first buffer pool when the first recording application requests multi-path audio-frequency data by first interface Multi-path audio-frequency data the first recording application is transmitted to by first interface.
Wherein, the first recording application can be dedicated for obtaining the recording of the multichannel especially above audio data of two-way and answering With first interface is the interface for being used for transmission at least two-way audio data that the application is specially arranged.
In the present embodiment, when Android system starts, communication service module can be started, to wait the first recording application to ask Multi-path audio-frequency data is sought, requests to connect by first interface in the first recording application, and after establishing connection with communication service module, By the communication channel based on first interface and communication service module foundation, multi-path audio-frequency data is transmitted to the first recording and is answered With.In one possible implementation, first interface can be for local socket LocalSocket, communication service module Local socket LocalSocket service module.
Include: by the process that first interface is transmitted to the first recording application by the multi-path audio-frequency data in the first buffer pool Multi-path audio-frequency data is obtained from the first buffer pool, the format for the multi-path audio-frequency data that will acquire is converted to the first recording application institute The audio format needed, is then transmitted to the first recording by first interface for the multi-path audio-frequency data after formatting and answers With.
The way of recording provided by the embodiments of the present application, after getting multipath audio signal, by by multipath audio signal It saves in the first buffer pool being arranged to audio hardware abstract module, so that when the first recording application is used for transmission by what is be arranged When the first interface of multi-path audio-frequency data requests multi-path audio-frequency data, audio hardware abstract module can be obtained from the first buffer pool Multipath audio signal is taken, and multipath audio signal is transmitted to by the first recording application by first interface, it can be seen that, the application The way of recording that embodiment provides can realize the input of the above microphone audio data of two-way by Android system.
It is obtained all the way or the recording application of two-way audio data is answered with being used to obtain the recording of MCVF multichannel voice frequency to be used in It is independent of each other with when obtaining audio data at the same time, the embodiment of the present application provides another way of recording, referring to Fig. 4, showing The flow diagram of the way of recording, this method may include:
Step S401: multi-path audio-frequency data is obtained.
When Android system starting, starting recording thread, by recording thread from the audio driver module in audio system Obtain multi-path audio-frequency data.
Step S402: multi-path audio-frequency data is saved into the first buffer pool, by multi-path audio-frequency data all the way or two Road audio data is saved into the second buffer pool.
When any buffer pool in the first buffer pool, the second buffer pool is filled up by audio data, with audio number to be saved According to the audio data saved earliest in the covering buffer pool.
Step S403a:, will be in the first buffer pool when the first recording application requests multi-path audio-frequency data by first interface Multi-path audio-frequency data the first recording application is transmitted to by first interface.
Wherein, the first recording application can be dedicated for obtaining the recording of the multichannel especially above audio data of two-way and answering With first interface is the interface for being used for transmission at least two-way audio data that the application is specially arranged.
Step S403b: when the second recording application requests to delay all the way or when two-way audio data by second by second interface Rush in pond all the way or two-way audio data by second interface are transmitted to the second recording application.
Wherein, the second recording application is acquisition all the way or the application of two-way audio data, second interface are to be used for transmission most The interface of more two-way audio signals can be existing Android standard interface.
The way of recording provided by the present application makes, and audio hardware abstract module is when getting multipath audio signal, a side Face saves multi-path audio-frequency data into the first buffer pool, on the other hand, by multi-path audio-frequency data all the way or two-way audio Data are saved into the second buffer pool, this makes, when the first recording application requests multi-path audio-frequency data by first interface, energy It is enough that multi-path audio-frequency data is obtained from the first buffer pool, and multi-path audio-frequency data is transmitted to the first recording by first interface and is answered With when the second recording application requests to obtain from the second buffer pool all the way or when two-way audio data by second interface It all the way or two-way audio data, and will all the way or two-way audio data by second interface are transmitted to the second recording application.Thus As it can be seen that the input of the above audio data of two-way not only may be implemented in audio system provided by the present application, moreover, because MCVF multichannel voice frequency Data are from all the way or two-way audio data are placed in different buffer pools, and therefore, the first recording application and the second recording application are same When obtain audio data when be independent of each other.
The embodiment of the present application also provides a kind of recording device, which is applied to audio system based on android system Audio hardware abstract module in system, audio hardware abstract module are provided with the first buffer pool, referring to Fig. 5, showing the dress The structural schematic diagram set may include: to obtain module 501, the first cache module 502 and the first transmission module 503.
Module 501 is obtained, for obtaining multi-path audio-frequency data.
First cache module 502, for saving multi-path audio-frequency data into the first buffer pool.
First transmission module 503 is used for when the first recording application requests multi-path audio-frequency data by first interface, by institute The multi-path audio-frequency data stated in the first buffer pool is transmitted to first recording application by the first interface.
Wherein, first interface is the interface for being used for transmission at least two-way audio signal.
Recording device provided by the present application is set after getting multipath audio signal by the way that multipath audio signal to be placed on In the first buffer pool set, so that when the first recording application is asked by the first interface for being used for transmission multi-path audio-frequency data of setting When seeking multi-path audio-frequency data, multipath audio signal can be obtained from the first buffer pool, and passes through first interface for MCVF multichannel voice frequency Signal is transmitted to the first recording application, it can be seen that, the application can realize the defeated of the above audio data of two-way by Android system Enter.
It is obtained all the way or the recording application of two-way audio data is answered with being used to obtain the recording of MCVF multichannel voice frequency to be used in It is independent of each other with when obtaining audio data at the same time, recording device provided by the above embodiment can also include: the second caching mould Block and the second transmission module.
Second cache module, for by the multi-path audio-frequency data all the way or two-way audio data are saved to In two buffer pools.
Second transmission module, for when the second recording application by second interface request all the way or two-way audio data When, by second buffer pool all the way or two-way audio data by the second interface be transmitted to it is described second recording answer With.
Wherein, the second interface is the interface for being used for transmission most two-way audio signals.
In recording device provided by the above embodiment, the first cache module delays saving multi-path audio-frequency data to first When rushing pond, if the first buffer pool is filled up by audio data, with audio data covering the first buffering to be saved to the buffer pool The audio data saved earliest in pond.
Similarly, the second cache module, by the multi-path audio-frequency data all the way or two-way audio data save to When the second buffer pool, if the second buffer pool is filled up by audio data, covered in the second buffer pool most with audio data to be saved The audio data early saved.
In recording device provided by the above embodiment, module is obtained, is specifically used for the starting when Android system starting Recording thread obtains the multi-path audio-frequency data from the audio driver module in the audio system by the recording thread.
In recording device provided by the above embodiment, the first transmission module is specifically used for logical in first recording application It crosses after first interface establishes connection with corresponding communication service module, by being based on the first interface and the communication service mould The communication channel that block is established, is transmitted to first recording application for the multi-path audio-frequency data.
The embodiment of the invention also provides a kind of sound pick-up outfits, referring to Fig. 6, the structural schematic diagram of the equipment is shown, The equipment may include: memory 601 and processor 602.
Memory 601, for storing program;
Processor 602, for executing described program, described program is specifically used for:
Obtain multi-path audio-frequency data;
The multi-path audio-frequency data is saved into the first buffer pool;
When the first recording application requests multi-path audio-frequency data by first interface, described in first buffer pool Multi-path audio-frequency data is transmitted to first recording application by the first interface, wherein the first interface is for passing Transport to the interface of few two-way audio signal.
Sound pick-up outfit can also include: bus, communication interface 603, input equipment 604 and output equipment 606.
Processor 602, memory 601, communication interface 603, input equipment 604 and output equipment 606 are mutual by bus Connection.Wherein:
Bus may include an access, transmit information between computer system all parts.
Processor 602 can be general processor, such as general central processor (CPU), microprocessor etc., be also possible to Application-specific integrated circuit (application-specific integrated circuit, ASIC), or one or more use In the integrated circuit that control the present invention program program executes.It can also be digital signal processor (DSP), specific integrated circuit (ASIC), ready-made programmable gate array (FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components.
Processor 602 may include primary processor, may also include baseband chip, modem etc..
The program for executing technical solution of the present invention is preserved in memory 601, can also preserve operating system and other Key business.Specifically, program may include program code, and program code includes computer operation instruction.More specifically, it stores Device 601 may include read-only memory (read-only memory, ROM), the other types that can store static information and instruction Static storage device, random access memory (random access memory, RAM), can store information and instruction its The dynamic memory of his type, magnetic disk storage, flash etc..
Input equipment 604 may include receive user input data and information device, such as keyboard, mouse, camera, Scanner, light pen, speech input device, touch screen, pedometer or gravity sensor etc..
Output equipment 606 may include allowing output information to the device, such as display screen, loudspeaker etc. of user.
Communication interface 603 may include using the device of any transceiver one kind, so as to logical with other equipment or communication network Letter, such as Ethernet, wireless access network (RAN), WLAN (WLAN) etc..
Processor 602 executes the program stored in memory 601, and calls other equipment, can be used for realizing this Shen Please the way of recording provided by embodiment each step.
Present invention also provides a kind of readable storage medium storing program for executing, are stored thereon with computer program, the computer program quilt When processor executes, each step of the way of recording of above-described embodiment is realized.
It should be noted that each embodiment in this specification is described in a progressive manner, each embodiment emphasis is said Bright is the difference from other embodiments, and the same or similar parts in each embodiment may refer to each other.
Herein, relational terms such as first and second and the like be used merely to by an entity or operation with it is another One entity or operation distinguish, and without necessarily requiring or implying between these entities or operation, there are any this reality Relationship or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to the packet of nonexcludability Contain, so that the process, method, article or equipment for including a series of elements not only includes those elements, but also including Other elements that are not explicitly listed, or further include for elements inherent to such a process, method, article, or device. In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including the element Process, method, article or equipment in there is also other identical elements.
The foregoing description of the disclosed embodiments makes professional and technical personnel in the field can be realized or use the application. Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the application.Therefore, the application It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one The widest scope of cause.

Claims (13)

1. a kind of way of recording, which is characterized in that be abstracted mould applied to the audio hardware in audio system based on android system Block, which comprises
Obtain multi-path audio-frequency data;
The multi-path audio-frequency data is saved into the first buffer pool;
When the first recording application requests multi-path audio-frequency data by first interface, by the multichannel in first buffer pool Audio data is transmitted to first recording application by the first interface, wherein the first interface be used for transmission to The interface of few two-way audio signal.
2. the way of recording according to claim 1, which is characterized in that further include:
By in the multi-path audio-frequency data all the way or two-way audio data are saved into the second buffer pool;
When the second recording application is requested by second interface all the way or when two-way audio data, by one in second buffer pool Road or two-way audio data are transmitted to second recording application by the second interface, wherein the second interface is to use In the interface for transmitting most two-way audio signals.
3. the way of recording according to claim 2, which is characterized in that further include:
When any buffer pool in first buffer pool, second buffer pool is filled up by audio data, with sound to be saved The audio data saved earliest in the frequency data cover buffer pool.
4. the way of recording according to claim 1 or 2, which is characterized in that the acquisition multi-path audio-frequency data, comprising:
When Android system starting, starting recording thread;
The multi-path audio-frequency data is obtained from the audio driver module in the audio system by the recording thread.
5. the way of recording according to claim 1 or 2, which is characterized in that the method also includes: when the Android system When starting, start communication service module corresponding with the first interface;
The multi-path audio-frequency data by first buffer pool is transmitted to first record by the first interface Sound application, comprising:
After first recording application establishes connection by first interface and the communication service module, by based on described the The multi-path audio-frequency data is transmitted to first recording and answered by the communication channel that one interface and the communication service module are established With.
6. a kind of recording device, which is characterized in that applied to the audio in the audio system of smart machine based on android system Hardware abstraction layer, comprising: obtain module, the first cache module and the first transmission module;
The acquisition module, for obtaining multi-path audio-frequency data;
First cache module, for saving the multi-path audio-frequency data into the first buffer pool;
First transmission module is used for when the first recording application requests multi-path audio-frequency data by first interface, will be described The multi-path audio-frequency data in first buffer pool is transmitted to first recording application by the first interface, wherein institute Stating first interface is the interface for being used for transmission at least two-way audio signal.
7. recording device according to claim 6, which is characterized in that further include: the second cache module and the second transmission mould Block;
Second cache module, for by the multi-path audio-frequency data all the way or two-way audio data save to second and delay It rushes in pond;
Second transmission module, for when the second recording application is by second interface request all the way or when two-way audio data, By in second buffer pool all the way or two-way audio data by the second interface are transmitted to second recording application, Wherein, the second interface is the interface for being used for transmission most two-way audio signals.
8. a kind of audio system of smart machine based on android system, which is characterized in that include at least: audio hardware is abstracted mould Block, audio driver module and multiple analog-to-digital conversion modules, wherein the audio hardware abstract module is provided with the first buffer pool, The corresponding microphone of each analog-to-digital conversion module;
The analog-to-digital conversion module, for obtaining the analog audio signal of corresponding microphone acquisition, by the analog audio signal Be converted to digital audio and video signals;
The audio driver module, for obtaining the multi-path audio-frequency data of the multiple analog-to-digital conversion module output;
The audio hardware abstract module will be described more for obtaining the multi-path audio-frequency data from the audio driver module Road audio data is saved into the first buffer pool;And when the first recording application requests multi-path audio-frequency data by first interface When, the multi-path audio-frequency data in first buffer pool is transmitted to first recording by the first interface and is answered With, wherein the first interface is used for transmission at least two-way audio signal.
9. audio system according to claim 8, which is characterized in that the audio hardware abstract module is additionally provided with second Buffer pool;
The audio hardware abstract module, be also used to by the multi-path audio-frequency data all the way or two-way audio data save to In second buffer pool;And when the second recording application is requested all the way or when two-way audio data by second interface, by described the In two buffer pools all the way or two-way audio data by the second interface are transmitted to second recording application, wherein institute It states second interface and is used for transmission most two-way audio signals.
10. audio system according to claim 8 or claim 9, which is characterized in that the audio hardware abstract module, it is specific to use In in Android system starting, starting recording thread obtains institute from the audio driver module by the recording thread State multi-path audio-frequency data.
11. audio system according to claim 8 or claim 9, which is characterized in that the audio system is provided with and described first The corresponding communication service module of interface;
The audio hardware abstract module is specifically used for starting the communication service module in Android system starting, when After first recording application establishes connection by the first interface and the communication service module, by being based on described first The communication channel that interface and the communication service are established, is transmitted to first recording application for the multi-path audio-frequency data.
12. a kind of sound pick-up outfit characterized by comprising memory and processor;
The memory, for storing program;
The processor, for executing described program, described program is specifically used for:
Obtain multi-path audio-frequency data;
The multi-path audio-frequency data is saved into the first buffer pool;
When the first recording application requests multi-path audio-frequency data by first interface, by the multichannel in first buffer pool Audio data is transmitted to first recording application by the first interface, wherein the first interface be used for transmission to The interface of few two-way audio signal.
13. a kind of readable storage medium storing program for executing, is stored thereon with computer program, which is characterized in that the computer program is processed When device executes, each step such as the way of recording according to any one of claims 1 to 5 is realized.
CN201811124626.8A 2018-09-26 2018-09-26 Recording method, recording device, audio system, recording equipment and storage medium Active CN109378017B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811124626.8A CN109378017B (en) 2018-09-26 2018-09-26 Recording method, recording device, audio system, recording equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811124626.8A CN109378017B (en) 2018-09-26 2018-09-26 Recording method, recording device, audio system, recording equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109378017A true CN109378017A (en) 2019-02-22
CN109378017B CN109378017B (en) 2021-05-04

Family

ID=65402030

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811124626.8A Active CN109378017B (en) 2018-09-26 2018-09-26 Recording method, recording device, audio system, recording equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109378017B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110085268A (en) * 2019-05-10 2019-08-02 深圳市智微智能科技开发有限公司 Method, system, advertisement machine and the storage medium that the double MIC of Android advertisement machine switch in real time
CN110113493A (en) * 2019-05-06 2019-08-09 Oppo广东移动通信有限公司 More wheat ways of recording and Related product
CN111506291A (en) * 2020-03-05 2020-08-07 北京声智科技有限公司 Audio data acquisition method and device, computer equipment and storage medium
CN112071338A (en) * 2019-06-10 2020-12-11 海信视像科技股份有限公司 Recording control method and device and display equipment
CN112071337A (en) * 2019-06-10 2020-12-11 海信视像科技股份有限公司 Recording control method and device, server and display equipment
CN112073586A (en) * 2020-09-22 2020-12-11 北京居理科技有限公司 Method and system for acquiring call recording data from android system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102420010A (en) * 2011-10-17 2012-04-18 苏州阔地网络科技有限公司 Audio recording method and system thereof
CN103781014A (en) * 2014-02-14 2014-05-07 山东共达电声股份有限公司 Method and system for obtaining stereophonic data from Android system
CN106961421A (en) * 2017-02-17 2017-07-18 浙江大学 A kind of android system service end, remote desktop audio redirection method and system
CN107018465A (en) * 2016-01-27 2017-08-04 环旭电子股份有限公司 Suitable for the gapless way of recording of Android system
CN107301035A (en) * 2016-04-15 2017-10-27 中兴通讯股份有限公司 A kind of audio sync recording-reproducing system and method based on android system
CN108052312A (en) * 2017-12-06 2018-05-18 晶晨半导体(上海)股份有限公司 A kind of method and audio system that multitrack recording is realized based on Android system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102420010A (en) * 2011-10-17 2012-04-18 苏州阔地网络科技有限公司 Audio recording method and system thereof
CN103781014A (en) * 2014-02-14 2014-05-07 山东共达电声股份有限公司 Method and system for obtaining stereophonic data from Android system
CN107018465A (en) * 2016-01-27 2017-08-04 环旭电子股份有限公司 Suitable for the gapless way of recording of Android system
CN107301035A (en) * 2016-04-15 2017-10-27 中兴通讯股份有限公司 A kind of audio sync recording-reproducing system and method based on android system
CN106961421A (en) * 2017-02-17 2017-07-18 浙江大学 A kind of android system service end, remote desktop audio redirection method and system
CN108052312A (en) * 2017-12-06 2018-05-18 晶晨半导体(上海)股份有限公司 A kind of method and audio system that multitrack recording is realized based on Android system

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110113493A (en) * 2019-05-06 2019-08-09 Oppo广东移动通信有限公司 More wheat ways of recording and Related product
CN110085268A (en) * 2019-05-10 2019-08-02 深圳市智微智能科技开发有限公司 Method, system, advertisement machine and the storage medium that the double MIC of Android advertisement machine switch in real time
CN112071338A (en) * 2019-06-10 2020-12-11 海信视像科技股份有限公司 Recording control method and device and display equipment
CN112071337A (en) * 2019-06-10 2020-12-11 海信视像科技股份有限公司 Recording control method and device, server and display equipment
CN111506291A (en) * 2020-03-05 2020-08-07 北京声智科技有限公司 Audio data acquisition method and device, computer equipment and storage medium
CN111506291B (en) * 2020-03-05 2024-01-09 北京声智科技有限公司 Audio data acquisition method, device, computer equipment and storage medium
CN112073586A (en) * 2020-09-22 2020-12-11 北京居理科技有限公司 Method and system for acquiring call recording data from android system

Also Published As

Publication number Publication date
CN109378017B (en) 2021-05-04

Similar Documents

Publication Publication Date Title
CN109378017A (en) A kind of way of recording, device, audio system, sound pick-up outfit and storage medium
CN109660842A (en) A kind of method and electronic equipment playing multi-medium data
CN110381485A (en) Bluetooth communication method, TWS bluetooth headset and terminal
CN110320811A (en) A kind of cut-in method and a kind of electronic equipment of smart home device
CN111628916B (en) Method for cooperation of intelligent sound box and electronic equipment
CN107277216A (en) A kind of volume adjusting method, terminal and computer-readable recording medium
CN109286725A (en) Interpretation method and terminal
CN107889044B (en) The processing method and processing device of audio data
CN107105096A (en) A kind of audio-frequency processing method, terminal and storage medium
CN107135463A (en) A kind of Bluetooth connecting method and device
CN110198362A (en) A kind of method and system for adding smart home device in contact person
CN109379735A (en) ESIM card operating method, mobile terminal and eSIM card apparatus
CN109165004A (en) Double screen terminal audio frequency output method, terminal and computer readable storage medium
US20210160834A1 (en) Method and device for resource configuration
CN109358940A (en) Desktop synchronization, mobile terminal and computer readable storage medium
CN108307043A (en) Speech message conversion method, mobile terminal and computer readable storage medium
CN110012172A (en) A kind of processing incoming call and terminal equipment
CN109462700A (en) A kind of call method, mobile terminal and computer readable storage medium
CN108921859A (en) Image processing method, program and computer-readable storage media
CN107948397A (en) A kind of information-pushing method, device and computer-readable recording medium
CN107708224A (en) Wi Fi control methods, mobile terminal and computer-readable recording medium
CN109257152A (en) A kind of resource indicating method, network side equipment and terminal
CN107995685A (en) Method for processing business, the webserver and computer-readable recording medium
CN112712815A (en) Software-based pop sound suppression method, terminal and computer readable medium
CN109089258A (en) ESIM card operating method, mobile terminal and eSIM card apparatus

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