A non-transitory computer readable storage medium, having a computer program stored therein, when the computer program is loaded into an electronic computing apparatus, the computer program performs a method for generating control instructions based on a text, the method comprising:
- (a) analyzing at least one string comprised in the text to generate a text timestamp datum;
- (b) analyzing the at least one string comprised in the text to obtain a plurality of pieces of emotion information, a plurality of pieces of action information, and a plurality of pieces of environment information;
- (c) deciding a plurality of first emotion tags and corresponding timestamps thereof, a plurality of action tags and corresponding timestamps thereof, and a plurality of environment tags and corresponding timestamps thereof according to a feature database;
- and
- (d) generating at least one first control instruction and corresponding at least one timestamp thereof according to the first emotion tags and the corresponding timestamps thereof, the action tags and the corresponding timestamps thereof, and the environment tags and the corresponding timestamps thereof.