Electronic device for adjusting volume of speaker, and non-transitory computer readable storage medium

The electronic device addresses inconsistent speaker volumes by using a processor to identify and adjust volume differences, enhancing spatial audio precision through calibration, thereby ensuring consistent sound output across multiple speakers and frequency bands.

WO2026121471A1PCT designated stage Publication Date: 2026-06-11SAMSUNG ELECTRONICS CO LTD

Patent Information

Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
SAMSUNG ELECTRONICS CO LTD
Filing Date
2025-08-22
Publication Date
2026-06-11

Smart Images

  • Figure KR2025012856_11062026_PF_FP_ABST
    Figure KR2025012856_11062026_PF_FP_ABST
Patent Text Reader

Abstract

In an electronic device, the electronic device may be caused to: output audio data from a processor to each of a first speaker and a second speaker; identify whether an output difference between a volume output from the first speaker and a volume output from the second speaker exceeds a reference value in a first frequency band and a second frequency band of the audio data; obtain a calibration value on the basis of identifying the output difference exceeding the reference value; and on the basis of obtaining the calibration value, adjust the volume of the first speaker or the volume of the second speaker by the calibration value.
Need to check novelty before this filing date? Find Prior Art

Description

Electronic device for performing volume adjustment for a speaker and non-transient computer-readable storage medium

[0001] The following descriptions relate to an electronic device for volume control for a speaker and a non-transient computer-readable storage medium.

[0002] An electronic device can provide spatial audio regarding the location and direction of sound by using speakers that output sound in different directions within the same frequency band. The electronic device can provide spatial audio regarding the depth and clarity of sound by using speakers that provide sound in different frequency bands.

[0003] The information described above may be provided as related art for the purpose of aiding understanding of the present disclosure. No claim or determination is made as to whether any of the foregoing may be applied as prior art related to the present disclosure.

[0004] An electronic device is provided. The electronic device may include at least one processor comprising a first speaker, a second speaker, and a processing circuit, and a memory comprising one or more storage media for storing instructions. The instructions may cause the electronic device to output audio data from the at least one processor to the first speaker and the second speaker, respectively, when executed individually or collectively by the at least one processor. The instructions may cause the electronic device to identify whether the output difference between the volume output from the first speaker and the volume output from the second speaker in the first frequency band and the second frequency band of the audio data exceeds a reference value when executed individually or collectively by the at least one processor. The instructions may cause the electronic device to obtain a calibration value based on the output difference exceeding the reference value when executed individually or collectively by the at least one processor. The above instructions, when executed individually or collectively by the at least one processor, may cause the electronic device to adjust the volume of the first speaker or the volume of the second speaker by the correction value.

[0005] A non-transient computer-readable storage medium is provided. The non-transient computer-readable storage medium may store one or more programs. The one or more programs may include instructions that cause the electronic device to output audio data to the first speaker and the second speaker, respectively, when executed by the electronic device having a first speaker and a second speaker. The one or more programs may include instructions that cause the electronic device to identify whether the output difference between the volume output from the first speaker and the volume output from the second speaker in the first frequency band and the second frequency band of the audio data exceeds a reference value when executed by the electronic device. The one or more programs may include instructions that cause the electronic device to obtain a calibration value based on the output difference exceeding the reference value when executed by the electronic device. The above one or more programs may include instructions that cause the electronic device to adjust the volume of the first speaker or the volume of the second speaker by the correction value when executed by the electronic device.

[0006] An electronic device is provided. The electronic device may include at least one processor comprising a first speaker, a second speaker, and a processing circuit, and a memory comprising one or more storage media for storing instructions. The at least one processor may include a digital signal processor comprising a processing circuit for processing audio data. The instructions may cause the electronic device to identify a stream type of the audio data to be output from the at least one processor to the first speaker and the second speaker, respectively, when executed individually or collectively by the at least one processor. The instructions may cause the electronic device to perform volume adjustment between the first speaker and the second speaker through the digital signal processor based on the fact that the stream type of the audio data is identified as a defined stream type when executed individually or collectively by the at least one processor. When the above instructions are executed individually or collectively by the at least one processor, the electronic device may be caused to refrain from volume adjustment based on the fact that the stream type of the audio data is not identified as the defined stream type.

[0007] A non-transient computer-readable storage medium is provided. The non-transient computer-readable storage medium may store one or more programs. The one or more programs may include instructions that cause the electronic device to identify a stream type of the audio data to be output to each of the first speaker and the second speaker when executed by the electronic device having a digital signal processor including a first speaker, a second speaker, and a processing circuit for processing audio data. The one or more programs may include instructions that cause the electronic device to perform volume adjustment between the first speaker and the second speaker through the digital signal processor based on the fact that the stream type of the audio data is identified as a defined stream type when executed by the electronic device. The one or more programs may include instructions that cause the electronic device to refrain from volume adjustment based on the fact that the stream type of the audio data is not identified as the defined stream type when executed by the electronic device.

[0008] Figure 1 is a schematic view of an exemplary electronic device.

[0009] Figure 2 illustrates an example of a calibration environment for adjusting the volume of a speaker of an electronic device.

[0010] Figure 3 is a flowchart illustrating a method for adjusting the volume of a speaker of an electronic device.

[0011] Figure 4 illustrates another example of a calibration environment for adjusting the volume of a speaker of an electronic device.

[0012] Figure 5 is a flowchart illustrating a method for setting the volume of each speaker of an electronic device using a correction value.

[0013] Figure 6 illustrates another example of a calibration environment for adjusting the volume of a speaker of an electronic device.

[0014] Figure 7 is a flowchart illustrating a method for performing volume adjustment between speakers according to the stream type of audio data.

[0015] FIG. 8 is a block diagram of an electronic device in a network environment according to various embodiments.

[0016] Figure 1 is a schematic view of an exemplary electronic device.

[0017] Referring to FIG. 1, the electronic device (101) may include at least one processor (110), memory (120), a first speaker (131), a second speaker (132), a third speaker (133), a fourth speaker (134), and a microphone (140). The electronic device (101) may include at least a part of the electronic device (801) of FIG. 8 or correspond to at least a part of the electronic device (801) of FIG. 8.

[0018] At least one processor (110) may include a processing circuit. At least one processor (110) may include a single processor or multiple processors. At least one processor (110) may control the memory (120) and / or one or more components (e.g., a first speaker (131), a second speaker (132), a third speaker (133), a fourth speaker (134), and a microphone (140)) of the electronic device (101). For example, at least one processor (110) may identify audio data to be output to each of the first speaker (131), the second speaker (132), the third speaker (133), and the fourth speaker (134). For example, the audio data may be described as data regarding audio (e.g., music, voice, and media sound) to be played on the electronic device (101). For example, at least one processor (110) may receive a signal regarding sound detected (or identified) by the microphone (140) from the microphone (140). For example, at least one processor (110) may include at least a part of the processor (820) of FIG. 8 or correspond to at least a part of the processor (820) of FIG. 8.

[0019] Memory (120) may store one or more programs configured to be executed individually and / or collectively by at least one processor (110). The one or more programs may include instructions. The instructions may cause an electronic device (101) to perform operations described with reference to FIGS. 2 through 7. Memory (120) may include one or more storage media. At least some of the one or more programs may be available to manage, control, and / or execute a program for a speaker amplifier driver described below. For example, memory (120) may include at least some of the memory (830) of FIG. 8 or correspond to at least some of the memory (830) of FIG. 8.

[0020] The first speaker (131), the second speaker (132), the third speaker (133), and the fourth speaker (134) can output the audio data identified by at least one processor (110) to the outside of the electronic device (101). For example, the first speaker (131), the second speaker (132), the third speaker (133), and the fourth speaker (134) may include at least a part of the acoustic output module (855) of FIG. 8 or correspond to at least a part of the acoustic output module (855) of FIG. 8. As an example without limitation, the first speaker (131), the second speaker (132), the third speaker (133), and the fourth speaker (134) may be composed of external speakers located outside the electronic device (101). As a non-limiting example, the first speaker (131) and the second speaker (132) may be described as woofers that output sound regarding audio data in the low-frequency band. As a non-limiting example, the third speaker (133) and the fourth speaker (134) may be described as tweeters that output sound regarding audio data in the high-frequency band. For example, the woofer and the tweeter may provide spatial audio regarding the depth and clarity of the sound by outputting sound in different frequency bands.

[0021] For example, the first speaker (131) and the second speaker (132) can output audio data in a frequency band (e.g., a low frequency band) to the outside of the electronic device (101). For example, the first speaker (131) and the second speaker (132) can output sound regarding the audio data in the frequency band (e.g., a low frequency band) provided by at least one processor (110) in different directions. For example, the first speaker (131) may be placed on one side (e.g., the left side) of the electronic device (101). For example, the second speaker (132) may be placed on the other side (e.g., the right side) opposite to one side of the electronic device (101). For example, the first speaker (131) and the second speaker (132) can provide spatial audio regarding the location and direction of the sound by outputting sound in different directions in the same frequency band.

[0022] For example, the third speaker (133) and the fourth speaker (134) can output audio data in a frequency band (e.g., high frequency band) to the outside of the electronic device (101). For example, the third speaker (133) and the fourth speaker (134) can output sound regarding the audio data in the frequency band (e.g., high frequency band) provided by at least one processor (110) in different directions. For example, the third speaker (133) may be placed on one side (e.g., left) of the electronic device (101). For example, the fourth speaker (134) may be placed on the other side (e.g., right) opposite to one side of the electronic device (101). For example, the third speaker (133) and the fourth speaker (134) can provide spatial audio regarding the location and direction of the sound by outputting sound in different directions in the same frequency band.

[0023] The microphone (140) can detect (or identify) sounds in the surrounding environment of the electronic device (101). For example, the microphone (140) can detect (or identify) sounds output from each of the first speaker (131), the second speaker (132), the third speaker (133), and the fourth speaker (134). The microphone (140) can convert the detected sounds into signals and transmit the converted signals to at least one processor (110). For example, the microphone (140) may include at least a part of the input module (850) of FIG. 8 or correspond to at least a part of the input module (850) of FIG. 8.

[0024] Figure 2 illustrates an example of a calibration environment for adjusting the volume of a speaker of an electronic device.

