Voice signal processing circuit, voice gateway and communication system

By designing matching modules and switching modules in the voice gateway, the resource allocation and voice signal processing of DSP are optimized, and the problem of voice signal loss during multi-channel calls is solved, and the call quality is improved.

CN119676357APending Publication Date: 2025-03-21SHENZHEN DINSTAR TECH
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202411796528.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-09
Publication Date
2025-03-21

AI Technical Summary

Technical Problem

When the existing voice gateway processes voice signals for multiple calls at the same time in a DSP, the processing volume is large, resulting in some voice signals being lost and affecting the call quality.

Method used

A voice signal processing circuit is designed, including a matching module and a switching module. The matching module is used to obtain the current working status of the digital signal processor and the connected call link, determine the idle digital signal processor and the telephone interface, and generate a switching signal. The switching module conducts the idle digital signal processor and the idle telephone interface according to the switching signal, and processes the newly accessed voice signal.

Benefits of technology

By prioritizing the use of idle digital signal processors to handle newly-accessed calls, the loss of voice signals is reduced and the call quality is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119676357A_ABST
    Figure CN119676357A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of voice communication, and discloses a voice signal processing circuit, a voice gateway and a communication system, and the circuit comprises a matching module and a switching module. The matching module is used for acquiring the current working state of each digital signal processor and the corresponding connected call link; determining an idle digital signal processor according to each current working state, and determining an idle telephone interface according to each connected call link; generating a first switching signal based on the idle telephone interface and the idle digital signal processor, and transmitting the first switching signal to the switching module; and the switching module is used for conducting the corresponding idle digital signal processor with the corresponding idle telephone interface according to the first switching signal, so that the idle digital signal processor processes the voice signal of the newly accessed call. Compared with the prior art, when multiple paths of calls occur, the idle digital signal processor can be preferentially used for processing, the voice signal loss condition is reduced, and the call quality is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of voice communication technology, and in particular to a voice signal processing circuit, a voice gateway and a communication system. Background Art

[0002] The voice gateway is mainly used to convert and adapt between different types of telephone systems to achieve the intercommunication and interconnection of voice signals. For the telephone end, the telephone interface of the voice gateway generally receives the voice signal and transmits it to the corresponding digital signal processor (DSP) for processing, and then outputs it through the network end interface to complete the call.

[0003] Existing voice gateways generally support multi-channel calls, that is, multiple DSPs can be set up inside, and each DSP can be connected to the corresponding telephone interface according to the pre-set call link to handle the corresponding call. However, when a DSP processes the voice signals of multiple calls at the same time, due to the large processing volume, some voice signals may be lost, affecting the call quality. Summary of the invention

[0004] The main purpose of this application is to provide a voice signal processing circuit, a voice gateway and a communication system, aiming to solve the existing technical problem that when a DSP processes the voice signals of multiple calls at the same time, the processing volume may be large, which may cause part of the voice signal to be lost, affecting the call quality.

[0005] To achieve the above object, the present application provides a voice signal processing circuit, the circuit comprising: a matching module and a switching module;

[0006] The matching module is connected to each telephone interface, the switching module and each digital signal processor respectively, and the switching module is connected to each telephone interface and each digital signal processor respectively;

[0007] The matching module is used to obtain the current working state of each digital signal processor and the corresponding connected call link;

[0008] The matching module is further used to determine an idle digital signal processor according to each of the current working states, and to determine an idle telephone interface according to each of the connected call links;

[0009] The matching module is further used to generate a first switching signal based on the idle telephone interface and the idle digital signal processor and transmit it to the switching module;

[0010] The switching module is used to connect the corresponding idle digital signal processor to the corresponding idle telephone interface according to the first switching signal, so that the idle digital signal processor processes the voice signal of the newly connected call.

[0011] In one embodiment, the matching module is further used to determine whether there is an idle digital signal processor according to each of the current working states;

[0012] The matching module is further used to determine an idle telephone interface according to each of the connected call links when the idle digital signal processor exists;

[0013] The matching module is further used to determine the working performance of each of the idle digital signal processors, and allocate each of the idle telephone interfaces based on the working performance;

[0014] The matching module is further configured to generate a first switching signal according to the allocation result and transmit the first switching signal to the switching module.

[0015] In one embodiment, the matching module is further used to determine whether the idle telephone interfaces are evenly divided based on the digital signal processors when there are no idle digital signal processors;

[0016] The matching module is further configured to, if not, obtain the first silence segment information of each of the connected call links, and determine the first silence ratio of each of the connected call links based on the first silence segment information;

[0017] The matching module is further configured to allocate each of the idle telephone interfaces based on each of the first silence proportions.

[0018] In one embodiment, the matching module is further used to obtain the performance decay rate and current service life of each of the idle digital signal processors;

[0019] The matching module is further used to determine the working performance of each of the idle digital signal processors based on each of the performance decay rates and each of the current service life.

[0020] In one embodiment, the matching module is further used to determine the total working performance based on each of the working performances, and determine the number of interfaces of the idle telephone interface;

