An electronic musical instrument includes: a memory (202) that stores a trained acoustic model (306) obtained by performing machine learning (305) on training musical score data (311) and training singing voice data of a singer; and at least one processor (205), wherein the at least one processor (205): in accordance with a user operation on an operation element in a plurality of operation elements (101), inputs prescribed lyric data (215a) and pitch data (215b) corresponding to the user operation of the operation element to the trained acoustic model (306) so as to cause the trained acoustic model (306) to output the acoustic feature data (317) in response to the inputted prescribed lyric data (215a) and the inputted pitch data (215b), and digitally synthesizes and outputs inferred singing voice data (217) that infers a singing voice of the singer on the basis of the acoustic feature data (317) output by the trained acoustic model (306).
ELECTRONIC MUSICAL INSTRUMENT, ELECTRONIC MUSICAL INSTRUMENT CONTROL METHOD, AND STORAGE MEDIUM