1. Technical Field
The present disclosure relates to an 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 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 20, and a voice prompt database 24. Referring to
In another embodiment, the controlling 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 controlling data 21 is a kind of metadata that describes the structure of the interactive file 20. The controlling data includes a main audio controlling data 211 and a plurality of question audio controlling data 212. The main audio controlling data 211 includes address of the main audio 21.
Each of the question audio controlling data 212 is associated with a question audio 23, and includes information related to the associated question audio 23. For example, the question audio controlling data 212 records address of the associated question audio 23, the address of the question audio controlling 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 prompting module 122, a voice prompt determining module 123, an action performing module 124, and a question sequencing module 125.
The play controlling module 121 is for accessing the controlling data 21 of the interactive file 20, and further accessing the main audio 22 according to the address included in the main audio controlling data 211, and accessing the question audios 23 according to the addresses recorded in the question audio controlling data 212. After decoding by the decoder 13, the accessed main audio 22 and question audio 23 is output by the audio output unit 14.
The prompting module 122 is for randomly selecting a voice prompt from the voice prompt database 24 after each question audio 23 is played and outputting the voice prompt through the audio output unit 14 after decoded.
The voice prompt determining module 123 is for comparing the reference answer in the voice prompt with the right answer recorded in the question audio controlling data 212 to determine whether the voice prompt is a right prompt or a wrong prompt to determine what kind of action will be performed as described in the following paragraph.
The action performing module 124 is for controlling the action performing device 16 to perform an action corresponding to the comparison result. Taking a toy or robot for example, if the comparison result is a right prompt, the action performing module 124 controls the action performing device 16, e.g., the head of the toy, to nod; if the comparison result is the wrong prompt, the action performing module 124 controls the head of the toy to shake.
The question sequencing module 125 is for determining whether the address of the question audio controlling data 212 of the next question audio 23 is predetermined value. The predetermined value is for expressing that the associated question audio currently played of the question audio controlling data 212 is the last question audio. If the address of the question audio controlling data 212 of the next question audio 23 is a predetermined value, the question sequencing module 125 ends playing the interactive file 20. If the address of the next question audio controlling data 212 is not a predetermined value, namely, the associated question audio currently played of the question audio controlling data 212 is not the last question audio, the question sequencing module 125 notifies the play controlling module 121 to access the next question audio controlling data 212 according to the corresponding address.
In step S602, after decoded by the decoder 13, the accessed main audio 22 is output through the audio output unit 14.
In step S603, the play controlling module 121 accesses the first question audio controlling data 212 from the controlling data 21.
In step S604, the play controlling module 121 accesses the question audio 23 according to the address included in the accessed question audio controlling 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 S605, the prompting module 122 randomly selects a voice prompt from the voice prompt database 24 and outputs the voice prompt through the audio output unit 14 after the voice prompt is decoded.
In step S606, the voice prompt determining module 124 compares the reference answer in the voice prompt with the right answer recorded in the question audio controlling data 212 to determine whether the voice prompt is the right prompt or the wrong prompt.
In step S607, the action performing module 124 controls the action performing device 16 to perform an action corresponding to the comparison result.
In step S608, the question sequencing module 125 obtains the address of the question audio controlling data 212 of the next question audio 23.
In step S609, the question sequencing module 125 determines whether the address of the next question audio controlling data 212 is a predetermined value. If the address of the next question audio controlling data 212 is a predetermined value, the question sequencing module 125 ends playing the interactive file 20.
If the address of the next question audio controlling data is not a predetermined value, in step S610, the question sequencing module 125 notifies the play controlling module 121 to access the next question audio controlling data 212 according to the address of the next question audio controlling data 212, and the procedure goes to step S604.
The response determining module 127 is for comparing the response answer from the user with the right answer included in the question audio controlling data 212 to determine whether the response answer from user is a right or wrong answer.
The action performing module 124 generates a composite result according to the determined result from the voice prompt determining module 123 and the determined result from the response determining module 127. The composite result may be one of the following four types. The first type is that the voice prompt is the right prompt and the response answer from user is the right answer. The second type is that the voice prompt is the right prompt and the response answer from the user is the wrong answer. The third type is that the voice prompt is the wrong prompt and the response answer from user is the right answer. The fourth type is that the voice prompt is the wrong prompt and the response answer from the user is the wrong answer. The action performing module 124 controls the action performing device 16 to perform action to express the type of the composite result. Taking a toy as the apparatus 10/10′ for example, if the composite result is the first type, the action performing module 124 controls the action performing device 16, e.g., the head of the toy, to nod; if the composite result is the second type, the action performing module 124 controls the head of the toy to shake; if the composite result is the third type, the action performing module 124 controls another action performing device 16, e.g., the nose of the toy, to elongate; and if the composite result is the fourth type, the action performing module 124 controls another action performing device 16, e.g., the eye of the toy, to wink.
In step S807, the response receiving module 126 receives and recognizes the input signals generated by the input unit 15 to determine the response answer from the user.
In step S808, the response determining module 127 compares the received response answer from the user with the right answer includes in the question audio controlling data 212 to determine whether the response answer from user is a right answer or a wrong answer.
In step S809, the action performing module 124 generates the composite result according to the determining result of the voice prompt determining Module 123 and the determining result of the response determining module 127.
In step S810, the action performing module 124 controls the action performing device 16 to perform an action according to the type of the composite result.
In step S811, the question sequencing module 125 obtains the address of the next question audio controlling data 212 from the question audio controlling data 212.
In step S812, the question sequencing module 125 determines whether the address of the next question audio controlling data 212 is a predetermined value. If the address of the next question audio controlling data 212 is a predetermined value, the question sequencing module 125 ends playing the interactive file 20.
If the address of the next question audio controlling data is not a predetermined value, in step S813, the question sequencing module 125 notices the play controlling module 121 to access the next question audio controlling data 212 according to the address of the next question audio controlling data 212, and the procedure goes to S804.
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 |
---|---|---|---|
200910300036.0 | Jan 2009 | CN | national |