A command-line based method, system, and medium for high-quality audio split recording.

By adopting a command-line-based audio splitting and recording method, the problem of serial interference between audio sources in financial institutions was solved, enabling the recording of high-quality audio data and improving the processing quality and efficiency of voice services.

CN114237542BActive Publication Date: 2026-04-03INSPUR FINANCIAL INFORMATION TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-17
Publication Date
2026-04-03

AI Technical Summary

Technical Problem

When financial institutions record system scripts and user voices, the audio sources interfere with each other, resulting in extremely low audio quality and clarity.

Method used

A high-quality audio split recording method based on command line is adopted. By configuring mixed commands and controlling audio recording equipment, the audio source is merged and split recorded, including audio source parameter identification, volume reference value setting, noise removal and other technical means.

Benefits of technology

It improved the audio quality and processing efficiency of voice services in financial institutions, and achieved high-quality audio data recording.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114237542B_ABST
    Figure CN114237542B_ABST
Patent Text Reader

Abstract

This invention discloses a high-quality audio splitting recording method, system, and medium based on command line. The method includes the following steps: obtaining audio recording device information, configuring a command compiler and command line template, and setting filter instruction code; generating an audio source merging recording instruction based on the audio recording device information, command compiler, command line template, and filter instruction code; configuring an audio recording device control module, setting a volume reference value, and obtaining audio recording requirements; and performing a switching audio recording operation based on the audio source merging recording instruction, audio recording device control module, volume reference value, and audio recording requirements. This invention can merge multiple audio sources of financial institution business audio through function commands and split the recording according to recording priority during recording, ultimately obtaining high-quality audio data and improving the processing quality and efficiency of voice services in financial institutions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of audio recording and control technology, and in particular to a high-quality audio split recording method, system, and medium based on command line. Background Technology

[0002] Financial institutions often need to alternate between recording system scripts and recording user voices when processing business. During this alternating recording process, two audio sources are recorded: the system scripts and the user voices. As a result, the two audio sources interfere with each other, leading to extremely low audio quality and clarity. Therefore, there is a need to develop a method to improve the quality of business audio recording in financial institutions. Summary of the Invention

[0003] The main objective of this invention is to develop a method for improving the high-quality recording of business audio in financial institutions, thereby enhancing the quality and efficiency of business processing.

[0004] To achieve the above objectives, one technical solution adopted by the present invention is to provide a high-quality audio splitting and recording method based on command line, comprising the following steps:

[0005] Mixed instruction configuration steps:

[0006] Obtain audio recording device information, configure command compiler and command line template, and set filter instruction code; generate audio source merging and recording instructions based on the audio recording device information, the command compiler, the command line template, and the filter instruction code;

[0007] Mixed audio recording steps:

[0008] Configure the audio recording device control module, set the volume reference value, and obtain the audio recording requirements; perform a switching audio recording operation based on the audio source merging recording instruction, the audio recording device control module, the volume reference value, and the audio recording requirements.

[0009] As an improved solution, the audio recording device information includes: system audio recording module information and environmental audio recording module information;

[0010] The audio recording device control module includes: a system audio recording module control interface and an environmental audio recording module controller;

[0011] The volume reference value includes: a first reference value and a second reference value; the first reference value is the volume control value for the system audio recording module; the second reference value is the volume control value for the ambient audio recording module.

[0012] The audio recording requirements include: a first requirement and a second requirement; the first requirement is that there is a recording requirement; the second requirement is that there is no recording requirement.

[0013] As an improved solution, the step of generating an audio source merging and recording instruction based on the audio recording device information, the command compiler, the command line template, and the filter instruction code further includes:

[0014] Identify the first audio source parameter in the system audio recording module information; identify the second audio source parameter in the environmental audio recording module information; identify the first parameter area and the second parameter area in the command line template;

[0015] First, the command compiler is invoked to import the first audio source parameters into the first parameter area. Then, the command compiler is invoked to import the second audio source parameters into the second parameter area, thus obtaining the audio source instruction to be mixed.

[0016] The audio output requirement is obtained, and an audio source instruction mixing operation is performed based on the command compiler, the filter instruction code, the audio source instruction to be mixed, and the audio output requirement to obtain the audio source merging and recording instruction.

[0017] As an improved approach, the audio source instruction mixing operation includes:

[0018] Identify the audio output parameter information of the audio output requirement; set the first audio output format parameter and parameter connector; connect the audio output parameter information with the first audio output format parameter through the parameter connector to obtain the extended instruction;

