@wzyjs/utils 0.3.10 → 0.3.16

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.
@@ -0,0 +1,2 @@
1
+ export * from './tts';
2
+ export * from './vc';
@@ -0,0 +1,30 @@
1
+ export interface DoubaoTtsAppConfig {
2
+ appid?: string;
3
+ accessToken?: string;
4
+ resourceId?: string;
5
+ }
6
+ export interface DoubaoTtsUserConfig {
7
+ uid?: string;
8
+ }
9
+ export interface DoubaoTtsAudioConfig {
10
+ voice_type: string;
11
+ encoding?: 'mp3' | 'pcm' | 'wav' | 'aac' | 'ogg_opus';
12
+ speed_ratio?: number;
13
+ volume_ratio?: number;
14
+ pitch_ratio?: number;
15
+ emotion?: string;
16
+ emotion_scale?: number;
17
+ context_texts?: string[];
18
+ language?: string;
19
+ }
20
+ export interface DoubaoTtsRequestConfig {
21
+ reqid?: string;
22
+ text: string;
23
+ }
24
+ export interface DoubaoTtsParams {
25
+ app?: DoubaoTtsAppConfig;
26
+ user?: DoubaoTtsUserConfig;
27
+ audio: DoubaoTtsAudioConfig;
28
+ request: DoubaoTtsRequestConfig;
29
+ }
30
+ export declare const tts: (params: DoubaoTtsParams) => Promise<ArrayBuffer>;
@@ -0,0 +1,21 @@
1
+ export interface DoubaoVcAppConfig {
2
+ appid: string;
3
+ accessToken: string;
4
+ }
5
+ export interface DoubaoVcSubmitParams {
6
+ app: DoubaoVcAppConfig;
7
+ options?: Record<string, any>;
8
+ audio: {
9
+ data: ArrayBuffer | Buffer;
10
+ contentType?: string;
11
+ };
12
+ }
13
+ export interface DoubaoVcQueryParams {
14
+ app: DoubaoVcAppConfig;
15
+ id: string;
16
+ blocking?: string | number;
17
+ }
18
+ export declare const vc: {
19
+ submit: (params: DoubaoVcSubmitParams) => Promise<ArrayBuffer>;
20
+ query: (params: DoubaoVcQueryParams) => Promise<ArrayBuffer>;
21
+ };
@@ -1,3 +1,4 @@
1
1
  export * as ai302 from './302';
2
- export * as video from './video';
2
+ export * as doubao from './doubao';
3
+ export * as keling from './keling';
3
4
  export * as text from './text';
@@ -0,0 +1 @@
1
+ export * as video from './video';