WO2026020902A1 - 录音方法、装置、设备及介质 - Google Patents

录音方法、装置、设备及介质

Info

Publication number
WO2026020902A1
WO2026020902A1 PCT/CN2025/090306 CN2025090306W WO2026020902A1 WO 2026020902 A1 WO2026020902 A1 WO 2026020902A1 CN 2025090306 W CN2025090306 W CN 2025090306W WO 2026020902 A1 WO2026020902 A1 WO 2026020902A1
Authority
WO
WIPO (PCT)
Prior art keywords
storage space
application
recording request
recording
microphone
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
PCT/CN2025/090306
Other languages
English (en)
French (fr)
Inventor
王文
杨青河
刘耀诚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Goertek Inc
Original Assignee
Goertek Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Goertek Inc filed Critical Goertek Inc
Publication of WO2026020902A1 publication Critical patent/WO2026020902A1/zh
Pending legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • G11B20/10527Audio or video recording; Data buffering arrangements
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • G11B20/10527Audio or video recording; Data buffering arrangements
    • G11B2020/10537Audio or video recording
    • G11B2020/10546Audio or video recording specifically adapted for audio data
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • G11B2020/10861Finalising a record carrier after a recording operation, e.g. to ensure compatibility with a ROM medium

Definitions

  • This invention relates to the field of computer technology, and more specifically, to a recording method, apparatus, device, and medium.
  • XR head-mounted display devices such as AR, VR, and MR
  • users can open multiple applications simultaneously in a virtual space.
  • Each application runs independently on a virtual screen of the XR head-mounted display device and remains active. This allows users to, for example, browse news while playing videos or perform other operations simultaneously.
  • the first application to access the microphone will lock it, preventing other applications from requesting access until the first application releases the microphone. For example, if a user is making a video call using a communication application and simultaneously asks an AI assistant application to open a memo app, the AI assistant application will be unable to receive the user's voice request to open the memo app because the communication application's microphone remains locked.
  • the method further includes:
  • It includes a memory and a processor, the memory being used to store computer instructions, and the processor being used to retrieve the computer instructions from the memory to perform the method as described in any one of the first aspects.
  • a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method according to any one of the first aspects.
  • This invention provides a recording method, comprising: upon receiving a recording request from at least one application, requesting a first storage space and activating a microphone; for any recording request sent by any application, requesting a second storage space corresponding to that application; storing the audio signal acquired by the microphone into the first storage space; and storing the sub-audio signals belonging to each application in the first storage space into the corresponding second storage space.
  • different applications can send recording requests to the electronic device, and the electronic device can successfully respond to the recording requests of different applications, allowing different applications to read the corresponding sub-audio signals.
  • Figure 1 is a block diagram of the hardware configuration of an electronic device for implementing a recording method according to an embodiment of the present invention
  • Figure 2 is a flowchart illustrating a recording method according to an embodiment of the present invention
  • Figure 3 is a schematic flowchart of a recording method according to an embodiment of the present invention.
  • Figure 5 is a block diagram of the hardware configuration of an electronic device for implementing a recording method according to an embodiment of the present invention.
  • the embodiments of the present invention involve directional indicators (such as up, down, left, right, front, back, etc.), the directional indicators are only used to explain the relative positional relationship and movement of the components in a certain specific posture (as shown in the figure). If the specific posture changes, the directional indicators will also change accordingly.
  • directional indicators such as up, down, left, right, front, back, etc.
  • 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, etc.
  • the processor 1100 may be a central processing unit (CPU), a microprocessor (MCU), etc.
  • the memory 1200 may include, for example, ROM (Read-Only Memory), RAM (Random Access Memory), or non-volatile memory such as a hard disk.
  • the interface unit 1300 may include, for example, a USB interface, a headphone jack, etc.
  • the communication unit 1400 may be capable of wired or wireless communication.
  • the display unit 1500 may be, for example, an LCD screen, a touch screen, etc.
  • the input unit 1600 may include, for example, a touch screen, buttons, etc. Users can input/output voice information through the speaker 1700 and the microphone 1800.
  • Step S2100 Upon receiving a recording request from at least one application, request a storage space and turn on the microphone.
  • Step S2111 Display the currently displayed image data at the display position according to the corresponding display position of the terminal device.
  • the electronic device's display screen is planned with multiple display positions, with each terminal device communicatively connected to the electronic device corresponding to one display position.
  • the current display image data is displayed at the corresponding display position on the terminal device. This allows the user to view the current display image data corresponding to the application on the electronic device, thus providing a basis for voice input.
  • the size of the first storage space may be a preset number of bits.
  • Step S2200 For any recording request sent by an application, request a second storage space corresponding to the application.
  • the audio signals captured by the microphone are first stored in a first storage space.
  • the first storage space includes sub-audio signals of the user's voice for the applications corresponding to different recording requests.
  • the sub-audio signals of the user's voice for the applications corresponding to different recording requests in the first storage space are sent to corresponding second storage spaces.
  • the application reads the sub-audio signals from the corresponding second storage space to obtain the sub-audio signals of the user's voice input for that application. In this way, each application can read the audio signals of the user's voice input for itself.
  • step S2100 to S2400 application A first sends a recording request 1 to the electronic device.
  • the electronic device activates its microphone, requests a first storage space, and requests a second storage space I. While the microphone is activated, it stores the sub-audio signal 'a' of the user's voice input to application A into the first storage space.
  • application B sends a recording request 2 to the electronic device again.
  • the electronic device requests a second storage space II, and the microphone stores the sub-audio signal 'b' of the user's voice input to application B into the first storage space.
  • the electronic device stores sub-audio signal 'a' from the first storage space into the second storage space I, and stores sub-audio signal 'b' from the first storage space into the second storage space II.
  • This invention provides a recording method, comprising: upon receiving a recording request from at least one application, requesting a first storage space and activating a microphone; for any recording request sent by any application, requesting a second storage space corresponding to that application; storing the audio signal acquired by the microphone into the first storage space; and storing the sub-audio signals belonging to each application in the first storage space into the corresponding second storage space.
  • different applications can send recording requests to the electronic device, and the electronic device can successfully respond to the recording requests of different applications, allowing different applications to read the corresponding sub-audio signals.
  • the recording method provided by the present invention further includes the following step S2500.
  • Step S2500 For any second storage space, send the sub-audio signal stored in the second storage space to the corresponding application.
  • step S2400 is implemented in the following two ways.
  • the recording request includes at least the audio data format required by the corresponding application.
  • the recording method provided by the present invention further includes the following step S2210 after step S2200.
  • Step S2210 For any second storage space, store the audio data format included in the corresponding recording request into the second storage space.
  • step S2400 above is specifically implemented through steps S2410 to S2412 below.
  • Step 2410 For any second storage space, read the audio data format from the second storage space.
  • the second storage space stores audio data formats. Based on this, audio data formats can be directly read from the second storage space.
  • Step S2411 Process the sub-audio signal belonging to the application in the second storage space in the first storage space according to the audio data format to obtain the processed sub-audio signal.
  • step S2411 specifically refers to: decoding into raw data and then encoding according to the read audio data format.
  • Step S2412 Send the processed sub-audio signal to the corresponding second storage space.
  • the first storage space stores a sub-audio signal 'a' of the user's voice input for program A and a sub-audio signal 'b' of the user's voice input for program B.
  • the electronic device has a second storage space I for application A and a second storage space II for application B.
  • Second storage space I stores audio data format one
  • second storage space II stores audio data format two. Based on this, the audio data format one required by application A is read from second storage space I, and the sub-audio signal 'a' in the first storage space is processed according to audio data format one to convert it into an audio signal of audio data format one (i.e., the processed sub-audio signal 'a'), which is then stored in second storage space I.
  • the audio data format two required by application B is read from second storage space II, and the sub-audio signal 'b' in the first storage space is processed according to audio data format two to convert it into an audio signal of audio data format two (i.e., the processed sub-audio signal 'b'), which is then stored in second storage space II.
  • application A can read the audio signal in data format one from the second storage space I
  • application B can read the audio signal in data format two from the second storage space II.
  • application A and application B do not need to process the audio signal.
  • sub-audio signals in the audio data format required by the application can be stored in the second storage space. In this way, the application can directly read and use them without processing the audio signals.
  • the recording request includes at least the audio data format required by the corresponding application.
  • the recording method provided in this embodiment of the invention further includes the following step S2220 after the above step S2200.
  • Step S2220 For the second storage space corresponding to the second recording request, store the audio data format included in the second recording request into the second storage space.
  • the second recording request is the recording request other than the first recording request.
  • the first recording request is the first recording request received.
  • the first received recording request is designated as the first recording request
  • subsequent recording requests are designated as the second recording requests.
  • only the audio data format included in the second recording request is stored in the corresponding second storage space, while the audio data format included in the first recording request is not stored in the corresponding second storage space.
  • step S2300 is specifically implemented through the following step S2310.
  • Step S2310 The audio signal acquired by the microphone is stored in the first storage space according to the audio data format included in the first recording request.
  • step S2400 is specifically implemented through the following steps S2420 and S2421.
  • 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.
  • 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.
  • step S2420 to S2421 above application A first sends a recording request 1 to the electronic device.
  • the electronic device treats recording request 1 as the first recording request, activates the microphone, requests a first storage space sufficient to at least satisfy the storage needs of application A, and requests a second storage space I sufficient to satisfy the storage needs of application A.
  • the microphone While the microphone is activated, it captures the sub-audio signal a of the user's voice input to application A.
  • the electronic device processes the sub-audio signal a according to audio data format one in recording request 1 and stores the processed sub-audio signal a in the first storage space.
  • application B sends a recording request 2 to the electronic device.
  • the electronic device treats recording request 2 as the second recording request, requests a second storage space II sufficient to satisfy the storage needs of application B, and stores the audio data format two included in recording request 2 in the second storage space II.
  • the electronic device processes the sub-audio signal b of the user's voice input to application B captured by the microphone according to audio data format one in recording request 1 and stores the processed sub-audio signal b in the first storage space.
  • the electronic device directly stores the sub-audio signal a in the first storage space to the second storage space I, and reads 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 in the second storage space II.
  • step S2100 is specifically implemented by the following step S2120.
  • Step S2120 Upon receiving a recording request from at least one application, a first storage space is requested based on the first recording request.
  • the first recording request is the first recording request received.
  • the first recording request received is recorded as the first recording request.
  • a storage space of at least the size required by the application that sent the first recording request is requested as the first storage space.
  • This first storage space may at least store the audio signal of the voice input by the user to the application corresponding to the first recording request.
  • the recording method provided by the present invention further includes the following steps S2600 and/or S2700.
  • Step S2600 Upon receiving a recording end request from any application, release the second storage space corresponding to the application.
  • Step S2700 Upon receiving recording end requests from all applications, turn off the microphone and release the first storage space.
  • the resource of the corresponding second storage space can be released by releasing the second storage space corresponding to the application, thus avoiding unnecessary occupation of storage space in the electronic device.
  • releasing the first storage space allows for the release of resources from both the first and all second storage spaces, preventing unnecessary storage space occupation in the electronic device.
  • muting the microphone prevents unnecessary microphone usage.
  • 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 activates the microphone, requests a Sample Buffer as the first storage space, and requests an APP1 Buffer as the second storage space.
  • the microphone stores the audio signal acquired for APP1 in the Sample Buffer.
  • APP2 continues to send a recording request to the electronic device.
  • the electronic device calls the AudioRecord function again according to the recording request sent by APP2.
  • the AudioRecord function requests an APP2 Buffer as the second storage space. Further, the microphone stores the audio signal acquired for APP2 in the Sample Buffer.
  • the sub-audio signals belonging to APP1 in the Sample Buffer are stored in the APP1 Buffer, and the sub-audio signals belonging to APP2 in the Sample Buffer are stored in the APP2 Buffer.
  • the sub-audio signals in the APP1 Buffer are sent to APP1
  • the sub-audio signals in the APP2 Buffer are sent to APP2.
  • the present invention also provides a recording device 400, as shown in FIG4, comprising:
  • Application module 410 is used to apply for a first storage space upon receiving a recording request from at least one application
  • the enabling module 420 is used to enable the microphone upon receiving a recording request from at least one application.
  • the storage module 430 is used to store the audio signal acquired by the microphone into the first storage space, and to store the sub-audio signal belonging to each application in the first storage space into the corresponding second storage space.
  • the recording request includes at least an audio data format required by the corresponding application.
  • the storage module 430 is further configured to: store the audio data format included in the corresponding recording request into any second storage space.
  • the sub-audio signals belonging to the application in the second storage space within the first storage space are processed according to the audio data format to obtain the processed sub-audio signals;
  • the processed sub-audio signal is sent to the corresponding second storage space.
  • the recording request includes at least an audio data format required by the corresponding application.
  • the storage module 430 is further configured to: store the audio data format included in the second recording request into the second storage space corresponding to the second recording request, wherein the second recording request is a recording request other than the first recording request, and the first recording request is the first recording request received.
  • any second recording request corresponding to a second storage space read the audio data format from the second storage space, process the sub-audio signal belonging to the application in 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.
  • the application module 410 is specifically configured to: upon receiving a recording request sent by at least one application, apply for a first storage space based on the first recording request, wherein the first recording request is the first recording request received.
  • the recording device 400 provided by the present invention further includes:
  • the sending module for any second storage space, sends the sub-audio signal stored in the second storage space to the corresponding application.
  • the recording device 400 provided by the present invention further includes:
  • the release module is used to release the second storage space corresponding to the application upon receiving a recording end request from any of the applications.
  • the present invention also provides an electronic device 500, which includes any of the recording devices 400 provided in any of the above-described device embodiments;
  • FIG5 it includes a memory 510 and a processor 520, wherein the memory 510 is used to store computer instructions, and the processor 520 is used to retrieve the computer instructions from the memory 510 to perform the method as described in any of the above method embodiments.
  • the present invention also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method according to any one of the above-described method embodiments.
  • This invention can be a system, method, and/or computer program product.
  • a computer program product may include a computer-readable storage medium having computer-readable program instructions loaded thereon for causing a processor to implement various aspects of the invention.
  • Computer-readable storage media can be tangible devices capable of holding and storing instructions for use by an instruction execution device.
  • Computer-readable storage media can be, for example—but not limited to—electrical storage devices, magnetic storage devices, optical storage devices, electromagnetic storage devices, semiconductor storage devices, or any suitable combination thereof.
  • Computer-readable storage media include: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static random access memory (SRAM), portable compact disc read-only memory (CD-ROM), digital multifunction disc (DVD), memory sticks, floppy disks, mechanical encoding devices, such as punch cards or recessed protrusions storing instructions thereon, and any suitable combination thereof.
  • RAM random access memory
  • ROM read-only memory
  • EPROM or flash memory erasable programmable read-only memory
  • SRAM static random access memory
  • CD-ROM compact disc read-only memory
  • DVD digital multifunction disc
  • memory sticks floppy disks
  • mechanical encoding devices such as punch cards or recessed protrusions storing instructions thereon, and any suitable combination thereof.
  • the computer-readable storage media used herein are not to be construed as transient signals themselves, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (e.g., light pulses through fiber optic cables), or electrical signals transmitted through wires.
  • the computer-readable program instructions described herein can be downloaded from computer-readable storage media to various computing/processing devices, or downloaded via a network, such as the Internet, local area network, wide area network, and/or wireless network, to an external computer or external storage device.
  • the network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and/or edge servers.
  • a network adapter card or network interface in each computing/processing device receives the computer-readable program instructions from the network and forwards them to the computer-readable storage media in the respective computing/processing device.
  • the computer program instructions used to perform the operations of this invention may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent 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 the "C" language or similar programming languages.
  • the computer-readable program instructions may be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server.
  • the remote computer may be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
  • electronic circuitry such as programmable logic circuitry, field-programmable gate arrays (FPGAs), or programmable logic arrays (PLAs), is personalized by utilizing state information from the computer-readable program instructions. This electronic circuitry can execute the computer-readable program instructions to implement various aspects of the invention.
  • 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 apparatus to produce a machine such that, when executed by the processor of the computer or other programmable data processing apparatus, they create means for implementing the functions/actions specified in one or more blocks of the flowchart and/or block diagram.
  • These computer-readable program instructions can also be stored in a computer-readable storage medium that causes a computer, programmable data processing apparatus, and/or other device to operate in a particular manner; thus, the computer-readable medium storing the instructions comprises an article of manufacture that includes instructions for implementing aspects of the functions/actions specified in one or more blocks of the flowchart and/or block diagram.
  • Computer-readable program instructions may 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, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to perform the functions/actions specified in one or more boxes of a flowchart and/or block diagram.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

