Audio output mode switching system and method, computer equipment and storage medium

By using an audio output mode switching system, which utilizes a switch and an audio processor to process audio signals in different modes, the system solves the problem of low switching efficiency in traditional audio processing systems, and achieves flexible audio mode switching and efficient audio signal processing.

CN121996196APending Publication Date: 2026-05-08SHENZHEN AIERJI COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
SHENZHEN AIERJI COMM CO LTD
Filing Date
2026-01-23
Publication Date
2026-05-08

AI Technical Summary

Technical Problem

Traditional audio processing systems are inefficient when switching audio output modes, which affects terminal load and mixing results.

Method used

It employs a switch, input port, left and right audio channels, extended audio channels, and an audio processor. The audio configuration mode is determined based on the switch status, and signal transmission or mixing is performed in different modes.

Benefits of technology

It enables flexible and convenient switching between different audio output modes, meeting diverse audio playback needs and improving audio signal processing and transmission efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121996196A_ABST
    Figure CN121996196A_ABST
Patent Text Reader

Abstract

The embodiment of the invention belongs to the technical field of audio management, and relates to an audio output mode switching system and method, computer equipment and a storage medium, and the system comprises a change-over switch, an input port, an output port, left and right sound channel audio channels, an expansion sound channel audio channel and an audio processor. According to the application, different audio output modes can be conveniently and flexibly switched according to the requirements of a user or a use scene, and meanwhile, the audio signals can be effectively processed and transmitted, so that diversified audio playing requirements are met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of audio management technology, and in particular to audio output mode switching systems, methods, computer devices, and storage media. Background Technology

[0002] In the field of audio processing, as audio application scenarios continue to expand, such as recording and live streaming, the requirements for audio output modes are becoming increasingly diverse. Different application scenarios require different audio processing methods. For example, recording scenarios typically require preserving the original audio information as much as possible, while live streaming scenarios may require mixing multiple audio sources to achieve better audio results.

[0003] Currently, existing audio processing systems only output multi-channel data frames. The mixing of these data frames is handled by software such as live streaming platforms, audio assistants (AU), and live streaming companions. This processing increases the terminal load and affects the live streaming effect (stability). Furthermore, the software mixing level is implemented by the terminal hardware, which is inferior to professional sound card mixing hardware, resulting in significant imperfections in the mixing effect. Therefore, it is evident that traditional audio processing systems suffer from low switching efficiency when switching audio output modes. Summary of the Invention

[0004] The purpose of this application is to provide an audio output mode switching system, method, computer device, and storage medium to solve the problem of low switching efficiency in traditional audio processing systems when switching audio output modes.

[0005] To address the aforementioned technical problems, this application provides an audio output mode switching system, which employs the following technical solution: The system includes a switch, input ports, output ports, left and right audio channels, extended audio channels, and an audio processor. The input port is used to acquire external audio sources; The left and right audio channels are used to convert the external sound source into a first audio signal; The extended audio channel is used to convert the external sound source into a second audio signal; The audio processor is configured to determine the audio configuration mode based on the state of the switch, wherein the audio configuration mode includes a first configuration mode and a second configuration mode; The audio processor is further configured to transmit the first audio signal and the second audio signal to the output port through the left and right channel audio channels and the extended channel audio channel, respectively, if the audio configuration mode is the first configuration mode. The audio processor is further configured to, if the audio configuration mode is the second configuration mode, perform a mixing process on the first audio signal and the second audio signal to obtain a mixed audio signal, set the extended channel audio channel to mute, and transmit the mixed audio signal to the output port through the left and right channel audio channels.

[0006] To address the aforementioned technical problems, this application also provides an audio output mode switching method, employing the following technical solution: Obtain external audio sources; The external sound source is converted into a first audio signal according to the left and right audio channels; The external sound source is converted into a second audio signal according to the extended channel audio channel; The audio configuration mode is determined based on the state of the switch, wherein the audio configuration mode includes a first configuration mode and a second configuration mode; If the audio configuration mode is the first configuration mode, the first audio signal and the second audio signal are transmitted to the output port through the left and right channel audio channels and the extended channel audio channel, respectively. If the audio configuration mode is the second configuration mode, the first audio signal and the second audio signal are mixed to obtain a mixed audio signal, the extended channel audio channel is set to mute, and the mixed audio signal is transmitted to the output port through the left and right channel audio channels.

