Patent EP-4254407-A1 (EP)
Title: Electronic device and voice input/output control method of electronic device
Inventor: HEO SEUNGYOON
IPC: G10L21/02
Filed: 2021-12-29
Abstract: An electronic device according to the present disclosure is configured to: when an external electronic device has a speaker, select, from the electronic device and the external electronic device, a reception device to output a reception voice, on the basis of sensing information received from a sensor module at a time of connecting a call; when the external electronic device has a microphone, select, from the electronic device and the external electronic device, a transmission device to receive a transmission voice, on the basis of the result of comparing, at a time of connecting a call, a voice signal received by using a sound input module and a voice signal received from the microphone of the external electronic device; when the transmission device and the reception device are different devices, activate at least one microphone and deactivate at least one speaker, the at least one microphone and the at least one speaker being provided in the transmission device, and deactivate at least one microphone and activate at least one speaker, the at least one microphone and the at least one speaker being provided in the reception device; acquire an echo reference signal related to the reception voice received from the reception device and store the acquired echo reference signal in a buffer; check an echo path delay (EPD) value for an echo signal included in the transmission voice, on the basis of the comparison of the stored echo reference signal with the transmission voice received from the transmission device; and remove the echo signal included in the transmission voice by using the echo reference signal and the checked EPD value.An electronic device is provided. The electronic device includes a communication module, a sensor module, a sound input module, a sound output module, a memory including a buffer, and a processor. The processor is configured to determine whether an external electronic device has at least one speaker and/or microphone, select, a speech reception device from among the electronic device and the external electronic device based on sensing information received when a call is connected, select a speech transmission device, , from among the electronic device and the external electronic device based on a comparison of a speech signal received from the electronic device with a speech signal received from the external electronic device when a call is connected, and if the speech transmission device and the speech reception device are different devices, enable at least one microphone included in the speech transmission device, disable at least one speaker included in the speech transmission device, disable at least one microphone included in the speech reception device, and enable at least one speaker included in the speech reception device, acquire an echo reference signal related to reception speech received from the speech reception device and store the echo reference signal in the buffer, determine, based on comparison of the stored echo reference signal to transmission speech received from the speech transmission device, an EPD value relating to an echo signal included in the transmission speech, and cancel the echo signal by using the echo reference signal and the determined EPD value.