CN117597902A - Audio processing system, method, electronic device and storage medium - Google Patents

Audio processing system, method, electronic device and storage medium Download PDF

Info

Publication number
CN117597902A
CN117597902A CN202280004310.3A CN202280004310A CN117597902A CN 117597902 A CN117597902 A CN 117597902A CN 202280004310 A CN202280004310 A CN 202280004310A CN 117597902 A CN117597902 A CN 117597902A
Authority
CN
China
Prior art keywords
hardware abstraction
abstraction layer
candidate
layer
audio
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
CN202280004310.3A
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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Publication of CN117597902A publication Critical patent/CN117597902A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)

Abstract

The disclosure relates to an audio processing system and method, electronic equipment and a storage medium, and belongs to the technical field of audio processing. Wherein, this system includes: the system comprises an audio interface, an expansion layer and a candidate hardware abstraction layer, wherein the expansion layer is connected with the audio interface, the candidate hardware abstraction layer processes an audio adjusting instruction through the expansion layer, the audio interface is used for receiving an audio control instruction, the audio control instruction is used for adjusting audio resources, the expansion layer is used for adapting the hardware abstraction layer in the candidate hardware abstraction layer according to the audio control instruction, a target hardware abstraction layer is obtained from the candidate hardware abstraction layer, and the target hardware abstraction layer is used for carrying out audio resources. The adaptation degree of the hardware abstraction layer is improved through the expansion layer, so that the audio processing system can be compatible with various hardware abstraction layers, the audio processing system can carry out polymorphic expansion on the hardware abstraction layer, and the reusability of audio processing is enhanced.

Description

