select STT provider with console param

This commit is contained in:
Dovi Cowan 2023-07-25 21:39:54 +01:00
parent d973730b25
commit 49d0c65288
Signed by: dcowan
GPG key ID: 697AE484978D5F89

View file

@ -33,6 +33,11 @@ const argv = require("yargs/yargs")(process.argv.slice(2))
type: "number",
group: "Server",
},
provider: {
desc: "Speech-to-text provider",
default: "google",
type: "string",
},
})
.strict()
.argv;
@ -46,7 +51,7 @@ server.on("connection", (client) => {
codecs: codecs,
languages: languages,
transport: client,
provider: getProvider("aws", argv),
provider: getProvider(argv.provider, argv),
});
});