CN114138230B - Audio processing method, system, device and computer readable storage medium - Google Patents

Audio processing method, system, device and computer readable storage medium Download PDF

Info

Publication number
CN114138230B
CN114138230B CN202210113349.0A CN202210113349A CN114138230B CN 114138230 B CN114138230 B CN 114138230B CN 202210113349 A CN202210113349 A CN 202210113349A CN 114138230 B CN114138230 B CN 114138230B
Authority
CN
China
Prior art keywords
audio
information
interface
routing
input
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.)
Active
Application number
CN202210113349.0A
Other languages
Chinese (zh)
Other versions
CN114138230A (en
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.)
Shenzhen Pengchuang Software Co ltd
Original Assignee
Shenzhen Pengchuang Software Co ltd
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 Shenzhen Pengchuang Software Co ltd filed Critical Shenzhen Pengchuang Software Co ltd
Priority to CN202210113349.0A priority Critical patent/CN114138230B/en
Publication of CN114138230A publication Critical patent/CN114138230A/en
Application granted granted Critical
Publication of CN114138230B publication Critical patent/CN114138230B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/162Interface to dedicated audio devices, e.g. audio drivers, interface to CODECs

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

The invention discloses an audio processing method, system, equipment and a computer readable storage medium, and relates to the field of audio processing. The audio processing method comprises the following steps: acquiring user configuration information and input audio information of a selected audio interface; generating routing audio information according to the user configuration information and the input audio information, and calling a preset virtual sound card to route the routing audio information to a corresponding selected audio interface; and controlling the audio equipment connected with the selected audio interface to perform audio mixing on the received routing audio information and then output the routing audio information according to the user configuration information. The invention can configure the corresponding audio processing strategy according to the user configuration information, thereby improving the flexibility degree of audio processing.

Description