[0007] To address the aforementioned technical problems, this application also provides a computer device that employs the following technical solution: The device includes a memory and a processor, wherein the memory stores computer-readable instructions, and the processor executes the computer-readable instructions to implement the steps of the audio output mode switching method described above.

[0008] To address the aforementioned technical problems, this application also provides a computer-readable storage medium, employing the technical solution described below: The computer-readable storage medium stores computer-readable instructions, which, when executed by a processor, implement the steps of the audio output mode switching method described above.

[0009] This application provides an audio output mode switching system, including: a switch, an input port, an output port, left and right channel audio channels, an extended channel audio channel, and an audio processor, wherein: the input port is used to acquire an external audio source; the left and right channel audio channels are used to convert the external audio source into a first audio signal; the extended channel audio channel is used to convert the external audio source into a second audio signal; the audio processor is used to confirm an audio configuration mode according to the state of the switch, wherein the audio configuration mode includes a first configuration mode and a second configuration mode; the audio processor is further used to, if the audio configuration mode is the first configuration mode, transmit the first audio signal and the second audio signal to the output port through the left and right channel audio channels and the extended channel audio channel, respectively; the audio processor is further used to, if the audio configuration mode is the second configuration mode, perform mixing processing on the first audio signal and the second audio signal to obtain a mixed audio signal, set the extended channel audio channel to mute, and transmit the mixed audio signal to the output port through the left and right channel audio channels. Compared with existing technologies, this application can conveniently and flexibly switch between different audio output modes according to user needs or usage scenarios, and can effectively process and transmit audio signals to meet diverse audio playback needs. Attached Figure Description

[0010] To more clearly illustrate the solutions in this application, the accompanying drawings used in the description of the embodiments of this application will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0011] Figure 1 This is an exemplary system architecture diagram to which this application can be applied; Figure 2 This is a schematic diagram of the audio output mode switching system provided in the embodiments of this application; Figure 3 This is a flowchart illustrating the implementation of the audio output mode switching method provided in this application embodiment. Detailed Implementation

[0012] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains; the terminology used herein in the specification of the application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application; the terms "comprising" and "having," and any variations thereof, in the specification, claims, and foregoing drawings of this application, are intended to cover non-exclusive inclusion. The terms "first," "second," etc., in the specification, claims, or foregoing drawings of this application are used to distinguish different objects, not to describe a particular order.

[0013] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0014] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings.

[0015] like Figure 1 As shown, system architecture 100 may include terminal device 101, network 102, and server 103. Terminal device 101 may be a laptop 1011, tablet 1012, or mobile phone 1013. Network 102 is used as a medium to provide a communication link between terminal device 101 and server 103. Network 102 may include various connection types, such as wired, wireless communication links, or fiber optic cables, etc.

[0016] Users can use terminal device 101 to interact with server 103 via network 102 to receive or send messages, etc. Various communication client applications can be installed on terminal device 101, such as web browser applications, shopping applications, search applications, instant messaging tools, email clients, social media platform software, etc.

[0017] Terminal device 101 can be various electronic devices with a display screen and support web browsing. In addition to laptops 1011, tablets 1012, or mobile phones 1013, terminal device 101 can also be an e-book reader, an MP3 player (Moving Picture Experts Group Audio Layer III), an MP4 player (Moving Picture Experts Group Audio Layer IV), a laptop computer, and a desktop computer, etc.

[0018] Server 103 can be a server that provides various services, such as a backend server that provides support for the pages displayed on terminal device 101.

[0019] It should be noted that the audio output mode switching method provided in this application embodiment is generally executed by a server / terminal device, and correspondingly, the audio output mode switching device is generally set in the server / terminal device.

[0020] It should be understood that Figure 1 The number of terminal devices, networks, and servers shown is merely illustrative. Depending on implementation needs, any number of terminal devices, networks, and servers can be included.

