Audio channel parameter adjusting method and device, medium and program product
By detecting changes in audio channel parameters and applying them to the marshalling method, the problem of slow and low efficiency of audio channel parameter adjustment in the prior art is solved, and the fast and efficient adjustment of audio channel parameters is achieved, which improves audio quality and user experience.
Patent Information
- Application Number
- CN202411610887.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-12
- Publication Date
- 2025-02-28
AI Technical Summary
In the prior art, the audio channel parameter adjustment method is slow and low in efficiency, making it difficult to adapt to scenarios where multiple audio parameters need to be quickly adjusted, affecting the audio quality and user experience.
By detecting the changes in audio channel parameters, obtaining the corresponding group of the audio channel, and applying the changed parameters to the audio channel in the group, achieving unified adjustment of the parameters of multiple audio channels.
It realizes fast and efficient adjustment of audio channel parameters, ensures consistency of audio signals, and improves audio quality and user experience.
Smart Images

Figure CN119545252A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of audio engineering technology, and in particular to an audio channel parameter adjustment method, device, medium and program product. Background Art
[0002] Audio channel is an important concept in digital audio devices. In digital audio devices, there are usually multiple channels for receiving and outputting different sound signals. In actual use, it is often necessary to manage and adjust the parameters of multiple audio channels.
[0003] Existing audio channel management technologies usually rely on the channel strip interface in a mixer or digital audio workstation. Each channel strip can adjust volume, pan, equalizer (EQ) and other parameters individually. Usually, when adjusting parameters, users need to manually adjust the parameters of each channel to achieve the desired audio effect. However, when it is necessary to adjust multiple audio channel parameters synchronously to ensure the consistency of audio signals, this adjustment method is slow, inefficient and difficult to adapt to scenarios where multiple audio channel parameters need to be adjusted quickly, affecting audio quality and user experience. Summary of the invention
[0004] The embodiments of the present application provide an audio channel parameter adjustment method, device, medium, and program product, which can solve the problem that the existing manual adjustment method is slow, inefficient, and difficult to adapt to the scene where multiple audio parameters need to be adjusted quickly, affecting the audio quality and user experience. To achieve this purpose, the embodiments of the present application provide the following solutions.
[0005] According to one aspect of an embodiment of the present application, a method for adjusting audio channel parameters is provided, the method comprising:
[0006] Detect the parameters of the audio channel;
[0007] If it is detected that the parameter changes, the grouping corresponding to the audio channel is obtained, and the changed parameter is applied to the audio channels in the grouping, where the grouping includes at least two audio channels and is created based on the received grouping instruction.
[0008] In a possible implementation, the creation of the grouping includes:
[0009] In response to a selection instruction, obtaining an audio channel corresponding to the selection instruction;
[0010] If it is determined that a grouping instruction corresponding to the selection instruction is received, the audio channels corresponding to the selection instruction are associated and grouped to obtain a group corresponding to the grouping instruction, and identification information of the group is determined.
[0011] In a possible implementation, before the grouping is created, the following steps are included:
[0012] Creating a data object, the data object comprising a channel address memory;
[0013] The channel address is used to store information of the audio channel, where the information includes a channel index, a base address, and an offset.
[0014] In a possible implementation, determining the offset includes:
[0015] A storage space of the audio channel is acquired, and an offset of the audio channel is determined according to the storage space.
[0016] In a possible implementation, the data object further includes a queue and a marshaling thread, and obtaining the marshaling corresponding to the marshaling instruction includes:
[0017] Determine a queue corresponding to the grouping, and store the data of the grouping in the queue;
[0018] The detecting that the parameter changes includes:
[0019] The changed parameters are added to the queue, and the parameters are parsed using the marshaling thread.
[0020] In a possible implementation, obtaining the grouping corresponding to the audio channel includes:
[0021] Utilizing the grouping thread to parse the changed parameters, and obtain the actual address of the audio channel;
[0022] The audio channel is located according to the actual address and the information stored in the channel address memory.
[0023] In a possible implementation manner, applying the changed parameter to the audio channels in the grouping includes:
[0024] Determine the actual address of the audio channel in the grouping according to the base address and offset of the audio channel in the grouping;
[0025] The changed parameters are applied to the audio channels in the group based on the actual addresses.
[0026] According to one aspect of an embodiment of the present application, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of the method described above.
[0027] According to one aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method described above are implemented.
[0028] According to one aspect of an embodiment of the present application, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps of the method described above are implemented.
[0029] The beneficial effects of the technical solution provided by the embodiment of the present application are:
[0030] The audio channel parameter adjustment method provided in the present application detects the parameters of the audio channel; if it is detected that the parameter has changed, the grouping corresponding to the audio channel is obtained, and the changed parameters are applied to the audio channels in the grouping. The grouping includes at least two audio channels, and the grouping is created based on the received grouping instruction. The embodiment of the present application can realize the unified adjustment of multiple audio channel parameters by audio channel grouping, with fast adjustment speed and high efficiency, effectively ensuring the consistency of audio signals, and improving audio quality and user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following is a brief introduction to the drawings required for use in describing the embodiments of the present application.
[0032] Figure 1 A flowchart of the audio channel parameter adjustment method provided in an embodiment of the present application;
[0033] Figure 2 A flowchart of the parameter adjustment process in the audio channel parameter adjustment method provided in the embodiment of the present application;
[0034] Figure 3 A structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0035] The embodiments of the present application are described below in conjunction with the drawings in the present application. It should be understood that the implementation methods described below in conjunction with the drawings are exemplary descriptions for explaining the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions of the embodiments of the present application.
[0036] It will be understood by those skilled in the art that, unless specifically stated, the singular forms "one", "said", and "the" used herein may also include plural forms. It should be further understood that the terms "including" and "comprising" used in the embodiments of the present application refer to that the corresponding features can be implemented as the presented features, information, data, steps, operations, elements and / or components, but do not exclude the implementation of other features, information, data, steps, operations, elements, components and / or combinations thereof supported by the present technical field. It should be understood that when we say that an element is "connected" or "coupled" to another element, the one element may be directly connected or coupled to the other element, or it may refer to that the one element and the other element establish a connection relationship through an intermediate element. In addition, the "connection" or "coupling" used herein may include wireless connection or wireless coupling. The term "and / or" used herein indicates at least one of the items defined by the term, for example, "A and / or B" indicates that it is implemented as "A", or is implemented as "A", or is implemented as "A and B".
[0037] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below in conjunction with the accompanying drawings.
[0038] The following describes several exemplary embodiments to illustrate the technical solutions of the embodiments of the present application and the technical effects produced by the technical solutions of the present application. It should be noted that the following embodiments can refer to, draw on or combine with each other, and the same terms, similar features and similar implementation steps in different embodiments will not be described repeatedly.
[0039] The audio channel parameter adjustment method, device, medium and program product provided in the present application are intended to solve at least one technical problem existing in the prior art.
[0040] An embodiment of the present application provides an audio channel parameter adjustment method, which can be used in mobile phones, computers, mixers, mixing consoles, digital audio workstations, and other terminals that can be used for audio channel parameter adjustment.
[0041] Alternatively, if Figure 1 , Figure 2 As shown, the audio channel parameter adjustment method of the present application includes:
[0042] S101: Detecting parameters of an audio channel.
[0043] Optionally, the parameters of the audio channel include volume, pan, equalizer, etc. In live performances or audio production and other scenarios where the audio channel is required, the parameters of the audio channel can be detected in real time (detected at a preset frequency or a preset period), and the parameters of the audio channel can be compared with the historical parameters of the audio channel, and whether the parameters have changed can be detected based on the comparison result.
[0044] Optionally, each time a parameter of an audio channel changes, the changed parameter may be recorded, and the changed parameter may be compared with a historical parameter recorded last time to detect whether the parameter has changed.
[0045] S102: If a parameter change is detected, the grouping corresponding to the audio channel is obtained, and the changed parameter is applied to the audio channel in the grouping.
[0046] Optionally, the grouping includes at least two audio channels, and the grouping is created based on a received grouping instruction.
[0047] Optionally, after detecting that the parameter has changed, it is also possible to detect whether the grouping corresponding to the audio channel where the parameter has changed has the same parameter change (such as the values of the same parameter have all changed to the same value). If so, it is determined that the parameter change is caused by parameter synchronization, and no subsequent operations are performed. If the same parameter change has not occurred, it is determined that the parameter change is not caused by parameter synchronization, and subsequent operations are performed.
[0048] Optionally, after detecting the parameter change, it may also be detected whether the audio channel corresponding to the parameter change has a corresponding grouping. If no grouping exists, parameter synchronization is not performed.
[0049] Optionally, the creation of the grouping includes: in response to the selection instruction, obtaining the audio channel corresponding to the selection instruction; if it is determined that the grouping instruction corresponding to the selection instruction is received, the audio channel corresponding to the selection instruction is associated and grouped to obtain the group corresponding to the grouping instruction, and the identification information of the group is determined. The identification information is unique, and different groups correspond to different identification information, and the audio channels in the same group are identified by the identification information.
[0050] Optionally, each audio channel corresponds to a group, and different groups can be set for different scenes, working environments, users, music types, changed parameters, parameter change ranges and other classification information, so that different groups are set for the same audio channel according to different classifications. After detecting that a parameter has changed, the group corresponding to the audio channel with the parameter change is determined according to the current corresponding classification.
[0051] Optionally, before responding to the selection instruction, an audio channel display interface may be displayed to display the audio channels available for grouping, and the selection instruction and the grouping instruction may be obtained through the display interface. The user may input the selection instruction and the grouping instruction by touching the screen, displaying a specific gesture, or voice input.
[0052] In one embodiment, an audio channel display interface is displayed based on a user's instruction, and the audio channel is displayed using the audio channel display interface. The user inputs a selection instruction for selecting an audio channel through the interface. The terminal determines the selected audio channel according to the selection instruction and displays the selected information of the audio channel. It is detected whether a grouping instruction indicating associated grouping is received, and if so, the selected audio channel is grouped.
[0053] Optionally, in order to store the information of the audio channel and improve the speed of parameter synchronization, before the group is created, it includes: creating a data object, the data object includes a channel address memory; using the channel address to store the information of the audio channel, the information includes a channel index, a base address, and an offset.
[0054] Optionally, the channel index is used to identify the position of the audio channel in the memory, and the channel index may also include identification information of the group corresponding to the audio channel, and the group to which the audio channel belongs may be identified by the identification information. The channel index may also include the code and name of the audio channel and other information that can be used to find and identify the audio channel.
[0055] Optionally, determining the offset includes: acquiring a storage space of the audio channel, and determining the offset of the audio channel according to the storage space. Specifically, the offset of each audio channel can be determined according to the size of the audio channel space.
[0056] Optionally, the data object also includes a queue and a marshaling thread, and obtaining the marshaling corresponding to the marshaling instruction includes: determining the queue corresponding to the marshaling, storing the marshaled data in the queue; detecting a parameter change, including: adding the changed parameter to the queue, and parsing the parameter using the marshaling thread. The marshaling thread performs parameter synchronization operations based on the data in the queue, and the marshaling data can be the parameters of the audio channel changes in the marshaling, the audio channel is turned on or off, and other data that require the marshaling thread to perform parameter synchronization or processing.
[0057] In one embodiment, before the grouping is created, the offset of each audio channel is determined according to the storage space size of each audio channel. A queue, a grouping thread and a channel address memory are created. Wherein, the queue can be a circular queue, and the storage format of the circular queue can be a structure to improve the storage speed. The queue stores data from the grouping that needs to be processed by the grouping thread. The created grouping thread is used to synchronize parameter changes from the channel, and the created channel address memory is used to store information such as the channel index, base address, and offset of each audio channel. The actual address of the audio channel can be determined according to the channel index, base address and offset. When it is detected that the parameters of the audio channel have changed, the changed parameters are added to the queue so that the grouping thread can process.
[0058] Optionally, obtaining the grouping corresponding to the audio channel includes: using the grouping thread to parse the changed parameters to obtain the actual address of the audio channel; and locating the audio channel according to the actual address and information stored in the channel address memory.
[0059] In one embodiment, the changed parameter may include the actual address of the audio channel, and the grouping thread takes the changed parameter from the queue, parses the parameter, and obtains the actual address of the audio channel. The audio channel where the parameter change occurs is determined based on the actual address and the channel index, base address, and offset of each audio channel stored in the channel address memory, wherein the actual address of each audio channel can be determined by the channel index, base address, and offset in the channel address memory, and the actual address is compared with the actual address corresponding to the changed parameter to determine the audio channel where the parameter change occurs. After determining the audio channel where the parameter change occurs, the grouping to which the audio channel belongs can be determined based on the identification information corresponding to the audio channel, and then all audio channels corresponding to the same grouping can be determined based on the identification information of the grouping.
[0060] Optionally, applying the changed parameters to the audio channels in the grouping includes: using the grouping thread to obtain the grouping corresponding to the audio channel, determining the actual address of the audio channel in the grouping according to the base address and offset of the audio channel in the grouping; and applying the changed parameters to the audio channel in the grouping based on the actual address.
[0061] In one embodiment, the base address can be obtained by S=R-(I*F), where R is the actual address, I is the channel index, F is the offset, and S is the base address. After obtaining the base address, the actual address of each audio channel in the grouping that needs parameter synchronization is obtained by S+1*F. Based on the actual address, the changed parameters are distributed to the audio channels in the grouping.
[0062] The following is a specific example of audio parameter adjustment to illustrate the audio channel parameter adjustment method of the present application.
[0063] In one embodiment, Figure 2 As shown, the offset of each audio channel is determined according to the storage space size of each audio channel, and the actual address of each audio channel is determined based on the offset. Create a queue, a grouping thread and a channel address memory, and store the channel index, basic address and offset of the audio channel through the channel address memory. Among them, the number of audio channels is 4, and the 4 audio channels are divided into the same group. The basic address R of the audio channel in the group is 100, the offset (address offset) of each audio channel is F=10, and the channel index \(I\) is the unique identifier of the audio channel, which is used to determine the position of the audio channel in the memory. There are 4 audio channels: channel 1, channel 2, channel 3, and channel 4. The volume parameter of audio channel 1 changes, the new value is 75, and the old value is 60. Add the changed parameters (including the parameter type of the volume, change data, timestamp and other data) to the created queue. The grouping thread obtains the changed parameters from the queue, determines the grouping that needs to be synchronized according to the parameters, and calculates the original address of each audio channel in the grouping. Now it is necessary to calculate the address of channel 2 / 3 / 4. It is known that the base address R=1000, offset F=10, and channel index 0 of channel 1 are calculated according to the formula s=R-(I*F), and the actual addresses of other audio channels are obtained based on the base address, where S+1*F represents the actual address of the second audio channel, S+2*F represents the actual address of the third audio channel, and S+3*F represents the actual address of the fourth audio channel.
[0064] The volume of channel 1 changes from 60 to 75, and based on the calculated address of the audio channel, this parameter is applied to the other audio channels of the group (channel 2, channel 3, channel 4).
[0065] The audio channel parameter adjustment method provided in this application allows users to dynamically create and adjust audio channel grouping to adapt to the ever-changing audio production needs. Users can freely add or remove channels during the grouping process without interrupting the ongoing operation, thereby enhancing the flexibility of the grouping. Through this grouping, users can complete the grouping and parameter synchronization adjustment of audio channels without complicated operation steps, and through the optimized data structure and event-driven mechanism, it is ensured that efficient and stable performance can be maintained when processing a large number of audio channels.
[0066] In an optional embodiment, an electronic device is provided, such as Figure 3 As shown, Figure 3The electronic device 4000 shown includes: a processor 4001 and a memory 4003. The processor 4001 and the memory 4003 are connected, such as through a bus 4002. Optionally, the electronic device 4000 may also include a transceiver 4004, which may be used for data interaction between the electronic device and other electronic devices, such as data transmission and / or data reception. It should be noted that in actual applications, the transceiver 4004 is not limited to one, and the structure of the electronic device 4000 does not constitute a limitation on the embodiments of the present application.
[0067] Processor 4001 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It may implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. Processor 4001 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.
[0068] The bus 4002 may include a path to transmit information between the above components. The bus 4002 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus 4002 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0069] Memory 4003 can be ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or it can be EEPROM (Electrically Erasable Programmable Read Only Memory), CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compressed optical disk, laser disc, optical disk, digital versatile disc, Blu-ray disc, etc.), magnetic disk storage medium, other magnetic storage devices or any other medium that can be used to carry or store computer programs and can be read by a computer, without limitation here.
[0070] The memory 4003 is used to store the computer program for executing the embodiment of the present application, and the execution is controlled by the processor 4001. The processor 4001 is used to execute the computer program stored in the memory 4003 to implement the steps shown in the above method embodiment.
[0071] Among them, the electronic device can be any electronic product that can interact with an object, such as a personal computer, a tablet computer, a smart phone, a personal digital assistant (PDA), a game console, an interactive network television (IPTV), a smart wearable device, etc.
[0072] The electronic device may also include a network device and / or an object device, wherein the network device includes, but is not limited to, a single network server, a server group consisting of multiple network servers, or a cloud consisting of a large number of hosts or network servers based on cloud computing.
[0073] The network where the electronic device is located includes but is not limited to the Internet, a wide area network, a metropolitan area network, a local area network, a virtual private network (Virtual Private Network, VPN), etc.
[0074] An embodiment of the present application provides a computer-readable storage medium, which includes a computer program. When the computer program is executed by a processor, the steps and corresponding contents of the aforementioned method embodiment can be implemented.
[0075] An embodiment of the present application provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps and corresponding contents of the aforementioned method embodiment can be implemented.
[0076] The terms "first", "second", "third", "fourth", "1", "2", etc. (if any) in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than that shown or described in the drawings.
[0077] It should be understood that, although each operation step is indicated by arrows in the flowchart of the embodiment of the present application, the implementation order of these steps is not limited to the order indicated by the arrows. Unless clearly stated herein, in some implementation scenarios of the embodiment of the present application, the implementation steps in each flowchart can be performed in other orders according to demand. In addition, some or all of the steps in each flowchart may include multiple sub-steps or multiple stages based on actual implementation scenarios. Some or all of these sub-steps or stages may be executed at the same time, and each sub-step or stage in these sub-steps or stages may also be executed at different times respectively. In different scenarios of execution time, the execution order of these sub-steps or stages may be flexibly configured according to demand, and the embodiment of the present application does not limit this.
[0078] The above is only an optional implementation method for some implementation scenarios of the present application. It should be pointed out that for ordinary technicians in this technical field, without departing from the technical concept of the solution of the present application, other similar implementation methods based on the technical ideas of the present application are also within the protection scope of the embodiments of the present application.
Claims
1. A method for adjusting audio channel parameters, characterized in that: The method comprises: Detect the parameters of the audio channel; If it is detected that the parameter changes, the grouping corresponding to the audio channel is obtained, and the changed parameter is applied to the audio channels in the grouping, where the grouping includes at least two audio channels and is created based on the received grouping instruction.
2. The method for adjusting audio channel parameters according to claim 1, characterized in that: The creation of the grouping includes: In response to a selection instruction, obtaining an audio channel corresponding to the selection instruction; If it is determined that a grouping instruction corresponding to the selection instruction is received, the audio channels corresponding to the selection instruction are associated and grouped to obtain a group corresponding to the grouping instruction, and identification information of the group is determined.
3. The method for adjusting audio channel parameters according to claim 2, characterized in that: Before the group is created, it includes: Creating a data object, the data object comprising a channel address memory; The channel address is used to store information of the audio channel, where the information includes a channel index, a base address, and an offset.
4. The method for adjusting audio channel parameters according to claim 3, characterized in that: The determination of the offset includes: A storage space of the audio channel is acquired, and an offset of the audio channel is determined according to the storage space.
5. The method for adjusting audio channel parameters according to claim 3, characterized in that: The data object also includes a queue and a marshaling thread, and obtaining the marshaling corresponding to the marshaling instruction includes: Determine a queue corresponding to the grouping, and store the data of the grouping in the queue; The detecting that the parameter changes includes: The changed parameters are added to the queue, and the parameters are parsed using the marshaling thread.
6. The method for adjusting audio channel parameters according to claim 5, characterized in that: The obtaining the grouping corresponding to the audio channel includes: Utilizing the grouping thread to parse the changed parameters, and obtain the actual address of the audio channel; The audio channel is located according to the actual address and the information stored in the channel address memory.
7. The method for adjusting audio channel parameters according to claim 6, characterized in that: The step of applying the changed parameters to the audio channels in the grouping includes: Determine the actual address of the audio channel in the grouping according to the base address and offset of the audio channel in the grouping; The changed parameters are applied to the audio channels in the group based on the actual addresses.
8. An electronic device comprising a memory, a processor and a computer program stored in the memory, characterized in that: The processor executes the computer program to implement the steps of the method according to any one of claims 1 to 7.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.