just use the links below:
speech recognition - cpu: https://pytorch.org/audio/main/tutorials/asr_inference_with_ctc_decoder_tutorial.html#sphx-glr-tutorials-asr-inference-with-ctc-decoder-tutorial-py
gpu(cuda): https://pytorch.org/audio/stable/tutorials/asr_inference_with_cuda_ctc_decoder_tutorial.html
text to speech: https://pytorch.org/audio/stable/tutorials/tacotron2_pipeline_tutorial.html