[0021] Continue to refer to Figure 2 A schematic diagram of an embodiment of the audio output mode switching system according to this application is shown. The aforementioned audio output mode switching system includes: a switch 210, an input port 220, an output port 230, left and right channel audio channels 240, an extended channel audio channel 250, and an audio processor 260, wherein: The input port 220 is used to acquire external sound sources; The left and right audio channels 240 are used to convert the external sound source into a first audio signal; The extended channel audio channel 250 is used to convert the external sound source into a second audio signal; The audio processor 260 is used to confirm the audio configuration mode according to the state of the switch 210, wherein the audio configuration mode includes a first configuration mode and a second configuration mode; The audio processor 260 is further configured to transmit the first audio signal and the second audio signal to the output port 230 through the left and right channel audio channels 240 and the extended channel audio channel 250 respectively if the audio configuration mode is the first configuration mode. The audio processor 260 is further configured to, if the audio configuration mode is the second configuration mode, perform mixing processing on the first audio signal and the second audio signal to obtain a mixed audio signal, set the extended channel audio channel 250 to mute, and transmit the mixed audio signal to the output port 230 through the left and right channel audio channels 240.

[0022] In this embodiment of the application, before running the system, the application needs to initialize the system, which includes hardware power-on and self-test, firmware loading and memory setup, specifically: 1) Hardware power-on and self-test: ① Power sequence startup: The digital power supply is powered on first, the core power supply is started after it stabilizes, and the analog power supply is turned on last. ② Clock system establishment: The main crystal oscillator generates the basic clock, which is multiplied by a phase-locked loop to generate the system operating clock, and then divided to generate the audio sampling clock; ③ Hardware self-test execution: sequentially checks the ADC (analog-to-digital converter) communication status, DSP (signal processing and mixing module) memory integrity, USB physical layer connection, and GPIO function normality; 2) Firmware loading and memory setup: ① Bootstrap execution: Read the main program code from non-volatile memory, verify its integrity, and then load it into working memory; ② Memory space planning: Divide into N independent audio buffer areas, each area corresponding to an audio channel (routing settings). In this scheme, each channel is called MIC1, MIC2, MIC3, MIC4...MICN, and the buffer position corresponding to each channel is 0~N; ③ Peripheral controller settings: Configure the digital audio interface to master mode, set USB as audio device class, and initialize the user interface circuit.

[0023] The audio buffer includes an input buffer and an output buffer. The DSP multi-channel processing module extracts data from each channel from the input buffer and performs multi-threaded time-division processing. Then, it sends the data to the corresponding position in the output buffer according to the corresponding output mode.

[0024] In this embodiment, the application first needs to acquire analog signals, then losslessly convert the analog signals from the physical microphone into digital signals and temporarily store them. Specifically, this includes analog signal digitization, digital audio transmission, and buffer management. 1) Digitization of analog signals: ① Signal conditioning: The signals from each microphone are pre-amplified and anti-aliasing filtered; ②Synchronous sampling: The multi-channel ADC simultaneously samples and converts N input signals; ③ Data Temporary Storage: The converted digital samples are temporarily stored in the ADC output register; 2) Digital audio transmission: ① Interface clock synchronization: The digital audio interface sends bit clock and frame synchronization signals; ② Serial data shift-out: The ADC shifts the data from each channel onto the data lines sequentially according to the time slice; ③DSP reception and storage: The DSP receives data through the digital audio interface and stores it in the corresponding buffer position according to the channel number; 3) Buffer management: ① Dual buffer switching: The acquisition buffer and processing buffer work alternately to avoid access conflicts; ② Write pointer update: After each frame of data is written, the buffer write pointer moves cyclically to the next position; ③ Data ready flag: When the buffer reaches the preset data volume, a flag is set to notify the processing unit.

[0025] In this embodiment, N independent audio sources (MIC1 to MICN) are connected to the N analog input interfaces of the sound card. The signal of each channel is initially amplified by an independent preamplifier and adjusted to a suitable level.