[0019] Configure the execution function; set the first connection bit; call the execution function to run the filter instruction code on the audio source instruction to be mixed to obtain the audio source instruction to be configured; call the command compiler to compile the extended instruction to the position in the audio source instruction to be configured that matches the first connection bit to obtain the audio source merging and recording instruction.

[0020] As an improved solution, the step of performing a switching audio recording operation based on the audio source merging recording instruction, the audio recording device control module, the volume reference value, and the audio recording requirements further includes:

[0021] When the audio recording requirement is the first requirement, a process creation sub-function is configured; the switching audio recording operation is executed based on the audio recording device control module, the audio source merging recording instruction, the volume reference value, and the process creation sub-function.

[0022] As an improved solution, the switching audio recording operation includes:

[0023] The process creation sub-function is called to create an empty command line process; the recording process information between the system audio recording module and the environmental audio recording module is obtained; and the recording start time point in the recording process information is identified.

[0024] Obtain a first time point and perform a timing operation to obtain a second time point; calculate the sum of the time and the second time point; compare the time and the sum of the values ​​to see if the recording start time point is reached. If it is, call the empty command line process to execute the audio source merging recording instruction to obtain mixed audio data for the system audio recording module and the environmental audio recording module.

[0025] As an improved solution, the switching audio recording operation further includes:

[0026] Identify the time flow information of the recording process information; based on the time flow information, set the first real-time priority of the system audio recording module and the second real-time priority of the environmental audio recording module;

[0027] When the empty command line process executes the audio source merging and recording instruction, the first real-time priority and the second real-time priority are compared based on the time flow information. When the first real-time priority is greater than the second real-time priority, the ambient audio recording module controller is invoked to adjust the input volume of the ambient audio recording module to the second reference value. When the first real-time priority is less than the second real-time priority, the system audio recording module control interface is invoked to adjust the input volume of the system audio recording module to the first reference value.

[0028] As an improved solution, the command-line based high-quality audio splitting recording method further includes:

[0029] Configure the noise removal program, the environmental noise feature matching table, and the system noise feature matching table; obtain the operating environment information of the environmental audio recording module; obtain the device model of the system audio recording module;

[0030] The filtering algorithm is invoked to filter out the first environmental noise feature that matches the operating environment information from the environmental noise feature matching table; the filtering algorithm is invoked to filter out the first system noise feature that matches the equipment model from the system noise feature matching table;

[0031] The noise removal program is invoked to remove the first ambient noise data that matches the first ambient noise feature from the mixed audio data, and the noise removal program is invoked to remove the first system noise data that matches the first system noise feature from the mixed audio data, thereby obtaining high-quality mixed audio.

[0032] This invention also provides a command-line based high-quality audio splitting and recording system, comprising:

[0033] Mixed instruction configuration module and mixed audio recording module;

[0034] The hybrid instruction configuration module is used to obtain audio recording device information and configure command compiler and command line template; the hybrid instruction configuration module is also used to set filter instruction code, and the hybrid instruction configuration module generates audio source merging recording instruction based on the audio recording device information, the command compiler, the command line template and the filter instruction code;

[0035] The hybrid audio recording module is used to configure the audio recording device control module and set the volume reference value; the hybrid audio recording module is also used to obtain audio recording requirements, and the hybrid audio recording module performs switching audio recording operations based on the audio source merging recording instruction, the audio recording device control module, the volume reference value and the audio recording requirements.

[0036] The present invention also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the command-line based high-quality audio splitting recording method.

[0037] The beneficial effects of this invention are:

[0038] 1. The high-quality audio splitting and recording method based on command line described in this invention can merge multiple audio sources of financial institution business audio through function commands, and split the recording according to the recording priority during recording, ultimately obtaining high-quality audio data. This makes up for the shortcomings of the prior art and improves the processing quality and efficiency of voice business in financial institutions.

[0039] 2. The command-line based high-quality audio splitting and recording system described in this invention can merge multiple audio sources of financial institution business audio through the cooperation of a mixed instruction configuration module and a mixed audio recording module, and split the recording according to the recording priority during recording, ultimately obtaining high-quality audio data. This makes up for the shortcomings of the prior art and improves the processing quality and efficiency of voice business in financial institutions.

[0040] 3. The computer-readable storage medium described in this invention can enable the hybrid instruction configuration module and the hybrid audio recording module to work together, thereby merging multiple audio sources of financial institution business audio through function commands, and performing split recording according to recording priority during recording, ultimately obtaining high-quality audio data. This overcomes the shortcomings of the prior art, improves the processing quality and efficiency of voice business in financial institutions, and effectively improves the operability of the command-line based high-quality audio split recording method. Attached Figure Description

