Audio data recording method and system and terminal equipment

A technology of audio data and audio, applied in the field of systems and terminal equipment, and audio data recording methods, can solve problems such as users being unable to hear sound

Pending Publication Date: 2020-07-07
UBTECH ROBOTICS CORP LTD
View PDF4 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In view of this, the embodiment of the present invention provides an audio data recording method, system and terminal equipment to solve the problem that the user cannot hear the sound from the standard output device when recording the audio data played by the system

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Audio data recording method and system and terminal equipment
  • Audio data recording method and system and terminal equipment
  • Audio data recording method and system and terminal equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0044] like figure 1 As shown, the present embodiment provides a method for recording audio data, which specifically includes:

[0045] Step S101: Identify the recording object according to the recording instruction of the client.

[0046] In a specific application, the recording object includes audio data input through a standard input device (such as a microphone) and audio data played by the client. The client identifies the recording object by obtaining the recording instruction issued by the recording application program installed in the terminal device. It should be noted that the recording instruction above includes a recording object.

[0047] In a specific application, the above-mentioned client is an audio recording client AudioRecord, and when the client AudioRecord recognizes that the recording object is the audio data played within the recording system, the specified input source is MediaRecorder.AudioSource.REMOTE_SUBMIX. Specifically, when it is recognized th...

Embodiment 2

[0070] like image 3 As shown, in this embodiment, step S103 in Embodiment 1 specifically includes:

[0071] Step S201: Control the server to start the first playback thread, and write audio data to the channel of the first playback thread through the audio playback client.

[0072] In a specific application, the control server AudioPolicyService starts the first playback thread, and writes audio data into the channel of the first playback thread through the audio playback client AudioTrack. It should be noted that each playback thread has its corresponding channel through which data transmission is performed.

[0073] Step S202: Transmit the audio data to the audio hardware abstraction layer through the channel of the first playback thread.

[0074] In a specific application, the audio data is correspondingly transmitted to the audio hardware abstraction layer supporting the standard output device through the channel of the first playback thread.

[0075] Step S203: Contro...

Embodiment 3

[0078] like Figure 4 As shown, in this embodiment, step S104 in Embodiment 1 specifically includes:

[0079] Step S301: Control the server to start the second playback thread, and write audio data to the channel of the second playback thread through the audio playback client.

[0080] In a specific application, the control server AudioPolicyService starts the second playback thread PlaybackThread2, and writes audio data into the channel of the second playback thread through the audio playback client AudioTrack.

[0081] Step S302: Create a buffer area in the audio hardware abstraction layer.

[0082] In a specific application, corresponding to the audio data to be stored, a buffer area (buffer storage space) is created at the audio hardware abstraction layer that supports internal recording output.

[0083] In a specific application, a buffer area capable of accommodating the audio data is created according to the required storage space of the audio data.

[0084] Step S30...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention belongs to the technical field of electronics and provides an audio data recording method and system, and terminal equipment. The method comprises the steps that: a recording object is recognized according to the recording instruction of a client; if the recording object is audio data played by the client, copy playing threads which comprise a first playing thread and a second playing thread are created; a server is controlled to start the first playing thread, and the audio data are played through a standard output device; the server is controlled to start the second playing thread, and the played audio data are stored into an audio hardware abstraction layer; and a recording thread is started through the server, and the client is controlled o obtain the audio data stored inthe audio hardware abstraction layer. With the method adopted, a user can hear the played sound, and meanwhile, the audio data are outputted to the audio hardware abstraction layer through the secondplaying thread, so that when the recording thread is started, the client can acquire the audio data from the audio hardware abstraction layer.

Description

technical field [0001] The invention belongs to the field of electronic technology, and in particular relates to an audio data recording method, system and terminal equipment. Background technique [0002] The recording function generally refers to the function of obtaining audio data from a standard input device such as a microphone and saving the audio data. At present, the Android system provides an audio data recording method, which can record the audio data being played in the system (that is, the audio data not obtained from a standard input device such as a microphone), but there is a defect in this method, that is, when recording the audio data being played , the system will stop the playback thread of the audio on the standard output device (such as speakers, headphones), resulting in the user being unable to hear the sound from the standard output device when recording the audio data played by the system. [0003] To sum up, currently there is a problem that the u...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F9/50G06F9/54G06F3/16
CPCG06F9/5027G06F9/545G06F3/162G06F2209/5018
Inventor 熊友军潘宇超
Owner UBTECH ROBOTICS CORP LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products