A method, apparatus, device, and medium for controlling the volume of digital sound generation
By performing DSR preprocessing and quantization on the audio data to be processed by the digital loudspeaker, setting the volume level according to the number of transducers, and adjusting the number of transducers, the problem of reduced sound quality in digital loudspeaker volume control is solved, and sound quality is maintained while adjusting the volume.
Patent Information
- Application Number
- CN202210225048.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-09
- Publication Date
- 2025-10-28
- Estimated Expiration
- 2042-03-09
AI Technical Summary
Existing digital speaker volume control schemes result in reduced sound quality, and there is an urgent need for a reliable digital volume control method.
By acquiring the digital audio data to be processed from the digital loudspeaker, performing DSR preprocessing, and obtaining multiple quantized audio digital streams, the volume level is set according to the number of transducers involved in driving each quantized audio digital stream, and the number of transducers is adjusted to achieve volume adjustment.
It enables adjustment of digital output volume without compromising sound quality, avoiding the signal-to-noise ratio reduction problem in traditional solutions.
Smart Images

Figure CN114745632B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of digital sound generation technology, and in particular to a method, apparatus, device, and medium for controlling the volume of digital sound generation. Background Technology
[0002] A loudspeaker is a transducer that converts electrical signals into sound signals, and its performance greatly affects sound quality. The loudspeaker is the weakest component in an audio system, yet it is also one of the most crucial for sound effects. There are many types of loudspeakers, and their prices vary greatly. Audio electrical energy, through electromagnetic, piezoelectric, or electrostatic effects, causes the cone or diaphragm to vibrate and resonate with the surrounding air, producing sound.
[0003] Digital sound, sometimes also called digital audio, is a type of sound recorded, stored, edited, compressed, restored, or played using digital technology. It features convenient storage, low storage costs, low distortion, and ease of editing and processing.
[0004] In practical applications, analog loudspeakers produce sound by mimicking the movement of a diaphragm to push air. The principle of analog loudspeaker sound production requires a digital-to-analog converter (DAC), and volume control is primarily achieved through an amplifier, specifically by controlling the current applied to the voice coil. Currently, most loudspeakers on the market are analog, but digital loudspeakers and digital sound chips, with their digital advantages, will gradually enter the loudspeaker market.
[0005] Existing digital speaker volume control schemes suffer from reduced sound quality; therefore, there is an urgent need to provide a reliable digital sound volume control scheme. Summary of the Invention
[0006] The purpose of this invention is to provide a method, apparatus, device, and medium for controlling the volume of digital sound, in order to solve the problem of reduced sound quality when adjusting the volume of digital sound in the prior art.
[0007] To achieve the above objectives, the present invention provides the following technical solution:
[0008] In a first aspect, the present invention provides a method for controlling the volume of digital sound output, comprising:
[0009] Acquire the digital audio data to be processed from the digital speaker;
[0010] The digital audio data to be processed is preprocessed by DSR to obtain a multi-channel quantized audio digital stream.
[0011] The volume level of the sound signal of the digital loudspeaker is set according to the number of transducers involved in driving each quantized audio digital stream;
[0012] The volume of the sound signal is adjusted by regulating the number of transducers involved in driving each quantized audio digital stream.
[0013] In a second aspect, the present invention provides a volume control device for digital sound generation, comprising:
[0014] A digital audio data acquisition module is used to acquire the digital audio data to be processed from the digital speaker;
[0015] The DSR processing module is used to perform DSR preprocessing on the digital audio data to be processed to obtain a multi-channel quantized audio digital stream.
[0016] The volume level setting module is used to set the volume level of the sound signal of the digital speaker according to the number of transducers involved in driving each quantized audio digital stream.
[0017] The volume adjustment module is used to adjust the volume of the sound signal by adjusting the number of transducers involved in driving each quantized audio digital stream.
[0018] Thirdly, the present invention provides a digital sound volume control device, comprising:
[0019] A communication unit / communication interface is used to acquire the digital audio data to be processed from the digital speaker;
[0020] A processing unit / processor is used to perform DSR preprocessing on the digital audio data to be processed to obtain a multi-channel quantized audio digital stream;
[0021] The volume level of the sound signal of the digital loudspeaker is set according to the number of transducers involved in driving each quantized audio digital stream;
[0022] The volume of the sound signal is adjusted by regulating the number of transducers involved in driving each quantized audio digital stream.
[0023] Fourthly, the present invention provides a computer storage medium storing instructions that, when executed, implement the above-described digital sound volume control method.
[0024] Compared with existing technologies, the digital sound volume control scheme provided by this invention acquires the digital audio data to be processed from a digital loudspeaker and groups it according to the number of transducers in the digital loudspeaker to obtain multiple quantized audio digital streams; sets the volume level of the digital loudspeaker's sound signal based on the number of transducers involved in driving each quantized audio digital stream; and adjusts the volume of the sound signal by adjusting the number of transducers involved in driving each quantized audio digital stream. This scheme achieves digital sound volume control based on the number of transducers, eliminates the need for a digital-to-analog converter, and allows for volume adjustment of digital sound without degrading sound quality. Attached Figure Description
[0025] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0026] Figure 1 A schematic diagram illustrating the overall framework of a digital sound volume control method provided in the embodiments of this specification;
[0027] Figure 2 A schematic flowchart of a digital sound volume control method provided in the embodiments of this specification;
[0028] Figure 3 A schematic diagram of a digital sound volume control device provided for an embodiment of this specification;
[0029] Figure 4 This is a schematic diagram of a digital sound volume control device provided as an embodiment of this specification. Detailed Implementation
[0030] To facilitate a clear description of the technical solutions in the embodiments of the present invention, the terms "first" and "second" are used to distinguish identical or similar items with essentially the same function and effect. For example, the first threshold and the second threshold are merely used to distinguish different thresholds and do not limit their order. Those skilled in the art will understand that the terms "first" and "second" do not limit the quantity or execution order, and that the terms "first" and "second" are not necessarily different.
[0031] It should be noted that in this invention, the terms "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in this invention should not be construed as being more preferred or advantageous than other embodiments or designs. Specifically, the use of terms such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.
[0032] In this invention, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can represent: a, b, c, a combination of a and b, a combination of a and c, a combination of b and c, or a, b, and c, where a, b, and c can be single or multiple.
[0033] Before introducing the embodiments of the present invention, the relevant terms involved in the embodiments of the present invention are first defined as follows:
[0034] Microelectromechanical Systems (MEMS) are miniature integrated systems that utilize integrated circuit (IC) manufacturing technology and microfabrication technology to fabricate microsensors, microactuators, and other components onto one or more chips. A typical MEMS consists of sensors, information processing units, actuators, and communication / interface units. The input signal is a physical signal, which is converted into an electrical signal by the sensor. After signal processing (analog and / or digital), the actuator interacts with the external environment. Each microsystem can communicate with other microsystems using digital or analog signals (electrical, optical, magnetic, and other physical quantities).
[0035] With the development of MEMS manufacturing processes, multi-pixel speaker units can be mass-produced on a single MEMS chip. Currently, almost all speakers on the market are analog, which achieve analog sound production by controlling the movement of a diaphragm to push air. However, precisely controlling diaphragm movement is difficult, especially when speakers are miniaturized. Therefore, digital speakers and digital sound chips, with their digital advantages, will gradually enter the speaker market. Furthermore, volume adjustment in digital sound production requires further research.
[0036] Based on this, the present invention proposes a digital sound volume control scheme applicable to digital speaker systems. Unlike analog speakers, which operate on a fundamentally different principle, this scheme eliminates the need for a digital-to-analog converter during volume adjustment in the digital sound generation process. Existing digital speaker volume control schemes reduce the number of participating pixel bits, thereby lowering the sound pressure level, resulting in a lower signal-to-noise ratio. Consequently, reducing the volume leads to a significant decrease in sound quality, exhibiting the drawback of reduced sound quality with decreased volume.
[0037] Next, the solutions provided in the embodiments of this specification will be described in conjunction with the accompanying drawings:
[0038] Figure 1 This is a schematic diagram illustrating the overall framework of a digital sound volume control method provided in an embodiment of this specification. Figure 1 As shown, the system may include:
[0039] The system includes an ASIC chip 100 and a speaker array 110. The ASIC chip 100 includes a digital sound reconstruction module 101, a multi-channel quantized audio digital stream 102, a driver module 103, and a volume control module 104. Since the digital sound reconstruction module 101 is also called a DSR module, it is a digital sound reconstruction module (DSR).
[0040] Figure 1 The audio source serves as the input to the entire system, and its format can be various digital audio files, such as WAV, MP3, and AIF, which are common audio storage formats. Different input file formats include PCM data with different bit depths and sampling frequencies, as well as DSD format data. Before being input to the DSR module 101, the different formats of digital audio files can be converted to a common format, such as 16-bit PCM data, before being passed to the DSR module 101. Common audio source formats include 24-bit, 44.1Hz PCM data. The DSR module 101 can perform Sigma-Delta modulation and decimation operations on the common format audio data to obtain multi-channel quantized audio digital streams, and send these multi-channel quantized audio digital streams to the driver module 103. The driver module 103 can convert the multi-channel quantized audio digital streams into driving electrical signals. These driving electrical signals are used to drive the transducer array to obtain sound signals. The digital signal, processed by the DSR module and divided into N channels, drives one transducer element per channel. Multiple transducers reconstruct the sound waveform of the audio source to achieve digital sound playback. The transducer element quantity control scheme implements K-level transducer element control in each signal channel. The user sets the corresponding volume level, which is transmitted to the digital volume control module 104 to control the operation of the transducer element at the corresponding level. Digital control of the number of transducers driven by each signal channel enables digital sound volume adjustment. Here, K can be equal to N, or K and N can be set exponentially. For example, the number of transducer elements corresponding to K levels can also be set exponentially: 2... 0 2 1 2 2 ……2 k .
[0041] Figure 1 In this system, the digital loudspeaker generates sound directly from sound pulses through multiple transducers. This differs fundamentally from the sound generation principle of analog loudspeakers, as it does not require a digital-to-analog converter. This solution proposes an N*K transducer array pattern, where N transducers ensure the sound quality of the digital loudspeaker, and K elements in each channel control the volume, allowing adjustment of the digital sound chip's volume without degrading sound quality. Detailed implementation steps are explained in conjunction with the accompanying drawings in the manual.
[0042] Figure 2 This is a schematic flowchart illustrating a digital sound volume control method provided in an embodiment of this specification. From a programming perspective, the execution entity of the process can be a server cluster or processor corresponding to the digital sound volume control system. Taking a server cluster as an example, this server cluster can contain various virtual modules in the system to achieve digital sound volume adjustment based on the processed received audio data. In practical applications, speakers need to be used in various devices for sound generation, such as portable terminals, home appliances, or other smart terminals. The portable terminal can be wearable devices such as smart glasses, smartwatches, smart bracelets, and smart clothing; other smart terminals can be cinema terminals, desktop computers, or terminal devices that are not easily portable. For example, a cinema terminal can include multiple speakers with different channels, and a computer can include left and right channel speakers. The smart terminal can also be a smartphone, tablet computer, PDA, etc. In practical applications, the terminal can connect to the server via Bluetooth, wireless network, mobile network, etc., thereby realizing digital speaker volume adjustment.
[0043] like Figure 2 As shown, the process may include the following steps:
[0044] Step 210: Obtain the digital audio data to be processed from the digital speaker.
[0045] It should be noted that the "digital audio data to be processed" in this step can be unprocessed audio source data, or it can be preprocessed data that has not been grouped and extracted. Digital speakers produce sound digitally, unlike analog sound, and do not require a digital-to-analog converter.
[0046] For example, preprocessing can be performed using a device with digital audio decoding and conversion capabilities, which can convert the input audio digital stream into audio data of a specific bit and a specific sampling frequency, such as 16-bit, 44.1Hz PCM data. This process includes the conversion of quantization bits and the conversion of sampling frequencies. This specification does not specifically limit the embodiments in this regard.
[0047] Step 220: Perform DSR preprocessing on the digital audio data to be processed to obtain a multi-channel quantized audio digital stream.
[0048] Digital loudspeakers and digital sound chips can achieve direct digital sound generation mainly through digital sound reconstruction (DSR) technology. The digital loudspeaker generally contains N transducer elements, and the number N of the transducer elements is generally closely related to the sound quality of the reconstructed sound.
[0049] A mapping relationship can be pre-set between the number of transducers in the loudspeaker and the volume based on a certain characteristic (e.g., the number of columns). When grouping according to a certain characteristic of the number of transducers, the volume can be extracted at intervals according to that characteristic.
[0050] Step 230: Set the volume level of the sound signal of the digital loudspeaker according to the number of transducers involved in driving each quantized audio digital stream.
[0051] When setting volume levels, to facilitate volume adjustment, the volume levels can be set according to the number of transducers. For example, the number of transducers in each quantized audio digital stream corresponds to the number of adjustable volume levels. That is, if the number of transducers in each quantized audio digital stream is 5, there can be 5 adjustable volume levels. Of course, this is only one implementation method of this solution and will not affect the scope of protection of this solution. In practical applications, as long as it is ensured that the volume can be adjusted according to the number of transducers in each quantized audio digital stream, the correspondence can be set according to the actual situation.
[0052] Step 240: Adjust the volume of the sound signal by adjusting the number of transducers involved in driving each quantized audio digital stream.
[0053] In actual implementation, it can be an N*K pixel transducer array pattern, where N transducers are used to ensure the sound quality of the digital speaker, and K elements in each digital stream are used to control the volume.
[0054] Figure 2 The method described above acquires the digital audio data to be processed from a digital loudspeaker and groups it according to the number of transducers in the loudspeaker to obtain multiple quantized audio digital streams. Based on the number of transducers involved in driving each quantized audio digital stream, the volume level of the digital loudspeaker's sound signal is set. The volume of the sound signal is adjusted by regulating the number of transducers involved in driving each quantized audio digital stream. This scheme achieves digital sound volume control based on the number of transducers, eliminating the need for a digital-to-analog converter and enabling volume adjustment of digital sound without degrading sound quality.
[0055] based on Figure 2In addition to the method described herein, this specification also provides some specific implementation methods of the method, which will be described below.
[0056] Optionally, in actual implementation Figure 2 In step 240, the following implementation method can be used:
[0057] Volume adjustment commands can be sent by the server. In practical applications, the information acquisition module collects trigger information and sends it to the server. The server then generates the volume adjustment command based on the trigger information. For example, the trigger information can include button information indicating volume adjustment. These buttons can be hardware volume buttons or virtual volume buttons on the touchscreen (such as a floating ball or a virtual slider on the screen). The information acquisition module collects the trigger information indicating volume adjustment and sends it to the server. Alternatively, trigger information can also be other information indicating volume adjustment, such as voice, image, or text. For instance, if a user uses voice control to increase / decrease the volume, the information acquisition module collects the voice information and sends it to the server. The server can then determine the corresponding task based on the collected information and generate the appropriate command.
[0058] In this solution, the volume adjustment command can include: a first volume adjustment command and a second volume adjustment command. The first adjustment command can be a command indicating the specific volume level to be adjusted, while the second volume adjustment command can be a command simply indicating "increase" or "decrease" the volume. The following describes the two implementation methods separately:
[0059] Implementation Method 1: Upon receiving the first volume adjustment command, the specific implementation steps may include:
[0060] Receive the first volume adjustment command;
[0061] Based on the first volume adjustment command, determine the volume level corresponding to the first volume adjustment command;
[0062] Based on the volume level, the target number of transducers corresponding to the volume level is determined according to the mapping relationship between the volume level and the number of transducers.
[0063] The number of transducers involved in driving each quantized audio digital stream is adjusted to the target number to complete the volume adjustment of the sound signal.
[0064] At this time, the first volume adjustment command includes at least the target volume level to be adjusted, for example, the target volume included in the first volume adjustment command is "level 3" or "60", etc. In practical applications, the full volume can be set to level 10 or 100. Of course, the specific volume level setting can be set based on the actual application situation, and this specification does not specifically limit it in this embodiment.
[0065] Alternatively, in one implementation, the volume level setting can be configured based on the arrangement of the transducers in the speaker. A mapping relationship is established between the number of transducers involved in driving each quantized audio digital stream and the volume level setting, thereby enabling the corresponding volume level setting.
[0066] The mapping relationship between volume levels and the number of transducers can be pre-stored in the server's corresponding memory for later retrieval. This mapping relationship may include: the number of volume levels is equal to the number of transducers.
[0067] Alternatively, the number of volume levels can be set exponentially with the number of transducers. The mapping relationship can be set according to the actual application requirements, and this specification does not impose specific limitations on it. Therefore, when a command including a specific target volume level is received, the number of transducers participating in driving each quantized audio digital stream can be determined based on the pre-stored mapping relationship and the target volume level, thereby controlling the corresponding number of transducers in each stream to participate in driving.
[0068] Implementation Method Two: Upon receiving the second volume adjustment command, the specific implementation steps may include:
[0069] Receive the second volume adjustment command;
[0070] Based on the second volume adjustment command, a task to be executed corresponding to the second volume adjustment command is determined; the task to be executed includes increasing the volume or decreasing the volume.
[0071] Based on the task to be executed, according to the mapping relationship between the volume level and the number of transducers, and in accordance with the preset adjustment rules, the number of transducers involved in driving each quantized audio digital stream is adjusted to complete the volume adjustment of the sound signal.
[0072] In practical applications, especially after smart devices add voice control or image recognition control functions, users can free their hands and issue commands directly through voice. Users don't need to spend time memorizing specific volume levels; they only need to give instructions such as "increase volume" or "decrease volume." The server can adjust according to preset rules. For example, setting the maximum volume to 100 and the minimum volume to 0, if the current volume is at full, it won't increase; if the current volume is at 0, it won't decrease. Furthermore, when a user command is received, the volume is increased or decreased proportionally according to a preset number. For example, if the current volume is 80, when a user commands "decrease volume," it can decrease by 20 each time. That is, upon receiving the first "decrease volume" command, the volume is adjusted to 60 and the user is notified; upon receiving the second "decrease volume" command, the volume is adjusted to 40 and the user is notified, and so on, until no more volume adjustment commands are received from the user within a preset time. Correspondingly, when the volume is adjusted to the corresponding level, the corresponding number of transducers in each quantized audio digital stream are driven to work.
[0073] The two methods described above allow for volume adjustment by controlling the operation of pixel transducers at the corresponding levels based on volume adjustment commands, thus achieving volume adjustment while ensuring sound quality.
[0074] It should be noted that the digital loudspeaker used in this invention primarily protects the hardware of the sound-emitting array topology, which can be a linear sound source or an N*M array. It can be applied to micro-MEMS loudspeakers, where one electrode plate serves as a diaphragm and the other as a driver plate. The driver plate can have arrayed circular or elongated holes. Multiple MEMS loudspeakers can be used, arranged in an array, line, or row-column configuration. Correspondingly, during sound generation, multiple quantized audio digital streams can be converted into driving electrical signals, which are then used to drive the transducer array to obtain the sound signal. Volume adjustment is achieved by adjusting the transducers in each audio digital stream.
[0075] Figure 2 In the process of grouping the audio to be processed, grouping can be based on a DSR module. The DSR module can be based on single-bit Sigma-Delta digital sound reconstruction technology or multi-bit Sigma-Delta digital sound reconstruction technology. Specific implementation steps may include:
[0076] The digital audio data to be processed is oversampled to obtain first digital audio data; the first digital audio data is digital audio data that has been oversampled by a factor of R; where R ≥ 0;
[0077] The first digital audio data is noise shaped and quantized to obtain the second audio digital stream;
[0078] The second audio digital stream is grouped according to the number of transducers in the digital loudspeaker to obtain a multi-channel quantized audio digital stream. Here, R can be 64, 128, etc.
[0079] Multi-bit SDM and single-bit SDM operate on roughly the same principle. The only difference is that the electrical signal amplitude for each pixel speaker has multiple step values. Multi-bit SDM offers higher quantization precision. For example, a 1-bit SDM digital stream consists of 0 and 1; a 2-bit SDM digital stream consists of 0, 0.5, and 1.
[0080] There are two main methods for using multiple bits to enable digital speaker sound production:
[0081] Method 1: Similar to 1-bit, directly extract L groups of data, except that each signal contains not only 0 and 1 levels, but also intermediate steps. Then, the data stream is directly sent to the corresponding speaker. After receiving electrical signals with different step sizes, the speaker outputs sound energy with different pulse amplitudes.
[0082] Method 2: Taking 2-bit as an example: The 2-bit SDM digital stream is 0, 0.5, and 1. Assuming each pixel speaker operates at 0.5, 1 means two pixels need to work simultaneously. Therefore, another logic is proposed: assuming the number of speakers per row can be 1 or 2. A digital stream of 0.5 corresponds to driving 1 speaker; a digital stream of 1 corresponds to driving 2 speakers. This quantization step size is responded to by the number of speakers driven at once. A switch is also needed here to ensure the switching of speaker count. Consistency is relatively good.
[0083] It should be noted that the above methods are only individual implementations of the solutions provided in the embodiments of this specification, and do not represent the full scope of protection of this application. In addition to the methods listed above, there may be more implementation methods, and the embodiments of this specification do not specifically limit them.
[0084] The DSR module may include a modulation and quantization module, a noise reduction module, and a volume adjustment module. The modulation and quantization module can be used to modulate and quantize the second digital audio data; the noise reduction module can be used to reduce the noise of the sound signal; and the volume adjustment module can be used to adjust the volume of the sound signal.
[0085] Digital volume control involves increasing or decreasing the number of speakers participating in SDM (Sound Module Control) driving. Traditional digital volume reduction reduces the number of pixels involved, thus lowering the sound pressure level. However, this approach leads to a decrease in the signal-to-noise ratio (SNR), resulting in a significant drop in sound quality when the volume is reduced. Therefore, this application provides a digital volume control scheme that does not reduce the SNR by increasing the number of transducers controlled by each signal stream (Sdn). For example, with K identical transducers, the total volume achieves K levels of adjustment, and each volume adjustment has the same SNR. The total array of transducers driving the speakers is N*K.
[0086] Based on the same idea, this specification also provides a digital sound volume control device in its embodiments. Figure 3 This is a schematic diagram of a digital sound volume control device provided in an embodiment of this specification. It may include:
[0087] The digital audio data acquisition module 310 is used to acquire the digital audio data to be processed from the digital speaker; the digital audio data to be processed is an audio data stream with a common format and quantized.
[0088] DSR processing module 320 is used to perform DSR preprocessing on the digital audio data to be processed to obtain a multi-channel quantized audio digital stream.
[0089] The volume level setting module 330 is used to set the volume level of the sound signal of the digital speaker according to the number of transducers involved in driving each quantized audio digital stream; the number of volume levels is equal to the number of transducers; or, the number of volume levels is set exponentially with the number of transducers.
[0090] The volume adjustment module 340 is used to adjust the volume of the sound signal by adjusting the number of transducers involved in driving each quantized audio digital stream.
[0091] based on Figure 3 The device in the document also includes some specific implementation modules, which will be explained below:
[0092] Optionally, the volume adjustment module 340 may specifically include:
[0093] The first volume adjustment command receiving unit is used to receive the first volume adjustment command;
[0094] A volume level determination unit is used to determine the volume level corresponding to the first volume adjustment command based on the first volume adjustment command.
[0095] A target number determination unit for transducers is used to determine the target number of transducers corresponding to the volume level based on the volume level and according to the mapping relationship between the volume level and the number of transducers.
[0096] The first volume adjustment unit is used to adjust the number of transducers involved in driving each quantized audio digital stream to the target number, thereby completing the volume adjustment of the sound signal.
[0097] Optionally, the volume adjustment module 340 may specifically include:
[0098] The second volume adjustment command receiving unit is used to receive the second volume adjustment command.
[0099] The task to be executed unit is used to determine the task to be executed corresponding to the second volume adjustment command based on the second volume adjustment command; the task to be executed includes increasing the volume or decreasing the volume;
[0100] The second volume adjustment unit is used to adjust the number of transducers involved in driving each quantized audio digital stream according to the mapping relationship between the volume level and the number of transducers, based on the task to be executed and a preset adjustment rule, thereby completing the volume adjustment of the sound signal.
[0101] Optionally, the DSR processing module 320 may specifically include:
[0102] An oversampling unit is used to perform an oversampling operation on the digital audio data to be processed to obtain first digital audio data; the first digital audio data is digital audio data that has been oversampled by a factor of R; where R ≥ 0;
[0103] A quantization unit is used to perform noise shaping and quantization on the first digital audio data to obtain a second audio digital stream.
[0104] A grouping unit is used to group the second audio digital stream according to the number of transducers in the digital loudspeaker to obtain a multi-channel quantized audio digital stream.
[0105] Based on the same idea, this specification also provides a digital sound volume control device. Figure 4 This is a schematic diagram of a digital sound volume control device provided as an embodiment of this specification. It may include:
[0106] A communication unit / communication interface is used to acquire the digital audio data to be processed from the digital speaker;
[0107] A processing unit / processor is used to perform DSR preprocessing on the digital audio data to be processed to obtain a multi-channel quantized audio digital stream;
[0108] The volume level of the sound signal of the digital loudspeaker is set according to the number of transducers involved in driving each quantized audio digital stream;
[0109] The volume of the sound signal is adjusted by regulating the number of transducers involved in driving each quantized audio digital stream.
[0110] like Figure 4 As shown, the terminal device described above may also include a communication line. The communication line may include a path for transmitting information between the components described above.
[0111] Optional, such as Figure 4 As shown, the terminal device may further include a memory. The memory stores computer execution instructions for implementing the present invention, and the execution is controlled by a processor. The processor executes the computer execution instructions stored in the memory, thereby implementing the method provided in the embodiments of the present invention.
[0112] like Figure 4 As shown, the memory can be read-only memory (ROM) or other types of static storage devices capable of storing static information and instructions, random access memory (RAM) or other types of dynamic storage devices capable of storing information and instructions, or electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed discs, laser discs, optical discs, universal optical discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but not limited to these. The memory can exist independently and be connected to the processor via communication lines. The memory can also be integrated with the processor.
[0113] Optionally, the computer execution instructions in the embodiments of the present invention may also be referred to as application code, and the embodiments of the present invention do not specifically limit this.
[0114] In a specific implementation, as one example, such as Figure 4 As shown, a processor may include one or more CPUs, such as Figure 4 CPU0 and CPU1 in the CPU.
[0115] In a specific implementation, as one example, such as Figure 4 As shown, the terminal device may include multiple processors, such as Figure 4 The processors in the system. Each of these processors can be a single-core processor or a multi-core processor.
[0116] Based on the same idea, this specification also provides a computer storage medium corresponding to the above embodiments. The computer storage medium stores instructions, which, when executed, implement a volume adjustment scheme.
[0117] The foregoing mainly describes the solutions provided by the embodiments of the present invention from the perspective of the interaction between various modules. It is understood that each module, in order to achieve the above functions, includes corresponding hardware structures and / or software units for executing each function. Those skilled in the art should readily recognize that, in conjunction with the units and algorithm steps of the various examples described in the embodiments disclosed herein, the present invention can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed by hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present invention.
[0118] The embodiments of the present invention can divide functional modules according to the above method examples. For example, each function can be divided into its own functional module, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware or as a software functional module. It should be noted that the module division in the embodiments of the present invention is illustrative and only represents one logical functional division; other division methods may be used in actual implementation.
[0119] The processor described in this specification may also function as a memory. The memory stores computer execution instructions for carrying out the present invention, and its execution is controlled by the processor. The processor executes the computer execution instructions stored in the memory, thereby implementing the method provided in the embodiments of the present invention.
[0120] The memory can be read-only memory (ROM) or other types of static storage devices capable of storing static information and instructions, random access memory (RAM) or other types of dynamic storage devices capable of storing information and instructions, or electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, universal optical discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but not limited to these. The memory can exist independently and be connected to the processor via communication lines. The memory can also be integrated with the processor.
[0121] Optionally, the computer execution instructions in the embodiments of the present invention may also be referred to as application code, and the embodiments of the present invention do not specifically limit this.
[0122] The methods disclosed in the above embodiments of the present invention can be applied to a processor or implemented by a processor. The processor may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above methods can be completed by integrated logic circuits in the processor's hardware or by instructions in software form. The processor can be a general-purpose processor, a digital signal processor (DSP), an ASIC, a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of the present invention. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of the present invention can be directly embodied in the execution of a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software modules can reside in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. This storage medium is located in memory; the processor reads information from the memory and, in conjunction with its hardware, completes the steps of the above methods.
[0123] In one possible implementation, a computer-readable storage medium is provided, which stores instructions that, when executed, are used to implement the logic operation control method and / or logic operation reading method in the above embodiments.
[0124] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially in the form of a computer program product. The computer program product includes one or more computer programs or instructions. When the computer program or instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present invention are performed entirely or partially. The computer can be a general-purpose computer, a special-purpose computer, a computer network, a terminal, a user equipment, or other programmable device. The computer program or instructions can be stored in a computer-readable storage medium or transferred from one computer-readable storage medium to another. For example, the computer program or instructions can be transferred from one website, computer, server, or data center to another website, computer, server, or data center via wired or wireless means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium, such as a floppy disk, hard disk, or magnetic tape; it can also be an optical medium, such as a digital video disc (DVD); or it can be a semiconductor medium, such as a solid-state drive (SSD).
[0125] Although the invention has been described herein in conjunction with various embodiments, those skilled in the art will understand and implement other variations of the disclosed embodiments by reviewing the accompanying drawings, the disclosure, and the appended claims in carrying out the claimed invention. In the claims, the word "comprising" does not exclude other components or steps, and "a" or "an" does not exclude a plurality. A single processor or other unit can implement several functions listed in the claims. While different dependent claims may recite certain measures, this does not mean that these measures cannot be combined to produce good results.
[0126] Although the invention has been described in conjunction with specific features and embodiments, it is obvious that various modifications and combinations can be made therein without departing from the spirit and scope of the invention. Accordingly, this specification and drawings are merely exemplary descriptions of the invention as defined by the appended claims, and are considered to cover any and all modifications, variations, combinations, or equivalents within the scope of the invention. Clearly, those skilled in the art can make various alterations and modifications to the invention without departing from its spirit and scope. Thus, if such modifications and modifications of the invention fall within the scope of the claims and their equivalents, the invention is also intended to include such modifications and modifications.
Claims
1. A method for controlling the volume of digital sound, characterized in that, An N*K pixel transducer array pattern is adopted, where N transducers are used to ensure the sound quality of the digital speaker, and K elements in each digital stream are used to control the volume, with each volume adjustment having the same signal-to-noise ratio. The volume control method includes: Acquire the digital audio data to be processed from the digital speaker; The digital audio data to be processed is preprocessed by DSR and grouped according to the number of transducer elements in the digital loudspeaker to obtain a multi-channel quantized audio digital stream. The volume level of the sound signal of the digital loudspeaker is set according to the number of transducers involved in driving each quantized audio digital stream; The volume of the sound signal is adjusted by regulating the number of transducers involved in driving each quantized audio digital stream. The method of adjusting the volume of the sound signal by adjusting the number of transducers involved in driving each quantized audio digital stream specifically includes: Receive the first volume adjustment command; Based on the first volume adjustment command, determine the volume level corresponding to the first volume adjustment command; Based on the volume level, the target number of transducers corresponding to the volume level is determined according to the mapping relationship between the volume level and the number of transducers. The number of transducers involved in driving each quantized audio digital stream is adjusted to the target number to complete the volume adjustment of the sound signal; Alternatively, receive a second volume adjustment command; Based on the second volume adjustment command, a task to be executed corresponding to the second volume adjustment command is determined; the task to be executed includes increasing the volume or decreasing the volume. Based on the task to be executed, according to the mapping relationship between the volume level and the number of transducers, the number of transducers participating in driving each quantized audio digital stream is adjusted according to a preset adjustment rule, and the volume adjustment of the sound signal is completed by controlling the operation of the pixel transducers at the corresponding level.
2. The method according to claim 1, characterized in that, The number of volume levels is equal to the number of transducer elements; Alternatively, the number of volume levels may be set exponentially with the number of transducer elements.
3. The method according to claim 1, characterized in that, The digital audio data to be processed is an audio data stream with a common format and quantized.
4. The method according to claim 3, characterized in that, The digital audio data to be processed is preprocessed using DSR to obtain a multi-channel quantized audio digital stream, specifically including: The digital audio data to be processed is oversampled to obtain first digital audio data; the first digital audio data is digital audio data that has been oversampled by a factor of R; where R≥0; The first digital audio data is noise shaped and quantized to obtain the second audio digital stream; The second audio digital stream is grouped according to the number of rows of transducers in the digital loudspeaker to obtain a multi-channel quantized audio digital stream.
5. A digital sound volume control device, characterized in that, The device is applied to the volume control method for digital sound generation according to any one of claims 1 to 4, employing an N*K pixel transducer array pattern, wherein N transducers are used to ensure the sound quality of the digital speaker, K elements in each digital stream are used to control the volume, and each volume adjustment has the same signal-to-noise ratio, including: The unprocessed digital audio data acquisition module is used to acquire the unprocessed digital audio data from the digital speaker; The DSR processing module is used to perform DSR preprocessing on the digital audio data to be processed, group it according to the number of transducer elements in the digital loudspeaker, and obtain a multi-channel quantized audio digital stream. The volume level setting module is used to set the volume level of the sound signal of the digital speaker according to the number of transducers involved in driving each quantized audio digital stream. The volume adjustment module is used to adjust the volume of the sound signal by adjusting the number of transducers involved in driving each quantized audio digital stream. The volume adjustment module specifically includes: A volume adjustment command receiving unit is used to receive a first volume adjustment command; A volume level determination unit is used to determine the volume level corresponding to the first volume adjustment command based on the first volume adjustment command. A target number determination unit for transducers is used to determine the target number of transducers corresponding to the volume level based on the volume level and according to the mapping relationship between the volume level and the number of transducers. The volume adjustment unit is used to adjust the number of transducers involved in driving each quantized audio digital stream to the target number, thereby completing the volume adjustment of the sound signal.
6. A digital sound volume control device, characterized in that, The device is applied to the volume control method for digital sound generation as described in any one of claims 1 to 4, employing an N*K pixel transducer array pattern, wherein N transducers are used to ensure the sound quality of the digital speaker, K elements in each digital stream are used to control the volume, and each volume adjustment has the same signal-to-noise ratio, including: A communication unit / communication interface is used to acquire the digital audio data to be processed from the digital speaker; The processing unit / processor is used to perform DSR preprocessing on the digital audio data to be processed, group the data according to the number of transducer elements in the digital loudspeaker, and obtain a multi-channel quantized audio digital stream. The volume level of the sound signal of the digital loudspeaker is set according to the number of transducers involved in driving each quantized audio digital stream; The volume of the sound signal is adjusted by regulating the number of transducers involved in driving each quantized audio digital stream. The method of adjusting the volume of the sound signal by adjusting the number of transducers involved in driving each quantized audio digital stream specifically includes: Receive the first volume adjustment command; Based on the first volume adjustment command, determine the volume level corresponding to the first volume adjustment command; Based on the volume level, the target number of transducers corresponding to the volume level is determined according to the mapping relationship between the volume level and the number of transducers. The number of transducers involved in driving each quantized audio digital stream is adjusted to the target number to complete the volume adjustment of the sound signal; Alternatively, receive a second volume adjustment command; Based on the second volume adjustment command, a task to be executed corresponding to the second volume adjustment command is determined; the task to be executed includes increasing the volume or decreasing the volume. Based on the task to be executed, according to the mapping relationship between the volume level and the number of transducers, the number of transducers participating in driving each quantized audio digital stream is adjusted according to a preset adjustment rule, and the volume adjustment of the sound signal is completed by controlling the operation of the pixel transducers at the corresponding level.
7. A computer storage medium, characterized in that, The computer storage medium stores instructions that, when executed, implement the digital sound volume control method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Digital speaker driving device
CN101803401A
Digital Speaker Apparatus
CN104506975A