CN113870912A - Recording method, device, equipment and storage medium - Google Patents

Recording method, device, equipment and storage medium Download PDF

Info

Publication number
CN113870912A
CN113870912A CN202111026792.6A CN202111026792A CN113870912A CN 113870912 A CN113870912 A CN 113870912A CN 202111026792 A CN202111026792 A CN 202111026792A CN 113870912 A CN113870912 A CN 113870912A
Authority
CN
China
Prior art keywords
recording data
recording
audio
application program
full
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111026792.6A
Other languages
Chinese (zh)
Inventor
赵阳
曹东升
蔡蓉
李廷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ThunderSoft Co Ltd
Original Assignee
ThunderSoft 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 ThunderSoft Co Ltd filed Critical ThunderSoft Co Ltd
Priority to CN202111026792.6A priority Critical patent/CN113870912A/en
Publication of CN113870912A publication Critical patent/CN113870912A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C7/00Arrangements for writing information into, or reading information out from, a digital store
    • G11C7/16Storage of analogue signals in digital stores using an arrangement comprising analogue/digital [A/D] converters, digital memories and digital/analogue [D/A] converters 

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

The embodiment of the application discloses a recording method, a recording device, recording equipment and a recording medium. The method comprises the following steps: receiving recording instructions respectively sent by at least one first application program; acquiring full recording data based on the recording instruction; determining first audio parameters corresponding to the first application programs respectively; and acquiring target recording data corresponding to each first application program based on each first audio parameter and the full recording data, and returning each target recording data to each first application program. According to the method and the device, the full-volume recording data are obtained after the recording instruction is obtained, then the target recording data are determined for each first application program according to the first audio parameters corresponding to each first application program, even if the first audio parameters are different, the target recording data can be obtained at the same time, and then the application programs with different audio parameters can be recorded at the same time.

Description

