mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-21 00:21:49 +00:00
Bridge OpenAI Realtime transcription sessions on vertex_ai/chirp_* models to Google Speech-to-Text v2 StreamingRecognize over gRPC, so partial and final transcripts stream back while audio is still being sent. Interim results become delta events, finals become completed events carrying billed seconds, the gRPC stream rotates at 240 s under Google's five-minute cap with billed time chained across rotations, and audio is split into 25 KB requests. The OpenAI transcription protocol helpers move into a shared module that Meta Muse now uses too, google-cloud-speech ships behind a new stt-vertex-chirp extra bundled into the proxy runtime, and the cost map lists /v1/realtime for chirp_3. |
||
|---|---|---|
| .. | ||
| test_main.py | ||