Method for converting mono to multi-channel based on audio processing and related device
By calculating the gain value in the speaker system to form a virtual speaker, the problem of realizing multi-channel effects in video conferencing is solved, providing multi-channel audio playback and stereo experience, and is suitable for video conferencing systems.
Patent Information
- Application Number
- CN202310069416.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-06
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2043-02-06
AI Technical Summary
Existing technologies struggle to achieve multi-channel stereo playback in video conferencing, especially as the need for audio playback in more areas remains unmet.
By utilizing a combination of virtual and physical loudspeakers in a loudspeaker system, gain values are calculated to create a multi-channel effect. This includes determining the position of the virtual loudspeakers based on the physical loudspeakers and their mirror loudspeakers, and processing mono data using gain values to create multi-channel audio.
It enables multi-channel audio playback in more areas, saving network bandwidth while providing a stereo experience, and is suitable for video conferencing systems.
Smart Images

Figure CN116390015B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of audio, and more particularly to a method and related apparatus for converting mono to multi-channel audio based on audio processing. Background Technology
[0002] Currently, during video conferencing, users often have audio playback requirements that provide stereo sound or a sense of direction and space.
[0003] Therefore, how to achieve multi-channel effects in more areas is a technical problem that urgently needs to be solved by those skilled in the art. Summary of the Invention
[0004] In order to overcome the shortcomings of the prior art, this application provides a method and related equipment for converting mono to multi-channel based on audio processing, which can achieve multi-channel effects in more areas.
[0005] According to one aspect of this application, a method for converting mono to multi-channel audio based on audio processing is provided, applied to a loudspeaker system, the loudspeaker system including at least a first loudspeaker oriented towards a first direction and a second loudspeaker oriented towards a second direction, the first direction being oriented towards a wall of the physical space where the loudspeaker system is located, and the second direction being oriented towards a designated audience position, the method comprising:
[0006] In response to the target sound image being located within the activity area of the second speaker, the wall of the physical space, and the first target sound image formed by the set audience, the gain values of the virtual speaker and the second speaker are calculated based on the positions of the virtual speaker and the second speaker, and the vector relationship between the gain values of the virtual speaker and the second speaker and the position of the target sound image. The position of the virtual speaker is determined based on the first speaker and its mirror speaker, with the wall as a mirror.
[0007] The gain value of the first speaker is determined based on the gain value of the virtual speaker;
[0008] The received mono data is multiplied by the gain values of the first speaker and the second speaker respectively, and played as the channel data of the first speaker and the second speaker.
[0009] In some embodiments of this application, the loudspeaker system further includes a third loudspeaker that projects sound in the second direction.
[0010] In response to the target sound image being located within the second target sound image activity area formed between the second speaker, the third speaker, and the set audience position, the gain values of the second speaker and the third speaker are calculated based on the positions of the second speaker and the third speaker, the vector relationship between the gain values of the second speaker and the third speaker and the position of the target sound image;
[0011] The received mono data is multiplied by the gain values of the second speaker and the third speaker respectively, and played as the channel data of the second speaker and the third speaker.
[0012] In some embodiments of this application, the location of the virtual speaker is:
[0013]
[0014] Where α and β are the weighting factors of the mirror speaker and the first speaker, [u11+2d u12] is the position of the mirror speaker, d is the vertical distance from the first speaker to the wall, and [u11 u12] is the position of the first speaker.
[0015] In some embodiments of this application, the gain values of the virtual speaker and the second speaker are calculated according to the following formula:
[0016]
[0017] Where g = [g1 g2], g1 is the gain value of the virtual speaker, g2 is the gain value of the second speaker, [p1,p2] is the position of the target sound image, and [u21 u22] is the position of the second speaker.
[0018] In some embodiments of this application, the location of the target acoustic image is determined based on a message carrying location information sent by the participating remote end.
[0019] In some embodiments of this application, the position of the target acoustic image is determined based on the position of the far end of the meeting point in the display screen.
[0020] In some embodiments of this application, the sound intensity difference between the mirror speaker and the first speaker is less than 5 dB / ms.
[0021] According to another aspect of this application, an apparatus for converting mono to multi-channel audio based on audio processing is also provided, applied to a speaker system, the speaker system including at least a first speaker oriented towards a first direction and a second speaker oriented towards a second direction, the first direction being towards the wall of the physical space where the speaker system is located, and the second direction being towards a designated audience position, including:
[0022] The first gain value determination module is configured to, in response to the target sound image being located within the activity area of the second speaker, the wall of the physical space, and the first target sound image formed by the set audience, calculate the gain value of the virtual speaker and the second speaker based on the position of the virtual speaker and the second speaker, and the vector relationship between the gain value of the virtual speaker and the second speaker and the position of the target sound image. The position of the virtual speaker is determined based on the first speaker and its mirror speaker, with the wall as a mirror surface.
[0023] The second gain value determination module is configured to determine the gain value of the first speaker based on the gain value of the virtual speaker;
[0024] The channel data calculation module is configured to multiply the received mono data by the gain values of the first speaker and the second speaker respectively, and play them as the channel data of the first speaker and the second speaker.
[0025] According to another aspect of this application, an electronic device is also provided, the electronic device comprising: a processor; and a storage medium having a computer program stored thereon, the computer program being executed by the processor to perform the steps described above.
[0026] According to another aspect of this application, a storage medium is also provided, on which a computer program is stored, the computer program being executed by a processor to perform the steps described above.
[0027] Therefore, the solution provided in this application has the following advantages compared with the prior art:
[0028] A virtual loudspeaker can be formed by a first loudspeaker facing the wall and a mirror loudspeaker mirrored on the wall. This virtual loudspeaker, together with a second loudspeaker projecting sound towards a predetermined audience location, creates a first target sound image area outside the original loudspeaker's target sound image area. The virtual loudspeaker and the second loudspeaker can control the target sound image within this first target sound image area. Therefore, the gain values of the virtual loudspeaker and the second loudspeaker can be calculated based on the determined target sound image position. The gain value of the first loudspeaker can then be determined based on the gain value of the virtual loudspeaker, allowing the first loudspeaker and the second loudspeaker to play different channel data, thus achieving multi-channel and stereo effects. Attached Figure Description
[0029] The above and other features and advantages of this application will become more apparent from a detailed description of exemplary embodiments thereof with reference to the accompanying drawings.
[0030] Figure 1 A flowchart is shown of a method for converting mono to multichannel based on audio processing according to an embodiment of this application.
[0031] Figure 2 A schematic diagram of a loudspeaker system according to an embodiment of this application is shown.
[0032] Figure 3 A schematic diagram illustrating the calculation of gain values based on two loudspeakers according to an embodiment of this application is shown.
[0033] Figure 4 A flowchart of a video conference according to an embodiment of this application is shown.
[0034] Figure 5 A block diagram of an apparatus for converting mono to multichannel based on audio processing according to an embodiment of this application is shown.
[0035] Figure 6 This illustration schematically depicts a computer-readable storage medium according to an exemplary embodiment of the present disclosure.
[0036] Figure 7 The schematic diagram illustrates an electronic device according to an exemplary embodiment of the present disclosure. Detailed Implementation
[0037] Exemplary embodiments will now be described more fully with reference to the accompanying drawings. However, these exemplary embodiments can be implemented in many forms and should not be construed as limited to the examples set forth herein; rather, they are provided to make this application more comprehensive and complete, and to fully convey the concept of the exemplary embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
[0038] Furthermore, the accompanying drawings are merely illustrative of this application and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and therefore repeated descriptions of them will be omitted. Some block diagrams shown in the drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software, in one or more hardware modules or integrated circuits, or in different network and / or processor devices and / or microcontroller devices.
[0039] The flowchart shown in the attached diagram is merely an illustrative example and does not necessarily include all steps. For example, some steps may be broken down, while others may be combined or partially combined. Therefore, the actual execution order may change depending on the specific circumstances.
[0040] In order to overcome the shortcomings of the existing technology, this application provides a method and related equipment for converting mono to multi-channel based on audio processing, which can achieve multi-channel effects in more areas.
[0041] See below. Figure 1 , Figure 1 A flowchart of a method for converting mono to multichannel based on audio processing, according to an embodiment of this application, is shown. The method is applied to a loudspeaker system, which includes at least a first loudspeaker projecting sound in a first direction and a second loudspeaker projecting sound in a second direction. The first direction is towards a wall in the physical space where the loudspeaker system is located, and the second direction is towards a designated audience position. The method includes:
[0042] Step S110: In response to the target sound image being located within the activity area of the first target sound image formed by the second speaker, the wall of the physical space, and the set audience, the gain values of the virtual speaker and the second speaker are calculated based on the positions of the virtual speaker and the second speaker, and the vector relationship between the gain values of the virtual speaker and the second speaker and the position of the target sound image.
[0043] The position of the virtual speaker is determined based on the first speaker and its mirror speaker, with the wall surface serving as a mirror.
[0044] Specifically, the virtual sound source to be formed by multi-channel audio playback through multiple speakers in a space containing multiple speakers (so that the listener experiences the sound as a virtual sound source) is the target sound image.
[0045] Specifically, refer to Figure 2 The loudspeaker system includes at least a first loudspeaker (P1) that projects sound towards the wall and a second loudspeaker (P2) that projects sound towards a designated audience location. Thus, the first loudspeaker P1, with the wall as a mirror, forms a mirror loudspeaker P1', and the first loudspeaker P1 and the mirror loudspeaker P1' together form a virtual loudspeaker. The sound intensity difference between the first loudspeaker P1 and the mirror loudspeaker P1' can be less than 5 dB / ms to ensure that the sound intensity and time of the sound from the first loudspeaker P1 and the mirror loudspeaker P1' reaching the designated audience location do not differ excessively.
[0046] Specifically, the mirror sound pressure or intensity of the mirror speaker P1' is controlled by the first speaker P1. Since the first speaker P1 does not project sound towards the designated audience location, for a listener at the designated audience location, the sound pressure of the first speaker P1 is β * the sound pressure of the first speaker, and the sound pressure of the mirror speaker P1' is α * the sound pressure of the first speaker, where α and β are the weighting factors of the mirror speaker P1' and the first speaker P1, respectively. Furthermore, since the mirror speaker P1' and the first speaker P1 are mirror images of the wall, when the position coordinates of the first speaker are [u11, u12], the position coordinates of the mirror speaker P1' are [u11+2d, u12], where d is the vertical distance from the first speaker P1 to the wall.
[0047] Based on the position coordinates of the mirror speaker P1' and the first speaker P1, the position coordinates of the virtual speaker can be calculated. Specifically, the position coordinates of the virtual speaker [u 虚 ,v 虚 ]for:
[0048]
[0049] Where α and β are the weighting factors of the mirror speaker and the first speaker, [u11+2d, u12] are the position coordinates of the mirror speaker, d is the vertical distance from the first speaker to the wall, and [u11, u12] are the position coordinates of the first speaker.
[0050] Specifically, after determining the position of the virtual speaker, the gain values of the virtual speaker and the second speaker can be calculated based on their positions, the vector relationship between their gain values and the position of the target sound image, and the following will be discussed in detail. Figure 3 Describe it.
[0051] Step S120: Determine the gain value of the first speaker based on the gain value of the virtual speaker.
[0052] Specifically, after obtaining the gain value of the virtual speaker in step S110, the gain value of the first speaker can be determined based on the vector relationship between the virtual speaker, the first speaker, and the mirror speaker.
[0053] Step S130: Multiply the received mono data by the gain values of the first speaker and the second speaker respectively, and play it as the channel data of the first speaker and the second speaker.
[0054] The method for converting mono to multi-channel audio based on audio processing provided in this application uses a first speaker facing a wall and a mirror speaker formed by mirroring the wall to create a virtual speaker. This virtual speaker, along with a second speaker facing a predetermined audience location, forms a first target sound image activity area outside the target sound image activity area that the original speakers could form. The virtual speaker and the second speaker can control the target sound image within this first target sound image activity area. Therefore, the gain values of the virtual speaker and the second speaker can be calculated based on the determined position of the target sound image. The gain value of the first speaker is then determined based on the gain value of the virtual speaker, allowing the calculated gain values to enable the first speaker and the second speaker to play different channel data, thereby achieving multi-channel and stereo effects.
[0055] See below. Figure 2 , Figure 2 A schematic diagram of a loudspeaker system according to an embodiment of this application is shown. Figure 2 As shown, the loudspeaker system may further include a third loudspeaker P3 that projects sound in the second direction. In this embodiment, in response to the target sound image being located within the second target sound image activity area formed between the second loudspeaker P2, the third loudspeaker P3, and the set audience position, the gain values of the second loudspeaker P2 and the third loudspeaker P3 are calculated based on their positions, the vector relationship between their gain values and the position of the target sound image, and the received mono data is multiplied by the gain values of the second loudspeaker and the third loudspeaker respectively, and played as the channel data of the second loudspeaker and the third loudspeaker. Further, the loudspeaker system may further include a fourth loudspeaker P4 that projects sound towards the other side wall, thereby forming a virtual loudspeaker with its mirror loudspeaker P4'. This virtual loudspeaker, together with the third loudspeaker, controls the target sound image located within the third target sound image activity area formed between the third loudspeaker P3, the virtual loudspeaker (formed by the fourth loudspeaker), and the set audience position. The processing method is the same as that of the first loudspeaker and will not be described in detail here. Figure 2 This application merely illustrates one speaker system and is not intended to limit the scope of the application. The number, orientation, and physical wall position of the speakers are not limited to this. The application can achieve different target sound image activity areas and extended activity areas based on virtual speakers based on different speaker combinations.
[0056] See below. Figure 3 , Figure 3 A schematic diagram illustrating the calculation of gain values based on two loudspeakers according to an embodiment of this application is shown. Figure 3As shown, a Cartesian coordinate system is formed with the set audience position as the origin, and the two speakers are speaker A and speaker B.
[0057] Based on vector relationships, the position of the target acoustic image is P = g1*U1 + g2*U2, where U1 is the coordinate of speaker A, U2 is the coordinate of speaker B, g1 is the gain value of speaker A, and g2 is the gain value of speaker B. This formula can be converted to P T = g * U12, where g = [g1g2], P = [p1, p2] T p1 and p2 are the x and y coordinates of the target acoustic image in the Cartesian coordinate system, respectively. Where u11 and u12 are the x and y coordinates of speaker A in the Cartesian coordinate system, and u21 and u22 are the x and y coordinates of speaker B in the Cartesian coordinate system.
[0058] Therefore, the gain value can be calculated based on the following formula:
[0059]
[0060] The above formula can be directly applied to the calculation of the gain values of the second and third loudspeakers. Furthermore, when calculating the gain value, g = [g1g2], and amplitude gain normalization can be performed on the gain value, thus obtaining g1. 2 +g2 2 =1. Therefore, the gain value g1 of speaker A and the gain value g2 of speaker B can be obtained by solving.
[0061] Furthermore, when speaker A is the aforementioned virtual speaker, due to the coordinates of the virtual speaker... Therefore, the formula for calculating the gain value can be converted to:
[0062]
[0063] Where g = [g1g2], g1 is the gain value of the virtual speaker, g2 is the gain value of the second speaker, α and β are the weighting factors of the mirror speaker and the first speaker, d is the vertical distance from the first speaker to the wall, [p1,p2] is the position of the target sound image, [u11,u12] is the position of the first speaker, and [u21u22] is the position of the second speaker.
[0064] In some embodiments of this application, the location of a target audio-visual image can be determined based on a video conference. Specifically, this application is applied to video conferencing, thereby enabling the determination of the location of the target audio-visual image based on the data transmission or display settings of the video conference.
[0065] In some embodiments, the location of the target acoustic image can be determined based on a message carrying location information sent by the remote end. When the remote end has multiple microphones forming a microphone array, the sound source can be located based on the microphone array, or the location of the microphone with the largest proportion in the microphone array mixing algorithm can be used as the sound source. Thus, the efficiency of location information acquisition can be improved by using a microphone matrix. After obtaining the location of the target acoustic image, the remote end can send the location information to the near end via a control message transmission protocol. In some specific implementations, the location information can be transmitted based on a control message transmission protocol (such as the Realtime Transport Control Protocol). For example, a location field can be added to the message for location information transmission. In other specific implementations, location information can also be transmitted using other proprietary protocols. Transmitting location information via messages results in a smaller data volume for the location information, requiring less network bandwidth and thus improving transmission efficiency. Many other variations are possible in this application, but will not be elaborated here.
[0066] In other embodiments, during a video conference, each participating remote end is displayed on the screen of the participating near end, thereby determining the position of the target audio-visual image based on the position of the participating remote end on the screen. For example, when the participating terminal is located on the left side of the screen, the target audio-visual image position can be determined to be on the left; when the participating terminal is located on the right side of the screen, the target audio-visual image position can be determined to be on the right.
[0067] Therefore, in video conferencing, by determining the location of the target sound image, the gain value of each speaker can be calculated based on the positions of multiple speakers, the vector relationship between the gain value of each speaker and the position of the target sound image, and the received mono data is multiplied by the gain value of each speaker to obtain the channel data for each speaker for playback. Thus, participating terminals do not need to transmit stereo or multi-channel data; they only need to transmit mono data, which can then be converted into multi-channel data. This saves network bandwidth while achieving multi-channel and stereo effects.
[0068] See below. Figure 4 , Figure 4 A flowchart of a video conference according to an embodiment of this application is shown.
[0069] like Figure 4 As shown, the microphone array at the near end of the device collects speech data from the sound source at the near end.
[0070] Step S101: Locate the sound source position at the near end of the meeting using a microphone array, and perform 3A (AEC echo control, ANS speech noise reduction, AGC speech enhancement) speech preprocessing on the speech data.
[0071] Step S102: Add the location information of the sound source to the reserved field in the Realtime Transport Control Protocol (RTCP) message or a custom private protocol, and send it to the remote end of the meeting.
[0072] Step S103: Transmit mono audio data based on Real-time Transport Protocol (RTP) and send it to the remote participants.
[0073] The near end of the meeting receives RTCP messages or custom private protocol messages sent by the far end of the meeting, as well as mono voice data.
[0074] Step S104: Extract mono audio data and location information.
[0075] Step S105: During a multi-party conference, extract the location information of each participant in the near-end application layer on the display screen.
[0076] Step S106: Determine the location information of the target acoustic image.
[0077] Specifically, when there is only one participating remote party, the location information extracted in step S104 can be used as the location information of the target audio-visual image. When there are multiple participating remote parties, the location information of the currently speaking participant on the display screen can be determined in step S105 as the location information of the target audio-visual image.
[0078] Step S107: Upmix using mono data and the position information of the target sound image, and play the corresponding channel data through each speaker.
[0079] Therefore, in this embodiment, the participating parties do not need to transmit stereo or multi-channel data, but only mono data and location information. The receiving end performs up-mixing to form stereo and multi-channel data, which can save network bandwidth while obtaining stereo effect or directional spatial sense. In multi-party conferences, the display position information of each participating party on the display can be extracted from the application layer as the position information of the target sound image. Then, by calculating the gain value of each speaker, the audio playback effect can correspond to the person speaking on the screen. Considering that the participants at the near end mainly look at the display screen at the near end, when the position signal from the far end of the conference and the display position information of each participating party on the screen during the multi-party conference both exist, the position information displayed on the screen can be used as the position information of the target sound image. At the same time, the activity area of the target sound image can be expanded.
[0080] The above examples illustrate multiple implementations of this application. This application is not intended to limit itself. In each implementation, the addition, omission, or change of the order of steps are all within the protection scope of this application. Each implementation can be implemented individually or in combination.
[0081] The following is combined Figure 5 This application describes an apparatus for converting mono to multichannel audio based on audio processing. The apparatus 200 is applied to a loudspeaker system, which includes at least a first loudspeaker oriented in a first direction and a second loudspeaker oriented in a second direction. The first direction faces the wall of the physical space where the loudspeaker system is located, and the second direction faces a designated audience position. The apparatus 200 includes a first gain value determination module 210, a second gain value determination module 220, and a channel data calculation module 230.
[0082] The first gain value determination module 210 is configured to, in response to the target sound image being located within the activity area of the second speaker, the wall of the physical space, and the first target sound image formed by the set audience, calculate the gain value of the virtual speaker and the second speaker based on the position of the virtual speaker and the second speaker, and the vector relationship between the gain value of the virtual speaker and the second speaker and the position of the target sound image. The position of the virtual speaker is determined based on the first speaker and its mirror speaker, with the wall as a mirror surface.
[0083] The gain value determination module 220 is configured to determine the gain value of the first speaker based on the gain value of the virtual speaker;
[0084] The channel data calculation module 230 is configured to multiply the received mono data by the gain values of the first speaker and the second speaker respectively, and play them as the channel data of the first speaker and the second speaker.
[0085] The device for converting mono to multi-channel audio based on audio processing provided in this application can form a virtual speaker by using a first speaker facing a wall and a mirror speaker formed by mirroring the first speaker with the wall as a mirror. This virtual speaker, together with a second speaker projecting sound towards a set audience position, forms a first target sound image activity area outside the target sound image activity area that the original speakers can form. The target sound image within the first target sound image activity area can be controlled by the virtual speaker and the second speaker. Therefore, the gain values of the virtual speaker and the second speaker can be calculated based on the determined position of the target sound image, and the gain value of the first speaker can be determined based on the gain value of the virtual speaker. This allows the first speaker and the second speaker to play different channel data based on the calculated gain values, thereby achieving multi-channel and stereo effects.
[0086] This application can realize a device for converting mono to multi-channel audio and a face detection device based on audio processing through software, hardware, firmware, or any combination thereof. Without departing from the concept of this application, the splitting, merging, and addition of modules are all within the protection scope of this application.
[0087] In exemplary embodiments of this disclosure, a computer-readable storage medium is also provided, having stored thereon a computer program that, when executed by, for example, a processor, can implement the steps of the method for converting mono to multichannel based on audio processing as described in any of the foregoing embodiments. In some possible implementations, various aspects of this application can also be implemented as a program product comprising program code that, when run on a terminal device, configures the terminal device to perform the steps of the various exemplary embodiments of this application described in the foregoing section of this specification regarding the method for converting mono to multichannel based on audio processing.
[0088] refer to Figure 6 As shown, a program product 800 configured to implement the above-described method according to an embodiment of this application is described. It may employ a portable compact disc read-only memory (CD-ROM) and include program code, and may run on a terminal device, such as a personal computer. However, the program product of this application is not limited thereto. In this document, a readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, apparatus, or device.
[0089] The program product may employ any combination of one or more readable media. A readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection having one or more wires, a portable disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0090] The computer-readable storage medium may include data signals propagated in baseband or as part of a carrier wave, carrying readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. The readable storage medium may also be any readable medium other than a readable storage medium, capable of transmitting, propagating, or transmitting a program configured for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the readable storage medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical fiber, RF, etc., or any suitable combination thereof.
[0091] Program code configured to perform the operations of this application can be written in any combination of one or more programming languages, including object-oriented programming languages such as Java and C++, and conventional procedural programming languages such as C or similar languages. The program code can execute entirely on the tenant's computing device, partially on the tenant's device, as a standalone software package, partially on the tenant's computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving remote computing devices, the remote computing devices can be connected to the tenant's computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or they can be connected to external computing devices (e.g., via the Internet using an Internet service provider).
[0092] In exemplary embodiments of this disclosure, an electronic device is also provided, which may include a processor and a memory configured to store executable instructions of the processor. The processor is configured to perform the steps of the method for converting mono to multichannel based on audio processing described in any of the preceding embodiments by executing the executable instructions.
[0093] Those skilled in the art will understand that various aspects of this application can be implemented as a system, method, or program product. Therefore, various aspects of this application can be specifically implemented in the following forms: a completely hardware implementation, a completely software implementation (including firmware, microcode, etc.), or a combination of hardware and software implementations, collectively referred to herein as a "circuit," "module," or "system."
[0094] The following reference Figure 7 To describe an electronic device 600 according to this embodiment of the present application. Figure 7 The electronic device 600 shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of this application.
[0095] like Figure 7 As shown, the electronic device 600 is presented in the form of a general-purpose computing device. The components of the electronic device 600 may include, but are not limited to: at least one processing unit 610, at least one storage unit 620, a bus 630 connecting different system components (including storage unit 620 and processing unit 610), a display unit 640, etc.
[0096] The storage unit stores program code that can be executed by the processing unit 610, causing the processing unit 610 to perform the steps described in the above-described method for converting mono to multi-channel audio based on audio processing, according to various exemplary embodiments of this application. For example, the processing unit 610 can perform actions such as... Figure 1 The steps are shown in the figure.
[0097] The storage unit 620 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 6201 and / or a cache storage unit 6202, and may further include a read-only memory unit (ROM) 6203.
[0098] The storage unit 620 may also include a program / utility 6204 having a set (at least one) program module 6205, such program module 6205 including but not limited to: an operating system, one or more application programs, other program modules and program data, each or some combination of these examples may include an implementation of a network environment.
[0099] Bus 630 can represent one or more of several types of bus structures, including a memory cell bus or memory cell controller, a peripheral bus, a graphics acceleration port, a processing unit, or a local bus using any of the various bus structures.
[0100] Electronic device 600 can also communicate with one or more external devices 700 (e.g., keyboard, pointing device, Bluetooth device, etc.), and with one or more devices that enable tenants to interact with electronic device 600, and / or with any device that enables electronic device 600 to communicate with one or more other computing devices (e.g., router, modem, etc.). This communication can be performed via input / output (I / O) interface 650. Furthermore, electronic device 600 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) via network adapter 660. Network adapter 660 can communicate with other modules of electronic device 600 via bus 630. It should be understood that, although not shown in the figures, other hardware and / or software modules can be used in conjunction with electronic device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0101] From the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solutions according to the embodiments of this disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, USB flash drive, external hard drive, etc.) or on a network, including several instructions to cause a computing device (such as a personal computer, server, or network device, etc.) to execute the above-described method for converting mono to multi-channel audio based on audio processing according to the embodiments of this disclosure.
[0102] This application utilizes a first speaker facing a wall and a mirror speaker formed by mirroring the wall to create a virtual speaker. This virtual speaker, along with a second speaker projecting sound towards a predetermined audience location, forms a first target sound image area outside the original speaker's target sound image area. The virtual and second speakers can control the target sound image within this first target sound image area. Therefore, the gain values of the virtual and second speakers can be calculated based on the determined target sound image position. The gain value of the first speaker is then determined based on the virtual speaker's gain value, allowing the calculated gain values to enable the first and second speakers to play different channel data, achieving multi-channel and stereo effects.
[0103] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the appended claims.
Claims
1. A method for converting mono to multi-channel audio based on audio processing, characterized in that, The method is applied to a loudspeaker system, the loudspeaker system including at least a first loudspeaker that emits sound in a first direction and a second loudspeaker that emits sound in a second direction, the first direction being towards the wall of the physical space where the loudspeaker system is located, and the second direction being towards a designated audience position. The method is implemented at the near end of a video conference participant, and the method includes: In a video conference, receive messages carrying sound source location information and mono audio data sent by remote participants; Based on the message and the mono audio data, the location of the target sound image is determined, wherein determining the location of the target sound image includes: When the number of participating remote ends is one, the location of the target sound image is determined based on the sound source location information carried in the message; When there are multiple participants at the far end, extract the position information of the participants at the near end application layer in the display screen to determine the position of the target sound image; In response to the target sound image being located within the activity area of the second speaker, the wall of the physical space, and the first target sound image formed by the set audience, the gain values of the virtual speaker and the second speaker are calculated based on the positions of the virtual speaker and the second speaker, the vector relationship between the gain values of the virtual speaker and the second speaker and the position of the target sound image, and the position of the virtual speaker is determined based on the first speaker and its mirror speaker, with the wall as a mirror. The gain value of the first speaker is determined based on the gain value of the virtual speaker; The received mono audio data is multiplied by the gain values of the first speaker and the second speaker respectively, and played as the channel data of the first speaker and the second speaker.
2. The method for converting mono to multi-channel audio based on audio processing as described in claim 1, characterized in that, The loudspeaker system also includes a third loudspeaker that projects sound in the second direction. In response to the target sound image being located within the second target sound image activity area formed between the second speaker, the third speaker, and the set audience position, the gain values of the second speaker and the third speaker are calculated based on the positions of the second speaker and the third speaker, the vector relationship between the gain values of the second speaker and the third speaker and the position of the target sound image; The received mono audio data is multiplied by the gain values of the second speaker and the third speaker respectively, and played as the channel data of the second speaker and the third speaker.
3. The method for converting mono to multi-channel audio based on audio processing as described in claim 1, characterized in that, The location of the virtual speaker for: in, The weighting factors for the mirror speaker and the first speaker, [ , ] represents the position of the mirror speaker, and d represents the vertical distance from the first speaker to the wall. , [ ] represents the position of the first speaker.
4. The method for converting mono to multi-channel audio based on audio processing as described in claim 3, characterized in that, The gain values of the virtual speaker and the second speaker are calculated according to the following formula: Where g= , g1 is the gain value of the virtual speaker, and g2 is the gain value of the second speaker. The location of the target acoustic image, [ [ ] indicates the position of the second speaker.
5. The method for converting mono to multi-channel audio based on audio processing as described in any one of claims 1 to 4, characterized in that, The sound intensity difference between the mirror speaker and the first speaker is less than 5 dB / ms.
6. A device for converting mono to multi-channel audio based on audio processing, characterized in that, Applied to a loudspeaker system, the loudspeaker system includes at least a first loudspeaker that emits sound in a first direction and a second loudspeaker that emits sound in a second direction, the first direction being towards the wall of the physical space where the loudspeaker system is located, and the second direction being towards a designated audience location, including: The first gain value determination module is configured to, in response to the target sound image being located within the activity area of the second speaker, the wall of the physical space, and the first target sound image formed by the set audience, calculate the gain value of the virtual speaker and the second speaker based on the position of the virtual speaker and the second speaker, and the vector relationship between the gain value of the virtual speaker and the second speaker and the position of the target sound image. The position of the virtual speaker is determined based on the first speaker and its mirror speaker, with the wall as a mirror. The second gain value determination module is configured to determine the gain value of the first speaker based on the gain value of the virtual speaker; The channel data calculation module is configured to multiply the received mono audio data by the gain values of the first speaker and the second speaker respectively, and use the result as the channel data of the first speaker and the second speaker for playback. The system is implemented at the near-end of the meeting. The system is also used to: receive, during a video conference, a message carrying sound source location information and mono audio data sent by the far-end of the meeting; and determine the location of a target sound image based on the message and the mono audio data. The determination of the target sound image's location includes: when there is only one far-end of the meeting, determining the location of the target sound image based on the sound source location information carried in the message; and when there are multiple far-ends of the meeting, extracting the location information of the participating party in the near-end application layer on the display screen to determine the location of the target sound image.
7. An electronic device, characterized in that, The electronic device includes: processor; A memory, on which a computer program is stored, is executed by the processor during runtime: The method for converting mono to multichannel based on audio processing as described in any one of claims 1 to 5.
8. A storage medium, characterized in that, The storage medium stores a computer program, which is executed by a processor: The method for converting mono to multichannel based on audio processing as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Three-dimensional audio signal generation method and system for non-spherical speaker array
CN105392102A
Directional loudspeaker control system
US20070019816A1