[0041] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0042] Figure 1 This is a flowchart of the high-quality audio splitting and recording method based on command line as described in Embodiment 1 of the present invention;

[0043] Figure 2 This is a schematic diagram of the specific process of the high-quality audio splitting and recording method based on command line as described in Embodiment 1 of the present invention;

[0044] Figure 3 This is an architecture diagram of the command-line based high-quality audio splitting and recording system described in Embodiment 2 of the present invention. Detailed Implementation

[0045] The preferred embodiments of the present invention will now be described in detail with reference to the accompanying drawings, so that the advantages and features of the present invention can be more easily understood by those skilled in the art, thereby providing a clearer and more explicit definition of the scope of protection of the present invention.

[0046] In the description of this invention, it should be noted that the embodiments described in this invention are only some embodiments of this invention, not all embodiments; all other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.

[0047] In the description of this invention, it should be noted that the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.

[0048] In the description of this invention, it should be noted that, unless otherwise explicitly specified and limited, the terms "audio recording device information," "command compiler," "command line template," "filter instruction code," "audio source merging recording instruction," "audio recording device control module," "audio source parameters," "parameter area," "instruction for audio source to be mixed," "audio output parameter information," "audio output format parameters," "parameter connector," "extended instruction," "execution function," "instruction for audio source to be configured," "process creation subfunction," "empty command line process," "recording process information," "timing operation," "time and value," "time process information," "real-time priority," "noise removal program," "ambient noise feature matching table," "system noise feature matching table," "operating environment information," "device model," "ambient noise characteristics," "system noise characteristics," "ambient noise data," "system noise data," "high-quality mixed audio," "mixing instruction configuration module," and "mixed audio recording module" should be interpreted broadly. Those skilled in the art can understand the specific meaning of the above terms in this invention based on the specific circumstances.

[0049] In the description of this invention, it should be noted that: Windows is an operating system; ffmpeg is an open-source computer program; CreateProcess is a process creation function; and API is an operating system function call interface.

[0050] Example 1

[0051] This embodiment provides a high-quality audio splitting and recording method based on command line, such as... Figure 1 and Figure 2 As shown, it includes the following steps:

[0052] S100, Mixed Instruction Configuration Steps, specifically include:

[0053] S110. Obtain audio recording device information, configure command compiler and command line template, and set filter instruction code; generate audio source merging and recording instruction based on the audio recording device information, the command compiler, the command line template, and the filter instruction code;

[0054] Specifically, the audio recording device information includes: system audio recording module information and environmental audio recording module information; in this embodiment, the system audio recording module information and environmental audio recording module information are the device name information for the system audio recording module and the environmental audio recording module, respectively; in this embodiment, the system audio recording module is the virtual audio recorder program obtained by installing screen-capture-recorder; the environmental audio recording module includes, but is not limited to, external sound pickup devices, such as microphones;

[0055] Specifically, the system identifies the first audio source parameter in the system audio recording module information based on the logical rules of the ffmpeg command line; the system identifies the second audio source parameter in the environment audio recording module information based on the logical rules of the ffmpeg command line; the system identifies the first parameter area and the second parameter area in the command line template; the first parameter area and the second parameter area are the positions in the command line template where the audio source parameters are to be imported; correspondingly, the first audio source parameter and the second audio source parameter are set based on the device name information of the system audio recording module and the environment audio recording module, respectively; in this embodiment, the audio recording device information is obtained by executing the command line: "ffmpeg-list_devices true-f dshow-i dummy"; correspondingly, in this embodiment, the first audio source parameter is: -f dshow-i audio = "virtual-audio-capturer"; the second audio source parameter is: -f dshow-i audio = "microphone (Realtek(R)Audio)"; the audio source parameters are specifically configured according to the system device name in the system audio recording module information and the environment audio recording module name in the environment audio recording module information, and based on the logical rules of the ffmpeg command line;

[0056] The command compiler is invoked to import the first audio source parameters into the first parameter area, and the command compiler is invoked to import the second audio source parameters into the second parameter area, thus obtaining the audio source instruction to be mixed. The audio source instruction to be mixed is the integration of the command line template, the first audio source parameters, and the second audio source parameters. Correspondingly, in this embodiment, the command line template is an empty template to be filled, set according to the logical rules of the ff mpeg command line. The final audio source instruction to be mixed is ffmpeg-f dshow-i audio="microphone(Realtek(R)Audio)"-f dshow-i audio="virtual-audio-capturer". In this embodiment, the command line template is ffmpeg-[area to be filled]. Correspondingly, in this embodiment, multiple audio sources can be combined according to this idea to achieve multi-audio source mixed recording. The above operations complete the initial construction of the audio source mixing instruction. Subsequently, the instruction needs to be improved according to the audio output requirements, and the instructions also need to be linked, that is, recompile and combine with the functional code to meet the compilation implementation of the multi-audio source mixed recording code.

