The invention provides a file storage and query method and device and a storage medium, and the method comprises the steps: obtaining a text to be subjected to voice synthesis, carrying out the HASH value calculation of the text to obtain the HASH value of the text; taking the calculated HASH value as a file name, and querying whether a voice file with the same file name exists or not under a setvoice file directory; querying a voice file with the same file name, calling the voice file with the same file name, and taking the voice file with the same file name as the voice file of the text; and when the voice file with the same file name is not queried, performing voice synthesis based on the text, taking the calculated HASH value as the file name of the synthesized voice file, and storingthe synthesized voice file in the set voice file directory. Due to the strict text compression algorithm, accurate duplicate removal of the text is guaranteed, the same text is prevented from being synthesized multiple times, and processing resources are saved.