Audio processing method, system, device and computer readable storage medium
Technical Field
The present invention relates to the field of audio processing, and in particular, to an audio processing method, system, device, and computer-readable storage medium.
Background
Most desktop audio devices in the market use Android systems, but audio processing strategies of the Android systems are basically fixed along with software, flexible configuration cannot be achieved, and hardware interfaces are single. For example, the android system may set different priorities for different audio interfaces, and if a 3.5mm audio interface is set as the highest priority, when the android device outputs audio, if an earphone is inserted into the 3.5mm audio interface, the android device will not output audio to other audio interfaces (such as a bluetooth interface, a USB interface, and the like) or speakers built in or external to the android device, and will only output audio to the 3.5mm audio interface. In this process, it is difficult for the user to modify the audio processing policy or intervene in the selection of the audio interface, so that the conventional audio processing policy is often relatively fixed, and the flexibility of audio processing is low.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide an audio processing method, and aims to solve the technical problem of low flexibility of audio processing.
In order to achieve the above object, the present invention provides an audio processing method, including the steps of:
acquiring user configuration information and input audio information of a selected audio interface;
generating routing audio information according to the user configuration information and the input audio information, and calling a preset virtual sound card to route the routing audio information to a corresponding selected audio interface;
and controlling the audio equipment connected with the selected audio interface to perform audio mixing on the received routing audio information and then output the routing audio information according to the user configuration information.
Preferably, the step of generating routing audio information according to the user configuration information and the input audio information, and invoking a preset virtual sound card to route the routing audio information to a corresponding selected audio interface includes:
and generating routing audio information corresponding to each selected audio interface according to the user configuration information and the input audio information, and calling a preset virtual sound card to route the routing audio information to the corresponding selected audio interfaces respectively.
Preferably, the selecting audio interface includes a first selecting audio interface and other selecting audio interfaces except the first selecting audio interface, the step of generating routing audio information corresponding to each selecting audio interface according to the user configuration information and the input audio information, and calling a preset virtual sound card to route the routing audio information to the corresponding selecting audio interface respectively includes:
according to the user configuration information and the input audio information, taking the input audio information of other selected audio interfaces in the input audio information as the routing audio information of the first selected audio interface;
and calling a preset virtual sound card to route the routing audio information to the first selected audio interface so that the audio equipment connected with the first selected audio interface receives input audio information of other selected audio interfaces.
Preferably, the user configuration information includes audio gain information, and the step of controlling, according to the user configuration information, the audio device connected with the selected audio interface to mix the received routing audio information and output the mixed routing audio information includes:
inputting the routing audio information into an audio mixer of the audio equipment connected with the selected audio interface;
and calling the audio mixer to mix the route audio information according to the audio gain information, obtaining the synthetic audio information corresponding to the selected audio interface, and controlling the audio equipment connected with the selected audio interface to output the synthetic audio information.
Preferably, the step of obtaining the user configuration information and the input audio information of the selected audio interface includes:
acquiring operation information of a user on a preset user interface, and acquiring user configuration information according to the operation information;
and acquiring a selected audio interface according to the user configuration information, and acquiring input audio information input by the selected audio interface.
Preferably, the user configuration information includes enabling information of a preset audio interface, and the step of obtaining a selected audio interface according to the user configuration information and obtaining input audio information input by the selected audio interface includes:
and selecting a selected audio interface from the preset audio interfaces according to the starting information of the preset audio interfaces, and acquiring input audio information input by the selected audio interface.
Preferably, the step of obtaining the user configuration information and the input audio information of the selected audio interface further includes:
and when a recording instruction of a user is received, copying the input audio information of the selected audio interface, and storing the copied input audio information to a preset storage path.
In addition, to achieve the above object, the present invention also provides an audio processing system, including:
the configuration module is used for acquiring user configuration information and input audio information of a selected audio interface;
the routing module is used for generating routing audio information according to the user configuration information and the input audio information and calling a preset virtual sound card to route the routing audio information to a corresponding selected audio interface;
and the output module is used for controlling the audio equipment connected with the selected audio interface to carry out audio mixing on the received routing audio information and then output the audio mixed routing audio information according to the user configuration information.
Further, to achieve the above object, the present invention also provides an audio processing apparatus comprising: a memory, a processor and an audio processing program stored on the memory and executable on the processor, the audio processing program when executed by the processor implementing the steps of the audio processing method as claimed in any one of the above.
Furthermore, to achieve the above object, the present invention also provides a computer readable storage medium having stored thereon an audio processing program, which when executed by a processor, implements the steps of the audio processing method as described in any one of the above.
According to the audio processing method provided by the invention, the selected audio interface can be obtained according to the user configuration information by obtaining the user configuration information, and the input audio information of the selected audio interface is obtained, wherein the user configuration information which can be input or adjusted by a user can be used for obtaining the input audio information corresponding to the selected interface. Secondly, generating routing audio information corresponding to each selected audio interface according to the user configuration information and the input audio information, and routing the routing audio information to the corresponding selected audio interface by calling a preset virtual sound card; and finally, controlling the audio equipment connected with the selected audio interface to mix the received routing audio information and output the mixed routing audio information according to the user configuration information. In the invention, the user can input or adjust the user configuration information, so that the corresponding audio processing strategy can be configured according to the selected audio interface, thereby improving the flexibility of audio processing.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application. In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic device structure diagram of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a first embodiment of an audio processing method according to the present invention;
FIG. 3 is a diagram of an exemplary default user interface according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating a second embodiment of an audio processing method according to the present invention;
fig. 5 is a schematic diagram of an audio processing system according to an embodiment of the present invention.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings. With the above figures, there are shown specific embodiments of the present application, which will be described in more detail below. These drawings and written description are not intended to limit the scope of the inventive concepts in any manner, but rather to illustrate the inventive concepts to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, a reference to an element identified by the phrase "comprising one of 82308230a of 82303030, or an element defined by the phrase" comprising another identical element does not exclude the presence of the same element in a process, method, article, or apparatus comprising the element, and elements having the same designation may or may not have the same meaning in different embodiments of the application, the particular meaning being determined by its interpretation in the particular embodiment or by further reference to the context of the particular embodiment.
It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope herein. The word "if" as used herein may be interpreted as "at" \8230; "or" when 8230; \8230; "or" in response to a determination ", depending on the context. Also, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context indicates otherwise. It will be further understood that the terms "comprises," "comprising," "includes" and/or "including," when used in this specification, specify the presence of stated features, steps, operations, elements, components, items, species, and/or groups, but do not preclude the presence, or addition of one or more other features, steps, operations, elements, components, species, and/or groups thereof. The terms "or," "and/or," "including at least one of the following," and the like, as used herein, are to be construed as inclusive or mean any one or any combination. For example, "includes at least one of: A. b, C "means" any of the following: a; b; c; a and B; a and C; b and C; a and B and C ", again for example," a, B or C "or" a, B and/or C "means" any one of the following: a; b; c; a and B; a and C; b and C; a and B and C'. An exception to this definition will occur only when a combination of elements, functions, steps or operations are inherently mutually exclusive in some way.
It should be understood that, although the steps in the flowcharts in the embodiments of the present application are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least some of the steps in the figures may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, in different orders, and may be performed alternately or at least partially with respect to other steps or sub-steps of other steps.
The words "if", as used herein, may be interpreted as "at \8230; \8230when" or "when 8230; \823030, when" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrase "if determined" or "if detected (a stated condition or event)" may be interpreted as "upon determining" or "in response to determining" or "upon detecting (a stated condition or event)" or "in response to detecting (a stated condition or event)", depending on the context.
It should be noted that, step numbers such as S100 and S200 are used herein for the purpose of more clearly and briefly describing the corresponding contents, and do not constitute a substantial limitation on the sequence, and those skilled in the art may perform S200 first and then S100 in the specific implementation, but these should be within the protection scope of the present application.
It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for the convenience of description of the present application, and have no specific meaning in themselves. Thus, "module", "component" or "unit" may be used mixedly.
As shown in fig. 1, fig. 1 is a schematic device structure diagram of a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the audio processing apparatus may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display) as a Display unit, may include a Keyboard (Keyboard) as an input unit, or may include a Touch screen (Touch Panel) as an input unit in addition to the Display unit, and the optional user interface 1003 may include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface (e.g., USB interface), a wireless interface (e.g., bluetooth interface, WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
It will be appreciated by those skilled in the art that the device configuration shown in fig. 1 does not constitute a limitation of the audio processing device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, the memory 1005, which is one type of computer storage medium, may include an operating system, a network communication module, a user interface module, and an audio processing application program therein.
In the apparatus shown in fig. 1, the processor 1001 may be configured to call an audio processing program stored in the memory 1005 and perform the following operations:
acquiring user configuration information and input audio information of a selected audio interface;
generating routing audio information according to the user configuration information and the input audio information, and calling a preset virtual sound card to route the routing audio information to a corresponding selected audio interface;
and controlling the audio equipment connected with the selected audio interface to perform audio mixing on the received routing audio information and then output the audio mixed routing audio information according to the user configuration information.
Still further, the processor 1001 may be further configured to call an audio processing program stored in the memory 1005 and perform the following operations:
and generating routing audio information corresponding to each selected audio interface according to the user configuration information and the input audio information, and calling a preset virtual sound card to route the routing audio information to the corresponding selected audio interfaces respectively.
Further, the optional audio interfaces include a first optional audio interface and other optional audio interfaces except the first optional audio interface, and the processor 1001 may be further configured to call the audio processing program stored in the memory 1005, and perform the following operations:
according to the user configuration information and the input audio information, taking the input audio information of other selected audio interfaces in the input audio information as the routing audio information of the first selected audio interface;
and calling a preset virtual sound card to route the routing audio information to the first selected audio interface so that the audio equipment connected with the first selected audio interface receives input audio information of other selected audio interfaces.
Still further, the user configuration information includes audio gain information, and the processor 1001 may be further configured to call an audio processing program stored in the memory 1005, and perform the following operations:
inputting the routing audio information into an audio mixer of the audio equipment connected with the selected audio interface;
and calling the audio mixer to mix the route audio information according to the audio gain information, obtaining the synthetic audio information corresponding to the selected audio interface, and controlling the audio equipment connected with the selected audio interface to output the synthetic audio information.
Still further, the processor 1001 may be further configured to call an audio processing program stored in the memory 1005 and perform the following operations:
acquiring operation information of a user on a preset user interface, and acquiring user configuration information according to the operation information;
and acquiring a selected audio interface according to the user configuration information, and acquiring input audio information input by the selected audio interface.
Further, the user configuration information includes enabling information of a preset audio interface, and the processor 1001 may be further configured to call an audio processing program stored in the memory 1005, and perform the following operations:
and selecting a selected audio interface from the preset audio interfaces according to the starting information of the preset audio interfaces, and acquiring input audio information input by the selected audio interface.
Still further, the processor 1001 may be further configured to call an audio processing program stored in the memory 1005 and perform the following operations:
and when a recording instruction of a user is received, copying the input audio information of the selected audio interface, and storing the copied input audio information to a preset storage path.
Referring to fig. 2, a first embodiment of the present invention provides an audio processing method, including the steps of:
step S100, acquiring user configuration information and input audio information of a selected audio interface;
specifically, the audio processing device may set a corresponding key and/or a touch screen to obtain user configuration information through a user operating the key and/or the touch screen, and further obtain input audio information of a corresponding selected audio interface according to the user configuration information. The input audio information is audio information input by audio equipment connected through selected audio interfaces (such as a USB interface, a Bluetooth interface, a SIP/H.323 protocol interface, a 3.5mm interface, a Type-C interface and other audio interfaces capable of transmitting audio information). The number of the selected audio interfaces may be one or more than one, that is, the number and/or the type of the selected audio interfaces may be plural. Of course, the optional audio interface may further include a speaker and a microphone built in or externally connected to the audio processing device. The user configuration information may include enabling information of a preset audio interface, and may obtain a selected audio interface of a user according to the enabling information, and may further include audio gain information of the selected audio interface, that is, an input and/or output audio volume corresponding to the selected audio interface. Furthermore, the user configuration information includes audio gain information (i.e. the gain of each selected audio interface input/output), and the gain of the input audio information can be controlled according to the user configuration information. The user can adjust the audio gain effect input by the audio equipment connected with the audio interface by setting the corresponding audio gain information, and the flexibility of audio processing is improved.
Further, step S100 includes the steps of:
step S110, obtaining operation information of a user on a preset user interface, and obtaining user configuration information according to the operation information;
and step S120, acquiring a selected audio interface according to the user configuration information, and acquiring input audio information input by the selected audio interface.
Specifically, as shown in fig. 3, fig. 3 is a diagram illustrating an example of a default user interface according to an embodiment of the present invention. The preset user interface may include a state and control icon of a preset audio interface of the audio processing device, such as a "VOIP (Voice Over Internet Protocol, voice Over IP) state indication and control" control icon of an SIP/h.323 Protocol interface that may be used to participate in a video conference or a teleconference, "USB state indication and control" control icon of a USB interface, "bluetooth/3.5 mm interface state indication and control" control icon of a bluetooth/3.5 mm interface, "HDMI interface state indication and control" control icon of an HDMI interface, and "internal/external microphone interface state indication and control" and "internal or external speaker state indication and control" of a microphone and a speaker that are built in or external to the audio processing device, and the like. The corresponding preset user interface can be output on the display screen through the audio processing equipment so as to be operated by a user, and therefore convenience of user operation is improved. Then, by obtaining operation information of a user on a preset user interface (for example, turning on or off a certain audio interface, and adjusting the input and/or output audio volume of a certain audio interface), user configuration information is obtained according to the operation information, where the user configuration information may include the turning-on information of the preset audio interface, and thus, audio gain information of a selected audio interface (that is, the gain of input/output of each selected audio interface) may be obtained. And acquiring a selected audio interface corresponding to the user configuration information according to the user configuration information, and acquiring input audio information input by the selected audio interface.
Further, the user configuration information includes enabling information of a preset audio interface, and the step S120 includes the following steps:
step S120, selecting a selected audio interface from the preset audio interfaces according to the enabling information of the preset audio interfaces, and acquiring input audio information input by the selected audio interface.
Specifically, the user configuration information includes enabling information of a preset audio interface, where the enabling information includes that the preset audio interface of the audio processing device is enabled or not enabled, and the enabled preset audio interface is a selected audio interface selected by a user. The user can set the enabling information of the preset audio interface in the user configuration information by himself (for example, a certain preset audio interface is enabled or closed), so that the user can manage the audio devices connected with different preset audio interfaces. And then selecting a preset audio interface started in preset audio interfaces as the selected audio interface according to the starting information, and acquiring input audio information input by the selected audio interface. In this embodiment, the user may adjust the enabling information of the preset audio interface before or during the start of the audio/video telephone or the audio/video conference, thereby implementing the joining and exiting of different audio devices, and improving the flexibility of audio processing.
Step S200, generating routing audio information according to the user configuration information and the input audio information, and calling a preset virtual sound card to route the routing audio information to a corresponding selected audio interface;
specifically, route audio information corresponding to each selected audio interface is generated according to the user configuration information and the input audio information. The routing audio information is input audio information input by selected audio interfaces except the selected audio interface corresponding to the audio information to be output. For example, the routing audio information of a certain USB audio interface is input audio information input by an audio interface other than the USB audio interface. The condition that the user listens to own voice due to the fact that the audio equipment connected with the USB audio interface outputs own input audio information because the input audio information of the USB audio interface is returned to the USB audio interface is avoided. The hardware layer (namely the hardware sound card) is connected with the application layer of the system by utilizing the characteristic of the bidirectional channel of the preset virtual sound card, so that the disadvantage that the audio routing strategy of the original Android system is too complex and is not beneficial to hardware expansion is overcome, richer external interfaces can be provided, and the advantage of stronger Android system compatibility can be reserved. Therefore, the preset virtual sound card can be called to route the routing audio information to the corresponding mixer of the audio equipment connected with the selected audio interface.
Further, step S210 includes the steps of:
step S210, generating routing audio information corresponding to each selected audio interface according to the user configuration information and the input audio information, and calling a preset virtual sound card to respectively route the routing audio information to the corresponding selected audio interface.
Specifically, according to the user configuration information and the input audio information, routing audio information corresponding to each selected audio interface is generated, and a preset virtual sound card is called to route the routing audio information to the corresponding selected audio interfaces respectively.
Further, the optional audio interfaces include a first optional audio interface and other optional audio interfaces except the first optional audio interface, and step S210 includes the following steps:
step S211, according to the user configuration information and the input audio information, taking the input audio information of other selected audio interfaces in the input audio information as the routing audio information of the first selected audio interface;
step S212, a preset virtual sound card is called to route the routing audio information to the first selected audio interface, so that the audio device connected to the first selected audio interface receives input audio information of other selected audio interfaces.
Specifically, the optional audio interface includes a first optional audio interface and other optional audio interfaces except the first optional audio interface, where the first optional audio interface may be any of the preset audio interfaces, and the other optional audio interfaces may be one or more audio interfaces. According to the starting information of the preset audio interface in the user configuration information, the selected audio interface and the input audio information corresponding to the selected audio interface can be obtained, and the input audio information of other selected audio interfaces in the input audio information is used as the routing audio information of the first selected audio interface. It is assumed that the audio interfaces selected for use include audio interface 1, audio interface 2, audio interface 3, and audio interface 4. Taking the first selected audio interface as the audio interface 1 as an example, the other selected audio interfaces are the audio interface 2, the audio interface 3, and the audio interface 4. And taking the input audio information corresponding to the audio interface 2, the audio interface 3 and the audio interface 4 as the routing audio information of the audio interface 1. And finally, routing the routing audio information to the first selected audio interface by calling a preset virtual sound card so that the audio equipment connected with the first selected audio interface receives input audio information of other selected audio interfaces.
And step S300, controlling the audio equipment connected with the selected audio interface to mix the received routing audio information and output the mixed routing audio information according to the user configuration information.
Specifically, audio equipment (such as a smart phone, a tablet computer, a desktop computer, and the like) connected with an audio interface is controlled and selected according to user configuration information, the received routing audio information is mixed in a mixer of the audio equipment, and the mixed routing audio information is output through a speaker built in or externally connected to the audio equipment.
Further, the user configuration information includes audio gain information, and the step S300 includes the steps of:
step S310, inputting the routing audio information into a mixer of the audio equipment connected with the selected audio interface;
step S320, according to the audio gain information, invoking the audio mixer to mix the audio of the route, obtaining the synthesized audio information corresponding to the selected audio interface, and controlling the audio device connected to the selected audio interface to output the synthesized audio information.
Specifically, the user configuration information includes audio gain information, i.e., the gain of the audio input/output of each selected audio interface. Inputting the routing audio information into an audio mixer of the audio equipment connected with the selected audio interface; and calling the audio mixer to mix the route audio information according to the audio gain information, acquiring the synthetic audio information corresponding to the selected audio interface and conforming to the audio gain information, and controlling the audio equipment connected with the selected audio interface to output the synthetic audio information. The user can adjust the audio gain effect output by the audio equipment connected by the audio interface through setting the corresponding audio gain information, and the flexibility of audio processing is improved.
In the first embodiment of the present invention, the selected audio interface may be obtained according to the user configuration information by obtaining the user configuration information, and the input audio information of the selected audio interface may be obtained, where the user configuration information that may be input or adjusted by the user may be obtained to obtain the input audio information corresponding to the selected interface. Secondly, generating routing audio information corresponding to each selected audio interface according to the user configuration information and the input audio information, and routing the routing audio information to the corresponding selected audio interface by calling a preset virtual sound card; and finally, controlling the audio equipment connected with the selected audio interface to perform audio mixing on the received routing audio information and then outputting the routing audio information according to the user configuration information. In this embodiment, the user may input or adjust the user configuration information, so that the corresponding audio processing policy may be configured according to the selected audio interface, thereby improving the flexibility of audio processing.
Further, referring to fig. 4, a second embodiment of the present invention provides an audio processing method, based on the above embodiment shown in fig. 1, after step S100, the method includes the following steps:
step S130, when a recording instruction of the user is received, copying the input audio information of the selected audio interface, and storing the copied input audio information in a preset storage path.
Specifically, the audio processing device may set a corresponding recording control icon on a preset user interface, or set a corresponding recording button. When the user clicks the recording control icon or presses the recording key, a recording instruction of the user is received, all input audio information of the selected audio interface is copied, and the copied input audio information is stored in a preset storage path, wherein the preset storage path can be a storage path set by the user or a storage path preset by a manufacturer. In the embodiment, the user can store the corresponding input audio information according to the user requirement in the using process, so that the flexibility of audio processing is improved.
As shown in fig. 5, fig. 5 is a schematic diagram of an audio processing system according to an embodiment of the present invention, and in an embodiment of the present invention, an audio processing system is provided, where the audio processing system includes:
a configuration module 10, configured to configure a module, configured to obtain user configuration information and input audio information of a selected audio interface;
the routing module 20 is configured to generate routing audio information according to the user configuration information and the input audio information, and call a preset virtual sound card to route the routing audio information to a corresponding selected audio interface;
and the output module 30 is configured to control the audio device connected with the selected audio interface to mix the received routing audio information and output the mixed routing audio information according to the user configuration information.
Still further, the audio processing system further comprises:
the routing module 20 is further configured to generate routing audio information corresponding to each selected audio interface according to the user configuration information and the input audio information, and call a preset virtual sound card to route the routing audio information to the corresponding selected audio interface respectively.
Still further, the optional audio interfaces include a first optional audio interface and other optional audio interfaces other than the first optional audio interface, and the audio processing system further includes:
the routing module 20 is further configured to use, according to the user configuration information and the input audio information, input audio information of other selected audio interfaces in the input audio information as routing audio information of the first selected audio interface;
the routing module 20 is further configured to invoke a preset virtual sound card to route the routing audio information to the first selected audio interface, so that the audio device connected to the first selected audio interface receives input audio information of other selected audio interfaces.
Still further, the user configuration information includes audio gain information, the audio processing system further comprising:
the output module 30 is further configured to input the routing audio information into a sound mixer of the audio device connected with the selected audio interface;
the output module 30 is further configured to invoke the audio mixer to mix the route audio information according to the audio gain information, obtain the synthesized audio information corresponding to the selected audio interface, and control the audio device connected to the selected audio interface to output the synthesized audio information.
Still further, the audio processing system further comprises:
the configuration module 10 is further configured to obtain operation information of a user on a preset user interface, and obtain user configuration information according to the operation information;
the configuration module 10 is further configured to obtain a selected audio interface according to the user configuration information, and obtain input audio information input by the selected audio interface.
Still further, the user configuration information includes enabling information of a preset audio interface, and the audio processing system further includes:
the configuration module 10 is further configured to select a selected audio interface from the preset audio interfaces according to the enabling information of the preset audio interfaces, and acquire input audio information input by the selected audio interface.
Still further, the audio processing system further comprises: a recording module;
and the recording module is used for copying the input audio information of the selected audio interface when a recording instruction of a user is received, and storing the copied input audio information to a preset storage path.
In addition, the embodiment of the invention also provides a computer storage medium.
The computer storage medium stores a computer program, and the computer program is executed by a processor to implement the operations in the audio processing method provided by the above embodiments.
It is to be understood that the foregoing scenarios are only examples, and do not constitute a limitation on application scenarios of the technical solutions provided in the embodiments of the present application, and the technical solutions of the present application may also be applied to other scenarios. For example, as a person having ordinary skill in the art can know, with the evolution of the system architecture and the emergence of new service scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
The steps in the method of the embodiment of the application can be sequentially adjusted, combined and deleted according to actual needs.
The units in the device in the embodiment of the application can be merged, divided and deleted according to actual needs.
In the present application, the same or similar term concepts, technical solutions and/or application scenario descriptions will be generally described only in detail at the first occurrence, and when the description is repeated later, the detailed description will not be repeated in general for brevity, and when understanding the technical solutions and the like of the present application, reference may be made to the related detailed description before the description for the same or similar term concepts, technical solutions and/or application scenario descriptions and the like which are not described in detail later.
In the present application, each embodiment is described with an emphasis on the description, and reference may be made to the description of other embodiments for parts that are not described or recited in any embodiment.
The technical features of the technical solution of the present application may be arbitrarily combined, and for brevity of description, all possible combinations of the technical features in the embodiments are not described, however, as long as there is no contradiction between the combinations of the technical features, the scope of the present application should be considered as being described in the present application.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, a controlled terminal, or a network device) to execute the method of each embodiment of the present application.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The procedures or functions according to the embodiments of the present application are all or partially generated when the computer program instructions are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (e.g., coaxial cable, fiber optic, digital subscriber line) or wirelessly (e.g., infrared, wireless, microwave, etc.). Computer-readable storage media can be any available media that can be accessed by a computer or a data storage device, such as a server, data center, etc., that includes one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, memory Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Disk (SSD)), among others.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application, or which are directly or indirectly applied to other related technical fields, are included in the scope of the present application.

