CN116737179A - Sound effect management method and device and computer equipment - Google Patents

Sound effect management method and device and computer equipment Download PDF

Info

Publication number
CN116737179A
CN116737179A CN202210198283.XA CN202210198283A CN116737179A CN 116737179 A CN116737179 A CN 116737179A CN 202210198283 A CN202210198283 A CN 202210198283A CN 116737179 A CN116737179 A CN 116737179A
Authority
CN
China
Prior art keywords
sound effect
audio
program
target
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210198283.XA
Other languages
Chinese (zh)
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 3Nod Digital Technology Co Ltd
Original Assignee
Shenzhen 3Nod Digital Technology 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 3Nod Digital Technology Co Ltd filed Critical Shenzhen 3Nod Digital Technology Co Ltd
Priority to CN202210198283.XA priority Critical patent/CN116737179A/en
Publication of CN116737179A publication Critical patent/CN116737179A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • 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/165Management of the audio stream, e.g. setting of volume, audio stream path
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/72Code refactoring

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the application belongs to the field of artificial intelligence, and relates to an audio management method, an audio management device, computer equipment and a storage medium, wherein the method comprises the steps of acquiring an audio program package of a driving layer, acquiring target equipment information in the driving layer of target equipment, adding the target equipment information into the audio program package, enabling the audio program package and the target equipment to have a hardware binding relation, registering the target audio program package in an operating system of the target equipment, enabling the audio program package and the target equipment to have a binding relation, and enabling the audio program to be called by all audio playing applications because the audio program is positioned on the driving layer, so that the compatibility of the audio application is improved.

Description