Recording method, device, equipment and storage medium
Technical Field
The embodiment of the application relates to the technical field of communication, in particular to a recording method, a recording device, recording equipment and a recording medium.
Background
With the continuous development of electronic technology, in order to meet the requirements of users, the number and the types of application programs are more and more, the number of the application programs with the recording function in various application programs is also continuously increased, and then the requirement of simultaneously recording different application programs is provided for an intelligent terminal system.
At present, in an Android system, simultaneous recording of multiple applications can be supported by sharing a bottom-layer input device in an audioFlinger and simultaneously reading recording data from the input device, and sharing the input device requires that the multiple applications use the same audio parameters, and simultaneous recording cannot be realized for applications with different audio parameters, so that a method for simultaneously recording the applications with different audio parameters is determined to have important significance.
Disclosure of Invention
The embodiment of the application provides a recording method, a recording device, recording equipment and a recording medium, which can realize simultaneous recording of application programs with different audio parameters. The technical scheme is as follows:
in one aspect, an embodiment of the present application provides a recording method, where the method includes:
receiving recording instructions respectively sent by at least one first application program;
acquiring full recording data based on the recording instruction;
determining first audio parameters corresponding to the first application programs respectively;
and acquiring target recording data corresponding to each first application program based on each first audio parameter and the full recording data, and returning each target recording data to each first application program.
On the other hand, the embodiment of the present application provides a recording apparatus, the apparatus includes:
the instruction receiving module is used for receiving recording instructions respectively sent by at least one first application program;
the data acquisition module is used for acquiring full recording data based on the recording instruction;
the parameter determining module is used for determining first audio parameters corresponding to the first application programs respectively;
and the data processing module is used for acquiring target recording data corresponding to each first application program based on each first audio parameter and the full recording data, and returning each target recording data to each first application program.
In yet another aspect, an embodiment of the present application provides a computer device, which includes a processor and a memory, where at least one instruction, at least one program, a set of codes, or a set of instructions is stored in the memory, and the at least one instruction, the at least one program, the set of codes, or the set of instructions is loaded and executed by the processor to implement the method according to the above aspect.
In yet another aspect, an embodiment of the present application provides a computer-readable storage medium having at least one instruction, at least one program, a set of codes, or a set of instructions stored therein, which is loaded and executed by a processor to implement the method of the above aspect.
In yet another aspect, the present application provides a computer program product for performing the method of the above aspect when the computer program product is executed.
According to the technical scheme provided by the embodiment of the application, after the recording instructions respectively sent by at least one first application program are received, the recording instructions are responded to obtain full recording data, wherein the full recording data refers to original recording data read from a bottom layer, and the recording data meeting the requirements of first audio parameters corresponding to the first application programs can be obtained after the full recording data is extracted; and then after the first audio parameters respectively corresponding to the first applications are determined, processing the full-scale recording data according to the first audio parameters to obtain target recording data respectively corresponding to the first applications, and respectively returning the target recording data to the first applications.
Drawings
FIG. 1 is a first flowchart of a recording method according to an embodiment of the present application;
FIG. 2 is a flowchart illustrating a recording method according to an embodiment of the present application;
fig. 3 is a flowchart three of a recording method according to an embodiment of the present application;
FIG. 4 is a first schematic diagram illustrating target audio recording data obtained by the audio recording method according to an embodiment of the present application;
FIG. 5 is a schematic diagram illustrating a second example of obtaining target audio recording data in the audio recording method according to an embodiment of the present application;
FIG. 6 is a block diagram of a sound recording apparatus provided in an embodiment of the present application;
fig. 7 is a block diagram of a computer device according to an embodiment of the present application.
Detailed Description
Embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
With the increase of the number of the application programs with the recording function, an application scenario may occur in which a plurality of application programs need to record simultaneously, whereas in a conventional operating system, only one application program is allowed to record, and when another application program needs to record, the recording operation needs to be started after the recording operation is finished, which obviously cannot meet the needs of a user. With the development of an operating system, in an Android system, simultaneous recording of multiple applications can be supported by sharing a bottom-layer input device in an audioFlinger and simultaneously reading recording data from the input device, and sharing the input device requires that the multiple applications use the same audio parameters, and simultaneous recording cannot be realized for applications with different audio parameters.
In the application, after a recording instruction is received, no matter how many first audio parameters corresponding to the first application programs are, full recording data are acquired, and then the full recording data are processed based on the first audio parameters according to the requirements of each first application program, so that each first application program acquires the corresponding target recording data, and in the process, no matter whether the first audio parameters are the same, simultaneous recording of different application programs can be realized.
Referring to fig. 1, a flowchart of a recording method according to an embodiment of the present application is shown. The method may include the steps of:
step 101, receiving recording instructions respectively sent by at least one first application program.
In an embodiment, the first application program is a computer program for starting a recording process in the intelligent terminal system, and when the first application program needs to implement a recording function, a recording instruction is sent to the intelligent terminal system. It should be noted that, the mode for controlling the first application program to send the recording instruction may be a starting mode or a user command mode. The starting mode is that the first application program is started, namely a recording instruction is sent to the system, and the first application program needs to be recorded. Or the recording function is not directly started after the first application program is started, and a recording instruction needs to be sent based on an operation instruction of a user.
And 102, acquiring full recording data based on the recording instruction.
In one embodiment, the full amount of recording data is obtained in response to a recording instruction. The sound is a section of waveform signal, the waveform signal is recorded during recording, in the recording process, because of different recorded recording data of different audio parameters, the recording data with relatively more recorded waveform signals is extracted and processed to obtain the recording data with relatively less recorded waveform signals, in the embodiment, the full recording data refers to original recording data read from a bottom layer, the recording data meeting the requirements of the first audio parameters corresponding to each first application program can be obtained after the full recording data is extracted and processed, and the processing of the full recording data comprises channel conversion and resampling. Specifically, the full-volume recording data is data read from the bottom layer with a sampling rate of 48KHZ, a sampling depth of 16 bits, and a channel number of 8.
Step 103, determining first audio parameters corresponding to each first application program.
In an embodiment, in order to implement different functions, the audio parameters corresponding to the respective application programs may be different, and therefore when the first application program needs to record, the first audio parameters corresponding to the respective first application programs need to be determined, where the first audio parameters may be the same or different.
Specifically, the first audio parameter includes a channel parameter, an adoption rate and a sampling depth, wherein the channel parameter refers to the number of channels; the sampling rate is the number of samples extracted from continuous signals and forming discrete signals per second and is expressed by hertz (Hz); the sampling depth refers to how fine the sound intensity is recorded in the sampling. In a possible application scenario, a first application program A and a first application program B both send recording instructions to an intelligent terminal system, wherein first audio parameters corresponding to the first application program A are a sampling rate of 48KHz, a sampling depth of 16 bits and a binaural; the first audio parameters corresponding to the first application program B are a sampling rate of 48KHz, a sampling depth of 16 bits, and a channel number of 4, that is, the first application program a and the first application program B which have different first audio parameters need to be recorded simultaneously. It should be noted that, the first application program a and the first application program B do not need to send the recording instruction to the intelligent terminal system at the same time, and when the first application program a is recording, the intelligent terminal system receives the recording instruction of the first application program B, and because the recording of the first application program a is not finished, the first application program a and the first application program B still need to be recorded at the same time.
Specifically, the order of steps 102 and 103 is not limited, and step 102 and step 103 may be performed first, and then step 103 may be performed, or step 103 and then step 102 may be performed, or step 102 and step 103 may be performed simultaneously.
And step 104, acquiring target recording data corresponding to each first application program based on each first audio parameter and the full recording data, and returning each target recording data to each first application program.
In an embodiment, the full-scale recording data is processed according to each first audio parameter to obtain target recording data, wherein the audio parameter of the target recording data is the same as the first audio parameter of the corresponding first application program, and the number of the target recording data is the same as the number of the first application programs. For example, if the audio parameters corresponding to the full-volume recording data are 48KHz sampling rate, 16bit sampling depth and 8 channels, and the first audio parameters corresponding to the first application program a are 48KHz sampling rate, 16bit sampling depth and two channels, extracting the full-volume recording data, and extracting 2 channel data from the 8 channel data as the target recording data corresponding to the first application program a; and if the first audio parameters corresponding to the first application program B are the sampling rate of 48KHz, the sampling depth of 16 bits and the channel number of 4, extracting the full-volume recording data, extracting 4 channel data from 8 channel data to serve as target recording data corresponding to the second application program B, returning the target recording data A to the first application program A, and returning the target recording data B to the first application program B, so that simultaneous recording can be realized under the condition that the first audio parameters corresponding to the first application program A and the first application program B are different.
In summary, in the present application, after receiving the recording instruction, no matter how many first audio parameters corresponding to the first application are, the full-volume recording data is obtained from the bottom layer, and then, the full-volume recording data is processed based on the first audio parameters according to the requirements of each first application, so that each first application obtains the corresponding target recording data, and in this process, no matter whether the first audio parameters are the same, simultaneous recording of different applications can be achieved.
Referring to fig. 2, a flowchart of a recording method according to an embodiment of the present application is shown, where the method may include the following steps:
step 201, setting a second audio parameter based on the maximum value corresponding to the audio parameter.
In an embodiment, the setting of the second audio parameter is used for acquiring the full-volume recording data in a subsequent process, and in order to meet the requirements of various different first audio parameters after resampling the full-volume recording data, the second audio parameter is set according to a maximum value corresponding to the audio parameter.
In a possible implementation manner, the maximum value corresponding to the audio parameter is the maximum value of each audio parameter that can be acquired by the recording device. For example, for a channel parameter as an audio parameter, if the maximum value that can be acquired by the sound recording device is 8 channels, the channel parameter in the second audio parameter is set to 8, and at this time, the requirement of all the first applications on the number of channels can be met.
Step 202, receiving recording commands respectively sent by at least one first application program.
Step 203, acquiring full recording data based on the recording instruction and the second audio parameter.
In an embodiment, the audio parameter corresponding to the obtained full-volume recording data is the second audio parameter, that is, the maximum value among the audio parameters, so that the recording data meeting the first audio parameter can be obtained by extracting the full-volume recording data.
Step 204, determining first audio parameters respectively corresponding to the first application programs.
Step 205, determining whether the first audio parameter is the same as a second audio parameter corresponding to the full-volume recording data.
Step 206, if a second application program with the same first audio parameter and the same second audio parameter exists in the first application program, taking the full-volume recording data as the target recording data corresponding to the second application program.
In one embodiment, the second application is a first application having the same corresponding first audio parameter as the second audio parameter. For example, the sampling rate of the second audio parameter is 48KHz, the sampling depth is 16bit, and the channel number is 8, the first audio parameter with the first application program is also 48KHz, the sampling depth is 16bit, and the channel number is 8, at this time, the acquired full-volume recording data can be directly used as the target recording data corresponding to the second application program without being processed.
Step 207, if a third application program with the first audio parameter different from the second audio parameter exists in the first application program, extracting the full-volume recording data according to the first audio parameter, and acquiring target recording data corresponding to the third application program.
In an embodiment, the third application is a first application having a first audio parameter different from a second audio parameter, and in order to meet a requirement of the third application, the full-scale recording data needs to be processed according to the first audio parameter corresponding to the third application, so that the audio parameter of the target recording data corresponding to the third application obtained after processing is the same as the first audio parameter.
In a possible implementation manner, if the audio parameter is a channel parameter, the extracting the full-volume recording data according to the first audio parameter to obtain the target recording data corresponding to the third application includes: and extracting channel data with front channel values in the full-volume recording data as target recording data corresponding to a third application program based on the channel values corresponding to the first audio parameters. For most of the application programs, the sampling depth and the sampling rate are the same, when the audio parameters are set, the channel parameters can be concerned, when the channel parameters corresponding to the third application program are different from the channel parameters corresponding to the full recording data, the channel parameters corresponding to the full recording data are more than the channel parameters corresponding to the third application program, so that the channel data of different paths of the full recording data are split, and the channel data with the number of the front channels are selected as the target recording data corresponding to the third application program. For example, if the number of channels corresponding to the full-volume recording data is 8 and the third application program corresponds to a binaural channel, the first 2 channel data of the full-volume recording data are taken as the target recording data of the third application program.
In a possible implementation manner, the extracting the full-volume recording data according to the first audio parameter to obtain the target recording data corresponding to the third application includes: and judging whether the first audio parameters corresponding to the third application program are the same, if a fourth application program with the same first audio parameters exists in the third application program, extracting the full-volume recording data once based on the first audio parameters, and acquiring target recording data corresponding to the fourth application program. That is, for the fourth application program with the same first audio parameter, the full-volume recording data can be extracted only once, and the full-volume recording data is prevented from being repeatedly processed based on the same first audio parameter.
In summary, the maximum value corresponding to the audio parameter is set as the second audio parameter, so that the obtained full-volume recording data can meet the requirement, and a precondition guarantee is provided for processing the full-volume recording data and obtaining different target recording data corresponding to different first applications. And judging the first audio parameter and the second audio parameter, and if the first audio parameter is the same as the second audio parameter, directly taking the full-volume recording data as the target recording data corresponding to the second application program, so that unnecessary processing on the full-volume recording data is avoided, and the acquisition efficiency of the recording data is improved.
As shown in fig. 3, a flowchart of a recording method provided in an embodiment of the present application is shown, and the method is applied to a car-mounted Android system, and may include the following steps:
step 301, receiving recording instructions respectively sent by at least one first application program in the Android system of the vehicle.
In an embodiment, a plurality of applications having a recording function exist in the Android system of the car machine, and one or more first applications have sent a recording instruction to the Android system of the car machine. For example, a vehicle event data recorder and a voice recognition program exist in the Android system of the vehicle, wherein the first audio parameter corresponding to the vehicle event data recorder is 16KHz in sampling rate, 16bit in sampling depth and 2 in channel number, the first audio parameter corresponding to the voice recognition program is 16KHz in sampling rate, 16bit in sampling depth and 8 in channel number. When the automobile data recorder is started and voice recognition is required to be carried out by utilizing the voice recognition program, the first application programs with different first audio parameters are required to be recorded simultaneously.
Step 302, reading the full-volume recording data from the audioFlinger in the AudioRecord based on the recording instruction.
In one embodiment, the Android operating system has an Audio Application frame Audio Application framework, an Audio Native frame Audio local framework, Audio Services and an Audio HAL hardware abstraction layer. Wherein, the Audio Application frame and the Audio Native frame comprise an Audio record responsible for acquiring the recording data; the Audio Services comprise an executor of an Audio Flinger Audio strategy and are responsible for management of input and output stream equipment and processing and transmission of pcm data; and the Audio HAL hardware abstraction layer is between Audio Services and kernel, is responsible for interaction between Audio and hardware equipment and is called by the Audio Flinger. Therefore, for the Android system of the vehicle machine, the full amount of recording data can be read from the audioFlinger in the AudioRecord. If the sampling rate and the sampling depth of the automobile data recorder and the voice recognition program in step 301 are the same, the maximum channel number recording data is read from the AudioFlinger as the full recording data, wherein the channel number corresponding to the full recording data is 8, the sampling rate is 48KHz, and the sampling depth is 16 bits.
Step 303, determining first audio parameters respectively corresponding to each of the first applications.
Step 304, obtaining target recording data corresponding to each first application program based on each first audio parameter and the full recording data, and returning each target recording data to each first application program.
For example, as shown in fig. 4, each frame of data of the full-volume recording data has 8 channels of data, and since the number of channels of the car recorder is configured as two channels, the first two channels of data in each frame of data are extracted to obtain the target recording data with a car recorder sampling rate of 16KHz, a sampling depth of 16 bits, and a number of channels of 2. As shown in fig. 5, since the voice recognition program needs 8 channels of recording data, which is the maximum value of the number of channels, the full amount of recording data with the number of channels being 8 read from the AudioFlinger is resampled to obtain the target recording data with the voice recognition program sampling rate being 16KHz, the sampling depth being 16 bits, and the number of channels being 8, and the target recording data is transmitted to the voice recognition program. That is to say, no matter how many channels the first application program corresponds to, the recording data with the largest number of channels is read from the AudioFlinger, and then the target recording data corresponding to the first application program is determined according to the number of channels corresponding to the first application program, so that the requirement that different channels of the first application program record simultaneously is met.
To sum up, regardless of the specific value of the first recording parameter corresponding to the first application, the full-volume recording data is obtained from the AudioFlinger, so that the recording data on the bottom layer can be read by using one input device, and then the target recording data corresponding to the first application is determined according to the first recording parameter corresponding to the first application, so as to meet the requirement of simultaneous recording of the first applications.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Referring to fig. 6, a block diagram of a sound recording apparatus according to an embodiment of the present application is shown. The device has the functions of realizing the method examples, and the functions can be realized by hardware or by hardware executing corresponding software. The apparatus 600 may include: the system comprises an instruction receiving module 610, a data acquiring module 620, a parameter determining module 630 and a data processing module 640.
The instruction receiving module 610 is configured to receive recording instructions respectively sent by at least one first application program;
a data obtaining module 620, configured to obtain full amount of recording data based on the recording instruction;
a parameter determining module 630, configured to determine first audio parameters corresponding to the first applications respectively;
and the data processing module 640 is configured to obtain target recording data corresponding to each first application program based on each first audio parameter and the full-volume recording data, and return each target recording data to each first application program.
In summary, after the instruction receiving module 610 receives the recording instruction, no matter how many first audio parameters corresponding to the first application programs are, the data obtaining module 620 obtains the full-scale recording data, and then on the basis of the first audio parameters corresponding to the first application programs respectively determined by the parameter determining module 630, the data processing module 640 processes the full-scale recording data based on the first audio parameters according to the requirements of the first application programs, so that the first application programs obtain the corresponding target recording data, and in this process, no matter whether the first audio parameters are the same, simultaneous recording of different application programs can be achieved.
In an optional embodiment provided based on the embodiment of fig. 6, the data processing module includes a determination processing unit, a first data obtaining unit, and a second data obtaining unit;
the judgment processing unit is used for judging whether the first audio parameter is the same as a second audio parameter corresponding to the full amount of recording data;
a first data obtaining unit, configured to, if a second application program with the first audio parameter being the same as the second audio parameter exists in the first application program, use full-volume recording data as target recording data corresponding to the second application program;
and the second data acquisition unit is used for extracting the full-volume recording data according to the first audio parameter and acquiring target recording data corresponding to a third application program if the third application program with the first audio parameter different from the second audio parameter exists in the first application program.
Optionally, if the audio parameter is a channel parameter, the second data obtaining unit is configured to, if a third application program with the first audio parameter different from the second audio parameter exists in the first application program, extract, based on a channel value corresponding to the first audio parameter, channel data with a front channel value in the full-volume recording data as target recording data corresponding to the third application program.
In an optional embodiment provided based on the embodiment of fig. 6, the apparatus further includes:
the parameter setting module is used for setting a second audio parameter based on the maximum value corresponding to the audio parameter;
and the data acquisition module is used for acquiring the full amount of recording data based on the recording instruction and the second audio parameter.
Optionally, the second audio parameter includes a channel parameter, and the channel parameter is 8.
Optionally, the first audio parameters comprise channel parameters, sampling rate and sampling depth.
Optionally, the data obtaining module is configured to read, in the AudioRecord, full-volume recording data from the AudioFlinger based on the recording instruction.
It should be noted that, when the apparatus provided in the foregoing embodiment implements the functions thereof, only the division of the functional modules is illustrated, and in practical applications, the functions may be distributed by different functional modules according to needs, that is, the internal structure of the apparatus may be divided into different functional modules to implement all or part of the functions described above. In addition, the apparatus and method embodiments provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments for details, which are not described herein again.
Referring to fig. 7, a block diagram of a computer device according to an embodiment of the present application is shown. The computer device may be used to implement the recording method provided in the above embodiments. The computer device may be a PC or a server, or other device with data processing and storage capabilities. Specifically, the method comprises the following steps:
the computer device 700 includes a Central Processing Unit (CPU)701, a system memory 704 including a Random Access Memory (RAM)702 and a Read Only Memory (ROM)703, and a system bus 705 connecting the system memory 704 and the central processing unit 701. The computer device 700 also includes a basic input/output system (I/O system) 706, which facilitates transfer of information between devices within the computer, and a mass storage device 707 for storing an operating system 713, first application programs 714, and other program modules 715.
The basic input/output system 706 comprises a display 708 for displaying information and an input device 709, such as a mouse, keyboard, etc., for a user to input information. Wherein the display 708 and input device 709 are connected to the central processing unit 701 through an input output controller 710 coupled to the system bus 705. The basic input/output system 706 may also include an input/output controller 710 for receiving and processing input from a number of other devices, such as a keyboard, mouse, or electronic stylus. Similarly, input-output controller 710 may also provide output to a display screen, a printer, or other type of output device.
The mass storage device 707 is connected to the central processing unit 701 through a mass storage controller (not shown) connected to the system bus 705. The mass storage device 707 and its associated computer-readable media provide non-volatile storage for the computer device 700. That is, the mass storage device 707 may include a computer-readable medium (not shown), such as a hard disk or CD-ROM drive.
Without loss of generality, the computer-readable media may comprise computer storage media and communication media. Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Computer storage media includes RAM, ROM, EPROM, EEPROM, flash memory or other solid state memory technology, CD-ROM, DVD, or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices. Of course, those skilled in the art will appreciate that the computer storage media is not limited to the foregoing. The system memory 704 and mass storage device 707 described above may be collectively referred to as memory.
According to various embodiments of the present application, the computer device 700 may also operate as a remote computer connected to a network via a network, such as the Internet. That is, the computer device 700 may be connected to the network 712 through the network interface unit 711 connected to the system bus 705, or may be connected to other types of networks or remote computer systems (not shown) using the network interface unit 711.
The memory also includes one or more programs stored in the memory and configured to be executed by one or more processors. The one or more programs include instructions for performing the recording method.
In an example embodiment, there is also provided a computer device comprising a processor and a memory having stored therein at least one instruction, at least one program, set of codes, or set of instructions. The at least one instruction, at least one program, set of codes, or set of instructions is configured to be executed by one or more processors to implement the sound recording method described above.
In an exemplary embodiment, a computer readable storage medium is also provided, in which at least one instruction, at least one program, a set of codes, or a set of instructions is stored, which when executed by a processor of a computer device implements the above-mentioned sound recording method.
Alternatively, the computer-readable storage medium may be a ROM, a RAM, a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, a computer program product is also provided for implementing the sound recording method described above when the computer program product is executed.
It should be understood that reference to "a plurality" herein means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
The above description is only exemplary of the present application and should not be taken as limiting the present application, and any modifications, equivalents, improvements and the like that are made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (10)

