@fonoster/apiserver 0.9.44 → 0.9.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -223,7 +223,7 @@ class Deepgram extends AbstractSpeechToText_1.AbstractSpeechToText {
|
|
|
223
223
|
}
|
|
224
224
|
exports.Deepgram = Deepgram;
|
|
225
225
|
function buildTranscribeConfig(config) {
|
|
226
|
-
return Object.assign(Object.assign({}, config), { model: config.model || types_1.DeepgramModel.NOVA_2_PHONECALL, encoding: "linear16", sample_rate: 16000,
|
|
226
|
+
return Object.assign(Object.assign({}, config), { model: config.model || types_1.DeepgramModel.NOVA_2_PHONECALL, language: config.languageCode || common_1.VoiceLanguage.EN_US, encoding: "linear16", sample_rate: 16000, channels: 1, smart_format: config.smartFormat || true,
|
|
227
227
|
// This needs to be set to true to avoid delays while using smart_format
|
|
228
228
|
no_delay: config.noDelay || true });
|
|
229
229
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fonoster/apiserver",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.46",
|
|
4
4
|
"description": "APIServer for Fonoster",
|
|
5
5
|
"author": "Pedro Sanders <psanders@fonoster.com>",
|
|
6
6
|
"homepage": "https://github.com/fonoster/fonoster#readme",
|
|
@@ -21,13 +21,13 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@deepgram/sdk": "^3.5.1",
|
|
24
|
-
"@fonoster/authz": "^0.9.
|
|
25
|
-
"@fonoster/common": "^0.9.
|
|
26
|
-
"@fonoster/identity": "^0.9.
|
|
27
|
-
"@fonoster/logger": "^0.9.
|
|
28
|
-
"@fonoster/sipnet": "^0.9.
|
|
29
|
-
"@fonoster/streams": "^0.9.
|
|
30
|
-
"@fonoster/types": "^0.9.
|
|
24
|
+
"@fonoster/authz": "^0.9.46",
|
|
25
|
+
"@fonoster/common": "^0.9.46",
|
|
26
|
+
"@fonoster/identity": "^0.9.46",
|
|
27
|
+
"@fonoster/logger": "^0.9.46",
|
|
28
|
+
"@fonoster/sipnet": "^0.9.46",
|
|
29
|
+
"@fonoster/streams": "^0.9.46",
|
|
30
|
+
"@fonoster/types": "^0.9.46",
|
|
31
31
|
"@google-cloud/speech": "^6.6.0",
|
|
32
32
|
"@google-cloud/text-to-speech": "^5.3.0",
|
|
33
33
|
"@grpc/grpc-js": "~1.10.6",
|
|
@@ -73,5 +73,5 @@
|
|
|
73
73
|
"@types/uuid": "^10.0.0",
|
|
74
74
|
"@types/validator": "^13.12.0"
|
|
75
75
|
},
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "dc1dc3c40f5b193eb64ee7901520d0421efebf11"
|
|
77
77
|
}
|