Sound effect management method and device and computer equipment
Technical Field
The present application relates to the field of audio processing technologies, and in particular, to an audio management method, an audio management device, a computer device, and a storage medium.
Background
The prior art mainly has two implementation modes, namely, an audio effect is applied to an application program end, such as a music player, the audio effect is realized in player software, the audio and video played by the music player are effective, but the audio played by other application programs are not effective or unstable, because the audio equipment of the system is various, and the application programs are difficult to be compatible; the other is to implement the sound effect on the audio device, but the driver of the audio device is relatively complex, and in this way, the user can only use the sound effect attached to the device by using the device, and if the user uses other devices, the user cannot use the sound effect. Therefore, the existing audio effect application has the problem of poor compatibility.
Disclosure of Invention
The embodiment of the application aims to provide an audio management method, an audio management device, computer equipment and a storage medium, so as to solve the problem of poor compatibility of audio application.
In order to solve the above technical problems, the embodiment of the present application provides an audio management method, which adopts the following technical schemes:
acquiring an audio program package of a driving layer;
acquiring the target equipment information in a driving layer of target equipment, and adding the target equipment information into the sound effect program package to obtain a target sound effect program package;
registering the target sound effect program package in an operating system of the target equipment to obtain a sound effect program of the target equipment, so that the sound effect of the target equipment is managed through the sound effect program.
Further, the step of obtaining the sound effect package of the driving layer includes:
acquiring installation information of target equipment, wherein the installation information comprises an installation format;
making the target sound effect into a sound effect program corresponding to the installation format according to the installation information;
and packaging the sound effect program as a driving program to obtain the sound effect program package.
Further, the step of adding the target device information to the sound effect program package to obtain a target sound effect program package includes:
Determining a driver type of the target device;
and according to the type of the driving program, acquiring target equipment information in a driving layer of the target equipment, and adding the target equipment information into the sound effect program packet.
Further, the driver type includes a driver of the operating system and a self-developed driver, and the step of acquiring target device information in a driver layer of the target device according to the driver type and adding the target device information to the sound effect package includes:
when the driver type is a driver carried by the operating system, inquiring a first driver file in a driver installation catalog of the operating system;
acquiring target equipment information from the first driving file, and adding the target equipment information into the sound effect program package;
when the driver type is the self-developed driver, inquiring a second driver file in the self-developed driver;
and acquiring target equipment information from the second driving file, and adding the target equipment information into the sound effect program package.
Further, the step of registering the target sound effect program package in the operating system of the target device to obtain the sound effect program of the target device includes:
registering the target sound effect program package in a system registry and an audio engine of the target equipment to obtain the sound effect program of the target equipment.
Further, the step of managing the sound effect of the target device by the sound effect program includes:
acquiring a downlink audio stream of an audio-video application program, performing audio processing on the downlink audio stream through the audio program, and outputting the processed downlink audio stream to audio sub-equipment;
and acquiring an uplink audio stream acquired by the audio acquisition component, performing audio processing on the uplink audio stream through the audio program, and then transmitting the uplink audio stream to the audio-video application program.
Further, the step of managing the sound effect of the target device by the sound effect program includes:
creating a sound effect program instance according to the sound effect program;
initializing an audio program according to the target equipment information;
when the audio information to be processed exists, locking the sound effect program process, and calling a sound effect application function to perform sound effect processing on the audio information to be processed when the format of the audio information to be processed is matched with the output format supported by the target equipment.
In order to solve the above technical problems, the embodiment of the present application further provides an audio management device, which adopts the following technical scheme:
the acquisition module is used for acquiring the sound effect program package of the driving layer;
the adding module is used for acquiring the target equipment information from a driving layer of target equipment and adding the target equipment information into the sound effect program package to obtain a target sound effect program package;
and the management module is used for registering the target sound effect program package in an operating system of the target equipment to obtain a sound effect program of the target equipment so as to manage the sound effect of the target equipment through the sound effect program.
In order to solve the above technical problems, an embodiment of the present application further provides a computer device, including a memory and a processor, where the memory stores a computer program, and the processor implements the steps of the above-mentioned sound effect management method when executing the computer program.
In order to solve the above technical problem, an embodiment of the present application further provides a computer readable storage medium, where a computer program is stored, where the computer program implements the steps of the above-mentioned sound effect management method when executed by a processor.
Compared with the prior art, the embodiment of the application has the following main beneficial effects: the method comprises the steps of obtaining a sound effect program package of a driving layer, obtaining target equipment information in the driving layer of target equipment, adding the target equipment information into the sound effect program package, enabling the sound effect program package to have a hardware binding relation with the target equipment, registering the target sound effect program package in an operating system of the target equipment, enabling the sound effect program package to have a binding relation with the target equipment, and enabling the sound effect program to be called by all audio playing applications because the sound effect program is located on the driving layer, so that compatibility of the sound effect application is improved.
Drawings
In order to more clearly illustrate the solution of the present application, a brief description will be given below of the drawings required for the description of the embodiments of the present application, it being apparent that the drawings in the following description are some embodiments of the present application, and that other drawings may be obtained from these drawings without the exercise of inventive effort for a person of ordinary skill in the art.
FIG. 1 is an exemplary system architecture diagram in which the present application may be applied;
FIG. 2 is a flow chart of one embodiment of a sound effect management method according to the present application;
FIG. 3 is a flow chart of another embodiment of a sound effect management method according to the present application;
FIG. 4 is a schematic diagram of an embodiment of an audio management apparatus according to the present application;
FIG. 5 is a schematic structural diagram of one embodiment of a computer device in accordance with the present application.
Detailed Description
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs; the terminology used in the description of the applications herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application; the terms "comprising" and "having" and any variations thereof in the description of the application and the claims and the description of the drawings above are intended to cover a non-exclusive inclusion. The terms first, second and the like in the description and in the claims or in the above-described figures, are used for distinguishing between different objects and not necessarily for describing a sequential or chronological order.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
In order to make the person skilled in the art better understand the solution of the present application, the technical solution of the embodiment of the present application will be clearly and completely described below with reference to the accompanying drawings.
As shown in fig. 1, a system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 is used as a medium to provide communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The user may interact with the server 105 via the network 104 using the terminal devices 101, 102, 103 to receive or send messages or the like. Various communication client applications, such as a web browser application, a shopping class application, a search class application, an instant messaging tool, a mailbox client, social platform software, etc., may be installed on the terminal devices 101, 102, 103.
The terminal devices 101, 102, 103 may be various electronic devices with a display screen, supporting web browsing and audio playback, including but not limited to smartphones, tablet computers, electronic book readers, MP3 players (Moving Picture ExpertsGroup Audio Layer III, dynamic video expert compression standard audio plane 3), MP4 (Moving PictureExperts Group Audio Layer IV, dynamic video expert compression standard audio plane 4) players, laptop and desktop computers, and the like.
The server 105 may be a server providing various services, such as a background server providing support for audio played on the terminal devices 101, 102, 103.
It should be noted that, the sound effect management method provided by the embodiment of the present application is generally executed by a server, and accordingly, the sound effect management device is generally disposed in the terminal device.
It should be understood that the number of terminal devices, networks and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
With continued reference to FIG. 2, a flow chart of one embodiment of a sound effect management method according to the present application is shown. The sound effect management method comprises the following steps:
step S201, obtain the sound program package of the driving layer.
In this embodiment, the electronic device (for example, the terminal device shown in fig. 1) on which the sound effect management method operates may communicate with the server through a wired connection manner or a wireless connection manner, so that the terminal device may acquire an audio resource from the server for playing. It should be noted that the wireless connection may include, but is not limited to, 3G/4G/5G connection, wiFi connection, bluetooth connection, wiMAX connection, zigbee connection, UWB (ultra wideband) connection, and other now known or later developed wireless connection.
Specifically, the sound program package of the driving layer can be downloaded from the server, and the sound program package of the driving layer can be obtained through uploading by a user. The target device may also be referred to as a terminal device, and the terminal device may be any hardware device on which an operating system and a driver are mounted.
The sound effect program package of the driving layer can be a program package of packaging the sound effect program into the driving program, so that the sound effect program can be installed and called on the driving layer, the sound effect program is positioned on the driving layer and can be called by all audio playing applications, and the compatibility of the sound effect application is improved.
It should be noted that, the driving layer corresponding to the sound program packet is the driving layer of the target device, and when the sound program is packaged into the driving program, the packaging can be performed according to the driving of the target device, so that the installation success rate and the calling reliability of the sound program packet can be protected.
Step S202, obtaining target device information in a driving layer of target device, and adding the target device information to the sound effect program package to obtain the target sound effect program package.
Specifically, the target device information acquired in the driving layer of the target device is added into the sound effect program packet, so that the sound effect program packet and the target device are bound on the hardware level.
The target device information may include an audio sub-device name, which is a hardware device that may apply sound effects, such as a microphone, a speaker, a headset, etc.
More specifically, the target device information is recorded in a driving INF file, the driving INF file may be acquired in a driving layer of the target device, and a class identifier of the audio sub-device is read from the driving INF, so that a hardware device to which sound effects are applicable is selected.
Step S203, registering the target sound effect program package in the operating system of the target device to obtain the sound effect program of the target device, so as to manage the sound effect of the target device through the sound effect program.
The target sound effect program package refers to a sound effect program package bound with the hardware of the target device, and the target sound effect package acquires the information of the target device from the driving layer to bind the hardware, so that the registration can be completed directly according to the information of the target device in the registration process, and the calling of the sound effect program in the driving layer is realized.
Note that, the sound effect program includes a sound effect program, and the sound effect program includes a sound effect execution program and a UI interface program. And when the target sound effect program package is registered in the operating system of the target device, the installation of the target program package is completed. After the sound program package is installed, a UI interface can be accessed in the sound setting of the system, and the sound setting of the system can be set through a custom attribute setting interface.
In this embodiment, a sound effect program package of a driving layer is obtained, target device information is obtained in the driving layer of the target device, and the target device information is added into the sound effect program package, so that the sound effect program package has a hardware binding relationship with the target device, and then the target sound effect program package is registered in an operating system of the target device, so that the sound effect program package has a binding relationship with the target device, and because the sound effect program is located on the driving layer, the sound effect program package can be called by all audio playing applications, thereby improving the compatibility of the sound effect application.
Further, the step of obtaining the sound effect program package of the driving layer may include: acquiring installation information of target equipment, wherein the installation information comprises an installation format; making the target sound effect into a sound effect program corresponding to the installation format according to the installation information; and packaging the sound effect program as a driving program to obtain a sound effect program package.
Specifically, the sound effect program package can be obtained through production, when the sound effect program package is produced, production can be carried out according to installation information of the target device, the installation information comprises a device ID (identity), a device name and an installation format of the target device, the installation format can be an INF file format, and expansion equipment INF is produced according to the device ID and the device name of the target device, wherein the expansion equipment is an installation carrier of the sound effect program, and the sound effect program is produced into an INF file of the sound effect program through the expansion equipment. And packaging the INF file of the sound effect program as a driver program to obtain a sound effect program package.
It should be noted that the INF file provides the target device with a comprehensive description of the hardware parameters and the corresponding driver files (DLL files). Where the source file is located, which folder to install in, how to add self-related information in the registry, etc. can be described by the INF file. In addition, the drivers required for installing the microphone, the loudspeaker, the earphone, the monitor, the modem, the printer and other devices can be completed through INF files, and in the embodiment of the invention, the operating system can find the drivers of the hardware devices through the INF files and install the drivers correctly. Specifically, under the Windows operating system, the INF file will be automatically invoked when a system component is added by "Start→control panel→Add delete program→Windows installer". In other operating system occasions, the right mouse button needs to be clicked on the INF file, and then installation is selected, so that the sound program can be installed smoothly.
In this embodiment, the target sound effect is manufactured into the sound effect program corresponding to the installation format according to the installation information, and the sound effect program is packaged into the driving program, so that the calling of the sound effect program on the driving layer is facilitated, and the sound effect program can be called by all audio playing applications.
Further, the step of adding the target device information to the sound effect package to obtain the target sound effect package may include: determining a driver type of the target device; according to the type of the driver, target device information is acquired in a driver layer of the target device, and the target device information is added to the sound effect program package.
Specifically, the driver types of the target device may include drivers that are self-contained in the operating system and drivers that are self-developed. The operating system may be a Windows operating system. The self-developed driver may be a driver developed by the user himself or a driver developed by another vendor.
More specifically, in the driver of the Windows operating system, the INF file of the corresponding driver may be directly queried in the driver installation directory. In a self-developed driver, the INF file of the driver can be found first.
In this embodiment, according to different drivers, corresponding drivers are queried according to different search paths, and then target device information is found from the drivers.
Further, the step of obtaining the target device information in the driver layer of the target device according to the driver type, and adding the target device information to the sound effect program package may include: when the type of the driver is the driver of the operating system, inquiring a first driver file in a driver installation catalog of the operating system; acquiring target equipment information from the first driving file, and adding the target equipment information into an audio program package; when the type of the driver is a self-developed driver, inquiring a second driver file in the self-developed driver; target device information is obtained from the second drive file and added to the sound effect package.
It should be noted that, the first driving file and the second driving file are only used for distinguishing the target device information acquisition paths of different driving programs. The hardware information of the target device is described by INF files in the self-contained driver and the self-developed driver of the operating system.
Specifically, when the type of the driver is an automatic driver of the operating system, it is assumed that the operating system may be a Windows operating system, the target device information includes audio sub-device information, the sound effect program package includes a microsoft sound effect attribute library, and the microsoft sound effect attribute library is used for supporting an application of an audio sound effect of the Windows operating system, and adding the microsoft sound effect attribute library when the sound effect program is manufactured. The driver of the operating system is the driver of the Windows operating system, the Windows operating system is provided with a driver installation catalog, the INF file is inquired in the driver installation target, the audio sub-equipment information in the INF file is recorded, and the audio sub-equipment information is added to the Microsoft sound effect attribute library in the sound effect program package.
When the type of the driver is a self-developed driver, the sound effect program package comprises a sound effect attribute library, wherein the sound effect attribute library is used for supporting the application of the audio sound effect of the self-developed driver, and the sound effect attribute library is added when the sound effect program is manufactured. Finding an INF file of a driver in a target device, reading target device information from the INF file of the driver, wherein the target device information comprises audio sub-device information, recording the audio sub-device information, and adding the audio sub-device information into an audio attribute library in an audio program package.
The audio sub-device may be a microphone, a loudspeaker (speaker), a headset, etc. hardware device. The audio sub-device information may be a class identifier of the audio sub-device, the class identifier identifying a hardware device to which the sound effect is applicable.
It should be noted that, the self-developed driver may be a driver that may be installed in an operating system, and in the embodiment of the present invention, the self-developed driver may be a driver that is installed in a Windows operating system, unlike a driver that is self-contained in a Windows operating system, the self-developed driver may replace the driver that is self-contained in the Windows operating system, so that the application of the driver is more flexible.
In this embodiment, by adding the target device information, specifically adding the audio sub-device information, to the audio attribute library in the audio program package, the audio program package and the hardware of the target device may be bound, specifically, the unit program package and the audio sub-device of the target device may be bound, so as to facilitate installation of the audio program and call on the driving level.
Further, registering the target sound effect program package in the operating system of the target device, and obtaining the sound effect program of the target device may include: registering the target sound effect program package in a system registry and an audio engine of the target device to obtain the sound effect program of the target device.
Specifically, the target sound effect program package includes sound effect programs, the sound effect programs are registered in the operating system, namely, COM components are registered in a registry, and the sound effect programs are added in the sound effect engine of the operating system in the registration of the audio engine, so that the sound effect programs become legal sound effect programs of the system, and therefore the sound effect programs can be used by the audio playing application. The operating system registers the COM component, copies the dynamic link library of the sound effect execution program of the sound effect program into the system, and registers the position information of the dynamic link library of the sound effect execution program; registering the sound effect program in the audio engine is to register detailed information of the sound effect program in a registry, such as name, version number, interface, parameters and the like; the sound effect program of the target device is a sound effect program suitable for each audio sub-device, so that sound effect attributes are added to the audio sub-device, and the adding of the sound effect attributes to the audio sub-device means that the sound effect program is installed as a sub-device driver of the audio sub-device, and then the class identifier is added to the sound effect attribute library.
The COM component (COM component) is a new software development technology developed by microsoft corporation for the purpose of software production in the computer industry, which is more in line with the behavior of human beings. Under the COM framework, program developers can develop various components with specific functions, and then combine the components as required to form an application system with higher integration level. The advantages are various, the components in the system can be replaced by new ones so as to upgrade and customize the system at any time; the same component can be reused in a plurality of application systems; the application system can be conveniently expanded to the network environment; the COM and language, platform independent features enable all program developers to fully develop their own intelligence and expertise writing component modules.
In this embodiment, the target sound effect program package is registered in the system registry and the audio engine of the target device to obtain the sound effect program of the target device, and because the target sound effect program package has a binding relationship with the hardware, the sound effect attribute can be added to the audio sub-device, and the sound effect program is installed as the sub-device driver of the audio sub-device, so that the corresponding sound effect can be continuously provided through the sub-device driver under the condition of replacing the audio sub-device.
Further, the step of managing the sound effect of the target device by the sound effect program may include: acquiring a downlink audio stream of an audio-video application program, performing audio processing on the downlink audio stream through an audio effect program, and outputting the downlink audio stream to audio sub-equipment; and acquiring the uplink audio stream acquired by the audio acquisition component, performing audio processing on the uplink audio stream through the audio program, and then transmitting the uplink audio stream to the audio-video application program.
In particular, with continued reference to FIG. 3, a flow chart of another embodiment of a sound effect management method according to the present application is shown. The sound program operates in an audio engine that is part of the operating system and is responsible for loading the sound program and applying it to the audio sub-device. The audio sub-device may be a microphone, a loudspeaker (speaker), a headset, etc. hardware device. In fig. 3, the audio engine receives a downstream audio stream of an audio-video application program, performs audio processing on the downstream audio stream by an audio program, and outputs the processed downstream audio stream to a speaker. The audio engine receives the uplink audio stream collected by the microphone, processes the uplink audio stream through the audio program, and outputs the uplink audio stream to the audio-video application program or the loudspeaker.
It should be noted that the audio/video application program may be audio/video software, such as a music playing APP or a video playing APP or a real-time call APP.
In this embodiment, the sound effect management method may be applied to Windows audio sub-devices that capture and play sound, such as a microphone and a speaker, after the sound effect is enabled, the sound effect is valid for all sound signals passing through the audio sub-devices, and all application programs that use the audio sub-devices may use the sound effect, and may be applied to various types of audio sub-devices, where the application modes are that use application software or the on/off of the sound effect management in the sound effect setting of the system, install the sound effect program on the target device and call as a driver of the audio sub-device, and the user still uses the audio and video application program as usual. The sound effect management method can realize flexible installation of sound effect programs to various audio sub-equipment, is effective to all application software using the audio sub-equipment, and has simple, convenient, flexible and stable implementation mode.
Further, the step of managing the sound effect of the target device through the sound effect program further includes: creating a sound program instance according to the sound program; initializing an audio program according to the target equipment information; when the audio information to be processed exists, locking the process of the sound effect program, and calling a sound effect application function to perform sound effect processing on the audio information to be processed when the format of the audio information to be processed is matched with the output format supported by the target equipment.
Specifically, an audio program instance is created so that the audio program can be loaded and used, the audio program is initialized, the audio engine can transmit audio sub-equipment information and audio control information about the audio to the audio program, and when the audio needs to be processed, the audio program locks data to only allow the current process to be processed. The audio program checks whether the input data format is matched with the data format supported by the output audio sub-equipment, and when the input data format is matched with the data format supported by the output audio sub-equipment, the audio engine calls the audio application function, takes the buffer for transmitting the input data and the output data as a parameter, and performs audio application on the audio data in the buffer for transmitting the input data and the output data. The audio application function may be written when the audio program package is produced, or may be built in the audio engine.
The audio information to be processed can be a downlink audio stream of an audio-video application program or an uplink audio stream acquired by an audio acquisition component.
More specifically, after the target sound effect package is installed, a sound effect program instance is created in the target device, and the sound effect program is initialized. After the sound program is started, the audio engine transmits the audio sub-device information and the sound control information to which the sound is to be applied to the sound program. After the sound effect program receives the audio information to be processed, the locking data only allows the current process to be processed, and the current process is the process of the sound effect program. The audio program checks whether the input data format of the audio to be processed matches the output data format supported by the audio sub-device, the input data referring to the audio information to be processed. The sound effect application function refers to an audio processing function in a sound effect program, and performs sound effect processing on the audio information to be processed. The audio engine may be understood as an audio manager that manages numerous sound effects programs. The input/output buffer area is a memory area for buffering the audio information to be processed, and the audio effect application function can directly process the data in the memory area.
In this embodiment, the sound effect management method of this embodiment can implement flexible installation of sound effect programs to various audio sub-devices, and is effective to all application software used in the audio sub-devices, and the implementation manner is simple, convenient, flexible and stable. When the sound effect processing is carried out, the sound effect program is locked as the current process, so that the sound effect program is more stable when applied to the audio sub-equipment.
Those skilled in the art will appreciate that implementing all or part of the above-described methods in accordance with the embodiments may be accomplished by way of a computer program stored in a computer-readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. The storage medium may be a nonvolatile storage medium such as a magnetic disk, an optical disk, a Read-Only Memory (ROM), or a random access Memory (Random Access Memory, RAM).
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited in order and may be performed in other orders, unless explicitly stated herein. Moreover, at least some of the steps in the flowcharts of the figures may include a plurality of sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, the order of their execution not necessarily being sequential, but may be performed in turn or alternately with other steps or at least a portion of the other steps or stages.
With further reference to fig. 4, as an implementation of the method shown in fig. 2, the present application provides an embodiment of an audio management apparatus, where an embodiment of the apparatus corresponds to the embodiment of the method shown in fig. 2, and the apparatus may be specifically applied to various electronic devices.
As shown in fig. 4, the sound effect management apparatus 400 according to the present embodiment includes: an acquisition module 401, an addition module 402, a management module 403, wherein:
an acquisition module 401, configured to acquire an audio program package of a driving layer;
an adding module 402, configured to obtain the target device information in a driver layer of a target device, and add the target device information to the sound effect package to obtain a target sound effect package;
and the management module 403 is configured to register the target sound effect program package in an operating system of the target device, and obtain a sound effect program of the target device, so as to manage the sound effect of the target device through the sound effect program.
In this embodiment, a sound effect program package of a driving layer is obtained, target device information is obtained in the driving layer of the target device, and the target device information is added into the sound effect program package, so that the sound effect program package has a hardware binding relationship with the target device, and then the target sound effect program package is registered in an operating system of the target device, so that the sound effect program package has a binding relationship with the target device, and because the sound effect program is located on the driving layer, the sound effect program package can be called by all audio playing applications, thereby improving the compatibility of the sound effect application.
In some optional implementations of this embodiment, the obtaining module 401 includes: the method comprises the steps of obtaining a sub-module, manufacturing the sub-module and packaging the sub-module, wherein:
the device comprises an acquisition sub-module, a storage sub-module and a storage sub-module, wherein the acquisition sub-module is used for acquiring installation information of target equipment, and the installation information comprises an installation format;
the manufacturing submodule is used for manufacturing the target sound effect into a sound effect program corresponding to the installation format according to the installation information;
and the packaging sub-module is used for packaging the sound effect program into a driving program to obtain the sound effect program package.
In this embodiment, the target sound effect is manufactured into the sound effect program corresponding to the installation format according to the installation information, and the sound effect program is packaged into the driving program, so that the calling of the sound effect program can be conveniently performed on the driving layer, and the calling of all the audio playing applications can be performed.
In some optional implementations of the present embodiment, the adding module 402 includes: determining a sub-module and adding the sub-module, wherein:
a determining submodule, configured to determine a driver type of the target device;
and the adding sub-module is used for acquiring target equipment information from a driving layer of the target equipment according to the type of the driving program and adding the target equipment information to the sound effect program package.
In this embodiment, according to different drivers, corresponding drivers are queried according to different search paths, and then target device information is found from the drivers.
In some optional implementations of this embodiment, the driver types include a driver that is self-contained in an operating system and a self-developed driver, and the adding the submodule includes: the system comprises a first query unit, a first adding unit, a second query unit and a second adding unit, wherein:
the first query unit is used for querying a first drive file in a drive installation catalog of the operating system when the type of the drive program is a drive program carried by the operating system;
the first adding unit is used for acquiring target equipment information from the first driving file and adding the target equipment information into the sound effect program package;
the second query unit is used for querying a second driving file in the self-developed driving program when the driving program type is the self-developed driving program;
and the second adding unit is used for acquiring target equipment information from the second driving file and adding the target equipment information into the sound effect program package.
In this embodiment, by adding the target device information, specifically adding the audio sub-device information, to the audio attribute library in the audio program package, the audio program package and the hardware of the target device may be bound, specifically, the unit program package and the audio sub-device of the target device may be bound, so as to facilitate installation of the audio program and call on the driving level.
In some optional implementations of the present embodiment, the management module 403 includes: a booklet injection module, wherein:
and the booklet filling module is used for registering the target sound effect program package in a system registry and an audio engine of the target equipment to obtain the sound effect program of the target equipment.
In this embodiment, the target sound effect program package is registered in the system registry and the audio engine of the target device to obtain the sound effect program of the target device, and because the target sound effect program package has a binding relationship with the hardware, the sound effect attribute can be added to the audio sub-device, and the sound effect program is installed as the sub-device driver of the audio sub-device, so that the corresponding sound effect can be continuously provided through the sub-device driver under the condition of replacing the audio sub-device.
In some optional implementations of the present embodiment, the management module 403 further includes: the system comprises a first processing sub-module and a second processing sub-module, wherein:
The first processing sub-module is used for acquiring a downlink audio stream of the audio-video application program, and outputting the downlink audio stream to the audio sub-equipment after performing audio processing on the downlink audio stream by the audio-effect program;
and the second processing sub-module is used for acquiring the uplink audio stream acquired by the audio acquisition component, performing audio processing on the uplink audio stream through the audio program and then transmitting the uplink audio stream to the audio and video application program.
In this embodiment, the sound effect management method may be applied to Wi-windows audio sub-devices that capture and play sound, such as a microphone and a speaker, after the sound effect is enabled, the sound effect is validated for all sound signals passing through the audio sub-devices, and all application programs that use the audio sub-devices may use the sound effect, and may be applied to various types of audio sub-devices, where the application modes are that the application software or the on and off of the sound effect are managed in the sound effect setting of the system, the sound effect program is installed on the target device and invoked as a driver of the audio sub-device, and the user still uses the audio and video application program as usual. The sound effect management method can realize flexible installation of sound effect programs to various audio sub-equipment, is effective to all application software using the audio sub-equipment, and has simple, convenient, flexible and stable implementation mode.
In some optional implementations of the present embodiment, the management module 403 further includes: creating a sub-module, a third processing sub-module, and a fourth processing sub-module, wherein:
the creation sub-module is used for creating a sound effect program instance according to the sound effect program;
the third processing sub-module is used for initializing an audio program according to the target equipment information;
and the fourth processing submodule is used for locking the sound effect program process when the audio information to be processed exists, and calling a sound effect application function to perform sound effect processing on the audio information to be processed when the format of the audio information to be processed is matched with the output format supported by the target equipment.
The sound effect management method can realize flexible installation of sound effect programs to various audio sub-equipment, is effective to all application software using the audio sub-equipment, and has simple, convenient, flexible and stable implementation mode. When the sound effect processing is carried out, the sound effect program is locked as the current process, so that the sound effect program is more stable when applied to the audio sub-equipment
In order to solve the technical problems, the embodiment of the application also provides computer equipment. Referring specifically to fig. 5, fig. 5 is a basic structural block diagram of a computer device according to the present embodiment.
The computer device 5 comprises a memory 51, a processor 52, a network interface 53 which are communicatively connected to each other via a system bus. It should be noted that only the computer device 5 with components 51-53 is shown in the figures, but it should be understood that not all of the illustrated components are required to be implemented and that more or fewer components may be implemented instead. It will be appreciated by those skilled in the art that the computer device herein is a device capable of automatically performing numerical calculations and/or information processing in accordance with predetermined or stored instructions, the hardware of which includes, but is not limited to, microprocessors, application specific integrated circuits (Application Specific Integrated Circuit, ASICs), programmable gate arrays (fields-Programmable Gate Array, FPGAs), digital processors (Digital Signal Processor, DSPs), embedded devices, etc.
The computer equipment can be a desktop computer, a notebook computer, a palm computer, a cloud server and other computing equipment. The computer equipment can perform man-machine interaction with a user through a keyboard, a mouse, a remote controller, a touch pad or voice control equipment and the like.
The memory 51 includes at least one type of readable storage medium including flash memory, hard disk, multimedia card, card memory (e.g., SD or DX memory, etc.), random Access Memory (RAM), static Random Access Memory (SRAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), programmable Read Only Memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the storage 51 may be an internal storage unit of the computer device 5, such as a hard disk or a memory of the computer device 5. In other embodiments, the memory 51 may also be an external storage device of the computer device 5, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash Card (Flash Card) or the like, which are provided on the computer device 5. Of course, the memory 51 may also comprise both an internal memory unit of the computer device 5 and an external memory device. In this embodiment, the memory 51 is typically used for storing an operating system and various application software installed on the computer device 5, such as computer readable instructions of an audio management method. Further, the memory 51 may be used to temporarily store various types of data that have been output or are to be output.
The processor 52 may be a central processing unit (Central Processing Unit, CPU), controller, microcontroller, microprocessor, or other data processing chip in some embodiments. The processor 52 is typically used to control the overall operation of the computer device 5. In this embodiment, the processor 52 is configured to execute computer readable instructions stored in the memory 51 or process data, such as computer readable instructions for executing the sound effect management method.
The network interface 53 may comprise a wireless network interface or a wired network interface, which network interface 53 is typically used to establish communication connections between the computer device 5 and other electronic devices.
The computer device provided in this embodiment may perform the steps of the above-described sound effect management method. The steps of the sound effect management method herein may be the steps of the sound effect management method of each of the above embodiments.
In this embodiment, a sound effect program package of a driving layer is obtained, target device information is obtained in the driving layer of the target device, and the target device information is added into the sound effect program package, so that the sound effect program package has a hardware binding relationship with the target device, and then the target sound effect program package is registered in an operating system of the target device, so that the sound effect program package has a binding relationship with the target device, and because the sound effect program is located on the driving layer, the sound effect program package can be called by all audio playing applications, thereby improving the compatibility of the sound effect application.
The present application also provides another embodiment, namely, a computer-readable storage medium storing computer-readable instructions executable by at least one processor to cause the at least one processor to perform the steps of the sound effect management method as described above.
In this embodiment, a sound effect program package of a driving layer is obtained, target device information is obtained in the driving layer of the target device, and the target device information is added into the sound effect program package, so that the sound effect program package has a hardware binding relationship with the target device, and then the target sound effect program package is registered in an operating system of the target device, so that the sound effect program package has a binding relationship with the target device, and because the sound effect program is located on the driving layer, the sound effect program package can be called by all audio playing applications, thereby improving the compatibility of the sound effect application.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present application.
It is apparent that the above-described embodiments are only some embodiments of the present application, but not all embodiments, and the preferred embodiments of the present application are shown in the drawings, which do not limit the scope of the patent claims. This application may be embodied in many different forms, but rather, embodiments are provided in order to provide a thorough and complete understanding of the present disclosure. Although the application has been described in detail with reference to the foregoing embodiments, it will be apparent to those skilled in the art that modifications may be made to the embodiments described in the foregoing description, or equivalents may be substituted for elements thereof. All equivalent structures made by the content of the specification and the drawings of the application are directly or indirectly applied to other related technical fields, and are also within the scope of the application.