本发明公开了一种录音方法、装置、设备及介质,涉及计算机技术领域。其中方法包括:在接收到至少一个应用程序发送的录音请求的情况下,申请一个第一存储空间及开启麦克风;对于任一应用程序发送的录音请求,申请与应用程序相对应的第二存储空间;将麦克风经采集得到的音频信号存储至第一存储空间中;将第一存储空间中属于每一应用程序的子音频信号存储至对应第二存储空间。该方法可解决当有多个应用都需要调用XR头戴显示设备上的麦克风进行录音时,第一个调用麦克风的应用会锁定麦克风,其他应用无法再请求使用,直到第一个应用将麦克风释放,其他应用才能请求麦克风成功的问题。

Description

录音方法、装置、设备及介质
本申请要求于2024年7月24日提交中国专利局、申请号为202411000913.3、发明名称为“录音方法、装置、设备及介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及计算机技术领域,更具体地,涉及一种录音方法、装置、设备及介质。
背景技术
目前,用户在使用AR、VR、MR等XR头戴显示设备时,可以在虚拟空间中同时打开多个应用,其中,每个应用都独立运行在XR头戴显示设备一个虚拟屏上,并且保持active。这样,用户可以例如一边浏览新闻,一边播放视频,也可以进行其他操作。
但是,当有多个应用都需要调用XR头戴显示设备上的麦克风进行录音时,第一个调用麦克风的应用会锁定麦克风,其他应用无法再请求使用,直到第一个应用将麦克风释放,其他应用才能请求麦克风成功。例如,用户正在使用通讯应用进行视频通话,同时又呼叫AI助手应用打开备忘录,此时由于通讯应用一直锁定麦克风,AI助手应用将无法通过麦克风接收到用户的关于打开备忘录的语音。
发明内容
本发明的一个目的是提供一种用于录音的新技术方案。
根据本发明的第一方面,提供了一种录音方法,包括:
在接收到至少一个应用程序发送的录音请求的情况下,申请一个第一存储空间及开启麦克风;
对于任一所述应用程序发送的录音请求,申请与所述应用程序相对应的第二存储空间;
将所述麦克风经采集得到的音频信号存储至所述第一存储空间中;
将所述第一存储空间中属于每一所述应用程序的子音频信号存储至对应第二存储空间。
可选地,所述录音请求中至少包括对应应用程序需求的音频数据格式,所述方法在所述对于任一所述应用程序发送的录音请求,申请与所述应用程序相对应的第二存储空间之后,还包括:
对于任一所述第二存储空间,将对应录音请求中包括的音频数据格式存储至所述第二存储空间中;
所述将所述第一存储空间中属于每一所述应用程序的子音频信号存储至对应第二存储空间,包括:
对于任一所述第二存储空间,从所述第二存储空间中读取音频数据格式;
根据所述音频数据格式处理所述第一存储空间中属于所述第二存储空间对应所述应用程序的子音频信号,得到处理后子音频信号;
将所述处理后子音频信号发送至对应第二存储空间。
可选地,所述录音请求中至少包括对应应用程序需求的音频数据格式,所述方法在所述对于任一所述应用程序发送的录音请求,申请与所述应用程序相对应的第二存储空间之后,还包括:
对于第二录音请求对应的所述第二存储空间,将对应所述第二录音请求中包括的音频数据格式存储至所述第二存储空间中,所述第二录音请求为所述录音请求中除第一录音请求外的录音请求,所述第一录音请求为最先接收到的录音请求;
所述将所述麦克风经采集得到的音频信号存储至所述第一存储空间中,包括:
将所述麦克风经采集得到的音频信号,按照所述第一录音请求中包括的音频数据格式存储至所述第一存储空间中;
所述将所述第一存储空间中属于每一所述应用程序的子音频信号存储至对应第二存储空间,包括:
对于任一所述第二录音请求对应所述第二存储空间,从所述第二存储空间中读取音频数据格式,按照读取的所述音频数据格式处理所述第一存储空间中属于所述第二存储空间对应所述应用程序的子音频信号,得到处理后子音频信号,将所述处理后子音频信号发送至对应第二存储空间;
将所述第一存储空间中属于所述第一录音请求对应应用程序的子音频信号发送至对应第二存储空间。
可选地,所述在接收到至少一个应用程序发送的录音请求的情况下,申请一个第一存储空间,包括:
在接收至少一个所述应用程序发送的录音请求的情况下,根据第一录音请求,申请一个第一存储空间,所述第一录音请求为最先接收到的录音请求。
可选地,所述方法还包括:
对于任一第二存储空间,将所述第二存储空间中存储的子音频信号发送至对应应用程序。
可选地,所述方法还包括:
在接收到任一所述应用程序发送的录音结束请求的情况下,释放所述应用程序对应第二存储空间;
和/或,在接收到全部所述应用程序发送的录音结束请求的情况下,关闭所述麦克风以及释放所述第一存储空间。
可选地,所述方法在所述在接收到至少一个应用程序发送的录音请求的情况下,申请一个第一存储空间及开启麦克风之前,还包括:
针对于至少一个所述应用程序,接收通信连接的终端设备发送的所述应用程序的当前显示图像数据;
根据所述终端设备对应的显示位置,在所述显示位置处显示所述当前显示图像数据。
根据本发明的第二方面,提供了一种录音装置,包括:
申请模块,用于在接收到至少一个应用程序发送的录音请求的情况下,申请一个第一存储空间;
开启模块,用于在接收到至少一个应用程序发送的录音请求的情况下,开启麦克风;
存储模块,用于将所述麦克风经采集得到的音频信号存储至所述第一存储空间中,以及将所述第一存储空间中属于每一所述应用程序的子音频信号存储至对应第二存储空间。
根据本发明的第三方面,提供了一种电子设备,所述电子设备包括如第二方面所述的装置;或者,
包括存储器和处理器,所述存储器用于存储计算机指令,所述处理器用于从所述存储器中调用所述计算机指令,以执行如第一方面中任一项所述的方法。
根据本发明的第四方面,提供了一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序在被处理器执行时实现根据第一方面中任一项所述的方法。
在本发明提供了一种录音方法,包括:在接收到至少一个应用程序发送的录音请求的情况下,申请一个第一存储空间及开启麦克风;对于任一应用程序发送的录音请求,申请与应用程序相对应的第二存储空间;将麦克风经采集得到的音频信号存储至第一存储空间中;将第一存储空间中属于每一应用程序的子音频信号存储至对应第二存储空间。基于该方法可实现不同应用程序均可向电子设备发送录音请求,电子设备可对不同应用程序的录音请求进行成功响应,以供不同应用程序读取到对应的子音频信号。这便解决了当有多个应用都需要调用XR头戴显示设备上的麦克风进行录音时,第一个调用麦克风的应用会锁定麦克风,其他应用无法再请求使用,直到第一个应用将麦克风释放,其他应用才能请求麦克风成功的问题。
通过以下参照附图对本说明书的示例性实施例的详细描述,本说明书的其它特征及其优点将会变得清楚。
附图说明
被结合在说明书中并构成说明书的一部分的附图示出了本发明的实施例,并且连同其说明一起用于解释本发明的原理。
图1是根据本发明实施例提供的一种实现录音方法的电子设备的硬件配置的框图一;
图2是根据本发明实施例提供的一种实现录音方法的流程示意图一;
图3是根据本发明实施例提供的一种实现录音方法的流程示意图二;
图4是根据本发明实施例提供的一种实现录音装置的结构示意图;
图5是根据本发明实施例提供的一种实现录音方法的电子设备的硬件配置的框图二。
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本发明的一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
需要说明,若本发明实施例中有涉及方向性指示(诸如上、下、左、右、前、后……),则该方向性指示仅用于解释在某一特定姿态(如附图所示)下各部件之间的相对位置关系、运动情况等,如果该特定姿态发生改变时,则该方向性指示也相应地随之改变。
另外,若本发明实施例中有涉及“第一”、“第二”等的描述,则该“第一”、“第二”等的描述仅用于描述目的,而不能理解为指示或暗示其相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。另外,全文中出现的“和/或”的含义,包括三个并列的方案,以“A和/或B”为例,包括A方案、或B方案、或A和B同时满足的方案。另外,各个实施例之间的技术方案可以相互结合,但是必须是以本领域普通技术人员能够实现为基础,当技术方案的结合出现相互矛盾或无法实现时应当认为这种技术方案的结合不存在,也不在本发明要求的保护范围之内。
图1是根据本发明实施例提供的一种实现录音方法的电子设备的硬件配置的框图一。其中,电子设备1000示例性的为头戴显示设备(如AR、MR、VR等XR眼镜、头盔等)、智能手机、笔记本电脑、平板电脑等。
电子设备1000可以包括处理器1100、存储器1200、接口单元1300、通信单元1400、显示单元1500、输入单元1600、扬声器1700、麦克风1800,等等。其中,处理器1100可以是中央处理器CPU、微处理器MCU等。存储器1200例如包括ROM(只读存储器)、RAM(随机存取存储器)、诸如硬盘的非易失性存储器等。接口单元1300例如包括USB接口、耳机接口等。通信单元1400例如能够进行有线或无线通信。显示单元1500例如是液晶显示屏、触摸显示屏等。输入单元1600例如可以包括触摸屏、按键等。用户可以通过扬声器1700和麦克风1800输入/输出语音信息。
尽管在图1中对电子设备1000均示出了多个单元,但是,本发明可以仅涉及其中的部分单元,例如,电子设备1000只涉及存储器1200及处理器1100。
应用于本发明的实施例中,电子设备1000的存储器1200用于存储指令,该指令用于控制处理器1100执行本发明实施例提供的录音方法。
在上述描述中,技术人员可以根据本发明所公开方案设计指令。指令如何控制处理器进行操作,这是本领域公知,故在此不再详细描述。
在传统技术中,在一个应用程序A向电子设备发送录音请求的情况下,电子设备仅申请一个存储空间并开启麦克风。进一步的,将麦克风采集到用于针对于应用程序A输入的语音的音频信号a存储至该存储空间后,应用程序A直接从该存储空间中读取音频信号a。这使得其他应用程序B无法成功向电子设备发送录音请求,用户针对于其他应用程序B输入的语音的音频信号b均被存储至电子设备为应用程序A申请的存储空间中,进而被应用程序A读取。这也就是说,在传统技术中,其他应用程序B无法读取到用户针对于其他应用程序B输入的语音的音频信号b。
为了解决上述问题,本发明提供了一种录音方法,如图2所示,该录音方法包括如下步骤S2100至步骤S2400。
步骤S2100,在接收到至少一个应用程序发送的录音请求的情况下,申请一个存储空间及开启麦克风。
在本实施例中,针对于上述步骤S2100中的应用程序中的任一个,应用程序可以为执行本发明提供的录音方法的电子设备中所运行的应用程序,当然也可以为与电子设备通信连接的外接终端设备中运行的应用程序。对于后者,电子设备例如为XR眼镜,应用程序为与XR眼镜通信连接的智能手机中运行的且经串流显示在XR眼镜创建的虚拟空间的应用程序。对此,在本发明的一个实施例中,本发明提供的方法在上述步骤S2100之前还包括如下步骤S2110和步骤S2111。
步骤S2110,针对于至少一个应用程序,接收通信连接的终端设备发送的应用程序的当前显示图像数据。
步骤S2111,根据终端设备对应的显示位置,在显示位置处显示当前显示图像数据。
在本实施例中,电子设备的显示屏被规划为多个显示位置,与电子设备通信连接的一个终端设备对应一个显示位置。在接收到一个终端设备发送的应用程序的当前显示图像数据后,将该当前显示图像数据显示在对应终端设备所对应显示位置处。这样,则可供用户在电子设备上查看到应用程序对应的当前显示图像数据,进而为用户提供语音输入的基础。
进一步的,可以理解的是,在同一时刻,使用执行本发明提供的录音方法的电子设备的用户仅可说出针对于一个应用程序的语音。因此,在本实施例中,同一时刻仅存在一个应用程序向电子设备发送录音请求。即上述步骤S2100中的录音请求为电子设备在不同时刻依次接收到的。其中,针对于任一录音请求,该录音请求中可包括采样率、声道数、位数、应用程序标识等。
对于上述步骤S2100,在接收到至少一个应用程序发送的录音请求的情况下,则说明存在录音需求。此时,开启麦克风,由麦克风采集音频信号。以及,申请一个第一存储空间以存储麦克风即将经采集得到的音频信号。
在本发明的一个实施例中,第一存储空间的大小可具体为预设比特数。
步骤S2200,对于任一应用程序发送的录音请求,申请与应用程序相对应的第二存储空间。
在本实施例中,在每接收到一个应用程序发送的录音请求的情况下,则申请一个与发送该录音请求的应用程序相对应的第二存储空间。该第二存储空间用于存储麦克风采集到的用户针对于该录音请求对应应用程序的子音频信号。
需要说明的是,在本发明中,应用程序、录音请求及第二存储空间存在一一对应关系。
步骤S2300,将麦克风采集得到的音频信号存储至第一存储空间中。
步骤S2400,将第一存储空间中属于每一应用程序的子音频信号存储至对应第二存储空间。
在本实施例中,在麦克风开启的情况下,将麦克风采集得到的音频信号先统一存储至第一存储空间中。可以理解的是,第一存储空间中包括用户针对于发送不同录音请求对应应用程序的语音的子音频信号。进一步的,再将第一存储空间中的用户针对于发送不同录音请求对应应用程序的语音的子音频信号,分别发送至对应第二存储空间中。在此基础上,应用程序从对应的第二存储空间中读取子音频信号,便可获取到用户对于该应用程序输入的语音的子音频信号。这样,每一应用程序均可读取到用户针对于自己输入的语音的音频信号。因此,基于上述步骤S2100至步骤S2400,可实现不同应用程序均可向电子设备发送录音请求,电子设备可对不同应用程序的录音请求进行成功响应,以供不同应用程序读取到对应的子音频信号。这便解决了当有多个应用都需要调用XR头戴显示设备上的麦克风进行录音时,第一个调用麦克风的应用会锁定麦克风,其他应用无法再请求使用,直到第一个应用将麦克风释放,其他应用才能请求麦克风成功的问题。
对于上述步骤S2100至步骤S2400,在一个示例中,应用程序A首先向电子设备发送录音请求1,此时,电子设备开启麦克风、申请一个第一存储空间、申请第二存储空间I。在麦克风开启期间,麦克风将采集到的用户针对于程序A输入的语音的子音频信号a存储至第一存储空间中。进一步的,应用程序B再次向电子设备发送录音请求2,此时,电子设备申请第二存储空间II,以及麦克风将采集到的用户针对于程序B输入的语音的子音频信号b存储至第一存储空间中。进一步的,电子设备将第一存储空间中的子音频信号a存储至第二存储空间I,以及将第一存储空间中的子音频信号b存储至第二存储空间II。
在本发明提供了一种录音方法,包括:在接收到至少一个应用程序发送的录音请求的情况下,申请一个第一存储空间及开启麦克风;对于任一应用程序发送的录音请求,申请与应用程序相对应的第二存储空间;将麦克风经采集得到的音频信号存储至第一存储空间中;将第一存储空间中属于每一应用程序的子音频信号存储至对应第二存储空间。基于该方法可实现不同应用程序均可向电子设备发送录音请求,电子设备可对不同应用程序的录音请求进行成功响应,以供不同应用程序读取到对应的子音频信号。这便解决了当有多个应用都需要调用XR头戴显示设备上的麦克风进行录音时,第一个调用麦克风的应用会锁定麦克风,其他应用无法再请求使用,直到第一个应用将麦克风释放,其他应用才能请求麦克风成功的问题。
在本发明的一个实施例中,在上述步骤S2100至步骤S2400的基础上,本发明提供的录音方法还包括如下步骤S2500。
步骤S2500,对于任一第二存储空间,将第二存储空间中存储的子音频信号发送至对应应用程序。
基于上述步骤S2500,每一发送录音请求的应用程序均可读取到用户针对其输入的语音的子音频信号。
在本发明的一个实施例中,上述步骤S2400具体通过下述两种方式来实现。
其中,对于第一种方式,录音请求中至少包括对应应用程序需求的音频数据格式。在此基础上,本发明提供的录音方法在上述步骤S2200之后还包括下述步骤S2210。
步骤S2210,对于任一第二存储空间,将对应录音请求中包括的音频数据格式存储至第二存储空间中。
在本实施例中,在申请到第二存储空间后,将该第二存储空间对应录音请求中包括的音频数据格式存储至第二存储空间中。
在上述步骤S2210的基础上,上述步骤S2400则具体通过下述步骤S2410至步骤S2412来实现。
步骤2410,对于任一第二存储空间,从第二存储空间中读取音频数据格式。
在本实施例中,第二存储空间中存储有音频数据格式。在此基础上,可直接从第二存储空间中读取音频数据格式。
步骤S2411,根据音频数据格式处理第一存储空间中属于第二存储空间对应应用程序的子音频信号,得到处理后子音频信号。
需要说明的是,上述步骤S2411中的处理具体指的是:解码为原始数据,再按照所读取的音频数据格式编码。
步骤S2412,将处理后子音频信号发送至对应第二存储空间中。
对于上述步骤S2410至步骤S2412,在一个示例中,第一存储空间中存储用户针对于程序A输入的语音的子音频信号a和用户针对于程序B输入的语音的子音频信号b,且电子设备申请有针对于应用程序A的第二存储空间I和针对于应用程序B的第二存储空间II,第二存储空间I中存储有音频数据格式一,第二存储空间II中存储有音频数据格式二。在此基础上,则从第二存储空间I中读取应用程序A需求的音频数据格式一,按照音频数据格式一对第一存储空间中的子音频信号a进行数据处理,以将其处理为音频数据格式一的音频信号(即处理后的子音频信号a),之后再存储至第二存储空间I中。以及,从第二存储空间II中读取应用程序B需求的音频数据格式二,按照音频数据格式二对第一存储空间中的子音频信号b进行数据处理,以将其处理为音频数据格式二的音频信号(即处理后的子音频信号b),之后再存储至第二存储空间II中。在此基础上,应用程序A则可从第二存储空间I中读取到自身需求的数据格式一的音频信号,以及应用程序B可从第二存储空间II中读取到自身需求的数据格式二的音频信号。此时,无需应用程序A和应用程序B进行音频信号的处理。
在本实施例中,基于上述步骤S2410至步骤S2412则可实现向第二存储空间中存储对应应用程序需求的音频数据格式的子音频信号。这样,应用程序可直接读取并使用,而无需进行音频信号的处理。
对于第二种方式,录音请求中至少包括对应应用程序需求的音频数据格式,本发明实施例提供的录音方法在上述步骤S2200之后,还包括如下步骤S2220。
步骤S2220,对于第二录音请求对应的第二存储空间,将对应第二录音请求中包括的音频数据格式存储至第二存储空间中,第二录音请求为录音请求中除第一录音请求外的录音请求,第一录音请求为最先接收到的录音请求。
在本实施例中,将最先接收到的录音请求记为第一录音请求,将第一录音请求之后接收到的录音请求记为第二录音请求。以及,仅将第二录音请求中包括的音频数据格式存储至对应第二存储空间中,而不将第一录音请求中包括的音频数据格式存储至对应第二存储空间中。
进一步的,上述步骤S2300则具体通过下述步骤S2310来实现。
步骤S2310,将麦克风经采集得到的音频信号,按照第一录音请求中包括的音频数据格式存储至第一存储空间中。
在本实施例中,由于第一存储空间中的音频信号的数据格式均为第一录音请求中包括的音频数据格式,因此,无需将第一录音请求中包括的音频数据格式存储至对应第二存储空间中,只需将第一存储空间中属于第一录音请求对应应用程序的子音频信号发送至对应第二存储空间,该第二存储空间即可得到对应应用程序所需求的音频数据格式的子音频信号。在此基础上,上述步骤S2400则具体通过下述步骤S2420和步骤S2421来实现。
步骤S2420,对于任一第二录音请求对应第二存储空间,从第二存储空间中读取音频数据格式,按照所读取的音频数据格式处理第一存储空间中属于第二存储空间对应应用程序的子音频信号,得到处理后子音频信号,将处理后子音频信号发送至对应第二存储空间。
步骤S2421,将第一存储空间中属于第一录音请求对应应用程序的子音频信号发送至对应第二存储空间。
对于上述步骤S2420至步骤S2421,在一个示例中,应用程序A首先向电子设备发送录音请求1,此时,电子设备将录音请求1作为第一录音请求,并开启麦克风、按照录音请求1申请一个可至少满足存储应用程序A所需大小的第一存储空间、以及申请可满足存储应用程序A所需大小的第二存储空间I。在麦克风开启期间,麦克风采集到的用户针对于程序A输入的语音的子音频信号a。电子设备按照录音请求1中的音频数据格式一处理子音频信号a,并将处理后的子音频信号a存储至第一存储空间中。进一步的,应用程序B再次向电子设备发送录音请求2,此时,电子设备将录音请求2作为第二录音请求,以及申请可满足存储应用程序B所需大小的申请第二存储空间II,并在第二存储空间II中存储录音请求2包括的音频数据格式二。电子设备将麦克风采集到的用户针对于程序B输入的语音的子音频信号b按照录音请求1中的音频数据格式一处理子音频信号b,并将处理后的子音频信号b存储至第一存储空间中。进一步的,电子设备将第一存储空间中的子音频信号a直接存储至第二存储空间I,以及从第二存储空间II中读取音频数据处理格式二,按照音频数据处理格式二处理第一存储空间中的子音频信号b,并将处理后的子音频信号b存储至第二存储空间II。
在本发明的一个实施例中,上述步骤S2100具体通过下述步骤S2120来实现。
步骤S2120,在接收至少一个应用程序发送的录音请求的情况下,根据第一录音请求,申请一个第一存储空间。
其中,第一录音请求为最先接收到的录音请求。
在本实施例中,将最先接收到的录音请求记为第一录音请求。
在本实施例中,根据第一录音请求,申请一个可至少满足发送第一录音请求的应用程序所需求大小的存储空间,以作为第一存储空间,这样可包括第一存储空间至少可存储用户针对于第一录音请求对应应用程序输入的语音的音频信号。
在本发明的一个实施例中,本发明提供的录音方法还包括如下步骤S2600和/或步骤2700。
步骤S2600,在接收到任一应用程序发送的录音结束请求的情况下,释放应用程序对应第二存储空间。
步骤S2700,在接收到全部应用程序发送的录音结束请求的情况下,关闭麦克风以及释放第一存储空间。
在本实施例中,在将接收到任一应用程序发送的录音结束请求的情况下,通过释放该应用程序对应的第二存储空间,则可实现对应第二存储空间的资源释放,避免电子设备中存储空间的不必要的占用。
以及,在接收到发送过录音请求的全部应用程序再次发送的录音结束请求的情况下,释放第一存储空间,则可实现对第一存储空间和全部第二存储空间的资源释放,避免电子设备中存储空间的不必要的占用。同时,在接收到发送过录音请求的全部应用程序再次发送的录音结束请求的情况下,关闭麦克风,则可避免麦克风的不必要的占用。
在上述内容的基础上,本发明提供的录音方法的一种程序语音的实现方式,可具体如图3所示。APP1首先向电子设备发送录音请求,电子设备根据录音请求调用AudioRecord函数,AudioRecord函数开启麦克风、申请作为第一存储空间的Sample Buffer、申请作为第二存储空间的APP1 Buffer。麦克风将采集到的针对于APP1的音频信号存储至Sample Buffer中。APP2继续向电子设备发送录音请求,电子设备根据APP2发送的录音请求继续调用AudioRecord函数,AudioRecord函数申请作为第二存储空间的APP2 Buffer。进一步的,麦克风将采集到的针对于APP2的音频信号存储至Sample Buffer中。更进一步的,将Sample Buffer中属于APP1的子音频信号存储至APP1 Buffer,将Sample Buffer中属于APP2的子音频信号存储至APP2 Buffer。将APP1 Buffer中的子音频信号发送至APP1,及将APP2 Buffer中的子音频信号发送至APP2。
本发明还提供了一种录音装置400,如图4所示,包括:
申请模块410,用于在接收到至少一个应用程序发送的录音请求的情况下,申请一个第一存储空间;
开启模块420,用于在接收到至少一个应用程序发送的录音请求的情况下,开启麦克风;
存储模块430,用于将所述麦克风经采集得到的音频信号存储至所述第一存储空间中,以及将所述第一存储空间中属于每一所述应用程序的子音频信号存储至对应第二存储空间。
在本发明的一个实施例中,所述录音请求中至少包括对应应用程序需求的音频数据格式,存储模块430,还用于:对于任一第二存储空间,将对应录音请求中包括的音频数据格式存储至所述第二存储空间中;
以及,具体用于:对于任一第二存储空间,从所述第二存储空间中读取音频数据格式;
根据所述音频数据格式处理所述第一存储空间中属于所述第二存储空间对应所述应用程序的子音频信号,得到处理后子音频信号;
将所述处理后子音频信号发送至对应第二存储空间。
在本发明的一个实施例中,所述录音请求中至少包括对应应用程序需求的音频数据格式,存储模块430,还用于:对于第二录音请求对应的第二存储空间,将对应第二录音请求中包括的音频数据格式存储至所述第二存储空间中,所述第二录音请求为所述录音请求中除第一录音请求外的录音请求,所述第一录音请求为最先接收到的录音请求;
以及,具体用于:将所述麦克风经采集得到的音频信号,按照所述第一录音请求中包括的音频数据格式存储至所述第一存储空间中;
对于任一第二录音请求对应第二存储空间,从所述第二存储空间中读取音频数据格式,按照所读取的音频数据格式处理所述第一存储空间中属于所述第二存储空间对应所述应用程序的子音频信号,得到处理后子音频信号,将所述处理后子音频信号发送至对应第二存储空间;
将所述第一存储空间中属于所述第一录音请求对应应用程序的子音频信号发送至对应第二存储空间。
在本发明的一个实施例中,申请模块410,具体用于:在接收至少一个应用程序发送的录音请求的情况下,根据第一录音请求,申请一个第一存储空间,所述第一录音请求为最先接收到的录音请求。
在本发明的一个实施例中,本发明提供的录音装置400还包括:
发送模块,对于任一第二存储空间,将所述第二存储空间中存储的子音频信号发送至对应应用程序。
在本发明的一个实施例中,本发明提供的录音装置400还包括:
释放模块,用于在接收到任一所述应用程序发送的录音结束请求的情况下,释放所述应用程序对应第二存储空间;
和/或,在接收到全部所述应用程序发送的录音结束请求的情况下,关闭所述麦克风以及释放所述第一存储空间。
本发明还提供了一种电子设备500,该电子设备包括上述任一装置实施例提供的任一种录音装置400;
或者,如图5所示,包括存储器510和处理器520,所述存储器510用于存储计算机指令,所述处理器520用于从所述存储器510中调用所述计算机指令,以执行如上述方法实施例中任一项所述的方法。
本发明还提供了一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序在被处理器执行时实现根据上述方法实施例中任一项所述的方法。
本发明可以是系统、方法和/或计算机程序产品。计算机程序产品可以包括计算机可读存储介质,其上载有用于使处理器实现本发明的各个方面的计算机可读程序指令。
计算机可读存储介质可以是可以保持和存储由指令执行设备使用的指令的有形设备。计算机可读存储介质例如可以是――但不限于――电存储设备、磁存储设备、光存储设备、电磁存储设备、半导体存储设备或者上述的任意合适的组合。计算机可读存储介质的更具体的例子(非穷举的列表)包括:便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、静态随机存取存储器(SRAM)、便携式压缩盘只读存储器(CD-ROM)、数字多功能盘(DVD)、记忆棒、软盘、机械编码设备、例如其上存储有指令的打孔卡或凹槽内凸起结构、以及上述的任意合适的组合。这里所使用的计算机可读存储介质不被解释为瞬时信号本身,诸如无线电波或者其他自由传播的电磁波、通过波导或其他传输媒介传播的电磁波(例如,通过光纤电缆的光脉冲)、或者通过电线传输的电信号。
这里所描述的计算机可读程序指令可以从计算机可读存储介质下载到各个计算/处理设备,或者通过网络、例如因特网、局域网、广域网和/或无线网下载到外部计算机或外部存储设备。网络可以包括铜传输电缆、光纤传输、无线传输、路由器、防火墙、交换机、网关计算机和/或边缘服务器。每个计算/处理设备中的网络适配卡或者网络接口从网络接收计算机可读程序指令,并转发该计算机可读程序指令,以供存储在各个计算/处理设备中的计算机可读存储介质中。
用于执行本发明操作的计算机程序指令可以是汇编指令、指令集架构(ISA)指令、机器指令、机器相关指令、微代码、固件指令、状态设置数据、或者以一种或多种编程语言的任意组合编写的源代码或目标代码,所述编程语言包括面向对象的编程语言—诸如Smalltalk、C++等,以及常规的过程式编程语言—诸如“C”语言或类似的编程语言。计算机可读程序指令可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络—包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。在一些实施例中,通过利用计算机可读程序指令的状态信息来个性化定制电子电路,例如可编程逻辑电路、现场可编程门阵列(FPGA)或可编程逻辑阵列(PLA),该电子电路可以执行计算机可读程序指令,从而实现本发明的各个方面。
这里参照根据本发明实施例的方法、装置(系统)和计算机程序产品的流程图和/或框图描述了本发明的各个方面。应当理解,流程图和/或框图的每个方框以及流程图和/或框图中各方框的组合,都可以由计算机可读程序指令实现。
这些计算机可读程序指令可以提供给通用计算机、专用计算机或其它可编程数据处理装置的处理器,从而生产出一种机器,使得这些指令在通过计算机或其它可编程数据处理装置的处理器执行时,产生了实现流程图和/或框图中的一个或多个方框中规定的功能/动作的装置。也可以把这些计算机可读程序指令存储在计算机可读存储介质中,这些指令使得计算机、可编程数据处理装置和/或其他设备以特定方式工作,从而,存储有指令的计算机可读介质则包括一个制造品,其包括实现流程图和/或框图中的一个或多个方框中规定的功能/动作的各个方面的指令。
也可以把计算机可读程序指令加载到计算机、其它可编程数据处理装置、或其它设备上,使得在计算机、其它可编程数据处理装置或其它设备上执行一系列操作步骤,以产生计算机实现的过程,从而使得在计算机、其它可编程数据处理装置、或其它设备上执行的指令实现流程图和/或框图中的一个或多个方框中规定的功能/动作。
附图中的流程图和框图显示了根据本发明的多个实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或指令的一部分,所述模块、程序段或指令的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。对于本领域技术人员来说公知的是,通过硬件方式实现、通过软件方式实现以及通过软件和硬件结合的方式实现都是等价的。需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者系统不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者系统中还存在另外的相同要素。
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在如上的一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,电视机,或者网络设备等)执行本发明各个实施例的方法。
以上所述仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是在本发明的发明构思下,利用本发明说明书及附图内容所作的等效结构变换,或直接/间接运用在其他相关的技术领域均包括在本发明的专利保护范围。

