telnyx 6.71.0 → 6.72.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.
Files changed (111) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/client.d.mts +8 -8
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +8 -8
  5. package/client.d.ts.map +1 -1
  6. package/client.js +6 -6
  7. package/client.js.map +1 -1
  8. package/client.mjs +6 -6
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/ai/ai.d.mts +1 -1
  12. package/resources/ai/ai.d.mts.map +1 -1
  13. package/resources/ai/ai.d.ts +1 -1
  14. package/resources/ai/ai.d.ts.map +1 -1
  15. package/resources/ai/ai.js +2 -2
  16. package/resources/ai/ai.js.map +1 -1
  17. package/resources/ai/ai.mjs +2 -2
  18. package/resources/ai/ai.mjs.map +1 -1
  19. package/resources/index.d.mts +2 -2
  20. package/resources/index.d.mts.map +1 -1
  21. package/resources/index.d.ts +2 -2
  22. package/resources/index.d.ts.map +1 -1
  23. package/resources/index.js.map +1 -1
  24. package/resources/index.mjs.map +1 -1
  25. package/resources/speech-to-text/index.d.mts +3 -3
  26. package/resources/speech-to-text/index.d.mts.map +1 -1
  27. package/resources/speech-to-text/index.d.ts +3 -3
  28. package/resources/speech-to-text/index.d.ts.map +1 -1
  29. package/resources/speech-to-text/index.js +1 -5
  30. package/resources/speech-to-text/index.js.map +1 -1
  31. package/resources/speech-to-text/index.mjs +0 -2
  32. package/resources/speech-to-text/index.mjs.map +1 -1
  33. package/resources/speech-to-text/internal-base.d.mts +42 -11
  34. package/resources/speech-to-text/internal-base.d.mts.map +1 -1
  35. package/resources/speech-to-text/internal-base.d.ts +42 -11
  36. package/resources/speech-to-text/internal-base.d.ts.map +1 -1
  37. package/resources/speech-to-text/internal-base.js +5 -9
  38. package/resources/speech-to-text/internal-base.js.map +1 -1
  39. package/resources/speech-to-text/internal-base.mjs +5 -9
  40. package/resources/speech-to-text/internal-base.mjs.map +1 -1
  41. package/resources/speech-to-text/speech-to-text.d.mts +79 -100
  42. package/resources/speech-to-text/speech-to-text.d.mts.map +1 -1
  43. package/resources/speech-to-text/speech-to-text.d.ts +79 -100
  44. package/resources/speech-to-text/speech-to-text.d.ts.map +1 -1
  45. package/resources/speech-to-text/speech-to-text.js +16 -19
  46. package/resources/speech-to-text/speech-to-text.js.map +1 -1
  47. package/resources/speech-to-text/speech-to-text.mjs +16 -19
  48. package/resources/speech-to-text/speech-to-text.mjs.map +1 -1
  49. package/resources/speech-to-text/ws-base.d.mts +106 -0
  50. package/resources/speech-to-text/ws-base.d.mts.map +1 -0
  51. package/resources/speech-to-text/ws-base.d.ts +106 -0
  52. package/resources/speech-to-text/ws-base.d.ts.map +1 -0
  53. package/resources/speech-to-text/ws-base.js +476 -0
  54. package/resources/speech-to-text/ws-base.js.map +1 -0
  55. package/resources/speech-to-text/ws-base.mjs +472 -0
  56. package/resources/speech-to-text/ws-base.mjs.map +1 -0
  57. package/resources/speech-to-text/ws.d.mts +9 -28
  58. package/resources/speech-to-text/ws.d.mts.map +1 -1
  59. package/resources/speech-to-text/ws.d.ts +9 -28
  60. package/resources/speech-to-text/ws.d.ts.map +1 -1
  61. package/resources/speech-to-text/ws.js +17 -97
  62. package/resources/speech-to-text/ws.js.map +1 -1
  63. package/resources/speech-to-text/ws.mjs +17 -97
  64. package/resources/speech-to-text/ws.mjs.map +1 -1
  65. package/resources/speech-to-text.d.mts +1 -80
  66. package/resources/speech-to-text.d.mts.map +1 -1
  67. package/resources/speech-to-text.d.ts +1 -80
  68. package/resources/speech-to-text.d.ts.map +1 -1
  69. package/resources/speech-to-text.js +2 -32
  70. package/resources/speech-to-text.js.map +1 -1
  71. package/resources/speech-to-text.mjs +1 -30
  72. package/resources/speech-to-text.mjs.map +1 -1
  73. package/resources/texml/accounts/calls/calls.d.mts +31 -465
  74. package/resources/texml/accounts/calls/calls.d.mts.map +1 -1
  75. package/resources/texml/accounts/calls/calls.d.ts +31 -465
  76. package/resources/texml/accounts/calls/calls.d.ts.map +1 -1
  77. package/resources/texml/accounts/calls/calls.js +7 -1
  78. package/resources/texml/accounts/calls/calls.js.map +1 -1
  79. package/resources/texml/accounts/calls/calls.mjs +7 -1
  80. package/resources/texml/accounts/calls/calls.mjs.map +1 -1
  81. package/resources/text-to-speech/index.d.mts +1 -1
  82. package/resources/text-to-speech/index.d.mts.map +1 -1
  83. package/resources/text-to-speech/index.d.ts +1 -1
  84. package/resources/text-to-speech/index.d.ts.map +1 -1
  85. package/resources/text-to-speech/index.js.map +1 -1
  86. package/resources/text-to-speech/index.mjs.map +1 -1
  87. package/resources/text-to-speech/text-to-speech.d.mts +79 -13
  88. package/resources/text-to-speech/text-to-speech.d.mts.map +1 -1
  89. package/resources/text-to-speech/text-to-speech.d.ts +79 -13
  90. package/resources/text-to-speech/text-to-speech.d.ts.map +1 -1
  91. package/resources/text-to-speech/text-to-speech.js +33 -1
  92. package/resources/text-to-speech/text-to-speech.js.map +1 -1
  93. package/resources/text-to-speech/text-to-speech.mjs +33 -1
  94. package/resources/text-to-speech/text-to-speech.mjs.map +1 -1
  95. package/src/client.ts +26 -20
  96. package/src/resources/ai/ai.ts +3 -3
  97. package/src/resources/index.ts +5 -2
  98. package/src/resources/speech-to-text/index.ts +6 -9
  99. package/src/resources/speech-to-text/internal-base.ts +49 -22
  100. package/src/resources/speech-to-text/speech-to-text.ts +102 -128
  101. package/src/resources/speech-to-text/ws-base.ts +619 -0
  102. package/src/resources/speech-to-text/ws.ts +26 -111
  103. package/src/resources/speech-to-text.ts +1 -112
  104. package/src/resources/texml/accounts/calls/calls.ts +36 -564
  105. package/src/resources/text-to-speech/index.ts +3 -2
  106. package/src/resources/text-to-speech/text-to-speech.ts +100 -16
  107. package/src/version.ts +1 -1
  108. package/version.d.mts +1 -1
  109. package/version.d.ts +1 -1
  110. package/version.js +1 -1
  111. package/version.mjs +1 -1