[0021] The matching module is further used to determine the performance ratio of each idle digital signal processor based on the total working performance and each working performance, and to allocate each idle telephone interface based on the idle telephone interface and each performance ratio.

[0022] In one embodiment, the matching module is further configured to determine, when detecting the new incoming call, second silence segment information of the new incoming call, and determine a second silence ratio of the new incoming call based on the second silence segment information;

[0023] The matching module is further used to determine whether the idle digital signal processor processes the newly-incoming call;

[0024] The matching module is further configured to, if not, determine a candidate digital signal processor based on the second silence ratio and each of the first silence ratios, and generate a second switching signal based on the candidate digital signal processor and transmit it to the switching module;

[0025] The switching module is further used to connect the standby digital signal processor to the telephone interface corresponding to the newly-incoming call according to the second switching signal, so that the standby digital signal processor processes the voice signal of the newly-incoming call.

[0026] In one embodiment, the matching module is further used to determine an average silence ratio of each of the digital signal processors based on each of the first silence ratios, and to select a candidate digital signal processor from each of the digital signal processors based on each of the average silence ratios;

[0027] The matching module is further configured to generate a second switching signal based on the candidate digital signal processor and the newly-incoming call when the second silence proportion is lower than an average silence proportion corresponding to the candidate digital signal processor.

[0028] In one embodiment, the matching module is further used to obtain current signals in each call link, and determine the current change of each call link based on the current signals;

[0029] The matching module is further configured to determine that the call link is a connected call link when the current change condition is in a preset change condition;

[0030] The matching module is further configured to determine the number of connected calls based on the connected call links, and determine the incoming new call when detecting that the number of connected calls increases.

[0031] In addition, to achieve the above-mentioned purpose, the present application also provides a voice gateway, which includes the voice signal processing circuit as described above.

[0032] In addition, to achieve the above objectives, the present application also provides a communication system, which includes the voice gateway as described above.

[0033] The present application provides a voice signal processing circuit, a voice gateway and a communication system, the circuit comprising: a matching module and a switching module; the matching module is respectively connected to each telephone interface, the switching module and each digital signal processor, and the switching module is respectively connected to each telephone interface and each digital signal processor; the matching module is used to obtain the current working state of each digital signal processor and the corresponding connected call link; the matching module is also used to determine an idle digital signal processor according to each current working state, and determine an idle telephone interface according to each connected call link; the matching module is also used to generate a first switching signal based on the idle telephone interface and the idle digital signal processor and transmit it to the switching module; the switching module is used to connect the corresponding idle digital signal processor with the corresponding idle telephone interface according to the first switching signal, so that the idle digital signal processor processes the voice signal of the newly connected call.

[0034] Since the present application is provided with a matching module and a switching module, the current working state of each digital signal processor and the corresponding connected call link can be obtained through the matching module, and the idle digital signal processor is determined according to each current working state, and the idle telephone interface is determined according to the connected call link, and then the first switching signal is generated based on the idle telephone interface and the idle digital signal processor. After receiving the first switching signal, the switching module can connect the idle digital signal processor with the corresponding idle telephone interface. When a new call is connected, the voice signal of the newly connected call can be transmitted to the idle digital signal processor, so that the idle digital signal processor processes the voice signal. Compared with the existing one DSP processing multiple calls resulting in the loss of part of the voice signal, when there are multiple calls, the present application can give priority to the idle digital signal processor for processing, reduce the loss of voice signals, and improve the call quality. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0036] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0037] Figure 1 This is a schematic diagram of the connection relationship between the DSP inside the traditional voice gateway;

[0038] Figure 2This is a structural diagram of the first embodiment of the speech signal processing circuit of the present application;

[0039] Figure 3 This is a schematic diagram of the structure of the second embodiment of the speech signal processing circuit of the present application.

[0040] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0041] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0042] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0043] It should be noted that all directional indications in the embodiments of the present application (such as up, down, left, right, front, back, etc.) are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.

[0044] In addition, the descriptions of "first", "second", etc. in this application are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in this field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection required by this application.

[0045] It is understandable that the voice gateway is mainly used to convert and adapt between different types of telephone systems to achieve the intercommunication and interconnection of voice signals. For the telephone end, the telephone interface of the voice gateway generally receives the voice signal and transmits it to the corresponding digital signal processor (DSP) for processing, and then outputs it through the network end interface to complete the call.

[0046] The existing voice gateway generally supports multi-channel calls, that is, multiple DSPs can be set up inside, and each DSP can be connected to the corresponding telephone interface according to the pre-set call link to handle the corresponding call. Figure 1 , Figure 1 The following is a schematic diagram of the connection relationship between the DSPs in a traditional voice gateway. Figure 1 As shown, in a traditional voice gateway, in order to support multi-way calls, multiple telephone interfaces can be set. This embodiment uses four for illustration, namely Figure 1 The telephone interface 1 to the telephone interface 4 in the figure can also be used to handle four calls at the same time, and two DSPs can be set at the same time, that is, Figure 1 Among them, DSP1 and DSP2, each DSP can be fixedly connected to the corresponding telephone interface. This embodiment allows one DSP to handle two calls, and then DSP1 can be connected to telephone interface 1 and telephone interface 2, and DSP2 can be connected to telephone interface 3 and telephone interface 4.