1. A method of recording audio, the method comprising:
receiving recording instructions respectively sent by at least one first application program;
acquiring full recording data based on the recording instruction;
determining first audio parameters corresponding to the first application programs respectively;
and acquiring target recording data corresponding to each first application program based on each first audio parameter and the full recording data, and returning each target recording data to each first application program.
2. The method of claim 1, wherein obtaining target audio recording data corresponding to each of the first applications based on each of the first audio parameters and the full-volume audio recording data comprises:
judging whether the first audio parameter is the same as a second audio parameter corresponding to the full amount of recording data;
if a second application program with the first audio parameter being the same as the second audio parameter exists in the first application program, taking the full-volume recording data as target recording data corresponding to the second application program;
if a third application program with the first audio parameter different from the second audio parameter exists in the first application program, extracting the full-volume recording data according to the first audio parameter, and acquiring target recording data corresponding to the third application program.
3. The method of claim 2, wherein if the audio parameter is a channel parameter, the extracting the full-volume recording data according to the first audio parameter to obtain the target recording data corresponding to the third application program comprises:
and extracting channel data with front channel values in the full-volume recording data as target recording data corresponding to a third application program based on the channel values corresponding to the first audio parameters.
4. The method of claim 1, further comprising:
setting a second audio parameter based on the maximum value corresponding to the audio parameter;
then, the obtaining of the full amount of recording data based on the recording instruction includes:
and acquiring full recording data based on the recording instruction and the second audio parameter.
5. The method of claim 4, wherein the second audio parameter comprises a channel parameter, and wherein the channel parameter is 8.
6. The method of claim 1, wherein the first audio parameters comprise channel parameters, sampling rate, and sampling depth.
7. The method according to any one of claims 1 to 6, wherein the method is applied to a vehicle-mounted Android system, and the obtaining of the full-volume recording data based on the recording instruction comprises:
based on the recording instructions, the full amount of recording data is read from the AudioFlinger in the AudioRecord.
8. An audio recording apparatus, characterized in that the apparatus comprises:
the instruction receiving module is used for receiving recording instructions respectively sent by at least one first application program;
the data acquisition module is used for acquiring full recording data based on the recording instruction;
the parameter determining module is used for determining first audio parameters corresponding to the first application programs respectively;
and the data processing module is used for acquiring target recording data corresponding to each first application program based on each first audio parameter and the full recording data, and returning each target recording data to each first application program.
9. A computer device comprising a processor and a memory, the memory having stored therein at least one instruction, at least one program, set of codes, or set of instructions, which is loaded and executed by the processor to implement the method of any one of claims 1 to 7.
10. A computer readable storage medium having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by a processor to implement the method according to any one of claims 1 to 7.
CN202111026792.6A 2021-09-02 2021-09-02 Recording method, device, equipment and storage medium Pending CN113870912A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111026792.6A CN113870912A (en) 2021-09-02 2021-09-02 Recording method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111026792.6A CN113870912A (en) 2021-09-02 2021-09-02 Recording method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113870912A true CN113870912A (en) 2021-12-31