Claims (10)

1. A sound effect management method, comprising the steps of:
acquiring an audio program package of a driving layer;
acquiring the target equipment information in a driving layer of target equipment, and adding the target equipment information into the sound effect program package to obtain a target sound effect program package;
Registering the target sound effect program package in an operating system of the target equipment to obtain a sound effect program of the target equipment, so that the sound effect of the target equipment is managed through the sound effect program.
2. The sound management method of claim 1, wherein the step of obtaining the sound package of the driver layer comprises:
acquiring installation information of target equipment, wherein the installation information comprises an installation format;
making the target sound effect into a sound effect program corresponding to the installation format according to the installation information;
and packaging the sound effect program as a driving program to obtain the sound effect program package.
3. The sound effect management method of claim 1, wherein the step of adding the target device information to the sound effect package to obtain a target sound effect package comprises:
determining a driver type of the target device;
and according to the type of the driving program, acquiring target equipment information in a driving layer of the target equipment, and adding the target equipment information into the sound effect program packet.
4. The sound effect management method of claim 3, wherein the driver type includes a driver self-contained in an operating system and a self-developed driver, and the step of acquiring target device information in a driver layer of the target device according to the driver type and adding the target device information to the sound effect package includes:
When the driver type is a driver carried by the operating system, inquiring a first driver file in a driver installation catalog of the operating system;
acquiring target equipment information from the first driving file, and adding the target equipment information into the sound effect program package;
when the driver type is the self-developed driver, inquiring a second driver file in the self-developed driver;
and acquiring target equipment information from the second driving file, and adding the target equipment information into the sound effect program package.
5. The sound effect management method of claim 4, wherein the step of registering the target sound effect package in an operating system of the target device to obtain the sound effect program of the target device includes:
registering the target sound effect program package in a system registry and an audio engine of the target equipment to obtain the sound effect program of the target equipment.
6. The sound effect management method according to any one of claims 1 to 5, characterized in that the step of managing the sound effect of the target device by the sound effect program includes:
Acquiring a downlink audio stream of an audio-video application program, performing audio processing on the downlink audio stream through the audio program, and outputting the processed downlink audio stream to audio sub-equipment;
and acquiring an uplink audio stream acquired by the audio acquisition component, performing audio processing on the uplink audio stream through the audio program, and then transmitting the uplink audio stream to the audio-video application program.
7. The sound effect management method according to any one of claims 1 to 5, characterized in that the step of managing the sound effect of the target device by the sound effect program includes:
creating a sound effect program instance according to the sound effect program;
initializing an audio program according to the target equipment information;
when the audio information to be processed exists, locking the process of the sound effect program, and calling a sound effect application function to perform sound effect processing on the audio information to be processed when the format of the audio information to be processed is matched with the output format supported by the target equipment.
8. An audio management apparatus, comprising:
the acquisition module is used for acquiring the sound effect program package of the driving layer;
the adding module is used for acquiring the target equipment information from a driving layer of target equipment and adding the target equipment information into the sound effect program package to obtain a target sound effect program package;
And the management module is used for registering the target sound effect program package in an operating system of the target equipment to obtain a sound effect program of the target equipment so as to manage the sound effect of the target equipment through the sound effect program.
9. A computer device comprising a memory having stored therein computer readable instructions which when executed by a processor implement the steps of the sound effect management method of any of claims 1 to 7.
10. A computer readable storage medium having stored thereon computer readable instructions which when executed by a processor implement the steps of the sound effect management method of any of claims 1 to 7.
CN202210198283.XA 2022-03-02 2022-03-02 Sound effect management method and device and computer equipment Pending CN116737179A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210198283.XA CN116737179A (en) 2022-03-02 2022-03-02 Sound effect management method and device and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210198283.XA CN116737179A (en) 2022-03-02 2022-03-02 Sound effect management method and device and computer equipment

