Digital sound level control in a telephone system

Abstract: A digital sound level control apparatus for adjusting the reception sound level from all telephone circuits to a substantially fixed level comprises region discrimination circuit (33) for discriminating PCM input data signal (D I ) from a PCM conversion section, including a segment coder for compressing and decompressing a digital audio signal, among intrinsic variation signal (A₁), basic normalization level signal (A₂) and coding threshold value (A₃), multiplication circuit (34) for outputting input level signal (L I ) of 12 bits, addition circuit (35), register (32) holding pad multiplication value (P d ) corresponding to a reception circuit, another multiplication circuit (36) for multiplying input level value (L I ) by pad multiplication value (P d ) to output output level signal (L O ) for outputting sound by a predetermined sound level, and comparison region discrimination circuit (37), subtraction circuit (38), division circuit (39) and register (40) for regenerating an 8-bit digital signal from output level signal (L O ). A method of providing digital sound level control is also disclosed.

Description: This invention relates to the main unit of a key telephone system, especially such a unit including a segment coder for companding (compressing and decompressing) a digital audio signal, and more particularly to a sound level control apparatus for use with an apparatus of the type described above. The invention also relates to a method of providing digital sound level control for the main unit. Digital level control is for example disclosed in GB-A-2 215 944. Fig. 1 shows a conventional monitor circuit of a digital audio apparatus. Conventionally, a digital sound level control apparatus of the type mentioned above includes, as disclosed in Japanese Patent Application No. 72457/1986, a "Monitor Circuit" as shown in Fig. 1. This is a circuit for adjusting the sound level output by sending a code signal to monitor body section 52 from sound level adjusting switch 54 and multiplying the PCM audio signal of the output of monitor signal extraction circuit 58 by the code signal to define the monitor sound level through sound level conversion memory 57, digital audio convertor 56 and analog amplifier 55. The conventional digital sound level control apparatus includes a ROM in which a predetermined conversion table is stored. Accordingly, the conventional digital sound level control apparatus is disadvantageous in that much labor and time are required to write the conversion table into the ROM upon assembly of a digital key telephone system and in that, once the ROM is incorporated into a telephone apparatus, the sound level cannot be varied flexibly in conformity with the circuit with which the telephone apparatus is used actually. The present invention seeks to provide a digital sound level control apparatus which can eliminate setting of a contrast table between sound levels and conversion codes into a ROM. Features of the invention are defined in claims 1, 3 and 6. In a preferred embodiment of the present invention, there is provided digital sound level control apparatus for a main unit of a digital key telephone system for receiving signals from a plurality of telephone circuits, each of said telephone circuits having a classification, said main unit including a circuit control section per telephone circuit for determining the classification of the telephone circuit which is employed, a PCM conversion section (13) having a segment coder for effecting compression with the µ-Law PCM characteristic per telephone circuit, a main control section (15) for designating a pad multiplier which defines an attenuation value corresponding to the determined classification of said employed telephone circuit, a digital sound level control apparatus per telephone circuit, and digital time switch means for switching speech paths, said digital sound level control apparatus comprising: first discrimination means (33) for discriminating a segment region of a µ-Law PCM conversion characteristic polygonal line from a segment region signal of a PCM input data signal which is output from said PCM conversion section (13) , said PCM input data including a polarity signal, a segment region signal and a step signal; first calculation means (35) for calculating a first level signal which is a data value before compression using an output signal of said first segment region discrimination means and the step signal of the PCM input data signal; multiplication means (36) for multiplying said pad multiplier received from said main control section (15) which defines said attenuation value corresponding to said classification of said employed telephone circuit by said first level signal to output a second level signal; second segment region discrimination means (37) for discriminating a segment region of said second level signal by comparing the second level signal with the coding threshold values of segment regions based on the segment compression and decompression characteristic; second calculation means (38,39) for calculating a step signal of said second level signal based on said second level signal, the coding threshold signal and intrinsic variation amount per step of the segment region of said second level signal; and register means (40) for forming a µ-Law PCM digital signal combining the original polarity signal, the calculated segment region signal and the calculated step signal. The first level signal of the digital sound level control apparatus described above may be a value obtained by adding the value which is obtained by multiplying the intrinsic variation amount per step of its segment region by the step signal to the basic normalization level signal of said segment region, or a value obtained by adding the value which is obtained by multiplying the intrinsic variation amount per step of its segment region by the step signal to the coding threshold value of said segment region. The invention extends to the main unit of the digital key telephone system , including the digital sound level control apparatus. Method features analogous to the apparatus features described herein can also be provided. Preferred features of the invention are now described, by way of example, with reference to the accompanying drawings, in which:- Fig. 1 is a block diagram of a monitor circuit of an example of a conventional digital sound level control apparatus; Fig. 2 is a block diagram of an embodiment of the main unit of a key telephone system; and Fig. 3 is a block diagram of pad conversion section 13 shown in Fig. 2. A preferred embodiment of the present invention is described with reference to Figs. 2 and 3. The main unit of key telephone system 1 comprises circuit control section 11, PCM conversion section 12, main control section 15, pad conversion section 13 and time divisional switch 14. The present invention is incorporated in pad conversion section 13 and main control section 15. Circuit control section 11 serves as an interface to telephone circuit 2 and reports to main control section 15 the classification of telephone circuits employed for incoming telephone calls. PCM conversion section 12 converts an incoming analog data signal into a µ-Law PCM digital signal. Pad conversion section 13 outputs data signal D 0 which is modified from PCM input data signal D I from PCM conversion section 12 to digital data having a controlled sound level by decompressing, multiplying by pad multiplier P d sent from main control section 15 and compressing to µ-Law PCM digital data. Main control section 15 outputs multiplier P d signal to pad conversion section 13 corresponding to the employed incoming telephone circuit by discriminating by notification from circuit control section 11. Time division switch 14 switches telephone calls by switching the connection of the PCM highway. PCM input data signal D I is an 8-bit signal wherein the MSB of the eighth bit serves as polarity signal P, the three bits of the seventh to fifth bits serve as a segment region (described as region signal A hereafter) which identifies a segment, and the remaining four bits of the fourth to first bits serve as step signal bits S representative of a position in a segment. Region signal A includes intrinsic variation signal A 1 representative of the variation amount per step of the level value in the segment region before compression, basic normalization level signal A 2 (4,191 in region 8; 2,079 in region 7; 1,023 in region 6 and the like) representative of a reference point for each segment region before compression, and coding threshold value A 3 (4,063 in region 8; 2,015 in region 7; 991 in region 6 and the like) representative of the start point of each region before compression. Pad conversion section 13 converts compressed PCM input data into data of the level before compression with reference to the basic normalization level signal before compression, multiplies the data of the thus converted or decompressed level by a pad multiplier to convert the data into a predetermined sound volume, compresses the volume signal again, and outputs the thus compressed volume signal to the time division switch. Pad conversion section 13 includes register 31 for temporarily storing input data signal D I , another register 32 for temporarily storing a pad multiplier signal, region discrimination circuit 33 for discriminating region signal A in PCM input data signal D I and dividing region signal A into intrinsic variation signal A 1 , normalization reference level signal A 2 and coding threshold value A 3 , multiplication circuit 34 for multiplying step signal S in PCM input data D I by intrinsic variation amount signal A 1 , addition circuit 35 for adding basic normalization level signal A 2 to the output signal of multiplication circuit 34 to output input level signal L I , another multiplication circuit 36 for multiplying input level signal L I by pad multiplier signal P d to output output level signal L O , comparison region discrimination circuit 37 for comparing output level signal L O and coding threshold value A 3 to determine to which region output level signal L O corresponds, and outputting region signal A based on the determination, subtraction circuit 38 for subtracting coding threshold value A 3 of the region from output level signal L O , division circuit 39 for dividing the output of subtraction circuit 39 by intrinsic variation signal A 1 to output step signal S, and register 40 for temporarily storing polarity signal P, region signal A and step signal S. Operation of the present embodiment is described below. Analog audio data received from telephone circuit 2 are inputted by way of circuit control section 11 and converted into a PCM signal by PCM conversion section 12. In this instance, circuit control section 11 determines whether the received call is originated from an extension line or another subscriber line and notifies the result of the determination to main control section 15. Meanwhile, PCM input data signal D I as audio data coded by PCM coding by PCM conversion section 12 is outputted to pad conversion section 13. Separately, depending on the result of the determination of either an extension line or another subscriber line previously notified to main control section 15, pad multiplication value signal P d representative of an attenuation amount is instructed from main control section 15 to pad conversion section 13, and PCM output data signal D O for which the sound volume difference has been adjusted is outputted to time division switch section 14 in which a PCM highway is exchangeably connected. Here, the sound level difference among calls from extension lines and other subscriber lines can be eliminated by the way that multipliers to designate attenuation amounts are set and stored in main control section 15 in such a manner that the attenuation amount is 0 dB for a call received from outside line 2 but is 6 dB for a call received from an extension line. Next, operation of pad conversion section 13 of the present embodiment is described. PCM input data signal D I from PCM conversion section 12 is inputted to 8-bit register 31 while pad multipler value signal P d for determination of the attenuation amount from main control section 15 is inputted to 4-bit register 32. Region discrimination circuit 33 discriminates a region from region signal A in PCM input data signal D I inputted to register 31 and outputs basic normalization level signal A 2 intrinsic to the region, intrinsic variation amount signal A 1 intrinsic to the region determined from region signal A, and coding threshold value A 3 . Multiplication circuit 34 multiplies intrinsic variation value signal A 1 by step signal (bits 4 to 1) S of PCM input signal D I , and the result of the addition of the result of the multiplication to basic normalization signal A 2 by addition circuit 35 is outputted as input level signal L I . Meanwhile, polarity signal (bit 8) P of PCM input data signal D I is not inputted to region discrimination circuit 33 but is outputted as is as a polarity signal of PCM output data signal D O . The pad multiplication value signal instructed from main control section 15 is inputted to and then outputted from register 32. Multiplication circuit 36 multiplies input level signal L I outputted from addition circuit 35 by pad multiplication value signal P d outputted from register 32 and outputs the result of the multiplication as output level L O . Segment region comparison discrimination circuit 37, which compares coding threshold value A 3 determined from region signal A by region discrimination circuit 33 and output level signal L O outputted from multiplication circuit 36, determines the region to which output level signal L O corresponds, and outputs corresponding region signal (bits 7 to 5) A'. Further, the result of subtraction of coding threshold value A 3 from output level signal L O by subtraction circuit 38 is divided by intrinsic variation signal A 1 determined from region signal A' by division circuit 39, and the result of the division is outputted as step signal (bits 4 to 1) S'. PCM output data signal D O after conversion into a pad value instructed by main control section 15 from polarity signal (bit 8) P, region signal (bits 7 to 5) A' and step signal (bits 4 to 1) S' is stored once into and then outputted from register 40. Meanwhile, main control section 15 outputs pad multiplication value P d to pad conversion section 13 in accordance with the type of circuit. Where the number of types of circuits involved is great, it may be possible to provide means for setting correspondence tables so that the corresponding pad multiplier may be outputted for each of the types of circuits. Further, while, in the present embodiment, input level L I is obtained by the addition of the product between intrinsic variation signal A 1 and step signal S to the normalization reference level signal, it may be obtained otherwise by the addition of the product between intrinsic variation A 1 and step number S to coding threshold value A 3 . As described to this point, according to the present invention, since a region signal and a step signal corresponding to a circuit from which a call is received, not a fixed region signal or a step signal as is outputted from a conventional digital sound level control apparatus, are outputted from the digital sound level control apparatus of the present invention by calculating the region signal and the step signal there is an advantage in that the reception sound level can be held substantially constant irrespective of from which telephone circuit a call is received. In summary, the preferred embodiment of a digital sound level control apparatus for adjusting the reception sound level from all telephone circuits to a substantially fixed level comprises a region discrimination circuit for discriminating a PCM input data signal from a PCM conversion section, including a segment coder for compressing and decompressing a digital audio signal, among an intrinsic variation signal, a basic normalization level signal and .a coding threshold value, a multiplication circuit for outputting an input level signal cf 12 bits, an addition circuit, a register holding a pad multiplication value corresponding to a reception circuit, another multiplication circuit for multiplying the input level value by the pad multiplication value to output an output level signal for outputting sound by a predetermined sound level, and a comparison region discrimination circuit , a subtraction circuit, a division circuit and a register for regenerating an 8-bit digital signal from the output level signal.