[0057] Specifically, the audio output requirement is obtained, and an audio source instruction mixing operation is performed based on the command compiler, the filter instruction code, the audio source instruction to be mixed, and the audio output requirement to obtain the audio source merging and recording instruction. In this embodiment, the filter instruction code is a script code that implements the filter mixing function, and is used to merge two audio sources into one audio. In this embodiment, the filter instruction code is: "-filter_complex amix=inputs=2:duration=longest:dropout_transition=2";

[0058] Specifically, the audio source instruction mixing operation includes:

[0059] The audio output parameter information required for the audio output is identified. In this embodiment, the audio output parameter information is -acodec libmp3lame t, representing the expected output value of the audio data. A first audio output format parameter and a parameter connector are set. In this embodiment, the first audio output format parameter is the code form related to the expected output format of the audio data. The parameter connector is a character used to connect the audio output parameter information and the first audio output format parameter, used to improve the mixed compilation process of the code. Correspondingly, in this embodiment, the first audio output format parameter is "mp3", which can be set according to specific circumstances, including but not limited to "mp3" with the parameter connector ".", which can be adjusted according to the code rules. The audio output parameter information is connected to the first audio output format parameter through the parameter connector to obtain an extended instruction. In this embodiment, the extended instruction is "-acodec libmp3lame t.mp3".

[0060] Configure the execution function; in this embodiment, the execution function is an executable program that runs the filter instruction code and places the filter instruction code into the audio source instruction to be mixed; set the first connection bit, which is the end of the audio source instruction to be configured, and the specific setting is specific to the specific situation; call the execution function to run the filter instruction code on the audio source instruction to be mixed, at this time the filter instruction code is connected to the audio source instruction to be mixed to obtain the audio source instruction to be configured. In this embodiment, the audio source instruction to be configured is: f fmpeg -f dshow -i audio = "microphone (Realtek(R)Audio)" -f dshow -i audio = "virtual-audio-capturer" -filter_complex amix = inputs = 2:duration = longest:dropout_transition = 2; call the command compiler to compile the extended instruction to the position in the audio source instruction to be configured that matches the first connection bit to obtain the audio source merging recording instruction. In this embodiment, the audio source merging recording instruction is: ffmpeg -f dshow -i audio = "microphone (Realtek(R)A udio)" -f dshow -i audio = "virtual-audio-capturer" -filter_complex amix = inputs = 2:duration = longest:dropout_transition = 2 -acodeclibmp3lame t.mp3; In this embodiment, the audio source merging recording command is a runnable audio recording command, so it is necessary to call the command according to the recording requirements. The development and implementation of audio source merging recording code is realized through the ffmpeg command line method. The whole process is easy to operate, convenient, and efficient, providing a code foundation for subsequent steps.

[0061] S200, Mixed Audio Recording Steps, specifically include:

[0062] S210. Configure the audio recording device control module, set the volume reference value, and obtain the audio recording requirements; perform a switching audio recording operation based on the audio source merging recording instruction, the audio recording device control module, the volume reference value, and the audio recording requirements; in this embodiment, it is equally important to prioritize the audio output of the system audio recording module and the environmental audio recording module according to the audio recording device control module and the audio recording requirements, thereby further improving the quality of audio recording.

[0063] Specifically, the audio recording device control module includes: a system audio recording module control interface and an environmental audio recording module controller; in this embodiment, the system audio recording module control interface is a Windows call interface for controlling the system audio recording module; the environmental audio recording module controller is a wireless modulator for controlling the environmental audio recording module; the volume reference value includes: a first reference value and a second reference value; the first reference value is the volume control value for the system audio recording module; the second reference value is the volume control value for the environmental audio recording module; in this embodiment, the first reference value is the mute value for the system audio recording module; the second reference value is the mute value for the environmental audio recording module; the audio recording requirement includes: a first requirement and a second requirement; the first requirement is the existence of a recording requirement; the second requirement is the absence of a recording requirement;

[0064] Specifically, when the audio recording requirement is the first requirement, the financial institution's voice service will begin. Therefore, a process creation sub-function is configured, and the switching audio recording operation is executed based on the audio recording device control module, the audio source merging recording instruction, the volume reference value, and the process creation sub-function.

