1. Technical Field
The present disclosure relates to electronic devices and, particularly, to an electronic device capable of automatically pausing playing multimedia files and a method thereof.
2. Description of Related Art
When people use their electronic devices to listen to music or watch movies, they may have the volume so high that they don't hear the ringtones of their mobile phones when there is an incoming call or a message. Thus, people may miss an important communication.
The components of the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the present disclosure. Moreover, in the drawings, like reference numerals designate corresponding parts throughout several views.
Referring to
In this embodiment, when the processing unit 40 directs the multimedia playing unit 50 to play one multimedia file, the processing unit 40 analyzes picked up sounds to determine whether the picked up sounds include other sounds except for the sounds generated by playing the one multimedia file. If yes, the processing unit 40 obtains the other sounds. The processing unit 40 can obtain the other sounds using known noise cancellation technology. The processing unit 40 further compares the other sounds with sounds in the one or more sound recognition files. If the processing unit 40 determines that the other sounds match sounds of one sound recognition file, the processing unit 40 directs the multimedia playing unit 50 to pause playing the one multimedia file.
For better understanding the present disclosure, an example is given to illustrated the present disclosure. In this embodiment, the device 100 is a tablet computer, and another device is a mobile phone. A user records the ringtones of his/her mobile phone onto the tablet computer 100, saving the resulting audio files to the sound recognition files. When the tablet computer 100 is being used to play an audio file or a video file, if the mobile phone receives an incoming call or an incoming message, the ringtone is heard by the environment microphone unit 20 and compared with the stored ringtones in the sound recognition files. If there is a match, the processing unit 40 determines that the mobile phone is receiving an incoming call or an incoming message, and directs the multimedia playing unit 50 to pause playing the audio file or video file. Thus, the user can easily hear the ringtone and timely answer the incoming call or view an incoming message.
In step S201, the processing unit 40 directs the multimedia playing unit 50 to play one multimedia file in response to user's operation on the input unit 10.
In step S202, the processing unit 40 analyzes picked up sounds to determine whether the picked up sounds include other sounds except for the sounds generated by playing the one multimedia file.
In step S203, the processing unit 40 obtains the other sounds if the picked up sounds include the other sounds.
In step S204, the processing unit 40 compares the other sounds with sounds of the one or more sound recognition files to determine whether the other sounds match sounds in one sound recognition file.
In step S205, the processing unit 40 directs the multimedia playing unit 50 to pause playing the one multimedia file if the other sounds match sounds in one sound recognition file.
Although the present disclosure has been specifically described on the basis of the exemplary embodiment thereof, the disclosure is not to be construed as being limited thereto. Various changes or modifications may be made to the embodiment without departing from the scope and spirit of the disclosure.
Number | Date | Country | Kind |
---|---|---|---|
100135070 | Sep 2011 | TW | national |