Audio processing system, method, electronic device and storage medium Technical Field
The disclosure relates to the technical field of audio processing, and in particular relates to an audio processing system, an audio processing method, electronic equipment and a storage medium.
Background
Currently, in the process of audio processing, the manner of audio processing can be multiplexed and expanded. However, since the providing capability of the hardware and the algorithm corresponding to each hardware are different, the supported audio paths are also different, so that the expansibility of the audio processing is poor and the processing efficiency is general.
Disclosure of Invention
The present disclosure provides an audio processing system, method, electronic device and storage medium, so as to at least solve the technical problems in the related art that the expandability of audio processing is poor and the processing efficiency is general because the providing capability of hardware and the algorithm corresponding to each hardware are different and the supported audio paths are also different.
The technical scheme of the present disclosure is as follows:
according to a first aspect of embodiments of the present disclosure, there is provided an audio processing system comprising: the system comprises an audio interface, an expansion layer and a candidate hardware abstraction layer, wherein the expansion layer is connected with the audio interface, and the candidate hardware abstraction layer is respectively connected with the expansion layer and the audio interface; the audio interface is used for receiving an audio control instruction of an audio resource to be regulated; the expansion layer is used for carrying out hardware abstraction layer adaptation in the candidate hardware abstraction layers according to the audio control instruction, and acquiring a target hardware abstraction layer from the candidate hardware abstraction layers; the target hardware abstraction layer is used for adjusting the audio resource.
In one embodiment of the present disclosure, the extension layer is further configured to: according to the audio control instruction, acquiring target type information of the electronic equipment where the audio processing system is located; and performing hardware abstraction layer adaptation from the hardware abstraction layer library based on the target type information so as to acquire the target hardware abstraction layer.
In one embodiment of the present disclosure, the extension layer is further configured to: determining the chip type of the electronic equipment as the target type information; or determining the type of the operating system of the electronic equipment as the target type information.
In one embodiment of the disclosure, the candidate hardware abstraction layer includes a first candidate hardware abstraction layer, wherein the extension layer is further configured to: and if the type information is determined to be one of the candidate type information, screening the required target hardware abstraction layer from the first candidate hardware abstraction layer according to the type information and the instruction content of the audio control instruction.
In one embodiment of the disclosure, the candidate hardware abstraction layer further includes a second candidate hardware abstraction layer, wherein the extension layer is further configured to: determining one of the type information and non-candidate type information, and screening the required target hardware abstraction layer from a second candidate hardware abstraction layer according to the type information and the instruction content of the audio control instruction; wherein the second candidate abstraction layer is encapsulated in the extension layer.
In one embodiment of the present disclosure, the extension layer is further configured to: acquiring type information corresponding to the first candidate hardware abstraction layer, and classifying the hardware layer based on the corresponding type information; and establishing a mapping relation between the first candidate hardware abstraction layer and the type information.
In one embodiment of the present disclosure, the extension layer is further configured to: acquiring first hardware subjected to type adaptation; acquiring a first processing logic of the first hardware, and abstracting and mapping the first processing logic to obtain a hardware abstraction layer corresponding to the first hardware; and classifying the hardware abstraction layer corresponding to the first hardware into the first candidate hardware abstraction layer of the same type according to the type information after the first hardware is adapted.
In one embodiment of the present disclosure, the extension layer is further configured to: acquiring second hardware which is not subjected to type adaptation; acquiring second processing logic of the second hardware; and abstracting and mapping the second processing logic to obtain the second candidate hardware abstraction layer corresponding to the second hardware, and packaging the second candidate hardware abstraction layer in the expansion layer.
In one embodiment of the present disclosure, the extension layer is further configured to: determining the logic dependence of the target hardware abstraction layer, and determining the calling time sequence of the target abstraction layer based on the logic dependence; and calling the target hardware abstraction layer according to the calling time sequence so as to regulate the target audio resource.
According to a second aspect of embodiments of the present disclosure, there is provided an audio processing method, performed by an audio processing system, comprising: receiving an audio control instruction, wherein the audio control instruction is used for adjusting an audio resource; according to the audio control instruction, performing hardware abstraction layer adaptation in the candidate hardware abstraction layers to acquire a target hardware abstraction layer; and calling the target hardware abstraction to adjust the audio resource.
In one embodiment of the present disclosure, the adapting the hardware abstraction layer according to the audio control instruction and in the candidate hardware abstraction layer to obtain the target hardware abstraction layer includes: identifying target type information of the electronic equipment where the audio processing system is located according to the audio control instruction; and performing hardware abstraction layer adaptation from the candidate hardware abstraction layers based on the target type information so as to acquire the target hardware abstraction layers.
In one embodiment of the disclosure, the candidate hardware abstraction layer includes a first candidate hardware abstraction layer, wherein the performing abstraction layer adaptation from the hardware abstraction layer library based on the type information to obtain the target hardware abstraction layer includes: and if the type information is determined to be one of the candidate type information, screening the required target hardware abstraction layer from the first candidate hardware abstraction layer according to the type information and the instruction content of the audio control instruction.
In one embodiment of the disclosure, the candidate hardware abstraction layer further includes a second candidate hardware abstraction layer, wherein the adapting the abstraction layer from the hardware abstraction layer library based on the type information to obtain the target hardware abstraction layer further includes: and if the type information is not one of the candidate type information, screening the required target hardware abstraction layer from the second candidate hardware abstraction layer according to the type information and the instruction content of the audio control instruction.
In one embodiment of the disclosure, the invoking the target hardware abstraction to play or adjust the audio resource includes: determining the logic dependence of the target hardware abstraction layer, and determining the calling time sequence of the target abstraction layer based on the logic dependence; and calling the target hardware abstraction layer according to the calling time sequence so as to regulate the target audio resource.
According to a third aspect of embodiments of the present disclosure, there is provided an electronic device, comprising: a processor; a memory for storing executable instructions of the processor; wherein the processor is configured to execute the instructions to implement the method according to the second aspect of the embodiments of the present disclosure.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer readable storage medium, which when executed by a processor of an electronic device, causes the electronic device to perform the method according to the second aspect of embodiments of the present disclosure.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects: the adaptation of the hardware abstraction layer is carried out in the candidate hardware abstraction layer through the expansion layer according to the audio control instruction received by the audio interface so as to obtain a target hardware abstraction layer, and audio resources are regulated through the target hardware abstraction layer. Further, the adaptation capability of the extension layer provides a foundation for the application of various hardware abstraction layers on different platforms or devices, so that the reusability of audio processing can be enhanced.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure and do not constitute an undue limitation on the disclosure.
FIG. 1 is a block diagram of an audio processing system, shown according to an exemplary embodiment;
FIG. 2 is a block diagram of an audio processing system, shown according to an exemplary embodiment;
FIG. 3 is a flow chart illustrating a method of audio processing according to an exemplary embodiment;
FIG. 4 is a flowchart illustrating another audio processing method according to an exemplary embodiment;
fig. 5 is a block diagram of an electronic device, according to an example embodiment.
Detailed Description
In order to enable those skilled in the art to better understand the technical solutions of the present disclosure, the technical solutions of the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the foregoing figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the disclosure described herein may be capable of operation in sequences other than those illustrated or described herein. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
Fig. 1 is a block diagram of an audio processing system, shown in fig. 1, according to an exemplary embodiment, an audio processing system 100 of an embodiment of the present disclosure may include: an audio interface 101, an extension layer 102, and a candidate hardware abstraction layer 103. The audio interface 101 is connected with the extension layer 102, the extension layer 102 is connected with the candidate hardware abstraction layer 103, and the audio interface 101 is connected with the candidate hardware abstraction layer 103. It should be noted that, the audio processing system of the present disclosure may be used in a general multi-configuration operating system platform, such as a mobile phone, a car set, an IOT (Internet of Things ), a PC (Personal Computer, personal computer), etc., which is not limited in this disclosure and may be set according to practical situations.
The audio interface 101 is configured to receive an audio control instruction of an audio resource to be adjusted, where the audio control instruction is configured to adjust the audio resource, and the audio interface 101 sends the audio control instruction to the expansion layer 102. Optionally, the audio interface 101 is a generic interface provided by the hardware abstraction layer to provide functions such as ensuring that audio resources are located in a catalog of audio processing for processing. Note that, the present invention is not limited to the above-described embodiments. It should be noted that the audio control instruction may specifically include, but is not limited to: play, pause, stop, fast forward, reverse, volume adjustment, etc. Optionally, the audio control instruction may also be a selection instruction for determining an audio resource playing accessory, such as selecting a playing accessory including a headset, an earphone, a USB, and a sound card. It will be appreciated by those skilled in the art that the file format of the audio resource may be MP3, WAV, AAC, FLAC, WMA, etc.
And the expansion layer 102 is used for performing hardware abstraction layer adaptation in the candidate hardware abstraction layer 103 according to the audio control instruction, and acquiring a target hardware abstraction layer from the candidate hardware abstraction layer 103. After acquiring the audio control instruction received by the audio interface 101, the expansion layer 102 adapts the hardware abstraction layer in the candidate hardware abstraction layer 103 according to different audio control instructions. It should be noted that, the candidate hardware abstraction layer is a preset set containing different hardware abstraction layers, and the candidate hardware abstraction layer at least includes one hardware abstraction layer.
Wherein the candidate hardware abstraction layer 103 processes the audio control instruction through the extension layer 102. A target hardware abstraction layer 103 for tuning the audio resources.
And the target hardware abstraction layer is used for adjusting the audio frequency resources. The expansion layer 102 may obtain a corresponding target hardware abstraction layer after performing hardware abstraction layer adaptation in the candidate hardware abstraction layer 103.
The audio processing system provided by the embodiment of the present disclosure receives an audio control instruction of an audio resource to be adjusted through the audio interface 101, and performs hardware abstraction layer adaptation in the candidate hardware abstraction layer 103 according to the audio control instruction through the extension layer 102 to obtain a target hardware abstraction layer from the candidate hardware abstraction layer 103, and finally adjusts the audio resource through the target hardware abstraction layer. According to the audio processing system disclosed by the embodiment of the disclosure, the adaptation degree of the hardware abstraction layer is improved through the expansion layer, so that the audio processing system can be compatible with various hardware abstraction layers, and therefore the audio processing capability can be improved, that is, the expansion layer enables the audio processing system to perform polymorphic expansion on the hardware abstraction layers. Further, the adaptation capability of the extension layer provides a foundation for the application of various hardware abstraction layers on different platforms or devices, so that the reusability of audio processing can be enhanced.
Further, as shown in fig. 2, in an embodiment of the present disclosure, the description of the audio processing system 100 continues.
The extension layer 102 is further configured to obtain target type information of an electronic device in which the audio processing system 100 is located according to the audio control instruction, and perform hardware abstraction layer adaptation from a hardware abstraction layer library based on the target type information, so as to obtain a target hardware abstraction layer 103. It should be noted that, the hardware abstraction layer library is a preset library containing different hardware abstraction layers, and the type information of the electronic device may be a chip type, an operating system type, and the like, where the chip types may be A, B and C (where A, B, C may be represented by different chip vendors or different chip platforms of the same chip vendor), and the operating system type may be Windows (a computer operating system), android, iOS (internetworking Operating System-Cisco, cisco network configuration system), and the like.
The extension layer 102 is further configured to determine a chip type of the electronic device as target type information, or determine an operating system type of the electronic device as target type information, that is, determine a chip type or an operating system type of the electronic device as target type information.
The candidate hardware abstraction layer 103 includes a first candidate hardware abstraction layer 1031, where the extension layer 102 is further configured to determine that the type information is one of the candidate type information, and screen a required target hardware abstraction layer from the first candidate hardware abstraction layer 1031 according to the instruction content of the type information and the audio control instruction. It should be noted that, the candidate type information is the type of the electronic device with the pre-adapted hardware abstraction layer, and the first candidate hardware abstraction layer is the set of the hardware abstraction layers with the adapted candidate type information, for example, if the corresponding hardware abstraction layer is adapted for the chip a, the candidate type information includes the chip type a, and when the target type information of the electronic device is a, the hardware abstraction layer corresponding to the chip a is screened out from the first candidate hardware abstraction layer according to the audio control instruction.
In addition, the candidate hardware abstraction layer 103 further includes a second candidate hardware abstraction layer 1032, where the extension layer 102 is further configured to determine one of the type information and the non-candidate type information, and then screen the second candidate hardware abstraction layer 1032 for a required target hardware abstraction layer according to the instruction content of the type information and the audio control instruction. It should be noted that, the second candidate hardware abstraction layer is encapsulated in the extension layer, that is, the set of hardware abstraction layers where the candidate type information in the first candidate hardware abstraction layer is not adapted, for example, if the corresponding hardware abstraction layer is not adapted to the B chip, the candidate type information does not include the B chip type, and when the target type information of the response electronic device is B, the hardware abstraction layer corresponding to the B is selected from the second candidate hardware abstraction layer according to the audio control instruction.
Wherein, the extension layer 102 is further configured to: and acquiring type information corresponding to the first candidate hardware abstraction layer 1031, classifying the hardware layers based on the corresponding type information, and establishing a mapping relation between the first candidate hardware abstraction layer 1031 and the type information. For example, the type information corresponding to the first candidate hardware abstraction layer includes A, B, C, windows, android, iOS, and the like, chip types such as A, B and C may be classified as chip types, operating system types such as Windows, android, iOS, and the like may be classified as operating system types, a mapping relationship is established between a hardware abstraction layer adapted under the chip type and the chip type, a mapping relationship is established between a hardware abstraction layer adapted under the operating system type and the operating system type, for example, audio adjustment may be performed for opening an "aptX" bluetooth encoding protocol for a hardware abstraction layer with a chip type a, and audio adjustment may be performed for opening an "LDAC" bluetooth encoding protocol for a hardware abstraction layer with an operating system type android, so as to implement mapping relationships between a chip a and an "aptX" bluetooth encoding protocol, and between an android and an "LDAC" bluetooth encoding protocol.
It should be further noted that the extension layer 102 is further configured to: acquiring first hardware subjected to type adaptation, acquiring first processing logic of the first hardware, abstracting and mapping the first processing logic to obtain a hardware abstraction layer corresponding to the first hardware, and classifying the hardware abstraction layer corresponding to the first hardware into a first candidate hardware abstraction layer 1031 of the same type according to type information after the first hardware is subjected to the type adaptation, wherein the first processing logic is processing logic of audio processing corresponding to the hardware subjected to the type adaptation. For example, when the type adaptation is performed on the android, a specific mode of audio processing under the situation that the processing logic of the android, i.e. the operating system, is obtained, the processing logic of the android is abstracted and mapped, a hardware abstraction layer corresponding to the android is obtained, and the hardware abstraction layer corresponding to the android is classified into a first candidate abstraction layer which is the same as the android type according to the type information after An Zhuoshi matching.
Furthermore, the extension layer 102 is further configured to: and obtaining second hardware which is not subjected to type adaptation, obtaining second processing logic of the second hardware, mapping the second processing logic to generate a corresponding second candidate hardware abstraction layer 1032, and packaging the second candidate hardware abstraction layer in the extension layer 102, wherein the second processing logic is the processing logic of audio processing corresponding to the hardware which is not subjected to type adaptation. As described above, for the hardware that is not subjected to type adaptation, for example, when the type adaptation is not performed on the android, a specific manner of audio processing in a scenario in which the processing logic of the android, that is, the operating system is the android, is obtained, and the processing logic of the android is abstracted and mapped to obtain a second candidate hardware abstraction layer corresponding to the android.
It should be further noted that, the extension layer 102 is further configured to determine a logic dependency of the target hardware abstraction layer, determine a call timing sequence of the target hardware abstraction layer based on the logic dependency, and call the target hardware abstraction layer according to the call timing sequence to adjust the target audio resource, where the logic dependency is a sequence of processing logic of audio processing, and the call timing sequence is a sequence of time when the target abstraction layer is called.
Therefore, the hardware abstraction layer adaptation is carried out from the hardware abstraction layer library based on the target type information, so that the same hardware abstraction layer can be used by the audio processing hardware of the same type, the reusability of audio processing is improved, meanwhile, the target hardware abstraction layer is called according to the calling time sequence of the target abstraction layer to regulate the target audio resource, errors generated by calling the abstraction layer are reduced, the stability of audio processing is improved, and the efficiency of audio processing is further improved.
Moreover, the extension layer not only can be compatible with the existing first hardware abstraction layer, but also can carry out abstract packaging on unadapted hardware in the extension layer, so that the audio processing system can be compatible with various hardware abstraction layers, and the audio processing capability can be improved, that is, the extension layer enables the audio processing system to carry out polymorphic extension on the hardware abstraction layer.
Fig. 3 is a flowchart illustrating an audio processing method according to an exemplary embodiment, and as shown in fig. 3, the audio processing method according to an embodiment of the present disclosure may be performed by the audio processing system in the above-described embodiment, and may specifically include the following steps S301 to S303.
S301, receiving an audio control instruction of an audio resource to be adjusted.
In the embodiment of the disclosure, the audio control instruction is used for adjusting the audio resource of the audio resource to be adjusted, and the audio control instruction can be received for subsequent processing.
S302, according to the audio control instruction, performing hardware abstraction layer adaptation in the candidate hardware abstraction layers to obtain a target hardware abstraction layer.
In the embodiment of the present disclosure, according to the audio control instruction of the audio resource to be adjusted received in step S301, the adaptation of the hardware abstraction layer is performed in the candidate hardware abstraction layer, so as to obtain the target hardware abstraction layer.
S303, calling a target hardware abstraction to adjust the audio resource.
In the embodiment of the present disclosure, the target hardware abstraction layer acquired in step S302 is called to adjust the audio resource.
The specific manner in which the operations are performed by the various steps in the embodiments described above have been described in detail in connection with embodiments of the system and will not be described in detail herein.
According to the audio processing method provided by the embodiment of the disclosure, an audio control instruction of an audio resource to be adjusted is received, and according to the audio control instruction, the hardware abstraction layer is adapted in the candidate hardware abstraction layer so as to obtain a target hardware abstraction layer, and the target hardware abstraction layer is called to adjust the audio resource. According to the audio processing system disclosed by the embodiment of the disclosure, the adaptation degree of the hardware abstraction layer is improved through the expansion layer, so that the audio processing system can be compatible with various hardware abstraction layers, and therefore the audio processing capability can be improved, that is, the expansion layer enables the audio processing system to perform polymorphic expansion on the hardware abstraction layers. Further, the adaptation capability of the extension layer provides a foundation for the application of various hardware abstraction layers on different platforms or devices, so that the reusability of audio processing can be enhanced.
Fig. 4 is a flowchart illustrating another audio processing method according to an exemplary embodiment, and as shown in fig. 4, the audio processing method of the embodiment of the present disclosure may include the following steps.
S401, receiving an audio control instruction of an audio resource to be adjusted.
Specifically, step S401 in this embodiment is the same as step S301 in the above embodiment, and will not be described here again.
The "according to the audio control instruction and performing the adaptation of the hardware abstraction layer in the candidate hardware abstraction layer to obtain the target hardware abstraction layer" in step S302 in the above embodiment may include the following steps S402 to 403.
S402, identifying target type information of the electronic equipment where the audio processing system is located according to the audio control instruction.
In the embodiment of the present disclosure, the target type information of the electronic device where the audio processing system is located is identified according to the audio control instruction of the audio resource to be adjusted received in step S401, so as to obtain corresponding target type information.
S403, performing hardware abstraction layer adaptation from the candidate hardware abstraction layers based on the target type information so as to acquire a target hardware abstraction layer.
In an embodiment of the present disclosure, hardware abstraction layer adaptation is performed from the candidate hardware abstraction layers based on the target type information of the electronic device identified in step S402, so as to obtain a target hardware abstraction layer. It should be noted that, the specific manner of obtaining the target hardware abstraction layer is not limited too much in the present disclosure, and may be set according to actual situations.
As a possible implementation manner, the candidate hardware abstraction layers include a first candidate hardware abstraction layer, and if the type information is determined to be one of the candidate type information, the required target hardware abstraction layer is screened from the first candidate hardware abstraction layer according to the instruction content of the type information and the audio control instruction.
As another possible implementation manner, the candidate hardware abstraction layers further include a second candidate hardware abstraction layer, and if it is determined that the type information is not one of the candidate type information, the target hardware abstraction layer is selected from the second candidate hardware abstraction layer according to the instruction content of the type information and the audio control instruction.
The "call target hardware abstraction to adjust audio resources" concrete in step S204 in the above embodiment may include the following steps S404-405.
S404, determining the logic dependency of the target hardware abstraction layer, and determining the calling time sequence of the target abstraction layer based on the logic dependency.
In the embodiment of the present disclosure, the logical dependency of the target hardware abstraction layer acquired in step S403 is determined, and the call timing of the target abstraction layer is determined based on the logical dependency.
S405, calling the target hardware abstraction layer according to the calling time sequence to adjust the target audio resource.
In the embodiment of the present disclosure, the target hardware abstraction layer acquired in step S403 is called according to the call timing determined in step S404, so as to adjust the target audio resource.
The specific manner in which the operations are performed by the various steps in the embodiments described above have been described in detail in connection with embodiments of the system and will not be described in detail herein.
Therefore, the hardware abstraction layer adaptation is carried out from the hardware abstraction layer library based on the target type information, so that the same hardware abstraction layer can be used by the audio processing hardware of the same type, the reusability of audio processing is improved, meanwhile, the target hardware abstraction layer is called according to the calling time sequence of the target abstraction layer to regulate the target audio resource, errors generated by calling the abstraction layer are reduced, the stability of audio processing is improved, and the efficiency of audio processing is further improved.
Moreover, the extension layer not only can be compatible with the existing first hardware abstraction layer, but also can carry out abstract packaging on unadapted hardware in the extension layer, so that the audio processing system can be compatible with various hardware abstraction layers, and the audio processing capability can be improved, that is, the extension layer enables the audio processing system to carry out polymorphic extension on the hardware abstraction layer.
Fig. 5 is a block diagram of an electronic device 500, according to an example embodiment.
As shown in fig. 5, the electronic device 500 includes:
a memory 501 and a processor 502, a bus 503 connecting different components (including the memory 501 and the processor 502), the memory 501 storing a computer program, and the processor 502 implementing the audio processing method according to the embodiments of the present disclosure when executing the program.
Bus 503 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include Industry Standard Architecture (ISA) bus, micro channel architecture (MAC) bus, enhanced ISA bus, video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Electronic device 500 typically includes many types of electronic device readable media. Such media can be any available media that is accessible by electronic device 500 and includes both volatile and nonvolatile media, removable and non-removable media.
Memory 501 may also include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 504 and/or cache memory 505. Electronic device 500 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 506 may be used to read from or write to non-removable, nonvolatile magnetic media (not shown in FIG. 5, commonly referred to as a "hard disk drive"). Although not shown in fig. 5, a magnetic disk drive for reading from and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In such cases, each drive may be coupled to bus 503 through one or more data medium interfaces. Memory 501 may include at least one program product having a set (e.g., at least one) of program modules configured to carry out the functions of the various embodiments of the disclosure.
A program/utility 508 having a set (at least one) of program modules 507 may be stored in, for example, memory 501, such program modules 507 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. Program modules 507 typically perform the functions and/or devices in the embodiments described in this disclosure.
The electronic device 500 may also communicate with one or more external devices 509 (e.g., keyboard, pointing device, display 510, etc.), one or more devices that enable a user to interact with the electronic device 500, and/or any device (e.g., network card, modem, etc.) that enables the electronic device 500 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 512. Also, the electronic device 500 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet, through a network adapter 513. As shown in fig. 5, the network adapter 513 communicates with other modules of the electronic device 500 via the bus 503. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with electronic device 500, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
The processor 502 executes various functional applications and data processing by running programs stored in the memory 501.
It should be noted that, the implementation process and the technical principle of the electronic device in this embodiment refer to the foregoing explanation of the audio processing apparatus in the embodiment of the disclosure, and are not repeated herein.
The electronic device provided by the embodiment of the disclosure may execute the audio processing method as described above, receive an audio control instruction of an audio resource to be adjusted, and perform adaptation of a hardware abstraction layer in a candidate hardware abstraction layer according to the audio control instruction, so as to obtain a target hardware abstraction layer, and call the target hardware abstraction layer to adjust the audio resource. According to the audio processing system disclosed by the embodiment of the disclosure, the adaptation degree of the hardware abstraction layer is improved through the expansion layer, so that the audio processing system can be compatible with various hardware abstraction layers, and therefore the audio processing capability can be improved, that is, the expansion layer enables the audio processing system to perform polymorphic expansion on the hardware abstraction layers. Further, the adaptation capability of the extension layer provides a foundation for the application of various hardware abstraction layers on different platforms or devices, so that the reusability of audio processing can be enhanced.
To achieve the above embodiments, the present disclosure also proposes a computer-readable storage medium.
Wherein the instructions in the computer-readable storage medium, when executed by a processor of the electronic device, enable the electronic device to perform the audio processing method as described above. Alternatively, the computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any adaptations, uses, or adaptations of the disclosure following the general principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (16)

  1. An audio processing system, comprising:
    the system comprises an audio interface, an expansion layer and a candidate hardware abstraction layer, wherein the expansion layer is connected with the audio interface, and the candidate hardware abstraction layer is respectively connected with the expansion layer and the audio interface;
    the audio interface is used for receiving an audio control instruction of an audio resource to be regulated;
    the expansion layer is used for carrying out hardware abstraction layer adaptation in the candidate hardware abstraction layers according to the audio control instruction, and determining a target hardware abstraction layer from the candidate hardware abstraction layers;
    the target hardware abstraction layer is used for adjusting the audio resource.
  2. The system of claim 1, wherein the extension layer is further configured to:
    according to the audio control instruction, acquiring target type information of the electronic equipment where the audio processing system is located;
    and performing hardware abstraction layer adaptation from the hardware abstraction layer library based on the target type information so as to acquire the target hardware abstraction layer.
  3. The system of claim 2, wherein the extension layer is further configured to:
    determining the chip type of the electronic equipment as the target type information; or,
    and determining the type of the operating system of the electronic equipment as the target type information.
  4. The system of claim 3, wherein the candidate hardware abstraction layer comprises a first candidate hardware abstraction layer, wherein the extension layer is further to:
    and if the type information is determined to be one of the candidate type information, screening the required target hardware abstraction layer from the first candidate hardware abstraction layer according to the type information and the instruction content of the audio control instruction.
  5. The system of claim 3, wherein the candidate hardware abstraction layer further comprises a second candidate hardware abstraction layer, wherein the extension layer is further to:
    determining one of the type information and non-candidate type information, and screening the required target hardware abstraction layer from a second candidate hardware abstraction layer according to the type information and the instruction content of the audio control instruction; wherein the second candidate abstraction layer is encapsulated in the extension layer.
  6. The system of claim 3, wherein the extension layer is further configured to:
    acquiring type information corresponding to the first candidate hardware abstraction layer, and classifying the hardware layer based on the corresponding type information;
    and establishing a mapping relation between the first candidate hardware abstraction layer and the type information.
  7. The system of claim 6, wherein the extension layer is further configured to:
    acquiring first hardware subjected to type adaptation;
    acquiring a first processing logic of the first hardware, and abstracting and mapping the first processing logic to obtain a hardware abstraction layer corresponding to the first hardware;
    and classifying the hardware abstraction layer corresponding to the first hardware into the first candidate hardware abstraction layer of the same type according to the type information after the first hardware is adapted.
  8. The system of claim 5, wherein the extension layer is further configured to:
    acquiring second hardware which is not subjected to type adaptation;
    acquiring second processing logic of the second hardware;
    and abstracting and mapping the second processing logic to obtain the second candidate hardware abstraction layer corresponding to the second hardware, and packaging the second candidate hardware abstraction layer in the expansion layer.
  9. The system of any of claims 1-8, wherein the extension layer is further configured to:
    determining the logic dependence of the target hardware abstraction layer, and determining the calling time sequence of the target abstraction layer based on the logic dependence;
    and calling the target hardware abstraction layer according to the calling time sequence so as to regulate the target audio resource.
  10. An audio processing method, performed by an audio processing system, the method comprising:
    receiving an audio control instruction of an audio resource to be regulated;
    according to the audio control instruction, performing hardware abstraction layer adaptation in the candidate hardware abstraction layers to acquire a target hardware abstraction layer;
    and calling the target hardware abstraction to adjust the audio resource.
  11. The method of claim 10, wherein the adapting the hardware abstraction layer to obtain the target hardware abstraction layer according to the audio control instruction and in the candidate hardware abstraction layer comprises:
    identifying target type information of the electronic equipment where the audio processing system is located according to the audio control instruction;
    and performing hardware abstraction layer adaptation from the candidate hardware abstraction layers based on the target type information so as to acquire the target hardware abstraction layers.
  12. The method of claim 11, wherein the candidate hardware abstraction layer comprises a first candidate hardware abstraction layer, wherein the performing abstraction layer adaptation from the hardware abstraction layer library to obtain the target hardware abstraction layer based on the type information comprises:
    and if the type information is determined to be one of the candidate type information, screening the required target hardware abstraction layer from the first candidate hardware abstraction layer according to the type information and the instruction content of the audio control instruction.
  13. The method of claim 11, wherein the candidate hardware abstraction layer further comprises a second candidate hardware abstraction layer, wherein the performing abstraction layer adaptation from the hardware abstraction layer library to obtain the target hardware abstraction layer based on the type information, further comprises:
    and determining one of the type information and non-candidate type information, and screening the required target hardware abstraction layer from the second candidate hardware abstraction layer according to the type information and the instruction content of the audio control instruction.
  14. The method of any of claims 10-13, wherein the invoking the target hardware abstraction to adjust the audio resource comprises:
    determining the logic dependence of the target hardware abstraction layer, and determining the calling time sequence of the target abstraction layer based on the logic dependence;
    and calling the target hardware abstraction layer according to the calling time sequence so as to regulate the target audio resource.
  15. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the audio processing method according to any of claims 10-14 when the program is executed.
  16. A non-transitory computer readable storage medium, wherein instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the audio processing method of any one of claims 10-14.
