soniox/speech-to-text-web ? reverse-engineered prompt
Reverse engineered prompt
Build me a browser based speech to text SDK in TypeScript for Soniox’s real time API.
I want a small library that can open a microphone session, stream audio to Soniox, and give me live partial and final transcription updates in the browser. It should support starting and stopping a session cleanly, and it should be easy to use from vanilla JavaScript or TypeScript. Please include support for things like language hints, speaker labels, language detection, endpoint detection, and real time translation.
I also want a simple example app that shows how to record from the mic and display the live transcript on screen, plus an example that uses a temporary API key from a backend so the secret key does not have to live in the client. If it helps, look up the current Soniox docs online for the latest API details before wiring it up.