1. Technical Field
The present disclosure relates to an electronic audio playing apparatus with an interactive function and a method thereof.
2. Description of Related Art
Current audio file formats commonly used are, among others, AAC, AC-3, ATRAC3plus, MP3, and WMA9. Users can only play such files and cannot interact with them.
Therefore, what is needed is an electronic audio playing apparatus with interactive function for audio files and a method for such an apparatus to achieve the function.
The components of the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the electronic audio playing apparatus. Moreover, in the drawings, like reference numerals designate corresponding parts throughout several views.
The apparatus 10 includes a data storage 11, a central processing unit (CPU) 12, an audio decoder 13, an audio output unit 14, an input unit 15, and an action performing device 16. The data storage 11 stores at least one interactive file. Referring to
In another embodiment, the time and sequence data 21, the main audio 22, and each of the question audios 23 are stored in the data storage 11 as separate files, as shown in
The time and sequence data 21 is a kind of metadata that describes the structure of the interactive file 20. The time and sequence data includes a main audio time and sequence data 211 and a plurality of question audio time and sequence data 212. The main audio time and sequence data 211 includes address of the main audio 22.
Each of the question audio time and sequence data 212 is associated with a question audio 23, and includes information related to the associated question audio 23. For example, the question audio time and sequence data 212 includes address of the associated question audio 23 and a right answer of the associated question audio 23.
The CPU 12 includes a play controlling module 121, a response receiving module 126, a response determining module 123, an action performing module 124, and a question sequencing module 125.
The play controlling module 121 is for accessing the time and sequence data 21 of the interactive file 20, and further accessing the main audio 22 according to the address included in the main audio time and sequence data 211, and accessing the question audios 23 according to the addresses included in the question audio time and sequence data 212. After being decoded by the decoder 13, the accessed main audio 22 and question audio 23 is output by the audio output unit 14.
The response receiving module 122 is for receiving and recognizing input signals generated by the input unit 15 and thus to determine answers from the user. The input unit 15 can be buttons, touch sensors, or an audio input device such as a microphone. In this exemplary embodiment, the input unit 15 is buttons. Accordingly, the user can input different answers by pressing different buttons. For example, there can be four buttons A-D for inputting answers A-D.
The response determining module 124 is for comparing the answer from the user with the right answer included in the question audio time and sequence data 212 to determine whether the answer from the user is right or wrong.
The question sequencing module 125 is for determining whether the question audio currently played is the last one. If the question audio 23 currently played is the last one, the question sequencing module 125 ends playing the interactive file 20. If the question audio 23 currently played is not the last one, the question sequencing module 125 notifies the play controlling module 121 to access the question audio time and sequence data 212 of the next question audio 23. In this exemplary embodiment, the question sequencing module 125 determines whether the question audio currently played is the last one by determining whether the number of the question audio 23 currently played is equal to the number of the question audios, and the question sequencing module 125 obtains the question audio time and sequence data 212 of the next audio 23 according to the sequence that the question audio time and sequence data 212 is stored in the data storage 11.
In another exemplary embodiment, the question audio time and sequence data 212 further includes the address of the question audio time and sequence data of the next question audio 23. The question sequencing module 125 determines whether the question audio currently played is the last one by determining whether the address of the question audio time and sequence data 212 of the next question audio 23 is a predetermined value, and the question sequencing module 125 obtains the question audio time and sequence data 212 of the next audio 23 according to the address of the question audio time and sequence data of the next question audio 23.
In step S402, after decoded by the decoder 13, the accessed main audio 22 is output through the audio output unit 14.
In step S403, the play controlling module 121 accesses the first question audio time and sequence data 212 from the time and sequence data 21.
In step S404, the play controlling module 121 accesses the question audio 23 according to the address included in the accessed question audio time and sequence data 212, and outputs the accessed question audio 23 through the audio output unit 14 after the accessed question audio 23 is decoded by the decoder 13.
In step S405, The response receiving module 122 receives and recognizes input signals generated by the input unit 15 and thus to determine answers from the user.
In step S406, the response determining module 124 compares the answer from the user with the right answer included in the question audio time and sequence data 212 to determine whether the answer from the user is right or wrong.
In step S407, the action performing module 124 controls the action performing device 16 to perform an action corresponding to the comparison result.
In step S408, the question sequencing module 125 determines whether the question audio 23 currently played is the last one.
If the question audio 23 currently played is not the last one, in step S409, the question sequencing module 125 notifies the play controlling module 121 to access the next question audio time and sequence data 212, and the procedure goes to step S504.
Although the present invention has been specifically described on the basis of preferred embodiments, the invention 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 invention.
Number | Date | Country | Kind |
---|---|---|---|
200810306365.1 | Dec 2008 | CN | national |
This application is related to a commonly owned, co-pending U.S. patent application, with docket no. US18551, filed concurrently herewith and entitled “ELECTRONIC AUDIO PLAYING APPARATUS WITH AN INTERACTIVE FUNCTION AND METHOD THEREOF”, which is incorporated herein in its entirety by reference.