Conference scene switching control method and device and storage medium
By comparing the differences between local variables and global variables, a difference parameter set is generated, and only the target audio component parameters are updated. This solves the signal jitter problem of the audio processor in multi-conference room scenarios and achieves efficient and stable scene switching.
Patent Information
- Application Number
- CN202511271393.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-08
- Publication Date
- 2025-10-10
- Estimated Expiration
- 2045-09-08
AI Technical Summary
In multi-conference room scenarios, existing audio processors cause signal jitter or brief silence when switching scenes, affecting meeting continuity. This is mainly because the DSP needs to reload all parameters, forcibly interrupting the audio processing flow in other conference rooms.
A parameter subset of scene-associated components is stored in local variables, which are compared with global variables to generate a difference parameter set. Only the target audio component parameters are updated to avoid global interruption. A hierarchical hash algorithm is used to accurately locate parameter differences, and the difference parameter set is transmitted using binary data blocks.
Conference scene switching is achieved without signal jitter, and the switching delay is reduced to millisecond level, which reduces the amount of parameter transmission and improves scene call efficiency and system availability.
Smart Images

Figure CN120762336A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of audio processing, in particular to a conference scene switching control, a device and a storage medium. BACKGROUND
[0002] With the rapid development of audio processing technology, modern audio processors often adopt ARM+DSP collaborative architecture to balance control flexibility and real-time processing capability. To reduce costs, existing designs usually only configure a storage chip on the ARM side for storing execution programs and scene configuration files (such as JSON format), while the DSP side is not equipped with an independent storage, and the algorithm parameters required for its operation need to be sent by the ARM in real time through the SPI interface. For example, in a conference scene, users can achieve one-key switching of audio effects by calling different scene configuration files (such as "conference mode" and "tea break mode"), meeting diverse needs.
[0003] Since the scene configuration file contains all algorithm parameters, when a single audio processor serves multiple conference rooms, calling a scene in any conference room will trigger a global parameter update, and the DSP needs to reload all parameters, causing the audio processing process in other conference rooms to be forcibly interrupted, resulting in signal jitter or temporary silence, affecting the continuity of the conference.
[0004] The above content is only used to assist in understanding the technical solutions of the present application and does not represent the acknowledgement of the above content as prior art. SUMMARY
[0005] The main purpose of the present application is to provide a conference scene switching control method, device and storage medium, aiming to solve the technical problem of abnormal audio parameter switching in the existing multi-conference room scene.
[0006] To achieve the above purpose, the present application provides a conference scene switching control method, device and storage medium, the conference scene switching control method is applied to an audio processor, and the method comprises: in response to a scene switching instruction, and obtaining an audio component corresponding to the scene switching instruction; saving the parameter value of the audio component as a local variable; obtaining the parameter value difference between the local variable and the global variable, generating a difference parameter set according to the parameter value difference, wherein the parameter value of the default audio component is obtained when the audio processor is started, and the parameter value is saved as a global variable; calling a DSP function to configure the processing logic parameter of the audio component according to the difference parameter set, thereby realizing the conference scene switching function.
[0007] In an embodiment, the step of saving the parameter value of the audio component as a local variable comprises: Obtaining a binary data conversion rule corresponding to the audio component in a preset parameter mapping table, wherein a mapping relationship between all audio components and corresponding binary data conversion rules is pre-stored in the preset parameter mapping table; Converting a parameter value of the audio component into a binary data block based on the binary data conversion rule, and saving the binary data block as the local variable.
[0008] In an embodiment, the step of obtaining a parameter value difference between the local variable and the global variable, and generating a difference parameter set of the parameter value difference, comprises: Extracting parameter values of the same audio component in the local variable and the global variable respectively, and locating a target audio component with different parameter values through a hierarchical hash algorithm; Generating the difference parameter set according to the parameter value difference of the target audio component.
[0009] In an embodiment, the step of generating the difference parameter set according to the parameter value difference of the target audio component, comprises: Obtaining a floating threshold of the audio component, wherein the floating threshold is calculated by obtaining a threshold calculation model of the audio component; Obtaining the difference parameter set through the parameter value difference and the floating threshold.
[0010] In an embodiment, the step of calling a DSP function to configure a processing logic parameter of the audio component according to the difference parameter set, thereby realizing a conference scene switching function, comprises: Determining an audio component corresponding to the difference parameter set, wherein the audio component is one or more; Changing the processing logic parameter of the audio component to the difference parameter set, thereby switching the conference scene.
[0011] In an embodiment, before the step of changing the processing logic parameter of the audio component to the difference parameter set, thereby switching the conference scene, further comprising: Determining an update type of the audio component; If the update type is an immediate update component, performing the step of changing the processing logic parameter of the audio component to the difference parameter set, thereby switching the conference scene; If the update type is a smooth transition component, performing the step of changing the processing logic parameter of the audio component to the difference parameter set, thereby switching the conference scene, by a pre-set smooth transition mechanism.
[0012] In an embodiment, if the update type is a smooth transition component, the step of changing the processing logic parameter of the audio component to the difference parameter set to switch the conference scene by a preset smooth transition mechanism comprises: determining an update priority according to the component type of the audio component; changing the processing logic parameter of the audio component to the difference parameter set in sequence by the update priority.
[0013] In an embodiment, if the update type is a smooth transition component, the step of changing the processing logic parameter of the audio component to the difference parameter set to switch the conference scene by a preset smooth transition mechanism comprises: obtaining an update curve of the audio component, the update curve comprising a linear gradient curve, a logarithmic gradient curve and an S-shaped gradient curve; updating the processing logic parameter of the audio component to the difference parameter set based on the update curve.
[0014] In addition, to achieve the above object, the present application further provides a conference scene switching control device, which comprises a memory, a processor and a computer program stored in the memory and executable on the processor, and the computer program is configured to implement the steps of the conference scene switching control method as described above.
[0015] In addition, to achieve the above object, the present application further provides a storage medium, which is a computer readable storage medium, and the storage medium stores a computer program, and the computer program is executed by a processor to implement the steps of the conference scene switching control method as described above.
[0016] The one or more technical solutions provided by the present application have at least the following technical effects: The technical solution of the present application responds to a scene switching instruction, obtains an audio component corresponding to the scene switching instruction, saves a parameter value of the audio component as a local variable, obtains a parameter value difference between the local variable and a global variable, generates a difference parameter set according to the parameter value difference, obtains a parameter value of a default audio component when starting the audio processor, saves the parameter value as a global variable, calls a DSP function to configure a processing logic parameter of the audio component according to the difference parameter set, and thus implements a conference scene switching function. The present application stores a parameter subset of a scene-related component by a local variable, generates a difference set by comparison with a global variable, realizes that a signal processor only updates a target audio component parameter, eliminates a global interruption problem in a multi-conference room scene, ensures that there is no signal jitter and the switching delay is reduced to milliseconds during conference switching, greatly reduces the parameter transmission amount, and further improves the efficiency of the calling scene. BRIEF DESCRIPTION OF DRAWINGS
[0017] The accompanying drawings, which are incorporated herein and constitute part of the specification, illustrate embodiments consistent with the application and, together with the description, serve to explain the principles of the application.
[0018] In order to more clearly illustrate the technical solutions of the embodiments of the present application or the prior art, the drawings required to be used in the embodiments or prior art description will be briefly introduced as follows. Obviously, those skilled in the art can obtain other drawings from these drawings without any creative effort.
[0019] Figure 1 A flowchart provided by the conference scene switching control method embodiment one of the present application; Figure 2 A device structure diagram of a hardware running environment related to the conference scene switching control method in the embodiments of the present application.
[0020] The purposes, functional features and advantages of the present application will be further explained with reference to the embodiments and the accompanying drawings. DETAILED DESCRIPTION
[0021] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application, and are not used to limit the present application.
[0022] In order to better understand the technical solutions of the present application, the following will be described in detail in combination with the drawings of the specification and specific embodiments.
[0023] The main solution of the embodiments of the present application is: in response to a scene switching instruction, an audio component corresponding to the scene switching instruction is obtained; a parameter value of the audio component is saved as a local variable; a parameter value difference between the local variable and a global variable is obtained, and a difference parameter set is generated according to the parameter value difference, wherein a parameter value of a default audio component is obtained when the audio processor is started, and the parameter value is saved as a global variable; a DSP function is called to configure a processing logic parameter of the audio component according to the difference parameter set, thereby realizing the conference scene switching function.
[0024] Since the existing scene configuration file contains all algorithm parameters, when a single audio processor serves multiple conference rooms, calling a scene in any conference room will trigger global parameter update, and DSP needs to reload all parameters, which causes the audio processing flow of other conference rooms to be forced to interrupt, resulting in signal jitter or short-term silence, affecting the continuity of the conference.
[0025] The application provides a solution, which stores a parameter subset of a scene association component through a local variable, generates a difference set by comparing with a global variable, realizes that a signal processor only updates target audio component parameters, eliminates a global interruption problem in a multi-conference room scene, ensures that there is no signal jitter and the switching delay is reduced to a millisecond level when a conference is switched, greatly reduces the parameter transmission amount, and further improves the efficiency of a calling scene.
[0026] Based on this, the embodiment of the application provides a conference scene switching control method, referring to Figure 1 and Figure 2 , Figure 1 FIG. 1 is a flowchart of steps S10-S40 in a conference scene switching control method first embodiment of the application, and the conference scene switching control method comprises steps S10-S40: Step S10, in response to a scene switching instruction, and acquiring an audio component corresponding to the scene switching instruction; Step S20, saving a parameter value of the audio component as a local variable; Step S30, acquiring a parameter value difference between the local variable and a global variable, and generating a difference parameter set according to the parameter value difference, wherein a parameter value of a default audio component is acquired when the audio processor is started, and the parameter value is saved as a global variable; Step S40, calling a DSP function to configure a processing logic parameter of the audio component according to the difference parameter set, thereby realizing a conference scene switching function.
[0027] In the embodiment, in a traditional existing multi-conference room shared single audio processor architecture, the architecture is an ARM+DSP heterogeneous architecture, the ARM is system management and scheduling, and the DSP is a hard real-time audio processing. Frequent parameter updates in a multi-conference room scene will cause a significant reduction in system availability. Therefore, in the current audio processor application, a scene starting file is loaded, the scene starting file is saved to a global variable, and then a conference scene application function is started.
[0028] On this basis, a conference scene switching instruction initiated by a user is received, and an audio scene of a conference area is used for the scene switching instruction. The scene switching instruction is an operation instruction for triggering the audio processor to switch from a current conference scene to a new scene, is realized by a user interface button trigger or a preset timer automatic trigger, and is used to start a scene switching process.
[0029] To this end, in response to the scene switching instruction and obtaining the audio component of the scene switching instruction, the audio component used in the conference scene corresponding to the scene switching instruction can be derived based on the scene configuration file. That is, the scene configuration file refers to a configuration file that stores audio component parameter values in a specific scene, which is a JSON or XML format file, and different conference areas belong to the conference scene corresponding to the scene configuration file. Each scene configuration file only contains audio component parameters directly associated with the corresponding conference scene, avoiding redundant data storage. Specifically, based on the setting basis of this scene configuration file, the corresponding conference room scene hardware deployment can be divided into two cases. In one of the cases, the conference scene one is provided with a noise gate, a compressor and an automatic gain three components, and the conference scene two is provided with a sound manager and a limiter two components. In this hardware deployment, different scenes can be switched based on the included audio components and do not interfere with each other; in another hardware deployment, the conference scene one and the conference scene two are both provided with a mixer component, and the mixer component of the conference scene one is only provided with mixing parameters of microphones 1-8, and the mixer component of the conference scene two includes mixing parameters of microphones 9-16. By changing part of the audio component, the conference scene switching does not interfere with each other.
[0030] Based on this, the obtained audio component is stored as a local variable, which is a temporary memory variable that stores parameter values in the scene configuration file. It is implemented using a storage space independent of the global variable, and isolates the current scene parameters from other scene parameters to prevent data conflicts.
[0031] The global variable refers to a persistent variable that stores all audio component parameter values currently in effect. It is implemented using a non-volatile memory or a database to maintain the complete parameter state of the system during operation. The difference parameter set refers to a difference parameter set generated by comparing the local variable and the global variable. The change items are recorded using a hash table or a bitmap data structure, and only the changed parameter values are transmitted and executed to reduce data processing amount.
[0032] The application can generate a difference parameter set by comparing the difference between the local variable and the global variable, and only update the audio component parameters that have changed, rather than reloading all parameters globally. This mechanism effectively avoids the signal interruption problem caused by global parameter refreshing when switching between multiple conference rooms, ensuring that the audio processing process of the unswitched scene continues to run stably.
[0033] Specifically, the working process and principle of the present application are as follows: the audio processor responds to the scene switching instruction based on the currently started conference scene. The scene configuration file corresponding to the scene switching instruction is obtained, and the scene configuration file is stored as a local variable. The scene configuration file only contains the parameter values of the audio components associated with the current scene, so that the amount of data to be processed can be reduced. The local variable is compared with the global variable, and the target audio component whose parameter value has changed is determined through the comparison result. This step can accurately locate the parameters that need to be updated, avoiding unnecessary global parameter update. Finally, the difference parameter set of the parameter values of the target audio component is generated and sent to the signal processor for execution, realizing the switching of the current scene. This incremental updating method can significantly reduce the data transmission amount and processing time.
[0034] As a preferred embodiment, the audio processor runs in the currently started conference scene. When receiving a scene switching instruction, the audio processor responds to the instruction. The audio processor obtains the scene configuration file corresponding to the scene switching instruction from a preset storage location. The scene configuration file is stored in a JSON format or an XML format file and only contains the parameter values of the audio components related to the current scene. The audio processor parses and stores the obtained scene configuration file as a local variable. A global variable is maintained in the audio processor to store all currently effective audio component parameter values. The audio processor compares the local variable with the global variable item by item. During the comparison process, the audio processor matches the parameter values under the same identifier through the unique identifier of the audio component. For the audio components with inconsistent parameter values, the audio processor marks them as target audio components. The audio processor extracts the new parameter values of all target audio components to generate a difference parameter set. The difference parameter set is in a binary format and contains the audio component identifier and the corresponding new parameter value. The audio processor sends the difference parameter set to the signal processor through an SPI interface. The signal processor receives the difference parameter set, parses the new parameter values of the target audio components, and updates the corresponding processing logic parameters to complete the scene switching.
[0035] In this embodiment, efficient scene switching of the audio processor in a multi-conference room scene is realized. Since only the changed parameters are transmitted, the data transmission amount is significantly reduced, and the parameter update time is shortened. This incremental updating mechanism avoids the audio processing interruption caused by global parameter override, ensuring the continuity and stability of the audio signals in other conference rooms. At the same time, the method of accurately locating the changed parameters improves the accuracy of parameter updating and reduces unnecessary processing resource consumption. In addition, by separating the storage of the global variable and the local variable, the parameter management process is simplified, and the maintainability and expandability of the system are improved.
[0036] Further, before responding to the scene switching instruction based on the current started conference scene, a default audio component is acquired and a parameter value of the default audio component is saved as a global variable, a combination of the default audio component can be represented as a scene starting file, the scene starting file includes the parameter value of the default audio component in a signal topology graph; a parameter set of the global variable is sent to a signal processor for execution, wherein a global variable storage space and a plurality of local variable storage spaces are provided in a preset storage area, specifically, the conference scene is started, and in essence, all applied audio components are taken as the default audio component. That is, the scene starting file contains a complete parameter set of all audio components in the signal topology graph, ensuring that the parameters in the global variable storage space cover all components. The global variable storage space and the plurality of local variable storage spaces are physically isolated to avoid data interference between different scene configurations. When the parameter set is sent to the signal processor, a binary structure transmission mode is adopted to reduce data parsing time. A fixed address mapping mechanism is adopted for a space allocation strategy of the preset storage area, and the address range of the global variable storage space and the address range of the local variable storage space do not overlap with each other.
[0037] Specifically, in the conference scene initialization stage, the scene starting file is loaded to the global variable storage space through an ARM end storage chip to form a reference data set containing parameters of all audio components. The signal processor receives the global variable parameter set through an SPI interface, writes the parameter values into a DSP end register, and completes initialization configuration of an audio processing algorithm. The complete parameter set saved in the global variable storage space provides a comparison reference for subsequent scene switching, and the local variable storage space only stores differential parameters associated with the current scene. When the scene switching is performed, the comparison operation between the local variable and the global variable is implemented through a parameter identifier index, and only the parameter entries in the local variable storage space need to be traversed, thereby reducing data processing amount. The global variable storage space adopts a non-volatile storage medium to ensure that the data of the parameters is not lost after power failure, and the local variable storage space adopts a cache medium to support fast scene switching.
[0038] In the implementation process, the audio processor reads the scene starting file from the storage chip when starting. The scene starting file contains initial parameter values of all audio components in the signal topology graph. The audio processor saves these parameter values into a global variable, and the global variable is located in a global variable storage space of a preset storage area. The audio processor sends the complete parameter set in the global variable to the signal processor through an SPI interface. The signal processor receives and loads these parameters to complete initialization configuration.
[0039] In addition, in the preset storage area, in addition to the global variable storage space, a plurality of local variable storage spaces are also provided. The local variable storage spaces are used to temporarily save local variables of different conference scenarios, facilitating quick switching and comparison.
[0040] For example, when the user needs to switch from the "conference mode" to the "break mode", the audio processor first reads and stores the scene configuration file or the audio component set of the "break mode" into an idle local variable storage space. Then, the audio processor compares the local variable with the global variable, and only identifies the parameters that have changed. The audio processor only sends the changed parameters to the signal processor, achieving efficient scene switching.
[0041] The embodiment can achieve an efficient scene switching process. By using the global variable to store the complete configuration and using the local variable to store the current scene configuration, the parameters that need to be updated can be quickly identified. The data transmission amount is reduced, the scene switching time is shortened, and the system response speed is improved. At the same time, since only the changed parameters are updated, the other audio processing procedures that do not change will not be interrupted, effectively avoiding signal jitter or temporary mute problems, and ensuring the continuity and stability of the audio processing of multiple conference rooms.
[0042] In addition, based on the applied global variable, the user can change the parameter value of the audio component through the web input page to make the conference scene meet the current scene starting demand. The global parameter update will cause the audio processing procedures of all conference rooms to be forcibly interrupted, resulting in signal jitter or temporary mute, and affecting the continuity of the conference. When the user modifies the parameter of a certain audio component alone, if the global parameter update is directly triggered, the audio processing procedures of other conference rooms will be disturbed.
[0043] Therefore, in response to the audio component parameter modification instruction, the audio component parameter value corresponding to the audio component parameter modification instruction is obtained, and the audio component parameter value is saved to the global variable to generate an instant difference set of the audio component parameter value and is sent to the signal processor for execution, so that the change of the audio component parameter can be quickly realized without repeated starting, and the efficiency of the conference scene starting is improved.
[0044] The audio component parameter modification instruction is triggered by the user through the web interface operation or an external control signal, and the parameter value includes a component identifier and a modified numerical value. The global variable is stored in a storage chip at the ARM end, and specifically, the data structure of the global variable is kept synchronous with the parameter set in the scene starting file. The instant difference set only includes the identifier and the numerical value of the modified parameter, and is transmitted to the DSP end through the SPI interface. After the signal processor analyzes the difference set, only the processing logic parameter of the target audio component is updated, without reloading all parameters.
[0045] Specifically, when a user adjusts the microphone gain parameter of a certain conference room, the system captures the parameter modification instruction, extracts the gain value and the corresponding microphone identifier. The gain value is written into the corresponding microphone parameter item in the global variable, ensuring that the modified value can be correctly inherited during subsequent scene switching. At the same time, a difference set data packet containing only the microphone identifier and the gain value is generated. After receiving the difference set at the DSP end, the corresponding microphone processing module in the signal topology graph is located, and the gain register value is directly updated. Since other unmodified parameters are not included in the difference set, the DSP end does not need to interrupt the running of other conference room audio processing procedures. For example, when the gain value is adjusted from 0 dB to +3 dB, the difference set only transmits the 3 dB increment value, and the parameter update is completed within 20 ms at the DSP end, avoiding perceptible audio interruption.
[0046] In a specific implementation, in response to the audio component parameter modification instruction, an audio component parameter value corresponding to the audio component parameter modification instruction is obtained. For example, during a conference, a user adjusts the microphone gain through a control panel, and the system receives the gain adjustment instruction.
[0047] The audio component parameter value is saved to a global variable. Specifically, the system updates the new microphone gain value to the corresponding parameter position in the global variable. An instant difference set of the audio component parameter value is generated and sent to the signal processor for execution. Further, the system compares the new and old gain values, generates a difference data packet containing only the changed parameter, and sends it to the DSP chip in real time through the SPI interface.
[0048] Based on this, the present application realizes real-time adjustment of the audio parameters of a single conference room without interrupting the audio processing of other conference rooms. This improves the flexibility and user experience of the system, while avoiding the audio interruption problem caused by global parameter update. Further, by transmitting only the difference data, the amount of data transmission is reduced, and the system response speed is improved.
[0049] Further, considering the comparison efficiency between the local variable and the global variable, i.e., the step of obtaining the parameter value difference between the local variable and the global variable and generating a difference parameter set of the parameter value difference, includes: The parameter values of the same audio component are extracted from the local variable and the global variable respectively, and a hierarchical hash algorithm is used to locate the target audio component with different parameter values. The difference parameter set is generated according to the parameter value difference of the target audio component.
[0050] The embodiment is designed based on the problem that if the parameter set is not structured indexed and consistently compared, the parameter comparison efficiency is low, the audio components actually changed cannot be accurately identified, the difference set contains redundant parameters, the processing burden of the signal processor is increased, and the real-time performance of the scene switching is affected when determining the target audio component by comparing the local variable with the global variable. Therefore, the same parameter values of the audio components are extracted from the local variable and the global variable by taking the audio component identifier as a reference, and the target audio component with inconsistent parameter values is obtained after filtering the audio components with consistent parameter values.
[0051] The audio component is uniquely marked by an audio component identifier, the audio component identifier is generated by using a hexadecimal coding rule, each identifier corresponds to an independent functional module in a signal topology graph, for example, the identifier of a reverberator is 0xA1, and the identifier of a noise reducer is 0xB2. The parameter set contains all configurable parameters of the component, including a gain value, a filter coefficient, a delay time and the like. In the specific comparison process, a hierarchical hash algorithm is used to define the target audio component with different parameter values. Specifically, a hash table is used to establish a mapping relationship between the audio component and the parameter set, and the hierarchical hash function is implemented by using an FNV-1a algorithm to quickly find. The consistency comparison adopts a byte-by-byte comparison mechanism, when it is detected that there is a difference in any one parameter value, it is determined that the audio component corresponding to the parameter value is a target to be updated, and the nodes with consistent comparison in the hash table are dynamically removed by using a linked list structure to filter, and the parameter values of the difference nodes are retained to generate a target list.
[0052] Specifically, the global variable storage space stores all the parameters currently running, and the local variable storage space stores the configuration parameters of the scene to be switched. When the parameter comparison is performed, the audio component identifiers in the local variable storage space are traversed, and the corresponding parameter set in the global variable is quickly located by using the hash table. The parameter set of each audio component is encapsulated as an independent data packet, and the data packet header includes an identifier and parameter length information. For example, the reverberator parameter packet includes 32 bytes of reflection time parameters and 16 bytes of attenuation coefficients. The payloads of the two data packets are compared byte by byte, and when it is found that the gain value of the 5th byte changes from 0x7F to 0x8A, the component is immediately added to the target list. After the traversal of all the identifiers is completed, the target list only contains the component identifiers of the parameters changed, for example, the identifiers 0xA1 and 0xC3 correspond to the components. The signal processor only needs to load the difference parameters of the two components, avoids the processing delay caused by reloading all the parameters, and thus ensures the continuity of each audio channel during the multi-conference room scene switching.
[0053] In a specific application process, the parameter values of the audio component identified as a reference are extracted in the local variable and the global variable respectively, and the extracted parameter values are generated into a parameter group in units of audio components. For example, for the audio component "EQ1", the parameter group identified as "EQ1" is searched in the local variable and the global variable respectively. The consistency of the parameter values in the parameter group under the same audio component identification is compared. Specifically, the parameter values of "EQ1" in the local variable are compared with the parameter values of "EQ1" in the global variable one by one.
[0054] After filtering the audio component identification with consistent parameter values, the target audio component is obtained. If the parameter value of "EQ1" is inconsistent in the local variable and the global variable, "EQ1" is determined as the target audio component.
[0055] Based on this, the audio component that has parameter changes can be quickly located, and comprehensive updating of all audio components is avoided. This targeted parameter updating method reduces the data transmission amount, improves the efficiency of scene switching, reduces the interference to other unchanged audio components, and ensures the continuity and stability of audio processing.
[0056] In addition, considering that the current conference scene and the to-be-switched conference scene affect the scene sound effect of the to-be-switched conference scene due to environmental noise, the difference parameter set of the audio component is generated by obtaining the floating threshold of the audio component, that is, the step of generating the difference parameter set according to the parameter value difference of the target audio component, comprising: obtaining the floating threshold of the audio component, wherein the floating threshold is calculated by calculating a threshold calculation model of the audio component; the difference parameter set is obtained by the parameter value difference and the floating threshold.
[0057] In this embodiment, the floating threshold value of the audio component is obtained according to the component type of the audio component, which can also be defined as the dynamic threshold value of the audio component. Specifically, according to the component type of the audio component, a corresponding threshold value calculation model is provided. The component type of the audio component is defined in the form of a parameter value, which includes a continuous parameter, a discrete parameter, and a correlation parameter. That is, a corresponding threshold value calculation model is set according to the parameter value form of the audio component, and the floating threshold value of the audio component is calculated according to the threshold value calculation model. Specifically, based on the continuous parameter, the threshold value calculation model is the basic sensitivity + environmental factor, for example, the volume parameter: the basic value is 0.5 dB, and the noise environment is amplified to 1.2 dB. The threshold value calculation model of the discrete parameter is to directly compare the original value, for example, the switch state (0 / 1) is strictly matched; the threshold value calculation model of the correlation parameter is limited to zero (forced update) if the upstream parameter is changed, for example, when the EQ center frequency is changed, the Q value is updated accordingly. Based on this, the floating threshold value of the audio component is obtained according to the threshold value calculation model of the audio component, and the difference parameter set is calculated according to the floating threshold value and the parameter value difference. The parameter value difference is essentially the numerical difference between the global variable and the local variable of the same audio component, or the gear difference and other processing logic parameter difference values based on the audio component. Therefore, according to the parameter value difference and the floating threshold value, the difference parameter value generated is essentially the adjustment value of the processing logic parameter of the current audio component in the current application scenario to the processing logic parameter of another conference scenario.
[0058] Considering the readability and execution efficiency of the scene configuration file, that is, the execution of the DSP when the scene configuration file needs to be sent, considering the execution efficiency caused by the amount of data sent, the scene configuration file is format-converted, that is, the step of saving the parameter value of the audio component as a local variable includes: The corresponding binary data conversion rule of the audio component is obtained in a preset parameter mapping table, wherein the preset parameter mapping table pre-stores the mapping relationship between all audio components and the corresponding binary data conversion rule; The parameter value of the audio component is converted into a binary data block based on the binary data conversion rule, and the binary data block is saved as the local variable.
[0059] In this embodiment, the parameter values stored by the global variable and the local variable are transmitted and parsed in text format, which causes the signal processor to consume additional resources for format conversion when executing the difference parameter set, affecting the real-time performance and efficiency of scene switching. Based on this, the binary data block corresponding to the parameter value of the audio component can be obtained in the preset parameter mapping table, so as to generate a binary format file by using the obtained binary database to store a binary structure, and the binary structure includes the global variable and the local variable, that is, the global variable and the local variable based on the binary structure.
[0060] In the preset parameter mapping table, the mapping relationship between the parameter value and the binary data block is established through a parameter unique identifier, and the data type and storage length of each parameter value are defined in the mapping table in advance. The binary data block uses a fixed-length byte sequence to represent the parameter value, eliminating redundant characters in the text format. The binary structure stores the global variable and the local variable by means of continuous memory allocation, and the storage space layout is aligned with the memory access mode of the signal processor.
[0061] Specifically, when a global variable or a local variable needs to be generated, the parameter value is converted into the corresponding binary data block according to the parameter mapping table. For example, a gain value of -3.5 dB is a floating-point parameter, which corresponds to a binary data block with a length of 4 bytes in the mapping table, and is converted into a hexadecimal representation through the IEEE 754 standard. A plurality of binary data blocks are spliced in the order of parameter identifiers to form a binary format file, and the binary format file is directly stored in the storage space as a binary structure. When executing the difference parameter set, the signal processor directly reads the parameter value of the target audio component in the binary structure through memory address offset, without the need for text parsing and data type conversion. This processing mechanism can reduce the processing time of a single parameter from milliseconds to microseconds, and is particularly suitable for conference scene switching scenarios that include hundreds of parameters.
[0062] In the specific conversion process, the preset parameter mapping table can be implemented by using the data structure of a hash table. The key in the hash table is the parameter identifier of the audio component, and the value is the corresponding binary data block. For example, for an audio gain parameter, it can be mapped to a 16-bit binary data block.
[0063] Further, the binary format file can adopt a custom file format, such as ".bin" extension. The file header includes version information, timestamp, and other metadata, followed by the binary data of the global variable and the local variable.
[0064] Specifically, the binary structure can be designed to include two main fields: a global variable array and a local variable array. Each array element corresponds to a parameter set of an audio component. For example: struct BinaryStruct { GlobalVar globalVars[MAX_COMPONENTS]; LocalVar localVars[MAX_COMPONENTS]; }; Among them, GlobalVar and LocalVar are custom structures used to store the parameters of each audio component.
[0065] This embodiment achieves efficient storage and fast access to audio component parameters. Parameter values are converted into binary data blocks, reducing data storage space and improving data transmission efficiency. A preset parameter mapping table simplifies the conversion of parameter values to binary data. Binary data is organized into structured binary files to facilitate data exchange between the ARM and DSP. By distinguishing between global and local variables, differentiated updates are achieved during scene switching, avoiding unnecessary global parameter reloading, thereby reducing audio processing interruptions and signal jitter.
[0066] As shown above, based on the pre-created preset parameter mapping table, in this embodiment, since the data types and storage lengths of different parameters are not clearly identified, the signal processor needs to traverse all binary data blocks for dynamic parsing, resulting in parameter loading delays and low data parsing efficiency.
[0067] Therefore, by setting the corresponding binary data conversion rules of the parameter value settings of the audio component, a preset parameter mapping table is generated according to the correspondence between the parameter value and the binary data conversion rule. The binary data conversion rule is based on the parameter value conversion rule of the corresponding audio component. Therefore, the preset parameter mapping table includes a parameter unique identifier, parameter data type and parameter storage length to realize the limitation of the binary data block.
[0068] The parameter unique identifier is implemented using an integer value, and each identifier corresponds to a unique parameter item of a specific audio component. The parameter data type is defined using an enumeration type, including three basic data types: floating-point, integer, and Boolean. The parameter storage length is recorded in bytes, with the floating-point parameter storage length fixed at 4 bytes and the integer parameter storage length set to 2 bytes or 4 bytes depending on the value range. The preset parameter mapping table is stored in a hash table structure, and a key-value pair index relationship is established through the parameter unique identifier.
[0069] Specifically, when the signal processor receives the difference parameter set, the starting address of the binary data block and the parsing rule are directly located according to the preset parameter mapping table. For example, the gain parameter of a certain audio component is identified as 0x0001 in the mapping table, the data type is floating point, and the storage length is 4 bytes. The signal processor reads 4 bytes of data from the offset address 0x0010 of the binary structure and parses it in the floating point format. Through the predefined data structure, the signal processor does not need to dynamically determine the data type, but directly converts the binary data into the target parameter value. This conversion process can shorten the parameter parsing time to a fixed period, avoid processing delays caused by data type differences, and ensure continuous audio signal without interruption during scene switching.
[0070] Specifically, a corresponding binary data block is set for the parameter value of the audio component. A unique binary data block is allocated for each parameter value of the audio component. For example, for the volume parameter, 8-bit binary data can be used to represent the volume level of 0-255. For the equalizer parameter, 16-bit binary data can be used to represent the gain value of different frequency bands.
[0071] A preset parameter mapping table is generated according to the correspondence between the parameter value and the binary data block. The preset parameter mapping table includes a parameter unique identifier, a parameter data type, and a parameter storage length. In specific implementation, an array of structures can be created, and each structure includes the following fields: Parameter unique identifier: represented by a 32-bit unsigned integer; Parameter data type: represented by an 8-bit unsigned integer, such as 0 for integer type and 1 for floating point type; Parameter storage length: represented by a 16-bit unsigned integer indicating the number of bytes occupied by the parameter.
[0072] Through the setting of the preset parameter mapping table, efficient mapping of audio component parameters and binary data is achieved. The establishment of the preset parameter mapping table simplifies the parameter transmission and parsing process, and reduces the data transmission amount. At the same time, through the definition of a unified data structure, the standardization and scalability of parameter management are improved. This method effectively reduces the communication overhead between ARM and DSP, speeds up the scene switching speed, and improves the overall performance of the audio processor.
[0073] Further, a scene configuration file consistent with the current applicable conference area configuration can also be generated, that is, by determining the environmental parameters of each conference room, changing the default parameter values of the corresponding audio components according to the environmental parameters, and generating a scene configuration file for the conference room for the audio components with the changed default parameters.
[0074] The environmental parameters include at least one of a conference room space size, a wall sound absorption coefficient, and a background noise level, and are obtained through acoustic sensors deployed in the conference room or artificial input.
[0075] Specifically, when there are large space differences between conference rooms in which the audio processor is deployed, for example, a first conference room has an area of 50 square meters and a background noise of 35 dB, and a second conference room has an area of 200 square meters and a background noise of 45 dB, after obtaining the environmental parameters through measurement or an input interface, the decay time of the reverb elimination algorithm is automatically adjusted from the default value of 1.2 seconds to 0.8 seconds for the first conference room and 1.5 seconds for the second conference room, and the threshold of the noise reduction component is adjusted from the default value of 40 dB to 30 dB for the first conference room and 38 dB for the second conference room. The adjusted parameter values are saved as scene configuration files corresponding to the conference rooms, such as “Conference Room A.json” and “Conference Room B.json”. When the scene configuration file of a specific conference room is called, only the difference parameter set matching the environment of the conference room needs to be transmitted, avoiding interruptions in audio processing in other conference rooms due to global parameter updates. For example, when conference room A switches to a break mode, only the parameter differences of the reverb elimination algorithm and the noise reduction component need to be transmitted, and the audio processing flow of conference room B is not affected.
[0076] The above is an example of setting a scene configuration file based on the conference room scene environment. Specifically, the above example essentially determines the environmental parameters of each conference room and changes the default parameter values of the corresponding audio components based on the environmental parameters. The environmental parameters include conference room area, shape, wall material, seat layout, etc. For example, for a conference room with a large area, the volume gain and reverb time can be increased; for a rectangular conference room, the left and right channel balance can be adjusted; and for a wall material with good sound absorption performance, the high-frequency compensation can be appropriately increased.
[0077] Based on this, the audio components with changed default parameters generate the scene configuration file of the conference room. Specifically, the adjusted audio component parameter values are written into a configuration file in JSON format, and each conference room corresponds to an independent scene configuration file. The scene configuration file contains the identifiers of the audio components and their corresponding parameter values.
[0078] Further, multiple scene modes can be preset for different types of conferences, such as “presentation mode”, “discussion mode”, “video conference mode”, etc. The audio component parameter values in each mode are optimized and adjusted according to the conference room environmental parameters.
[0079] Based on this, a customized scene configuration file can be generated for the specific environmental characteristics of each conference room, improving the accuracy and adaptability of audio processing. The audio parameter automatic optimization for different conference room environmental characteristics is realized, improving the accuracy and adaptability of audio processing. At the same time, by generating a customized scene configuration file, the debugging process of the audio system is simplified, and the system configuration efficiency is improved. In addition, the preset multiple conference modes further enhance the flexibility of the audio system, which can quickly adapt to the needs of different types of conferences.
[0080] Further, according to the difference parameter set generated based on the difference between the local variable and the global variable, the conference scene is switched by calling the DSP to execute the difference parameter set, that is, the DSP function is called to configure the processing logic parameters of the audio components according to the difference parameter set, thereby realizing the step of conference scene switching function, including: determining the audio components corresponding to the difference parameter set, the audio components being one or more; changing the processing logic parameters of the audio components to the difference parameter set to switch the conference scene.
[0081] In this embodiment, based on the heterogeneous architecture of the audio processor, the ASP is used to receive a scene switching instruction, and after processing the parameter values of the audio components based on the scene switching instruction, a difference parameter set is obtained, which needs to call the DSP to execute the difference parameter set to realize scene switching. Specifically, the DSP is essentially a process of adjusting the processing logic parameters of the audio components. In this process, the received difference parameter set needs to be parsed to obtain the audio components whose processing logic parameters need to be adjusted, and the processing logic parameters of the audio components are adjusted to the parameter values in the difference parameter set. That is, when receiving the difference parameter set, the parameters are parsed to obtain the audio component identifier, and the parameter values obtained by parsing the difference parameter set are updated to the processing logic parameters of the target audio component to realize scene application.
[0082] Wherein, the DSP receives the difference parameter set through the SPI interface, that is, the ASP sends the difference parameter set to the DSP for execution through the SPI interface, and the difference parameter set only contains the parameter values that change in the audio components associated with the current scene. When parsing the difference parameter set, the binary structure is converted into identifiable parameter key-value pairs, for example, the binary data block is parsed into floating point numbers or integer values according to the preset parameter mapping table. Reading the audio component identifier is based on the unique identifier field in the parameter key-value pair, and the target audio component is quickly matched through the hash table. When updating the parameter values to the target audio component, only the corresponding storage address in the processing logic parameters is modified, and the data of other parameter addresses remains unchanged.
[0083] In a specific embodiment, the signal processor, i.e. DSP, receives the difference parameter set from the ARM end through the SPI interface, which is generated by comparing the local variables with the global variables at the ARM end and only contains the information of the audio components whose parameter values have changed. When the signal processor parses the difference set, it converts the binary data block into specific parameter values according to the preset parameter mapping table, for example, 4-byte binary data is parsed into a gain value. By extracting the identifier field in the parameter key-value pair, the signal processor looks up the corresponding audio component processing logic module in the internal register. The parsed parameter value is directly written into the parameter storage area of the target audio component, for example, the gain value is updated to the coefficient register of the reverberation algorithm, without reloading other unchanged parameters. In this way, the signal processor only performs incremental update on the difference parameters, avoids the interruption of the processing flow caused by global parameter loading, and ensures the continuity of audio processing.
[0084] As a preferred embodiment, in the implementation process, the signal processor receives a difference parameter set data packet from the control end through the SPI communication interface, which is packaged in binary encoding format. The decoding module decodes the data packet to separate the audio component identifier field and the corresponding parameter value field. According to the identifier matching rule, the register address space of the target audio component is located in the memory mapping table in the DSP. The updated parameter value is written into the corresponding register through direct memory access, and the parameter verification mechanism is triggered to ensure that the value takes effect immediately after being written. In the execution process, only the parameters with differences are incrementally updated, and the audio components not involved remain in the original running state.
[0085] Further, before the step of changing the processing logic parameters of the audio components to the difference parameter set to switch the conference scene, the method further comprises: determining the update type of the audio components; if the update type is immediate update component, performing the step of changing the processing logic parameters of the audio components to the difference parameter set to switch the conference scene; if the update type is smooth transition component, performing the step of changing the processing logic parameters of the audio components to the difference parameter set to switch the conference scene by using a pre-set smooth transition mechanism.
[0086] In this embodiment, to solve the problem of smooth transition during audio scene switching, a gradual transition mechanism is provided, so that when the scene is switched, the parameter values of all audio components are not directly updated, but gradually adjusted within a short and perceptible time period, so as to achieve the effect of audio smooth transition. Specifically, according to the functionality of the audio component, it is classified by type, which includes immediate update type and smooth transition type, that is, according to the type of the audio component, the parameter values are updated slowly by the pre-set smooth transition mechanism.
[0087] Specifically, the smooth transition mechanism includes a gradual curve design, that is, a gradual curve for updating the parameter values of the audio component set to the smooth transition type is set, and the gradual curve includes linear gradual change, logarithmic gradual change, and S-shaped curve. The most suitable gradual change mode can be set according to the attribute characteristics of different audio components. That is, if the update type is a smooth transition component, the step of changing the processing logic parameters of the audio component to the difference parameter set to switch the conference scene by the pre-set smooth transition mechanism includes: obtaining an update curve of the audio component, the update curve including a linear gradual change curve, a logarithmic gradual change curve, and an S-shaped gradual change curve; updating the processing logic parameters of the audio component to the difference parameter set based on the update curve.
[0088] In this embodiment, the corresponding update curve is set according to the characteristics of the audio component. Specifically, the update curve includes a linear gradual change curve, a logarithmic gradual change curve, and an S-shaped gradual change curve. In another embodiment, the update curve of the audio component can be generated by calling an update curve generator. The update curve generator can select a matching gradual change model based on a curve template library, including a linear trajectory model suitable for volume parameters, a logarithmic decay model suitable for equalizer parameters, and an S-shaped gradual change model suitable for reverb parameters. Moreover, by selecting the model, the current parameter value is taken as the starting point, and the target value of the difference parameter set is taken as the end point; or the end point parameter value generated by combining the current parameter value with the target value in the difference parameter set is automatically calculated in the pre-set transition time axis to obtain the update curve of the audio component.
[0089] Specifically, the calculation process of the update curve introduces an anti-shake filter to eliminate instantaneous distortion caused by parameter jumping. The finally generated parameter sequence is written into the gradual change register of the DSP through an asynchronous channel, and the hardware automatically performs frame-by-frame interpolation, so as to achieve an aurally imperceptible scene migration effect.
[0090] Further, priorities are set for different types of audio parameters, so that parameters of key audio components are prioritized for smooth transition updating. That is, if the update type is a smooth transition component, the step of changing the processing logic parameters of the audio component to the difference parameter set to switch the conference scene is performed by a pre-set smooth transition mechanism, including: determining an update priority according to the component type of the audio component; changing the processing logic parameters of the audio component to the difference parameter set in sequence through the update priority.
[0091] In this embodiment, after determining the corresponding audio component whose processing logic parameters need to be updated by analyzing the difference parameter set, the execution order of different audio components in the parameter update sequence is determined according to the audio component by querying a priority mapping table. In the priority mapping table, the voice enhancement component can be set as the highest priority to ensure that the voice clarity is stabilized first in the scene switching; the environmental sound effect component can be set as the secondary priority to allow its parameter to be adjusted with a delay. Specifically, the relevant limitations can be made based on the substantive conference scene.
[0092] Based on this, an ordered audio component update queue is generated by a dispatcher according to the determined priority of the audio component, and the difference parameter set is injected into the parameter buffer of each audio component in the audio component update queue in sequence. The processing logic parameters of the high-priority audio component are changed to take effect within a single audio processing period, while the processing logic parameters of the low-priority component are updated in batches in a time slice rotation manner. Thus, the processing overload caused by concurrent updating of multiple components is avoided, and the continuity of the conference audio stream is maintained.
[0093] The above shows the specific implementation process of the embodiments of the present application. The present application stores the parameter subset of the scene-associated component in a local variable, compares it with a global variable to generate a difference set, updates only the target audio component parameter of the signal processor, eliminates the global interruption problem in the multi-conference room scene, ensures that there is no signal jitter and the switching delay is reduced to milliseconds during conference switching, greatly reduces the parameter transmission amount, and further improves the efficiency of the calling scene.
[0094] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the control method of the conference scene switching of the present application. More forms of simple transformation based on this technical concept are within the protection scope of the present application.
[0095] The application provides a conference scene switching control device, which comprises at least one processor and a memory connected with the at least one processor; the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the conference scene switching control method and the scene switching signal execution method in the above embodiment one.
[0096] Reference will be made to the following description Figure 2 which shows a structural schematic diagram of a conference scene switching control device suitable for being used to implement the embodiments of the application. The conference scene switching control device in the embodiments of the application can include, but is not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (Personal Digital Assistant), PADs (Portable Application Description), and the like, and fixed terminals such as desktop computers and the like. Figure 2 The illustrated conference scene switching control device is only an example, and should not bring any limitation to the functions and use range of the embodiments of the application.
[0097] As Figure 2As shown, the conference scene switching control device can include a processing device 1001 (e.g., a central processing unit, a graphics processing unit, etc.) that can perform various appropriate actions and processes according to programs stored in a read-only memory (ROM) 1002 or programs loaded from a storage device 1003 into a random access memory (RAM) 1004. Various programs and data required for operation of the conference scene switching control device are also stored in the random access memory 1004. The processing device 1001, the read-only memory 1002, and the random access memory 1004 are connected to each other by a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: input devices 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; the storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the conference scene switching control device to communicate wirelessly or by wire with other devices to exchange data. Although the conference scene switching control device with various systems is shown in the figure, it should be understood that all of the systems shown are not required to be implemented or possessed. More or fewer systems can be alternatively implemented or possessed.
[0098] In particular, according to embodiments of the present disclosure, the processes described above with reference to the flowcharts can be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a computer readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network by a communication device, or installed from the storage device 1003, or installed from the read-only memory 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the methods of embodiments of the present disclosure are performed.
[0099] The conference scene switching control device provided by the present disclosure adopts the conference scene switching control method in the above-mentioned embodiments, and can solve the technical problem of abnormal audio parameter switching in the existing multi-conference room scene. Compared with the prior art, the conference scene switching control device provided by the present disclosure has the same beneficial effects as the conference scene switching control method provided by the above-mentioned embodiments, and other technical features in the conference scene switching control device are the same as the features disclosed in the previous embodiment method, which will not be repeated here.
[0100] It should be understood that various aspects of the disclosure can be implemented in hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0101] The above description is merely illustrative of the application and is not intended to limit the scope of the application. Any variations and modifications that can be made by any person skilled in the art within the spirit and scope of the application are intended to be encompassed by the application. The scope of the application is defined by the appended claims.
[0102] The application provides a storage medium, which is a computer-readable storage medium having computer-readable program instructions (i.e., a computer program) stored thereon, the computer-readable program instructions being used to perform the conference scene switching control method and the signal execution method of scene switching in the above embodiments.
[0103] The computer-readable storage medium provided by the application may, for example, be a U disk, but is not limited to an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, system, or device, or any combination thereof. More specific examples of the computer-readable storage medium can include, but are not limited to, an electrical connection having one or more conductive wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present embodiment, the computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, system, or device. The program code contained on the computer-readable storage medium can be transmitted in any suitable medium, including but not limited to an electrical wire, an optical cable, an RF (Radio Frequency), or any suitable combination thereof.
[0104] The above computer-readable storage medium can be included in the conference scene switching control device; or can exist separately and not be assembled into the conference scene switching control device.
[0105] The computer readable storage medium described above carries one or more programs, which, when executed by the conference scene switching control device, cause the conference scene switching control device to implement the technical content of the conference scene switching control method and the scene switching signal execution method embodiment as shown above.
[0106] Computer program code for carrying out operations of the present application can be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code can execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection can be made to an external computer (for example, through the Internet using an Internet Service Provider).
[0107] The flow diagrams and the block diagrams in the drawings are illustrations of architectures, functionalities, and operations of possible implementations of systems, methods, and computer program products according to various embodiments of the present application. In this regard, each block in the flow diagrams or block diagrams can represent a module, a segment, or a portion of code, which comprises one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions noted in the blocks can occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and / or flow diagrams, and combinations thereof, can be implemented by special purpose hardware-based systems that perform the specified functions or operations, or combinations of special purpose hardware and computer instructions.
[0108] The modules involved in the embodiments of the present application can be implemented in software or in hardware. In some cases, the name of the module does not constitute a limitation on the module itself.
[0109] The readable storage medium provided by the application is a computer readable storage medium, which stores computer readable program instructions (i.e. computer programs) for executing the control method of the conference scene switching, and can solve the technical problem of abnormal audio parameter switching in the existing multi-conference room scene. Compared with the prior art, the computer readable storage medium provided by the application has the same beneficial effects as the control method of the conference scene switching and the signal execution method of the scene switching provided by the above-mentioned embodiments, and will not be repeated here.
Claims
1. A method for controlling conference scene switching, characterized in that: The control method for conference scene switching is applied to an audio processor, and the control method for conference scene switching includes the following steps: Responding to a scene switching instruction, and obtaining an audio component corresponding to the scene switching instruction; Saving the parameter value of the audio component as a local variable; Obtaining a parameter value difference between the local variable and the global variable, and generating a difference parameter set according to the parameter value difference, wherein a parameter value of a default audio component is obtained when the audio processor is started, and the parameter value is saved as a global variable; The DSP function is called to configure the processing logic parameters of the audio component according to the difference parameter set, thereby realizing the conference scene switching function.
2. The method for controlling conference scene switching according to claim 1, wherein: The step of saving the parameter value of the audio component as a local variable comprises: Obtaining a binary data conversion rule corresponding to the audio component from a preset parameter mapping table, wherein the preset parameter mapping table pre-stores a mapping relationship between all audio components and corresponding binary data conversion rules; The parameter value of the audio component is converted into a binary data block based on the binary data conversion rule, and the binary data block is saved as the local variable.
3. The control method for conference scene switching according to claim 1, characterized in that: The step of obtaining the parameter value difference between the local variable and the global variable and generating a difference parameter set of the parameter value difference includes: Extracting parameter values of the same audio component from the local variables and the global variables respectively, and locating target audio components with different parameter values by using a hierarchical hash algorithm; The difference parameter set is generated according to the difference in parameter values of the target audio component.
4. The method for controlling conference scene switching according to claim 3, wherein: The step of generating the difference parameter set according to the parameter value difference of the target audio component includes: Obtaining a floating threshold of the audio component, wherein the floating threshold is calculated by obtaining a threshold calculation model of the audio component; The difference parameter set is obtained by using the parameter value difference and the floating threshold.
5. The control method for conference scene switching according to claim 1, characterized in that: The step of calling the DSP function to configure the processing logic parameters of the audio component according to the difference parameter set, thereby realizing the conference scene switching function, includes: Determine the audio component corresponding to the difference parameter set, where the audio component is one or more; The processing logic parameters of the audio component are changed to the difference parameter set to switch the conference scene.
6. The control method for conference scene switching according to claim 5, characterized in that: Before the step of changing the processing logic parameters of the audio component to the difference parameter set to switch the conference scene, the method further includes: determining an update type for the audio component; If the update type is to update the component immediately, executing the step of changing the processing logic parameters of the audio component to the difference parameter set to switch the conference scene; If the update type is a smooth transition component, a preset smooth transition mechanism is used to execute the step of changing the processing logic parameters of the audio component to the difference parameter set to switch the conference scene.
7. The control method for conference scene switching according to claim 6, characterized in that: If the update type is a smooth transition component, the step of changing the processing logic parameters of the audio component to the difference parameter set to switch the conference scene using a preset smooth transition mechanism includes: Determining an update priority according to a component type of the audio component; The processing logic parameters of the audio components are sequentially changed to the difference parameter sets according to the update priority.
8. The method for controlling conference scene switching according to claim 6, wherein: If the update type is a smooth transition component, the step of changing the processing logic parameters of the audio component to the difference parameter set to switch the conference scene using a preset smooth transition mechanism includes: Obtaining an update curve of the audio component, where the update curve includes a linear gradient curve, a logarithmic gradient curve, and an S-shaped gradient curve; Based on the update curve, the processing logic parameters of the audio component are updated to the difference parameter set.
9. A control device for switching conference scenes, characterized in that: The conference scene switching control device stores a computer program, and when the computer program is executed by a processor, the conference scene switching control method according to any one of claims 1 to 8 is implemented.
10. A storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by the processor, the control method for conference scene switching according to any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Audio signal processing device, audio signal processing method, and storage medium
CN110992918A
Video conference picture switching method and system, terminal and storage medium
CN117729306A
Communication mode switching method and device of interphone, equipment and storage medium
CN118870392A
Parameter configuration method and apparatus, and electronic device and storage medium
WO2021208812A1