@brivioio/api-server-types 7.49.0 → 7.51.0
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/dist/voice.types.d.ts +14 -19
- package/dist/voice.types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/voice.types.d.ts
CHANGED
|
@@ -1,26 +1,21 @@
|
|
|
1
1
|
import type { IResponse } from './utils.types';
|
|
2
2
|
export declare namespace VoiceTranscriptionAPITypes {
|
|
3
3
|
/**
|
|
4
|
-
* POST /api/voice/
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
4
|
+
* POST /api/voice/transcribe — multipart.
|
|
5
|
+
*
|
|
6
|
+
* Fields:
|
|
7
|
+
* - `audio` : the recorded audio blob (webm/mp4/ogg/wav). Required.
|
|
8
|
+
* - `existingText` : (optional) whatever the recruiter has already typed into
|
|
9
|
+
* the composer. Used only as *context* for the refinement pass so numbers,
|
|
10
|
+
* casing and continuation read consistently — never echoed back.
|
|
11
|
+
* - `vocabulary` : (optional) JSON-encoded string[] of known proper nouns
|
|
12
|
+
* for this chat (company, candidate names, role/tech terms) used to bias
|
|
13
|
+
* Whisper and correct mis-transcriptions during refinement.
|
|
14
|
+
*
|
|
15
|
+
* `data.text` is the cleaned text to append (already trimmed; may be an empty
|
|
16
|
+
* string when nothing intelligible was said).
|
|
8
17
|
*/
|
|
9
|
-
type
|
|
10
|
-
value: string;
|
|
11
|
-
expiresAt: number;
|
|
12
|
-
} | null>;
|
|
13
|
-
/**
|
|
14
|
-
* POST /api/voice/refine — cleans up a raw realtime transcript. `existingText`
|
|
15
|
-
* (optional) is the recruiter's already-typed composer content, used only as
|
|
16
|
-
* refinement context (never echoed back). `data.text` is the cleaned text to
|
|
17
|
-
* append (already trimmed; may be empty when nothing intelligible was said).
|
|
18
|
-
*/
|
|
19
|
-
type TRefineRequestBody = {
|
|
20
|
-
transcript: string;
|
|
21
|
-
existingText?: string;
|
|
22
|
-
};
|
|
23
|
-
type TRefineResponse = IResponse<{
|
|
18
|
+
type TTranscribeResponse = IResponse<{
|
|
24
19
|
text: string;
|
|
25
20
|
} | null>;
|
|
26
21
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"voice.types.d.ts","sourceRoot":"","sources":["../src/voice.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE/C,yBAAiB,0BAA0B,CAAC;IAC1C
|
|
1
|
+
{"version":3,"file":"voice.types.d.ts","sourceRoot":"","sources":["../src/voice.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE/C,yBAAiB,0BAA0B,CAAC;IAC1C;;;;;;;;;;;;;;OAcG;IACH,KAAY,mBAAmB,GAAG,SAAS,CAAC;QAC1C,IAAI,EAAE,MAAM,CAAC;KACd,GAAG,IAAI,CAAC,CAAC;CACX"}
|