Claims (7)

1. An audio processing method, characterized in that the audio processing method comprises the steps of:
acquiring user configuration information and input audio information of a selected audio interface, wherein the selected audio interface is one or more than one audio interface and is used for acquiring input audio signals and outputting routing audio information;
generating routing audio information according to the user configuration information and the input audio information, and calling a preset virtual sound card to route the routing audio information to a corresponding selected audio interface;
controlling the audio equipment connected with the selected audio interface to perform audio mixing on the received routing audio information and then output the audio mixed routing audio information according to the user configuration information;
the audio interface for selection comprises a first audio interface for selection and other audio interfaces except the first audio interface for selection, the routing audio information is generated according to the user configuration information and the input audio information, and the step of calling a preset virtual sound card to route the routing audio information to the corresponding audio interface for selection comprises the following steps:
according to the user configuration information and the input audio information, taking the input audio information of other selected audio interfaces in the input audio information as the routing audio information of the first selected audio interface, wherein the first selected audio interface is any selected audio interface;
calling a preset virtual sound card to route the routing audio information to the first selected audio interface so that audio equipment connected with the first selected audio interface receives input audio information of other selected audio interfaces;
the step of obtaining user configuration information and input audio information of the selected audio interface comprises:
acquiring operation information of a user on a preset user interface, and acquiring user configuration information according to the operation information;
according to the user configuration information, a selected audio interface is obtained, and input audio information input by the selected audio interface is obtained;
the user configuration information comprises enabling information of a preset audio interface, and the steps of obtaining a selected audio interface according to the user configuration information and obtaining input audio information input by the selected audio interface comprise:
and selecting a selected audio interface from the preset audio interfaces according to the starting information of the preset audio interfaces, and acquiring input audio information input by the selected audio interface.
2. The audio processing method according to claim 1, wherein the step of generating routing audio information according to the user configuration information and the input audio information, and invoking a preset virtual sound card to route the routing audio information to the corresponding selected audio interface comprises:
and generating routing audio information corresponding to each selected audio interface according to the user configuration information and the input audio information, and calling a preset virtual sound card to route the routing audio information to the corresponding selected audio interfaces respectively.
3. The audio processing method of claim 1, wherein the user configuration information includes audio gain information, and the step of controlling the audio device connected with the selected audio interface to mix and output the received routing audio information according to the user configuration information comprises:
inputting the routing audio information into an audio mixer of the audio equipment connected with the selected audio interface;
and calling the audio mixer to mix the route audio information according to the audio gain information, obtaining the synthetic audio information corresponding to the selected audio interface, and controlling the audio equipment connected with the selected audio interface to output the synthetic audio information.
4. The audio processing method of any of claims 1 to 3, wherein the step of obtaining user configuration information and input audio information for the selected audio interface is followed by the step of:
and when a recording instruction of a user is received, copying the input audio information of the selected audio interface, and storing the copied input audio information to a preset storage path.
5. An audio processing system, characterized in that the audio processing system comprises:
the system comprises a configuration module, a routing module and a routing module, wherein the configuration module is used for acquiring user configuration information and input audio information of a selected audio interface, the selected audio interface is one or more than one audio interface, and the selected audio interface is used for acquiring input audio signals and outputting routing audio information;
the routing module is used for generating routing audio information according to the user configuration information and the input audio information and calling a preset virtual sound card to route the routing audio information to a corresponding selected audio interface;
the output module is used for controlling the audio equipment connected with the selected audio interface to perform audio mixing on the received routing audio information and then output the audio mixed routing audio information according to the user configuration information;
the audio interface for use includes the audio interface for use and other audio interfaces for use except the audio interface for use, audio processing system still includes:
the routing module is further configured to use input audio information of other selected audio interfaces in the input audio information as routing audio information of the first selected audio interface according to the user configuration information and the input audio information, where the first selected audio interface is any selected audio interface;
the routing module is further used for calling a preset virtual sound card to route the routing audio information to the first selected audio interface so that the audio equipment connected with the first selected audio interface receives input audio information of other selected audio interfaces;
the audio processing system further comprises:
the configuration module is used for acquiring operation information of a user on a preset user interface and acquiring user configuration information according to the operation information;
the configuration module is used for acquiring a selected audio interface according to the user configuration information and acquiring input audio information input by the selected audio interface;
the user configuration information includes enabling information of a preset audio interface, and the audio processing system further includes:
and the configuration module is used for selecting a selected audio interface in the preset audio interfaces according to the starting information of the preset audio interfaces and acquiring the input audio information input by the selected audio interface.
6. An audio processing device, characterized in that the audio processing device comprises: memory, a processor and an audio processing program stored on the memory and executable on the processor, the audio processing program, when executed by the processor, implementing the steps of the audio processing method according to any one of claims 1 to 4.
7. A computer-readable storage medium, having stored thereon an audio processing program which, when executed by a processor, implements the steps of the audio processing method according to any one of claims 1 to 4.
CN202210113349.0A 2022-01-30 2022-01-30 Audio processing method, system, device and computer readable storage medium Active CN114138230B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210113349.0A CN114138230B (en) 2022-01-30 2022-01-30 Audio processing method, system, device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210113349.0A CN114138230B (en) 2022-01-30 2022-01-30 Audio processing method, system, device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN114138230A CN114138230A (en) 2022-03-04
CN114138230B true CN114138230B (en) 2023-01-31

