@flamai/finesse 0.1.1 → 0.1.2
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 +7 -1
- package/README.md +63 -14
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -7
- package/dist/index.d.ts +10 -7
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -332,10 +332,11 @@ interface ContextOptions {
|
|
|
332
332
|
voice_id: string;
|
|
333
333
|
context_id?: string;
|
|
334
334
|
language?: string;
|
|
335
|
-
/** `s16le` (default), `s24le`, `s32le`, `f32le`, `f64le` or `
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
335
|
+
/** `s16le` (default), `s24le`, `s32le`, `f32le`, `f64le`, `opus`, or `mulaw` (G.711 µ-law
|
|
336
|
+
* for telephony, with `sample_rate: 8000`). */
|
|
337
|
+
output_format?: "s16le" | "s24le" | "s32le" | "f32le" | "f64le" | "opus" | "mulaw";
|
|
338
|
+
/** Output rate in Hz, 8000-48000; the native rate is 24000. 8000 is produced as asked, other
|
|
339
|
+
* lower values still produce 24000. */
|
|
339
340
|
sample_rate?: number;
|
|
340
341
|
/** Generation steps, 1-32 (default 32); fewer is faster. Values over 32 are capped. */
|
|
341
342
|
num_step?: number;
|
|
@@ -581,7 +582,8 @@ interface AccessToken {
|
|
|
581
582
|
expires_at: number;
|
|
582
583
|
ttl_seconds: number;
|
|
583
584
|
}
|
|
584
|
-
|
|
585
|
+
/** `mulaw` is raw G.711 µ-law for telephony and needs `sample_rate: 8000`. */
|
|
586
|
+
type OutputFormat = "wav" | "s16le" | "s24le" | "s32le" | "f32le" | "f64le" | "mulaw";
|
|
585
587
|
interface SpeechParams {
|
|
586
588
|
/** One of your voices or a public platform voice; it must be ready. */
|
|
587
589
|
voice_id: string;
|
|
@@ -589,7 +591,8 @@ interface SpeechParams {
|
|
|
589
591
|
text: string;
|
|
590
592
|
language?: string;
|
|
591
593
|
output_format?: OutputFormat;
|
|
592
|
-
/** Output rate in Hz, 8000-48000. The native rate is 24000;
|
|
594
|
+
/** Output rate in Hz, 8000-48000. The native rate is 24000; 8000 is produced as asked, other
|
|
595
|
+
* lower values still return 24000. */
|
|
593
596
|
sample_rate?: number;
|
|
594
597
|
/** Generation steps, 1-32 (default and maximum 32; over 32 is a 400); fewer is faster. */
|
|
595
598
|
num_step?: number;
|
|
@@ -823,6 +826,6 @@ declare class Finesse {
|
|
|
823
826
|
get withRawResponse(): RawClient<FinesseResources>;
|
|
824
827
|
}
|
|
825
828
|
|
|
826
|
-
declare const VERSION = "0.1.
|
|
829
|
+
declare const VERSION = "0.1.2";
|
|
827
830
|
|
|
828
831
|
export { APIConnectionError, APIStatusError, APITimeoutError, type AccessToken, type Audio, type AudioChunk, type AudioEvent, AuthenticationError, BadRequestError, type ClientOptions, CloneFailedError, type CloneJob, type CloneResult, CloneTimeoutError, type CloneVoiceParams, ConflictError, type ConnectOptions, type ConsentParams, type ContextOptions, type CreateTokenParams, type CreateVoiceParams, type EnrollVoiceParams, type FileInput, Finesse, FinesseError, InternalServerError, type ListVoicesParams, type LogLevel, type Logger, NotFoundError, type OutputFormat, PayloadTooLargeError, PaymentRequiredError, PermissionDeniedError, RateLimitError, type RawClient, type RawResponse, RealtimeContext, RealtimeError, type RealtimeEvent, RealtimeSession, type RequestOptions, type SentenceDone, type SpeechParams, SpeechStream, type StreamDone, StreamError, type TaskCancelled, type TaskDone, type TaskStarted, type UnknownEvent, UnprocessableEntityError, type UpdateVoiceParams, VERSION, type Voice, VoicePage, VoicePagePromise, type VoiceSettings, type WaitOptions, fileFromPath, isReady };
|
package/dist/index.d.ts
CHANGED
|
@@ -332,10 +332,11 @@ interface ContextOptions {
|
|
|
332
332
|
voice_id: string;
|
|
333
333
|
context_id?: string;
|
|
334
334
|
language?: string;
|
|
335
|
-
/** `s16le` (default), `s24le`, `s32le`, `f32le`, `f64le` or `
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
335
|
+
/** `s16le` (default), `s24le`, `s32le`, `f32le`, `f64le`, `opus`, or `mulaw` (G.711 µ-law
|
|
336
|
+
* for telephony, with `sample_rate: 8000`). */
|
|
337
|
+
output_format?: "s16le" | "s24le" | "s32le" | "f32le" | "f64le" | "opus" | "mulaw";
|
|
338
|
+
/** Output rate in Hz, 8000-48000; the native rate is 24000. 8000 is produced as asked, other
|
|
339
|
+
* lower values still produce 24000. */
|
|
339
340
|
sample_rate?: number;
|
|
340
341
|
/** Generation steps, 1-32 (default 32); fewer is faster. Values over 32 are capped. */
|
|
341
342
|
num_step?: number;
|
|
@@ -581,7 +582,8 @@ interface AccessToken {
|
|
|
581
582
|
expires_at: number;
|
|
582
583
|
ttl_seconds: number;
|
|
583
584
|
}
|
|
584
|
-
|
|
585
|
+
/** `mulaw` is raw G.711 µ-law for telephony and needs `sample_rate: 8000`. */
|
|
586
|
+
type OutputFormat = "wav" | "s16le" | "s24le" | "s32le" | "f32le" | "f64le" | "mulaw";
|
|
585
587
|
interface SpeechParams {
|
|
586
588
|
/** One of your voices or a public platform voice; it must be ready. */
|
|
587
589
|
voice_id: string;
|
|
@@ -589,7 +591,8 @@ interface SpeechParams {
|
|
|
589
591
|
text: string;
|
|
590
592
|
language?: string;
|
|
591
593
|
output_format?: OutputFormat;
|
|
592
|
-
/** Output rate in Hz, 8000-48000. The native rate is 24000;
|
|
594
|
+
/** Output rate in Hz, 8000-48000. The native rate is 24000; 8000 is produced as asked, other
|
|
595
|
+
* lower values still return 24000. */
|
|
593
596
|
sample_rate?: number;
|
|
594
597
|
/** Generation steps, 1-32 (default and maximum 32; over 32 is a 400); fewer is faster. */
|
|
595
598
|
num_step?: number;
|
|
@@ -823,6 +826,6 @@ declare class Finesse {
|
|
|
823
826
|
get withRawResponse(): RawClient<FinesseResources>;
|
|
824
827
|
}
|
|
825
828
|
|
|
826
|
-
declare const VERSION = "0.1.
|
|
829
|
+
declare const VERSION = "0.1.2";
|
|
827
830
|
|
|
828
831
|
export { APIConnectionError, APIStatusError, APITimeoutError, type AccessToken, type Audio, type AudioChunk, type AudioEvent, AuthenticationError, BadRequestError, type ClientOptions, CloneFailedError, type CloneJob, type CloneResult, CloneTimeoutError, type CloneVoiceParams, ConflictError, type ConnectOptions, type ConsentParams, type ContextOptions, type CreateTokenParams, type CreateVoiceParams, type EnrollVoiceParams, type FileInput, Finesse, FinesseError, InternalServerError, type ListVoicesParams, type LogLevel, type Logger, NotFoundError, type OutputFormat, PayloadTooLargeError, PaymentRequiredError, PermissionDeniedError, RateLimitError, type RawClient, type RawResponse, RealtimeContext, RealtimeError, type RealtimeEvent, RealtimeSession, type RequestOptions, type SentenceDone, type SpeechParams, SpeechStream, type StreamDone, StreamError, type TaskCancelled, type TaskDone, type TaskStarted, type UnknownEvent, UnprocessableEntityError, type UpdateVoiceParams, VERSION, type Voice, VoicePage, VoicePagePromise, type VoiceSettings, type WaitOptions, fileFromPath, isReady };
|