CN111402933B - Audio recording method, device, storage medium and related equipment - Google Patents

Audio recording method, device, storage medium and related equipment Download PDF

Info

Publication number
CN111402933B
CN111402933B CN202010142589.4A CN202010142589A CN111402933B CN 111402933 B CN111402933 B CN 111402933B CN 202010142589 A CN202010142589 A CN 202010142589A CN 111402933 B CN111402933 B CN 111402933B
Authority
CN
China
Prior art keywords
audio
audio data
thread
writing
recording
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010142589.4A
Other languages
Chinese (zh)
Other versions
CN111402933A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202010142589.4A priority Critical patent/CN111402933B/en
Publication of CN111402933A publication Critical patent/CN111402933A/en
Application granted granted Critical
Publication of CN111402933B publication Critical patent/CN111402933B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72442User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for playing music files
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • G11B20/10527Audio or video recording; Data buffering arrangements
    • G11B2020/10537Audio or video recording
    • G11B2020/10546Audio or video recording specifically adapted for audio data

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Multimedia (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Circuit For Audible Band Transducer (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

The invention provides an audio recording method, an audio recording device, a storage medium and related equipment, wherein the method comprises the following steps: acquiring audio data to be recorded, and writing the audio data into a playback track; writing the audio data from the playback track into a first audio mixing thread at the output end of a remote audio mixing device; and writing the audio data from the first mixing thread into an input end of the remote mixing equipment, and recording the audio data from the input end through an audio recording track. The audio data to be recorded can be recorded from the input end of the remote audio mixing equipment by writing the audio data to be recorded into the input end. Therefore, the user can record the audio to be recorded while recording the screen picture, and convenience is brought to the user for using the terminal.

Description

Audio recording method, device, storage medium and related equipment
Technical Field
The invention relates to the technical field of terminals, in particular to an audio recording method, an audio recording device, a storage medium and related equipment.
Background
The mobile phone is an intelligent device widely used in daily life. With the rapid development of mobile terminal technology, the requirements of users for mobile terminals are no longer limited to calls, and users often need to record screens by using mobile phones, but users often cannot record audio to be recorded well while recording screen pictures, which brings inconvenience to users in using mobile phones.
Disclosure of Invention
In order to solve the above problem, embodiments of the present invention provide an audio recording method, apparatus, storage medium, and related device.
In a first aspect, an embodiment of the present invention provides an audio recording method, including the following steps:
acquiring audio data to be recorded, and writing the audio data into a playback track;
writing the audio data from the playback track into a first audio mixing thread at the output end of a remote audio mixing device;
and writing the audio data from the first mixing thread into an input end of the remote mixing equipment, and recording the audio data from the input end through an audio recording track.
In a second aspect, an embodiment of the present invention provides an audio recording apparatus, including:
the track writing unit is used for acquiring audio data to be recorded and writing the audio data into a playback track;
a first thread writing unit, configured to write the audio data from the playback track into a first audio mixing thread at an output end of a remote audio mixing device;
and the data recording unit is used for writing the audio data from the first audio mixing thread into an input end of the remote audio mixing equipment and recording the audio data from the input end through an audio recording track.
In a third aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps of any one of the above methods.
In a fourth aspect, an embodiment of the present invention provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the steps of any one of the above methods when executing the program.
In the embodiment of the application, audio data to be recorded are obtained, and the audio data are written into a playback track; writing the audio data from the playback track into a first audio mixing thread at the output end of a remote audio mixing device; and writing the audio data from the first mixing thread into an input end of the remote mixing equipment, and recording the audio data from the input end through an audio recording track. The audio data to be recorded can be recorded from the input end of the remote audio mixing equipment by writing the audio data to be recorded into the input end. Therefore, the user can record the audio to be recorded while recording the screen picture, and convenience is brought to the user for using the terminal.
Drawings
Fig. 1 is a schematic diagram illustrating a screen recording interface according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of an audio recording method according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of another audio recording method according to an embodiment of the present invention;
FIG. 4 is a schematic audio data flow diagram corresponding to the method of FIG. 3;
fig. 5 is a schematic flowchart illustrating a process of creating a two-way thread according to an embodiment of the present invention;
fig. 6 is a schematic flow chart of screen recording volume processing according to an embodiment of the present invention;
fig. 7 is a schematic flow chart of another screen recording volume processing according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an audio recording apparatus according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The present application is further described with reference to the following figures and examples.
In the following description, the terms "first" and "second" are used for descriptive purposes only and are not intended to indicate or imply relative importance. The following description provides embodiments of the invention, which may be combined or substituted for various embodiments, and this application is therefore intended to cover all possible combinations of the same and/or different embodiments described. Thus, if one embodiment includes feature A, B, C and another embodiment includes feature B, D, then this application should also be considered to include an embodiment that includes one or more of all other possible combinations of A, B, C, D, even though this embodiment may not be explicitly recited in text below.
The following description provides examples, and does not limit the scope, applicability, or examples set forth in the claims. Changes may be made in the function and arrangement of elements described without departing from the scope of the disclosure. Various examples may omit, substitute, or add various procedures or components as appropriate. For example, the described methods may be performed in an order different than the order described, and various steps may be added, omitted, or combined. Furthermore, features described with respect to some examples may be combined into other examples.
And the screen recording is to record terminal screen pictures synchronously by the terminal and export video files in MP4, WMV, MOV and other formats. Fig. 1 shows a schematic view of a screen recording interface according to an embodiment of the present invention. As shown in fig. 1, the screen of the terminal can be continuously recorded by the screen recording software. In the process of recording the screen, the screen recording can be finished by clicking a stop button, and the screen recording process can be suspended by clicking a pause button.
In the embodiment of the application, a terminal acquires audio data to be recorded and writes the audio data into a playback track; writing the audio data from the playback track into a first audio mixing thread at the output end of a remote audio mixing device; and writing the audio data from the first mixing thread into an input end of the remote mixing equipment, and recording the audio data from the input end through an audio recording track. The user can record the audio to be recorded synchronously while recording the screen picture.
It should be noted that the method of the embodiment of the present application can be used in various terminals. The terminal includes, but is not limited to, devices such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet), a PMP (portable multimedia player), a wearable device, and the like.
The method of the embodiment of the application can be applied to various operating systems, such as Windows, macOS, Linux, iOS, Android and the like. The implementation manner of the embodiment of the present application will be described below by taking an Android system as an example. The methods of embodiments of the present application may involve a number of functions, instances, and variables. The relevant descriptions of the above functions, examples and variables are shown in table 1 below.
Figure GDA0003247194830000041
Figure GDA0003247194830000051
TABLE 1
Referring to fig. 2, fig. 2 is a schematic flowchart of an audio recording method according to an embodiment of the present invention, where the method includes:
s201, audio data to be recorded are obtained and written into a playback track.
The audio data may be derived from various audio files, and the format of the audio files may be aiff (audio exchange File format), MPEG, MP3, wma (windows Media audio), AMR (Adaptive Multi-Rate), and the like. The audio playback track is a playback track of audio data, and the playback track is used for playing sound and can be realized by calling an AudioTrack function.
S202, writing the audio data from the playback track into a first audio mixing thread at the output end of a remote audio mixing device.
And S203, writing the audio data from the first audio mixing thread into an input end of the remote audio mixing equipment, and recording the audio data from the input end through an audio recording track.
The audio recording track is a recording track of audio data, and the recording track is used for recording sound and can be realized by calling an AudioRecord function.
According to the audio recording method provided by the embodiment of the invention, the audio data to be recorded is recorded into the audio file of the recording screen through the remote audio mixing equipment. Therefore, the method of the embodiment of the application can solve the problem that in the prior art, a user cannot record the audio to be recorded while recording the screen picture.
Referring to fig. 3, fig. 3 is a schematic flowchart of an audio recording method according to an embodiment of the present invention, where the method includes:
s301, audio data to be recorded are obtained and written into a playback track.
S302, creating a double-path thread.
The two-way thread is used for transmitting the audio data to a mixing thread of the remote mixing equipment and a mixing thread of the loudspeaker. In the method of the embodiment of the present application, the two-way thread is named DuplicatingThread.
Optionally, before S302, the method further includes:
and modifying an equipment selection strategy, setting the remote sound mixing equipment and the loudspeaker as output equipment at the same time, and connecting the remote sound mixing equipment and the loudspeaker through an equipment connecting interface.
When a device is connected, the restoreTrack function is called to recreate the track and the device is reselected. In engine. cpp, the DEVICE selection strategy may be modified to add the output speaker to the output DEVICE when the output address is AUDIO _ DEVICE _ OUT _ REMOTE _ subfix, thus ensuring that the speaker is playing AUDIO while recording.
And S303, writing the audio data into one thread of the two threads from the playback track to serve as a first sound mixing thread at the output end of the remote sound mixing equipment.
S304, writing the audio data from the first mixing thread into an input end of the remote mixing equipment, and recording the audio data from the input end through an audio recording track.
S305, writing the audio data into one thread of the two threads from the playback track to serve as a second sound mixing thread of the loudspeaker.
S306, playing the audio data through the loudspeaker.
Fig. 4 corresponds to an audio data flow diagram of the method of fig. 3. As shown in fig. 4, when the player plays audio, data is written to the ring buffer of the audioflexinger track by the AudioTrack example, and the duplicating thread in the audioflexinger writes data to the mixing thread MixerThread of the speaker and the mixing thread MixThread of the Remote _ Submix _ Out at the same time. Wherein, the data written to the loudspeaker MixerThread is output through the loudspeaker, and the data written to the Remote _ sub _ Out MixThread is written to the remotesub _ hal. Data of Remote _ Submix _ Out In RemoteSubmix hal is written to Remote _ Submix _ In, and then the screen recording application can record from Remote _ Submix _ In to the played audio through the AudioRecord instance.
Fig. 5 is a schematic flowchart illustrating a process of creating a two-way thread according to an embodiment of the present invention. The screen recording application records using AUDIO _ SOURCE _ REMOTE _ submit as a data SOURCE. In the prior art, at the time of recording, the output of audio data is switched from the speaker to Remote _ sub _ Out, thereby causing the speaker to be silent. Therefore, it is possible to modify the output of audio data such that when the Remote _ sub _ Out is connected, the output device is selected, the Remote _ sub _ Out and the speaker are simultaneously selected, and the dual audio thread is created to make the speaker have audio playback.
Optionally, the method further comprises:
setting the volume of the mixer to be the maximum volume;
and writing the audio data corresponding to the maximum volume into a second sound mixing thread of the remote sound mixing equipment.
The terminal can read the audio data of the screen recording from the second audio mixing thread of the remote audio mixing equipment and write the audio data corresponding to the maximum volume into the second audio mixing thread of the remote audio mixing equipment, so that the screen recording video file can be recorded into the original unattenuated data.
Optionally, the method further comprises:
acquiring the current playing volume of the audio data, and storing the playing volume into a temporary volume;
and writing the audio data corresponding to the current playing volume into a first sound mixing thread of the loudspeaker.
And storing the current playing volume into the temporary volume, and writing the audio data corresponding to the current playing volume into the first audio mixing thread of the loudspeaker through the temporary volume, so that the audio data played by the loudspeaker can be ensured to be played according to the volume currently adjusted by the user.
Fig. 6 is a schematic flow chart of screen recording volume processing according to an embodiment of the present invention. As shown in fig. 6, when DuplicatingThread executes prepatrack _ l, the volume of the current media stream is calculated and saved in the AudioMixer, and then mAudioMixer- > process () is called in the threadLoopMix of DuplicatingThread, at this time, the volume is applied to the data stream, and attenuated data is obtained. The attenuated data is then written to RemoteSubmix and mixhread of the loudspeaker, respectively, with the volume in both mixhreads set to MAX (1.0) by default. Therefore, the data is not subjected to volume processing. Finally, the data obtained by the RemoteSubmix and the loudspeaker are both attenuated data.
Fig. 7 is a schematic flow chart of another screen recording volume processing according to an embodiment of the present invention. As shown in fig. 7, when DuplicatingThread calls prepatrack _ l, the volume of the current media stream is calculated, the volume is stored in vol _ temp, the volume of the AudioMixer is set to MAX (1.0), and then maudiomomixer- > process () is called in the videomix of DuplicatingThread, at which time the volume is applied to the data stream, resulting in unattenuated data. The unattenuated data is then written to RemoteSubmix and mixhread of the loudspeaker, respectively, the volume in this RemoteSubmix mixMixthread being set to MAX (1.0) by default, so that no further volume processing is performed on the data. At this time, data obtained by RemoteSubmix is data which is not attenuated, and in mixhread of the speaker, vol _ temp which has been stored before is set in the AudioMixer, and then attenuated data is obtained. Therefore, original unattenuated data can be obtained by playing the recording without changing along with the adjustment of the volume, and the sound of the loudspeaker can also change along with the adjustment of the volume.
In the method for processing screen recording volume shown in fig. 6, the volume of the audio data played by the speaker and the volume of the audio data in the screen recording video file are both the current playing volume set by the user. The current playing volume set by the user is often smaller than the maximum volume of the player, so that the audio data in the screen recording video file is attenuated. In the method for processing screen recording volume shown in fig. 7, the screen recording thread adopts volume maximization recording, so that the amplitude of the recorded audio is not attenuated compared with the original audio amplitude, the speaker thread adopts current playing volume output, the playing of the speaker is not affected when the screen recording is performed, and the recorded audio is consistent with the played audio. The volume of audio data played by the speaker in fig. 7 is the current play volume set by the user, and the volume of audio data in the screen-recorded video file is the unattenuated audio data. Therefore, compared with the method for processing the screen recording volume shown in fig. 6, the method for processing the screen recording volume shown in fig. 7 can record the audio content currently being played completely and losslessly while recording the screen, and does not affect the current playing.
According to the method, the audio data are respectively written into the input end and the loudspeaker of the remote audio mixing equipment through the two-way thread. In the screen recording process, the audio file is written into the video file of the screen recording, and meanwhile, the corresponding audio file can be played by the loudspeaker, so that the use feeling of a user in the screen recording process is improved.
Referring to fig. 8, fig. 8 is a schematic structural diagram of an audio recording apparatus according to an embodiment of the present invention, and as shown in fig. 8, the audio recording apparatus includes:
a track writing unit 801, configured to acquire audio data to be recorded, and write the audio data into a playback track;
a first thread writing unit 802, configured to write the audio data from the playback track into a first mixing thread at an output end of a remote mixing apparatus;
a data recording unit 803, configured to write the audio data from the first mixing thread into an input end of the remote mixing apparatus, and record the audio data from the input end through an audio recording track.
Optionally, the apparatus further comprises:
a second thread writing unit 804, configured to create a two-way thread, and write the audio data from the playback track into one of the two-way thread as a second audio mixing thread of the speaker;
a data playing unit 805, configured to play the audio data through the speaker.
Optionally, the first thread writing unit 802 is specifically configured to:
and writing the audio data into the other thread of the two threads from the playback track as a first sound mixing thread at the output end of the remote sound mixing equipment.
Optionally, the apparatus further comprises:
an apparatus connecting unit 806, configured to modify an apparatus selection policy, set a remote audio mixing apparatus and the speaker as output apparatuses at the same time, and connect the remote audio mixing apparatus and the speaker through an apparatus connection interface.
Optionally, the apparatus further comprises:
a volume setting unit 807 for setting the volume of the mixer to the maximum volume;
and writing the audio data corresponding to the maximum volume into a second sound mixing thread of the remote sound mixing equipment.
Optionally, the volume setting unit 807 is further configured to:
acquiring the current playing volume of the audio data, and storing the playing volume into a temporary volume;
and writing the audio data corresponding to the current playing volume into a first sound mixing thread of the loudspeaker.
It is clear to a person skilled in the art that the solution according to the embodiments of the invention can be implemented by means of software and/or hardware. The "unit" and "module" in this specification refer to software and/or hardware that can perform a specific function independently or in cooperation with other components, where the hardware may be, for example, an FPGA (Field-Programmable Gate Array), an IC (Integrated Circuit), or the like.
Each processing unit and/or module according to the embodiments of the present invention may be implemented by an analog circuit that implements the functions described in the embodiments of the present invention, or may be implemented by software that executes the functions described in the embodiments of the present invention.
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the audio recording method. The computer-readable storage medium may include, but is not limited to, any type of disk including floppy disks, optical disks, DVD, CD-ROMs, microdrive, and magneto-optical disks, ROMs, RAMs, EPROMs, EEPROMs, DRAMs, VRAMs, flash memory devices, magnetic or optical cards, nanosystems (including molecular memory ICs), or any type of media or device suitable for storing instructions and/or data.
Referring to fig. 9, a schematic structural diagram of an electronic device according to an embodiment of the present invention is shown, where the electronic device may be used to implement the audio recording method provided in the foregoing embodiment. Specifically, the method comprises the following steps:
the memory 1020 may be used to store software programs and modules, and the processor 1080 executes various functional applications and data processing by operating the software programs and modules stored in the memory 1020. The memory 1020 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the terminal device, and the like. Further, the memory 1020 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, memory 1020 may also include a memory controller to provide access to memory 1020 by processor 1080 and input unit 1030.
The input unit 1030 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 1030 may include a touch-sensitive surface 1031 (e.g., a touch screen, a touchpad, or a touch frame). The touch-sensitive surface 1031, also referred to as a touch display screen or a touch pad, may collect touch operations by a user (such as operations by a user on or near the touch-sensitive surface 1031 using any suitable object or attachment, such as a finger, a stylus, etc.) on or near the touch-sensitive surface 1031 and drive the corresponding connection device according to a preset program. Optionally, the touch sensitive surface 1031 may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 1080, and can receive and execute commands sent by the processor 1080. In addition, the touch-sensitive surface 1031 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves.
The display unit 1040 may be used to display information input by or provided to a user and various graphical user interfaces of the terminal device, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 1040 may include a Display panel 1041, and optionally, the Display panel 1041 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch-sensitive surface 1031 may overlay the display panel 1041, and when a touch operation is detected on or near the touch-sensitive surface 1031, the touch operation is transmitted to the processor 1080 for determining the type of the touch event, and the processor 1080 then provides a corresponding visual output on the display panel 1041 according to the type of the touch event. Although in fig. 8, touch-sensitive surface 1031 and display panel 1041 are implemented as two separate components for input and output functions, in some embodiments, touch-sensitive surface 1031 may be integrated with display panel 1041 for input and output functions.
The processor 1080 is a control center of the terminal device, connects various parts of the whole terminal device by using various interfaces and lines, and executes various functions of the terminal device and processes data by operating or executing software programs and/or modules stored in the memory 1020 and calling data stored in the memory 1020, thereby monitoring the whole terminal device. Optionally, processor 1080 may include one or more processing cores; processor 1080 may integrate an application processor that handles operating system, user interfaces, applications, etc. and a modem processor that handles wireless communications. It is to be appreciated that the modem processor described above may not be integrated into processor 1080.
Specifically, in this embodiment, the display unit of the terminal device is a touch screen display, the terminal device further includes a memory and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include steps for implementing the audio recording method.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
All functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately used as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method for audio recording, the method comprising:
acquiring audio data to be recorded while recording a screen picture, and writing the audio data into a playback track;
writing the audio data from the playback track into a first audio mixing thread at the output end of a remote audio mixing device;
and automatically writing the audio data from the first audio mixing thread into the input end of the remote audio mixing equipment through the output end of the remote audio mixing equipment, and recording the audio data from the input end into an audio file of a recording screen through an audio recording track.
2. The method of claim 1, wherein after writing the audio data into a playback track, further comprising:
creating a double-path thread, and writing the audio data into the one-path thread of the double-path thread from the playback track to serve as a second sound mixing thread of the loudspeaker;
playing the audio data through the speaker.
3. The method of claim 2, wherein writing the audio data from the playback track to a first mixing thread at an output of a remote mixing device comprises:
and writing the audio data into the other thread of the two threads from the playback track as a first sound mixing thread at the output end of the remote sound mixing equipment.
4. The method of claim 3, wherein prior to creating the two-way thread, further comprising:
and modifying an equipment selection strategy, setting the remote sound mixing equipment and the loudspeaker as output equipment at the same time, and connecting the remote sound mixing equipment and the loudspeaker through an equipment connecting interface.
5. The method of claim 1, further comprising:
setting the volume of the mixer to be the maximum volume;
and writing the audio data corresponding to the maximum volume into a second sound mixing thread of the remote sound mixing equipment.
6. The method of claim 5, further comprising:
acquiring the current playing volume of the audio data, and storing the playing volume into a temporary volume;
and writing the audio data corresponding to the current playing volume into a first audio mixing thread of a loudspeaker.
7. An audio recording apparatus, comprising:
the track writing unit is used for acquiring audio data to be recorded while recording the screen picture and writing the audio data into a playback track;
a first thread writing unit, configured to write the audio data from the playback track into a first audio mixing thread at an output end of a remote audio mixing device;
and the data recording unit is used for automatically writing the audio data from the first audio mixing thread into the input end of the remote audio mixing equipment through the output end of the remote audio mixing equipment, and recording the audio data from the input end into an audio file of a recording screen through an audio recording track.
8. The apparatus of claim 7, further comprising:
the second thread writing unit is used for creating a double-path thread, and writing the audio data into one path of thread of the double-path thread from the playback track to serve as a second sound mixing thread of the loudspeaker;
and the data playing unit is used for playing the audio data through the loudspeaker.
9. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 6.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1-6 are implemented when the program is executed by the processor.
CN202010142589.4A 2020-03-04 2020-03-04 Audio recording method, device, storage medium and related equipment Active CN111402933B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010142589.4A CN111402933B (en) 2020-03-04 2020-03-04 Audio recording method, device, storage medium and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010142589.4A CN111402933B (en) 2020-03-04 2020-03-04 Audio recording method, device, storage medium and related equipment

Publications (2)

Publication Number Publication Date
CN111402933A CN111402933A (en) 2020-07-10
CN111402933B true CN111402933B (en) 2022-01-21

Family

ID=71430483

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010142589.4A Active CN111402933B (en) 2020-03-04 2020-03-04 Audio recording method, device, storage medium and related equipment

Country Status (1)

Country Link
CN (1) CN111402933B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112153456B (en) * 2020-09-25 2023-03-28 北京达佳互联信息技术有限公司 Video data recording method and device, electronic equipment and storage medium
CN113079332B (en) * 2021-03-16 2023-04-07 青岛海信移动通信技术股份有限公司 Mobile terminal and screen recording method thereof

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104424022A (en) * 2013-08-30 2015-03-18 腾讯科技(深圳)有限公司 Screen recording method and device
CN105578224A (en) * 2014-11-10 2016-05-11 阿里巴巴集团控股有限公司 Multimedia data acquisition method, device, smart television and set-top box
US9479727B1 (en) * 2015-07-15 2016-10-25 Nice-Systems Ltd. Call recording with screen and audio correlation
CN106708612A (en) * 2015-11-18 2017-05-24 中兴通讯股份有限公司 Audio recording realization method and terminal
CN107301035A (en) * 2016-04-15 2017-10-27 中兴通讯股份有限公司 A kind of audio sync recording-reproducing system and method based on android system
CN110166723A (en) * 2019-04-02 2019-08-23 广州虎牙信息科技有限公司 It is a kind of to record the audio and video synchronization method in shielding, electronic equipment, storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7245727B2 (en) * 2001-09-28 2007-07-17 Jonathan Cresci Remote controlled audio mixing console
CN106331306A (en) * 2015-06-30 2017-01-11 宇龙计算机通信科技(深圳)有限公司 Call recording method and screencap recording method and apparatus
EP3488439B1 (en) * 2016-07-22 2021-08-11 Dolby Laboratories Licensing Corporation Network-based processing and distribution of multimedia content of a live musical performance
US10825480B2 (en) * 2017-05-31 2020-11-03 Apple Inc. Automatic processing of double-system recording
CN107483993B (en) * 2017-07-14 2021-04-09 深圳Tcl新技术有限公司 Voice input method of television, television and computer readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104424022A (en) * 2013-08-30 2015-03-18 腾讯科技(深圳)有限公司 Screen recording method and device
CN105578224A (en) * 2014-11-10 2016-05-11 阿里巴巴集团控股有限公司 Multimedia data acquisition method, device, smart television and set-top box
US9479727B1 (en) * 2015-07-15 2016-10-25 Nice-Systems Ltd. Call recording with screen and audio correlation
CN106708612A (en) * 2015-11-18 2017-05-24 中兴通讯股份有限公司 Audio recording realization method and terminal
CN107301035A (en) * 2016-04-15 2017-10-27 中兴通讯股份有限公司 A kind of audio sync recording-reproducing system and method based on android system
CN110166723A (en) * 2019-04-02 2019-08-23 广州虎牙信息科技有限公司 It is a kind of to record the audio and video synchronization method in shielding, electronic equipment, storage medium

Also Published As

Publication number Publication date
CN111402933A (en) 2020-07-10

Similar Documents

Publication Publication Date Title
US20220124254A1 (en) Device, Method, and Graphical User Interface for Accessing an Application in a Locked Device
US10606540B2 (en) Device having a screen region on a hinge coupled between other screen regions
US9483110B2 (en) Adaptive media file rewind
US9007524B2 (en) Techniques and apparatus for audio isolation in video processing
KR101811219B1 (en) Method and apparatus for controlling a portable terminal using a finger tracking
KR102064952B1 (en) Electronic device for operating application using received data
KR102060155B1 (en) Method and apparatus for controlling multi-tasking in electronic device using double-sided display
WO2020108339A1 (en) Page display position jump method and apparatus, terminal device, and storage medium
WO2021018211A1 (en) Display method and electronic device
US20160163331A1 (en) Electronic device and method for visualizing audio data
TW201510844A (en) Method in electronic device, computer program product and non-transitory computer readable recording medium
KR20140050916A (en) Electronic device with microphone device and method for operating the same
CN111402933B (en) Audio recording method, device, storage medium and related equipment
WO2020088118A1 (en) Electronic apparatus and method employing mobile device and display device to display duplicate screens
US9798462B2 (en) Display control apparatus, display control method, and computer program
US9417724B2 (en) Electronic apparatus
US9402129B2 (en) Audio control method and audio player using audio control method
RU2677582C2 (en) Binding apparatus to computing device
KR20140020564A (en) Apparatas and method for recognition distinguish infrared ray light soure with around reflected light
US9857910B2 (en) Method for controlling multiple touchscreens and electronic device
US20180203725A1 (en) Method and controlling apparatus for controlling an application of an electronic apparatus
US20090106463A1 (en) Information processing apparatus method for processing data
US9767194B2 (en) Media file abbreviation retrieval
JP6392051B2 (en) Electronic device, method and program
KR20150029328A (en) Method for controlling content in mobile electronic device

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