wetdog commited on
Commit
549e025
·
verified ·
1 Parent(s): aeac127

Add Onnx inference info

Browse files
Files changed (1) hide show
  1. README.md +14 -10
README.md CHANGED
@@ -163,22 +163,26 @@ python3 matcha_vocos_inference.py --output_path=/output/path --text_input="Bon d
163
 
164
  #### ONNX
165
 
166
- We also release ONNXs version of the models, you can use it via the OVOS plugins.
167
- Just install the plugin from pypi.
 
 
 
 
 
 
 
 
 
 
168
 
169
  ```bash
170
- pip install ovos-tts-plugin-matxa-multispeaker-cat
 
171
  ```
172
 
173
- and synthesize
174
 
175
- ```python
176
- from ovos_tts_plugin_matxa_multispeaker_cat import MatxaCatalanTTSPlugin
177
 
178
- sent = "Això és una prova de síntesi de veu."
179
- tts = MatxaCatalanTTSPlugin()
180
- tts.get_tts(sent, "test.wav", voice="valencia/gina")
181
- ```
182
 
183
  ### For Training
184
 
 
163
 
164
  #### ONNX
165
 
166
+ We also release ONNXs version of the models, you can deploy the models throug a simple api:
167
+
168
+ Steps:
169
+
170
+ Clone the repo. git clone https://github.com/langtech-bsc/minimal-tts-api
171
+
172
+ ```bash
173
+ #Build and run the container.
174
+ cd minimal-tts-api
175
+ docker build -t minimal-tts-api .
176
+ docker run -p 8000:8000 -t minimal-tts-api
177
+ ```
178
 
179
  ```bash
180
+ #Test with a simple request.
181
+ curl -X POST http://0.0.0.0:8000/api/tts -H "Content-Type: application/json" -d '{"text":"Bon dia","voice":"quim","accent":"balear","type":"text"}' | aplay -t wav -
182
  ```
183
 
 
184
 
 
 
185
 
 
 
 
 
186
 
187
  ### For Training
188