Family

ID=80381903

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210113349.0A Active CN114138230B (en) 2022-01-30 2022-01-30 Audio processing method, system, device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN114138230B (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101246417B (en) * 2007-02-13 2010-09-29 艾威梯科技(北京)有限公司 Method and system for non-intermittence software switch of audio data flow input/output
US10327091B2 (en) * 2016-11-12 2019-06-18 Ryan Ingebritsen Systems, devices, and methods for reconfiguring and routing a multichannel audio file
CN108153508A (en) * 2017-12-07 2018-06-12 天脉聚源(北京)传媒科技有限公司 A kind of method and device of audio frequency process
CN110968288A (en) * 2019-11-28 2020-04-07 北京视博云科技有限公司 Method, device, storage medium and equipment for isolated acquisition of application audio
CN215647372U (en) * 2021-08-06 2022-01-25 江西创成微电子有限公司 External sound card and audio system
CN113805837A (en) * 2021-09-18 2021-12-17 重庆传音科技有限公司 Audio processing method, mobile terminal and storage medium

Also Published As

Publication number Publication date
CN114138230A (en) 2022-03-04

Similar Documents

Publication Publication Date Title
US20200401286A1 (en) Method, apparatus and medium for switching application interfaces
US9411553B2 (en) Audio configuration based on selectable audio modes
US20080186960A1 (en) System and method of controlling media streams in an electronic device
EP3169086A1 (en) Connection method for multimedia playing device, master device, control terminal, and system
KR20210076985A (en) BANDWIDTH PART CONFIGURATION METHOD AND DEVICE
JP2009230370A (en) Information processing unit, and method and program for sharing data
AU2022203591B2 (en) Method and apparatus for switching display interface, and electronic device
CN104796875A (en) Call mode selection method and device
CN110602683B (en) Bluetooth control method, device, mobile terminal and storage medium
CN114138230B (en) Audio processing method, system, device and computer readable storage medium
US20030129975A1 (en) Method of performing communication function with hot key in mobile communication terminals
US9756436B2 (en) Terminal to control audio output path and method for controlling audio output path between terminals
CN113423007B (en) Control method and device for multi-audio playing, electronic equipment and storage medium
CN109491655A (en) A kind of incoming event processing method and processing device
CN114501126A (en) Video playing method, system and storage medium
CN109542388B (en) Multi-channel audio stream output method and related product
CN114268691A (en) Call method, device, terminal equipment and readable storage medium
CN113687751A (en) Agent control device, agent control method, and non-transitory recording medium
JP2022016997A (en) Information processing method, information processing device, and information processing program
CN111221512A (en) Function module mixing method, electronic device, and storage medium
CN111984221B (en) Audio output method, device, equipment and computer readable storage medium
JP6134869B2 (en) PWM data processing method, PWM data processing apparatus, program, and recording medium
JP7353402B2 (en) Terminals and programs
CN109040649B (en) Call control method, device, equipment and computer readable medium
JP4111894B2 (en) Data providing system, data providing method, and communication apparatus

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant