Sound volume control device
The volume control device achieves versatile gradual volume change controls by calculating a moving average of target volumes over a predetermined period, addressing storage limitations and simplifying the calculation structure, thus enhancing the management of volume changes and user comfort.
Patent Information
- Application Number
- PCT/JP2024/005366
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-20
- Filing Date
- 2024-02-15
- Publication Date
- 2024-09-26
AI Technical Summary
Existing volume control devices face challenges in handling various gradual volume change controls while maintaining a simple calculation structure and managing storage data limitations, especially when target volumes or gradual change times need to be adjusted.
A volume control device that uses a target volume storage unit to sequentially store and accumulate target volumes at a predetermined cycle, with a volume determining unit calculating a moving average of the target volume over a predetermined averaging period to generate various gradual change patterns using the same calculation structure.
This approach allows for various gradual volume change controls under the same calculation structure, reducing the need for complex arithmetic processing and minimizing stored data, while effectively managing volume changes to prevent sudden changes and discomfort.
Smart Images

Figure JP2024005366_26092024_PF_FP
Abstract
Description
Volume control device CROSS-REFERENCE TO RELATED APPLICATIONS
[0001] This application is based on Japanese Patent Application No. 2023-44240, filed on March 20, 2023, the contents of which are incorporated herein by reference.
[0002] The present disclosure relates to a volume control device that controls the volume of pronunciation data.
[0003] A conventionally known example of this type of control device is a vehicle approach warning device described in Patent Document 1. The vehicle approach warning device described in Patent Document 1 includes a data storage unit that stores sound source data that is PCM data, and generates a sound from a sound generator (e.g., a speaker) in accordance with the sound source data read from the data storage unit.
[0004] JP 2012-232699 A
[0005] When a volume control device is configured to gradually change the volume, it is possible to pre-store a time-volume table defining the relationship between volume setting values and time in the volume control device. In this case, the volume control device gradually changes the volume by sequentially multiplying the volume setting values obtained from the time-volume table by the sound source data and outputting the resulting data to the sound generator. Therefore, for example, to gradually change the volume based on the above-described time-volume table in the vehicle proximity warning device of Patent Document 1, the vehicle proximity warning device must pre-store the time-volume table. However, when gradually changing the volume using a time-volume table, if the target volume or gradual change time for the gradual volume change changes, multiple time-volume tables must be prepared and stored in the volume control device accordingly. On the other hand, there is a limit to the amount of data that a volume control device can store. Furthermore, in order to achieve various gradual volume change controls while minimizing the amount of stored data, it is undesirable to complicate the volume control device's calculation processing structure. The inventors' detailed investigation led to the above findings. Note that gradual volume change refers to smoothly changing the volume.
[0006] In view of the above, an object of the present disclosure is to provide a volume control device that can handle various types of gradual volume control while using the same calculation structure.
[0007] In order to achieve the above object, according to one aspect of the present disclosure, a volume control device is a volume control device that is included in a pronunciation system in which a pronunciation body produces pronunciation based on pronunciation data, and that controls the volume of the pronunciation data, and is equipped with a target volume memory unit that sequentially stores and accumulates target volumes that are repeatedly set at a predetermined period, and a volume determination unit that sequentially determines, as the volume of the pronunciation data, a moving average of the target volumes accumulated by the target volume memory unit over a predetermined averaging target period.
[0008] In this way, it is possible to generate various gradual volume change patterns by changing the way the target volume and the average target period are given under the same calculation structure. In other words, it is possible to support various gradual volume change controls while using the same calculation structure.
[0009] In addition, in each section of the application documents, each element may be assigned a reference number in parentheses. In this case, the reference number merely indicates an example of the correspondence between the element and the specific configuration described in the embodiment described below. Therefore, the present disclosure is not limited in any way by the description of the reference number.
[0010] 1 is a block diagram showing a schematic configuration of a sound production system in a first embodiment; FIG. 2 is a diagram showing a buffer in which a target volume is temporarily stored and accumulated in the first embodiment; FIG. 3 is a diagram showing an example of the target volume accumulated in the buffer for each calculation cycle in a chronological order in the first embodiment; FIG. 4 is a diagram showing a buffer rewritten by buffer clearing executed by a target volume storage unit, and FIG. 5 is a diagram showing a buffer in which the latest target volume is stored after buffer clearing; FIG. 6 is a diagram showing changes in the target volume and the current volume in a first example of gradual-change processing of the current volume; FIG. 7 is a diagram showing changes in the target volume and the current volume in a second example of gradual-change processing of the current volume; FIG. 8 is a diagram showing changes in the target volume and the current volume in a third example of gradual-change processing of the current volume; FIG. 9 is a diagram showing changes in the target volume and the current volume in a fourth example of gradual-change processing of the current volume; and FIG. 10 is a diagram showing changes in the target volume and the current volume in a fifth example of gradual-change processing of the current volume.
[0011] Hereinafter, embodiments will be described with reference to the drawings. In the following embodiments, including other embodiments described later, identical or equivalent parts are designated by the same reference numerals in the drawings.
[0012] 1 is an alarm device mounted on, for example, a hybrid vehicle, an electric vehicle, etc. For example, the sound system 8 is electrically connected to a sound source 80 such as a speaker or a buzzer, and outputs various alarm sounds and the like from the sound source 80.
[0013] The sound production system 8 includes a microcomputer 10, a digital-to-analog converter 12, and a power amplifier 14. In the description of this embodiment, the digital-to-analog converter 12 is also referred to as a DAC 12, and the power amplifier 14 is also referred to as an AMP 14.
[0014] In other words, the microcomputer 10 is an electronic control device, and is configured as an in-vehicle microcomputer equipped with a CPU, RAM, ROM, non-volatile rewritable memory, etc. (not shown). That is, the microcomputer 10 reads and executes a computer program stored in the ROM or non-volatile rewritable memory, which is a non-transitory physical recording medium. Execution of this computer program results in the execution of a method corresponding to the computer program.
[0015] 1, the microcomputer 10 functionally comprises a sound generation instruction unit 16, a volume control unit 18, a sound source data reading unit 20, and a sound generation data generation unit 22. The sound generation instruction unit 16 determines whether or not to generate an alarm sound based on, for example, a vehicle condition signal obtained from outside the microcomputer 10. For example, the vehicle condition signal may be obtained from a plurality of sensors mounted on the vehicle.
[0016] When the sound generation instruction unit 16 determines that an informative sound should be generated, it performs a state transition determination to transition the sound generation state or a sound generation request to request generation of a sound at the timing when the informative sound should be generated.
[0017] Specifically, in a state transition determination or sound generation request, the sound generation instruction unit 16 selects sound source data Dss corresponding to the alarm sound to be generated. For example, multiple different sound source data Dss are pre-stored in the memory of the microcomputer 10, and the sound generation instruction unit 16 selects specific sound source data Dss from the multiple sound source data Dss. The sound source data Dss is digital data. That is, the sound source data Dss is waveform data constituting a digital sound waveform, such as a PCM waveform, that indicates the relationship between elapsed time and level. The level of the digital sound waveform corresponds to the voltage in the sound waveform of the analog signal (i.e., the analog sound waveform), and the amplitude of the level corresponds to the voltage amplitude of the analog sound waveform.
[0018] In addition to selecting the above sound source data Dss, the sound production instruction unit 16 also determines the target volume d when producing the sound source data Dss and the gradual change time (in other words, the fade time) until the volume of the sound produced based on the sound source data Dss reaches the target volume d.
[0019] In other words, when the sound generation instruction unit 16 determines that an alarm sound should be generated, it selects the sound source data Dss and determines the target volume d and the gradual-change time, and then notifies the volume control unit 18 of the determined target volume d and gradual-change time.
[0020] The target volume d is a target value for the volume, and can be said to be, for example, the volume at which a desired sound source is reproduced. The target volume d is adjusted, for example, according to the operating state of each system of the vehicle equipped with the sound generation system 8 and the surrounding environment. The gradual change time is the time it takes for the volume to gradually change and reach the target volume d.
[0021] The sound source data reading unit 20 reads the sound source data Dss selected by the sound generation instruction unit 16 from the memory of the microcomputer 10 and passes the read sound source data Dss to the sound generation data generating unit 22 .
[0022] The volume control unit 18 functions as a volume control device that controls the volume of the sound generation data Dsd output from the microcomputer 10 to the DAC 12. The volume control unit 18 determines a volume Vp by which the sound source data Dss is multiplied, based on the target volume d and gradual change time instructed by the sound generation instruction unit 16. In the description of this embodiment, the volume Vp by which the sound source data Dss is multiplied is sometimes referred to as the current volume Vp. The volume control unit 18 repeatedly calculates and determines the current volume Vp at a predetermined calculation period T1. For example, the calculation period T1 of the current volume Vp is a constant value, such as 20 msec.
[0023] In this embodiment, the current volume Vp is determined by calculating a moving average of the target volume d, and the calculation of this moving average will be described in detail later.
[0024] To calculate the current volume Vp, the volume control unit 18 includes a target volume storage unit 181 , a number determination unit 182 , and a volume determination unit 183 .
[0025] The number-of-times determination unit 182 determines the average target period Tav (see FIG. 3) based on the gradually changing time instructed by the sound production instruction unit 16. This average target period Tav is the width of the period that is the target of the moving average calculation, and basically the gradually changing time becomes the average target period Tav.
[0026] The count determination unit 182 then converts the averaging period Tav into a moving average count Nav (see FIG. 3) and determines the moving average count Nav. The moving average count Nav is the number of times the target volume d within the averaging period Tav is repeatedly stored in a buffer 181a (see FIG. 2) described below for calculating the moving average. Therefore, the moving average count Nav is the number of data points for the target volume d that are the basis for calculating the moving average.
[0027] Specifically, the moving average count Nav is calculated from the formula "Nav = Tav / T1" based on the target averaging period Tav and the calculation cycle T1. As described above, the calculation cycle T1 is 20 msec, so if the target averaging period Tav is 1 sec, for example, the moving average count Nav will be 50, as "Nav = 1 / 0.02". In other words, the moving average count Nav has a one-to-one correspondence with the target averaging period Tav, and the moving average count Nav is determined once the target averaging period Tav is determined.
[0028] 2 and 3, the target volume storage unit 181 has a buffer 181a which is a temporary storage unit for temporarily storing the target volume d. The target volume storage unit 181 repeatedly sets the target volume d at a calculation period T1. In other words, repeatedly setting the target volume d means that the target volume d instructed by the sound production instruction unit 16 is set to an instantaneous value divided by the calculation period T1. Therefore, the target volume d instructed by the sound production instruction unit 16 and the target volume d set by the target volume storage unit 181 are the same value. Note that the calculation period T1 corresponds to the predetermined period of the present disclosure.
[0029] The target volume storage unit 181 sequentially stores and accumulates in a buffer 181 a the target volume d set by the target volume storage unit 181. In this embodiment, the setting cycle for setting and storing the target volume d is the same as the calculation cycle T1 for the current volume Vp, and the current volume Vp is calculated each time the target volume d is set and stored.
[0030] For example, since the moving average frequency Nav increases or decreases according to the gradual change time, the capacity N of the buffer 181a (in other words, the maximum number of buffers N) is set to a size that can store all of the target volume d for the maximum moving average frequency Nav. Then, in the buffer 181a, only the necessary amount of the maximum number of buffers N according to the moving average frequency Nav is used to store the target volume d. Figure 2 shows the buffer 181a, and Figure 3 shows the contents of the buffer 181a over time, in which the target volume d is sequentially stored.
[0031] 3 shows the contents stored in the buffer 181a for each calculation cycle T1, with the contents stored after the passage of time progressing downwards. For example, in FIG. 3, the moving average count Nav is set to n times from time t1 to time t3, and is increased from n times to m times at time t4, and is set to m times from time t4 to time t6.
[0032] 3, the portion of the buffer 181a that is outside the range of the moving average frequency Nav that is the object of the moving average calculation is omitted from the illustration. n+5 Each of the subscripted ds, such as d, ... n+4 is d n+5 2 to 4, n, m, and N are positive integers, and have the relationship "n<m<N." As shown in FIG. 3, the averaging target period Tav is a period going back from the point in time when the most recent of the repeatedly set target volume d was set.
[0033] 1 sequentially determines, as the current volume Vp, a moving average of the target volume d over the averaging period Tav among the target volume d stored in the buffer 181a by the target volume storage unit 181. In other words, the volume determination unit 183 calculates a moving average of the target volume d over the averaging period Tav and sequentially determines the calculated moving average value as the current volume Vp. The current volume Vp is repeatedly determined at the above-mentioned calculation period T1.
[0034] For example, at time t1 in FIG. 3, the volume determination unit 183 selects the volume values d1 to d2 stored in the buffer 181a. n The moving average of the target volume d over the average target period Tav is calculated by dividing the sum by the moving average frequency Nav, and the calculated value is set as the current volume Vp. In other words, at time t1 in FIG. 3, the moving average frequency Nav is n times, so the current volume Vp is calculated as follows: Vp = (d1 + d2 + ... + d n-1 +d n ) / n".
[0035] The pronunciation data generation unit 22 generates pronunciation data Dsd by multiplying the current volume Vp determined by the volume determination unit 183 by the sound source data Dss read by the sound source data reading unit 20. In the pronunciation data Dsd obtained by multiplying the sound source data Dss by the current volume Vp, the amplitude of the waveform level corresponds to the current volume Vp, so the pronunciation data Dsd reflects the current volume Vp. Therefore, the current volume Vp determined by the volume determination unit 183 can be said to be the volume of the pronunciation data Dsd. Note that the pronunciation data Dsd is waveform data in which the volume of the sound source data Dss has been adjusted, and therefore, like the sound source data Dss, it is waveform data that constitutes a digital sound waveform such as a PCM waveform.
[0036] Then, the sound generation data generating unit 22 sequentially outputs the generated sound generation data Dsd to the DAC 12 .
[0037] The DAC 12 converts the sound generation data Dsd, which is digital data generated by the sound generation data generating unit 22, into an analog signal and outputs the analog signal.
[0038] Based on the voltage applied from a constant voltage source (not shown), the AMP 14 passes a current corresponding to the analog signal output from the DAC 12 through the sound generating unit 80. The sound generating unit 80 generates sound in accordance with the current supplied from the AMP 14. In this way, the sound generating unit 80 generates sound in accordance with the sound generating data Dsd that reflects the current volume Vp. The volume of the sound generating unit 80 then becomes a level that corresponds to the current volume Vp determined by the volume determination unit 183.
[0039] Here, FIG. 3 will be described. At time t1 in FIG. 3, the target volume storage unit 181 stores the latest target volume d, d n in the buffer 181a. At the same time, the target volume storage unit 181 deletes d0, which was stored in the storage location 181b of the buffer 181a for the oldest target volume d, from the range of the moving average number Nav in the buffer 181a. The target volume storage unit 181 also performs a similar swapping of the target volume d from time t2 to time t6.
[0040] Also, at time t4, the moving average count Nav has been changed from n to m. When the moving average count Nav is changed in this way, the target volume storage unit 181 executes buffer clearing, which will be described later, before storing the new target volume d in the buffer 181a. Since the moving average count Nav and the target averaging period Tav have a one-to-one correspondence, a change in the moving average count Nav also means a change in the target averaging period Tav. For example, this buffer clearing may be instructed by the sound generation instruction unit 16, or may be executed without any instruction from the sound generation instruction unit 16.
[0041] In addition, when the moving average frequency Nav is changed, this means that the moving average frequency Nav used to calculate the current volume Vp in the previous control cycle is different from the moving average frequency Nav used to calculate the current volume Vp in the current control cycle.
[0042] Specifically, buffer clearing performed by the target volume storage unit 181 means storing the latest current volume Vp in all storage locations 181b of the target volume d within the range of the moving average frequency Nav in the buffer 181a, as shown in Fig. 4A. In other words, buffer clearing means setting all target volumes d within the changed average target period Tav in the buffer 181a to the latest current volume Vp. In the example of Fig. 3, the latest current volume Vp is the target volume d (specifically, d3, d4, ..., d) at time t3, which is one calculation cycle T1 before time t4. n+1 , d n+2 ) is the current volume Vp calculated as a moving average of
[0043] Then, at time t4, the target volume storage unit 181 executes buffer clearing as shown in (a) of Fig. 4, and then stores in the buffer 181a the target volume d at the time of period change d1a, which is the target volume d when the moving average number Nav is changed, as shown in (b) of Fig. 4. At time t4, the target volume d1a at the time of period change is d n+3 is.
[0044] To summarize what happens at time t4, the target volume storage unit 181 stores the period-change target volume d1a as shown in Fig. 4B. At the same time, the target volume storage unit 181 sets all target volumes d that precede the period-change target volume d1a within the changed average target period Tav to the latest current volume Vp determined by the volume determination unit 183 before the period-change target volume d1a was stored in the target volume storage unit 181.
[0045] In this case, the above-mentioned changed average target period Tav is the average target period Tav corresponding to m times, which is the changed moving average frequency Nav, and is the average target period Tav into which the target volume d1a at the time of period change falls. Also, the target volume d before the target volume d1a at the time of period change is the target volume d stored in the memory location 181b for the target volume d from 2 to m.
[0046] The target volume storage unit 181 executes buffer clearing when the moving average count Nav is changed as described above, but may also execute buffer clearing in other cases. Specifically, the target volume storage unit 181 also executes buffer clearing when the target volume d is changed relative to the previous value of the target volume d. The previous value of the target volume d is the target volume d set in the previous control cycle. The target volume d set in the current control cycle is called the current value of the target volume d.
[0047] However, there is an exception to this case: if the target volume d is changing continuously, buffer clearing is not performed due to a change in the target volume d. For example, whether the target volume d is changing continuously is determined based on the volume difference Dv between the current value of the target volume d and the previous value of the target volume d. That is, if the volume difference Dv between the current value of the target volume d and the previous value of the target volume d is less than a predetermined volume difference threshold, it is determined that the target volume d is changing continuously. On the other hand, if the volume difference Dv of the target volume d is equal to or greater than the volume difference threshold, it is determined that the change in the target volume d is not continuous, and buffer clearing is performed. In other words, if the target volume d is changed by a volume difference Dv equal to or greater than the volume difference threshold from the previous value of the target volume d, buffer clearing is performed.
[0048] The volume difference threshold is a positive value that has been experimentally set in advance so that it can be determined whether the change in the target volume d is continuous or not, and the volume difference Dv between the current value of the target volume d and the previous value of the target volume d is a value expressed as an absolute value.
[0049] The buffer clearing that is executed when the target volume d is changed is similar to the buffer clearing that is executed when the moving average count Nav is changed. However, in the description of this embodiment, when the target volume d is changed, the changed target volume d will be referred to as the changed target volume d2a.
[0050] Therefore, when the target volume d is changed rather than changed continuously, the target volume storage unit 181 executes a buffer clear to store the latest current volume Vp in all storage locations 181b of the buffer 181a for the target volume d within the range of the moving average number Nav, as shown in Fig. 4A. Then, the target volume storage unit 181 stores the changed target volume d2a in the buffer 181a, as shown in Fig. 4B.
[0051] To summarize, when the target volume d is changed rather than changing continuously, the target volume storage unit 181 stores the changed target volume d2a, as shown in Fig. 4(b). At the same time, the target volume storage unit 181 sets all target volumes d that precede the changed target volume d2a within the averaging target period Tav to the latest current volume Vp determined by the volume determination unit 183 before the target volume storage unit 181 stored the changed target volume d2a.
[0052] Just to be clear, if the target volume d is changed rather than changed continuously and the moving average number Nav is changed at the same time, the changed target volume d2a and the target volume d1a at the time of period change will mean the same target volume d.
[0053] Next, the gradual change process for gradually changing the current volume Vp will be described using the examples of Figures 5 to 9. In Figures 5 to 9, the horizontal axis shows the number of calculations Nc at which the volume determination unit 183 calculates the moving average of the target volume d and determines the current volume Vp, but since the elapsed time is determined by multiplying the number of calculations Nc by the calculation period T1, the horizontal axis can also be said to show the elapsed time.
[0054] The first example shown in Figure 5 illustrates a fade-in that linearly changes the current volume Vp. In this first example, the target volume d instructed by the sound production instruction unit 16 to the volume control unit 18 is a constant value of 100%, and the gradual change time is 1 second. Therefore, the average target period Tav is set to the same gradual change time, 1 second. In this embodiment, the calculation cycle T1 is 20 msec, so the moving average number of times Nav is 50, as calculated by "Nav = 1 / 0.02".
[0055] In the first example, the target volume d is changed from the previous value of the target volume d at the first calculation Nc, which corresponds to the start of the gradual change process, and the volume difference Dv after the change is 100%, which is greater than or equal to the volume difference threshold. In other words, the target volume d is changed without a continuous change. Note that in the first example, the target volume d and the current volume Vp before the start of the gradual change process are 0%.
[0056] Therefore, the first time the calculation count Nc is performed, buffer clearing is performed. At this time, the latest current volume Vp is 0% (i.e., silent), so for example, 0% is stored in all storage locations 181b of the target volume d in the buffer 181a. Then, after the buffer clearing, the latest target volume d (specifically, 100%), which is the changed target volume d, is stored in the buffer 181a. Using the buffer 181a thus stored, the volume determination unit 183 determines the moving average of the target volume d over the averaging target period Tav as the first current volume Vp.
[0057] From the second calculation Nc onwards, the buffer is not cleared, and the current volume Vp is determined sequentially by calculating a moving average of the target volume d. The current volume Vp gradually increases over the calculation interval Ra, which corresponds to the first to fiftieth calculation Nc, until it reaches the target volume d at the fiftieth calculation Nc. After that, the current volume Vp remains at 100% of the target volume d.
[0058] Next, a second example shown in FIG. 6 will be described. This second example shows a fade-out in which the current volume Vp changes linearly. In this second example, the target volume d instructed by the sound production instruction unit 16 to the volume control unit 18 is a constant value of 0%, and the gradual change time is 1 second. Therefore, as in the first example described above, the average target period Tav is set to the same gradual change time, 1 second, and the moving average number of times Nav is 50.
[0059] In this second example, as in the first example, the target volume d is changed from the previous value of the target volume d in the first calculation of the number of calculations Nc, and the volume difference Dv after the change is 100%, which is equal to or greater than the volume difference threshold. Note that in the second example, the target volume d and the current volume Vp before the start of the gradual change process are both 100%.
[0060] Therefore, the first time the calculation count Nc is performed, the buffer is cleared. At this time, the latest current volume Vp is 100%, as shown in FIG. 6, so for example, 100% is stored in all storage locations 181b of the target volume d in the buffer 181a. After the buffer is cleared, the latest target volume d (specifically, 0%), which is the changed target volume d, is stored in the buffer 181a. Using the buffer 181a thus stored, the volume determination unit 183 determines the moving average of the target volume d over the averaging target period Tav as the first current volume Vp.
[0061] From the second calculation Nc onwards, the buffer is not cleared, and the current volume Vp is determined sequentially by calculating a moving average of the target volume d. The current volume Vp gradually decreases over the calculation interval Rb, which corresponds to the first to fiftieth calculation Nc, until it reaches the target volume d at the fiftieth calculation Nc. After that, the current volume Vp remains at 0% and matches the target volume d.
[0062] Next, a third example shown in FIG. 7 will be described. This third example illustrates a fade-in, but in this third example, the target volume d is changed during the gradual change of the current volume Vp. In this third example, the target volume d instructed by the sound production instruction unit 16 to the volume control unit 18 is initially a fixed value of 30%, and the gradual change time is 1 second. Therefore, as in the first example described above, the average target period Tav is set to the same gradual change time, 1 second, and the moving average count Nav is set to 50 times, and the gradual change process of the current volume Vp is started.
[0063] In this third example, as in the first example, the target volume d is changed from the previous value of the target volume d in the first calculation of the number of calculations Nc, and the volume difference Dv after the change is 30%, which is greater than or equal to the volume difference threshold. Note that in the third example, as in the first example, the target volume d and the current volume Vp before the start of the gradual change process are 0%.
[0064] Therefore, in the first calculation of the number of calculations Nc, the buffer is cleared, and then the latest target volume d (specifically, 30%), which is the changed target volume d, is stored in the buffer 181a. Then, as in the first example, the volume determination unit 183 determines the moving average of the target volume d over the averaging target period Tav as the first current volume Vp.
[0065] From the second to the 25th calculation count Nc, the buffer is not cleared, and the current volume Vp is determined sequentially by calculating the moving average of the target volume d, and the current volume Vp gradually increases. In this third example, between the 25th and 26th calculation count Nc, the target volume d is changed from the initial 30% to a fixed value of 100% in response to an instruction from the sound generation instruction unit 16, and the gradual change time is set to 1 second from the time the target volume d is changed. In other words, the moving average count Nav remains at 50.
[0066] By raising the target volume d from 30% to 100%, the target volume d is changed from the previous value of the target volume d at the 26th calculation Nc, and the volume difference Dv after this change is equal to or greater than the volume difference threshold. In other words, the volume difference Dv between the target volume d at the 25th calculation Nc and the target volume d at the 26th calculation Nc is 70%, which is equal to or greater than the volume difference threshold.
[0067] Therefore, at the 26th calculation count Nc, buffer clearing is performed. At this time, the latest current volume Vp is the current volume Vp at the 25th calculation count Nc, so the 25th current volume Vp is stored in, for example, all storage locations 181b for target volume d in the buffer 181a. After the buffer clearing, the latest target volume d, which is the changed target volume d, is stored in the buffer 181a. At the 26th calculation count Nc, the volume determination unit 183 uses the buffer 181a thus stored to determine the moving average of the target volume d over the averaging target period Tav as the current volume Vp.
[0068] From the 27th calculation Nc onwards, the buffer is not cleared, and the current volume Vp is determined sequentially by calculating a moving average of the target volume d. The current volume Vp gradually increases over the interval from the 26th to the 75th calculation Nc, reaching the target volume d at the 75th calculation Nc, after which the current volume Vp remains at 100% of the target volume d.
[0069] Next, a fourth example will be described, as shown in Figure 8. This fourth example, like the third example, shows a fade-in, but in this fourth example, the target volume d is changed during the gradual change of the current volume Vp. However, in this fourth example, the end point of the fade-in remains the same as the original point.
[0070] In this fourth example, the target volume d instructed by the sound production instruction unit 16 to the volume control unit 18 is initially a fixed value of 30%, and the gradual change time is 1 second. Therefore, as in the third example described above, the average target period Tav is set to the same gradual change time of 1 second, the moving average number of times Nav is set to 50, and the gradual change process of the current volume Vp is started.
[0071] Therefore, as in the third example, buffer clearing is performed the first time the calculation count Nc is reached, and the current volume Vp changes from the first calculation count Nc to the 25th calculation count Nc in the same manner as in the third example. Note that in the fourth example, as in the third example, the target volume d and the current volume Vp are 0% before the gradual change process starts.
[0072] In this fourth example, the target volume d is changed from the initial 30% to a fixed value of 100% in response to an instruction from the sound generation instruction unit 16 between the 25th and 26th calculations Nc, as in the third example. However, unlike the third example, in the fourth example, the gradual change time remains 1 second from the start of the gradual change (more specifically, fade-in) of the current volume Vp. Therefore, from the 26th calculation Nc, the moving average number Nav is set to 25, which corresponds to the remaining time of the gradual change. In this case, the average target period Tav corresponding to the moving average number Nav from the 26th calculation will differ depending on the gradual change time.
[0073] In the fourth example, as in the third example, the target volume d is increased from 30% to 100%, so that at the 26th calculation Nc, the target volume d is changed from the previous value of the target volume d, and the volume difference Dv after this change is equal to or greater than the volume difference threshold. Therefore, as in the third example, the buffer is cleared.
[0074] After the buffer is cleared, starting from the 26th calculation count Nc, the current volume Vp is sequentially determined by calculating the moving average of the target volume d. However, in this case, unlike the third example, the fourth example uses 25 moving average counts Nav when calculating the moving average. Therefore, in the fourth example, the current volume Vp gradually increases over the interval from the 26th to the 50th calculation count Nc, reaching the target volume d at the 50th calculation count Nc, and thereafter the current volume Vp remains consistent with the target volume d at 100%.
[0075] In the fourth example, unlike the third example, the end point of the gradual change process of the current volume Vp is not delayed from the point at which the gradual change process was originally scheduled to start, and the gradual change process is completed.
[0076] Next, a fifth example shown in Fig. 9 will be described. In this fifth example, the sound production instruction unit 16 instructs the volume control unit 18 to increase the target volume d from 0% to 100% linearly (in other words, linearly) up to the 20th calculation Nc, and then maintains it at 100% after the 20th calculation. The moving average number Nav is set to 30. In other words, in this embodiment, the calculation cycle T1 is 20 msec as described above, so the average target period Tav is 0.6 sec, as calculated by "Tav = 30 x 0.02".
[0077] In the fifth example, the target volume d is 0% before the gradual change process of the current volume Vp starts, and the target volume d is linearly increased from 0% to 100%, so the volume difference Dv between the current value of the target volume d and the previous value of the target volume d remains less than the volume difference threshold throughout. Therefore, in the fifth example, the buffer is not cleared. Note that in the fifth example, the current volume Vp is 0% before the gradual change process starts.
[0078] The current volume Vp, which is determined sequentially from the first calculation Nc, increases smoothly, reaching the target volume d at the 50th calculation Nc, after which the current volume Vp remains at 100% of the target volume d. In this fifth example, the current volume Vp increases not linearly but in an S-curve, so the change in the current volume Vp is more natural to the ear.
[0079] As described above, in this embodiment, the target volume storage unit 181 sequentially stores and accumulates the target volume d, which is repeatedly set at a predetermined calculation period T1, in the buffer 181a. The volume determination unit 183 then sequentially determines, as the current volume Vp, the moving average of the target volume d over the averaging target period Tav, among the target volumes d accumulated in the buffer 181a by the target volume storage unit 181. The current volume Vp is the volume of the sound generation data Dsd.
[0080] Therefore, under the same calculation structure for calculating a moving average of the target volume d, various gradual change patterns of the current volume Vp can be generated by changing the way the target volume d and the average target period Tav are given. In other words, the pronunciation system 8 of this embodiment can handle various gradual volume control operations while using the same calculation structure. This in turn simplifies the processing structure of the entire pronunciation system 8, which also leads to a reduction in the amount of data that needs to be stored in advance in the pronunciation system 8.
[0081] For example, by appropriately adjusting the averaging target period Tav, it is possible to accommodate volume gradual change control with a typical fade-in / fade-out time (e.g., about 100 msec to a few seconds). Furthermore, by setting a short averaging target period Tav (e.g., about 100 msec), it is possible to reduce the discomfort and abnormal noise that occurs when the sound source data Dss is quickly switched or the current volume Vp is quickly made to reach the target volume d. It is also possible to prevent the discomfort that occurs when the target volume d suddenly changes due to changes in the vehicle state, etc.
[0082] Furthermore, according to this embodiment, when the target volume d is not a continuous change but is changed relative to the previous value of the target volume d, the target volume storage unit 181 stores a changed target volume d2a, as shown in Fig. 4B. At the same time, the target volume storage unit 181 sets all target volumes d that precede the changed target volume d2a within the averaging target period Tav to the latest current volume Vp determined by the volume determination unit 183 before the target volume storage unit 181 stored the changed target volume d2a.
[0083] Therefore, when the target volume d is changed in stages, a sudden change in the current volume Vp is prevented, and the current volume Vp can be changed continuously relative to the value before the change in the target volume d. For example, as shown in Figure 7, even if the target volume d is changed during the gradual change process of the current volume Vp, the current volume Vp can be changed continuously.
[0084] Furthermore, if the target volume d is continuously changing, the process of setting all target volumes d prior to the above-mentioned changed target volume d2a to the latest current volume Vp is not executed due to a change in the target volume d, so that continuous changes in the target volume d can be appropriately dealt with.
[0085] Furthermore, according to this embodiment, when the average target period Tav is changed, the target volume storage unit 181 stores a period-change target volume d1a, as shown in Fig. 4B. At the same time, the target volume storage unit 181 sets all target volumes d that precede the period-change target volume d1a within the changed average target period Tav to the latest current volume Vp determined by the volume determination unit 183 before the period-change target volume d1a was stored in the target volume storage unit 181.
[0086] Therefore, when the average target period Tav is changed, a sudden change in the current volume Vp is prevented, and the current volume Vp can be changed so as to be continuous with the volume before the average target period Tav was changed.
[0087] (Other Embodiments) (1) In the above-described embodiment, buffer clearing is performed when the target volume d is changed relative to the previous value of the target volume d. However, as an exception, if the target volume d is continuously changing, specifically if the volume difference Dv between the current value of the target volume d and the previous value of the target volume d is less than a predetermined volume difference threshold, buffer clearing due to the change in the target volume d is not performed. However, this is just one example, and it is assumed that there is no such exception.
[0088] (2) In the above embodiment, the processes executed by the microcomputer 10 are implemented by computer programs, but they may also be implemented by hardware.
[0089] (3) In the above-described embodiment, the pronunciation system 8 is, for example, an alarm device mounted on an automobile, but this is merely an example. The pronunciation system 8 does not have to be an alarm device, and various uses of the pronunciation system 8 are envisioned. Furthermore, the pronunciation system 8 does not have to be mounted on an automobile.
[0090] (4) Note that the present disclosure is not limited to the above-described embodiment and can be implemented in various modifications. Furthermore, it goes without saying that the elements constituting the above-described embodiment are not necessarily essential unless they are specifically stated as essential or are considered to be clearly essential in principle.
[0091] Furthermore, in the above embodiments, when numerical values such as the number, values, amounts, and ranges of components of the embodiments are mentioned, they are not limited to the specific numbers, except when it is particularly clearly stated that they are essential or when they are clearly limited to a specific number in principle, etc. Furthermore, in the above embodiments, when the materials, shapes, positional relationships, etc. of components are mentioned, they are not limited to the materials, shapes, positional relationships, etc., except when it is particularly clearly stated or when they are clearly limited to a specific material, shape, positional relationship, etc. in principle, etc.
Claims
1. A volume control device included in a pronunciation system (8) in which a sound producing body (80) produces sound based on pronunciation data (Dsd), and controls the volume (Vp) of the pronunciation data, the volume control device comprising: a target volume memory unit (181) which sequentially stores and accumulates a target volume (d) which is repeatedly set at a predetermined period (T1); and a volume determination unit (183) which sequentially determines a moving average of the target volume accumulated by the target volume memory unit over a predetermined average target period (Tav) as the volume of the pronunciation data.
2. The volume control device of claim 1, wherein when the target volume is changed from the previous value of the target volume, the target volume memory unit stores a changed target volume (d2a) which is the target volume after the change, and sets all of the target volume values prior to the changed target volume within the averaging target period which includes the changed target volume to the volume of the latest pronunciation data determined by the volume determination unit before the changed target volume was stored by the target volume memory unit.
3. The volume control device of claim 1, wherein when the target volume is changed with a volume difference (Dv) of a predetermined threshold value or more from the previous value of the target volume, the target volume memory unit stores a changed target volume (d2a) which is the target volume after the change, and sets all of the target volume values prior to the changed target volume within the averaging target period which includes the changed target volume to the volume of the latest pronunciation data determined by the volume determination unit before the changed target volume was stored by the target volume memory unit.
4. A volume control device as described in any one of claims 1 to 3, wherein the target volume memory unit, when storing the target volume when the average target period is changed, stores a period-change target volume (d1a) which is the target volume when the average target period is changed, and sets all of the target volume levels prior to the period-change target volume within the changed average target period which includes the period-change target volume to the volume of the latest pronunciation data determined by the volume determination unit before the period-change target volume is stored by the target volume memory unit.
Citation Information
Patent Citations
Vehicle approach warning device
JP2012232699A
Vehicle approach notification device
JP2014104953A
Game machine
JP2020127595A
