Recording method and apparatus, and device and medium
By allocating multiple storage spaces and storing audio signals for the microphones of XR head-mounted displays, the problem of microphone resource contention and locking when multiple applications record simultaneously is solved, enabling each application to successfully acquire recording data.
Patent Information
- Application Number
- PCT/CN2025/090306
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-07-24
- Filing Date
- 2025-04-22
- Publication Date
- 2026-01-29
AI Technical Summary
On XR head-mounted display devices, when multiple applications need to access the microphone for recording at the same time, the first application to access the microphone will lock the microphone, preventing other applications from requesting its use until the first application releases the microphone, at which point other applications can successfully request the microphone.
Upon receiving a recording request, a first storage space is requested and the microphone is turned on. A corresponding second storage space is allocated to each application. The audio signal collected by the microphone is stored in the first storage space, and its sub-audio signals are stored in the corresponding second storage space, ensuring that each application can independently read its recording data.
This invention enables each application to successfully acquire its recording data when multiple applications simultaneously access the microphone of an XR head-mounted display device for recording. This solves the problem of microphone resource contention and lock-in, ensuring the recording requirements of multi-tasking processing.
Smart Images

Figure CN2025090306_29012026_PF_FP_ABST
Abstract
Description
Audio recording method, device, equipment and medium
[0001] The present application claims priority to the Chinese patent application No. 202411000913.3, filed on July 24, 2024, and entitled "Audio recording method, device, equipment and medium", the content of which is incorporated herein by reference in its entirety. TECHNICAL FIELD
[0002] The present application relates to the technical field of computer, more particularly, to an audio recording method, device, equipment and medium. BACKGROUND
[0003] Currently, when a user uses an XR head-mounted display device such as AR, VR, MR, etc., multiple applications can be opened simultaneously in a virtual space, each of which runs independently on a virtual screen of the XR head-mounted display device and remains active. In this way, the user can, for example, browse news while playing a video, or perform other operations.
[0004] However, when multiple applications need to call the microphone of the XR head-mounted display device for recording, the first application that calls the microphone will lock the microphone, and other applications cannot request to use it until the first application releases the microphone, and other applications can successfully request the microphone. For example, the user is using a communication application for video call, and also calls an AI assistant application to open a memo, at this time, because the communication application always locks the microphone, the AI assistant application cannot receive the user's voice about opening the memo through the microphone. SUMMARY
[0005] An object of the present application is to provide a new technical solution for audio recording.
[0006] According to a first aspect of the present application, there is provided an audio recording method, comprising:
[0007] In the case where an audio recording request is received from at least one application program, a first storage space is applied for and a microphone is turned on;
[0008] For each audio recording request sent by the application program, a second storage space corresponding to the application program is applied for;
[0009] The audio signal collected by the microphone is stored in the first storage space;
[0010] The sub-audio signal belonging to each application program in the first storage space is stored in the corresponding second storage space.
[0011] Optionally, the recording request at least includes an audio data format required by a corresponding application program, and the method further comprises the following steps after the step of applying for the second storage space corresponding to the application program for the recording request sent by any of the application programs:
[0012] For any of the second storage spaces, the audio data format included in the corresponding recording request is stored into the second storage space;
[0013] The step of storing the sub-audio signals belonging to each of the application programs in the first storage space into the corresponding second storage space comprises the following steps:
[0014] For any of the second storage spaces, the audio data format included in the corresponding recording request is stored into the second storage space;
[0015] The step of processing the sub-audio signals belonging to the application program corresponding to the second storage space in the first storage space according to the audio data format to obtain processed sub-audio signals comprises the following steps:
[0016] The step of sending the processed sub-audio signals to the corresponding second storage space comprises the following steps:
[0017] Optionally, the recording request at least includes an audio data format required by a corresponding application program, and the method further comprises the following steps after the step of applying for the second storage space corresponding to the application program for the recording request sent by any of the application programs:
[0018] For the second storage space corresponding to the second recording request, the audio data format included in the second recording request is stored into the second storage space, the second recording request is a recording request other than the first recording request in the recording request, and the first recording request is the recording request received first;
[0019] The step of storing the audio signal collected by the microphone into the first storage space comprises the following steps:
[0020] The step of storing the audio signal collected by the microphone into the first storage space according to the audio data format included in the first recording request comprises the following steps:
[0021] The step of storing the sub-audio signals belonging to each of the application programs in the first storage space into the corresponding second storage space comprises the following steps:
[0022] For any second storage space corresponding to the second recording request, read audio data format from the second storage space, process the sub-audio signal belonging to the second storage space corresponding to the application program in the first storage space according to the read audio data format, obtain a processed sub-audio signal, and send the processed sub-audio signal to the corresponding second storage space.
[0023] Send the sub-audio signal belonging to the application program corresponding to the first recording request in the first storage space to the corresponding second storage space.
[0024] Optionally, the first storage space is applied in the case that the recording request sent by at least one application program is received, and the method further comprises:
[0025] The first storage space is applied according to the first recording request in the case that the recording request sent by at least one application program is received, and the first recording request is the first received recording request.
[0026] Optionally, the method further comprises:
[0027] For any second storage space, send the sub-audio signal stored in the second storage space to the corresponding application program.
[0028] Optionally, the method further comprises:
[0029] In the case that the recording end request sent by any application program is received, release the second storage space corresponding to the application program.
[0030] And / or, in the case that the recording end request sent by all the application programs is received, close the microphone and release the first storage space.
[0031] Optionally, before the first storage space is applied and the microphone is started in the case that the recording request sent by at least one application program is received, the method further comprises:
[0032] For at least one application program, receive the current display image data of the application program sent by a terminal device in communication connection;
[0033] According to the display position corresponding to the terminal device, display the current display image data at the display position.
[0034] According to a second aspect of the present application, a recording device is provided, comprising:
[0035] An application module is configured to apply a first storage space in the case that a recording request sent by at least one application program is received;
[0036] The opening module is configured to open the microphone upon receiving a recording request sent by at least one application.
[0037] The storage module is configured to store the audio signal collected by the microphone into the first storage space, and store the sub-audio signal belonging to each application in the first storage space into the corresponding second storage space.
[0038] According to a third aspect of the present application, an electronic device is provided, which comprises the apparatus according to the second aspect; or,
[0039] The electronic device comprises a memory and a processor, wherein the memory is configured to store computer instructions, and the processor is configured to invoke the computer instructions from the memory to execute the method according to any one of the first aspect.
[0040] According to a fourth aspect of the present application, a computer readable storage medium is provided, which stores a computer program, and the computer program is configured to implement the method according to any one of the first aspect when executed by a processor.
[0041] The present application provides a recording method, which comprises: upon receiving a recording request sent by at least one application, applying for a first storage space and opening a microphone; for a recording request sent by any application, applying for a second storage space corresponding to the application; storing the audio signal collected by the microphone into the first storage space; and storing the sub-audio signal belonging to each application in the first storage space into the corresponding second storage space. Based on the method, different applications can send a recording request to the electronic device, and the electronic device can successfully respond to the recording request of different applications, so that different applications can read the corresponding sub-audio signal. This solves the problem that when multiple applications need to call the microphone on the XR head-mounted display device for recording, the first application that calls the microphone will lock the microphone, and other applications cannot request to use the microphone until the first application releases the microphone, and other applications can successfully request the microphone.
[0042] Other features and advantages of the present application will become apparent from the following detailed description of exemplary embodiments thereof, taken in conjunction with the accompanying drawings. BRIEF DESCRIPTION OF DRAWINGS
[0043] The accompanying drawings incorporated in and forming a part of the specification, illustrate embodiments of the present application and, together with the description, serve to explain the principles of the application.
[0044] FIG. 1 is a block diagram of a hardware configuration of an electronic device for implementing a recording method according to an embodiment of the present application;
[0045] Fig. 2 is a flow diagram of a method for recording according to an embodiment of the present application;
[0046] Fig. 3 is a flow diagram of a method for recording according to another embodiment of the present application;
[0047] Fig. 4 is a structural diagram of a recording device according to an embodiment of the present application;
[0048] Fig. 5 is a block diagram of a hardware configuration of an electronic device for implementing a recording method according to an embodiment of the present application.
[0049] The implementation, functional features and advantages of the present application will be further described with reference to the embodiments and the accompanying drawings. DETAILED DESCRIPTION
[0050] The technical solutions in the embodiments of the present application will be clearly and completely described with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, but not all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work fall within the scope of protection of the present application.
[0051] It should be noted that if the embodiments of the present application involve directional indications (such as up, down, left, right, front, back, etc.), the directional indications are only used to explain the relative position relationship, movement condition, etc. between the components in a certain posture (as shown in the drawings), and if the certain posture changes, the directional indications will also change accordingly.
[0052] In addition, if the embodiments of the present application involve descriptions of "first", "second", etc., the descriptions of "first", "second", etc. are only for description purposes, and cannot be understood as indicating or implying the relative importance of the indicated technical features or implicitly indicating the number of the indicated technical features. Therefore, the features limited by "first" and "second" can explicitly or implicitly include at least one of the features. In addition, the meaning of "and / or" appearing throughout the text includes three parallel solutions. Taking "A and / or B" as an example, it includes A solution, or B solution, or A and B solutions. In addition, the technical solutions of each embodiment can be combined with each other, but it must be based on the realization of those skilled in the art, and when the combination of technical solutions appears contradictory or unachievable, it should be considered that the combination of technical solutions does not exist, and is not within the scope of protection claimed by the present application.
[0053] Fig. 1 is a block diagram of a hardware configuration of an electronic device for implementing a recording method according to an embodiment of the present application. The electronic device 1000 is exemplarily a head-mounted display device (such as AR, MR, VR, etc. XR glasses, a helmet, etc.), a smartphone, a notebook computer, a tablet computer, etc.
[0054] The electronic device 1000 can include a processor 1100, a memory 1200, an interface unit 1300, a communication unit 1400, a display unit 1500, an input unit 1600, a speaker 1700, a microphone 1800, etc. The processor 1100 can be a central processing unit (CPU), a micro processing unit (MCU), etc. The memory 1200 can include, for example, a ROM (read only memory), a RAM (random access memory), a nonvolatile memory such as a hard disk, etc. The interface unit 1300 can include, for example, a USB interface, a headphone interface, etc. The communication unit 1400 can perform wired or wireless communication, for example. The display unit 1500 can be, for example, a liquid crystal display, a touch display, etc. The input unit 1600 can include, for example, a touch screen, a key, etc. A user can input / output voice information through the speaker 1700 and the microphone 1800.
[0055] Although the electronic device 1000 is shown as including a plurality of units in Fig. 1, the present application can relate to only a part of the units, for example, the electronic device 1000 can relate to only the memory 1200 and the processor 1100.
[0056] The memory 1200 of the electronic device 1000 according to an embodiment of the present application can store instructions for controlling the processor 1100 to perform a recording method according to an embodiment of the present application.
[0057] In the above description, a skilled person can design the instructions according to the disclosed scheme. How the instructions control the processor to operate is known in the art, and thus will not be described in detail herein.
[0058] In the conventional technology, in a case where an application A sends a recording request to an electronic device, the electronic device only applies for a storage space and turns on a microphone. Further, after storing an audio signal a for a voice input to the application A, which is collected by the microphone, to the storage space, the application A directly reads the audio signal a from the storage space. This makes other applications B fail to send a recording request to the electronic device, and audio signals b for voices input by a user to the other applications B are all stored in the storage space applied for by the electronic device for the application A, and are further read by the application A. That is, in the conventional technology, the other applications B cannot read the audio signals b for the voices input by the user to the other applications B.
[0059] To solve the above problems, the application provides a recording method as shown in FIG. 2, which comprises the following steps S2100 to S2400.
[0060] Step S2100, in the case of receiving a recording request sent by at least one application, applying for a storage space and starting a microphone.
[0061] In the embodiment, the application in step S2100 can be an application running in an electronic device for executing the recording method provided by the application, and can also be an application running in a terminal device connected with the electronic device. For the latter, the electronic device is, for example, an XR glasses, and the application is an application running in a smart phone connected with the XR glasses and displayed in a virtual space created by the XR glasses. In this regard, in an embodiment of the application, the method provided by the application further comprises the following steps S2110 and S2111 before step S2100.
[0062] Step S2110, for at least one application, receiving the current display image data of the application sent by the terminal device connected in communication.
[0063] Step S2111, according to the display position corresponding to the terminal device, displaying the current display image data at the display position.
[0064] In the embodiment, the display screen of the electronic device is planned as a plurality of display positions, and one display position corresponds to one terminal device connected with the electronic device. After receiving the current display image data of the application sent by one terminal device, the current display image data is displayed at the display position corresponding to the terminal device. In this way, the user can view the current display image data corresponding to the application on the electronic device, thereby providing a basis for the user to provide voice input.
[0065] Further, it can be understood that at the same time, the user using the electronic device for executing the recording method provided by the application can only speak the voice for one application. Therefore, in the embodiment, there is only one application sending a recording request to the electronic device at the same time. That is, the recording request in step S2100 is received by the electronic device at different times. For any recording request, the recording request can include sampling rate, channel number, bit number, application identifier, etc.
[0066] For the step S2100, in the case that the recording request sent by at least one application is received, it is indicated that there is a recording demand. At this time, the microphone is turned on, and the audio signal collected by the microphone is stored in a first storage space.
[0067] In an embodiment of the present application, the size of the first storage space can be specifically a preset bit number.
[0068] For the step S2200, for any recording request sent by an application, a second storage space corresponding to the application is applied.
[0069] In the embodiment, in the case that a recording request sent by an application is received, a second storage space corresponding to the application sending the recording request is applied. The second storage space is used to store the sub-audio signal of the user for the application corresponding to the recording request.
[0070] It should be noted that in the present application, the application, the recording request and the second storage space have a one-to-one correspondence.
[0071] For the step S2300, the audio signal collected by the microphone is stored in the first storage space.
[0072] For the step S2400, the sub-audio signal of each application in the first storage space is stored in the corresponding second storage space.
[0073] In the embodiment, in the case that the microphone is turned on, the audio signal collected by the microphone is first stored in the first storage space. It can be understood that the first storage space includes the sub-audio signal of the voice of the user for the application corresponding to the different recording requests. Further, the sub-audio signal of the voice of the user for the application corresponding to the different recording requests in the first storage space is sent to the corresponding second storage space. On this basis, the application reads the sub-audio signal from the corresponding second storage space, and the sub-audio signal of the voice of the user for the application can be obtained. In this way, each application can read the audio signal of the voice of the user for the application. Therefore, based on the steps S2100 to S2400, different applications can send a recording request to the electronic device, and the electronic device can successfully respond to the recording request of different applications, so that different applications can read the corresponding sub-audio signal. This solves the problem that when multiple applications need to call the microphone on the XR head-mounted display device for recording, the first application calling the microphone will lock the microphone, and other applications cannot request to use the microphone until the first application releases the microphone, and other applications can successfully request the microphone.
[0074] For the above steps S2100 to S2400, in one example, the application A first sends a recording request 1 to the electronic device, at this time, the electronic device opens the microphone, applies a first storage space, and applies a second storage space I. During the opening of the microphone, the microphone stores the sub-audio signal a of the voice input by the user to the application A into the first storage space. Further, the application B sends a recording request 2 to the electronic device again, at this time, the electronic device applies a second storage space II, and the microphone stores the sub-audio signal b of the voice input by the user to the application B into the first storage space. Further, the electronic device stores the sub-audio signal a in the first storage space into the second storage space I, and stores the sub-audio signal b in the first storage space into the second storage space II.
[0075] The present application provides a recording method, comprising: in the case of receiving a recording request sent by at least one application, applying a first storage space and opening a microphone; for any recording request sent by an application, applying a second storage space corresponding to the application; storing the audio signal collected by the microphone into the first storage space; storing the sub-audio signal belonging to each application in the first storage space into the corresponding second storage space. Based on the method, different applications can send a recording request to the electronic device, the electronic device can successfully respond to the recording request of different applications, so that different applications can read the corresponding sub-audio signal. This solves the problem that when multiple applications need to call the microphone on the XR head-mounted display device for recording, the first application that calls the microphone will lock the microphone, other applications cannot request to use it until the first application releases the microphone, and other applications can successfully request the microphone.
[0076] In one embodiment of the present application, on the basis of the above steps S2100 to S2400, the recording method provided by the present application further comprises the following step S2500.
[0077] Step S2500, for any second storage space, sending the sub-audio signal stored in the second storage space to the corresponding application.
[0078] Based on the above step S2500, each application that sends a recording request can read the sub-audio signal of the voice input by the user.
[0079] In one embodiment of the present application, the above step S2400 is specifically implemented by the following two ways.
[0080] In the first mode, the audio recording request includes at least an audio data format required by the corresponding application. Based on this, the audio recording method further includes the following step S2210 after step S2200.
[0081] In step S2210, for any second storage space, the audio data format included in the corresponding audio recording request is stored in the second storage space.
[0082] In this embodiment, after the second storage space is applied, the audio data format included in the corresponding audio recording request is stored in the second storage space.
[0083] Based on step S2210, step S2400 is implemented through the following steps S2410 to S2412.
[0084] In step 2410, for any second storage space, the audio data format is read from the second storage space.
[0085] In this embodiment, the audio data format is stored in the second storage space. Based on this, the audio data format can be directly read from the second storage space.
[0086] In step S2411, the sub-audio signal in the first storage space belonging to the application program corresponding to the second storage space is processed according to the audio data format, and a processed sub-audio signal is obtained.
[0087] It should be noted that the processing in step S2411 specifically refers to decoding into original data and then encoding according to the read audio data format.
[0088] In step S2412, the processed sub-audio signal is sent to the corresponding second storage space.
[0089] For the steps S2410 to S2412, in one example, the first storage space stores the sub-audio signal a of the voice input by the user for the program A and the sub-audio signal b of the voice input by the user for the program B, and the electronic device applies the second storage space I for the application program A and the second storage space II for the application program B, the second storage space I stores the audio data format one, and the second storage space II stores the audio data format two. On this basis, the audio data format one required by the application program A is read from the second storage space I, the sub-audio signal a in the first storage space is processed according to the audio data format one to process it into the audio signal (i.e. the processed sub-audio signal a) of the audio data format one, and then stored in the second storage space I. And the audio data format two required by the application program B is read from the second storage space II, the sub-audio signal b in the first storage space is processed according to the audio data format two to process it into the audio signal (i.e. the processed sub-audio signal b) of the audio data format two, and then stored in the second storage space II. On this basis, the application program A can read the audio signal of the data format one required by itself from the second storage space I, and the application program B can read the audio signal of the data format two required by itself from the second storage space II. At this time, the application program A and the application program B do not need to process the audio signal.
[0090] In the embodiment, based on the steps S2410 to S2412, the sub-audio signal of the audio data format required by the corresponding application program can be stored in the second storage space. In this way, the application program can directly read and use without processing the audio signal.
[0091] For the second mode, the recording request at least includes the audio data format required by the corresponding application program, and the recording method provided by the embodiment of the application further includes the following step S2220 after the step S2200.
[0092] In the step S2220, for the second storage space corresponding to the second recording request, the audio data format included in the second recording request is stored in the second storage space, and the second recording request is the recording request other than the first recording request in the recording request, and the first recording request is the first received recording request.
[0093] In the embodiment, the first received recording request is recorded as the first recording request, and the recording request received after the first recording request is recorded as the second recording request. And only the audio data format included in the second recording request is stored in the corresponding second storage space, and the audio data format included in the first recording request is not stored in the corresponding second storage space.
[0094] Further, the step S2300 is implemented by the following step S2310.
[0095] In the step S2310, the audio signal collected by the microphone is stored in the first storage space according to the audio data format included in the first recording request.
[0096] In the embodiment, since the data format of the audio signal in the first storage space is the audio data format included in the first recording request, it is not necessary to store the audio data format included in the first recording request in the corresponding second storage space. It is only necessary to send the sub-audio signal belonging to the application program corresponding to the first recording request in the first storage space to the corresponding second storage space, and the second storage space can obtain the sub-audio signal of the audio data format required by the application program. On this basis, the step S2400 is implemented by the following steps S2420 and S2421.
[0097] In the step S2420, for any second recording request corresponding second storage space, the audio data format is read from the second storage space, the sub-audio signal belonging to the application program corresponding to the second storage space in the first storage space is processed according to the read audio data format to obtain the processed sub-audio signal, and the processed sub-audio signal is sent to the corresponding second storage space.
[0098] In the step S2421, the sub-audio signal belonging to the application program corresponding to the first recording request in the first storage space is sent to the corresponding second storage space.
[0099] For the steps S2420 to S2421, in one example, the application A first sends the electronic device a recording request 1, at this time, the electronic device takes the recording request 1 as a first recording request, opens the microphone, applies a first storage space which can at least meet the size required by the application A according to the recording request 1, and applies a second storage space I which can meet the size required by the application A. During the opening of the microphone, the microphone collects a sub-audio signal a of the voice input by the user to the application A. The electronic device processes the sub-audio signal a according to the audio data format one in the recording request 1, and stores the processed sub-audio signal a into the first storage space. Further, the application B sends the electronic device a recording request 2 again, at this time, the electronic device takes the recording request 2 as a second recording request, and applies a second storage space II which can meet the size required by the application B, and stores the audio data format two included in the recording request 2 in the second storage space II. The electronic device processes a sub-audio signal b of the voice input by the user to the application B according to the audio data format one in the recording request 1, and stores the processed sub-audio signal b into the first storage space. Further, the electronic device directly stores the sub-audio signal a in the first storage space into the second storage space I, and reads the audio data processing format two from the second storage space II, processes the sub-audio signal b in the first storage space according to the audio data processing format two, and stores the processed sub-audio signal b into the second storage space II.
[0100] In one embodiment of the present application, the step S2100 is implemented by the following step S2120.
[0101] Step S2120, in the case of receiving a recording request sent by at least one application, applying a first storage space according to a first recording request.
[0102] The first recording request is the first received recording request.
[0103] In this embodiment, the first received recording request is recorded as the first recording request.
[0104] In this embodiment, a storage space which can at least meet the size required by the application sending the first recording request is applied according to the first recording request, as the first storage space, so that the first storage space can at least store the audio signal of the voice input by the user to the application corresponding to the first recording request.
[0105] In one embodiment of the present application, the recording method provided by the present application further includes the following steps S2600 and / or step 2700.
[0106] Step S2600, in the case of receiving the recording end request sent by any application program, releasing the second storage space corresponding to the application program.
[0107] Step S2700, in the case of receiving the recording end request sent by all application programs, closing the microphone and releasing the first storage space.
[0108] In the embodiment, in the case of receiving the recording end request sent by any application program, the second storage space corresponding to the application program is released, so that the resource of the second storage space is released, and unnecessary occupation of the storage space in the electronic device is avoided.
[0109] In addition, in the case of receiving the recording end request sent by all application programs which have sent the recording request, the first storage space is released, so that the resources of the first storage space and all the second storage spaces are released, and unnecessary occupation of the storage space in the electronic device is avoided. Meanwhile, in the case of receiving the recording end request sent by all application programs which have sent the recording request, the microphone is closed, so that unnecessary occupation of the microphone is avoided.
[0110] On the basis of the above, the program voice implementation mode of the recording method provided by the application can be specifically shown in FIG. 3. APP1 first sends a recording request to the electronic device, the electronic device calls the AudioRecord function according to the recording request, the AudioRecord function starts the microphone, applies the Sample Buffer as the first storage space, and applies the APP1 Buffer as the second storage space. The microphone stores the audio signal collected for APP1 into the Sample Buffer. APP2 continues to send a recording request to the electronic device, the electronic device continues to call the AudioRecord function according to the recording request sent by APP2, and the AudioRecord function applies the APP2 Buffer as the second storage space. Further, the microphone stores the audio signal collected for APP2 into the Sample Buffer. Still further, the sub-audio signal belonging to APP1 in the Sample Buffer is stored into the APP1 Buffer, and the sub-audio signal belonging to APP2 in the Sample Buffer is stored into the APP2 Buffer. The sub-audio signal in the APP1 Buffer is sent to APP1, and the sub-audio signal in the APP2 Buffer is sent to APP2.
[0111] The application further provides a recording device 400, as shown in FIG. 4, which comprises:
[0112] The application module 410 is configured to apply a first storage space when receiving a recording request sent by at least one application program;
[0113] The starting module 420 is configured to start the microphone when receiving the recording request sent by the at least one application program.
[0114] The storage module 430 is configured to store the audio signal collected by the microphone into the first storage space, and store the sub-audio signal belonging to each application program in the first storage space into a corresponding second storage space.
[0115] In an embodiment of the present application, the recording request at least includes an audio data format required by a corresponding application program, and the storage module 430 is further configured to: for any second storage space, store the audio data format included in the corresponding recording request into the second storage space.
[0116] And, specifically for any second storage space, read the audio data format from the second storage space.
[0117] According to the audio data format, process the sub-audio signal belonging to the application program corresponding to the second storage space in the first storage space, to obtain a processed sub-audio signal.
[0118] Send the processed sub-audio signal to the corresponding second storage space.
[0119] In an embodiment of the present application, the recording request at least includes an audio data format required by a corresponding application program, and the storage module 430 is further configured to: for a second storage space corresponding to a second recording request, store the audio data format included in the corresponding second recording request into the second storage space, the second recording request being a recording request other than a first recording request in the recording request, and the first recording request being the first received recording request.
[0120] And, specifically for any second storage space, read the audio data format from the second storage space.
[0121] According to the audio data format, process the sub-audio signal belonging to the application program corresponding to the second storage space in the first storage space, to obtain a processed sub-audio signal.
[0122] send the sub-audio signals belonging to the application program corresponding to the first recording request in the first storage space to a corresponding second storage space.
[0123] In an embodiment of the present application, the application module 410 is specifically configured to: in the case of receiving a recording request sent by at least one application program, apply a first storage space according to a first recording request, the first recording request being the first received recording request.
[0124] In an embodiment of the present application, the recording device 400 provided by the present application further comprises:
[0125] The sending module is configured to send the sub-audio signals stored in any second storage space to the corresponding application program.
[0126] In an embodiment of the present application, the recording device 400 provided by the present application further comprises:
[0127] The releasing module is configured to release the second storage space corresponding to any application program in the case of receiving a recording end request sent by the application program.
[0128] And / or, in the case of receiving a recording end request sent by all the application programs, the microphone is closed and the first storage space is released.
[0129] The present application also provides an electronic device 500, which comprises any one of the recording devices 400 provided by any one of the device embodiments described above.
[0130] Or, as shown in FIG. 5, the electronic device 500 comprises a memory 510 and a processor 520, the memory 510 is configured to store computer instructions, and the processor 520 is configured to call the computer instructions from the memory 510 to execute the method described in any one of the above method embodiments.
[0131] The present application also provides a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to implement the method according to any one of the above method embodiments.
[0132] The present application can be a system, a method, and / or a computer program product. The computer program product can include a computer readable storage medium having computer readable program instructions stored therein, and the computer readable program instructions are used to cause a processor to implement various aspects of the present application.
[0133] Computer readable storage media can be tangible storage media which can retain and store instructions for use by an instruction execution device. Computer readable storage media can be, for example, but is not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of computer readable storage media include the following: a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), a static random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanically encoded device such as punch-cards or raised structures in a groove having instructions recorded thereon, and any suitable combination of the foregoing. A computer readable storage medium, as used herein, is not to be construed as being transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission media (e.g., light pulses passing through a fiber-optic cable), or electrical signals transmitted through a wire.
[0134] Computer readable program instructions described herein can be downloaded to respective computing / processing devices from a computer readable storage medium or to an external computer or external storage device via a network, for example, the Internet, a local area network, a wide area network and / or a wireless network. The network can comprise copper transmission cables, optical transmission fibers, wireless transmission, routers, firewalls, switches, gateway computers and / or edge servers. A network adapter card or network interface in each computing / processing device receives computer readable program instructions from the network and forwards the computer readable program instructions for storage in a computer readable storage medium within the respective computing / processing device.
[0135] Computer readable program instructions for carrying out operations of the present application can be assembler instructions, instruction-set-architecture (ISA) instructions, machine instructions, machine dependent instructions, microcode, firmware instructions, state-setting data, or either source code or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer readable program instructions can execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection can be made to an external computer (for example, through the Internet using an Internet Service Provider). In some embodiments, electronic circuitry including, for example, programmable logic circuitry, field-programmable gate array (FPGA), or programmable logic array (PLA) can execute the computer readable program instructions by utilizing state information of the computer readable program instructions to personalize the electronic circuitry, in order to perform aspects of the present application.
[0136] The computer readable program instructions can also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable apparatus or other device to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions / acts specified in the flowchart and / or block diagram block or blocks.
[0137] These computer readable program instructions can be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions / acts specified in the flowchart and / or block diagram block or blocks. These computer readable program instructions can also be stored in a computer readable storage medium that can include random access memory (RAM), read only memory (ROM), electrically erasable programmable read only memory (EEPROM), flash memory or nonvolatile memory, or a suitable combination of the different types of computer readable storage media. The computer readable program instructions can also be downloaded to a computer, other programmable data processing apparatus, or other device from a computer readable storage medium or to an external computer or external storage device via a data signal that can be transmitted for example via a wired medium or a wireless medium such as the Internet or Wireless Application Protocol (WAP) signaling.
[0138] The computer readable program instructions can also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus or other device to produce a computer implemented process such that the instructions which execute on the computer, other programmable data processing apparatus, or other device implement the functions / acts specified in the flowchart and / or block diagram block or blocks.
[0139] The flow diagrams and the block diagrams in the drawings are presented to illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to the present application. In this regard, each block in the flow diagrams and the block diagrams can represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical functions ("instructions"). In some alternative implementations, the functions noted in the blocks can occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks can sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and / or flowchart illustrations, and combinations thereof, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and
[0140] The above-mentioned embodiments of the application are only intended to describe the application, not to limit the application.
[0141] Those skilled in the art can clearly understand the above-mentioned embodiment method can be realized by means of software and the necessary general hardware platform, of course, also can be through hardware, but in many cases the former is the better embodiment. Based on such understanding, the technical solutions of the present application essentially or say the part of the prior art to make contributions can be embodied in the form of software product, the computer software product is stored in the above-mentioned storage medium (such as ROM / RAM, magnetic disc, optical disc), including several instructions to make a terminal device (may be mobile phone, computer, server, television, or network equipment, etc.) executes the method of various embodiments of the present application.
[0142] The above-mentioned is only the preferred embodiment of the present application, not therefore limit the patent scope of the present application, all in the inventive concept of the present application, using the present application specification and the equivalent structure transformation of the drawing contents, or direct / indirectly applied in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A recording method characterized by, The application relates to a method for processing audio signals, comprising the following steps: in the case that at least one application program sends a recording request, applying a first storage space and starting a microphone; for any recording request sent by the application program, applying a second storage space corresponding to the application program; storing the audio signals collected by the microphone into the first storage space; storing the sub-audio signals belonging to each application program in the first storage space into the corresponding second storage space.
2. The method of claim 1, wherein, The recording request at least comprises an audio data format required by the corresponding application program, and the method further comprises the following steps after the step of applying the second storage space corresponding to the application program for any recording request sent by the application program: for any second storage space, storing the audio data format included in the corresponding recording request into the second storage space; the step of storing the sub-audio signals belonging to each application program in the first storage space into the corresponding second storage space comprises the following steps: for any second storage space, reading the audio data format from the second storage space; processing the sub-audio signals belonging to the application program corresponding to the second storage space in the first storage space according to the audio data format to obtain processed sub-audio signals; sending the processed sub-audio signals to the corresponding second storage space.
3. The method of claim 1, wherein, The recording request at least comprises an audio data format required by the corresponding application program, and the method further comprises the following steps after the step of applying the second storage space corresponding to the application program for any recording request sent by the application program: for the second storage space corresponding to the second recording request, storing the audio data format included in the corresponding second recording request into the second storage space, wherein the second recording request is a recording request except the first recording request in the recording request, and the first recording request is the first received recording request; the step of storing the audio signals collected by the microphone into the first storage space comprises the following step: storing the audio signals collected by the microphone into the first storage space according to the audio data format included in the first recording request; the step of storing the sub-audio signals belonging to each application program in the first storage space into the corresponding second storage space comprises the following steps: for the second storage space corresponding to the second recording request, reading the audio data format from the second storage space, processing the sub-audio signals belonging to the application program corresponding to the second storage space in the first storage space according to the read audio data format to obtain processed sub-audio signals, and sending the processed sub-audio signals to the corresponding second storage space; sending the sub-audio signals belonging to the application program corresponding to the first recording request in the first storage space to the corresponding second storage space.
4. The method of claim 1, wherein, the step of applying a first storage space in the case that at least one application program sends a recording request comprises the following steps: In a case that at least one of the application programs sends a recording request, a first storage space is applied according to a first recording request, the first recording request being the first received recording request.
5. The method of claim 1, wherein, The method further comprises: For any second storage space, a sub-audio signal stored in the second storage space is sent to a corresponding application program.
6. The method of claim 1, wherein, The method further comprises: In a case that any of the application programs sends a recording end request, the second storage space corresponding to the application program is released; And / or, in a case that all of the application programs send a recording end request, the microphone is closed and the first storage space is released.
7. The method of claim 1, wherein, Before the method applies the first storage space and opens the microphone in the case that at least one of the application programs sends a recording request, the method further comprises: For at least one of the application programs, current display image data of the application program sent by a terminal device in communication connection is received; According to a display position corresponding to the terminal device, the current display image data is displayed at the display position.
8. A sound recording apparatus characterized by comprising: The method comprises: An application module is configured to apply a first storage space in a case that at least one of the application programs sends a recording request; An opening module is configured to open a microphone in the case that at least one of the application programs sends a recording request; A storage module is configured to store an audio signal collected by the microphone into the first storage space, and store a sub-audio signal belonging to each of the application programs in the first storage space into a corresponding second storage space.
9. An electronic device, comprising: The electronic device comprises the apparatus of claim 8; or The electronic device comprises a memory and a processor, the memory is configured to store computer instructions, and the processor is configured to call the computer instructions from the memory to execute the method of any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, A computer program is stored thereon, and the computer program is executed by a processor to implement the method of any one of claims 1-7.
Citation Information
Patent Citations
Method for achieving recording data share in Android system and electronic device
CN106648921A
Audio recording method and device, audio system, audio recording apparatus, and storage medium
CN109378017A
Recording control method and device, server and display equipment
CN112071337A
Recording control method and device, and display equipment
CN112071338A
Recording method, device, equipment and medium
CN118964012A