Half-duplex speakerphone

Abstract: A half-duplex digital speakerphone (10) includes a control state machine which controls the selection of either a transmit or a receive audio path based upon a present state of the speakerphone and the magnitudes of three signal related variables associated with each path. The three variables for each path includes a signal power variable, a noise power variable and a worst-case echo variable. A change of state of the state machine results in the value of a variable gain within each of the paths being adjusted to optimize the transition time from the receive to the transmit state or from the transmit to the receive state. Also optimized is a change of state from an idle state to a transmit or receive state or from a transmit or receive state to the idle state. A change of state is accomplished in accordance with a smoothly varying, substantially Gaussian switching waveform which is selected to optimize the transition time between states while simultaneously minimizing audible side effects.

Description: This invention relates generally to telephony apparatus and, in particular, relates to a half-duplex speakerphone which includes a state machine for selecting either a transmit or a receive signal path, the state machine being responsive to the values of a set of three signal related variables for each of the signal paths. A speakerphone generally includes a microphone coupled to an input of a transmit signal channel and a speaker coupled to an output of a receive signal channel. A speakerphone permits "hands-free" operation of a telephone set. In a half-duplex speakerphone only one of the signal channels is active, the other channel being disabled by having a significant amount of signal loss inserted therein. In general, circuitry must determine which channel is conveying speech signals so as to disable the other channel. This determination is preferably accomplished in a rapid manner so as not to clip or otherwise attenuate the initial portion of the speech signal. This determination must also accommodate a verbal interruption of the speaking party by the silent party so as to rapidly switch between the receive and the transmit signal channels or between the transmit and the receive signal channels. Complicating this determination are the presence of circuit and trunk noise signals and also the presence of echo signals. Echo signals may result from inadvertent acoustic coupling from the speaker to the microphone. Echo signals may also result from impedance mismatches within the audio coupling devices which connect the transmit and receive channels to the line. The echo component due to acoustic coupling between speaker and microphone may be especially difficult to control in that the degree of coupling is often influenced by such factors as the acoustic characteristics of the room, the relative position of the speaker to the microphone, or even the position of the user's body relative to the speakerphone. In that the magnitude of the echo signal component may exceed the value of the voice signal, a significant variability of speakerphone performance may be experienced. UK Patent Application GB 2 175 175 A discloses a half-duplex speakerphone which contains a digital signal processor for detecting which of a speaker or microphone channels was previously in control while providing an opportunity for the other channel to regain control by comparing incoming and outgoing envelope signal sample values with corresponding threshold and echo values. The line channel signal samples are suppressed in the event the local subscriber is talking and the microphone channel gain is adjusted in response to signals thereon. Similarly, the microphone signal samples are suppressed in the event the remote party is talking. The speakerphone compensates for noise generated on the incoming and outgoing channels due to crosstalk etc. by detecting average noise sample values associated with the channels and subtracting them from voice signals carried by the channels. The disclosed speakerphone suffers a disadvantage when determining whether one of the channels is in use because of the subtraction of the noise from the full value of the voice signals. There is a need to better analyze this function to provide for a desired amount of stability versus a desired response to low-level, non-noise signals. It is therefore one object of the invention to provide a half-duplex speakerphone which switches rapidly between speech signal paths. It is another object of the invention to provide a half-duplex speakerphone which readily provides for improved interruptability. It is still another object of the invention to provide a half-duplex speakerphone which provides a significant immunity to the effects of circuit and trunk noise and also echo signals. The foregoing and other problems are overcome and the objects of the invention are realized by a half-duplex digital speakerphone which, in accordance with the methods and apparatus of the invention, includes a control state machine which controls the selection of either a transmit or a receive audio path based upon at least a present state of the speakerphone and the magnitudes of three signal related variables associated with each path. The three variables for each path include a signal power variable, a noise power variable and a worst-case echo variable. A change of state of the state machine results in the value of a variable gain within each of the paths being adjusted to optimize the transition time from the receive to the transmit state or from the transmit to the receive state. Also optimized is a change of state from an idle state to the transmit or receive state or from the transmit or receive state to the idle state. A change of state is accomplished in accordance with a smoothly varying, substantially Gaussian switching waveform which is selected to optimize the transition time between states while simultaneously minimizing audible side effects. In one embodiment of the invention the state machine is a software implemented state machine which is generated and maintained by a digital signal processor integrated circuit device. The implementation of either Mu-Law or A-Law signal processing is readily accommodated by the provision of appropriate software. The control state machine determines the next state of the speakerphone based on the current state and also on the value of four signal and noise related variables of a binary nature. A change of state is accomplished in accordance with a switching waveform which is selected to optimize the transition time between states while simultaneously minimizing audible side effects. These and other aspects of the invention will be made more apparent in the following detailed description of the invention read in conjunction with the accompanying drawing, wherein: Fig. 1 is a block diagram of a half duplex speaker phone; Fig. 2 is a detailed block diagram of a portion of the half duplex speakerphone of Fig. 1; Fig. 3 is a simplified flow chart which illustrates the operation of the control state machine 72 of Fig. 2; and Figs. 4(a)-4(e) are graphical depictions of the MX and MR waveforms during various state change operations. Referring now to Fig. 1 there is shown a block diagram of a Half-Duplex Digital Speakerphone 10 which will be referred to herein as a HADSI. The HADSI 10 is a component of a speakerphone device and is interconnected between a digital link transceiver and a CODEC. The HADSI 10 includes voice channel interface 12 on the link side, a voice channel interface 14 on the CODEC side, Mu/A-Law to linear and linear to Mu/A-Law convertors 16 and 18, a digital signal processor (DSP) 20 which includes voice switching, filtering and half duplex control, and general control and timing circuits 22. The following is a general description of data flow through the HADSI 10. In the downlink direction, voice information is demultiplexed from the link by the digital link transceiver and is coupled to the HADSI 10 through a serial communications port. The voice data is in the format of 8-bit bytes, encoded using one of two approximately logarithmic scales known in the art as either Mu-Law or A-Law. Inasmuch as the calculations performed by DSP 20 require the signals to be in a linear scale, a log-to-linear conversion of the incoming signal is performed. Within the DSP 20 the signal is filtered and attenuated, if necessary, according to the switching algorithm which will be described in detail below. The signal is thereafter converted back to the appropriate logarithmic scale and input to the CODEC for conversion into an analog signal. This analog signal is thereafter input to a loudspeaker. The uplink path is similar to that described above but in a generally reversed order. If the speakerphone is in a handset or a headset mode of operation the HADSI 10 operates in a passive manner, in which it functions as a transparent connection between the CODEC 2 and the link transceiver 1. The various possible states which the HADSI 10 may enter are as follows. In an OFF state the speakerphone is placed in a power-down condition during a phone idle state. In a PASSIVE state, the HADSI operates in a transparent mode during phone handset and headset operation. An ACTIVE state includes one of three possible states. These are a TRANSMIT state wherein a user, or near-end talker, channel is enabled, a RECEIVE state wherein a far-end talker channel is enabled, and an IDLE state which is entered when both the near-end and the far-end parties are silent. In the ensuing description the HADSI 10 may be considered as an intelligent switch wherein a control state machine enables either the transmit or receive audio paths based upon estimates of three variables for each path. These variables are signal power, noise power and worst-case echo. This is accomplished by determining which party is talking and switching the transmission direction accordingly, while allowing for the silent party to interrupt the talking party. In addition, the HADSI 10 has an ability to adapt to background noise and to distinguish between noise and speech. Fig. 2 is a detailed block diagram of the HADSI 10. In general, the basic structure is symmetrical for the transmit, or uplink, and the receive, or downlink, signal paths. The transmit path will be described in detail first. The MU-Law/A-Law microphone input signal UMIC is input to an expander 30 where the UMIC signal is expanded into a linear 16-bit 2's complement signal MIC. MIC is filtered as necessary by audio path filter DF1 32. The filtered signal FMIC1 is input to a multiplier 34 where FMIC1 is multiplied by a variable gain designated MX. MX varies between 1 (0 dB) and 0.0022 (-53dB) according to the selected active direction. The resulting signal is designated as VUP which is provided to a signal compressor 36 where VUP is compressed back into a MU-Law or an A-Law representation designated as UVUP. UVUP is coupled uplink. The input signal MIC is also high-pass filtered by a control path filter DF2 38 and is amplified by amplifier 40 by a factor designated as M8. M8 may equal an amplification factor of two. If an overflow occurs during multiplication the output signal FMIC2 is clipped. Next, a signal power estimate signal PMIC is generated in a non-linear block NL1 42. A noise power estimate signal NMIC is generated in non-linear block NL4 44. A worst case echo estimate signal PXMT is generated by non-linear block NL2 46, based on the current value of the variable gain MX. A comparator 48 provides a comparison between signal and noise power and produces a binary variable XICMP which indicates either the presence or the absence of a speech signal at the microphone input. As was previously stated, the receive channel is generally symmetric with the transmit channel. A MU-Law/A-Law input signal UVDN is input to an expander 50 wherein the UVDN signal is expanded into a linear 16-bit 2's complement signal VDN. VDN is filtered as necessary by audio path filter DF3 52. The filtered signal FVDN1 is input to a multiplier 54 where FVDN1 is multiplied by a variable gain MR. The resulting signal is designated as SPK which is provided to a signal compressor 56 where SPK is compressed back into a MU-Law or an A-Law representation designated as USPK. USPK is coupled to and drives a loudspeaker (not shown). The filtered input signal VDN is also high-pass filtered by a control path filter DF4 58 and is amplified by amplifier 60 by a factor designated as M6. M6 may equal an amplification factor of two. If an overflow occurs during multiplication the output signal CLVDN is clipped. Next, a receive signal power estimate signal PRCV is generated in a non-linear block NL3 62. A noise power estimate signal NRCV is generated in non-linear block NL5 64. A worst case echo estimate signal PSPK is generated by non-linear block NL8 66, based on the current value of the variable gain MR. A comparator 68 provides a comparison between signal and noise power estimates and produces a binary variable RICMP which indicates either the presence or the absence of a speech signal at the downlink input. A weighted sum of the receive speech signal, the noise signal and the worst case echo estimate signal is compared by a comparator 70 against a similar sum for the transmit channel, producing a transmit/receive variable XRCMP. A control state machine 72 determines the next state of the phone based on the current state and also the value of four variables of a binary nature. These four variables are the XICMP, RICMP and XRCMP signals in addition to a software generated MUTE signal. As will be described, whenever a state change occurs the values of MX and MR are modified according to a switching waveform designed to optimize transition time between states while minimizing audible side effects. The various blocks of Fig. 2 will now be described in greater detail. The Mu-Law/A-Law expansion and compression which occurs in expanders 30 and 50 and in compressors 36 and 56 is based on a known algorithm wherein the logarithmic curve is approximated by a set of eight straight-line segments. The audio path filters DF1 32 and DF3 52 are each optional and may be employed to achieve any required frequency shaping of the input signals. For example, DF3 52 may be employed to pre-compensate for the loudspeaker's inherent non-flat response at low frequencies. DF3 52 is preferably implemented as a fifth order finite impulse response (FIR) linear phase filter rather than as an infinite impulse response (IIR) filter in order to avoid limit cycle oscillations in the audio path. High-pass filters DF2 38 and DF4 58 are selected to minimize effects of low-frequency power supply noise such as 60 Hz hum and harmonics and, in the transmit path, to reduce the effect of room echo and reverberations. These filters are also selected to provide an improved signal to noise (SNR) ratio in that most speech energy is typically above 500 Hz. By example, the corner frequency of DF2 38 is approximately 660 Hz and the corner frequency of DF4 58 is approximately 725 Hz. A higher corner frequency in the receive path has been found to achieve enhanced protection against power supply and trunk noise. Filters DF2 38 and DF4 58 are each implemented as first order IIR filters in that, with a digital signal processor, an implementation of an IIR filter generally requires less instruction execution time and also fewer coefficient terms and taps than an equivalent FIR filter. The inherent limit cycle oscillations and phase distortion of IIR filters are irrelevant in the control path in that it is the audio signal envelope which is processed and not an AC audio signal. One purpose of the control path gain provided by M8 40 and M6 60 is to improve the resolution for low-level signals, thereby improving the accuracy of the noise power estimates and the IDLE state stability. It should be noted that as a result of the gain of both M8 40 and M6 60 being larger than one, full-scale signals are clipped, causing a saturation effect. However, it has been found that for a gain of M8=M6=2 clipping does not significantly degrade the performance of the HADSI 10 when processing large amplitude signals, whereas the increased resolution of small amplitude signals significantly improves performance. The signal power estimator blocks NL1 42 and NL3 62 function as envelope detectors. Their outputs PMIC and PRCV, respectively, are non-negative signals which are linearly proportional to the input signal's short-time average amplitude. The non-linear calculation performed by each of these blocks may be described as: Examine only the negative portion of the input Vin; If [-Vin(n)] > Vout(n-1) then Vout(n) = [-Vin(n)] - ([-Vin(n)] - Vout(n-1))*TR Else Vout(n) = Vout(n-1)*TF, where TR is a rise-time constant and TF is a fall-time constant and TR is less than TF. The symbol * denotes multiplication. It should be noted that this is a recursive operation which represents exponentially rising and falling waveforms. Thus, either a rising or a falling waveform is equivalent to an IIR low-pass filter. The value of TR determines how quickly the output rises and how closely the output approaches the peaks of the input signal. Hence the rise-time is preferably of a short duration, but not of such a short duration as to degrade the averaging effect. If TR is made of insufficient duration the circuit may be sensitive to noise and short duration spikes. A rise-time of approximately one millisecond has been found to provide satisfactory operation. For an eight KHz signal sampling rate one millisecond corresponds to eight samples. By definition, the time constant is the time it takes for a signal to decay to EXP[-1] of its initial value. The value of TF determines how quickly the output decays to zero when the input signal is zero and also how closely the estimated signal will correspond to the signal peaks between peaks. Thus, TF should be of sufficiently long duration but not so long that the output cannot track the envelope of a rapidly varying signal. Furthermore, if TF is too long in duration an error will be introduced at the end of a speech segment in that the estimated signal will introduce an inappropriate delay. It has been found that a TF of approximately 28 milliseconds provides for satisfactory operation. The input to the non-linear noise power estimator blocks NL4 44 and NL5 64 is the corresponding signal power estimate PMIC and PRCV, respectively. When no speech is present, the signal power estimate represents the average envelope of any constant background noise. Since speech typically includes pauses between words and also some silent intervals, the minima points of the signal power estimate represent the background noise. Therefore the noise tracks the minima points of the signal power. The non-linear calculation performed by each of these blocks may be described as: If Vin(n) < Vout(n-1) then Vout(n) = Vin(n) Else Vout(n) = Vout(n-1) + INCR. It can be seen that the output immediately follows the input if a new minimum value is detected otherwise the output rises linearly at a slow rate. The value of INCR is such that an adjustment to typical noise levels requires approximately one second while an adjustment to noise which is 20dB below the full-scale signal value requires approximately 10 seconds. The actual value of INCR is a function of desired convergence time versus the desired accuracy or the amount of ripple which is acceptable. Preferably INCR will have a value such that normal speech levels do not cause the noise estimate to ramp-up excessively, thus producing inaccuracy and ripple, while simultaneously providing a short convergence time to the actual noise level. When speech is transmitted, echo is generated. In the receive path echo is primarily due to acoustic coupling from the speaker to the microphone while in the transmit path echo is generated due to an inherent impedance mismatch at the 4-wire/2-wire analog coupler. Inasmuch as the echo appears as a legitimate speech signal and in some cases its amplitude is larger than the original speech signal, the echo signal may cause switching and even an oscillation between the transmit and the receive states. In order to avoid this problem, once transmission in one direction has started, the invention defines a time-amplitude window which contains the worst-case echo waveform for the given transmitted waveform. The transmit path worst-case echo block NL2 46 operates in accordance with the following criterion: While in XMT state: For any waveform VUP(n), and for any "Reasonable" echo function PXMT(n) > PRCV(n) for all n. It should be remembered that PXMT and PRCV are envelope, or power estimate waveforms, and not AC speech signals. It has been found that typical worst-case echo parameters are as follows: the shortest echo delay time is approximately two milliseconds and the worst-case echo gain is approximately +10 dB. It is assumed that any loss in the echo path is a resistive, or linear, loss such that the echo gain falls off at 6dB/octave. The linear echo gain function G is therefore: G = 6.2/t where t is greater than two milliseconds. Thus, a two millisecond echo has a gain of 3.1 (10 dB), while a 4 millisecond echo has a gain of 1.55 (3.8 dB). The worst-case echo estimate blocks NL2 46 and NL8 66 are each envelope detectors and are substantially identical in operation to the aforedescribed signal power estimate blocks NL1 42 and NL3 62 except that they operate with a faster rise-time and a slower fall-time. A shorter rise-time increases the output signal level and enhances protection against the leading edge of the echo. The rise-time may be made as short as desired. For example, the rise-time may be on the order of 0.25 millisecond which implies that, if the input signal is limited to a four KHz bandwidth, that the input signal may be tracked in real-time. The fall-time is preferably of a relatively long duration to protect against the worst case echo or the sum of multiple echoes. However, setting the fall-time at too great a value hinders "ping-pong" switching operations and also degrades interruptability. It has been determined that a fall-time of approximately 100 milliseconds provides for suitable performance. It should be noted that the input of NL2 46 and NL8 88 is scaled by MX and MR, respectively, thereby enabling the generation of a corresponding echo estimate only when an echo estimate is relevant for proper operation. That is, the echo estimate is enabled for the transmit and idle but not receive condition or for the receive and idle but not transmit condition. In addition, it should be noted that PXMT and PSPK, the outputs of NL2 46 and NL8 66, respectively, are reset to zero when a state change to receive or transmit occurs. A major function of the transmit/idle comparator 48 and the receive/idle comparator 68 is to detect when speech is not present at the associated signal path input. This is achieved by comparing relative values of signal power and noise power, as indicated below for the transmit path. The receive path comparison is similar. Evaluate: Vin = M7*PMIC - NMIC - VLIM1 The two parameters, M7 and VLIM1 define the comparator's behavior. If VLIM1 is zero, then M7 defines a fixed SNR required to acknowledge the signal as speech. If VLIM1 is positive, the required SNR decreases as the noise level increases. This can be seen by solving the preceding expression for Vin = 0 and rearranging, SNR = PMIC NMIC = 1 + VLIM1/NMIC M7 This is a desirable characteristic in that a phone user typically does not maintain a fixed speech-to-noise ratio as background noise increases. The appropriate values for M7 and VLIM1 are chosen with a consideration for the desired amount of stability versus the desired response to low-level, non-noise signals. It has been found that M7 = 0.75 and VLIM1 = 100 achieves a satisfactory result. The value represented by 100 is a 16 bit fractional representation, equivalent to 100/32768 or 0.00305. The transmit/receive comparator 70 selects between the transmit and the receive states based upon the current state and the signal power, noise and echo estimates. Under an ideal condition wherein there is no noise and no echo it would be sufficient to merely compare the transmit and the receive signal power estimates. However, in that actual operating conditions always contain some degree of noise and echo a more sophisticated technique is desirable. In accordance with the invention echo is compensated for by biasing the comparison by adding the echo estimate of the active path to the signal power estimate of the active path. In addition, noise is compensated for by subtracting from the signal power estimate a scaled version of the noise estimate. This technique is expressed by: (a) During the XMT or the IDLE state: Evaluate Vin = 4*PXMT + PMIC - 2 NMIC - (4*PSPK + PRCV) (b) During the RCV state: Evaluate Vin = 4*PXMT + PMIC - (4*PSPK + PRCV - 2*NRCV) NL7TH represents, in the preceding expressions, a hysteresis width parameter. It defines an intermediate state (XRCMP = 0) in which the difference between the transmit and the receive signals is not significant. The terms (4*PXMT) and (4*PSPK) represent the worst case echo plus some predetermined stability margin. Subtracting two noise estimates from the active path signal compensates for the fact that both the signal and the echo estimates include the noise component. The actual value of the comparator 70 output XRCMP is useful only during active speech. When both XICMP and RICMP indicate an idle state, the state machine 72 sets the state to IDLE regardless of the value of XRCMP, as will be described in detail below. The control state machine (CSM) 72 determines the phone's next state and also executes audio channel switching by calculating MX and MR according to predetermined switching waveforms. In addition. the CSM 72 modifies circuit variables as necessary. The basic operation of the CSM 72 is shown in the flow chart of Fig. 3. Inasmuch as the control path parameters change relative slowly, CSM 72 calculations need not be done for each eight KHz sample. CSM 72 calculations may instead need to be performed only every fourth sample, i.e. at a rate of two KHz. The phone's next state is determined according to the following procedure: If MUTE = 1 then NEXT STATE = RCV. If MUTE = 0 then NEXT STATE is determined according to the following transition table, PS indicates that the present state is maintained. Each of these table entries will now be considered in greater detail. XICMP = 0 and RICMP = 0 - This condition indicates that no speech is present at either input. Therefore the next state is IDLE regardless of the state of XRCMP. XICMP = 1 and RICMP = 0 - This condition indicates that speech is present in the transmit direction only. This has been found to be a relatively rare situation in that normally echo appears at the other side unless the call is an internal call (no analog coupler echo); or the condition occurs in a delay period before the echo is received; or the condition is a transient or temporary phenomenon. If XRCMP = 1 then the next state is XMT, since all three variables are in agreement. If XRCMP = -1 this condition contradicts the XICMP and RICMP values. Therefore, this condition is considered to be a transient condition and the present state remains unchanged. XRCMP = 0 indicates the hysteresis region between the transmit and the receive states and, as a result, the present state remains unchanged. XICMP = 0 RICMP = 1 - This condition indicates that speech is present in the receive direction only and parallels the condition described immediately above. XICMP = 1 RICMP = 1 - This is the most common operational condition and indicates that speech is present, due to echoes, in both signal paths. For this condition the XMT state is selected if XRCMP = 1 and the RCV state is selected if XRCMP = -1. XRCMP = 0 indicates the aforementioned hysteresis region which is a function of the value of the NL7TH constant at the comparator 70. For this condition either the PS or IDLE states may be chosen. The choice is not critical in that transition into the IDLE state is relatively slow and for the first several hundred milliseconds the present state (PS) is effectively maintained. However, it has been found that remaining in the PS is preferred in that the stability of the XMT and RCV states is improved. As has been previously stated, MX and MR are the audio channel variable gain functions. Half-duplex speakerphone operation implies that only one channel of transmission may be active when speech is transmitted. It is not necessary, however, to completely disconnect the other direction so long as "singing" and oscillations due to positive loop gain are avoided. Therefore it is sufficient to maintain a negative loop gain by controlling MX and MR. A worst case analysis indicates that the minimum required loss in the loop is 50 dB. Preferably, a loss of 53 dB provides a safety margin. The following table sets forth the gain values of MX and MR employed in the various steady states. When a state change occurs MX and MR are switched by CSM 72. In that instantaneous switching causes an audible noise the gains are preferably switched gradually and in accordance with the following criteria. Switching must occur fast enough to minimize first syllable clipping, switching must not produce audible side-effects and, during switching, negative loop gain must be maintained. It has been found that switching which occurs within 20 milliseconds is suitable to avoid first syllable clipping while also avoiding audible side effects. In accordance with one aspect of the invention it has been determined that the optimum switching waveform resembles a bell-shaped or Gaussian function. An important factor is the rate of change, or first derivative of the function, which is preferably continuous at the transition edges. In other words, the switching waveform preferably starts and ends smoothly and is free of abrupt transitions. This optimum shape of the switching waveform applies to the logarithm of the curve and is related to the logarithmic response of the human ear with respect to signal amplitude. The MX and MR switching waveforms generated by the CSM 72 are generated in accordance with the ideal waveform shape and the requirement that negative loop gain be maintained during switching. In addition, another consideration is the practical requirement of performing some minimum number of calculations in order to generate the switching waveform. Figs. 4(a)-4(e) illustrate the preferred shapes of the switching curves, plotted logarithmically, between the various stable states. It should be noted that the transition into the IDLE state is gradual and requires approximately two seconds. The first 100 msec of the transition represents a delay period in which the values of MX and MR remain substantially unchanged. This delay period is introduced in order to reduce signal modulation between words in that the HADSI 10 tends towards the IDLE state. Transitions from IDLE to active states are similar to the transitions between the XMT and RCV states. As has been previously stated, the HADSI 10 is preferably implemented with a digital signal processor (DSP) integrated circuit. One suitable device is known as the TMS32020 DSP processor which is manufactured by Texas Instruments. It should be realized however that the concepts embodied in the present invention may be implemented by a number of suitable embodiments, such as by discrete analog circuitry.