[0047] In actual use, when a call is connected, the corresponding telephone interface can receive the voice signal sent by the user on the telephone end, which can be first converted into digital form by an analog-to-digital converter (not shown in the figure) and then transmitted to the corresponding DSP for processing (such as optimization compression, etc.), and then encoded by the corresponding encoder (not shown in the figure) and transmitted to the internal general processor for data forwarding, etc., and then output to the network switching module (not shown in the figure) and transmitted to the user on the network end. Otherwise, the process is opposite. This embodiment uses the telephone end to send a voice signal to the network end to illustrate.

[0048] Based on the above, when a DSP processes voice signals of multiple calls at the same time, due to the large amount of processing, some voice signals may be lost, affecting the call quality.

[0049] Therefore, in order to solve the above defects, this embodiment provides a voice signal processing circuit, which is provided with a matching module and a switching module. The matching module can obtain the current working state of each digital signal processor and the corresponding connected call link, and determine the idle digital signal processor according to each current working state, determine the idle telephone interface according to the connected call link, and then generate a first switching signal based on the idle telephone interface and the idle digital signal processor. After receiving the first switching signal, the switching module can connect the idle digital signal processor with the corresponding idle telephone interface. When a new call is connected, the voice signal of the newly connected call can be transmitted to the idle digital signal processor, so that the idle digital signal processor processes the voice signal. Compared with the existing one DSP processing multiple calls resulting in partial voice signal loss, when multiple calls occur, the present application can give priority to the idle digital signal processor for processing, thereby reducing the loss of voice signals and improving the call quality.

[0050] For ease of understanding, the following combination Figures 2 to 3 The voice signal processing circuit provided in the embodiment of the present application is specifically introduced.

[0051] Reference Figure 2 , Figure 2 Schematic diagram of the structure of the first embodiment of the voice signal processing circuit of the present application, the first embodiment of the voice signal processing circuit of the present application is proposed, such as Figure 2 As shown, in this embodiment, the circuit includes: a matching module and a switching module;

[0052] The matching module is connected to each telephone interface, the switching module and each digital signal processor respectively, and the switching module is connected to each telephone interface and each digital signal processor respectively.

[0053] It should be noted that the voice signal processing circuit provided in this embodiment can be applied to the scenario of allocating any DSP, such as the DSP in the voice gateway, and of course it can also be applied to other devices. This embodiment uses the DSP in the voice gateway for explanation.

[0054] Understandably, Figure 2 Four telephone interfaces and two DSPs are still used for illustration, that is, each telephone interface is connected to the switching module, the switching module is connected to each DSP, and each DSP is connected to a general processor. The connection between the DSP and the general processor is consistent with the traditional one, and this embodiment will not elaborate on this.

[0055] It is also understandable that the matching module can be any module capable of data processing and program execution, such as a microcontroller unit (MCU), etc., and this embodiment does not limit this. The switching module can be any module capable of multi-way switching, such as a switching switch, etc., and this embodiment does not limit this.

[0056] It should be understood that the matching module can be connected to the switching module to control the switching module to achieve conduction between each telephone interface and each digital signal processor.

[0057] The matching module is used to obtain the current working state of each digital signal processor and the corresponding connected call link;

[0058] The matching module is further used to determine an idle digital signal processor according to each of the current working states, and to determine an idle telephone interface according to each of the connected call links;

[0059] The matching module is further used to generate a first switching signal based on the idle telephone interface and the idle digital signal processor and transmit it to the switching module;

[0060] The switching module is used to connect the corresponding idle digital signal processor to the corresponding idle telephone interface according to the first switching signal, so that the idle digital signal processor processes the voice signal of the newly connected call.

[0061] It should be noted that the current working state can be the state of whether the digital signal processor is currently processing a call. When a digital signal processor is processing a voice signal transmitted by a call, it can be said that the digital signal processor is in a working state. When a digital signal processor is not processing a voice signal, it can be said that the digital signal processor is in an idle state. Therefore, in this embodiment, the matching module can be connected to each digital signal processor to obtain the current working state of each DSP.

[0062] It should also be noted that the above-mentioned connected circuit call link can be a call link that is currently transmitting a voice signal. In this embodiment, when there is a voice signal, the current on the line will change. This is because when there is no voice signal, the current on the line is in a static state, which can usually be a DC bias current to maintain power supply and standby state; when there is a voice signal, the current on the line can change with the amplitude of the voice signal, which is obviously different from the DC bias current. Therefore, in this embodiment, the above-mentioned matching module can be connected to the output end of each telephone interface (i.e. Figure 2 ADC1, ADC2, ADC3 and ADC4), so that the current change of the input end of each telephone interface can be monitored in real time, and when the amplitude change occurs, it can be determined that the call link is connected.

