original code: https://github.com/Kamil-Krawiec/piper-tts-http-server/blob/master/server.py
i simplified the code and add some features:
- allow loading custom onnx file
- auto detect available hardware acceleration:
TensorrtExecutionProvider,CUDAExecutionProvider,MIGraphXExecutionProvider,OpenVINOExecutionProvider,CoreMLExecutionProvider,DmlExecutionProvider,CPUExecutionProvider