Family

ID=78989261

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111026792.6A Pending CN113870912A (en) 2021-09-02 2021-09-02 Recording method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113870912A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116828102A (en) * 2023-08-29 2023-09-29 荣耀终端有限公司 Recording method, recording device and storage medium
CN117389507A (en) * 2023-12-12 2024-01-12 荣耀终端有限公司 Audio data processing method, electronic device and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20020003312A (en) * 2001-08-28 2002-01-12 (주)메이즈텍 Digital Recoder and Recording Method using the same
JP2003046949A (en) * 2001-07-30 2003-02-14 Hitachi Ltd Data multiplexing method, data recording medium, data recording apparatus, and data recording program
CN106504777A (en) * 2016-11-25 2017-03-15 维沃移动通信有限公司 A kind of processing method of recording data and mobile terminal
US20190206392A1 (en) * 2017-12-29 2019-07-04 Dish Network L.L.C. Methods and systems for recognizing audio played and recording related video for viewing
WO2019127114A1 (en) * 2017-12-27 2019-07-04 深圳前海达闼云端智能科技有限公司 Audio playback method for virtual machine and device thereof, and mobile terminal
CN110176256A (en) * 2019-04-15 2019-08-27 平安科技(深圳)有限公司 Recording file format conversion method, device, computer equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003046949A (en) * 2001-07-30 2003-02-14 Hitachi Ltd Data multiplexing method, data recording medium, data recording apparatus, and data recording program
KR20020003312A (en) * 2001-08-28 2002-01-12 (주)메이즈텍 Digital Recoder and Recording Method using the same
CN106504777A (en) * 2016-11-25 2017-03-15 维沃移动通信有限公司 A kind of processing method of recording data and mobile terminal
WO2019127114A1 (en) * 2017-12-27 2019-07-04 深圳前海达闼云端智能科技有限公司 Audio playback method for virtual machine and device thereof, and mobile terminal
US20190206392A1 (en) * 2017-12-29 2019-07-04 Dish Network L.L.C. Methods and systems for recognizing audio played and recording related video for viewing
CN110176256A (en) * 2019-04-15 2019-08-27 平安科技(深圳)有限公司 Recording file format conversion method, device, computer equipment and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116828102A (en) * 2023-08-29 2023-09-29 荣耀终端有限公司 Recording method, recording device and storage medium
CN116828102B (en) * 2023-08-29 2023-11-21 荣耀终端有限公司 Recording method, recording device and storage medium
CN117389507A (en) * 2023-12-12 2024-01-12 荣耀终端有限公司 Audio data processing method, electronic device and storage medium
CN117389507B (en) * 2023-12-12 2024-05-10 荣耀终端有限公司 Audio data processing method, electronic device and storage medium