[0026] In this embodiment, the amplified N analog signals are fed into a multi-channel ADC. Under the control of a unified sampling clock, the ADC simultaneously samples and quantizes all signals, converting them into parallel digital audio streams to ensure phase synchronization between all channels.

[0027] In this embodiment of the application, the converted N channels of digital audio data are written into N independent input buffers in memory.

[0028] Each buffer corresponds to a specific physical input channel. For example: Buffer 0 ← MIC1 data; Buffer 1 ← MIC2 data; ... Buffer N ← MICN data.

[0029] In the mode switching detection process of this application embodiment, this application mainly detects whether the user has input (whether the switching switch button has been pressed) and the system state saving, specifically: 1) User input detection (whether the toggle switch button is pressed): ① Level change capture: The GPIO controller detects a change in the button pin level from high to low; ② Signal dejittering: Hardware filtering circuits eliminate mechanical contact jitter, and software delay confirms signal stability; ③ Interrupt trigger: Generates a falling edge interrupt signal to notify the processor that there is a user input event; 2) System state saving: ① Context saving: The interrupt service routine saves the current audio processing state and register values; ② Read the mode flag: Query the current system operating mode status variable; ③ Switching preparation: Check the status of each module and confirm that the system allows mode switching.

[0030] In this embodiment, if the activation signal is the first press of the switch button, the system is confirmed to be switching from recording mode to live streaming mode (STREAM), and the audio configuration mode is the first configuration mode. At this time, the system also needs to perform the following operations: 1) Current processing paused: The pipeline pauses after the DSP completes processing the current audio block; 2) Pass-through algorithm unloading: Clears the filter states and parameters related to the pass-through processing; 3) Loading the mixing algorithm: Loading the real-time mixing processing code from the algorithm library into the instruction memory; 4) Effects initialization: Set the initial state of effects units such as compressors and noise suppressors; 5) Mixing coefficient configuration: Set the mixing ratio coefficient from each input channel to the output channel.

[0031] In this embodiment, the DSP pass-through processing is mainly used to perform minimal interference preprocessing on the first audio signal and the second audio signal.

[0032] In this embodiment, the first audio signal and the second audio signal are packaged into a multi-channel data frame conforming to the USB Audio Class specification. Specifically, the data packaging includes: 1) Fixed format preservation: Always organizes USB data packets according to the preset channel format; 2) Timestamp addition: Sampling time information is added to each data packet for synchronization; 3) Error check calculation: Generate cyclic redundancy check codes to ensure data transmission integrity.

[0033] In this embodiment, if the activation signal is pressing the switch button again, it is confirmed that the system is switching from live streaming mode to recording mode, and the audio configuration mode is the second configuration mode. At this time, the system also needs to perform the following operations: 1) Mixing Processing Stopped: DSP stops real-time mixing calculations; 2) Effects state saving: Saves the effect parameter values ​​adjusted by the user; 3) Straight-through algorithm recovery: Reload the channel straight-through processing algorithm; 4) Establish independent paths: Configure independent processing paths for each channel and remove mixed nodes.

[0034] In this embodiment, the DSP mixing process is mainly used to mix the signals from all input channels into a stereo signal, i.e., a mixed audio signal.

[0035] In this embodiment of the application, the mixed audio signals are packaged into a single fixed N-channel data frame. Specifically, the data packaging includes: 1) Fixed format preservation: Always organizes USB data packets according to the preset channel format; 2) Timestamp addition: Sampling time information is added to each data packet for synchronization; 3) Error check calculation: Generate cyclic redundancy check codes to ensure data transmission integrity.

[0036] In this embodiment of the application, the packaged data frames are sent to the computer at fixed time intervals via USB isochronous transmission mode, wherein the isochronous transmission mode specifically includes: 1) Timed trigger: The USB host initiates data transmission periodically according to the sampling interval; 2) Data block relocation: The USB controller reads the current data block from the audio buffer; 3) Endpoint data transmission: Data is transmitted to the USB bus via isochronous endpoints; 4) Transmission status monitoring: Detect whether data transmission is successful and record errors when necessary.

