Electronic device and control method thereof

By measuring ambient sound, using the signal-to-noise ratio to determine sound quality, and synthesizing high-quality audio signals, the problem of noise cancellation functions being unable to completely remove noise is solved, thus improving the clarity of audio signals and user experience.

CN121533036APending Publication Date: 2026-02-13SAMSUNG ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202480047441.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-10-16
Filing Date
2024-07-23
Publication Date
2026-02-13

AI Technical Summary

Technical Problem

In existing technologies, noise cancellation functions cannot completely remove environmental noise, resulting in users experiencing low-quality audio when listening to the target audio.

Method used

By measuring ambient sound, the target audio signal is obtained and the sound quality is judged based on the signal-to-noise ratio (SNR). The target audio signal is sent to an external server, the source audio signal is received, and the ambient noise is attenuated by inverting the signal. A high-quality audio signal is then synthesized and sent to an external sound device.

Benefits of technology

It enables the provision of high-quality target audio signals during noise cancellation, enhancing the user's audio experience and ensuring the clarity and accuracy of the audio signal.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121533036A_ABST
    Figure CN121533036A_ABST
Patent Text Reader

Abstract

An electronic device may include a memory, a communication interface configured to perform communication with an external server, and at least one processor including processing circuitry, and the at least one processor may be configured to: obtain audio data of ambient sound; obtaining a target audio signal of a preset type from the audio data; obtaining sound quality information of the target audio signal; sending a target audio signal to an external server through the communication interface based on the condition that the sound quality information is not equal to or greater than a threshold level; receiving a source audio signal corresponding to the target audio signal from an external server through the communication interface; identifying a playback time of the source audio signal based on the target audio signal; and providing a synthesized audio signal in which the inverted signal corresponding to the audio data and the source audio signal are synthesized based on the playback time.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] Certain example embodiments relate to an electronic device and a control method thereof, and for example, to an electronic device providing a noise canceling function and / or a control method thereof. BACKGROUND

[0002] Noise canceling is a function of removing or reducing unwanted environmental noise from your environment. A user can set which signals are considered noise. Depending on the user settings or preset methods, sounds determined as noise can be attenuated (or removed) by the noise canceling function.

[0003] However, if a user wants to hear only a target portion of the measured sound in the surrounding environment, excluding the noise portion of the sound, there is a problem of poor sound quality. This is because the noise can not be completely removed, depending on the performance of the noise filtering function.

[0004] If the target portion is output when the noise is not completely removed, the user can feel that he or she is listening to low-quality audio.

[0005] The electronic device 100 can identify audio collected from the surrounding environment and provide an audio search result. The search result can include information indicating which music or content the collected audio corresponds to.

[0006] When playing the retrieved content while the noise canceling function is performed, the environmental noise that is not completely removed as well as the content can be heard, which can be inconvenient for the user. SUMMARY

[0007] TECHNICAL SOLUTION

[0008] Certain example embodiments improve the above-described problems, measure environmental sound to obtain a target audio signal desired by a user and determine whether to receive a source audio signal from an external server by considering the quality of the target audio signal.

[0009] An electronic device according to an example embodiment can include a memory, a communication interface including communication circuitry configured to perform communication with an external server, and at least one processor including processing circuitry, wherein the at least one processor is individually and / or collectively configured to obtain audio data of environmental sound, obtain a preset type of target audio signal from the audio data, obtain sound quality information of the target audio signal, based on the sound quality information being not equal to or greater than a threshold level, transmit the target audio signal to the external server through the communication interface, receive a source audio signal corresponding to the target audio signal from the external server through the communication interface, identify a playback time of the source audio signal based on the target audio signal, and provide a synthesized audio signal in which the source audio signal and an inverted signal corresponding to the audio data are synthesized based on the playback time.

[0010] The at least one processor can be configured to obtain a target audio signal and a noise signal from the audio data, obtain a signal-to-noise ratio (SNR) based on the target audio signal and the noise signal, and obtain sound quality information based on the signal-to-noise ratio (SNR).

[0011] The at least one processor can be configured to transmit the target audio signal to an external server through the communication interface based on the signal-to-noise ratio (SNR) being less than a threshold value.

[0012] The at least one processor can be configured to determine a sound quality level of the first audio signal based on the signal-to-noise ratio (SNR) and a ranking table of sound qualities stored in the memory, and obtain the sound quality information including the sound quality level.

[0013] The at least one processor can be configured to obtain an inverted signal to attenuate ambient sound by inverting a phase of a signal included in the audio data.

[0014] The at least one processor can be configured to determine a playback time of the source audio signal by comparing a waveform of the target audio signal and a waveform of the source audio signal, obtain a synthesized audio signal by synthesizing the inverted signal and a region of the source audio signal corresponding to the playback time among an entire region of the source audio signal, and provide the synthesized audio signal.

[0015] The at least one processor can be configured to transmit the synthesized audio signal to an external sound device through the communication interface.

[0016] The external sound device can be a wireless earphone or a wireless headphone, and the at least one processor can be configured to transmit the synthesized audio signal to the external sound device via a Bluetooth communication module included in the communication interface, the Bluetooth communication module including a Bluetooth communication circuit.

[0017] The synthesized audio signal can be a first synthesized audio signal, and the at least one processor can be configured to obtain a second synthesized audio signal in which the target audio signal and an inverted signal corresponding to the audio data are synthesized based on the sound quality information being equal to or greater than a threshold level, and provide the second synthesized audio signal.

[0018] The at least one processor can be configured to obtain a converted signal by converting the target audio signal to a stereo type based on the output method of the target audio signal being a mono type, and obtain a second synthesized audio signal by synthesizing the converted signal and the inverted signal.

[0019] A control method of an electronic device that performs communication with an external server according to an example embodiment can include obtaining audio data of an ambient sound, obtaining a target audio signal of a preset type from the audio data, obtaining sound quality information of the target audio signal, based on the sound quality information being equal to or greater than a threshold level, transmitting the target audio signal to the external server, receiving a source audio signal corresponding to the target audio signal from the external server, identifying a playback time of the source audio signal based on the target audio signal, and providing a synthesized audio signal in which the source audio signal and an inverted signal corresponding to the audio data are synthesized based on the playback time.

[0020] Obtaining the sound quality information can include obtaining the target audio signal and a noise signal from the audio data, obtaining a signal-to-noise ratio (SNR) based on the target audio signal and the noise signal, and obtaining the sound quality information based on the signal-to-noise ratio (SNR).

[0021] Transmitting the target audio signal to the external server can include transmitting the target audio signal to the external server based on the signal-to-noise ratio (SNR) being less than a threshold value.

[0022] Obtaining the sound quality information can include determining a sound quality level of the first audio signal based on the signal-to-noise ratio (SNR) and a level table of sound qualities stored in the electronic device, and obtaining the sound quality information including the sound quality level.

[0023] The method can further include obtaining the inverted signal to attenuate the ambient sound by inverting a phase of a signal included in the audio data.

[0024] Providing the synthesized signal can include determining a playback time of the source audio signal by comparing a waveform of the target audio signal and a waveform of the source audio signal, obtaining the synthesized audio signal by synthesizing the inverted signal and a region of the source audio signal corresponding to the playback time among an entire region of the source audio signal, and providing the synthesized audio signal.

[0025] The control method can further include transmitting the synthesized audio signal to an external sound device.

[0026] The external sound device can be a wireless earphone or a wireless headphone, and transmitting the synthesized audio signal to the external sound device can include transmitting the synthesized audio signal to the external sound device through a Bluetooth communication module included in the electronic device.

[0027] The synthesized audio signal can be a first synthesized audio signal, and the control method can further include, based on the sound quality information being equal to or greater than a threshold level, obtaining a second synthesized audio signal in which the target audio signal and the inverted signal corresponding to the audio data are synthesized, and providing the second synthesized audio signal.

[0028] The control method can further include, based on the output method of the target audio signal being a mono type, obtaining a converted signal by converting the target audio signal into a stereo type, and the obtaining of the second synthesized signal can include obtaining the second synthesized audio signal by synthesizing the converted signal and the inverted signal. BRIEF DESCRIPTION OF DRAWINGS

[0029] Figure 1 is a diagram for explaining a noise canceling function according to an example embodiment;

[0030] Figure 2 is a block diagram illustrating an electronic device according to an example embodiment;

[0031] Figure 3 is a block diagram for explaining a specific configuration of an electronic device according to an example embodiment; Figure 2

[0032] Figure 4 is a diagram for explaining a mode executed in an electronic device according to an example embodiment;

[0033] Figure 5 is a diagram for explaining an operation of obtaining an audio signal according to an example embodiment;

[0034] Figure 6 is a diagram for explaining a content providing method using sound quality information according to an example embodiment;

[0035] Figure 7 is a diagram for explaining an operation of determining different content providing methods using sound quality information according to an example embodiment;

[0036] Figure 8 is a diagram for explaining audio data according to an example embodiment;

[0037] Figure 9 is a diagram for explaining a level standard of sound quality information according to an example embodiment;

[0038] Figure 10 is a diagram for explaining an operation of obtaining sound quality information using a signal-to-noise ratio (SNR) according to an example embodiment;

[0039] Figure 11 is a diagram for explaining an operation of determining a content providing method using a signal-to-noise ratio (SNR) according to an example embodiment;

[0040] Figure 12 is a diagram for explaining an operation of obtaining sound quality information using a recognition rate according to an example embodiment;

[0041] Figure 13 ​FIG. 1 is a diagram for explaining an operation of determining a content providing method using a recognition rate according to an example embodiment;

[0042] Figure 14 FIG. 2 is a diagram for explaining an operation of determining a playback time of a third audio signal according to an example embodiment;

