voice-router-dev 0.6.9 → 0.7.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/CHANGELOG.md +61 -0
- package/dist/constants.d.mts +1300 -1
- package/dist/constants.d.ts +1300 -1
- package/dist/constants.js +1226 -0
- package/dist/constants.mjs +1212 -0
- package/dist/{field-configs-CKuYP-xI.d.mts → field-configs-BWkS_r9z.d.mts} +574 -574
- package/dist/{field-configs-CKuYP-xI.d.ts → field-configs-BWkS_r9z.d.ts} +574 -574
- package/dist/field-configs.d.mts +1 -1
- package/dist/field-configs.d.ts +1 -1
- package/dist/index.d.mts +30 -30
- package/dist/index.d.ts +30 -30
- package/dist/index.js +1188 -224
- package/dist/index.mjs +1179 -224
- package/dist/{provider-metadata-CHDqWEgr.d.mts → provider-metadata-DVQcYIHe.d.mts} +6 -215
- package/dist/{provider-metadata-CHDqWEgr.d.ts → provider-metadata-Derls1wa.d.ts} +6 -215
- package/dist/provider-metadata.d.mts +2 -1
- package/dist/provider-metadata.d.ts +2 -1
- package/dist/provider-metadata.js +717 -39
- package/dist/provider-metadata.mjs +711 -39
- package/dist/{transcriptWebhookNotification-BKGmSMZv.d.ts → transcriptWebhookNotification-Bgrsp3MC.d.ts} +1 -1
- package/dist/{transcriptWebhookNotification-CsOryV_i.d.mts → transcriptWebhookNotification-DD2u4Mmw.d.mts} +1 -1
- package/dist/webhooks.d.mts +2 -2
- package/dist/webhooks.d.ts +2 -2
- package/package.json +6 -4
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,67 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.7.0] - 2026-01-16
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
#### Unified Language Constants for All Providers
|
|
13
|
+
|
|
14
|
+
All 7 STT providers now have auto-generated language constants fetched from external sources:
|
|
15
|
+
|
|
16
|
+
| Provider | Constant | Count | Source |
|
|
17
|
+
|----------|----------|-------|--------|
|
|
18
|
+
| Gladia | `GladiaLanguage` | 99 | OpenAPI spec enum |
|
|
19
|
+
| AssemblyAI | `AssemblyAILanguage` | 102 | OpenAPI spec enum |
|
|
20
|
+
| Deepgram | `DeepgramLanguage` | 149 | Deepgram API `/v1/models` |
|
|
21
|
+
| Speechmatics | `SpeechmaticsLanguage` | 62 | Feature Discovery API |
|
|
22
|
+
| Soniox | `SonioxLanguage` | 60 | OpenAPI spec |
|
|
23
|
+
| Azure | `AzureLocale` | 154 | Microsoft docs parsing |
|
|
24
|
+
| OpenAI | `OpenAILanguage` | 30 | Manual (Whisper common languages) |
|
|
25
|
+
|
|
26
|
+
```typescript
|
|
27
|
+
import {
|
|
28
|
+
GladiaLanguage,
|
|
29
|
+
DeepgramLanguage,
|
|
30
|
+
SpeechmaticsLanguage,
|
|
31
|
+
SonioxLanguage,
|
|
32
|
+
AzureLocale,
|
|
33
|
+
OpenAILanguage
|
|
34
|
+
} from 'voice-router-dev/constants'
|
|
35
|
+
|
|
36
|
+
// All providers now have consistent language constant objects
|
|
37
|
+
adapter.transcribe(audio, { language: GladiaLanguage.en })
|
|
38
|
+
adapter.transcribe(audio, { language: DeepgramLanguage["en-US"] })
|
|
39
|
+
adapter.transcribe(audio, { locale: AzureLocale["en-US"] })
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
#### Auto-Generated Language Scripts
|
|
43
|
+
|
|
44
|
+
New generator scripts fetch language data from external sources at build time:
|
|
45
|
+
|
|
46
|
+
- `generate-speechmatics-languages.js` - Fetches from Feature Discovery API
|
|
47
|
+
- `generate-azure-locales.js` - Parses Microsoft documentation HTML
|
|
48
|
+
- `generate-soniox-languages.js` - Parses OpenAPI spec (updated with `SonioxLanguage` constant)
|
|
49
|
+
- `generate-deepgram-languages.js` - Fetches from Deepgram API (existing)
|
|
50
|
+
|
|
51
|
+
Run `pnpm openapi:generate` to regenerate all language constants.
|
|
52
|
+
|
|
53
|
+
#### Field Metadata Auto-Population
|
|
54
|
+
|
|
55
|
+
Language fields in `field-metadata.ts` now automatically:
|
|
56
|
+
- Set `type: "select"` (or `"multiselect"` for array fields)
|
|
57
|
+
- Populate `options` from generated language constants
|
|
58
|
+
|
|
59
|
+
This eliminates manual override needs for language dropdowns in UI forms.
|
|
60
|
+
|
|
61
|
+
### Changed
|
|
62
|
+
|
|
63
|
+
- `OpenAILanguageCodes` and `OpenAILanguage` now exported from `constants.ts` (was only in `provider-metadata.ts`)
|
|
64
|
+
- Pipeline diagram generator now includes locale scripts in LANGUAGE/LOCALE EXTRACTION section
|
|
65
|
+
- Field metadata generator loads language codes from all 7 providers
|
|
66
|
+
|
|
67
|
+
---
|
|
68
|
+
|
|
8
69
|
## [0.6.9] - 2026-01-15
|
|
9
70
|
|
|
10
71
|
### Added
|