@cartesia/cartesia-js 1.0.0-alpha.3 → 1.0.0-alpha.4

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.
@@ -30,7 +30,7 @@ $ tsup src/ --format cjs,esm --dts
30
30
  ESM dist/tts/source.js 112.00 B
31
31
  ESM dist/tts/utils.js 395.00 B
32
32
  ESM dist/tts/websocket.js 242.00 B
33
- ESM ⚡️ Build success in 97ms
33
+ ESM ⚡️ Build success in 100ms
34
34
  CJS dist/index.cjs 21.01 KB
35
35
  CJS dist/lib/client.cjs 3.34 KB
36
36
  CJS dist/lib/constants.cjs 1.43 KB
@@ -44,9 +44,9 @@ $ tsup src/ --format cjs,esm --dts
44
44
  CJS dist/tts/websocket.cjs 15.34 KB
45
45
  CJS dist/types/index.cjs 764.00 B
46
46
  CJS dist/voices/index.cjs 5.04 KB
47
- CJS ⚡️ Build success in 101ms
47
+ CJS ⚡️ Build success in 105ms
48
48
  DTS Build start
49
- DTS ⚡️ Build success in 6609ms
49
+ DTS ⚡️ Build success in 8445ms
50
50
  DTS dist/index.d.cts 509.00 B
51
51
  DTS dist/lib/constants.d.cts 564.00 B
52
52
  DTS dist/lib/index.d.cts 410.00 B
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @cartesia/cartesia-js
2
2
 
3
+ ## 1.0.0-alpha.4
4
+
5
+ ### Patch Changes
6
+
7
+ - c98a0c7: Fix typo in README
8
+
3
9
  ## 1.0.0-alpha.3
4
10
 
5
11
  ### Patch Changes
package/README.md CHANGED
@@ -126,7 +126,7 @@ import { useTTS } from '@cartesia/cartesia-js/react';
126
126
  function TextToSpeech() {
127
127
  const tts = useTTS({
128
128
  apiKey: "your-api-key",
129
- samplingRate: 44100,
129
+ sampleRate: 44100,
130
130
  })
131
131
 
132
132
  const [text, setText] = useState("");
@@ -134,7 +134,7 @@ function TextToSpeech() {
134
134
  const handlePlay = async () => {
135
135
  // Begin buffering the audio.
136
136
  const response = await tts.buffer({
137
- model: "upbeat-moon",
137
+ model_id: "upbeat-moon",
138
138
  voice: {
139
139
  mode: "embedding",
140
140
  embedding: Array(192).fill(1.0),
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "name": "Cartesia",
5
5
  "url": "https://cartesia.ai"
6
6
  },
7
- "version": "1.0.0-alpha.3",
7
+ "version": "1.0.0-alpha.4",
8
8
  "description": "Client for the Cartesia API.",
9
9
  "type": "module",
10
10
  "module": "./dist/index.js",