Claims (10)

  1. 一种录音方法,其特征在于,包括:
    在接收到至少一个应用程序发送的录音请求的情况下,申请一个第一存储空间及开启麦克风;
    对于任一所述应用程序发送的录音请求,申请与所述应用程序相对应的第二存储空间;
    将所述麦克风经采集得到的音频信号存储至所述第一存储空间中;
    将所述第一存储空间中属于每一所述应用程序的子音频信号存储至对应第二存储空间。
  2. 根据权利要求1所述的方法,其特征在于,所述录音请求中至少包括对应应用程序需求的音频数据格式,所述方法在所述对于任一所述应用程序发送的录音请求,申请与所述应用程序相对应的第二存储空间之后,还包括:
    对于任一所述第二存储空间,将对应录音请求中包括的音频数据格式存储至所述第二存储空间中;
    所述将所述第一存储空间中属于每一所述应用程序的子音频信号存储至对应第二存储空间,包括:
    对于任一所述第二存储空间,从所述第二存储空间中读取音频数据格式;
    根据所述音频数据格式处理所述第一存储空间中属于所述第二存储空间对应所述应用程序的子音频信号,得到处理后子音频信号;
    将所述处理后子音频信号发送至对应第二存储空间。
  3. 根据权利要求1所述的方法,其特征在于,所述录音请求中至少包括对应应用程序需求的音频数据格式,所述方法在所述对于任一所述应用程序发送的录音请求,申请与所述应用程序相对应的第二存储空间之后,还包括:
    对于第二录音请求对应的所述第二存储空间,将对应所述第二录音请求中包括的音频数据格式存储至所述第二存储空间中,所述第二录音请求为所述录音请求中除第一录音请求外的录音请求,所述第一录音请求为最先接收到的录音请求;
    所述将所述麦克风经采集得到的音频信号存储至所述第一存储空间中,包括:将所述麦克风经采集得到的音频信号,按照所述第一录音请求中包括的音频数据格式存储至所述第一存储空间中;
    所述将所述第一存储空间中属于每一所述应用程序的子音频信号存储至对应第二存储空间,包括:
    对于任一所述第二录音请求对应所述第二存储空间,从所述第二存储空间中读取音频数据格式,按照读取的所述音频数据格式处理所述第一存储空间中属于所述第二存储空间对应所述应用程序的子音频信号,得到处理后子音频信号,将所述处理后子音频信号发送至对应第二存储空间;
    将所述第一存储空间中属于所述第一录音请求对应应用程序的子音频信号发送至对应第二存储空间。
  4. 根据权利要求1所述的方法,其特征在于,所述在接收到至少一个应用程序发送的录音请求的情况下,申请一个第一存储空间,包括:
    在接收至少一个所述应用程序发送的录音请求的情况下,根据第一录音请求,申请一个第一存储空间,所述第一录音请求为最先接收到的录音请求。
  5. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    对于任一第二存储空间,将所述第二存储空间中存储的子音频信号发送至对应应用程序。
  6. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    在接收到任一所述应用程序发送的录音结束请求的情况下,释放所述应用程序对应第二存储空间;
    和/或,在接收到全部所述应用程序发送的录音结束请求的情况下,关闭所述麦克风以及释放所述第一存储空间。
  7. 根据权利要求1所述的方法,其特征在于,所述方法在所述在接收到至少一个应用程序发送的录音请求的情况下,申请一个第一存储空间及开启麦克风之前,还包括:
    针对于至少一个所述应用程序,接收通信连接的终端设备发送的所述应用程序的当前显示图像数据;
    根据所述终端设备对应的显示位置,在所述显示位置处显示所述当前显示图像数据。
  8. 一种录音装置,其特征在于,包括:
    申请模块,用于在接收到至少一个应用程序发送的录音请求的情况下,申请一个第一存储空间;
    开启模块,用于在接收到至少一个应用程序发送的录音请求的情况下,开启麦克风;
    存储模块,用于将所述麦克风经采集得到的音频信号存储至所述第一存储空间中,以及将所述第一存储空间中属于每一所述应用程序的子音频信号存储至对应第二存储空间。
  9. 一种电子设备,其特征在于,所述电子设备包括如权利要求8所述的装置;或者,
    包括存储器和处理器,所述存储器用于存储计算机指令,所述处理器用于从所述存储器中调用所述计算机指令,以执行如权利要求1-7中任一项所述的方法。
  10. 一种计算机可读存储介质,其特征在于,其上存储有计算机程序,所述计算机程序在被处理器执行时实现根据权利要求1-7中任一项所述的方法。