[0065] Specifically, the switching audio recording operation includes:

[0066] The process creation sub-function is called to create an empty command-line process. In this embodiment, the process creation sub-function uses the Windows API function CreateProcess; it is used to call the ffmpeg command line to execute the audio source merging and recording instruction. The empty command-line process is an empty thread that allocates system computing resources and is used to store the audio recording process obtained from subsequent command execution. The recording process information between the system audio recording module and the environment audio recording module is obtained. The recording process information is the process information of the interleaved matching of the speech playback stage and the user response stage set according to the audio recording requirements, which also includes the corresponding time points; specifically, for example: recording start time: 11:30; first system speech playback: 11:30-11:35; first user response: 11:36-11:40; second system speech playback: 11:41-11:45. The second user response was from 11:46 to 11:50; therefore, the recording start time point in the recording process information was identified; the first time point was obtained, which is the current time, and a timing operation was performed to obtain the second time; the second time is a continuously increasing time period that changes in real time with the current time; the sum of the first time point and the second time was calculated, and this time and value is the current time point at the end of the timing process; the time and value were compared to see if the recording start time point was reached. If it was reached, it indicates that the financial institution's voice service has started, and the system audio recording module and the environmental audio recording module have started working. Therefore, the empty command line process was called to execute the audio source merging recording instruction to obtain the mixed audio data for the system audio recording module and the environmental audio recording module.

[0067] Specifically, the switching audio recording operation also includes:

[0068] The recording process information is identified by time flow information; based on the time flow information, a first real-time priority for the system audio recording module and a second real-time priority for the environmental audio recording module are set; in this embodiment, to achieve better recording quality, this key step is performed to adjust the volume input value of the recording device according to the priority, thereby realizing virtual switching of the audio source and thus achieving split recording; correspondingly, in this embodiment, the time flow information is as follows, as exemplified above: the first system recording device time flow is 11:30 to 11:35; the first environmental recording device time flow is 11:36 to 11:40; the second... The secondary system recording device time flow is 11:41 to 11:45; the secondary environment recording device time flow is 11:46 to 11:50; the first real-time priority and the second real-time priority are priorities that change in real time according to the above time flow. Therefore, the first real-time priority includes the first priority that matches the time flow of several system recording devices respectively; the second real-time priority includes the second priority that matches the time flow of several environment recording devices respectively; the order of the first priority and the second priority is set according to the time sequence, with the earlier time having a higher priority; therefore, when the empty command line process is called to execute the audio source merging recording instruction, it is performed synchronously. The process involves comparing the first real-time priority and the second real-time priority based on the time flow information, i.e., comparing the first priority and the second priority corresponding to the number of times the process is executed. For example, when performing the first time flow, the first priority corresponding to the first system recording device time flow and the second priority corresponding to the first environmental recording device time flow are compared. Therefore, when the first real-time priority is greater than the second real-time priority, it indicates that the system recording device time flow is being executed. The environmental audio recording module controller is then invoked to adjust the input volume of the environmental audio recording module to the second reference value, thus muting the environmental audio recording module. Therefore, the recording at this time will not be affected by the environmental noise captured by the environmental audio recording module. When the first real-time priority is less than the second real-time priority, it indicates that the environmental recording device time flow is being executed. Therefore, the system audio recording module control interface is invoked to adjust the input volume of the system audio recording module to the first reference value, thus muting the system audio recording module. Therefore, the recording at this time will not be affected by the system noise captured by the system audio recording module. In this embodiment, environmental noise includes, but is not limited to, ambient scene sounds; system noise includes, but is not limited to, system plugin prompts. The above steps achieve high-quality audio mixed audio source split recording.

[0069] Specifically, to further improve the quality of recorded audio, the command-line based high-quality audio splitting recording method also includes:

[0070] Configure a noise removal program, an environmental noise feature matching table, and a system noise feature matching table. In this embodiment, the noise removal program is an audio control program designed based on a filtering algorithm or audio control software. The environmental noise feature matching table contains several environmental scene information and several environmental noise features that match the environmental scene information. For example, if the environmental scene information is a bank, then the environmental noise features are: the operating sound features of bank self-service terminal equipment, the prompt sound features of bank self-service terminal equipment, the prompt sound features of bank windows, and the sound features of personnel movement within the bank, etc. The system noise feature matching table contains several system model information and several system plug-in prompt sound features that match the system model information. Therefore, the environmental noise feature matching table is used to obtain the environmental noise feature matching table. The system obtains the operating environment information of the system audio recording module and its device model; it calls a filtering algorithm to filter out the first environmental noise feature that matches the operating environment information in the environmental noise feature matching table; it calls a filtering algorithm to filter out the first system noise feature that matches the device model in the system noise feature matching table; it calls the noise removal program to remove the first environmental noise data that matches the first environmental noise feature from the mixed audio data, and simultaneously calls the noise removal program to remove the first system noise data that matches the first system noise feature from the mixed audio data, thereby obtaining a high-quality mixed audio that is clearer and easier to listen to and identify than the mixed audio data.

