@shogo-ai/voice 1.9.13 → 2.4.1
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 +89 -0
- package/dist/{chunk-S3S2RNO6.js → chunk-BI6SL35K.js} +1 -184
- package/dist/chunk-CLF25CZC.js +987 -0
- package/dist/chunk-KMSL5PWK.js +540 -0
- package/dist/chunk-ME3SIZZU.js +581 -0
- package/dist/chunk-TQOBJMEK.js +17 -0
- package/dist/{chunk-T3T4EBWY.js → chunk-UH75UVM2.js} +6 -2
- package/dist/chunk-UW7VQ3S6.js +148 -0
- package/dist/chunk-XE4LLC7Z.js +1067 -0
- package/dist/chunk-ZAW6F3YT.js +172 -0
- package/dist/index.cjs +735 -25
- package/dist/index.d.cts +373 -3
- package/dist/index.d.ts +373 -3
- package/dist/index.js +59 -3
- package/dist/live/client.cjs +173 -0
- package/dist/live/client.d.cts +132 -0
- package/dist/live/client.d.ts +132 -0
- package/dist/live/client.js +9 -0
- package/dist/native/index.d.cts +5 -2
- package/dist/native/index.d.ts +5 -2
- package/dist/native/index.js +15 -11
- package/dist/{organicParticlesShaders-DIva0vBO.d.ts → organicParticlesShaders-seZq7jYX.d.cts} +1 -421
- package/dist/{organicParticlesShaders-DIva0vBO.d.cts → organicParticlesShaders-seZq7jYX.d.ts} +1 -421
- package/dist/particlesConfig-0YbdPOdY.d.cts +223 -0
- package/dist/particlesConfig-0YbdPOdY.d.ts +223 -0
- package/dist/react/conversation.cjs +789 -0
- package/dist/react/conversation.d.cts +134 -0
- package/dist/react/conversation.d.ts +134 -0
- package/dist/react/conversation.js +13 -0
- package/dist/react/index.cjs +374 -36
- package/dist/react/index.d.cts +10 -141
- package/dist/react/index.d.ts +10 -141
- package/dist/react/index.js +23 -770
- package/dist/react/visuals.cjs +1048 -0
- package/dist/react/visuals.d.cts +70 -0
- package/dist/react/visuals.d.ts +70 -0
- package/dist/react/visuals.js +10 -0
- package/dist/route/agent.cjs +1038 -85
- package/dist/route/agent.js +3 -3
- package/dist/route/audio-tags.cjs +1038 -85
- package/dist/route/audio-tags.js +3 -3
- package/dist/route/index.cjs +1042 -85
- package/dist/route/index.d.cts +19 -3
- package/dist/route/index.d.ts +19 -3
- package/dist/route/index.js +3 -3
- package/dist/route/music.cjs +1038 -85
- package/dist/route/music.js +3 -3
- package/dist/route/op.cjs +2118 -0
- package/dist/route/op.d.cts +43 -0
- package/dist/route/op.d.ts +43 -0
- package/dist/route/op.js +27 -0
- package/dist/route/signed-url.cjs +1038 -85
- package/dist/route/signed-url.js +3 -3
- package/dist/route/tts-preview.cjs +1038 -85
- package/dist/route/tts-preview.d.cts +6 -4
- package/dist/route/tts-preview.d.ts +6 -4
- package/dist/route/tts-preview.js +3 -3
- package/dist/server.cjs +1038 -85
- package/dist/server.d.cts +40 -8
- package/dist/server.d.ts +40 -8
- package/dist/server.js +2 -2
- package/dist/types-Bfhu-aQH.d.cts +199 -0
- package/dist/types-Bfhu-aQH.d.ts +199 -0
- package/dist/{types-W9y6eMj3.d.ts → types-CadjTXNH.d.cts} +193 -12
- package/dist/{types-W9y6eMj3.d.cts → types-CadjTXNH.d.ts} +193 -12
- package/package.json +21 -1
- package/dist/chunk-B4JC3DK2.js +0 -529
- package/dist/chunk-O362EJQR.js +0 -524
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
import { b as OrganicSphereConfig, O as OrganicParticlesConfig } from '../particlesConfig-0YbdPOdY.cjs';
|
|
4
|
+
|
|
5
|
+
interface OrganicSphereProps {
|
|
6
|
+
/**
|
|
7
|
+
* Returns the current agent-output frequency buffer (length = fftSize,
|
|
8
|
+
* values 0–255). Typically `useVoiceConversation().getOutputByteFrequencyData`.
|
|
9
|
+
*
|
|
10
|
+
* Can also be pointed at `analyserNode.getByteFrequencyData` from any
|
|
11
|
+
* WebAudio graph for non-ElevenLabs callers.
|
|
12
|
+
*/
|
|
13
|
+
getFrequencyData?: () => Uint8Array | null;
|
|
14
|
+
/**
|
|
15
|
+
* Whether audio is live. When `false` the sphere settles into its
|
|
16
|
+
* idle pose (no pulsing). Purely cosmetic — the component keeps the
|
|
17
|
+
* render loop running either way.
|
|
18
|
+
*
|
|
19
|
+
* @default true
|
|
20
|
+
*/
|
|
21
|
+
active?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Full configuration object (partial). Any unspecified keys fall back
|
|
24
|
+
* to `DEFAULT_ORGANIC_SPHERE_CONFIG`. Individual convenience props
|
|
25
|
+
* below (e.g. `lightAColor`) take precedence over the same key inside
|
|
26
|
+
* `config`, so you can combine a base preset with a single override.
|
|
27
|
+
*/
|
|
28
|
+
config?: Partial<OrganicSphereConfig>;
|
|
29
|
+
/** Overrides `config.lightAColor`. */
|
|
30
|
+
lightAColor?: string;
|
|
31
|
+
/** Overrides `config.lightBColor`. */
|
|
32
|
+
lightBColor?: string;
|
|
33
|
+
/** Overrides `config.rimColor`. */
|
|
34
|
+
rimColor?: string;
|
|
35
|
+
/** Overrides `config.rimThreshold`. */
|
|
36
|
+
rimThreshold?: number;
|
|
37
|
+
/** Overrides `config.rimPower`. */
|
|
38
|
+
rimPower?: number;
|
|
39
|
+
/** Overrides `config.backgroundColor`. */
|
|
40
|
+
backgroundColor?: string | null;
|
|
41
|
+
/** Overrides `config.subdivisions` (re-init on change). */
|
|
42
|
+
subdivisions?: number;
|
|
43
|
+
/** Overrides `config.maxPixelRatio` (re-init on change). */
|
|
44
|
+
maxPixelRatio?: number;
|
|
45
|
+
/**
|
|
46
|
+
* Extra classes merged onto the wrapping `<div>`. Size the parent
|
|
47
|
+
* element; the canvas fills it.
|
|
48
|
+
*/
|
|
49
|
+
className?: string;
|
|
50
|
+
/** Inline style override for the wrapping `<div>`. */
|
|
51
|
+
style?: React__default.CSSProperties;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Audio-reactive organic sphere. See the module docblock for usage.
|
|
55
|
+
*/
|
|
56
|
+
declare function OrganicSphere({ getFrequencyData, active, config: configProp, lightAColor, lightBColor, rimColor, rimThreshold, rimPower, backgroundColor, subdivisions, maxPixelRatio, className, style, }: OrganicSphereProps): react_jsx_runtime.JSX.Element;
|
|
57
|
+
|
|
58
|
+
interface OrganicParticlesProps {
|
|
59
|
+
getFrequencyData?: () => Uint8Array | null;
|
|
60
|
+
active?: boolean;
|
|
61
|
+
config?: Partial<OrganicParticlesConfig>;
|
|
62
|
+
className?: string;
|
|
63
|
+
style?: React__default.CSSProperties;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Audio-reactive particle cloud. See the module docblock for usage.
|
|
67
|
+
*/
|
|
68
|
+
declare function OrganicParticles({ getFrequencyData, active, config: configProp, className, style, }: OrganicParticlesProps): react_jsx_runtime.JSX.Element;
|
|
69
|
+
|
|
70
|
+
export { OrganicParticles, OrganicParticlesConfig, type OrganicParticlesProps, OrganicSphere, type OrganicSphereProps };
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
import { b as OrganicSphereConfig, O as OrganicParticlesConfig } from '../particlesConfig-0YbdPOdY.js';
|
|
4
|
+
|
|
5
|
+
interface OrganicSphereProps {
|
|
6
|
+
/**
|
|
7
|
+
* Returns the current agent-output frequency buffer (length = fftSize,
|
|
8
|
+
* values 0–255). Typically `useVoiceConversation().getOutputByteFrequencyData`.
|
|
9
|
+
*
|
|
10
|
+
* Can also be pointed at `analyserNode.getByteFrequencyData` from any
|
|
11
|
+
* WebAudio graph for non-ElevenLabs callers.
|
|
12
|
+
*/
|
|
13
|
+
getFrequencyData?: () => Uint8Array | null;
|
|
14
|
+
/**
|
|
15
|
+
* Whether audio is live. When `false` the sphere settles into its
|
|
16
|
+
* idle pose (no pulsing). Purely cosmetic — the component keeps the
|
|
17
|
+
* render loop running either way.
|
|
18
|
+
*
|
|
19
|
+
* @default true
|
|
20
|
+
*/
|
|
21
|
+
active?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Full configuration object (partial). Any unspecified keys fall back
|
|
24
|
+
* to `DEFAULT_ORGANIC_SPHERE_CONFIG`. Individual convenience props
|
|
25
|
+
* below (e.g. `lightAColor`) take precedence over the same key inside
|
|
26
|
+
* `config`, so you can combine a base preset with a single override.
|
|
27
|
+
*/
|
|
28
|
+
config?: Partial<OrganicSphereConfig>;
|
|
29
|
+
/** Overrides `config.lightAColor`. */
|
|
30
|
+
lightAColor?: string;
|
|
31
|
+
/** Overrides `config.lightBColor`. */
|
|
32
|
+
lightBColor?: string;
|
|
33
|
+
/** Overrides `config.rimColor`. */
|
|
34
|
+
rimColor?: string;
|
|
35
|
+
/** Overrides `config.rimThreshold`. */
|
|
36
|
+
rimThreshold?: number;
|
|
37
|
+
/** Overrides `config.rimPower`. */
|
|
38
|
+
rimPower?: number;
|
|
39
|
+
/** Overrides `config.backgroundColor`. */
|
|
40
|
+
backgroundColor?: string | null;
|
|
41
|
+
/** Overrides `config.subdivisions` (re-init on change). */
|
|
42
|
+
subdivisions?: number;
|
|
43
|
+
/** Overrides `config.maxPixelRatio` (re-init on change). */
|
|
44
|
+
maxPixelRatio?: number;
|
|
45
|
+
/**
|
|
46
|
+
* Extra classes merged onto the wrapping `<div>`. Size the parent
|
|
47
|
+
* element; the canvas fills it.
|
|
48
|
+
*/
|
|
49
|
+
className?: string;
|
|
50
|
+
/** Inline style override for the wrapping `<div>`. */
|
|
51
|
+
style?: React__default.CSSProperties;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Audio-reactive organic sphere. See the module docblock for usage.
|
|
55
|
+
*/
|
|
56
|
+
declare function OrganicSphere({ getFrequencyData, active, config: configProp, lightAColor, lightBColor, rimColor, rimThreshold, rimPower, backgroundColor, subdivisions, maxPixelRatio, className, style, }: OrganicSphereProps): react_jsx_runtime.JSX.Element;
|
|
57
|
+
|
|
58
|
+
interface OrganicParticlesProps {
|
|
59
|
+
getFrequencyData?: () => Uint8Array | null;
|
|
60
|
+
active?: boolean;
|
|
61
|
+
config?: Partial<OrganicParticlesConfig>;
|
|
62
|
+
className?: string;
|
|
63
|
+
style?: React__default.CSSProperties;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Audio-reactive particle cloud. See the module docblock for usage.
|
|
67
|
+
*/
|
|
68
|
+
declare function OrganicParticles({ getFrequencyData, active, config: configProp, className, style, }: OrganicParticlesProps): react_jsx_runtime.JSX.Element;
|
|
69
|
+
|
|
70
|
+
export { OrganicParticles, OrganicParticlesConfig, type OrganicParticlesProps, OrganicSphere, type OrganicSphereProps };
|