Signal processing method, device, equipment and medium for converting mono to stereo
By filtering and dynamically adjusting the gain of the mono audio signal, left and right channel audio signals are generated, solving the problems of compatibility and auditory experience in mono to stereo conversion, and achieving a natural and comfortable stereo effect.
Patent Information
- Application Number
- CN202211080414.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-05
- Publication Date
- 2025-01-07
- Estimated Expiration
- 2042-09-05
AI Technical Summary
Existing technologies have mono compatibility issues when converting mono music to stereo, which can easily lead to information loss and an unnatural listening experience. In particular, phase adjustment methods may cause frequency points to attenuate or disappear.
After filtering the mono audio signal, dynamic gain adjustment is performed to generate left and right channel audio signals, making their contents different and their sum a multiple of the mono audio signal, thus ensuring mono compatibility. The sound field is also widened through non-linear processing.
It effectively ensures mono compatibility, avoids information loss, overcomes the shortcomings of unnatural and distorted sound field, and improves the user's listening experience.
Smart Images

Figure CN115460516B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of signal processing technology, and in particular to a signal processing method, device, equipment and medium for converting mono to stereo. Background Art
[0002] As living standards continue to improve, people pay more attention to high-quality spiritual needs, including the demand for sound quality. Due to the limitations of early technology, many classic old songs are only released in mono versions. However, mono versions of music cannot give people a good listening experience, so it is necessary to convert mono to stereo to improve the listening experience.
[0003] In the prior art, there are two main ways to convert mono to stereo. One is the equalization method, in which the tuner adjusts the amplitudes of different frequency points of the left and right channels based on psychoacoustic experience to achieve the effect of widening the sound field; the other is the phase adjustment method, which adjusts the phases of different frequency components in the left and right channels so that the signals of the same frequency point in the left and right channels reach the human ear with different delays, thereby obtaining a wide sound field.
[0004] However, the equalization method has the problem of mono compatibility, that is, the original mono content cannot be fully restored by adding the left and right channels, which easily leads to the loss of musical elements. The phase adjustment method will bring unnatural listening experience because it changes the original phase relationship between different frequency points in the original mono channel, and there is a phase cancellation problem, that is, at certain frequency points, these frequency points will attenuate or even disappear due to the 180-degree phase difference, thus failing to ensure mono compatibility. Summary of the invention
[0005] The present invention provides a mono-to-stereo signal processing method, device, equipment and medium, which can effectively ensure mono compatibility and avoid the risk of information loss, while overcoming the shortcomings of unnatural and distorted sound fields, thereby improving the user's auditory experience.
[0006] According to one aspect of the present invention, a signal processing method for converting mono to stereo is provided, the method comprising:
[0007] Acquire a mono audio signal, and filter the mono audio signal to obtain a filtered signal;
[0008] Performing dynamic gain adjustment processing on the filtered signal to obtain a gain adjustment signal;
[0009] The mono audio signal is processed based on the gain adjustment signal to obtain a left channel audio signal and a right channel audio signal; wherein the contents of the left channel audio signal and the right channel audio signal are different, and the signal obtained by adding the left channel audio signal and the right channel audio signal is a multiple of the mono audio signal.
[0010] Optionally, processing the mono audio signal based on the gain adjustment signal to obtain a left channel audio signal and a right channel audio signal includes:
[0011] Adding the mono audio signal to the gain adjustment signal to obtain a sum signal, and subtracting the mono audio signal from the gain adjustment signal to obtain a difference signal;
[0012] The sum signal is determined as a left channel audio signal, and the difference signal is determined as a right channel audio signal, or
[0013] The difference signal is determined as a left channel audio signal, and the sum signal is determined as a right channel audio signal.
[0014] Optionally, filtering the mono audio signal includes:
[0015] At least one of a delay unit, an amplitude filter and a phase filter is used to filter the mono audio signal.
[0016] Optionally, performing dynamic gain adjustment processing on the filtered signal to obtain a gain adjustment signal includes:
[0017] In response to a user feedback event, obtaining a gain parameter of the filtered signal;
[0018] determining a dynamic gain signal of the filtered signal based on the gain parameter;
[0019] A gain adjustment signal is determined based on the filtered signal and the dynamic gain signal.
[0020] Optionally, determining a gain adjustment signal according to the filtered signal and the dynamic gain signal includes:
[0021] A product of the filtered signal and the dynamic gain signal is determined as a gain adjustment signal.
[0022] Optionally, the dynamic gain signal is one of a random noise signal and a sinusoidal signal.
[0023] According to another aspect of the present invention, there is provided a signal processing device for converting mono to stereo, comprising:
[0024] A filtering module, used to obtain a mono audio signal and filter the mono audio signal to obtain a filtered signal;
[0025] A dynamic gain adjustment module, used for performing dynamic gain adjustment processing on the filtered signal to obtain a gain adjustment signal;
[0026] An audio signal processing module is used to process the mono audio signal based on the gain adjustment signal to obtain a left channel audio signal and a right channel audio signal; wherein the contents of the left channel audio signal and the right channel audio signal are different, and the signal after the left channel audio signal and the right channel audio signal are added is a multiple of the mono audio signal.
[0027] Optionally, the audio signal processing module is specifically used to:
[0028] Adding the mono audio signal to the gain adjustment signal to obtain a sum signal, and subtracting the mono audio signal from the gain adjustment signal to obtain a difference signal;
[0029] The sum signal is determined as a left channel audio signal, and the difference signal is determined as a right channel audio signal, or
[0030] The difference signal is determined as a left channel audio signal, and the sum signal is determined as a right channel audio signal.
[0031] According to another aspect of the present invention, there is provided a signal processing electronic device for converting mono to stereo, the electronic device comprising:
[0032] at least one processor; and
[0033] a memory communicatively connected to the at least one processor; wherein,
[0034] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the signal processing method for converting mono to stereo described in any embodiment of the present invention.
[0035] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the signal processing method for converting mono to stereo described in any embodiment of the present invention when executed.
[0036] The technical solution of the embodiment of the present invention obtains a mono audio signal, and performs filtering processing on the mono audio signal to obtain a filtered signal; performs dynamic gain adjustment processing on the filtered signal to obtain a gain adjustment signal; processes the mono audio signal based on the gain adjustment signal to obtain a left channel audio signal and a right channel audio signal; wherein the contents of the left channel audio signal and the right channel audio signal are different, and the signal after the left channel audio signal and the right channel audio signal are added is a multiple of the mono audio signal. This technical solution can effectively ensure mono compatibility and avoid the risk of information loss, while overcoming the shortcomings of unnatural and distorted sound fields, thereby enhancing the user's auditory experience.
[0037] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0039] Figure 1 is a flow chart of a signal processing method for converting mono to stereo provided in accordance with the first embodiment of the present invention;
[0040] Figure 2 is a flow chart of a signal processing method for converting mono to stereo provided in accordance with Embodiment 2 of the present invention;
[0041] Figure 3 is a schematic diagram of a signal processing method for converting mono to stereo provided according to Embodiment 2 of the present invention;
[0042] Figure 4 is a schematic diagram of the structure of a signal processing device for converting mono to stereo provided in Embodiment 3 of the present invention;
[0043] Figure 5 The present invention is a schematic diagram of the structure of an electronic device for implementing a signal processing method for converting mono to stereo according to an embodiment of the present invention. DETAILED DESCRIPTION
[0044] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0045] It should be noted that the terms "first", "second", "target", etc. in the specification and claims of the present invention 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 data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0046] Embodiment 1
[0047] Figure 1 This is a flowchart of a mono-to-stereo signal processing method provided in Embodiment 1 of the present invention. This embodiment is applicable to the case of converting a mono audio signal into a stereo signal. The method can be executed by a mono-to-stereo signal processing device. The mono-to-stereo signal processing device can be implemented in the form of hardware and / or software. The mono-to-stereo signal processing device can be configured in an electronic device with data processing capabilities. Figure 1 As shown, the method includes:
[0048] S110, acquiring a mono audio signal, and filtering the mono audio signal to obtain a filtered signal.
[0049] Among them, a mono audio signal may refer to an audio signal whose channel type is mono. Among them, a mono audio signal may be a digital signal or an analog signal. It should be noted that a mono audio signal is usually a digital signal. If the acquired mono audio signal is an analog signal, it is necessary to convert the analog signal into a digital signal through analog-to-digital conversion before filtering. The filtered signal may refer to a signal obtained after filtering the mono audio signal.
[0050] In this embodiment, after the mono audio signal is obtained, the mono audio signal may be filtered by a filter. Optionally, filtering the mono audio signal includes: filtering the mono audio signal by using at least one of a delay unit, an amplitude filter, and a phase filter.
[0051] Among them, the delay unit may refer to a filter that causes a time delay in the signal. An amplitude filter may refer to a filter used to adjust the amplitude of a signal, for example, an amplitude filter may be a low-pass filter, a high-pass filter, a band-pass filter, and a band-stop filter, etc. A phase filter may refer to a filter used to adjust phase adjustment, for example, a phase filter may be an all-pass filter, etc. It should be noted that in this embodiment, there is no limitation on the filtering method (including filter type and filter parameters), and it can be flexibly set according to the actual auditory perception. For example, one of a delay unit, an amplitude filter, and a phase filter can be selected to filter a mono audio signal, or a plurality of filters can be combined to achieve filtering of a mono audio signal.
[0052] Through such a setting, the present solution can flexibly select the signal filtering method, thereby improving the diversity and flexibility of signal filtering.
[0053] S120, performing dynamic gain adjustment processing on the filtered signal to obtain a gain adjustment signal.
[0054] Among them, the gain adjustment signal may refer to a signal obtained after dynamic gain adjustment processing is performed on the filtered signal. In this embodiment, the filter signal can be dynamically gain adjusted by simulating the time-varying characteristics of the natural sound field to achieve the effect of widening the sound field, thereby obtaining a natural and comfortable sense of hearing. It should be noted that the natural sound field has certain statistical laws as it changes over time, and the change pattern of the natural sound field can be simulated according to the statistical laws, so as to better meet people's hearing needs. Specifically, dynamic gain adjustment can be achieved by performing nonlinear processing on the filtered signal in a random manner or a fixed regular manner. Among them, nonlinear processing can include multiplying or dividing the original signal by another non-constant signal.
[0055] Exemplarily, the filter signal can be modulated by setting a random change signal or a sine-cosine change signal to obtain a gain adjustment signal to achieve dynamic gain adjustment of the filter signal. It should be noted that nonlinear processing can achieve modulation of the original signal, which will completely change the content of the original signal, that is, the signal after nonlinear processing does not contain the original signal content. Therefore, by performing dynamic gain adjustment processing on the filter signal, the sound field can be effectively widened.
[0056] S130, processing the mono audio signal based on the gain adjustment signal to obtain a left channel audio signal and a right channel audio signal; wherein the contents of the left channel audio signal and the right channel audio signal are different, and the signal after the left channel audio signal and the right channel audio signal are added is a multiple of the mono audio signal.
[0057] The left channel audio signal and the right channel audio signal are audio signals of two channels in stereo, respectively. In this embodiment, the mono audio signal can be linearly processed based on the gain adjustment signal to obtain the left channel audio signal and the right channel audio signal containing different signal contents, respectively, so that the signal after the left channel audio signal and the right channel audio signal are added is a multiple of the mono audio signal. The linear processing can include superimposing or subtracting another signal on the basis of the original signal, and multiplying or dividing the original signal by a non-zero constant.
[0058] It should be noted that, for signal processing, linear processing can ensure that the processed signal contains the complete content of the original signal. In addition, if the signal after the addition of the left channel audio signal and the right channel audio signal is a multiple of the mono audio signal, it can be considered that the content of the added signal is consistent with the mono audio signal, but there is a difference in volume, and the volume difference will not affect the consistency of the audio signal, so that mono compatibility can be guaranteed.
[0059] Optionally, a mono audio signal is processed based on a gain adjustment signal to obtain a left channel audio signal and a right channel audio signal, including: adding the mono audio signal to the gain adjustment signal to obtain a sum signal, and subtracting the mono audio signal from the gain adjustment signal to obtain a difference signal; determining the sum signal as a left channel audio signal, and determining the difference signal as a right channel audio signal, or determining the difference signal as a left channel audio signal, and determining the sum signal as a right channel audio signal.
[0060] Among them, the sum signal may refer to a signal obtained by adding a mono audio signal to a gain adjustment signal. The difference signal may refer to a signal obtained by subtracting a mono audio signal from a gain adjustment signal. In this embodiment, the sum signal may be determined as a left channel audio signal, and the difference signal may be determined as a right channel audio signal, or the difference signal may be determined as a left channel audio signal, and the sum signal may be determined as a right channel audio signal. It should be noted that since the mono audio signal is added and subtracted from the same gain adjustment signal to obtain audio signals of the left and right channels, the sum of the audio signals of the two channels is twice that of the mono audio signal, which can meet the mono compatibility. In addition, since the gain adjustment signal changes dynamically over time, the obtained left channel audio signal and right channel audio signal also change dynamically over time, which also achieves the effect of widening the sound field, so that the converted stereo has a natural and comfortable listening experience.
[0061] Through such a setting, this solution can effectively ensure mono compatibility, while obtaining a natural and comfortable listening experience, which can enhance the user's listening experience.
[0062] The technical solution of the embodiment of the present invention obtains a mono audio signal, and performs filtering processing on the mono audio signal to obtain a filtered signal; performs dynamic gain adjustment processing on the filtered signal to obtain a gain adjustment signal; processes the mono audio signal based on the gain adjustment signal to obtain a left channel audio signal and a right channel audio signal; wherein the contents of the left channel audio signal and the right channel audio signal are different, and the signal after the left channel audio signal and the right channel audio signal are added is a multiple of the mono audio signal. This technical solution can effectively ensure mono compatibility and avoid the risk of information loss, while overcoming the shortcomings of unnatural and distorted sound fields, thereby enhancing the user's auditory experience.
[0063] Embodiment 2
[0064] Figure 2 A flowchart of a signal processing method for converting mono to stereo provided in the second embodiment of the present invention, this embodiment is optimized based on the above embodiment. The specific optimization is: dynamic gain adjustment processing is performed on the filtered signal to obtain a gain adjustment signal, including: obtaining a gain parameter of the filtered signal in response to a user feedback event; determining a dynamic gain signal of the filtered signal based on the gain parameter; and determining a gain adjustment signal based on the filtered signal and the dynamic gain signal.
[0065] like Figure 2 As shown, the method of this embodiment specifically includes the following steps:
[0066] S210, acquiring a mono audio signal, and filtering the mono audio signal to obtain a filtered signal.
[0067] S220 , in response to a user feedback event, obtaining a gain parameter of the filtered signal.
[0068] Among them, the user feedback event may refer to an operation instruction of user information feedback. The gain parameter may refer to a parameter related to gain adjustment. For example, the gain parameter may include a maximum gain adjustment value. In this embodiment, when a user feedback event is detected, the event can be responded to by obtaining the gain parameter of the filtered signal fed back by the user. Exemplarily, after determining the filtered signal, the filtered signal and a pre-set gain selection range [0, 1] can be sent to the human-computer interaction interface. The user can adjust the gain of the filtered signal within the gain selection range [0, 1] according to the actual auditory perception through the human-computer interaction interface, and finally select a gain value as the maximum gain adjustment value. When the user's selected operation is detected, the user feedback event can be triggered, and the maximum gain adjustment value fed back by the user is received.
[0069] S230: Determine a dynamic gain signal of the filtered signal based on the gain parameter.
[0070] The dynamic gain signal may refer to a gain signal that varies with time. Optionally, the dynamic gain signal is one of a random noise signal and a sinusoidal signal. It should be noted that the random noise signal and the sinusoidal signal conform to the time-varying characteristics of the natural sound field.
[0071] In this embodiment, the dynamic gain signal of the filter signal can be determined according to the gain parameter. Exemplarily, when the dynamic gain signal is set as a random noise signal, the filter signal and the gain selection range [0, 1] can be first sent to the user, and the gain value selected by the user is used as the maximum gain adjustment value to generate a random noise signal with a mean of 0 and a variance of the maximum gain adjustment value, and the random noise signal changes dynamically between the positive and negative maximum gain adjustment values. If the dynamic gain signal is set as a sinusoidal signal, that is, g = Asin (ω0×n), where g is the gain, ω0 is the angular velocity, and n is the digital signal time, the filter signal, the gain selection range [0, 1] and the angular velocity selection range [0, 40π] can be first sent to the user, and the gain value and angular velocity value selected by the user are used as A and ω0 of the sinusoidal signal, respectively, thereby determining a sinusoidal signal, which changes dynamically within the range of [-A, A].
[0072] S240: Determine a gain adjustment signal according to the filtered signal and the dynamic gain signal.
[0073] In this embodiment, the gain adjustment signal can be determined by nonlinear processing according to the filter signal and the dynamic gain signal. Optionally, the gain adjustment signal is determined according to the filter signal and the dynamic gain signal, including: determining the product of the filter signal and the dynamic gain signal as the gain adjustment signal. In this embodiment, the filter signal and the dynamic gain signal can be directly multiplied to achieve modulation of the filter signal, and the multiplication result is determined as the gain adjustment signal.
[0074] Through such a setting, this solution implements dynamic gain adjustment of the filtered signal in the simplest way, and can obtain a natural and comfortable listening experience by widening the sound field, thereby improving the user's listening experience.
[0075] S250, processing the mono audio signal based on the gain adjustment signal to obtain a left channel audio signal and a right channel audio signal; wherein the contents of the left channel audio signal and the right channel audio signal are different, and the signal after the left channel audio signal and the right channel audio signal are added is a multiple of the mono audio signal.
[0076] The technical solution of the embodiment of the present invention obtains the gain parameter of the filter signal in response to the user feedback event; determines the dynamic gain signal of the filter signal based on the gain parameter; determines the gain adjustment signal according to the filter signal and the dynamic gain signal. The gain adjustment signal that makes the user's hearing comfortable can be determined through the human-computer interaction process, and then the left channel audio signal and the right channel audio signal are determined according to the gain adjustment signal. It can fully consider the user's auditory perception on the basis of effectively ensuring mono compatibility, avoiding the risk of information loss, and overcoming the shortcomings of unnatural and distorted sound field, thereby further improving the user's auditory experience.
[0077] Figure 3 Schematic diagram of a signal processing method for converting mono to stereo provided in Embodiment 2 of the present invention. Figure 3 As shown, the mono audio signal is first filtered to obtain a filtered signal, and then the dynamic gain signal is determined through human-computer interaction, and the filtered signal and the dynamic gain signal are multiplied to obtain a gain adjustment signal, and then the mono audio signal and the gain adjustment signal are added to obtain a left channel audio signal, and at the same time, the mono audio signal and the gain adjustment signal are subtracted to obtain a right channel audio signal. Through this process, the mono audio signal can be converted into a stereo including a left channel audio signal and a right channel audio signal, which effectively ensures mono compatibility, and the sound field is widened through dynamic gain adjustment, so that a natural and comfortable sense of hearing can be obtained, thereby improving the user's auditory experience.
[0078] Embodiment 3
[0079] Figure 4This is a schematic diagram of the structure of a mono-to-stereo signal processing device provided in the third embodiment of the present invention. The device can execute the mono-to-stereo signal processing method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method. Figure 4 As shown, the device comprises:
[0080] The filtering module 410 is used to obtain a mono audio signal and filter the mono audio signal to obtain a filtered signal;
[0081] A dynamic gain adjustment module 420, configured to perform dynamic gain adjustment processing on the filtered signal to obtain a gain adjustment signal;
[0082] The audio signal processing module 430 is used to process the mono audio signal based on the gain adjustment signal to obtain a left channel audio signal and a right channel audio signal; wherein the contents of the left channel audio signal and the right channel audio signal are different, and the signal after the left channel audio signal and the right channel audio signal are added is a multiple of the mono audio signal.
[0083] Optionally, the audio signal processing module 430 is specifically used to:
[0084] Adding the mono audio signal to the gain adjustment signal to obtain a sum signal, and subtracting the mono audio signal from the gain adjustment signal to obtain a difference signal;
[0085] The sum signal is determined as a left channel audio signal, and the difference signal is determined as a right channel audio signal, or
[0086] The difference signal is determined as a left channel audio signal, and the sum signal is determined as a right channel audio signal.
[0087] Optionally, the filtering module 410 is specifically configured to:
[0088] At least one of a delay unit, an amplitude filter and a phase filter is used to filter the mono audio signal.
[0089] Optionally, the dynamic gain adjustment module 420 includes:
[0090] A gain parameter acquisition unit, configured to acquire a gain parameter of the filtered signal in response to a user feedback event;
[0091] a dynamic gain signal determining unit, configured to determine a dynamic gain signal of the filtered signal based on the gain parameter;
[0092] A gain adjustment signal unit is used to determine a gain adjustment signal according to the filtered signal and the dynamic gain signal.
[0093] Optionally, the gain adjustment signal unit is specifically used to:
[0094] A product of the filtered signal and the dynamic gain signal is determined as a gain adjustment signal.
[0095] Optionally, the dynamic gain signal is one of a random noise signal and a sinusoidal signal.
[0096] A mono-to-stereo signal processing device provided in an embodiment of the present invention can execute a mono-to-stereo signal processing method provided in any embodiment of the present invention, and has corresponding functional modules and beneficial effects of the execution method.
[0097] Embodiment 4
[0098] Figure 5 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0099] like Figure 5 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0100] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0101] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as a signal processing method for converting mono to stereo.
[0102] In some embodiments, the signal processing method for converting mono to stereo may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the signal processing method for converting mono to stereo described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the signal processing method for converting mono to stereo in any other appropriate manner (e.g., by means of firmware).
[0103] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0104] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0105] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, 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 foregoing.
[0106] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0107] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0108] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0109] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0110] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A signal processing method for converting mono to stereo, characterized in that: The method comprises: Acquire a mono audio signal, and filter the mono audio signal to obtain a filtered signal; Using a random change signal or a regular change signal, dynamically adjust the filter signal to obtain a gain adjustment signal; Processing the mono audio signal based on the gain adjustment signal to obtain a left channel audio signal and a right channel audio signal; wherein the contents of the left channel audio signal and the right channel audio signal are different, and a signal obtained by adding the left channel audio signal and the right channel audio signal is a multiple of the mono audio signal; The step of performing dynamic gain adjustment processing on the filtered signal to obtain a gain adjustment signal includes: In response to a user feedback event, obtaining a gain parameter of the filtered signal; wherein the gain parameter is a maximum gain value; determining a dynamic gain signal of the filtered signal based on the gain parameter; Wherein, if the dynamic gain signal is set as a random noise signal, a random noise signal with a mean of 0 and a variance as a gain parameter is determined as the dynamic gain signal; if the dynamic gain signal is set as a sine signal, the dynamic gain signal is determined to be g=Asin(ω0×n), where g is the gain, A is the gain parameter, ω0 is the angular velocity, and n is the digital signal time; A product of the filtered signal and the dynamic gain signal is determined as a gain adjustment signal.
2. The method according to claim 1, characterized in that: The mono audio signal is processed based on the gain adjustment signal to obtain a left channel audio signal and a right channel audio signal, including: Adding the mono audio signal to the gain adjustment signal to obtain a sum signal, and subtracting the mono audio signal from the gain adjustment signal to obtain a difference signal; The sum signal is determined as a left channel audio signal, and the difference signal is determined as a right channel audio signal, or The difference signal is determined as a left channel audio signal, and the sum signal is determined as a right channel audio signal.
3. The method according to claim 1, characterized in that The mono audio signal is subjected to filtering processing, comprising: At least one of a delay unit, an amplitude filter and a phase filter is used to filter the mono audio signal.
4. The method according to claim 1, characterized in that The dynamic gain signal is one of a random noise signal and a sinusoidal signal.
5. A signal processing device for converting mono to stereo, characterized in that: The device comprises: A filtering module, used to obtain a mono audio signal and filter the mono audio signal to obtain a filtered signal; A dynamic gain adjustment module, used to perform dynamic gain adjustment processing on the filtered signal using a random change signal or a regular change signal to obtain a gain adjustment signal; an audio signal processing module, configured to process the mono audio signal based on the gain adjustment signal to obtain a left channel audio signal and a right channel audio signal; wherein the contents of the left channel audio signal and the right channel audio signal are different, and a signal obtained by adding the left channel audio signal and the right channel audio signal is a multiple of the mono audio signal; Wherein, the dynamic gain adjustment module includes: A gain parameter acquisition unit, configured to acquire a gain parameter of the filtered signal in response to a user feedback event; wherein the gain parameter is a maximum gain value; a dynamic gain signal determining unit, configured to determine a dynamic gain signal of the filtered signal based on the gain parameter; Wherein, if the dynamic gain signal is set as a random noise signal, a random noise signal with a mean of 0 and a variance as a gain parameter is determined as the dynamic gain signal; if the dynamic gain signal is set as a sine signal, the dynamic gain signal is determined to be g=Asin(ω0×n), where g is the gain, A is the gain parameter, ω0 is the angular velocity, and n is the digital signal time; The gain adjustment signal unit is used to determine the product of the filtered signal and the dynamic gain signal as the gain adjustment signal.
6. The device according to claim 5, characterized in that The audio signal processing module is specifically used for: Adding the mono audio signal to the gain adjustment signal to obtain a sum signal, and subtracting the mono audio signal from the gain adjustment signal to obtain a difference signal; The sum signal is determined as a left channel audio signal, and the difference signal is determined as a right channel audio signal, or The difference signal is determined as a left channel audio signal, and the sum signal is determined as a right channel audio signal.
7. A signal processing electronic device for converting mono to stereo, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the signal processing method for converting mono to stereo according to any one of claims 1 to 4.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the signal processing method for converting mono to stereo according to any one of claims 1 to 4 when executed.
Citation Information
Patent Citations
Efficient and scalable parametric stereo coding for low bit rate audio coding applications
CN1758336A