[0071] Ultimately, the high-quality audio splitting and recording method based on command line described in this embodiment achieves high-quality recording of voice services for financial institutions. This is mainly achieved through operations such as compiling and calling ffmpeg command line instructions, adjusting the input audio of the recording device according to priority, and filtering noise features. This results in high-quality audio recording, making up for the shortcomings of existing technologies, providing strong convenience, facilitating development, and improving the processing efficiency and quality of voice services for financial institutions.

[0072] Example 2

[0073] This embodiment is based on the same inventive concept as the command-line-based high-quality audio splitting and recording method described in Embodiment 1, and further provides a command-line-based high-quality audio splitting and recording system, such as... Figure 3 As shown, it includes: a mixed instruction configuration module and a mixed audio recording module;

[0074] In the command-line based high-quality audio splitting and recording system, the hybrid instruction configuration module is used to obtain audio recording device information and configure command compilers and command line templates; the hybrid instruction configuration module is also used to set filter instruction codes, and the hybrid instruction configuration module generates audio source merging and recording instructions based on the audio recording device information, the command compiler, the command line templates and the filter instruction codes;

[0075] Specifically, the audio recording device information includes: system audio recording module information and environmental audio recording module information;

[0076] Specifically, the mixing instruction configuration module identifies the first audio source parameter in the system audio recording module information; the mixing instruction configuration module identifies the second audio source parameter in the environmental audio recording module information; the mixing instruction configuration module identifies the first parameter area and the second parameter area in the command line template; the mixing instruction configuration module calls the command compiler to import the first audio source parameter into the first parameter area, and calls the command compiler to import the second audio source parameter into the second parameter area, to obtain the audio source instruction to be mixed; the mixing instruction configuration module obtains the audio output requirement, and performs an audio source instruction mixing operation based on the command compiler, the filter instruction code, the audio source instruction to be mixed, and the audio output requirement, to obtain the audio source merging recording instruction.

[0077] Specifically, the audio source instruction mixing operation includes: a mixing instruction configuration module identifying the audio output parameter information of the audio output requirement and setting a first audio output format parameter and a parameter connector; the mixing instruction configuration module connecting the audio output parameter information with the first audio output format parameter through the parameter connector to obtain an extended instruction; the mixing instruction configuration module configuring an execution function and setting a first connection bit; the mixing instruction configuration module calling the execution function to run the filter instruction code on the audio source instruction to be mixed to obtain the audio source instruction to be configured; and the mixing instruction configuration module calling the command compiler to compile the extended instruction to the position in the audio source instruction to be configured that matches the first connection bit to obtain the audio source merging and recording instruction.

[0078] In the command-line based high-quality audio splitting and recording system, the hybrid audio recording module is used to configure the audio recording device control module and set the volume reference value; the hybrid audio recording module is also used to obtain audio recording requirements, and the hybrid audio recording module performs switching audio recording operations based on the audio source merging recording instruction, the audio recording device control module, the volume reference value and the audio recording requirements;

[0079] Specifically, the audio recording device control module includes: a system audio recording module control interface and an environmental audio recording module controller; the volume reference value includes: a first reference value and a second reference value; the first reference value is the volume control value for the system audio recording module; the second reference value is the volume control value for the environmental audio recording module; the audio recording requirement includes: a first requirement and a second requirement; the first requirement is that there is a recording requirement; the second requirement is that there is no recording requirement.

[0080] Specifically, when the audio recording requirement is the first requirement, the hybrid audio recording module configures the process creation sub-function and executes the switching audio recording operation based on the audio recording device control module, the audio source merging recording instruction, the volume reference value, and the process creation sub-function.

[0081] Specifically, the switching audio recording operation includes: the mixed audio recording module calling the process creation sub-function to create an empty command line process and obtaining recording process information between the system audio recording module and the environment audio recording module; the mixed audio recording module identifying the recording start time point in the recording process information; the mixed audio recording module obtaining a first time point and performing a timing operation to obtain a second time; the mixed audio recording module calculating the sum of the first time point and the second time, and comparing whether the time and value reach the recording start time point. If they do, the mixed audio recording module calling the empty command line process to execute the audio source merging recording instruction to obtain mixed audio data for the system audio recording module and the environment audio recording module.

