
Security News
High Salaries No Longer Enough to Attract Top Cybersecurity Talent
A survey of 500 cybersecurity pros reveals high pay isn't enough—lack of growth and flexibility is driving attrition and risking organizational security.
@aristech-org/tts-client
Advanced tools
A Node.js client library for the Aristech Text-to-Speech API
This is the NodeJS client implementation for the Aristech TTS-Server.
npm install @aristech-org/tts-client
import { TtsClient } from '@aristech-org/tts-client'
import fs from 'fs'
const client = new TtsClient({ host: 'tts.example.com' })
const buffer = await client.synthesize({
text: 'Hello, world!',
options: { voiceId: 'anne_en_GB' },
})
fs.writeFileSync('path/to/output/file.wav', buffer)
There are several examples in the examples
directory:
You can run the examples directly using tsx
like this:
.env
file in the node directory:HOST=tts.example.com
# The credentials are optional but probably required for most servers:
TOKEN=your-token
SECRET=your-secret
# The following are optional:
# ROOT_CERT=your-root-cert.pem # If the server uses a self-signed certificate
# SSL=true # Set to true if credentials are provided or if a ROOT_CERT is provided
# VOICE_ID=some-available-voice-id
npx tsx examples/streaming.ts
To rebuild the generated typescript files from the proto file, run:
npm run generate
To build the library, run:
npm run build
FAQs
A Node.js client library for the Aristech Text-to-Speech API
We found that @aristech-org/tts-client demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A survey of 500 cybersecurity pros reveals high pay isn't enough—lack of growth and flexibility is driving attrition and risking organizational security.
Product
Socket, the leader in open source security, is now available on Google Cloud Marketplace for simplified procurement and enhanced protection against supply chain attacks.
Security News
Corepack will be phased out from future Node.js releases following a TSC vote.