Claims: A half-duplex speakerphone comprising: (a) a transmit audio path (30,32,34,36) for conveying a transmit signal including speech signals (UMIC); (b) a receive audio path (50,52,54,56) for conveying a receive signal including speech signals (UVDN); (c) control means (38,40,42,44,46,48,58,60,62,64,66,68,70,72) having a plurality of input signals and a plurality of output signals; wherein a value of said output signals is a function of a value of said input signals; (d) said output signals including: (i) at least a signal (XMT) expressive of, when asserted, a transmit state, (ii) a signal (RCV) expressive of, when asserted, a receive state, and (iii) a signal (IDLE) expressive of, when asserted an idle state; (e) said input signals including: (i) a first input signal (XRCMP); (ii) a second input signal (XICMP) having a value which is a function of a transmit signal power estimate (PMIC) and a transmit audio path noise signal estimate (NMIC), the second signal indicating if the transmit audio path is conveying speech signals; and (iii) a third input signal (RICMP) having a value which is a function of a receive signal power estimate (PRCV) and a receive audio path noise signal estimate (NRCV), the third signal indicating if the receive audio path is conveying speech signals; said speakerphone characterized in that the first input signal (XRCMP) has a value which is a function of said transmit signal power estimate (PMIC), said transmit audio path noise signal estimate (NMIC), and a transmit audio path echo signal estimate (PXMT) and said receive signal power estimate (PRCV), said receive audio path noise signal estimate (NRCV) and a receive audio path echo signal estimate (PSPK); and said input signals further include a fourth input signal (MUTE) which is expressive of whether said speakerphone is in a mute condition. A half-duplex speakerphone comprising: (a) a transmit audio path (30,32,34,36) for conveying a transmit signal including speech signals (UMIC); (b) a receive audio path (50,52,54,56) for conveying a receive signal including speech signals (UVDN); (c) control means (38,40,42,44,46,48,58,60,62,64,66,68,70,72) having a plurality of input signals and a plurality of output signals; wherein a value of said output signals is a function of a value of said input signals; (d) said output signals including: (i) at least a signal (XMT) expressive of, when asserted, a transmit state, (ii) a signal (RCV) expressive of, when asserted, a receive state, and (iii) a signal (IDLE) expressive of, when asserted an idle state; (e) said input signals including: (i) a first input signal (XRCMP); (ii) a second input signal (XICMP) having a value which is a function of a transmit signal power estimate (PMIC) and a transmit audio path noise signal estimate (NMIC), the second signal indicating if the transmit audio path is conveying speech signals; and (iii) a third input signal (RICMP) having a value which is a function of a receive signal power estimate (PRCV) and a receive audio path noise signal estimate (NRCV), the third signal indicating if the receive audio path is conveying speech signals; said speakerphone characterized in that the first input signal (XRCMP) has a value which is a function of said transmit signal power estimate (PMIC), said transmit audio path noise signal estimate (NMIC), and a transmit audio path echo signal estimate (PXMT) and said receive signal power estimate (PRCV), said receive audio path noise signal estimate (NRCV) and a receive audio path echo signal estimate (PSPK); and wherein said second input signal (XICMP) is generated by means comprising: (a) means for multiplying said transmit signal power estimate (PMIC) by a first multiplication factor (M7) to obtain a scaled transmit signal power estimate signal; (b) means for subtracting from said scaled transmit signal power estimate signal said transmit audio path noise signal (NMIC); and (c) means for subtracting from said transmit signal power estimate signal a first subtracting means signal having a value which is related to a desired transmit signal to noise ratio (VLIM1). The half-duplex speakerphone of claim 2 being further characterized in that said third input signal (RICMP) is generated by means comprising: (a) means for multiplying said receive signal power estimate (PRCV) by a second multiplication factor (M10) to obtain a scaled receive signal power estimate signal; (b) means for subtracting from said receive signal power estimate signal said receive audio path noise signal (NPCV); and (c) means for subtracting from said receive signal power estimate signal a second subtracting means signal having a value which is related to a desired receive signal to noise ratio (VLIM3). The half-duplex speakerphone of claim 3 , being further characterized in that: said first and second multiplication factors (M7 and M10) are each equal to approximately 0.75 and wherein said first and second subtracting means signals (VLlM1 and VLlM3) each have a value of approximately 0.00305. A half-duplex speakerphone comprising: (a) a transmit audio path (30,32,34,36) for conveying a transmit signal including speech signals (UMIC); (b) a receive audio path (50,52,54,56) for conveying a receive signal including speech signals (UVDN); (c) control means (38,40,42,44,46,48,58,60,62,64,66,68,70,72) having a plurality of input signals and a plurality of output signals; wherein a value of said output signals is a function of a value of said input signals; (d) said output signals including (i) at least a signal (XMT) expressive of, when asserted, a transmit state, (ii) a signal (RCV) expressive of, when asserted, a receive state, and (iii) a signal (IDLE) expressive of, when asserted an idle state; (e) said input signals including a first input signal (XRCMP); characterized in that the first input signal (XRCMP) has a value which is a function of a transmit signal power estimate (PMIC), a transmit audio path noise signal estimate (NMIC), and a transmit audio path echo signal estimate (PXMT) and a receive signal power estimate (PRCV), a receive audio path noise signal estimate (NRCV) and a receive audio path echo signal estimate (PSPK); and wherein said transmit audio echo estimate signal (PXMT) and said receive audio path echo estimate signal (PSPK) are each generated by an envelope detection means (NL2 46 and NL8 66) having an associated rise time and an associated fall time. The half-duplex speakerphone of claim 5, being further characterized in that: said rise time is approximately 0.25 milliseconds and said fall time is approximately 100 milliseconds. A half-duplex speakerphone comprising: (a) a transmit audio path (30,32,34,36) for conveying a transmit signal (UMIC) including speech signals; (b) a receive audio path (50,52,54,56) for conveying a receive signal including speech signals (UVDN); (c) control means (38,40,42,44,46,48,58,60,62,64,66,68,70,72) having a plurality of input signals and a plurality of output signals; wherein a value of said output signals is a function of a value of said input signals; (d) said output signals including: (i) at least a signal (XMT) expressive of, when asserted, a transmit state, (ii) a signal (RCV) expressive of, when asserted, a receive state, and (iii) a signal (IDLE) expressive of, when asserted an idle state; (e) said input signals including a first input signal (XRCMP); characterized in that the first input signal (XRCMP) has a value which is a function of a transmit signal power estimate (PMIC), a transmit audio path noise signal estimate (NMIC), and a transmit audio path echo signal estimate (PXMT) and a receive signal power estimate (PRCV), a receive audio path noise signal estimate (NRCV) and a receive audio path echo signal estimate (PSPK); and said control means output signals further comprise a transmit audio path gain defining signal (MX) and a receive audio path gain defining signal (MR) and wherein said gain defining signals vary the gain of each of said transmit and said receive audio paths within a range of approximately 0 dB to less than approximately -50dB when either said signal expressive of a transmit state (XMT) is asserted or said signal expressive of a receive state is asserted (XMR). The half-duplex speakerphone of claim 7 wherein said gain defining signals (MX and MR) define the gain of said transmit audio path to be approximately -10dB and the gain of said receive audio path to be less than approximately -40dB when said signal expressive of an idle state (IDLE) is asserted. The half-duplex speakerphone of claim 8 wherein said control means comprises means for generating said gain defining signals (72) such that said gain defining signals each have a substantially Gaussian waveshape. A method of operating a half-duplex speakerphone which includes a transmit audio path (30,32,34,36) for conveying a transmit signal including speech signals (UMIC) and a receive audio path (50,52,54,56) for conveying a receive signal including speech signals (UVDN), the method comprising the steps of: (a) generating a transmit signal power estimate (PMIC), a transmit audio path noise signal estimate (NMIC), and a transmit audio path echo signal estimate (PXMT); (b) generating a receive signal power estimate (PRCV), a receive audio path noise signal estimate (NRCV), and a receive audio path echo signal estimate (PSPK); (c) comparing the estimate of the power of the transmit signal against the estimate of the noise signal for the transmit audio path (COMP 48) for generating a first signal (XICMP) for indicating if the transmit audio path is conveying speech signals; (d) comparing the estimate of the power of the receive signal against the estimate of the noise signal for the receive audio path (COMP 68) for generating a second signal (RICMP) for indicating if the receive audio path is conveying speech signals; characterized in that said method further comprises the steps of: (e) comparing the generated transmit signal power estimate, the transmit audio path noise signal estimate and the transmit audio path echo signal estimate against the generated receive signal power estimate, the receive audio path noise signal estimate and the receive audio path echo signal estimate (COMP 70) for generating a third signal (XRCMP) for indicating if the speakerphone is in a transmit or receive state; and (f) determining a next state of the speakerphone to be a transmit state wherein the transmit audio path is conveying speech signals, a receive state wherein the receive audio path is conveying speech signals an idle state whereir neither the transmit audio path or the receive audio path is conveying speech signals or a present state, the determined next state being a function at least of the present state of the speakerphone and the values of the first, the second and the third signals (72). The method of claim 10 wherein, if the next state of the speakerphone is determined to be other than the present state, said method further includes a step of varying a receive audio path gain signal (MR) and a transmit audio path gain signal (MX) such that a total loop gain of the transmit and the receive audio paths remains less than unity. The method of claim 11 wherein, if the next state of the speakerphone is determined to be transmit and the present state is receive or idle, the gain of the transmit audio path (MX) is varied until it equals approximately 0dB and the gain of the receive audio path (MR) is simultaneously varied until it equals less than approximately -50dB. The method of claim 12 wherein, if the next state of the speakerphone is determined to be receive and the present state is transmit or idle, the gain of the receive audio path (MR) is varied until it equals approximately 0dB and the gain of the transmit audio path (MX) is simultaneously varied until it equals less than approximately -50dB. The method of claim 11 wherein, if the next state of the speakerphone is determined to be idle and the present state is transmit or receive, the gain of the receive audio path (MR) is varied until it equals less than approximately -40dB and the gain of the transmit audio path (MX) is varied until it equals approximately -10dB. The method of claim 13 wherein the gains of the transmit and receive audio paths (MX and MR) are varied over an interval of time equal to approximately 20 milliseconds. The method of claim 14 wherein the gains of the transmit and receive audio paths (MX and MR) are varied over an interval of time equal to approximately 2 seconds.

Inventors: ARBEL YGAL, ARBEL, YGAL
Applicants: ROLM CO, ROLM COMPANY
Application year: 1989
Main classification: H04M9
IPC codes: H04B3, H04M9, H04M1