[0063] It should be emphasized that when all telephone interfaces do not receive voice signals, the above-mentioned switching module may be in a default connection state, which may be a state in which each digital signal processor is connected to each telephone interface in the traditional way, that is, DSP1 is connected to telephone interface 1 and telephone interface 2, and DSP2 is connected to telephone interface 3 and telephone interface 4. Of course, the default connection state may also be set according to the call proportion of each telephone interface, and the call proportions may be sorted. The ones with higher call proportions may be connected to a separate DSP. For example, telephone interface 1 has the highest call proportion, and thus telephone interface 1 may be connected to DSP1 separately, and telephone interface 2 to telephone interface 4 may be connected to DSP2.

[0064] The matching module is further used to determine an idle digital signal processor according to each of the current working states, and to determine an idle telephone interface according to each of the connected call links.

[0065] It is understandable that the idle digital signal processor may be a digital signal processor that is not currently processing a voice signal, and the idle telephone interface may be a telephone interface that is not currently connected to a call. When the matching module obtains the current working state of each digital signal processor, it can determine the digital signal processor that is not currently processing a voice signal.

[0066] It can also be understood that, since the matching module can control the switching module to connect the input end of each DSP to different telephone interfaces, the matching module in this embodiment can store the current connection status between the input end of each DSP and each telephone interface, and the matching module can determine which telephone interfaces are currently transmitting voice signals and which telephone interfaces are currently idle telephone interfaces based on the connection status and in combination with the connected call links.

[0067] The matching module is further configured to generate a first switching signal based on the idle telephone interface and the idle digital signal processor and transmit the first switching signal to the switching module;

[0068] The switching module is used to connect the corresponding idle digital signal processor to the corresponding idle telephone interface according to the first switching signal, so that the idle digital signal processor processes the voice signal of the newly connected call.

[0069] When the matching module determines the currently idle digital signal processors and idle telephone interfaces, each idle digital signal processor can be connected to each idle telephone interface, that is, the first switching signal is generated and transmitted to the switching module.

[0070] After receiving the first switching signal, the switching module can connect each idle digital signal processor to the corresponding idle telephone interface according to the first switching signal, so that when the idle telephone interface receives a new call, the voice signal of the newly connected call can be processed by the idle signal processor, and there is no need to process it by the digital signal processor that is already processing, thereby reducing voice signal loss and improving call quality.

[0071] Exemplarily, for example, the current call is through telephone interface 1, and the telephone interface 1 is connected to DSP1. After determining that the idle telephone interface is telephone interface 2 to telephone interface 4, and determining that the idle digital signal processor is DSP2, the matching module can generate a first switching signal to the switching module. The switching module can connect telephone interface 2 to telephone interface 4 to DSP2. When any of the telephone interfaces from telephone interface 2 to telephone interface 4 receives a new call, the voice signal of the newly connected call can be processed by DSP2 without being processed by DSP1.

[0072] Furthermore, considering that there may be a situation where there is an idle digital signal processor or there is no idle digital signal processor, in this embodiment, the matching module is further used to determine whether there is an idle digital signal processor according to each of the current working states;

[0073] The matching module is further used to determine an idle telephone interface according to each of the connected call links when the idle digital signal processor exists;

[0074] The matching module is further used to determine the working performance of each of the idle digital signal processors, and allocate each of the idle telephone interfaces based on the working performance;

[0075] The matching module is further configured to generate a first switching signal according to the allocation result and transmit the first switching signal to the switching module.

[0076] It should be noted that after determining that there is an idle digital signal processor, the above matching module can connect the idle telephone interface to the idle digital signal processor. However, considering that there may not be only one idle digital signal processor, when there is only one idle digital signal processor, all the idle telephone interfaces can be connected to the idle digital signal processor; when there are at least two idle digital signal processors, the working performance of each idle digital signal processor can be determined, and each idle telephone interface can be allocated based on the working performance. For example, when the working performance of an idle digital signal processor is high, more idle telephone interfaces can be allocated so that it can also have processing capabilities when at least two new calls are added at the same time. The specific allocation situation can be set according to the actual situation, and this embodiment does not limit this.

[0077] After the allocation is completed, the matching module can generate a corresponding first switching signal according to the allocation result and transmit it to the switching module. The switching module can switch according to the corresponding allocation result to connect each idle telephone interface with the corresponding idle digital signal processor.

[0078] Furthermore, in order to obtain working performance, in this embodiment, the matching module is further used to obtain the performance decay rate and current service life of each of the idle digital signal processors;

[0079] The matching module is further used to determine the working performance of each of the idle digital signal processors based on each of the performance decay rates and each of the current service life.

[0080] It should be noted that the above-mentioned performance degradation rate can be a parameter for evaluating the performance degradation of a digital signal processor, which can be obtained by testing each digital signal processor. Of course, it can also be obtained by other means. This embodiment does not limit this. For ease of understanding, this embodiment will record the performance degradation rate as r.

[0081] It should also be noted that the above-mentioned current service life can be the current service life of the digital signal processor, which can be obtained based on the installation time of the digital signal processor. Of course, it can also be obtained through other methods. This embodiment does not limit this. For ease of understanding, this embodiment will record the current service life as t.