[0043] Figure 15 FIG. 3 is a diagram for explaining an operation of converting a first audio signal according to an example embodiment;

[0044] Figure 16 FIG. 4 is a diagram for explaining an operation of filtering only noise according to an example embodiment;

[0045] Figure 17 FIG. 5 is a diagram for explaining a user interface (UI) related to a content providing service according to an example embodiment;

[0046] Figure 18 FIG. 6 is a diagram for explaining an operation of providing an audio signal using a sound device according to an example embodiment;

[0047] Figure 19 FIG. 7 is a diagram for explaining an operation of providing an audio signal using a sound device according to an example embodiment;

[0048] Figure 20 FIG. 8 is a diagram for explaining an operation of providing an audio signal using a sound device according to an example embodiment; and

[0049] Figure 21 FIG. 9 is a diagram for explaining an example embodiment. DETAILED DESCRIPTION

[0050] Hereinafter, the present disclosure will be described in detail with reference to the accompanying drawings.

[0051] In consideration of the functions in the present disclosure, general terms used herein are selected from the terms currently widely used in the art, and the meanings of the terms are used based on the intentions of the skilled in the art and the judicial precedents, the emergence of new technologies, and the like. Also, in a certain case, a term arbitrarily selected by the applicant is used. In this case, the meaning of the term is clearly mentioned in the corresponding description in the present disclosure. Therefore, the meaning of the terms used in the embodiments of the present disclosure needs to be defined based on the meanings of the terms and the contents throughout the disclosure rather than the simple names of the terms.

[0052] In the present disclosure, the expressions "have," "may have," "include," "may include," etc. indicate the presence of the corresponding features (for example, numerical values, functions, operations, or components such as parts), and do not exclude the presence of additional features.

[0053] The expression "at least one of A or / and B" shall be understood to indicate any one of "A", "B", or "both A and B".

[0054] The expressions "1st", "2nd", "first", "second", and the like used in the disclosure can indicate various components regardless of the order and / or importance of the components. The expressions are used only to distinguish one component from another component, and do not limit the corresponding components.

[0055] In the case where any component (for example, a first component) is mentioned as being "coupled to / with another component (for example, a second component) (operatively or communicatively)" or "connected to another component (for example, a second component)", it should be understood that the any component is directly coupled to the other component or can be coupled to the other component through at least another component (for example, a third component).

[0056] Unless the context clearly indicates otherwise, a singular term can include a plural. It should be understood that the terms "comprise", "consist of", and the like used in the present application specify the presence of features, numbers, steps, operations, components, parts, or combinations thereof mentioned in the specification, and do not exclude the presence or addition of one or more other features, numbers, steps, operations, components, parts, or combinations thereof.

[0057] In an embodiment, a "module" or a "unit" can perform at least one function or operation, and can be implemented by hardware or software, or by a combination of hardware and software. In addition, except for a "module" or a "unit" that needs to be implemented by a specific hardware, a plurality of "modules" or a plurality of "units" can be integrated into at least one module and implemented by at least one processor (not shown). Accordingly, each "module" herein can include a circuit.

[0058] In the disclosure, the term "user" can refer to a person using an electronic device or a device (for example, an artificial intelligence electronic device) using an electronic device.

[0059] Hereinafter, the disclosure will be described in more detail with reference to the accompanying drawings.

[0060] Figure 1 is a diagram for explaining a noise canceling function according to an embodiment.

[0061] Reference Figure 1, the electronic device 100 can perform a noise canceling mode. The noise canceling mode can be a mode of attenuating (or filtering) a signal set as a target noise signal. The electronic device 100 can receive an environmental sound (noise, music). The electronic device 100 can include a filtering module 121. The electronic device 100 can remove noise from the environmental sound through the filtering module 121. The electronic device 100 can provide a de-noised audio signal.

[0062] The filtering module 121 including the filtering circuit can be described as a noise filtering module, a sound filtering module, or the like.

[0063] According to an embodiment, the electronic device 100 can remove only noise from the environmental sound. The electronic device 100 can provide music included in the environmental sound as it is.

[0064] According to an embodiment, the electronic device 100 can obtain high-quality music data corresponding to music (low-quality) from the environmental sound. The electronic device 100 can filter (block, attenuate, or cancel) all of the environmental sound (low-quality music, noise) and provide the high-quality music data.

[0065] Figure 2 is a block diagram illustrating an electronic device 100 according to an embodiment.

[0066] Reference Figure 2 , the electronic device 100 can include at least one of a memory 110, at least one processor 120, or a communication interface 130.

[0067] The memory 110 can store a table of grades of sound quality. This will be described with reference to Figure 9 .

[0068] The communication interface 130 can be directly or indirectly coupled to the external sound device 200 or the external server 300 (for example, see 200 and 300 in Figures 18 to 20 ).

[0069] The electronic device 100 can be an electronic blackboard, a television, a desktop PC, a laptop computer, a smart phone, a tablet PC, a server, or the like. The above examples are for illustrative purposes of the electronic device only, and are not necessarily limited to the above electronic devices.

[0070] The at least one processor 120 can perform an overall control operation of the electronic device 100. The at least one processor 120 can perform a function of controlling the overall operation of the electronic device 100.

[0071] The at least one processor 120 can obtain audio data (first audio data) regarding an environmental sound, obtain a target audio signal (first audio signal) of a preset type from the audio data, obtain sound quality information of the target audio signal, and when the sound quality information is not equal to or greater than a threshold level, transmit the target audio signal to an external server through the communication interface 130, receive a source audio signal (third audio signal) corresponding to the target audio signal from the external server through the communication interface 130, identify a playback time of the source audio signal based on the target audio signal, and provide a synthesized audio signal (fourth audio signal) in which the source audio signal and an inverted signal corresponding to the audio data are synthesized based on the playback time.

[0072] The at least one processor 120 can obtain audio data regarding an environmental sound.

[0073] According to an embodiment, the at least one processor 120 can receive audio data that is a recording of an environmental sound. The at least one processor 120 can receive the audio data from the external sound device 200 through the communication interface 130. It will be described with reference to FIG. 2. Figures 18 to 20 The external sound device 200 will be described.

[0074] According to an embodiment, the electronic device 100 can include the microphone 180, and the at least one processor 120 can record an environmental sound through the microphone 180. The at least one processor 120 can obtain audio data regarding the environmental sound through the microphone 180.

[0075] The at least one processor 120 can determine whether the audio data includes a target audio signal of a preset type. The at least one processor 120 can identify the target audio signal of the preset type by analyzing the audio data.

[0076] The at least one processor 120 can obtain an audio signal included in the audio data. The at least one processor 120 can obtain feature information of the audio data, and determine whether the audio data includes an audio signal of a preset type based on the feature information of the audio data.

[0077] The audio data can include data in which a plurality of signals are mixed. The at least one processor 120 can obtain feature information including at least one of a frequency spectrum, a frequency band energy, a spectral average, a spectral analysis, energy variation information, amplitude variation information, and period variation information of the audio data. Based on the feature information, the at least one processor 120 can determine whether there is a signal of a preset type among the plurality of signals included in the audio data.

[0078] The preset type can include any content type including audio. For example, the preset type can include video content including audio, music content, etc. The preset type can be described as a target type, a target category, a preset category, etc.

[0079] The at least one processor 120 can obtain a target audio signal of a preset type from the audio data. The audio data can include a plurality of audio signals. The at least one processor 120 can identify (or extract) the target audio signal of the preset type from the plurality of audio signals.

[0080] The at least one processor 120 can obtain sound quality information of the target audio signal. The sound quality information can include information indicating accuracy and clarity of the audio signal. The sound quality information can include sound quality data indicating sound quality or a sound quality level indicating sound quality. The at least one processor 120 can obtain the sound quality data based on the audio data. The at least one processor 120 can obtain the sound quality level based on the audio data.

[0081] The sound quality level can include a plurality of levels classified according to a preset scheme. The sound quality level can represent a relative numerical value of sound quality of the audio data. The at least one processor 120 can compare the sound quality level with a threshold level. The threshold level can be changed based on a user setting.

[0082] According to an embodiment, the sound quality data can include a signal-to-noise ratio (SNR).

[0083] The at least one processor 120 can obtain a target audio signal and a noise signal from the audio data, obtain a signal-to-noise ratio (SNR) based on the target audio signal and the noise signal, and obtain sound quality information based on the signal-to-noise ratio (SNR).

[0084] When the signal-to-noise ratio (SNR) is less than a threshold value, the at least one processor 120 can transmit the target audio signal to the external server through the communication interface 130.

[0085] The at least one processor 120 can determine a sound quality level of the first audio signal based on the signal-to-noise ratio (SNR) and a level table of sound quality stored in the memory, and obtain sound quality information including the sound quality level.

[0086] A specific description related to the signal-to-noise ratio (SNR) will be provided in Figures 9 to 11

[0087] According to an embodiment, the at least one processor 120 can transmit the target audio signal to the external server 300. Since the at least one processor 120 has extracted the target audio signal that the user wants to listen to, it is possible to transmit only the target audio signal to the external server 300 (for example, see FIG. 1B). Figures 18 to 20 ​transmit the target audio signal.

[0088] According to an embodiment, the at least one processor 120 can transmit the audio data to the external server 300. The at least one processor 120 can transmit the audio data including both the target audio signal and the noise signal to the external server 300. The external server 300 can transmit the source audio signal (third audio signal) to the electronic device 100 based on the received audio data.

[0089] The at least one processor 120 can transmit the target audio signal (or audio data) to the external server 300 along with a control command (or control signal) requesting the external server 300 to provide a search result. The external server 300 can transmit a search result corresponding to the received target audio signal (or audio data) to the electronic device 100 based on the received control command.