[0037] In this embodiment, the DAW (Digital Audio Workstation) software on the computer will recognize that the multi-channel data frame is an N-channel device and present each channel as an independent audio track to the user, thereby enabling the individual recording, editing and processing of the signal from each audio source.

[0038] In this embodiment, the computer-based live streaming software (such as OBS) will recognize the sound card as a device with N channels, but users typically only need to select channels 0 and 1 as stereo input sources. The mixed data frames received by the software are perfectly mixed and processed "ready-to-use" live audio, requiring no complex tuning within the software.

[0039] In this embodiment of the application, an audio output mode switching system 200 is provided, including: a switch 210, an input port 220, an output port 230, left and right channel audio channels 240, an extended channel audio channel, and an audio processor 250, wherein: the input port 220 is used to acquire an external audio source; the left and right channel audio channels 240 are used to convert the external audio source into a first audio signal; the extended channel audio channel 250 is used to convert the external audio source into a second audio signal; the audio processor 260 is used to confirm the audio configuration mode according to the state of the switch 210, wherein the audio configuration mode includes a first configuration mode. The audio processor 260 is configured to, if the audio configuration mode is the first configuration mode, transmit the first audio signal and the second audio signal to the output port 230 through the left and right channel audio channels 240 and the extended channel audio channel 250 respectively; if the audio configuration mode is the second configuration mode, the audio processor 260 is further configured to, if the audio configuration mode is the second configuration mode, perform mixing processing on the first audio signal and the second audio signal to obtain a mixed audio signal, set the extended channel audio channel 250 to mute, and transmit the mixed audio signal to the output port through the left and right channel audio channels 240. Compared with the prior art, this application can conveniently and flexibly switch between different audio output modes according to user needs or usage scenarios, and can effectively process and transmit audio signals to meet diverse audio playback needs.

[0040] In some optional implementations of the embodiments of this application, the number of the above-mentioned extended audio channels is greater than or equal to two.

[0041] In some optional implementations of the embodiments of this application, the above-mentioned input port is an analog input interface, a bidirectional OTG interface, or a USB-C interface.

[0042] In some optional implementations of the embodiments of this application, the audio processor described above is further configured to perform high-pass filtering processing on the first audio signal and the second audio signal respectively according to the high-pass filter to obtain a first high-pass filtered digital signal and a second high-pass filtered digital signal; The audio processor is further configured to perform fine-tuning processing on the first high-pass filtered digital signal and the second high-pass filtered digital signal according to a preset level, respectively, to obtain a first fine-tuned digital signal and a second fine-tuned digital signal. The audio processor is further configured to perform phase correction processing on the first fine-tuned digital signal and the second fine-tuned digital signal respectively to obtain a first corrected digital signal and a second corrected digital signal. The audio processor is further configured to transmit the first corrected digital signal and the second corrected digital signal to the output port.

[0043] In this embodiment of the application, the DSP pass-through processing specifically includes: 1) Raw data retention: Each channel buffer stores the raw sampling data of the corresponding microphone; 2) Direct Read Transmission: The USB controller directly reads raw data from each buffer, packages it, and sends it. 3) Channel independence: The data in each channel is completely independent and there is no cross mixing.

[0044] In this embodiment, the main objective of DSP pass-through processing is to perform minimal interference preprocessing on the original digital signal and prepare it for output. Specifically: 1) DSP reads raw data: The DSP reads raw data from each channel in parallel from all input buffers.

[0045] 2) Minimization process: The DSP application's preset pass-through processing chain for recording modes includes: ① High-pass filter: Cuts off unwanted low-frequency hum; ② Fixed gain adjustment: Fine-tuning based on the preset level; ③ Phase correction: Ensure there is no phase difference between channels.

[0046] It's important to note that in recording mode, the DSP does not perform any form of channel mixing. Data for each channel is always processed in a separate path.

[0047] In this embodiment, the processed data remains completely independent, and the DSP writes them into N corresponding output buffers respectively. The data mapping relationship at this time is consistent with that at the input: Data processed by MIC1 → Output buffer 0; Data processed by MIC2 → Output buffer 1; ... Data processed by MICN → Output buffer N.