[0082] In actual use, after obtaining the performance decay rate r and the corresponding current service life t of each idle digital signal processor, the matching module can determine the working performance of each idle digital signal processor according to the performance decay rate r and the current service life t. At this time, the initial performance of each idle digital signal processor can be obtained, and the initial performance can be the performance before the idle digital signal processor starts to be used, which can be recorded as P0 in this embodiment. Furthermore, when DSP2 and DSP3 are idle digital signal processors, the working performance of DSP2 is recorded as Pa, the performance decay rate is recorded as ra, and the current service life is recorded as ta, and the working performance of DSP3 is recorded as Pb, the performance decay rate is recorded as rb, and the current service life is recorded as tb, then Pa = (P0-ra*ta), Pb = (P0-rb*tb).

[0083] Furthermore, after obtaining the working performance of each idle digital signal processor, in order to make allocation, in this embodiment, the matching module is also used to determine the total working performance based on each of the working performances, and determine the number of interfaces of the idle telephone interface;

[0084] The matching module is further used to determine the performance ratio of each idle digital signal processor based on the total working performance and each working performance, and to allocate each idle telephone interface based on the idle telephone interface and each performance ratio.

[0085] It is understandable that the above-mentioned total working performance may be the sum of the working performances of all idle digital signal processors, and the above-mentioned performance ratio may be the ratio of each idle digital signal processor to the total working performance.

[0086] Continuing with the above example, if the number of idle telephone interfaces assigned by DSP2 is recorded as La, and the number of idle telephone interfaces assigned by DSP3 is recorded as Lb, the number of idle telephone interfaces is 5, that is, there are telephone interfaces 2 to 6 in an idle state. Therefore, La = 5*(Pa / (Pa+Pb)), La = 5*(Pb / (Pa+Pb)).

[0087] It should be emphasized that the above calculation may result in that the obtained La and Lb are not integers, and thus the above matching module in this embodiment may round off the obtained La and Lb, thereby obtaining the final allocation result of DSP2 and DSP3.

[0088] Furthermore, when there is no idle digital signal processor, in this embodiment, the matching module is also used to determine whether the idle telephone interfaces are evenly divided based on the digital signal processors when there is no idle digital signal processor.

[0089] It is understandable that when the matching module determines that there is no idle digital signal processor, it can first determine the number of all digital signal processors and the number of idle telephone interfaces, and determine whether the idle telephone interfaces can be evenly distributed to each idle digital signal processor.

[0090] For example, if there are three DSPs in a voice gateway, respectively recorded as DSP1 to DSP3, and one DSP can correspond to two telephone interfaces, then the telephone interfaces can be respectively recorded as telephone interface 1 to telephone interface 6. According to the above method, it is possible that telephone interface 1 and DSP1 are processing voice signals, telephone interface 2 and DSP2 are processing voice signals, and telephone interface 3 and DSP3 are processing voice signals, and there are three idle telephone interfaces, namely telephone interface 4 to telephone interface 6, and there is no idle digital signal processor at this time.

[0091] Then the matching module can determine whether the idle telephone interface can be evenly divided by each digital signal processor. When there are three idle telephone interfaces, since there are also three digital signal processors, they can be evenly divided, so that each digital signal processor can be allocated one idle telephone interface.

[0092] If the idle telephone interface 4 and DSP1 are processing voice signals, and there are two idle telephone interfaces left, namely telephone interface 5 and telephone interface 6, the previously allocated connections can be maintained. However, considering that the existing digital signal processors generally have a voice activity detection (VAD) function, it can detect whether there is voice activity in the voice signal, that is, distinguish the voice signal from the background noise. When the DSP determines that there is no voice activity, it will not perform subsequent encoding and other operations on the voice signal until voice activity is detected. Therefore, in this embodiment, the idle telephone interfaces can be allocated according to the VAD detection situation in each call link, that is, when non-voice activity is frequent in a call link, continuing to add new calls may cause DSP overload;

[0093] Furthermore, the matching module is further configured to, if not, obtain the first silence segment information of each of the connected call links, and determine the first silence ratio of each of the connected call links based on the first silence segment information;

[0094] The matching module is further configured to allocate each of the idle telephone interfaces based on each of the first silence proportions.

[0095] It should be understood that the above-mentioned silent segment information can be information identified as a non-voice activity segment in the call link. Each of the above-mentioned digital signal processors can perform VAD on the currently connected call link in real time, and then determine the voice activity segment and the non-voice activity segment, and the matching module can obtain the voice activity segment and the non-voice activity segment corresponding to each digital signal processor, and then the information corresponding to the non-voice activity segment can be used as the above-mentioned first silent segment information.

[0096] After obtaining the first silence segment information of each connected call link, the occurrence ratio of the non-voice activity segment corresponding to each connected call link can be calculated as the first silence ratio. For example, if the current call duration of a connected call link is recorded as x, the obtained non-voice activity segment duration is recorded as y, and the first silence ratio is recorded as f, then f=y / x*100%.