[0090] The at least one processor 120 can obtain an inverted signal by inverting a phase of a signal included in the audio data to attenuate the ambient sound.

[0091] The at least one processor 120 can operate in one of a plurality of modes. The plurality of modes can include at least one of an ambient sound collection mode or a noise cancellation mode.

[0092] The ambient sound collection mode can be a mode for obtaining the audio data. The noise cancellation mode can be a mode for filtering a target noise sound from the ambient noise. The at least one processor 120 can identify the target noise sound as noise and can filter the target noise sound identified as noise from the audio data.

[0093] The at least one processor 120 can perform an operation of reducing an amplitude of the target noise sound when performing the noise cancellation mode. The at least one processor 120 can attenuate (or filter) the target noise sound.

[0094] The at least one processor 120 can obtain a target noise signal corresponding to the target noise sound to reduce the amplitude of the target noise sound. The at least one processor 120 can obtain an inverted signal (or inverted audio signal) having a phase opposite to that of the target noise signal.

[0095] The at least one processor 120 can perform a noise cancellation function by outputting the inverted signal. When the inverted signal is output in a phase opposite to that of the target noise signal, the amplitude of the target noise signal can be attenuated.

[0096] The at least one processor 120 can set the target noise signal according to a preset scheme when performing the noise cancellation mode.

[0097] According to an embodiment, the at least one processor 120 can set all sounds (or signals) of the environmental sound as the target noise sound (or target noise signal). The at least one processor 120 can attenuate (or filter) all sounds included in the environmental sound when the noise canceling mode is initiated. The at least one processor 120 can determine that all sounds included in the environmental sound are the target noise sound.