PCT/CN2025/090306 2024-07-24 2025-04-22 录音方法、装置、设备及介质 Pending WO2026020902A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202411000913.3A CN118964012A (zh) 2024-07-24 2024-07-24 录音方法、装置、设备及介质
CN202411000913.3 2024-07-24

Publications (1)

Publication Number Publication Date
WO2026020902A1 true WO2026020902A1 (zh) 2026-01-29

Family

ID=93382739

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2025/090306 Pending WO2026020902A1 (zh) 2024-07-24 2025-04-22 录音方法、装置、设备及介质

Country Status (2)

Country Link
CN (1) CN118964012A (zh)
WO (1) WO2026020902A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118964012A (zh) * 2024-07-24 2024-11-15 歌尔科技有限公司 录音方法、装置、设备及介质
CN119883176A (zh) * 2024-12-24 2025-04-25 长城汽车股份有限公司 一种录音方法、装置、电子设备和可读存储介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106648921A (zh) * 2016-09-30 2017-05-10 北京奇虎科技有限公司 一种实现安卓系统中共享录音数据的方法及电子设备
CN109378017A (zh) * 2018-09-26 2019-02-22 科大讯飞股份有限公司 一种录音方法、装置、音频系统、录音设备及存储介质
CN112071337A (zh) * 2019-06-10 2020-12-11 海信视像科技股份有限公司 一种录音控制方法、装置、服务器和显示设备
CN112071338A (zh) * 2019-06-10 2020-12-11 海信视像科技股份有限公司 一种录音控制方法、装置和显示设备
WO2023231862A1 (zh) * 2022-05-30 2023-12-07 维沃移动通信有限公司 麦克风的控制方法、装置及电子设备
CN118964012A (zh) * 2024-07-24 2024-11-15 歌尔科技有限公司 录音方法、装置、设备及介质

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106648921A (zh) * 2016-09-30 2017-05-10 北京奇虎科技有限公司 一种实现安卓系统中共享录音数据的方法及电子设备
CN109378017A (zh) * 2018-09-26 2019-02-22 科大讯飞股份有限公司 一种录音方法、装置、音频系统、录音设备及存储介质
CN112071337A (zh) * 2019-06-10 2020-12-11 海信视像科技股份有限公司 一种录音控制方法、装置、服务器和显示设备
CN112071338A (zh) * 2019-06-10 2020-12-11 海信视像科技股份有限公司 一种录音控制方法、装置和显示设备
WO2023231862A1 (zh) * 2022-05-30 2023-12-07 维沃移动通信有限公司 麦克风的控制方法、装置及电子设备
CN118964012A (zh) * 2024-07-24 2024-11-15 歌尔科技有限公司 录音方法、装置、设备及介质