[0048] In some optional implementations of the embodiments of this application, the audio processor is further configured to input the first audio signal and the second audio signal to a mixing matrix for signal merging processing to obtain a mixed digital signal; The audio processor is also used to post-process the mixed digital signal to obtain a post-processed digital signal; The audio processor is further configured to convert the post-processed digital signal into a stereo signal to obtain the mixed audio signal.

[0049] In this embodiment of the application, the DSP hybrid processing specifically includes: 1) Input data preprocessing: The DSP reads data from the MIC1 and MIC2 buffers for noise reduction and gain control; 2) Real-time mixing calculation: The processed MIC1 and MIC2 signals are mixed according to a preset ratio; 3) Result data distribution: Write the mixed result to both buffer positions 0 and 1 simultaneously; 4) Mute Channel Fill: Write zero values ​​(mute) to positions 2 through N in the buffer. 5) Output data preparation: The USB controller reads N position data, where the first two are mixed audio and the last N-2 are silent audio.

[0050] In this embodiment, the main goal of DSP pass-through processing is to mix the signals from all input channels into a single stereo signal (this is the most fundamental difference from the recording mode). Specifically: 1) The DSP reads all raw data: The DSP reads the raw data from each channel from all input buffers.

[0051] 2) Independent preprocessing for each channel: The signal for each channel will first undergo independent preprocessing, including: ① Noise reduction: Suppressing environmental noise.

[0052] ② Compression: Controls the dynamic range to make the sound smoother.

[0053] ③ Gain Adjustment: Adjust the mixed volume of each microphone according to the user's individual settings in live mode (for example, the host's microphone volume is louder, and the guest's is slightly lower).

[0054] 3) Full-channel mixing and summation: After preprocessing, all channel signals are sent to the mixing matrix, and the DSP performs the core mixing operation to merge all signals into a single mono signal according to a preset ratio.

[0055] In some optional implementations of the embodiments of this application, the hybrid digital signal is represented as follows: ; in, , ... Each of the N audio digital signals represents one of them. , ... These represent the preset merging ratios.

[0056] 4) Post-processing and stereo generation: The single mixed signal undergoes final overall processing, such as bus routing compression, equalization, and limiting, to prevent popping sounds during live broadcasts.

[0057] 5) Make two copies of the processed mono mix signal, one as the left channel and the other as the right channel, to generate a standard stereo signal.

[0058] In this embodiment, the same mixed signal is written to positions 0 (left channel) and 1 (right channel) of the output buffer. Simultaneously, to maintain the original transmission structure (preventing re-enumeration that could cause transmission stuttering), digital mute (with a value of zero) is written to positions 2 to N of the output buffer.

[0059] Output buffer 0 ← Full-channel mixed signal (left channel); Output buffer 1 ← Full-channel mixed signal (right channel); Output buffer 2-N ← Digital mute.

[0060] In some optional implementations of the embodiments of this application, after the steps of sending multi-channel data frames or mixed data frames to the computer and switching the system's operating mode state variable, the following steps are further included: Determine if the DSP processing pipeline is operating normally in the new mode; If the DSP processing pipeline operates normally in the new mode, then the system mode switching operation is confirmed to be normal, and the LED outputs a normal system switching signal. If the DSP processing pipeline does not operate normally in the new mode, the system mode switching operation is confirmed to be abnormal, and the LED is driven to output a system switching abnormality signal.

[0061] In some optional implementations of the embodiments of this application, after the steps of sending multi-channel data frames or mixed data frames to the computer and switching the system's operating mode state variable, the following steps are further included: Clean up temporary resources used during the mode switching process; and / or record the event and time of the mode switching in non-volatile memory.

[0062] In this embodiment of the application, after sending the data frame to the computer, the application also needs to confirm whether the system status is correct, specifically including: 1) Processing chain verification: Check whether the DSP processing pipeline is running normally under the new mode; 2) Data transfer check: Confirm that the USB audio data is transmitted in the expected format; 3) Resource release: Clean up temporary resources used during the switchover process; 4) Log recording: Records mode switching events and times in non-volatile memory.

