I32S148. 九、發明說明: 【發明所屬之技術領域】 本發明涉及-種電子裝置及方法,特別涉及一種具有 關閉鬧鐘功能的電子I置及錢鐘㈣閉方法。 【先前技術】 目前,各種電子設備大都提供閙鐘魏,帛戶可預先 設定-鬧鐘時間,當到達預定的時間鬧鐘響起,此時,用 φ彳—般只S按下電子設備的任意按鍵或某—固定按鍵即可 關閉鬧鐘,此操作在用戶在未睁開眼睛或是大腦並未完全 清醒的狀態下便可以完成。但這樣可能會導致用戶甚至都 不知道自己曾關閉過閙鐘,而繼續熟睡過去。 即使财技術增加了間隔—段時間後再次啟動鬧鐘的 二但疋廷樣會造成用戶心理上的放鬆警惕,而且用戶 按情況下’仍然可以在大腦不太清醒時就按下 鲁 【發明内容】 尸町作用 有馨於此’本發明提供—種具有_功 及方法,以解決現有技術中電子裝置 喚醒用戶的問題。 力此不月匕有效 所述具有鬧鐘功能的電子裝置包括—存儲單元; 入早7L,一音頻輸出單元;一顯示 輸 用於接收用戶的輸入摔作1存 /、中該輸入單元 於在到達-預定時間時隨機讀取並通過該音頻輪=元2 6 一提問選項產生模組,用於產生預定數目個 的相其中至少―提問選項包含有當前所播放音頻槽 選擇2訊,及—判斷模組,用於判斷用戶通過輸入單元 ^擇:提問選項是否包含有當前所播放音㈣的相關資 L句:用戶所選擇的提問選項為當前所播放音頻槽的相關 ’或當輸人單元在超過—預定時間段未接收到用戶 的輸入操作時,該音_放模组停止播放音頻槽。 …所述關_鐘的方法用於—制鐘魏的電子裝置, ^電子衣置包# #儲單元存儲音頻槽及音頻標的相關資 訊,-輸入單元用於接收用戶的輸入操作。其中該方法包 括步驟:在到達-預定時間時,讀取並播放一音頻槽;產 生預定數目個提問選項,其中至少一提問選項包含當前所 播放日頻槽相關貧訊,並顯示所產生的提問選項;判斷用 ^輪入操作所選擇的提問選項為當前所播放音頻槽的相關 貢訊或輸入單元在一預定時間段未接收到用戶的輸入操作 時;停止播放音頻檔。 相較現有技術’該具有鬧鐘功能的電子裝置及方法需 要用戶在減電子裝置賴放的音頻内容選擇與該音頻相 關的資δίΐ後’才可關閉鬧鐘,因要選擇正確的相關資訊需 要一段思維過程,可使用戶大腦清醒,如此可有效喚醒用 戶。 【實施方式】 s青參照圖1’是本發明具有鬧鐘功能的電子裝置的硬 體架構圖。該電子裝置i可為手機、mp3播放器等具有音 1328148. 頻播放及鬧鐘功能的電子裝置。該電子裝置1包括一時鐘 單元2、一音頻輸出單元3、一顯示單元4、一存儲單元5、 一輸入單元6及一微處理單元7。該時鐘單元2用於產生 時鐘資訊。該輸入單元6用於接收用戶的輸入操作,該輸 入單元6通常為鍵盤,可包括數字鍵、字母鍵等。該存儲 單元5存儲音頻檔及音頻檔的相關資訊,例如mp3格式的 音頻檔除了音頻資料外,還包括一音頻頭資訊(ID3),在 該ID3中記錄有演唱者、歌曲名稱、所屬專輯名稱等與該 音頻檔相關的一些資訊。如圖2所示,音頻檔A的ID3中 所記錄的相關資訊為Al,A2及A3。 請繼續參照圖1,該微處理單元7包括一鬧鐘管理模 組71、一音頻播放模組72、一提問選項產生模組73、一 判斷模組74、一計數模組75及一設置模組76。 該鬧鐘管理模組71在到達一預定時間時啟動該電子 裝置1的一鬧鐘模式。在進入鬧鐘模式後,該音頻播放模 組72從存儲單元5中隨機讀取一音頻檔,並控制該音頻輸 出單元3播放該音頻檔。 該提問選項產生模組73產生預定數目個提問選項,該 預定數目個提問選項由音頻檔的相關資訊組成,且提問選 項中至少包含一與當前所播放音頻檔對應的相關資訊,其 他提問選項可從非當前播放音頻檔的相關資訊中隨機選 取。 該提問選項產生模組73還將所產生的提問選項按照 隨機排序的方式顯示於該顯示單元4以供用戶選擇。例 8 1328148. 如,所述預定數目為四,即需要產生四個提問選項,當前 播放音頻檔為檔A,則該提問選項產生模組73先選取一音 頻檔A的相關資訊如A1,然後再從除音頻檔A以外其他 音頻檔的相關資訊中隨機選取三個相關資訊如B2、C3、 C2,將所選取的四個相關資訊Al、B2、C3、C2按照隨機 方式排序後顯示於顯示單元4 (如圖3所示),並在每個提 問選項前顯示一標識,用戶可通過操作輸入單元6中與該 標識對應的按鍵以選擇回答的提問選項。各提問選項前對 應的標識可不採用傳統的順序標號方式(例如四個提問選 項分別用1、2、3、4作為標識),而可隨機從輸入單元6 所包含的鍵號中選取,例如圖3所示的四個標識分別為9、 5、2、4 ,如此可增加用戶在執行選擇操作時的難度。 所述判斷模組74根據用戶通過輸入單元6進行的選擇 操作,判斷用戶所選擇的提問選項是否包含有當前所播放 音頻檔的相關資訊。當用戶所選擇的提問選項為當前所播 放音頻檔的相關資訊時,即用戶選擇正確時,該計數模組 75將選擇正確的次數增加一次。在本發明第一實施方式 中,當選擇正確的次數未達到一預定次數時,該提問選項 產生模塊73將再次產生並通過該顯示單元4輸出預定數目 個提問選項,此次所產生的預定數目個提問選項中包含至 少一當前所播放音頻檔的相關資訊,但不包含前次已用做 產生提問選項的相關資訊,用戶再次通過輸入單元6進行 選擇。當用戶選擇正確的次數達到該預定次數時,該鬧鐘 管理模組71關閉鬧鐘模式。 9 1328.148. 在本發明第二實施方式中,當用戶選擇正確的次數未 達到該預定次數時,該音頻播放模組72隨機讀取除當前播 放音頻檔外的另一音頻檔並通過該音頻輸出單元3播放, 該提問選項產生模組73產生並通過該顯示單元4輸出預定 數目個提問選項,此次所產生的預定數目個提問選項中包 含至少一當前所播放音頻檔的相關資訊,用戶再次通過輸 入單元6進行選擇。當用戶選擇正確的次數達到該預定次 數時,該鬧鐘管理模組71關閉鬧鐘模式,控制該音頻播放 模組72停止播放音頻檔。 用戶可通過所述設置模組76設置所述預定次數。如果 預定次數設定為一次,當用戶首次選擇正確時,該鬧鐘管 理模組71關閉鬧鐘模式。 在前述的各實施方式中,如果用戶選擇的提問選項並 未包含有當前所播放音頻的相關資訊,即選擇了錯誤的提 問選項,則判斷模組74通過顯示單元4顯示一提示資訊或 通過音頻輸出單元3輸出一聲音資訊以提示用戶選擇錯 誤。且該提問選項產生模組73可改變先前產生提問選項的 排列順序並輸出至顯示單元4,或該提問選項產生模組73 可重新產生並通過該顯示單元4輸出預定數目個提問選項 以供用戶再次選擇,此次生成的提問選項中包含至少一當 前所播放音頻檔的相關資訊,但不包含前次已用做產生提 問選項的相關資訊。另外,如果在進入鬧鐘模式後,用戶 並未在本發明電子裝置周圍,則若在一預定時間段内輸入 單元未接收到任何選擇操作,該鬧鐘管理模組71將關閉鬧 10 1328148. 鐘。 圖4是本發明第一實施方式下關閉鬧鐘的方法流程 圖。該方法包括步驟: 在到達一預定時間時,該鬧鐘管理模組71啟動該電子 裝置1的鬧鐘模式(步驟S101)。 該音頻播放模組72從存儲單元5中隨機讀取一音頻 檔,並控制該音頻輸出單元3播放該音頻檔(步驟S102)。 該提問選項產生模組73產生預定數目個提問選項,該 提問選項至少包括一當前所播放音頻檔的相關資訊,將所 產生的提問選項按照隨機排序的方式顯示於該顯示單元 4,並在每個提問選項前顯示一標識(步驟S103)。 輸入單元6判斷是否接收到用戶的選擇操作(步驟 S104)。如果步驟S104的判斷結果為否,則流程轉至步驟 S105 ;否則流程轉至步驟S106。 判斷是否到達一預定時間段(步驟S105)。如果步驟 S105的判斷結果為否,則流程轉至步驟S104 ;否則流程轉 至步驟S110。 判斷模組74判斷用戶所選擇的提問選項是否包含當 前所播放音頻檔的相關資訊(步驟S106)。如果步驟S106 的判斷結果為否,則流程轉至步驟S107 ;否則流程轉至步 驟 S108 。 提問選項產生模組73產生預定數目個提問選項,該預 定數目個提問選項中包含至少一當前所播放音頻檔的相關 資訊,但不包含前次已用做產生提問選項的相關資訊,將 11 1328148. 所產生的提問選項按照隨機排序的方式顯示於該顯示單元 (步驟S107)。步驟S107的後續步驟為步驟S104。 該計數模組75將選擇正確的次數增加一次(步驟 5108) 。 判斷用戶選擇正確的次數是否達到預定次數(步驟 5109) 。如果步驟S109的判斷結果為否,則流程轉至步驟 S107 ;否則流程轉至步驟S110。 該鬧鐘管理模組71關閉鬧鐘模式(步驟S110)。 圖5是本發明第二實施方式下關閉鬧鐘的方法流程 圖。該方法包括步驟: 在到達一預定時間時,該鬧鐘管理模組71啟動該電子 裝置1的鬧鐘模式(步驟S201)。 該音頻播放模組72從存儲單元5中隨機讀取一音頻 檔,並控制該音頻輸出單元3播放該音頻檔(步驟S202)。 該提問選項產生模組73產生預定數目個提問選項,該 提問選項至少包括一當前所播放音頻檔的相關資訊,將所 產生的提問選項按照隨機排序的方式顯示於該顯示單元 4,並在每個提問選項前顯示一標識(步驟S203)。 輸入單元6判斷是否接收到用戶的選擇操作(步驟 S204)。如果步驟S204的判斷結果為否,則流程轉至步驟 S205 ;否則流程轉至步驟S206。 判斷是否到達一預定時間段(步驟S205)。如果步驟 S205的判斷結果為否,則流程轉至步驟S204;否則流程轉 至步驟S210。 12 1328.148. 判斷模組74判斷用戶所選擇的提問選項是否包含當 前所播放音頻檔的相關資訊(步驟S206)。如果步驟S206 的判斷結果為否,則流程轉至步驟S207 ;否則流程轉至步 驟 S208。 音頻播放模組72將停止播放當前所播放的音頻檔,從 存儲單元5中隨機讀取除當前播放音頻檔外的另一音頻檔 並通過該音頻輸出單元3輸出(步驟S207)。步驟S207的 後續步驟為S203。 該計數模組75將選擇正確的次數增加一次(步驟 5208) 。 判斷用戶選擇正確的次數是否達到預定次數(步驟 5209) 。如果步驟S209的判斷結果為否,則流程轉至步驟 S207;否則流程轉至步驟S210。 該鬧鐘管理模組71關閉鬧鐘模式(步驟S210)。 第二實施方式中與第一實施方式中鬧鐘使用方法流程 的不同之處在於:在第一實施方式中,當用戶所選擇的提 問選項不為與當前所播放音頻檔對應的相關資訊以及用戶 選擇正確的次數未達到預定次數時,音頻播放模組72仍將 繼續播放當前所播放的音頻檔,在步驟S107中提問選項產 生模組73產生當前播放音頻檔的相關資訊提問選項;而在 第二實施方式中,當用戶所選擇的提問選項不為當前所播 放音頻檔的相關資訊以及用戶選擇正確的次數未達到預定 次數時,在步驟S207中,音頻播放模組72將停止播放當 前所播放的音頻檔,從存儲單元5中隨機讀取除當前播放 13 1328148 音頻檔外的另一音頻檔並通過該音頻輸出單元3輸出。 【圖式簡單說明】 圖1是本發明具有鬧鐘功能的電子裝置的硬體架構 圖; 圖2是本發明音頻相關資訊示意圖; 圖3是本發明音頻檔提問選項選擇介面示意圖; 圖4是本發明第一實施方式鬧鐘使用方法的流程圖; 圖5是本發明第二實施方式鬧鐘使用方法的流程圖。 【主要元件符號說明】 電子裝置 1 時鐘單元 2 音頻輸出單元 3 顯示單元 4 存儲單元 5 輸入單元 6 微處理單元 7 鬧鐘管理模組 71 音頻播放模組 72 提問選項產生模組 73 判斷模組 74 計數模組 75 設置核組 76 14I32S148. IX. Description of the Invention: [Technical Field] The present invention relates to an electronic device and method, and more particularly to an electronic I setting and a money clock (four) closing method having a function of turning off the alarm clock. [Prior Art] At present, most of the various electronic devices provide 閙 魏 Wei, the set-up can be pre-set - the alarm time, when the alarm arrives at the scheduled time, at this time, use φ 彳 only S to press any button of the electronic device or A certain - fixed button to turn off the alarm, this operation can be completed when the user does not open his eyes or the brain is not fully awake. But this may cause the user to not even know that he has closed the cuckoo clock and continues to sleep. Even if the financial technology increases the interval - the second time after the start of the alarm clock, but the case will cause the user to be psychologically relaxed, and the user can still press the Lu when the brain is not awake [invention] The function of the corpse is singular. The present invention provides a method and a method for solving the problem that the electronic device wakes up the user in the prior art. The electronic device having the alarm clock function includes: a storage unit; an early 7L, an audio output unit; a display input for receiving the user's input is stored, and the input unit is arriving at - randomly reading and passing the audio wheel = element 2 6 a question option generation module for generating a predetermined number of phases, at least the "question option includes the currently played audio slot selection 2 message, and - judging The module is configured to determine whether the user selects through the input unit: whether the question option includes the currently played sound (4) related L sentence: the question option selected by the user is related to the currently played audio slot or when the input unit is When the user does not receive the input operation for a predetermined period of time, the tone-play module stops playing the audio slot. The method of the off_clock is used for the electronic device of the clock, the electronic clothing package ## storage unit stores the audio channel and the audio tag related information, and the input unit is used for receiving the input operation of the user. Wherein the method comprises the steps of: reading and playing an audio slot upon arrival-predetermined time; generating a predetermined number of questioning options, wherein at least one of the questioning options includes the currently played daily frequency slot related poorness, and displaying the generated question Option; determining that the question option selected by the ^ wheeling operation is that the related tribute or input unit of the currently played audio slot does not receive the user's input operation for a predetermined period of time; the audio file is stopped. Compared with the prior art, the electronic device and method with the alarm clock function requires the user to turn off the alarm clock after selecting the audio content related to the audio content of the electronic device, because it is necessary to select the correct related information. The process can make the user's brain awake, which can effectively wake up the user. [Embodiment] FIG. 1 is a hardware structural diagram of an electronic device having an alarm clock function according to the present invention. The electronic device i can be an electronic device such as a mobile phone, an mp3 player, or the like having a tone 1328148. frequency play and an alarm clock function. The electronic device 1 includes a clock unit 2, an audio output unit 3, a display unit 4, a storage unit 5, an input unit 6, and a micro processing unit 7. The clock unit 2 is used to generate clock information. The input unit 6 is for receiving input operations of a user, and the input unit 6 is generally a keyboard, and may include numeric keys, letter keys, and the like. The storage unit 5 stores information about the audio file and the audio file. For example, the audio file in the mp3 format includes an audio head information (ID3) in addition to the audio material, and the singer, the song name, and the album name are recorded in the ID3. Wait for some information related to the audio file. As shown in Fig. 2, the related information recorded in ID3 of the audio file A is Al, A2 and A3. Referring to FIG. 1 , the micro processing unit 7 includes an alarm management module 71 , an audio playback module 72 , a question option generation module 73 , a determination module 74 , a counting module 75 , and a setting module . 76. The alarm management module 71 activates an alarm mode of the electronic device 1 upon reaching a predetermined time. After entering the alarm mode, the audio play module 72 randomly reads an audio file from the storage unit 5 and controls the audio output unit 3 to play the audio file. The question option generation module 73 generates a predetermined number of question options, the predetermined number of question options are composed of related information of the audio file, and the question option includes at least one related information corresponding to the currently played audio file, and other question options may be Randomly select from related information that is not currently playing audio files. The question option generation module 73 also displays the generated question options in the randomized manner on the display unit 4 for selection by the user. Example 8 1328148. For example, if the predetermined number is four, that is, four question options need to be generated, and the currently played audio file is file A, the question option generating module 73 first selects an audio file A related information such as A1, and then Then, three related information such as B2, C3, and C2 are randomly selected from the related information of the audio files other than the audio file A, and the selected four related informations Al, B2, C3, and C2 are sorted in a random manner and displayed on the display. Unit 4 (shown in Figure 3) displays an identification before each question option, and the user can select the answer option to answer by operating a button in the input unit 6 corresponding to the identification. The corresponding identifiers before the question options may not be in the traditional sequential labeling manner (for example, four questioning options are identified by 1, 2, 3, and 4, respectively), and may be randomly selected from the key numbers included in the input unit 6, for example, The four identifiers shown in 3 are 9, 5, 2, and 4, respectively, which increases the difficulty for the user to perform the selection operation. The determining module 74 determines, according to the selection operation performed by the user through the input unit 6, whether the question option selected by the user includes related information of the currently played audio file. When the question option selected by the user is the related information of the currently played audio file, that is, when the user selects the correct one, the counting module 75 increases the number of times the selection is correct. In the first embodiment of the present invention, when the correct number of times of selection has not reached a predetermined number of times, the question option generating module 73 will again generate and output a predetermined number of question options through the display unit 4, the predetermined number generated this time. The question options include at least one piece of information about the currently played audio file, but do not include related information that has been used to generate the question option, and the user selects again through the input unit 6. When the user selects the correct number of times to reach the predetermined number of times, the alarm management module 71 turns off the alarm mode. 9 1328.148. In the second embodiment of the present invention, when the user selects the correct number of times that the predetermined number of times has not been reached, the audio play module 72 randomly reads another audio file other than the currently played audio file and outputs the audio through the audio. The unit 3 plays, and the question option generation module 73 generates and outputs a predetermined number of question options through the display unit 4. The predetermined number of question items generated in this time includes at least one related information of the currently played audio file, and the user again Selection is made by the input unit 6. When the user selects the correct number of times to reach the predetermined number of times, the alarm management module 71 turns off the alarm mode, and controls the audio play module 72 to stop playing the audio file. The user can set the predetermined number of times through the setting module 76. If the predetermined number of times is set to one, the alarm management module 71 turns off the alarm mode when the user first selects correctly. In the foregoing embodiments, if the question option selected by the user does not include the related information of the currently played audio, that is, the wrong question option is selected, the determining module 74 displays a prompt message or through the audio through the display unit 4. The output unit 3 outputs a sound message to prompt the user to select an error. And the question option generation module 73 can change the arrangement order of the previously generated question options and output to the display unit 4, or the question option generation module 73 can regenerate and output a predetermined number of question options through the display unit 4 for the user. Again, the generated question option contains at least one piece of information about the currently played audio file, but does not contain relevant information that was previously used to generate the question option. In addition, if the user is not around the electronic device of the present invention after entering the alarm mode, if the input unit does not receive any selection operation within a predetermined period of time, the alarm management module 71 will turn off the alarm 10 1328148. Fig. 4 is a flow chart showing the method of turning off the alarm clock in the first embodiment of the present invention. The method includes the steps of: upon reaching a predetermined time, the alarm management module 71 activates an alarm mode of the electronic device 1 (step S101). The audio play module 72 randomly reads an audio file from the storage unit 5 and controls the audio output unit 3 to play the audio file (step S102). The question option generation module 73 generates a predetermined number of question options, the question option includes at least information related to the currently played audio file, and displays the generated question options in the randomized manner on the display unit 4, and in each A flag is displayed before the question option (step S103). The input unit 6 judges whether or not the user's selection operation is received (step S104). If the decision result in the step S104 is NO, the flow proceeds to a step S105; otherwise, the flow proceeds to a step S106. It is judged whether or not a predetermined period of time has elapsed (step S105). If the decision result in the step S105 is NO, the flow goes to a step S104; otherwise, the flow goes to a step S110. The judging module 74 judges whether the question option selected by the user includes information related to the currently played audio file (step S106). If the decision result in the step S106 is NO, the flow proceeds to a step S107; otherwise, the flow proceeds to a step S108. The question option generation module 73 generates a predetermined number of question options, the predetermined number of question options including at least one related information of the currently played audio file, but does not include related information that has been used to generate the question option, 11 1328148 The generated question options are displayed on the display unit in a random order (step S107). The subsequent step of step S107 is step S104. The counting module 75 increments the selection by the correct number of times (step 5108). It is judged whether the user has selected the correct number of times to reach the predetermined number of times (step 5109). If the decision result in the step S109 is NO, the flow proceeds to a step S107; otherwise, the flow proceeds to a step S110. The alarm management module 71 turns off the alarm mode (step S110). Fig. 5 is a flow chart showing the method of turning off the alarm clock in the second embodiment of the present invention. The method includes the steps of: upon reaching a predetermined time, the alarm management module 71 activates an alarm mode of the electronic device 1 (step S201). The audio play module 72 randomly reads an audio file from the storage unit 5 and controls the audio output unit 3 to play the audio file (step S202). The question option generation module 73 generates a predetermined number of question options, the question option includes at least information related to the currently played audio file, and displays the generated question options in the randomized manner on the display unit 4, and in each A flag is displayed before the question option (step S203). The input unit 6 judges whether or not the user's selection operation is received (step S204). If the decision result in the step S204 is NO, the flow proceeds to a step S205; otherwise, the flow proceeds to a step S206. It is judged whether or not a predetermined period of time has elapsed (step S205). If the decision result in the step S205 is NO, the flow goes to a step S204; otherwise, the flow goes to a step S210. 12 1328.148. The judging module 74 judges whether the question option selected by the user includes information about the currently played audio file (step S206). If the decision result in the step S206 is NO, the flow proceeds to a step S207; otherwise, the flow proceeds to a step S208. The audio play module 72 will stop playing the currently played audio file, and randomly read another audio file other than the currently played audio file from the storage unit 5 and output it through the audio output unit 3 (step S207). The subsequent step of step S207 is S203. The counting module 75 increments the selection by the correct number of times (step 5208). It is judged whether the user has selected the correct number of times to reach the predetermined number of times (step 5209). If the decision result in the step S209 is NO, the flow proceeds to a step S207; otherwise, the flow proceeds to a step S210. The alarm management module 71 turns off the alarm mode (step S210). The second embodiment differs from the flow of the alarm clock using method in the first embodiment in that, in the first embodiment, when the question option selected by the user is not related information corresponding to the currently played audio file and the user selects When the correct number of times does not reach the predetermined number of times, the audio play module 72 will continue to play the currently played audio file, and in step S107, the question option generation module 73 generates the related information question option of the currently played audio file; In the embodiment, when the question option selected by the user is not the related information of the currently played audio file and the user selects the correct number of times does not reach the predetermined number of times, in step S207, the audio play module 72 will stop playing the currently played. In the audio file, another audio file other than the currently played 13 1328148 audio file is randomly read from the storage unit 5 and output through the audio output unit 3. BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a hardware structural diagram of an electronic device having an alarm clock function according to the present invention; FIG. 2 is a schematic diagram of audio related information of the present invention; FIG. 3 is a schematic diagram of an audio interface question selection interface of the present invention; BRIEF DESCRIPTION OF THE DRAWINGS FIG. 5 is a flow chart showing a method of using an alarm clock according to a second embodiment of the present invention. [Description of main component symbols] Electronic device 1 Clock unit 2 Audio output unit 3 Display unit 4 Storage unit 5 Input unit 6 Micro processing unit 7 Alarm management module 71 Audio playback module 72 Question option generation module 73 Judgment module 74 Count Module 75 sets core group 76 14