[0025] Referring to FIG. 2, a calibration environment (200) for an electronic device (101) is illustrated.

[0026] The electronic device (101) may include at least one processor (110), memory (120), a first speaker (131), a second speaker (132), a third speaker (133), and a fourth speaker (134). The electronic device (101) may further include a microphone (140) and a speaker amplifier driver (150).

[0027] For example, the electronic device (101) can increase the precision of spatial audio output from the speakers by performing volume adjustment between the first speaker (131) and the second speaker (132), and volume adjustment between the third speaker (133) and the fourth speaker (134). However, the present description is not limited thereto. For example, the electronic device (101) may perform only volume adjustment between the first speaker (131) and the second speaker (132), or only volume adjustment between the third speaker (133) and the fourth speaker (134). As another example, the electronic device (101) may perform volume adjustment between three or more speakers.

[0028] At least one processor (110) may include an application processor (AP) (111) and a digital signal processor (DSP) (112). For example, the application processor (111) and the digital signal processor (112) may be integrated into a single component (e.g., a single chip) or implemented as multiple separate components (e.g., multiple chips).

[0029] The application processor (111) can identify audio data to be provided to each of the first speaker (131), the second speaker (132), the third speaker (133), and the fourth speaker (134). For example, the audio data may be described as data regarding audio (e.g., music, voice, and media sound) to be played on the electronic device (101). For example, the application processor (111) may adjust the magnitude (e.g., gain) of the signal regarding the audio data, filter the frequency of the signal, and / or determine the bit depth of the audio data. For example, the application processor (111) may identify audio data components by analyzing (or identifying) the audio data by frequency band. For example, the application processor (111) can identify from the audio data a first audio data component on a first frequency band, a second audio data component on a second frequency band higher than the first frequency band, a third audio data component on a third frequency band higher than the second frequency band, and a fourth audio data component on a fourth frequency band higher than the third frequency band. For example, the first audio data component, the second audio data component, the third audio data component, and the fourth audio data component may be included in the audio data. By example, without limitation, the first frequency band and the second frequency band may be described as low frequency bands. By example, without limitation, the third frequency band and the fourth frequency band may be described as high frequency bands.

[0030] For example, the software layer of the application processor (111) may be described as including an application layer and a framework layer. For example, the application processor (111) can identify audio data to be played on the electronic device (101) through the application layer. For example, the application processor (111) can set a playback environment (e.g., stereo or mono) regarding the audio data to be played on the electronic device (101) and / or set a playback priority of the audio data to be played on the electronic device (101) through the framework layer.

[0031] For example, the application processor (111) can calculate (or identify) calibration values ​​for volume adjustment between the first speaker (131) and the second speaker (132), and volume adjustment between the third speaker (133) and the fourth speaker (134), through the application layer. For example, the application processor (111) can store the calculated (or identified) calibration values ​​in memory (120) through the framework layer. For example, the calibration values ​​may include a first calibration value for volume adjustment between the first speaker (131) and the second speaker (132) and a second calibration value for volume adjustment between the third speaker (133) and the fourth speaker (134). For example, when the electronic device (101) is booted, the application processor (111) can read the first calibration value and the second calibration value stored in memory (120) through the framework layer. The application processor (111) can store the read first correction value and the read second correction value in the registers of the speaker amplifier driver (150) through the framework layer.

[0032] A digital signal processor (112) may include a processing circuit for processing the audio data identified by an application processor (111). For example, the digital signal processor (112) may output the audio data to be output to the outside of the electronic device (101) to a first speaker (131), a second speaker (132), a third speaker (133), and a fourth speaker (134) through a speaker amplifier driver (150). For example, the digital signal processor (112) may output the first audio data component on the first frequency band and the second audio data component on the second frequency band to the first speaker (131) and the second speaker (132), respectively, through the speaker amplifier driver (150). For example, the digital signal processor (112) can output the third audio data component on the third frequency band and the fourth audio data component on the fourth frequency band to the third speaker (133) and the fourth speaker (134), respectively, through the speaker amplifier driver (150). For example, the digital signal processor (112) can adjust the magnitude (e.g., gain) of the signal regarding the audio data and / or filter the frequency of the audio data.

[0033] The speaker amplifier driver (150) may be electrically connected to the first speaker (131), the second speaker (132), the third speaker (133), and the fourth speaker (134). For example, the speaker amplifier driver (150) may output the processed audio data to the outside of the electronic device (101) through the first speaker (131), the second speaker (132), the third speaker (133), and the fourth speaker (134), respectively, by processing the audio data output from the digital signal processor (112).

[0034] For example, the speaker amplifier driver (150) can set the volume of each of the first speaker (131), the second speaker (132), the third speaker (133), and the fourth speaker (134) based on a program executed by at least one processor (110). For example, the program may be stored in memory (120) in relation to the speaker amplifier driver (150). For example, the speaker amplifier driver (150) may perform volume adjustment between the first speaker (131) and the second speaker (132) using the first correction value based on the program. For example, the first correction value may be stored in a register of the speaker amplifier driver (150). For example, the speaker amplifier driver (150) may adjust the volume of the first speaker (131) or the volume of the second speaker (132) by the first correction value. For example, the speaker amplifier driver (150) can perform volume adjustment between the third speaker (133) and the fourth speaker (134) based on the program and using the second correction value. For example, the second correction value may be stored in a register of the speaker amplifier driver (150). For example, the speaker amplifier driver (150) can adjust the volume of the third speaker (133) or the volume of the fourth speaker (134) by the second correction value. A method of operation for setting the volume of each speaker using the correction value will be described later with reference to FIG. 5.

[0035] The electronic device (101) can increase the precision of spatial audio output from the speakers by using a microphone (140) to adjust the volume between the first speaker (131) and the second speaker (132), and the volume between the third speaker (133) and the fourth speaker (134).

[0036] For example, even if the volume of the first speaker (131) and the volume of the second speaker (132) are set to be the same, the volume output from the first speaker (131) and the volume output from the second speaker (132) may differ from each other due to differences in hardware structure between the first speaker (131) and the second speaker (132) or other factors affecting the volume output, so the electronic device (101) can increase the precision of the spatial acoustics by performing the volume adjustment. For example, since the difference in output volume between the first speaker (131) and the second speaker (132) caused by the difference in hardware structure varies by frequency band, the electronic device (101) can obtain the first correction value for volume adjustment by identifying the difference in output volume in two different frequency bands (e.g., a first frequency band and a second frequency band).

[0037] For example, even if the volume of the third speaker (133) and the volume of the fourth speaker (134) are set to be the same, the volume output from the third speaker (133) and the volume output from the fourth speaker (134) differ from each other due to the difference in hardware structure between the third speaker (133) and the fourth speaker (134), so the electronic device (101) can increase the precision of the spatial acoustics by performing the volume adjustment. For example, the difference in volume output from the third speaker (133) and the fourth speaker (134) caused by the difference in hardware structure may differ by frequency band. For example, since the difference in output volume between the third speaker (133) and the fourth speaker (134) resulting from the difference in the hardware structure is different for each frequency band, the electronic device (101) can obtain the second correction value for volume adjustment by identifying the difference in output volume in two different frequency bands (e.g., the third frequency band and the fourth frequency band).

[0038] The method of operation in which the electronic device (101) performs the volume adjustment is described with reference to FIG. 3.

[0039] Figure 3 is a flowchart illustrating a method for adjusting the volume of a speaker of an electronic device.

[0040] Referring to FIG. 3, an operation method is illustrated in which an electronic device (101) performs volume adjustment between a first speaker (131) and a second speaker (132). By example, without limitation, the first speaker (131) and the second speaker (132) may be described as woofers that output sound regarding audio data in a low frequency band.

[0041] In operation 301, at least one processor (110) can output audio data to each of the first speaker (131) and the second speaker (132). For example, at least one processor (110) can identify from the audio data a first audio data component of a first frequency band and a second audio data component of a second frequency band. For example, the audio data may be described as data regarding audio (e.g., music, voice, and media sound) to be played on the electronic device (101). By example, without limitation, the first frequency band and the second frequency band may be described as low frequency bands. For example, the first frequency band may include 200 Hz. For example, the second frequency band may include 1 kHz.

[0042] In operation 302, at least one processor (110) can identify the difference in output between the volume output from the first speaker (131) and the volume output from the second speaker (132) in the first frequency band of the audio data. For example, at least one processor (110) can identify the volume output from the first speaker (131) and the volume output from the second speaker (132) using a microphone (140) by outputting the first audio data component of the first frequency band to the first speaker (131) and the second speaker (132), respectively. For example, at least one processor (110) can identify a value corresponding to the difference between the volume output from the first speaker (131) in the first frequency band and the volume output from the second speaker (132) in the first frequency band as a first value. For example, the first value may correspond to a value obtained by subtracting the volume output from the second speaker (132) in the first frequency band from the volume output from the first speaker (131) in the first frequency band. For example, if the volume output from the first speaker (131) in the first frequency band is 87 (dB) and the volume output from the second speaker (132) in the first frequency band is 85 (dB), at least one processor (110) may identify 2 (dB) as the first value. For example, the first value identified as a positive (+) may indicate that the volume output from the first speaker (131) in the first frequency band is greater than the volume output from the second speaker (132). As another example, if the volume output from the first speaker (131) in the first frequency band is 87 (dB) and the volume output from the second speaker (132) in the first frequency band is 89 (dB), at least one processor (110) can identify -2 (dB) as the first value.For example, the first value identified as a negative number (-) may indicate that the volume output from the second speaker (132) in the first frequency band is greater than the volume output from the first speaker (131).

