An electronic musical instrument includes: a memory (202) that stores a machine-learning (305) trained acoustic model (306) mimicking voice of a singer and at least one processor (205). When a vocoder mode is on, prescribed lyric data (215a) and pitch data (215b) corresponding to a user operation of an operation element of the musical instrument are inputted to the trained acoustic model (306), and inferred singing voice data (217) that infers a singing voice of the singer is synthesized on the basis of acoustic feature data (317) output by the trained acoustic model (306) and on the basis of instrument sound waveform data (220) that are synthesized in accordance with the pitch data (215b) corresponding to the user operation of the operation element. When the vocoder mode is off, the inferred singing voice data (217) is synthesized based on the acoustic feature data (317) without using the sound waveform data (220).
ELECTRONIC MUSICAL INSTRUMENT, ELECTRONIC MUSICAL INSTRUMENT CONTROL METHOD, AND STORAGE MEDIUM