[0098] According to an embodiment, the at least one processor 120 can set only a noise signal among all sounds (or signals) of the environmental sound as the target noise sound (or target noise signal). The noise signal can include a signal that the user does not want to hear. The noise signal can include noise. The noise signal can denote a signal that does not correspond to speech, music, or the like. For example, the noise signal can include a machine sound, white noise, or the like. In the noise canceling mode, the at least one processor 120 can provide only audio (e.g., a caller's voice or music) that the user desires while attenuating the amplitude of the environmental noise. This will be described with reference to FIGS. 6 and 7. Figure 16 An embodiment describing this aspect is described.

[0099] The at least one processor 120 can compare a waveform of the target audio signal with a waveform of the source audio signal to determine a playback time of the source audio signal, synthesize (or combine) the inversion signal and a region corresponding to the playback time among the entire region of the source audio signal to obtain a synthesized audio signal, and provide the synthesized audio signal.

[0100] The region can be described as a frequency band, a portion, a segment, a clip, or the like.

[0101] The target audio signal included in the audio data can be an audio signal that is output based on a specific playback time. The source audio signal can be a signal received from the external server 300 as the entire data. The recorded (or collected) audio data can include only a signal corresponding to a specific playback time. The source audio signal received by the external server 300 can include a signal for an initial region or all regions.

[0102] The at least one processor 120 can need to determine whether to provide a signal from any point of time of the entire region of the source audio signal. The at least one processor 120 can compare a waveform of the target audio signal with the entire waveform of the source audio signal to determine a playback time of the source audio signal that is identical to the waveform of the target audio signal among the entire region of the source audio signal. The at least one processor 120 can extract (or obtain) a region corresponding to the playback time among the entire region of the source audio signal. The at least one processor 120 can obtain a synthesized audio signal by synthesizing the inversion signal and the region corresponding to the playback time.

[0103] For example, assume that the entire content of the target audio signal is music totaling 3 minutes and 30 seconds, and the currently playing part (target audio signal) is 1 minute and 10 seconds. The at least one processor 120 can determine 1 minute and 10 seconds as the playback time, and can provide a part of the source audio signal corresponding to 1 minute and 10 seconds. This will be described in more detail with reference to Figure 14 The playback time is described.

[0104] The playback time can be described as a playback region, a playback part, an output point, an output region, an output part, etc.

[0105] The at least one processor 120 can transmit the synthesized audio signal to the external sound device 200 through the communication interface 130.

[0106] The external sound device 200 can be a wireless earphone or a wireless headphone, and the at least one processor 120 can transmit the synthesized audio signal to the external sound device 200 through a Bluetooth communication module included in the communication interface 130. This will be described in more detail with reference to Figures 18 to 20 The external sound device 200 is described.

[0107] The synthesized audio signal is a first synthesized audio signal, and when the sound quality information is equal to or greater than the threshold level, the at least one processor 120 can obtain a second synthesized audio signal (second audio signal) that synthesizes the target audio signal and an inverted signal corresponding to the audio data, and provide the second synthesized audio signal (second audio signal).

[0108] When the sound quality information is equal to or greater than the threshold level, the at least one processor 120 can determine that the source audio signal does not need to be obtained from the external server 300. This is because the target audio signal is determined to be of high quality. When the sound quality information of the audio data is equal to or greater than the threshold level, the at least one processor 120 can provide the target audio signal.

[0109] The at least one processor 120 can provide only the target audio signal while simultaneously performing a noise canceling mode. The noise canceling mode can be a function of blocking (or attenuating) at least some of the ambient noise. The at least one processor 120 can provide the extracted target audio signal while performing the noise canceling mode. This will be described in more detail with reference to Figure 6 .

[0110] When the output method of the target audio signal is a mono type, the at least one processor 120 can obtain a converted signal by converting the target audio signal to a stereo type, and can obtain a second synthesized audio signal (second audio signal) by synthesizing the converted signal and the inverted signal. This will be described in more detail with reference to Figure 15 its description is provided.

[0111] The operation of providing an audio signal or audio data can include an output operation or a transmission operation.

[0112] According to an embodiment, the at least one processor 120 can output the audio signal through a speaker 170 included in the electronic device 100.

[0113] According to an embodiment, the at least one processor 120 can transmit the audio signal to an external server 300.

[0114] The operation of recording audio data, the operation of analyzing audio data, and the operation of outputting an audio signal can be respectively performed in the electronic device 100 and the sound device 200.

[0115] The audio signal providing method of the electronic device 100 according to various embodiments can selectively (or collectively) provide a target audio signal of a preset type to a user.

[0116] Figure 3 is a block diagram for explaining a specific configuration of the electronic device 100 according to an embodiment of Figure 2

[0117] Referring to Figure 3 , the electronic device 100 can include at least one of a memory 110, at least one processor 120, a communication interface 130, a display 140, a manipulation interface 150, an input / output interface 160, a speaker 170, a microphone 180, and a camera 190.

[0118] The memory 110 can be implemented as an internal memory such as a ROM (e.g., an electrically erasable programmable read only memory (EEPROM)) and a RAM included in the at least one processor 120, or can be implemented as a separate memory. The memory 110 can be implemented as a memory embedded in the electronic device 100 or a memory detachable from the electronic device 100, depending on a data storage purpose. For example, in the case of data for driving the electronic device 100, the data can be stored in a memory embedded in the electronic device 100, and in the case of data for an extension function of the electronic device 100, the data can be stored in a memory detachable from the electronic device 100.

[0119] ​The memory embedded in the electronic device 100 can be implemented as at least one of a volatile memory (e.g., a dynamic RAM (DRAM), a static RAM (SRAM), or a synchronous dynamic RAM (SDRAM)), a non-volatile memory (e.g., a one time programmable ROM (OTPROM), a programmable ROM (PROM), an erasable and programmable ROM (EPROM), an electrically erasable and programmable ROM (EEPROM), a mask ROM, a flash ROM, a flash memory (e.g., a NAND flash or a NOR flash), a hard drive, or a solid state drive (SSD)), and the memory detachable from the electronic device 100 can be implemented in the form of a memory card (e.g., a compact flash (CF), a secure digital (SD), a micro secure digital (Micro-SD), a mini secure digital (Mini-SD), an extreme digital (xD), or a multimedia card (MMC)), an external memory (e.g., a USB memory) connectable to a USB port, or the like.

[0120] The memory 110 can store at least one instruction. The at least one processor 120 can perform various operations based on the instruction stored in the memory 110.

[0121] The at least one processor 120 can be implemented as a digital signal processor (DSP), a microprocessor, or a time controller (TCON) for processing a digital signal, but is not limited thereto, and the at least one processor 120 can include one or more of a central processing unit (CPU), a micro controller unit (MCU), a micro processing unit (MPU), a controller, an application processor (AP), a graphic processing unit (GPU), a communication processor (CP), and an ARM (advanced RISC machine) processor, or can be defined as a corresponding term. The at least one processor 120 can be implemented as a system on chip (SoC) having an embedded processing algorithm or a large scale integration (LSI), or in the form of a field programmable gate array (FPGA). The at least one processor 120 can perform various functions by executing computer executable instructions stored in the memory.

[0122] The communication interface 130 is configured to perform communication with various types of external devices according to various types of communication methods. The communication interface 130 can include a wireless communication module or a wired communication module. Each communication module can be implemented in the form of at least one hardware chip.

[0123] The wireless communication module can be a module that performs wireless communication with an external device. For example, the wireless communication module can include at least one of a Wi-Fi module, a Bluetooth module, an infrared communication module, or other communication modules including a communication circuit.

[0124] The Wi-Fi module and the Bluetooth module can perform communication using a Wi-Fi method and a Bluetooth method, respectively. When using the Wi-Fi module or the Bluetooth module, various connection information such as a service set identifier (SSID) and a session key is first transmitted and received, and various information can be transmitted and received after a communication connection is established using the various connection information.

[0125] The infrared communication module performs communication according to an infrared data association (IrDA) communication technique that uses infrared rays between visible light and millimeter waves to wirelessly transmit data over a short distance.

[0126] The other communication module can include at least one communication chip that performs communication according to various wireless communication standards (e.g., Zigbee, third generation (3G), third generation partnership project (3GPP), long term evolution (LTE), LTE-advanced (LTE-A), fourth generation (4G), fifth generation (5G), etc.) other than the above-described communication methods.

[0127] The wired communication module can be a module that performs communication with an external device via a cable. For example, the wired communication module can include at least one of a local area network (LAN) module, an Ethernet module, a twisted pair, a coaxial cable, an optical fiber cable, or an ultra-wideband (UWB) module.

[0128] According to various embodiments, the communication interface 130 including the communication circuit can perform communication with an external device (e.g., a remote control) and an external server using the same communication module (e.g., a Wi-Fi module).

[0129] According to various embodiments, the communication interface 130 can perform communication with an external device (e.g., a remote control) and an external server using different communication modules including communication circuits. For example, the communication interface 130 can perform communication with an external server using at least one of an Ethernet module or a Wi-Fi module, and can perform communication with an external device such as a remote control using a Bluetooth module. However, this is only one embodiment, and the communication interface 130 can use at least one of various communication modules when performing communication with a plurality of external devices or external servers.

[0130] The display 140 can be implemented as various types of displays such as a liquid crystal display (LCD), an organic light emitting diode (OLED) display, a plasma display panel (PDP), etc. The display 140 can further include a driving circuit, a backlight unit, etc., which can be implemented in the form of amorphous silicon thin film transistor (TFT), low temperature poly silicon (LTPS) TFT, organic TFT (OTFT), etc. The display 140 can be implemented as a touch screen combined with a touch sensor, a flexible display, a three-dimensional (3D) display, etc. According to an embodiment, the display 140 can include a bezel that accommodates a display panel and a display panel that outputs an image. Specifically, the bezel according to an embodiment can include a touch sensor for detecting a user interaction.

[0131] The manipulation interface 150 can be implemented as a button, a touchpad, a mouse, a keyboard, etc., or can be implemented as a touch screen that is also capable of performing the above-described display function and manipulation input function. The button can be provided in various types, such as a mechanical button formed in any arbitrary area such as a front, a side, and a rear, a touchpad, a scroll wheel, etc.

[0132] The input / output interface 160 can be one of a high-definition multimedia interface (HDMI), a mobile high-definition link (MHL), a universal serial bus (USB), a display port (DP), thunderbolt, and a video graphics array (VGA) port, an RGB port, a D-subminiature (D-SUB), or a digital video interface (DVI). The input / output interface 160 can input / output at least one of an audio signal and a video signal. Depending on the implementation, the input / output interface 160 can include a port that only inputs and outputs an audio signal and a port that only inputs and outputs a video signal as separate ports, or can be implemented as a single port that inputs and outputs both an audio signal and a video signal. The electronic device 100 can transmit at least one of an audio signal or a video signal to an external device (e.g., an external display device or an external speaker) through the input / output interface 160. An output port included in the input / output interface 160 can be connected to the external device, and the electronic device 100 can transmit at least one of an audio signal or a video signal to the external device through the output port.

[0133] The input / output interface 160 can be directly or indirectly connected to the communication interface. The input / output interface 160 can transmit information received from an external device to the communication interface, or can transmit information received through the communication interface to the external device.

[0134] The speaker 170 is configured to output various notification sounds or voice messages as well as various audio data.

[0135] The microphone 180 is configured to receive a user's voice or other sound and convert it into audio data. The microphone 180 can receive a user's voice in an active state. For example, the microphone 180 can be integrally formed in a direction of a top, a front, a side, etc. of the electronic device 100. The microphone 180 can include various components such as a microphone that collects a user's voice in an analog form, an amplification circuit that amplifies the collected user's voice, an A / D conversion circuit that samples and converts the amplified user's voice into a digital signal, a filter circuit that removes a noise component from the converted digital signal, etc.

[0136] The camera 190 is configured to capture a subject and generate a captured image, and the captured image is a concept including both a moving image and a still image. The camera 190 can obtain an image of at least one external device, and can be implemented as a camera, a lens, an infrared sensor, etc.

[0137] The camera 190 can include a lens and an image sensor. The lens type includes a general lens, a wide-angle lens, and a zoom lens, and can be determined depending on the type, characteristics, and use environment of the electronic device 100. A complementary metal-oxide semiconductor (CMOS), a charge-coupled device (CCD), etc. can be used as the image sensor.

[0138] Figure 4 FIG. 1 is a diagram for explaining a mode executed in the electronic device 100 according to an embodiment.

[0139] Referring to Figure 4 Embodiment 400, the electronic device 100 can operate in at least one of a plurality of modes. The plurality of modes can include at least one of an ambient sound collection mode or a noise canceling mode.

[0140] The ambient sound collection mode can be described as a first mode. When operating in the first mode, the electronic device 100 can measure ambient sound using a microphone included in the electronic device 100. The electronic device 100 can obtain digital data about the ambient sound obtained through the microphone.

[0141] The noise canceling mode can be described as a second mode. When operating in the second mode, the electronic device 100 can reduce a target noise signal in the ambient sound. The target noise signal can include a cancelation target. The operation of reducing the target noise signal can include at least one of reducing an amplitude of the target noise signal, attenuating the target noise signal, removing the target noise signal, or canceling the target noise signal.

[0142] In one example, the target noise signal can be any signal included in the environmental sound. The target noise signal can include any signal in the environmental sound measured by the electronic device 100. The electronic device 100 can set all signals included in the environmental sound as target signals, and the electronic device 100 can reduce all signals included in the environmental sound.

[0143] In one example, the target noise signal can include a noise signal among signals included in the environmental sound. The target noise signal can include only a signal associated with noise. The electronic device 100 can set the target noise signal as a noise signal, and the electronic device 100 can reduce only a signal corresponding to noise in the environmental sound.

[0144] The electronic device 100 can operate in the first mode or the second mode in response to a user command. When a first user input to change to the second mode is received while operating in the first mode, the electronic device 100 can change the mode from the first mode to the second mode.

[0145] When a second user input to change to the first mode is received while operating in the second mode, the electronic device 100 can change the mode from the second mode to the first mode.

[0146] When a third user input to change to the first mode is received while operating in the second mode, the electronic device 100 can change the mode from the first mode to the second mode.

[0147] The electronic device 100 can change the mode based on a user input or a preset control command.

[0148] Figure 5 is a diagram for explaining an operation of obtaining an audio signal according to an embodiment.

[0149] Referring to Figure 5 , the electronic device 100 can obtain first audio data about an environmental sound (S505). The audio data can include a signal measuring the environmental sound. The environmental sound can include at least one audio signal measured in a space where the electronic device 100 is located. The environmental sound can denote at least one of analog audio data or digital audio data.

[0150] The electronic device 100 can determine whether a preset type of audio signal is recognized in the first audio data. The electronic device 100 can determine whether a preset type of audio signal is recognized among a plurality of audio signals included in the first audio data (S510). The preset type can be a type denoting a music content. For example, the preset type can include a music type.

[0151] When the preset type of audio signal is not recognized in the first audio data (S510 - No), the electronic device 100 can perform steps S505 and S510.

[0152] When the preset type of audio signal is recognized in the first audio data (S510 - Yes), the electronic device 100 can obtain a first audio signal from the first audio data (S515). The first audio signal can represent an audio signal corresponding to the preset type. The electronic device 100 can obtain (or extract) the first audio signal corresponding to the preset type from at least one audio signal included in the first audio data.

[0153] The electronic device 100 can obtain sound quality information of the first audio signal (S520). The sound quality information can include information indicating accuracy and clarity of the audio signal.

[0154] The electronic device 100 can include various methods for obtaining the sound quality information of the first audio signal.

[0155] According to an embodiment, the electronic device 100 can obtain the sound quality information using a signal-to-noise ratio (SNR). The electronic device 100 can distinguish (extract or separate) the first audio signal and a noise signal in the first audio data. The electronic device 100 can obtain an energy of the first audio signal and an energy of the noise signal. The electronic device 100 can obtain the signal-to-noise ratio (SNR) using 10*log (energy of the first audio signal / energy of the noise signal). The electronic device 100 can obtain the sound quality information (or a value indicating the sound quality) corresponding to the first audio signal using the signal-to-noise ratio. The electronic device 100 can determine that the greater the signal-to-noise ratio (SNR), the higher (better) the sound quality. It will be referred to Figure 10 and Figure 11 A specific description of this aspect is provided.

[0156] According to an embodiment, the electronic device 100 can obtain the sound quality information using an identification rate. The identification rate can represent at least one of a probability that a result of the audio signal is identified or an accuracy associated with the result of the audio signal. The electronic device 100 can obtain the identification rate of the first audio signal. The electronic device 100 can determine that the greater the identification rate, the higher the sound quality. The identification rate can be described as an identification probability, an identification ratio, an identification accuracy, or the like. It will be referred to Figure 12 and Figure 13 A specific description of this aspect is provided.

[0157] According to an embodiment, the electronic device 100 can obtain the sound quality information using a dynamic range. The dynamic range can represent a difference between a minimum volume and a maximum volume. The electronic device 100 can determine that the greater the dynamic range, the higher the sound quality.

[0158] According to an embodiment, the electronic device 100 can obtain sound quality information using a frequency response. The frequency response can include a frequency bandwidth. The electronic device 100 can determine that the wider (the greater) the frequency bandwidth, the higher the sound quality.

[0159] According to an embodiment, the electronic device 100 can obtain sound quality information using a bit depth or a sampling rate. The electronic device 100 can determine that the higher the bit depth or the sampling rate, the better the sound quality.

[0160] According to an embodiment, the electronic device 100 can obtain sound quality information using a bit rate. The electronic device 100 can determine that the higher the bit rate, the higher the sound quality.

[0161] The electronic device 100 can determine a content providing method based on the sound quality information (S525). The content can include content associated with a first audio signal of a preset type. The content can mean content obtained using the first audio signal.

[0162] Figure 6 FIG. 6 is a diagram for explaining a content providing method using sound quality information according to an embodiment.

[0163] Referring to Figure 6 , the electronic device 100 can obtain sound quality information of a first audio signal (S620). Step S620 can correspond to step S520 of FIG. 5. Figure 5

[0164] The electronic device 100 can determine whether the sound quality information is equal to or greater than a threshold level (S625). The electronic device 100 can determine a level of sound quality of the first audio signal. The sound quality information can include a sound quality level. The electronic device 100 can obtain a sound quality level of sound quality of the first audio signal. The electronic device 100 can compare the sound quality level with the threshold level.

[0165] When the sound quality information is equal to or greater than the threshold level, the electronic device 100 can determine that the first audio signal is of high quality. The electronic device 100 can provide the high-quality first audio signal. When the sound quality information is less than the threshold level, the electronic device 100 can determine that the first audio signal is of low quality. The electronic device 100 can not provide the low-quality first audio signal, but can provide a third audio signal received through an external server.

[0166] The sound quality level can be determined based on a level table of sound quality, which will be described with reference to Figure 9

[0167] ​​When the sound quality information is equal to or greater than the threshold level (Yes in S625), the electronic device 100 can obtain an inverted signal corresponding to the first audio data (S630). The inverted signal can denote a signal for canceling a plurality of signals included in the first audio data. The inverted signal can be described as an opposite signal, a canceling signal, an attenuating signal, an inverted waveform, an opposite waveform, a canceling waveform, an attenuating waveform, etc.

[0168] The electronic device 100 can obtain a second audio signal by synthesizing (or combining) the first audio signal and the inverted signal (S635). The electronic device 100 can provide the second audio signal (S640).

[0169] The operation of providing the second audio signal can indicate performing a noise canceling operation. In an embodiment of the disclosure, the noise canceling operation can be performed by the electronic device 100. Figure 6 In an embodiment of the disclosure, the target noise signal of the noise canceling function can be the entire environmental sound. In an embodiment of the disclosure, the target noise signal of the noise canceling function can be a signal of a preset type. Figure 6 In an embodiment of the disclosure, all signals can be canceled (or filtered) without distinguishing between the first audio signal of a preset type, a noise signal, etc. The electronic device 100 can provide the first audio signal equal to or greater than the threshold level by canceling all environmental sounds while combining the extracted first audio signal. The electronic device 100 can obtain the second audio signal by synthesizing the first audio signal and the inverted signal to filter out all environmental sounds and provide only the extracted first audio signal.

[0170] When the sound quality information is not equal to or greater than the threshold level (S625- No), the electronic device 100 can obtain a third audio signal corresponding to the first audio signal through an external server (S645). The external server can be a server that provides source data of the first audio signal. For example, the external server can include an over-the-top (OTT) related server or a content providing server that provides content.

[0171] The electronic device 100 can transmit information including the first audio signal to the external server. The external server can identify the third audio signal corresponding to the first audio signal by searching for the first audio signal. The external server can transmit the third audio signal to the electronic device 100. The third audio signal can be included in original source data. For example, the third audio signal can denote a high-quality audio signal provided by a content providing server.

[0172] The electronic device 100 can obtain an inverted signal corresponding to the first audio data (S650). The step S650 can correspond to the step S630.

[0173] The electronic device 100 can obtain a fourth audio signal by synthesizing the third audio signal and the inverted signal (S655). The electronic device 100 can provide the fourth audio signal (S660).

[0174] The operation of providing the fourth audio signal can indicate performing a noise canceling operation. The electronic device 100 can cancel all of the environmental sound, but receive a high-quality third audio signal from the external server, instead of the first audio signal determined to be low quality, and provide the high-quality third audio signal.

[0175] The operation of providing the second audio signal can include an operation in which the electronic device 100 directly extracts the first audio signal from the first audio data and provides the first audio signal from which the environmental noise is removed.

[0176] The operation of providing the fourth audio signal can include an operation in which the electronic device 100 obtains a third audio signal received from the external server, instead of the first audio data, and provides the third audio signal (high-quality signal) from which the environmental noise is removed.

[0177] According to various embodiments, the electronic device 100 can obtain the third audio signal corresponding to the first audio signal using a database included in the electronic device 100, without using the external server.

[0178] Figure 7 is a diagram for explaining an operation of determining different content providing methods using sound quality information according to an embodiment.

[0179] Figure 7 Steps S720, S725, S730, S745, and S750 of FIG. 7A can correspond to steps S620, S625, S630, S645, and S650 of FIG. 6A. Figure 6 Steps S620, S625, S630, S645, and S650 of FIG. 6A. Redundant descriptions will be omitted for brevity.

[0180] When the sound quality information is equal to or greater than the threshold level (S725 - Yes), the electronic device 100 can obtain an inverted signal corresponding to the first audio data (S730). The electronic device 100 can provide the inverted signal (S735). The electronic device 100 can perform a noise canceling function by providing the inverted signal. The electronic device 100 can provide the first audio signal (S740).

[0181] The electronic device 100 can perform the operation of providing the inverted signal and the operation of providing the first audio signal. Providing the inverted signal attenuates the environmental sound included in the first audio data, and thus the electronic device 100 can provide a high-quality first audio signal while performing the noise canceling function.

[0182] When the sound quality information is not equal to or greater than the threshold level (S725 - No), the electronic device 100 can obtain a third audio signal (S745). The electronic device 100 can obtain an inverted signal corresponding to the first audio data (S750). The electronic device 100 can provide the inverted signal (S755). The electronic device 100 can perform a noise canceling function by providing the inverted signal. The electronic device 100 can provide the third audio signal (S760).

[0183] The electronic device 100 can perform the operation of providing the inverted signal and the operation of providing the third audio signal. Providing the inverted signal attenuates the environmental sound included in the first audio data, and thus the electronic device 100 can provide a high-quality third audio signal while performing the noise canceling function.

[0184] Figure 8 FIG. 8 is a diagram for explaining audio data according to an embodiment.

[0185] Figure 8 Steps S820, S825, S830, S835, S840, S845, S850, S855, and S860 of FIG. 8 can correspond to steps S620, S625, S630, S635, S640, S645, S650, S655, and S660 of FIG. 6. Redundant descriptions will be omitted for the sake of brevity. Figure 6

[0186] After obtaining the second audio signal, the electronic device 100 can provide second audio data including the second audio signal (S840).

[0187] When the sound quality information is not equal to or greater than the threshold level (S825 - No), the electronic device 100 can obtain third audio data including a third audio signal corresponding to the first audio signal through an external server (S845).

[0188] After obtaining the fourth audio signal, the electronic device 100 can provide fourth audio data including the fourth audio signal (S860).

[0189] The audio signal can represent an audio waveform. The audio data can include the audio signal and metadata associated with the audio signal. The metadata can include at least one of a title, an artist, a lyricist, a composer, a lyric, a duration, a genre, an album name, or an album release date associated with the audio signal. The audio data can further include various information for describing the audio and the audio signal representing only the audio waveform.

[0190] Figure 9 FIG. 9 is a diagram for explaining a level standard of sound quality information according to an embodiment.

[0191] Referring to​Figure 9 The electronic device 100 can display a level table 900 indicating the sound quality of the sound quality level standard. The sound quality level can be classified into a first level, a second level, and a third level. A higher level can indicate a relatively higher quality of the audio signal.

[0192] In one example, when a signal-to-noise ratio (SNR) is 10 dB or less, the electronic device 100 can determine that the sound quality information of the first audio signal is level 3. When the signal-to-noise ratio (SNR) is greater than 10 dB and less than or equal to 20 dB, the electronic device 100 can determine that the sound quality information of the first audio signal is level 2. When the signal-to-noise ratio (SNR) is greater than 20 dB, the electronic device 100 can determine that the sound quality information of the first audio signal is level 1.

[0193] In one example, when the recognition rate is 70% or less, the electronic device 100 can determine that the sound quality information of the first audio signal is level 3. When the recognition rate is greater than 70% and less than or equal to 90%, the electronic device 100 can determine that the sound quality information of the first audio signal is level 2. When the recognition rate is greater than 90%, the electronic device 100 can determine that the sound quality information of the first audio signal is level 1.

[0194] The number of levels and the standard (e.g., threshold, etc.) for dividing the levels are only one embodiment, and can be changed based on a user setting.

[0195] Figure 10 is a diagram for explaining an operation of obtaining sound quality information using a signal-to-noise ratio (SNR) according to an embodiment.

[0196] Referring to Figure 10 The electronic device 100 can obtain a first audio signal and a noise signal from the first audio data (S1021). The electronic device 100 can extract the first audio signal and the noise signal from the first audio data, respectively.

[0197] The electronic device 100 can obtain a signal-to-noise ratio (SNR) based on the first audio signal and the noise signal (S1022). The electronic device 100 can obtain an energy of the first audio signal and an energy of the noise signal. The electronic device 100 can obtain the signal-to-noise ratio (SNR) using 10*log (energy of the first audio signal / energy of the noise signal). The electronic device 100 can obtain sound quality information (or a value indicating sound quality) corresponding to the first audio signal using the signal-to-noise ratio. The electronic device 100 can determine that the greater the signal-to-noise ratio (SNR), the higher (better) the sound quality.

[0198] The electronic device 100 can obtain sound quality information corresponding to a signal-to-noise ratio (SNR) (S1023). The electronic device 100 can obtain (or determine) a sound quality level of the first audio signal based on the signal-to-noise ratio (SNR) and a level table 900 of sound quality. The sound quality information can include a sound quality level associated with the sound quality of the first audio signal. The electronic device 100 can obtain the sound quality information based on the signal-to-noise ratio (SNR). Figure 9 The electronic device 100 can obtain sound quality information corresponding to a signal-to-noise ratio (SNR) (S1023). The electronic device 100 can obtain (or determine) a sound quality level of the first audio signal based on the signal-to-noise ratio (SNR) and a level table 900 of sound quality. The sound quality information can include a sound quality level associated with the sound quality of the first audio signal. The electronic device 100 can obtain the sound quality information based on the signal-to-noise ratio (SNR).

[0199] Figure 11 FIG. 1 is a diagram for explaining an operation of determining a content providing method using a signal-to-noise ratio (SNR) according to an embodiment.

[0200] Figure 11 Steps S1121 and S1122 of FIG. 1 can correspond to steps S1021 and S1022 of FIG. 10. Figure 10 Steps S1121 and S1122 of FIG. 1 can correspond to steps S1021 and S1022 of FIG. 10. Figure 11 Steps S1130, S1135, S1140, S1145, S1150, S1155, and S1160 of FIG. 11 can correspond to steps S630, S635, S640, S645, S650, S655, and S660 of FIG. 6. Redundant descriptions will be omitted for the sake of brevity. Figure 6 Steps S1130, S1135, S1140, S1145, S1150, S1155, and S1160 of FIG. 11 can correspond to steps S630, S635, S640, S645, S650, S655, and S660 of FIG. 6. Redundant descriptions will be omitted for the sake of brevity.

[0201] The electronic device 100 can obtain a first audio signal and a noise signal from the first audio data (S1121). The electronic device 100 can obtain a signal-to-noise ratio (SNR) based on the first audio signal and the noise signal (S1122).

[0202] The electronic device 100 can determine whether the signal-to-noise ratio (SNR) is equal to or greater than a first threshold (S1125). When the signal-to-noise ratio (SNR) is equal to or greater than the first threshold (S1125-YES), the electronic device 100 can determine that the first audio signal is relatively high quality. When the signal-to-noise ratio (SNR) is not equal to or greater than the first threshold (S1125-NO), the electronic device 100 can determine that the first audio signal is relatively low quality.

[0203] When the signal-to-noise ratio (SNR) is equal to or greater than the first threshold (S1125-YES), the electronic device 100 can perform steps S1130, S1135, and S1140.

[0204] When the signal-to-noise ratio (SNR) is not equal to or greater than the first threshold (S1125-NO), the electronic device 100 can perform steps S1145, S1150, S1155, and S1160 as shown in FIG. 11. Figure 11

[0205] Figure 12 FIG. 12 is a diagram for explaining an operation of obtaining sound quality information using a recognition rate according to an embodiment.​

[0206] Referring to Figure 12 , the electronic device 100 can obtain a first audio signal from the first audio data (S1221). The electronic device 100 can extract (or separate) the first audio signal from the first audio data.

[0207] The electronic device 100 can obtain a recognition rate corresponding to the first audio signal (S1222). The recognition rate can indicate at least one of a probability that a result of an audio signal is recognized or an accuracy associated with a result of an audio signal. The electronic device 100 can obtain the recognition rate of the first audio signal. The electronic device 100 can determine that the greater the recognition rate, the higher the sound quality. The recognition rate can be described as a recognition probability, a recognition ratio, a recognition accuracy, or the like.

[0208] The electronic device 100 can use an artificial intelligence model that receives an audio signal as input data and provides an analysis result and an accuracy of the analysis result.

[0209] In one example, the artificial intelligence model can be stored in the electronic device 100. The electronic device 100 can input the first audio signal into the artificial intelligence model to obtain an analysis result corresponding to the first audio signal and an accuracy of the analysis result. The electronic device 100 can obtain the recognition rate based on the accuracy of the analysis result. The electronic device 100 can determine that the higher the analysis result accuracy, the higher the recognition rate.

[0210] In one example, the artificial intelligence model can be stored in a server connected with the electronic device 100. The electronic device 100 can transmit the first audio signal to the server. The server can input the first audio signal into the artificial intelligence model to obtain an analysis result corresponding to the first audio signal and an accuracy of the analysis result. The server can transmit the analysis result accuracy to the electronic device 100. The electronic device 100 can obtain the recognition rate based on the accuracy of the analysis result.

[0211] The electronic device 100 can obtain sound quality information corresponding to the recognition rate (S1223). The electronic device 100 can obtain (or determine) a sound quality level of the first audio signal based on the recognition rate and Figure 9 the sound quality level table 900. The sound quality information can include a sound quality level associated with the sound quality of the first audio signal. The electronic device 100 can obtain the sound quality information based on the recognition rate.

[0212] Figure 13 is a diagram for explaining an operation of determining a content providing method using a recognition rate according to an embodiment.

[0213] Figure 13Steps S1321 and S1322 of FIG. 13A can correspond to steps S1221 and S1222 of FIG. 12A. Figure 12 Steps S1330, S1335, S1340, S1345, S1350, S1355, and S1360 of FIG. 13B can correspond to steps S630, S635, S640, S645, S650, S655, and S660 of FIG. 6. Redundant descriptions will be omitted. Figure 13 Steps S1330, S1335, S1340, S1345, S1350, S1355, and S1360 of FIG. 13B can correspond to steps S630, S635, S640, S645, S650, S655, and S660 of FIG. 6. Redundant descriptions will be omitted. Figure 6 Steps S1330, S1335, S1340, S1345, S1350, S1355, and S1360 of FIG. 13B can correspond to steps S630, S635, S640, S645, S650, S655, and S660 of FIG. 6. Redundant descriptions will be omitted.

[0214] The electronic device 100 can obtain a first audio signal from the first audio data (S1321). The electronic device 100 can obtain a recognition rate corresponding to the first audio signal (S1322).

[0215] The electronic device 100 can determine whether the recognition rate is equal to or greater than a second threshold value (S1325). When the recognition rate is equal to or greater than the second threshold value (S1325-YES), this can indicate that the first audio signal is relatively high quality. When the recognition rate is not equal to or greater than the second threshold value (S1325-NO), this can indicate that the first audio signal is relatively low quality.

[0216] When the recognition rate is equal to or greater than the second threshold value (S1325-YES), the electronic device 100 can perform steps S1330, S1335, and S1340 as shown in FIG. 13B. Figure 13

[0217] When the recognition rate is not equal to or greater than the second threshold value (S1325-NO), the electronic device 100 can perform steps S1345, S1350, S1355, and S1360 as shown in FIG. 13C. Figure 13

[0218] Figure 14 FIG. 14 is a flowchart of a method for determining a playback time of a third audio signal according to an embodiment.

[0219] Figure 14 Steps S1420, S1425, S1430, S1435, S1440, S1445, S1450, and S1460 of FIG. 14A can correspond to steps S620, S625, S630, S635, S640, S645, S650, and S660 of FIG. 6. Redundant descriptions will be omitted. Figure 6 Steps S1420, S1425, S1430, S1435, S1440, S1445, S1450, and S1460 of FIG. 14A can correspond to steps S620, S625, S630, S635, S640, S645, S650, and S660 of FIG. 6. Redundant descriptions will be omitted.

[0220] The electronic device 100 can obtain a third audio signal corresponding to the first audio signal through an external server (S1445). The electronic device 100 can obtain an inverted signal corresponding to the first audio data (S1450).

[0221] ​​The electronic device 100 can compare the first audio signal and the third audio signal to determine a playback time (S1456). The first audio signal can include a sound output from the surrounding environment of the electronic device 100 within a space in which the electronic device 100 is disposed. The third audio signal can be audio data obtained through an external server.

[0222] It is necessary to determine which part of the entire audio signal is currently output from the environmental sound. This is because, even if the noise filtering function is performed, the user can hear subtle environmental sound. The third audio signal should be output at a playback time as identical as possible to the first audio signal to minimize or reduce the inconvenience of the user.

[0223] Accordingly, the electronic device 100 needs to analyze the first audio signal to identify a playback time identical to the first audio signal that is currently being played, and output the third audio signal based on the playback time.

[0224] For example, it is assumed that the content representing the first audio signal is music of a total of 3 minutes and 30 seconds, and the part that is currently being played is 1 minute and 10 seconds. The electronic device 100 can determine 1 minute and 10 seconds as the playback time, and can provide a part of the third audio signal corresponding to 1 minute and 10 seconds.

[0225] The electronic device 100 can obtain a fourth audio signal by synthesizing the third audio signal and the inverted signal based on the playback time (S1457). The electronic device 100 can provide the fourth audio signal.

[0226] Figure 15 is a diagram for explaining an operation of converting the first audio signal according to an embodiment.

[0227] Figure 15 Steps S1520, S1525, S1530, S1540, S1545, S1550, S1555, and S1560 of Figure 6 Steps S620, S625, S630, S640, S645, S650, S655, and S660 of Redundant descriptions will be omitted.

[0228] When the sound quality information is equal to or greater than the threshold level (S1525-Yes), the electronic device 100 can obtain an inverted signal corresponding to the first audio data (S1530). The electronic device 100 can obtain a converted signal by converting the first audio signal in a preset method (S1531).

[0229] The preset method can include at least one of converting a mono audio signal to a stereo audio signal or performing 360-degree rendering.

[0230] In one example, the electronic device 100 can obtain a converted signal by converting the first audio signal by changing an audio output format (mono, stereo).

[0231] The electronic device 100 can identify an output format of the first audio signal. The output format can include at least one of a mono type or a stereo type. The mono type can include a single audio channel. The stereo type can include two audio channels. The stereo type can refer to a left (L) channel and a right (R) channel.

[0232] When the output format of the first audio signal is the mono type, the electronic device 100 can convert the output format of the first audio signal to the stereo type. As a result of the conversion operation, the electronic device 100 can obtain a converted signal.

[0233] In one example, the electronic device 100 can obtain the converted signal by performing 360-degree rendering of the first audio signal.

[0234] The 360-degree rendering can include rendering playback in spatially different directions. The 360-degree rendering can include audio rendering provided in a VR or AR environment. The 360-degree rendering can include at least one of separating (or identifying) an audio object, determining a spatial position of the audio object, performing 3D audio rendering, determining a position of a user, or dynamically adjusting audio based on the position of the user.

[0235] The electronic device 100 can obtain a second audio signal by synthesizing the converted signal and the inverted signal (S1535). The electronic device 100 can provide the second audio signal (S1540).

[0236] Figure 16 is a diagram for explaining an operation of filtering only noise according to an embodiment.

[0237] Figure 16 Steps S1620, S1625, S1645, S1650, S1655, and S1660 of Figure 6 Steps S620, S625, S645, S650, S655, and S660 of. Redundant descriptions will be omitted.

[0238] When the sound quality information is equal to or greater than the threshold level (S1625-Yes), the electronic device 100 can obtain (or extract) a noise signal from the first audio data (S1630). The electronic device 100 can obtain a noise inverted signal based on the noise signal (S1635).

[0239] Figure 6 The inverted signal described in can be a signal for attenuating the entire ambient sound included in the first audio data.

[0240] Figure 16 The noise-inverted signal described in the middle can be a signal for attenuating only the noise in the entire environmental sound included in the first audio data.

[0241] The electronic device 100 can provide a noise-inverted signal (S1640). When the noise-inverted signal is provided, the electronic device 100 can attenuate the noise in the environmental sound. The user can selectively listen to the de-noised first audio signal among various sounds included in the environmental sound.

[0242] Figure 17 FIG. is a diagram for explaining a user interface (UI) related to a content providing service according to an embodiment.

[0243] The electronic device 100 can provide a screen 1710 indicating whether to perform a function of providing content included in the environmental sound. The screen 1710 can include at least one of a UI 1711 for determining whether to perform the function or a UI 1712 for describing an operation performed by the electronic device 100.

[0244] The electronic device 100 can provide a screen 1720 providing information about the content included in the environmental sound. The screen 1720 can include at least one of a UI 1721 for determining whether to perform the function or a UI 1722 for describing the retrieved content.

[0245] Figure 18 FIG. is a diagram for explaining an operation of providing an audio signal using the sound device 200 according to an embodiment.

[0246] Figure 18 Steps S1805 and S1815 of FIG. can correspond to steps S505 and S515 of FIG. Figure 5 Figure 18 Steps S1820, S1825, S1830, S1835, and S1840 of FIG. can correspond to steps S620, S625, S630, S635, and S640 of FIG. Redundant descriptions will be omitted. Figure 6 Figure 5 and Figure 6 Some operations performed in FIG. can be performed in the sound device 200.

[0247] Referring to Figure 18 , the sound device 200 can obtain first audio data about the environmental sound (S1805). The sound device 200 can transmit the first audio data to the electronic device 100 (S1806).

[0248] ​​The electronic device 100 can receive the first audio data from the sound device 200. The electronic device 100 can obtain a first audio signal from the first audio data (S1815). The electronic device 100 can obtain sound quality information of the first audio signal (S1820).

[0249] The electronic device 100 can determine whether the sound quality information of the first audio signal is equal to or greater than a threshold level (S1825).

[0250] When the sound quality information of the first audio signal is equal to or greater than the threshold level (S1825-Yes), the electronic device 100 can obtain a reversed signal corresponding to the first audio data (S1830). The electronic device 100 can obtain a second audio signal by synthesizing the first audio signal and the reversed signal (S1835).

[0251] The electronic device 100 can transmit the second audio signal to the sound device 200 (S1836). The sound device 200 can receive the second audio signal from the electronic device 100. The sound device 200 can provide the second audio signal (S1840).

[0252] When the sound quality information of the first audio signal is not equal to or greater than the threshold level (S1825-No), the electronic device 100 can transmit the first audio signal to the external server 300 (S1841). The electronic device 100 can request high-quality data (or a signal) corresponding to the first audio signal from the external server 300. It will be described that Figure 19 the operation of this aspect.

[0253] Figure 19 is a diagram for explaining an operation of providing an audio signal using a sound device 200 according to an embodiment.

[0254] Figure 19 Steps S1905 and S1915 of Figure 5 correspond to steps S505 and S515 of Figure 19 Steps S1920, S1925, S1945, S1950, S1955, and S1960 of Figure 6 correspond to steps S620, S625, S645, S650, S655, and S660 of redundant description will be omitted. Figure 5 and Figure 6 Some operations performed in

[0255] Figure 19 Steps S1905, S1906, S1915, S1920, S1925, and S1941 of Figure 18Steps S1805, S1806, S1815, S1820, S1825, and S1841 of FIG. 18A can correspond to steps S1805, S1806, S1815, S1820, S1825, and S1841 of FIG. 18B. Redundant descriptions will be omitted.

[0256] When the sound quality information is not equal to or greater than the threshold level (S1925-NO), the electronic device 100 can transmit the first audio signal to the external server 300 (S1941). The electronic device 100 can request the original data or the high-quality data corresponding to the first audio signal from the external server 300. The electronic device 100 can transmit, to the external server 300, a data packet including the first audio signal and a control signal requesting data corresponding to the first audio signal.

[0257] The external server 300 can receive the first audio signal from the electronic device 100. The external server 300 can obtain a third audio signal corresponding to the first audio signal (S1945). The external server 300 can transmit the third audio signal to the electronic device 100 (S1946).

[0258] The electronic device 100 can receive the third audio signal from the external server 300. The electronic device 100 can obtain an inverted signal corresponding to the first audio signal (S1950). The electronic device 100 can obtain a fourth audio signal by synthesizing the third audio signal and the inverted signal (S1955). The electronic device 100 can transmit the fourth audio signal to the sound device 200 (S1956).

[0259] The sound device 200 can receive the fourth audio signal from the electronic device 100. The sound device 200 can provide the fourth audio signal (S1960).

[0260] Figure 20 is a diagram for explaining an operation of providing an audio signal using the sound device 200 according to an embodiment.

[0261] Figure 20 Steps S2005 and S2015 of FIG. 20A can correspond to steps S505 and S515 of FIG. 5. Figure 5 Steps S505 and S515 of FIG. 5. Figure 20 Steps S2020, S2025, S2030, S2035, S2040, S2045, S2050, S2055, and S2060 of FIG. 20B can correspond to steps S620, S625, S630, S635, S640, S645, S650, S655, and S660. Redundant descriptions will be omitted. Figure 6 Some operations of FIG. 20B can be performed in the sound device 200.

[0262] The sound device 200 can obtain first audio data regarding an environmental sound (S2005). The sound device 200 can obtain a first audio signal from the first audio data (S2015). The sound device 200 can obtain sound quality information of the first audio signal (S2020). The sound device 200 can determine whether the sound quality information is equal to or greater than a threshold level (S2025).

[0263] When the sound quality information is equal to or greater than the threshold level (S2025-Yes), the sound device 200 can obtain a reversed signal corresponding to the first audio data (S2030). The sound device 200 can obtain a second audio signal by synthesizing the first audio signal and the reversed signal (S2035). The sound device 200 can provide the second audio signal (S2040).

[0264] When the sound quality information is not equal to or greater than the threshold level (S2025-No), the sound device 200 can transmit the first audio signal to the external server 300 (S2041).

[0265] The external server 300 can receive the first audio signal from the sound device 200. The external server 300 can obtain a third audio signal corresponding to the first audio signal (S2045). The external server 300 can transmit the third audio signal to the sound device 200 (S2046).

[0266] The sound device 200 can receive the third audio signal from the external server 300. The sound device 200 can obtain a reversed signal corresponding to the first audio data (S2050). The sound device 200 can obtain a fourth audio signal by synthesizing the third audio signal and the reversed signal (S2055). The sound device 200 can provide the fourth audio signal (S2060).

[0267] Figure 21 FIGS. 1 through 7, described below, and the operations S100 through S200, described below, are flowcharts of methods. A flowchart can represent computer software instructions map to be executed by various computer component(s) or various means for executing parts of computer software. In the context of computer software, one or more computer system(s) can execute a computer- readable medium with computer-readable instructions to perform one or more portions of the computer software instructions. In some embodiments, the computer-readable medium is a non-transitory computer-readable medium.

[0268] Reference Signs List Figure 21A control method of an electronic device that performs communication with an external server includes obtaining audio data regarding an ambient sound (S2105), obtaining a target audio signal of a preset type from the audio data (S2110), obtaining sound quality information of the target audio signal (S2115), when the sound quality information is not equal to or greater than a threshold level, transmitting the target audio signal to the external server (S2120), receiving a source audio signal corresponding to the target audio signal from the external server (S2125), identifying a playback time of the source audio signal based on the target audio signal (S2130), and providing a synthesized audio signal in which the source audio signal and an inverted signal corresponding to the audio data are synthesized based on the playback time (S2135).

[0269] The step of obtaining the sound quality information (S2115) can include obtaining the target audio signal and a noise signal from the audio data, obtaining a signal-to-noise ratio (SNR) based on the target audio signal and the noise signal, and obtaining the sound quality information based on the signal-to-noise ratio (SNR).

[0270] The step of transmitting the target audio signal to the external server (S2120) can include transmitting the target audio signal to the external server when the signal-to-noise ratio (SNR) is less than a threshold value.

[0271] The step of obtaining the sound quality information (S2115) can include determining a sound quality level of the first audio signal based on the signal-to-noise ratio (SNR) and a level table of sound qualities stored in the electronic device, and obtaining the sound quality information including the sound quality level. As used herein, "based on" encompasses at least based on.

[0272] The control method can further include a step of obtaining the inverted signal to attenuate the ambient sound by inverting a phase of a signal included in the audio data.

[0273] The step of providing the synthesized audio signal (S2135) can include comparing a waveform of the target audio signal and a waveform of the source audio signal to determine the playback time of the source audio signal, synthesizing the inverted signal and an area of the source audio signal corresponding to the playback time in an entire area to obtain the synthesized audio signal, and providing the synthesized audio signal.

[0274] The control method can further include a step of transmitting the synthesized audio signal to an external sound device.

[0275] The external sound device is a wireless earphone or a wireless headphone, and the step of transmitting the synthesized audio signal to the external sound device (S2120) can include transmitting the synthesized audio signal to the external sound device through a Bluetooth communication module included in the electronic device, the Bluetooth communication module including a communication circuit.

[0276] The synthetic audio signal is a first synthetic audio signal, and the control method can further include obtaining a second synthetic audio signal in which the target audio signal and the inverted signal corresponding to the audio data are synthesized when the sound quality information is equal to or greater than a threshold level, and providing the second synthetic audio signal.

[0277] The control method can further include obtaining a converted signal by converting the target audio signal into a stereo type when the output method of the target audio signal is a mono type, and obtaining the second synthetic audio signal can include obtaining the second synthetic audio signal by synthesizing the converted signal and the inverted signal.

[0278] The method according to the various embodiments described above can be implemented in the form of an application capable of being installed in an existing electronic device.

[0279] The method according to the various embodiments described above can be implemented by a software upgrade to an existing electronic device or by a hardware upgrade only.

[0280] The method according to the various embodiments described above can also be executed through an embedded server provided in an electronic device or through at least one external server between the electronic device and a display apparatus.

[0281] Meanwhile, according to an embodiment, the various embodiments described above can be implemented in software including instructions stored in a machine-readable storage medium which is readable by a machine (e.g., a computer). The machine can be a device that calls the stored instructions from the storage medium and operates based on the called instructions, and according to an embodiment, the machine can include a robot. In the case where the instructions are executed by the processor 140, the processor 140 can directly perform functions corresponding to the instructions using other components under the control of the processor 140. The instructions can include codes generated or executed by a compiler or an interpreter. The machine-readable storage medium can be provided in the form of a non-transitory storage medium. Here, the term "non-transitory" indicates that the storage medium is tangible, not a signal, and does not distinguish whether data is semi-permanently or temporarily stored in the storage medium.

[0282] Each "processor" herein includes processing circuitry, and / or can include a plurality of processors. For example, as used herein (including in the claims), the term "processor" can include various processing circuitry including at least one processor, where one or more of the at least one processor can be individually and / or collectively configured to perform the various functions described herein. As used herein, when a "processor," "at least one processor," and "one or more processors" are described as being configured to perform particular functions, this encompasses both a case in which the processor(s) are purpose- built to perform the specified functions and a case in which the processor(s) are configured to, among other

[0283] According to an embodiment, the method according to the various embodiments described above can be provided in a computer program product. The computer program product is a merchandise and can be traded between a seller and a buyer. The computer program product can be distributed in the form of a device readable storage medium (e.g., a compact disc read only memory (CD-ROM)) or online through an application store (e.g., Play StoreTM). In the case of online distribution, at least a portion of the computer program product can be stored or at least temporarily generated in a storage medium such as a manufacturer's server, an application store's server, or a relay server.

[0284] Each of the components (e.g., modules or programs) according to the various embodiments can be composed of a single entity or a plurality of entities, and some of the aforementioned corresponding subcomponents can be omitted or other subcomponents can be further included in the various embodiments. Alternatively or additionally, some components (e.g., modules or programs) can be integrated as one entity, and can perform functions of the respective corresponding components before the integration in the same or similar manner. The operations performed by the modules, programs, or other components according to the various embodiments can be executed in a sequential, parallel, iterative or heuristic manner, and at least some of the operations can be executed in a different order or omitted, or other operations can be added.

[0285] In the foregoing, although the preferred embodiments have been shown and described above, the present disclosure is not limited to the specific embodiments described above and various modifications can be made by those skilled in the art without departing from the disclosure claimed in the claims, and such modifications should not be construed as outside the technical concept or prospect of the present disclosure. While the present disclosure has been illustrated and described with reference to various embodiments, it will be understood that the various embodiments are intended to illustrate, not to limit. Those skilled in the art will also understand that various changes in form and detail can be made without departing from the full scope of the present disclosure including the appended claims and their equivalents. It will also be understood that any of the embodiments described herein can be used in combination with any other embodiment described herein.

Claims

1. An electronic device comprising: Memory; The communication interface, including the communication circuitry, is configured to communicate with an external server. as well as At least one processor, including processing circuitry, is configured to: Obtain audio data of ambient sounds; Obtain a target audio signal of a preset type from the audio data; Obtain the sound quality information of the target audio signal; Based on the sound quality information being neither equal to nor greater than a threshold level, control is performed to send the target audio signal to the external server via the communication interface; Receive the source audio signal corresponding to the target audio signal from the external server via the communication interface; The playback time of the source audio signal is identified based on the target audio signal; as well as A synthesized audio signal is provided, in which the source audio signal and the inverted signal corresponding to the audio data are synthesized based on the playback time.

2. The electronic device according to claim 1, wherein, The at least one processor is configured individually and / or collectively to: The target audio signal and noise signal are obtained from the audio data; The signal-to-noise ratio (SNR) is obtained based on the target audio signal and the noise signal; and The sound quality information is obtained based on the signal-to-noise ratio (SNR).

3. The electronic device according to claim 2, wherein, The at least one processor is individually and / or collectively configured to control the transmission of the target audio signal to the external server via the communication interface based on the signal-to-noise ratio (SNR) being less than a threshold.

4. The electronic device according to claim 2, wherein, The at least one processor is configured individually and / or collectively to: Based on the signal-to-noise ratio (SNR) and the sound quality level table stored in the memory, the sound quality level of the first audio signal is determined; and Obtain the sound quality information including the sound quality level.

5. The electronic device according to claim 1, wherein, The at least one processor is configured individually and / or collectively to obtain the inverted signal by reversing the phase of the signal included in the audio data to attenuate the ambient sound.

6. The electronic device according to claim 1, wherein, The at least one processor is configured individually and / or collectively to: The playback time of the source audio signal is determined by comparing the waveform of the target audio signal with the waveform of the source audio signal. The synthesized audio signal is obtained by synthesizing the region corresponding to the playback time within the entire region of the inverted signal and the source audio signal; and Provide the synthesized audio signal.

7. The electronic device according to claim 1, wherein, The at least one processor is individually and / or collectively configured to control the transmission of the synthesized audio signal to an external sound device via the communication interface.

8. The electronic device according to claim 7, wherein, The external sound device is a wireless headset and / or a wireless over-ear headphone; and The at least one processor is individually and / or collectively configured to control the transmission of the synthesized audio signal to the external sound device via a Bluetooth communication module included in the communication interface, the Bluetooth communication module including communication circuitry.

9. The electronic device according to claim 1, wherein, The synthesized audio signal is the first synthesized audio signal; Wherein, the at least one processor is individually and / or collectively configured to: obtain a second synthesized audio signal based on the sound quality information being equal to or greater than a threshold level, wherein the target audio signal and the inverted signal corresponding to the audio data are synthesized in the second synthesized audio signal; and Provide the second synthesized audio signal.

10. The electronic device according to claim 9, wherein, The at least one processor is individually and / or collectively configured to: based on the target audio signal's output method being mono, obtain a converted signal by converting the target audio signal to stereo; and The second synthesized audio signal is obtained by synthesizing the converted signal and the inverted signal.

11. A method for controlling an electronic device that communicates with an external server, the method comprising: Obtain audio data of ambient sounds; Obtain a target audio signal of a preset type from the audio data; Obtain the sound quality information of the target audio signal; Based on the sound quality information being neither equal to nor greater than a threshold level, the target audio signal is sent to the external server; Receive the source audio signal corresponding to the target audio signal from the external server; The playback time of the source audio signal is identified based on the target audio signal; as well as A synthesized audio signal is provided, in which the source audio signal and the inverted signal corresponding to the audio data are synthesized based on the playback time.

12. The method according to claim 11, wherein, The sound quality information obtained includes: The target audio signal and noise signal are obtained from the audio data; The signal-to-noise ratio (SNR) is obtained based on the target audio signal and the noise signal; and The sound quality information is obtained based on the signal-to-noise ratio (SNR).

13. The method according to claim 12, wherein, Sending the target audio signal to the external server includes: sending the target audio signal to the external server based on the signal-to-noise ratio (SNR) being less than a threshold.

14. The method according to claim 12, wherein, The sound quality information obtained includes: Based on the signal-to-noise ratio (SNR) and the sound quality level table stored in the electronic device, the sound quality level of the first audio signal is determined; and Obtain the sound quality information including the sound quality level.

15. The method of claim 11, further comprising: The inverted signal is obtained by inverting the phase of the signal included in the audio data to attenuate the ambient sound.