[0043] In operation 303, at least one processor (110) can identify the difference in output between the volume output from the first speaker (131) and the volume output from the second speaker (132) in the second frequency band of the audio data. For example, at least one processor (110) can identify the volume output from the first speaker (131) in the second frequency band and the volume output from the second speaker (132) in the second frequency band by using a microphone (140) by outputting the second audio data component in the second frequency band to the first speaker (131) and the second speaker (132), respectively. For example, at least one processor (110) can identify a value corresponding to the difference between the volume output from the first speaker (131) in the second frequency band and the volume output from the second speaker (132) in the second frequency band as a second value. For example, the second value may correspond to a value obtained by subtracting the volume output from the second speaker (132) in the second frequency band from the volume output from the first speaker (131) in the second frequency band. For example, if the volume output from the first speaker (131) in the second frequency band is 91 (dB) and the volume output from the second speaker (132) in the second frequency band is 87 (dB), at least one processor (110) may identify 4 (dB) as the second value. For example, the second value identified as a positive (+) may indicate that the volume output from the first speaker (131) in the second frequency band is greater than the volume output from the second speaker (132). As another example, if the volume output from the first speaker (131) in the second frequency band is 91 (dB) and the volume output from the second speaker (132) in the second frequency band is 92 (dB), at least one processor (110) can identify -1 (dB) as the second value.For example, the second value identified as a negative number (-) may indicate that the volume output from the second speaker (132) in the second frequency band is greater than the volume output from the first speaker (131).

[0044] In operation 304, at least one processor (110) can identify whether the output difference between the volume output from the first speaker (131) and the volume output from the second speaker (132) in the first frequency band and the second frequency band of the audio data exceeds a reference value. By example, without limitation, the reference value may be described as a value associated with specifications for ensuring the precision of spatial audio. The reference value may be set in various ways depending on the embodiment. For example, the reference value may be set to 3 (dB). For example, at least one processor (110) can identify that the output difference between the volume output from the first speaker (131) and the volume output from the second speaker (132) exceeds the reference value based on identifying the absolute value of the first value exceeding the reference value or the absolute value of the second value exceeding the reference value.

[0045] In operation 305, at least one processor (110) may obtain a first calibration value based on identifying the output difference exceeding the reference value. For example, if the absolute value of the first value is 2 (dB) and the absolute value of the second value is 4 (dB), the absolute value of the second value is greater than the reference value of 3 (dB), so at least one processor (110) may obtain the first calibration value. As another example, if the absolute value of the first value is 2 (dB) and the absolute value of the second value is 1 (dB), the at least one processor (110) may refrain from obtaining the first calibration value because both the absolute value of the first value and the absolute value of the second value are less than the reference value of 3 (dB).

[0046] For example, the first correction value may be intended to adjust the output difference between the volume output from the first speaker (131) and the volume output from the second speaker (132) to be less than or equal to the reference value. For example, the first correction value may be between the first value and the second value. For example, the first correction value may correspond to the average value of the first value and the second value. For example, at least one processor (110) may identify 3 (dB) as the first correction value when the first value is 2 (dB) and the second value is 4 (dB). For another example, at least one processor (110) may identify -1 (dB) as the first correction value when the first value is 2 (dB) and the second value is -4 (dB). For example, at least one processor (110) may set the reference value as the first correction value when the average value exceeds the reference value (e.g., 3(dB)). For example, at least one processor (110) may identify the other reference value as the first correction value based on identifying the average value that is less than the other reference value (e.g., -3(dB)). For example, the other reference value may be lower than the reference value. For example, the reference value and the other reference value may have different signs and the same absolute value. By example, without limitation, the other reference value may be described as a value associated with a specification for ensuring the precision of the spatial acoustics. For example, at least one processor (110) may store the acquired first correction value in memory (120) based on acquiring the first correction value.

[0047] For example, if the reference value and the other reference value are set to 3 (dB) and -3 (dB), respectively, the precision of the spatial acoustics can be ensured when the value obtained by subtracting the volume output from the second speaker (132) from the volume output from the first speaker (131) (e.g., the first value and the second value) is in the range between 3 (dB) and -3 (dB). For example, if the volume output from the first speaker (131) is greater than 3 (dB) than the volume output from the second speaker (132), the subtracted value is greater than the reference value, so the volume of the first speaker (131) or the volume of the second speaker (132) can be adjusted according to operation 306 described below using the first correction value. For example, if the volume output from the first speaker (131) is less than 3 (dB) than the volume output from the second speaker (132), the subtracted value is smaller than the other reference value, so the volume of the first speaker (131) or the volume of the second speaker (132) can be adjusted according to operation 306 described below using the first correction value.

[0048] For example, at least one processor (110) may refrain from obtaining the first correction value and / or identify the state of the first speaker (131) and / or the second speaker (132) as defective (or faulty) if the value obtained by subtracting the volume output from the second speaker (132) from the volume output from the first speaker (131) (e.g., the first value and the second value) exceeds a threshold value (e.g., 6 (dB)). For example, the threshold value may be described as a value for determining defects in the first speaker (131) and the second speaker (132) in relation to spatial audio precision. For example, if the reference value and the other reference value are set to 3 (dB) and -3 (dB), respectively, the precision of spatial acoustics can be ensured when the value obtained by subtracting the volume output from the second speaker (132) from the volume output from the first speaker (131) (e.g., the first value and the second value) is in the range between 3 (dB) and -3 (dB). For example, if the subtracted value exceeds the threshold value of 6 (dB), the first correction value for adjusting the subtracted value to within the range exceeds 3 (dB), so the condition of the first speaker (131) and / or the second speaker (132) can be identified as defective (or faulty) in relation to spatial acoustics.

[0049] In operation 306, at least one processor (110) can adjust the volume of the first speaker (131) or the volume of the second speaker (132) by the first correction value based on obtaining the first correction value. For example, at least one processor (110) can read the first correction value stored in memory (120) when the electronic device (101) is booted. For example, at least one processor (110) can store the read first correction value in a register of the speaker amplifier driver (150). For example, at least one processor (110) can control the speaker amplifier driver (150) to adjust the volume of the first speaker (131) or the volume of the second speaker (132) using the first correction value stored in the register. For example, the volume adjustment may be intended to adjust the output difference to below the reference value using the first correction value. For example, if the first correction value is identified as 3 (dB) as the first value is identified as 2 (dB) and the second value is identified as 4 (dB), at least one processor (110) may decrease the volume of the first speaker (131) by 3 (dB) or increase the volume of the second speaker (132) by 3 (dB). For example, the first value and the second value may each be identified as -1 (dB) and 1 (dB). As another example, if the first correction value is identified as -1 (dB) as the first value is identified as 2 (dB) and the second value is identified as -4 (dB), at least one processor (110) may increase the volume of the first speaker (131) by 1 (dB) or decrease the volume of the second speaker (132) by 1 (dB). For example, the first value and the second value, respectively, can be identified as 3(dB) and -3(dB).

[0050] As an example not limited to, the correction value may be set differently depending on the frequency band. For example, the electronic device (101) may obtain a frequency response representing the output volume of the speakers in the entire frequency band by identifying the volume output from the speakers in the entire frequency band. For example, the electronic device (101) may identify correction values ​​for adjusting the obtained frequency response to a reference frequency response. For example, the electronic device (101) may correct the volume of the speakers by frequency band using the identified correction values.

[0051] For example, the method of performing volume adjustment between the first speaker (131) and the second speaker (132) in FIG. 3 may be the same as the method of performing volume adjustment between the third speaker (133) and the fourth speaker (134). As an example without limitation, the third speaker (133) and the fourth speaker (134) may be described as tweeters that output sound regarding audio data in the high frequency band.

[0052] In an operation corresponding to the above operation 301, at least one processor (110) may output the audio data to the third speaker (133) and the fourth speaker (134), respectively. For example, at least one processor (110) may identify from the audio data a third audio data component of a third frequency band and a fourth audio data component of a fourth frequency band. For example, the audio data may be described as data regarding audio (e.g., music, voice, and media sound) to be played on the electronic device (101). By example, without limitation, the third frequency band and the fourth frequency band may be described as high frequency bands. For example, the third frequency band may include 3 kHz. For example, the fourth frequency band may include 5 kHz. For example, each of the third frequency band and the fourth frequency band may be higher than the first frequency band and the second frequency band.

[0053] In an operation corresponding to the above operation 302, at least one processor (110) can identify the difference in output between the volume output from the third speaker (133) and the volume output from the fourth speaker (134) in the third frequency band of the audio data. For example, at least one processor (110) can identify the volume output from the third speaker (133) and the volume output from the fourth speaker (134) using a microphone (140) by outputting the third audio data component in the third frequency band to the third speaker (133) and the fourth speaker (134), respectively. For example, at least one processor (110) can identify a value corresponding to the difference between the volume output from the third speaker (133) in the third frequency band and the volume output from the fourth speaker (134) in the third frequency band as a third value. For example, the third value may correspond to the value obtained by subtracting the volume output from the fourth speaker (134) in the third frequency band from the volume output from the third speaker (133) in the third frequency band. For example, if the volume output from the third speaker (133) in the third frequency band is 92 (dB) and the volume output from the fourth speaker (134) in the third frequency band is 90 (dB), at least one processor (110) may identify 2 (dB) as the third value. For example, the third value identified as a positive (+) may indicate that the volume output from the third speaker (133) in the third frequency band is greater than the volume output from the fourth speaker (134). As another example, if the volume output from the third speaker (133) in the third frequency band is 92 (dB) and the volume output from the fourth speaker (134) in the third frequency band is 94 (dB), at least one processor (110) can identify -2 (dB) as the third value.For example, the third value identified as a negative number (-) may indicate that the volume output from the fourth speaker (134) in the third frequency band is greater than the volume output from the third speaker (133).

[0054] In an operation corresponding to the above operation 303, at least one processor (110) can identify the difference in output between the volume output from the third speaker (133) and the volume output from the fourth speaker (134) in the fourth frequency band of the audio data. For example, at least one processor (110) can identify the volume output from the third speaker (133) in the fourth frequency band and the volume output from the fourth speaker (134) in the fourth frequency band by using a microphone (140) by outputting the fourth audio data component in the fourth frequency band to the third speaker (133) and the fourth speaker (134), respectively. For example, at least one processor (110) can identify a value corresponding to the difference between the volume output from the third speaker (133) in the fourth frequency band and the volume output from the fourth speaker (134) in the fourth frequency band as the fourth value. For example, the fourth value may correspond to a value obtained by subtracting the volume output from the fourth speaker (134) in the fourth frequency band from the volume output from the third speaker (133) in the fourth frequency band. For example, if the volume output from the third speaker (133) in the fourth frequency band is 96 (dB) and the volume output from the fourth speaker (134) in the fourth frequency band is 92 (dB), at least one processor (110) may identify 4 (dB) as the fourth value. For example, the fourth value identified as a positive (+) may indicate that the volume output from the third speaker (133) in the fourth frequency band is greater than the volume output from the fourth speaker (134).As another example, if the volume output from the third speaker (133) in the fourth frequency band is 96 (dB) and the volume output from the fourth speaker (134) in the fourth frequency band is 97 (dB), at least one processor (110) may identify -1 (dB) as the fourth value. For example, the fourth value identified as a negative number (-) may indicate that the volume output from the fourth speaker (134) in the fourth frequency band is greater than the volume output from the third speaker (133).

