Audio input / output system, method, and electronic device
By utilizing the audio input/output system with selection, acquisition, processing, and output modules, the problems of inflexible audio switching and high maintenance costs under traditional hardware control are solved, achieving flexible control of audio output and a user-friendly experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SENARY TECH LTD
- Filing Date
- 2022-10-28
- Publication Date
- 2026-07-21
AI Technical Summary
Traditional multi-channel audio input/output systems switch between multiple audio channels through hardware, which is not intuitive to operate, cannot be flexibly controlled, has a poor user experience, and has high hardware upgrade and maintenance costs.
An audio input/output system is adopted, including a selection module, an acquisition module, a processing module, and an output module. By selecting the recording channel and output configuration of the audio device, audio data is acquired, alignment and conversion processing is performed, and the data is mixed in the shared audio output memory. Finally, the mixed audio data is output, and flexible control via software interface is supported.
It enables flexible switching of audio output and a user-friendly operating experience, reducing hardware upgrade and maintenance costs.
Smart Images

Figure CN115617303B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of audio playback technology, and in particular to an audio input / output system, method, and electronic device. Background Technology
[0002] With the development of multimedia technology, it has become common for multiple audio devices to input into a single device for centralized audio processing. Different audio devices have different interfaces, and the software interfaces for converging multiple audio streams into the Android system also vary. Ultimately, users want to select one or more audio outputs. Currently, traditional multi-channel audio input and single or multiple-channel output systems typically include an operating system and implement multi-channel audio switching through hardware. This lack of flexibility in controlling audio output switching results in a poor user experience. Summary of the Invention
[0003] The purpose of this invention is to provide audio input / output systems, methods, and electronic devices to improve the user's operating experience.
[0004] This invention provides an audio input / output system, comprising:
[0005] The selection module is used to select the recording channels and audio output configurations for multiple audio devices.
[0006] The acquisition module is used to acquire audio data corresponding to multiple audio devices based on multiple recording channels;
[0007] The processing module is used to perform alignment and conversion processing on multiple audio data according to multiple audio output configurations, and transmit them to a pre-created audio shared output memory to obtain mixed audio data;
[0008] Output module, used to output mixed audio data.
[0009] Furthermore, the acquisition module is also used for:
[0010] Detect the audio devices corresponding to multiple standard Android interfaces;
[0011] Create a corresponding recording task for each audio device;
[0012] For each recording task, initialize the corresponding audio device and create the corresponding recording channel to obtain the audio data corresponding to each audio device.
[0013] Furthermore, the processing module is also used for:
[0014] Read the audio data and audio output configuration corresponding to each audio device;
[0015] For each audio device, if the audio output of the corresponding audio device is configured to be non-mute, the audio data read from the audio device will be aligned and converted before being transmitted to the pre-created audio shared output memory.
[0016] If the audio output of the audio device is configured to be muted, the audio data read from the audio device will be replaced with the muted audio data. After the muted audio data is aligned and converted, it will be transmitted to the pre-created audio shared output memory.
[0017] All data in the shared audio output memory is identified as mixed audio data.
[0018] Furthermore, the output module is also used for:
[0019] Send the mixed audio data to the default playback device to play the mixed audio data.
[0020] Furthermore, the data structure of the audio shared output memory includes: audio stream type, number of audio channels, baud rate, sample bit width, and audio data.
[0021] Furthermore, the data structure of audio data includes: number of audio channels, baud rate, sampling bit width, and audio data.
[0022] This invention provides an audio input / output method, the method comprising:
[0023] The selection module allows you to choose the recording channels and audio output configurations for multiple audio devices.
[0024] The acquisition module acquires audio data corresponding to multiple audio devices based on multiple recording channels;
[0025] The processing module performs alignment and conversion processing on multiple audio data according to multiple audio output configurations, and transmits them to a pre-created audio shared output memory to obtain mixed audio data;
[0026] The output module will output mixed audio data.
[0027] Furthermore, the steps for acquiring audio data corresponding to multiple audio devices include:
[0028] Detect the audio devices corresponding to multiple standard Android interfaces;
[0029] Create a corresponding recording task for each audio device;
[0030] For each recording task, initialize the corresponding audio device and create a pre-selected recording channel to read the audio data corresponding to each audio device.
[0031] The present invention provides an electronic device, which includes a processor and a memory. The memory stores computer-executable instructions that can be executed by the processor, and the processor executes the computer-executable instructions to implement any of the methods described above.
[0032] The present invention provides a computer-readable storage medium storing computer-executable instructions, which, when invoked and executed by a processor, cause the processor to implement any of the methods described above.
[0033] The present invention provides an audio input / output system, method, and electronic device. The system includes a selection module for selecting recording channels and audio output configurations corresponding to multiple audio devices; an acquisition module for acquiring audio data corresponding to each of the multiple audio devices based on the multiple recording channels; a processing module for performing alignment and conversion processing on the multiple audio data according to the multiple audio output configurations and transmitting the data to a pre-created shared audio output memory to obtain mixed audio data; and an output module for outputting the mixed audio data. This system allows for flexible control of audio output switching by directly selecting the recording channels and audio outputs corresponding to each audio device, thus improving the user experience. Attached Figure Description
[0034] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0035] Figure 1 A schematic diagram of an audio input / output system provided in an embodiment of the present invention;
[0036] Figure 2 This is a schematic diagram of an APP functional module provided in an embodiment of the present invention;
[0037] Figure 3 A system functional flowchart provided for an embodiment of the present invention;
[0038] Figure 4 A flowchart of an audio input / output method provided in an embodiment of the present invention;
[0039] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation
[0040] The technical solution of the present invention will be clearly and completely described below with reference to the embodiments. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0041] With the development of multimedia technology, it has become common for multiple audio devices to input into a single device for centralized audio processing. Different audio devices have different interfaces, therefore the software interface for converging multiple audio streams into the Android system also varies. Ultimately, users may want to select one or more audio outputs.
[0042] Currently, traditional multi-channel audio input and one or more output channels generally do not come with an operating system and rely on hardware to switch between multiple audio outputs.
[0043] The existing technology has the following main drawbacks:
[0044] (1) By acquiring and controlling the corresponding hardware switches, multiple audio output switching can be achieved. However, the operation is not convenient and intuitive, and the audio output switching cannot be flexibly controlled, resulting in a poor user experience.
[0045] (2) When multiple audio inputs and one or more outputs are implemented through hardware, if audio input devices (such as USB recording devices) are added dynamically later, the host hardware needs to be replaced or updated, which makes the upgrade and maintenance costs high.
[0046] Based on this, the present invention provides an audio input / output system, method, and electronic device that can be applied to applications that require audio playback.
[0047] To facilitate understanding of this embodiment, a detailed description of an audio input / output system disclosed in this embodiment of the invention will be provided first.
[0048] like Figure 1 As shown, the system includes: a selection module 10 for selecting recording channels and audio output configurations corresponding to multiple audio devices; an acquisition module 11 for acquiring audio data corresponding to multiple audio devices based on multiple recording channels; a processing module 12 for performing alignment and conversion processing on multiple audio data according to multiple audio output configurations and transmitting them to a pre-created audio shared output memory to obtain mixed audio data; and an output module 13 for outputting the mixed audio data.
[0049] The aforementioned audio input / output system can be understood as an app (application) developed based on the Android system, such as... Figure 2As shown, the app has multiple functional modules, including a selection module, a recording task module (equivalent to the acquisition module mentioned above), an audio processing task module (equivalent to the processing module mentioned above), and a playback task module (equivalent to the output module mentioned above).
[0050] Audio is an important medium in multimedia, representing a form of sound signal. As a carrier of information, audio can be categorized into three types: speech, music, and other sounds. Digitized sound data is audio data. The process of digitizing sound is essentially the process of converting continuous analog audio signals from devices such as microphones into digital-to-analog converters (ADCs) at a certain frequency to obtain audio data; playing digitized sound involves converting the audio data into analog-to-digital converters (DACs) to output analog audio signals.
[0051] The aforementioned audio equipment is a general term for audio input and output devices, which includes many product types. Generally, they can be divided into the following categories: power amplifiers, speakers, multimedia control consoles, digital mixing consoles, audio sampling cards, synthesizers, mid-high frequency speakers, microphones, sound cards in PCs, headphones, etc., and other peripheral audio equipment such as professional microphone series, headphones, and radio amplification systems.
[0052] In practice, multiple different audio devices are usually input into the aforementioned APP for centralized audio processing. Users can select the corresponding recording channel and audio output configuration for each audio device according to their actual needs. The recording channel can be equivalent to the audio channel, with one audio device corresponding to one audio channel. The audio output configuration can include mute output and non-mute output.
[0053] Then, based on the selected recording channel, acquire the audio data (multi-channel input data) corresponding to multiple audio devices respectively; the data structure of each input data is "audio stream type + number of audio channels + baud rate + sampling bit width + audio data"; the recording channel can be understood as the channel for transmitting audio data, which is usually unidirectional.
[0054] Next, multiple audio data are read and an audio shared output memory is created. This audio shared output memory can store data with the data structure of "number of audio channels + baud rate + sampling bit width + audio data". According to the selected audio output configuration, the multiple audio data are aligned and converted to obtain multi-channel output audio data with the same format, and then transferred to the audio shared output memory.
[0055] Finally, since the data format in the shared audio output memory is the same, multiple audio outputs with the same format can be directly mixed into a single output audio data (equivalent to the mixed data mentioned above). This single output can contain the sounds of multiple audio sources, allowing the user to hear multiple sounds and thus achieve real-time output of multiple audio sources.
[0056] The aforementioned audio input / output system includes a selection module for selecting recording channels and audio output configurations corresponding to multiple audio devices; an acquisition module for acquiring audio data corresponding to each audio device based on the multiple recording channels; a processing module for aligning and converting the multiple audio data according to the multiple audio output configurations and transmitting them to a pre-created shared audio output memory to obtain mixed audio data; and an output module for outputting the mixed audio data. This system allows for flexible control of audio output switching by directly selecting the recording channels and audio outputs corresponding to each audio device, improving the user experience.
[0057] Furthermore, the acquisition module is also used to: detect the audio devices corresponding to multiple Android standard interfaces; create a corresponding recording task based on each audio device; initialize the corresponding audio device according to each recording task, and create a corresponding recording channel to obtain the audio data corresponding to each audio device.
[0058] The aforementioned Android standard interfaces are software interfaces. Multiple audio devices, each with its own corresponding multi-channel audio data, converge to the Android system (the aforementioned APP) through different software interfaces. Each audio device corresponds to a different software interface. In actual implementation, the system can detect the audio devices corresponding to each Android standard interface; obtain device information (such as device type, number of devices, etc.); and then create a corresponding recording task for each currently connected audio device. Specifically, for example, if the Android standard interface corresponding to one currently connected audio device is a CSI interface, then the created recording task can be a CSI interface (Coms Sensor Interface) task; if the Android standard interface corresponding to another currently connected audio device is a USB Camera (Universal Serial Bus Camera) interface, then the created recording task can be a USB Camera interface task; if the Android standard interface corresponding to another currently connected audio device is a Main USB Video Source interface, then the created recording task can be a Main USB Video Source interface task; if the Android standard interface corresponding to one currently connected audio device is a Sub USB Video Source interface, then the created recording task can be a Sub USB Video Source interface task. Source interface task.
[0059] Next, in each recording task, the corresponding audio device of the interface is initialized, and the recording channel corresponding to the audio device selected by the selection module is created. Then, each audio device is recorded simultaneously to obtain multiple audio data.
[0060] Specifically, taking the USB Cammer interface task as an example, after initializing the audio device corresponding to the USB Cammer interface, a recording channel corresponding to the audio device previously selected by the selection module is created, and then the audio device is recorded, and the recording data (audio data) is read through the USB Cammer interface.
[0061] Furthermore, the processing module is also used to: read the audio data and audio output configuration corresponding to each audio device; for each audio device, if the audio output configuration corresponding to the audio device is non-mute output, then perform alignment conversion processing on the read audio data corresponding to the audio device and transmit it to the pre-created audio shared output memory; if the audio output configuration corresponding to the audio device is mute output, then replace the read audio data corresponding to the audio device with mute audio data, perform alignment conversion processing on the mute audio data and transmit it to the pre-created audio shared output memory; and determine all data in the audio shared output memory as mixed audio data.
[0062] In the specific implementation process, the recording task module gives the read audio data to the audio processing task module. The audio processing task module creates a shared output memory and reads the audio output configuration corresponding to the audio device previously selected by the selection module. Based on whether the output configuration corresponds to a mute output or a non-mute output, the recording data obtained from the recording task module is format-aligned and converted. Then, the format-aligned and converted recording data is output to the shared output memory.
[0063] Specifically, for each input audio device, if the user selects non-mute output in the selection module, the acquired recording data is format-converted and aligned before being placed into the shared audio output memory. If the user selects mute output in the selection module, the audio channel is output to the shared output memory after format conversion and alignment using mute data (mute data is directly filled in within the APP). The audio formats for both mute and non-mute modes remain unchanged, and both require format conversion and alignment. The only difference is the data within the mute and non-mute channels. Therefore, even if one channel is dynamically enabled (dynamically enabling means turning the sound on and off) during the audio output process, the user will not perceive any audio output delay.
[0064] Furthermore, the output module is also used to send the mixed audio data to the default playback device for playback of the mixed audio data.
[0065] In the actual implementation process, the output module can eventually generate a playback task to instruct the playback data (mixed audio data) in the shared output memory to be played to the default playback device. The default playback device is checked and played by the Android system itself.
[0066] For a better understanding of the above embodiments, please refer to... Figure 3The diagram shows a system functional flowchart. In the diagram, CSICammer (camera communication sensor interface), USB Cammer (camera universal serial bus), Main USB VideoSource (video source main universal serial bus), and Sub USB VideoSource (video source sub universal serial bus) can be regarded as four software interfaces, thus having four data channels (equivalent to four channels). The switch on each channel can be understood as the audio switch for that channel. In actual implementation, the user can directly click the audio switch button of each channel to mute or demute the output. What you see is what you control, and the operation is intuitive and convenient. This operation is different from the traditional method of finding the corresponding hardware switch to shut down the entire recording and playback path. When you turn off the sound by clicking the audio switch, you do not shut down the entire recording and playback path, but only mute the data. Therefore, when the user turns off the mute function later, there is no audio delay caused by opening and closing the entire data channel. After clicking the audio switch and setting the audio output configuration, the audio data from the four different audio devices mentioned above undergoes alignment and conversion processing. For example, if the audio data format obtained from device A is 48kHz, 32bit, and the audio data format obtained from device B is 16kHz, 16bit, then format conversion and alignment are required. The 48kHz, 32bit audio from device A can be converted to the same 16kHz, 16bit audio data as device B. The four audio data with the unified format after alignment and conversion are then transferred to the App Share Buffer (equivalent to the shared output memory mentioned above). The four audio data with the same format in the shared output memory are then mixed together (mixed into one channel) and then output through HDMI Output (High Definition Multimedia Interface Output).
[0067] In practice, if audio input devices are dynamically added later (such as a USB recording device), the software can also be updated synchronously without replacing or updating the host hardware, making upgrades and maintenance convenient and reducing costs. Specifically, after hardware is added, a corresponding API will be provided to our app, which will then retrieve audio data from the corresponding API.
[0068] This invention also provides an audio input / output method, such as... Figure 4 As shown, the method includes the following steps:
[0069] Step S102: Select the recording channels and audio output configurations corresponding to multiple audio devices in the selection module.
[0070] Step S104: The acquisition module acquires audio data corresponding to multiple audio devices based on multiple recording channels.
[0071] In step S106, the processing module performs alignment and conversion processing on multiple audio data according to multiple audio output configurations, and transmits them to a pre-created audio shared output memory to obtain mixed audio data.
[0072] In step S108, the output module outputs the mixed audio data.
[0073] The aforementioned audio input / output method includes: a selection module choosing recording channels and audio output configurations corresponding to multiple audio devices; an acquisition module acquiring audio data corresponding to each audio device based on the multiple recording channels; a processing module performing alignment and conversion processing on the multiple audio data according to the multiple audio output configurations, and transmitting the data to a pre-created shared audio output memory to obtain mixed audio data; and an output module outputting the mixed audio data. This method allows for flexible control of audio output switching by directly selecting the recording channels and audio outputs corresponding to each audio device, thus improving the user experience.
[0074] Furthermore, the steps for acquiring audio data corresponding to multiple audio devices include:
[0075] Detect the audio devices corresponding to multiple standard Android interfaces;
[0076] Create a corresponding recording task for each audio device;
[0077] For each recording task, initialize the corresponding audio device and create a pre-selected recording channel to read the audio data corresponding to each audio device.
[0078] Furthermore, based on multiple audio output configurations, the steps of performing alignment conversion on multiple audio data separately and transferring them to a pre-created shared audio output memory to obtain mixed audio data include:
[0079] Read the audio data and audio output configuration corresponding to each audio device;
[0080] For each audio device, if the audio output of the corresponding audio device is configured to be non-mute, the audio data read from the audio device will be aligned and converted before being transmitted to the pre-created audio shared output memory.
[0081] If the audio output of the audio device is configured to be muted, the audio data read from the audio device will be replaced with the muted audio data. After the muted audio data is aligned and converted, it will be transmitted to the pre-created audio shared output memory.
[0082] All data in the shared audio output memory is identified as mixed audio data.
[0083] Further steps in outputting the mixed audio data include:
[0084] Send the mixed audio data to the default playback device to play the mixed audio data.
[0085] Furthermore, the data structure of the audio shared output memory includes: audio stream type, number of audio channels, baud rate, sample bit width, and audio data.
[0086] Furthermore, the data structure of audio data includes: number of audio channels, baud rate, sampling bit width, and audio data.
[0087] The audio input / output method provided in this embodiment of the invention has the same implementation principle and technical effect as the aforementioned audio input / output system embodiment. For the audio input / output method embodiment, please refer to the corresponding content in the aforementioned audio input / output system embodiment.
[0088] This invention also provides an electronic device, see [link to relevant documentation]. Figure 5 As shown, the electronic device includes a processor 130 and a memory 131. The memory 131 stores machine-executable instructions that can be executed by the processor 130. The processor 130 executes the machine-executable instructions to implement the above-described audio input / output method.
[0089] Furthermore, Figure 5 The electronic device shown also includes a bus 132 and a communication interface 133, with the processor 130, the communication interface 133 and the memory 131 connected via the bus 132.
[0090] The memory 131 may include high-speed random access memory (RAM) or non-volatile memory, such as at least one disk storage device. Communication between this system network element and at least one other network element is achieved through at least one communication interface 133 (which can be wired or wireless), such as the Internet, wide area network, local area network, or metropolitan area network. The bus 132 may be an ISA bus, PCI bus, or EISA bus, etc. The bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 5 The symbol is represented by a single double-headed arrow, but this does not mean that there is only one bus or one type of bus.
[0091] Processor 130 may be an integrated circuit chip with signal processing capabilities. In implementation, each step of the above method can be completed by the integrated logic circuitry in the hardware of processor 130 or by instructions in software form. Processor 130 may be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this invention. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this invention can be directly manifested as execution by a hardware decoding processor, or execution by a combination of hardware and software modules in the decoding processor. The software module can reside in a mature storage medium in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, or registers. This storage medium is located in memory 131, and processor 130 reads the information in memory 131 and, in conjunction with its hardware, completes the steps of the method described in the foregoing embodiments.
[0092] This invention also provides a computer-readable storage medium storing computer-executable instructions. When these computer-executable instructions are called and executed by a processor, they cause the processor to implement the aforementioned audio input / output method. For specific implementation details, please refer to the method embodiments, which will not be repeated here.
[0093] The audio input / output system, method, and electronic device provided in the embodiments of the present invention include a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the methods described in the preceding method embodiments. For specific implementation details, please refer to the method embodiments, which will not be repeated here.
[0094] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, essentially, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0095] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. An audio input / output system, characterized in that, The system includes: The selection module is used to select the recording channels and audio output configurations corresponding to multiple audio devices; wherein, the selection module provides an audio switch corresponding to each audio channel, so that the user can directly click the audio switch button to dynamically switch between mute and non-mute output; The acquisition module is used to acquire audio data corresponding to multiple audio devices based on multiple recording channels; wherein, when a new audio input device is dynamically added later, the APP acquires the new audio data from the corresponding interface according to the corresponding calling interface provided after the hardware is added, so as to synchronously add recording channels in the software. The processing module is used to perform alignment and conversion processing on the multiple audio data according to the multiple audio output configurations, and transmit them to a pre-created audio shared output memory to obtain mixed audio data; The output module is used to output the mixed audio data; The processing module is further configured to: Read the audio data and audio output configuration corresponding to each of the audio devices; For each audio device, if the audio output of the corresponding audio device is configured to be non-mute, the audio data read from the corresponding audio device will be aligned and converted before being transmitted to the pre-created audio shared output memory. If the audio output of the audio device is configured to be muted, the audio data read from the audio device will be replaced with muted audio data, and the muted audio data will be transferred to the pre-created audio shared output memory after alignment conversion. All data in the shared audio output memory is identified as mixed audio data; If the audio output of the audio device is configured as a silent output, then the APP directly fills in the silent data to replace the audio data of the audio device, and the audio formats of silent and non-silent audio remain unchanged. The silent audio data is then transferred to the pre-created audio shared output memory after alignment and conversion.
2. The system according to claim 1, characterized in that, The acquisition module is also used for: Detect the audio devices corresponding to multiple standard Android interfaces; Create a corresponding recording task for each of the aforementioned audio devices; For each recording task, initialize the corresponding audio device and create the corresponding recording channel to obtain the audio data corresponding to each audio device.
3. The system according to claim 1, characterized in that, The output module is also used for: The mixed audio data is sent to the default playback device to play the mixed audio data.
4. The system according to claim 1, characterized in that, The data structure of the audio shared output memory includes: audio stream type, number of audio channels, baud rate, sampling bit width, and audio data.
5. The system according to claim 1, characterized in that, The data structure of the audio data includes: number of audio channels, baud rate, sampling bit width, and audio data.
6. An audio input / output method, characterized in that, Applied to the audio input / output system according to any one of claims 1-5; the method includes: The selection module allows you to choose the recording channels and audio output configurations for multiple audio devices. The acquisition module acquires audio data corresponding to each of the multiple audio devices based on the multiple recording channels; The processing module performs alignment and conversion processing on the multiple audio data according to the multiple audio output configurations, and transmits them to a pre-created audio shared output memory to obtain mixed audio data; The output module outputs the mixed audio data.
7. The method according to claim 6, characterized in that, The steps for obtaining audio data corresponding to the multiple audio devices include: Detect the audio devices corresponding to multiple standard Android interfaces; For each of the audio devices, a corresponding recording task is created; wherein the recording task includes: For each recording task, the corresponding audio device is initialized, and a pre-selected recording channel is created to read the audio data corresponding to each audio device.
8. An electronic device comprising a memory and a processor, wherein the memory stores a computer program executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method described in any one of claims 6-7.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, which, when executed by a processor, performs the steps of the method described in any one of claims 6-7.