1. Related Applications
This application is related to a co-pending U.S. patent application 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.
2. Technical Field
The present disclosure relates to an electronic audio playing apparatus with an interactive function and a method thereof.
3. 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 an interactive function and a method for achieving the interactive 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, and an input unit 15. The data storage 11 stores at least one interactive file 11, a right answer feedback audio database 12, and a wrong answer feedback audio database 113. 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 111. 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 records address of the associated question audio 23, the address of the question audio time and sequence data 212 of the next 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 122, a response determining module 123, a response feeding back 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 111, and further accessing the main audio 22 according to the address recorded in the main audio time and sequence data 211, and accessing the question audios 23 according to the addresses recorded in the question audio time and sequence data 212. After decoding by the decoder 13, the accessed main audio 22 and question audio 23 is output through 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 123 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 response feeding back module 124 obtains one feedback audio from the right answer feedback audio database 112 when the response determining module 123 determines that the answer from the user is right and obtains one feedback audio from the wrong answer feedback audio database 113 when the response determining module 124 determines that the answer from the user is wrong answer. The obtained feedback audio is output through the audio output unit 14 after being decoded by the decoder 13.
The question sequencing module 125 is for determining whether the address of the question audio time and sequence data 212 of the next question audio 23 is a predetermined value after the feedback audio is output. If the address of the question audio time and sequence data 212 of the next question audio 23 is the predetermined value, the question sequencing module 125 ends playing the interactive file 111. If the address of the next question audio time and sequence data 212 is not the predetermined value, the question sequencing module 125 notifies the play controlling module 121 to access the next question audio time and sequence data 212 according to the corresponding address.
In step S702, after decoded by the decoder 13, the accessed main audio 22 is output through the audio output unit 14.
In step S703, the play controlling module 121 accesses the first question audio time and sequence data 212 from the time and sequence data 21.
In step S704, 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 S705, the response receiving module 122 receives the response answer from user through the input unit 15.
In step S706, the response determining module 123 compares the response answer from user with the right answer included in the question audio time and sequence data 212 to determine whether the response answer from user is a right or wrong answer.
In step S707, the response feeding back module 124 obtains one feedback audio from the right answer feedback audio database 112 or the wrong answer feedback audio database 113 according to the determining result of step S706. The obtained feedback audio is output through the audio output unit 14 after decoded by the decoder 13.
In step S708, the question sequencing module 125 obtains the address of the question audio time and sequence data 212 of the next question audio 23.
In step S709, the question sequencing module 125 determines whether the address of the next question audio time and sequence data 212 is a predetermined value. If the address of the next question audio time and sequence data 212 is a predetermined value, the question sequencing module 125 ends playing the interactive file 111.
If the address of the next question audio time and sequence data is not a predetermined value, in step S710, the question sequencing module 125 notifies the play controlling module 121 to access the next question audio time and sequence data 212 according to the address of the next question audio time and sequence data 212, and the procedure goes to step S704.
The CPU 12′ of the apparatus 10′ further includes a score counting module 126, and an appraising module 127. The counting module 126 is for increasing the score according to the determining result of the response determining module 123. For example, if the response determining module 123 determines that the current answer from the user is right, the counting module 126 adds 1 to the score, if the response determining module 123 determines that the answer from the user is wrong, then the count of the counting module 126 stays the same.
The appraising module 127 is for obtaining the score when the address of the next question audio time and sequence data 212 is a predetermined value, determining the range which the score falls into, and obtaining the associated score based audio from the score based audio database 114. The score based audio is output through the audio output unit 14 after being decoded by the decoder 13.
In step S102, the appraising module 127 obtains the score from the data storage 11 when the address of the next question audio time and sequence data 212 is a predetermined value.
In step S103, the appraising module 127 determines the range which the score falls into.
In step S104, the appraising module 127 obtains the associated score based audio of the determined range from the score based audio database 114.
In step S105, the appraising module 127 outputs the score based audio through the audio output unit 14 after being decoded by the decoder 13.
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 |
---|---|---|---|
200910300446.5 | Feb 2009 | CN | national |