This application claims priority to Chinese Patent Application No. 201811614776.7 filed on Dec. 27, 2018, the contents of which are incorporated by reference herein.
The subject matter herein generally relates to audio processing technology, and particularly to an electronic device and a method for eliminating noises from recordings.
Instant interaction technology allows users more interested in voice calls in instant messaging than in making telephone calls to use software such as WECHAT. When using instant messaging software for the voice calls, noise made by poor hardware quality of electronic devices can lower audio quality. For example, the noise produced by vibration of the electronic device itself can be recorded, and the voice quality is thus affected.
Many aspects of the disclosure can be better understood with reference to the following drawings. The components in the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the disclosure. Moreover, in the drawings, like reference numerals designate corresponding parts throughout the several views.
It will be appreciated that for simplicity and clarity of illustration, where appropriate, reference numerals have been repeated among the different figures to indicate corresponding or analogous elements. In addition, numerous specific details are set forth in order to provide a thorough understanding of the embodiments described herein. However, it will be understood by those of ordinary skill in the art that the embodiments described herein can be practiced without these specific details. In other instances, methods, procedures, and components have not been described in detail so as not to obscure the related relevant feature being described. Also, the description is not to be considered as limiting the scope of the embodiments described herein. The drawings are not necessarily to scale and the proportions of certain parts have been exaggerated to better illustrate details and features of the present disclosure.
The present disclosure, including the accompanying drawings, is illustrated by way of examples and not by way of limitation. Several definitions that apply throughout this disclosure will now be presented. It should be noted that references to “an” or “one” embodiment in this disclosure are not necessarily to the same embodiment, and such references mean “at least one.”
Furthermore, the term “module”, as used herein, refers to logic embodied in hardware or firmware, or to a collection of software instructions, written in a programming language, such as, Java, C, or assembly. One or more software instructions in the modules can be embedded in firmware, such as in an EPROM. The modules described herein can be implemented as either software and/or hardware modules and can be stored in any type of non-transitory computer-readable medium or other storage device. Some non-limiting examples of non-transitory computer-readable media include CDs, DVDs, BLU-RAY, flash memory, and hard disk drives. The term “comprising” means “including, but not necessarily limited to”; it specifically indicates open-ended inclusion or membership in a so-described combination, group, series, and the like.
The processor 10 can be a central processing unit (CPU), a microprocessor, or other data processor chip that performs functions of the electronic device 1.
In at least one embodiment, the storage device 20 can include various types of non-transitory computer-readable storage mediums. For example, the storage device 20 can be an internal storage system, such as a flash memory, a random access memory (RAM) for temporary storage of information, and/or a read-only memory (ROM) for permanent storage of information. The storage device 20 can also be an external storage system, such as a hard disk, a storage card, or a data storage medium.
In at least one embodiment, the first acquiring device 30 can be a microphone. The first acquiring device 30 can acquire voices.
In at least one embodiment, the vibration device 40 can be an eccentric gear which at least includes an electric motor and a cam. The vibration device 40 can vibrate as an alert.
In at least one embodiment, the second acquiring device 50 can also be a microphone. The second acquiring device 50 is arranged on the vibration device 40, and is used for acquiring sound when the vibration device 40 is working.
As illustrated in
The detecting module 101 is used to detect whether the electronic device 1 is in a voice recording mode.
In at least one embodiment, the detecting module 101 determines whether the electronic device 1 is in the voice recording mode by detecting whether a voice recording function of the electronic device 1 is activated.
In detail, a number of applications are installed in the electronic device 1. Certain applications with a voice recording function provide at least one voice recording option, when the at least one voice recording option of one of the certain applications is selected by the user, the voice recording function of the electronic device 1 is activated.
For example, the certain applications include WECHAT, voice memo, SKYPE etc. The at least one voice recording option can include a voice input option, a voice call option, and a video call option in the WECHAT application.
The acquiring module 102 is used to control the first acquiring device 30 to acquire speaking voices of at least one user, when the detecting module 101 determines that the electronic device 1 is in the voice recording mode.
In at least one embodiment, the speaking voices acquired by the first acquiring device 30 can be from a user or different users.
In at least one embodiment, the acquiring module 102 can also acquire sound in the environment, and such environmental sound will be mixed in the speaking voices of at least one user.
The determining module 103 is used to determine whether the speaking voices of at least one user acquired by the first acquiring device 30 include noises produced by the vibration device 40.
In at least one embodiment, the determining module 103 determines whether the speaking voices of at least one user acquired by the first acquiring device 30 include the noises produced by the vibration device 40 by determining whether the second acquiring device 50 has acquired sound produced by the vibration device 40. When determining that the second acquiring device 50 has acquired the sound produced by the vibration device 40, the determining module 103 further determines that the speaking voices of at least one user acquired by the first acquiring device 30 include the noises produced by the vibration device 40. When determining that the second acquiring device 50 has not acquired any sound produced by the vibration device 40, the determining module 103 further determines the speaking voices of at least one user acquired by the first acquiring device 30 do not include the noises produced by the vibration device 40.
The eliminating module 104 is used to eliminate the noises produced by the vibration device 40, when the determining module 103 determines that the speaking voices of at least one user acquired by the first acquiring device 30 include the noises produced by the vibration device 40.
In at least one embodiment, the eliminating module 104 controls the first acquiring device 30 to convert the speaking voices of the at least one user mixed with the noises to digital signals, and acquires the digital signals of the speaking voices of the at least one user mixed with the noises. The eliminating module 104 further controls the second acquiring device 50 to convert the noises produced by the vibration device 40 to digital signals, and acquires the digital signals of the noises produced by the vibration device 40.
The eliminating module 104 further analyzes the digital signals of the noises converted by the second acquiring device 50 to determine an amplitude and a phase of the noises, and generates an audio signal with an amplitude which is equal to the determined amplitude and a phase which is contrary to the determined phase. The generated audio signal is superimposed over the digital signal of the noises, so as to cancel the digital signals of the noises mixed in the digital signals of speaking voices of the at least one user.
In another embodiment, the eliminating module 104 can also enable subtraction of the digital signals of speaking voices of the at least one user mixed with the digital signals of noises acquired by the first acquiring device 30 from the digital signals of noises acquired by the second acquiring device 50, the digital signals of noises mixed in the digital signals of speaking voices of the at least one user are thus eliminated. The eliminating module 104 can further amplify the digital signals of speaking voices of the at least one user after the subtraction.
For example, the digital signal V1 of speaking voices mixed with noises acquired by the first acquiring device 30 satisfies following equation 1:
V1=Va1+Va2 (1)
In the equation 1, Va1 is the digital signal of speaking voices acquired by the first acquiring device 30, Va2 is the digital signal of noises acquired by the first acquiring device 30.
Furthermore, the digital signal V2 of noises acquired by the second acquiring device 50 satisfies following equation 2:
V2=Vb1+Vb2 (2)
In the equation 2, Vb1 is the digital signal of speaking voices acquired by the second acquiring device 50, Vb2 is the digital signal of noises acquired by the second acquiring device 50.
The eliminating module 104 calculates the digital signal V of speaking voices without the digital signal of noises using following equation 3:
V=n*(V1−V2)=n*(Va1+Va2−Vb1−Vb2) (3)
In the equation 3, n is a multiple value of differential amplification, Va2 is approximately equal to Vb2.
In another embodiment, the electronic device 1 can also eliminate the noises produced by the vibration device 40 by software processing. In the embodiment, the disabling module 105 is used to disable a vibration function of the vibration device 40, when the detecting module 101 determines that the electronic device 1 is in the voice recording mode. When the vibration function is disabled, the vibration device 40 cannot vibrate and produce the noise.
The activating module 106 is used to activate the vibration function of the vibration device 40, when the detecting module 101 determines that the electronic device lexits the voice recording mode. In the embodiment, when the detecting module 101 detects that the application running a voice recording function is disabled or the voice recording function in the application is disabled, the detecting module 101 determines that the electronic device 1 exits the voice recording mode.
The determining module 103 further determines whether the electronic device 1 is activated to transmit the speaking voices of at least one user to a receiver. The transmission module 107 is used to transmit the speaking voices of at least one user without the noises produced by the vibration device 40 to the receiver, when the determining module 103 determines that the electronic device 1 is activated to transmit the speaking voices of at least one user to a receiver.
At block 201, the detecting module 101 detects whether the electronic device 1 is in a voice recording mode. When the detecting module 101 detects that the electronic device 1 is in the voice recording mode, the process goes to block 202. When the detecting module 101 detects that the electronic device 1 is not in the voice recording mode, the process continues in block 201.
At block 202, the acquiring module 102 controls the first acquiring device 30 to acquire the speaking voices of at least one user.
At block 203, the determining module 103 determines whether the speaking voices of the at least one user acquired by the first acquiring device 30 include noises produced by the vibration device 40. When the determining module 103 determines that the speaking voices of at least one user acquired by the first acquiring device 30 include the noises produced by the vibration device 40, the process goes to block 204. When the determining module 103 determines that the speaking voices of at least one user acquired by the first acquiring device 30 do not include the noises produced by the vibration device 40, the process ends.
At block 204, the eliminating module 104 eliminates the noises produced by the vibration device 40.
At block 205, the determining module 103 further determines whether the electronic device 1 is activated to transmit the speaking voices to a receiver. When the determining module 103 determines that the electronic device 1 is activated to transmit the user voices to a receiver, the process goes to block 206. When the determining module 103 determines that the electronic device 1 is not activated to transmit the user voices to a receiver, the process ends.
At block 206, the transmission module 107 transmits the speaking voices of the at least one user without the noises produced by the vibration device 40 to the receiver.
In another embodiment, the method can include disabling a vibration function of the vibration device 40, when determining that the electronic device 1 is in the voice recording mode, and activating the vibration function of the vibration device 40, when determining that the electronic device 1 exits the voice recording mode.
It is believed that the present embodiments and their advantages will be understood from the foregoing description, and it will be apparent that various changes may be made thereto without departing from the spirit and scope of the disclosure or sacrificing all of its material advantages, the examples hereinbefore described merely being embodiments of the present disclosure.
Number | Date | Country | Kind |
---|---|---|---|
201811614776.7 | Dec 2018 | CN | national |
Number | Name | Date | Kind |
---|---|---|---|
7761106 | Konchitsky | Jul 2010 | B2 |
20070021958 | Visser | Jan 2007 | A1 |
20110130176 | Magrath | Jun 2011 | A1 |
20150310845 | Chan | Oct 2015 | A1 |
20160034057 | Ikeda | Feb 2016 | A1 |
20180012585 | Qiao | Jan 2018 | A1 |
Number | Date | Country | |
---|---|---|---|
20200211525 A1 | Jul 2020 | US |