Claims: Digital sound level control apparatus for a digital key telephone system which receives signals from a plurality of telephone circuits, each of said telephone circuits having a classification, said apparatus comprising: means for decompressing a µ-Law PCM compressed digital signal received from PCM conversion means so as to generate a decompressed digital signal, means for multiplying (13) the decompressed digital signal by a multiplier received from a main control section (15), the multiplier corresponding to the classification of the telephone circuit which is employed, means for compressing said multiplied decompressed digital signal to generate a multiplied µ-Law PCM digital signal, and means for outputting (14) said multiplied µ-Law digital PCM signal to digital time switching means. Apparatus according to claim 1, which is provided for a main unit of a digital key telephone system receiving the signals from the telephone circuits, and wherein the multiplier is a designated pad multiplier, said main unit including: a circuit control section (11) per telephone circuit for determining the classification of the telephone circuit which is employed, a PCM conversion section (12) having a segment coder for effecting compression with the µ-Law PCM characteristic per telephone circuit, and a digital sound level control apparatus per telephone circuit, each of which includes said decompressing means, said multiplying means, said compressing means, and said output means. Digital sound level control apparatus for a main unit of a digital key telephone system for receiving signals from a plurality of telephone circuits, each of said telephone circuits having a classification, said main unit including a circuit control section per telephone circuit for determining the classification of the telephone circuit which is employed, a PCM conversion section (13) having a segment coder for effecting compression with the µ-Law PCM characteristic per telephone circuit, a main control section (15) for designating a pad multiplier which defines an attenuation value corresponding to the determined classification of said employed telephone circuit, a digital sound level control apparatus per telephone circuit, and digital time switch means for switching speech paths, said digital sound level control apparatus comprising: first discrimination means (33) for discriminating a segment region of a µ-Law PCM conversion characteristic polygonal line from a segment region signal of a PCM input data signal which is output from said PCM conversion section (13), said PCM input data including a polarity signal, a segment region signal and a step signal; first calculation means (35) for calculating a first level signal which is a data value before compression using an output signal of said first segment region discrimination means and the step signal of the PCM input data signal; multiplication means (36) for multiplying said pad multiplier received from said main control section (15) which defines said attenuation value corresponding to said classification of said employed telephone circuit by said first level signal to output a second level signal; second segment region discrimination means (37) for discriminating a segment region of said second level signal by comparing the second level signal with the coding threshold values of segment regions based on the segment compression and decompression characteristic; second calculation means (38,39) for calculating a step signal of said second level signal based on said second level signal, the coding threshold signal and intrinsic variation amount per step of the segment region of said second level signal; and register means (40) for forming a µ-Law PCM digital signal combining the original polarity signal, the calculated segment region signal and the calculated step signal. Apparatus as claimed in claim 3, wherein the first level signal is the value obtained by adding a value which is obtained by multiplying the intrinsic variation amount per step of said first segment region by the step signal to the basic normalization level signal of said first segment region. A digital sound level control apparatus as claimed in claim 3, wherein the first level signal is the value obtained by adding a value which is obtained by multiplying the intrinsic variation amount per step of said first segment region by the step signal to the coding threshold value of said first segment region. A method for digitally controlling a sound level for a digital key system for accessing a plurality of telephone circuits, each of said telephone circuits having a classification, said method comprising the steps of: decompressing a µ-Law PCM compressed digital signal to generate a decompressed digital signal, determining said classification of the telephone circuit which is employed; multiplying said decompressed digital signal by a multiplier, said multiplier corresponding to said classification of the employed telephone circuit, compressing said multiplied decompressed digital signal to generate a multiplied µ-Law PCM digital signal, and outputting said multiplied µ-Law digital PCM signal to a digital time switching means.

Inventors: HONDA TOSHIO, HONDA, TOSHIO, HONDA, TOSHIO, C/O NEC CORPORATION
Applicants: NIPPON ELECTRIC CO, NEC CORPORATION
Application year: 1993
Main classification: H04M9
IPC codes: H04M3, H04M9, H03G7