Broadcast volume adjustment method and device, equipment and storage medium
Obtain the noise value through the probe and calculate the gain ratio to adjust the broadcast volume, which solves the broadcast volume adjustment problem caused by inaccurate noise detection in the existing technology, improves the accuracy and reliability of the volume adjustment of the broadcast system, and ensures noise coverage and user experience.
Patent Information
- Application Number
- CN202410878334.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-02
- Publication Date
- 2024-09-17
AI Technical Summary
Inaccurate noise detection in the prior art results in low effectiveness and reliability of broadcast volume adjustment, inability to effectively cover noise, and affects the accuracy and efficiency of automatic volume adjustment of the broadcast system.
The probe continuously acquires the noise value of the current area. In response to receiving the broadcast command, the multiple of the noise value exceeding the preset noise range is calculated, the gain ratio is calculated, and the broadcast volume is adjusted according to the gain ratio to ensure the accuracy and accuracy of the broadcast volume. reliability.
It improves the effectiveness and reliability of the volume adjustment of the broadcast system, avoids the problem of infinite increase caused by the mixing of noise and broadcast volume, ensures the accurate transmission of broadcast information, and improves the user experience.
Smart Images

Figure CN118659849A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of broadcasting equipment, and in particular to a broadcasting volume adjustment method, device, equipment and storage medium. Background Art
[0002] Public broadcasting systems play an indispensable role in large public areas such as high-speed rail station halls and airport terminals. These areas, due to their vast area and huge flow of people, inevitably generate various noises. When the volume of these noises is too loud, the broadcast sound may be drowned out, thus causing adverse effects on passengers.
[0003] At present, when the noise is too loud, the partition broadcast volume is adjusted to cover the noise. When the noise decreases, the broadcast partition volume should be lowered. Generally, there are two methods: manual adjustment and system automatic adjustment. Manual adjustment requires someone to pay attention to the noise value of each partition in real time. Manual adjustment of the volume, and the large number of partitions consumes a lot of manpower output; as for the system automatic adjustment method, since noise detection easily mixes broadcast and noise, the accuracy and efficiency of automatic volume adjustment of the broadcast system are low. When the noise value is too large, it cannot meet the noise coverage in the actual scene, resulting in low reliability. Summary of the invention
[0004] The present invention provides a broadcast volume adjustment method, device, equipment and storage medium to solve the technical problems in the prior art of inaccurate noise detection and low effectiveness and reliability of broadcast volume adjustment for environmental noise.
[0005] In order to solve the above technical problems, an embodiment of the present invention provides a broadcast volume adjustment method, comprising:
[0006] Continuously obtain the noise value in the current area through the probe;
[0007] In response to receiving a broadcast command, when the noise value exceeds a preset noise range, calculating a gain ratio according to a multiple by which the noise value exceeds the preset noise range;
[0008] According to the gain ratio, a broadcast gain volume is obtained, and the broadcast volume of the broadcast system is adjusted according to the broadcast gain volume.
[0009] As a preferred solution, the method of continuously acquiring the noise value in the current area through the probe specifically includes:
[0010] When the broadcasting system is not working, the ambient volume in the current area is continuously acquired through the probe, and the ambient volume is used as the noise value in the current area.
[0011] As a preferred solution, the method of continuously acquiring the noise value in the current area through the probe specifically includes:
[0012] When the broadcasting system is not working, the first sound value in the current area is continuously obtained through the probe;
[0013] When the broadcasting system is working, the second sound value in the current area is continuously obtained through the probe;
[0014] According to the first sound value and the second sound value, the volume peak value in the current preset time period is detected and identified, and the power amplifier volume of the current broadcasting system is identified according to the volume peak value, thereby obtaining the noise value of the current area in the current preset time period.
[0015] As a preferred solution, in response to receiving the broadcast command, when the noise value exceeds the preset noise range, the gain ratio is calculated according to the multiple by which the noise value exceeds the preset noise range, specifically including:
[0016] In response to receiving the broadcast command, determining the noise value according to a preset noise range;
[0017] When the noise value exceeds the preset noise range, a multiple of the noise value exceeding the preset noise range is calculated, and a gain ratio is calculated based on the multiple and a preset gain;
[0018] When the noise value does not exceed the preset noise range, the gain ratio is set to 1, so that the broadcast volume of the broadcast system does not need to be adjusted for gain before broadcasting.
[0019] As a preferred solution, when the noise value exceeds the preset noise range, the multiple by which the noise value exceeds the preset noise range is calculated, and the gain ratio is calculated based on the multiple and the preset gain, specifically including:
[0020] When the noise value exceeds the preset noise range, determining whether the noise value is greater than a maximum value of the preset noise range or whether the noise value is less than a minimum value of the preset noise range;
[0021] If the noise value is greater than the maximum value of the preset noise range, then the multiple by which the noise value exceeds the preset noise range is calculated, and the multiple is multiplied by a preset gain to calculate a first gain ratio;
[0022] If the noise value is less than the minimum value of the preset noise range, the multiple of the noise value and the preset noise range is set to 1, and the multiple is multiplied by the preset gain to calculate the second gain ratio; wherein the gain ratio includes the first gain ratio and the second gain ratio.
[0023] As a preferred solution, obtaining the broadcast gain volume according to the gain ratio, and adjusting the broadcast volume of the broadcast system according to the broadcast gain volume specifically includes:
[0024] According to the gain ratio, the noise value and the preset noise range, a broadcast gain range is calculated, and a middle value of the broadcast gain range is used as the broadcast gain volume;
[0025] According to the broadcast gain volume and the preset broadcast volume, a final broadcast volume when the broadcast system actually broadcasts is obtained, so that the broadcast system broadcasts at the final broadcast volume.
[0026] As a preferred solution, the calculation formula of the broadcast gain volume is:
[0027] V e =[ab+(a+V1-V2)×K] / c+100
[0028] Among them, V e is the broadcast gain volume, a, b and c are the first coefficient, the second coefficient and the third coefficient of the broadcast gain volume respectively, V1 is the noise value, V2 is the preset noise range, and K is the gain ratio.
[0029] Accordingly, the present invention also provides a broadcast volume adjustment device, comprising: an acquisition module, a calculation module and an adjustment module;
[0030] The acquisition module is used to continuously acquire the noise value in the current area through the probe;
[0031] The calculation module is used for, in response to receiving a broadcast command, calculating a gain ratio according to a multiple by which the noise value exceeds the preset noise range when the noise value exceeds the preset noise range;
[0032] The adjustment module is used to obtain the broadcast gain volume according to the gain ratio, and adjust the broadcast volume of the broadcast system according to the broadcast gain volume.
[0033] Correspondingly, the present invention also provides a terminal device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, and when the processor executes the computer program, the broadcast volume adjustment method as described in any one of the above items is implemented.
[0034] Correspondingly, the present invention also provides a computer-readable storage medium, which includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute any one of the broadcast volume adjustment methods described above.
[0035] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
[0036] The technical solution of the present invention continuously obtains the noise value of the current area through the probe, so that when a broadcast command is received and the noise value exceeds a preset noise range, the noise value can be analyzed, and then the gain ratio is calculated according to the multiple of the noise value exceeding the preset noise range, which can ensure that the gain ratio is accurately calculated in combination with the noise value, and then the broadcast gain volume is obtained, avoiding the situation in the prior art that the broadcast and noise are mixed, resulting in the inability to accurately calculate the currently required broadcast gain volume, thereby adjusting the broadcast volume of the broadcast system through the broadcast gain volume, thereby improving the effectiveness and reliability of the broadcast system in broadcasting.
[0037] Furthermore, the noise value is judged by a preset noise range, and then the gain ratio is calculated based on the multiple of the noise value exceeding the preset noise range, so that the broadcast gain volume is obtained according to the gain ratio, the noise value and the preset noise range. This can avoid the unlimited increase of noise, and thus avoid the unlimited increase of the partition volume, thereby avoiding the situation where the broadcast system with unlimited volume increase cannot accurately convey the broadcast information, thereby improving the reliability of the broadcast system and improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 : A flow chart of the steps of a method for adjusting the broadcast volume provided by an embodiment of the present invention;
[0039] Figure 2 : A structural diagram of a broadcast volume adjustment system provided by an embodiment of the present invention;
[0040] Figure 3 : A structural diagram of a broadcast volume adjustment device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0041] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0042] Embodiment 1
[0043] Please refer to Figure 1 , a broadcast volume adjustment method provided by an embodiment of the present invention includes the following steps S101-S103:
[0044] Step S101: continuously acquiring the noise value in the current area through the probe.
[0045] As a preferred solution of this embodiment, the continuously acquiring the noise value in the current area through the probe specifically includes:
[0046] When the broadcasting system is not working, the ambient volume in the current area is continuously acquired through the probe, and the ambient volume is used as the noise value in the current area.
[0047] In this embodiment, since the volume value detected by the probe is theoretically the value of all environmental volumes, including the broadcast speaker amplifier and environmental noise, if the broadcast speaker amplifier and environmental noise are not distinguished, it is easy to cause the noise value continuously collected by the probe in the current area to have a large fluctuation range, resulting in a large gain adjustment range when the gain ratio and gain volume are subsequently calculated, resulting in low accuracy and reliability of the volume gain adjustment.
[0048] In this embodiment, when the broadcasting system is not working, that is, when there is no volume generated by the power amplifier speaker, the ambient volume in the current area is continuously obtained through the probe. At the same time, the probe instantly collects the ambient noise and uploads it to the server, and then uses the ambient volume as the noise value in the current area, so that the gain volume can be calculated and transmitted to the broadcasting power amplifier speaker for real-time adjustment.
[0049] As a preferred solution of this embodiment, the continuously acquiring the noise value in the current area through the probe specifically includes:
[0050] When the broadcasting system is not working, the first sound value in the current area is continuously obtained through the probe; when the broadcasting system is working, the second sound value in the current area is continuously obtained through the probe; based on the first sound value and the second sound value, the volume peak value in the current preset time period is detected and identified, and the power amplifier volume of the current broadcasting system is identified based on the volume peak value, thereby obtaining the noise value of the current area in the current preset time period.
[0051] In this embodiment, the volume value detected by the probe can be analyzed according to the time window. For example, when the broadcasting system is not working, the first sound value in the current area can be continuously obtained through the probe, and when the broadcasting system is working, the second sound value in the current area can be continuously obtained through the probe. Since there is usually a higher volume peak when the broadcast speaker amplifier volume occurs, the peak value in the first sound value and the second sound value can be detected to identify the volume peak in the current preset time period, and through the volume peak, the speaker amplifier volume and the ambient noise volume can be distinguished, and then the amplifier volume of the current broadcasting system can be identified, thereby obtaining the noise value of the current area in the current preset time period.
[0052] Step S102: In response to receiving a broadcast command, when the noise value exceeds a preset noise range, a gain ratio is calculated according to a multiple by which the noise value exceeds the preset noise range.
[0053] As a preferred solution of this embodiment, in response to receiving the broadcast command, when the noise value exceeds the preset noise range, the gain ratio is calculated according to the multiple by which the noise value exceeds the preset noise range, specifically including:
[0054] In response to receiving a broadcast command, the noise value is judged according to a preset noise range; when the noise value exceeds the preset noise range, the multiple by which the noise value exceeds the preset noise range is calculated, and a gain ratio is calculated based on the multiple and a preset gain; when the noise value does not exceed the preset noise range, the gain ratio is set to 1, so that the broadcast volume of the broadcast system does not need to be broadcasted after gain adjustment.
[0055] In this embodiment, the preset noise range can be set according to the actual scene. Due to different public scenes, such as libraries, railway stations, subway stations and other public areas, the environmental noise levels are different, so it is necessary to select the corresponding preset noise range in different scenes to ensure the accuracy of the broadcast volume adjustment. Preferably, for the subway station scene, a preset noise range of [55, 90] dB collected by the probe under normal environment can be set by the computer.
[0056] In this embodiment, when a broadcast command is received, the noise value is judged by a preset noise range to ensure whether the current environmental noise has exceeded the preset noise range, so as to determine whether the broadcast volume needs to be adjusted. When the noise value exceeds the preset noise range, it is necessary to calculate the multiple of the noise value exceeding the preset noise range, and further calculate the gain ratio by the multiple and the preset gain; wherein, the preset gain can also be set according to the actual scene, and the corresponding preset gain in different scenes is different, and different gain ratios will affect the adjustment range of noise and broadcast volume. For example, indoor environments such as offices are usually quiet, and excessive gain should not be selected, and 5:3, 4:3, etc. can be selected; outdoor environments such as squares may require higher gain effects to ensure audio clarity due to high noise, and 3:6, 3:5, etc. can be selected; concerts may require higher volume and dynamic range, so higher gain effects 3:6, 3:5, etc. may be selected; in actual scenes such as speeches, a more balanced volume distribution may be required, and a lower gain effect 6:3, 5:3, etc. may be selected; and when the noise value does not exceed the preset noise range, the gain ratio is set to 1.
[0057] As a preferred solution of this embodiment, when the noise value exceeds the preset noise range, the multiple by which the noise value exceeds the preset noise range is calculated, and the gain ratio is calculated based on the multiple and the preset gain, specifically including:
[0058] When the noise value exceeds the preset noise range, determine whether the noise value is greater than the maximum value of the preset noise range or whether the noise value is less than the minimum value of the preset noise range; if the noise value is greater than the maximum value of the preset noise range, calculate the multiple of the noise value exceeding the preset noise range, and multiply the multiple by the preset gain to calculate a first gain ratio; if the noise value is less than the minimum value of the preset noise range, set the multiple of the noise value and the preset noise range to 1, and multiply the multiple by the preset gain to calculate a second gain ratio; wherein the gain ratio includes a first gain ratio and a second gain ratio.
[0059] In this embodiment, when the noise value exceeds the preset noise range, it is necessary to further determine whether the noise value is greater than the maximum value of the preset noise range, or whether the noise value is less than the minimum value of the preset noise range. Since when the noise value is less than the minimum value of the preset noise range, it means that the environment in the current scene is very quiet, and it is not necessary to increase the broadcast volume of the broadcast system, and it is only necessary to maintain normal broadcasting, so the multiple of the noise value and the preset noise range is set to 1.
[0060] In this embodiment, when the noise value exceeds the preset noise range, and whether the noise value is greater than the maximum value of the preset noise range, it means that the noise is very loud in the current scene, and the broadcast volume of the broadcast system needs to be increased to ensure that the broadcast volume can cover the noise of the environment and realize the broadcast function. Therefore, the gain volume is calculated only when the actual noise is greater than the maximum value of the preset noise range, and it is invalid when the noise collection value is less than the minimum value of the preset noise range.
[0061] In this embodiment, when the noise value is greater than the maximum value of the preset noise range, it can be calculated that the multiple of the noise value exceeding the preset noise range is n. When the noise increases, the broadcast volume needs to be increased by "preset gain * n", that is, the gain ratio is obtained.
[0062] Step S103: obtaining a broadcast gain volume according to the gain ratio, and adjusting the broadcast volume of the broadcast system according to the broadcast gain volume.
[0063] As a preferred solution of this embodiment, obtaining the broadcast gain volume according to the gain ratio, and adjusting the broadcast volume of the broadcast system according to the broadcast gain volume specifically includes:
[0064] According to the gain ratio, the noise value and the preset noise range, the broadcast gain range is calculated, and the middle value of the broadcast gain range is used as the broadcast gain volume; according to the broadcast gain volume and the preset broadcast volume, the final broadcast volume when the broadcast system actually broadcasts is obtained, so that the broadcast system broadcasts at the final broadcast volume.
[0065] In this embodiment, the broadcast gain range can be calculated through the calculated gain ratio, noise value and preset noise range, and the middle value of the broadcast gain range is used as the broadcast gain volume to avoid the situation where the noise increases without limit and the volume of the broadcast partition also increases without limit. At the same time, long-term high-power amplifier broadcasting can easily damage the broadcasting equipment, thereby extending the service life of the broadcasting equipment and avoiding the situation where the broadcasting system with unlimited volume increase cannot accurately convey the broadcasting information, so as to improve the reliability of the broadcasting system and improve the user experience.
[0066] As a preferred solution of this embodiment, the calculation formula of the broadcast gain volume is:
[0067] V e =[ab+(a+V1-V2)×K] / c+100
[0068] Among them, V e is the broadcast gain volume, a, b and c are the first coefficient, the second coefficient and the third coefficient of the broadcast gain volume respectively, V1 is the noise value, V2 is the preset noise range, and K is the gain ratio.
[0069] For example, the calculation formula of the broadcast gain volume may be:
[0070] V e =[-24×1.5+(-24+V1-V2)×K] / 0.7+100
[0071] Among them, the first coefficient a, the second coefficient b and the third coefficient c are respectively -24, 1.5 and 0.7, and the values of -24, 1.5 and 0.7 are the optimal coefficient values of the first coefficient a, the second coefficient b and the third coefficient c.
[0072] In this embodiment, the overall system includes: a probe, a speaker, an amplifier, a noise detection module, a switch and a broadcast system server, as shown in FIG. Figure 2As shown, the probe collects the regional noise value (db), and the noise detection module detects the noise value and uploads the noise to the broadcast system server, and then calculates the average noise value for a certain period of time to ensure that the server can calculate the gain volume value and adjust the output volume of the amplifier. By binding the probe, speaker and amplifier, one probe adjusts the volume of a partition, and the probe installation position should not be too close to the speaker. Setting the preset noise range, setting the preset gain, and setting the noise adjustment interval, and setting the parameters according to the on-site environment can achieve a better broadcast volume adjustment effect, to ensure that the broadcast partition can automatically adjust the volume according to the on-site noise, the partition maintains a suitable volume value, and the published information is accurately delivered to the receiving personnel.
[0073] Implementing the above embodiments has the following effects:
[0074] The technical solution of the present invention continuously obtains the noise value of the current area through the probe, so that when a broadcast command is received and the noise value exceeds a preset noise range, the noise value can be analyzed, and then the gain ratio is calculated according to the multiple of the noise value exceeding the preset noise range, which can ensure that the gain ratio is accurately calculated in combination with the noise value, and then the broadcast gain volume is obtained, avoiding the situation in the prior art that the broadcast and noise are mixed, resulting in the inability to accurately calculate the currently required broadcast gain volume, thereby adjusting the broadcast volume of the broadcast system through the broadcast gain volume, thereby improving the effectiveness and reliability of the broadcast system in broadcasting.
[0075] Furthermore, the noise value is judged by a preset noise range, and then the gain ratio is calculated based on the multiple of the noise value exceeding the preset noise range, so that the broadcast gain volume is obtained according to the gain ratio, the noise value and the preset noise range. This can avoid the unlimited increase of noise, and thus avoid the unlimited increase of the partition volume, thereby avoiding the situation where the broadcast system with unlimited volume increase cannot accurately convey the broadcast information, thereby improving the reliability of the broadcast system and improving the user experience.
[0076] Embodiment 2
[0077] See also Figure 3 , which is a broadcast volume adjustment device provided by the present invention, comprising: an acquisition module 201, a calculation module 202 and an adjustment module 203;
[0078] The acquisition module 201 is used to continuously acquire the noise value in the current area through the probe;
[0079] The calculation module 202 is used for, in response to receiving a broadcast command, calculating a gain ratio according to a multiple by which the noise value exceeds the preset noise range when the noise value exceeds the preset noise range;
[0080] The adjustment module 203 is used to obtain a broadcast gain volume according to the gain ratio, and adjust the broadcast volume of the broadcast system according to the broadcast gain volume.
[0081] As a preferred solution, the method of continuously acquiring the noise value in the current area through the probe specifically includes:
[0082] When the broadcasting system is not working, the ambient volume in the current area is continuously acquired through the probe, and the ambient volume is used as the noise value in the current area.
[0083] As a preferred solution, the method of continuously acquiring the noise value in the current area through the probe specifically includes:
[0084] When the broadcasting system is not working, the first sound value in the current area is continuously obtained through the probe;
[0085] When the broadcasting system is working, the second sound value in the current area is continuously obtained through the probe;
[0086] According to the first sound value and the second sound value, the volume peak value in the current preset time period is detected and identified, and the power amplifier volume of the current broadcasting system is identified according to the volume peak value, thereby obtaining the noise value of the current area in the current preset time period.
[0087] As a preferred solution, in response to receiving the broadcast command, when the noise value exceeds the preset noise range, the gain ratio is calculated according to the multiple by which the noise value exceeds the preset noise range, specifically including:
[0088] In response to receiving the broadcast command, determining the noise value according to a preset noise range;
[0089] When the noise value exceeds the preset noise range, a multiple of the noise value exceeding the preset noise range is calculated, and a gain ratio is calculated based on the multiple and a preset gain;
[0090] When the noise value does not exceed the preset noise range, the gain ratio is set to 1, so that the broadcast volume of the broadcast system does not need to be adjusted for gain before broadcasting.
[0091] As a preferred solution, when the noise value exceeds the preset noise range, the multiple by which the noise value exceeds the preset noise range is calculated, and the gain ratio is calculated based on the multiple and the preset gain, specifically including:
[0092] When the noise value exceeds the preset noise range, determining whether the noise value is greater than a maximum value of the preset noise range or whether the noise value is less than a minimum value of the preset noise range;
[0093] If the noise value is greater than the maximum value of the preset noise range, then the multiple by which the noise value exceeds the preset noise range is calculated, and the multiple is multiplied by a preset gain to calculate a first gain ratio;
[0094] If the noise value is less than the minimum value of the preset noise range, the multiple of the noise value and the preset noise range is set to 1, and the multiple is multiplied by the preset gain to calculate the second gain ratio; wherein the gain ratio includes the first gain ratio and the second gain ratio.
[0095] As a preferred solution, obtaining the broadcast gain volume according to the gain ratio, and adjusting the broadcast volume of the broadcast system according to the broadcast gain volume specifically includes:
[0096] According to the gain ratio, the noise value and the preset noise range, a broadcast gain range is calculated, and a middle value of the broadcast gain range is used as the broadcast gain volume;
[0097] According to the broadcast gain volume and the preset broadcast volume, a final broadcast volume when the broadcast system actually broadcasts is obtained, so that the broadcast system broadcasts at the final broadcast volume.
[0098] As a preferred solution, the calculation formula of the broadcast gain volume is:
[0099] V e =[ab+(a+V1-V2)×K] / c+100
[0100] Among them, V e is the broadcast gain volume, a, b and c are the first coefficient, the second coefficient and the third coefficient of the broadcast gain volume respectively, V1 is the noise value, V2 is the preset noise range, and K is the gain ratio.
[0101] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0102] Implementing the above embodiments has the following effects:
[0103] The technical solution of the present invention continuously obtains the noise value of the current area through the probe, so that when a broadcast command is received and the noise value exceeds a preset noise range, the noise value can be analyzed, and then the gain ratio is calculated according to the multiple of the noise value exceeding the preset noise range, which can ensure that the gain ratio is accurately calculated in combination with the noise value, and then the broadcast gain volume is obtained, avoiding the situation in the prior art that the broadcast and noise are mixed, resulting in the inability to accurately calculate the currently required broadcast gain volume, thereby adjusting the broadcast volume of the broadcast system through the broadcast gain volume, thereby improving the effectiveness and reliability of the broadcast system in broadcasting.
[0104] Furthermore, the noise value is judged by a preset noise range, and then the gain ratio is calculated based on the multiple of the noise value exceeding the preset noise range, so that the broadcast gain volume is obtained according to the gain ratio, the noise value and the preset noise range. This can avoid the unlimited increase of noise, and thus avoid the unlimited increase of the partition volume, thereby avoiding the situation where the broadcast system with unlimited volume increase cannot accurately convey the broadcast information, thereby improving the reliability of the broadcast system and improving the user experience.
[0105] Embodiment 3
[0106] Correspondingly, the present invention also provides a terminal device, comprising: a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein when the processor executes the computer program, the broadcast volume adjustment method described in any one of the above embodiments is implemented.
[0107] The terminal device of this embodiment includes: a processor, a memory, and a computer program and a computer instruction stored in the memory and executable on the processor. When the processor executes the computer program, each step in the above-mentioned embodiment 1 is implemented, for example: Figure 1 Alternatively, the processor implements the functions of each module / unit in the above device embodiment, such as the calculation module 202, when executing the computer program.
[0108] Exemplarily, the computer program may be divided into one or more modules / units, and the one or more modules / units are stored in the memory and executed by the processor to complete the present invention. The one or more modules / units may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program in the terminal device. For example, the calculation module 202 is used to respond to receiving a broadcast command, and when the noise value exceeds a preset noise range, calculate the gain ratio according to the multiple of the noise value exceeding the preset noise range.
[0109] The terminal device may be a computing device such as a desktop computer, a notebook, a PDA, and a cloud server. The terminal device may include, but is not limited to, a processor and a memory. Those skilled in the art will appreciate that the schematic diagram is merely an example of a terminal device and does not constitute a limitation on the terminal device. The terminal device may include more or fewer components than shown in the diagram, or may combine certain components, or different components. For example, the terminal device may also include an input / output device, a network access device, a bus, etc.
[0110] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the terminal device, and various interfaces and lines are used to connect various parts of the entire terminal device.
[0111] The memory can be used to store the computer program and / or module, and the processor realizes various functions of the terminal device by running or executing the computer program and / or module stored in the memory, and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required for a function, etc.; the data storage area can store data created according to the use of the mobile terminal, etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Med ia Card, SMC), a secure digital (SecureDi gita l, SD) card, a flash card (F l ash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0112] Wherein, if the module / unit integrated in the terminal device is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Wherein, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-On l yMemory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.
[0113] Embodiment 4
[0114] Accordingly, the present invention also provides a computer-readable storage medium, which includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the broadcast volume adjustment method described in any one of the above embodiments.
[0115] The specific embodiments described above further illustrate the purpose, technical solutions and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. It is particularly pointed out that for those skilled in the art, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of protection of the present invention.
Claims
1. A method for adjusting broadcast volume, characterized in that: include: Continuously obtain the noise value in the current area through the probe; In response to receiving the broadcast command, when the noise value exceeds a preset noise range, calculating a gain ratio according to a multiple by which the noise value exceeds the preset noise range; According to the gain ratio, a broadcast gain volume is obtained, and the broadcast volume of the broadcast system is adjusted according to the broadcast gain volume.
2. A broadcast volume adjustment method according to claim 1, characterized in that: The method of continuously acquiring the noise value in the current area through the probe specifically includes: When the broadcasting system is not working, the ambient volume in the current area is continuously acquired through the probe, and the ambient volume is used as the noise value in the current area.
3. A broadcast volume adjustment method according to claim 1, characterized in that: The method of continuously acquiring the noise value in the current area through the probe specifically includes: When the broadcasting system is not working, the first sound value in the current area is continuously obtained through the probe; When the broadcasting system is working, the second sound value in the current area is continuously obtained through the probe; According to the first sound value and the second sound value, the volume peak value in the current preset time period is detected and identified, and the power amplifier volume of the current broadcasting system is identified based on the volume peak value, thereby obtaining the noise value of the current area in the current preset time period.
4. A broadcast volume adjustment method according to claim 3, characterized in that: The step of calculating the gain ratio in response to receiving the broadcast command and when the noise value exceeds a preset noise range according to a multiple by which the noise value exceeds the preset noise range specifically includes: In response to receiving the broadcast command, determining the noise value according to a preset noise range; When the noise value exceeds the preset noise range, a multiple by which the noise value exceeds the preset noise range is calculated, and a gain ratio is calculated based on the multiple and a preset gain; When the noise value does not exceed the preset noise range, the gain ratio is set to 1, so that the broadcast volume of the broadcast system does not need to be broadcasted after gain adjustment.
5. A broadcast volume adjustment method as claimed in claim 4, characterized in that: When the noise value exceeds the preset noise range, calculating a multiple by which the noise value exceeds the preset noise range, and calculating a gain ratio based on the multiple and a preset gain, specifically includes: When the noise value exceeds the preset noise range, determining whether the noise value is greater than a maximum value of the preset noise range or whether the noise value is less than a minimum value of the preset noise range; If the noise value is greater than the maximum value of the preset noise range, then calculating a multiple by which the noise value exceeds the preset noise range, and multiplying the multiple by a preset gain to calculate a first gain ratio; If the noise value is less than the minimum value of the preset noise range, the multiple of the noise value and the preset noise range is set to 1, and the multiple is multiplied by the preset gain to calculate a second gain ratio; wherein the gain ratio includes a first gain ratio and a second gain ratio.
6. A broadcast volume adjustment method according to claim 4 or 5, characterized in that: The step of obtaining a broadcast gain volume according to the gain ratio and adjusting the broadcast volume of the broadcast system according to the broadcast gain volume specifically includes: Calculating a broadcast gain range according to the gain ratio, the noise value, and the preset noise range, and using a middle value of the broadcast gain range as the broadcast gain volume; According to the broadcast gain volume and the preset broadcast volume, a final broadcast volume when the broadcast system actually broadcasts is obtained, so that the broadcast system broadcasts at the final broadcast volume.
7. A broadcast volume adjustment method according to claim 6, characterized in that: The calculation formula of the broadcast gain volume is: V e =[ab+(a+V1-V2)×K] / c+100 Among them, V e is the broadcast gain volume, a, b and c are the first coefficient, second coefficient and third coefficient of the broadcast gain volume respectively, V1 is the noise value, V2 is the preset noise range, and K is the gain ratio.
8. A broadcast volume adjustment device, characterized in that: include: Acquisition module, calculation module and adjustment module; The acquisition module is used to continuously acquire the noise value in the current area through the probe; The calculation module is configured to, in response to receiving a broadcast command, calculate a gain ratio according to a multiple by which the noise value exceeds the preset noise range when the noise value exceeds the preset noise range; The adjustment module is used to obtain a broadcast gain volume according to the gain ratio, and adjust the broadcast volume of the broadcast system according to the broadcast gain volume.
9. A terminal device, characterized in that: The method comprises a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor implements the broadcast volume adjustment method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium includes a stored computer program, wherein when the computer program is executed, the device where the computer-readable storage medium is located is controlled to execute the broadcast volume adjustment method according to any one of claims 1 to 7.
Citation Information
Cited By
Broadcast volume adaptive adjustment method and device, equipment, medium and product
CN119420442A