[0097] After obtaining the first silence ratio corresponding to each connected call link, the matching module can obtain the silence ratio of each digital signal processor based on the first silence ratio. For a digital signal processor with only one connected call link, the corresponding first silence ratio can be directly used as the silence ratio of the digital signal processor. If there are multiple connected call links, the average of the first silence ratios of each connected call link can be taken as the silence ratio of the digital signal processor. Finally, the idle telephone interfaces can be allocated based on the silence ratios.

[0098] Exemplarily, based on the above example, when the idle telephone interfaces are telephone interface 5 and telephone interface 6, the above calculation can obtain that the first silence ratio of the connected call link corresponding to telephone interface 1 is f1, the first silence ratio of the connected call link corresponding to telephone interface 2 is f2, the first silence ratio of the connected call link corresponding to telephone interface 3 is f3, and the first silence ratio of the connected call link corresponding to telephone interface 4 is f4, and then the silence ratio of DSP1 is (f1+f4) / 2, the silence ratio of DSP2 is f2, and the silence ratio of DSP3 is f3;

[0099] Then, the silent proportion of each DSP is sorted from large to small, and the idle telephone interface is allocated to the top ranked ones according to the situation from large to small. For example, if the sorting result is f3>f2>(f1+f4) / 2, DSP2 can be allocated an idle telephone interface, which can be telephone interface 5, and DSP3 can be allocated an idle telephone interface, which can be telephone interface 6.

[0100] This embodiment is provided with a matching module and a switching module, and the current working state of each digital signal processor and the corresponding connected call link can be obtained through the matching module, and the idle digital signal processor is determined according to each current working state, and the idle telephone interface is determined according to the connected call link, and then the first switching signal is generated based on the idle telephone interface and the idle digital signal processor. After receiving the first switching signal, the switching module can connect the idle digital signal processor with the corresponding idle telephone interface. When a new call is connected, the voice signal of the newly connected call can be transmitted to the idle digital signal processor, so that the idle digital signal processor processes the voice signal. Compared with the existing one DSP processing multiple calls resulting in the loss of part of the voice signal, when multiple calls occur, this embodiment can give priority to the idle digital signal processor for processing, thereby reducing the loss of voice signals and improving the call quality.

[0101] Reference Figure 3 , Figure 3 This is a structural diagram of the second embodiment of the voice signal processing circuit of the present application. Based on the above-mentioned first embodiment, the second embodiment of the voice signal processing circuit of the present application is proposed.

[0102] like Figure 3 As shown, in order to achieve switching, in this embodiment, the switching module may include: a plurality of gates;

[0103] The input end of each selector is connected to each telephone interface, the control end of each selector is connected to the matching module, and the output end of each selector is connected to the corresponding digital signal processor.

[0104] It should be noted that, since the present embodiment uses four telephone interfaces for illustration, the above-mentioned selector may be a four-to-one selector, and each selector may have four input terminals, that is, the first input terminal of each selector (i.e., the first pin of the selector) is connected to the telephone interface 1, the second input terminal of each selector (i.e., the second pin of the selector) is connected to the telephone interface 2, the third input terminal of each selector (i.e., the third pin of the selector) is connected to the telephone interface 3, and the fourth input terminal of each selector (i.e., the fourth pin of the selector) is connected to the telephone interface 4;

[0105] Since it is a four-to-one gate, there are two control terminals, namely the first control terminal of each gate (i.e. the sixth pin of the gate, i.e. Figure 3s0-1, s0-2, s0-3 and s0-4) and the second control terminal of each gate (i.e., the seventh pin of the gate, i.e. Figure 3 Among them, s1-1, s1-2, s1-3 and s1-4) are all connected to the matching module;

[0106] The output end of each gate (ie, the fifth pin of the gate) is connected to the output end of each digital signal processor, that is, each digital signal processor can be provided with four input ends, which are respectively connected to the output end of each gate.

[0107] Furthermore, considering that when a new call is connected, the digital signal processor that processes the new call may already be processing a call, resulting in overload. In this embodiment, the matching module is also used to determine the second silence segment information of the newly connected call when the newly connected call is detected, and determine the second silence ratio of the newly connected call based on the second silence segment information.

[0108] It is understandable that the second silence segment information may be the non-voice activity segment information corresponding to the newly connected call. The second silence ratio may be the occurrence ratio of the non-voice activity segment corresponding to the newly connected call, and the calculation process is consistent with the first silence ratio, which is not described in detail in this embodiment.

[0109] The matching module is further used to determine whether the idle digital signal processor processes the newly-incoming call.

[0110] For example, if the telephone interfaces currently in call are telephone interface 1 and telephone interface 2, DSP1 processes telephone interface 1 and DSP2 processes telephone interface 2, then telephone interface 3 to telephone interface 6 are all connected to DSP3, and when a new incoming call appears in telephone interface 3 to telephone interface 6, it can be processed by DSP3, and DSP3 is an idle digital signal processor, so the matching module does not perform subsequent switching operations.

