Method, device, call volume adjustment device and storage medium
By outputting audio of the target frequency in the analog intercom system and collecting audio on the target cable, determining the volume gain level of the target calling device, the problem of poor call quality is solved, and the audio gain compensation and call quality improvement is achieved.
Patent Information
- Application Number
- CN202411860024.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-17
- Publication Date
- 2025-03-14
- Estimated Expiration
- 2044-12-17
AI Technical Summary
In an analog intercom system, as the number of devices increases, the audio received by the receiver will attenuate, resulting in poor call quality. The prior art has not yet proposed an effective solution.
By outputting the first audio of the target frequency in the target cable connected to the target calling device, and collecting the second audio on the target cable during transmission, the volume gain level of the target calling device is determined based on the target amplitude of the second audio, and sending it to the target calling device to adjust the call volume.
Through this method, audio gain compensation can be achieved, call quality can be improved, and the problem of poor call quality can be solved.
Smart Images

Figure CN119316512B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of communications, and in particular, to a method, an apparatus, a call device and a storage medium for adjusting call volume. Background Art
[0002] In the related art, as the number of devices in the analog intercom system increases, the audio received by the receiving end will be attenuated.
[0003] It can be seen that the related art has the problem of poor call quality.
[0004] With respect to the above-mentioned problems existing in the related technologies, no effective solution has been proposed yet. Summary of the invention
[0005] The embodiments of the present invention provide a method, an apparatus, a call device and a storage medium for adjusting call volume, so as to at least solve the problem of poor call quality existing in the related art.
[0006] According to one embodiment of the present invention, a method for adjusting call volume is provided, comprising: upon receiving a communication request for establishing a communication connection between a first call device and a target call device, outputting a first audio of a target frequency in a target cable connecting a switch and the target call device, wherein the first call device is connected to a second call device through the switch, the target call device is a call device included in the second call device, and the target call device is a call device indicated in the communication request; during the transmission of the first audio in the target cable, collecting the audio in the target cable to obtain a second audio; determining a volume gain level of the target call device based on a target amplitude of the second audio; and sending the volume gain level to the target call device to instruct the target call device to adjust the call volume between the target call device and the first call device according to the volume gain level.
[0007] According to another embodiment of the present invention, a call device is provided, comprising: a main controller, the main controller is connected to a switch, the main controller comprises a plurality of general input / output ports, for receiving a volume gain level sent by the switch, and controlling the plurality of general input / output ports to output a target level based on the volume gain level; an amplifier, a first end of the amplifier is connected to the plurality of general input / output ports, a second end of the amplifier is connected to an input end of the main controller, and is used to amplify the received audio signal according to the target level; wherein the switch determines the volume gain level in the following manner: upon receiving a communication request for establishing a communication connection between a first call device and a target call device included in a second call device, outputting a first audio of a target frequency in a target cable connecting the switch and the target call device; in the process of transmitting the first audio in the target cable, collecting the audio in the target cable to obtain a second audio; determining the volume gain level of the target call device based on the target amplitude of the second audio; and sending the volume gain level to the target call device to instruct the target call device to adjust the call volume between the target call device and the first call device according to the volume gain level.
[0008] According to another embodiment of the present invention, there is provided a communication device, comprising: a main controller, the main controller being connected to a switch, the main controller comprising a plurality of general purpose input / output ports, for receiving a volume gain level sent by the switch, and controlling the plurality of general purpose input / output ports to output a target level based on the volume gain level; an amplifier, a first end of the amplifier being connected to the plurality of general purpose input / output ports, a second end of the amplifier being connected to an input end of the main controller, for amplifying a received audio signal according to the target level; wherein the switch determines the volume gain level in the following manner: upon receiving a communication request for establishing a communication connection between a first communication device and a target communication device, the switch controls the plurality of general purpose input / output ports to output a target level. The switch outputs a first audio of a target frequency in a target cable connected to the target call device, wherein the first call device is connected to a second call device through the switch, the target call device is a call device included in the second call device, and the target call device is a call device indicated in the communication request; during the transmission of the first audio in the target cable, the audio in the target cable is collected to obtain the second audio; the volume gain level of the target call device is determined based on the target amplitude of the second audio; the volume gain level is sent to the target call device to instruct the target call device to adjust the call volume between the target call device and the first call device according to the volume gain level.
[0009] According to another embodiment of the present invention, a device for adjusting call volume is provided, comprising: an output module, for outputting a first audio of a target frequency in a target cable connecting a switch and a target call device when a communication request for establishing a communication connection between a first call device and a target call device is received, wherein the first call device is connected to a second call device through the switch, the target call device is a call device included in the second call device, and the target call device is a call device indicated in the communication request; a collection module, for collecting audio in the target cable during transmission of the first audio in the target cable to obtain a second audio; a determination module, for determining a volume gain level of the target call device based on a target amplitude of the second audio; and a sending module, for sending the volume gain level to the target call device to instruct the target call device to adjust the call volume between the target call device and the first call device according to the volume gain level.
[0010] According to yet another embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any one of the above method embodiments when run.
[0011] According to yet another embodiment of the present invention, there is provided an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0012] According to yet another embodiment of the present invention, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps of the method described in each embodiment of the present application are implemented.
[0013] Through the present invention, when a call request is received between a first call device and a target call device in a second call device to establish a communication connection, the first audio is output to the target call device through a target cable and the second audio on the target cable is collected. The volume gain level of the target call device can be determined based on the target amplitude of the second audio, and the volume gain level is sent to the target call device. The target call device adjusts the call volume with the first call device based on the volume gain level. Since the volume gain level can be determined based on the collected second audio and audio gain compensation is achieved, the problem of poor call quality existing in the related art can be solved, thereby achieving the effect of improving call quality. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1 is a hardware structure block diagram of a mobile terminal according to a method for adjusting a call volume according to an embodiment of the present invention;
[0015] Figure 2 is a flow chart of a method for adjusting call volume according to an embodiment of the present invention;
[0016] Figure 3 is a schematic diagram of a call system according to an embodiment of the present invention;
[0017] Figure 4 is a schematic diagram of connection between a switch and a target communication device according to an embodiment of the present invention;
[0018] Figure 5 is a schematic diagram of a volume gain circuit according to an embodiment of the present invention;
[0019] Figure 6 is a historical signal amplitude data graph according to an embodiment of the present invention;
[0020] Figure 7 is a graph showing a trend of changes in the amplitude of a VTH signal under different quantities according to an embodiment of the present invention;
[0021] Figure 8 is a VTH audio attenuation detection gain compensation diagram according to an embodiment of the present invention;
[0022] Fig. 9 is a second audio schematic diagram according to an embodiment of the present invention;
[0023] Fig.10 is a protocol transmission flow chart according to an embodiment of the present invention;
[0024] Fig.11 is a schematic diagram of a gain compensation circuit at a VTH receiving end according to an embodiment of the present invention;
[0025] Fig.12 is a schematic diagram of the structure of a communication device according to an embodiment of the present invention;
[0026] Fig.13 4 is a structural block diagram of a device for adjusting call volume according to an embodiment of the present invention. DETAILED DESCRIPTION
[0027] Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings and in combination with the embodiments.
[0028] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0029] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1FIG. 1 is a hardware structure block diagram of a mobile terminal of a method for adjusting call volume according to an embodiment of the present invention. Figure 1 As shown, the mobile terminal may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the mobile terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.
[0030] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the call volume adjustment method in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories can be connected to the mobile terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0031] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0032] In this embodiment, a method for adjusting call volume is provided. Figure 2 is a flow chart of a method for adjusting call volume according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:
[0033] Step S202, when receiving a communication request for establishing a communication connection between a first communication device and a target communication device, outputting a first audio of a target frequency in a target cable connecting a switch and the target communication device, wherein the first communication device is connected to a second communication device through the switch, the target communication device is a communication device included in the second communication device, and the target communication device is a communication device indicated in the communication request;
[0034] Step S204, during the process of transmitting the first audio in the target cable, collecting the audio in the target cable to obtain a second audio;
[0035] Step S206, determining a volume gain level of the target call device based on the target amplitude of the second audio;
[0036] Step S208: Send the volume gain level to the target call device to instruct the target call device to adjust the call volume between the target call device and the first call device according to the volume gain level.
[0037] In the above embodiment, the first communication device may be a VTO unit door phone, the switch may be a VTNC distributor, and the second communication device may be a VTH unit indoor unit. The VTO door phone may be connected to the VTH unit indoor unit through the VTNC distributor to establish a communication relationship.
[0038] In the above embodiment, the call volume adjustment method can be applied to a call system. The call system may include a first call device, a switch, and at least one second call device. The first call device can be connected to the second call device through the switch.
[0039] In the above embodiment, the communication request may be a request sent by the first call device to the switch, which may be used to indicate the target call device, that is, the first call device establishes a communication connection with the target call device through the communication request. The communication request may also be a request sent by the target call device to the switch, and the target call device may establish a communication connection with the first call device through the communication request. The communication request may carry the identifier of the call device to be called. After receiving the communication request, the switch may identify the device identifier in the communication request and forward the communication request to the device corresponding to the device identifier. After receiving the communication request, the device corresponding to the device identifier decides whether to establish a communication connection with the requesting device.
[0040] In the above embodiment, the target call device can be any one of the second call devices, which is the second call device that the first call device wants to establish a communication connection with through the switch. Since the first call device, the second call device and the switch are connected by cables, the target cable can be a cable for transmitting communications between the switch and the target call device, which can be an RVV cable. The RVV cable is a polyvinyl chloride insulated soft cable, which can provide additional protection due to the addition of an outer polyvinyl chloride sheath. The target frequency can be 1kHz, and the first audio can be a sinusoidal wave signal of the target frequency, which is not limited by the present invention.
[0041] In the above embodiment, Figure 3 It is a schematic diagram of a call system according to an embodiment of the present invention. As shown in 3, the first call device can be VTO, the second call device can be VTH, and the switch can be VTNC. There can be multiple second call devices VTH and first call devices VTO, all of which are connected through the VTNC switch. In addition, audio gain can be achieved between VTH and VTNC through an RVV cable (i.e., the above-mentioned target cable).
[0042] In the above embodiment, the connection diagram between the VTNC switch and the VTH indoor unit is as follows: Figure 4 As shown, when the first call device wants to establish a communication request with the target call device, the switch outputs an audio signal (first audio) at a certain frequency to the target call device through the target cable, and collects the audio signal (second audio) on the target cable, determines the volume gain level according to the target amplitude of the second audio, and sends the volume gain level to VTH, which can adjust the volume gain amplification factor according to the level.
[0043] In the above embodiment, a volume gain circuit may be provided in the second communication device. A schematic diagram of the volume gain circuit may be found in the attached Figure 5 ,like Figure 5As shown, the volume gain circuit may include a main controller GPIO_Ctrl, an amplifier, a hands-free call chip, a filter circuit, and an amplitude detection circuit. The main controller may include multiple general input and output ports GPIO. The main controller is connected to the switch to receive the volume gain level sent by the switch, and the target level of each general input and output port GPIO output is controlled according to the volume gain level. Different target levels correspond to different volume gain levels. A general input and output port can be connected to the first end of the amplifier through a switch device, and different general input and output ports are connected to different switch devices. Among them, the switch device can be a single-pole single-throw switch, a relay, etc. The second end of the amplifier can be connected to the main controller in sequence through the hands-free call chip, the filter circuit, and the amplitude detection circuit. The amplitude detection circuit can detect the amplitude of the call audio of the second call device to determine whether the audio corresponding to the volume gain level is reached. If it is not reached, the output level of the general input and output port is adjusted to achieve the purpose of adjusting the call volume. In the entire system, only the switch performs gain detection and control gears of the entire system, and each port does not need to perform gain compensation judgment. While reducing costs, it can also ensure the consistency of system coordination, reduce the complexity of gain compensation negotiation, and avoid affecting the real-time performance of intercom. In addition, the centralized (VTNC initiator) one-way compensation and negotiation method can reduce the hardware cost of multi-device self-gain compensation.
[0044] The execution subject of the above steps may be a switch, but is not limited thereto.
[0045] Through the present invention, when a call request is received between a first call device and a target call device in a second call device to establish a communication connection, the first audio is output to the target call device through a target cable and the second audio on the target cable is collected. The volume gain level of the target call device can be determined based on the target amplitude of the second audio, and the volume gain level is sent to the target call device. The target call device adjusts the call volume with the first call device based on the volume gain level. Since the volume gain level can be determined based on the collected second audio and audio gain compensation is achieved, the problem of poor call quality existing in the related art can be solved, thereby achieving the effect of improving call quality.
[0046] In an exemplary embodiment, determining the volume gain level of the target call device based on the target amplitude of the second audio includes: determining the historical amplitude of the third audio in the target cable collected each time within a historical predetermined time period, wherein the third audio is the audio collected during the transmission of the first audio in the target cable; determining the average amplitude of the historical amplitude; determining the number of call devices of the second call device and the cable length of the target cable at the current moment; and determining the volume gain level based on the target amplitude, the average amplitude, the number of call devices and the cable length.
[0047] In the above embodiment, the historical amplitude average value of the audio (i.e., the above-mentioned third audio) collected back during each transmission of the first audio by the switch, the number of call devices of the second call device at the current moment, and the cable length of the target cable can be determined, and the volume gain level can be determined by the target amplitude, the historical amplitude average value, the number of call devices, and the cable length.
[0048] In the above embodiment, the historical predetermined time period may be a predetermined time period before the current time, for example, 3 days, 5 days, 7 days, etc. before the current time, and the present invention is not limited to this.
[0049] In an exemplary embodiment, determining the volume gain level based on the target amplitude, the amplitude average, the number of call devices and the cable length includes: determining the sum of the target amplitude and the amplitude average; determining a first ratio of the sum to a target constant; determining a first product of the number of call devices and the cable length; determining a second ratio of a preset conversion coefficient to the first product; and determining the second product of the first ratio and the second ratio as the volume gain level.
[0050] In the above embodiment, the historical amplitude diagram can be found in the attached Figure 6 ,like Figure 6 As shown in the figure, Dx) records the amplitude record of each intercom in the past x days, where x can be 1, ..., n. When the line is disturbed, the device in the network is offline, etc., the signal changes abnormally. Therefore, the historical amplitude stored in the VTNC device can be compared with the current amplitude, and the volume gain level can be determined based on the historical amplitude to improve the accuracy of determining the volume gain level.
[0051] In the above embodiment, due to the jitter problem of the signal, the signal collected by the switch will fluctuate. Figure 7 This is the trend diagram of the VTH signal amplitude change under different quantities. From left to right, it means the quantity is decreasing. Figure 7It can be seen that when the number of VTH is large, the signal amplitude is weak, and when the number of VTH is small, the signal amplitude is strong. Therefore, when determining the volume gain level, the current number of devices can be determined, so that the determined volume gain level takes into account the impact of the number of devices on the call quality, thereby improving the accuracy of determining the volume gain level.
[0052] In the above embodiment, the volume gain level can be calculated according to the following formula: level = ,in, Indicates the target amplitude; It can be understood as the average value of amplitude within the historical period; Indicates the conversion coefficient between the target amplitude and level. It can be determined based on the hardware acquisition data in the project. Please refer to Table 1 and Figure 8 Table 1 shows the relationship between the number of VTH, audio signal amplitude, attenuation ratio, amplification factor and gear position. Figure 8 It is the VTH audio attenuation detection gain compensation diagram; It can be understood as the number of call devices; Indicates the cable length.
[0053] Table 1
[0054]
[0055] In an exemplary embodiment, collecting audio in the target cable to obtain second audio includes: collecting initial audio in the target cable; filtering the initial audio in a target manner to obtain the second audio, wherein the amplitude of the second audio is within a target amplitude range.
[0056] In the above embodiment, the second audio waveform diagram can be found in the attached Fig. 9 ,like Fig. 9 As shown, after playing the first audio, the second audio collected immediately may fluctuate, resulting in unstable amplitude of the collected second audio. Therefore, the collected signal can be filtered to keep it within the target amplitude period, which can increase the frequency of stable detection. The initial audio can be processed by sliding window filtering, which can also be called moving average filtering. It can be understood as calculating the average value within a certain number of sample windows, using this average value as the output of the current point. When the window moves along the signal, the new average value of the data in the window is calculated to obtain a smoothed signal, i.e., the second audio signal.
[0057] In an exemplary embodiment, before the first audio of the target frequency is output in the target cable connecting the switch to the target call device, the method further includes one of the following: receiving a first call signaling sent by the first call device for requesting a call with the target call device, sending the first call signaling to the target call device, and upon receiving a first answer signaling sent by the target call device, determining that the communication request for establishing a communication connection between the first call device and the target call device is received; receiving a second call signaling sent by the target call device for requesting a call with the first call device, sending the second call signaling to the first call device, and upon receiving the second answer signaling sent by the first call device, determining that the communication request for establishing a communication connection between the first call device and the target call device is received.
[0058] In the above embodiment, the first communication device can actively request to establish a communication connection with the target communication device, and the target communication device can also actively request to establish a connection with the first communication device. Fig.10 In the protocol transmission flow chart, when the outdoor station (i.e., the first communication device) initiates a call signaling (i.e., the first call signaling), the distributor (i.e., the switch) receives the call signaling sent by the outdoor station and forwards the call signaling to the indoor station (i.e., the target communication device); after receiving the connection request, the indoor station sends a receiving signal to the distributor (i.e., the first receiving signaling). After receiving the receiving signaling, the distributor performs audio attenuation detection, i.e., executes the call volume adjustment method, obtains the volume gain level, and sends the volume gain level to the indoor station through signaling. At the same time, the receiving signaling is forwarded to the outdoor station. The outdoor station receives the receiving signaling and enters the intercom mode. At this time, the indoor station has adjusted the call volume according to the volume gain level, and the indoor station and the outdoor station can communicate at the volume after gain.
[0059] In the above embodiment, when the indoor unit (i.e., the above target call device) initiates a call signaling (i.e., the above second call signaling), the distributor (i.e., the above switch) receives the call signaling sent by the indoor unit and forwards the call signaling to the outdoor unit (i.e., the above first call device); after receiving the connection request, the outdoor unit sends a receiving signal to the distributor (i.e., the above second receiving signaling), and after receiving the receiving signaling, the distributor performs audio attenuation detection, i.e., executes the call volume adjustment method, obtains the volume gain level, and sends the volume gain level to the indoor unit by signaling, and at the same time, forwards the receiving signaling to the indoor unit, and the indoor unit receives the receiving signaling and enters the intercom mode. At this time, the indoor unit has adjusted the call volume according to the volume gain level, and the indoor unit and the outdoor unit can communicate at the volume after gain.
[0060] The following is a description of the method for adjusting the call volume in conjunction with a specific implementation method:
[0061] Fig.11 is a flow chart of a method for adjusting call volume according to a specific embodiment of the present invention. Fig.11 As shown, the process includes:
[0062] Step S1102, start the attenuation detection mode;
[0063] Step S1104, when the signal is detected to be attenuated, first fix the audio detection signal (corresponding to the first audio), which may be a 1KHz sine wave signal;
[0064] Step S1106, collecting audio signals at different distances and different VTH numbers (corresponding to the second audio signal);
[0065] Step S1108, in order to ensure the robustness of the detection, the retrieved audio signal is filtered and the amplitude is detected;
[0066] Step S1110, calculating the gain compensation level according to the amplitude information of the audio signal; when the signal is abnormal, calculating the compensation level according to the comparison between the abnormal amplitude and the historical amplitude;
[0067] Step S1112, outputting the calculated compensation gear (corresponding to the above-mentioned volume gain level) to VTH (corresponding to the above-mentioned target call device).
[0068] In the aforementioned embodiment, by using a sound source with a fixed frequency and a fixed amplitude, and performing frequency matching and amplitude comparison technology with the recovered signal, the compensation level calculation value is obtained, and the result is mapped to a gear position to achieve gain compensation for the call volume. When determining the volume gain level, only the switch performs gain detection and gear control for the entire system, which can effectively reduce costs. In this way, there is no need for each other end to make a gain compensation judgment. In addition, the only point of gain detection is the switch, which ensures the coordination consistency of the call system, reduces the complexity of gain compensation negotiation, and avoids affecting the real-time performance of the intercom.
[0069] In this embodiment, a communication device is also provided. Fig.12 is a schematic diagram of the structure of a communication device according to an embodiment of the present invention. Fig.12 As shown, the above-mentioned communication equipment includes:
[0070] A main controller 1202, the main controller is connected to the switch, the main controller includes a plurality of general input and output ports, and is used to receive the volume gain level sent by the switch, and control the plurality of general input and output ports to output target levels based on the volume gain level;
[0071] an amplifier 1204, wherein a first end of the amplifier is connected to the plurality of the universal input and output ports, and a second end of the amplifier is connected to an input end of the main controller, and is used to amplify the received audio signal according to the target level;
[0072] The switch determines the volume gain level in the following manner: upon receiving a communication request for establishing a communication connection between a first call device and a target call device, outputting a first audio of a target frequency in a target cable connecting the switch and the target call device, wherein the first call device is connected to a second call device through the switch, the target call device is a call device included in the second call device, and the target call device is a call device indicated in the communication request; during the transmission of the first audio in the target cable, collecting the audio in the target cable to obtain the second audio; determining the volume gain level of the target call device based on the target amplitude of the second audio; and sending the volume gain level to the target call device to instruct the target call device to adjust the call volume between the target call device and the first call device according to the volume gain level.
[0073] In the above embodiment, the main controller may be GPI0_Ctrl, which may control the target level of the output of the input and output ports according to the received volume gain level. Fig.12 As shown, Fig.12 This is a schematic diagram of the gain compensation circuit at the VTH receiving end. The target level can be high or low, which is controlled by the volume gain level gear. For example Fig.12 The gear structure on the right side of the middle amplifier, the main controller can use 4 GPIOs to achieve 4 gears of audio gain compensation, which correspond to 4 switch connection modes, which can be 0001, 0010, 0100, 1000, where 1 indicates switch connection and 0 indicates disconnection. It should be noted that the main controller includes 4 general input and output ports, which is only an exemplary description, and can also be 2, 3, 6, 8, etc., and the present invention is not limited to this.
[0074] In the above embodiment, the amplifier is connected to the input end of the main controller, and can amplify the audio signal according to the above four gears. When the first call device requests to communicate with the target call device, the switch outputs the first audio at a certain frequency to the target call device through the target cable, and collects the second audio on the target cable, determines the volume gain level according to the target amplitude of the second audio, and sends the volume gain level to VTH, which can adjust the volume gain amplification factor according to the level.
[0075] In the above embodiment, the first communication device may be a VTO unit door phone, the switch may be a VTNC distributor, and the second communication device may be a VTH unit indoor unit. The VTO door phone may be connected to the VTH unit indoor unit through the VTNC distributor to establish a communication relationship.
[0076] In the above embodiment, the communication request may be a request sent by the first call device to the switch, which may be used to indicate the target call device, that is, the first call device establishes a communication connection with the target call device through the communication request. The communication request may also be a request sent by the target call device to the switch, and the target call device may establish a communication connection with the first call device through the communication request. The communication request may carry the identifier of the call device to be called. After receiving the communication request, the switch may identify the device identifier in the communication request and forward the communication request to the device corresponding to the device identifier. After receiving the communication request, the device corresponding to the device identifier decides whether to establish a communication connection with the requesting device.
[0077] In the above embodiment, the target call device can be any one of the second call devices, which is the second call device that the first call device wants to establish a communication connection with through the switch. Since the first call device, the second call device and the switch are connected by cables, the target cable can be a cable for transmitting communications between the switch and the target call device, which can be an RVV cable. The RVV cable is a polyvinyl chloride insulated soft cable, which can provide additional protection due to the addition of an outer polyvinyl chloride sheath. The target frequency can be 1kHz, and the first audio can be a sinusoidal wave signal of the target frequency, which is not limited by the present invention.
[0078] In the above embodiment, the communication relationship between the first call device VTO, the second call device VTH and the switch VTNC can be referred to as Figure 3 As shown, there can be multiple second call devices VTH and first call devices VTO, all of which are connected through a VTNC switch. In addition, audio gain is achieved between VTH and VTNC through an RVV cable (i.e., the above-mentioned target cable).
[0079] In the above embodiment, the schematic diagram of the volume gain achieved by the VTNC switch and the VTH indoor unit is as follows: Figure 4 As shown, when the first call device wants to establish a communication request with the target call device, the switch outputs an audio signal (first audio) at a certain frequency to the target call device through the target cable, and collects the audio signal (second audio) on the target cable, determines the volume gain level according to the target amplitude of the second audio, and sends the volume gain level to VTH, which can adjust the volume gain amplification factor according to the level.
[0080] In an exemplary embodiment, the calling device further comprises: a hands-free calling chip, the hands-free calling chip is connected to the second end of the amplifier, and the amplifier is connected to the main controller through the hands-free calling chip. In the above embodiment, the hands-free calling chip can be an MC34118 chip, which connects the amplifier to the main controller to transmit the audio signal amplified by the amplifier according to a certain level.
[0081] In an exemplary embodiment, the calling device further includes: a filtering circuit and an amplitude detection circuit, and the hands-free calling chip is connected to the main controller via the filtering circuit and the amplitude detection circuit in sequence.
[0082] In the above embodiment, the filtering circuit may be an EQ equalizer filter, and the amplitude detection circuit may be an AudioDetetc audio detection. The filtering circuit and the amplitude detection circuit may smooth the amplified audio and detect the amplitude information for determining the volume gain level.
[0083] Through the present invention, when a call request is received for establishing a communication connection between a first call device and a target call device in a second call device, the first audio is output to the target call device through the target cable and the second audio on the target cable is collected. The volume gain level of the target call device can be determined according to the target amplitude of the second audio, and the main controller can control the target level of the output of its universal input and output port according to the volume gain level sent by the received switch, and the amplifier connected to the universal input and output port can amplify the received audio signal according to the target level. Since the volume gain level can be determined according to the collected second audio and audio gain compensation is achieved, the problem of poor call quality existing in the related art can be solved, thereby achieving the effect of improving call quality.
[0084] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present invention.
[0085] In this embodiment, a device for adjusting the call volume is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and will not be repeated here. As used below, the term "module" may be a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0086] Fig.13 FIG. 1 is a structural block diagram of a device for adjusting call volume according to an embodiment of the present invention. Fig.13 As shown, the device comprises:
[0087] The output module 1302 is used to output a first audio of a target frequency in a target cable connecting a switch and the target call device when receiving a communication request for establishing a communication connection between a first call device and a target call device, wherein the first call device is connected to a second call device through the switch, the target call device is a call device included in the second call device, and the target call device is a call device indicated in the communication request;
[0088] A collection module 1304 is used to collect the audio in the target cable during the transmission of the first audio in the target cable to obtain a second audio;
[0089] A determination module 1306, configured to determine a volume gain level of the target call device based on a target amplitude of the second audio;
[0090] The sending module 1308 is used to send the volume gain level to the target call device to instruct the target call device to adjust the call volume between the target call device and the first call device according to the volume gain level.
[0091] In an exemplary embodiment, the determination module 1306 can determine the volume gain level of the target call device based on the target amplitude of the second audio in the following manner: determine the historical amplitude of the third audio in the target cable collected each time within a historical predetermined time period, wherein the third audio is the audio collected during the process of transmitting the first audio in the target cable; determine the amplitude average of the historical amplitudes; determine the number of call devices of the second call device and the cable length of the target cable at the current moment; determine the volume gain level based on the target amplitude, the amplitude average, the number of call devices and the cable length.
[0092] In an exemplary embodiment, the device can be used to determine the volume gain level based on the target amplitude, the amplitude average, the number of call devices and the cable length: determine the sum of the target amplitude and the amplitude average; determine a first ratio of the sum to a target constant; determine a first product of the number of call devices and the cable length; determine a second ratio of a preset conversion coefficient to the first product; and determine the second product of the first ratio and the second ratio as the volume gain level.
[0093] In an exemplary embodiment, the acquisition module 1304 can acquire the audio in the target cable to obtain the second audio by: acquiring the initial audio in the target cable; filtering the initial audio in a target manner to obtain the second audio, wherein the amplitude of the second audio is within a target amplitude range.
[0094] In an exemplary embodiment, the device can also be used to: receive a first call signaling sent by the first call device to request a call with the target call device, send the first call signaling to the target call device, and upon receiving a first answer signaling sent by the target call device, determine that the communication request for establishing a communication connection between the first call device and the target call device is received; receive a second call signaling sent by the target call device to request a call with the first call device, send the second call signaling to the first call device, and upon receiving the second answer signaling sent by the first call device, determine that the communication request for establishing a communication connection between the first call device and the target call device is received.
[0095] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.
[0096] An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.
[0097] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.
[0098] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0099] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0100] An embodiment of the present invention further provides a computer program product, including a computer program, which implements the steps of the method in each embodiment of the present application when the computer program is executed by a processor.
[0101] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.
[0102] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0103] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for adjusting call volume, characterized in that: include: In case of receiving a communication request for establishing a communication connection between a first communication device and a target communication device, outputting a first audio of a target frequency in a target cable connecting a switch and the target communication device, wherein the first communication device is connected to a second communication device through the switch, the target communication device is a communication device included in the second communication device, and the target communication device is a communication device indicated in the communication request; During the transmission of the first audio in the target cable, collecting the audio in the target cable to obtain a second audio; Determining a volume gain level of the target call device based on a target amplitude of the second audio; Sending the volume gain level to the target call device to instruct the target call device to adjust the call volume between the target call device and the first call device according to the volume gain level; Determining the volume gain level of the target call device based on the target amplitude of the second audio includes: determining the historical amplitude of the third audio in the target cable collected each time within a historical predetermined time period, wherein the third audio is the audio collected during the transmission of the first audio in the target cable; determining the average amplitude of the historical amplitude; determining the number of call devices of the second call device and the cable length of the target cable at the current moment; determining the volume gain level based on the target amplitude, the average amplitude, the number of call devices and the cable length.
2. The method according to claim 1, characterized in that Determining the volume gain level based on the target amplitude, the amplitude average, the number of call devices, and the cable length includes: Determine a sum of the target amplitude and the amplitude average value; determining a first ratio of the sum to a target constant; Determining a first product of the number of communication devices and the length of the cable; determining a second ratio of a preset conversion coefficient to the first product; A second product of the first ratio and the second ratio is determined as the volume gain level.
3. The method according to claim 1, characterized in that Collecting the audio in the target cable to obtain the second audio includes: Collecting initial audio in the target cable; The initial audio is filtered in a target manner to obtain the second audio, wherein the amplitude of the second audio is within a target amplitude range.
4. The method according to claim 1, characterized in that: Before the switch outputs the first audio of the target frequency in the target cable connecting the target call device, the method further includes one of the following: Receiving a first call signaling sent by the first call device for requesting a call with the target call device, sending the first call signaling to the target call device, and upon receiving a first answer signaling sent by the target call device, determining that the communication request for establishing a communication connection between the first call device and the target call device is received; Receive the second call signaling sent by the target call device to request a call with the first call device, send the second call signaling to the first call device, and when receiving the second answer signaling sent by the first call device, determine that the communication request for establishing a communication connection between the first call device and the target call device is received.
5. A communication device, characterized in that: include: A main controller, the main controller is connected to the switch, the main controller includes a plurality of general input and output ports, and is used to receive the volume gain level sent by the switch, and control the plurality of general input and output ports to output target levels based on the volume gain level; an amplifier, a first end of the amplifier being connected to the plurality of the universal input and output ports, a second end of the amplifier being connected to the input end of the main controller, and being used to amplify the received audio signal according to the target level; The switch determines the volume gain level in the following manner: upon receiving a communication request for establishing a communication connection between a first call device and a target call device, outputting a first audio of a target frequency in a target cable connecting the switch and the target call device, wherein the first call device is connected to a second call device through the switch, the target call device is a call device included in the second call device, and the target call device is a call device indicated in the communication request; in the process of transmitting the first audio in the target cable, collecting the audio in the target cable to obtain the second audio; determining the volume gain level of the target call device based on the target amplitude of the second audio; sending the volume gain level to the target call device to instruct the target call device to adjust the call volume between the target call device and the first call device according to the volume gain level; The switch determines the volume gain level of the target call device based on the target amplitude of the second audio in the following manner: determining the historical amplitude of the third audio in the target cable collected each time within a historical predetermined time period, wherein the third audio is the audio collected during the transmission of the first audio in the target cable; determining the amplitude average of the historical amplitudes; determining the number of call devices of the second call device and the cable length of the target cable at the current moment; and determining the volume gain level based on the target amplitude, the amplitude average, the number of call devices and the cable length.
6. The communication device according to claim 5, characterized in that: The calling device further comprises: a hands-free calling chip, wherein the hands-free calling chip is connected to the second end of the amplifier, and the amplifier is connected to the main controller via the hands-free calling chip.
7. The communication device according to claim 6, characterized in that: The calling device further comprises: a filtering circuit and an amplitude detection circuit, and the hands-free calling chip is connected to the main controller via the filtering circuit and the amplitude detection circuit in sequence.
8. A device for adjusting call volume, characterized in that: include: an output module, configured to output a first audio of a target frequency in a target cable connecting a switch and the target call device when receiving a communication request for establishing a communication connection between a first call device and a target call device, wherein the first call device is connected to a second call device through the switch, the target call device is a call device included in the second call device, and the target call device is a call device indicated in the communication request; A collection module, configured to collect the audio in the target cable during the process of transmitting the first audio in the target cable to obtain a second audio; A determination module, configured to determine a volume gain level of the target call device based on a target amplitude of the second audio; A sending module, used for sending the volume gain level to the target call device, so as to instruct the target call device to adjust the call volume between the target call device and the first call device according to the volume gain level; The determination module determines the volume gain level of the target call device based on the target amplitude of the second audio in the following manner: determining the historical amplitude of the third audio in the target cable collected each time within a historical predetermined time period, wherein the third audio is the audio collected during the transmission of the first audio in the target cable; determining the amplitude average of the historical amplitudes; determining the number of call devices of the second call device and the cable length of the target cable at the current moment; and determining the volume gain level based on the target amplitude, the amplitude average, the number of call devices and the cable length.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program is configured to execute the method according to any one of claims 1 to 4 when executed.
10. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to perform the method according to any one of claims 1 to 4.
11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 4 are implemented.
Citation Information
Patent Citations
Volume output adjusting circuit
CN102098015A