[0063] In some optional implementations of this application's embodiments, after sending the data frame to the computer, this application can also output the system's switching status to the user through visual feedback. Specifically: 1) LED driver: (STREAM button backlit silkscreen) Changes LED color according to the current mode; 2) Status Confirmation: After the new mode is running stably, the LED will remain constantly lit; 3) Abnormal indication: If the switching fails, the LED will enter a flashing alarm mode.

[0064] The embodiments of this application can acquire and process relevant data based on artificial intelligence technology. Artificial intelligence (AI) refers to the theories, methods, technologies, and application systems that use digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, perceive the environment, acquire knowledge, and use that knowledge to obtain optimal results.

[0065] Foundational technologies for artificial intelligence generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing, operating / interactive systems, and mechatronics. AI software technologies mainly encompass computer vision, robotics, biometrics, speech processing, natural language processing, and machine learning / deep learning.

[0066] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing related hardware through computer-readable instructions. These computer-readable instructions can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above methods. The aforementioned storage medium can be a non-volatile storage medium such as a magnetic disk, optical disk, or read-only memory (ROM), or random access memory (RAM).

[0067] It should be understood that although the steps in the flowcharts of the accompanying figures are shown sequentially as indicated by the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the accompanying figures may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the sub-steps or stages of other steps.

[0068] Further reference Figure 3 The diagram illustrates a flowchart of an embodiment of the audio output mode switching method according to this application. The aforementioned audio output mode switching method includes steps S301, S302, S303, S304, S305, and S306, wherein: In step S301, an external sound source is acquired; In step S302, the external sound source is converted into a first audio signal according to the left and right audio channels; In step S303, the external sound source is converted into a second audio signal according to the extended channel audio channel; In step S304, the audio configuration mode is confirmed according to the state of the switch 210, wherein the audio configuration mode includes a first configuration mode and a second configuration mode; In step S305, if the audio configuration mode is the first configuration mode, the first audio signal and the second audio signal are transmitted to the output port through the left and right channel audio channels and the extended channel audio channel, respectively. In step S306, if the audio configuration mode is the second configuration mode, the first audio signal and the second audio signal are mixed to obtain a mixed audio signal, the extended channel audio channel is set to mute, and the mixed audio signal is transmitted to the output port through the left and right channel audio channels.

[0069] This application provides an audio output mode switching method, comprising: acquiring an external audio source; converting the external audio source into a first audio signal according to the left and right audio channels; converting the external audio source into a second audio signal according to the extended audio channel; confirming an audio configuration mode according to the state of the switch 210, wherein the audio configuration mode includes a first configuration mode and a second configuration mode; if the audio configuration mode is the first configuration mode, transmitting the first audio signal and the second audio signal to the output port through the left and right audio channels and the extended audio channel respectively; if the audio configuration mode is the second configuration mode, mixing the first audio signal and the second audio signal to obtain a mixed audio signal, setting the extended audio channel to mute, and transmitting the mixed audio signal to the output port through the left and right audio channels. Compared with the prior art, this application can conveniently and flexibly switch between different audio output modes according to user needs or usage scenarios, and can effectively process and transmit audio signals to meet diverse audio playback needs.

[0070] To address the aforementioned technical problems, embodiments of this application also provide a computer device that can conveniently and flexibly switch between different audio output modes according to user needs or usage scenarios, while effectively processing and transmitting audio signals to meet diverse audio playback requirements.

[0071] This application also provides another embodiment, namely, providing a computer-readable storage medium storing computer-readable instructions that can be executed by at least one processor to cause the at least one processor to perform the steps of the audio output mode switching method described above.

[0072] The computer-readable storage medium provided in this application can conveniently and flexibly switch between different audio output modes according to user needs or usage scenarios, and can effectively process and transmit audio signals to meet diverse audio playback needs.

[0073] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods of the various embodiments of this application.