CN202280004310.3A 2022-06-16 2022-06-16 Audio processing system, method, electronic device and storage medium Pending CN117597902A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2022/099243 WO2023240561A1 (en) 2022-06-16 2022-06-16 Audio processing system and method, and electronic device and storage medium

Publications (1)

Publication Number Publication Date
CN117597902A true CN117597902A (en) 2024-02-23

Family

ID=89192868

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202280004310.3A Pending CN117597902A (en) 2022-06-16 2022-06-16 Audio processing system, method, electronic device and storage medium

Country Status (2)

Country Link
CN (1) CN117597902A (en)
WO (1) WO2023240561A1 (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8225333B2 (en) * 2007-07-31 2012-07-17 Microsoft Corporation POS hardware abstraction
CN104618437B (en) * 2014-12-31 2018-01-12 成都卓影科技有限公司 A kind of adaptation method that interface is set with android terminal device systems
CN106899908B (en) * 2017-02-27 2019-06-25 努比亚技术有限公司 Apparatus for processing audio, method and system
CN108737658B (en) * 2018-05-22 2020-06-05 Oppo(重庆)智能科技有限公司 Mobile terminal, switching method of Bluetooth audio coding mode of mobile terminal and storage medium
CN109150399B (en) * 2018-08-14 2021-04-13 Oppo广东移动通信有限公司 Data transmission method and device, electronic equipment and computer readable medium

Also Published As

Publication number Publication date
WO2023240561A1 (en) 2023-12-21

Similar Documents

Publication Publication Date Title
US10515056B2 (en) API for resource discovery and utilization
CN111506291B (en) Audio data acquisition method, device, computer equipment and storage medium
US9386123B2 (en) Distributed audio playback and recording
CN107240396B (en) Speaker self-adaptation method, device, equipment and storage medium
CN113282271A (en) Audio processing method and device for android application on Linux platform
US11887617B2 (en) Electronic device for speech recognition and control method thereof
CN105654932B (en) System and method for realizing karaoke application
CN107133169B (en) Application test packet generation method and generation device
US9483285B2 (en) Systems and methods of optimizing resources for emulation
CN117597902A (en) Audio processing system, method, electronic device and storage medium
US7346896B2 (en) Slowing network connection for application optimization
US20170206898A1 (en) Systems and methods for assisting automatic speech recognition
US20200320980A1 (en) Synthetic Narrowband Data Generation for Narrowband Automatic Speech Recognition Systems
US9762704B2 (en) Service based media player
CN112532347B (en) Link adaptation method, device, equipment and storage medium based on transmission effect
CN113296984A (en) Compatibility parameter determining method and device, electronic equipment and storage medium
CN109495786B (en) Pre-configuration method and device of video processing parameter information and electronic equipment
US20040039975A1 (en) Slowing graphics system for application optimization
US10909049B1 (en) Converting a pin into a loopback pin
US11211075B2 (en) Service control method, service control apparatus and device
CN113687731B (en) Agent control device, agent control method, and non-transitory recording medium
CN115206289A (en) Method, device, equipment and storage medium for detecting equipment performance
CN109378019B (en) Audio data reading method and processing system
WO2019182074A1 (en) Signal processing method and signal processing device
CN113542706A (en) Screen projection method, device and equipment of treadmill and storage medium

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