[0082] Specifically, the switching audio recording operation also includes:

[0083] The hybrid audio recording module identifies the time flow information of the recording process information and sets a first real-time priority for the system audio recording module and a second real-time priority for the environmental audio recording module based on the time flow information. When the empty command line process is invoked to execute the audio source merging recording instruction, the hybrid audio recording module compares the first real-time priority and the second real-time priority based on the time flow information. When the first real-time priority is greater than the second real-time priority, the hybrid audio recording module invokes the environmental audio recording module controller to adjust the input volume of the environmental audio recording module to the second reference value. When the first real-time priority is less than the second real-time priority, the hybrid audio recording module invokes the system audio recording module control interface to adjust the input volume of the system audio recording module to the first reference value.

[0084] Specifically, after the mixed audio recording module completes the switching audio recording operation, it also performs the following operations: The mixed audio recording module configures a noise removal program, an environmental noise feature matching table, and a system noise feature matching table; the mixed audio recording module obtains the operating environment information of the environmental audio recording module and the device model of the system audio recording module; the mixed audio recording module calls a filtering algorithm to filter out the first environmental noise feature that matches the operating environment information in the environmental noise feature matching table, and calls the filtering algorithm to filter out the first system noise feature that matches the device model in the system noise feature matching table; the mixed audio recording module calls the noise removal program to remove the first environmental noise data that matches the first environmental noise feature from the mixed audio data, and the mixed audio recording module calls the noise removal program to remove the first system noise data that matches the first system noise feature from the mixed audio data, thereby obtaining high-quality mixed audio.

[0085] Example 3

[0086] This embodiment provides a computer-readable storage medium, including:

[0087] The storage medium is used to store computer software instructions used to implement the command-line based high-quality audio split recording method described in Embodiment 1 above. It includes programs for executing the above-described command-line based high-quality audio split recording method. Specifically, the executable program can be built into the command-line based high-quality audio split recording system described in Embodiment 2. In this way, the command-line based high-quality audio split recording system can implement the command-line based high-quality audio split recording method described in Embodiment 1 by executing the built-in executable program.

[0088] Furthermore, the computer-readable storage medium in this embodiment can be any combination of one or more readable storage media, wherein the readable storage medium includes an electrical, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof.

[0089] Unlike existing technologies, the high-quality audio splitting and recording method, system, and medium based on command line proposed in this application can merge multiple audio sources of financial institution business audio using function commands, and split the recording according to the recording priority during recording, ultimately obtaining high-quality audio data. This system provides effective technical support for this method, ultimately making up for the shortcomings of existing technologies and improving the processing quality and efficiency of voice business in financial institutions.

[0090] The embodiment numbers disclosed in the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0091] Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware, or by a program instructing related hardware to implement the program, which can be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk.

[0092] The above description is merely an embodiment of the present invention and does not limit the patent scope of the present invention. Any equivalent structural or procedural transformations made based on the content of the present invention's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of the present invention.

Claims

1. A high-quality audio splitting recording method based on command line, characterized in that, Includes the following steps: Mixed instruction configuration steps: Obtain audio recording device information, configure command compilers and command line templates, and set filter instruction codes; An audio source merging and recording instruction is generated based on the audio recording device information, the command compiler, the command line template, and the filter instruction code; The filter instruction code is a script code that implements the filter mixing function, used to merge two audio sources into one audio; Mixed audio recording steps: Configure the audio recording device control module, set the volume baseline value, and obtain audio recording requirements; Based on the audio source merging and recording instruction, the audio recording device control module, the volume reference value, and the audio recording requirements, a switching audio recording operation is performed. The switching audio recording operation includes: calling a process creation subfunction to create an empty command line process; obtaining recording process information between the system audio recording module and the environment audio recording module; identifying the recording start time point in the recording process information; obtaining a first time point and performing a timing operation to obtain a second time; calculating the sum of the first time point and the second time; comparing whether the time and value have reached the recording start time point; if so, calling the empty command line process to execute the audio source merging recording instruction to obtain mixed audio data for the system audio recording module and the environment audio recording module.

