A non-transitory computer-readable storage medium for storing a speech processing computer program that causes a processor to execute processing, the processing comprising:
- executing a conversion process that includes calculating a spectrum from a plurality of frames included in an input signal;
- executing a determination process that includes determining a speech-like frame from the plurality of frames based on characteristics of the spectrum of the frame;
- executing a learning process that includes specifying a fundamental sound based on a plurality of local maximum values included in the spectrum of the speech frame and learning a learning value based on a magnitude of the fundamental sound;
- and
- executing a detection process of detecting a pitch frequency of the frame based on the spectrum of the frame and the learning value.