Also Published As

Publication number Publication date
CN118964012A (zh) 2024-11-15

Similar Documents

Publication Publication Date Title
WO2026020902A1 (zh) 录音方法、装置、设备及介质
JP7387891B2 (ja) 動画ファイルの生成方法、装置、端末及び記憶媒体
JP7351907B2 (ja) オンライン文書共有方法、装置、電子機器及び記憶媒体
JP6006749B2 (ja) 動画マルチメディアを利用した着信通知を提供するための方法およびシステム
WO2020133373A1 (zh) 视频处理方法、装置、电子设备及计算机可读存储介质
CN110704202B (zh) 多媒体录制数据共享方法及终端设备
KR101002886B1 (ko) 멀티-미디어 신호들의 인코딩
CN103384346B (zh) 一种ppt文件处理的方法及装置
KR101528367B1 (ko) 사운드 제어 시스템 및 사운드 제어 방법
CN103475572A (zh) 在即时通信应用中发送多张图片的方法、装置及系统
WO2022111027A1 (zh) 视频获取方法、电子设备及存储介质
WO2021073205A1 (zh) 视频处理方法、装置、存储介质及电子设备
JP6280215B2 (ja) ビデオ会議端末、セカンダリストリームデータアクセス方法およびコンピュータ記憶媒体
US11196868B2 (en) Audio data processing method, server, client and server, and storage medium
US20240289141A1 (en) Resource playing method and apparatus, electronic device, and storage medium
CN107957908A (zh) 一种麦克风共享方法、装置、计算机设备及存储介质
JP2021530905A (ja) ビデオ処理方法、装置、端末及び記憶媒体
CN112562638A (zh) 语音预览的方法、装置及电子设备
CN109582274B (zh) 音量调节方法、装置、电子设备及计算机可读存储介质
KR20180072310A (ko) 전자 장치, 그 제어 방법 및 디스플레이 장치
US9152374B2 (en) Control and capture of audio data intended for an audio endpoint device of an application executing on a data processing device
CN112637626B (zh) 推流方法、系统、装置、电子设备及存储介质
JP6385474B2 (ja) クラウドストリーミング基盤放送連動型サービスシステム、放送連動型サービスクライアント装置、トリガーコンテンツ提供サーバー及びこれを利用した方法
CN115550501B (zh) 音频控制方法、电子设备及介质
WO2020044084A1 (zh) 近场数据迁移方法及其装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 25843292

Country of ref document: EP

Kind code of ref document: A1