2. The high-quality audio splitting and recording method based on command line according to claim 1, characterized in that: The audio recording device information includes: system audio recording module information and environmental audio recording module information; The audio recording device control module includes: a system audio recording module control interface and an environmental audio recording module controller; The volume reference value includes: a first reference value and a second reference value; the first reference value is the volume control value for the system audio recording module; the second reference value is the volume control value for the ambient audio recording module. The audio recording requirements include: a first requirement and a second requirement; the first requirement is that there is a recording requirement; the second requirement is that there is no recording requirement.

3. The high-quality audio splitting and recording method based on command line according to claim 2, characterized in that: The step of generating an audio source merging and recording instruction based on the audio recording device information, the command compiler, the command line template, and the filter instruction code further includes: Identify the first audio source parameter in the system audio recording module information; identify the second audio source parameter in the environmental audio recording module information; identify the first parameter area and the second parameter area in the command line template; First, the command compiler is invoked to import the first audio source parameters into the first parameter area. Then, the command compiler is invoked to import the second audio source parameters into the second parameter area, thus obtaining the audio source instruction to be mixed. The audio output requirement is obtained, and an audio source instruction mixing operation is performed based on the command compiler, the filter instruction code, the audio source instruction to be mixed, and the audio output requirement to obtain the audio source merging and recording instruction.

4. The high-quality audio splitting and recording method based on command line according to claim 3, characterized in that: The audio source instruction mixing operation includes: Identify the audio output parameter information of the audio output requirement; set the first audio output format parameter and parameter connector; connect the audio output parameter information with the first audio output format parameter through the parameter connector to obtain the extended instruction; Configure the execution function; set the first connection bit; call the execution function to run the filter instruction code on the audio source instruction to be mixed to obtain the audio source instruction to be configured; call the command compiler to compile the extended instruction to the position in the audio source instruction to be configured that matches the first connection bit to obtain the audio source merging and recording instruction.

5. The high-quality audio splitting and recording method based on command line according to claim 4, characterized in that: The step of performing a switching audio recording operation based on the audio source merging recording instruction, the audio recording device control module, the volume reference value, and the audio recording requirements further includes: When the audio recording requirement is the first requirement, a process creation sub-function is configured; the switching audio recording operation is executed based on the audio recording device control module, the audio source merging recording instruction, the volume reference value, and the process creation sub-function.

6. The high-quality audio splitting recording method based on command line according to claim 5, characterized in that: The switching audio recording operation also includes: Identify the time flow information of the recording process information; based on the time flow information, set the first real-time priority of the system audio recording module and the second real-time priority of the environmental audio recording module; When the empty command line process executes the audio source merging and recording instruction, the first real-time priority and the second real-time priority are compared based on the time flow information. When the first real-time priority is greater than the second real-time priority, the ambient audio recording module controller is invoked to adjust the input volume of the ambient audio recording module to the second reference value. When the first real-time priority is less than the second real-time priority, the system audio recording module control interface is invoked to adjust the input volume of the system audio recording module to the first reference value.

7. A high-quality audio splitting and recording method based on command line according to claim 6, characterized in that: The command-line based high-quality audio splitting and recording method also includes: Configure the noise removal program, the environmental noise feature matching table, and the system noise feature matching table; obtain the operating environment information of the environmental audio recording module; obtain the device model of the system audio recording module; The filtering algorithm is invoked to filter out the first environmental noise feature that matches the operating environment information from the environmental noise feature matching table; the filtering algorithm is invoked to filter out the first system noise feature that matches the equipment model from the system noise feature matching table; The noise removal program is invoked to remove the first ambient noise data that matches the first ambient noise feature from the mixed audio data, and the noise removal program is invoked to remove the first system noise data that matches the first system noise feature from the mixed audio data, thereby obtaining high-quality mixed audio.

8. A command-line based high-quality audio splitting recording system based on the command-line based high-quality audio splitting recording method according to any one of claims 1 to 7, characterized in that, include: Mixed instruction configuration module and mixed audio recording module; The hybrid instruction configuration module is used to obtain audio recording device information and configure command compiler and command line template; the hybrid instruction configuration module is also used to set filter instruction code, and the hybrid instruction configuration module generates audio source merging recording instruction based on the audio recording device information, the command compiler, the command line template and the filter instruction code; The hybrid audio recording module is used to configure the audio recording device control module and set the volume reference value; The hybrid audio recording module is also used to obtain audio recording requirements. The hybrid audio recording module performs switching audio recording operations based on the audio source merging recording instruction, the audio recording device control module, the volume reference value, and the audio recording requirements.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the command-line-based high-quality audio splitting recording method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Ffmpeg-based video editing method and device

    CN106804003A

  • Sound mixing method of live broadcast software

    CN109767777A