@jambonz/schema 0.4.12 → 0.4.15

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.
@@ -5,10 +5,21 @@
5
5
  "description": "Google Speech-to-Text specific options. Only applies when recognizer vendor is 'google'.",
6
6
  "type": "object",
7
7
  "properties": {
8
+ "mode": {
9
+ "type": "string",
10
+ "enum": ["VERBATIM", "SMART"],
11
+ "description": "Gemini transcription style; applies only to the gemini models. VERBATIM transcribes as spoken; SMART cleans up disfluencies and applies formatting."
12
+ },
13
+ "customVocabulary": {
14
+ "type": "array",
15
+ "items": {"type": "string"},
16
+ "maxItems": 1000,
17
+ "description": "Up to 1000 terms, acronyms, brand names or proper nouns to bias recognition towards; applies only to the gemini models."
18
+ },
8
19
  "serviceVersion": {
9
20
  "type": "string",
10
21
  "enum": ["v1", "v2"],
11
- "description": "Google Speech-to-Text API version."
22
+ "description": "Cloud Speech-to-Text API version. Ignored by the gemini models, which are a different API."
12
23
  },
13
24
  "recognizerId": {
14
25
  "type": "string",
@@ -16,7 +27,7 @@
16
27
  },
17
28
  "parentPath": {
18
29
  "type": "string",
19
- "description": "Parent resource path for the Google Speech recognizer (v2 only), e.g. 'projects/{project}/locations/{location}'."
30
+ "description": "Parent resource path for the Cloud Speech-to-Text v2 recognizer resource, e.g. 'projects/{project}/locations/{location}'. A location other than global also routes the request to that region's endpoint."
20
31
  },
21
32
  "speechStartTimeoutMs": {
22
33
  "type": "number",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jambonz/schema",
3
- "version": "0.4.12",
3
+ "version": "0.4.15",
4
4
  "description": "JSON Schema definitions and validation for jambonz verb applications",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -88,6 +88,12 @@
88
88
  "type": "boolean",
89
89
  "description": "If true, keep media anchored through the jambonz media server even if a direct media path is possible. Required for features like recording, listen, and DTMF capture during bridged calls."
90
90
  },
91
+ "codecs": {
92
+ "type": "array",
93
+ "items": { "type": "string" },
94
+ "minItems": 1,
95
+ "description": "Codec names, in preference order, to offer on the outbound INVITE (e.g. [\"G722\", \"PCMU\"]). Names are case-insensitive. When omitted, the media server offers its defaults with the inbound leg's codec first so the bridged legs match. If any name is not supported by the media server the whole list is ignored, an error is logged and an alert is written, and default negotiation is used."
96
+ },
91
97
  "exitMediaPath": {
92
98
  "type": "boolean",
93
99
  "description": "If true, remove jambonz from the media path after the call is bridged. Reduces latency but disables mid-call features like recording and DTMF capture."