Similar Documents

Publication Publication Date Title
JP5344460B2 (en) EDITING DEVICE, EDITING PROGRAM, AND EDITING METHOD
JP6848147B2 (en) Voice interaction implementation methods, devices, computer devices and programs
CN113870912A (en) Recording method, device, equipment and storage medium
CN113079072B (en) Vehicle data acquisition method and system, computer equipment and storage medium
CN110673964A (en) Audio playing control method and device of vehicle-mounted system
JP2003058395A (en) Log collecting/analyzing system, log collecting method, log collecting program for making computer perform, log analyzing method, log analyzing program for making computer perform, log collecting device, log analyzing device, log collecting terminal and log server
KR101528367B1 (en) Sound control system and method as the same
CN108062212A (en) A kind of voice operating method and device based on scene
CN112703689B (en) Data transmission method and device, electronic equipment and storage medium
CN109947387B (en) Audio acquisition method, audio playing method, system, device and storage medium
CN110175081B (en) Optimization system and method for Android audio playing
CN111506291A (en) Audio data acquisition method and device, computer equipment and storage medium
US6957430B2 (en) Method for managing multimedia platform resources and multimedia platform for implementing it
US20110153882A1 (en) Apparatus and method for transforming content
CN105704010A (en) Message display method and apparatus
CN1130647C (en) Transmitting system, transmitting method, and transmitting/receiving system
JP2018151533A (en) Communication terminal, communication program and communication method
CN113687731B (en) Agent control device, agent control method, and non-transitory recording medium
CN113035246B (en) Audio data synchronous processing method and device, computer equipment and storage medium
JP7310706B2 (en) AGENT CONTROL DEVICE, AGENT CONTROL METHOD, AND AGENT CONTROL PROGRAM
CN114222028A (en) Speech recognition method, speech recognition device, computer equipment and storage medium
CN116627495A (en) Information interaction method, system, device, equipment and medium
US20050256979A1 (en) [direct memory access method for card reader and a method for programming controller of card reader]
CN111816183B (en) Voice recognition method, device, equipment and storage medium based on audio and video recording
CN109697144B (en) Hard disk detection method of electronic equipment and electronic equipment

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