@@ -1,149 +1,128 @@
1
1
  import { APIResource } from "../../core/resource.mjs";
2
2
  import { APIPromise } from "../../core/api-promise.mjs";
3
+ import { type Uploadable } from "../../core/uploads.mjs";
3
4
  import { RequestOptions } from "../../internal/request-options.mjs";
4
5
  /**
5
- * Speech to text streaming operations via WebSocket
6
+ * Discover available speech-to-text providers, models, and supported languages.
6
7
  */
7
8
  export declare class SpeechToText extends APIResource {
8
9
  /**
9
- * Open a WebSocket connection to stream audio and receive transcriptions in
10
- * real-time. Authentication is provided via the standard
11
- * `Authorization: Bearer <API_KEY>` header.
10
+ * Retrieve the canonical list of supported speech-to-text providers, models,
11
+ * accepted language codes, and the service types each model supports.
12
12
  *
13
- * Supported engines: `Azure`, `Deepgram`, `Google`, `Telnyx`.
13
+ * Service types:
14
14
  *
15
- * **Connection flow:**
15
+ * - `streaming` — standalone WebSocket transcription via
16
+ * `/speech-to-text/transcription`.
17
+ * - `file_transcription` — file-based transcription via
18
+ * `/ai/audio/transcriptions`.
19
+ * - `in_call_transcription` — live call transcription via Call Control
20
+ * `transcription_start`.
16
21
  *
17
- * 1. Open WebSocket with query parameters specifying engine, input format, and
18
- * language.
19
- * 2. Send binary audio frames (mp3/wav format).
20
- * 3. Receive JSON transcript frames with `transcript`, `is_final`, and
21
- * `confidence` fields.
22
- * 4. Close connection when done.
22
+ * Use this endpoint to discover which (provider, model) combinations are available
23
+ * for the surface you need, and which language codes each accepts. `auto` in a
24
+ * `languages` array indicates the provider performs language detection.
23
25
  */
24
- transcribe(query: SpeechToTextTranscribeParams, options?: RequestOptions): APIPromise<void>;
26
+ listProviders(query?: SpeechToTextListProvidersParams | null | undefined, options?: RequestOptions): APIPromise<SpeechToTextListProvidersResponse>;
25
27
  }
