@shogo-ai/voice 1.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.
Files changed (48) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +30 -0
  3. package/dist/chunk-D2EVSUZX.js +27 -0
  4. package/dist/chunk-Q3TJAJ54.js +165 -0
  5. package/dist/chunk-QHDIEE7O.js +453 -0
  6. package/dist/chunk-S3S2RNO6.js +671 -0
  7. package/dist/chunk-ZGYHDC5G.js +423 -0
  8. package/dist/index.cjs +1316 -0
  9. package/dist/index.d.cts +432 -0
  10. package/dist/index.d.ts +432 -0
  11. package/dist/index.js +735 -0
  12. package/dist/native/index.cjs +1667 -0
  13. package/dist/native/index.d.cts +285 -0
  14. package/dist/native/index.d.ts +285 -0
  15. package/dist/native/index.js +949 -0
  16. package/dist/organicParticlesShaders-DIva0vBO.d.cts +693 -0
  17. package/dist/organicParticlesShaders-DIva0vBO.d.ts +693 -0
  18. package/dist/react/index.cjs +1670 -0
  19. package/dist/react/index.d.cts +423 -0
  20. package/dist/react/index.d.ts +423 -0
  21. package/dist/react/index.js +952 -0
  22. package/dist/route/agent.cjs +981 -0
  23. package/dist/route/agent.d.cts +20 -0
  24. package/dist/route/agent.d.ts +20 -0
  25. package/dist/route/agent.js +17 -0
  26. package/dist/route/audio-tags.cjs +975 -0
  27. package/dist/route/audio-tags.d.cts +16 -0
  28. package/dist/route/audio-tags.d.ts +16 -0
  29. package/dist/route/audio-tags.js +13 -0
  30. package/dist/route/index.cjs +987 -0
  31. package/dist/route/index.d.cts +115 -0
  32. package/dist/route/index.d.ts +115 -0
  33. package/dist/route/index.js +12 -0
  34. package/dist/route/signed-url.cjs +975 -0
  35. package/dist/route/signed-url.d.cts +12 -0
  36. package/dist/route/signed-url.d.ts +12 -0
  37. package/dist/route/signed-url.js +13 -0
  38. package/dist/route/tts-preview.cjs +975 -0
  39. package/dist/route/tts-preview.d.cts +17 -0
  40. package/dist/route/tts-preview.d.ts +17 -0
  41. package/dist/route/tts-preview.js +13 -0
  42. package/dist/server.cjs +999 -0
  43. package/dist/server.d.cts +88 -0
  44. package/dist/server.d.ts +88 -0
  45. package/dist/server.js +11 -0
  46. package/dist/types-BKJtOUbE.d.cts +352 -0
  47. package/dist/types-BKJtOUbE.d.ts +352 -0
  48. package/package.json +148 -0
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Drop-in `POST /voice/tts-preview` handler.
3
+ *
4
+ * Note: in runtime-token proxy mode this returns 501 — TTS preview
5
+ * requires a per-user companion context that pod apps don't own.
6
+ * Use `createVoiceRoute({ apiKey, getUser, companionStore })` from
7
+ * `@shogo-ai/sdk/voice/route` for BYO-EL deployments.
8
+ *
9
+ * @example
10
+ * ```ts
11
+ * // app/api/voice/tts-preview+api.ts (Expo Router)
12
+ * export { POST } from '@shogo-ai/sdk/voice/route/tts-preview'
13
+ * ```
14
+ */
15
+ declare const POST: (req: Request) => Promise<Response>;
16
+
17
+ export { POST };
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Drop-in `POST /voice/tts-preview` handler.
3
+ *
4
+ * Note: in runtime-token proxy mode this returns 501 — TTS preview
5
+ * requires a per-user companion context that pod apps don't own.
6
+ * Use `createVoiceRoute({ apiKey, getUser, companionStore })` from
7
+ * `@shogo-ai/sdk/voice/route` for BYO-EL deployments.
8
+ *
9
+ * @example
10
+ * ```ts
11
+ * // app/api/voice/tts-preview+api.ts (Expo Router)
12
+ * export { POST } from '@shogo-ai/sdk/voice/route/tts-preview'
13
+ * ```
14
+ */
15
+ declare const POST: (req: Request) => Promise<Response>;
16
+
17
+ export { POST };
@@ -0,0 +1,13 @@
1
+ import {
2
+ defaultHandlers
3
+ } from "../chunk-D2EVSUZX.js";
4
+ import "../chunk-QHDIEE7O.js";
5
+ import "../chunk-ZGYHDC5G.js";
6
+ import "../chunk-Q3TJAJ54.js";
7
+
8
+ // src/route/tts-preview.ts
9
+ var POST = (req) => defaultHandlers().tts(req);
10
+ export {
11
+ POST
12
+ };
13
+ //# sourceMappingURL=tts-preview.js.map