Skip to content

Latest commit

 

History

History
 
 

speech-to-text

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Speech-to-text

This example shows realtime transcription from voice to text.

It uses OpenAI's Whisper STT API, but supports other STT plugins by changing this line:

stt = openai.STT()

To render the transcriptions into your client application, refer to the full documentation.

Running the example

export LIVEKIT_URL=wss://yourhost.livekit.cloud
export LIVEKIT_API_KEY=livekit-api-key
export LIVEKIT_API_SECRET=your-api-secret
export OPENAI_API_KEY=your-api-key

python3 transcriber.py start

Then connect to any room. For an example frontend, you can use LiveKit's Agents Playground.