Abstract:
A method for detecting wrong positioning of an earphone, and an electronic device and storage medium therefor are provided. The electronic device includes a speaker positioned on surface of a housing; and at least one processor configured to determine a positioning state of an earphone detachably connectable to the electronic device based on a difference between a first audio signal received through at least one microphone positioned in a first body of the earphone and a second audio signal received through at least one microphone positioned in a second body of the earphone.
Abstract:
Disclosed is a control method for an electronic device. An electronic device according to an embodiment comprises: at least one speaker; and a processor. The processor may be configured to: obtain sound source data; obtain first sound source data, corresponding to a first designated frequency band, from the sound source data by using a filter; generate second sound source data by applying sound effect to at least a portion of sound source data corresponding to a second designated frequency band among the sound source data; generate synthesized sound source data corresponding to the sound source data by synthesizing the first sound source data and the second sound source data; and output the synthesized sound source data through the at least one speaker. Other embodiments may also be possible.
Abstract:
Disclosed are an electronic device and a method of processing an audio signal by the electronic device. The electronic device includes: a processor functionally connected to a speaker and a microphone; and a memory electrically connected to the processor. The memory includes instructions to cause the processor, when executed, to output a first audio signal through the speaker; identify that a second audio signal detected by the microphone corresponds to the first audio signal when the first audio signal is outputted through the speaker; and control output of the first audio signal based on the identification. Further, various other embodiments may be possible.
Abstract:
The present disclosure provides an electronic device and method for playing image data. The method for playing back image data in an electronic device includes storing an audiovisual (A/V) data for a predetermined period of time in a memory of the electronic device. The electronic device plays back the A/V data, wherein upon playing back, by the electronic device, the A/V data comprises analyzing an audio signal of the A/V data dynamically to select one of a plurality of sound effects based on the analyzed audio signal. The A/V data is played back by applying the selected sound effect to at least a part of the A/V signal.
Abstract:
A method for detecting wrong positioning of an earphone, and an electronic device and storage medium therefor are provided. The electronic device includes a speaker positioned on surface of a housing; and at least one processor configured to determine a positioning state of an earphone detachably connectable to the electronic device based on a difference between a first audio signal received through at least one microphone positioned in a first body of the earphone and a second audio signal received through at least one microphone positioned in a second body of the earphone.
Abstract:
An electronic device and a method for measuring quality of a voice signal are provided. The method includes generating a mask of an echo signal and a mask of a speech signal by comparing the echo signal and the speech signal included in an input sound with respective thresholds, calculating an estimation of the echo signal and an estimation of the speech signal, and measuring quality of the input speech signal by using each of the calculated estimation of the echo signal and the calculated estimation of the speech signal.