26
28
  /**
27
- * Parameters for the transcribe REST endpoint.
29
+ * List of supported STT providers and models.
28
30
  */
29
- export interface SpeechToTextTranscribeParams {
30
- /**
31
- * The format of input audio stream.
32
- */
33
- input_format: 'mp3' | 'wav';
34
- /**
35
- * The transcription engine to use for processing the audio stream.
36
- */
37
- transcription_engine: 'Azure' | 'Deepgram' | 'Google' | 'Telnyx';
38
- /**
39
- * Silence duration (in milliseconds) that triggers end-of-speech detection.
40
- */
41
- endpointing?: number;
42
- /**
43
- * Whether to receive interim transcription results.
44
- */
45
- interim_results?: boolean;
46
- /**
47
- * A key term to boost in the transcription.
48
- */
49
- keyterm?: string;
50
- /**
51
- * Comma-separated list of keywords to boost in the transcription.
52
- */
53
- keywords?: string;
54
- /**
55
- * The language spoken in the audio stream.
56
- */
57
- language?: string;
58
- /**
59
- * The specific model to use within the selected transcription engine.
60
- */
61
- model?: 'fast' | 'deepgram/nova-2' | 'deepgram/nova-3' | 'latest_long' | 'latest_short' | 'command_and_search' | 'phone_call' | 'video' | 'default' | 'medical_conversation' | 'medical_dictation' | 'openai/whisper-tiny' | 'openai/whisper-large-v3-turbo';
62
- /**
63
- * Enable redaction of sensitive information from transcription results.
64
- */
65
- redact?: string;
31
+ export interface SpeechToTextListProvidersResponse {
32
+ data: Array<SpeechToTextListProvidersResponse.Data>;
33
+ meta: SpeechToTextListProvidersResponse.Meta;
66
34
  }
67
- /**
68
- * Parameters for establishing a speech-to-text WebSocket connection.
69
- */
70
- export interface SpeechToTextStreamParams {
71
- /**
72
- * The transcription engine to use for processing the audio stream.
73
- */
74
- transcription_engine: 'Azure' | 'Deepgram' | 'Google' | 'Telnyx';
75
- /**
76
- * The format of the input audio stream.
77
- */
78
- input_format?: 'mp3' | 'wav' | 'raw';
79
- /**
80
- * The language code for transcription (e.g., 'en-US', 'es-ES').
81
- */
82
- language?: string;
35
+ export declare namespace SpeechToTextListProvidersResponse {
83
36
  /**
84
- * Whether to return interim (partial) transcription results.
37
+ * A (provider, model) tuple along with its supported service types and languages.
85
38
  */
86
- interim_results?: boolean;
87
- /**
88
- * The model to use for transcription (engine-specific).
89
- */
90
- model?: string;
39
+ interface Data {
40
+ /**
41
+ * Languages this (provider, model) accepts, in the provider's native code format.
42
+ * `auto` indicates the provider performs language detection.
43
+ */
44
+ languages: Array<string>;
45
+ /**
46
+ * Provider-scoped model name.
47
+ */
48
+ model: string;
49
+ /**
50
+ * STT provider name.
51
+ */
52
+ provider: string;
53
+ /**
54
+ * Service surfaces this (provider, model) supports.
55
+ */
56
+ service_types: Array<'streaming' | 'file_transcription' | 'in_call_transcription'>;
57
+ }
58
+ interface Meta {
59
+ /**
60
+ * Total number of entries returned.
61
+ */
62
+ total: number;
63
+ }
91
64
  }
92
65
  /**
93
- * Binary audio data sent from client to server.
94
- * Send raw audio bytes in mp3 or wav format.
66
+ * Binary audio data in mp3 or wav format.
95
67
  */
96
- export type SttClientEvent = ArrayBuffer | Buffer | Uint8Array;
68
+ export type TranscribeClientEvent = Uploadable;
97
69
  /**
98
70
  * Union of all server-to-client WebSocket events for STT streaming.
99
71
  */
100
- export type SttServerEvent = SttServerEvent.TranscriptFrame | SttServerEvent.ErrorFrame;
101
- export declare namespace SttServerEvent {
72
+ export type TranscribeServerEvent = TranscribeServerEvent.TranscriptFrame | TranscribeServerEvent.SttErrorFrame;
73
+ export declare namespace TranscribeServerEvent {
102
74
  /**
103
75
  * Server-to-client frame containing a transcription result.
104
76
  */
105
77
  interface TranscriptFrame {
106
- /**
107
- * Frame type identifier.
108
- */
109
- type: 'transcript';
110
78
  /**
111
79
  * The transcribed text from the audio.
112
80
  */
113
81
  transcript: string;
114
82
  /**
115
- * Whether this is a final transcription result.
116
- * When `false`, this is an interim result that may be refined.
83
+ * Frame type identifier.
117
84
  */
118
- is_final?: boolean;
85
+ type: 'transcript';
119
86
  /**
120
87
  * Confidence score of the transcription, ranging from 0 to 1.
121
88
  */
122
89
  confidence?: number;
90
+ /**
91
+ * Whether this is a final transcription result. When `false`, this is an interim
92
+ * result that may be refined.
93
+ */
94
+ is_final?: boolean;
123
95
  }
124
96
  /**
125
- * Server-to-client frame indicating an error during transcription.
97
+ * Server-to-client frame indicating an error during transcription. The connection
98
+ * may be closed shortly after.
126
99
  */
127
- interface ErrorFrame {
128
- /**
129
- * Frame type identifier.
130
- */
131
- type: 'error';
100
+ interface SttErrorFrame {
132
101
  /**
133
102
  * Error message describing what went wrong.
134
103
  */
135
104
  error: string;
105
+ /**
106
+ * Frame type identifier.
107
+ */
108
+ type: 'error';
136
109
  }
137
110
  }
138
- /**
139
- * Transcript frame with transcription result.
140
- */
141
- export type TranscriptFrame = SttServerEvent.TranscriptFrame;
142
- /**
143
- * Error frame indicating transcription failure.
144
- */
145
- export type SttErrorFrame = SttServerEvent.ErrorFrame;
111
+ export interface SpeechToTextListProvidersParams {
112
+ /**
113
+ * Filter to entries for a specific STT provider. The enum mirrors the providers
114
+ * advertised across the speech-to-text spec (including `google` and `telnyx`,
115
+ * which are accepted as WebSocket transcription engines). A provider that has no
116
+ * models currently registered for any service type will return an empty `data`
117
+ * array rather than an error.
118
+ */
119
+ provider?: 'deepgram' | 'speechmatics' | 'assemblyai' | 'xai' | 'soniox' | 'azure' | 'openai' | 'google' | 'telnyx';
120
+ /**
121
+ * Filter to entries that support the given service type.
122
+ */
123
+ service_type?: 'streaming' | 'file_transcription' | 'in_call_transcription';
124
+ }
146
125
  export declare namespace SpeechToText {
147
- export { type SpeechToTextTranscribeParams as SpeechToTextTranscribeParams };
126
+ export { type SpeechToTextListProvidersResponse as SpeechToTextListProvidersResponse, type TranscribeClientEvent as TranscribeClientEvent, type TranscribeServerEvent as TranscribeServerEvent, type SpeechToTextListProvidersParams as SpeechToTextListProvidersParams, };
148
127
  }
149
128
  //# sourceMappingURL=speech-to-text.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"speech-to-text.d.mts","sourceRoot":"","sources":["../../src/resources/speech-to-text/speech-to-text.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAEhE;;GAEG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;;;;;OAeG;IACH,UAAU,CAAC,KAAK,EAAE,4BAA4B,E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,GAAG,cAAc,CAAC,UAAU,CAAC;AAExF,yBAAiB,cAAc,CAAC;IAC9B;;OAEG;IACH,UAAiB,eAAe;QAC9B;;WAEG;QACH,IAAI,EAAE,YAAY,CAAC;QAEnB;;WAEG;QACH,UAAU,EAAE,MAAM,CAAC;QAEnB;;;WAGG;QACH,QAAQ,CAAC,EAAE,OAAO,CAAC;QAEnB;;WAEG;QACH,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB;IAED;;OAEG;IACH,UAAiB,UAAU;QACzB;;WAEG;QACH,IAAI,EAAE,OAAO,CAAC;QAEd;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;KACf;CACF;AAED;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,cAAc,CAAC,eAAe,CAAC;AAE7D;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,cAAc,CAAC,UAAU,CAAC;AAEtD,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EAAE,KAAK,4BAA4B,IAAI,4BAA4B,EAAE,CAAC;CAC9E"}
1
+ {"version":3,"file":"speech-to-text.d.mts","sourceRoot":"","sources":["../../src/resources/speech-to-text/speech-to-text.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,KAAK,UAAU,EAAE,+BAA2B;AACrD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAEhE;;GAEG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;;;;;;OAgBG;IACH,aAAa,CACX,KAAK,GAAE,+BAA+B,GAAG,IAAI,GAAG,SAAc,EAC9D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iCAAiC,CAAC;CAOjD;AAED;;GAEG;AACH,MAAM,WAAW,iCAAiC;IAChD,IAAI,EAAE,KAAK,CAAC,iCAAiC,CAAC,IAAI,CAAC,CAAC;IAEpD,IAAI,EAAE,i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CAAC;IACpC,OAAO,EACL,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,+BAA+B,IAAI,+BAA+B,GACxE,CAAC;CACH"}
@@ -1,149 +1,128 @@
1
1
  import { APIResource } from "../../core/resource.js";
2
2
  import { APIPromise } from "../../core/api-promise.js";
3
+ import { type Uploadable } from "../../core/uploads.js";
3
4
  import { RequestOptions } from "../../internal/request-options.js";
4
5
  /**
5
- * Speech to text streaming operations via WebSocket
6
+ * Discover available speech-to-text providers, models, and supported languages.
6
7
  */
7
8
  export declare class SpeechToText extends APIResource {
8
9
  /**
9
- * Open a WebSocket connection to stream audio and receive transcriptions in
10
- * real-time. Authentication is provided via the standard
11
- * `Authorization: Bearer <API_KEY>` header.
10
+ * Retrieve the canonical list of supported speech-to-text providers, models,
11
+ * accepted language codes, and the service types each model supports.
12
12
  *
13
- * Supported engines: `Azure`, `Deepgram`, `Google`, `Telnyx`.
13
+ * Service types:
14
14
  *
15
- * **Connection flow:**
15
+ * - `streaming` — standalone WebSocket transcription via
16
+ * `/speech-to-text/transcription`.
17
+ * - `file_transcription` — file-based transcription via
18
+ * `/ai/audio/transcriptions`.
19
+ * - `in_call_transcription` — live call transcription via Call Control
20
+ * `transcription_start`.
16
21
  *
17
- * 1. Open WebSocket with query parameters specifying engine, input format, and
18
- * language.
19
- * 2. Send binary audio frames (mp3/wav format).
20
- * 3. Receive JSON transcript frames with `transcript`, `is_final`, and
21
- * `confidence` fields.
22
- * 4. Close connection when done.
22
+ * Use this endpoint to discover which (provider, model) combinations are available
23
+ * for the surface you need, and which language codes each accepts. `auto` in a
24
+ * `languages` array indicates the provider performs language detection.
23
25
  */
24
- transcribe(query: SpeechToTextTranscribeParams, options?: RequestOptions): APIPromise<void>;
26
+ listProviders(query?: SpeechToTextListProvidersParams | null | undefined, options?: RequestOptions): APIPromise<SpeechToTextListProvidersResponse>;
25
27
  }
26
28
  /**
27
- * Parameters for the transcribe REST endpoint.
29
+ * List of supported STT providers and models.
28
30
  */
29
- export interface SpeechToTextTranscribeParams {
30
- /**
31
- * The format of input audio stream.
32
- */
33
- input_format: 'mp3' | 'wav';
34
- /**
35
- * The transcription engine to use for processing the audio stream.
36
- */
37
- transcription_engine: 'Azure' | 'Deepgram' | 'Google' | 'Telnyx';
38
- /**
39
- * Silence duration (in milliseconds) that triggers end-of-speech detection.
40
- */
41
- endpointing?: number;
42
- /**
43
- * Whether to receive interim transcription results.
44
- */
45
- interim_results?: boolean;
46
- /**
47
- * A key term to boost in the transcription.
48
- */
49
- keyterm?: string;
50
- /**
51
- * Comma-separated list of keywords to boost in the transcription.
52
- */
53
- keywords?: string;
54
- /**
55
- * The language spoken in the audio stream.
56
- */
57
- language?: string;
58
- /**
59
- * The specific model to use within the selected transcription engine.
60
- */
61
- model?: 'fast' | 'deepgram/nova-2' | 'deepgram/nova-3' | 'latest_long' | 'latest_short' | 'command_and_search' | 'phone_call' | 'video' | 'default' | 'medical_conversation' | 'medical_dictation' | 'openai/whisper-tiny' | 'openai/whisper-large-v3-turbo';
62
- /**
63
- * Enable redaction of sensitive information from transcription results.
64
- */
65
- redact?: string;
31
+ export interface SpeechToTextListProvidersResponse {
32
+ data: Array<SpeechToTextListProvidersResponse.Data>;
33
+ meta: SpeechToTextListProvidersResponse.Meta;
66
34
  }
67
- /**
68
- * Parameters for establishing a speech-to-text WebSocket connection.
69
- */
70
- export interface SpeechToTextStreamParams {
71
- /**
72
- * The transcription engine to use for processing the audio stream.
73
- */
74
- transcription_engine: 'Azure' | 'Deepgram' | 'Google' | 'Telnyx';
75
- /**
76
- * The format of the input audio stream.
77
- */
78
- input_format?: 'mp3' | 'wav' | 'raw';
79
- /**
80
- * The language code for transcription (e.g., 'en-US', 'es-ES').
81
- */
82
- language?: string;
35
+ export declare namespace SpeechToTextListProvidersResponse {
83
36
  /**
84
- * Whether to return interim (partial) transcription results.
37
+ * A (provider, model) tuple along with its supported service types and languages.
85
38
  */
86
- interim_results?: boolean;
87
- /**
88
- * The model to use for transcription (engine-specific).
89
- */
90
- model?: string;
39
+ interface Data {
40
+ /**
41
+ * Languages this (provider, model) accepts, in the provider's native code format.
42
+ * `auto` indicates the provider performs language detection.
43
+ */
44
+ languages: Array<string>;
45
+ /**
46
+ * Provider-scoped model name.
47
+ */
48
+ model: string;
49
+ /**
50
+ * STT provider name.
51
+ */
52
+ provider: string;
53
+ /**
54
+ * Service surfaces this (provider, model) supports.
55
+ */
56
+ service_types: Array<'streaming' | 'file_transcription' | 'in_call_transcription'>;
57
+ }
58
+ interface Meta {
59
+ /**
60
+ * Total number of entries returned.
61
+ */
62
+ total: number;
63
+ }
91
64
  }
92
65
  /**
93
- * Binary audio data sent from client to server.
94
- * Send raw audio bytes in mp3 or wav format.
66
+ * Binary audio data in mp3 or wav format.
95
67
  */
96
- export type SttClientEvent = ArrayBuffer | Buffer | Uint8Array;
68
+ export type TranscribeClientEvent = Uploadable;
97
69
  /**
98
70
  * Union of all server-to-client WebSocket events for STT streaming.
99
71
  */
100
- export type SttServerEvent = SttServerEvent.TranscriptFrame | SttServerEvent.ErrorFrame;
101
- export declare namespace SttServerEvent {
72
+ export type TranscribeServerEvent = TranscribeServerEvent.TranscriptFrame | TranscribeServerEvent.SttErrorFrame;
73
+ export declare namespace TranscribeServerEvent {
102
74
  /**
103
75
  * Server-to-client frame containing a transcription result.
104
76
  */
105
77
  interface TranscriptFrame {
106
- /**
107
- * Frame type identifier.
108
- */
109
- type: 'transcript';
110
78
  /**
111
79
  * The transcribed text from the audio.
112
80
  */
113
81
  transcript: string;
114
82
  /**
115
- * Whether this is a final transcription result.
116
- * When `false`, this is an interim result that may be refined.
83
+ * Frame type identifier.
117
84
  */
118
- is_final?: boolean;
85
+ type: 'transcript';
119
86
  /**
120
87
  * Confidence score of the transcription, ranging from 0 to 1.
121
88
  */
122
89
  confidence?: number;
90
+ /**
91
+ * Whether this is a final transcription result. When `false`, this is an interim
92
+ * result that may be refined.
93
+ */
94
+ is_final?: boolean;
123
95
  }
124
96
  /**
125
- * Server-to-client frame indicating an error during transcription.
97
+ * Server-to-client frame indicating an error during transcription. The connection
98
+ * may be closed shortly after.
126
99
  */
127
- interface ErrorFrame {
128
- /**
129
- * Frame type identifier.
130
- */
131
- type: 'error';
100
+ interface SttErrorFrame {
132
101
  /**
133
102
  * Error message describing what went wrong.
134
103
  */
135
104
  error: string;
105
+ /**
106
+ * Frame type identifier.
107
+ */
108
+ type: 'error';
136
109
  }
137
110
  }
138
- /**
139
- * Transcript frame with transcription result.
140
- */
141
- export type TranscriptFrame = SttServerEvent.TranscriptFrame;
142
- /**
143
- * Error frame indicating transcription failure.
144
- */
145
- export type SttErrorFrame = SttServerEvent.ErrorFrame;
111
+ export interface SpeechToTextListProvidersParams {
112
+ /**
113
+ * Filter to entries for a specific STT provider. The enum mirrors the providers
114
+ * advertised across the speech-to-text spec (including `google` and `telnyx`,
115
+ * which are accepted as WebSocket transcription engines). A provider that has no
116
+ * models currently registered for any service type will return an empty `data`
117
+ * array rather than an error.
118
+ */
119
+ provider?: 'deepgram' | 'speechmatics' | 'assemblyai' | 'xai' | 'soniox' | 'azure' | 'openai' | 'google' | 'telnyx';
120
+ /**
121
+ * Filter to entries that support the given service type.
122
+ */
123
+ service_type?: 'streaming' | 'file_transcription' | 'in_call_transcription';
124
+ }
146
125
  export declare namespace SpeechToText {
147
- export { type SpeechToTextTranscribeParams as SpeechToTextTranscribeParams };
126
+ export { type SpeechToTextListProvidersResponse as SpeechToTextListProvidersResponse, type TranscribeClientEvent as TranscribeClientEvent, type TranscribeServerEvent as TranscribeServerEvent, type SpeechToTextListProvidersParams as SpeechToTextListProvidersParams, };
148
127
  }
149
128
  //# sourceMappingURL=speech-to-text.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"speech-to-text.d.ts","sourceRoot":"","sources":["../../src/resources/speech-to-text/speech-to-text.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,W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EAAE,OAAO,CAAC;IAE1B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG,WAAW,GAAG,MAAM,GAAG,UAAU,CAAC;AAE/D;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,cAAc,CAAC,eAAe,GAAG,cAAc,CAAC,UAAU,CAAC;AAExF,yBAAiB,cAAc,CAAC;IAC9B;;OAEG;IACH,UAAiB,eAAe;QAC9B;;WAEG;QACH,IAAI,EAAE,YAAY,CAAC;QAEnB;;WAEG;QACH,UAAU,EAAE,MAAM,CAAC;QAEnB;;;WAGG;QACH,QAAQ,CAAC,EAAE,OAAO,CAAC;QAEnB;;WAEG;QACH,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB;IAED;;OAEG;IACH,UAAiB,UAAU;QACzB;;WAEG;QACH,IAAI,EAAE,OAAO,CAAC;QAEd;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;KACf;CACF;AAED;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,cAAc,CAAC,eAAe,CAAC;AAE7D;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,cAAc,CAAC,UAAU,CAAC;AAEtD,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EAAE,KAAK,4BAA4B,IAAI,4BAA4B,EAAE,CAAC;CAC9E"}
1
+ {"version":3,"file":"speech-to-text.d.ts","sourceRoot":"","sources":["../../src/resources/speech-to-text/speech-to-text.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,KAAK,UAAU,EAAE,8BAA2B;AACrD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAEhE;;GAEG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;;;;;;OAgBG;IACH,aAAa,CACX,KAAK,GAAE,+BAA+B,GAA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AAc,GACd,YAAY,GACZ,KAAK,GACL,QAAQ,GACR,OAAO,GACP,QAAQ,GACR,QAAQ,GACR,QAAQ,CAAC;IAEb;;OAEG;IACH,YAAY,CAAC,EAAE,WAAW,GAAG,oBAAoB,GAAG,uBAAuB,CAAC;CAC7E;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,+BAA+B,IAAI,+BAA+B,GACxE,CAAC;CACH"}
@@ -3,35 +3,32 @@
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.SpeechToText = void 0;
5
5
  const resource_1 = require("../../core/resource.js");
6
- const headers_1 = require("../../internal/headers.js");
7
6
  /**
8
- * Speech to text streaming operations via WebSocket
7
+ * Discover available speech-to-text providers, models, and supported languages.
9
8
  */
10
9
  class SpeechToText extends resource_1.APIResource {
11
10
  /**
12
- * Open a WebSocket connection to stream audio and receive transcriptions in
13
- * real-time. Authentication is provided via the standard
14
- * `Authorization: Bearer <API_KEY>` header.
11
+ * Retrieve the canonical list of supported speech-to-text providers, models,
12
+ * accepted language codes, and the service types each model supports.
15
13
  *
16
- * Supported engines: `Azure`, `Deepgram`, `Google`, `Telnyx`.
14
+ * Service types:
17
15
  *
18
- * **Connection flow:**
16
+ * - `streaming` — standalone WebSocket transcription via
17
+ * `/speech-to-text/transcription`.
18
+ * - `file_transcription` — file-based transcription via
19
+ * `/ai/audio/transcriptions`.
20
+ * - `in_call_transcription` — live call transcription via Call Control
21
+ * `transcription_start`.
19
22
  *
20
- * 1. Open WebSocket with query parameters specifying engine, input format, and
21
- * language.
22
- * 2. Send binary audio frames (mp3/wav format).
23
- * 3. Receive JSON transcript frames with `transcript`, `is_final`, and
24
- * `confidence` fields.
25
- * 4. Close connection when done.
23
+ * Use this endpoint to discover which (provider, model) combinations are available
24
+ * for the surface you need, and which language codes each accepts. `auto` in a
25
+ * `languages` array indicates the provider performs language detection.
26
26
  */
27
- transcribe(query, options) {
28
- return this._client.get('/speech-to-text/transcription', {
27
+ listProviders(query = {}, options) {
28
+ return this._client.get('/speech-to-text/providers', {
29
29
  query,
30
+ defaultBaseURL: 'https://api.telnyx.com/v2',
30
31
  ...options,
31
- headers: (0, headers_1.buildHeaders)([
32
- { 'Content-Type': 'application/octet-stream', Accept: '*/*' },
33
- options?.headers,
34
- ]),
35
32
  });
36
33
  }
37
34
  }
@@ -1 +1 @@
1
- {"version":3,"file":"speech-to-text.js","sourceRoot":"","sources":["../../src/resources/speech-to-text/speech-to-text.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,uDAAsD;AAGtD;;GAEG;AACH,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;;;;;;;;;;;;;;OAeG;IACH,UAAU,CAAC,KAAmC,EAAE,OAAwB;QACtE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,+BAA+B,EAAE;YACvD,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB,EAAE,cAAc,EAAE,0BAA0B,EAAE,MAAM,EAAE,KAAK,EAAE;gBAC7D,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF;AA3BD,oCA2BC"}
1
+ {"version":3,"file":"speech-to-text.js","sourceRoot":"","sources":["../../src/resources/speech-to-text/speech-to-text.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAKlD;;GAEG;AACH,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;;;;;;;;;;;;;;;OAgBG;IACH,aAAa,CACX,QAA4D,EAAE,EAC9D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,2BAA2B,EAAE;YACnD,KAAK;YACL,cAAc,EAAE,2BAA2B;YAC3C,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AA5BD,oCA4BC"}
@@ -1,34 +1,31 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
  import { APIResource } from "../../core/resource.mjs";
3
- import { buildHeaders } from "../../internal/headers.mjs";
4
3
  /**
5
- * Speech to text streaming operations via WebSocket
4
+ * Discover available speech-to-text providers, models, and supported languages.
6
5
  */
7
6
  export class SpeechToText extends APIResource {
8
7
  /**
9
- * Open a WebSocket connection to stream audio and receive transcriptions in
10
- * real-time. Authentication is provided via the standard
11
- * `Authorization: Bearer <API_KEY>` header.
8
+ * Retrieve the canonical list of supported speech-to-text providers, models,
9
+ * accepted language codes, and the service types each model supports.
12
10
  *
13
- * Supported engines: `Azure`, `Deepgram`, `Google`, `Telnyx`.
11
+ * Service types:
14
12
  *
15
- * **Connection flow:**
13
+ * - `streaming` — standalone WebSocket transcription via
14
+ * `/speech-to-text/transcription`.
15
+ * - `file_transcription` — file-based transcription via
16
+ * `/ai/audio/transcriptions`.
17
+ * - `in_call_transcription` — live call transcription via Call Control
18
+ * `transcription_start`.
16
19
  *
17
- * 1. Open WebSocket with query parameters specifying engine, input format, and
18
- * language.
19
- * 2. Send binary audio frames (mp3/wav format).
20
- * 3. Receive JSON transcript frames with `transcript`, `is_final`, and
21
- * `confidence` fields.
22
- * 4. Close connection when done.
20
+ * Use this endpoint to discover which (provider, model) combinations are available
21
+ * for the surface you need, and which language codes each accepts. `auto` in a
22
+ * `languages` array indicates the provider performs language detection.
23
23
  */
24
- transcribe(query, options) {
25
- return this._client.get('/speech-to-text/transcription', {
24
+ listProviders(query = {}, options) {
25
+ return this._client.get('/speech-to-text/providers', {
26
26
  query,
27
+ defaultBaseURL: 'https://api.telnyx.com/v2',
27
28
  ...options,
28
- headers: buildHeaders([
29
- { 'Content-Type': 'application/octet-stream', Accept: '*/*' },
30
- options?.headers,
31
- ]),
32
29
  });
33
30
  }
34
31
  }
@@ -1 +1 @@
1
- {"version":3,"file":"speech-to-text.mjs","sourceRoot":"","sources":["../../src/resources/speech-to-text/speech-to-text.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAElD,OAAO,EAAE,YAAY,EAAE,mCAA+B;AAGtD;;GAEG;AACH,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;;;;;OAeG;IACH,UAAU,CAAC,KAAmC,EAAE,OAAwB;QACtE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,+BAA+B,EAAE;YACvD,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB,EAAE,cAAc,EAAE,0BAA0B,EAAE,MAAM,EAAE,KAAK,EAAE;gBAC7D,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF"}
1
+ {"version":3,"file":"speech-to-text.mjs","sourceRoot":"","sources":["../../src/resources/speech-to-text/speech-to-text.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAKlD;;GAEG;AACH,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;;;;;;OAgBG;IACH,aAAa,CACX,QAA4D,EAAE,EAC9D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,2BAA2B,EAAE;YACnD,KAAK;YACL,cAAc,EAAE,2BAA2B;YAC3C,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF"}