Sound mixing device and electronic device
By using a gain setting circuit and a mixing circuit, multiple sound data are mixed according to priority and gain setting table, which solves the problem of sound information output delay and realizes instant and priority response information output.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-23
- Publication Date
- 2026-03-27
AI Technical Summary
In existing technologies, the output of urgent and important audio information may be delayed, causing users to take unnecessary actions.
It employs a gain setting circuit and a mixing circuit to mix multiple sound data by setting multiple gain values, and outputs the mixed signal according to the priority order and gain setting table to ensure that important information is not delayed.
It enables real-time output of multiple audio data, allowing users to promptly identify and respond to audio data with higher priority, thus avoiding information delays.
Smart Images

Figure CN115529536B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to a sound mixing device and an electronic apparatus. BACKGROUND
[0002] In Patent Literature 1, a sound output control device is described in which end time information related to a scheduled time at which delivery of a meaningful content of a preceding sound information is to be ended is acquired, delay allowance information related to an allowable time of a delay from a time at which an output request of a subsequent sound information is generated to a start of the output is acquired, whether or not the output of the subsequent sound information can be on standby is judged based on a time relationship based on the end time information and the delay allowance information, the output of the subsequent sound information is put on standby on a condition that the judgment is that the output can be on standby, and the output of the subsequent sound information is performed after the output of the preceding sound information is performed with priority.
[0003] Patent Literature 1: Japanese Patent Application Publication No. 2014-137790
[0004] In the device described in Patent Literature 1, even in a case where both the preceding sound information and the subsequent sound information are important information requiring urgency, one of the outputs is delayed, and therefore, a measure that a user needs to take against the sound information of which the output is delayed can be delayed. SUMMARY
[0005] One mode of the sound mixing device of the present application includes a gain setting circuit that sets first to nth gains in accordance with a command inputted from the outside, n being an integer of 2 or more, and a mixing circuit that outputs a mixed signal obtained by mixing two or more of first to nth product data obtained by multiplying each of the first to nth sound data by each of the first to nth gains.
[0006] One mode of the electronic apparatus of the present application includes one mode of the sound mixing device. BRIEF DESCRIPTION OF DRAWINGS
[0007] Figure 1 FIG. 1 is a diagram showing a configuration example of a sound mixing device of a first embodiment.
[0008] Figure 2 FIG. 2 is a diagram showing a specific configuration example of a mixing circuit.
[0009] Figure 3 FIG. 3 is a diagram showing an example of a channel-priority order setting table, a priority order-gain setting table, and a gain reference table.
[0010] Figure 4 A specific example in which a plurality of sound data are simultaneously reproduced by a first sound reproducing device is shown.
[0011] Figure 5Fig. 1 is a diagram showing a configuration example of a sound mixing device according to a second embodiment.
[0012] Figure 6 Fig. 2 is a diagram showing a detailed configuration example of a mixing circuit, a sound amplifier, and a protection circuit in the second embodiment.
[0013] Figure 7 Fig. 3 is a diagram showing an example of a priority selection table.
[0014] Figure 8 Fig. 4 is a diagram showing a configuration example of a sound mixing device according to a third embodiment.
[0015] Figure 9 Fig. 5 is a diagram showing a configuration example of a sound mixing device according to a fourth embodiment.
[0016] Figure 10 Fig. 6 is a functional block diagram of an electronic device according to the present embodiment.
[0017] Figure 11 Fig. 7 is a diagram showing a configuration example of a warning device as an example of an electronic device.
[0018] Explanation of Reference Numerals
[0019] 1: sound mixing device; 2: micro control unit; 3-1 to 3-m: first to mth sound reproducing devices; 10: communication interface circuit; 12: communication interface circuit; 20: memory; 21-1 to 21-n: first to nth sound source data; 30: decoder; 40: mixing circuit; 41-1 to 41-12: multipliers; 42: adder; 43-1 to 43-4: switching circuits; 44: switching circuit; 45-1 to 45-4: switching circuits; 46: switching control circuit; 50: gain setting circuit; 61: channel-priority order setting table; 62: priority order-gain setting table; 63: gain reference table; 64: priority selection table; 70: sound amplifier; 71: drive circuit; 72: protection circuit; 80: protection circuit; 81-1 to 81-4: waveform comparison circuits; 90: memory interface circuit; 100: memory; 101-1 to 101-n: first to nth sound source data; 111-1 to 111-n: first to nth sound source data; 300: electronic device; 300A: warning device; 310: processing section; 320: operation section; 330: storage section; 340: display section; 400: vehicle. DETAILED DESCRIPTION
[0020] Hereinafter, a preferred embodiment of the present application will be described in detail using the drawings. Note that the embodiments described below do not unduly limit the content of the present application described in the claims. Furthermore, not all of the structures described below are necessarily essential structural elements of the present application.
[0021] 1. Sound mixing device
[0022] 1-1. First embodiment
[0023] Figure 1 is a diagram showing a configuration example of the sound mixing device of the first embodiment. As shown in the diagram, the sound mixing device 1 of the first embodiment has a communication interface circuit 10, a memory 20, a decoder 30, a mixing circuit 40, a gain setting circuit 50, a channel-priority order setting table 61, a priority order-gain setting table 62, a gain reference table 63, and a sound amplifier 70. The sound mixing device 1 can be a semiconductor integrated circuit device of one chip, can be constituted by semiconductor integrated circuit devices of a plurality of chips, and can be constituted at least in part by electronic components other than semiconductor integrated circuit devices. Figure 1
[0024] The memory 20 stores first to nth sound source data 21-1 to 21-n as n sound source data. That is, the first to nth sound source data 21-1 to 21-n are stored in the memory 20. n is an integer of 2 or more. The memory 20 can be, for example, a flash memory. The first to nth sound source data 21-1 to 21-n can be, for example, sound data subjected to pulse code modulation (PCM), or sound data subjected to adaptive differential pulse code modulation (ADPCM), respectively. PCM is an abbreviation for Pulse Code Modulation, and ADPCM is an abbreviation for Adaptive differential Pulse Code Modulation. The first to nth sound source data 21-1 to 21-n can be, for example, data that is a basis of various sounds such as a sound that imitates a sound when a person speaks, a mechanical warning sound, an effect sound, and the like.
[0025] The communication interface circuit 10 is a circuit that performs data communication with the micro control unit 2. The communication interface circuit 10 can be, for example, an SPI interface circuit, or an I2C interface circuit. SPI is an abbreviation for Serial Peripheral Interface, and I2C is an abbreviation for Inter-Integrated Circuit.
[0026] The communication interface circuit 10 receives various commands transmitted from the micro control unit 2, and generates various control signals corresponding to the received commands. For example, the communication interface circuit 10 generates a control signal instructing sound reproduction or sound stop for the i-th sound source data 21-i in the case of receiving a sound reproduction command or a sound stop command for the i-th sound source data 21-i among the first to n-th sound source data 21-1 to 21-n held by the memory 20, and outputs the control signal to the decoder 30 and the gain setting circuit 50. Also, for example, the communication interface circuit 10 generates a control signal for writing the specified data to the address specified by the command in the case of receiving a data write command for the channel-priority order setting table 61 or the priority order-gain setting table 62.
[0027] The decoder 30 has first to n-th input channels and first to n-th output channels. The decoder 30 reads out the i-th sound source data 21-i from the memory 20 to the i-th input channel in accordance with the control signal output from the communication interface circuit 10 instructing sound reproduction for the i-th sound source data 21-i, and decodes the i-th sound source data 21-i to demodulate the i-th sound data DIi. In this way, the first to n-th sound source data 21-1 to 21-n held by the memory 20 are data on which the first to n-th sound data DI1 to DIn are based. The decoder 30 outputs the demodulated i-th sound data DIi to the i-th output channel. Also, the decoder 30 stops the output of the i-th sound data DIi to the i-th output channel in accordance with the control signal output from the communication interface circuit 10 instructing sound stop for the i-th sound source data 21-i. Also, the decoder 30 can stop the output of the i-th sound data DIi to the i-th output channel in the case where the decoding of the i-th sound source data 21-i ends until the end of the i-th sound source data 21-i.
[0028] The mixing circuit 40 outputs a mixed signal DO1 obtained by mixing two or more of first to n-th product data obtained by multiplying each of the first to n-th sound data DI1 to DIn by each of the first to n-th gain G1 to Gn. The mixing circuit 40 has first to n-th input channels, and the first to n-th input channels are connected to the first to n-th output channels of the decoder 30, respectively. Also, the i-th gain Gi among the first to n-th gain G1 to Gn is set to the i-th input channel among the first to n-th input channels of the mixing circuit 40, and the i-th sound data DIi among the first to n-th sound data DI1 to DIn is input to the i-th input channel. Furthermore, the mixing circuit 40 has first to m-th output channels, and the mixed signal DO1 is output from the first output channel to the sound amplifier 70. m is an integer of two or more.
[0029] The sound amplifier 70 converts the mixed signal DOl output from the mixing circuit 40 into a sound signal DOXl, and outputs the sound signal DOXl to the first sound reproducing device 3-1. Thus, a sound corresponding to the sound signal DOXl is output from the first sound reproducing device 3-1. The first sound reproducing device 3-1 can be, for example, a speaker.
[0030] Further, the mixing circuit 40 can also output prescribed m-1 product data among the first to nth product data from the second to mth output channels to the second to mth sound reproducing devices 3-2 to 3-m as sound signals DO2 to DOm. Thus, a sound corresponding to the sound signals DO2 to DOm is output from the second to mth sound reproducing devices 3-2 to 3-m. The second to mth sound reproducing devices 3-2 to 3-m can be, for example, buzzers, respectively.
[0031] In addition, the sounds output from the first to mth sound reproducing devices 3-1 to 3-m, respectively, can be, for example, sounds imitating a human voice, or various sounds such as mechanical warning sounds, effect sounds, and the like.
[0032] The gain setting circuit 50 sets the first to nth gains Gl to Gn with respect to the first to nth input channels of the mixing circuit 40 based on a command input from the outside of the sound mixing device 1. Specifically, when the gain setting circuit 50 receives a control signal indicating sound reproduction or sound stop with respect to the kth sound source data 21-k output from the communication interface circuit 10, the gain setting circuit 50 refers to the channel-priority order setting table 61, the priority order-gain setting table 62, and the gain reference table 63, determines the priority order between all of the sound data being reproduced among the first to nth sound data DI1 to DIn and the kth sound data DIk, and sets each gain corresponding to the priority order with respect to each of the channels. For example, in a process in which the gain setting circuit 50 sets a first value with respect to the jth gain Gj among the first to nth gains Gl to Gn and reproduces the jth sound data DIj among the first to nth sound data DI1 to DIn, in a case where a command to start or stop reproduction of the kth sound data DIk having a higher priority order than the jth sound data DIj is input from the outside of the sound mixing device 1, the jth gain Gj is set to a second value different from the first value. Here, the second value can be smaller than the first value in a case where a command to start reproduction of the kth sound data DIk is input, and the second value can be larger than the first value in a case where a command to stop reproduction of the kth sound data DIk is input.
[0033] Further, in a case where the kth sound data among the first to nth sound data DI1 to DIn is not a reproduction target, the gain setting circuit 50 can set the kth gain Gk to 0, and the decoder 30 can output 0 to the kth output channel.
[0034] The channel-priority order setting table 61 is a table that defines the correspondence between the first to nth input channels of the mixing circuit 40 and the priority orders. Further, the priority order-gain setting table 62 is a table that defines the correspondence between the priority orders that can be designated in the channel-priority order setting table 61 and the gain setting values. Further, the gain reference table 63 is a table that defines the correspondence between the gain setting values that can be designated in the priority order-gain setting table 62 and the gain values. The channel-priority order setting table 61 and the priority order-gain setting table 62 are stored in a RAM or a register not shown, and are rewritten by a command inputted from the outside of the sound mixing device 1. The RAM is an abbreviation of Random Access Memory. The gain reference table 63 is stored in a ROM not shown, and cannot be rewritten. The ROM is an abbreviation of Read Only Memory.
[0035] Figure 2 is a diagram showing a specific example of the configuration of the mixing circuit 40. In Figure 2 the example, the mixing circuit 40 has 12 input channels and 5 output channels. That is, Figure 2 shows an example in the case where the integer n is 12 and the integer m is 5 in Figure 1
[0036] In the example of Figure 2 the mixing circuit 40 includes 12 multipliers 41-1 to 41-12, an adder 42, and four switch circuits 43-1 to 43-4.
[0037] The i-th sound data DIi among the first to twelfth sound data DI1 to DI12 is inputted to the i-th input channel among the first to twelfth input channels, and the i-th gain Gi among the first to twelfth gains G1 to G12 is set by the gain setting circuit 50. The multiplier 41-i among the multipliers 41-1 to 41-12 is set for the i-th input channel, and the multiplier 41-i outputs the i-th product data DXi obtained by multiplying the i-th sound data DIi by the i-th gain Gi.
[0038] The switch circuit 43-1 switches whether the ninth product data DX9 is outputted to the adder 42 or outputted from the second output channel to the second sound reproducing device 3-2 as the sound signal DO2. In the latter case, a sound corresponding to the sound signal DO2 is outputted from the second sound reproducing device 3-2.
[0039] The switch circuit 43-2 switches whether the tenth product data DX10 is outputted to the adder 42 or outputted from the third output channel to the third sound reproducing device 3-3 as the sound signal DO3. In the latter case, a sound corresponding to the sound signal DO3 is outputted from the third sound reproducing device 3-3.
[0040] The switch circuit 43-3 pair switches whether the eleventh product data DX11 is output to the adder 42 or output from the fourth output channel as the sound signal DO4 to the fourth sound reproducing device 3-4. In the latter case, a sound corresponding to the sound signal DO4 is output from the fourth sound reproducing device 3-4.
[0041] The switch circuit 43-4 pair switches whether the twelfth product data DX12 is output to the adder 42 or output from the fifth output channel as the sound signal DO5 to the fifth sound reproducing device 3-5. In the latter case, a sound corresponding to the sound signal DO5 is output from the fifth sound reproducing device 3-5.
[0042] The switch circuits 43-1 to 43-4 are switched in accordance with a control signal output from the communication interface circuit 10. That is, the microcomputer 2 can set the output destination of the ninth to twelfth product data DX9 to DX12, respectively, by outputting a prescribed command to the sound mixing device 1.
[0043] The adder 42 is input with the first to eighth product data DX1 to DX8. Also, there is a case where at least one of the ninth to twelfth product data DX9 to DX12 is input to the adder 42 in accordance with the switching setting of the switch circuits 43-1 to 43-4.
[0044] The adder 42 outputs a mixed signal DO1 obtained by adding the first to eighth product data DX1 to DX8 in a case where none of the ninth to twelfth product data DX9 to DX12 is input. Also, the adder 42 outputs a mixed signal DO1 obtained by adding the first to eighth product data DX1 to DX8 and at least one of the ninth to twelfth product data DX9 to DX12 input thereto in a case where at least one of the ninth to twelfth product data DX9 to DX12 is input.
[0045] Then, the mixed signal DO1 output from the adder 42 is output from the first output channel to the sound amplifier 70, and the sound amplifier 70 converts the mixed signal DO1 into a sound signal DOX1 and outputs it to the first sound reproducing device 3-1. As a result, a sound corresponding to the sound signal DOX1 is output from the first sound reproducing device 3-1.
[0046] Figure 3 is a diagram showing an example of the channel-priority order setting table 61, the priority order-gain setting table 62, and the gain reference table 63 in a case where the mixing circuit 40 is configured as Figure 2 Figure 3 In the table 61, Ch1 to Ch12 are the first to twelfth input channels of the mixing circuit 40, respectively.
[0047] In the table 62, Ch1 to Ch12 are the first to twelfth input channels of the mixing circuit 40, respectively. Figure 3 In the example, in the channel-priority setting table 61, the first input channel corresponds to priority Pr7, the second input channel to priority Pr5, the third input channel to priority Pr9, the fourth input channel to priority Pr12, the fifth input channel to priority Pr6, and the sixth input channel to priority Pr2. Furthermore, the seventh input channel corresponds to priority Pr10, the eighth input channel to priority Pr11, the ninth input channel to priority Pr1, the tenth input channel to priority Pr3, the eleventh input channel to priority Pr8, and the twelfth input channel to priority Pr4. In priority orders Pr1 to Pr12, Pri represents the i-th highest priority. That is, since Pr1 has the highest priority and Pr12 has the lowest priority, the order from highest to lowest priority is: Ninth input channel, Sixth input channel, Tenth input channel, Twelfth input channel, Second input channel, Fifth input channel, First input channel, Eleventh input channel, Third input channel, Seventh input channel, Eighth input channel, and Fourth input channel.
[0048] In addition, Figure 3 In the example, in the priority-gain setting table 62, the gain setting value 0x00 is associated with priority Pr1, the gain setting value 0x0C with priority Pr2, the gain setting value 0x18 with priority Pr3, the gain setting value 0x24 with priority Pr4, the gain setting value 0x30 with priority Pr5, and the gain setting value 0x3C with priority Pr6. Additionally, the gain setting value 0x48 is associated with priority Pr7, the gain setting value 0x54 with priority Pr8, the gain setting value 0x60 with priority Pr9, the gain setting value 0x6C with priority Pr10, the gain setting value 0x78 with priority Pr11, and the gain setting value 0x84 with priority Pr12.
[0049] In addition, Figure 3 In the example, in gain reference table 63, the gain setting value 0x00 is mapped to a gain value of 0dB, the gain setting values 0x01 to 0xFE are mapped to gain values of -0.25dB to -63.5dB in intervals of -0.25dB, and the gain setting value 0xFF is mapped to "no sound". "No sound" is equivalent to a gain value of -∞dB.
[0050] The priority orders Pr1 to Pr12 of the channel-priority order setting table 61 are linked with the priority orders Pr1 to Pr12 of the priority-gain setting table 62, and each gain setting value of the priority-gain setting table 62 is linked with each gain setting value of the gain reference table 63. Therefore, the gain value of -18 dB corresponding to the gain setting value 0x48 corresponds to the first input channel of the priority order Pr7, the gain value of -12 dB corresponding to the gain setting value 0x30 corresponds to the second input channel of the priority order Pr5, the gain value of -24 dB corresponding to the gain setting value 0x60 corresponds to the third input channel of the priority order Pr9, and the gain value of -33 dB corresponding to the gain setting value 0x84 corresponds to the fourth input channel of the priority order Pr12. Further, the gain value of -15 dB corresponding to the gain setting value 0x3C corresponds to the fifth input channel of the priority order Pr6, the gain value of -3 dB corresponding to the gain setting value 0x0C corresponds to the sixth input channel of the priority order Pr2, the gain value of -27 dB corresponding to the gain setting value 0x6C corresponds to the seventh input channel of the priority order Pr10, and the gain value of -30 dB corresponding to the gain setting value 0x78 corresponds to the eighth input channel of the priority order Pr11. Further, the gain value of 0 dB corresponding to the gain setting value 0x00 corresponds to the ninth input channel of the priority order Pr1, the gain value of -6 dB corresponding to the gain setting value 0x18 corresponds to the tenth input channel of the priority order Pr3, the gain value of -21 dB corresponding to the gain setting value 0x54 corresponds to the eleventh input channel of the priority order Pr8, and the gain value of -9 dB corresponding to the gain setting value 0x24 corresponds to the twelfth input channel of the priority order Pr4. That is, the first to twelfth input channels are sequentially assigned the gain values of -18 dB, -12 dB, -24 dB, -33 dB, -15 dB, -3 dB, -27 dB, -30 dB, 0 dB, -6 dB, -21 dB, and -9 dB by the channel-priority order setting table 61, the priority-gain setting table 62, and the gain reference table 63.
[0051] Then, the gain setting circuit 50 sets the first to twelfth gain G1 to G12 with the respective gain values of -18 dB, -12 dB, -24 dB, -33 dB, -15 dB, -3 dB, -27 dB, -30 dB, 0 dB, -6 dB, -21 dB, and -9 dB corresponding to the first to twelfth input channels as described above by the channel-priority order setting table 61, the priority-gain setting table 62, and the gain reference table 63 during the period in which the first to twelfth sound data DIl to DI12 are simultaneously reproduced by the first sound reproducing device 3-1. As a result, the first to twelfth sound data DIl to DI12 are reproduced by the first sound reproducing device 3-1 as a sound in which the sound data input to the input channel of the higher priority order is synthesized with a larger volume.
[0052] Further, during the period in which the first sound reproducing device 3-1 reproduces only a part of the first to twelfth sound data DI1 to DI12 simultaneously, the gain setting circuit 50 re-sets the priority order for each input channel corresponding to the sound data reproduced simultaneously by the first sound reproducing device 3-1. Specifically, the gain setting circuit 50 re-sets the priority order Prl, Pr2,... for each input channel inputting each sound data reproduced simultaneously by the first sound reproducing device 3-1 in the order of priority from high to low with reference to the channel-priority order setting table 61. Then, the gain setting circuit 50 links the priority order Prl, Pr2,... re-set for each input channel to the priority order Prl, Pr2,... of the priority order-gain setting table 62 in place of the channel-priority order setting table 61, and sets each gain corresponding to each input channel through each gain value corresponding to each input channel through the priority order-gain setting table 62 and the gain reference table 63.
[0053] Further, the gain setting circuit 50 can set the gain value of 0 dB corresponding to the gain setting value 0x00 corresponding to the highest priority order Prl to the ninth to twelfth gains G9 to G12, respectively, during the period in which the second to fifth sound reproducing devices 3-2 to 3-5 reproduce the ninth to twelfth sound data DI9 to DI12, respectively.
[0054] A specific example in which a plurality of sound data are reproduced simultaneously by the first sound reproducing device 3-1 is shown in Figure 4 Figure 3 the channel-priority order setting table 61, the priority order-gain setting table 62, and the gain reference table 63 are configured as described above. In Figure 4 , Ch6 to Ch9 are the sixth to ninth input channels of the mixing circuit 40, respectively.
[0055] In the example of Figure 4 , at time tl, the reproduction of the sixth sound data DI6 inputted to the sixth input channel is started. During the period from time tl to time t2, the sound data reproduced by the first sound reproducing device 3-1 is only the sixth sound data DI6, and therefore the gain setting circuit 50 re-sets the highest priority order Prl for the sixth input channel. Then, the gain setting circuit 50 sets the gain value of 0 dB corresponding to the gain setting value 0x00 corresponding to the priority order Prl to the sixth gain G6.
[0056] Next, at time t2, reproduction of the seventh sound data DI7 input to the seventh input channel is started. As a result, during a period from time t2 to time t3, the sixth sound data DI6 and the seventh sound data DI7 are simultaneously reproduced by the first sound reproducing device 3-1. The priority order Pr2 corresponding to the sixth input channel is higher than the priority order Pr10 corresponding to the seventh input channel, and therefore the gain setting circuit 50 re-sets the highest priority order Prl to the sixth input channel and re-sets the second highest priority order Pr2 to the seventh input channel. Then, the gain setting circuit 50 sets a gain value of 0dB corresponding to the gain setting value 0x00 corresponding to the priority order Prl to the sixth gain G6 and sets a gain value of -3dB corresponding to the gain setting value 0x0C corresponding to the priority order Pr2 to the seventh gain G7.
[0057] Next, at time t3, reproduction of the eighth sound data DI8 input to the eighth input channel is started. As a result, during a period from time t3 to time t4, the sixth sound data DI6, the seventh sound data DI7 and the eighth sound data DI8 are simultaneously reproduced by the first sound reproducing device 3-1. The priority order Pr2 corresponding to the sixth input channel is higher than the priority order Pr10 corresponding to the seventh input channel and the priority order Pr11 corresponding to the eighth input channel, and the priority order Pr10 corresponding to the seventh input channel is higher than the priority order Pr11 corresponding to the eighth input channel, and therefore the gain setting circuit 50 re-sets the highest priority order Prl to the sixth input channel, re-sets the second highest priority order Pr2 to the seventh input channel and re-sets the third highest priority order Pr3 to the eighth input channel. Also, the gain setting circuit 50 sets a gain value of 0dB corresponding to the gain setting value 0x00 corresponding to the priority order Prl to the sixth gain G6, sets a gain value of -3dB corresponding to the gain setting value 0x0C corresponding to the priority order Pr2 to the seventh gain G7 and sets a gain value of -6dB corresponding to the gain setting value 0x18 corresponding to the priority order Pr3 to the eighth gain G8.
[0058] Next, at time t4, the reproduction of the sixth sound data DI6 is stopped. As a result, during the period from time t4 to time t5, the seventh sound data DI7 and the eighth sound data DI8 are simultaneously reproduced by the first sound reproducing device 3-1. Since the priority order Pr10 corresponding to the seventh input channel is higher than the priority order Pr11 corresponding to the eighth input channel, the gain setting circuit 50 re-sets the highest priority order Prl to the seventh input channel and re-sets the second highest priority order Pr2 to the eighth input channel. Further, the gain setting circuit 50 sets the seventh gain G7 to the gain value of 0dB corresponding to the gain setting value 0x00 corresponding to the priority order Prl and sets the eighth gain G8 to the gain value of -3dB corresponding to the gain setting value 0x0C corresponding to the priority order Pr2.
[0059] Thus, in the process in which the gain setting circuit 50 sets the gain values of 0dB, -3dB and -6dB to the sixth to eighth gains G6 to G8, respectively, to reproduce the sixth to eighth sound data DI6 to DI8, in the case where the reproduction of the sixth sound data DI6 having a higher priority order than the seventh and eighth sound data DI7 and DI8 is stopped at time t4, the seventh and eighth gains G7 and G8 are set to higher gain values of 0dB and -3dB, respectively, which are different from the gain values of -3dB and -6dB, respectively. Further, the gain values of -3dB and -6dB set to the seventh and eighth gains G7 and G8, respectively, before the reproduction of the sixth sound data DI6 is stopped are examples of "first values", and the gain values of 0dB and -3dB set to the seventh and eighth gains G7 and G8, respectively, after the reproduction of the sixth sound data DI6 is stopped are examples of "second values".
[0060] Next, at time t5, the reproduction of the seventh sound data DI7 is stopped. As a result, during the period from time t5 to time t6, the sound data reproduced by the first sound reproducing device 3-1 is only the eighth sound data DI8, and therefore the gain setting circuit 50 re-sets the highest priority order Prl to the eighth input channel. Then, the gain setting circuit 50 sets the eighth gain G8 to the gain value of 0dB corresponding to the gain setting value 0x00 corresponding to the priority order Prl.
[0061] Thus, the gain setting circuit 50, in the process of setting the seventh and eighth gains G7, G8 to 0 dB and -3 dB, respectively, to reproduce the seventh and eighth sound data DI7, DI8, sets the eighth gain G8 to a higher gain value of 0 dB, different from the gain value of -3 dB, in the case where the reproduction of the seventh sound data DI7, which has a higher priority order than the eighth sound data DI8, is stopped at time t5. Also, in the case where the gain value of -3 dB set to the eighth gain G8 before the reproduction of the seventh sound data DI7 is stopped is a "first value", and the gain value of 0 dB set to the eighth gain G8 after the reproduction of the seventh sound data DI7 is stopped is a "second value".
[0062] Next, at time t6, the reproduction of the ninth sound data DI9 input to the ninth input channel is started. As a result, during the period from time t6 to time t7, the eighth sound data DI8 and the ninth sound data DI9 are simultaneously reproduced by the first sound reproducing device 3-1. Since the priority order Prl corresponding to the ninth input channel is higher than the priority order Prl 1 corresponding to the eighth input channel, the gain setting circuit 50 re-sets the highest priority order Prl to the ninth input channel and the second highest priority order Pr2 to the eighth input channel. Then, the gain setting circuit 50 sets the ninth gain G9 to a gain value of 0 dB corresponding to the gain setting value 0x00 corresponding to the priority order Prl, and sets the eighth gain G8 to a gain value of -3 dB corresponding to the gain setting value 0x0C corresponding to the priority order Pr2.
[0063] Thus, the gain setting circuit 50, in the process of setting the eighth gain G8 to 0 dB to reproduce the eighth sound data DI8, sets the eighth gain G8 to a lower gain value of -3 dB, different from the gain value of 0 dB, in the case where the reproduction of the ninth sound data DI9, which has a higher priority order than the eighth sound data DI8, is started at time t6. Also, in the case where the gain value of 0 dB set to the eighth gain G8 before the reproduction of the ninth sound data DI9 is started is a "first value", and the gain value of -3 dB set to the eighth gain G8 after the reproduction of the ninth sound data DI9 is started is a "second value".
[0064] Next, at time t7, the reproduction of the eighth sound data DI8 is stopped. As a result, during the period from time t7 to time t8 at which the reproduction of the ninth sound data DI9 is stopped, the sound data reproduced by the first sound reproducing device 3-1 is only the ninth sound data DI9, so the gain setting circuit 50 re-sets the highest priority order Prl to the ninth input channel. Then, the gain setting circuit 50 sets the ninth gain G9 to a gain value of 0 dB corresponding to the gain setting value 0x00 corresponding to the priority order Prl.
[0065] In the sound mixing device 1 of the first embodiment described above, the gain setting circuit 50 sets the first to nth gains Gl to Gn in accordance with a command input from the external microcomputer 2, the mixing circuit 40 outputs a mixed signal DOl obtained by mixing two or more of the first to nth product data obtained by multiplying each of the first to nth sound data DIl to DIn by each of the first to nth gains Gl to Gn, and the sound amplifier 70 converts the mixed signal DOl into a sound signal DOIX and outputs it to the first sound reproducing device 3-1. Thus, according to the sound mixing device 1 of the first embodiment, the first sound reproducing device 1 can reproduce a plurality of sound data requested to be reproduced among the first to nth sound data DIl to DIn without delay.
[0066] In addition, according to the sound mixing device 1 of the first embodiment, the gain setting circuit 50 sets each of the first to nth gains Gl to Gn for a plurality of sound data to be reproduced among the first to nth gains Gl to Gn, rather than setting the same gain, and thus the user can easily distinguish each of a plurality of sound data reproduced at the same time. In particular, the gain setting circuit 50 sets a higher gain for a sound data having a higher priority order among a plurality of sound data reproduced at the same time, and thus the user can easily listen to a sound data having a higher priority order.
[0067] In addition, in the sound mixing device 1 of the first embodiment, the gain setting circuit 50 sets the jth gain Gj to a second value different from the first value in a case where reproduction of the kth sound data DIk having a higher priority order than the jth sound data DIj is started or stopped during a process of setting the jth gain Gj to the first value to reproduce the jth sound data DIj. Thus, according to the sound mixing device 1 of the first embodiment, in a case where the priority order of the jth sound data DIj in reproduction is raised or lowered, the reproduction volume of the jth sound data can be appropriately changed.
[0068] In addition, the sound mixing device 1 of the first embodiment has the memory 20 that stores the first to nth sound source data 21-1 to 21-n that are bases of the first to nth sound data DIl to DIn. Thus, according to the sound mixing device 1 of the first embodiment, since the first to nth sound source data 21-1 to 21-n do not need to be acquired from the outside, the timing at which reproduction of the first to nth sound data DIl to DIn is started can be made early.
[0069] 1-2. Second Embodiment
[0070] Hereinafter, regarding the sound mixing device 1 of the second embodiment, the same reference numerals are assigned to the same structures as those of the first embodiment, and the same explanation as that of the first embodiment is omitted or simplified, and mainly the contents different from those of the first embodiment are explained.
[0071] Figure 5 is a diagram showing a configuration example of the sound mixing device 1 of the second embodiment. As shown in the diagram, the sound mixing device 1 of the second embodiment, like the sound mixing device 1 of the first embodiment, is provided with the communication interface circuit 10, the memory 20, the decoder 30, the mixing circuit 40, the gain setting circuit 50, the channel-priority order setting table 61, the priority order-gain setting table 62, the gain reference table 63, and the sound amplifier 70, and is further provided with the priority selection table 64 and the protection circuit 80. The sound mixing device 1 of the second embodiment can be a semiconductor integrated circuit device of one chip, can be constituted by semiconductor integrated circuit devices of a plurality of chips, and can be constituted at least in part by electronic components other than semiconductor integrated circuit devices. Figure 5
[0072] The functions and the configuration of the memory 20, the decoder 30, the gain setting circuit 50, the channel-priority order setting table 61, the priority order-gain setting table 62, and the gain reference table 63 are the same as those of the first embodiment, and thus the description thereof is omitted.
[0073] The communication interface circuit 10, like the communication interface circuit 10 of the first embodiment, receives the sound reproduction command or the sound stop command for the i-th sound source data 21-i, the data write command for the channel-priority order setting table 61 or the priority order-gain setting table 62 from the micro control unit 2, and generates the control signal corresponding to each of the received commands. Furthermore, in the second embodiment, the communication interface circuit 10, upon receiving the data write command for the priority selection table 64, generates the control signal for writing the specified data to the address specified by the command.
[0074] The sound amplifier 70, like the sound amplifier 70 of the first embodiment, converts the mixed signal DO1 output from the mixing circuit 40 into the sound signal DOX1 and outputs it to the first sound reproduction device 3-1. Furthermore, in the second embodiment, the sound amplifier 70 determines whether the sound signal DOX1 is normal or abnormal, and, upon determining that the sound signal DOX1 is abnormal, outputs the abnormality detection signal ERR1 to the mixing circuit 40.
[0075] The mixing circuit 40 can output the mixed signal DOl as in the first embodiment, and further output the sound signals DO2 to DOm to the second to mth sound reproducing devices 3-2 to 3-m. Further, in the second embodiment, the mixing circuit 40 outputs the mixed signal DOl to any one of the second to mth sound reproducing devices 3-2 to 3-m in a case where the abnormality detection signal ERRl output from the sound amplifier 70 is input. In particular, in a case where an integer m is an integer of 3 or more, the mixing circuit 40 selects any one of the second to mth sound reproducing devices 3-2 to 3-m according to the priority selection table 64 in a case where the abnormality detection signal ERRl is input, and outputs the mixed signal DOl to the selected any one of the second to mth sound reproducing devices 3-2 to 3-m.
[0076] The priority selection table 64 is a table in which a priority order of selecting each of the second to mth output channels as an output destination of the mixed signal DOl is set in a case where the abnormality detection signal ERRl is input to the mixing circuit 40. The priority selection table 64 is stored in a RAM or a register not shown, and is rewritten by a command input from the outside of the sound mixing device 1.
[0077] For example, the mixing circuit 40 can select the ith sound reproducing device 3-i in which the highest priority order is designated in the priority selection table 64 among the second to mth sound reproducing devices 3-2 to 3-m in a case where the abnormality detection signal ERRl is input, and output the mixed signal DOl to the selected ith sound reproducing device 3-i.
[0078] The protection circuit 80 outputs the sound signals DO2 to DOm as sound signals DOX2 to DOXm to the second to mth sound reproducing devices 3-2 to 3-m, respectively, and determines whether the sound signals DOX2 to DOXm are normal or abnormal, respectively. Further, the protection circuit 80 outputs the abnormality detection signals ERR2 to ERRm to the mixing circuit 40 in a case where it is determined that the sound signals DOX2 to DOXm are abnormal, respectively.
[0079] For example, the mixing circuit 40 can output the mixed signal DOl to the kth sound reproducing device 3-k in which the highest priority order is designated in the priority selection table 64 among the second to mth sound reproducing devices 3-2 to 3-m except for the jth sound reproducing device 3-j among the second to mth sound reproducing devices 3-2 to 3-m in a case where the abnormality detection signal ERRl is input, if the abnormality detection signal ERRj among the abnormality detection signals ERR2 to ERRm is input.
[0080] The sound mixing device 1 can not include the protection circuit 80.
[0081] Figure 6This is a diagram illustrating a specific structural example of the mixing circuit 40, the sound amplifier 70, and the protection circuit 80 in the second embodiment. Figure 6 In this example, the hybrid circuit 40 has 12 input channels and 5 output channels. That is, Figure 6 Is Figure 5 Examples where the integer n is 12 and the integer m is 5.
[0082] exist Figure 6 In this example, the sound amplifier 70 includes a drive circuit 71 and a protection circuit 72. The drive circuit 71 converts the mixed signal DO1 into a sound signal DOX1, and outputs the sound signal DOX1 to the first sound reproduction device 3-1. Figure 6 In the example, the sound signal DOX1 is a differential sound signal DOX1_P, DOX1_N. Therefore, the first sound reproduction device 3-1 outputs the sound corresponding to the sound signals DOX1_P, DOX1_N.
[0083] The protection circuit 72 determines whether the audio signals DOX1_P and DOX1_N are normal or abnormal. If the audio signals DOX1_P and DOX1_N are determined to be abnormal, it outputs an abnormality detection signal ERR1 to the switch control circuit 46 of the hybrid circuit 40. For example, the protection circuit 72 can measure the current flowing through the signal lines of the output audio signals DOX1_P and DOX1_N or the signal lines inside the drive circuit 71. When the measured value is higher than a specified value, an overcurrent is detected and the abnormality detection signal ERR1 is output. In addition, the protection circuit 72 can also output the abnormality detection signal ERR1 when the logic level of the audio signals DOX1_P and DOX1_N is high for more than a specified time.
[0084] The protection circuit 80 includes four waveform comparison circuits 81-1 to 81-4.
[0085] The waveform comparison circuit 81-1 outputs the sound signal DO2 as the sound signal DOX2 to the second sound reproduction device 3-2. Additionally, the waveform comparison circuit 81-1 compares the waveform of the sound signal DOX2 with the waveform of the sound signal DO2, and determines whether the sound signal DOX2 is normal or abnormal based on the difference between these waveforms. If the sound signal DOX2 is determined to be abnormal, an abnormality detection signal ERR2 is output to the switch control circuit 46 of the mixing circuit 40.
[0086] The waveform comparison circuit 81-2 outputs the sound signal DO3 as a sound signal DOX3 to the third sound reproducing device 3-3. In addition, the waveform comparison circuit 81-2 compares the waveform of the sound signal DOX3 with the waveform of the sound signal DO3, determines whether the sound signal DOX3 is normal or abnormal based on the difference between these waveforms, and outputs an abnormality detection signal ERR3 to the switch control circuit 46 of the mixing circuit 40 in a case where the sound signal DOX3 is determined to be abnormal.
[0087] The waveform comparison circuit 81-3 outputs the sound signal DO4 as a sound signal DOX4 to the fourth sound reproducing device 3-4. In addition, the waveform comparison circuit 81-3 compares the waveform of the sound signal DOX4 with the waveform of the sound signal DO4, determines whether the sound signal DOX4 is normal or abnormal based on the difference between these waveforms, and outputs an abnormality detection signal ERR4 to the switch control circuit 46 of the mixing circuit 40 in a case where the sound signal DOX4 is determined to be abnormal.
[0088] The waveform comparison circuit 81-4 outputs the sound signal DO5 as a sound signal DOX5 to the fifth sound reproducing device 3-5. In addition, the waveform comparison circuit 81-4 compares the waveform of the sound signal DOX5 with the waveform of the sound signal DO5, determines whether the sound signal DOX5 is normal or abnormal based on the difference between these waveforms, and outputs an abnormality detection signal ERR5 to the switch control circuit 46 of the mixing circuit 40 in a case where the sound signal DOX5 is determined to be abnormal.
[0089] The mixing circuit 40 includes Figure 2 Similarly, the mixing circuit 40 includes 12 multipliers 41-1 to 41-12, an adder 42, and four switch circuits 43-1 to 43-4. Furthermore, in the example of Figure 6 the mixing circuit 40 includes a switch circuit 44, four switch circuits 45-1 to 45-4, and a switch control circuit 46.
[0090] The multipliers 41-1 to 41-12 are the same as Figure 2 and thus a description thereof is omitted.
[0091] The switch circuit 43-1 switches whether the ninth product data DX9 is output to the adder 42 or to the switch circuit 45-1.
[0092] The switch circuit 43-2 switches whether the tenth product data DX10 is output to the adder 42 or to the switch circuit 45-2.
[0093] The switch circuit 43-3 switches whether the eleventh product data DX11 is output to the adder 42 or to the switch circuit 45-3.
[0094] The switch circuit 43-4 switches whether the twelfth product data DX12 is output to the adder 42 or to the switch circuit 45-4.
[0095] The adder 42 is input with the first to eighth product data DX1 to DX8. In addition, there is a case where at least one of the ninth to twelfth product data DX9 to DX12 is input to the adder 42, depending on the switching setting of the switch circuits 43-1 to 43-4.
[0096] The adder 42 outputs a mixed signal DO obtained by adding the first to eighth product data DX1 to DX8, in a case where none of the ninth to twelfth product data DX9 to DX12 is input. In addition, the adder 42 outputs a mixed signal DO obtained by adding the first to eighth product data DX1 to DX8 and at least one of the ninth to twelfth product data DX9 to DX12 input, in a case where at least one of the ninth to twelfth product data DX9 to DX12 is input.
[0097] The switch circuit 44 switches whether the mixed signal DO output from the adder 42 is output from the first output channel to the drive circuit 71 of the sound amplifier 70 as a mixed signal DO1 or to the switch circuits 45-1 to 45-4.
[0098] The switch circuit 45-1 selects either the ninth product data DX9 or the mixed signal DO, as a sound signal DO2 output from the second output channel to the second sound reproducing device 3-2.
[0099] The switch circuit 45-2 selects either the tenth product data DX10 or the mixed signal DO, as a sound signal DO3 output from the third output channel to the third sound reproducing device 3-3.
[0100] The switch circuit 45-3 selects either the eleventh product data DX11 or the mixed signal DO, as a sound signal DO4 output from the fourth output channel to the fourth sound reproducing device 3-4.
[0101] The switch circuit 45-4 selects either the twelfth product data DX12 or the mixed signal DO, as a sound signal DO5 output from the fifth output channel to the fifth sound reproducing device 3-5.
[0102] The switch control circuit 46 controls the switch circuit 44 and the switch circuits 45-1 to 45-4 on the basis of the abnormality detection signals ERR1 to ERR5. Specifically, the switch control circuit 46 controls the switch circuit 44 to output the mixed signal DO as the mixed signal DOl from the first output channel and controls the switch circuits 45-1 to 45-4 to output the ninth to twelfth product data DX9 to DX12 as the sound signals DO2 to DO5 from the second to fifth output channels, respectively, in a case where no abnormality detection signal ERR1 is input, that is, in a case where the sound signal DOXl output to the first sound reproducing device 3-1 is normal.
[0103] Further, the switch control circuit 46 controls the switch circuit 44 to output the mixed signal DO to the switch circuits 45-1 to 45-4 and controls the switch circuits 45-1 to 45-4 to output the mixed signal DO from any one of the second to fifth output channels on the basis of the abnormality detection signals ERR2 to ERR5 and the priority selection table 64, in a case where the abnormality detection signal ERR1 is input, that is, in a case where the sound signal DOXl output to the first sound reproducing device 3-1 is abnormal. Specifically, the switch control circuit 46 determines the i-th output channel having the highest priority order among one or more output channels to which no abnormality detection signal is input, with reference to the priority selection table 64 in a case where the abnormality detection signal ERR1 is input, and controls the switch circuits 44, 45-1 to 45-4 so that the mixed signal DO is output from the i-th output channel.
[0104] Figure 7 is a diagram showing an example of the priority selection table 64 in a case where the mixing circuit 40 is configured as shown in Figure 6 In the example shown in Figure 7 , Ch2 to Ch5 are the second to fifth output channels of the mixing circuit 40, respectively. In the example shown in Figure 7 , in the priority selection table 64, the second output channel corresponds to the highest priority order Prl, the third output channel corresponds to the second highest priority order Pr2, the fourth output channel corresponds to the third highest priority order Pr3, and the fifth input channel corresponds to the lowest priority order Pr4.
[0105] In the example shown in Figure 7 , the switch control circuit 46 switches the switch circuits 44, 45-1 so that the mixed signal DO is output from the second output channel if no abnormality detection signal ERR2 is input, that is, if the sound signal DOXl is abnormal and the sound signal DOX2 is normal, when the abnormality detection signal ERRl is input by the first sound reproducing device 3-1 reproducing the sound corresponding to the mixed signal DO. Thus, the sound reproduction by the first sound reproducing device 3-1 is stopped, and the sound corresponding to the mixed signal DO is reproduced by the second sound reproducing device 3-2.
[0106] Further, in a case where the switch control circuit 46 is inputted the abnormality detection signal ERR1 when the sound corresponding to the mix signal DO is reproduced by the first sound reproducing device 3-1, if the abnormality detection signal ERR2 is inputted and the abnormality detection signal ERR3 is not inputted, that is, if the sound signals DOX1, DOX2 are abnormal and the sound signal DOX3 is normal, the switch circuit 44, 45-2 is switched so that the mix signal DO is outputted from the third output channel. Thereby, the sound reproduction of the first sound reproducing device 3-1 is stopped, and the sound corresponding to the mix signal DO is reproduced by the third sound reproducing device 3-3.
[0107] Further, in a case where the switch control circuit 46 is inputted the abnormality detection signal ERR1 when the sound corresponding to the mix signal DO is reproduced by the first sound reproducing device 3-1, if the abnormality detection signal ERR2, ERR3 is inputted and the abnormality detection signal ERR4 is not inputted, that is, if the sound signals DOX1, DOX2, DOX3 are abnormal and the sound signal DOX4 is normal, the switch circuit 44, 45-3 is switched so that the mix signal DO is outputted from the fourth output channel. Thereby, the sound reproduction of the first sound reproducing device 3-1 is stopped, and the sound corresponding to the mix signal DO is reproduced by the fourth sound reproducing device 3-4.
[0108] Further, in a case where the switch control circuit 46 is inputted the abnormality detection signal ERR1 when the sound corresponding to the mix signal DO is reproduced by the first sound reproducing device 3-1, if the abnormality detection signal ERR2, ERR3, ERR4 is inputted and the abnormality detection signal ERR5 is not inputted, that is, if the sound signals DOX1, DOX2, DOX3, DOX4 are abnormal and the sound signal DOX5 is normal, the switch circuit 44, 45-4 is switched so that the mix signal DO is outputted from the fifth output channel. Thereby, the sound reproduction of the first sound reproducing device 3-1 is stopped, and the sound corresponding to the mix signal DO is reproduced by the fifth sound reproducing device 3-5.
[0109] The sound mixing device 1 according to the second embodiment described above functions in the same manner as the sound mixing device 1 according to the first embodiment. Further, in the sound mixing device 1 according to the second embodiment, the sound amplifier 70 outputs the abnormality detection signal ERR1 to the mixing circuit 40 in a case where it is determined that the sound signal DOX1 is abnormal, and the mixing circuit 40 outputs the mixed signal DO to any one of the second to mth sound reproducing devices 3-2 to 3-m in a case where the abnormality detection signal ERR1 is input thereto. Specifically, the mixing circuit 40 selects one of the second to mth sound reproducing devices 3-2 to 3-m in which the priority order is the highest based on the priority selection table 64 and the abnormality detection signals ERR2 to ERR5, and outputs the mixed signal DO in a case where the abnormality detection signal ERR1 is input thereto. Thus, according to the sound mixing device 1 according to the second embodiment, even in a case where the first sound reproducing device 3-1 or the sound amplifier 70 is abnormal, any one of the second to mth sound reproducing devices 3-2 to 3-m can reproduce the plurality of sound data without delay.
[0110] 1-3. Third Embodiment
[0111] Hereinafter, regarding the sound mixing device 1 according to the third embodiment, the same reference numerals are assigned to the same structures as those of the first or second embodiment, and the same description as that of the first or second embodiment is omitted or simplified, and mainly the content different from that of the first and second embodiments is described.
[0112] Figure 8 is a diagram showing a structure example of the sound mixing device 1 according to the third embodiment. As shown in Figure 8 , the sound mixing device 1 according to the third embodiment has a memory interface circuit 90 instead of the memory 20 with respect to the sound mixing device 1 according to the second embodiment shown in Figure 5
[0113] The memory interface circuit 90 receives the first to nth sound source data 101-1 to 101-n from a memory 100 outside the sound mixing device 1. The memory interface circuit 90 can be, for example, a QSPI interface circuit. QSPI is an abbreviation for Quad Serial Peripheral Interface.
[0114] The memory interface circuit 90 reads out the i-th sound source data 101-i from the memory 100 according to a control signal indicating the sound reproduction of the i-th sound source data 101-i output from the communication interface circuit 10, and outputs the read i-th sound source data 101-i to the i-th input channel of the decoder 30.
[0115] The memory 100 stores the first to n-th sound source data 101-1 to 101-n as n sound source data. That is, the first to n-th sound source data 101-1 to 101-n are stored in the memory 100. The memory 100 can be, for example, a flash memory. The first to n-th sound source data 101-1 to 101-n can be, for example, sound data subjected to pulse code modulation (PCM) or sound data subjected to adaptive differential pulse code modulation (ADPCM), respectively. The sound data can be, for example, data of various sounds such as a sound simulating a human voice, a mechanical warning sound, an effect sound, and the like.
[0116] The decoder 30 demodulates the i-th sound data Di based on the i-th input channel by decoding the i-th sound source data 101-i of the i-th input channel in accordance with the control signal indicating the sound reproduction of the i-th sound source data 101-i output from the communication interface circuit 10. In this way, the first to n-th sound source data 101-1 to 101-n stored in the memory 100 are data on which the first to n-th sound data Di 1 to Di n are based.
[0117] The other configurations and functions of the sound mixing apparatus 1 of the third embodiment are the same as those of the sound mixing apparatus 1 of the second embodiment, and thus the description thereof will be omitted.
[0118] In addition, the sound mixing apparatus 1 of the third embodiment can be configured to receive the first to n-th sound source data 101-1 to 101-n from the external memory 100 with respect to the sound mixing apparatus 1 of the first embodiment. Figure 1
[0119] The sound mixing apparatus 1 of the third embodiment according to the above description has the same effects as the sound mixing apparatus 1 of the first or second embodiment. Furthermore, the sound mixing apparatus 1 of the third embodiment includes the memory interface circuit 90 that receives the first to n-th sound source data 101-1 to 101-n from the external memory 100. Therefore, according to the sound mixing apparatus 1 of the third embodiment, the first to n-th sound source data 101-1 to 101-n can be received from the external memory 100 via the memory interface circuit 90, and thus it is not necessary to internally store the memory that stores the first to n-th sound source data 101-1 to 101-n, and the circuit size can be reduced.
[0120] 1-4. Fourth Embodiment
[0121] Hereinafter, with respect to the sound mixing apparatus 1 of the fourth embodiment, the same reference numerals are assigned to the same configurations as those of the first or second embodiment, and the same description as that of the first or second embodiment will be omitted or simplified, and mainly the description of the contents different from those of the first and second embodiments will be made.
[0122] Figure 9 This is a diagram illustrating a structural example of the sound mixing device 1 according to the fourth embodiment. Figure 9 As shown, the sound mixing device 1 of the fourth embodiment is relative to Figure 5 The sound mixing device 1 of the second embodiment shown has a communication interface circuit 12 instead of a memory 20.
[0123] The communication interface circuit 12 receives the first to nth sound source data 111-1 to 111-n from the microcontroller unit 2 outside the sound mixing device 1. The communication interface circuit 12 can be, for example, a TDM interface circuit or an I2S interface circuit. TDM is an abbreviation for time division multiplexing, and I2S is an abbreviation for Inter-IC Sound.
[0124] The microcontroller unit 2 sends a sound reproduction command for the i-th sound source data 111-i to the communication interface circuit 10, and also sends the i-th sound source data 111-i to the communication interface circuit 12. The communication interface circuit 12 receives the i-th sound source data 111-i from the microcontroller unit 2 and outputs the received i-th sound source data 111-i to the i-th input channel of the decoder 30.
[0125] The microcontroller unit 2 may also store at least a portion of the first to nth sound source data 111-1 to 111-n in a built-in memory (not shown). Alternatively, at least a portion of the first to nth sound source data 111-1 to 111-n may be stored in an external memory (not shown) of the microcontroller unit 2, from which the microcontroller unit 2 reads the i-th sound source data 111-i and sends it to the communication interface circuit 12.
[0126] The decoder 30 decodes the i-th sound source data 101-i of the i-th input channel and demodulates the i-th sound data DIi by decoding the i-th sound source data 101-i according to the control signal output from the communication interface circuit 10 indicating the sound reproduction of the i-th sound source data 101-i. In this way, the first to n-th sound source data 101-1 to 101-n are the data that form the basis of the first to n-th sound data DI1 to DIn.
[0127] The other configurations and functions of the sound mixing device 1 in the fourth embodiment are the same as those in the sound mixing device 1 in the second embodiment, and therefore their description will be omitted.
[0128] Additionally, the sound mixing device 1 in the fourth embodiment can also be relative to... Figure 1The first embodiment shown sound mixing device 1, instead of the memory 20 and having a communication interface circuit 12 structure. In addition, in the fourth embodiment of the sound mixing device 1, the communication interface circuit 10 can receive various commands from a plurality of micro control unit 2, the communication interface circuit 12 can also receive a plurality of sound source data from a plurality of micro control unit 2.
[0129] According to the fourth embodiment of the above described sound mixing device 1, play the same effect as the first embodiment or the second embodiment of the sound mixing device 1. Furthermore, the fourth embodiment of the sound mixing device 1 is provided with a communication interface circuit 12 from the external micro control unit 2 receive the first to the n sound source data 111-1 to 111-n. Therefore, according to the fourth embodiment of the sound mixing device 1, can be received via the communication interface circuit 12 from the external micro control unit 2, the first to the n sound source data 111-1 to 111-n, so as not to need to store the first to the n sound source data 111-1 to 111-n built-in memory, can reduce the circuit size.
[0130] 2. Electronic device
[0131] Figure 10 is shown using the sound mixing device 1 of the present embodiment of the electronic device of the present embodiment of the structure of an example of the functional block diagram.
[0132] As Figure 10 shown, the electronic device 300 of the present embodiment is configured to include a sound mixing device 1, a first to m sound reproduction device 3-1 to 3-m, a processing unit 310, an operation unit 320, a storage unit 330, and a display unit 340. In addition, the electronic device 300 of the present embodiment can also be configured to omit or change part of the constituent elements of Figure 10 , or add other constituent elements.
[0133] The processing unit 310 performs control processing and various data processing of each part of the electronic device 300. For example, the processing unit 310 sends various commands to the sound mixing device 1, controls the operation of the sound mixing device 1. In addition, the processing unit 310 performs various processing corresponding to the operation signal from the operation unit 320, processing for sending a display signal for causing the display unit 340 to display various information, and the like. For example, the processing unit 310 can also be the aforementioned micro control unit 2.
[0134] The operation unit 320 is an input device configured by an operation key, a push switch, or the like, and outputs an operation signal corresponding to the user's operation to the processing unit 310.
[0135] The storage section 330 stores programs, data, and the like for various calculation processing and control processing by the processing section 310. For example, the first to n-th sound source data can be stored in the storage section 330, and the processing section 310 can read the i-th sound source data from the first to n-th sound source data stored in the storage section 330 and transmit to the sound mixing device 1. The storage section 330 is realized by, for example, a hard disk, a floppy disk, an MO, an MT, various memories, a CD-ROM, a DVD-ROM, or the like.
[0136] The display section 340 is a display device constituted by an LCD or the like, and displays various information based on an input display signal. The LCD is an abbreviation for Liquid Crystal Display. A touch panel that functions as the operation section 320 can also be provided in the display section 340.
[0137] The sound mixing device 1 generates the above-described mixed signal DOl based on various commands transmitted from the processing section 310, and outputs a sound signal DOXl corresponding to the mixed signal DOl to the first sound reproducing device 3-1. In addition, the sound mixing device 1 generates the above-described sound signals DO2 to DOm or sound signals DOX2 to DOXm based on various commands transmitted from the processing section 310, and outputs to the second to m-th sound reproducing devices 3-2 to 3-m. Thereby, sound is reproduced by the first to m-th sound reproducing devices 3-1 to 3-m.
[0138] As such an electronic device 300, various electronic devices can be considered, and for example, a warning device, an electric rice cooker, an IH cooking heater, a vacuum cleaner, a washing machine, and the like various household electrical products, an electronic watch, a personal computer of a mobile type, a laptop type, a tablet type, and the like, a smartphone, a mobile telephone, a digital camera, an inkjet-type discharge device such as an inkjet printer, a storage area network device such as a router, a switch, a local area network device, a mobile terminal base station device, a television, a video camera, a video recorder, a car navigation device, a real-time clock device, a pager, an electronic notebook, an electronic dictionary, a calculator, an electronic game device, a game controller, a word processor, a workstation, a video phone, a security television monitor, an electronic binocular, a POS terminal, an electronic thermometer, a sphygmomanometer, a blood glucose meter, an electrocardiograph measuring device, an ultrasonic diagnostic device, a medical device such as an electronic endoscope, a fish school detector, various measuring devices, a measuring instrument of a vehicle, an airplane, a ship, and the like, a flight simulator, a head-mounted display, a motion tracker, a motion follower, a motion controller, a pedestrian autonomous navigation device, and the like can be exemplified.
[0139] Figure 11 is a diagram showing a configuration example of a warning device 300A as an example of the electronic device 300. In Figure 11 the same constituent elements as in Figure 10 are denoted by the same reference numerals. Figure 11The illustrated warning device 300A is mounted on a vehicle 400. The first sound reproduction device 3-1 is a speaker, and the second to fifth sound reproduction devices 3-2 to 3-5 are buzzer.
[0140] The processing section 310 sends a reproduction command of various sounds and the like to the sound mixing device 1 based on signals from various sensors not illustrated. The various sounds include, for example, a sound of a simulated human voice for notifying of abnormalities of a brake, engine oil, a power steering device, a brake driving system, and the like, a half car door, a wobble drive, a drive with a parking brake not released, a non-wearing of a seat belt, an approach of a forward traveling vehicle, and the like, a warning sound, an effect sound for notifying of a direction indicator, a danger warning, a reverse, and the like.
[0141] The sound mixing device 1 generates a mixed signal DO1 based on a part of the first to n-th sound source data corresponding to the various sounds based on a command from the processing section 310, and outputs a sound signal DOX1 corresponding to the mixed signal DO1 to the first sound reproduction device 3-1.
[0142] In addition, the sound mixing device 1 generates sound signals DO2 to DO5 or sound signals DOX2 to DOX5 based on another part of the first to n-th sound source data, and outputs to the second to fifth sound reproduction devices 3-2 to 3-5. Thereby, the various sounds are reproduced by the first to fifth sound reproduction devices 3-1 to 3-5.
[0143] The warning device 300A has the sound mixing device 1 capable of outputting a plurality of sound data requested to be reproduced without delay, and thereby is capable of simultaneously reproducing a plurality of sounds which do not allow a reproduction delay due to high emergency without delay by the first sound reproduction device 3-1.
[0144] The present application is not limited to the present embodiment, and various modifications can be made within the scope of the gist of the present application.
[0145] The above-described embodiments and modified examples are one example, and are not limited thereto. For example, each of the embodiments and the modified examples can be appropriately combined.
[0146] The present application includes a structure substantially the same as the structure described in the embodiments, for example, a structure having the same function, method, and result, or a structure having the same purpose and effect. Further, the present application includes a structure in which a non-essential part of the structure described in the embodiments is replaced. In addition, the present application includes a structure capable of achieving the same functional effect as the structure described in the embodiments or a structure achieving the same purpose. In addition, the present application includes a structure to which a publicly known technology is added to the structure described in the embodiments.
[0147] The following is derived from the above-described embodiments and modified examples.
[0148] One aspect of the sound mixing device includes a gain setting circuit that sets first to n-th gains in accordance with a command inputted from the outside, n being an integer of 2 or more, and a mixing circuit that outputs a mixed signal obtained by mixing two or more of first to n-th product data obtained by multiplying each of first to n-th sound data by each of the first to n-th gains.
[0149] According to the sound mixing device, since the plurality of sound data multiplied by the respective plurality of gains are mixed, the plurality of sound data can be outputted without delay.
[0150] Further, according to the sound mixing device, since the respective first to n-th gains are set for the respective first to n-th sound data instead of the same gain, a user can easily distinguish each of the plurality of sound data reproduced at the same time.
[0151] In one aspect of the sound mixing device, the mixing circuit can have first to n-th input channels, an i-th gain of the first to n-th gains can be set for an i-th input channel of the first to n-th input channels, and an i-th sound data of the first to n-th sound data can be inputted to the i-th input channel.
[0152] In one aspect of the sound mixing device, the gain setting circuit can set a j-th gain of the first to n-th gains to a second value different from a first value in a case where a command to start or stop reproduction of a k-th sound data of the first to n-th sound data having a priority higher than a j-th sound data of the first to n-th sound data is inputted during reproduction of the j-th sound data of the first to n-th sound data set to the first value.
[0153] According to the sound mixing device, in a case where the priority of the j-th sound data in reproduction is raised or lowered, the reproduction volume of the j-th sound data can be appropriately changed.
[0154] One aspect of the sound mixing device can include a memory that stores first to n-th sound source data that are bases of the first to n-th sound data.
[0155] According to the sound mixing device, since the first to n-th sound source data do not need to be acquired from the outside, the timing to start reproduction of the first to n-th sound data can be advanced.
[0156] One aspect of the sound mixing device can include a memory interface circuit that receives the first to n-th sound source data from an external memory that stores the first to n-th sound source data that are bases of the first to n-th sound data.
[0157] According to the sound mixing device, the first to n sound source data can be received from an external memory via the memory interface circuit, and thus a memory for storing the first to n sound source data does not need to be built in, and the circuit size can be reduced.
[0158] One embodiment of the sound mixing device can also include a communication interface circuit that receives first to n sound source data that is a basis for the first to n sound data from an external micro control unit.
[0159] According to the sound mixing device, the first to n sound source data can be received from an external micro control unit via the communication interface circuit, and thus a memory for storing the first to n sound source data does not need to be built in, and the circuit size can be reduced.
[0160] One embodiment of the sound mixing device can also include a sound amplifier that converts the mixed signal into a sound signal and outputs the sound signal to the first sound reproduction device.
[0161] According to the sound mixing device, the first sound reproduction device can reproduce the plurality of sound data without delay.
[0162] In one embodiment of the sound mixing device, the sound amplifier can determine whether the sound signal is normal or abnormal, and in a case where it is determined that the sound signal is abnormal, output an abnormality detection signal to the mixing circuit, and m can be an integer of 2 or more, and in a case where the abnormality detection signal is input, the mixing circuit can output the mixed signal to any one of the second to m sound reproduction devices.
[0163] According to the sound mixing device, even in a case where the first sound reproduction device or the sound amplifier is abnormal, any one of the second to m sound reproduction devices can reproduce the plurality of sound data without delay.
[0164] In one embodiment of the sound mixing device, m can be an integer of 3 or more, and in a case where the abnormality detection signal is input, the mixing circuit can select any one of the second to m sound reproduction devices in accordance with a priority selection table that specifies a priority order of selecting each of the second to m sound reproduction devices, and output the mixed signal to the selected any one of the second to m sound reproduction devices.
[0165] According to the sound mixing device, even in a case where the first sound reproduction device or the sound amplifier is abnormal, any one of the second to m sound reproduction devices having a high priority order can reproduce the plurality of sound data without delay.
[0166] One embodiment of an electronic device includes one embodiment of the sound mixing device.
Claims
1. A sound mixing device, comprising: A gain setting circuit, wherein n is an integer greater than or equal to 2, sets the first to the nth gain according to commands input from an external source; and The mixing circuit outputs a mixed signal obtained by mixing two or more product data obtained by multiplying each of the first to nth audio data with each of the first to nth gains. The first to the nth gains are different gains respectively. When the gain setting circuit is reproducing the j-th sound data among the first to n-th sound data by setting a first value for the j-th gain among the first to n-th gains, and is then given a command to start or stop the reproduction of the k-th sound data among the first to n-th sound data whose priority is higher than the j-th sound data, the gain setting circuit sets the j-th gain to a second value different from the first value. The sound mixing device includes a sound amplifier that converts the mixed signal into a sound signal and outputs it to a first sound reproduction device. The sound amplifier determines whether the sound signal is normal or abnormal. If the sound signal is determined to be abnormal, it outputs an abnormality detection signal to the mixing circuit. Let m be an integer greater than or equal to 2. When the abnormality detection signal is input, the mixing circuit outputs the mixed signal to any one of the second to m-th sound reproduction devices.
2. The sound mixing device according to claim 1, wherein, The hybrid circuit has first to nth input channels. Set the i-th gain among the first to n-th gain for the i-th input channel from the first to n-th input channels. The i-th audio data in the first to n-th audio data is input to the i-th input channel.
3. The sound mixing device according to claim 1 or 2, wherein, The sound mixing device includes a memory that stores the first to nth sound source data, which serves as the basis for the first to nth sound data.
4. The sound mixing device according to claim 1 or 2, wherein, The sound mixing device includes a memory interface circuit that receives the first to nth sound source data from an external memory that stores the first to nth sound source data as the basis for the first to nth sound data.
5. The sound mixing device according to claim 1 or 2, wherein, The sound mixing device has a communication interface circuit that receives first to nth sound source data, which serves as the basis for the first to nth sound data, from an external microcontroller unit.
6. The sound mixing apparatus according to claim 1, wherein, The integer m is an integer greater than or equal to 3. When the abnormality detection signal is input, the mixing circuit selects any one of the second to m sound reproduction devices according to a priority selection table that specifies the priority order for selecting each of the second to m sound reproduction devices, and outputs the mixed signal to any one of the selected second to m sound reproduction devices.
7. An electronic device comprising the sound mixing device according to any one of claims 1 to 6.
Citation Information
Patent Citations
Voice output control device
JP2014137790A
Audio-frequency processing circuit, audio-frequency processing device and method
CN101727907A
Audio processing device and audio output device
JP2016072890A