[0111] When the telephone interfaces currently in use are telephone interface 1 to telephone interface 3, DSP1 processes telephone interface 1, DSP2 processes telephone interface 2, and DSP3 processes telephone interface 3, then telephone interface 4 to telephone interface 6 are all idle telephone interfaces. Further, when a new incoming call appears in telephone interface 4 to telephone interface 6, for example, telephone interface 4 receives a new call and it is processed by DSP1, it can be explained that DSP1 is not an idle digital signal processor at this time because it was previously processing telephone interface 1.

[0112] The matching module is further configured to, if not, determine a candidate digital signal processor based on the second silence ratio and each of the first silence ratios, and generate a second switching signal based on the candidate digital signal processor and transmit it to the switching module;

[0113] The switching module is further used to connect the standby digital signal processor to the telephone interface corresponding to the newly-incoming call according to the second switching signal, so that the standby digital signal processor processes the voice signal of the newly-incoming call.

[0114] It should be understood that the candidate digital signal processor may be a processor for processing a newly-incoming call. The call link to be switched may be a call link for switching with the call link of the newly-incoming call.

[0115] In actual use, after the matching module determines that the digital signal processor processing the newly-connected call is not an idle digital signal processor, it can determine whether the digital signal processor for the newly-connected call may be overloaded. Specifically, the matching module is further configured to determine the average silence ratio of each digital signal processor based on each of the first silence ratios, and select a candidate digital signal processor from each of the digital signal processors based on each of the average silence ratios;

[0116] The matching module is further configured to generate a second switching signal based on the candidate digital signal processor and the newly-connected call when the second silence ratio is lower than an average silence ratio corresponding to the candidate digital signal processor;

[0117] The switching module is further used to connect the standby digital signal processor to the telephone interface corresponding to the newly-incoming call according to the second switching signal, so that the standby digital signal processor processes the voice signal of the newly-incoming call.

[0118] In a specific implementation, when the matching module determines that the newly connected call is not an idle digital signal processor, the matching module can obtain the first silence ratio of each call link, and calculate the average silence ratio of each digital signal processor based on each first silence ratio.

[0119] For example, if telephone interface 1 is currently being processed by DSP1, telephone interface 2 is currently being processed by DSP2, telephone interface 3 is currently being processed by DSP3, and the newly connected call is telephone interface 4, which is currently being processed by DSP1, the matching module can obtain the first silence ratio corresponding to telephone interface 1, for example, recorded as f1, the first silence ratio corresponding to telephone interface 2, for example, recorded as f2, and the first silence ratio corresponding to telephone interface 3, for example, recorded as f3. Then, the average silence ratio of DSP1 is f1, the average silence ratio of DSP2 is f2, and the average silence ratio of DSP3 is f3. Then, the digital signal processor with the largest silence ratio can be selected from each average silence ratio as the candidate digital signal processor. For example, if DSP3 has the largest average silence ratio, DSP3 can be selected as the candidate digital signal processor.

[0120] After determining the candidate digital signal processor, the matching module may determine a second silence ratio of the newly connected call, for example, recorded as f4, and compare the second silence ratio f4 with the average silence ratio of the candidate digital signal processor, that is, compare the second silence ratio f4 with the first silence ratio f3;

[0121] When the second silence ratio f4 is not lower than the first silence ratio f3, it means that there are many non-voice activity segments in the newly connected call, and the existing digital signal processor (ie, DSP1) will not be overloaded when processing, so no switching is performed;

[0122] When the second silence ratio f4 is lower than the first silence ratio f3, it means that there are fewer non-voice activity segments in the newly connected call, and the existing digital signal processor (ie, DSP1) may be overloaded when processing, so a second switching signal can be generated and transmitted to the switching module.

[0123] After receiving the second switching signal, the switching module can connect the new incoming call with the corresponding standby digital signal processor, that is, connect the telephone interface 4 with the DSP3, so that the DSP3 processes the new incoming call.

[0124] It should be emphasized that when switching, in order to ensure the continuity of the call, the matching module of this embodiment can switch when a non-voice activity segment is detected in the newly incoming call, that is, when a non-voice activity segment is detected in the newly incoming call, a second switching signal is generated and transmitted to the switching module for switching.

[0125] Furthermore, in order to enable the matching module to detect whether a new call is connected, in this embodiment, the matching module is further used to obtain the current signal in each call link, and determine the current change of each call link based on the current signal;

[0126] The matching module is further configured to determine that the call link is a connected call link when the current change condition is in a preset change condition;

[0127] The matching module is further configured to determine the number of connected calls based on the connected call links, and determine the incoming new call when detecting that the number of connected calls increases.