Publications (1)

Publication Number Publication Date
CN116737179A true CN116737179A (en) 2023-09-12

Family

ID=87901671

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210198283.XA Pending CN116737179A (en) 2022-03-02 2022-03-02 Sound effect management method and device and computer equipment

Country Status (1)

Country Link
CN (1) CN116737179A (en)

Similar Documents

Publication Publication Date Title
US8601470B2 (en) Symbiotic smart peripherals
US20210216700A1 (en) Information Processing Method and System
US8200962B1 (en) Web browser extensions
RU2689203C2 (en) Flexible circuit for adjusting language model
WO2019157860A1 (en) Method and device for launching application interface, storage medium, and electronic apparatus
CN109992248A (en) Implementation method, device, equipment and the computer readable storage medium of voice application
WO2020052337A1 (en) Information processing method and apparatus, storage medium, and electronic device
US20090083765A1 (en) Accessing device-hosted services from scripting and other programming environments
CN111930973B (en) Multimedia data playing method and device, electronic equipment and storage medium
WO2009100156A1 (en) Automatic connections between application components
CN108829467B (en) Third-party platform docking implementation method, device, equipment and storage medium
WO2020143555A1 (en) Method and device used for displaying information
US8201188B2 (en) Device-hosted services over media transfer protocol
JP4943650B2 (en) System for multimedia rendering on portable devices
CN106503069A (en) File sharing method and device
KR20140142116A (en) Electronic device and method for providing text transformaation service
US20110173524A1 (en) Digital Media Bookmarking Comprising Source Identifier
CN114625439A (en) Sub-application operation method based on micro front-end architecture, electronic device and storage medium
CN114048415A (en) Form generation method and device, electronic equipment and computer readable storage medium
WO2018059037A1 (en) File uploading method and apparatus for mobile terminal
CN111443903A (en) Software development file acquisition method and device, electronic equipment and storage medium
CN116737179A (en) Sound effect management method and device and computer equipment
KR20190098516A (en) Method for managing data related to application and electronic device thereof
CN110399040B (en) Multi-mode interaction method, user terminal equipment, server and system
KR102225414B1 (en) System and apparatus for managing contents based on cloud computing

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