select STT provider with console param
This commit is contained in:
parent
d973730b25
commit
49d0c65288
1 changed files with 6 additions and 1 deletions
7
index.js
7
index.js
|
@ -33,6 +33,11 @@ const argv = require("yargs/yargs")(process.argv.slice(2))
|
||||||
type: "number",
|
type: "number",
|
||||||
group: "Server",
|
group: "Server",
|
||||||
},
|
},
|
||||||
|
provider: {
|
||||||
|
desc: "Speech-to-text provider",
|
||||||
|
default: "google",
|
||||||
|
type: "string",
|
||||||
|
},
|
||||||
})
|
})
|
||||||
.strict()
|
.strict()
|
||||||
.argv;
|
.argv;
|
||||||
|
@ -46,7 +51,7 @@ server.on("connection", (client) => {
|
||||||
codecs: codecs,
|
codecs: codecs,
|
||||||
languages: languages,
|
languages: languages,
|
||||||
transport: client,
|
transport: client,
|
||||||
provider: getProvider("aws", argv),
|
provider: getProvider(argv.provider, argv),
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue