{"_id":"@fern-api/cartesia","_rev":"27-f30476f05201fce05adab82f7ea2d1f1","name":"@fern-api/cartesia","dist-tags":{"latest":"0.0.12"},"versions":{"0.0.1":{"name":"@fern-api/cartesia","version":"0.0.1","_id":"@fern-api/cartesia@0.0.1","maintainers":[{"name":"dsheridan","email":"danny+npmjs@buildwithfern.com"},{"name":"dsinghvi77","email":"deep@buildwithfern.com"}],"homepage":"https://github.com/cartesia-ai/cartesia-js#readme","bugs":{"url":"https://github.com/cartesia-ai/cartesia-js/issues"},"dist":{"shasum":"8c7f072e86c7ed764f97e89cce22678fc4604128","tarball":"https://registry.npmjs.org/@fern-api/cartesia/-/cartesia-0.0.1.tgz","fileCount":956,"integrity":"sha512-IloR8QA6Hr0MtSubcgGOsqh3izTLCrUxy3fVnrnAlKQJ2n0Yh7cZvHsTEo5uaMfcSU1aEXsBfFdXU9+aWOKdMg==","signatures":[{"sig":"MEYCIQD6WbDZUKmHFOagYLqv1t6qal+DB8JJ6w0y8Kql1RIayQIhALHNyK3Uye/62v6UGuyymUvffV08nRsho5/hUHl9TCvV","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":728482},"main":"./index.js","types":"./index.d.ts","browser":{"fs":false,"os":false,"path":false},"gitHead":"6fa39c9d57fcedabb83c6b670d7c335cd34a0db7","private":false,"scripts":{"test":"jest","build":"tsc","format":"prettier . --write --ignore-unknown","prepack":"cp -rv dist/. ."},"_npmUser":{"name":"dsinghvi77","email":"deep@buildwithfern.com"},"repository":{"url":"git+https://github.com/cartesia-ai/cartesia-js.git","type":"git"},"_npmVersion":"10.5.0","description":"[![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-Built%20with%20Fern-brightgreen)](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2Fcartesia-ai%2Fcartesia-js) [![npm shield](h","directories":{},"_nodeVersion":"18.20.2","dependencies":{"qs":"6.11.2","ws":"^8.15.13","emittery":"^1.0.3","human-id":"^4.1.1","url-join":"4.0.1","form-data":"^4.0.0","node-fetch":"2.7.0","formdata-node":"^6.0.3","readable-stream":"^4.5.2","form-data-encoder":"^4.0.2"},"_hasShrinkwrap":false,"devDependencies":{"jest":"29.7.0","ts-jest":"29.1.1","webpack":"^5.94.0","prettier":"2.7.1","@types/qs":"6.9.8","@types/ws":"^8.5.13","ts-loader":"^9.3.1","typescript":"4.6.4","@types/jest":"29.5.5","@types/node":"17.0.33","@types/url-join":"4.0.1","fetch-mock-jest":"^1.5.1","@types/node-fetch":"2.6.9","@types/readable-stream":"^4.0.15","jest-environment-jsdom":"29.7.0"},"_npmOperationalInternal":{"tmp":"tmp/cartesia_0.0.1_1733440440593_0.10999671563493751","host":"s3://npm-registry-packages"}},"0.0.2":{"name":"@fern-api/cartesia","version":"0.0.2","_id":"@fern-api/cartesia@0.0.2","maintainers":[{"name":"dsheridan","email":"danny+npmjs@buildwithfern.com"},{"name":"dsinghvi77","email":"deep@buildwithfern.com"}],"homepage":"https://github.com/cartesia-ai/cartesia-js#readme","bugs":{"url":"https://github.com/cartesia-ai/cartesia-js/issues"},"dist":{"shasum":"c91e0cbb0c10c2332b30f35e1ef35d4a8f1e47fa","tarball":"https://registry.npmjs.org/@fern-api/cartesia/-/cartesia-0.0.2.tgz","fileCount":956,"integrity":"sha512-P9YObU4A/BvNYXPdPMTNEs2bxwfky/I6evZTULGXcS7AsJIkkk61M0Aj/5Bd1OV8QY8liySGYkwmdqksYYuO+w==","signatures":[{"sig":"MEUCIQCHtJe70qetxARRh9Dol8MxAdVkWPIXnU9KKrVjC7xUAgIgNMM7j5VRxVLyyne0QoCqj6nr/2FnHDFuULtRgihmgwc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":728504},"main":"./index.js","type":"module","types":"./index.d.ts","browser":{"fs":false,"os":false,"path":false},"gitHead":"6fa39c9d57fcedabb83c6b670d7c335cd34a0db7","private":false,"scripts":{"test":"jest","build":"tsc","format":"prettier . --write --ignore-unknown","prepack":"cp -rv dist/. ."},"_npmUser":{"name":"dsinghvi77","email":"deep@buildwithfern.com"},"repository":{"url":"git+https://github.com/cartesia-ai/cartesia-js.git","type":"git"},"_npmVersion":"10.5.0","description":"[![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-Built%20with%20Fern-brightgreen)](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2Fcartesia-ai%2Fcartesia-js) [![npm shield](h","directories":{},"_nodeVersion":"18.20.2","dependencies":{"qs":"6.11.2","ws":"^8.15.13","emittery":"^1.0.3","human-id":"^4.1.1","url-join":"4.0.1","form-data":"^4.0.0","node-fetch":"2.7.0","formdata-node":"^6.0.3","readable-stream":"^4.5.2","form-data-encoder":"^4.0.2"},"_hasShrinkwrap":false,"devDependencies":{"jest":"29.7.0","ts-jest":"29.1.1","webpack":"^5.94.0","prettier":"2.7.1","@types/qs":"6.9.8","@types/ws":"^8.5.13","ts-loader":"^9.3.1","typescript":"4.6.4","@types/jest":"29.5.5","@types/node":"17.0.33","@types/url-join":"4.0.1","fetch-mock-jest":"^1.5.1","@types/node-fetch":"2.6.9","@types/readable-stream":"^4.0.15","jest-environment-jsdom":"29.7.0"},"_npmOperationalInternal":{"tmp":"tmp/cartesia_0.0.2_1733440592097_0.39769223556977895","host":"s3://npm-registry-packages"}},"0.0.3":{"name":"@fern-api/cartesia","version":"0.0.3","_id":"@fern-api/cartesia@0.0.3","maintainers":[{"name":"dsheridan","email":"danny+npmjs@buildwithfern.com"},{"name":"dsinghvi77","email":"deep@buildwithfern.com"}],"homepage":"https://github.com/cartesia-ai/cartesia-js#readme","bugs":{"url":"https://github.com/cartesia-ai/cartesia-js/issues"},"dist":{"shasum":"3ba92d8033b520db410addc603661c37b796f832","tarball":"https://registry.npmjs.org/@fern-api/cartesia/-/cartesia-0.0.3.tgz","fileCount":944,"integrity":"sha512-vtsoX4Nr5yGwXdVeFM+tBGpF0p5jgNbjMFj8aSeMidbBdE6d9RWsYeDGxPANKaguwxjQy3vmEkN85A6muLF1ug==","signatures":[{"sig":"MEUCIQDxsWssWNpbC37cD8qh7Q/eD9NC5xesZq6ZOBPLBpvn7gIgVk7eXyF0k8MrA+/ximNWe3DwcvLn2sC4D0R/1yrUDQk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":655686},"main":"./index.js","type":"module","types":"./index.d.ts","browser":{"fs":false,"os":false,"path":false},"gitHead":"6fa39c9d57fcedabb83c6b670d7c335cd34a0db7","private":false,"scripts":{"test":"jest","build":"tsc","format":"prettier . --write --ignore-unknown","prepack":"cp -rv dist/. ."},"_npmUser":{"name":"dsinghvi77","email":"deep@buildwithfern.com"},"repository":{"url":"git+https://github.com/cartesia-ai/cartesia-js.git","type":"git"},"_npmVersion":"10.5.0","description":"[![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-Built%20with%20Fern-brightgreen)](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2Fcartesia-ai%2Fcartesia-js) [![npm shield](h","directories":{},"_nodeVersion":"18.20.2","dependencies":{"qs":"6.11.2","ws":"^8.15.13","human-id":"^4.1.1","url-join":"4.0.1","form-data":"^4.0.0","node-fetch":"2.7.0","formdata-node":"^6.0.3","readable-stream":"^4.5.2","form-data-encoder":"^4.0.2"},"_hasShrinkwrap":false,"devDependencies":{"jest":"29.7.0","ts-jest":"29.1.1","webpack":"^5.94.0","prettier":"2.7.1","@types/qs":"6.9.8","@types/ws":"^8.5.13","ts-loader":"^9.3.1","typescript":"4.6.4","@types/jest":"29.5.5","@types/node":"17.0.33","@types/url-join":"4.0.1","fetch-mock-jest":"^1.5.1","@types/node-fetch":"2.6.9","@types/readable-stream":"^4.0.15","jest-environment-jsdom":"29.7.0"},"_npmOperationalInternal":{"tmp":"tmp/cartesia_0.0.3_1733440782694_0.05828590204382378","host":"s3://npm-registry-packages"}},"0.0.4":{"name":"@fern-api/cartesia","version":"0.0.4","_id":"@fern-api/cartesia@0.0.4","maintainers":[{"name":"dsheridan","email":"danny+npmjs@buildwithfern.com"},{"name":"dsinghvi77","email":"deep@buildwithfern.com"}],"homepage":"https://github.com/cartesia-ai/cartesia-js#readme","bugs":{"url":"https://github.com/cartesia-ai/cartesia-js/issues"},"dist":{"shasum":"e569464459b0386116d8e8037d46b8387cbc3c6a","tarball":"https://registry.npmjs.org/@fern-api/cartesia/-/cartesia-0.0.4.tgz","fileCount":944,"integrity":"sha512-xmYEbD3161iiOzUk+1pcDPMNGz9zZe4Hx3L+AdGRWOohG24+hPY1d0J8C9NWrZ+W88c0zM1Bi0UFZo9fwq6Tww==","signatures":[{"sig":"MEUCIE/uZ1BVlZe+T9tLKACk6NjfVoQYfjIjaHkxBRGoJGeYAiEAiro9jEdgJNWilx4xont7rgcLZib9wxXoF6gMDZzXd9k=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":905204},"main":"./index.js","types":"./index.d.ts","browser":{"fs":false,"os":false,"path":false},"gitHead":"6fa39c9d57fcedabb83c6b670d7c335cd34a0db7","private":false,"scripts":{"test":"jest","build":"tsc","format":"prettier . --write --ignore-unknown","prepack":"cp -rv dist/. ."},"_npmUser":{"name":"dsinghvi77","email":"deep@buildwithfern.com"},"repository":{"url":"git+https://github.com/cartesia-ai/cartesia-js.git","type":"git"},"_npmVersion":"10.5.0","description":"[![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-Built%20with%20Fern-brightgreen)](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2Fcartesia-ai%2Fcartesia-js) [![npm shield](h","directories":{},"_nodeVersion":"18.20.2","dependencies":{"qs":"6.11.2","ws":"^8.15.13","human-id":"^4.1.1","url-join":"4.0.1","form-data":"^4.0.0","node-fetch":"2.7.0","formdata-node":"^6.0.3","readable-stream":"^4.5.2","form-data-encoder":"^4.0.2"},"_hasShrinkwrap":false,"devDependencies":{"jest":"29.7.0","ts-jest":"29.1.1","webpack":"^5.94.0","prettier":"2.7.1","@types/qs":"6.9.8","@types/ws":"^8.5.13","ts-loader":"^9.3.1","typescript":"4.6.4","@types/jest":"29.5.5","@types/node":"17.0.33","@types/url-join":"4.0.1","fetch-mock-jest":"^1.5.1","@types/node-fetch":"2.6.9","@types/readable-stream":"^4.0.15","jest-environment-jsdom":"29.7.0"},"_npmOperationalInternal":{"tmp":"tmp/cartesia_0.0.4_1733440947525_0.3663863242898191","host":"s3://npm-registry-packages"}},"0.0.5":{"name":"@fern-api/cartesia","version":"0.0.5","_id":"@fern-api/cartesia@0.0.5","maintainers":[{"name":"dsheridan","email":"danny+npmjs@buildwithfern.com"},{"name":"dsinghvi77","email":"deep@buildwithfern.com"}],"homepage":"https://github.com/cartesia-ai/cartesia-js#readme","bugs":{"url":"https://github.com/cartesia-ai/cartesia-js/issues"},"dist":{"shasum":"788f7b2b7aad5451c0c5fb44812299cc3e468c87","tarball":"https://registry.npmjs.org/@fern-api/cartesia/-/cartesia-0.0.5.tgz","fileCount":948,"integrity":"sha512-rTWiJxBQz6VdA6VCkNsqmOreCTF40yDt+a9AQVBLCpBh5KAy+NmdexiRmUCYGjbFhPgzwwIckRbgyhBoeKrpOg==","signatures":[{"sig":"MEYCIQCui2gppmX0mBEnL5q7z/6uLvhe01hKEAcjlvNe3HDuPgIhAPX1HEhfJSFIl7a89q5/Y+qn+D8QheDy+Wr5keHAHqyI","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":925282},"main":"./index.js","types":"./index.d.ts","browser":{"fs":false,"os":false,"path":false},"gitHead":"6fa39c9d57fcedabb83c6b670d7c335cd34a0db7","private":false,"scripts":{"test":"jest","build":"tsc","format":"prettier . --write --ignore-unknown","prepack":"cp -rv dist/. ."},"_npmUser":{"name":"dsinghvi77","email":"deep@buildwithfern.com"},"repository":{"url":"git+https://github.com/cartesia-ai/cartesia-js.git","type":"git"},"_npmVersion":"10.5.0","description":"[![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-Built%20with%20Fern-brightgreen)](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2Fcartesia-ai%2Fcartesia-js) [![npm shield](h","directories":{},"_nodeVersion":"18.20.2","dependencies":{"qs":"6.11.2","ws":"^8.15.13","emittery":"^1.0.3","human-id":"^4.1.1","url-join":"4.0.1","form-data":"^4.0.0","node-fetch":"2.7.0","formdata-node":"^6.0.3","readable-stream":"^4.5.2","form-data-encoder":"^4.0.2"},"_hasShrinkwrap":false,"devDependencies":{"jest":"29.7.0","ts-jest":"29.1.1","webpack":"^5.94.0","prettier":"2.7.1","@types/qs":"6.9.8","@types/ws":"^8.5.13","ts-loader":"^9.3.1","typescript":"4.6.4","@types/jest":"29.5.5","@types/node":"17.0.33","@types/url-join":"4.0.1","fetch-mock-jest":"^1.5.1","@types/node-fetch":"2.6.9","@types/readable-stream":"^4.0.15","jest-environment-jsdom":"29.7.0"},"_npmOperationalInternal":{"tmp":"tmp/cartesia_0.0.5_1733441230845_0.8532050668754088","host":"s3://npm-registry-packages"}},"0.0.6":{"name":"@fern-api/cartesia","version":"0.0.6","_id":"@fern-api/cartesia@0.0.6","maintainers":[{"name":"dsheridan","email":"danny+npmjs@buildwithfern.com"},{"name":"dsinghvi77","email":"deep@buildwithfern.com"}],"homepage":"https://github.com/cartesia-ai/cartesia-js#readme","bugs":{"url":"https://github.com/cartesia-ai/cartesia-js/issues"},"dist":{"shasum":"2ec9fe8ee749716ac67a7b45596ea9fa4ae9e81a","tarball":"https://registry.npmjs.org/@fern-api/cartesia/-/cartesia-0.0.6.tgz","fileCount":952,"integrity":"sha512-kZmr7MyZALGDCWVAlwTxad5gEnCeSIh2vqUDMZLXLC4XVVM6rKeOckDw2RPnmcCtDtoTCPvlnyyCbtgaj1JF/g==","signatures":[{"sig":"MEUCIE4z7u12oWn1wfm3XIfPf5tXqTczYKYTc8hNXf1ivbJSAiEA375wzDjASZo8qrCbSalRJ1LKoNCelFy3RwtYnOLTZ20=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":950976},"main":"./index.js","types":"./index.d.ts","browser":{"fs":false,"os":false,"path":false},"gitHead":"6fa39c9d57fcedabb83c6b670d7c335cd34a0db7","private":false,"scripts":{"test":"jest","build":"tsc","format":"prettier . --write --ignore-unknown","prepack":"cp -rv dist/. ."},"_npmUser":{"name":"dsinghvi77","email":"deep@buildwithfern.com"},"repository":{"url":"git+https://github.com/cartesia-ai/cartesia-js.git","type":"git"},"_npmVersion":"10.5.0","description":"[![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-Built%20with%20Fern-brightgreen)](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2Fcartesia-ai%2Fcartesia-js) [![npm shield](h","directories":{},"_nodeVersion":"18.20.2","dependencies":{"qs":"6.11.2","ws":"^8.15.13","emittery":"^1.0.3","human-id":"^4.1.1","url-join":"4.0.1","form-data":"^4.0.0","node-fetch":"2.7.0","formdata-node":"^6.0.3","readable-stream":"^4.5.2","form-data-encoder":"^4.0.2"},"_hasShrinkwrap":false,"devDependencies":{"jest":"29.7.0","ts-jest":"29.1.1","webpack":"^5.94.0","prettier":"2.7.1","@types/qs":"6.9.8","@types/ws":"^8.5.13","ts-loader":"^9.3.1","typescript":"4.6.4","@types/jest":"29.5.5","@types/node":"17.0.33","@types/url-join":"4.0.1","fetch-mock-jest":"^1.5.1","@types/node-fetch":"2.6.9","@types/readable-stream":"^4.0.15","jest-environment-jsdom":"29.7.0"},"_npmOperationalInternal":{"tmp":"tmp/cartesia_0.0.6_1733441352336_0.20254918226452956","host":"s3://npm-registry-packages"}},"0.0.7":{"name":"@fern-api/cartesia","version":"0.0.7","_id":"@fern-api/cartesia@0.0.7","maintainers":[{"name":"dsheridan","email":"danny+npmjs@buildwithfern.com"},{"name":"dsinghvi77","email":"deep@buildwithfern.com"}],"homepage":"https://github.com/cartesia-ai/cartesia-js#readme","bugs":{"url":"https://github.com/cartesia-ai/cartesia-js/issues"},"dist":{"shasum":"e4647d97251935965bd698a0161d8116c0cfe5ac","tarball":"https://registry.npmjs.org/@fern-api/cartesia/-/cartesia-0.0.7.tgz","fileCount":952,"integrity":"sha512-wy4ST3S23xAMjk7zHu7N7pd43kFMnvresNXqAGkiA74fEniwwlACjLN3z+Ow/FJOuWSM9l3u9KtilgN9HyWUrQ==","signatures":[{"sig":"MEUCIQClBQVfI/cNf7b9R8CN5ohNdtHogzT4GdliLuo3SZzdaAIgRq+AEFlGHTgqi/AYQECwn27VQSovObXeyp3vY5x2pkg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":951682},"main":"./index.js","types":"./index.d.ts","browser":{"fs":false,"os":false,"path":false},"gitHead":"6fa39c9d57fcedabb83c6b670d7c335cd34a0db7","private":false,"scripts":{"test":"jest","build":"tsc","format":"prettier . --write --ignore-unknown","prepack":"cp -rv dist/. ."},"_npmUser":{"name":"dsinghvi77","email":"deep@buildwithfern.com"},"repository":{"url":"git+https://github.com/cartesia-ai/cartesia-js.git","type":"git"},"_npmVersion":"10.5.0","description":"[![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-Built%20with%20Fern-brightgreen)](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2Fcartesia-ai%2Fcartesia-js) [![npm shield](h","directories":{},"_nodeVersion":"18.20.2","dependencies":{"qs":"6.11.2","ws":"^8.15.13","emittery":"^1.0.3","human-id":"^4.1.1","url-join":"4.0.1","form-data":"^4.0.0","node-fetch":"2.7.0","formdata-node":"^6.0.3","readable-stream":"^4.5.2","form-data-encoder":"^4.0.2"},"_hasShrinkwrap":false,"devDependencies":{"jest":"29.7.0","ts-jest":"29.1.1","webpack":"^5.94.0","prettier":"2.7.1","@types/qs":"6.9.8","@types/ws":"^8.5.13","ts-loader":"^9.3.1","typescript":"4.6.4","@types/jest":"29.5.5","@types/node":"17.0.33","@types/url-join":"4.0.1","fetch-mock-jest":"^1.5.1","@types/node-fetch":"2.6.9","@types/readable-stream":"^4.0.15","jest-environment-jsdom":"29.7.0"},"_npmOperationalInternal":{"tmp":"tmp/cartesia_0.0.7_1733441501850_0.9598504949483055","host":"s3://npm-registry-packages"}},"0.0.8":{"name":"@fern-api/cartesia","version":"0.0.8","_id":"@fern-api/cartesia@0.0.8","maintainers":[{"name":"dsheridan","email":"danny+npmjs@buildwithfern.com"},{"name":"dsinghvi77","email":"deep@buildwithfern.com"}],"homepage":"https://github.com/cartesia-ai/cartesia-js#readme","bugs":{"url":"https://github.com/cartesia-ai/cartesia-js/issues"},"dist":{"shasum":"593dd4855cfa81b5c36a6224c42bd25d13684558","tarball":"https://registry.npmjs.org/@fern-api/cartesia/-/cartesia-0.0.8.tgz","fileCount":952,"integrity":"sha512-V7HrjaR1nlFZLogu3rtnBfhzkULKe44Jw4/haxF1Ey88qxuYfP12/364US5Sr+CJvz6tVlbFW1HJay58vwiPQQ==","signatures":[{"sig":"MEYCIQDjwVynwgb21GYEKO/gQ7oRZKfyfIHasueH1P18Ve3PDQIhALxWIX8MOYsu1Zl5yXPLVnvv6BRvO8ga/kkh7hVgJdMy","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":951688},"main":"./index.js","types":"./index.d.ts","browser":{"fs":false,"os":false,"path":false},"gitHead":"6fa39c9d57fcedabb83c6b670d7c335cd34a0db7","private":false,"scripts":{"test":"jest","build":"tsc","format":"prettier . --write --ignore-unknown","prepack":"cp -rv dist/. ."},"_npmUser":{"name":"dsinghvi77","email":"deep@buildwithfern.com"},"repository":{"url":"git+https://github.com/cartesia-ai/cartesia-js.git","type":"git"},"_npmVersion":"10.5.0","description":"[![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-Built%20with%20Fern-brightgreen)](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2Fcartesia-ai%2Fcartesia-js) [![npm shield](h","directories":{},"_nodeVersion":"18.20.2","dependencies":{"qs":"6.11.2","ws":"^8.15.13","emittery":"^1.0.3","human-id":"^4.1.1","url-join":"4.0.1","form-data":"^4.0.0","node-fetch":"2.7.0","formdata-node":"^6.0.3","readable-stream":"^4.5.2","form-data-encoder":"^4.0.2"},"_hasShrinkwrap":false,"devDependencies":{"jest":"29.7.0","ts-jest":"29.1.1","webpack":"^5.94.0","prettier":"2.7.1","@types/qs":"6.9.8","@types/ws":"^8.5.13","ts-loader":"^9.3.1","typescript":"4.6.4","@types/jest":"29.5.5","@types/node":"17.0.33","@types/url-join":"4.0.1","fetch-mock-jest":"^1.5.1","@types/node-fetch":"2.6.9","@types/readable-stream":"^4.0.15","jest-environment-jsdom":"29.7.0"},"_npmOperationalInternal":{"tmp":"tmp/cartesia_0.0.8_1733441752398_0.7058794516331188","host":"s3://npm-registry-packages"}},"0.0.9":{"name":"@fern-api/cartesia","version":"0.0.9","_id":"@fern-api/cartesia@0.0.9","maintainers":[{"name":"dsheridan","email":"danny+npmjs@buildwithfern.com"},{"name":"dsinghvi77","email":"deep@buildwithfern.com"}],"homepage":"https://github.com/cartesia-ai/cartesia-js#readme","bugs":{"url":"https://github.com/cartesia-ai/cartesia-js/issues"},"dist":{"shasum":"25b98b38eadd346c077160f33d5db082aae706b4","tarball":"https://registry.npmjs.org/@fern-api/cartesia/-/cartesia-0.0.9.tgz","fileCount":952,"integrity":"sha512-fS/FuZDJqxc88ZZBplmKA8XqiEVdGHG5++zGT+Tzolb651N8qasHPpddA1SzGbbqRDVLfFRLHq9z9+a4UOVB9w==","signatures":[{"sig":"MEUCID1wgQjuzLvA9bcv5X9TvF7j7BkBnByPRn7yXdi+G0WqAiEAlrgKw8tc0bL5MhaB/R8FXQq6FwMl0gDvDO+LXddq8/Q=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":951689},"main":"./index.js","types":"./index.d.ts","browser":{"fs":false,"os":false,"path":false},"gitHead":"6fa39c9d57fcedabb83c6b670d7c335cd34a0db7","private":false,"scripts":{"test":"jest","build":"tsc","format":"prettier . --write --ignore-unknown","prepack":"cp -rv dist/. ."},"_npmUser":{"name":"dsinghvi77","email":"deep@buildwithfern.com"},"repository":{"url":"git+https://github.com/cartesia-ai/cartesia-js.git","type":"git"},"_npmVersion":"10.5.0","description":"[![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-Built%20with%20Fern-brightgreen)](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2Fcartesia-ai%2Fcartesia-js) [![npm shield](h","directories":{},"_nodeVersion":"18.20.2","dependencies":{"qs":"6.11.2","ws":"^8.15.13","emittery":"^0.13.1","human-id":"^4.1.1","url-join":"4.0.1","form-data":"^4.0.0","node-fetch":"2.7.0","formdata-node":"^6.0.3","readable-stream":"^4.5.2","form-data-encoder":"^4.0.2"},"_hasShrinkwrap":false,"devDependencies":{"jest":"29.7.0","ts-jest":"29.1.1","webpack":"^5.94.0","prettier":"2.7.1","@types/qs":"6.9.8","@types/ws":"^8.5.13","ts-loader":"^9.3.1","typescript":"4.6.4","@types/jest":"29.5.5","@types/node":"17.0.33","@types/url-join":"4.0.1","fetch-mock-jest":"^1.5.1","@types/node-fetch":"2.6.9","@types/readable-stream":"^4.0.15","jest-environment-jsdom":"29.7.0"},"_npmOperationalInternal":{"tmp":"tmp/cartesia_0.0.9_1733441985115_0.38227394898594014","host":"s3://npm-registry-packages"}},"0.0.10":{"name":"@fern-api/cartesia","version":"0.0.10","_id":"@fern-api/cartesia@0.0.10","maintainers":[{"name":"dsheridan","email":"danny+npmjs@buildwithfern.com"},{"name":"dsinghvi77","email":"deep@buildwithfern.com"}],"homepage":"https://github.com/cartesia-ai/cartesia-js#readme","bugs":{"url":"https://github.com/cartesia-ai/cartesia-js/issues"},"dist":{"shasum":"b186676cc8e0ddf46d5d49da2eb9267003cd0dec","tarball":"https://registry.npmjs.org/@fern-api/cartesia/-/cartesia-0.0.10.tgz","fileCount":956,"integrity":"sha512-l9czJl371yPiuZcMMBeL49nWeLhVQv/1pDpFn05PMJ46VcI7RTK/GSk6AoVbuLQUUFKxB8K8Ap2cxx6leOvn5w==","signatures":[{"sig":"MEUCICoMw8r4yYaWxwK8zyqhew+FLJUrcEUMLxH2iQL9o5CJAiEA2KByiTp/mJVk3NUa6leLFHkvnxD8BtsccaXhHnmcb2w=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":979576},"main":"./index.js","types":"./index.d.ts","browser":{"fs":false,"os":false,"path":false},"gitHead":"6fa39c9d57fcedabb83c6b670d7c335cd34a0db7","private":false,"scripts":{"test":"jest","build":"tsc","format":"prettier . --write --ignore-unknown","prepack":"cp -rv dist/. ."},"_npmUser":{"name":"dsinghvi77","email":"deep@buildwithfern.com"},"repository":{"url":"git+https://github.com/cartesia-ai/cartesia-js.git","type":"git"},"_npmVersion":"10.5.0","description":"[![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-Built%20with%20Fern-brightgreen)](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2Fcartesia-ai%2Fcartesia-js) [![npm shield](h","directories":{},"_nodeVersion":"18.20.2","dependencies":{"qs":"6.11.2","ws":"^8.15.13","emittery":"^0.13.1","human-id":"^4.1.1","url-join":"4.0.1","form-data":"^4.0.0","node-fetch":"2.7.0","formdata-node":"^6.0.3","readable-stream":"^4.5.2","form-data-encoder":"^4.0.2"},"_hasShrinkwrap":false,"devDependencies":{"jest":"29.7.0","ts-jest":"29.1.1","webpack":"^5.94.0","prettier":"2.7.1","@types/qs":"6.9.8","@types/ws":"^8.5.13","ts-loader":"^9.3.1","typescript":"4.6.4","@types/jest":"29.5.5","@types/node":"17.0.33","@types/url-join":"4.0.1","fetch-mock-jest":"^1.5.1","@types/node-fetch":"2.6.9","@types/readable-stream":"^4.0.15","jest-environment-jsdom":"29.7.0"},"_npmOperationalInternal":{"tmp":"tmp/cartesia_0.0.10_1733442630647_0.4052081219737489","host":"s3://npm-registry-packages"}},"0.0.11":{"name":"@fern-api/cartesia","version":"0.0.11","_id":"@fern-api/cartesia@0.0.11","maintainers":[{"name":"dsheridan","email":"danny+npmjs@buildwithfern.com"},{"name":"dsinghvi77","email":"deep@buildwithfern.com"}],"homepage":"https://github.com/cartesia-ai/cartesia-js#readme","bugs":{"url":"https://github.com/cartesia-ai/cartesia-js/issues"},"dist":{"shasum":"84c6bc1e26870c28ca0ff8c5ad2f55f151669acc","tarball":"https://registry.npmjs.org/@fern-api/cartesia/-/cartesia-0.0.11.tgz","fileCount":956,"integrity":"sha512-nfFNgkVNlFOYyW64CwmlXYSe4rwx1nFBRjmDBB8wITE1rsCj0bSVuEl6Jt5TjFILZRRWUHTuIiWKCruTdCw82g==","signatures":[{"sig":"MEUCIQCPgF31ZZ2jVOJdQoKz8w/HPGbz+WfhZsMjmQ0W0MDWFQIgd1dCXWlGwmpKPd9mNPRTXKd1nWskFSqCJb1ALXOv/4s=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":978988},"main":"./index.js","types":"./index.d.ts","browser":{"fs":false,"os":false,"path":false},"gitHead":"6fa39c9d57fcedabb83c6b670d7c335cd34a0db7","private":false,"scripts":{"test":"jest","build":"tsc","format":"prettier . --write --ignore-unknown","prepack":"cp -rv dist/. ."},"_npmUser":{"name":"dsinghvi77","email":"deep@buildwithfern.com"},"repository":{"url":"git+https://github.com/cartesia-ai/cartesia-js.git","type":"git"},"_npmVersion":"10.5.0","description":"[![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-Built%20with%20Fern-brightgreen)](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2Fcartesia-ai%2Fcartesia-js) [![npm shield](h","directories":{},"_nodeVersion":"18.20.2","dependencies":{"qs":"6.11.2","ws":"^8.15.13","emittery":"^0.13.1","human-id":"^4.1.1","url-join":"4.0.1","form-data":"^4.0.0","node-fetch":"2.7.0","formdata-node":"^6.0.3","readable-stream":"^4.5.2","form-data-encoder":"^4.0.2"},"_hasShrinkwrap":false,"devDependencies":{"jest":"29.7.0","ts-jest":"29.1.1","webpack":"^5.94.0","prettier":"2.7.1","@types/qs":"6.9.8","@types/ws":"^8.5.13","ts-loader":"^9.3.1","typescript":"4.6.4","@types/jest":"29.5.5","@types/node":"17.0.33","@types/url-join":"4.0.1","fetch-mock-jest":"^1.5.1","@types/node-fetch":"2.6.9","@types/readable-stream":"^4.0.15","jest-environment-jsdom":"29.7.0"},"_npmOperationalInternal":{"tmp":"tmp/cartesia_0.0.11_1733443101280_0.5665431059322676","host":"s3://npm-registry-packages"}},"0.0.12":{"name":"@fern-api/cartesia","version":"0.0.12","_id":"@fern-api/cartesia@0.0.12","maintainers":[{"name":"dsheridan","email":"danny+npmjs@buildwithfern.com"},{"name":"dsinghvi77","email":"deep@buildwithfern.com"}],"homepage":"https://github.com/cartesia-ai/cartesia-js#readme","bugs":{"url":"https://github.com/cartesia-ai/cartesia-js/issues"},"dist":{"shasum":"07f2c11ad9da68ec187c651a9584b8177b2ae31e","tarball":"https://registry.npmjs.org/@fern-api/cartesia/-/cartesia-0.0.12.tgz","fileCount":956,"integrity":"sha512-jK12CivXjF97wccN7Up8cgSQasjSEZ0RMVnyusUwhrFCjmGqNw4RRZJVNySv/bUJfcLiF99Rpfr6LuPwDIg3Ww==","signatures":[{"sig":"MEQCIA0sH+8LpvpFZM+1g7Sm0JLOn0nR430ADwg/+I10ipxFAiBe+ZOas36X5IiSSOzmX2ILZq9a2boTlyOFKaaGTy10Rw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":980092},"main":"./index.js","types":"./index.d.ts","browser":{"fs":false,"os":false,"path":false},"gitHead":"6fa39c9d57fcedabb83c6b670d7c335cd34a0db7","private":false,"scripts":{"test":"jest","build":"tsc","format":"prettier . --write --ignore-unknown","prepack":"cp -rv dist/. ."},"_npmUser":{"name":"dsinghvi77","email":"deep@buildwithfern.com"},"repository":{"url":"git+https://github.com/cartesia-ai/cartesia-js.git","type":"git"},"_npmVersion":"10.5.0","description":"[![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-Built%20with%20Fern-brightgreen)](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2Fcartesia-ai%2Fcartesia-js) [![npm shield](h","directories":{},"_nodeVersion":"18.20.2","dependencies":{"qs":"6.11.2","ws":"^8.15.13","emittery":"^0.13.1","human-id":"^4.1.1","url-join":"4.0.1","form-data":"^4.0.0","node-fetch":"2.7.0","formdata-node":"^6.0.3","readable-stream":"^4.5.2","form-data-encoder":"^4.0.2"},"_hasShrinkwrap":false,"devDependencies":{"jest":"29.7.0","ts-jest":"29.1.1","webpack":"^5.94.0","prettier":"2.7.1","@types/qs":"6.9.8","@types/ws":"^8.5.13","ts-loader":"^9.3.1","typescript":"4.6.4","@types/jest":"29.5.5","@types/node":"17.0.33","@types/url-join":"4.0.1","fetch-mock-jest":"^1.5.1","@types/node-fetch":"2.6.9","@types/readable-stream":"^4.0.15","jest-environment-jsdom":"29.7.0"},"_npmOperationalInternal":{"tmp":"tmp/cartesia_0.0.12_1733444002315_0.9668389627767906","host":"s3://npm-registry-packages"}}},"time":{"created":"2024-12-05T23:14:00.517Z","modified":"2026-09-16T15:14:00.248Z","0.0.1":"2024-12-05T23:14:00.873Z","0.0.2":"2024-12-05T23:16:32.380Z","0.0.3":"2024-12-05T23:19:43.012Z","0.0.4":"2024-12-05T23:22:27.752Z","0.0.5":"2024-12-05T23:27:11.005Z","0.0.6":"2024-12-05T23:29:12.567Z","0.0.7":"2024-12-05T23:31:42.111Z","0.0.8":"2024-12-05T23:35:52.660Z","0.0.9":"2024-12-05T23:39:45.349Z","0.0.10":"2024-12-05T23:50:30.955Z","0.0.11":"2024-12-05T23:58:21.573Z","0.0.12":"2024-12-06T00:13:22.509Z"},"bugs":{"url":"https://github.com/cartesia-ai/cartesia-js/issues"},"homepage":"https://github.com/cartesia-ai/cartesia-js#readme","repository":{"url":"git+https://github.com/cartesia-ai/cartesia-js.git","type":"git"},"description":"[![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-Built%20with%20Fern-brightgreen)](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2Fcartesia-ai%2Fcartesia-js) [![npm shield](h","maintainers":[{"email":"sandeep@buildwithfern.com","name":"sandeep-fern"},{"email":"elizabeth.fung@postman.com","name":"elizabeth.fung"},{"email":"will.kendall@postman.com","name":"willkendall01"},{"email":"npm-security+postman@postman.com","name":"postman-admin"},{"email":"arie.litovsky@postman.com","name":"arie.litovsky"}],"readme":"# Cartesia TypeScript Library\n\n[![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-Built%20with%20Fern-brightgreen)](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2Fcartesia-ai%2Fcartesia-js)\n[![npm shield](https://img.shields.io/npm/v/@cartesia/cartesia-js)](https://www.npmjs.com/package/@cartesia/cartesia-js)\n\nThe Cartesia TypeScript library provides convenient access to the Cartesia API from TypeScript.\n\n## Installation\n\n```sh\nnpm i -s @cartesia/cartesia-js\n```\n\n## Reference\n\nA full reference for this library is available [here](./reference.md).\n\n## Usage\n\n### Instantiation\n\nInstantiate and use the client with the following:\n\n```typescript\nimport { CartesiaClient } from \"@cartesia/cartesia-js\";\n\nconst client = new CartesiaClient({ apiKey: \"YOUR_API_KEY_HEADER\" });\nawait client.tts.bytes({\n    modelId: \"sonic-english\",\n    transcript: \"Hello, world!\",\n    voice: {\n        mode: \"id\",\n        id: \"694f9389-aac1-45b6-b726-9d9369183238\",\n    },\n    language: \"en\",\n    outputFormat: {\n        container: \"raw\",\n        sampleRate: 44100,\n        encoding: \"pcm_f32le\",\n    },\n});\n```\n\n### TTS over WebSocket\n\n```js\nimport { CartesiaClient } from \"@cartesia/cartesia-js\";\n\nconst cartesia = new CartesiaClient({\n    apiKey: \"your-api-key\",\n});\n\n// Initialize the WebSocket. Make sure the output format you specify is supported.\nconst websocket = cartesia.tts.websocket({\n    container: \"raw\",\n    encoding: \"pcm_f32le\",\n    sampleRate: 44100,\n});\n\ntry {\n    await websocket.connect({\n        // If using Node.js, you can pass a custom WebSocket constructor, such as from `ws`.\n        // This is not needed for browser usage, so you can call connect() without any arguments.\n        WebSocket: WS,\n    });\n} catch (error) {\n    console.error(`Failed to connect to Cartesia: ${error}`);\n}\n\n// Create a stream.\nconst response = await websocket.send({\n    modelId: \"sonic-english\",\n    voice: {\n        mode: \"id\",\n        id: \"a0e99841-438c-4a64-b679-ae501e7d6091\",\n    },\n    transcript: \"Hello, world!\",\n    // The WebSocket sets output_format on your behalf.\n});\n\n// Access the raw messages from the WebSocket.\nresponse.on(\"message\", (message) => {\n    // Raw message.\n    console.log(\"Received message:\", message);\n});\n\n// You can also access messages using a for-await-of loop.\nfor await (const message of response.events(\"message\")) {\n    // Raw message.\n    console.log(\"Received message:\", message);\n}\n```\n\n#### Input Streaming with Contexts\n\n```js\nconst contextOptions = {\n    contextId: \"my-context\",\n    modelId: \"sonic-english\",\n    voice: {\n        mode: \"id\",\n        id: \"a0e99841-438c-4a64-b679-ae501e7d6091\",\n    },\n};\n\n// Initial request on the context uses websocket.send().\n// This response object will aggregate the results of all the inputs sent on the context.\nconst response = await websocket.send({\n    ...contextOptions,\n    transcript: \"Hello, world!\",\n});\n\n// Subsequent requests on the same context use websocket.continue().\nawait websocket.continue({\n    ...contextOptions,\n    transcript: \" How are you today?\",\n});\n```\n\nSee the [input streaming docs](https://docs.cartesia.ai/reference/web-socket/stream-speech/working-with-web-sockets#input-streaming-with-contexts) for more information.\n\n### Playing audio in the browser\n\n(The `WebPlayer` class only supports playing audio in the browser and the raw PCM format with fp32le encoding.)\n\n```js\n// If you're using the client in the browser, you can control audio playback using our WebPlayer:\nimport { WebPlayer } from \"@cartesia/cartesia-js\";\n\nconsole.log(\"Playing stream...\");\n\n// Create a Player object.\nconst player = new WebPlayer();\n\n// Play the audio. (`response` includes a custom Source object that the Player can play.)\n// The call resolves when the audio finishes playing.\nawait player.play(response.source);\n\nconsole.log(\"Done playing.\");\n```\n\n## Request And Response Types\n\nThe SDK exports all request and response types as TypeScript interfaces. Simply import them with the\nfollowing namespace:\n\n```typescript\nimport { Cartesia } from \"@cartesia/cartesia-js\";\n\nconst request: Cartesia.VoiceChangerBytesRequest = {\n    ...\n};\n```\n\n## Exception Handling\n\nWhen the API returns a non-success status code (4xx or 5xx response), a subclass of the following error\nwill be thrown.\n\n```typescript\nimport { CartesiaError } from \"@cartesia/cartesia-js\";\n\ntry {\n    await client.tts.bytes(...);\n} catch (err) {\n    if (err instanceof CartesiaError) {\n        console.log(err.statusCode);\n        console.log(err.message);\n        console.log(err.body);\n    }\n}\n```\n\n## Advanced\n\n### Retries\n\nThe SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long\nas the request is deemed retriable and the number of retry attempts has not grown larger than the configured\nretry limit (default: 2).\n\nA request is deemed retriable when any of the following HTTP status codes is returned:\n\n-   [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout)\n-   [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests)\n-   [5XX](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500) (Internal Server Errors)\n\nUse the `maxRetries` request option to configure this behavior.\n\n```typescript\nconst response = await client.tts.bytes(..., {\n    maxRetries: 0 // override maxRetries at the request level\n});\n```\n\n### Timeouts\n\nThe SDK defaults to a 60 second timeout. Use the `timeoutInSeconds` option to configure this behavior.\n\n```typescript\nconst response = await client.tts.bytes(..., {\n    timeoutInSeconds: 30 // override timeout to 30s\n});\n```\n\n### Aborting Requests\n\nThe SDK allows users to abort requests at any point by passing in an abort signal.\n\n```typescript\nconst controller = new AbortController();\nconst response = await client.tts.bytes(..., {\n    abortSignal: controller.signal\n});\ncontroller.abort(); // aborts the request\n```\n\n### Runtime Compatibility\n\nThe SDK defaults to `node-fetch` but will use the global fetch client if present. The SDK works in the following\nruntimes:\n\n-   Node.js 18+\n-   Vercel\n-   Cloudflare Workers\n-   Deno v1.25+\n-   Bun 1.0+\n-   React Native\n\n### Customizing Fetch Client\n\nThe SDK provides a way for your to customize the underlying HTTP client / Fetch function. If you're running in an\nunsupported environment, this provides a way for you to break glass and ensure the SDK works.\n\n```typescript\nimport { CartesiaClient } from \"@cartesia/cartesia-js\";\n\nconst client = new CartesiaClient({\n    ...\n    fetcher: // provide your implementation here\n});\n```\n\n## Contributing\n\nWhile we value open-source contributions to this SDK, this library is generated programmatically.\nAdditions made directly to this library would have to be moved over to our generation code,\notherwise they would be overwritten upon the next generated release. Feel free to open a PR as\na proof of concept, but know that we will not be able to merge it as-is. We suggest opening\nan issue first to discuss with us!\n\nOn the other hand, contributions to the README are always very welcome!\n","readmeFilename":"README.md"}