Recording method, device, equipment and medium
By applying for storage space for each application in the XR headset display device and storing audio signals, the problem of microphone being locked when multiple applications record simultaneously is solved, and the function of recording simultaneously by multiple applications is realized.
Patent Information
- Application Number
- CN202411000913.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-24
- Publication Date
- 2024-11-15
AI Technical Summary
When using an XR headset display device, when multiple applications call the microphone at the same time to record, the first application that calls the microphone will lock the microphone, and other applications can no longer request it. Until the first application releases the microphone, other applications can only request it. The problem of microphone success.
By applying for a first storage space and turning on the microphone when receiving the recording request from the application, and applying for a corresponding second storage space for 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, so that different applications can read their input voice signals.
It is realized that different applications can send recording requests to electronic devices at the same time. The electronic devices can respond successfully and allow different applications to read the corresponding sub-audio signals, solving the problem of microphone being locked.
Smart Images

Figure CN118964012A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and more specifically, to a recording method, device, equipment and medium. Background Art
[0002] Currently, when users use XR head-mounted display devices such as AR, VR, and MR, they can open multiple applications at the same time in the virtual space, where each application runs independently on a virtual screen of the XR head-mounted display device and remains active. In this way, users can, for example, browse news while playing videos, or perform other operations.
[0003] However, when multiple applications need to use the microphone on the XR headset to record, 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. For example, a user is using a communication application to make a video call and calls an AI assistant application to open a memo. At this time, because the communication application has been locking the microphone, the AI assistant application will not be able to receive the user's voice about opening the memo through the microphone. Summary of the invention
[0004] One object of the present application is to provide a new technical solution for recording.
[0005] According to a first aspect of the present application, a recording method is provided, comprising:
[0006] When receiving a recording request sent by at least one application, applying for a first storage space and turning on a microphone;
[0007] For a recording request sent by any of the applications, applying for a second storage space corresponding to the application;
[0008] Storing the audio signal collected by the microphone in the first storage space;
[0009] The sub-audio signal belonging to each of the application programs in the first storage space is stored in the corresponding second storage space.
[0010] Optionally, the recording request includes at least an audio data format corresponding to the application program requirement, and after applying for a second storage space corresponding to the application program in response to the recording request sent by any of the application programs, the method further includes:
[0011] For any of the second storage spaces, storing the audio data format included in the corresponding recording request in the second storage space;
[0012] The step of storing the sub-audio signal belonging to each of the applications in the first storage space into the corresponding second storage space includes:
[0013] For any of the second storage spaces, reading the audio data format from the second storage space;
[0014] Processing the sub-audio signal in the first storage space belonging to the application corresponding to the second storage space according to the audio data format to obtain a processed sub-audio signal;
[0015] The processed sub-audio signal is sent to the corresponding second storage space.
[0016] Optionally, the recording request includes at least an audio data format corresponding to the application program requirement, and after applying for a second storage space corresponding to the application program in response to the recording request sent by any of the application programs, the method further includes:
[0017] For the second storage space corresponding to the second recording request, storing the audio data format included in the second recording request in the second storage space, the second recording request being a recording request other than the first recording request among the recording requests, and the first recording request being the first recording request received;
[0018] The step of storing the audio signal collected by the microphone into the first storage space includes:
[0019] 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;
[0020] The step of storing the sub-audio signal belonging to each of the applications in the first storage space into the corresponding second storage space includes:
[0021] For any second recording request corresponding to the second storage space, read the audio data format from the second storage space, process the sub-audio signal in the first storage space belonging to the application corresponding to the second storage space according to the read audio data format, obtain the processed sub-audio signal, and send the processed sub-audio signal to the corresponding second storage space;
[0022] The sub-audio signal belonging to the application corresponding to the first recording request in the first storage space is sent to the corresponding second storage space.
[0023] Optionally, in the case of receiving a recording request sent by at least one application, applying for a first storage space includes:
[0024] In the case of receiving a recording request sent by at least one of the applications, applying for a first storage space according to a first recording request, where the first recording request is the firstly received recording request.
[0025] Optionally, the method further comprises:
[0026] For any second storage space, the sub-audio signal stored in the second storage space is sent to the corresponding application.
[0027] Optionally, the method further comprises:
[0028] Upon receiving a recording end request sent by any of the applications, releasing the second storage space corresponding to the application;
[0029] And / or, upon receiving recording end requests sent by all the applications, turning off the microphone and releasing the first storage space.
[0030] Optionally, the method further includes, before applying for a first storage space and turning on the microphone when receiving a recording request sent by at least one application:
[0031] For at least one of the applications, receiving current display image data of the application sent by a communication-connected terminal device;
[0032] According to the display position corresponding to the terminal device, the currently displayed image data is displayed at the display position.
[0033] According to a second aspect of the present application, a recording device is provided, comprising:
[0034] An application module, configured to apply for a first storage space when receiving a recording request sent by at least one application;
[0035] An enabling module, configured to enable a microphone upon receiving a recording request sent by at least one application;
[0036] The storage module is used to store the audio signal collected by the microphone in 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.
[0037] According to a third aspect of the present application, an electronic device is provided, the electronic device comprising the apparatus according to the second aspect; or,
[0038] The system comprises a memory and a processor, wherein the memory is used to store computer instructions, and the processor is used to call the computer instructions from the memory to execute the method as described in any one of the first aspects.
[0039] According to a fourth aspect of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method according to any one of the first aspects is implemented.
[0040] The present application provides a recording method, including: upon receiving a recording request sent by at least one application, applying for a first storage space and turning on the 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 in the first storage space; storing the sub-audio signal belonging to each application in the first storage space to the corresponding second storage space. Based on this method, different applications can send recording requests to the electronic device, and the electronic device can successfully respond to the recording requests of different applications so that different applications can read the corresponding sub-audio signals. 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 can no longer request to use it until the first application releases the microphone, and other applications can successfully request the microphone.
[0041] Other features and advantages of the present application will become apparent from the following detailed description of exemplary embodiments of the present application with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the application and, together with the description, serve to explain the principles of the application.
[0043] Figure 1 A hardware configuration of an electronic device for implementing a recording method according to an embodiment of the present application is provided. Figure 1 ;
[0044] Figure 2 A flow chart of a recording method according to an embodiment of the present application is provided. Figure 1 ;
[0045] Figure 3 A flow chart of a recording method according to an embodiment of the present application is provided. Figure 2 ;
[0046] Figure 4 It is a structural diagram of a recording device provided according to an embodiment of the present application;
[0047] Figure 5 A hardware configuration of an electronic device for implementing a recording method according to an embodiment of the present application is provided. Figure 2 . DETAILED DESCRIPTION
[0048] Various exemplary embodiments of the present application will now be described in detail with reference to the accompanying drawings. It should be noted that unless otherwise specifically stated, the relative arrangement of components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present application.
[0049] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the present application, its application, or uses.
[0050] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered as part of the specification.
[0051] In all examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not limiting. Therefore, other examples of the exemplary embodiments may have different values.
[0052] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0053] Figure 1 A hardware configuration of an electronic device for implementing a recording method according to an embodiment of the present application is provided. Figure 1 Among them, the electronic device 1000 is exemplarily a head-mounted display device (such as AR, MR, VR and other XR glasses, helmets, etc.), a smart phone, a laptop computer, a tablet computer, etc.
[0054] The electronic device 1000 may 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, and the like. The processor 1100 may be a central processing unit CPU, a microprocessor MCU, and the like. The memory 1200 may include, for example, a ROM (read-only memory), a RAM (random access memory), a non-volatile memory such as a hard disk, and the like. The interface unit 1300 may include, for example, a USB interface, a headphone interface, and the like. The communication unit 1400 may, for example, be capable of wired or wireless communication. The display unit 1500 may be, for example, a liquid crystal display, a touch display, and the like. The input unit 1600 may include, for example, a touch screen, a button, and the like. The user may input / output voice information through the speaker 1700 and the microphone 1800.
[0055] Despite Figure 1 Multiple units are shown for the electronic device 1000, but the present application may only involve some of the units, for example, the electronic device 1000 only involves the memory 1200 and the processor 1100.
[0056] In the embodiment of the present application, the memory 1200 of the electronic device 1000 is used to store instructions, and the instructions are used to control the processor 1100 to execute the recording method provided in the embodiment of the present application.
[0057] In the above description, the technician can design instructions according to the scheme disclosed in this application. How instructions control the processor to operate is well known in the art, so it will not be described in detail here.
[0058] In the conventional technology, when an application A sends a recording request to an electronic device, the electronic device only applies for a storage space and turns on the microphone. Furthermore, after the microphone collects the audio signal a for the voice input to the application A and stores it in the storage space, the application A directly reads the audio signal a from the storage space. This makes it impossible for other applications B to successfully send a recording request to the electronic device, and the audio signal b of the voice input by the user to other applications B is stored in the storage space applied by the electronic device for application A, and then read by application A. That is to say, in the conventional technology, other applications B cannot read the audio signal b of the voice input by the user to other applications B.
[0059] In order to solve the above problems, the present application provides a recording method, such as Figure 2 As shown, the recording method includes the following steps S2100 to S2400.
[0060] Step S2100, upon receiving a recording request sent by at least one application, apply for a storage space and turn on the microphone.
[0061] In this embodiment, for any of the applications in the above step S2100, the application may be an application running in an electronic device that executes the recording method provided by the present application, or of course, an application running in an external terminal device that is communicatively connected to the electronic device. For the latter, the electronic device is, for example, XR glasses, and the application is an application running in a smartphone that is communicatively connected to the XR glasses and is streamed and displayed in a virtual space created by the XR glasses. In this regard, in one embodiment of the present application, the method provided by the present application further includes the following steps S2110 and S2111 before the above step S2100.
[0062] Step S2110: for at least one application, receiving currently displayed image data of the application sent by a terminal device connected by communication.
[0063] Step S2111, displaying the current display image data at the display position according to the display position corresponding to the terminal device.
[0064] In this embodiment, the display screen of the electronic device is planned to be multiple display positions, and one terminal device connected to the electronic device for communication corresponds to one display position. After receiving the current display image data of an application sent by a terminal device, the current display image data is displayed at the display position corresponding to the corresponding 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 voice input for the user.
[0065] Further, it can be understood that at the same time, a user of an electronic device that executes the recording method provided by the present application can only speak a voice for one application. Therefore, in this embodiment, at the same time, there is only one application that sends a recording request to the electronic device. That is, the recording request in the above step S2100 is received by the electronic device in sequence at different times. Among them, for any recording request, the recording request may include sampling rate, number of channels, number of bits, application identifier, etc.
[0066] For the above step S2100, when a recording request sent by at least one application is received, it indicates that there is a recording demand. At this time, the microphone is turned on to collect audio signals by the microphone. And a first storage space is applied for storing the audio signals to be collected by the microphone.
[0067] In one embodiment of the present application, the size of the first storage space may be specifically a preset number of bits.
[0068] Step S2200: For a recording request sent by any application, apply for a second storage space corresponding to the application.
[0069] In this embodiment, when a recording request is received from an application, a second storage space corresponding to the application sending the recording request is applied for. The second storage space is used to store the sub-audio signal of the user for the application corresponding to the recording request collected by the microphone.
[0070] It should be noted that, in the present application, there is a one-to-one correspondence between the application, the recording request and the second storage space.
[0071] Step S2300: storing the audio signal collected by the microphone in a first storage space.
[0072] Step S2400: storing the sub-audio signal belonging to each application in the first storage space into the corresponding second storage space.
[0073] In this embodiment, when the microphone is turned on, the audio signal collected by the microphone is first uniformly stored in the first storage space. It can be understood that the first storage space includes the sub-audio signal of the user's voice for sending different recording requests corresponding to the application. Further, the sub-audio signal of the user's voice for sending different recording requests corresponding to the application in the first storage space is sent to the corresponding second storage space respectively. On this basis, the application reads the sub-audio signal from the corresponding second storage space, and the sub-audio signal of the voice input by the user for the application can be obtained. In this way, each application can read the audio signal of the user's voice input for itself. Therefore, based on the above steps S2100 to S2400, different applications can send recording requests to the electronic device, and the electronic device can successfully respond to the recording requests 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 can no longer request to use it until the first application releases the microphone, and other applications can request the microphone successfully.
[0074] For the above steps S2100 to S2400, in one example, application A first sends a recording request 1 to the electronic device, at which point the electronic device turns on the microphone, applies for a first storage space, and applies for a second storage space I. While the microphone is on, the microphone stores the collected sub-audio signal a of the user's voice input for program A in the first storage space. Further, application B again sends a recording request 2 to the electronic device, at which point the electronic device applies for a second storage space II, and the microphone stores the collected sub-audio signal b of the user's voice input for program B in the first storage space. Further, the electronic device stores the sub-audio signal a in the first storage space in the second storage space I, and stores the sub-audio signal b in the first storage space in the second storage space II.
[0075] The present application provides a recording method, including: upon receiving a recording request sent by at least one application, applying for a first storage space and turning on the 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 in the first storage space; storing the sub-audio signal belonging to each application in the first storage space to the corresponding second storage space. Based on this method, different applications can send recording requests to the electronic device, and the electronic device can successfully respond to the recording requests of different applications so that different applications can read the corresponding sub-audio signals. 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 can no longer 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, based on the above steps S2100 to S2400, the recording method provided by the present application also includes the following step S2500.
[0077] Step S2500: for any second storage space, send 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 in the following two ways.
[0080] Wherein, for the first method, the recording request at least includes the audio data format corresponding to the application program requirement. On this basis, the recording method provided by the present application further includes the following step S2210 after the above step S2200.
[0081] Step S2210: For any second storage space, the audio data format included in the corresponding recording request is stored in the second storage space.
[0082] In this embodiment, after the second storage space is applied for, the audio data format included in the recording request corresponding to the second storage space is stored in the second storage space.
[0083] On the basis of the above step S2210, the above step S2400 is specifically implemented through the following steps S2410 to S2412.
[0084] Step 2410: For any second storage space, read the audio data format from the second storage space.
[0085] In this embodiment, the second storage space stores the audio data format. Based on this, the audio data format can be directly read from the second storage space.
[0086] Step S2411: Process the sub audio signal in the first storage space that belongs to the application corresponding to the second storage space according to the audio data format to obtain a processed sub audio signal.
[0087] It should be noted that the processing in the above step S2411 specifically refers to: decoding into original data and then encoding according to the read audio data format.
[0088] Step S2412: Send the processed sub-audio signal to the corresponding second storage space.
[0089] For the above 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 program A and the sub-audio signal b of the voice input by the user for program B, and the electronic device applies for a second storage space I for application A and a second storage space II for application B, the second storage space I stores the audio data format 1, and the second storage space II stores the audio data format 2. On this basis, the audio data format 1 required by application A is read from the second storage space I, and the sub-audio signal a in the first storage space is processed according to the audio data format 1 to process it into an audio signal of the audio data format 1 (i.e., the processed sub-audio signal a), and then stored in the second storage space I. And, the audio data format 2 required by application B is read from the second storage space II, and the sub-audio signal b in the first storage space is processed according to the audio data format 2 to process it into an audio signal of the audio data format 2 (i.e., the processed sub-audio signal b), and then stored in the second storage space II. On this basis, application A can read the audio signal of data format 1 required by itself from the second storage space I, and application B can read the audio signal of data format 2 required by itself from the second storage space II. At this time, application A and application B do not need to process the audio signal.
[0090] In this embodiment, based on the above steps S2410 to S2412, the sub-audio signal in the audio data format corresponding to the application program requirement can be stored in the second storage space, so that the application program can directly read and use it without processing the audio signal.
[0091] For the second method, the recording request includes at least the audio data format corresponding to the application requirements. The recording method provided in the embodiment of the present application further includes the following step S2220 after the above step S2200.
[0092] Step S2220: For a second storage space corresponding to a second recording request, the audio data format included in the second recording request is stored in the second storage space. The second recording request is a recording request other than the first recording request. The first recording request is the first recording request received.
[0093] In this embodiment, the first recording request received is recorded as the first recording request, and the recording request received after the first recording request is recorded as the second recording request. In addition, 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] Furthermore, the above step S2300 is specifically implemented through the following step S2310.
[0095] Step S2310: Store the audio signal collected by the microphone in the first storage space according to the audio data format included in the first recording request.
[0096] In this embodiment, since the data formats of the audio signals in the first storage space are all the audio data formats included in the first recording request, it is not necessary to store the audio data formats included in the first recording request in the corresponding second storage space. It is only necessary to send the sub-audio signals belonging to the application 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 signals in the audio data format required by the corresponding application. On this basis, the above step S2400 is specifically implemented by the following steps S2420 and S2421.
[0097] Step S2420, for any second recording request corresponding to the second storage space, read the audio data format from the second storage space, process the sub-audio signal belonging to the application corresponding to the second storage space in the first storage space according to the read audio data format, obtain the processed sub-audio signal, and send the processed sub-audio signal to the corresponding second storage space.
[0098] Step S2421: Send the sub-audio signal belonging to the application corresponding to the first recording request in the first storage space to the corresponding second storage space.
[0099] For the above steps S2420 to S2421, in one example, application A first sends a recording request 1 to the electronic device. At this time, the electronic device uses the recording request 1 as the first recording request, turns on the microphone, applies for a first storage space that can at least meet the size required for storing application A according to the recording request 1, and applies for a second storage space I that can meet the size required for storing application A. During the microphone is turned on, the microphone collects the sub-audio signal a of the voice input by the user for program A. The electronic device processes the sub-audio signal a according to the audio data format 1 in the recording request 1, and stores the processed sub-audio signal a in the first storage space. Further, application B sends a recording request 2 to the electronic device again. At this time, the electronic device uses the recording request 2 as the second recording request, and applies for a second storage space II that can meet the size required for storing application B, and stores the audio data format 2 included in the recording request 2 in the second storage space II. The electronic device processes the sub-audio signal b of the voice input by the user for program B collected by the microphone according to the audio data format 1 in the recording request 1, and stores the processed sub-audio signal b in the first storage space. Furthermore, the electronic device stores the sub-audio signal a in the first storage space directly to 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 to the second storage space II.
[0100] In one embodiment of the present application, the above step S2100 is specifically implemented by the following step S2120.
[0101] Step S2120: upon receiving a recording request sent by at least one application, applying for a first storage space according to the first recording request.
[0102] The first recording request is the recording request received first.
[0103] In this embodiment, the recording request received first is recorded as the first recording request.
[0104] In this embodiment, according to the first recording request, a storage space of at least the size required by the application sending the first recording request is applied for 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 in response to the first recording request.
[0105] In one embodiment of the present application, the recording method provided by the present application also includes the following step S2600 and / or step 2700.
[0106] Step S2600: upon receiving a recording end request sent by any application, releasing the second storage space corresponding to the application.
[0107] Step S2700, when receiving the recording end request sent by all applications, turn off the microphone and release the first storage space.
[0108] In this embodiment, when a recording end request is received from any application, the resources of the corresponding second storage space can be released by releasing the second storage space corresponding to the application, thereby avoiding unnecessary occupation of storage space in the electronic device.
[0109] Furthermore, when a recording end request is received again from all applications that have sent a recording request, the first storage space is released, so that resources of the first storage space and all second storage spaces can be released, thereby avoiding unnecessary occupation of storage space in the electronic device. At the same time, when a recording end request is received again from all applications that have sent a recording request, the microphone is turned off, thereby avoiding unnecessary occupation of the microphone.
[0110] Based on the above content, a program voice implementation method of the recording method provided in this application can be specifically as follows Figure 3 As shown. APP1 first sends a recording request to the electronic device, and the electronic device calls the AudioRecord function according to the recording request. The AudioRecord function turns on the microphone, applies for the SampleBuffer as the first storage space, and applies for the APP1Buffer as the second storage space. The microphone stores the collected audio signal for APP1 in the Sample Buffer. APP2 continues to send a recording request to the electronic device, and the electronic device continues to call the AudioRecord function according to the recording request sent by APP2, and the AudioRecord function applies for the APP2Buffer as the second storage space. Further, the microphone stores the collected audio signal for APP2 in the Sample Buffer. Furthermore, the sub-audio signal belonging to APP1 in the Sample Buffer is stored in the APP1 Buffer, and the sub-audio signal belonging to APP2 in the Sample Buffer is stored in the APP2 Buffer. The sub-audio signal in the APP1 Buffer is sent to APP1, and the sub-audio signal in the APP2Buffer is sent to APP2.
[0111] The present application also provides a recording device 400, such as Figure 4 As shown, including:
[0112] An application module 410, configured to apply for a first storage space when receiving a recording request sent by at least one application;
[0113] The enabling module 420 is configured to enable the microphone upon receiving a recording request sent by at least one application program;
[0114] The storage module 430 is used to store the audio signal collected by the microphone in 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.
[0115] In one embodiment of the present application, the recording request includes at least an audio data format corresponding to the application program requirement, 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 used for: for any second storage space, reading the audio data format from the second storage space;
[0117] Processing the sub-audio signal in the first storage space belonging to the application corresponding to the second storage space according to the audio data format to obtain a processed sub-audio signal;
[0118] The processed sub-audio signal is sent to the corresponding second storage space.
[0119] In one embodiment of the present application, the recording request includes at least an audio data format corresponding to the application program requirement, 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 second recording request in the second storage space, wherein the second recording request is a recording request other than the first recording request in the recording request, and the first recording request is a recording request received first;
[0120] And, specifically used for: storing the audio signal collected by the microphone in the first storage space according to the audio data format included in the first recording request;
[0121] For any second recording request corresponding to the second storage space, read the audio data format from the second storage space, process the sub-audio signal in the first storage space belonging to the application corresponding to the second storage space according to the read audio data format, obtain the processed sub-audio signal, and send the processed sub-audio signal to the corresponding second storage space;
[0122] The sub-audio signal belonging to the application corresponding to the first recording request in the first storage space is sent to the corresponding second storage space.
[0123] In one embodiment of the present application, the application module 410 is specifically used to: when receiving a recording request sent by at least one application, apply for a first storage space according to a first recording request, where the first recording request is the first recording request received.
[0124] In one embodiment of the present application, the recording device 400 provided by the present application further includes:
[0125] The sending module is configured to send the sub-audio signal stored in any second storage space to a corresponding application program.
[0126] In one embodiment of the present application, the recording device 400 provided by the present application further includes:
[0127] A release module, configured to release the second storage space corresponding to the application upon receiving a recording end request sent by any of the applications;
[0128] And / or, upon receiving recording end requests sent by all the applications, turning off the microphone and releasing the first storage space.
[0129] The present application also provides an electronic device 500, which includes any one of the recording devices 400 provided by any one of the above device embodiments;
[0130] Or, if Figure 5 As shown, it includes a memory 510 and a processor 520, the memory 510 is used to store computer instructions, and the processor 520 is used to call the computer instructions from the memory 510 to execute any method as described in any one of the above method embodiments.
[0131] The present application also provides a computer-readable storage medium having a computer program stored thereon, and the computer program, when executed by a processor, implements the method according to any one of the above method embodiments.
[0132] The present application may be a system, a method and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present application.
[0133] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical 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 of computer-readable storage media (a non-exhaustive list) include: a portable computer disk, 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 disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the foregoing. As used herein, a computer-readable storage medium is not to be interpreted as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.
[0134] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.
[0135] The computer program instructions for performing the operation of the present application can be assembler instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions can be executed completely on a user's computer, partially on a user's computer, executed as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, 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 can be connected to an external computer (for example, using an Internet service provider to connect through the Internet). In some embodiments, by using the state information of a computer-readable program instruction to personalize an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA) or a programmable logic array (PLA), the electronic circuit can execute a computer-readable program instruction, thereby realizing various aspects of the present application.
[0136] Various aspects of the present application are described herein with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present application. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.
[0137] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0138] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0139] The flowchart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a part of a module, program segment or instruction, and the part of the module, program segment or instruction contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart can be implemented by a dedicated hardware-based system that performs the specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions. It is well known to those skilled in the art that it is equivalent to implement it by hardware, implement it by software, and implement it by combining software and hardware.
[0140] The embodiments of the present application have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein. The scope of the present application is defined by the appended claims.
Claims
1. A recording method, characterized in that: include: When receiving a recording request sent by at least one application, applying for a first storage space and turning on a microphone; For a recording request sent by any of the applications, applying for a second storage space corresponding to the application; Storing the audio signal collected by the microphone in the first storage space; The sub-audio signal belonging to each of the application programs in the first storage space is stored in the corresponding second storage space.
2. The method according to claim 1, characterized in that The recording request at least includes an audio data format corresponding to the application program's requirements. After applying for a second storage space corresponding to the application program for a recording request sent by any of the application programs, the method further includes: For any of the second storage spaces, storing the audio data format included in the corresponding recording request in the second storage space; The step of storing the sub-audio signal belonging to each of the applications in the first storage space into the corresponding second storage space includes: For any of the second storage spaces, reading the audio data format from the second storage space; Processing the sub-audio signal in the first storage space belonging to the application corresponding to the second storage space according to the audio data format to obtain a processed sub-audio signal; The processed sub-audio signal is sent to the corresponding second storage space.
3. The method according to claim 1, characterized in that: The recording request at least includes an audio data format corresponding to the application program's requirements. After applying for a second storage space corresponding to the application program for a recording request sent by any of the application programs, the method further includes: For the second storage space corresponding to the second recording request, storing the audio data format included in the second recording request in the second storage space, the second recording request being a recording request other than the first recording request among the recording requests, and the first recording request being the first recording request received; The step of storing the audio signal collected by the microphone into the first storage space includes: 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; The step of storing the sub-audio signal belonging to each of the applications in the first storage space into the corresponding second storage space includes: For any second recording request corresponding to the second storage space, read the audio data format from the second storage space, process the sub-audio signal in the first storage space belonging to the application corresponding to the second storage space according to the read audio data format, obtain the processed sub-audio signal, and send the processed sub-audio signal to the corresponding second storage space; The sub-audio signal belonging to the application corresponding to the first recording request in the first storage space is sent to the corresponding second storage space.
4. The method according to claim 1, characterized in that: The step of applying for a first storage space upon receiving a recording request sent by at least one application program comprises: In the case of receiving a recording request sent by at least one of the applications, applying for a first storage space according to a first recording request, where the first recording request is the firstly received recording request.
5. The method according to claim 1, characterized in that The method further comprises: For any second storage space, the sub-audio signal stored in the second storage space is sent to the corresponding application.
6. The method according to claim 1, characterized in that The method further comprises: Upon receiving a recording end request sent by any of the applications, releasing the second storage space corresponding to the application; And / or, upon receiving recording end requests sent by all the applications, turning off the microphone and releasing the first storage space.
7. The method according to claim 1, characterized in that The method further includes, before applying for a first storage space and turning on a microphone when receiving a recording request sent by at least one application: For at least one of the applications, receiving current display image data of the application sent by a communication-connected terminal device; According to the display position corresponding to the terminal device, the currently displayed image data is displayed at the display position.
8. A recording device, characterized in that: include: An application module, configured to apply for a first storage space when receiving a recording request sent by at least one application; An enabling module, configured to enable a microphone upon receiving a recording request sent by at least one application; The storage module is used to store the audio signal collected by the microphone in 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.
9. An electronic device, characterized in that: The electronic device comprises the apparatus as claimed in claim 8; or, The system comprises a memory and a processor, wherein the memory is used to store computer instructions, and the processor is used to call the computer instructions from the memory to execute the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: A computer program is stored thereon, which implements the method according to any one of claims 1 to 7 when executed by a processor.
Citation Information
Cited By
Recording method and device, electronic equipment and readable storage medium
CN119883176A
An audio recording method, device, electronic equipment and readable storage medium
CN119883176B
Recording method and apparatus, and device and medium
WO2026020902A1