[0128] Continue as Figure 3 As shown, since the matching module in this embodiment can be connected to the output end of each telephone interface (i.e. Figure 3 The matching module can then detect the current of each telephone interface in real time, obtain the current signal in each call link, and determine the current change of each telephone interface based on the current signal.

[0129] Then, it is determined whether each current change condition is in a preset change condition, which is a non-DC bias current condition; when it is in the preset change condition, the call link can be determined as a connected call link, and when it is not in the preset change condition, the call link can be determined as a disconnected call link;

[0130] After obtaining the connected call links, the matching module can count the number of connected call links as the connected number, which can represent the number of currently connected calls. After obtaining the connected number, it can detect in real time whether the number changes, and when the number increases, it can be determined that a new call is connected, and when the number decreases, it can be determined that a connected call has ended.

[0131] In addition, to achieve the above-mentioned purpose, an embodiment of the present application also provides a voice gateway, which includes the voice signal processing circuit as described above.

[0132] Other embodiments or specific implementation methods of the voice gateway described in this application can refer to the above-mentioned voice signal processing circuit embodiments, which will not be repeated here.

[0133] In addition, to achieve the above-mentioned purpose, an embodiment of the present application also provides a communication system, which includes the voice gateway as described above.

[0134] Other embodiments or specific implementations of the communication system described in the present application can refer to the above-mentioned voice signal processing circuit embodiments, which will not be repeated here.

[0135] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.

[0136] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0137] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A voice signal processing circuit, characterized in that: The circuit comprises: a matching module and a switching module; The matching module is connected to each telephone interface, the switching module and each digital signal processor respectively, and the switching module is connected to each telephone interface and each digital signal processor respectively; The matching module is used to obtain the current working state of each digital signal processor and the corresponding connected call link; The matching module is further used to determine an idle digital signal processor according to each of the current working states, and to determine an idle telephone interface according to each of the connected call links; The matching module is further used to generate a first switching signal based on the idle telephone interface and the idle digital signal processor and transmit it to the switching module; The switching module is used to connect the corresponding idle digital signal processor to the corresponding idle telephone interface according to the first switching signal, so that the idle digital signal processor processes the voice signal of the newly connected call.

2. The circuit according to claim 1, characterized in that The matching module is further used to determine whether there is an idle digital signal processor according to each of the current working states; The matching module is further used to determine an idle telephone interface according to each of the connected call links when the idle digital signal processor exists; The matching module is further used to determine the working performance of each of the idle digital signal processors, and allocate each of the idle telephone interfaces based on the working performance; The matching module is further configured to generate a first switching signal according to the allocation result and transmit the first switching signal to the switching module.

3. The circuit according to claim 2, characterized in that The matching module is further used to determine whether the idle telephone interfaces are evenly divided based on the digital signal processors when there are no idle digital signal processors; The matching module is further configured to, if not, obtain the first silence segment information of each of the connected call links, and determine the first silence ratio of each of the connected call links based on the first silence segment information; The matching module is further configured to allocate each of the idle telephone interfaces based on each of the first silence proportions.

4. The circuit according to claim 2, characterized in that The matching module is further used to obtain the performance decay rate and current service life of each of the idle digital signal processors; The matching module is further used to determine the working performance of each of the idle digital signal processors based on each of the performance decay rates and each of the current service life.

5. The circuit according to claim 4, characterized in that The matching module is further used to determine the total working performance based on each of the working performances, and determine the number of interfaces of the idle telephone interface; The matching module is further used to determine the performance ratio of each idle digital signal processor based on the total working performance and each working performance, and to allocate each idle telephone interface based on the idle telephone interface and each performance ratio.

6. The circuit according to any one of claims 3 to 5, characterized in that The matching module is further configured to determine, when detecting the new incoming call, second silence segment information of the new incoming call, and determine a second silence ratio of the new incoming call based on the second silence segment information; The matching module is further used to determine whether the idle digital signal processor processes the newly-incoming call; The matching module is further configured to, if not, determine a candidate digital signal processor based on the second silence ratio and each of the first silence ratios, and generate a second switching signal based on the candidate digital signal processor and transmit it to the switching module; The switching module is further used to connect the standby digital signal processor to the telephone interface corresponding to the newly-incoming call according to the second switching signal, so that the standby digital signal processor processes the voice signal of the newly-incoming call.

7. The circuit according to claim 6, characterized in that The matching module is further configured to determine an average silence ratio of each of the digital signal processors based on each of the first silence ratios, and select a candidate digital signal processor from each of the digital signal processors based on each of the average silence ratios; The matching module is further configured to generate a second switching signal based on the candidate digital signal processor and the newly-incoming call when the second silence proportion is lower than an average silence proportion corresponding to the candidate digital signal processor.

8. The circuit according to claim 6, characterized in that The matching module is further used to obtain the current signal in each call link, and determine the current change of each call link based on the current signal; The matching module is further configured to determine that the call link is a connected call link when the current change condition is in a preset change condition; The matching module is further configured to determine the number of connected calls based on the connected call links, and determine the incoming new call when detecting that the number of connected calls increases.

9. A voice gateway, characterized in that: The voice gateway comprises a voice signal processing circuit as claimed in any one of claims 1 to 8.

10. A communication system, characterized in that: The communication system comprises the voice gateway as claimed in claim 8.

Citation Information

Patent Citations

  • Method and apparatus for assigning transcoding resources in a session boarder controller

    CN101247331A

  • Voice communication processing method and mobile terminal

    CN107682360A

  • DSP (Digital Signal Processor) resource configuration method for VOIP (Voice over IP) equipment

    CN108174047A

  • Mute detection method, system and equipment and readable storage medium

    CN117692555A

  • Voice gateway and method for constructing special link from voice gateway

    CN1937680A