SDKs
React SDK
Build speech-to-text and text-to-speech workflows in React with real-time APIs.
Soniox React SDK provides React hooks and components for real-time speech-to-text and text-to-speech, built on top of the Web SDK. It lets you:
- Capture audio from the user's microphone with a single hook
- Stream audio to Soniox in real time
- Receive transcription and translation results as reactive state
- Generate speech from text with a single
useTtshook
Quickstart
Install
Install via your preferred package manager:
Set up your temporary API key endpoint
In client environment (browser, mobile app, React Native, etc.), you don't want to expose your API key to the client. For this reason, you can create a temporary API key endpoint on your server and use it to issue temporary API keys for the client.
For example, you can use our Node SDK to create a temporary API key endpoint.
Read more about our Node SDK and Temporary API keys
Create your first real-time session
Learn more about Real-time transcription
Generate your first speech
Learn more about Real-time speech generation.