[0055] In an operation corresponding to the above operation 304, at least one processor (110) can identify whether the output difference between the volume output from the third speaker (133) and the volume output from the fourth speaker (134) in the third frequency band and the fourth frequency band of the audio data exceeds a reference value. By example, without limitation, the reference value may be described as a value associated with specifications for ensuring the precision of spatial audio. The reference value may be set in various ways according to the embodiment. For example, the reference value may be set to 3 (dB). For example, at least one processor (110) can identify that the output difference between the volume output from the third speaker (133) and the volume output from the fourth speaker (134) exceeds the reference value based on identifying the absolute value of the third value exceeding the reference value or the absolute value of the fourth value exceeding the reference value.

[0056] In an operation corresponding to the above operation 305, at least one processor (110) may obtain a second calibration value based on identifying the output difference exceeding the reference value. For example, if the absolute value of the third value is 2 (dB) and the absolute value of the fourth value is 4 (dB), the absolute value of the fourth value is greater than the reference value of 3 (dB), so at least one processor (110) may obtain the second calibration value. As another example, if the absolute value of the third value is 2 (dB) and the absolute value of the fourth value is 1 (dB), the at least one processor (110) may refrain from obtaining the second calibration value because both the absolute value of the third value and the absolute value of the fourth value are less than the reference value of 3 (dB).

[0057] For example, the second correction value may be intended to adjust the output difference between the volume output from the third speaker (133) and the volume output from the fourth speaker (134) to be less than or equal to the reference value. For example, the second correction value may be between the third value and the fourth value. For example, the second correction value may correspond to the average value of the third value and the fourth value. For example, at least one processor (110) may identify 3 (dB) as the second correction value when the third value is 2 (dB) and the fourth value is 4 (dB). For another example, at least one processor (110) may identify -1 (dB) as the second correction value when the third value is 2 (dB) and the fourth value is -4 (dB). For example, at least one processor (110) may set the reference value as the second correction value when the average value exceeds the reference value (e.g., 3(dB)). For example, at least one processor (110) may identify the other reference value as the second correction value based on identifying the average value that is less than the other reference value (e.g., -3(dB)). For example, the other reference value may be lower than the reference value. For example, the reference value and the other reference value may have different signs and the same absolute value. By example, without limitation, the other reference value may be described as a value associated with specifications for ensuring the precision of the spatial audio. For example, at least one processor (110) may store the second correction value in memory (120) based on obtaining the second correction value.

[0058] For example, if the reference value and the other reference value are set to 3 (dB) and -3 (dB), respectively, the precision of the spatial acoustics can be ensured when the value obtained by subtracting the volume output from the fourth speaker (134) from the volume output from the third speaker (133) (e.g., the third value and the fourth value) is in the range between 3 (dB) and -3 (dB). For example, if the volume output from the third speaker (133) is greater than 3 (dB) than the volume output from the fourth speaker (134), the subtracted value is greater than the reference value, so the volume of the third speaker (133) or the volume of the fourth speaker (134) can be adjusted according to operation 306 described below using the second correction value. For example, if the volume output from the third speaker (133) is less than 3 (dB) than the volume output from the fourth speaker (134), the subtracted value is smaller than the other reference value, so the volume of the third speaker (133) or the volume of the fourth speaker (134) can be adjusted according to operation 306 described below using the second correction value.

[0059] For example, at least one processor (110) may refrain from obtaining the second correction value and / or identify the state of the third speaker (133) and / or the fourth speaker (134) as defective (or faulty) if the value obtained by subtracting the volume output from the third speaker (133) from the volume output from the fourth speaker (134) (e.g., the third value and the fourth value) exceeds a threshold value (e.g., 6 (dB)). For example, the threshold value may be described as a value for determining defects in the third speaker (133) and the fourth speaker (134) in relation to spatial audio precision. For example, if the reference value and the other reference value are set to 3 (dB) and -3 (dB), respectively, the precision of spatial acoustics can be ensured when the value obtained by subtracting the volume output from the fourth speaker (134) from the volume output from the third speaker (133) (e.g., the third value and the fourth value) is in the range between 3 (dB) and -3 (dB). For example, if the subtracted value exceeds the threshold value of 6 (dB), the second correction value for adjusting the subtracted value to within the range exceeds 3 (dB), so the condition of the third speaker (133) and / or the fourth speaker (134) can be identified as defective (or bad) in relation to spatial acoustics.

[0060] In an operation corresponding to the above operation 306, at least one processor (110) can adjust the volume of the third speaker (133) or the volume of the fourth speaker (134) by the second correction value based on obtaining the second correction value. For example, at least one processor (110) can read the second correction value stored in memory (120) when the electronic device (101) is booted. For example, at least one processor (110) can store the read second correction value in a register of the speaker amplifier driver (150). For example, at least one processor (110) can control the speaker amplifier driver (150) to adjust the volume of the third speaker (133) or the volume of the fourth speaker (134) using the second correction value stored in the register. For example, the volume adjustment may be intended to adjust the output difference to below the reference value using the second correction value. For example, if the second correction value is identified as 3 (dB) as the third value is identified as 2 (dB) and the fourth value is identified as 4 (dB), at least one processor (110) may decrease the volume of the third speaker (133) by 3 (dB) or increase the volume of the fourth speaker (134) by 3 (dB). For example, the third value and the fourth value may each be identified as -1 (dB) and 1 (dB). As another example, if the second correction value is identified as -1 (dB) as the third value is identified as 2 (dB) and the fourth value is identified as -4 (dB), at least one processor (110) may increase the volume of the third speaker (133) by 1 (dB) or decrease the volume of the fourth speaker (134) by 1 (dB). For example, the third value and the fourth value can each be identified as 3(dB) and -3(dB).

[0061] The operations 302, 303, 304, and 305 illustrated in FIG. 3 have been described as operations performed by at least one processor (110) within the electronic device (101), but these are exemplary. For example, at least one processor (110) may perform some or all of the operations 302, 303, 304, and 305 using an external electronic device. An example of at least one processor (110) performing the operations 302, 303, 304, and 305 using the external electronic device is described with reference to FIG. 4.

[0062] Figure 4 illustrates another example of a calibration environment for adjusting the volume of a speaker of an electronic device.

[0063] Referring to FIG. 4, a calibration environment (400) between an electronic device (101) and an external electronic device (401) is illustrated.

[0064] The electronic device (101) may include at least one processor (110), memory (120), a first speaker (131), a second speaker (132), a third speaker (133), a fourth speaker (134), and a speaker amplifier driver (150). The at least one processor (110) may include an application processor (AP) (111) and a digital signal processor (DSP) (112).

[0065] In one embodiment, an external electronic device (401) can identify (or measure) the volume output from the first speaker (131), the volume output from the second speaker (132), the volume output from the third speaker (133), and the volume output from the fourth speaker (134). The external electronic device (401) can transmit the values ​​identified (or measured) for the volume output from the first speaker (131), the volume output from the second speaker (132), the volume output from the third speaker (133), and the volume output from the fourth speaker (134) to at least one processor (110) of the electronic device (101). For example, at least one processor (110) can perform operations 302, 303, 304, and 305 of FIG. 3 by obtaining values ​​from an external electronic device (401) that identify (or measure) the volume output from the first speaker (131), the volume output from the second speaker (132), the volume output from the third speaker (133), and the volume output from the fourth speaker (134).

[0066] In one embodiment, an external electronic device (401) can identify (or measure) the volume output from the first speaker (131), the volume output from the second speaker (132), the volume output from the third speaker (133), and the volume output from the fourth speaker (134). Based on the values ​​identified (or measured) for the volume output from the first speaker (131) and the volume output from the second speaker (132), the external electronic device (401) can identify a first correction value for volume adjustment between the first speaker (131) and the second speaker (132), and then transmit the first correction value to at least one processor (110). The external electronic device (401) can identify a second correction value for volume adjustment between the third speaker (133) and the fourth speaker (134) based on values ​​that identify (or measure) the volume output from the third speaker (133) and the volume output from the fourth speaker (134), and then transmit the second correction value to at least one processor (110) of the electronic device (101). The at least one processor (110) can perform operations 304 and 305 of FIG. 3 by obtaining the first correction value for volume adjustment between the first speaker (131) and the second speaker (132) and the second correction value for volume adjustment between the third speaker (133) and the fourth speaker (134) from the external electronic device (401).

[0067] Figure 5 is a flowchart illustrating a method for setting the volume of each speaker of an electronic device using a correction value.

[0068] Referring to FIG. 5, in operation 501, at least one processor (110) can identify audio data to be played on an electronic device (101).

[0069] In operation 502, at least one processor (110) can control the speaker amplifier driver (150) to identify whether a first correction value and a second correction value exist in the registers of the speaker amplifier driver (150) based on identifying the audio data.

[0070] In operation 503, at least one processor (110) can control the speaker amplifier driver (150) to set the volumes of each of the first speaker (131), the second speaker (132), the third speaker (133), and the fourth speaker (134). For example, at least one processor (110) can control the speaker amplifier driver (150) to apply the first correction value to the volume of the first speaker (131) or the volume of the second speaker (132) when it is identified that the first correction value exists. For example, at least one processor (110) can control the speaker amplifier driver (150) to apply the second correction value to the volume of the third speaker (133) or the volume of the fourth speaker (134) when it is identified that the second correction value exists.

[0071] In operation 504, at least one processor (110) can output the audio data to be played to the outside of the electronic device (101) through each of the first speaker (131), second speaker (132), third speaker (133), and fourth speaker (134), based on the above settings of the volumes of each of the first speaker (131), second speaker (132), third speaker (133), and fourth speaker (134).