[0074] Obviously, the embodiments described above are only some embodiments of this application, not all embodiments. The accompanying drawings show preferred embodiments of this application, but do not limit the patent scope of this application. This application can be implemented in many different forms; rather, the purpose of providing these embodiments is to provide a more thorough and comprehensive understanding of the disclosure of this application. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art can still modify the technical solutions described in the foregoing specific embodiments, or make equivalent substitutions for some of the technical features. Any equivalent structures made using the content of this application's specification and drawings, directly or indirectly applied to other related technical fields, are similarly within the scope of patent protection of this application.

Claims

1. An audio output mode switching system, characterized in that, The system includes: The system includes a switch, input ports, output ports, left and right audio channels, extended audio channels, and an audio processor. The input port is used to acquire external audio sources; The left and right audio channels are used to convert the external sound source into a first audio signal; The extended audio channel is used to convert the external sound source into a second audio signal; The audio processor is configured to determine the audio configuration mode based on the state of the switch, wherein the audio configuration mode includes a first configuration mode and a second configuration mode; The audio processor is further configured to transmit the first audio signal and the second audio signal to the output port through the left and right channel audio channels and the extended channel audio channel, respectively, if the audio configuration mode is the first configuration mode. The audio processor is further configured to, if the audio configuration mode is the second configuration mode, perform a mixing process on the first audio signal and the second audio signal to obtain a mixed audio signal, set the extended channel audio channel to mute, and transmit the mixed audio signal to the output port through the left and right channel audio channels.

2. The audio output mode switching system according to claim 1, characterized in that, The number of extended audio channels is greater than or equal to two.

3. The audio output mode switching system according to claim 1, characterized in that, The input port is an analog input interface, a bidirectional OTG interface, or a USB-C interface.

4. The audio output mode switching system according to claim 1, characterized in that, The left and right audio channels are used to sample and quantize the external audio source according to the multi-channel ADC under the control of a unified sampling clock to obtain the first audio signal.

5. The audio output mode switching system according to claim 1, characterized in that, The audio processor is further configured to perform high-pass filtering on the first audio signal and the second audio signal respectively according to the high-pass filter to obtain a first high-pass filtered digital signal and a second high-pass filtered digital signal. The audio processor is further configured to perform fine-tuning processing on the first high-pass filtered digital signal and the second high-pass filtered digital signal according to a preset level, respectively, to obtain a first fine-tuned digital signal and a second fine-tuned digital signal. The audio processor is further configured to perform phase correction processing on the first fine-tuned digital signal and the second fine-tuned digital signal respectively to obtain a first corrected digital signal and a second corrected digital signal. The audio processor is further configured to transmit the first corrected digital signal and the second corrected digital signal to the output port.

6. The audio output mode switching method according to claim 1, characterized in that, The audio processor is further configured to input the first audio signal and the second audio signal into a mixing matrix for signal merging processing to obtain a mixed digital signal; The audio processor is also used to post-process the mixed digital signal to obtain a post-processed digital signal; The audio processor is further configured to convert the post-processed digital signal into a stereo signal to obtain the mixed audio signal.

7. The audio output mode switching method according to claim 6, characterized in that, The hybrid digital signal is represented as follows: ; in, , ... These represent the first audio signal and the second audio signal, respectively. , ... These represent the preset merging ratios.

8. A method for switching audio output modes, characterized in that, The method includes the following steps: Obtain external audio sources; The external sound source is converted into a first audio signal according to the left and right audio channels; The external sound source is converted into a second audio signal according to the extended channel audio channel; The audio configuration mode is determined based on the state of the switch, wherein the audio configuration mode includes a first configuration mode and a second configuration mode; If the audio configuration mode is the first configuration mode, the first audio signal and the second audio signal are transmitted to the output port through the left and right channel audio channels and the extended channel audio channel, respectively. If the audio configuration mode is the second configuration mode, the first audio signal and the second audio signal are mixed to obtain a mixed audio signal, the extended channel audio channel is set to mute, and the mixed audio signal is transmitted to the output port through the left and right channel audio channels.

9. A computer device, comprising a memory and a processor, characterized in that, The memory stores computer-readable instructions, and when the processor executes the computer-readable instructions, it implements the steps of the audio output mode switching method as described in claim 8.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-readable instructions, which, when executed by a processor, implement the steps of the audio output mode switching method as described in claim 8.