mirror of
https://github.com/jambonz/speech-utils.git
synced 2026-07-24 21:22:00 +00:00
support self hosted microsoft
This commit is contained in:
+7
-1
@@ -106,6 +106,11 @@ const createRivaClient = async(rivaUri) => {
|
||||
return client;
|
||||
};
|
||||
|
||||
const isValidHttpOrWsUrl = (url) => {
|
||||
const pattern = new RegExp('^(https?:\/\/|wss?:\/\/)');
|
||||
return !!url.match(pattern);
|
||||
}
|
||||
|
||||
|
||||
module.exports = {
|
||||
makeSynthKey,
|
||||
@@ -117,5 +122,6 @@ module.exports = {
|
||||
createRivaClient,
|
||||
makeBasicAuthHeader,
|
||||
NUANCE_AUTH_ENDPOINT,
|
||||
noopLogger
|
||||
noopLogger,
|
||||
isValidHttpOrWsUrl
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user