[0072] As described above, the electronic device (101) can set the volume of each speaker through a speaker amplifier driver (150) to perform volume adjustment between the speakers. According to an embodiment, the electronic device (101) can selectively perform the volume adjustment according to the stream type of audio data through a digital signal processor (112). A method of operation for selectively performing the volume adjustment according to the stream type is described in FIG. 6.

[0073] Figure 6 illustrates another example of a calibration environment for adjusting the volume of a speaker of an electronic device.

[0074] Referring to FIG. 6, the electronic device (101) may include at least one processor (110), memory (120), a first speaker (131), a second speaker (132), a third speaker (133), a fourth speaker (134), a microphone (140), and a speaker amplifier driver (150).

[0075] For example, the electronic device (101) can increase the precision of spatial audio output from the speakers by performing volume adjustment between the first speaker (131) and the second speaker (132), and volume adjustment between the third speaker (133) and the fourth speaker (134). However, it is not limited thereto. For example, the electronic device (101) may perform only volume adjustment between the first speaker (131) and the second speaker (132), or only volume adjustment between the third speaker (133) and the fourth speaker (134). As another example, the electronic device (101) may perform volume adjustment between three or more speakers.

[0076] At least one processor (110) may include an application processor (AP) (111) and a digital signal processor (DSP) (112). For example, the application processor (111) and the digital signal processor (112) may be integrated into a single component (e.g., a single chip) or implemented as multiple separate components (e.g., multiple chips).

[0077] The application processor (111) can identify audio data to be provided to each of the first speaker (131), the second speaker (132), the third speaker (133), and the fourth speaker (134). For example, the audio data may be described as data regarding audio (e.g., music, voice, and media sound) to be played on the electronic device (101). For example, the application processor (111) may adjust the magnitude (e.g., gain) of the signal regarding the audio data, filter the frequency of the signal, and / or determine the bit depth of the audio data. For example, the application processor (111) may identify audio data components by analyzing (or identifying) the audio data by frequency band. For example, the application processor (111) can identify from the audio data a first audio data component on a first frequency band, a second audio data component on a second frequency band higher than the first frequency band, a third audio data component on a third frequency band higher than the second frequency band, and a fourth audio data component on a fourth frequency band higher than the third frequency band. For example, the first audio data component, the second audio data component, the third audio data component, and the fourth audio data component may be included in the audio data. By example, without limitation, the first frequency band and the second frequency band may be described as low frequency bands. By example, without limitation, the third frequency band and the fourth frequency band may be described as high frequency bands.

[0078] For example, the software layer of the application processor (111) may be described as including an application layer and a framework layer. For example, the application processor (111) can identify audio data to be played on the electronic device (101) through the application layer. For example, the application processor (111) can set a playback environment (e.g., stereo or mono) regarding the audio data to be played on the electronic device (101) and / or set a playback priority of the audio data to be played on the electronic device (101) through the framework layer.

[0079] For example, the application processor (111) can calculate (or identify) calibration values ​​for volume adjustment between the first speaker (131) and the second speaker (132), and volume adjustment between the third speaker (133) and the fourth speaker (134), through the application layer. For example, the application processor (111) can store the calculated (or identified) calibration values ​​in memory (120) through the framework layer. For example, the calibration values ​​may include a first calibration value for volume adjustment between the first speaker (131) and the second speaker (132) and a second calibration value for volume adjustment between the third speaker (133) and the fourth speaker (134). For example, when the electronic device (101) is booted, the application processor (111) can read the first calibration value and the second calibration value stored in memory (120) through the framework layer. For example, the application processor (111) can transmit the read first correction value and the read second correction value to the digital signal processor (112) through the framework layer.

[0080] A digital signal processor (112) may include a processing circuit for processing the audio data identified by an application processor (111). For example, the digital signal processor (112) may output the audio data to be output to the outside of the electronic device (101) to a first speaker (131), a second speaker (132), a third speaker (133), and a fourth speaker (134) through a speaker amplifier driver (150). For example, the digital signal processor (112) may output the first audio data component on the first frequency band and the second audio data component on the second frequency band to the first speaker (131) and the second speaker (132), respectively, through the speaker amplifier driver (150). For example, the digital signal processor (112) can output the third audio data component on the third frequency band and the fourth audio data component on the fourth frequency band to the third speaker (133) and the fourth speaker (134), respectively, through the speaker amplifier driver (150). For example, the digital signal processor (112) can adjust the magnitude (e.g., gain) of the signal regarding the audio data and / or filter the frequency of the audio data.

[0081] For example, the hierarchy of the digital signal processor (112) may be described as including a stream module, a post-processing module, and a device module. For example, each of the stream module, the post-processing module, and the device module may be implemented in software and / or hardware. For example, the digital signal processor (112) may output the audio data identified by the application processor (111) to the speaker amplifier driver (150) by sequentially using the stream module, the post-processing module, and the device module.

[0082] For example, the digital signal processor (112) can identify the stream type of the audio data identified by the application processor (111) using the stream module. For example, the stream type may include a first stream type corresponding to music, video sound, and game sound of the audio data, a second stream type corresponding to a telephone ring sound of the audio data, a third stream type corresponding to an alarm sound of the audio data, a fourth stream type corresponding to a notification and message sound of the audio data, a fifth stream type corresponding to a system sound (e.g., key tone and display touch sound) of the audio data, and a sixth stream type corresponding to a call voice of the audio data.

[0083] For example, the digital signal processor (112) can use the post-processing module to remove echo and / or noise from the audio data identified by the application processor (111) or apply audio effects (e.g., equalizer and reverb) to the audio data. For example, the digital signal processor (112) can use the post-processing module to identify whether the identified stream type is a defined stream type. The defined stream type may be described as a stream type that provides spatial audio (e.g., a first stream type where the audio data corresponds to music, video sound, and game sound). For example, the defined stream type may be intended to provide spatial audio where the volume corresponding to the audio data to be output through the first speaker (131) and the volume corresponding to the audio data to be output through the second speaker (132) are different. For example, the stream type defined above may be intended to provide spatial sound with different volumes corresponding to the audio data to be output through the third speaker (133) and the audio data to be output through the fourth speaker (134).

[0084] For example, the digital signal processor (112) can identify the first correction value and the second correction value transmitted from the application processor (111) using the post-processing module. For example, the digital signal processor (112) can perform volume adjustment between the first speaker (131) and the second speaker (132) using the first correction value based on the stream type of the audio data being identified as the defined stream type. For example, the digital signal processor (112) can perform volume adjustment between the third speaker (133) and the fourth speaker (134) using the second correction value based on the stream type of the audio data being identified as the defined stream type. For example, the electronic device (101) can mitigate the difference in volume between the speakers due to the movement of the electronic device (101) based on the user's movement by performing volume adjustment between the speakers while the stream type is identified as the defined stream type providing the spatial sound.

[0085] For example, the digital signal processor (112) can use the device module to transmit the audio data identified by the application processor (111) to the speaker amplifier driver (150).

[0086] The speaker amplifier driver (150) may be electrically connected to the first speaker (131), the second speaker (132), the third speaker (133), and the fourth speaker (134). For example, the speaker amplifier driver (150) may output the processed audio data to the outside of the electronic device (101) through the first speaker (131), the second speaker (132), the third speaker (133), and the fourth speaker (134), respectively, by processing the audio data output from the digital signal processor (112).

[0087] Figure 7 is a flowchart illustrating a method for performing volume adjustment between speakers according to the stream type of audio data.

[0088] Referring to FIG. 7, in operation 701, at least one processor (110) can identify audio data to be played on an electronic device (101) through an application processor (111). For example, at least one processor (110) can identify the audio data to be output through a first speaker (131), a second speaker (132), a third speaker (133), and a fourth speaker (134).

[0089] In operation 702, the digital signal processor (112) can identify the stream type of the audio data identified by the application processor (111) using the stream module. For example, the stream type may include a first stream type corresponding to music, video sound, and game sound of the audio data, a second stream type corresponding to a telephone ring sound of the audio data, a third stream type corresponding to an alarm sound of the audio data, a fourth stream type corresponding to a notification and message sound of the audio data, a fifth stream type corresponding to a system sound (e.g., key tone and display touch sound) of the audio data, and a sixth stream type corresponding to a call voice of the audio data.

[0090] In operation 703, the digital signal processor (112) can use the post-processing module to determine whether the identified stream type is a defined stream type. The defined stream type may be described as a stream type that provides spatial audio (e.g., a first stream type where audio data corresponds to music, video sound, and game sound). For example, the defined stream type may be intended to provide spatial audio where the volume corresponding to the audio data to be output through the first speaker (131) and the volume corresponding to the audio data to be output through the second speaker (132) are different. For example, the defined stream type may be intended to provide spatial audio where the volume corresponding to the audio data to be output through the third speaker (133) and the volume corresponding to the audio data to be output through the fourth speaker (134) are different.

[0091] In operation 704, the digital signal processor (112) can perform volume adjustment between speakers based on the stream type of the audio data being identified as the defined stream type. For example, the digital signal processor (112) can identify the first correction value and the second correction value transmitted from the application processor (111) using the post-processing module. For example, the first correction value and the second correction value can be obtained based on the electronic device (101) performing operations 301, 302, 303, 304, and 305 illustrated in FIG. 3. For example, the digital signal processor (112) can perform volume adjustment between the first speaker (131) and the second speaker (132) using the first correction value based on the stream type of the audio data being identified as the defined stream type. For example, the digital signal processor (112) can perform volume adjustment between the third speaker (133) and the fourth speaker (134) using the second correction value based on the stream type of the audio data being identified as the defined stream type. For example, the volume adjustment can be performed based on the electronic device (101) performing the operation 306 shown in FIG. 3. For example, the electronic device (101) can mitigate the difference in volume between the speakers due to the movement of the electronic device (101) based on the user's movement by performing volume adjustment between the speakers while the stream type is identified as the defined stream type providing the spatial sound.

[0092] In operation 705, the digital signal processor (112) may refrain from volume adjustment between speakers based on the fact that the stream type of the audio data is not identified as the defined stream type. For example, the digital signal processor (112) may refrain from volume adjustment between the first speaker (131) and the second speaker (132), and volume adjustment between the third speaker (133) and the fourth speaker (134), based on the fact that the stream type of the audio data is not identified as the defined stream type.

[0093] The electronic device (101) may correspond to the electronic device (801) described with reference to FIG. 8 below.

[0094] FIG. 8 is a block diagram of an electronic device in a network environment according to various embodiments.

[0095] Referring to FIG. 8, in a network environment (800), an electronic device (801) may communicate with an electronic device (802) through a first network (898) (e.g., a short-range wireless communication network) or with at least one of an electronic device (804) or a server (808) through a second network (899) (e.g., a long-range wireless communication network). According to one embodiment, the electronic device (801) may communicate with the electronic device (804) through a server (808). According to one embodiment, the electronic device (801) may include a processor (820), memory (830), input module (850), sound output module (855), display module (860), audio module (870), sensor module (876), interface (877), connection terminal (878), haptic module (879), camera module (880), power management module (888), battery (889), communication module (890), subscriber identification module (896), or antenna module (897). In some embodiments, at least one of these components (e.g., connection terminal (878)) may be omitted from the electronic device (801), or one or more other components may be added. In some embodiments, some of these components (e.g., sensor module (876), camera module (880), or antenna module (897)) may be integrated into a single component (e.g., display module (860)).

[0096] The processor (820) can control at least one other component (e.g., a hardware or software component) of the electronic device (801) connected to the processor (820) by executing software (e.g., a program (840)), for example, and can perform various data processing or operations. According to one embodiment, as at least part of the data processing or operations, the processor (820) can store commands or data received from other components (e.g., a sensor module (876) or a communication module (890)) in volatile memory (832), process the commands or data stored in volatile memory (832), and store the resulting data in non-volatile memory (834). According to one embodiment, the processor (820) may include a main processor (821) (e.g., a central processing unit or an application processor) or an auxiliary processor (823) that can operate independently or together with it (e.g., a graphics processing unit, a neural processing unit (NPU), an image signal processor, a sensor hub processor, or a communication processor). For example, if the electronic device (801) includes a main processor (821) and an auxiliary processor (823), the auxiliary processor (823) may be configured to use lower power than the main processor (821) or to be specialized for a designated function. The auxiliary processor (823) may be implemented separately from the main processor (821) or as part thereof.

[0097] The auxiliary processor (823) may control at least some of the functions or states associated with at least one component of the electronic device (801) (e.g., display module (860), sensor module (876), or communication module (890)) on behalf of the main processor (821) while the main processor (821) is in an inactive (e.g., sleep) state, or together with the main processor (821) while the main processor (821) is in an active (e.g., application execution) state. According to one embodiment, the auxiliary processor (823) (e.g., image signal processor or communication processor) may be implemented as part of another functionally related component (e.g., camera module (880) or communication module (890)). According to one embodiment, the auxiliary processor (823) (e.g., neural network processing unit) may include a hardware structure specialized for processing an artificial intelligence model. The artificial intelligence model may be generated through machine learning. Such learning may be performed, for example, on the electronic device (801) itself where the artificial intelligence model is executed, or through a separate server (e.g., server (808)). The learning algorithm may include, for example, supervised learning, unsupervised learning, semi-supervised learning, or reinforcement learning, but is not limited to the examples described above. The artificial intelligence model may include a plurality of artificial neural network layers.An artificial neural network may be a deep neural network (DNN), a convolutional neural network (CNN), a recurrent neural network (RNN), a restricted Boltzmann machine (RBM), a deep belief network (DBN), a bidirectional recurrent deep neural network (BRDNN), a deep Q-network, or a combination of two or more of the above, but is not limited to the examples described above. In addition to the hardware structure, the artificial intelligence model may include a software structure, either additionally or substantially.

[0098] The memory (830) can store various data used by at least one component of the electronic device (801) (e.g., processor (820) or sensor module (876)). The data may include, for example, software (e.g., program (840)) and input or output data for related commands. The memory (830) may include volatile memory (832) or non-volatile memory (834).

[0099] The program (840) may be stored as software in memory (830) and may include, for example, an operating system (842), middleware (844), or an application (846).

[0100] The input module (850) can receive commands or data to be used for a component of the electronic device (801) (e.g., processor (820)) from outside the electronic device (801) (e.g., user). The input module (850) may include, for example, a microphone, a mouse, a keyboard, a key (e.g., a button), or a digital pen (e.g., a stylus pen).

[0101] The sound output module (855) can output an audio signal to the outside of the electronic device (801). The sound output module (855) may include, for example, a speaker or a receiver. The speaker may be used for general purposes, such as multimedia playback or recording playback. The receiver may be used to receive incoming calls. According to one embodiment, the receiver may be implemented separately from the speaker or as part thereof.

[0102] The display module (860) can visually provide information to an external (e.g., user) of the electronic device (801). The display module (860) may include, for example, a display, a holographic device, or a projector and a control circuit for controlling said device. According to one embodiment, the display module (860) may include a touch sensor configured to detect a touch, or a pressure sensor configured to measure the intensity of the force generated by said touch.

[0103] The audio module (870) can convert sound into an electrical signal or, conversely, convert an electrical signal into sound. According to one embodiment, the audio module (870) can acquire sound through the input module (850) or output sound through the sound output module (855) or an external electronic device (e.g., electronic device (802)) (e.g., speaker or headphones) connected directly or wirelessly to the electronic device (801).

[0104] The sensor module (876) can detect the operating state of the electronic device (801) (e.g., power or temperature) or the external environmental state (e.g., user state) and generate an electrical signal or data value corresponding to the detected state. According to one embodiment, the sensor module (876) may include, for example, a gesture sensor, a gyroscope sensor, a barometric pressure sensor, a magnetic sensor, an accelerometer sensor, a grip sensor, a proximity sensor, a color sensor, an IR (infrared) sensor, a biosensor, a temperature sensor, a humidity sensor, or an illuminance sensor.

[0105] The interface (877) may support one or more specified protocols that can be used for the electronic device (801) to be connected directly or wirelessly to an external electronic device (e.g., electronic device (802)). According to one embodiment, the interface (877) may include, for example, a high definition multimedia interface (HDMI), a universal serial bus (USB) interface, an SD card interface, or an audio interface.

[0106] The connection terminal (878) may include a connector through which the electronic device (801) can be physically connected to an external electronic device (e.g., electronic device (802)). According to one embodiment, the connection terminal (878) may include, for example, an HDMI connector, a USB connector, an SD card connector, or an audio connector (e.g., a headphone connector).

[0107] The haptic module (879) can convert an electrical signal into a mechanical stimulus (e.g., vibration or movement) or an electrical stimulus that can be perceived by the user through tactile or kinesthetic senses. According to one embodiment, the haptic module (879) may include, for example, a motor, a piezoelectric element, or an electric stimulation device.

[0108] The camera module (880) can capture still images and video. According to one embodiment, the camera module (880) may include one or more lenses, image sensors, image signal processors, or flashes.

[0109] The power management module (888) can manage power supplied to the electronic device (801). According to one embodiment, the power management module (888) may be implemented, for example, as at least part of a power management integrated circuit (PMIC).

[0110] The battery (889) can supply power to at least one component of the electronic device (801). According to one embodiment, the battery (889) may include, for example, a non-rechargeable primary battery, a rechargeable secondary battery, or a fuel cell.

[0111] The communication module (890) can support the establishment of a direct (e.g., wired) communication channel or a wireless communication channel between an electronic device (801) and an external electronic device (e.g., electronic device (802), electronic device (804), or server (808)), and the performance of communication through the established communication channel. The communication module (890) may include one or more communication processors that operate independently of the processor (820) (e.g., application processor) and support direct (e.g., wired) communication or wireless communication. According to one embodiment, the communication module (890) may include a wireless communication module (892) (e.g., cellular communication module, short-range wireless communication module, or GNSS (global navigation satellite system) communication module) or a wired communication module (894) (e.g., LAN (local area network) communication module, or power line communication module). The corresponding communication module among these communication modules can communicate with an external electronic device (804) through a first network (898) (e.g., a short-range communication network such as Bluetooth, WiFi (wireless fidelity) direct, or IrDA (infrared data association)) or a second network (899) (e.g., a legacy cellular network, a 5G network, a next-generation communication network, the Internet, or a computer network (e.g., a LAN or WAN)). These various types of communication modules may be integrated into a single component (e.g., a single chip) or implemented as multiple separate components (e.g., multiple chips). The wireless communication module (892) can identify or authenticate the electronic device (801) within a communication network such as the first network (898) or the second network (899) using subscriber information (e.g., International Mobile Subscriber Identifier (IMSI)) stored in the subscriber identification module (896).

[0112] The wireless communication module (892) can support 5G networks and next-generation communication technologies following 4G networks, for example, new radio access technology. NR access technology can support high-speed transmission of high-capacity data (enhanced mobile broadband (eMBB)), minimization of terminal power and connection of multiple terminals (massive machine type communications (mMTC)), or high reliability and low latency (ultra-reliable and low-latency communications (URLLC)). The wireless communication module (892) can support a high-frequency band (e.g., mmWave band) to achieve a high data transmission rate, for example. The wireless communication module (892) can support various technologies for securing performance in the high-frequency band, such as beamforming, massive MIMO (multiple-input and multiple-output), full-dimensional MIMO (FD-MIMO), array antenna, analog beam-forming, or large-scale antenna. The wireless communication module (892) can support various requirements specified in the electronic device (801), external electronic device (e.g., electronic device (804)), or network system (e.g., second network (899)). According to one embodiment, the wireless communication module (892) may support a Peak data rate (e.g., 20 Gbps or more) for eMBB realization, loss coverage (e.g., 164 dB or less) for mMTC realization, or U-plane latency (e.g., downlink (DL) and uplink (UL) each 0.5 ms or less, or round trip 1 ms or less) for URLLC realization.

