pendra 0.22.0 → 0.23.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/README.md +5 -3
- package/dist/index.d.mts +7 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +318 -288
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +318 -288
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -203,9 +203,11 @@ console.log(speech.pendra?.worker?.id); // the worker that generated it
|
|
|
203
203
|
Code written for the OpenAI SDK keeps working:
|
|
204
204
|
`Buffer.from(await speech.arrayBuffer())` returns the same bytes.
|
|
205
205
|
|
|
206
|
-
Speech
|
|
207
|
-
|
|
208
|
-
|
|
206
|
+
Speech works with private inference too. The text is encrypted before it
|
|
207
|
+
leaves your machine and the audio comes back encrypted, so `speech.create()`
|
|
208
|
+
returns the same result. If the workers serving the model are too old to answer
|
|
209
|
+
encrypted speech, the request fails with a 400 `speech_encryption_unsupported`
|
|
210
|
+
error until you update them.
|
|
209
211
|
|
|
210
212
|
## Configuration
|
|
211
213
|
|
package/dist/index.d.mts
CHANGED
|
@@ -476,6 +476,13 @@ declare class Speech {
|
|
|
476
476
|
* ```
|
|
477
477
|
*/
|
|
478
478
|
create(params: SpeechCreateParams): Promise<SpeechResponse>;
|
|
479
|
+
/**
|
|
480
|
+
* Private-inference speech. The request options are the sealed JSON body;
|
|
481
|
+
* the worker seals the same `{ audio, format, duration_ms }` result a
|
|
482
|
+
* plaintext JSON reply carries, so the audio comes back exactly as it does
|
|
483
|
+
* without encryption.
|
|
484
|
+
*/
|
|
485
|
+
private createEncrypted;
|
|
479
486
|
}
|
|
480
487
|
|
|
481
488
|
declare class Transcriptions {
|
package/dist/index.d.ts
CHANGED
|
@@ -476,6 +476,13 @@ declare class Speech {
|
|
|
476
476
|
* ```
|
|
477
477
|
*/
|
|
478
478
|
create(params: SpeechCreateParams): Promise<SpeechResponse>;
|
|
479
|
+
/**
|
|
480
|
+
* Private-inference speech. The request options are the sealed JSON body;
|
|
481
|
+
* the worker seals the same `{ audio, format, duration_ms }` result a
|
|
482
|
+
* plaintext JSON reply carries, so the audio comes back exactly as it does
|
|
483
|
+
* without encryption.
|
|
484
|
+
*/
|
|
485
|
+
private createEncrypted;
|
|
479
486
|
}
|
|
480
487
|
|
|
481
488
|
declare class Transcriptions {
|