SDKs
React SDK
Build speech-to-text workflows in React with real-time API.
Soniox React SDK provides React hooks and components for real-time speech-to-text, 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
Quickstart
Install
Install via your preferred package manager:
Setup you temporary API key endpoint
In client enviroment (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