@eka-care/ekascribe-ts-sdk 1.5.22 → 1.5.24
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.
- package/README.md +0 -17
- package/dist/fetch-client/index.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -825,23 +825,6 @@ Use this method to update the access token without reinitializing the entire SDK
|
|
|
825
825
|
ekaScribe.updateAuthTokens({ access_token: 'new_token' });
|
|
826
826
|
```
|
|
827
827
|
|
|
828
|
-
### 9. Configure VAD Constants
|
|
829
|
-
|
|
830
|
-
Use this method to configure Voice Activity Detection parameters for fine-tuning audio processing.
|
|
831
|
-
|
|
832
|
-
```ts
|
|
833
|
-
ekaScribe.configureVadConstants({
|
|
834
|
-
pref_length: 1000,
|
|
835
|
-
desp_length: 500,
|
|
836
|
-
max_length: 2000,
|
|
837
|
-
sr: 16000,
|
|
838
|
-
frame_size: 512,
|
|
839
|
-
pre_speech_pad_frames: 10,
|
|
840
|
-
short_thsld: 0.5,
|
|
841
|
-
long_thsld: 0.8,
|
|
842
|
-
});
|
|
843
|
-
```
|
|
844
|
-
|
|
845
828
|
## Generic Callbacks
|
|
846
829
|
|
|
847
830
|
```ts
|
|
@@ -24,11 +24,11 @@ export default async function fetchWrapper(url, options = {}, timeoutMs = API_TI
|
|
|
24
24
|
signal: controller.signal,
|
|
25
25
|
credentials: 'include',
|
|
26
26
|
});
|
|
27
|
-
if (onEventCallback) {
|
|
27
|
+
if (onEventCallback && !response.ok) {
|
|
28
28
|
onEventCallback({
|
|
29
29
|
callback_type: CALLBACK_TYPE.AUTHENTICATION_STATUS,
|
|
30
30
|
status: 'success',
|
|
31
|
-
message: 'Fetch wrapper response: ' + response.status,
|
|
31
|
+
message: 'Fetch wrapper response: ' + response.ok + response.status,
|
|
32
32
|
timestamp: new Date().toISOString(),
|
|
33
33
|
data: {
|
|
34
34
|
request: 'Request body: ' + JSON.stringify(options.body),
|