[0113] An antenna module (897) can transmit a signal or power to or from an external source (e.g., an external electronic device). According to one embodiment, the antenna module (897) may include an antenna comprising a radiator made of a conductor or a conductive pattern formed on a substrate (e.g., a PCB). According to one embodiment, the antenna module (897) may include a plurality of antennas (e.g., an array antenna). In this case, at least one antenna suitable for a communication method used in a communication network, such as a first network (898) or a second network (899), may be selected from the plurality of antennas, for example, by a communication module (890). A signal or power may be transmitted or received between the communication module (890) and an external electronic device through the selected at least one antenna. According to some embodiments, in addition to the radiator, other components (e.g., a radio frequency integrated circuit (RFIC)) may be additionally formed as part of the antenna module (897).

[0114] According to various embodiments, the antenna module (897) may form a mmWave antenna module. According to one embodiment, the mmWave antenna module may include a printed circuit board, an RFIC disposed on or adjacent to a first surface (e.g., bottom surface) of the printed circuit board and capable of supporting a specified high frequency band (e.g., mmWave band), and a plurality of antennas (e.g., array antennas) disposed on or adjacent to a second surface (e.g., top surface or side surface) of the printed circuit board and capable of transmitting or receiving a signal of the specified high frequency band.

[0115] At least some of the above components can be connected to each other via a communication method between peripheral devices (e.g., bus, GPIO (general purpose input and output), SPI (serial peripheral interface), or MIPI (mobile industry processor interface)) and exchange signals (e.g., commands or data) with each other.

[0116] According to one embodiment, commands or data may be transmitted or received between an electronic device (801) and an external electronic device (804) through a server (808) connected to a second network (899). Each of the external electronic devices (802, or 804) may be the same or a different type of device as the electronic device (801). According to one embodiment, all or part of the operations performed on the electronic device (801) may be performed on one or more of the external electronic devices (802, 804, or 808). For example, if the electronic device (801) needs to perform a function or service automatically or in response to a request from a user or another device, the electronic device (801) may request one or more external electronic devices to perform at least part of the function or service instead of performing the function or service itself or additionally. One or more external electronic devices that receive the above request may execute at least part of the requested function or service, or additional function or service related to the request, and transmit the result of the execution to the electronic device (801). The electronic device (801) may provide the result as is or additionally processed as at least part of the response to the request. For this purpose, for example, cloud computing, distributed computing, mobile edge computing (MEC), or client-server computing technology may be used. The electronic device (801) may provide ultra-low latency services using, for example, distributed computing or mobile edge computing. In one embodiment, the external electronic device (804) may include an Internet of Things (IoT) device. The server (808) may be an intelligent server using machine learning and / or neural networks. According to one embodiment, the external electronic device (804) or the server (808) may be included within a second network (899).The electronic device (801) can be applied to intelligent services (e.g., smart home, smart city, smart car, or healthcare) based on 5G communication technology and IoT-related technology.

[0117] The technical problems to be solved in this disclosure are not limited to those mentioned above, and other technical problems not mentioned will be clearly understood by those skilled in the art to which this disclosure pertains.

[0118] As described above, an electronic device (e.g., electronic device (101)) may include at least one processor (e.g., at least one processor (110)) comprising a first speaker (e.g., first speaker (131)), a second speaker (e.g., second speaker (132)), and a processing circuit; and a memory (e.g., memory (120)) that stores instructions and includes one or more storage media. The instructions, when executed individually or collectively by the at least one processor, may cause the electronic device to: output audio data from the at least one processor to the first speaker and the second speaker, respectively; identify whether the output difference between the volume output from the first speaker and the volume output from the second speaker in the first frequency band and the second frequency band of the audio data exceeds a reference value; obtain a calibration value based on the output difference exceeding the reference value; and adjust the volume of the first speaker or the volume of the second speaker by the calibration value.

[0119] For example, when the above instructions are executed individually or collectively by the at least one processor, the electronic device may be caused to: identify, from the audio data, a first audio data component of the first frequency band and a second audio data component of the second frequency band, and by outputting the first audio data component of the first frequency band from the at least one processor to the first speaker and the second speaker respectively, identify a value corresponding to the difference between the volume output from the first speaker and the volume output from the second speaker as a first value; by outputting the second audio data component of the second frequency band from the at least one processor to the first speaker and the second speaker respectively, identify a value corresponding to the difference between the volume output from the first speaker and the volume output from the second speaker as a second value; and, based on the identification of the first value exceeding the reference value or the second value exceeding the reference value, identify that the output difference exceeds the reference value.

[0120] For example, the above correction value may be between the first value and the second value.

[0121] For example, the above correction value may correspond to the average value of the first value and the second value.

[0122] For example, when the above instructions are executed individually or collectively by the at least one processor, the electronic device may be caused to: identify the reference value as the correction value based on the average value exceeding the reference value; and identify the other reference value as the correction value based on the identification of the average value less than the other reference value. The other reference value may be lower than the reference value.

[0123] For example, when the above instructions are executed individually or collectively by the at least one processor: based on obtaining the correction value, the correction value is stored in the memory; when the electronic device is booted, the at least one processor reads the correction value stored in the memory; and based on the read correction value, the electronic device may be caused to adjust the volume of the first speaker or the volume of the second speaker.

[0124] For example, the above volume adjustment may be intended to adjust the output difference to be below the reference value using the above correction value.

[0125] For example, the electronic device may further include a microphone (e.g., microphone (140)). The instructions, when executed individually or collectively by the at least one processor, may cause the electronic device to: identify, from the audio data, a first audio data component of the first frequency band and a second audio data component of the second frequency band; identify, using the microphone, the volume output from the first speaker and the volume output from the second speaker by outputting the first audio data component of the first frequency band from the at least one processor to the first speaker and the second speaker, respectively; and identify, using the microphone, the volume output from the first speaker and the volume output from the second speaker by outputting the second audio data component of the second frequency band from the at least one processor to the first speaker and the second speaker, respectively.

[0126] For example, the correction value may be obtained from an external electronic device (e.g., external electronic device (401)) that identifies the volume output from the first speaker and the volume output from the second speaker.

[0127] For example, the electronic device may further include a third speaker (e.g., third speaker (133)); and a fourth speaker (e.g., third speaker (134)). The output difference may be a first output difference. The instructions, when executed individually or collectively by the at least one processor, may cause the electronic device to: output the audio data from the at least one processor to the third speaker and the fourth speaker, respectively; identify whether the second output difference between the volume output from the third speaker and the volume output from the fourth speaker in the third frequency band and the fourth frequency band of the audio data exceeds the reference value; obtain a different calibration value based on the second output difference exceeding the reference value; and adjust the volume of the third speaker or the volume of the fourth speaker by the different calibration value. The third frequency band and the fourth frequency band, respectively, may be higher than the first frequency band and the second frequency band.

[0128] For example, the at least one processor may further include a digital signal processor (e.g., a digital signal processor (112)) comprising a processing circuit for processing the audio data. When the instructions are executed individually or collectively by the at least one processor, they may cause the electronic device to: identify a stream type of the audio data; perform volume adjustment through the digital signal processor based on the fact that the stream type of the audio data is identified as a defined stream type; and refrain from volume adjustment based on the fact that the stream type of the audio data is not identified as a defined stream type.

[0129] A non-transient computer-readable storage medium as described above may store one or more programs. The one or more programs may include instructions that, when executed by an electronic device (e.g., electronic device (101)) having a first speaker (e.g., first speaker (131)) and a second speaker (e.g., second speaker (132)), output audio data to each of the first speaker and the second speaker; identify whether the output difference between the volume output from the first speaker and the volume output from the second speaker in the first frequency band and the second frequency band of the audio data exceeds a reference value; obtain a calibration value based on the output difference exceeding the reference value; and cause the electronic device to adjust the volume of the first speaker or the volume of the second speaker by the calibration value.

[0130] For example, the above one or more programs may include instructions that, when executed by the electronic device, identify, from the audio data, a first audio data component of the first frequency band and a second audio data component of the second frequency band; identify a value corresponding to the difference between the volume output from the first speaker and the volume output from the second speaker by outputting the first audio data component of the first frequency band to the first speaker and the second speaker, respectively, as a first value; identify a value corresponding to the difference between the volume output from the first speaker and the volume output from the second speaker by outputting the second audio data component of the second frequency band to the first speaker and the second speaker, respectively, as a second value; and cause the electronic device to identify that the output difference exceeds the reference value based on the first value exceeding the reference value or the second value exceeding the reference value.

[0131] For example, the above correction value may be between the first value and the second value.

[0132] For example, the above correction value may correspond to the average value of the first value and the second value.

[0133] For example, volume adjustment may be intended to adjust the output difference to be below the reference value using the correction value.

[0134] For example, the electronic device may further include a microphone (e.g., microphone (140)). The one or more programs may include instructions that, when executed by the electronic device, cause the electronic device to: identify, from the audio data, a first audio data component of the first frequency band and a second audio data component of the second frequency band; identify, using the microphone, the volume output from the first speaker and the volume output from the second speaker by outputting the first audio data component of the first frequency band to the first speaker and the second speaker, respectively; and identify, using the microphone, the volume output from the first speaker and the volume output from the second speaker by outputting the second audio data component of the second frequency band to the first speaker and the second speaker, respectively.

[0135] For example, the correction value may be obtained from an external electronic device (e.g., external electronic device (401)) that identifies the volume output from the first speaker and the volume output from the second speaker.

[0136] As described above, an electronic device (e.g., electronic device (101)) may include at least one processor (e.g., at least one processor (110)) comprising a first speaker (e.g., first speaker (131)), a second speaker (e.g., second speaker (132)), and a processing circuit; and a memory (e.g., memory (120)) comprising one or more storage media for storing instructions. The at least one processor may include a digital signal processor (e.g., digital signal processor (112)) comprising a processing circuit for processing audio data. When the instructions are executed individually or collectively by the at least one processor: identify a stream type of the audio data to be output from the at least one processor to the first speaker and the second speaker, respectively; and, based on the fact that the stream type of the audio data is identified as a defined stream type, perform volume adjustment between the first speaker and the second speaker through the digital signal processor; Based on the fact that the stream type of the above audio data is not identified as the defined stream type, the electronic device may be caused to refrain from volume adjustment.

[0137] For example, the stream type defined above may be intended to provide spatial acoustics in which the volume corresponding to the audio data to be output through the first speaker and the volume corresponding to the audio data to be output through the second speaker are different.

