clamsproject / app-whisper-wrapper

Apache License 2.0
0 stars 0 forks source link

add language parameter #18

Closed Brendayy closed 9 months ago

Brendayy commented 9 months ago

Per requests, now a user can specify the languages supported by whisper. If not specified:

  1. whisper should auto-detect a language
  2. the output .mmif file should have the value of@language: "en" as the default.

Right now, the language parameter is set to be passed as query strings like other configurable parameters when running app-whisper-wrapper as an HTTP server. for example:

curl -H "Accept: application/json" -X POST -d@input.mmif -s http://localhost:5000?modelLang='zh' > output.mmif

Please let me know if other ways of passing the parameter is preferred