[0138] A non-transient computer-readable storage medium as described above may store one or more programs. The one or more programs may include instructions that, when executed by an electronic device (e.g., electronic device (101)) having a first speaker (e.g., first speaker (131)), a second speaker (e.g., second speaker (132)), and a digital signal processor (e.g., digital signal processor (112)) for processing audio data, identify a stream type of the audio data to be output from the at least one processor to each of the first speaker and the second speaker; perform volume adjustment between the first speaker and the second speaker through the digital signal processor based on the fact that the stream type of the audio data is identified as a defined stream type; and cause the electronic device to refrain from volume adjustment based on the fact that the stream type of the audio data is not identified as the defined stream type.

[0139] The effects obtainable from the present disclosure are not limited to those mentioned above, and other unmentioned effects will be clearly understood by those skilled in the art to which the present disclosure belongs.

[0140] The electronic device according to the various embodiments disclosed in this document may be of various forms. The electronic device may include, for example, a portable communication device (e.g., a smartphone), a computer device, a portable multimedia device, a portable medical device, a camera, a wearable device, or a consumer electronics device. The electronic device according to the embodiments of this document is not limited to the devices described above.

[0141] The various embodiments of this document and the terms used therein are not intended to limit the technical features described in this document to specific embodiments, and should be understood to include various modifications, equivalents, or substitutions of said embodiments. In connection with the description of the drawings, similar reference numerals may be used for similar or related components. The singular form of a noun corresponding to an item may include one or more of said items unless the relevant context clearly indicates otherwise. In this document, phrases such as "A or B," "at least one of A and B," "at least one of A or B," "A, B or C," "at least one of A, B and C," and "at least one of A, B, or C" may each include any one of the items listed together in the corresponding phrase, or all possible combinations thereof. Terms such as "first," "second," or "first" or "second" may be used simply to distinguish said components from other said components and do not limit said components in any other aspect (e.g., importance or order). Where any (e.g., 1st) component is referred to as "coupled" or "connected" to another (e.g., 2nd) component, with or without the terms "functionally" or "communicationly," it means that said any component may be connected to said other component directly (e.g., via a wire), wirelessly, or through a third component.

[0142] The term “module” as used in the various embodiments of this document may include a unit implemented in hardware, software, or firmware, and may be used interchangeably with terms such as logic, logic block, component, or circuit, for example. A module may be a component formed integrally, or a minimum unit of said component or a part thereof that performs one or more functions. For example, according to one embodiment, a module may be implemented in the form of an application-specific integrated circuit (ASIC).

[0143] Various embodiments of the present document may be implemented as software (e.g., program (840)) comprising one or more instructions stored in a storage medium (e.g., internal memory (836) or external memory (838)) readable by a machine (e.g., electronic device (801)). For example, a processor (e.g., processor (820)) of the machine (e.g., electronic device (801)) may call at least one of the one or more instructions stored from the storage medium and execute it. This enables the machine to operate to perform at least one function according to the at least one called instruction. The one or more instructions may include code generated by a compiler or code that can be executed by an interpreter. The storage medium readable by the machine may be provided in the form of a non-transitory storage medium. Here, 'non-temporary' simply means that the storage medium is a tangible device and does not contain a signal (e.g., electromagnetic waves), and the term does not distinguish between cases where data is stored semi-permanently and cases where it is stored temporarily.

[0144] According to one embodiment, the method according to the various embodiments disclosed herein may be provided by being included in a computer program product. The computer program product may be traded between a seller and a buyer as a product. The computer program product may be distributed in the form of a device-readable storage medium (e.g., compact disc read-only memory (CD-ROM)), or distributed online (e.g., download or upload) through an application store (e.g., Play Store™) or directly between two user devices (e.g., smartphones). In the case of online distribution, at least a portion of the computer program product may be temporarily stored or temporarily created on a device-readable storage medium, such as the memory of a manufacturer's server, an application store's server, or a relay server.

[0145] According to various embodiments, each component (e.g., module or program) of the components described above may include a singular or multiple entities, and some of the multiple entities may be separated and placed in other components. According to various embodiments, one or more of the components or operations of the aforementioned components may be omitted, or one or more other components or operations may be added. Generally or additionally, multiple components (e.g., module or program) may be integrated into a single component. In this case, the integrated component may perform one or more functions of each of the multiple components in the same or similar manner as those performed by the corresponding component among the multiple components prior to integration. According to various embodiments, operations performed by the module, program, or other components may be executed sequentially, in parallel, iteratively, or heuristically, or one or more of the operations may be executed in a different order, omitted, or one or more other operations may be added.

Claims

1. In an electronic device, First speaker; Second speaker; At least one processor including a processing circuit; and Memory that stores instructions and includes one or more storage media, When the above instructions are executed individually or collectively by the at least one processor: Audio data is output from the above at least one processor to the first speaker and the second speaker, respectively; Identifying whether the output difference between the volume output from the first speaker and the volume output from the second speaker in the first frequency band and the second frequency band of the audio data exceeds a reference value; Based on the output difference exceeding the above reference value, a calibration value is obtained; and To adjust the volume of the first speaker or the second speaker by the correction value. The above electronic device, causing, Electronic device.

2. In Claim 1, When the above instructions are executed individually or collectively by the at least one processor: Identifying a first audio data component of the first frequency band and a second audio data component of the second frequency band from the above audio data; By outputting the first audio data component of the first frequency band from the at least one processor to the first speaker and the second speaker, respectively, a value corresponding to the difference between the volume output from the first speaker and the volume output from the second speaker is identified as a first value; By outputting the second audio data component of the second frequency band from the at least one processor to the first speaker and the second speaker, respectively, a value corresponding to the difference between the volume output from the first speaker and the volume output from the second speaker is identified as a second value; and Based on identifying the first value or the second value that exceeds the reference value, the output difference is identified as exceeding the reference value. The above electronic device, causing, Electronic device.

3. In Claim 2, The above correction value is between the above first value and the above second value, Electronic device.

4. In Claim 3, The above correction value corresponds to the average value of the first value and the second value, Electronic device.

5. In Claim 4, When the above instructions are executed individually or collectively by the at least one processor: Identifying the reference value as the correction value based on the average value exceeding the reference value; and To identify the other reference value as the correction value based on the identification of the average value below the other reference value, The above electronic device, causing, The above other standard value is lower than the above standard value, Electronic device.

6. In Claim 1, When the above instructions are executed individually or collectively by the at least one processor: Based on obtaining the above correction value, the above correction value is stored in the memory; When the electronic device is booted, the correction value stored in the memory is read by the at least one processor; and Based on the correction value read above, to adjust the volume of the first speaker or the volume of the second speaker, The above electronic device, causing, Electronic device.

7. In Claim 1, The above volume adjustment is intended to adjust the output difference to be below the reference value using the above correction value, Electronic device.

8. In Claim 1, The above electronic device is, Includes additional microphones, When the above instructions are executed individually or collectively by the at least one processor: Identifying a first audio data component of the first frequency band and a second audio data component of the second frequency band from the above audio data; By outputting the first audio data component of the first frequency band from the at least one processor to the first speaker and the second speaker, respectively, the volume output from the first speaker and the volume output from the second speaker are identified using the microphone; and By outputting the second audio data component of the second frequency band from the at least one processor to the first speaker and the second speaker, respectively, the volume output from the first speaker and the volume output from the second speaker are identified using the microphone. The above electronic device, causing, Electronic device.

9. In Claim 1, The above correction value is obtained from an external electronic device that identifies the volume output from the first speaker and the volume output from the second speaker, Electronic device.

10. In Claim 1, The above electronic device is, Third speaker; and It further includes a fourth speaker, The above output difference is the first output difference, and When the above instructions are executed individually or collectively by the at least one processor: Output the above audio data from the at least one processor to the third speaker and the fourth speaker, respectively; Identifying whether the second output difference between the volume output from the third speaker and the volume output from the fourth speaker in the third frequency band and the fourth frequency band of the audio data exceeds the reference value; Based on the second output difference exceeding the above reference value, another calibration value is obtained; and To adjust the volume of the third speaker or the volume of the fourth speaker by the other correction value. The above electronic device, causing, Each of the above third frequency band and the above fourth frequency band is higher than the above first frequency band and the above second frequency band, Electronic device.

11. In Claim 1, The above at least one processor further includes a digital signal processor comprising a processing circuit for processing the audio data, and When the above instructions are executed individually or collectively by the at least one processor: Identify the stream type of the above audio data; Based on the fact that the stream type of the above audio data is identified as a defined stream type, volume adjustment is performed through the digital signal processor; and Based on the fact that the stream type of the above audio data is not identified as the defined stream type, the volume adjustment is to be avoided. The above electronic device, causing, Electronic device.

12. In a non-transient computer-readable storage medium storing one or more programs, said one or more programs, when executed by an electronic device having a first speaker and a second speaker: Output audio data to each of the first speaker and the second speaker; Identifying whether the output difference between the volume output from the first speaker and the volume output from the second speaker in the first frequency band and the second frequency band of the audio data exceeds a reference value; Based on the output difference exceeding the above reference value, a calibration value is obtained; and To adjust the volume of the first speaker or the second speaker by the correction value. Instructions including those that cause the above electronic device Non-transient computer-readable storage media.

13. In Claim 12, When one or more of the above programs are executed by the electronic device: Identifying a first audio data component of the first frequency band and a second audio data component of the second frequency band from the above audio data; By outputting the first audio data component of the first frequency band to each of the first speaker and the second speaker, a value corresponding to the difference between the volume output from the first speaker and the volume output from the second speaker is identified as a first value; By outputting the second audio data component of the second frequency band to each of the first speaker and the second speaker, a value corresponding to the difference between the volume output from the first speaker and the volume output from the second speaker is identified as a second value; and Based on the first value exceeding the reference value or the second value exceeding the reference value, to identify that the output difference exceeds the reference value. Instructions including those that cause the above electronic device Non-transient computer-readable storage media.

14. In Claim 13, The above correction value is between the above first value and the above second value, Non-transient computer-readable storage media.

15. In Claim 14, The above correction value corresponds to the average value of the first value and the second value, Non-transient computer-readable storage media.